1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7772a5ce-9749-4b6f-ae27-b4521d583206",e._sentryDebugIdIdentifier="sentry-dbid-7772a5ce-9749-4b6f-ae27-b4521d583206")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69],{481:(e,t,n)=>{n.d(t,{h9:()=>y,dW:()=>g,ue:()=>h});var a=n(4930),i=n(79019),r=n(21050),l=n(65162),o=n(26875),s=n(40627),c=n(21128),d=n(80376),u=n(17768),p=n(45459),m=n(55481);let y=(0,l.createContext)(null),h=()=>{let e=(0,l.useContext)(y);if(!e)throw Error("Subscription must be used within a Provider");return e},g=e=>{var t,n;let{children:h,isAnonymousUser:g,isRunInStorybook:v,options:b}=e,[f,C]=(0,l.useState)(null),[w,k]=(0,l.useState)(null!=(n=null==b?void 0:b.selectedCadence)?n:r.SubscriptionCadenceTypeEnum.ANNUALLY),[S,x]=(0,l.useState)({...m.jr}),[T,E]=(0,l.useState)(null),[A,P]=(0,l.useState)(!1),[N,I]=(0,l.useState)(!1),[L,j]=(0,l.useState)(!1),[O,F]=(0,l.useState)(!1),{data:M,loading:U,networkStatus:V,refetch:R}=(0,u.l4)(),[B,D]=(0,l.useState)(null);(0,l.useEffect)(()=>{M&&null===B&&D((e=>{var t;return e?{id:e.id,amount:e.amount,billingAccountId:e.billingAccountId,cadence:p.yy[e.cadence],cancelAtPeriodEnd:e.cancelAtPeriodEnd,coupon:(null==(t=e.couponDetails)?void 0:t.percentOff)?"".concat(e.couponDetails.percentOff,"%"):null,createdAt:new Date(e.createdAt),currency:p.M6[e.currency],currentPeriodEnd:e.currentPeriodEnd?new Date(e.currentPeriodEnd):null,currentPeriodStart:e.currentPeriodStart?new Date(e.currentPeriodStart):null,paymentMethodId:e.paymentMethodId,plan:p.aD[e.plan],processorId:e.processorId,quantity:e.quantity,status:p.sr[e.status],updatedAt:new Date(e.updatedAt),paused:e.paused,pendingPause:e.pendingPause,pausedUntil:e.pausedUntil?new Date(e.pausedUntil):null,trial:p.e6[e.trial],trialExpiresAt:e.trialExpiresAt?new Date(e.trialExpiresAt):null}:null})(M))},[M,B]);let G=(0,o.LV)(),W=!g&&U&&V!==i.p.refetch,[Y,K]=(0,l.useState)(),H=(0,c.t3)(),_=(null==b?void 0:b.returnRedirectAction)||d.BB.CURRENT_URL,z=(null==b||null==(t=b.filteredPlanTypes)?void 0:t.length)?null==b?void 0:b.filteredPlanTypes:null;(0,l.useEffect)(()=>{var e,t,n;let a=!!M&&(e=>{let{type:t,cadence:n,selectedPlanSlug:a,subscriptionPlanType:i,subscriptionPlanSlug:l,subscriptionCadence:o,subscriptionStatus:s}=e;return!!l&&!!o&&!!s&&!!t&&!!i&&t===p.aD[i]&&l===a&&p.yy[o]===n&&p.sr[s]===r.SubscriptionStatusTypeEnum.ACTIVE})({type:f,cadence:w,selectedPlanSlug:null!=(n=b.selectedPlanSlug)?n:G,subscriptionPlanType:null==M?void 0:M.plan,subscriptionPlanSlug:null==M||null==(t=M.planPrice)||null==(e=t.plan)?void 0:e.slug,subscriptionCadence:null==M?void 0:M.cadence,subscriptionStatus:null==M?void 0:M.status});P(e=>e===a?e:a)},[w,f,M,G]);let q=(0,o.YV)(),Q=b.freeTrialWithCard&&q===s.do.Subscription&&!H.hadTrialWithCard||q===s.do.Upgrade&&(null==B?void 0:B.status)===r.SubscriptionStatusTypeEnum.TRIALING,J=q===s.do.Subscription,$=(null==b?void 0:b.reverseCardOrder)||!1;return(0,a.jsx)(y.Provider,{value:{isRunInStorybook:v,subscriptionState:{selectedPlan:f,selectedInterval:w,alreadyOnPlan:A,proratedPrices:S,currentSubscription:B,isLoadingSubscriptions:W,isLoadingPrices:N,plansFilteredByParentCmp:z,initializedSubscription:T,returnRedirectAction:_,paymentMethodUpdate:Y,freeTrialWithCard:Q,checkoutSessions:J,reverseCardOrder:$,taxEnabled:L,taxIdCollectionEnabled:O},subscriptionActions:{setSelectedPlan:C,setSelectedInterval:k,setProratedPrices:x,setIsLoadingPrices:I,setInitializedSubscription:E,setPaymentMethodUpdate:K,invalidateCurrentSubscription:()=>{R().catch(()=>void 0)},setCurrentSubscription:D,setTaxEnabled:j,setTaxIdCollectionEnabled:F}},children:h})}},1551:(e,t,n)=>{n.d(t,{mi:()=>p});var a=n(64331),i=n(21050),r=n(76394),l=n(35419),o=n(90948),s=n(62052),c=n(37351),d=n(28333);let u=e=>{var t,n;let{plan:o,selectedInterval:s,currentPlanSlug:d,currentCadence:u,t:p}=e,m=s===i.SubscriptionCadenceTypeEnum.ANNUALLY,y=m?a.rU.Annually:a.rU.Monthly,h=o.prices.find(e=>e.cadence===a.rU.Monthly),g=o.prices.find(e=>e.cadence===a.rU.Annually),v=m?null==g?void 0:g.cost:null==h?void 0:h.cost,b=v?(0,r.J)(m?v/12:v):void 0,f=function(e){let{monthlyPrice:t,annualPrice:n,cadence:a}=e;if(a!==i.SubscriptionCadenceTypeEnum.MONTHLY&&t&&n)return(0,c.gl)(t,n)}({monthlyPrice:null==h?void 0:h.cost,annualPrice:null==g?void 0:g.cost,cadence:s}),C=f&&f>0?f:null,w=C?{description:p("price.saveBadge","Save {discountAmount}%",{discountAmount:C})}:void 0,k=(0,l.QJ)({cadence:s,planType:o.type,features:m?null==g?void 0:g.features:null==h?void 0:h.features,mergeSubtitles:!0,t:p,translationConfig:l.zg}).map(e=>({...e,text:e.text||e.name}));return{planSlug:o.slug,creditAmount:null!=(n=null==(t=o.defaultPlaygroundCredits)?void 0:t[y])?n:0,price:null!=b?b:"0",monthlyPrice:v?m?v/12:v:void 0,discount:w,features:k,isCurrentPlan:d===o.slug&&u===s}},p=e=>{var t,n,r;let l,{t:c,aiPlaygroundPlansData:p,defaultPlans:m,selectedInterval:y,currentPlanType:h,currentCadence:g,currentPlanCreditAmount:v,currentPlanSlug:b}=e,f={};if(0===p.size)return[{},void 0];let C=y===i.SubscriptionCadenceTypeEnum.ANNUALLY,w=C?a.rU.Annually:a.rU.Monthly,k=[...p.keys()];
1for(let e of(k.forEach(e=>{var t,n,a,i,r,m;let S=p.get(e);if(!S||!(null==(t=S.prices.find(e=>e.cadence===w))?void 0:t.cost))return;if(b&&h&&e!==b){let e=(0,s.nx)({currentPlanType:h,comparisonPlanType:S.type});if(!(0,s.s5)({currentPlanCreditAmount:v||0,comparisonCreditAmount:(null==(n=S.defaultPlaygroundCredits)?void 0:n[w])||0})||e)return}if(d.$7.includes(e)&&!C)return;let x=S.type;f[x]||(f[x]={displayName:(0,o.I)(S.displayName,S.type),creditOptions:[]});let T=u({plan:S,selectedInterval:y,currentPlanSlug:b,currentCadence:g,t:c});b===e?(l=T,k.includes(b)&&(null==(i=f[x])||null==(a=i.creditOptions)||a.push(T))):null==(m=f[x])||null==(r=m.creditOptions)||r.push(T)}),null!=m?m:[])){if(!f[e.type]||!e.prices.find(e=>e.cadence===w))continue;let a=u({plan:e,selectedInterval:y,currentPlanSlug:b,currentCadence:g,t:c}),i=[];for(let r of[a,...null!=(n=null==(t=f[e.type])?void 0:t.creditOptions)?n:[]])b===r.planSlug?i=[r]:i.push(r);f[e.type]={displayName:(0,o.I)(e.displayName,e.type),creditOptions:i}}for(let e in f)b&&h&&(null==(r=f[e])||r.creditOptions.sort((e,t)=>(e.creditAmount||0)-(t.creditAmount||0)));return[f,l]}},3975:(e,t,n)=>{n.d(t,{A:()=>l});var a,i=n(65162);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let l=function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a||(a=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m4 6 4 4 4-4"})))}},7060:(e,t,n)=>{n.d(t,{j:()=>a});let a=(e,t)=>{var n,a,i;let r=t.find(t=>t.type===e);if(!r)return null;let l=[...(null==(n=r.prices.find(e=>"ANNUALLY"===e.cadence))?void 0:n.features)||[],...(null==(a=r.prices.find(e=>"MONTHLY"===e.cadence))?void 0:a.features)||[]].find(e=>{var t;return(null==(t=e.feature)?void 0:t.slug)==="number-of-editors"});return(null==l||null==(i=l.allowance)?void 0:i.amount)||null}},12721:(e,t,n)=>{n.d(t,{H:()=>r});var a=n(49566),i=n(23195);let r=e=>{let{workspaceId:t,loading:n}=(0,i.a_)(),{useGetCurrentSubscriptionQuery:r}=(0,a.J)(),l=(null==e?void 0:e.skip)||!t,o=r({variables:{workspaceId:null!=t?t:""},fetchPolicy:(null==e?void 0:e.fetchPolicy)||"cache-first",skip:l});return{...o,loading:n||o.loading}}},17768:(e,t,n)=>{n.d(t,{l4:()=>l});var a=n(12721),i=n(55964),r=n(65162);let l=()=>{let e=(0,a.H)(),t=(e=>{let t=(0,i.rL)(),n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t||(n.current=e)},[t,e]),t?n.current:e})(e.data);return{...e,data:t}}},19449:(e,t,n)=>{n.d(t,{JZ:()=>c,jq:()=>s,s5:()=>l});var a=n(44083),i=n(65162);let r="pricing-math-display";var l=function(e){return e.CONTROL="control",e.HIDE_YEARLY_TOTAL="hide_yearly_total",e.YEARLY_ONLY="yearly_only",e}({});let o=e=>Object.values(l).includes(e),s=()=>{var e;let{loading:t}=(0,a.h)(),n=(0,a.tx)(r,void 0),l=(0,i.useRef)(null);return t||null!==l.current||(l.current=o(n)?n:"control"),null!=(e=l.current)?e:"control"},c=e=>{let{expose:t,loading:n}=(0,a.h)(),l=(0,a.tx)(r,void 0),s=(0,i.useRef)(!1);(0,i.useEffect)(()=>{!n&&e&&!s.current&&o(l)&&(s.current=!0,t(r))},[t,n,e,l])}},21128:(e,t,n)=>{n.d(t,{Ju:()=>
1o,RM:()=>l,o0:()=>r,t3:()=>i});var a=n(83541);let i=()=>(0,a.L3)(e=>e.user.currentBillingAccount),r=()=>(0,a.L3)(e=>e.user.currentWorkspace),l=()=>(0,a.L3)(e=>e.user.billableSeats),o=()=>(0,a.L3)(e=>e.user.isInitialised)},21606:(e,t,n)=>{n.d(t,{A:()=>l});var a,i=n(65162);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let l=function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a||(a=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M15.056 13.5v-1.306a2.65 2.65 0 0 0-.536-1.599 2.55 2.55 0 0 0-1.381-.928M10.583 2a2.54 2.54 0 0 1 1.382.938c.347.463.535 1.032.535 1.618 0 .585-.188 1.154-.535 1.617a2.54 2.54 0 0 1-1.382.938m.64 6.389v-1.278a2.555 2.555 0 0 0-2.556-2.555H3.556A2.555 2.555 0 0 0 1 12.222V13.5m7.667-8.944a2.556 2.556 0 1 1-5.111 0 2.556 2.556 0 0 1 5.11 0"})))}},23616:(e,t,n)=>{n.d(t,{cR:()=>g});var a=n(17395),i=n(64331);let r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAvailableBundle"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"GetAvailableBundleFilter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAvailableBundle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HTTPError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Bundle"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"market"}},{kind:"Field",name:{kind:"Name",value:"currency"}},{kind:"Field",name:{kind:"Name",value:"currencySymbol"}},{kind:"Field",name:{kind:"Name",value:"plans"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ctaText"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"cost"}},{kind:"Field",name:{kind:"Name",value:"cadence"}},{kind:"Field",name:{kind:"Name",value:"market"}},{kind:"Field",name:{kind:"Name",value:"planFeatureIds"}},{kind:"Field",name:{kind:"Name",value:"taxBehavior"}},{kind:"Field",name:{kind:"Name",value:"rcPriceId"}}]}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"translationKey"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}},{kind:"Field",name:{kind:"Name",value:"planFeatures"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allowance"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tryFeatureTimes"}},{kind:"Field",name:{kind:"Name",value:"unit"}},{kind:"Field",name:{kind:"Name",value:"fixed"}}]}},{kind:"Field",name:{kind:"Name",value:"displayPriority"}},{kind:"Field",name:{kind:"Name",value:"featureId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"isFeatured"}},{kind:"Field",name:{kind:"Name",value:"translationKey"}},{kind:"Field",name:{kind:"Name",value:"uspTranslationKey"}}]}},{kind:"Field",name:{kind:"Name",value:"features"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"displayPriority"}},{kind:"Field",name:{kind:"Name",value:"featureCategoryId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"slugEnumKey"}},{kind:"Field",name:{kind:"Name",value:"translationKey"}},{kind:"Field",name:{kind:"Name",value:"uspTranslationKey"}},{kind:"Field",name:{kind:"Name",value:"shouldDisplay"}}]}},{kind:"Field",name:{kind:"Name",value:"featureCategories"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayPriority"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"slug"}}]}},{kind:"Field",name:{kind:"Name",value:"activeWorkspacePlan"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ctaText"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"prices"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"cost"}},{kind:"Field",name:{kind:"Name",value:"cadence"}},{kind:"Field",name:{kind:"Name",value:"market"}},{kind:"Field",name:{kind:"Name",value:"planFeatureIds"}},{kind:"Field",name:{kind:"Name",value:"taxBehavior"}},{kind:"Field",name:{kind:"Name",value:"rcPriceId"}}]}},{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"translationKey"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]}}]}}]}}]};var l=n(62052),o=n(21050),s=n(65162),c=n(45459);let d=[],u=new Map,p=e=>Object.values(o.CurrencyTypeEnum).includes(e)?e:o.CurrencyTypeEnum.USD,m=(e,t,n
1)=>{var a,i,r;if(!(null==e||null==(a=e.prices)?void 0:a.length)||!(null==t?void 0:t.length)||!(null==n?void 0:n.length))return null;let l=null;for(let e of n)if((null==e?void 0:e.slug)==="playground-credits"&&e.id){l=e.id;break}if(!l)return null;let o=new Map;for(let e of t)e.id&&o.set(e.id,e);let s={};for(let t of e.prices)if(null==t||null==(i=t.planFeatureIds)?void 0:i.length)for(let e of t.planFeatureIds){if(!e)continue;let n=o.get(e);if(!n||n.featureId!==l)continue;let a=null==(r=n.allowance)?void 0:r.amount;a&&(s[t.cadence]=a);break}return Object.keys(s).length>0?s:null},y=(e,t,n)=>{let a=m(e,t,n);return a?Object.values(a).reduce((e,t)=>e+t,0):0},h=(e,t,n,a,r)=>{let l=e.prices.map(a=>((e,t,n,a)=>{var i;return{id:e.id,slug:"".concat(t.slug,"-").concat(e.cadence.toLowerCase()),cost:e.cost/100,cadence:e.cadence,taxBehavior:e.taxBehavior,rcPriceId:null!=(i=e.rcPriceId)?i:null,features:e.planFeatureIds.map(e=>{var t,i;if(null===e)return null;let r=n.find(t=>t.id===e);if(void 0===r)return null;let l=a.find(e=>e.id===r.featureId);
1return{id:e,isFeatured:r.isFeatured,displayPriority:r.displayPriority,feature:l?{...l,translationKey:null!=(t=r.translationKey)?t:l.translationKey,uspTranslationKey:null!=(i=r.uspTranslationKey)?i:l.uspTranslationKey}:null,allowance:r.allowance}}).filter(e=>null!==e)}})(a,e,t,n)),{type:o,priceIds:s}=(e=>({type:c.aD[e.type],priceIds:(e=>({monthly:e.filter(e=>e.cadence===i.rU.Monthly).map(e=>e.id),annual:e.filter(e=>e.cadence===i.rU.Annually).map(e=>e.id)}))(e.prices)}))({type:e.type,prices:l});return{slug:e.slug,id:e.id,ctaText:e.ctaText||"",displayName:e.displayName||"",description:e.description||"",translationKey:e.translationKey||"",currency:a,currencySymbol:r,stripeProductId:"",type:o,prices:l,priceIds:s,defaultPlaygroundCredits:m(e,t,n)}},g=function(){var e,t,n,c;let m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:g,loading:v,error:b}=(0,a.I)(r,{variables:{workspaceId:m.workspaceId,filter:{filters:(n=m.source,c=m.store,n!==i.Jm.Rc?[]:c===i.T3.PlayStore?[i.HY.RcPlay]:[i.HY.RcApple])}},skip:m.skip,errorPolicy:m.errorPolicy,fetchPolicy:m.fetchPolicy,nextFetchPolicy:m.nextFetchPolicy}),f=(null==g||null==(e=g.getAvailableBundle)?void 0:e.__typename)==="Bundle"?g.getAvailableBundle:null,C=!!b||(null==g||null==(t=g.getAvailableBundle)?void 0:t.__typename)==="HTTPError",w=(0,s.useMemo)(()=>{if(v||m.skip||C||!f)return{defaultPlans:d,aiPlaygroundPlans:u,currency:o.CurrencyTypeEnum.USD,currencySymbol:"$",categoryMap:new Map,featureToCategoryMap:new Map};let e=p(f.currency),t=f.currencySymbol||"$",n=f.features.find(e=>(null==e?void 0:e.slug)==="playground-credits"),a=[],i=new Map;if(n){let n=new Map;f.plans.forEach(e=>{var t;let a=e.type;n.has(a)||n.set(a,[]),null==(t=n.get(a))||t.push(e)}),n.forEach(n=>{if(0===n.length)return;let r=n.sort((e,t)=>y(e,f.planFeatures,f.features)-y(t,f.planFeatures,f.features)),l=r[0];a.push(h(l,f.planFeatures,f.features,e,t)),r.slice(1).forEach(n=>{((e,t,n)=>{let a=n.find(e=>(null==e?void 0:e.slug)==="playground-credits");if(!a)return!1;let i=t.filter(e=>e.featureId===a.id).map(e=>e.id);return e.prices.some(e=>e.planFeatureIds.some(e=>e&&i.includes(e)))})(n,f.planFeatures,f.features)&&i.set(n.slug,h(n,f.planFeatures,f.features,e,t))})})}else f.plans.forEach(n=>{a.push(h(n,f.planFeatures,f.features,e,t))});let r=new Map,s=new Map;if(f.featureCategories)for(let e of f.featureCategories)(null==e?void 0:e.id)&&r.set(e.id,{name:e.name,slug:e.slug,displayPriority:e.displayPriority});if(f.features)for(let e of f.features)(null==e?void 0:e.slug)&&e.featureCategoryId&&s.set(e.slug,e.featureCategoryId);return{defaultPlans:(0,l.vk)(a),aiPlaygroundPlans:i,currency:e,currencySymbol:t,categoryMap:r,featureToCategoryMap:s}},[v,m.skip,C,f]),k=e=>({defaultPlans:w.defaultPlans,defaultPlansLoading:e.isLoading,defaultPlansError:e.error,aiPlaygroundPlans:w.aiPlaygroundPlans,aiPlaygroundPlansLoading:e.isLoading,aiPlaygroundPlansError:e.error,isLoading:e.isLoading,hasAnyError:!!e.error,currency:w.currency,currencySymbol:w.currencySymbol,categoryMap:w.categoryMap,featureToCategoryMap:w.featureToCategoryMap});if(m.skip)return k({isLoading:!1});if(v)return k({isLoading:!0});if(C||!f)return k({isLoading:!1,error:b||Error("Failed to fetch bundle data")});let S=void 0!==f.activeWorkspacePlan&&null!==f.activeWorkspacePlan?h(f.activeWorkspacePlan,f.planFeatures,f.features,p(f.currency),f.currencySymbol):void 0;return{legacyWorkspacePlan:void 0===S||f.plans.some(e=>e.slug===S.slug)?void 0:S,activeWorkspacePlan:S,defaultPlans:w.defaultPlans,defaultPlansLoading:!1,defaultPlansError:void 0,aiPlaygroundPlans:w.aiPlaygroundPlans,aiPlaygroundPlansLoading:!1,aiPlaygroundPlansError:void 0,bundleSlug:f.slug,isLoading:!1,hasAnyError:!1,currency:w.currency,currencySymbol:w.currencySymbol,categoryMap:w.categoryMap,featureToCategoryMap:w.featureToCategoryMap}}},26639:(e,t,n)=>{n.d(t,{i:()=>l});var a=n(65162),i=n(47468),r=n(33400);let l=()=>{let e=(0,r.T)();return(0,a.useCallback)(async t=>{if(!t)return null;let{data:n}=await e(i.cp.endpoints.getBillingAccount.initiate({workspaceId:t},{subscribe:!1}));return null!=n?n:null},[e])}},26875:(e,t,n)=>{n.d(t,{LV:()=>l,Mf:()=>s,PS:()=>r,Rw:()=>u,VQ:()=>c,YV:()=>i,g6:()=>d,j3:()=>p,oQ:()=>o});var a=n(83541);let i=()=>(0,a.L3)(e=>e.flow.flowType),r=()=>(0,a.L3)(e=>e.flow.currentStep),l=()=>(0,a.L3)(e=>e.flow.selectedPlanSlug),o=()=>(0,a.L3)(e=>e.flow.selectedFeatureSlug),s=()=>(0,a.L3)(e=>e.flow.plansToShow),c=()=>(0,a.L3)(e=>e.flow.paymentElementKey),d=()=>(0,a.L3)(e=>e.flow.preAppliedCouponCodes),u=()=>(0,a.L3)(e=>e.flow.skipPlanComparison),p=()=>(0,a.L3)(e=>e.flow.fallbackToPlanComparison)}
1,28333:(e,t,n)=>{n.d(t,{$7:()=>r,YT:()=>i,w3:()=>a});let a="https://veed.io/contact-sales",i="https://www.veed.io/terms-of-sale",r=["pro-playground-credits-add-on-annual-only","pro-playground-credits-add-on-annual-only-23016","pro-credits-add-on-rebalanced-annual-only"]},33400:(e,t,n)=>{n.d(t,{T:()=>a});let a=n(83541).cf.withTypes()},35419:(e,t,n)=>{n.d(t,{QJ:()=>c,b2:()=>d,jS:()=>p,zg:()=>u});var a=n(21050),i=n(96735),r=n(37351);let l=["remove-background","eye-contact","text-to-speech","voice-clone","subtitle-translation","clean-audio","ai-avatars","voice-translation","slides-to-video","clips","ai-b-roll","remove-filler-words"],o=["storage","createVideosWithGenAiStudio","createVideosWithGenAiStudioWithAllowance","genAiStudioCredits"],s=["aiVoice","textToSpeechCredits"],c=e=>{let{cadence:t,planType:n,features:c,mergeSubtitles:u=!0,t:p,translationConfig:m}=e;if(!c)return[];let y=d(c),g=u?y.find(e=>{var t,n;return(null==(t=e.feature)?void 0:t.translationKey)==="autoSubtitles"||(null==(n=e.feature)?void 0:n.uspTranslationKey)==="autoSubtitles"}):void 0,b=u?y.find(e=>{var t,n;return(null==(t=e.feature)?void 0:t.translationKey)==="subtitleTranslation"||(null==(n=e.feature)?void 0:n.uspTranslationKey)==="subtitleTranslation"}):void 0,f=g&&b;return y.map(e=>{var c,d,u,p,y;if(!e.feature)return null;let v=null!=(d=e.feature.uspTranslationKey)?d:e.feature.translationKey,C=!!(null==m||null==(c=m.periodTranslationKeys)?void 0:c.includes(null!=v?v:""));if(!v)return{slug:e.feature.slug,baseTranslationKey:"",translationKey:"",displayPriority:null!=(u=e.displayPriority)?u:100,allowance:null,hasPeriodAllowance:!1,name:e.feature.name,isTryOnce:!1,uspKey:void 0,hasPeriodTranslation:C};if(f&&("subtitleTranslation"===v||"subtitleTranslationICPV3"===v))return null;let[w,k]=(0,i.yq)(e.allowance),S=r.s5.includes(v),x=n===a.SubscriptionPlanTypeEnum.BASIC&&l.includes(e.feature.slug),T=v;if(s.includes(v)?T=h.withCadenceAndPlan(v,t,n):o.includes(v)&&(T=h.withPlan(v,n)),w&&"exportQuality"===v&&(T="".concat(v).concat((0,r.vd)(Number(w)))),f&&("autoSubtitles"===v||"autoSubtitlesICPV3"===v)){let[t,n]=(0,i.yq)(g.allowance),[a,r]=(0,i.yq)(b.allowance);return{slug:e.feature.slug,baseTranslationKey:v,translationKey:T,displayPriority:null!=(p=e.displayPriority)?p:100,allowance:w?{value:w,unit:k}:null,hasPeriodAllowance:S,hasPeriodTranslation:C,name:e.feature.name,isTryOnce:x,uspKey:v||void 0,merged:{captionsAllowance:{value:t,unit:n},translationsAllowance:{value:a,unit:r}}}}return{slug:e.feature.slug,baseTranslationKey:v,translationKey:T,displayPriority:null!=(y=e.displayPriority)?y:100,allowance:w?{value:w,unit:k}:null,hasPeriodAllowance:S,hasPeriodTranslation:C,name:e.feature.name,isTryOnce:x,uspKey:v||void 0}}).filter(e=>null!==e).map(e=>({...e,text:v(e,p,t,n,m)}))},d=e=>(null==e?void 0:e.filter(e=>e.isFeatured).toSorted((e,t)=>{var n,a;return(null!=(n=e.displayPriority)?n:100)-(null!=(a=t.displayPriority)?a:100)}))||[],u={featurePrefix:"checkout.plans.featuresExcerpt.features",unitPrefix:"checkout.plans.featuresExcerpt.allowance",tryOnceKey:"checkout.plans.featuresExcerpt.tryOnce"},p={featurePrefix:"plans.featuresExcerpt.features",unitPrefix:"plans.featuresExcerpt.allowance"},m=e=>e.toString().toLowerCase(),y=(e,t)=>e===a.SubscriptionPlanTypeEnum.FREE?"monthly":t.toString().toLowerCase(),h={withPlan:(e,t)=>"".concat(e,".").concat(m(t)),withCadenceAndPlan:(e,t,n)=>"".concat(e,".").concat(t===a.SubscriptionCadenceTypeEnum.ANNUALLY?"annual":"monthly",".").concat(m(n)),withPeriod:(e,t,n)=>"".concat(e,".").concat(y(t,n)),prefixed:(e,t)=>"".concat(e,".").concat(t)},g=(e,t,n)=>n?"".concat(e,".").concat(n,".").concat(t):"".concat(e,".").concat(t),v=(e,t,n,a,i)=>{var r;let{name:l,baseTranslationKey:o,hasPeriodTranslation:s,hasPeriodAllowance:c,translationKey:d,allowance:u,merged:p,isTryOnce:m}=e;if(!t||!i)return l;let{featurePrefix:v,unitPrefix:b,tryOnceKey:f,useResolvedKey:C=!0}=i;if(p){let e=p.captionsAllowance.unit?t(g(b,p.captionsAllowance.unit)):"",n=p.translationsAllowance.unit?t(g(b,p.translationsAllowance.unit)):"";return"".concat(p.captionsAllowance.value).concat(e," Captions + ").concat(p.translationsAllowance.value).concat(n," translations")}if(m&&f)return"".concat(l,": ").concat(t(f));if(!o)return l;let w=C?d:o,k=null!=(r=null==u?void 0:u.value)?r:0;s&&(w=h.withPeriod(w,a,n));let S="";if(null==u?void 0:u.unit){let e=c?y(a,n):void 0;S=t(g(b,u.unit,e))}
1return t(h.prefixed(v,w),l,{allowance:k?k.toLocaleString():void 0,unit:S})}},36478:(e,t,n)=>{n.d(t,{Ub:()=>i,nu:()=>l});var a=n(65162);let i=e=>{let[t,n]=(0,a.useState)(()=>!!window.matchMedia&&matchMedia(e).matches);return(0,a.useEffect)(()=>{if(!window.matchMedia)return;function t(e){n(e.matches)}let a=matchMedia(e);return a.addEventListener("change",t),n(a.matches),()=>a.removeEventListener("change",t)},[e]),t},r={sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},l=e=>i("(width < ".concat(r[e],")"))},37351:(e,t,n)=>{n.d(t,{gl:()=>l,n_:()=>r,rA:()=>o,s5:()=>c,vd:()=>s,w9:()=>i});var a=n(21050);function i(e,t){return Math.max(0,Math.round("PERCENTAGE"===t.type?e*(1-t.value/100):e-t.value/100))}function r(e,t){let n=t.find(t=>"MONTHLY"===t.cadence?e===a.SubscriptionCadenceTypeEnum.MONTHLY:e===a.SubscriptionCadenceTypeEnum.ANNUALLY);if(e===a.SubscriptionCadenceTypeEnum.ANNUALLY&&(null==n?void 0:n.cost)){let e=n.cost/12;return Number.isInteger(e)?e:parseFloat(e.toFixed(2))}return(null==n?void 0:n.cost)||0}function l(e,t){let n=12*e;return Math.floor((n-t)/n*100)}function o(e){var t,n;let a=null==(t=e.find(e=>"MONTHLY"===e.cadence))?void 0:t.cost,i=null==(n=e.find(e=>"ANNUALLY"===e.cadence))?void 0:n.cost;return a&&i?l(a,i):0}function s(e){return e?e<4e3?".1080":".4000":""}let c=["autoSubtitles","avatars","textToSpeech","autoSubtitlesICPV3","autoSubtitlesICPV4","aiAvatars","aiVoice","subtitleTranslationICPV3","translationsV2","aiAvatarsAndVoiceDubbing","textToSpeechAndVoiceCloning","textToSpeechCredits"]},38931:(e,t,n)=>{n.d(t,{Ts:()=>r,ai:()=>l,uv:()=>o});var a=n(85023),i=n(70755);let r=e=>{(0,i.T)({dsn:"https://[email protected]/4505153514569728",environment:e,tracesSampleRate:.01,ignoreErrors:[/Timed out subscribing to .*? task after 2500ms/]})},l=(e,t)=>{(0,a.YY)({error:e,tags:{category:"freeTrialWithCard",func:t}})},o=(e,t,n)=>{(0,a.YY)({error:e,tags:{category:"checkout",func:t},extra:n})}},39570:(e,t,n)=>{n.d(t,{J:()=>r});var a=n(21050);let i=(e,t)=>Object.fromEntries(e.map(e=>[e.type,e.title]))[t],r=(e,t,n)=>{let r=e===a.SubscriptionPlanTypeEnum.PRO,l=e===a.SubscriptionPlanTypeEnum.BUSINESS;return r?n("uspTitle.pro","Everything in {planName} +",{planName:i(t,a.SubscriptionPlanTypeEnum.BASIC)}):l?n("uspTitle.business","Everything in {planName} +",{planName:i(t,a.SubscriptionPlanTypeEnum.PRO)}):void 0}},43264:(e,t,n)=>{n.d(t,{k:()=>r});var a=n(12721),i=n(64331);let r=()=>{var e;let{data:t,loading:n}=(0,a.H)();return n?{source:void 0,store:void 0,loading:!0}:t?{source:t.source,store:null!=(e=t.store)?e:t.source===i.Jm.Rc?i.T3.AppStore:void 0,loading:!1}:{source:void 0,store:void 0,loading:!1}}},44672:(e,t,n)=>{n.d(t,{d:()=>d});var a=n(4930),i=n(64777),r=n(46376),l=n(9374),o=n(65162);let s=(0,l.F)("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent border-solid transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-border-brand focus-visible:ring-offset-2 focus-visible:ring-offset-background-base disabled:cursor-not-allowed disabled:opacity-40 data-[state=checked]:bg-action-brand-contrast data-[state=unchecked]:bg-action-subtle-on-base",{variants:{size:{small:"h-4 w-7",default:"h-6 w-10"}},defaultVariants:{size:"default"}}),c=(0,l.F)("pointer-events-none block rounded-full bg-background-raised shadow-sm ring-0 transition-transform data-[state=unchecked]:translate-x-0",{variants:{size:{small:"h-3 w-3 data-[state=checked]:translate-x-3",default:"h-5 w-5 data-[state=checked]:translate-x-4"}},defaultVariants:{size:"default"}}),d=o.forwardRef((e,t)=>{let{className:n,size:l,...o}=e;return(0,a.jsx)(i.bL,{ref:t,className:(0,r.cn)(s({size:l,className:n})),...o,children:(0,a.jsx)(i.zi,{className:c({size:l})})})});d.displayName=i.bL.displayName},45459:(e,t,n)=>{n.d(t,{M6:()=>p,aD:()=>u,e6:()=>m,oL:()=>v,sr:()=>h,yy:()=>y});var a=n(64331),i=n(35419),r=n(90948),l=n(21050),o=n(13533),s=n(7060);let{PRO:c}=l.SubscriptionPlanTypeEnum,d=(e,t,n,a)=>(0,i.QJ)({cadence:e,planType:t,features:n,mergeSubtitles:!0,t:a,translationConfig:i.zg}),u={[a.OL.Basic]:l.SubscriptionPlanTypeEnum.BASIC,[a.OL.Pro]:l.SubscriptionPlanTypeEnum.PRO,[a.OL.Business]:l.SubscriptionPlanTypeEnum.BUSINESS,[a.OL.Enterprise]:l.SubscriptionPlanTypeEnum.ENTERPRISE,[a.OL.Free]:l.SubscriptionPlanTypeEnum.FREE,[a.OL.StorageOnly]:l.SubscriptionPlanTypeEnum.STORAGEONLY},p={[a.av.Cad]:l.CurrencyTypeEnum.CAD,[a.av.Usd]:l.CurrencyTypeEnum.USD,[a.av.Eur]:l.CurrencyTypeEnum.EUR,[a.av.Gbp]:l.CurrencyTypeEnum.GBP,[a.av.Inr]:l.CurrencyTypeEnum.INR,[a.av.Mxn]:l.CurrencyTypeEnum.MXN,[a.av.Aud]:l.CurrencyTypeEnum.AUD,[a.av.Brl]:l.CurrencyTypeEnum.BRL,[a.av.Aed]:l.CurrencyTypeEnum.AED,[a.av.Bdt]:l.CurrencyTypeEnum.BDT,[a.av.Bob]:l.CurrencyTypeEnum.BOB,[a.av.Chf]:l.CurrencyTypeEnum.CHF,[a.av.Clp]:l.CurrencyTypeEnum.CLP,[a.av.Cny]:l.CurrencyTypeEnum.CNY,[a.av.Cop]:l.CurrencyTypeEnum.COP,[a.av.Crc]:l.CurrencyTypeEnum.CRC,[a.av.Czk]:l.CurrencyTypeEnum.CZK,[a.av.Dkk]:l.CurrencyTypeEnum.DKK,[a.av.Dzd]:l.CurrencyTypeEnum.DZD,[a.av.Egp]:l.CurrencyTypeEnum.EGP,[a.av.Gel]:l.CurrencyTypeEnum.GEL,[a.av.Ghs]:l.CurrencyTypeEnum.GHS,[a.av.Hkd]:l.CurrencyTypeEnum.HKD,[a.av.Hrk]:l.CurrencyTypeEnum.HRK,[a.av.Huf]:l.CurrencyTypeEnum.HUF,[a.av.Idr]:l.CurrencyTypeEnum.IDR,[a.av.Ils]:l.CurrencyTypeEnum.ILS,[a.av.Iqd]:l.CurrencyTypeEnum.IQD,[a.av.Jod]:l.CurrencyTypeEnum.JOD,[a.av.Jpy]:l.CurrencyTypeEnum.JPY,[a.av.Kes]:l.CurrencyTypeEnum.KES,[a.av.Krw]:l.CurrencyTypeEnum.KRW,[a.av.Kzt]:l.CurrencyTypeEnum.KZT,[a.av.Lkr]:l.CurrencyTypeEnum.LKR,[a.av.Mad]:l.CurrencyTypeEnum.MAD,[a.av.Mmk]:l.CurrencyTypeEnum.MMK,[a.av.Mnt]:l.CurrencyTypeEnum.MNT,[a.av.Mop]:l.CurrencyTypeEnum.MOP,[a.av.Myr]:l.CurrencyTypeEnum.MYR,[a.av.Ngn]:l.CurrencyTypeEnum.NGN,[a.av.Nok]:l.CurrencyTypeEnum.NOK,[a.av.Nzd]:l.CurrencyTypeEnum.NZD,[a.av.Pen]:l.CurrencyTypeEnum.PEN,[a.av.Php]:l.CurrencyTypeEnum.PHP,[a.av.Pkr]:l.CurrencyTypeEnum.PKR,[a.av.Pln]:l.CurrencyTypeEnum.PLN,[a.av.Pyg]:l.CurrencyTypeEnum.PYG,[a.av.Qar]:l.CurrencyTypeEnum.QAR,[a.av.Ron]:l.CurrencyTypeEnum.RON,[a.av.Rsd]:l.CurrencyTypeEnum.RSD,[a.av.Rub]:l.CurrencyTypeEnum.RUB,[a.av.Sar]:l.CurrencyTypeEnum.SAR,[a.av.Sek]:l.CurrencyTypeEnum.SEK,[a.av.Sgd]:l.CurrencyTypeEnum.SGD,[a.av.Thb]:l.CurrencyTypeEnum.THB,[a.av.Try]:l.CurrencyTypeEnum.TRY,[a.av.Twd]:l.CurrencyTypeEnum.TWD,[a.av.Tzs]:l.CurrencyTypeEnum.TZS,[a.av.Uah]:l.CurrencyTypeEnum.UAH,[a.av.Vnd]:l.CurrencyTypeEnum.VND,[a.av.Xaf]:l.CurrencyTypeEnum.XAF,[a.av.Xof]:l.CurrencyTypeEnum.XOF,[a.av.Zar]:l.CurrencyTypeEnum.ZAR},m={[a.sj.CcTrial]:l.SubscriptionTrialTypeEnum.CCTRIAL,[a.sj.None]:l.SubscriptionTrialTypeEnum.NONE,[a.sj.NoCcTrial]:l.SubscriptionTrialTypeEnum.NOCCTRIAL,[a.sj.VipCode]:l.SubscriptionTrialTypeEnum.VIPCODE},y={[a.rU.Annually]:l.SubscriptionCadenceTypeEnum.ANNUALLY,[a.rU.Monthly]:l.SubscriptionCadenceTypeEnum.MONTHLY},h={[a.ok.Active]:l.SubscriptionStatusTypeEnum.ACTIVE,[a.ok.Trialing]:l.SubscriptionStatusTypeEnum.TRIALING,[a.ok.PastDue]:l.SubscriptionStatusTypeEnum.PASTDUE,[a.ok.Unpaid]:l.SubscriptionStatusTypeEnum.UNPAID,[a.ok.Canceled]:l.SubscriptionStatusTypeEnum.CANCELED,[a.ok.Incomplete]:l.SubscriptionStatusTypeEnum.INCOMPLETE,[a.ok.IncompleteExpired]:l.SubscriptionStatusTypeEnum.INCOMPLETEEXPIRED},g={[l.SubscriptionPlanTypeEnum.BASIC]:o.K_,[l.SubscriptionPlanTypeEnum.FREE]:o.Y6,[l.SubscriptionPlanTypeEnum.PRO]:o.xw,[l.SubscriptionPlanTypeEnum.BUSINESS]:o.e3,[l.SubscriptionPlanTypeEnum.ENTERPRISE
1]:o.VD},v=(e,t)=>{var n,i;let o,{t:u,plans:p,tryForFree:m}=t,y=e.type.toString().toLowerCase(),h=e.prices.find(e=>e.cadence===a.rU.Annually),v=e.prices.find(e=>e.cadence===a.rU.Monthly);o=e.type!==l.SubscriptionPlanTypeEnum.FREE&&e.type!==l.SubscriptionPlanTypeEnum.ENTERPRISE&&m?m:e.translationKey?u(["checkout.plans.".concat(e.translationKey,".cta"),"plans.".concat(e.translationKey,".cta")],e.ctaText):e.ctaText;let b=e.translationKey?u(["checkout.plans.".concat(e.translationKey,".description"),"plans.".concat(e.translationKey,".description")],e.description):e.description,f=e.translationKey?u(["checkout.plans.".concat(e.translationKey,".shortDescription"),"plans.".concat(e.translationKey,".shortDescription")],b,{businessMaxEditors:null!=(n=(0,s.j)(l.SubscriptionPlanTypeEnum.BUSINESS,p))?n:3}):b;return{type:e.type,title:(0,r.I)(e.displayName,e.type),icon:g[e.type],description:b,shortDescription:f,featuresExcerpt:{[l.SubscriptionCadenceTypeEnum.MONTHLY]:d(l.SubscriptionCadenceTypeEnum.MONTHLY,e.type,null==v?void 0:v.features,u),[l.SubscriptionCadenceTypeEnum.ANNUALLY]:d(l.SubscriptionCadenceTypeEnum.ANNUALLY,e.type,null==h?void 0:h.features,u)},translationKey:null!=(i=e.translationKey)?i:void 0,cta:o,featuresToggleCopy:u("checkout.plans.".concat(y,".featuresToggleCopy"),"Free features"),isMostPopular:e.type===c,prices:{annualPrice:h?{id:h.id,cost:h.cost,taxBehavior:h.taxBehavior}:void 0,monthlyPrice:v?{id:v.id,cost:v.cost,taxBehavior:v.taxBehavior}:void 0},priceIds:{monthly:v?[v.id]:[],annual:h?[h.id]:[]},currencySymbol:e.currencySymbol,currency:e.currency,slug:e.slug}}},45873:(e,t,n)=>{n.d(t,{TE:()=>a}),n(48651);let a="checkout-new-subscription-events"},49566:(e,t,n)=>{n.d(t,{J:()=>p});var a=n(17395),i=n(64331),r=n(64246),l=n(92549),o=n(6330),s=n(11008),c=n(65162);let d=e=>{var t,n;let{...r}=e,d=(0,a.I)(l.mQ,r),{data:u}=d;return((0,c.useEffect)(()=>{var e,t;if(u&&(s.Ay.setUserProperties((null==(e=u.getCurrentSubscription)?void 0:e.__typename)==="Subscription"?{planType:u.getCurrentSubscription.plan.toLowerCase(),subscriptionFrequency:u.getCurrentSubscription.cadence}:{planType:i.R$.Free.toLowerCase(),subscriptionFrequency:i.rU.Monthly}),(null==(t=u.getCurrentSubscription)?void 0:t.__typename)==="Subscription")){let e;switch(u.getCurrentSubscription.plan){case"ENTERPRISE":e="ENTERPRISE";break;case"FREE":e="FREE";break;default:e="PAID"}(0,o.zQ)(e)}},[u]),(null==(n=d.data)||null==(t=n.getCurrentSubscription)?void 0:t.__typename)==="Subscription")?{...d,data:d.data.getCurrentSubscription}:{...d,data:null}},u=e=>{var t,n;let i=(0,a.I)(r.yp,{fetchPolicy:"cache-and-network",...e});return(null==(n=i.data)||null==(t=n.getFeatureUsageReportByWorkspaceId)?void 0:t.__typename)==="FeatureUsageReport"?{...i,data:i.data.getFeatureUsageReportByWorkspaceId}:{...i,data:null}},p=()=>({useGetCurrentSubscriptionQuery:d,useGetFeatureUsageReportByWorkspaceIdQuery:u})}
1,53672:(e,t,n)=>{n.d(t,{ps:()=>v,km:()=>b,Ky:()=>p,CK:()=>u,ap:()=>m,fV:()=>g,TH:()=>y,YE:()=>C,Yy:()=>h,K$:()=>f,kN:()=>w});var a=n(69130),i=n(47137);let r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPromoCodesBulk"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"codes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkPromoCodeItemInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"billingAccountId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPromoCodesBulk"},arguments:[{kind:"Argument",name:{kind:"Name",value:"codes"},value:{kind:"Variable",name:{kind:"Name",value:"codes"}}},{kind:"Argument",name:{kind:"Name",value:"billingAccountId"},value:{kind:"Variable",name:{kind:"Name",value:"billingAccountId"}}},{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HTTPError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BulkPromoCodeResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"cadence"}},{kind:"Field",name:{kind:"Name",value:"plan"}},{kind:"Field",name:{kind:"Name",value:"error"}},{kind:"Field",name:{kind:"Name",value:"result"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"processorId"}},{kind:"Field",name:{kind:"Name",value:"processorCouponId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"durationType"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}}]}}]}}]}}]};var l=n(69232),o=n(72929),s=n(94329),c=n(38931);let d={"Content-Type":"application/json"},u=async e=>{if(e instanceof Response){var t,n,a,i;let r=await e.json().catch(()=>null);return{message:(null==r||null==(n=r.errors)||null==(t=n[0])?void 0:t.message)||e.statusText||"HTTP ".concat(e.status),status:e.status,code:null==r||null==(i=r.errors)||null==(a=i[0])?void 0:a.code}}return{message:e instanceof Error?e.message:String(e),status:400}},p=async e=>{let{billingAccountId:t,subscriptionDetails:n,planPriceId:a,metadata:i}=e;if(t)try{let e={cadence:n.planCadence,plan:n.planType,planPriceId:a,...n.coupon&&{coupon:n.coupon},...n.promoCodeId&&{promoCodeId:n.promoCodeId},trialPeriodDays:n.trialPeriodDays,currency:n.currency,...i&&{metadata:i}},r=await (0,s.eL)().subscriptions.initialiseSubscription(e,t,void 0);if(!r)return null;return{data:r.data}}catch(i){n.trialPeriodDays&&(0,c.ai)(i,"createSubscription");let{message:e,status:t,code:a}=await u(i);return{error:e,status:t,errorCode:a}}},m=async e=>{let{billingAccountId:t}=e;try{return(await (0,s.eL)().subscriptions.listSubscriptions(void 0,void 0,0,10,t,void 0)).data}catch(e){return}},y=async e=>{let{currentUserId:t}=e;try{let{data:e}=await (0,s.eL)().profiles.getById(t);return e}catch(e){return e}},h=async e=>{let{subscriptionId:t,data:n,billingAccountId:a,freeTrialWithCard:i}=e;try{let e=await (0,s.eL)().subscriptions.updateSubscription(t,n,a);return{success:!0,data:null==e?void 0:e.data}}catch(t){let e=await u(t);return i?(0,c.ai)(t,"modifySubscription"):(0,c.uv)(t,"modifySubscription",e),{success:!1,error:e}}},g=async e=>{let{cadence:t,plan:n,quantity:a,quantityDelta:i,billingAccountId:r,subscriptionId:l,workspaceId:u,promoCodeId:p,abortSignal:m,freeTrialWithCard:y,planPriceId:h}=e;try{let e=t.toString(),c=n.toString(),y=await (0,s.eL)().fetch("".concat(o.H$,"/v1/subscriptions/").concat(l,"/preview-update?").concat(new
1URLSearchParams({cadence:e,plan:c,quantity:a,...i&&{quantityDelta:i},...p&&{promoCodeId:p},...h&&{planPriceId:h}})),{...m&&{signal:m},method:"GET",headers:{...d,workspaceId:u,billingAccountId:r}});if(!y)return null;let g=await y.json();return null==g?void 0:g.data}catch(e){if("AbortError"===e.name)return;return y&&(0,c.ai)(e,"getProratedPrice"),e}},v=async e=>{let{subscriptionId:t,processorPaymentMethodId:n}=e;try{let e=await (0,s.eL)().fetch("".concat(o.H$,"/v1/subscriptions/").concat(t,"/confirm-payment"),{method:"POST",headers:d,body:JSON.stringify({processorPaymentMethodId:n})});if(!e)return null;return await e.json()}catch(e){return console.log("error",e),e}},b=async e=>{let{paymentMethodId:t,processorPaymentMethodId:n}=e;try{let e=await (0,s.eL)().fetch("".concat(o.H$,"/v1/payment-methods/").concat(t,"/confirm"),{method:"POST",headers:d,body:JSON.stringify({processorPaymentMethodId:n})});if(!e)return null;return await e.json()}catch(e){return e}},f=async e=>{let{billingAccountId:t,requests:n}=e,o=Object.entries(n).filter(e=>null!=e[1]);if(0===o.length)return{};let{data:s}=await a.Vs.query({query:r,variables:{codes:o.map(e=>{let[,t]=e;return{code:t.promoCode,cadence:(0,l.h)(t.cadence),plan:i.Ti[t.plan]}}),billingAccountId:t},fetchPolicy:"no-cache"}),c=null==s?void 0:s.getPromoCodesBulk;if(!c||"HTTPError"===c.__typename)throw Error((null==c?void 0:c.__typename)==="HTTPError"?c.message:"Failed to fetch promo codes");return Object.fromEntries(o.map((e,t)=>{var n,a;let[i]=e,r=c.items[t];return[i,{result:null!=(n=r.result)?n:null,error:null!=(a=r.error)?a:null}]}))},C=async e=>{var t;let{billingAccountId:n,limitPaymentMethods:a}=e,i=await (0,s.eL)().billingAccounts.getBillingAccount(n);if(!i.data||!(null==i||null==(t=i.data)?void 0:t.ownerId))return null;let r=i.data.ownerId,l=await (0,s.eL)().paymentMethods.initialisePaymentMethod({limitPaymentMethods:!!a},n,r);return null==l?void 0:l.data},w=async e=>{let t,{billingAccountId:n,subscriptionId:a,paymentMethodId:i,freeTrialWithCard:r}=e;try{t=await (0,s.eL)().subscriptions.updateSubscription(a,{paymentMethodId:i},n)}catch(e){return r&&(0,c.ai)(e,"updateSubscriptionPaymentMethod"),null}return t}},55481:(e,t,n)=>{n.d(t,{K2:()=>l,M2:()=>s,P7:()=>r,ep:()=>c,i6:()=>i,jr:()=>d,sr:()=>p,wg:()=>o});var a=n(21050);let i={["".concat(a.SubscriptionPlanTypeEnum.FREE)]:0,["".concat(a.SubscriptionPlanTypeEnum.STORAGEONLY)]:1,["".concat(a.SubscriptionPlanTypeEnum.BASIC)]:2,["".concat(a.SubscriptionPlanTypeEnum.PRO)]:3,["".concat(a.SubscriptionPlanTypeEnum.BUSINESS)]:4,["".concat(a.SubscriptionPlanTypeEnum.ENTERPRISE)]:5},r=[a.SubscriptionPlanTypeEnum.BASIC,a.SubscriptionPlanTypeEnum.PRO,a.SubscriptionPlanTypeEnum.BUSINESS,a.SubscriptionPlanTypeEnum.ENTERPRISE],l=e=>{let{plan:t,isCurrentPlanUpgradeable:n=!1}=e;return r.filter(e=>i[t]<i[e]+ +!!n)},o=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(t=>i[e]<i[t]+ +!!n)},s=(e,t)=>{let n=i[e],r=Object.keys(i).filter(e=>t.includes(a.SubscriptionPlanTypeEnum[e])).find(e=>i[e]>=n+1);return r?a.SubscriptionPlanTypeEnum[r]:null},c=(e,t)=>i[a.SubscriptionPlanTypeEnum[e]]<=i[a.SubscriptionPlanTypeEnum[t]],d={currency:a.CurrencyTypeEnum.USD,remainingAmount:0,subtotalAmount:0,totalAmount:0,unusedAmount:0,billableSeats:1,tax:null},u=[a.SubscriptionStatusTypeEnum.ACTIVE,a.SubscriptionStatusTypeEnum.TRIALING,a.SubscriptionStatusTypeEnum.PASTDUE,a.SubscriptionStatusTypeEnum.UNPAID],p=e=>!!e&&u.includes(e)},55964:(e,t,n)=>{n.d(t,{CW:()=>i,rL:()=>r});var a=n(30986);let i=()=>(0,a.Tw)().checkoutFlow,r=()=>(0,a.Tw)().isCheckoutFinalizing},58662:(e,t,n)=>{n.d(t,{a:()=>l});var a=n(4930),i=n(41811),r=n(78820);let l=e=>{let{i18n:t,children:n}=e;return(0,a.jsx)(i.Y,{i18n:t,namespace:r._W,fallbackResources:r.F6,loadLocaleResources:r.y6,children:n})}},62052:(e,t,n)=>{n.d(t,{Rd:()=>h,gj:()=>p,nx:()=>m,s5:()=>y,vk:()=>u});var a=n(21050);let{FREE:i,STORAGEONLY:r,BASIC:l,PRO:o,BUSINESS:s,ENTERPRISE:c}=a.SubscriptionPlanTypeEnum,d=[i,r,l,o,s,c],u=e=>[...e].sort((e,t)=>{let n=d.indexOf(e.type),a=d.indexOf(t.type);return -1===n?1:-1===a?-1:n-a});function p(e){let t=d.indexOf(e);return d.filter(e=>d.indexOf(e)<t)}function m(e){let{currentPlanType:t,comparisonPlanType:n}=e,i=Object.values(a.SubscriptionPlanTypeEnum);return i.indexOf(n.toString())<i.indexOf(t.toString())}function y(e){let{currentPlanCreditAmount:t,comparisonCreditAmount:n}=e;return n>t}function h(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e||n===c)return!1;if(e&&!(null==t?void 0:t.plan)&&n===i)return!0;let o=(null==t?void 0:t.plan)&&p(null==t?void 0:t.plan).includes(n),s=(null==t?void 0:t.cadence)===a.SubscriptionCadenceTypeEnum.ANNUALLY,d=(null==t?void 0:t.plan)===n;return s&&r===a.SubscriptionCadenceTypeEnum.MONTHLY||o||d&&!l}},62737:(e,t,n)=>{n.d(t,{O:()=>a});var a=function(e){return e.WorkspaceSettingsPrivacyAndSSOTab="Workspace Settings Privacy & SSO Tab",e.CheckoutModalEnterpriseTab="Checkout Modal Enterprise Tab",e.CheckoutModalComparison="Checkout Modal Comparison",e.CheckoutModalPaymentInfo="Checkout Modal Payment Info",e.CompactBillingPeriodSelector="Compact Billing Perio
1d Selector",e.PRICING_PAGE_CONTACT_SALES_BUTTON_ENTERPRISE_PLAN="Pricing Page Contact Sales Button Enterprise Plan",e.PRICING_PAGE_CONTACT_SALES_BUTTON_BUSINESS_PLAN="Pricing Page Contact Sales Button Business Plan",e.PRICING_PAGE_CONTACT_SALES_BUTTON_COMPARISON_TABLE="Pricing Page Contact Sales Button Comparison Table",e.PRICING_PAGE_FAQS="Pricing Page FAQs",e}({})},64246:(e,t,n)=>{n.d(t,{yp:()=>a});let a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFeatureUsageReportByWorkspaceId"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFeatureUsageReportByWorkspaceId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"workspaceId"},value:{kind:"Variable",name:{kind:"Name",value:"workspaceId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FeatureUsageReport"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeatureUsageReportItemFields"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HTTPError"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeatureUsageReportItemFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FeatureUsageReportItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"feature"}},{kind:"Field",name:{kind:"Name",value:"total"}},{kind:"Field",name:{kind:"Name",value:"available"}}]}}]}},65451:(e,t,n)=>{n.d(t,{D:()=>tR});var a,i,r,l,o,s,c,d,u,p,m,y,h,g,v,b,f,C,w,k,S,x,T,E,A,P,N,I,L,j,O,F,M,U,V,R,B,D,G,W,Y,K=n(4930),H=n(64331),_=n(36478),z=n(46376),q=n(50957),Q=n(43264),J=n(70961),$=n(74338),Z=n(37351),X=n(21050),ee=n(65162);let et=e=>"".concat(e.planSlug,"-").concat(e.creditAmount),en=e=>{let{option:t,creditsLabel:n,cadenceSuffix:a,noAICreditsLabel:i,noCreditsLabel:r,isCurrentPlan:l}=e;if(0===t.creditAmount)return l?i:r||"Add AI credits to plan";let o=t.creditAmount.toLocaleString(),s="".concat(o," ").concat(n);return a?"".concat(s," ").concat(a):s};var ea=n(481);let{ANNUALLY:ei,MONTHLY:er}=X.SubscriptionCadenceTypeEnum;var el=n(98666),eo=n(19449),es=n(44672),ec=n(78820);let ed=e=>{let{cadence:t,onCadenceChange:n,bestDiscount:a}=e,{t:i}=(0,q.Bd)(ec._W),r=t===X.SubscriptionCadenceTypeEnum.ANNUALLY;return(0,K.jsxs)("div",{className:"flex w-full items-center gap-2 max-lg:justify-center lg:justify-start","data-testid":"@react-checkout/intervalToggle/toggleContainer",children:[(0,K.jsx)("span",{className:(0,z.cn)("font-medium text-[13px] leading-4",{"text-text-subtle":r,"font-semibold text-text-default":!r}),"data-testid":"@react-checkout/intervalToggle/toggles/monthly",children:i("header.intervalToggle.payMonthly","Pay monthly")}),(0,K.jsx)(es.d,{size:"small",checked:r,onCheckedChange:e=>{n(e?X.SubscriptionCadenceTypeEnum.ANNUALLY:X.SubscriptionCadenceTypeEnum.MONTHLY)},"aria-label":i("header.intervalToggle.payYearly","Pay yearly"),className:"relative data-[state=checked]:bg-action-invert data-[state=unchecked]:bg-action-invert before:absolute before:-inset-x-1 before:-inset-y-2 before:content-['']","data-testid":"@react-checkout/intervalToggle/switch"}),(0,K.jsx)("span",{className:(0,z.cn)("text-[13px] leading-4",{"font-semibold text-text-default":r,"font-medium text-text-subtle":!r}),"data-testid":"@react-checkout/intervalToggle/toggles/yearly",children:i("header.intervalToggle.payYearly","Pay yearly")}),void 0!==a&&a>0&&(0,K.jsx)("span",{className:"whitespace-nowrap font-medium text-[13px] text-text-brand leading-4",children:i("header.intervalToggle.annualDiscountClarificationShort","Save up to {bestDiscount}%",{bestDiscount:a})})]})};var eu=n(73504),ep=n(77739),em=n(91811),ey=n(95325),eh=n(200);let eg=(0,ee.createContext)(null),ev=()=>{let e=(0,ee.useContext)(eg);if(!e)throw Error("usePlanCardContext must be used within PlanCardProvider");return e},eb=eg.Provider,ef=(e,t)=>{let{cadence:n,isMobile:a,isShortViewport:i,isHighlighted:r}=t;return{planType:e.planType,cadence:n,isHighlighted:null!=r?r:!!e.copy.highlightText,isCurrentPlan:e.isCurrentPlan,isLegacyCurrentPlan:e.isLegacyCurrentPlan,isMobile:a,planPriceIds:e.planPriceIds,isUpgradeModal:!0,isShortViewport:i}},eC=e=>{let{highlightText:t}=e,{planType:n,isCurrentPlan:a,isLegacyCurrentPlan:i}=ev(),{t:r}=(0,q.Bd)(ec._W),l=n.toString().toLowerCase();return(0,K.jsxs)(K.Fragment,{children:[a&&(0,K.jsx)(ey.E,{variant:"new",className:"shrink-0 whitespace-nowrap rounded bg-action-invert px-1.5 py-0.5 font-medium text-[11px] text-text-invert","data-testid":"@plan-card/".concat(l,"/current-plan-badge"),children:r("planComparison.currentPlanBadge","Current plan")}),i&&(0,K.jsx)(eh.m_,{tooltip:r("planComparison.legacyBadgeTooltip","This plan is no longer available. If you switch plans you wonât be able to choose it again."),side:"top",children:(0,K.jsx)(ey.E,{variant:"new",className:"flex shrink-0 items-center gap-1 whitespace-nowrap rounded bg-action-upgrade px-1.5 py-0.5 font-medium text-[11px] text-text-default","data-testid":"@plan-card/".concat(l,"/legacy-badge"),children:r("planComparison.legacyBadge","Legacy")})}),t&&(0,K.jsx)(ey.E,{variant:"new",className:"shrink-0 whitespace-nowrap rounded bg-action-brand px-1 py-0.5 font-medium text-[11px] text-text-on-brand","data-testid":"@plan-card/".concat(l,"/highlighted-text"),children:t})]})};var ew=n(11008),ek=n(44083),eS=n(28832),ex=n(45873);let eT=e=>{let{cta:t,selectedCreditOption:n,label:a}=e,{planType:i,isHighlighted:r,isInOnboardingFlow:l,isUpgradeModal:o,planPriceIds:s}=ev(),c=i.toString().toLowerCase(),{getBoolean:d}=(0,ek.h)(),u=d(ex.TE,!1),p=t.disabled||(e=>{var t;return null!=(t=null==e?void 0:e.isCurrentPlan)&&t})(n);return(0,K.jsx)(eS.$,{"data-testid":"@plan-card/".concat(c,"/cta-button"),variant:l||o&&!r?"secondary":"primary",disabled:p,onClick:()=>{i===X.SubscriptionPlanTypeEnum.FREE?ew._F.onboardingContinueFree():(ew._F.viewPaywall({trigger:"user",planType:i.toString(),planPriceIds:null!=s?s:[]}),u||ew._F.subscriptionWorkflowInitiated({trigger:"user",planType:i.toString(),planPriceIds:null!=s?s:[]})),t.onClick({planSlug:null==n?void 0:n.planSlug})},className:(0,z.cn)("w-full h-10 overflow-hidden rounded-full px-6 py-4 font-semibold text-[13px] leading-4",o?void 0:"bg-action-invert text-white hover:bg-action-invert-hover active:bg-action-invert-hover"),children:null!=a?a:t.label})};function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let eA=function(e){return ee.createElement("svg",eE({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a||(a=ee.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M7.998.75c.08 0 .158.025.224.07l.012.01c.006.003.039.029.079.15.044.137.066.29.106.532.087.525.246 1.302.513 2.083.261.764.655 1.615 1.255 2.216.608.607 1.472 1.002 2.244 1.264a13.5 13.5 0 0 0 2.09.509c.231.038.374.058.502.099.114.035.14.065.142.069l.017.022a.4.4 0 0 1 .068.22v.012a.38.38 0 0 1-.085.242c-.003.004-.027.034-.142.07-.128.04-.27.06-.502.098-.519.085-1.302.242-2.091.51-.773.262-1.636.657-2.243 1.264-.6.6-.994 1.452-1.255 2.216a13.4 13.4 0 0 0-.513 2.082c-.04.242-.062.396-.107.532-.039.121-.072.147-.078.15l-.012.01a.39.39 0 0 1-.449 0l-.012-.01c-.005-.003-.039-.028-.078-.15-.045-.136-.067-.29-.107-.532a13.4 13.4 0 0 0-.513-2.083c-.26-.764-.654-1.614-1.254-2.215s-1.451-.994-2.215-1.255a13.4 13.4 0 0 0-2.082-.513c-.242-.04-.396-.062-.533-.107-.12-.04-.146-.072-.15-.078L.82 8.225A.4.4 0 0 1 .75 8l.005-.06a.4.4 0 0 1 .065-.165l.01-.012c.003-.006.028-.039.15-.078.136-.045.29-.067.532-.107a13.4 13.4 0 0 0 2.082-.513c.764-.261 1.614-.655 2.215-1.255s.993-1.451 1.254-2.215c.268-.78.426-1.558.513-2.083.04-.242.062-.396.107-.533.04-.12.073-.146.078-.15L7.773.82a.4.4 0 0 1 .225-.07Z"})))};var eP=n(3975),eN=n(82558),eI=n(9374),eL=n(67053);function ej(){return(ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let eO=function(e){return ee.createElement("svg",ej({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),i||(i=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 10.936 8 14l3-3.064m0-5.872L8 2 5 5.064"})))};function eF(){return(eF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let eM=function(e){return ee.createElement("svg",eF({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),r||(r=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 10 8 6l-4 4"})))};var eU=n(27284);let eV=eN.bL,eR=eN.WT,eB=(0,eI.F)("relative box-border flex h-10 w-full select-none items-center justify-between rounded-lg border border-solid py-3 pr-3 pl-3 text-sm outline-border-invert focus-visible:border-transparent focus-visible:outline-2 disabled:cursor-not-allowed disabled:text-text-disabled data-[state=open]:border-transparent data-placeholder:text-text-subtle data-[state=open]:outline-2 disabled:data-placeholder:text-text-disabled",{variants:{variant:{default:"border-transparent bg-action-subtle",border:"border-border-subtle bg-background-raised disabled:border-border-disabled"}},defaultVariants:{variant:"default"}}),eD=(0,ee.forwardRef)((e,t)=>{let{className:n,triggerClassName:a,children:i,variant:r,label:l,id:o,startAdornment:s,showLabel:c=!0,showExpandIcon:d=!0,error:u,fullWidth:p,...m}=e,y=!!u,h=!!s;return(0,K.jsxs)("div",{className:(0,z.cn)("grid items-center gap-2",!p&&"max-w-90"),children:[l?(0,K.jsx)(eU.J,{className:(0,z.cn)("font-semibold",!c&&"sr-only"),htmlFor:o,children:l}):null,(0,K.jsxs)("div",{className:"grid w-full gap-1",children:[(0,K.jsxs)(eN.l9,{ref:t,id:o,className:(0,z.cn)(eB({variant:r,className:n}),y&&"border border-border-destructive border-solid outline-border-destructive",h&&"pl-9",a),...m,children:[h?(0,K.jsx)("div",{className:"pointer-events-none absolute top-0 bottom-0 left-0 flex items-center justify-center p-3",children:s}):null,i,d&&(0,K.jsx)("div",{className:"flex flex-col items-center gap-0.5",children:(0,K.jsx)(eO,{className:"h-4 w-4"})})]}),y?(0,K.jsx)("span",{className:"text-text-destructive",children:u}):null]})]})});eD.displayName=eN.l9.displayName,(0,ee.forwardRef)((e,t)=>{let{className:n,...a}=e;return(0,K.jsx)(eN.PP,{ref:t,className:(0,z.cn)("flex h-8 cursor-default items-center justify-center border-border-subtle border-b py-1",n),...a,children:(0,K.jsx)(eu.I,{icon:eM,className:"h-4 w-4"})})}).displayName=eN.PP.displayName;let eG=(0,ee.forwardRef)((e,t)=>{let{className:n,...a}=e;return(0,K.jsx)(eN.wn,{ref:t,className:(0,z.cn)("flex h-8 cursor-default items-center justify-center border-border-subtle border-t py-1",n),...a,children:(0,K.jsx)(eu.I,{icon:eP.A,className:"h-4 w-4"})})});eG.displayName=eN.wn.displayName;let eW=(0,ee.forwardRef)((e,t)=>{let{className:n,children:a,position:i="popper",...r}=e;return(0,K.jsx)(eN.ZL,{children:(0,K.jsxs)(eN.UC,{ref:t,className:(0,z.cn)("relative z-100 max-h-[min(var(--radix-select-content-available-height),25rem)] min-w-32 overflow-hidden rounded-xl bg-background-raised shadow-md","popper"===i&&"data-[side=bottom]:translate-y-2 data-[side=top]:-translate-y-2",n),position:i,...r,children:[(0,K.jsx)(eN.LM,{className:(0,z.cn)("p-1","popper"===i&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:a}),(0,K.jsx)(eG,{})]})})});
1eW.displayName=eN.UC.displayName,(0,ee.forwardRef)((e,t)=>{let{className:n,...a}=e;return(0,K.jsx)(eN.JU,{ref:t,className:(0,z.cn)("px-3 py-1.5 font-semibold text-text-subtle text-xs",n),...a})}).displayName=eN.JU.displayName;let eY=(0,ee.forwardRef)((e,t)=>{let{className:n,children:a,indicator:i,indicatorPosition:r="left",startAdornment:l,...o}=e;return(0,K.jsxs)(eN.q7,{ref:t,className:(0,z.cn)("relative flex w-full cursor-pointer select-none items-center rounded-lg p-3 pr-2 text-sm hover:bg-action-x-subtle-hover hover:outline-hidden focus:outline-hidden","data-disabled:pointer-events-none data-disabled:opacity-50","cursor-pointer data-disabled:cursor-not-allowed","left"===r&&!l&&"pl-9","right"===r&&"pr-9",l&&"gap-2 pl-3",n),...o,children:["left"===r&&!l&&(0,K.jsx)("span",{className:"absolute left-2 flex h-4 w-4 items-center justify-center",children:(0,K.jsx)(eN.VF,{children:i||(0,K.jsx)(eL.A,{className:"h-4 w-4"})})}),l,(0,K.jsx)(eN.p4,{children:a}),"right"===r&&(0,K.jsx)("span",{className:"absolute right-2 flex h-4 w-4 items-center justify-center",children:(0,K.jsx)(eN.VF,{children:i||(0,K.jsx)(eL.A,{className:"h-4 w-4"})})})]})});eY.displayName=eN.q7.displayName,(0,ee.forwardRef)((e,t)=>{let{className:n,...a}=e;return(0,K.jsx)(eN.wv,{ref:t,className:(0,z.cn)("-mx-1 my-1 h-px bg-border-default",n),...a})}).displayName=eN.wv.displayName,eN.l9;let eK=e=>{let{creditOptions:t,selectedOption:n,onChange:a,testId:i="credit-selector",disabled:r=!1,triggerClassName:l,itemClassName:o,addBottomMarginWhenNoVideoClips:s=!0,wrapperClassName:c="",hideVideoClipsButton:d=!1}=e,{t:u}=(0,q.Bd)(),{isLegacyCurrentPlan:p,cadence:m}=ev(),y=n?et(n):"",h=p?u("planComparison.noAICredits","No AI credits"):u("planComparison.noCredits","Add AI credits to plan"),g=n?en({option:n,creditsLabel:u("planComparison.creditsLabel","credits"),noAICreditsLabel:u("planComparison.noAICredits","No AI credits"),cadenceSuffix:m===X.SubscriptionCadenceTypeEnum.MONTHLY?"/ ".concat(u("planComparison.cadenceSuffix.monthly","month")):"/ ".concat(u("planComparison.cadenceSuffix.yearly","year")),noCreditsLabel:h}):void 0;return(0,K.jsx)("div",{className:(0,z.cn)(d&&s&&"mb-6",c),children:(0,K.jsx)("div",{className:"w-full [&>div]:w-full",children:(0,K.jsxs)(eV,{value:y,onValueChange:e=>{let n=t.find(t=>et(t)===e);n&&a&&a(n)},disabled:r,children:[(0,K.jsxs)(eD,{className:(0,z.cn)("flex h-8 w-full items-center justify-start gap-1.5 self-stretch rounded-full border-none bg-action-subtle px-3 py-2 text-left font-normal text-[13px] hover:bg-action-subtle-hover disabled:bg-action-subtle disabled:text-text-disabled disabled:hover:bg-action-subtle",l),"data-testid":"".concat(i,"/select"),showLabel:!1,showExpandIcon:!1,fullWidth:!0,children:[(0,K.jsx)(eR,{placeholder:u("planComparison.selectCreditsPlaceholder","Select AI Credits"),children:g}),(0,K.jsx)(eu.I,{icon:eP.A,className:"ml-auto h-4 w-4 shrink-0"})]}),(0,K.jsx)(eW,{className:"z-9999",children:t.map(e=>{let t=et(e),n=en({option:e,creditsLabel:u("planComparison.creditsLabel","credits"),noAICreditsLabel:u("planComparison.noAICredits","No AI credits"),noCreditsLabel:h,isCurrentPlan:e.isCurrentPlan}),a=e.isCurrentPlan?"".concat(n," (").concat(u("currentPlan","Current Plan"),")"):n;return(0,K.jsx)(eY,{value:t,disabled:e.isCurrentPlan,className:(0,z.cn)("py-3 font-normal text-[13px] hover:bg-action-subtle-hover",o),children:a},t)})})]})})})},eH=e=>new Intl.NumberFormat("en-US").format(e),e_=e=>{let{creditOptionsConfig:t,selectedCreditOption:n,onCreditChange:a,isCtaDisabled:i,aiCredits:r}=e,{t:l}=(0,q.Bd)(ec._W),{planType:o,isUpgradeModal:s}=ev(),c=o.toString().toLowerCase(),d=o===X.SubscriptionPlanTypeEnum.ENTERPRISE,u=o===X.SubscriptionPlanTypeEnum.FREE;return s?d||u||!t?null:(0,K.jsx)("div",{className:"w-full shrink-0",children:(0,K.jsx)(eK,{testId:"@plan-card/".concat(c,"/credit-options"),addBottomMarginWhenNoVideoClips:!0,hideVideoClipsButton:!1,creditOptions:t.creditOptions,selectedOption:n,onChange:a,disabled:i})}):r||d?(0,K.jsxs)("div",{className:"flex h-6 items-center gap-2 py-1",children:[(0,K.jsx)(eu.I,{size:14,icon:eA,className:"shrink-0 text-icon-default"}),(0,K.jsx)("p",{className:"whitespace-nowrap text-[12px] leading-[1.4]",children:d||!r?(0,K.jsx)("span",{className:"font-medium text-text-default",children:l("planComparison.customAiCredits","Custom AI Credits")}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)("span",{className:"font-medium text-text-default",children:l("planComparison.aiCreditsAmount","{credits} Credits \xb7",{credits:eH(r.credits)})})," ",(0,K.jsx)("span",{className:"font-normal text-text-subtle",children:l("planComparison.aiVideosAmount","~{videos} AI Videos",{videos:eH(r.videoEstimate)})})]})})]}):null};function ez(){return(ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function eQ(){return(eQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e$(){return(e$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e0(){return(e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e1(){return(e1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e2(){return(e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var e3=n(21606),e5=n(93407);function e6(){return(e6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e4(){return(e4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e7(){return(e7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e8(){return(e8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function e9(){return(e9=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function tt(){return(tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var tn=n(33886);function ta(){return(ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function ti(){return(ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function tr(){return(tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function tl(){return(tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function to(){return(to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function ts(){return(ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}function tc(){return(tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let td={unlock:e5.A,billing:function(e){return ee.createElement("svg",e6({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),w||(w=ee.createElement("g",{clipPath:"url(#a)"},ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 5.5h3.5m-3.5 5h5M5 8h6m-8 7h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2"}))),k||(k=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},speed:function(e){return ee.createElement("svg",e4({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),S||(S=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",d:"m9.036 10.25 1.607-1.607M1 11.07a7.071 7.071 0 1 1 14.143 0m-5.786.143a1.286 1.286 0 1 1-2.571 0 1.286 1.286 0 0 1 2.571 0Z"})))},brandKit:function(e){return ee.createElement("svg",e7({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),x||(x=ee.createElement("g",{clipPath:"url(#a)"},ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.111 15c.825 0 1.617-.328 2.2-.911m-2.2.911A3.11 3.11 0 0 1 1 11.889v0V2.5A1.5 1.5 0 0 1 2.5 1h3.222a1.5 1.5 0 0 1 1.5 1.5v9.389c0 .825-.328 1.616-.911 2.2m-2.2.911H13.5a1.5 1.5 0 0 0 1.5-1.5v-3.222a1.5 1.5 0 0 0-1.5-1.5h-1.878m-5.311 5.31 6.6-6.599a1.556 1.556 0 0 0 0-2.2l-2.2-2.2a1.556 1.556 0 0 0-2.2 0L7.222 4.378"}),ee.createElement("circle",{cx:4.1,cy:11.8,r:1,fill:"currentColor"}))),T||(T=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},thumbsUp:function(e){return ee.createElement("svg",eZ({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),h||(h=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4.667 14.667h-2a1.333 1.333 0 0 1-1.334-1.333V8.667a1.333 1.333 0 0 1 1.334-1.333h2M9.333 6V3.334a2 2 0 0 0-2-2l-2.666 6v7.333h7.52a1.33 1.33 0 0 0 1.333-1.133l.92-6A1.333 1.333 0 0 0 13.107 6z"})))},comment:function(e){return ee.createElement("svg",e8({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),E||(E=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M5.333 6.667h5.334M5.333 9.333h4m4.4 2.068a6.666 6.666 0 1 0-2.332 2.333l2.304.658a.557.557 0 0 0 .687-.687z"})))},emoji:function(e){return ee.createElement("svg",e9({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),A||(A=ee.createElement("g",{clipPath:"url(#a)"},ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m6.367 7.144.007-.7m3.26 0 .007.7M5.025 9.4S5.9 11.15 8 11.15s2.975-1.75 2.975-1.75M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0"}))),P||(P=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},analytics:function(e){return ee.createElement("svg",te({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),N||(N=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M2 2v12h12M5.238 8.952l3.5-3.5 2.333 2.334 3.5-3.5"})))},template:function(e){return ee.createElement("svg",tt({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),I||(I=ee.createElement("g",{clipPath:"url(#a)"},ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",d:"M1.333 6V4.167a2.833 2.833 0 0 1 2.834-2.834h7.666a2.833 2.833 0 0 1 2.834 2.834V6M1.333 6v5.833a2.833 2.833 0 0 0 2.834 2.834H6M1.333 6H6m8.667 0v5.833a2.833 2.833 0 0 1-2.834 2.834H6M14.667 6H6m0 0v8.667"}))),L||(L=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},support:tn.A,storage:function(e){return ee.createElement("svg",ta({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),j||(j=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",d:"M15 8V3.5A1.5 1.5 0 0 0 13.5 2h-11A1.5 1.5 0 0 0 1 3.5V8m14 0H1m14 0v4.5a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5V8"})),O||(O=ee.createElement("path",{fill:"currentColor",d:"M5.5 5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0 6a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"})))},magicTools:function(e){return ee.createElement("svg",ti({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),F||(F=ee.createElement("g",{clipPath:"url(#a)"},ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",d:"M12 10v1.25M9.5 12.5h1.25M12 13.75V15m1.25-2.5h1.25M13 1.25V2m-2 1.25h.75M13 4.5v.75m1.25-2H15m-9.46-.678L4.28 5.516a.5.5 0 0 1-.263.263L1.072 7.04a.5.5 0 0 0 0 .92l2.944 1.26a.5.5 0 0 1 .263.263l1.261 2.944a.5.5 0 0 0 .92 0l1.26-2.943a.5.5 0 0 1 .263-.263l2.944-1.261a.5.5 0 0 0 0-.92L7.984 5.78a.5.5 0 0 1-.263-.263L6.46 2.572a.5.5 0 0 0-.92 0Z"}))),M||(M=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},pen:function(e){return ee.createElement("svg",eX({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),g||(g=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m10.169 3.165 2.666 2.667M11.333 2A1.886 1.886 0 0 1 14 4.667l-9 9-3.667 1 1-3.667z"})))},hd:function(e){return ee.createElement("svg",tr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),U||(U=ee.createElement("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",clipPath:"url(#a)"},ee.createElement("path",{d:"M9.714 11.428h1.715a3.428 3.428 0 1 0 0-6.857H9.714zM7.429 4.571v6.857M2.286 4.571v6.857M1.143 2.286h13.714M1.143 13.714h13.714M2.286 8h5.143"}))),V||(V=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},sd:function(e){return ee.createElement("svg",tl({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),R||(R=ee.createElement("g",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.143,clipPath:"url(#a)"},ee.createElement("path",{d:"M
19.143 11.428h1.714a3.428 3.428 0 1 0 0-6.857H9.143zm-8-9.142h13.714M1.143 13.714h13.714m-12.571-4c0 .947 1.023 1.714 2.285 1.714s2.286-.767 2.286-1.714c0-2.286-4.444-1.428-4.444-3.428 0-.947.896-1.715 2.158-1.715.947 0 1.688.429 2 1.047"}))),B||(B=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},upload:function(e){return ee.createElement("svg",eq({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),c||(c=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13.5h-.005a4.001 4.001 0 1 1 .13-7.998 4.002 4.002 0 1 1 7.716 2.117A3.001 3.001 0 0 1 12 13.5h-1M8 8l-2.5 2.5M8 8l2.5 2.5M8 8v5.6"})))},subtitles:function(e){return ee.createElement("svg",e1({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),b||(b=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4 11h8m-8.455 3h8.91c1.61 0 2.545-.9 2.545-2.4V4.4c0-1.5-.935-2.4-2.546-2.4H3.545C1.935 2 1 2.9 1 4.4v7.2c0 1.5.935 2.4 2.545 2.4"})),f||(f=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4 11h8m-8.455 3h8.91c1.61 0 2.545-.9 2.545-2.4V4.4c0-1.5-.935-2.4-2.546-2.4H3.545C1.935 2 1 2.9 1 4.4v7.2c0 1.5.935 2.4 2.545 2.4"})))},translate:function(e){return ee.createElement("svg",e2({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),C||(C=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 2.4h7m0 0h1.4M8 2.4C7.528 5.719 5.55 8 2.4 9.05M5.2 2.4V1M3.1 4.5C3.8 5.9 5.55 7.65 7.3 8m.7 3.5 2.15-5.375a.7.7 0 0 1 1.3 0L13.6 11.5m-5.6 0L6.6 15M8 11.5h5.6m0 0L15 15"})))},image:function(e){return ee.createElement("svg",eQ({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),d||(d=ee.createElement("g",{clipPath:"url(#a)"},ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",d:"M1 10v4a1 1 0 0 0 1 1h10M1 10V2c0-.552.444-1 .996-1h12.005A1 1 0 0 1 15 2v10M1 10l2.293-2.293a1 1 0 0 1 1.414 0L9 12m3 3h2a1 1 0 0 0 1-1v-2m-3 3-3-3m6 0-2.293-2.293a1 1 0 0 0-1.414 0L9 12m1-6.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"}))),u||(u=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},dashboard:function(e){return ee.createElement("svg",eJ({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),p||(p=ee.createElement("g",{stroke:"currentColor",strokeLinecap:"round",clipPath:"url(#a)"},ee.createElement("path",{d:"M1.5 2.5a1 1 0 0 1 1-1H6a1 1 0 0 1 1 1V6a1 1 0 0 1-1 1H2.5a1 1 0 0 1-1-1zm0 7.5a1 1 0 0 1 1-1H6a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1H2.5a1 1 0 0 1-1-1zM9 2.5a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1V6a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1zM9 10a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1v3.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1z"}))),m||(m=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))},clips:function(e){return ee.createElement("svg",to({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),D||(D=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12.611 5.444v5.348c0 .76-.616 1.375-1.375 1.375H2.833m11.611-4.89v5.348c0 .76-.615 1.375-1.375 1.375H4.667m6.11-4.889V4.222c0-.675-.546-1.222-1.221-1.222H2.222C1.547 3 1 3.547 1 4.222v4.89c0 .674.547 1.221 1.222 1.221h7.334c.675 0 1.222-.547 1.222-1.222"})))},users:e3.A,opacity:function(e){return ee.createElement("svg",e$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),y||(y=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10a5 5 0 0 1-10 0c0-3.5 5-9 5-9s5 5.5 5 9"})))},videoGen:function(e){return ee.createElement("svg",ez({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),l||(l=ee.createElement("path",{fill:"currentcolor",d:"M6 5.883a.5.5 0 0 1 .757-.429l3.528 2.117a.5.5 0 0 1 0 .858l-3.528 2.117a.5.5 0 0 1-.757-.43z"})),o||(o=ee.createElement("path",{stroke:"currentcolor",strokeLinecap:"round",d:"M15 8c0 1.87 0 2.804-.402 3.5a3 3 0 0 1-1.098 1.098C12.804 13 11.87 13 10 13H6c-1.87 0-2.804 0-3.5-.402A3 3 0 0 1 1.402 11.5C1 10.804 1 9.87 1 8s0-2.804.402-3.5A3 3 0 0 1 2.5 3.402C3.196 3 4.13 3 6 3h2"})),s||(s=ee.createElement("path",{fill:"currentcolor",d:"M13.456 1.318a.486.486 0 0 0-.912 0l
1-.407 1.1a1.22 1.22 0 0 1-.719.719l-1.1.407a.486.486 0 0 0 0 .912l1.1.407c.333.124.596.386.719.719l.407 1.1a.486.486 0 0 0 .912 0l.407-1.1c.123-.333.386-.595.719-.719l1.1-.407a.486.486 0 0 0 0-.912l-1.1-.407a1.22 1.22 0 0 1-.719-.719z"})))},stopwWatch:function(e){return ee.createElement("svg",e0({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),v||(v=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M8 2.667a6 6 0 1 0 0 12 6 6 0 0 0 0-12m0 0V1.334m0 4v3.333m2 0H8m2-7.333H6"})))},check:eL.A,star:function(e){return ee.createElement("svg",ts({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),G||(G=ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M7.043 1.967c.399-.756 1.515-.756 1.914 0l1.37 2.602c.156.296.45.503.788.555l2.979.459c.866.133 1.21 1.161.59 1.762l-2.13 2.067a1.02 1.02 0 0 0-.301.898l.47 2.885c.136.84-.767 1.475-1.548 1.09L8.487 12.96a1.1 1.1 0 0 0-.974 0l-2.688 1.324c-.781.386-1.684-.25-1.548-1.089l.47-2.885a1.02 1.02 0 0 0-.3-.898L1.314 7.345c-.62-.6-.275-1.629.591-1.762l2.979-.46a1.07 1.07 0 0 0 .788-.554z"})))},animation:function(e){return ee.createElement("svg",tc({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),W||(W=ee.createElement("g",{clipPath:"url(#a)"},ee.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.73 11.5c-.147.283-.23.603-.23.943 0 1.136.93 2.057 2.077 2.057.332 0 .645-.077.923-.214M3.635 7.75a3.421 3.421 0 0 0 4.615 4.614M14.5 6a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0"}))),Y||(Y=ee.createElement("defs",null,ee.createElement("clipPath",{id:"a"},ee.createElement("path",{fill:"#fff",d:"M0 0h16v16H0z"})))))}},tu=[{keywords:["subtitle","caption"],icon:td.subtitles},{keywords:["translat"],icon:td.translate},{keywords:["watermark"],icon:td.opacity},{keywords:["brandkit","brand"],icon:td.brandKit},{keywords:["template"],icon:td.template},{keywords:["clips"],icon:td.clips},{keywords:["genaistudio","aistudio","videogen","playground","clips"],icon:td.videoGen},{keywords:["exportquality"],icon:td.sd,requiredPlanType:X.SubscriptionPlanTypeEnum.FREE},{keywords:["exportquality"],icon:td.hd},{keywords:["stock"],icon:td.image},{keywords:["exportlength"],icon:td.stopwWatch},{keywords:["thumbsup","accountmanager"],icon:td.thumbsUp},{keywords:["upload"],icon:td.upload},{keywords:["filesize"],icon:td.speed},{keywords:["avatar","eyecontact","emoji"],icon:td.emoji},{keywords:["reviewer"],icon:td.pen},{keywords:["dubbing"],icon:td.billing},{keywords:["texttospeech","voice","audio","reviewer","comment"],icon:td.comment},{keywords:["magictool","aicleanup"],icon:td.magicTools},{keywords:["storage"],icon:td.storage},{keywords:["analytic"],icon:td.analytics},{keywords:["support","training","success"],icon:td.support},{keywords:["accountmanager"],icon:td.thumbsUp},{keywords:["motion"],icon:td.animation},{keywords:["team"],icon:td.users},{keywords:["usage"],icon:td.speed},{keywords:["privacy"],icon:td.unlock},{keywords:["workspace","team","security","usage","dashboard"],icon:td.dashboard}],tp=e=>{let{imageUrl:t,text:n}=e;return(0,K.jsxs)("div",{className:"flex w-[192px] flex-col items-start gap-1 rounded-[12px]",children:[(0,K.jsx)("img",{src:t,alt:n,className:"h-[103px] w-full rounded-[8px] object-cover"}),(0,K.jsx)("p",{className:"p-2 pt-1 font-medium text-[13px] leading-[140%]",children:n})]})},tm=()=>{let{t:e}=(0,q.Bd)(ec._W),t=e("tooltips.limitedTrialAITooltip.text","Look good and sound good with tools like Clean Audio, Portrait Touch-up...");return(0,K.jsx)(tp,{imageUrl:"https://static-assets.veed.io/react-checkout/tooltips/limitedTrialAITools.png",text:t})},ty=()=>{let{t:e}=(0,q.Bd)(ec._W),t=e("tooltips.limitedTrialGenStudio.text","Generate an entire video project from a prompt: script, video clips, audio...");return(0,K.jsx)(tp,{imageUrl:"https://static-assets.veed.io/react-checkout/tooltips/limitedTrialGenStudio.png",text:t})},th=()=>{let{t:e}=(0,q.Bd)(ec._W),t=e("tooltips.videoClips.text","Click to see examples and pricing for OpenAI Sora, Google Veo, VEED Fabric...");return(0,K.jsx)(tp,{imageUrl:"https://static-assets.veed.io/react-checkout/tooltips/generateVideoClips.png",text:t})};var tg=n(30158);let tv=e=>{let{text:t,isUspTitle:n}=e,{planType:a,isUpgradeModal:i,isShortViewport:r}=ev(),l=a.toString().toLowerCase(),o=n?tg.A:eL.A;return(0,K.jsxs)("li",{className:(0,z.cn)("flex items-start gap-2 font-normal text-[12px] text-text-subtle leading-[1.4]",i&&r?"min-h-5 py-0.5":"min-h-6 py-1"),"data-testid":"@plan-card/".concat(l,"/visible-feature-list/text"),children:[(0,K.jsx)(eu.I,{size:14,icon:o,className:(0,z.cn)("mt-0.5 h-3.5 w-3.5 flex-shrink-0 text-icon-subtle",n&&"rotate-90 lg:rotate-0")}),(0,K.jsx)("span",{children:t})]})},tb=e=>new Intl.NumberFormat("en-US").format(e),tf=e=>{let{highlights:t,aiCredits:n}=e,{t:a}=(0,q.Bd)(ec._W),{planType:i,isUpgradeModal:r}=ev(),l=i.toString().toLowerCase(),o=i===X.SubscriptionPlanTypeEnum.ENTERPRISE,s=i===X.SubscriptionPlanTypeEnum.FREE,c=!!(r&&!s&&!o&&n);return(0,K.jsxs)("ul",{className:"flex list-none flex-col items-start gap-0.5 self-stretch p-0","data-testid":"@plan-card/".concat(l,"/visible-feature-list"),children:[c&&n&&(0,K.jsxs)("li",{className:"flex h-6 items-center gap-2 py-1","data-testid":"@plan-card/".concat(l,"/visible-feature-list/credit-summary"),children:[(0,K.jsx)(eu.I,{size:14,icon:eA,className:"shrink-0 text-text-subtle"}),(0,K.jsxs)("p",{className:"whitespace-nowrap font-normal text-[12px] text-text-subtle leading-[1.4]",children:[(0,K.jsx)("span",{children:a("planComparison.aiCreditsAmount","{{credits}} Credits \xb7",{credits:tb(n.credits)})})," ",(0,K.jsx)("span",{children:a("planComparison.aiVideosAmount","~{{videos}} AI Videos",{videos:tb(n.videoEstimate)})})]})]}),t.map(e=>(0,K.jsx)(tv,{text:e.text,icon:((e,t)=>{if(!e)return td.check;let n=e.toLowerCase();for(let e of tu)if((!e.requiredPlanType||e.requiredPlanType===t)&&e.keywords.some(e=>n.includes(e)))return e.icon;return td.star})(void 0,i),tooltip:(e=>{if(!e)return;let t=e.toLowerCase();return t.includes("videoclips")?(0,K.jsx)(th,{}):t.includes("trialaitools")?(0,K.jsx)(tm,{}):t.includes("trialgenstudio")?(0,K.jsx)(ty,{}):void 0})(e.uspKey),onClick:e.onClick,isUspTitle:e.isUspTitle},e.text))]})},tC=e=>e.filter(e=>
1!e.isUspTitle).map(e=>e.text).join(", "),tw=e=>{let{planTitle:t,highlights:n,cta:a}=e,i=tC(n),r=(0,J.y)();return(0,K.jsxs)("div",{className:"flex w-0 min-w-full flex-col",children:[(0,K.jsx)("div",{className:r?"pb-2":"pb-4",children:(0,K.jsx)("div",{className:"h-px w-full bg-border-default"})}),(0,K.jsxs)("div",{className:(0,z.cn)("flex w-full items-center gap-4",r?"py-3":"py-4"),"data-testid":"@plan-card/enterprise/row",children:[(0,K.jsxs)("p",{className:"min-w-0 flex-1 truncate text-[13px] leading-[1.4]",children:[(0,K.jsx)("span",{className:"font-semibold text-text-default","data-testid":"@plan-card/enterprise/title",children:t}),(0,K.jsx)("span",{className:"mx-2 text-text-subtle",children:"\xb7"}),(0,K.jsxs)("span",{className:"text-text-subtle",children:[i,"â¦"]})]}),a&&(0,K.jsx)(eS.$,{variant:"secondary",size:"sm",onClick:()=>a.onClick(),disabled:a.disabled,"data-testid":"@plan-card/enterprise/cta-button",children:a.label})]})]})},tk=e=>e.planType.toString(),tS=e=>"plan-tile-".concat(tk(e)),tx=e=>{let{planTitle:t,highlights:n,cta:a}=e,{t:i}=(0,q.Bd)(ec._W);return(0,K.jsxs)("div",{className:"flex flex-col gap-1 px-1 pt-6 pb-2",children:[(0,K.jsxs)("p",{className:"font-normal text-[12px] text-text-subtle leading-4",children:[(0,K.jsx)("span",{className:"font-semibold text-text-default","data-testid":"@plan-card/enterprise/title",children:t}),(0,K.jsx)("span",{className:"mx-1",children:"\xb7"}),i("planComparison.customPricing","Custom pricing")]}),(0,K.jsx)("p",{className:"line-clamp-2 font-normal text-[12px] text-text-subtle leading-4",children:tC(n)}),a&&(0,K.jsxs)("button",{type:"button",onClick:()=>a.onClick(),disabled:a.disabled,className:"mt-1 flex items-center gap-1 self-start font-semibold text-[13px] text-text-default leading-4 underline-offset-2 hover:underline","data-testid":"@plan-card/enterprise/cta-button",children:[a.label,(0,K.jsx)(eu.I,{icon:ep.A,className:"h-3.5 w-3.5"})]})]})},tT=e=>{var t;let{card:n,isSelected:a,cadence:i,registerTile:r}=e,{props:l}=n,o=l.planType.toString().toLowerCase(),s=l.planType===X.SubscriptionPlanTypeEnum.ENTERPRISE,c=ef(l,{cadence:i,isMobile:!0}),d=s?l.pricing.amount:"".concat(l.pricing.currencySymbol).concat(l.pricing.amount),u=(0,ee.useRef)(null);return(0,K.jsx)(eb,{value:c,children:(0,K.jsx)("div",{ref:r,onPointerDown:e=>{var t;e.target.closest("button, input, select, a")||(e.preventDefault(),null==(t=u.current)||t.focus({preventScroll:!0}))},className:(0,z.cn)("rounded-2xl border p-4 transition-colors",a?"border-action-invert bg-background-base":"border-border-subtle bg-transparent"),"data-testid":"@plan-card/".concat(o).concat(c.isHighlighted?"/highlighted":""),children:(0,K.jsxs)("label",{htmlFor:tS(l),className:"flex cursor-pointer flex-col gap-1",children:[(0,K.jsxs)("span",{className:"flex items-center gap-2",children:[(0,K.jsx)(em.CU,{ref:u,value:tk(l),id:tS(l),"aria-label":"".concat(l.copy.planTitle," ").concat(d),className:"shrink-0","data-testid":"@plan-card/".concat(o,"/tile-radio")}),(0,K.jsx)("span",{className:"truncate font-semibold text-[15px] text-text-default leading-5","data-testid":"@plan-card/".concat(o,"/title"),children:l.copy.planTitle}),(0,K.jsx)(eC,{highlightText:l.copy.highlightText}),!l.pricing.hidePrice&&(0,K.jsx)("span",{className:"ml-auto shrink-0 whitespace-nowrap font-semibold text-[15px] text-text-default leading-5",children:d})]}),l.pricing.billingNote&&(0,K.jsx)("span",{className:"pl-6 font-normal text-[12px] text-text-subtle leading-4",children:l.pricing.billingNote}),(0,K.jsxs)("span",{className:"mt-3 flex flex-col gap-3",children:[(0,K.jsx)(e_,{creditOptionsConfig:l.creditOptionsConfig,selectedCreditOption:l.selectedCreditOption,onCreditChange:e=>{var t;return null==(t=l.onCreditOptionChange)?void 0:t.call(l,l.planType,e)},isCtaDisabled:null==(t=l.cta)?void 0:t.disabled,aiCredits:l.aiCredits}),(0,K.jsx)(tf,{highlights:l.highlights,aiCredits:l.aiCredits})]})]})})})},tE=e=>{let{planCards:t,enterpriseRow:n,cadence:a,preselectedPlan:i}=e,{t:r}=(0,q.Bd)(ec._W),[l,o]=(0,ee.useState)(),s=(()=>{var e;let n=t.map(e=>{let{props:t}=e;return tk(t)});if(l&&n.includes(l))return l;let a=null==i?void 0:i.toString();if(a&&n.includes(a))return a;let r=t.find(e=>{let{props:t}=e;return!!t.copy.highlightText});return r?tk(r.props):null!=(e=n[0])?e:""})(),c=(0,ee.useRef)(null),d=(0,ee.useRef)(new Map),u=t.find(e=>{let{props:t}=e;return tk(t)===s});return(0,K.jsxs)("div",{className:"flex min-h-0 w-full flex-1 flex-col",children:[(0,K.jsxs)("div",{ref:c,className:"min-h-0 flex-1 overflow-y-auto scroll-smooth px-5 pb-4 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[(0,K.jsx)(em.Bz,{value:s,onValueChange:e=>{o(e),requestAnimationFrame(()=>{var t;let n=c.current,a=d.current.get(e);n&&a&&(null==(t=n.scrollTo)||t.call(n,{top:a.offsetTop-n.offsetTop,behavior:"smooth"}))})},"aria-label":r("planComparison.choosePlan","Choose a plan"),children:t.map(e=>(0,K.jsx)(tT,{card:e,isSelected:tk(e.props)===s,cadence:a,registerTile:t=>{let n=tk(e.props);t?d.current.set(n,t):d.current.delete(n)}},e.key))}),n&&(0,K.jsx)(tx,{...n})]}),(null==u?void 0:u.props.cta)&&(0,K.jsx)("div",{className:"shrink-0 border-border-subtle border-t bg-background-base px-5 pt-4 pb-[max(1rem,env(safe-area-inset-bottom))]",children:(0,K.jsx)(eb,{value:ef(u.props,{cadence:a,isMobile:!0,isHighlighted:!0}),children:(0,K.jsx)(eT,{cta:u.props.cta,label:(()=>{let e=null==u?void 0:u.props.cta;if(e&&u)return e.canComposeWithPlanTitle?r("planComparison.stickyCta","{ctaLabel} to {planTitle}",{ctaLabel:e.label,planTitle:u.props.copy.planTitle}):e.label})(),selectedCreditOption:u.props.selectedCreditOption})})})]})},tA=e=>{let{planTitle:t,highlightText:n}=e,{planType:a}=ev(),i=a.toString().toLowerCase();return(0,K.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,K.jsx)("h3",{className:"min-w-0 shrink truncate font-semibold text-2xl text-text-default leading-7","data-testid":"@plan-card/".concat(i,"/title"),title:t,children:t}),(0,K.jsx)(eC,{highlightText:n})]})},tP=e=>{let{pricing:t,discount:n}=e,{planType:a,cadence:i}=ev(),{t:r}=(0,q.Bd)(ec._W),l=a.toString().toLowerCase(),o=a===X.SubscriptionPlanTypeEnum.ENTERPRISE;
1if(t.hidePrice)return null;let s=i===X.SubscriptionCadenceTypeEnum.ANNUALLY;return(0,K.jsxs)("div",{className:(0,z.cn)("flex w-full flex-col items-start gap-0.5",!s&&"mb-[18px]"),"data-testid":"@plan-card/".concat(l,"/price"),children:[o?(0,K.jsx)("p",{className:"font-normal text-[15px] text-text-subtle leading-5",children:r("planComparison.customPricing","Custom pricing")}):(0,K.jsxs)("div",{className:"flex items-center gap-1 whitespace-nowrap",children:[(null==n?void 0:n.description)&&(0,K.jsxs)("span",{className:"rounded bg-action-destructive-subtle px-1.5 py-0.5 font-semibold text-[11px] text-text-destructive","data-testid":"@plan-card/".concat(l,"/price/discount"),children:["-",n.description]}),t.originalAmount&&(0,K.jsxs)("span",{className:"font-normal text-[15px] text-text-subtle leading-5 line-through","data-testid":"@plan-card/".concat(l,"/price/originalPrice"),children:[t.currencySymbol,t.originalAmount]}),(0,K.jsxs)("p",{className:"font-semibold text-[0px] text-text-default leading-[0]",children:[(0,K.jsx)("span",{className:"font-semibold text-[18px] leading-6","data-testid":"@plan-card/".concat(l,"/price/currencySymbol"),children:t.currencySymbol}),(0,K.jsx)("span",{className:"font-semibold text-[18px] leading-6","data-testid":"@plan-card/".concat(l,"/price/cost"),children:t.amount})]}),(0,K.jsx)("p",{className:"font-normal text-[15px] text-text-subtle leading-5","data-testid":"@plan-card/".concat(l,"/price/cadenceText"),children:t.period})]}),s&&(0,K.jsx)("p",{className:(0,z.cn)("min-h-4 font-normal text-[13px] text-text-subtle leading-4",!t.billingNote&&"invisible"),"data-testid":"@plan-card/".concat(l,"/price/billingNote"),children:t.billingNote})]})},tN=e=>{let{copy:t,pricing:n,discount:a,creditOptionsConfig:i,selectedCreditOption:r,onCreditChange:l,cta:o,highlights:s,aiCredits:c}=e,{planType:d}=ev(),u=d.toString().toLowerCase(),p=d===X.SubscriptionPlanTypeEnum.ENTERPRISE,m=void 0!==c||p;return(0,K.jsxs)("div",{className:"flex w-full flex-1 flex-col items-start justify-start gap-6 px-6 pb-4 font-body","data-testid":"@plan-card/".concat(u,"/monetization"),children:[(0,K.jsxs)("div",{className:"flex w-full flex-col items-start gap-5",children:[(0,K.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[(0,K.jsx)(tA,{planTitle:t.planTitle,highlightText:t.highlightText}),(0,K.jsx)(tP,{pricing:n,discount:a})]}),o&&(0,K.jsx)(eT,{cta:o,selectedCreditOption:r})]}),(0,K.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[(0,K.jsx)(e_,{creditOptionsConfig:i,selectedCreditOption:r,onCreditChange:l,isCtaDisabled:null==o?void 0:o.disabled,aiCredits:c}),m&&(0,K.jsx)("div",{className:"h-px w-full bg-border-subtle"}),(0,K.jsx)(tf,{highlights:s,aiCredits:c})]})]})},tI=e=>{let{planType:t,copy:n,pricing:a,creditOptionsConfig:i,highlights:r,cta:l,onCreditOptionChange:o,videoClips:s,discount:c,selectedCreditOption:d,aiCredits:u,isCurrentPlan:p,isLegacyCurrentPlan:m,cadence:y,isInOnboardingFlow:h,planPriceIds:g,isUpgradeModal:v=!1}=e,b=t.toString().toLowerCase(),f=(0,_.nu)("lg"),C=!!n.highlightText;return(0,K.jsx)(eh.Bc,{children:(0,K.jsx)(eb,{value:{planType:t,isHighlighted:C,isInOnboardingFlow:h,isMobile:f,isCurrentPlan:p,isLegacyCurrentPlan:m,cadence:y,planPriceIds:g,isUpgradeModal:v},children:(0,K.jsx)("div",{id:"plan-card-".concat(b),className:"relative flex flex-col bg-transparent","data-testid":"@plan-card/".concat(b).concat(C?"/highlighted":""),children:(0,K.jsx)(tN,{copy:n,pricing:a,discount:c,creditOptionsConfig:i,selectedCreditOption:d,onCreditChange:e=>null==o?void 0:o(t,e),cta:l,videoClips:s,highlights:r,isHighlighted:C,aiCredits:u})})})})},tL=e=>{let{card:t,context:n}=e;return(0,K.jsx)(eb,{value:n,children:(0,K.jsx)("div",{className:"w-full font-body",children:(0,K.jsx)(tf,{highlights:t.highlights,aiCredits:t.aiCredits})})})},tj=e=>{var t;let{card:n,context:a}=e,i=n.planType.toString().toLowerCase();return(0,K.jsx)(eb,{value:a,children:(0,K.jsxs)("div",{className:(0,z.cn)("flex w-full flex-col items-start font-body",a.isShortViewport?"gap-3":"gap-5"),"data-testid":"@plan-card/".concat(i).c
1oncat(a.isHighlighted?"/highlighted":""),children:[(0,K.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[(0,K.jsx)(tA,{planTitle:n.copy.planTitle,highlightText:n.copy.highlightText}),(0,K.jsx)(tP,{pricing:n.pricing,discount:n.discount})]}),(0,K.jsxs)("div",{className:"flex w-full flex-col items-start gap-2",children:[n.cta&&(0,K.jsx)(eT,{cta:n.cta,selectedCreditOption:n.selectedCreditOption}),(0,K.jsx)(e_,{creditOptionsConfig:n.creditOptionsConfig,selectedCreditOption:n.selectedCreditOption,onCreditChange:e=>{var t;return null==(t=n.onCreditOptionChange)?void 0:t.call(n,n.planType,e)},isCtaDisabled:null==(t=n.cta)?void 0:t.disabled,aiCredits:n.aiCredits})]})]})})},tO={"upgrade-modal":"w-full pt-0 lg:mx-0 lg:min-h-0 lg:w-full lg:flex-1 lg:grid-cols-2 lg:gap-0 lg:px-0 lg:pt-0 lg:pb-0 lg:[&>div:first-child>div]:pl-0 lg:[&>div:last-child>div]:pr-0 lg:[&>div]:w-90 lg:[&>div]:min-w-[280px]",default:"mx-auto w-full pt-0 max-lg:max-w-[350px] max-lg:gap-6 lg:w-full lg:grid-cols-2 lg:gap-10 lg:px-0 lg:pt-0 lg:pb-0 lg:[&>div>div]:px-0 lg:[&>div]:min-w-[240px] lg:[&>div]:max-w-[288px] lg:[&>div]:flex-grow lg:[&>div]:basis-0"},tF="flex w-full min-w-0 pr-2 [&>div]:w-90 [&>div]:min-w-[280px] [&>div]:px-6 [&>div:first-child]:pl-0 [&>div:last-child]:pr-0",tM=(0,z.cn)(tF,"shrink-0"),tU=(0,z.cn)(tF,"min-h-0 flex-1 overflow-y-auto [scrollbar-gutter:stable]","scrollbar-thin scrollbar-track-transparent scrollbar-thumb-icon-subtle"),tV=e=>{let{planCards:t,cadence:n}=e,a=(0,J.y)(),i=e=>ef(e,{cadence:n,isMobile:!1,isShortViewport:a});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)("div",{className:(0,z.cn)(tM,a?"pb-4":"pb-6"),children:t.map(e=>{let{key:t,props:n}=e;return(0,K.jsx)(tj,{card:n,context:i(n)},t)})}),(0,K.jsx)("div",{className:(0,z.cn)(tU,a?"pb-2":"pb-4"),children:t.map(e=>{let{key:t,props:n}=e;return(0,K.jsx)(tL,{card:n,context:i(n)},t)})})]})};function tR(e){var t;let{legacyCreditOption:n,plans:a,onPlanClick:i,cadence:r,onCadenceChange:l,creditOptionsConfigs:o,hideToggle:s=!1,currentPlanSlug:c,shouldReverseCardOrder:d,isInOnboardingFlow:u=!1,planPriceIds:p,isUpgradeModal:m=!1,freeTrialWithCard:y,preselectedPlan:h}=e,{t:g}=(0,q.Bd)(ec._W),{source:v,store:b}=(0,Q.k)(),f=v===H.Jm.Rc,C={recommended:g("planComparison.recommended","Recommended"),letsTalk:g("planComparison.letsTalk","Let's Talk"),contactSales:g("planComparison.contactSales","Contact Sales"),billedYearly:(e,t)=>g("planComparison.billedYearly","billed yearly as {currencySymbol}{price}",{currencySymbol:e,price:t}),billedAnnually:g("planComparison.billedAnnually","billed annually"),perUserMonth:g("planComparison.perUserMonth","per user / month"),perUserYear:g("planComparison.perUserYear","per user / year"),addAiCredits:g("planComparison.addAiCredits","Add AI credits"),upgrade:g("planComparison.upgrade","Upgrade"),manageInStoreApp:b===H.T3.PlayStore?g("planComparison.manageInAndroidApp","Manage in Android app"):g("planComparison.manageIniOSApp","Manage in iOS app"),configurePlan:g("paymentDetails.configurePlan","Configure plan"),switchToAnnual:g("pricingColumn.switchToAnnual","Switch To Annual"),switchToPlan:e=>g("planComparison.switchToPlan","Switch to {planTitle}",{planTitle:e})},w=(0,_.nu)("lg"),k=(0,J.y)(),{planCards:S,enterpriseRow:x,handleCadenceChange:T,cadence:E,bestDiscount:A}=function(e){var t,n,a,i;let{legacyCreditOption:r,plans:l,onPlanClick:o,cadence:s,onCadenceChange:c,creditOptionsConfigs:d,translations:u,currentPlanSlug:p,currentSubscription:m,planPriceIds:y,isUpgradeModal:h,freeTrialWithCard:g,isRevenueCat:v=!1}=e,b=(0,ee.useCallback)(()=>{},[]),f=(0,ee.useContext)(ea.h9),C=null!=(a=null!=s?s:null==f||null==(t=f.subscriptionState)?void 0:t.selectedInterval)?a:X.SubscriptionCadenceTypeEnum.ANNUALLY,w=null!=(i=null!=m?m:null==f||null==(n=f.subscriptionState)?void 0:n.currentSubscription)?i:void 0,k=o||b,{getHighestVideoCountByCredits:S}=(0,$.X)(),x=(0,eo.jq)(),[T,E]=(0,ee.useState)({}),A=(0,ee.useCallback)(e=>{if(c)c(e);else{var t;null==f||null==(t=f.subscriptionActions)||t.setSelectedInterval(e)}},[c,f]),P=(0,ee.useCallback)((e,t)=>{E(n=>({...n,[e]:t.planSlug}))},[]),N=(0,ee.useMemo)(()=>{let e=l.reduce((e,t)=>
1t.type!==X.SubscriptionPlanTypeEnum.ENTERPRISE&&t.annualDiscount&&t.annualDiscount>0?Math.max(e,t.annualDiscount):e,0);return e>0?e:(0,el.Kd)(l.filter(e=>void 0!==e.baseMonthlyPrice&&void 0!==e.baseAnnualPrice).map(e=>({type:e.type,price:{[X.SubscriptionCadenceTypeEnum.MONTHLY]:e.baseMonthlyPrice,[X.SubscriptionCadenceTypeEnum.ANNUALLY]:e.baseAnnualPrice}})))},[l]),{planCards:I,enterpriseRow:L}=(0,ee.useMemo)(()=>{let e=l.some(e=>e.isLegacyCurrentPlan),t=l.map(t=>{var n,a,i,l,o;let s,c=t.isLegacyCurrentPlan||null==d?void 0:d[t.type],m=null!=(a=null==c?void 0:c.creditOptions)?a:[],b=T[t.type],f=t.isLegacyCurrentPlan?r:b&&m.find(e=>e.planSlug===b)||m[0],E=C===X.SubscriptionCadenceTypeEnum.ANNUALLY;t.isRecommendedPlan&&(s=u.recommended||"Recommended");let A=((e,t)=>{if(!(null==t?void 0:t.isCurrentPlan))return t;let n=e.findIndex(e=>et(e)===et(t));return e.find((e,t)=>t>n&&!e.isCurrentPlan)||t})(m,f),N=(null==A?void 0:A.creditAmount)||(null==(n=t.defaultPlaygroundCredits)?void 0:n[C]),I=null!=(i=m.find(e=>e.creditAmount===N))?i:A,L=c&&S?(0,el.$t)(c,I,S):t.videoClips,j=(0,el.RW)(c,I),O=N?{credits:N,videoEstimate:S(N)}:void 0,F=j?t.features.map(e=>"object"==typeof e&&"aiCredits"===e.uspKey?{...e,text:"".concat(j.toLocaleString()," AI Credits")}:e):t.features,M=null!=(l=t.price)?l:0,U=t.annualPrice;if(void 0!==t.baseMonthlyPrice||void 0!==t.baseAnnualPrice){let e=E?t.baseAnnualPrice:t.baseMonthlyPrice,n=t.isLegacyCurrentPlan?e:(0,el.w)(I,e,C);M=(0,el.QF)(null!=n?n:0,C),U=(0,el.Q2)(C,n)}let V=x===eo.s5.YEARLY_ONLY&&E&&void 0!==U?U:M,R=null==c?void 0:c.creditOptions.find(e=>e.planSlug===p),B=void 0!==R&&(null==c?void 0:c.creditOptions.some(e=>e.creditAmount>R.creditAmount)),D=(e=>{var t,n,a;let{translations:i}=e,r=null!=(a=e.isCtaDisabled)?a:e.isLegacyPlanCard;if(e.isLegacyPlanCard)return{label:e.isUpgradeModal?i.configurePlan:e.planCta,disabled:r,canComposeWithPlanTitle:!1};if(e.planType===X.SubscriptionPlanTypeEnum.ENTERPRISE)return{label:i.contactSales,disabled:r,canComposeWithPlanTitle:!1};if(e.isRevenueCat)return{label:i.manageInStoreApp,disabled:r,canComposeWithPlanTitle:!1};let l=(null==(t=e.currentPlan)?void 0:t.plan)===e.planType;return e.isUpgradeModal&&!e.hasLegacyCurrentPlan&&l&&(null==(n=e.currentPlan)?void 0:n.cadence)===er&&e.displayCadence===ei?{label:i.switchToAnnual,disabled:r,canComposeWithPlanTitle:!1}:e.isUpgradeModal&&e.hasLegacyCurrentPlan&&l?{label:i.switchToPlan(e.planTitle),disabled:r,canComposeWithPlanTitle:!1}:e.isCreditOnlyUpgrade?{label:i.addAiCredits,disabled:r,canComposeWithPlanTitle:!0}:e.isUpgradeModal&&!e.freeTrialWithCard?{label:i.upgrade,disabled:r,canComposeWithPlanTitle:!0}:{label:e.planCta,disabled:r,canComposeWithPlanTitle:!0}})({planType:t.type,planTitle:t.title,planCta:t.ctaLabel,isLegacyPlanCard:null!=(o=t.isLegacyCurrentPlan)&&o,hasLegacyCurrentPlan:e,currentPlan:w,displayCadence:C,isUpgradeModal:null!=h&&h,freeTrialWithCard:null!=g&&g,isCreditOnlyUpgrade:!!B,isRevenueCat:v,isCtaDisabled:t.isCtaDisabled,translations:u}),G=function(e,t){let n=e.type===X.SubscriptionPlanTypeEnum.ENTERPRISE,a=(()=>{if(n)return t.translations.letsTalk;let a="string"==typeof e.price?parseFloat(e.price):e.price;return(0,el.wV)(a,n)})(),i=(0,el.IR)(e.type,t.cadence,t.pricingMathVariant,t.translations),r=(0,el.yj)(t.cadence,e.annualPrice,e.currencySymbol,n,t.pricingMathVariant,t.translations),l=(0,el.Rp)(e.features,e.uspTitle),o=!!t.isRevenueCat;return{planType:e.type,copy:{highlightText:e.highlightText,planTitle:e.title,planDescription:e.description},pricing:{amount:a.toString(),currencySymbol:e.currencySymbol,period:i,billingNote:r,hidePrice:o},highlights:l,videoClips:e.videoClips,aiCredits:e.aiCredits,cta:{...t.cta,onClick:t.onCtaClick},creditOptionsConfig:t.creditOptionsConfig,onCreditOptionChange:t.onCreditOptionChange,selectedCreditOption:t.selectedCreditOption,isCurrentPlan:e.isCurrentPlan,isLegacyCurrentPlan:e.isLegacyCurrentPlan,planPriceIds:t.planPriceIds}}({...t,isCurrentPlan:e?t.isLegacyCurrentPlan:t.isCurrentPlan,price:V,annualPrice:U,videoClips:L,highlightText:s,features:F,aiCredits:O},{cadence:C,onCtaClick:e=>{k(t.type,e,null!=U?U:M)},onCreditOptionChange:P,creditOptionsConfig:c,translations:u,cta:D,selectedCreditOption:A,planPriceIds:y,isRevenueCat:v,pricingMathVariant:x});return t.discount&&(G.discount=t.discount,void 0!==t.discount.value&&t.discount.value>0&&t.discount.type&&(G.pricing.originalAmount=G.pricing.amount,G.pricing.amount=(0,el.m9)((0,Z.w9)(V,{type:t.discount.type,value:t.discount.value})))),{key:t.isLegacyCurrentPlan?"plan-card-legacy-".concat(t.type):"plan-card-".concat(t.type),props:G}}),n=h&&l.length>2,a=t.findIndex(e=>{let{props:t}=e;return t.planType===X.SubscriptionPlanTypeEnum.ENTERPRISE});if(!n||-1===a)return{planCards:t,enterpriseRow:void 0};let i=t[a].props;return{planCards:t.filter((e,t)=>
1t!==a),enterpriseRow:{planTitle:i.copy.planTitle,highlights:i.highlights,cta:i.cta}}},[l,C,d,T,o,P,S,u,p,h,r,y,g,v,w,x]);return{cadence:C,planCards:I,enterpriseRow:L,handleCadenceChange:A,bestDiscount:N}}({plans:a,onPlanClick:i,cadence:r,onCadenceChange:l,creditOptionsConfigs:o,translations:C,currentPlanSlug:c,legacyCreditOption:n,planPriceIds:p,isUpgradeModal:m,freeTrialWithCard:y,isRevenueCat:f});(0,eo.JZ)(S.length>0);let P=d?[...S].reverse():S,N=(t=m?"upgrade-modal":"default",(0,z.cn)("grid grid-cols-1 lg:flex lg:max-w-full lg:overflow-x-auto lg:overflow-y-visible [&>div]:flex [&>div>div]:flex-1 [&_h3]:leading-[1.2]",tO[t])),I=m&&w,L=m&&!w;return(0,K.jsxs)("div",{className:(0,z.cn)("flex w-full min-w-0 flex-col items-center",m&&"min-h-0"),"data-testid":"@checkout/planComparison/container",children:[!s&&(0,K.jsx)("div",{className:(0,z.cn)("w-full",m&&"shrink-0",m&&w&&"px-5",m&&k?"mb-4":"mb-8"),children:(0,K.jsx)(ed,{cadence:E,onCadenceChange:T,bestDiscount:f?void 0:A})}),I?(0,K.jsx)(tE,{planCards:P,enterpriseRow:x,cadence:E,preselectedPlan:h}):(0,K.jsxs)(K.Fragment,{children:[L?(0,K.jsx)(tV,{planCards:P,cadence:E}):(0,K.jsx)("div",{className:N,children:P.map(e=>{let{key:t,props:n}=e;return(0,K.jsx)(tI,{...n,cadence:E,isInOnboardingFlow:u},t)})}),x&&(0,K.jsx)("div",{className:(0,z.cn)("w-full",m&&"shrink-0"),children:(0,K.jsx)(tw,{...x})})]})]})}},69232:(e,t,n)=>{n.d(t,{Z:()=>m,h:()=>p});var a=n(64331),i=n(21050),r=n(62052),l=n(37351),o=n(35419),s=n(90948);let c={"create-videos-with-gen-ai-studio":(e,t,n,a)=>(null==a?void 0:a.some(e=>{var t;return(null==(t=e.feature)?void 0:t.slug)==="character-credits"}))?{}:{[i.SubscriptionPlanTypeEnum.FREE]:"".concat(t("plans.featuresExcerpt.features.createVideosWithGenAiStudio.free","Create {allowance} videos / day with Gen-AI Studio",{allowance:(null==e?void 0:e.amount)||2})),[i.SubscriptionPlanTypeEnum.BASIC]:"".concat(t("plans.featuresExcerpt.features.createVideosWithGenAiStudio.basic","Create {allowance} videos / day with Gen-AI Studio",{allowance:(null==e?void 0:e.amount)||5})),[i.SubscriptionPlanTypeEnum.PRO]:"".concat(t("plans.featuresExcerpt.features.createVideosWithGenAiStudio.pro","Create unlimited videos with Gen-AI Studio")),[i.SubscriptionPlanTypeEnum.ENTERPRISE]:"".concat(t("plans.featuresExcerpt.features.createVideosWithGenAiStudio.enterprise","Create unlimited videos with Gen-AI Studio")),[i.SubscriptionPlanTypeEnum.BUSINESS]:"".concat(t("plans.featuresExcerpt.features.createVideosWithGenAiStudio.business","Create unlimited videos with Gen-AI Studio")),[i.SubscriptionPlanTypeEnum.STORAGEONLY]:""},"text-to-speech-credits":(e,t,n,a)=>{let r=n===i.SubscriptionCadenceTypeEnum.ANNUALLY?"annual":"monthly";return{[i.SubscriptionPlanTypeEnum.FREE]:"".concat(t("plans.featuresExcerpt.features.aiVoice.".concat(r,".free"),"Up to 10 min/mo with Credits")),[i.SubscriptionPlanTypeEnum.BASIC]:"".concat(t("plans.featuresExcerpt.features.aiVoice.".concat(r,".basic"),n===i.SubscriptionCadenceTypeEnum.ANNUALLY?"Up to 4 hr/yr with Credits":"Up to 2 hr/mo with Credits")),[i.SubscriptionPlanTypeEnum.PRO]:"".concat(t("plans.featuresExcerpt.features.aiVoice.".concat(r,".pro"),n===i.SubscriptionCadenceTypeEnum.ANNUALLY?"Up to 144 hr/yr with Credits":"Up to 12 hr/mo with Credits")),[i.SubscriptionPlanTypeEnum.ENTERPRISE]:"".concat(t("plans.featuresExcerpt.features.aiVoice.".concat(r,".enterprise"),"Custom")),[i.SubscriptionPlanTypeEnum.BUSINESS]:"".concat(t("plans.featuresExcerpt.features.aiVoice.".concat(r,".business"),n===i.SubscriptionCadenceTypeEnum.ANNUALLY?"Up to 960 hr/yr with Credits":"Up to 80 hr/mo with Credits")),[i.SubscriptionPlanTypeEnum.STORAGEONLY]:""}},"playground-credits":(e,t,n,a)=>(null==a?void 0:a.some(e=>{var t;return(null==(t=e.feature)?void 0:t.slug)==="character-credits"}))?{[i.SubscriptionPlanTypeEnum.ENTERPRISE]:t("plans.featuresExcerpt.features.customAICredits","Custom AI Credits")}:{}},d={playgroundCreditsWithAllowance:{type:"id",value:"credit-table"},aiCleanup:{type:"testId",value:"@pricing/category-row-AI Tools",target:"pricing-comparison-table"}},u=e=>{if("pricing-comparison-table"===e.target){let t=new CustomEvent("requestTableExpansion",{detail:{scrollTarget:e.value}});window.dispatchEvent(t)}else(()=>{let t="id"===e.type?document.getElementById(e.value):document.querySelector('[data-testid="'.concat(e.value,'"]'));t&&t.scrollIntoView({behavior:"smooth"})})()}
1,p=e=>e===i.SubscriptionCadenceTypeEnum.ANNUALLY?a.rU.Annually:a.rU.Monthly,m=e=>{let{displayedPlan:t,currentWorkspaceSubscription:n,isLoggedIn:a,cadence:m,t:y,freeTrialWithCard:h,isHighlightedPlan:g,isRecommendedPlan:v}=e,b=t.prices.find(e=>e.cadence===p(m)),f=(0,l.n_)(m,t.prices),C=(0,l.rA)(t.prices),w=(0,r.Rd)(a,n,t.type,m),k=e=>{let{scope:n,defaultValue:a}=e;return(null==t?void 0:t.translationKey)?y("plans.".concat(null==t?void 0:t.translationKey,".").concat(n),a):a},S=k({scope:"cta",defaultValue:t.ctaText});return h&&t.type!==i.SubscriptionPlanTypeEnum.FREE&&t.type!==i.SubscriptionPlanTypeEnum.ENTERPRISE&&(S=y("plans.tryForFree","Start Free Trial"),n&&(S=y("plans.continueFreeTrial","Continue Free Trial"))),{...t,isHighlightedPlan:g,isRecommendedPlan:v,title:(0,s.I)(t.displayName,t.type),description:k({scope:"description",defaultValue:t.description}),cta:S,features:((e,t,n,a,r)=>{let l=(0,o.QJ)({cadence:e,planType:t,features:n,mergeSubtitles:!1,t:a,translationConfig:o.jS}),s=null==n?void 0:n.some(e=>{var t;return(null==(t=e.feature)?void 0:t.slug)==="character-credits"}),u=t===i.SubscriptionPlanTypeEnum.ENTERPRISE,p=s&&!u?l.filter(e=>"playground-credits"!==e.slug):l,m=new Map((0,o.b2)(n).map(e=>{var t;return[null==(t=e.feature)?void 0:t.slug,e]}));return p.map(i=>{let l=m.get(i.slug),o=c[i.slug];if(o&&l){let r=o(l.allowance,a,e,n)[t];if(r)return{...i,text:r}}let s=d[i.baseTranslationKey];return void 0!==s?{...i,text:i.text||i.name,onClick:()=>r(s)}:{...i,text:i.text||i.name}})})(m,t.type,null==b?void 0:b.features,y,u),monthlyDisplayPrice:f,price:null==b?void 0:b.cost,isOpenCheckoutButtonDisabled:w,annualDiscount:C}}},70961:(e,t,n)=>{n.d(t,{y:()=>i});var a=n(36478);let i=()=>(0,a.Ub)("(max-height: 820px)")},74338:(e,t,n)=>{n.d(t,{X:()=>o});var a=n(64331),i=n(17395);let r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRateTable"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"GetRateTableFilterInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRateTable"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"success"}},{kind:"Field",name:{kind:"Name",value:"error"}},{kind:"Field",name:{kind:"Name",value:"models"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"slug"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"cost"}},{kind:"Field",name:{kind:"Name",value:"mode"}},{kind:"Field",name:{kind:"Name",value:"unit"}},{kind:"Field",name:{kind:"Name",value:"kind"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"aspectRatios"}},{kind:"Field",name:{kind:"Name",value:"averageGenerationTimeMs"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"supportedDurations"}},{kind:"Field",name:{kind:"Name",value:"supportsSound"}},{kind:"Field",name:{kind:"Name",value:"resolutions"}},{kind:"Field",name:{kind:"Name",value:"settings"}},{kind:"Field",name:{kind:"Name",value:"exampleImageUrl"}},{kind:"Field",name:{kind:"Name",value:"exampleVideoUrl"}},{kind:"Field",name:{kind:"Name",value:"examplePrompt"}},{kind:"Field",name:{kind:"Name",value:"isNew"}},{kind:"Field",name:{kind:"Name",value:"shouldDisplay"}},{kind:"Field",name:{kind:"Name",value:"availableIn"}},{kind:"Field",name:{kind:"Name",value:"icon"}},{kind:"Field",name:{kind:"Name",value:"isFeatured"}},{kind:"Field",name:{kind:"Name",value:"baseModelSlug"}},{kind:"Field",name:{kind:"Name",value:"variantType"}}]}}]}}]}}]};var l=n(65162);let o=()=>{let{models:e,loading:t}=(e=>{var t,n;let{mode:a,modelSlugs:l,enabled:o=!0}=e,{data:s,loading:c,error:d}=(0,i.I)(r,{variables:{filter:a||l?{...a&&{modes:[a]},...l&&{modelSlugs:l}}:void 0},fetchPolicy:"cache-first",nextFetchPolicy:"cache-first",skip:!o});return{models:(null==s||null==(t=s.getRateTable)?void 0:t.models)||[],loading:c,error:d,success:null==s||null==(n=s.getRateTable)?void 0:n.success}})({}),n=(0,l.useMemo)(()=>{let t=new Set;return e.filter(e=>!("video"!==e.kind||!e.shouldDisplay||t.has(e.slug))&&(t.add(e.slug),!0)).map(e=>{var t,n,i;let r=null!=(t=e.duration)?t:5;return{id:e.slug,name:e.name,description:null!=(n=e.description)?n:"",exampleVideoUrl:null!=(i=e.exampleVideoUrl)?i:"",clipDuration:r,logoSize:20,creditsPerClip:((e,t,n)=>{switch(t){case a.F.PerSecond:return e*n;case a.F.PerMinute:return n/60*e;case a.F.PerGeneration:default:return e}})(e.cost,e.unit,r)}})},[e]),o=(0,l.useMemo)(()=>{let e=n.find(e=>"veed/fabric-one-lipsync"===e.id),t=n.find(e=>"veed/motion"===e.id),a=n.filter(e=>"veed/fabric-one-lipsync"!==e.id&&"veed/motion"!==e.id).sort((e,t)=>
1(e.clipDuration>0?Math.floor(e.creditsPerClip/e.clipDuration):0)-(t.clipDuration>0?Math.floor(t.creditsPerClip/t.clipDuration):0));return void 0!==e&&void 0!==t?[e,t,...a]:a},[n]);return{aiVideoModels:o,getHighestVideoCountByCredits:e=>{if(e<=0||0===o.length)return 0;let t=Math.min(...o.map(e=>e.creditsPerClip));return t<=0?0:Math.floor(e/t)},getVideoCountForModel:(e,t)=>{if(t<=0)return 0;let n=o.find(t=>t.id===e);return!n||n.creditsPerClip<=0?0:Math.floor(t/n.creditsPerClip)},isLoading:t}}},76394:(e,t,n)=>{n.d(t,{J:()=>a});let a=e=>e||0===e?Number.isInteger(e)?e.toString():Math.round(e).toString():null},77739:(e,t,n)=>{n.d(t,{A:()=>l});var a,i=n(65162);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}let l=function(e){return i.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),a||(a=i.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8h10m0 0L9 4m4 4-4 4"})))}},78820:(e,t,n)=>{n.d(t,{_W:()=>r,F6:()=>l,y6:()=>o});var a=n(97164);let i=JSON.parse('{"allowanceTypes":{"custom":"Custom","limited":"Limited","try_n_times":"Try {count} times","try_once":"Try once","unlimited":"Unlimited"},"alreadyOnEnterprisePlan":{"expandedCopy":"Your account is already on the {planName} plan.","goBack":"Go back"},"androidTwaAboGate":{"close":"Close","continue":"Continue","ineligibleMessage":"Subscriptions aren\'t available in your region right now.","ineligibleTitle":"Checkout unavailable","launchCta":"Continue to Google Play","launchDisclaimer":"If Google Play didn\'t open automatically, continue below.","relaunching":"Opening Google Playâ¦","tryAgain":"Try again","tryAgainMessage":"Something went wrong. Please try again later.","tryAgainTitle":"Couldn\'t open checkout","userCanceledMessage":"You need to acknowledge Google\'s notice to continue with checkout.","userCanceledTitle":"Acknowledge to continue","validating":"Validating with Google Playâ¦"},"appleIapHandoff":{"management":{"loading":"Opening the App Storeâ¦","title":"Manage your subscription in the App Store"},"notOwner":{"description":"Please contact them to upgrade your plan.","title":"Only the workspace owner can upgrade"},"purchase":{"loading":"Opening the App Storeâ¦","title":"Subscribe through the App Store"},"unsupportedPlan":{"description":"{plan} can\'t be managed from the iOS app.","title":"Not available on iOS"}},"billingSummary":{"period":{"month":"month","year":"year"}},"checkout":{"dialogTitle":"Checkout","nameLabel":"Full name","namePlaceholder":"First and last name","plans":{"basic":{"ctaNew":"Go Basic","description":"Simple online video editing for individuals","featuresToggleCopy":"Basic features","shortDescription":"Ideal starter plan"},"basicIcp":{"cta":"Go Lite","description":"Enhance your social media videos"},"basicIcpV3":{"cta":"Go Lite","description":"Watermark-free social videos"},"business":{"cta":"Continue","ctaNew":"Go Business","description":"For teams that want templates, analytics, more subtitles and more translations","featuresToggleCopy":"See all features","shortDescription":"For teams of up to {businessMaxEditors} people"},"creatorIcp":{"cta":"Go Creator","description":"Create studio-quality videos with AI"},"enterprise":{"cta":"Contact Sales","ctaSee":"See","descriptionOrganisations":"Multi-space, SSO, account management, custom terms","featureExcerpt":{"annually":{"multipleSpaces":"Multiple spaces"},"monthly":{"multipleSpaces":"Multiple spaces"}},"featuresToggleCopy":"Enterprise features","shortDescription":"For larger teams","shortFeatureList":"Custom limits, templates, user+privacy controls, reviews, dedicated support, analytics...","subtitle":"Let\'s talk"},"enterpriseIcp":{"cta":"Contact Sales","description":"Scale video across your team"},"enterpriseIcpV3":{"cta":"Contact Sales","description":"Scale your entire team\'s video creation"},"enterprisePlanNameExperiment":{"cta":"Contact Sales","description":"Built for teams who create together"},"enterpriseRequestADemo":{"cta":"Contact Sales","description":"Scale your entire team\'s video creation"},"featuresExcerpt":{"allowance":{"annually":{"hr":"hr/yr","min":"min/yr"},"hr":"h","min":"min","monthly":{"hr":"hr/mo","min":"min/mo"}},"features":{"aIImageUnlimited":"Unlimited AI Image Generations","accessAndSecurityControl
1s":"Access & security controls","accessToAllAIModels":"Access to all AI Models","accountManager":"Account manager","accountManagerICPV3":"Dedicated account manager","accountManagerV2":"Dedicated customer success manager","advancedSecurityControls":"Advanced security & SSO","aiAvatars":"AI Characters ({allowance} {unit})","aiAvatarsAndAIDubbing":"AI Characters & AI dubbing ({allowance} {unit})","aiAvatarsAndVoiceDubbing":"AI Characters & voice dubbing ({allowance} {unit})","aiCleanup":"15+ AI tools to make studio-quality videos","aiCredits":"{allowance} AI Credits","aiDubbingProofread":"AI Dubbing Proofread","aiEditing":"AI-powered editing; Clean Audio and Eye Contact Correction","aiEditingTools":"15+ AI tools to make studio-quality videos","aiToolsTrial":"Limited trial of AI Tools","aiToolsWithAvatars":"Access to all AI tools (including AI Characters)","aiVoice":{"annual":{"basic":"Up to 4 hr/yr of AI voice","business":"Up to 960 hr/yr of AI voice","enterprise":"Custom","free":"Up to 10 min/mo of AI voice","pro":"Up to 144 hr/yr of AI voice"},"monthly":{"basic":"Up to 2 hr/mo of AI voice","business":"Up to 80 hr/mo of AI voice","enterprise":"Custom","free":"Up to 10 min/mo of AI voice","pro":"Up to 12 hr/mo of AI voice"}},"analytics":"Video Analytics","autoResizeICPV3":"Auto-resize for social media","autoResizeVideos":"Resize for Social Media","autoSubtitles":"{allowance}{unit} Auto Subtitles","autoSubtitlesICPV3":"{allowance}{unit} Captions","avatars":"AI Characters {allowance} {unit}","boostProductionWithAIToolsICPV3":"Access to all AI tools","boostProductionWithAiTools":"Boost Production with AI Tools","brandFetch":"Auto Brand Import","brandKit":"Brand kit","brandKitICPV3":"Full Brand Kit","brandKitStyledAssetsICPV3":"Limited Brand Kit","callToAction":"Add call-to-action to your videos","centrallyManageTeams":"Central team management","cleanAudio":"Clean Audio","clips":"Clips","createVideosWithGenAiStudio":{"basic":"{allowance} videos / day in Gen-AI Studio","enterprise":"Create unlimited videos with Gen-AI Studio","free":"{allowance} videos / day in Gen-AI Studio","pro":"Unlimited videos in Gen-AI Studio"},"createVideosWithGenAiStudioWithAllowance":{"basic":"{allowance} clips / day in Gen-AI Studio","enterprise":"Unlimited videos in Gen-AI Studio","free":"{allowance} clips / day in Gen-AI Studio","pro":"Unlimited videos in Gen-AI Studio"},"customAICredits":"Custom AI Credits","customBrandTemplates":"Custom Brand Templates","customTemplates":"Custom Templates","customTemplatesAndWatermarks":"Custom Templates and Watermarks","customTemplatesICPV3":"Start from custom branded templates","customUsageLimits":"Custom caption limits","customUsageLimitsICPV3":"Custom caption limits","dedicatedCustomerSuccess":"Dedicated Customer Success","downloadSubtitles":"Download Subtitles","dubbing":"AI Dubbing","editWithScript":"Edit with Script","editorTrainingWorkshops":"Editor Training Workshops","editorTrainingWorkshopsICPV3":"Editor trainings to level up your team","embedAnywhere":"Embed your videos anywhere","exportQuality":{"1080":"Export in HD \xb7 1080p","4000":"Export in 4K"},"exportQualityICPV3":"Export in HD \xb7 1080p","exportVideosIn4k":"Export in 4K","eyeContact":"Eye Contact Correction","feature":{"brand-kit-styled-assets":"Limited brand kit"},"fullBrandKit":"Full Brand Kit","genAiStudioCredits":{"basic":"Gen-AI Studio videos with Credits","business":"6x more Gen-AI Studio videos than Pro","pro":"5x more Gen-AI Studio videos than Creator"},"genVideoWithAIStudio":"Generate videos with AI-studio","iOSAppAccess":"iOS app access","interactiveLinks":"Interactive video links, buttons, CTA","iosAppICPV3":"Caption and share from iOS","libraryOfTemplates":"Library of templates","max1Editor":"Single Editor account","max1EditorICPV3":"Single Editor account","max3Editors":"Up to 3 Editors (billed per Editor)","max5Editors":"Up to 5 Editors (billed per Editor)","max5EditorsICPV3":"Up to 5 Editors (billed per Editor)","multipleBrandKitsICPV3":"Multiple Brand Kits","multipleWorkspaces":"Multiple workspaces","noWatermark":"No Watermark","personalAiAvatars":"Custom AI Characters","personalAiAvatarsICPV3":"Custom AI Characters","playgroundCreditsWithAllowance":"Generate videos with {allowance} credits, using VEED Fabric 1, Google Veo 3, and more","premiumSubtitleStyles":"Unlimited Subtitle styles","premiumVideoAndAudioLibrary":"Full audio & video catalog","priorityCustomerSupport":"Priority Customer Support","privacyControls":"Privacy controls","privacyControlsICPV3":"Advanced security & access controls","removeWatermarkICPV3":"No watermark on videos","reviewerRole":"Review mode","singleSignOn":"Single sign-on","srtSubtitlesDownloads":"Download Subtitles","stockAudioAndVideo":"Full audio & video catalog","stockAudioVideoICPV3":"Some Stock Audio & Video","stockTemplatesICPV3":"Access to 200+ video templates","storage":{"basic":"{allowance}GB of storage","business":"{allowance}GB of storage","enterprise":"{allowance}GB+ of storage","free":"{allowance}GB of storage","pro":"{allowance}GB of storage"},"subtitleTranslation":"{allowance}{unit} translations","subtitleTranslationCredits":"Translate to 50+ Languages","subtitleTranslationICPV3":"{allowance} {unit} of Translations","subtitles":"{allowance} {unit}
1 Subtitles","support":"Dedicated support","textToSpeech":"{allowance}{unit} AI Voice","textToSpeechAndVoiceCloning":"Text-to-speech & voice cloning ({allowance} {unit})","textToSpeechCredits":{"annual":{"basic":"Up to 4 hr/yr with Credits","business":"Up to 960 hr/yr with Credits","enterprise":"Custom","free":"Up to 10 min/mo with Credits","pro":"Up to 144 hr/yr with Credits"},"monthly":{"basic":"Up to 2 hr/mo with Credits","business":"Up to 80 hr/mo with Credits","enterprise":"Custom","free":"Up to 10 min/mo with Credits","pro":"Up to 12 hr/mo with Credits"}},"training":"Creator training","translations":"Translations {allowance} {unit}","translationsV2":"{allowance} {unit} of Translations","tryAiTools":"Try AI tools once","ttsCharacterLimit":"TTS Character Limit: {allowance} Characters","unlimitedExports":"Unlimited Exports","unlimitedGenAiVideoCreation":"Unlimited Gen-AI video creation","unlimitedSubtitleMinutes":"Unlimited Subtitle minutes","uploadFileSize":"Unlimited file upload size","uploadLimit":"Limited upload","usageCustom":"Custom usage limits","veedMotion":"Unlimited VEED Motion","videoAnalytics":"Video Analytics","videoCta":"Video call-to-action","videoExportLength":"Export videos up to {allowance} minutes","videoLength":"Limited export duration","videoLengthLongerThan10Minutes":"Export videos longer than 10 minutes","watermark":"No watermark","watermarkedVideo":"Watermarked video","workspaces":"Multiple workspaces"},"tryOnce":"Try once"},"free":{"cta":"Continue","ctaNew":"Sign up, it\'s free","description":"Perfect for one off quick projects under 10 minutes and 250MB with watermark","featuresToggleCopy":"Free features","shortDescription":"Essential editing"},"freeIcpV3":{"cta":"Go Free","description":"Quick and easy video editing for hobby projects"},"pro":{"cta":"Continue","ctaNew":"Go Pro","description":"Brand tools, translation and more for pro tools","featuresToggleCopy":"Pro features","shortDescription":"For pro video creation"},"proIcp":{"cta":"Go Pro","description":"Create any video with AI power"},"proIcpV3":{"cta":"Go Pro","description":"AI tools for pro-quality videos"},"proPlaygroundCredits":{"description":"AI tools for pro-quality videos"},"studioIcp":{"cta":"Go Studio","description":"Produce studio-quality videos with AI"},"tryForFree":"Start Free Trial"}},"comparisonModal":{"chooseAPlan":"Choose a Plan","freeTrialHeader":"Try our plans for free","freeTrialSubtext":"Experience the full power of Veed with a free 7-day trialâno commitment, just unlimited creativity! Upgrade today and weâll remind you 3 days before your trial ends.","updateCurrentSubscription":{"defaultSubtext":"Upgrade your workspace to get professional editing tools, extra subtitles, translations, custom branding, increased storage, collaboration tools, SSO and more."},"upgradeWorkspaceName":"Upgrade {workspaceName}"},"compressAndConvert":{"unlimited":"Unlimited","upTo":"Up to {allowance}GB"},"contactSalesLink":{"defaultText":"Contact {planName} Sales"},"crossEnvironmentBlock":{"apiBilling":{"cta":"Go to VEED API billing","description":"API workspaces are billed separately from VEED plans. Manage billing in VEED API.","title":"This is an API workspace"},"default":{"collaborators":{"description":"Please continue from a supported environment.","title":"Collaborator management is not available here"},"description":"Please continue checkout from a supported environment.","title":"Checkout is not available here"},"iosWithStripeSub":{"collaborators":{"description":"Your subscription was started on the web. To invite or manage collaborators, please open VEED in an internet browser.","title":"Manage your team on desktop"},"description":"Your subscription was started on the web. To make changes, please open VEED in an internet browser.","title":"Manage your subscription on desktop"},"webWithAndroidSub":{"collaborators":{"description":"Your subscription was started through Google Play. To invite or manage collaborators, please open the VEED Android app.","title":"Manage your team on your Android device"},"description":"Your subscription was started through Google Play. To make changes, please open the VEED Android app.","title":"Manage your subscription on your Android device"},"webWithIosSub":{"collaborators":{"description":"Your subscription was started through the App Store. To invite or manage collaborators, please open the VEED iOS app.","title":"Manage your team on your iOS device"},"description":"Your subscription was started through the App Store. To make changes, please open the VEED iOS app.","title":"Manage your subscription on your iOS device"}},"currentStep":{"error":{"loadingFailed":"Loading available plans failed.","refreshPrompt":"Try refreshing your browser. If this issue persists please contact support."},"loading":"Loading available subscriptions"},"discountCode":{"addDiscountCode":"Add a discount code","apply":"Apply","applyDiscountCode":"Apply discount code","discountCode":"Discount code","errorMessage":"Sorry, this code is not applicable.","remove":"Remove","removeDiscount":"Remove discount","successMessage":"Your discount has been applied."}
1,"enterprise":{"custom":"Custom","features":{"multipleWorkspaces":{"description":"Create separate team, client and personal private spaces.","title":"Multiple workspaces"},"security":{"description":"Single sign-on (SSO), security reviews and activity logs.","title":"Security and SSO"},"subtitleTranslation":{"description":"Video localization and accessibility tools. Engage a global audience.","title":"Translations and subtitles"}},"perUser":"per user","planTitle":"Enterprise"},"enterprisePlan":{"ctaText":"Contact Sales","iosUnavailable":"Enterprise plans can\'t be managed from the iOS app.","subtitle":"Access premium tools for quality production, seamless collaboration, multiple seats and brand alignment. <0>Learn More</0>","subtitlePlain":"Access premium tools for quality production, seamless collaboration, multiple seats and brand alignment.","title":"Unlock the Tools to Scale Video Across Your Team"},"exportQuality":{"1280":"720p","2000":"1080p"},"faq":{"header":"Frequently Asked Questions","items":{"VAT":{"answer":"<0>Our VAT number is GB354412222.</0>","question":"What is your VAT number?"},"brandKit":{"answer":"<0>Brand Kit allows you to add custom brand fonts, colors, images, videos, audio files, and watermarks and reuse them across all projects effortlessly.</0>","question":"What is Brand Kit?"},"cancel":{"answer":"Yes, absolutely. If you want to cancel your plan, simply go to your dashboard and select \'Team Billing\' in the top left dropdown and click on \'Turn off auto-renewal\'. If you do cancel, you will continue to have access to all the premium features until the end of your billing cycle.","question":"Can I really cancel anytime?"},"currenciesAndPayments":{"answer":"Prices are listed in your local currency if available, and if not they are listed in USD. We accept all major debit and credit cards and accept alternative payment methods like PayPal and Google and Apple Pay in specific countries. Our payment system uses the latest security technology and is powered by Stripe, one of the world\'s most reliable payment companies. If you have any trouble with paying by card, please contact us.","question":"What currencies and payment options are available?"},"educationInstitutions":{"answer":"<0>Yes we do. We offer bespoke education plans for faculty wide use. Please contact sales via <2>this form.</2> </0>","question":"Do you offer plans for educational institutions?"},"multipleUsers":{"answer":"Our plans are charged on a \'per seat\' basis so the amount of the plan is multiplied by the number of editors in your workspace. You will be charged when you invite new users into the workspace.","question":"How do you charge for multiple users?"},"receipts":{"answer":"<0>You can access receipts for all transactions in your account. Go to your dashboard and select \'Team Billing\' in the top left dropdown and open the \'Invoices\' tab.</0>","question":"Will I receive receipts for my transactions?"},"refund":{"answer":"<0>You can find our refund policy on our <2>Terms of Sale page</2>.</0>","question":"What is your refund policy?"},"subtitlesAndTranslations":{"question":"What are the limits on subtitles and translations?"},"support":{"answer":"<0>Your business is really important to us and we know video editing can be hard. You can contact us through the <2>Contact page</2>, or via live chat and we\'ll respond during our working hours.</0>","question":"What\'s the fastest way to reach you in case I need help?"},"trial":{"answer":"<0>We offer a free trial for enterprise customers. You will need a minimum of 3 users. To set this up please <2>Contact Sales.</2></0>","answer-trials-enabled":"<0>Yes, there is an option to trial our paid plans for 7 days (credit card required). For enterprise customers, a minimum of 3 users is required and a trial can be set up by <2>contacting sales.</2></0>","question":"Do you offer a trial for paid plans?"},"watermark":{"answer":"<0>The watermark is shown in the corner of videos that are created on the free plan. To remove the watermark, you can choose any of our paid plans.</0><1></1>","question":"What does the watermark look like?"}}},"featureCategories":{"aITools":"AI Tools","collaborationAndBrandManagement":"Collaboration & Brand Management","powerfulVideoEditing":"Powerful video editing","support":"Support","videoCreation":"Video creation","videoSharingAndHosting":"Video sharing and hosting","workflowTools":"Workflow Tools"},"features":{"accountManager":{"label":"Customer Success","tooltip":"Dedicated customer success manager"},"aiBroll":{"label":"AI B-roll","tooltip":"Automatically add B-roll to your videos"},"aiDubbingProofreading":{"label":"AI Dubbing Proofreading","tooltip":"Proofread translation before dubbing your video"},"analytics":{"label":"Video Analytics","tooltip":"Track engagement, views and clicks"},"auto-Edits":{"label":"Auto-edits","tooltip":"Automatically edit, enhance, and polish your video"},"autoResizeVideos":{"label":"Resize for Social Media","tooltip":"Resize your video for different social media platforms"}
1,"autoSubtitles3tier":{"annual":{"basic":"Unlimited","business":"Unlimited","enterprise":"Unlimited","free":"{allowance} {unit}/mo","pro":"Unlimited"},"label":"Auto Subtitles","monthly":{"basic":"Unlimited","business":"Unlimited","enterprise":"Unlimited","free":"{allowance} {unit}/mo","pro":"Unlimited"},"tooltip":"Add subtitles automatically"},"autoSubtitles":{"annual":{"basic":"{allowance} {unit}/yr","business":"{allowance} {unit}/yr","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/yr"},"label":"Auto Subtitles","monthly":{"basic":"{allowance} {unit}/mo","business":"{allowance} {unit}/mo","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/mo"},"tooltip":"Maximum allowed transcription time in one billing period"},"avatars":{"annual":{"basic":"{allowance} {unit}/yr","business":"{allowance} {unit}/yr","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/yr"},"business":"240 minutes","enterprise":"Custom","label":"AI Characters","monthly":{"basic":"{allowance} {unit}/mo","business":"{allowance} {unit}/mo","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/mo"},"tooltip":"Transform your text into AI-powered virtual characters"},"backgroundRemoval":{"label":"Background Removal","tooltip":"Swap your physical environment for any virtual background"},"beautifier":{"label":"Beautifier","tooltip":"Improve on-camera appearance with face filters"},"brandKit":{"label":"Brand Kit","tooltip":"Easily accessible brand assets to be used across projects"},"brandedVideoHosting":{"label":"Branded Video Hosting","tooltip":"Share videos on a branded viewing page"},"characterCredits":{"label":"Stock Characters","tooltip":"Generate AI Videos with VEED Stock Characters","value":"Generate with Credits"},"cleanAudio":{"label":"Clean Audio","tooltip":"Remove background noise and enhance your audio quality"},"clips":{"annual":{"basic":"{allowance} {unit}/yr","business":"{allowance} {unit}/yr","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/yr"},"label":"Clips","monthly":{"basic":"{allowance} {unit}/mo","business":"{allowance} {unit}/mo","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/mo"},"tooltip":"Generate AI highlights from your videos."},"commentingAndReviewing":{"label":"Commenting & Reviewing","tooltip":"Timestamped comments for feedback and discussion"},"compressAndConvert":{"label":"Compress & Convert","tooltip":"Compress or convert video files"},"createVideosWithGen-AIStudio":{"label":"Talking head videos with Gen-AI Studio","tooltip":"Create talking head videos with Gen-AI Studio"},"createVideosWithGenAiStudio":{"basic":"{allowance} video / day","free":"{allowance} video / day"},"customEmbeds":{"label":"Custom Embeds","tooltip":"Customize the embed video player"},"customFonts":{"label":"Custom Fonts","tooltip":"Upload unlimited custom fonts to use with video captions"},"customLegals":{"label":"Custom Legals","tooltip":"Tailored legal contracts for your business"},"customTemplates":{"label":"Custom Templates","tooltip":"Create your own templates to make video creation faster and more consistent"},"customWatermarks":{"label":"Custom Watermarks","tooltip":"Add custom watermarks on your projects"},"downloadSubtitles":{"label":"Download Subtitles","tooltip":"Ability to export .srt, .vtt and .txt files with generated subtitles"},"dubbing":{"annual":{"basic":"{allowance} {unit}/yr","business":"{allowance} {unit}/yr","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/yr"},"label":"AI Dubbing","monthly":{"basic":"{allowance} {unit}/mo","business":"{allowance} {unit}/mo","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/mo"},"tooltip":"Dub your videos in 25+ languages"},"dynamicSubtitles":{"label":"Dynamic Subtitles","tooltip":"Create dynamic subtitles that animate with speech"},"editWithScript":{"label":"Edit with Script","tooltip":"Make video edits by editing the script"},"embeds":{"label":"Embeds","tooltip":"Embed videos into your websites"},"exportQuality":{"label":"Export Quality","tooltip":"The maximum video resolution you can export"},"eyeContact":{"label":"Eye Contact","tooltip":"Make it seem like you are directly looking into the camera"},"genAICustomCharacters":{"label":"Custom Characters","tooltip":"Generate your own Custom Characters with VEED Fabric","value":"Generate with Credits"},"genAIMediaImageToVideo":{"label":"AI Image to Video Generation","tooltip":"Generate videos from images with AI","value":"Credit add-on"}
1,"genAIMediaImages":{"annual":{"basic":"Up to 300 images/mo with Credits","business":"Unlimited","enterprise":"Unlimited","free":"Up to 100 images/mo with Credits","pro":"Up to 1,500 images/mo with Credits"},"label":"AI Image Generation with AI models","monthly":{"basic":"Up to 300 images/mo with Credits","business":"Unlimited","enterprise":"Custom","free":"Up to 100 images/mo with Credits","pro":"Up to 1,500 images/mo with Credits"},"tooltip":"Generate images from text with AI on VEED\'S Editor, AI Playground and Gen-AI Studio"},"genAIMediaVideos":{"annual":{"basic":"Up to 60 videos/mo with Credits","business":"Up to 2,000 videos/mo with Credits","enterprise":"Custom","free":"Up to 20 videos/mo with Credits","pro":"Up to 300 videos/mo with Credits"},"label":"AI Video Generation with AI models","monthly":{"basic":"Up to 60 videos/mo with Credits","business":"Up to 2,000 videos/mo with Credits","enterprise":"Custom","free":"Up to 20 videos/mo with Credits","pro":"Up to 300 videos/mo with Credits"},"tooltip":"Generate videos from text or images with different AI Models on VEED\'S Editor, AI Playground and Gen-AI Studio"},"integrations":{"label":"Integrations","tooltip":"Link up your video production workflow"},"magicExpand":{"label":"AI Background Expand","tooltip":"AI-powered outpainting to intelligently extend video backgrounds when changing aspect ratios","value":"Generate with Credits"},"manualSubtitles":{"label":"Manual Subtitles","tooltip":"Add manual subtitles"},"mobileApp":{"label":"iOS App","tooltip":"Get premium access on our iOS app"},"numberOfEditors":{"label":"Number of editors","tooltip":"Max number of editors"},"onboardingAndTraining":{"label":"Onboarding & Training","tooltip":"Onboarding your team and providing product training"},"onboardingAndtraining":{"label":"Onboarding & Training","tooltip":"Onboarding your team and providing product training"},"onlineVideoSharing":{"label":"Online Video Sharing","tooltip":"Let others view your video online instantly"},"personalAiAvatars":{"label":"Personal AI Characters","tooltip":"Transform your text into an AI-powered virtual character that looks and sounds like yourself"},"personalAvatars":{"label":"Personal Characters","tooltip":"Create a character of yourself using your own image and voice"},"playgroundCredits":{"label":"AI Playground","tooltip":"Generate videos using top AI video models like Google Veo and PixVerse","value":"Credit add-on"},"premiumSubtitleStyles":{"annual":{"basic":"Limited","business":"Unlimited","enterprise":"Unlimited","free":"Limited","pro":"Unlimited"},"label":"Subtitle Styles","monthly":{"basic":"Limited","business":"Unlimited","enterprise":"Unlimited","free":"Limited","pro":"Unlimited"},"tooltip":"Choose from a library of customizable subtitle styles"},"privacyControls":{"label":"Privacy Controls","tooltip":"Comprehensive control over your video privacy settings"},"privateHostingAndPlayer":{"label":"Private Hosting & Player","tooltip":"Secure hosting and online video player"},"privateWorkspaces":{"label":"Private Workspaces","tooltip":"Segregated private workspaces for multiple teams"},"removeFillerWords":{"label":"Remove Filler Words","tooltip":"Remove filler words like \\"um\\" and \\"uh\\""},"removeWatermark":{"label":"Watermark-free Exports","tooltip":"Remove the Veed watermark from your videos"},"reviewerRole":{"annual":{"basic":"0","business":"1","enterprise":"Unlimited","free":"0","pro":"0"},"label":"Number of reviewers","monthly":{"basic":"0","business":"1","enterprise":"Unlimited","free":"0","pro":"0"},"tooltip":"Max number of reviewers"},"screenAndCamRecorder":{"label":"Screen & Cam Recorder","tooltip":"Record your webcam and screen and add it to the editor"},"singleSignOnSso":{"label":"Single sign-on (SSO)","tooltip":"User login via single sign-on"},"slidesToVideo":{"annual":{"basic":"{allowance} {unit}/yr","business":"{allowance} {unit}/yr","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/yr"},"label":"Slides To Video","monthly":{"basic":"{allowance} {unit}/mo","business":"{allowance} {unit}/mo","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/mo"},"tooltip":"Generate a full video from your slides"},"socialMediaAvatars":{"basicAvatars":"Basic Characters","label":"Social Media Characters","premiumAvatars":"Premium Characters","tooltip":"Generate characters for social media"},"sso":{"label":"Single sign-on (SSO)","tooltip":"User login via single sign-on"}
1,"stockAudioAndVideo":{"annual":{"basic":"Unlimited","business":"Unlimited","enterprise":"Unlimited","free":"Limited","pro":"Unlimited"},"label":"Stock Audio & Video","tooltip":"Access to our vast library of stock audio & video"},"stockTemplates":{"annual":{"basic":"Unlimited","business":"Unlimited","enterprise":"Unlimited","free":"Limited","pro":"Unlimited"},"label":"Stock Templates","tooltip":"Professional and editable video templates"},"storage":{"annual":{"basic":"{allowance}GB of storage","business":"{allowance}GB of storage","enterprise":"{allowance}GB+ of storage","free":"{allowance}GB of storage","pro":"{allowance}GB of storage"},"label":"Storage","tooltip":"The maximum storage space for your team","unlimited":"Unlimited"},"subtitleTranslation":{"annual":{"basic":"{allowance} {unit}/yr","business":"{allowance} {unit}/yr","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/yr"},"label":"Subtitle Translation","monthly":{"basic":"{allowance} {unit}/mo","business":"{allowance} {unit}/mo","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/mo"},"tooltip":"Translate subtitles into more than 50 languages - counts towards your subtitle transcription time"},"subtitleTranslationCredits":{"label":"Subtitle Translation","tooltip":"Translate video subtitles into more than 150 languages and dialects","value":"Translate with Credits"},"subtitlesTranslation":{"tooltipTranslationsLimit":"Translate video subtitles into more than 150 languages and dialects. Different quotas are allowed per plan."},"support":{"annual":{"basic":"Chat","business":"Chat","enterprise":"Chat 24/5","free":"AI chatbot","pro":"Chat"},"label":"Support","tooltip":"Help from our friendly support team"},"textToSpeech":{"annual":{"basic":"{allowance} {unit}/yr","business":"{allowance} {unit}/yr","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/yr"},"label":"Text to Speech","monthly":{"basic":"{allowance} {unit}/mo","business":"{allowance} {unit}/mo","enterprise":"Custom","free":"{allowance} {unit}/mo","pro":"{allowance} {unit}/mo"},"tooltip":"Generate speech from text with AI-powered natural sounding voices"},"textToSpeechCredits":{"annual":{"basic":"Up to 4 hr/yr with Credits","business":"Up to 960 hr/yr with Credits","enterprise":"Custom","free":"Up to 10 min/mo with Credits","pro":"Up to 144 hr/yr with Credits"},"label":"Text to Speech","monthly":{"basic":"Up to 2 hr/mo with Credits","business":"Up to 80 hr/mo with Credits","enterprise":"Custom","free":"Up to 10 min/mo with Credits","pro":"Up to 12 hr/mo with Credits"},"tooltip":"Generate speech from text with AI-powered natural sounding voices"},"unit":{"hr":"hr","min":"min"},"uploadFileSize":{"annual":{"basic":"Unlimited","business":"Unlimited","enterprise":"Unlimited","free":"{allowance}GB","pro":"Unlimited"},"label":"Upload File Size","tooltip":"The maximum file size that you can upload"},"veedMotionWithoutCredit":{"daily":"{allowance} / day","label":"VEED Motion","tooltip":"Generate videos with VEED Motion"},"versionControl":{"label":"Version Control","tooltip":"Restore older versions of your videos"},"videoAnalytics":{"label":"Video Analytics","tooltip":"Track engagement, views and clicks"},"videoCallToAction":{"label":"Video Call-to-action","tooltip":"Add a call-to-action with clickable link to your video"},"videoExportLength":{"annual":{"basic":"Unlimited","business":"Unlimited","enterprise":"Unlimited","free":"{allowance} minutes","pro":"Unlimited"},"label":"Video Export Length","monthly":{"basic":"Unlimited","business":"Unlimited","enterprise":"Unlimited","free":"{allowance} minutes","pro":"Unlimited"},"tooltip":"The maximum video export length per project"},"voiceClone":{"label":"Voice Clone","tooltip":"Create an immersive voice clone of your own voice"},"watermark":{"label":"Watermark-free Exports","tooltip":"Remove the watermark from your videos"},"workspaceSetup":{"label":"Workspace setup","tooltip":"We help you get set up"}},"goToPayment":{"cancel":"Cancel","next":"Next","wait":"Please wait..."},"header":{"back":"Back","currentPlanIs":"Your current plan is the","intervalToggle":{"annualDiscount":"Annual Discount","annualDiscountClarification":"Save up to {bestDiscount}% with yearly","annualDiscountClarificationShort":"Save up to {bestDiscount}%","monthly":"Monthly","payMonthly":"Pay monthly","payYearly":"Pay yearly","yearly":"Yearly"},"plan":"plan","planComparison":{"perMonth":"/mo","playgroundCredits":"Generate with Credits","pricingSectionAnnualLabel":"Billed Yearly","pricingSectionMonthlyLabel":"Billed Monthly","pricingSectionTitle":"Pricing","subtext":{"custom"
1:"Custom","customPricing":"Custom pricing"}},"upgradeTo":"Upgrade to {planName}"},"login":{"headerLogin":"Welcome back to VEED","headerSignUp":"Create your account"},"numberOfEditors":{"range":"Up to {max}","unlimited":"{max}+"},"paymentDetails":{"backToSelection":"All plans","billingPeriodSelection":{"annualDiscountBadge":"Save {annualDiscountAmount}%","annually":"Annually","annuallySubText":"per editor per 12 months","compactSelectionUpsell":{"business":"For teams of up to {businessMaxEditors} people","enterprise":"For big teams","proV2":"Access to all subtitle styles and brand kit"},"label":"Billing period","monthly":"Monthly","monthlySubText":"per editor per month","planWarningAnnualDiscountBadge":"Save {annualDiscountAmount}%","planWarningCurrentPlanBadge":"Current Plan","selectButton":"Select","totalUsers":"{count, plural, one {for {count} user} other {for {count} users}}","upsellSubTextBilling":"Billed annually","upsellSubTextCondensed":"Per editor / month"},"cadenceSelector":{"annually":"Yearly","upsellSubTextCondensed":"/ month / user"},"loading":"Loading","subscribeToPlan":"Subscribe to {plan}","trial":{"email":"Weâll email you a reminder 3 days before your trial ends.","free":"{remainingTrial}, cancel any time"},"upgradeToPlan":"Upgrade {workspaceName} to {plan}"},"paymentFooter":{"annualChargeSummary":"Youâll be charged {fullPriceText} monthly until you cancel the subscription.","awaitingResponse":"Please wait...","cancel":"Cancel","details":"{count, plural, one {{price} / 1 {period} / {count} editor} other {{price} / 1 {period} / {count} editors}}","discountedAnnualChargeSummary":"Youâll be charged {priceText} now for one year of subscription. Changes may apply upon renewal.","discountedMonthlyChargeSummary":"Youâll be charged {priceText} now for one month of subscription. Changes may apply upon renewal.","monthlyChargeSummary":"Youâll be charged {fullPriceText} yearly until you cancel the subscription.","paypalContinueNotice":"Please continue your payment process in a new window. In case it has not opened, please click <2>this link to go to payment manually.</2>","subscribeButton":{"currentPlan":"Your Current Plan","startTrial":"Start Trial","subscribeNow":"Subscribe Now","upgradeNow":"Upgrade Now"},"termsAndPrivacyAgreement":"By clicking on subscribe, you agree to our <0>Terms</0> and <1>Privacy Policy.</1>","total":"Total","trialSummarySuffix":"On {date}"},"planComparison":{"addAiCredits":"Add AI credits","aiCreditsAmount":"{credits} Credits \xb7","aiVideosAmount":"~{videos} AI Videos","bestSeller":"Best seller","billedAnnually":"billed annually","billedYearly":"billed yearly as {currencySymbol}{price}","choosePlan":"Choose a plan","contactSales":"Contact Sales","creditsLabel":"credits","currentPlanBadge":"Current plan","customAiCredits":"Custom AI Credits","customPricing":"Custom pricing","generateAI":{"description":"Add AI credits to any paid plan, then use them to create clips with the latest AI video models.","title":"Generate incredible AI video clips"},"highlights":"Highlights","legacyBadge":"Legacy","legacyBadgeTooltip":"This plan is no longer available. If you switch plans you wonât be able to choose it again.","letsTalk":"Let\'s Talk","manageInAndroidApp":"Manage in Android app","manageIniOSApp":"Manage in iOS app","monthPerEditor":"/ Month per editor","noCreditCard":"No credit card required","noCredits":"Add AI credits to plan","perUserMonth":"per user / month","perUserYear":"per user / year","recommended":"Recommended","selectCreditsPlaceholder":"Select AI Credits","stickyCta":"{ctaLabel} to {planTitle}","switchToPlan":"Switch to {planTitle}"},"planDetails":{"comparePlans":"Compare all plans","support":"Support"},"planRow":{"enterpriseRow":{"contactSales":"Contact Sales"}},"plans":{"basic":{"annualPricingSubText":"Billed {annualPrice} annually, per user","cta":"Go Basic","description":"For those starting out"},"basicIcp":{"cta":"Go Lite","description":"Enhance your social media videos"},"basicIcpV3":{"cta":"Go Lite","description":"Watermark-free social videos"},"business":{"annualPricingSubText":"Billed {annualPrice} annually, per user","cta":"Go Business","description":"For up to 5 people"},"continueFreeTrial":"Continue Free Trial","continueTrial":"Continue Trial","creatorIcp":{"cta":"Go Creator","description":"Create studio-quality videos with AI"},"creatorIcpV2":{"cta":"Go Creator","description":"Watermark-free social videos with AI"},"discount":{"description":"Save {annualDiscount}%"},"enterprise":{"cta":"Contact Sales","description":"Tailored to your needs","subText":"Custom Pricing","subtitle":"Let\'s Talk"},"enterpriseIcp":{"cta":"Contact Sales","description":"Scale video across your team"},"enterpriseIcpV3":{"cta":"Contact Sales","description":"Scale your entire team\'s video creation"},"enterprisePlanNameExperiment":{"cta":"Contact Sales","description":"Built for teams who create together"},"featuresExcerpt":{"allowance":{"annually":{"hr":"hr/yr","min":"min/yr"},"hr":"h","min":"min","monthly":{"hr":"hr/mo","min":"min/mo"}},"features":{"aIImageUnlimited":"Unlimited AI Image Generations","accountManager":"Customer success","accountManagerICPV3":"Dedicated customer success manager","accountManagerV2":"Dedicated customer success manager","advancedSecurityControl
1s":"Advanced security & SSO","aiAvatars":"AI Characters ({allowance} {unit})","aiAvatarsAndAIDubbing":"AI Characters & AI dubbing ({allowance} {unit})","aiAvatarsAndVoiceDubbing":"AI Characters & voice dubbing ({allowance} {unit})","aiCleanup":"15+ AI tools to make studio-quality videos","aiDubbingProofreading":"AI Dubbing Proofread","aiEditing":"AI-powered editing; Clean Audio and Eye Contact Correction","aiToolsWithAvatars":"Access to all AI tools (including AI Characters)","analytics":"Video Analytics","autoResizeICPV3":"Auto-resize for social media","autoResizeVideos":"Resize for Social Media","autoSubtitles":"Subtitles {allowance} {unit}","autoSubtitlesICPV3":"{allowance} {unit} of captions/subtitles","avatars":"AI Characters {allowance} {unit}","boostProductionWithAIToolsICPV3":"Access to all AI tools","boostProductionWithAiTools":"Boost Production with AI Tools","brandFetch":"Auto Brand Import","brandKit":"Brand kit","brandKitICPV3":"Full Brand Kit","brandKitStyledAssetsICPV3":"Limited Brand Kit","callToAction":"Add call-to-action to your videos","centrallyManageTeams":"Central team management","cleanAudio":"Clean Audio","clips":"Clips","compressAndConvert":"{allowance}GB upload limit","createVideosWithGenAiStudio":{"basic":"{allowance} videos / day in Gen-AI Studio","enterprise":"Create unlimited videos with Gen-AI Studio","free":"{allowance} videos / day in Gen-AI Studio","pro":"Unlimited videos in Gen-AI Studio"},"createVideosWithGenAiStudioWithAllowance":"{allowance} videos / day in Gen-AI Studio","creatorTraining":"Creator training","customBrandTemplates":"Custom Brand Templates","customTemplates":"Custom Templates","customTemplatesICPV3":"Start from custom branded templates","customUsageLimits":"Custom caption limits","customUsageLimitsICPV3":"Custom caption limits","dedicatedCustomerSuccess":"Dedicated Customer Success","downloadSubtitles":"Download Subtitles","dubbing":"AI Dubbing","editorTrainingWorkshops":"Editor Training Workshops","editorTrainingWorkshopsICPV3":"Editor trainings to level up your team","embedAnywhere":"Embed your videos anywhere","exportQuality":{"1080":"Export in HD \xb7 1080p","4000":"4k Export Quality"},"exportQualityICPV3":"Export in HD \xb7 1080p","exportVideosIn4k":"4K Ultra HD Exports","exports":"Exports with a watermark","eyeContact":"Eye Contact Correction","fullBrandKit":"Full Brand Kit","genAiStudioCredits":{"basic":"Gen-AI Studio videos with Credits","business":"6x more Gen-AI Studio videos than Pro","pro":"5x more Gen-AI Studio videos than Creator"},"genVideoWithAIStudio":"Generate videos with AI-studio","iOSAppAccess":"iOS app access","interactiveLinks":"Interactive video links, buttons, CTA","iosAppICPV3":"Caption and share from iOS","libraryOfTemplates":"Library of templates","max1Editor":"Single Editor account","max1EditorICPV3":"Single Editor account","max3Editors":"Up to 3 Editors (billed per Editor)","max5Editors":"Up to 5 Editors (billed per Editor)","max5EditorsICPV3":"Up to 5 Editors (billed per Editor)","mobileApp":"Veed iOS App","multipleBrandKits":"Multiple Brand Kits","multipleBrandKitsICPV3":"Multiple Brand Kits","multipleWorkspaces":"Multiple workspaces","noCredits":"Add credits to generate videos using VEED Fabric 1, Google Veo 3, and more","personalAiAvatars":"Custom AI Characters","personalAiAvatarsICPV3":"Custom AI Characters","playgroundCreditsCustom":"Custom AI Credits","playgroundCreditsWithAllowance":"Generate videos with {allowance} credits, using VEED Fabric 1, Google Veo 3, and more","premiumVideoAndAudioLibrary":"Full audio & video catalog","priorityCustomerSupport":"Priority Customer Support","privacyControlsICPV3":"Advanced security & access controls","removeWatermarkICPV3":"No watermark on videos","reviewerRole":"Review mode","singleSignOn":"Single sign-on","srtSubtitlesDownloads":"Download Subtitles","stockAudioAndVideo":"Full audio & video catalog","stockAudioVideoICPV3":"Some Stock Audio & Video","stockTemplatesICPV3":"Access to 200+ video templates","storage":"{allowance}GB of storage","subtitleTranslation":"Translate to 50+ Languages","subtitleTranslationCredits":"Translate to 50+ Languages","subtitleTranslationICPV3":"{allowance} {unit} of Translations","textToSpeech":"{allowance} {unit} Text to Speech ","textToSpeechAndVoiceCloning":"{allowance} {unit} Text to speech","translations":"Translations {allowance} {unit}","unlimitedGenAiVideoCreation":"Unlimited Gen-AI video creation","uploadFileSize":"Unlimited file upload size","usageCustom":"Custom usage limits","veedMotion":"Unlimited VEED Motion","videoAnalytics":"Video Analytics","videoCta":"Video call-to-action","videoExportLength":"Export videos up to {allowance}
1 minutes","videoLengthLongerThan10Minutes":"Export videos longer than 10 minutes","watermark":"No watermark"},"tryOnce":"Try once"},"free":{"annualPricingSubText":"No credit card required","cta":"Sign up, it\'s free","description":"Essential editing"},"freeIcpV3":{"cta":"Go Free"},"mobile":{"cta":"Choose"},"plan":"Plan","pro":{"annualPricingSubText":"Billed {annualPrice} annually, per user","cta":"Go Pro","description":"For pro video creation"},"proIcp":{"cta":"Go Pro","description":"Create any video with AI power"},"proIcpV3":{"cta":"Go Pro","description":"AI tools for pro-quality videos"},"proIcpV4":{"cta":"Go Pro","description":"On-brand pro-level videos with AI"},"startTrial":"Start Trial","studioIcp":{"cta":"Go Studio","description":"Produce studio-quality videos with AI"},"studioIcpV2":{"cta":"Go Studio","description":"AI video generation at scale"},"tryForFree":"Start Free Trial"},"price":{"saveBadge":"Save {discountAmount}%"},"pricingColumn":{"switchToAnnual":"Switch To Annual"},"tooltips":{"limitedTrialAITooltip":{"text":"Look good and sound good with tools like Clean Audio, Portrait Touch-up..."},"videoClips":{"text":"Click to see examples and pricing for OpenAI Sora, Google Veo, VEED Fabric..."}},"trial":{"overview":{"continueTrialTitle":"Continue your {plan} Plan Trial","title":"Start your {plan} Plan Trial"},"payments":{"dueLater":"Due {date}","dueToday":"Due today ({remainingTrial}-day free trial)"},"timeline":{"emailReminder":{"description":"Weâll send you a reminder 3 days before your trial ends.","title":"Trial reminder"},"title":"Your Free Trial","today":{"description":"Unlock access to all our {plan} features.","title":"Today: Start your {trialLength} day Free Trial"},"trialEnd":{"description":"Your subscription will start and youâll be charged unless you cancelled during the trial.","title":"Day 7: Subscription starts"}}},"upgrade":{"areYouReady":"Ready to upgrade to the {title} plan?","confirm":"Confirm your upgrade below to unlock our full suite of video editing features thatâll take your videos to the next level.","trial":"Once you upgrade your remaining free trial will be cancelled and you will be billed automatically starting today."},"upgrade_button":{"restartSubscription":"Restart Subscription","resumeSubscription":"Resume Subscription","upgrade":"Upgrade","upgradeTeam":"Upgrade Team","upgradeToFreeTrial":"Upgrade to Free Trial"}}'),r="react-checkout",l=i,o=(0,a.i)({"es-ES":()=>n.e(313).then(n.t.bind(n,47313,19)),"fr-FR":()=>n.e(765).then(n.t.bind(n,765,19)),"id-ID":()=>n.e(555).then(n.t.bind(n,41555,19)),"it-IT":()=>n.e(35).then(n.t.bind(n,18035,19)),"nl-NL":()=>n.e(405).then(n.t.bind(n,90405,19)),"pt-PT":()=>n.e(833).then(n.t.bind(n,44833,19)),"zh-CN":()=>n.e(90).then(n.t.bind(n,83090,19)),"fil-PH":()=>n.e(954).then(n.t.bind(n,62954,19)),"ph-PH":()=>n.e(954).then(n.t.bind(n,62954,19)),"de-DE":()=>n.e(755).then(n.t.bind(n,58755,19))})},80376:(e,t,n)=>{n.d(t,{BB:()=>i,Q$:()=>r,d5:()=>a});var a=function(e){return e.IDLE="idle",e.FETCHING="fetching",e.ERROR="error",e.SUCCESS="success",e}({}),i=function(e){return e.CURRENT_URL="current_url",e.WORKSPACE_URL="workspace_url",e}({}),r=function(e){return e.SUCCESS="success",e}({})},87653:(e,t,n)=>{n.d(t,{E:()=>r});var a=n(4930),i=n(46376);function r(e){let{className:t,...n}=e;return(0,a.jsx)("div",{className:(0,i.cn)("animate-pulse rounded-[10px] bg-action-subtle",t),...n})}},90948:(e,t,n)=>{n.d(t,{$:()=>a,I:()=>i});let a=e=>e[0].toUpperCase()+e.slice(1).toLowerCase(),i=(e,t)=>a(null!=e?e:t.toString())},91811:(e,t,n)=>{n.d(t,{Bz:()=>o,CU:()=>s});var a=n(4930),i=n(56152),r=n(46376),l=n(65162);let o=(0,l.forwardRef)((e,t)=>{let{className:n,...l}=e;return(0,a.jsx)(i.bL,{className:(0,r.cn)("grid gap-3",n),...l,ref:t})});o.displayName=i.bL.displayName;let s=(0,l.forwardRef)((e,t)=>{let{className:n,...l}=e;return(0,a.jsx)(i.q7,{ref:t,className:(0,r.cn)("peer aspect-square size-4 rounded-full bg-action-subtle-on-base text-text-brand ring-offset-background-base hover:bg-action-subtle-on-base-hover focus:outline-hidden focus-visible:ring-2 focus-visible:ring-border-brand focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-background-base",n),...l,children:(0,a.jsx)(i.C1,{className:"flex h-full w-full items-center justify-center rounded-full bg-action-brand-contrast",children:(0,a.jsx)("div",{className:"size-2 roun
1ded-full bg-background-raised"})})})});s.displayName=i.q7.displayName},92348:(e,t,n)=>{n.d(t,{G:()=>s});var a=n(21050),i=n(65162),r=n(26639),l=n(53672);async function o(e,t,n){let i=await e(t);if(!(null==i?void 0:i.referralDiscountCodes))return{};let{referralDiscountCodes:r}=i,o=i.id,s={},c=[];for(let e of n){let t="".concat(e,"_ANNUALLY");s[t]={promoCode:r.annual,cadence:a.SubscriptionCadenceTypeEnum.ANNUALLY,plan:e},c.push({key:t,plan:e,cadence:a.SubscriptionCadenceTypeEnum.ANNUALLY});let n="".concat(e,"_MONTHLY");s[n]={promoCode:r.monthly,cadence:a.SubscriptionCadenceTypeEnum.MONTHLY,plan:e},c.push({key:n,plan:e,cadence:a.SubscriptionCadenceTypeEnum.MONTHLY})}let d=await (0,l.K$)({billingAccountId:o,requests:s}),u={};for(let{key:e,plan:t,cadence:n}of c){let a=d[e];if(!(null==a?void 0:a.result))continue;let{type:i,value:r}=a.result;u[t]||(u[t]={}),u[t][n]={type:String(i),value:r}}return u}let s=e=>{let{workspaceId:t,planTypes:n}=e,[a,l]=(0,i.useState)({}),[s,c]=(0,i.useState)(!1),d=(0,r.i)(),u=(0,i.useMemo)(()=>[...n].sort().join(","),[n]),p=(0,i.useRef)(n);p.current=n;let m=(0,i.useCallback)(async()=>{if(t&&0!==p.current.length){c(!0);try{let e=await o(d,t,p.current);l(e)}catch(e){l({})}finally{c(!1)}}},[t,u,d]);return(0,i.useEffect)(()=>{m()},[m]),{discounts:a,isLoading:s}}},95325:(e,t,n)=>{n.d(t,{E:()=>l});var a=n(4930),i=n(46376);let r=(0,n(9374).F)("inline-flex cursor-default items-center gap-1 rounded-sm px-2 py-0.5 font-medium text-[0.6875rem] tracking-2 transition-colors focus:outline-hidden focus:ring-2 focus:ring-border-brand focus:ring-offset-2",{variants:{variant:{default:"bg-action-subtle text-text-default",invert:"bg-action-invert text-text-invert",new:"bg-action-brand-subtle text-text-on-brand-subtle",outline:"border border-border-default border-solid bg-transparent text-text-subtle",upgrade:"bg-action-upgrade text-text-on-upgrade"}},defaultVariants:{variant:"default"}});function l(e){let{className:t,variant:n,...l}=e;return(0,a.jsx)("div",{className:(0,i.cn)(r({variant:n}),t),...l})}},96735:(e,t,n)=>{n.d(t,{yq:()=>i});var a=n(64331);let i=e=>{if(!e)return[0,""];if(e.unit===a.YO.Seconds){let t=parseFloat((e.amount/60).toFixed(2));return t<120?60===t?[1,"hr"]:[Math.floor(t),"min"]:[Math.floor(t/60),"hr"]}return e.unit===a.YO.Kilobytes?[parseFloat((Math.abs(e.amount)/1e6).toFixed(2)),""]:e.unit===a.YO.Bytes?[parseFloat((Math.abs(e.amount)/1e9).toFixed(2)),""]:[e.amount,""]}},98666:(e,t,n)=>{n.d(t,{$t:()=>c,IR:()=>o,Kd:()=>h,Q2:()=>m,QF:()=>p,RW:()=>d,Rp:()=>u,gl:()=>y,m9:()=>r,w:()=>g,wV:()=>l,yj:()=>s});var a=n(21050),i=n(19449);function r(e){return Math.round(e).toString()}function l(e,t){return t||void 0===e?"":r(e)}function o(e,t,n,r){return e===a.SubscriptionPlanTypeEnum.ENTERPRISE?"":n===i.s5.YEARLY_ONLY&&t===a.SubscriptionCadenceTypeEnum.ANNUALLY?r.perUserYear:r.perUserMonth}function s(e,t,n,l,o,s){return l||e!==a.SubscriptionCadenceTypeEnum.ANNUALLY||!t||o===i.s5.YEARLY_ONLY?"":o===i.s5.HIDE_YEARLY_TOTAL?s.billedAnnually:s.billedYearly(n,r(t))}function c(e,t,n){let a=t||(null==e?void 0:e.creditOptions.find(e=>e.creditAmount));return(null==a?void 0:a.creditAmount)?n(a.creditAmount):void 0}function d(e,t){let n=t||(null==e?void 0:e.creditOptions.find(e=>e.creditAmount));return null==n?void 0:n.creditAmount}function u(e,t){let n=[],a=e.find(e=>"playground-credits"===e.slug);return a&&n.push({text:a.text,onClick:void 0,uspKey:void 0}),t&&n.push({text:t,onClick:void 0,uspKey:void 0,isUspTitle:!0}),n.push(...e.filter(e=>"playground-credits"!==e.slug)),n}function p(e,t){return t===a.SubscriptionCadenceTypeEnum.ANNUALLY?e/12:e}function m(e,t){return e===a.SubscriptionCadenceTypeEnum.ANNUALLY?t:void 0}function y(e,t){let n=12*e;return Math.floor((n-t)/n*100)}function h(e){let t=e.filter(e=>e.type!==a.SubscriptionPlanTypeEnum.FREE&&e.type!==a.SubscriptionPlanTypeEnum.ENTERPRISE).map(e=>{let t=e.price[a.SubscriptionCadenceTypeEnum.MONTHLY],n=e.price[a.SubscriptionCadenceTypeEnum.ANNUALLY];return t&&n?y(t,n):0}),n=t.length>0?Math.max(...t):0;return n>0?n:void 0}function g(e,t,n){return(null==e?void 0:e.price)?n===a.SubscriptionCadenceTypeEnum.ANNUALLY?e.monthlyPrice?Math.round(12*e.monthlyPrice):12*Number(e.price):Number(e.price):t}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.