(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4949],{34965:function(e,l,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/enterprise",function(){return n(45603)}])},80868:function(e,l,n){"use strict";var t=n(67294);l.Z=function(e){return t.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},e),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 011-1h14a1 1 0 110 2H5a1 1 0 01-1-1z",fill:"currentColor"}),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.293 7.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L17.586 12l-3.293-3.293a1 1 0 010-1.414z",fill:"currentColor"}))}},34237:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadTooltip}});var t=n(85893),i=n(47592),o=n(67658),a=n(93967),r=n.n(a),d=n(25935),s=n(33322),c=n(84834),u=n(79637),m=n.n(u);function ThreadTooltip(e){var l,n,a=e.color,u=e.position,h=void 0===u?"inline":u,v=e.label,g=e.tooltip;if(!g)return null;var x=(0,c.Z)(v.toString());return(0,t.jsx)("div",{className:r()(m().focusOverride,h,"ml-[.25em]"),id:x,style:{"--offset":"inline"===h?"4px":"0"},children:(0,t.jsx)(o.ZP,{container:function(){return document.querySelector("#".concat(x))},content:null!==(n=(0,d.ZP)(g))&&void 0!==n?n:void 0,isInline:!0,keepOpen:!0,children:(0,t.jsx)(i.Z,{className:r()(null===(l=(0,s.b)(null!=a?a:"violet-light"))||void 0===l?void 0:l.iconAccent,"block"),height:"1em",width:"1em"})})})}},30867:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadByline}});var t=n(85893),i=n(93967),o=n.n(i),a=n(45697),r=n.n(a),d=n(96184),s=n(33322),c={press:"justify-center","stand-alone":"md:justify-center",carousel:"md:justify-center",tweets:"justify-start",learn:"justify-start mb-fixed-xl"};function ThreadByline(e){var l,n,i,a,r,u,m,h,v=e.bColor,g=e.byline,x=e.hideAvatar,f=e.hideTitle,p=e.transparent,b=e.themeColor,y=e.layout,j=c[y],w=!p&&(!(null==g?void 0:null===(n=g.avatar)||void 0===n?void 0:null===(l=n.asset)||void 0===l?void 0:l.url)||x);return(0,t.jsxs)("figcaption",{className:o()(null!=v?v:null===(i=(0,s.b)(b))||void 0===i?void 0:i.bodyText,j,p?"text-center justify-center":void 0,w?"md:text-center":void 0,"flex w-full items-center gap-md"),children:[(null==g?void 0:null===(r=g.avatar)||void 0===r?void 0:null===(a=r.asset)||void 0===a?void 0:a.url)&&!x&&(0,t.jsx)(d.Z,{altText:null!==(h=null==g?void 0:null===(u=g.avatar)||void 0===u?void 0:u.altText)&&void 0!==h?h:null==g?void 0:null===(m=g.avatar)||void 0===m?void 0:m.name,className:"h-[44px] w-[44px] shrink-0 overflow-hidden rounded-full object-cover lg:h-64 lg:w-64",height:"64",image:null==g?void 0:g.avatar,layout:"fixed-width",width:"64"}),(0,t.jsxs)("p",{className:"tweets"===y?"text-left":"",children:[(null==g?void 0:g.name)&&"Anon"!==g.name&&(0,t.jsx)("span",{className:o()(null!=v?v:(0,s.b)(b).bodyText,"thd-body-sm thd-bold"),children:null==g?void 0:g.name}),!f&&(null==g?void 0:g.jobTitle)&&(0,t.jsxs)("span",{className:"thd-caption block",children:[null==g?void 0:g.jobTitle,(null==g?void 0:g.company)?", ".concat(null==g?void 0:g.company):void 0]})]})]})}ThreadByline.defaultProps={hideAvatar:!1,transparent:!1,layout:"carousel"},ThreadByline.propTypes={byline:r().oneOfType([r().string,r().object,r().func]),className:r().string,hideAvatar:r().bool,transparent:r().bool,layout:r().oneOf(Object.keys(c)).isRequired,themeColor:r().string}},19741:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadHero}});var t=n(85893),i=n(93967),o=n.n(i),a=n(45697),r=n.n(a),d=n(99577),s=n(2291);function ThreadHero(e){var l,n,i,a,r=e.ariaLabel,c=e.bgColor,u=e.bFont,m=e.bLineLength,h=e.bMaxWidth,v=e.chipBlock,g=e.className,x=e.content,f=e.cta,p=e.ctaSize,b=e.secondaryCta,y=e.ctaGap,j=void 0===y?"mb-xl":y,w=e.eColor,C=e.eStyle,N=e.gap,T=e.header,k=e.bClassName,_=e.hFont,L=e.hLevel,S=e.hLineLength,Z=e.hLink,A=e.hAppend,P=e.nested,F=e.themeColor,B=e.themeColorMode,E=e.isBtnStateEvaluated,M=T.eyebrow;return(0,t.jsxs)("section",{className:o()(g,c,"relative",M?"pt-fluid-sm":"pt-fluid-lg"),children:[(0,t.jsxs)("div",{className:o()("max-w-screen-3xl mx-auto flex flex-col h-full justify-center items-start md:items-center lg:text-center px-fluid-base relative z-10",x?"mb-fluid-sm":void 0),children:[(0,t.jsx)(s.Z,{bClassName:k,bFont:null!=u?u:"lg",bLineLength:null!=m?m:"3xl",bMaxWidth:null!=h?h:void 0,className:o()(f||x?j:void 0,"w-full whitespace-pre-line"),eColor:w,eStyle:C,gap:void 0===N?"mb-md":N,hAlign:"center-end",hAppend:A,hFont:null!=_?_:"xl",hLevel:null!=L?L:"h1",hLineLength:null!=S?S:"lg",hLink:Z,header:T,nested:P,themeColor:F,themeColorMode:B,vAlign:"center"}),v,(0,t.jsx)("div",{className:"justify-start flex flex-wrap gap-lg items-center md:h-[75px] lg:h-[100px]",children:(void 0===E||E)&&(0,t.jsxs)(t.Fragment,{children:[f&&(0,t.jsx)("div",{children:(0,t.jsx)(d.Z,{align:"center",ariaLabel:r,buttonType:"primary",color:"violet-dark",cta:f,icon:null!==(i=null==f?void 0:null===(l=f.iconRef)||void 0===l?void 0:l.icon)&&void 0!==i?i:void 0,size:p||"lg",themeColor:F})}),b&&(0,t.jsx)("div",{children:(0,t.jsx)(d.Z,{color:"violet-light",cta:b,icon:null!==(a=null==b?void 0:null===(n=b.iconRef)||void 0===n?void 0:n.icon)&&void 0!==a?a:void 0,size:p||"lg",themeColor:F,iconGap:"gap-[.5em]",openInNewTab:null==b?void 0:b.openInNewTab})})]})})]}),x]})}ThreadHero.propTypes={ariaLabel:r().string,bgColor:r().string,bFont:r().string,bLineLength:r().string,bMaxWidth:r().string,chipBlock:r().object,className:r().string,content:r().oneOfType([r().object,r().func]),cta:r().object,ctaSize:r().string,secondaryCta:r().object,ctaGap:r().string,eColor:r().string,eStyle:r().string,gap:r().string,header:r().object,bClassName:r().string,hFont:r().string,hLevel:r().string,hLineLength:r().string,hLink:r().string,hAppend:r().string,nested:r().bool,themeColor:r().string,themeColorMode:r().string,isBtnStateEvaluated:r().bool}},65191:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadLayerPlate}});var t=n(85893),i=n(93967),o=n.n(i),a=n(45697),r=n.n(a),d=n(97437),s=n(95429),c=n(47675),u=n(30587),m=n(34237),h=n(62169),v=n(99577),g=n(33322),x=n(75731),f=n.n(x);function PricingCard(e){var l,n,i,a,r,d,x,p,b,y,j,w,C,N,T,k,_,L=e.bodyText,S=e.plan,Z=e.themeColor,A=e.type,P=null==S?void 0:null===(l=S.header)||void 0===l?void 0:l.eyebrow.includes("Business"),F=null==S?void 0:null===(n=S.header)||void 0===n?void 0:n.eyebrow.includes("AI"),B=(0,u.ZP)("(min-width: 1024px)"),E=S.packages&&S.packages[0].prices.find(function(e){return"usd"===e.currency}),M=new Intl.NumberFormat("en-US",{style:"currency",currency:"usd",minimumFractionDigits:2}),z=(null==E?void 0:E.monthly)&&"".concat(M.format(E.monthly)," USD per Creator mo (when paying month to month)"),W={"--button-color-fr":null===(i=(0,g.b)(Z))||void 0===i?void 0:i.buttonFg,"--focus-color-bg":"transparent","--focus-color-fg":"initial"};return(0,t.jsx)("div",{className:o()(F?f().aiCardGradient:"border border-blurple-medium","p-fluid-base h-full w-full rounded-lg"),children:(0,t.jsxs)("div",{className:"relative z-10",children:[(null==S?void 0:null===(a=S.header)||void 0===a?void 0:a.eyebrow)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"lg:h-[34px]",children:F&&(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)(c.Z,{color:"grey8",backgroundColor:"blurpleMedium",children:"MOST POPULAR"})})}),(0,t.jsxs)("h2",{className:o()(null===(r=(0,g.b)(null!=Z?Z:"violet-light"))||void 0===r?void 0:r.headerText,B?"thd-heading-md":"thd-heading-lg","mb-sm"),children:[S.header.eyebrow,F&&(0,t.jsx)("span",{className:"absolute -mt-[.025em] ml-[.125em]",children:(0,t.jsx)(s.Z,{brand:"ai",variant:"symbol",maxWidth:".5em"})})]})]}),(null==S?void 0:null===(d=S.header)||void 0===d?void 0:d.heading)&&(0,t.jsx)("p",{className:o()(null===(x=(0,g.b)(null!=Z?Z:"violet-light"))||void 0===x?void 0:x.bodyText,"mb-lg lg:min-h-[96px]",B?"thd-body-md":"thd-body-lg"),children:S.header.heading}),(null==S?void 0:S.note)&&(0,t.jsx)("p",{className:o()(L,"font-bold thd-caption mb-lg max-w-ll-2xl"),children:S.note}),(0,t.jsxs)("div",{className:"flex items-center mb-2xl",children:[P?null:(0,t.jsx)("span",{className:o()(null===(p=(0,g.b)(null!=Z?Z:"violet-light"))||void 0===p?void 0:p.headerText,B?"thd-heading-sm":"thd-heading-md"),children:null==S?void 0:null===(b=S.priceSection)||void 0===b?void 0:b.price}),P&&E&&(0,t.jsx)("span",{className:o()(null===(y=(0,g.b)(null!=Z?Z:"violet-light"))||void 0===y?void 0:y.headerText,B?"thd-heading-sm":"thd-heading-md"),children:M.format(E.annual/12)}),E?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("span",{className:"thd-caption ml-sm",children:["USD/user/mo ",(0,t.jsx)("br",{}),"(billed annually)",(0,t.jsx)(m.Z,{label:z,tooltip:z})]})}):null]}),(null==S?void 0:S.cta)?(0,t.jsx)(v.Z,{buttonType:"primary",className:"mb-2xl",color:"pricing"!==A||F?"violet-dark":"violet-light",cta:null==S?void 0:S.cta,size:"lg",children:null==S?void 0:null===(j=S.cta)||void 0===j?void 0:j.copy}):void 0,(null==S?void 0:S.keyFeaturesList)&&(0,t.jsx)("p",{className:"font-bold mb-fixed-sm",children:"Includes:"}),(0,t.jsxs)("div",{className:o()(null===(w=(0,g.b)(null!=Z?Z:"violet-light"))||void 0===w?void 0:w.headerText,"w-full"),children:[(null==S?void 0:S.keyFeaturesHeading)&&(0,t.jsx)("p",{className:"font-bold mb-fixed-sm",children:S.keyFeaturesHeading}),(0,t.jsx)("ul",{className:"thd-body-sm mb-lg thd-body-sm",children:null==S?void 0:null===(C=S.checklist)||void 0===C?void 0:C.map(function(e,l){return(0,t.jsx)(FeatureListItem,{listItem:e},l)})}),(null==S?void 0:S.featuresBlock)&&(0,t.jsxs)("details",{className:o()(null===(N=(0,g.b)(null!=Z?Z:"violet-light"))||void 0===N?void 0:N.headerText,"thd-details thd-rounded-int cursor-pointer lg:hidden"),style:W,children:[(0,t.jsx)("summary",{className:o()(null===(T=(0,g.b)(null!=Z?Z:"violet-light"))||void 0===T?void 0:T.headerText,"thd-focus-thick rounded-md mb-lg"),children:(0,t.jsx)("span",{className:"ml-md thd-body-sm font-bold underline",children:null==S?void 0:null===(k=S.featuresBlock)||void 0===k?void 0:k.heading})}),(0,t.jsx)("div",{children:(0,t.jsx)(h.Z,{className:f().pricingCheck,children:null==S?void 0:null===(_=S.featuresBlock)||void 0===_?void 0:_.subhead})})]})]})]})})}var FeatureListItem=function(e){var l=e.listItem,n=l.feature,i=l.chip,o=l.tooltip,a=l.colorText;return(0,t.jsxs)("li",{className:"flex items-center mb-sm",children:[(0,t.jsx)("div",{children:(0,t.jsx)(d.Z,{className:"h-em inline-block mr-md"})}),(0,t.jsx)("p",{children:n}),i&&(0,t.jsx)("span",{className:"thd-overline text-thd-color-magenta-50 ml-sm",children:i}),o&&(0,t.jsx)(m.Z,{label:n,tooltip:o}),a&&(0,t.jsx)("span",{className:"thd-overline text-thd-color-magenta-50 ml-sm",children:a})]})},p=n(72253),b=n(52429);function CardContent(e){var l,n,i,a,r,d=e.plan,s=e.layered,c=e.themeColor,u=e.type,m=null!==(r=null==d?void 0:d.header)&&void 0!==r?r:d,h=s?"grey-light":c,x=null===(l=(0,g.b)(null!=h?h:"violet-light"))||void 0===l?void 0:l.bodyText;return(0,t.jsxs)(t.Fragment,{children:[(null==m?void 0:m.eyebrow)&&(0,t.jsx)("h3",{className:o()(null===(n=(0,g.b)(null!=h?h:"violet-light"))||void 0===n?void 0:n.headerText,"thd-heading-md mb-sm"),children:null==m?void 0:m.eyebrow}),(null==m?void 0:m.heading)&&(0,t.jsx)("p",{className:o()(null===(i=(0,g.b)(null!=h?h:"violet-light"))||void 0===i?void 0:i.bodyText,{standard:"thd-body-lg"}[u]),children:null==m?void 0:m.heading}),(null==m?void 0:m.subhead)&&(0,t.jsx)(b.Z,{className:o()(x,{standard:"thd-body-sm thd-list-dense mb-lg"}[u]),content:null==m?void 0:m.subhead}),(null==d?void 0:d.note)&&(0,t.jsx)("p",{className:o()(x,"font-bold thd-caption mb-lg max-w-ll-2xl"),children:d.note}),(null==d?void 0:d.cta)&&(0,t.jsx)(v.Z,{buttonType:"primary",className:null==d?void 0:null===(a=d.cta)||void 0===a?void 0:a.buttonStyle,color:"violet-dark",cta:null==d?void 0:d.cta,size:"lg",children:d.cta.copy})]})}function ThreadPlanCard(e){return(0,t.jsx)(CardContent,(0,p._)({},e))}function ThreadLayerPlate(e){var l,n,i=e.className,a=e.plan,r=e.themeColor,d=e.layered,s=e.type,c=d?"grey-light":r,u=null===(l=(0,g.b)(null!=c?c:"violet-light"))||void 0===l?void 0:l.bodyText,m={pricing:(0,t.jsx)(PricingCard,{bodyText:u,plan:a,themeColor:r,type:s}),standard:(0,t.jsx)(ThreadPlanCard,{bodyText:u,layered:d,plan:a,themeColor:r,type:s})}[s];return(0,t.jsx)("div",{className:o()(i,null===(n=(0,g.b)(null!=c?c:"violet-light"))||void 0===n?void 0:n.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:r().string,layered:r().bool,themeColor:r().string,type:r().oneOf(["pricing","standard"]).isRequired,plan:r().shape({title:r().string,description:r().string,price:r().string,buttonText:r().string,features:r().arrayOf(r().string)}).isRequired},ThreadLayerPlate.defaultProps={color:"violet-dark",size:"lg",buttonType:"primary",themeColor:"violet-light",type:"standard"}},60956:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadPlateSingle}});var t=n(85893),i=n(93967),o=n.n(i),a=n(45697),r=n.n(a),d=n(30587);function ThreadPlateSingle(e){var l=e.className,n=e.contentBlock,i=e.contentAlign,a=e.mediaBlock,r=e.headerBlock,s=e.layout,c="top"===i,u="right"===i,m=(0,d.ZP)("(min-width: 768px)"),h=(0,t.jsxs)("div",{className:o()(l,{top:"grid gap-fluid-sm",right:"grid gap-fluid-sm items-center",left:"grid gap-fluid-sm items-center"}[i]),children:[(0,t.jsxs)("div",{className:{right:a?"grid lg:grid-cols-2 items-center mx-auto gap-fluid-sm":null,left:a?"grid lg:grid-cols-2 items-center mx-auto gap-fluid-sm ":null,top:a?"grid w-full mx-auto gap-fluid-sm":null}[i],children:[(u||c)&&r,a,"left"===i&&!c&&r]}),n]}),v=(0,t.jsxs)("div",{className:o()(l,{right:a?"grid lg:grid-cols-2 items-center justify-stretch gap-fluid-sm":null,left:a?"grid lg:grid-cols-2 items-center justify-stretch gap-fluid-sm":null}[i]),children:[!u&&m&&a,(0,t.jsxs)("div",{className:{right:n?"lg:p-fluid-sm flex flex-col mx-auto lg:mx-0 gap-fixed-lg":null,left:n?"lg:p-fluid-sm flex flex-col mx-auto lg:mx-0 gap-fixed-lg":null}[i],children:[r,n]}),(u||!m)&&a]});return(0,t.jsx)(t.Fragment,{children:"horizontal"===s?h:v})}ThreadPlateSingle.defaultProps={contentAlign:"left",layout:"vertical"},ThreadPlateSingle.propTypes={className:r().string,contentAlign:r().string,contentBlock:r().node,headerBlock:r().node,layout:r().oneOf(["horizontal","vertical"]),mediaBlock:r().node}},16032:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadStatCards}});var t=n(85893),i=n(93967),o=n.n(i),a=n(34297),r=n(72917),d=n(33586),s=n(33322),c=n(55395),u=n(13608),m=n(26943);function ThreadStatCard(e){var l,n,i,h,v,g,x,f,p,b,y,j,w=e.align,C=e.bColor,N=e.bLineLength,T=e.border,k=e.bgColor,_=e.bFont,L=e.description,S=e.formattedDescription,Z=e.hFont,A=e.icon,P=e.logo,F=e.percentage,B=e.plate,E=e.hStyles,M=e.splitPlate,z=e.themeColor,W=null==P?void 0:null===(h=P.image)||void 0===h?void 0:null===(i=h.asset)||void 0===i?void 0:null===(n=i.metadata)||void 0===n?void 0:null===(l=n.dimensions)||void 0===l?void 0:l.aspectRatio,R=(0,r.Z)(80,30,{aspectRatio:W,type:"horizontal-optimized"}),I=R.width,q=R.height,H={center:"text-center mx-auto",split:"items-start col-span-2 block w-full md:col-span-3 2xl:thd-max-2xl"}[w];return(0,t.jsxs)("div",{className:o()(k,{left:"md:border-l-[3px] pl-fixed-xl md:border-thd-color-violet-light-border"}[T],{start:"justify-start",center:"justify-center items-center w-auto text-center",split:"flex flex-wrap md:grid md:grid-cols-4 items-center gap-fixed-md"}[w],B?"rounded-lg flex flex-col p-md py-xl lg:p-xl shrink":void 0,"mx-auto"),style:{"--filter-color":null===(v=(0,s.b)(z))||void 0===v?void 0:v.logoFilter,"--logo-height":P?q+"px":void 0,"--logo-width":P?I+"px":void 0},children:[(0,t.jsxs)("div",{className:{start:"mb-sm flex items-center",center:"mb-sm flex justify-center items-center",split:null}[w],children:[A&&(0,t.jsx)(a.Z,{color:null===(g=(0,s.b)(null!=z?z:"violet-light"))||void 0===g?void 0:g.icon,icon:(0,d.q)(A),size:"3.5em"}),F&&(0,t.jsx)("span",{className:o()(null===(x=(0,s.b)(null!=z?z:"violet-light"))||void 0===x?void 0:x.headerText,(0,c.h)(null!=Z?Z:"xl").heading,E,M?o()(null===(f=(0,s.b)(null!=z?z:"violet-light"))||void 0===f?void 0:f.bgDark,"block rounded-md mx-auto px-sm md:px-0 py-md min-w-content md:min-w-none md:w-auto text-center"):void 0),children:F})]}),S?(0,t.jsxs)(t.Fragment,{children:[S.heading&&(0,t.jsx)("p",{className:o()(null!=C?C:null===(p=(0,s.b)(null!=z?z:"violet-light"))||void 0===p?void 0:p.bodyText,_,N,H,P?"mb-md lg:mb-xl":void 0,M?"max-content":void 0,"font-bold"),children:S.heading}),S.subhead&&(0,t.jsx)(m.u,{className:o()(null!=C?C:null===(b=(0,s.b)(null!=z?z:"violet-light"))||void 0===b?void 0:b.bodyText,_,N,H,P?"mb-md lg:mb-xl":void 0,M?"max-content":void 0),children:S.subhead})]}):L?(0,t.jsx)("p",{className:o()(null!=C?C:null===(y=(0,s.b)(null!=z?z:"violet-light"))||void 0===y?void 0:y.bodyText,_,N,H,P?"mb-md lg:mb-xl":void 0,M?"max-content":void 0),children:L}):null,(null==P?void 0:P.image)&&(0,t.jsx)("img",{alt:null!==(j=null==P?void 0:P.name)&&void 0!==j?j:"",className:"thd-filter thd-logo mx-auto w-full h-full",height:q,src:(0,u.ZP)(null==P?void 0:P.image).url(),width:I})]},L)}function ThreadStatCards(e){var l=e.align,n=void 0===l?"start":l,i=e.bColor,a=e.bFont,r=e.bgColor,d=e.border,s=e.bLineLength,c=e.className,u=e.hFont,m=e.hStyles,h=e.splitPlate,v=e.stats,g=e.themeColor,x=e.plate;return(0,t.jsx)("ul",{className:o()(c,{start:"justify-start gap-fluid-lg w-content",center:"justify-center mx-auto px-fluid-base gap-fixed-2xl lg:gap-fixed-4xl",split:"grid grid-cols-2 md:grid-cols-1 gap-fixed-2xl"}[n],"max-w-screen-xl",x?"gap-fixed-md lg:gap-x-fixed-4xl":void 0),children:null==v?void 0:v.map(function(e){var l;return(0,t.jsx)("li",{children:(0,t.jsx)(ThreadStatCard,{align:n,bColor:i,bFont:a,border:d,bLineLength:s,bgColor:r,change:null==e?void 0:e.change,description:null==e?void 0:e.description,formattedDescription:null==e?void 0:e.formattedDescription,hFont:u,icon:null==e?void 0:null===(l=e.icon)||void 0===l?void 0:l.icon,logo:null==e?void 0:e.logoType,percentage:null==e?void 0:e.percentage,plate:x,hStyles:m,splitPlate:h,themeColor:g})},null==e?void 0:e._key)})})}},12387:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadTestimonialCard}});var t=n(85893),i=n(93967),o=n.n(i),a=n(45697),r=n.n(a),d=n(55395);function TestimonialQuotation(e){var l=e.font,n=e.quotation,i=e.lineLength,a=e.transparent;return(0,t.jsx)("blockquote",{className:o()((0,d.h)(l).heading,a?"text-center":"md:text-center","thd-quote py-lg",i?"thd-max-".concat(i):"thd-max-2xl"),children:n})}var s=n(99577),c=n(30867),u=n(72917),m=n(33322),h=n(13608),v=n(84834);function ThreadTestimonialCard(e){var l,n,i,a,r,d,g,x,f,p=e.card,b=e.caseStudy,y=e.className,j=e.font,w=e.hideAvatar,C=e.hideLogos,N=e.themeColor,T=e.themeColorMode,k="white"===N,_=null==p?void 0:null===(a=p.logo)||void 0===a?void 0:null===(i=a.image)||void 0===i?void 0:null===(n=i.asset)||void 0===n?void 0:null===(l=n.metadata)||void 0===l?void 0:l.dimensions,L=null==_?void 0:_.aspectRatio,S=(0,u.Z)(90,30,{aspectRatio:L,type:"horizontal-optimized"}),Z=S.width,A=S.height,P="".concat(N,"-").concat({dark:"90",light:"10"}[T]),F="".concat(N,"-").concat({dark:"10",light:"90"}[T]);return(0,t.jsx)("figure",{className:o()(y,(0,m.b)(P).headerText,(0,m.b)(P).bg,"mx-auto thd-rounded-static",!k&&"p-fluid-sm lg:p-fluid-lg"),children:(0,t.jsxs)("div",{className:o()(k?"items-center":"md:items-center","flex flex-col justify-center md:h-full md:px-0"),style:{"--filter-color":null===(r=(0,m.b)(P))||void 0===r?void 0:r.logoFilter,"--logo-height":A?A+"px":null,"--logo-width":Z?Z+"px":null},children:[b&&(null==p?void 0:p.byline)&&(0,t.jsx)(c.Z,{byline:null==p?void 0:p.byline,themeColor:P}),(null==p?void 0:null===(d=p.logo)||void 0===d?void 0:d.image)&&!b&&!C&&(0,t.jsx)("img",{alt:null==p?void 0:null===(g=p.byline)||void 0===g?void 0:g.company,className:"thd-filter thd-logo w-full h-full",height:A,src:(0,h.ZP)(null==p?void 0:null===(x=p.logo)||void 0===x?void 0:x.image).url(),width:Z,loading:"lazy"}),(null==p?void 0:p.quotation)&&(0,t.jsx)(TestimonialQuotation,{font:j,quotation:null==p?void 0:p.quotation,transparent:k}),!b&&(null==p?void 0:p.byline)&&(0,t.jsx)(c.Z,{byline:null==p?void 0:p.byline,hideAvatar:w,themeColor:P,transparent:k}),b&&(0,t.jsx)(s.Z,{buttonType:"secondary",color:F,cta:{link:"/customers/".concat((0,v.Z)(null==p?void 0:null===(f=p.byline)||void 0===f?void 0:f.company)),copy:"View Case Study"},size:"lg",type:"primary"})]})})}ThreadTestimonialCard.propTypes={card:r().object.isRequired,caseStudy:r().bool,className:r().string,font:r().string,hideAvatar:r().bool,hideLogos:r().bool,themeColor:r().string,themeColorMode:r().string},ThreadTestimonialCard.defaultProps={caseStudy:!1,themeColor:"violet",themeColorMode:"light",font:"xs"}},13736:function(e,l,n){"use strict";n.d(l,{Z:function(){return ThreadTestimonialCarousel}});var t=n(24043),i=n(85893),o=n(80868),a=n(45697),r=n.n(a),d=n(34297),s=n(93967),c=n.n(s),u=n(67294),m=n(12387),h=n(33322),v=n(22828),g=n.n(v);function ThreadTestimonialCarousel(e){var l,n=e.bgVar,a=e.cards,r=e.className,s=e.font,v=e.lineLength,x=e.themeColorMode,f=e.hideLogos,p=(0,t._)((0,u.useState)(1),2),b=p[0],y=p[1],j=(0,t._)((0,u.useState)(!0),2),w=j[0],C=j[1];(0,u.useEffect)(function(){(1===b||b===a.length)&&C(!0)},[b,1,a.length]);var prev=function(){b>0&&y(function(e){return e-1})},N={0:"violet",1:"blue",2:"magenta",3:"green",4:"violet",5:"blue",6:"magenta",7:"green",8:"violet",9:"blue",10:"magenta",11:"green"},T=u.cloneElement((0,i.jsx)(m.Z,{card:a[0],font:s,index:-1===b,themeColor:N[0],themeColorMode:x},"cloneFirst")),k=u.cloneElement((0,i.jsx)(m.Z,{card:a[a.length-1],font:s,index:b===a.length,prev:prev,style:{transform:"translate3d(-100%, 0, 0)"},themeColor:N[(null==a?void 0:a.length)-1],themeColorMode:x},"cloneLast")),handleTransitionEnd=function(){0===b?(C(!1),y(a.length)):b===a.length+1&&(C(!1),y(1))};return(0,i.jsx)("section",{className:c()(g().container,r,"sm:gap-fluid-sm pb-fluid-lg lg:pb-0 lg:mb-fluid-lg overflow-x-hidden"),style:{"--gradientColor":n},children:(0,i.jsxs)("div",{className:"flex relative h-full w-full",children:[(0,i.jsx)("button",{"aria-label":"Previous testimonial",className:g().left,onClick:prev,type:"button",children:(0,i.jsx)(d.Z,{icon:(0,i.jsx)(o.Z,{}),size:"1.5em"})}),(0,i.jsx)("div",{className:"flex h-full w-full overflow-hidden",children:(0,i.jsxs)("div",{className:c()(g().content),onTransitionEnd:function(){return handleTransitionEnd()},style:{"--cardCount":a.length+2,"--transformValue":b,transition:w?void 0:"none","--curtainGradient":null===(l=(0,h.b)(null!=n?n:"white"))||void 0===l?void 0:l.bgVar},children:[k,null==a?void 0:a.map(function(e,l){return(0,i.jsx)(m.Z,{hideLogos:f,card:e,font:s,index:b===l+1,lineLength:v,themeColor:N[l],themeColorMode:x},l)}),T]})}),(0,i.jsx)("button",{"aria-label":"Next testimonial",className:g().right,onClick:function(){b{if(Z.current&&S.current){let e=S.current.getBoundingClientRect(),l=Z.current.getBoundingClientRect(),t=e.width,i=l.width;("up"===d||"down"===d)&&(t=e.height,i=l.height),n&&t&&i?T(i{if(k&&(A(),Z.current&&S.current)){let e=new ResizeObserver(()=>A());return e.observe(S.current),e.observe(Z.current),()=>{e&&e.disconnect()}}},[A,S,k]),t.useEffect(()=>{A()},[A,p]),t.useEffect(()=>{_(!0)},[]),t.useEffect(()=>{"function"==typeof f&&f()},[]);let P=t.useMemo(()=>n?w*N/s:wObject.assign(Object.assign({},e),{"--pause-on-hover":!o||a?"paused":"running","--pause-on-click":!o||a&&!r||r?"paused":"running","--width":"up"===d||"down"===d?"100vh":"100%","--transform":"up"===d?"rotate(-90deg)":"down"===d?"rotate(90deg)":"none"}),[e,o,a,r,d]),B=t.useMemo(()=>({"--gradient-color":h,"--gradient-width":"number"==typeof v?`${v}px`:v}),[h,v]),E=t.useMemo(()=>({"--play":o?"running":"paused","--direction":"left"===d?"normal":"reverse","--duration":`${P}s`,"--delay":`${c}s`,"--iteration-count":u?`${u}`:"infinite","--min-width":n?"auto":"100%"}),[o,d,P,c,u,n]),M=t.useMemo(()=>({"--transform":"up"===d?"rotate(90deg)":"down"===d?"rotate(-90deg)":"none"}),[d]),z=t.useCallback(e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map((e,l)=>i.default.createElement(t.Fragment,{key:l},t.Children.map(p,e=>i.default.createElement("div",{style:M,className:"rfm-child"},e)))),[M,p]);return k?i.default.createElement("div",{ref:S,style:F,className:"rfm-marquee-container "+l},m&&i.default.createElement("div",{style:B,className:"rfm-overlay"}),i.default.createElement("div",{className:"rfm-marquee",style:E,onAnimationIteration:x,onAnimationEnd:g},i.default.createElement("div",{className:"rfm-initial-child-container",ref:Z},t.Children.map(p,e=>i.default.createElement("div",{style:M,className:"rfm-child"},e))),z(N-1)),i.default.createElement("div",{className:"rfm-marquee",style:E},z(N))):null});l.Z=o}},function(e){e.O(0,[6413,8747,5675,476,3228,6389,1519,1033,4499,1528,8100,7837,6671,6329,2703,327,649,9774,2888,179],function(){return e(e.s=34965)}),_N_E=e.O()}]);