(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[917],{25633:function(e,l,d){"use strict";d.d(l,{Z:function(){return ThreadTooltip}});var n=d(85893),i=d(47592),t=d(67658),o=d(93967),a=d.n(o),r=d(25935),s=d(33322),c=d(84834),u=d(79637),h=d.n(u);function ThreadTooltip(e){var l,d,o=e.color,u=e.position,m=void 0===u?"inline":u,v=e.label,b=e.tooltip;if(!b)return null;var x=(0,c.Z)(v.toString());return(0,n.jsx)("div",{className:a()(h().focusOverride,m,"ml-[.25em]"),id:x,style:{"--offset":"inline"===m?"4px":"0"},children:(0,n.jsx)(t.ZP,{container:function(){return document.querySelector("#".concat(x))},content:null!==(d=(0,r.ZP)(b))&&void 0!==d?d:void 0,isInline:!0,keepOpen:!0,children:(0,n.jsx)(i.Z,{className:a()(null===(l=(0,s.b)(null!=o?o:"violet-light"))||void 0===l?void 0:l.iconAccent,"block"),height:"1em",width:"1em"})})})}},65191:function(e,l,d){"use strict";d.d(l,{Z:function(){return ThreadLayerPlate}});var n=d(85893),i=d(93967),t=d.n(i),o=d(45697),a=d.n(o),r=d(97437),s=d(95429),c=d(47675),u=d(30587),h=d(25633),m=d(62169),v=d(99577),b=d(33322),x=d(75731),p=d.n(x);function PricingCard(e){var l,d,i,o,a,r,x,g,y,f,j,N,T,C,w,k,Z,F=e.bodyText,P=e.plan,O=e.themeColor,I=e.type,S=null==P?void 0:null===(l=P.header)||void 0===l?void 0:l.eyebrow.includes("Business"),_=null==P?void 0:null===(d=P.header)||void 0===d?void 0:d.eyebrow.includes("AI"),L=(0,u.ZP)("(min-width: 1024px)"),z=P.packages&&P.packages[0].prices.find(function(e){return"usd"===e.currency}),D=new Intl.NumberFormat("en-US",{style:"currency",currency:"usd",minimumFractionDigits:2}),R=(null==z?void 0:z.monthly)&&"".concat(D.format(z.monthly)," USD per Creator mo (when paying month to month)"),B={"--button-color-fr":null===(i=(0,b.b)(O))||void 0===i?void 0:i.buttonFg,"--focus-color-bg":"transparent","--focus-color-fg":"initial"};return(0,n.jsx)("div",{className:t()(_?p().aiCardGradient:"border border-blurple-medium","p-fluid-base h-full w-full rounded-lg"),children:(0,n.jsxs)("div",{className:"relative z-10",children:[(null==P?void 0:null===(o=P.header)||void 0===o?void 0:o.eyebrow)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"lg:h-[34px]",children:_&&(0,n.jsx)("div",{className:"mb-8",children:(0,n.jsx)(c.Z,{color:"grey8",backgroundColor:"blurpleMedium",children:"MOST POPULAR"})})}),(0,n.jsxs)("h2",{className:t()(null===(a=(0,b.b)(null!=O?O:"violet-light"))||void 0===a?void 0:a.headerText,L?"thd-heading-md":"thd-heading-lg","mb-sm"),children:[P.header.eyebrow,_&&(0,n.jsx)("span",{className:"absolute -mt-[.025em] ml-[.125em]",children:(0,n.jsx)(s.Z,{brand:"ai",variant:"symbol",maxWidth:".5em"})})]})]}),(null==P?void 0:null===(r=P.header)||void 0===r?void 0:r.heading)&&(0,n.jsx)("p",{className:t()(null===(x=(0,b.b)(null!=O?O:"violet-light"))||void 0===x?void 0:x.bodyText,"mb-lg lg:min-h-[96px]",L?"thd-body-md":"thd-body-lg"),children:P.header.heading}),(null==P?void 0:P.note)&&(0,n.jsx)("p",{className:t()(F,"font-bold thd-caption mb-lg max-w-ll-2xl"),children:P.note}),(0,n.jsxs)("div",{className:"flex items-center mb-2xl",children:[S?null:(0,n.jsx)("span",{className:t()(null===(g=(0,b.b)(null!=O?O:"violet-light"))||void 0===g?void 0:g.headerText,L?"thd-heading-sm":"thd-heading-md"),children:null==P?void 0:null===(y=P.priceSection)||void 0===y?void 0:y.price}),S&&z&&(0,n.jsx)("span",{className:t()(null===(f=(0,b.b)(null!=O?O:"violet-light"))||void 0===f?void 0:f.headerText,L?"thd-heading-sm":"thd-heading-md"),children:D.format(z.annual/12)}),z?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:"thd-caption ml-sm",children:["USD/user/mo ",(0,n.jsx)("br",{}),"(billed annually)",(0,n.jsx)(h.Z,{label:R,tooltip:R})]})}):null]}),(null==P?void 0:P.cta)?(0,n.jsx)(v.Z,{buttonType:"primary",className:"mb-2xl",color:"pricing"!==I||_?"violet-dark":"violet-light",cta:null==P?void 0:P.cta,size:"lg",children:null==P?void 0:null===(j=P.cta)||void 0===j?void 0:j.copy}):void 0,(null==P?void 0:P.keyFeaturesList)&&(0,n.jsx)("p",{className:"font-bold mb-fixed-sm",children:"Includes:"}),(0,n.jsxs)("div",{className:t()(null===(N=(0,b.b)(null!=O?O:"violet-light"))||void 0===N?void 0:N.headerText,"w-full"),children:[(null==P?void 0:P.keyFeaturesHeading)&&(0,n.jsx)("p",{className:"font-bold mb-fixed-sm",children:P.keyFeaturesHeading}),(0,n.jsx)("ul",{className:"thd-body-sm mb-lg thd-body-sm",children:null==P?void 0:null===(T=P.checklist)||void 0===T?void 0:T.map(function(e,l){return(0,n.jsx)(FeatureListItem,{listItem:e},l)})}),(null==P?void 0:P.featuresBlock)&&(0,n.jsxs)("details",{className:t()(null===(C=(0,b.b)(null!=O?O:"violet-light"))||void 0===C?void 0:C.headerText,"thd-details thd-rounded-int cursor-pointer lg:hidden"),style:B,children:[(0,n.jsx)("summary",{className:t()(null===(w=(0,b.b)(null!=O?O:"violet-light"))||void 0===w?void 0:w.headerText,"thd-focus-thick rounded-md mb-lg"),children:(0,n.jsx)("span",{className:"ml-md thd-body-sm font-bold underline",children:null==P?void 0:null===(k=P.featuresBlock)||void 0===k?void 0:k.heading})}),(0,n.jsx)("div",{children:(0,n.jsx)(m.Z,{className:p().pricingCheck,children:null==P?void 0:null===(Z=P.featuresBlock)||void 0===Z?void 0:Z.subhead})})]})]})]})})}var FeatureListItem=function(e){var l=e.listItem,d=l.feature,i=l.chip,t=l.tooltip,o=l.colorText;return(0,n.jsxs)("li",{className:"flex items-center mb-sm",children:[(0,n.jsx)("div",{children:(0,n.jsx)(r.Z,{className:"h-em inline-block mr-md"})}),(0,n.jsx)("p",{children:d}),i&&(0,n.jsx)("span",{className:"thd-overline text-thd-color-magenta-50 ml-sm",children:i}),t&&(0,n.jsx)(h.Z,{label:d,tooltip:t}),o&&(0,n.jsx)("span",{className:"thd-overline text-thd-color-magenta-50 ml-sm",children:o})]})},g=d(72253),y=d(80189),f=d(2291);function DoubleCardContent(e){var l,d,i,o,a,r,s,c,u,h,m=e.plan,x=e.layered,p=e.themeColor,g=e.type,y={"education-header":"thd-heading-md text-center mx-auto",standard:"thd-body-lg"}[g],j={"education-header":"thd-body-md text-center",standard:"thd-body-sm thd-list-dense mb-lg"}[g],N=x?"grey-10":p;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"border-thd-color-violet-20 border-b pb-fixed-4xl mb-fixed-4xl w-full",children:[(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(f.Z,{bClassName:j,bFont:"sm",className:"mb-md",gap:"mb-md",hClassName:y,hFont:"xs",header:null==m?void 0:m.headerOne,nested:!0,number:(0,n.jsx)("span",{className:t()(null===(l=(0,b.b)(N))||void 0===l?void 0:l.bgInverse,"thd-circle-number thd-heading-xs text-white"),children:"1"}),themeColor:N})}),(null==m?void 0:m.ctaOne)&&(0,n.jsx)(v.Z,{buttonType:"secondary",className:null==m?void 0:null===(d=m.cta)||void 0===d?void 0:d.buttonStyle,color:"violet-light",cta:null==m?void 0:m.ctaOne,icon:null!==(u=null==m?void 0:null===(o=m.ctaOne)||void 0===o?void 0:null===(i=o.iconRef)||void 0===i?void 0:i.icon)&&void 0!==u?u:void 0,size:"md",children:m.ctaOne.copy})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(f.Z,{bClassName:j,bFont:"sm",className:"mb-xl",gap:"mb-md",hClassName:y,hFont:"xs",header:null==m?void 0:m.headerTwo,nested:!0,number:(0,n.jsx)("span",{className:t()(null===(a=(0,b.b)(N))||void 0===a?void 0:a.bgInverse,"thd-circle-number text-white"),children:"2"}),themeColor:N}),(null==m?void 0:m.ctaTwo)&&(0,n.jsx)(v.Z,{buttonType:"secondary",className:null==m?void 0:null===(r=m.cta)||void 0===r?void 0:r.buttonStyle,color:"violet-light",cta:null==m?void 0:m.ctaTwo,icon:null!==(h=null==m?void 0:null===(c=m.ctaTwo)||void 0===c?void 0:null===(s=c.iconRef)||void 0===s?void 0:s.icon)&&void 0!==h?h:void 0,iconPosition:"right",size:"md",children:m.ctaTwo.copy})]})]})}function CardContent(e){var l,d,i,o,a,r=e.plan,s=e.layered,c=e.themeColor,u=e.type,h=null!==(a=null==r?void 0:r.header)&&void 0!==a?a:r,m=s?"grey-light":c,x=null===(l=(0,b.b)(null!=m?m:"violet-light"))||void 0===l?void 0:l.bodyText;return(0,n.jsxs)(n.Fragment,{children:[(null==h?void 0:h.eyebrow)&&(0,n.jsx)("h3",{className:t()(null===(d=(0,b.b)(null!=m?m:"violet-light"))||void 0===d?void 0:d.headerText,"thd-heading-md mb-sm"),children:null==h?void 0:h.eyebrow}),(null==h?void 0:h.heading)&&(0,n.jsx)("p",{className:t()(null===(i=(0,b.b)(null!=m?m:"violet-light"))||void 0===i?void 0:i.bodyText,{"education-header":"mt-fluid-sm thd-heading-md lg:text-center lg:mx-auto mb-xl",standard:"thd-body-lg"}[u]),children:null==h?void 0:h.heading}),(null==h?void 0:h.subhead)&&(0,n.jsx)(y.Z,{className:t()(x,{"education-header":"mb-fluid-sm thd-body-md lg:text-center thd-max-xl",standard:"thd-body-sm thd-list-dense mb-lg"}[u]),content:null==h?void 0:h.subhead}),(null==r?void 0:r.note)&&(0,n.jsx)("p",{className:t()(x,"font-bold thd-caption mb-lg max-w-ll-2xl"),children:r.note}),(null==r?void 0:r.cta)&&(0,n.jsx)(v.Z,{buttonType:"primary",className:null==r?void 0:null===(o=r.cta)||void 0===o?void 0:o.buttonStyle,color:"violet-dark",cta:null==r?void 0:r.cta,size:"lg",children:r.cta.copy})]})}function ThreadPlanCard(e){return(null==e?void 0:e.type)==="education-steps"?(0,n.jsx)(DoubleCardContent,(0,g._)({},e)):(0,n.jsx)(CardContent,(0,g._)({},e))}function ThreadLayerPlate(e){var l,d,i=e.className,o=e.plan,a=e.themeColor,r=e.layered,s=e.type,c=r?"grey-light":a,u=null===(l=(0,b.b)(null!=c?c:"violet-light"))||void 0===l?void 0:l.bodyText,h={pricing:(0,n.jsx)(PricingCard,{bodyText:u,plan:o,themeColor:a,type:s}),"education-header":(0,n.jsx)(ThreadPlanCard,{layered:r,plan:o,themeColor:a,type:s}),"education-steps":(0,n.jsx)(ThreadPlanCard,{layered:r,plan:o,themeColor:a,type:s}),standard:(0,n.jsx)(ThreadPlanCard,{bodyText:u,layered:r,plan:o,themeColor:a,type:s})}[s];return(0,n.jsx)("div",{className:t()(i,null===(d=(0,b.b)(null!=c?c:"violet-light"))||void 0===d?void 0:d.bg,"flex flex-col items-start","rounded-lg",{pricing:"flex-grow w-full max-w-screen-sm",standard:r?"thd-card-float":"thd-card-flat max-w-screen-sm","education-steps":r?"thd-card-float":"thd-card-flat","education-header":r?"thd-card-float":"thd-card-flat"}[s]),children:h})}ThreadLayerPlate.propTypes={className:a().string,layered:a().bool,themeColor:a().string,type:a().oneOf(["pricing","standard","education","education-header","education-steps"]).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"}},79637:function(e){e.exports={focusOverride:"ThreadTooltip_focusOverride__8W_pJ"}}}]);