(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5191],{34237:function(e,n,t){"use strict";t.d(n,{Z:function(){return ThreadTooltip}});var l=t(85893),i=t(47592),r=t(67658),o=t(93967),a=t.n(o),d=t(25935),s=t(33322),u=t(84834),c=t(79637),m=t.n(c);function ThreadTooltip(e){var n,t,o=e.color,c=e.position,h=void 0===c?"inline":c,v=e.label,f=e.tooltip;if(!f)return null;var p=(0,u.Z)(v.toString());return(0,l.jsx)("div",{className:a()(m().focusOverride,h,"ml-[.25em]"),id:p,style:{"--offset":"inline"===h?"4px":"0"},children:(0,l.jsx)(r.ZP,{container:function(){return document.querySelector("#".concat(p))},content:null!==(t=(0,d.ZP)(f))&&void 0!==t?t:void 0,isInline:!0,keepOpen:!0,children:(0,l.jsx)(i.Z,{className:a()(null===(n=(0,s.b)(null!=o?o:"violet-light"))||void 0===n?void 0:n.iconAccent,"block"),height:"1em",width:"1em"})})})}},65191:function(e,n,t){"use strict";t.d(n,{Z:function(){return ThreadLayerPlate}});var l=t(85893),i=t(93967),r=t.n(i),o=t(45697),a=t.n(o),d=t(24043),s=t(67294),u=t(97437),c=t(95429),m=t(47675),h=t(34237),v=t(62169),f=t(99577),p=t(33322),g=t(79051),x=t(75731),b=t.n(x),y=t(3431),N=t(24611),j=t(57990);function PricingCard(e){var n,t,i,o,a,u,h,x,T,C,S,k,F,I,P,w=e.bodyText,U=e.plan,_=e.themeColor,E=e.type,L=null==U?void 0:null===(n=U.header)||void 0===n?void 0:n.eyebrow.includes("Business"),R=null==U?void 0:null===(t=U.header)||void 0===t?void 0:t.eyebrow.includes("AI"),D=U.packages&&U.packages[0].prices.find(function(e){return"usd"===e.currency}),B=(0,d._)((0,g.O)(),1)[0].unitCount,O={"--button-color-fr":null===(i=(0,p.b)(_))||void 0===i?void 0:i.buttonFg,"--focus-color-bg":"transparent","--focus-color-fg":"initial"},Z=(null==D?void 0:D.monthly)&&"".concat((0,N._B)("USD",D.monthly)," USD per Creator mo (when paying month to month)"),A=(0,d._)((0,s.useState)(null),2),M=A[0],z=A[1];return(0,s.useEffect)(function(){z(!0)},[]),(0,l.jsx)("div",{className:r()(R?b().aiCardGradient:"border border-blurple-medium","p-fluid-base h-full w-full rounded-lg"),children:(0,l.jsxs)("div",{className:"relative z-10",children:[(null==U?void 0:null===(o=U.header)||void 0===o?void 0:o.eyebrow)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"lg:h-[34px]",children:R&&(0,l.jsx)("div",{className:"mb-8",children:(0,l.jsx)(m.Z,{color:"grey8",backgroundColor:"blurpleMedium",children:"MOST POPULAR"})})}),(0,l.jsxs)("h2",{className:r()(null===(a=(0,p.b)(null!=_?_:"violet-light"))||void 0===a?void 0:a.headerText,"mb-sm lg:thd-heading-md thd-heading-lg"),children:[U.header.eyebrow,R&&(0,l.jsx)("span",{className:"absolute -mt-[.025em] ml-[.125em]",children:(0,l.jsx)(c.Z,{brand:"ai",variant:"symbol",maxWidth:".5em"})})]})]}),(null==U?void 0:null===(u=U.header)||void 0===u?void 0:u.heading)&&(0,l.jsx)("p",{className:r()(null===(h=(0,p.b)(null!=_?_:"violet-light"))||void 0===h?void 0:h.bodyText,"mb-lg lg:min-h-[96px]","lg:thd-body-md thd-body-lg"),children:U.header.heading}),(null==U?void 0:U.note)&&(0,l.jsx)("p",{className:r()(w,"font-bold thd-caption mb-lg max-w-ll-2xl"),children:U.note}),(0,l.jsx)("div",{className:"flex items-center mb-2xl",children:(0,l.jsx)(l.Fragment,{children:B>y.Zk&&L?(0,l.jsxs)("p",{children:["Your ",(0,l.jsx)("strong",{children:"user"})," count exceeds this plan's limit."]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:r()(null===(x=(0,p.b)(null!=_?_:"violet-light"))||void 0===x?void 0:x.headerText,"lg:thd-heading-sm thd-heading-md"),children:U.useFallbackPrice&&D?(0,N._B)("USD",D.annual/12):U.priceSection?U.priceSection.price:null==U?void 0:U.formattedTotalPrice}),L&&D&&(0,l.jsx)("div",{className:"thd-caption ml-sm",children:(null==U?void 0:U.billingCycle)==="MONTHLY"?(0,l.jsx)(l.Fragment,{children:U.useFallbackPrice&&D?(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("span",{className:" text-left",children:["USD/user/mo ",(0,l.jsx)("br",{}),"(billed annually)\xa0",M&&(0,l.jsx)(j.ua7,{content:Z,placement:"topCenter",children:(0,l.jsx)(j.JO$,{color:"blurpleMedium",size:"2",icon:(0,l.jsx)(j.C4A,{})})})]})}):"per user / month"}):(0,l.jsxs)(l.Fragment,{children:["per year",(0,l.jsx)("br",{}),null==U?void 0:U.formattedBreakdown.map(function(e,n){return(0,l.jsx)("span",{children:e.formattedUnitLimitLower!==e.formattedUnitLimitUpper&&(0,l.jsxs)("span",{children:["User tier: ",e.formattedUnitLimitLower," -"," ",e.formattedUnitLimitUpper]})},n)})]})})]})})}),(null==U?void 0:U.cta)?(0,l.jsx)(f.Z,{buttonType:"primary",className:"mb-2xl",color:"pricing"!==E||R?"violet-dark":"violet-light",cta:null==U?void 0:U.cta,size:"lg",children:null==U?void 0:null===(T=U.cta)||void 0===T?void 0:T.copy}):void 0,(null==U?void 0:U.keyFeaturesList)&&(0,l.jsx)("p",{className:"font-bold mb-fixed-sm",children:"Includes:"}),(0,l.jsxs)("div",{className:r()(null===(C=(0,p.b)(null!=_?_:"violet-light"))||void 0===C?void 0:C.headerText,"w-full"),children:[(null==U?void 0:U.keyFeaturesHeading)&&(0,l.jsx)("p",{className:"font-bold mb-fixed-sm",children:U.keyFeaturesHeading}),(0,l.jsx)("ul",{className:"thd-body-sm mb-lg thd-body-sm",children:null==U?void 0:null===(S=U.checklist)||void 0===S?void 0:S.map(function(e,n){return(0,l.jsx)(FeatureListItem,{listItem:e},n)})}),(null==U?void 0:U.featuresBlock)&&(0,l.jsxs)("details",{className:r()(null===(k=(0,p.b)(null!=_?_:"violet-light"))||void 0===k?void 0:k.headerText,"thd-details thd-rounded-int cursor-pointer lg:hidden"),style:O,children:[(0,l.jsx)("summary",{className:r()(null===(F=(0,p.b)(null!=_?_:"violet-light"))||void 0===F?void 0:F.headerText,"thd-focus-thick rounded-md mb-lg"),children:(0,l.jsx)("span",{className:"ml-md thd-body-sm font-bold underline",children:null==U?void 0:null===(I=U.featuresBlock)||void 0===I?void 0:I.heading})}),(0,l.jsx)("div",{children:(0,l.jsx)(v.Z,{className:b().pricingCheck,children:null==U?void 0:null===(P=U.featuresBlock)||void 0===P?void 0:P.subhead})})]})]})]})})}var FeatureListItem=function(e){var n=e.listItem,t=n.feature,i=n.chip,r=n.tooltip,o=n.colorText;return(0,l.jsxs)("li",{className:"flex items-center mb-sm",children:[(0,l.jsx)("div",{children:(0,l.jsx)(u.Z,{className:"h-em inline-block mr-md"})}),(0,l.jsx)("p",{children:t}),i&&(0,l.jsx)("span",{className:"thd-overline text-thd-color-magenta-50 ml-sm",children:i}),r&&(0,l.jsx)(h.Z,{label:t,tooltip:r}),o&&(0,l.jsx)("span",{className:"thd-overline text-thd-color-magenta-50 ml-sm",children:o})]})},T=t(72253),C=t(52429);function CardContent(e){var n,t,i,o,a,d=e.plan,s=e.layered,u=e.themeColor,c=e.type,m=null!==(a=null==d?void 0:d.header)&&void 0!==a?a:d,h=s?"grey-light":u,v=null===(n=(0,p.b)(null!=h?h:"violet-light"))||void 0===n?void 0:n.bodyText;return(0,l.jsxs)(l.Fragment,{children:[(null==m?void 0:m.eyebrow)&&(0,l.jsx)("h3",{className:r()(null===(t=(0,p.b)(null!=h?h:"violet-light"))||void 0===t?void 0:t.headerText,"thd-heading-md mb-sm"),children:null==m?void 0:m.eyebrow}),(null==m?void 0:m.heading)&&(0,l.jsx)("p",{className:r()(null===(i=(0,p.b)(null!=h?h:"violet-light"))||void 0===i?void 0:i.bodyText,{standard:"thd-body-lg"}[c]),children:null==m?void 0:m.heading}),(null==m?void 0:m.subhead)&&(0,l.jsx)(C.Z,{className:r()(v,{standard:"thd-body-sm thd-list-dense mb-lg"}[c]),content:null==m?void 0:m.subhead}),(null==d?void 0:d.note)&&(0,l.jsx)("p",{className:r()(v,"font-bold thd-caption mb-lg max-w-ll-2xl"),children:d.note}),(null==d?void 0:d.cta)&&(0,l.jsx)(f.Z,{buttonType:"primary",className:null==d?void 0:null===(o=d.cta)||void 0===o?void 0:o.buttonStyle,color:"violet-dark",cta:null==d?void 0:d.cta,size:"lg",children:d.cta.copy})]})}function ThreadPlanCard(e){return(0,l.jsx)(CardContent,(0,T._)({},e))}function ThreadLayerPlate(e){var n,t,i=e.className,o=e.plan,a=e.themeColor,d=e.layered,s=e.type,u=d?"grey-light":a,c=null===(n=(0,p.b)(null!=u?u:"violet-light"))||void 0===n?void 0:n.bodyText,m={pricing:(0,l.jsx)(PricingCard,{bodyText:c,plan:o,themeColor:a,type:s}),standard:(0,l.jsx)(ThreadPlanCard,{bodyText:c,layered:d,plan:o,themeColor:a,type:s})}[s];return(0,l.jsx)("div",{className:r()(i,null===(t=(0,p.b)(null!=u?u:"violet-light"))||void 0===t?void 0:t.bg,"flex flex-col items-start","rounded-lg",{pricing:"flex-grow w-full max-w-screen-sm",standard:d?"thd-card-float":"thd-card-flat max-w-screen-sm"}[s]),children:m})}ThreadLayerPlate.propTypes={className:a().string,layered:a().bool,themeColor:a().string,type:a().oneOf(["pricing","standard"]).isRequired,plan:a().shape({title:a().string,description:a().string,price:a().string,buttonText:a().string,features:a().arrayOf(a().string)}).isRequired},ThreadLayerPlate.defaultProps={color:"violet-dark",size:"lg",buttonType:"primary",themeColor:"violet-light",type:"standard"}},3431:function(e,n,t){"use strict";t.d(n,{E3:function(){return r},NL:function(){return d},QT:function(){return i},YN:function(){return a},Zk:function(){return s},cx:function(){return o},yN:function(){return l}});var l=[{planName:"Starter",offeringSku:"loom-free-sku"},{planName:"Business",offeringSku:"loom-business-sku"},{planName:"Business + AI",offeringSku:"loom-business-ai-sku"},{planName:"Enterprise",offeringSku:"loom-enterprise-sku"}],i="USD",r={unitCount:0,billingCycle:"MONTHLY",priceCalcs:[],currencyISOCode:"USD",showCalculator:!1,prices:{}},o={UNIT_LIMIT_FREE:10,UNIT_LIMIT:15e4,UNIT_MIN_ENTERPRISE:801},a={FIXED_COST:"FIXED_COST",MARGINAL_PER_UNIT:"MARGINAL_PER_UNIT",PER_UNIT:"PER_UNIT"},d={FREE:"Free",STARTER:"Starter",STANDARD:"Standard",PREMIUM:"Premium",ENTERPRISE:"Enterprise"},s=5e4;l.map(function(e){return e.offeringSku}).filter(Boolean)},79051:function(e,n,t){"use strict";t.d(n,{a:function(){return s},O:function(){return c}});var l={};t.r(l),t.d(l,{updateBillingCycle:function(){return updateBillingCycle},updatePriceCalcs:function(){return updatePriceCalcs},updateShowCalculator:function(){return updateShowCalculator},updateUnitCount:function(){return updateUnitCount}});var i=t(72253),r=t(62526),o=t(35946),a=t(2588),updateUnitCount=function(e){return function(n){(0,n.setState)({unitCount:e})}},updateBillingCycle=function(e){return function(n){(0,n.setState)({billingCycle:e})}},updatePriceCalcs=function(e){return function(n){(0,n.setState)({priceCalcs:e})}},updateShowCalculator=function(e){return function(n){(0,n.setState)({showCalculator:e})}},d=t(3431),s=(0,r.f)(),u=(0,o.M)({containedBy:s,name:"price-finder",initialState:d.E3,actions:l,handlers:{onInit:function(){return function(e,n){(0,e.setState)((0,i._)({},n))}}}}),c=(0,a.Bi)(u)},24611:function(e,n,t){"use strict";t.d(n,{Px:function(){return getFormattedUnitAmount},_B:function(){return getFormattedPrice},yy:function(){return getTwoDigitFormattedPrice}});var getNumFracDigits=function(e){return null==e||Number.isNaN(e)?0:Number.isInteger(+e)?0:2},fmtCurrencyValue=function(e,n,t){return new Intl.NumberFormat("en-US",{style:"currency",currency:e,minimumFractionDigits:t?2:getNumFracDigits(n),maximumFractionDigits:t?2:getNumFracDigits(n)}).format(n||0)},getFormattedPrice=function(e,n){return fmtCurrencyValue(e,n,!1)},getTwoDigitFormattedPrice=function(e,n){return fmtCurrencyValue(e,n,!0)},getFormattedUnitAmount=function(e,n){return new Intl.NumberFormat(e).format(n||0)}},79637:function(e){e.exports={focusOverride:"ThreadTooltip_focusOverride__8W_pJ"}}}]);