PageSourceSearch

https://deevid.ai/_next/static/chunks/874-8362de949b6b076e.js

js deevid.ai collected 2026-09-27 21:00:49 UTC 194,970 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[874],{64116:function(e,t,n){"use strict";var r,i,a,o,l,s=n(88864);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return s.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 82 30"},e),r||(r=s.createElement("path",{fill:"#D9D9D9",d:"M34.136 17.772a3.5 3.5 0 0 1-1.54-.356 3.4 3.4 0 0 1-1.205-.994 3.25 3.25 0 0 1-.612-1.416 3.2 3.2 0 0 1 .115-1.531l-4.34-3.58a1.65 1.65 0 0 0-1.09-.366 1.64 1.64 0 0 0-1.065.433c-.204.189-.35.43-.418.696a1.4 1.4 0 0 0 .028.805c.964 2.79 3.692 11.003 4.9 14.646a2.59 2.59 0 0 0 2.464 1.776h19.125c1.12 0 2.112-.713 2.465-1.776 1.208-3.643 3.935-11.856 4.899-14.647.087-.26.097-.539.028-.804a1.44 1.44 0 0 0-.418-.696 1.64 1.64 0 0 0-1.064-.433 1.65 1.65 0 0 0-1.091.367l-4.34 3.579q.155.475.158.999c0 .559-.146 1.109-.425 1.598-.28.488-.682.9-1.17 1.197a3.489 3.489 0 0 1-3.288.172 3.4 3.4 0 0 1-1.297-1.068 3.21 3.21 0 0 1-.355-3.176 3.3 3.3 0 0 1 1.03-1.314l-3.518-8.192a1.25 1.25 0 0 0-.47-.552 1.3 1.3 0 0 0-1.413 0c-.21.135-.373.327-.47.552l-3.519 8.192c.555.424.96 1.006 1.16 1.664.198.658.18 1.36-.051 2.007a3.3 3.3 0 0 1-1.241 1.608 3.47 3.47 0 0 1-1.972.61"})),i||(i=s.createElement("path",{fill:"url(#golden-crown_svg__a)",d:"M34.136 17.772a3.5 3.5 0 0 1-1.54-.356 3.4 3.4 0 0 1-1.205-.994 3.25 3.25 0 0 1-.612-1.416 3.2 3.2 0 0 1 .115-1.531l-4.34-3.58a1.65 1.65 0 0 0-1.09-.366 1.64 1.64 0 0 0-1.065.433c-.204.189-.35.43-.418.696a1.4 1.4 0 0 0 .028.805c.964 2.79 3.692 11.003 4.9 14.646a2.59 2.59 0 0 0 2.464 1.776h19.125c1.12 0 2.112-.713 2.465-1.776 1.208-3.643 3.935-11.856 4.899-14.647.087-.26.097-.539.028-.804a1.44 1.44 0 0 0-.418-.696 1.64 1.64 0 0 0-1.064-.433 1.65 1.65 0 0 0-1.091.367l-4.34 3.579q.155.475.158.999c0 .559-.146 1.109-.425 1.598-.28.488-.682.9-1.17 1.197a3.489 3.489 0 0 1-3.288.172 3.4 3.4 0 0 1-1.297-1.068 3.21 3.21 0 0 1-.355-3.176 3.3 3.3 0 0 1 1.03-1.314l-3.518-8.192a1.25 1.25 0 0 0-.47-.552 1.3 1.3 0 0 0-1.413 0c-.21.135-.373.327-.47.552l-3.519 8.192c.555.424.96 1.006 1.16 1.664.198.658.18 1.36-.051 2.007a3.3 3.3 0 0 1-1.241 1.608 3.47 3.47 0 0 1-1.972.61"})),a||(a=s.createElement("path",{stroke:"url(#golden-crown_svg__b)",strokeLinejoin:"round",strokeWidth:1.87,d:"M4.667 7.39c-.354 2.299 1.835 4.432 1.835 4.432s2.764-1.593 3.12-3.892c.354-2.301-1.837-4.433-1.837-4.433S5.022 5.09 4.667 7.39Zm-2.595 7.727c1.157 2.104 4.362 2.93 4.362 2.93s1.33-2.586.172-4.69c-1.156-2.104-4.363-2.932-4.363-2.932s-1.33 2.587-.17 4.692Zm1.363 7.399c2.207 1.39 5.495.838 5.495.838s-.292-2.807-2.5-4.197c-2.207-1.39-5.495-.839-5.495-.839s.293 2.807 2.5 4.198Zm5.999 6.017c2.501.977 5.583-.133 5.583-.133s-.976-2.695-3.477-3.674c-2.502-.977-5.582.135-5.582.135s.974 2.694 3.476 3.672ZM12.206 2.29c-2.011 1.586-1.935 4.401-1.935 4.401s3.341.247 5.352-1.34C17.636 3.766 17.559.95 17.559.95s-3.34-.245-5.352 1.34Z",opacity:.8})),o||(o=s.createElement("path",{stroke:"url(#golden-crown_svg__c)",strokeLinejoin:"round",strokeWidth:1.87,d:"M77.204 7.39c.354 2.299-1.835 4.432-1.835 4.432s-2.764-1.593-3.12-3.892c-.353-2.301 1.837-4.433 1.837-4.433S76.85 5.09 77.204 7.39Zm2.595 7.727c-1.157 2.104-4.362 2.93-4.362 2.93s-1.33-2.586-.172-4.69c1.156-2.104 4.363-2.932 4.363-2.932s1.33 2.587.171 4.692Zm-1.363 7.399c-2.207 1.39-5.495.838-5.495.838s.293-2.807 2.5-4.197 5.495-.839 5.495-.839-.293 2.807-2.5 4.198Zm-5.999 6.017c-2.501.977-5.583-.133-5.583-.133s.976-2.695 3.478-3.674c2.501-.977 5.58.135 5.58.135s-.973 2.694-3.475 3.672ZM69.665 2.29C71.676 3.876 71.6 6.69 71.6 6.69s-3.341.247-5.352-1.34C64.236 3.766 64.313.95 64.313.95s3.34-.245 5.352 1.34Z",opacity:.8})),l||(l=s.createElement("defs",null,s.createElement("linearGradient",{id:"golden-crown_svg__a",x1:23.936,x2:57.935,y1:16.949,y2:16.949,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#E9EECA"}),s.createElement("stop",{offset:1,stopColor:"#FFCC7D"})),s.createElement("linearGradient",{id:"golden-crown_svg__b",x1:17.559,x2:.935,y1:17.935,y2:17.935,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#E9EECA"}),s.createElement("stop",{offset:1,stopColor:"#FFCC7D"})),s.createElement("linearGradient",{id:"golden-crown_svg__c",x1:64.313,x2:80.936,y1:17.935,y2:17.935,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#E9EECA"}),s.createElement("stop",{offset:1,stopColor:"#FFCC7D"})))))}},11544:function(){},89516:function(e,t,n){"use strict";n.d(t,{bp:function(){return s},lU:function(){return u},p8:function(){return l},sR:function(){return o},xO:function(){return c}});let r={YearlyStripeOnly:"B_YEARLY_STRIPE_ONLY",YearlyWindowStripe:"C_YEARLY_WINDOW_STRIPE",PaypalDownYearlyStripe:"D_PAYPAL_DOWN_YEARLY_STRIPE"},i={WindowStripe:"WINDOW_STRIPE",WindowAdyen:"WINDOW_ADYEN",YearlyStripeOnly:"B_YEARLY_STRIPE_ONLY",YearlyWindowStripe:"C_YEARLY_WINDOW_STRIPE",MonthlyWindowYearlyStripe:"E_MONTHLY_WINDOW_YEARLY_STRIPE"},a={...i,StripePaypalOnly:"STRIPE_PAYPAL_ONLY",StripeOnly:"STRIPE_ONLY"},o=e=>"YEARLY"===e?"annually":"monthly",l=e=>e===r.YearlyStripeOnly||e===r.YearlyWindowStripe||e===r.PaypalDownYearlyStripe,s=e=>!!e,c=e=>{var t,n,r,i;return null!==(i=null!==(r=null!==(n=null!==(t=e.newUserPayMethodTestV3)&&void 0!==t?t:e.newUserPayMethodTestV2)&&void 0!==n?n:e.newUserPayMethodTest)&&void 0!==r?r:e.payMethodTest)&&void 0!==i?i:null},u=e=>{let{planPeriod:t,payMethodTest:n}=e;switch(c(e)){case a.StripePaypalOnly:return"STRIPE_PAYPAL_ONLY";case a.StripeOnly:return"STRIPE_ONLY";case"WINDOW_STRIPE":case"DIRECT_STRIPE":return"WINDOW_STRIPE";case"WINDOW_ADYEN":return"WINDOW_ADYEN";case r.YearlyStripeOnly:case r.PaypalDownYearlyStripe:return"annually"===t?"STRIPE_ONLY":"WINDOW_ADYEN";case r.YearlyWindowStripe:return"annually"===t?"WINDOW_STRIPE":"WINDOW_ADYEN";case i.MonthlyWindowYearlyStripe:return"annually"===t?"STRIPE_ONLY":"WINDOW_STRIPE";default:return"WINDOW_ADYEN"===n?"WINDOW_ADYEN":"WINDOW_STRIPE"}}},87923:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(90571);let i=()=>{var e;let{userInfo:t}=r.userStore.useSnapshot(),n=null==t?void 0:null===(e=t.plan)||void 0===e?void 0:e.payMethodTest;return{payMethodTest:n,isWindowStripe:"WINDOW_STRIPE"===n,isWindowAdyen:"WINDOW_ADYEN"===n,isStripe:["DIRECT_STRIPE","WINDOW_STRIPE"].includes(n),isAdyen:"WINDOW_ADYEN"===n}}},59359:function(e,t,n){"use strict";n.d(t,{c:function(){return l}});var r=n(88320),i=n(84285),a=n(90571),o=n(89516);let l=e=>{var t,n,l,s;let{userInfo:c}=a.userStore.useSnapshot(),{planInterval:u}=r.$.useSnapshot(),d=null==c?void 0:null===(t=c.plan)||void 0===t?void 0:t.payMethodTest,p=null==c?void 0:null===(n=c.plan)||void 0===n?void 0:n.newUserPayMethodTest,m=null==c?void 0:null===(l=c.plan)||void 0===l?void 0:l.newUserPayMethodTestV2,f=(null==c?void 0:null===(s=c.plan)||void 0===s?void 0:s.type)===i.k9.Free?c.plan.newUserPayMethodTestV3:void 0,h=!!f||(0,o.bp)(m)||(0,o.p8)(p),v=(0,o.lU)({planPeriod:(0,o.sR)(null!=e?e:u),payMethodTest:d,newUserPayMethodTest:p,newUserPayMethodTestV2:m,newUserPayMethodTestV3:f}),g=(0,o.xO)({payMethodTest:d,newUserPayMethodTest:p,newUserPayMethodTestV2:m,newUserPayMethodTestV3:f});return{route:v,inExperiment:h,isWindowStripe:h&&"WINDOW_STRIPE"===v,isWindowAdyen:h&&"WINDOW_ADYEN"===v,isStripeOnly:"STRIPE_ONLY"===v,isStripePaypalOnly:"STRIPE_PAYPAL_ONLY"===v,payMethodTest:d,newUserPayMethodTest:p,newUserPayMethodTestV2:m,newUserPayMethodTestV3:f,resolvedStrategy:g}}},84031:function(e,t,n){"use strict";n.d(t,{m:function(){return tc},O:function(){return ts}});var r,i,a,o,l=n(59197),s=n(10394),c=n(34757),u=n(71662),d=n(63825),p=n(88320),m=n(84285),f=n(94293),h=n(47047),v=n(39161),g=n(21962),b=n(44308),x=n(66925),y=n(48059),_=n(72076);function w(){let e=(0,l._)(["Cancel subscription"]);return w=function(){return e},e}function C(){let e=(0,l._)(["Are you sure you want to cancel your subscription?"]);return C=function(){return e},e}function A(){let e=(0,l._)(["I changed my mind"]);return A=function(){return e},e}function N(){let e=(0,l._)(["Confirm"]);return N=function(){return e},e}let S=(0,g.f)(e=>{let t=(0,b.dd)(),n=(0,y.NT)(),{onConfirm:r}=e||{};return(0,s.tZ)(x.u,{...g.f.modalProps(t),size:560,classNames:{body:"bg-#0C0E12",content:"bg-#0C0E12 b-1px b-solid b-#262A32",header:"bg-#0C0E12!"},closeButtonProps:{className:"[&>svg]:size-6! hover:bg-transparent top-3 right-3"},children:(0,s.BX)("div",{className:"px-6",children:[(0,s.tZ)("div",{className:"text-6 font-600 pt-2 <sm:text-4.5",children:n(w())}
1),(0,s.tZ)("div",{className:"text-5 pt-4 font-400 c-#B6BCC2 <sm:text-4",children:n(C())}),(0,s.BX)("div",{className:(0,d.cn)("flex-center-y justify-end gap-3 pt-10 pb-4"),children:[(0,s.tZ)(_.Y,{color:"#262A32",className:"h-11.5! text-4 font-500",onClick:()=>{null==t||t.hide()},children:n(A())}),(0,s.tZ)(_.Y,{className:"h-11.5! c-black text-4 font-500",color:"white",style:{"--button-hover":"white","--button-hover-color":"black"},onClick:async()=>{await (null==r?void 0:r()),await p.$.handleCancel({withModal:!1}),t.hide()},children:n(N())})]})]})})});var k=n(85619),Z=n(78479),E=n(2825),I=n(77295),P=n(4236),M=n(90571),B=n(4049),T=n(95964),F=n(14930),D=n(27251);function q(){let e=(0,l._)(["Exclusive Retention Offer"]);return q=function(){return e},e}function z(){let e=(0,l._)(["We understand your concerns about credit usage. To help you get more value from our service, we've prepared a special offer just for you:"]);return z=function(){return e},e}function R(){let e=(0,l._)(["Keep your subscription and get "," extra credits monthly for your next subscription year"]);return R=function(){return e},e}function L(){let e=(0,l._)(["Keep your subscription and get "," extra credits monthly for the next 3 months"]);return L=function(){return e},e}function O(){let e=(0,l._)(["Continue your subscription for unlimited creativity!"]);return O=function(){return e},e}function W(){let e=(0,l._)(["Great choice! You'll get "," bonus credits monthly for your next subscription"]);return W=function(){return e},e}function Y(){let e=(0,l._)(["Great choice! You'll get "," bonus credits monthly for 3 months."]);return Y=function(){return e},e}function G(){let e=(0,l._)(["Accept Offer & Keep Subscription"]);return G=function(){return e},e}function X(){let e=(0,l._)(["Continue with Cancellation"]);return X=function(){return e},e}let V=(0,g.f)(()=>{var e;let t=(0,b.dd)(),n=(0,y.NT)(),{userInfo:r}=M.userStore.useSnapshot(),{isMobile:i}=(0,B.k)(),a=(null==r?void 0:null===(e=r.plan)||void 0===e?void 0:e.interval)===m.ZF.Yearly;(0,T.useEffect)(()=>{t.visible&&(0,F.jW)("retention_exposure_b")},[t.visible]);let o=(0,T.useMemo)(()=>{var e;return({[m.k9.Standard]:40,[m.k9.Lite_5]:40,[m.k9.Lite_7]:40,[m.k9.Pro]:120,[m.k9.Pro1]:240,[m.k9.Pro2]:340,[m.k9.Premium]:600,[m.k9.Premium2]:1200,[m.k9.Premium3]:1800})[null==r?void 0:null===(e=r.plan)||void 0===e?void 0:e.type]||0},[]),l=i?k.d:x.u;return(0,s.tZ)(l,{...g.f.modalProps(t),...i?{position:"bottom",size:"95%",classNames:{header:"py-0 min-h-8.5 items-end"}}:{size:538},children:(0,s.BX)("div",{className:"sm:px-16 <sm:px-4",children:[(0,s.BX)("div",{className:"text-6 font-600 sm:pt-5 <sm:text-center <sm:text-5",children:["\uD83C\uDF81 ",n(q())]}),(0,s.BX)("div",{className:"pt-8",children:[(0,s.tZ)("div",{children:n(z())}),(0,s.tZ)("div",{className:"py-3",children:a?n(R(),o):n(L(),o)}),(0,s.tZ)("div",{children:n(O())})]}),(0,s.BX)("div",{className:"w-full py-10 <sm:absolute <sm:bottom-0 <sm:left-0 <sm:px-4",children:[(0,s.tZ)(_.Y,{fullWidth:!0,className:"h-12",onClick:async()=>{await P.WVL.request(),await M.userStore.updateUserInfo(),(0,D.s)(a?n(W(),o):n(Y(),o)),t.hide()},children:n(G())}),(0,s.tZ)(_.Y,{fullWidth:!0,variant:"outline",className:"h-12 mt-3.5",onClick:()=>{S.show({onConfirm:()=>{(0,F.jW)("cancellation_confirm_clicked_b")}}),t.hide()},children:n(X())})]})]})})});function j(){let e=(0,l._)(["Credits run out too quickly for the price"]);return j=function(){return e},e}function U(){let e=(0,l._)(["Video quality doesn't meet my expectations"]);return U=function(){return e},e}function H(){let e=(0,l._)(["I'm using it less frequently lately"]);return H=function(){return e},e}function $(){let e=(0,l._)(["Missing specific features I need"]);return $=function(){return e},e}function Q(){let e=(0,l._)(["We're sorry to see you go"]);return Q=function(){return e},e}function K(){let e=(0,l._)(["Would you tell us why?"]);return K=function(){return e},e}function J(){let e=(0,l._)(["Describe the features you need"]);return J=function(){return e},e}function ee(){let e=(0,l._)(["Continue"]);return ee=function(){return e},e}(r=a||(a={})).TooExpensive="too_expensive",r.NotSatisfied="not_satisfied",r.NotFrequently="not_frequently",r.Other="other";let et=(0,g.f)(()=>{let e=(0,b.dd)(),t=(0,y.NT)(),[n,r]=(0,T.useState)(),[i,a]=(0,T.useState)(""),{isMobile:o}=(0,B.k)(),l=[{en:"Credits run out too quickly for the price",label:t(j()),value:"too_expensive"},{en:"Video quality doesn't meet my expectations",label:t(U()),value:"not_satisfied"},{en:"I'm using it less frequently lately",label:t(H()),value:"not_frequently"},{en:"Missing specific features I need",label:t($()),value:"other"}],c=o?k.d:x.u;return(0,s.BX)(c,{...g.f.modalProps(e),classNames:{body:"px-0",...o&&{header:"min-h-8.5 py-0"}},...o?{position:"bottom",size:"95%"}:{size:538},children:[(0,s.tZ)("div",{className:"text-6 font-600 text-center <sm:text-5",children:t(Q())}),(0,s.tZ)("div",{className:"text-4.5 text-center <sm:text-4 <sm:pt-2",children:t(K())}),(0,s.tZ)(Z.Y.Group,{value:n,onChange:e=>r(e),className:"pt-10 sm:pl-20 <sm:pt-7 <sm:px-4",children:l.map(e=>(0,s.tZ)(Z.Y,{value:e.value,label:e.label,className:"mb-4.5 text-4",icon:E.n,classNames:{radio:"bg-transparent b-2px b-#6C7174"}},e.value))}),(0,s.BX)("div",{className:"px-20 pb-8 <sm:px-4",children:[(0,s.tZ)(I.g,{placeholder:t(J()),classNames:{input:"rd-2 b-#6C7174 bg-#232425! h-22 opacity-100!"},disabled:"other"!==n,value:i,onChange:e=>a(e.target.value),maxLength:300}),(0,s.BX)("div",{className:"text-right text-3 c-#BDBFC1 pt-1.5",children:[i.length,"/",300]}),(0,s.tZ)("div",{className:"w-full sm:pt-10 <sm:absolute <sm:bottom-0 <sm:left-0 <sm:px-4 <sm:pb-10",children:(0,s.tZ)(_.Y,{fullWidth:!0,className:"h-12 ",disabled:!n,onClick:()=>{var t;let r=l.find(e=>e.value===n);p.$.cancelReason="".concat(null==r?void 0:r.en,":").concat("other"===n?i:""),(0,F.jW)("cancel_subscription_reason",{reason:p.$.cancelReason,...null===(t=M.userStore.userInfo)||void 0===t?void 0:t.plan}),e.hide(),"too_expensive"===n?V.show():S.show()},children:t(ee())})})]})]})});var en=n(23466);function er(){let e=(0,l._)(["Pause your subscription"]);return er=function(){return e},e}function ei(){let e=(0,l._)(["Before you pause, please help us improve our product:*"]);return ei=function(){return e},e}function ea(){let e=(0,l._)(["Why are you pausing your plan?"]);return ea=function(){return e},e}function eo(){let e=(0,l._)(["Maybe Later"]);return eo=function(){return e},e}function el(){let e=(0,l._)(["Pause for "," month"]);return el=function(){return e},e}let es=(0,g.f)(()=>{let e=(0,b.dd)(),t=(0,y.NT)(),[n,r]=(0,T.useState)("");return(0,s.tZ)(en.u,{modal:e,classNames:{body:"bg-#0C0E12",content:"bg-#0C0E12 b-1px b-solid b-#262A32",header:"bg-#0C0E12!"},size:560,closeButtonProps:{className:"[&>svg]:size-6! hover:bg-transparent top-3 right-3"},children:(0,s.BX)("div",{className:"px-6",children:[(0,s.tZ)("div",{className:"text-6 font-600 c-white",children:t(er())}),(0,s.tZ)("div",{className:"text-4 c-#B6BCC2 pt-5 pb-4 lh-125%",children:t("pause-plan-description")}),(0,s.tZ)("div",{className:"text-4 font-600 c-white",children:t(ei())}),(0,s.tZ)(I.g,{className:"pt-2.5",placeholder:t(ea()),value:n,onChange:e=>r(e.target.value),classNames:{input:"rd-3 bg-#07080B b-1px b-solid b-#373B43"},autosize:!0,minRows:5,maxRows:10}),(0,s.BX)("div",{className:"flex-center-y justify-end gap-2.5 pb-4 pt-6",children:[(0,s.tZ)(_.Y,{color:"#262A32",className:"h-11.5! text-4 font-500",onClick:()=>{e.hide()},children:t(eo())}),(0,s.tZ)(_.Y,{className:"h-11.5! c-black text-4 font-500",color:"white",style:{"--button-hover":"white","--button-hover-color":"black"},disabled:!n,onClick:async()=>{await P.vK$.request({pauseReason:n}),await M.userStore.updateUserInfo(),(0,D.s)(t("plan-paused-successfully")),e.hide()},children:t(el(),1)})]})]})})});(i=o||(o={})).TooQuickly="TOO_QUICKLY",i.ResultsNotSatisfied="RESULTS_NOT_SATISFIED",i.SwitchPlan="SWITCH_PLAN",i.ConcernedAboutRenewal="CONCERNED_ABOUT_RENEWAL";let ec=(0,T.createContext)({}),eu=()=>(0,T.useContext)(ec),ed=e=>{let{cancelText:t,confirmText:n,cancelButtonProps:r,confirmButtonProps:i,className:a,onCancel:o,onConfirm:l,isCancelPlan:c,cancelEventReport:u={}}=e||{},{modal:p,reason:m}=eu();return(0,s.BX)("div",{className:(0,d.cn)("flex-center-y justify-end gap-2.5 pb-4",a),children:[(0,s.tZ)(_.Y,{color:"#262A32",className:"h-11.5! text-4 font-500",onClick:()=>{o?o():(null==p||p.hide(),c&&S.show({onConfirm:()=>{(0,F.jW)("cancellation_confirm_clicked_a",{reason:m,...u})}}))},...r,children:t}),(0,s.tZ)(_.Y,{className:"h-11.5! c-black text-4 font-500",color:"white",style:{"--button-hover":"white","--button-hover-color":"black"},onClick:l,...i,children:n})]})};function ep(){let e=(0,l._)(["Credits run out too quickly for the price."]);return ep=function(){return e},e}function em(){let e=(0,l._)(["The results didn't meet my expectations."]);return em=function(){return e},e}function ef(){let e=(0,l._)(["I don’t use the plan enough to justify the cost."]);return ef=function(){return e},e}function eh(){let e=(0,l._)(["I’m concerned about automatic renew
1al or charges."]);return eh=function(){return e},e}function ev(){let e=(0,l._)(["We're sorry to see you go"]);return ev=function(){return e},e}function eg(){let e=(0,l._)(["Would you tell us why?"]);return eg=function(){return e},e}function eb(){let e=(0,l._)(["I changed my mind"]);return eb=function(){return e},e}function ex(){let e=(0,l._)(["Continue"]);return ex=function(){return e},e}let ey=()=>{let e=(0,y.NT)(),[t,n]=(0,T.useState)(),{modal:r,setReason:i}=eu(),a=[{label:e(ep()),value:o.TooQuickly},{label:e(em()),value:o.ResultsNotSatisfied},{label:e(ef()),value:o.SwitchPlan},{label:e(eh()),value:o.ConcernedAboutRenewal}];return(0,s.BX)("div",{className:"px-6",children:[(0,s.BX)("div",{children:[(0,s.tZ)("div",{className:"text-6 font-600 <sm:text-5",children:e(ev())}),(0,s.tZ)("div",{className:"text-4.5 <sm:text-4 <sm:pt-2",children:e(eg())})]}),(0,s.tZ)(Z.Y.Group,{value:t,onChange:e=>n(e),className:"pt-10",children:a.map(e=>(0,s.tZ)(Z.Y,{value:e.value,label:e.label,className:"mb-4",icon:E.n,classNames:{radio:"bg-transparent b-2px b-#6C7174 checked:bg-white checked:b-white",label:"text-4 c-#B6BCC2",icon:"c-#0C0E12"},styles:{icon:{"--radio-icon-size":"10px"}}},e.value))}),(0,s.tZ)(ed,{className:"mt-8",cancelText:e(eb()),confirmText:e(ex()),confirmButtonProps:{disabled:!t},onConfirm:()=>{var e;let n=[m.k9.Lite_5,m.k9.Lite_7,m.k9.Standard].includes(null===(e=M.userStore.userInfo.plan)||void 0===e?void 0:e.type);t===o.SwitchPlan&&n?(null==r||r.hide(),S.show({onConfirm:()=>{(0,F.jW)("cancellation_confirm_clicked_a",{reason:o.SwitchPlan,isLite:!0})}})):i(t)}})]})};var e_=n(74850),ew=n(97891);function eC(){let e=(0,l._)(["A special offer for you"]);return eC=function(){return e},e}function eA(){let e=(0,l._)(["We understand your concerns about credit usage. To help you get more value from our service, we've prepared a special offer just for you:"]);return eA=function(){return e},e}function eN(){let e=(0,l._)(["Continue your subscription for unlimited creativity!"]);return eN=function(){return e},e}function eS(){let e=(0,l._)(["Cancel subscription"]);return eS=function(){return e},e}function ek(){let e=(0,l._)(["Accept extra credits"]);return ek=function(){return e},e}function eZ(){let e=(0,l._)(["Great choice! You'll get "," bonus credits monthly for your next subscription"]);return eZ=function(){return e},e}function eE(){let e=(0,l._)(["Great choice! You'll get "," bonus credits monthly for "," months."]);return eE=function(){return e},e}function eI(){let e=(0,l._)(["Help us improve"]);return eI=function(){return e},e}function eP(){let e=(0,l._)(["Describe the problem..."]);return eP=function(){return e},e}function eM(){let e=(0,l._)(["Cancel subscription"]);return eM=function(){return e},e}function eB(){let e=(0,l._)(["Send & Get Credits"]);return eB=function(){return e},e}function eT(){let e=(0,l._)(["Thanks for your feedback — credits added."]);return eT=function(){return e},e}function eF(){let e=(0,l._)(["Switch to a better fit"]);return eF=function(){return e},e}function eD(){let e=(0,l._)(["If current plan feels like more than you need right now, you don’t have to cancel.You can switch to a more suitable plan and continue creating at a lower cost."]);return eD=function(){return e},e}function eq(){let e=(0,l._)(["Current Plan"]);return eq=function(){return e},e}function ez(){let e=(0,l._)(["New Plan"]);return ez=function(){return e},e}function eR(){let e=(0,l._)(["\n                          background: var(\n                            --Theme-Gradient-Secondary,\n                            linear-gradient(90deg, #00c8fb 0%, #0177fe 100%)\n                          );\n                          background-clip: text;\n                          -webkit-background-clip: text;\n                          -webkit-text-fill-color: transparent;\n                        "]);return eR=function(){return e},e}function eL(){let e=(0,l._)(["Plan changes will take effect after your current billing period ends."]);return eL=function(){return e},e}function eO(){let e=(0,l._)(["Cancel subscription"]);return eO=function(){return e},e}function eW(){let e=(0,l._)(["Switch Plan"]);return eW=function(){return e},e}function eY(){let e=(0,l._)(["Plan switched. Changes will take effect in the next billing cycle."]);return eY=function(){return e},e}function eG(){let e=(0,l._)(["Get renewal reminders"]);return eG=function(){return e},e}function eX(){let e=(0,l._)(["Cancel subscription"]);return eX=function(){return e},e}function eV(){let e=(0,l._)(["Enable Reminders"]);return eV=function(){return e},e}function ej(){let e=(0,l._)(["Renewal reminders enabled."]);return ej=function(){return e},e}let eU=e=>{let{title:t,description:n,children:r,className:i}=e||{};return(0,s.BX)("div",{className:(0,d.cn)("px-6",i),children:[(0,s.tZ)("div",{className:"text-6 font-600 c-white",children:t}),(0,s.tZ)("div",{className:"text-4 c-#B6BCC2 pt-4",children:n}),r]})},eH=async e=>{let{option:t,feedback:n,downgradePlanName:r,message:i}=e;await P.VbO.request({option:t,feedback:n,downgradePlanName:r}).catch(e=>{let t=e_.Z(e,"response.data.message");throw t&&D.s.error(t),e}),await M.userStore.updateUserInfo(),(0,D.s)(i)},e$=()=>{var e,t;let n=(0,y.NT)(),{modal:r}=eu(),{userInfo:i}=M.userStore.useSnapshot(),a=(null===(e=i.plan)||void 0===e?void 0:e.interval)===m.ZF.Yearly,o=(0,T.useMemo)(()=>{var e;return({[m.k9.Standard]:40,[m.k9.Lite_5]:40,[m.k9.Lite_7]:40,[m.k9.Pro]:120,[m.k9.Pro1]:240,[m.k9.Pro2]:340,[m.k9.Premium]:600,[m.k9.Premium2]:1200,[m.k9.Premium3]:1800})[null==i?void 0:null===(e=i.plan)||void 0===e?void 0:e.type]||0},[null==i?void 0:null===(t=i.plan)||void 0===t?void 0:t.type]);return(0,s.BX)(eU,{title:n(eC()),description:n(eA()),children:[(0,s.tZ)("div",{className:"rd-3 pa-4 bg-black c-#B6BCC2 text-4 my-3",children:a?n.rich("keep-your-subscription-year",{credits:o,span:e=>(0,s.tZ)("span",{className:"font-600 c-primary",children:e})}):n.rich("keep-your-subscription-month",{credits:o,months:3,span:e=>(0,s.tZ)("span",{className:"font-600 c-primary",children:e})})}),(0,s.tZ)("div",{className:"text-4 c-#B6BCC2",children:n(eN())}),(0,s.tZ)(ed,{className:"pt-11",cancelText:n(eS()),isCancelPlan:!0,confirmText:n(ek()),onConfirm:async()=>{await eH({option:"MAINTAIN_CURRENT",message:a?n(eZ(),o):n(eE(),o,3)}),null==r||r.hide()}})]})},eQ=()=>{var e;let t=(0,y.NT)(),{modal:n}=eu(),[r,i]=(0,T.useState)(""),{userInfo:a}=M.userStore.useSnapshot(),o=e_.Z(p.$.planGroup,[null===(e=a.plan)||void 0===e?void 0:e.type,"monthlyCredit"],0);return(0,s.BX)(eU,{title:t(eI()),description:t.rich("help-improve-content",{credits:Math.floor(.3*o),span:e=>(0,s.tZ)("span",{className:"font-600 c-primary",children:e})}),children:[(0,s.tZ)(I.g,{className:"pt-4",classNames:{input:"rd-3 bg-#07080B b-1px b-solid b-#373B43"},placeholder:t(eP()),autosize:!0,minRows:5,maxRows:10,value:r,onChange:e=>i(e.target.value)}
1),(0,s.tZ)(ed,{className:"pt-5",cancelText:t(eM()),confirmText:t(eB()),isCancelPlan:!0,cancelEventReport:{feedback:r},onConfirm:async()=>{await eH({option:"CREDITS_COMPENSATION",feedback:r,message:t(eT())}),null==n||n.hide()}})]})},eK=()=>{var e,t,n,r,i,a,o;let l=(0,y.NT)(),{userInfo:c}=M.userStore.useSnapshot(),{modal:u}=eu(),f=(0,m.Sm)(null===(e=c.plan)||void 0===e?void 0:e.type)?m.k9.Pro:m.k9.Standard;return(0,s.BX)(eU,{title:l(eF()),description:l(eD()),children:[(0,s.BX)("div",{className:"rd-3 bg-black pa-5 relative flex flex-col gap-8 mt-4",children:[(0,s.tZ)("div",{className:"size-full absolute top-0 left-0 flex-center px-5",children:(0,s.tZ)("div",{className:"h-1px bg-#161B20 w-full"})}),[{label:l(eq()),plan:ts(null===(t=c.plan)||void 0===t?void 0:t.type,null===(n=c.plan)||void 0===n?void 0:n.interval),value:e_.Z(p.$.planGroup,[null===(r=c.plan)||void 0===r?void 0:r.type,null===(i=c.plan)||void 0===i?void 0:i.interval],0)},{label:l(ez()),plan:ts(f,null===(a=c.plan)||void 0===a?void 0:a.interval),value:e_.Z(p.$.planGroup,[f,null===(o=c.plan)||void 0===o?void 0:o.interval],0)}].map((e,t)=>{let n=1===t;return(0,s.BX)("div",{className:"flex-center-y justify-between",children:[(0,s.BX)("div",{className:"c-#70757C",children:[(0,s.tZ)("div",{className:"text-3.5 font-600",children:e.label}),(0,s.tZ)("div",{className:"text-4.5 font-700",css:n?(0,ew.iv)(eR()):void 0,children:e.plan})]}),(0,s.BX)("div",{className:(0,d.cn)("text-3.5",n?"c-#fff":"c-#70757C"),children:[(0,s.tZ)("span",{className:"text-4.5 font-600",children:"$".concat(e.value)})," ","USD/mo"]})]},e.label)})]}),(0,s.tZ)("div",{className:"pt-4 text-4 c-#B6BCC2",children:l(eL())}),(0,s.tZ)(ed,{className:"pt-5",cancelText:l(eO()),confirmText:l(eW()),isCancelPlan:!0,onConfirm:async()=>{await eH({option:"SUBSCRIPTION_DOWNGRADE",downgradePlanName:f,message:l(eY())}),null==u||u.hide()}})]})},eJ=()=>{let e=(0,y.NT)(),{modal:t}=eu();return(0,s.tZ)(eU,{title:e(eG()),description:e.rich("remind-renewal-content",{day:3,span:e=>(0,s.tZ)("span",{className:"font-500 c-primary",children:e})}),children:(0,s.tZ)(ed,{className:"pt-8",cancelText:e(eX()),confirmText:e(eV()),isCancelPlan:!0,onConfirm:async()=>{await eH({option:"PAYMENT_REMINDER",message:e(ej())}),null==t||t.hide()}})})},e0=(0,g.f)(()=>{let e=(0,b.dd)(),[t,n]=(0,T.useState)();return(0,T.useEffect)(()=>{e.visible&&(n(void 0),(0,F.jW)("retention_exposure_a"))},[e.visible]),(0,s.tZ)(en.u,{modal:e,classNames:{body:"bg-#0C0E12",content:"bg-#0C0E12 b-1px b-solid b-#262A32",header:"bg-#0C0E12!"},size:560,closeButtonProps:{className:"[&>svg]:size-6! hover:bg-transparent top-3 right-3"},children:(0,s.tZ)(ec.Provider,{value:{reason:t,setReason:n,modal:e},children:(()=>{if(!t)return(0,s.tZ)(ey,{});switch(t){case o.TooQuickly:return(0,s.tZ)(e$,{});case o.ResultsNotSatisfied:return(0,s.tZ)(eQ,{});case o.SwitchPlan:return(0,s.tZ)(eK,{});case o.ConcernedAboutRenewal:return(0,s.tZ)(eJ,{})}})()})})});var e1=n(10562);function e2(){let e=(0,l._)(["Subscription already exists on another device. Cannot modify from here currently."]);return e2=function(){return e},e}function e5(){let e=(0,l._)(["Upgrade Confirm"]);return e5=function(){return e},e}function e3(){let e=(0,l._)(["Free Trial"]);return e3=function(){return e},e}function e4(){let e=(0,l._)(["Cancel"]);return e4=function(){return e},e}function e6(){let e=(0,l._)(["Confirm"]);return e6=function(){return e},e}function e7(){let e=(0,l._)(["Upgrade Plan"]);return e7=function(){return e},e}function e8(){let e=(0,l._)(["Upgrade to Yearly Plan"]);return e8=function(){return e},e}function e9(){let e=(0,l._)(["\n                    background: linear-gradient(\n                      180deg,\n                      #a9d8ff 0%,\n                      #2d7bbc 100%\n                    );\n                    background-clip: text;\n                    -webkit-background-clip: text;\n                    -webkit-text-fill-color: transparent;\n                  "]);return e9=function(){return e},e}function te(){let e=(0,l._)(["off"]);return te=function(){return e},e}function tt(){let e=(0,l._)(["Pause Plan"]);return tt=function(){return e},e}function tn(){let e=(0,l._)(["You're Getting Bonus Credits!"]);return tn=function(){return e},e}function tr(){let e=(0,l._)(["Cancel now and you'll lose your active bonus. Really cancel your subscription?"]);return tr=function(){return e},e}function ti(){let e=(0,l._)(["Keep My Subscription"]);return ti=function(){return e},e}function ta(){let e=(0,l._)(["Yes, Cancel"]);return ta=function(){return e},e}function to(){let e=(0,l._)(["Continuous subscription canceled"]);return to=function(){return e},e}function tl(){let e=(0,l._)(["Cancel Subscription"]);return tl=function(){return e},e}let ts=(e,t)=>{let n=(0,d.Ls)(e);return n=(0,d.tL)(n),"".concat(n).concat(t&&"-".concat((0,d.Ls)(t)))},tc=e=>{var t,n;let{className:r}=e||{},i=(0,y.NT)(),{userInfo:a}=M.userStore.useSnapshot(),{currencyInfo:o}=p.$.useSnapshot(),{type:l,interval:g,quotaOfferUsed:b,autoRenew:x,cancelRetentionStatus:w,pauseStatus:C}=(null==a?void 0:a.plan)||{},A=g===m.ZF.Yearly,{isMobile:N}=(0,B.k)(),{isCancelSubscriptionTest:k,isPausedSubscribeTest:Z,isPricingDailyPriceDisplay:E}=(0,e1.X)(),I=(null==C?void 0:C.isPaused)?null==C?void 0:null===(t=C.pauseInfo)||void 0===t?void 0:t.subscription_auto_renew:x;return(null==a?void 0:null===(n=a.plan)||void 0===n?void 0:n.isApp)?(0,s.tZ)(f.u,{label:i(e2()),withArrow:!0,children:(0,s.tZ)("span",{className:"underline c-#B3B5B7 cursor-not-allowed <sm:ml-auto <sm:text-3.5",children:i("manage")})}):(0,s.BX)(h.v,{position:N?"bottom-end":"right-start",closeOnItemClick:!0,children:[(0,s.tZ)(h.v.Target,{children:(0,s.tZ)("span",{className:(0,d.cn)("underline c-#B3B5B7 cursor-pointer <sm:ml-auto <sm:text-3.5",r),onClick:()=>{(0,F.jW)("button_click",{button_name:"Manage"})},children:i("manage")})}),(0,s.BX)(h.v.Dropdown,{className:"pa-4 text-3.5 bg-#232425 b-none rd-2.5",children:[(0,s.tZ)(h.v.Item,{className:"pa-0 b-b-1px b-b-solid b-b-#3B4248 pb-3 rd-none bg-transparent cursor-auto",onClick:()=>
1{if((0,F.jW)("button_click",{button_name:"Upgrade Plan"}),A)u.u.show({hideTitle:!0});else{var e;let t=ts(l,g),n=ts(l,m.ZF.Yearly),r=p.$.planGroup[l][g],u=p.$.planGroup[l][m.ZF.Yearly];v.qk.open({size:460,classNames:{body:"pb-0"},children:(0,s.BX)("div",{className:"sm:px-6 pb-8 text-center",children:[(0,s.tZ)("div",{className:"text-6 font-600 <sm:text-4.5 <sm:pb-5 lh-100%",children:i(e5())}),(0,s.tZ)("div",{children:i("upgrade-confirm-desc",{from:(null==a?void 0:null===(e=a.plan)||void 0===e?void 0:e.isFreeTrial)?i(e3()):"".concat(t,"(").concat((0,c.C)(r,null!=g?g:m.ZF.Monthly,E,{daily:i("price-period-daily-short"),monthly:i("price-period-monthly-short")},o),")"),to:"".concat(n,"(").concat((0,c.C)(u,m.ZF.Yearly,E,{daily:i("price-period-daily-short"),monthly:i("price-period-monthly-short")},o),")")})}),(0,s.tZ)("div",{className:"flex-center gap-3 pt-10",children:[{label:i(e4()),onClick:()=>{v.qk.closeAll()}},{label:i(e6()),onClick:async()=>{await p.$.handleUpgrade(l,m.ZF.Yearly,{isRedirect:!1}),v.qk.closeAll()}}].map((e,t)=>(0,s.tZ)(_.Y,{fullWidth:!0,className:"flex-1 h-12",variant:0===t?"outline":"filled",onClick:e.onClick,children:e.label},e.label))})]})})}},children:(0,s.BX)("div",{className:"cursor-pointer c-white flex-center-y gap-1.25",children:[(0,s.tZ)("span",{children:A?i(e7()):i(e8())}),(0,s.tZ)("div",{className:"rd-1 bg-[linear-gradient(180deg,#A9D8FF_0%,#2D7BBC_100%)] pa-1px",hidden:A,children:(0,s.tZ)("div",{className:"rd-0.75 text-3 px-1.5 bg-#232425",children:(0,s.BX)("div",{className:"text-3",css:(0,ew.iv)(e9()),children:["29% ",i(te())]})})})]})}),Z&&!(null==C?void 0:C.isPaused)&&!(null==C?void 0:C.isScheduled)&&I&&(0,s.tZ)(h.v.Item,{className:"pa-0 b-b-1px b-b-solid b-b-#3B4248 py-3 rd-none bg-transparent c-white",onClick:()=>{(0,F.jW)("pause_clicked"),es.show()},children:(0,s.tZ)("span",{children:i(tt())})}),(0,s.tZ)(h.v.Item,{className:(0,d.cn)("mt-3 p-0 bg-transparent c-white",I?"cursor-pointer":"cursor-not-allowed"),onClick:()=>{(0,F.jW)("button_click",{button_name:"Cancel Subscribe"}),I&&(b||(null==w?void 0:w.hasRetention)||(null==C?void 0:C.isPaused)||(null==C?void 0:C.isScheduled)?k&&(null==w?void 0:w.option)!=="MAINTAIN_CURRENT"||(null==C?void 0:C.isPaused)?S.show():v.qk.open({size:538,children:(0,s.BX)("div",{className:"sm:px-16 text-center",children:[(0,s.BX)("div",{className:"text-6 font-600 <sm:text-4.5",children:["⚠️ ",i(tn())]}),(0,s.tZ)("div",{className:"text-4.5 pt-6 pb-10",children:i(tr())}),(0,s.tZ)(_.Y,{fullWidth:!0,className:"h-12",onClick:()=>{v.qk.closeAll()},children:i(ti())}),(0,s.tZ)(_.Y,{fullWidth:!0,className:"h-12 mt-3.5 mb-5",variant:"outline",onClick:()=>{v.qk.closeAll(),S.show()},children:i(ta())})]})}):k?e0.show():et.show())},children:(0,s.tZ)(f.u,{label:i(to()),disabled:I,withArrow:!0,children:(0,s.tZ)("span",{children:i(tl())})})})]})]})}},71662:function(e,t,n){"use strict";n.d(t,{u:function(){return T}});var r=n(90571),i=n(59197),a=n(10394),o=n(21962),l=n(87433),s=n(44308),c=n(85619),u=n(66925),d=n(49849);let p=e=>{let{viewportWidth:t,viewportHeight:n}=e,r=t?Math.max(1,t-32):1200,i=n?Math.max(1,n-32):984;if(r>=1200){let e=Math.min(1380,r),t=Math.min(984,i);return{modalWidth:e,modalHeight:t,scale:1,canvasWidth:e,designContentHeight:t}}let a=r/1200,o=Math.min(984*a,i);return{modalWidth:1200*a,modalHeight:o,scale:a,canvasWidth:1200,designContentHeight:o/a}};var m=n(8876),f=n(88320),h=n(27110),v=n(77578),g=n(48059),b=n(10562),x=n(63825);function y(){let e=(0,i._)(["Remaining points are Top-Up Credits and can only be used after upgrading your plan."]);return y=function(){return e},e}function _(){let e=(0,i._)(["You don't have enough credits to generate this video"]);return _=function(){return e},e}function w(){let e=(0,i._)(["Upgrade to membership for watermark-free downloads"]);return w=function(){return e},e}let C=e=>{var t,n;let{title:i,scene:o,pricingEntrySource:l,offerEndsAt:s}=e,c=(0,g.NT)(),u="watermark"===o,{isFree:d,userInfo:p}=r.userStore.useSnapshot(),{showImagePricingModalD:m}=f.$.useSnapshot(),{offerEndsAt:v}=h.XS.useSnapshot(),x=(0,g.jD)(),{isPricingUnlimitedExp:C}=(0,b.X)(),A=x.includes("/agent"),N=l||(A?"/agent":"paywall"),S=null!==(n=null!=s?s:v)&&void 0!==n?n:void 0,k=C&&A,Z="number"==typeof p.usedCount?p.quotaCount-p.usedCount:0,E=m?(0,a.tZ)("div",{className:"<sm:text-xl <sm:font-semibold",children:c.rich("add-credits-to-keep",{model:x.includes("model/seedream")?"Seedream 4.0":"Nano Banana",b:e=>(0,a.tZ)("span",{className:"block sm:inline-block",children:e}),span:e=>(0,a.tZ)("span",{style:{background:"linear-gradient(90deg, #89CBFF 0%, #4E84FF 100%)",WebkitBackgroun
1dClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"},children:e})})}):c(d&&(null==p?void 0:null===(t=p.pointsDetail)||void 0===t?void 0:t.once_pack_quota_count)?y():_()),I="onboarding"===N&&i?i:k?c("pricing-agent-paywall-title"):i||E;return{displayTitle:u?c(w()):I,enablePricingUnlimitedPackaging:A,modalOfferEndsAt:S,modalPricingEntrySource:N,showCredits:Z,showImageCreditsInfo:m&&!u,showPricingUnlimitedPackaging:k}},A=e=>{let{showCredits:t,size:n="sm",className:r}=e,i=(0,g.NT)(),o="lg"===n;return(0,a.BX)("div",{className:(0,x.cn)("flex-center",o?"text-[24px]":"mt-2 text-sm",r),children:[(0,a.BX)("div",{className:"flex-center gap-x-2",children:[(0,a.BX)("span",{className:"text-[#6E7981]",children:[i("required"),":"]}),(0,a.tZ)("span",{className:"font-semibold",children:v.bt.credits})]}),(0,a.tZ)("div",{className:(0,x.cn)("mx-4 w-px bg-[#6E7981]",o?"h-6":"h-4")}),(0,a.BX)("div",{className:"flex-center gap-x-2",children:[(0,a.BX)("span",{className:"text-[#6E7981]",children:[i("avaliable"),":"]}),(0,a.tZ)("span",{className:"font-semibold",children:t})]})]})};var N=n(95964),S=n(14930);let k=e=>{let{visible:t,reportData:n}=e;return(0,N.useEffect)(()=>{t?(f.$.isModal=!0,(0,S.jW)("pricing_modal_open"),n&&(0,S.jW)("popup_exposure",{popup_name:"会员订阅弹窗",...n},{forceReport:!0})):f.$.subscriptionSuccessReportData=null},[t,n]),(0,N.useEffect)(()=>()=>{f.$.isModal=!1},[]),{handleExitTransitionEnd:()=>{f.$.isModal=!1}}};var Z=n(4049);function E(){let e=(0,i._)(["Close"]);return E=function(){return e},e}function I(){let e=(0,i._)(["Close"]);return I=function(){return e},e}let P=(0,o.f)(e=>{let{title:t,reportData:n,defaultMode:r,scene:i,pricingEntrySource:f,offerEndsAt:h,onDismiss:v,onCheckoutStart:b,onboardingTracking:x}=e||{},y=(0,s.dd)(),_=()=>{y.hide(),null==v||v()},w=(0,g.NT)(),{isMobile:S}=(0,Z.k)(),P=(0,N.useRef)(null),M=(0,N.useRef)(null),{buyCreditsWithoutPlan:B}=(0,l.F)(),{displayTitle:T,enablePricingUnlimitedPackaging:F,modalPricingEntrySource:D,modalOfferEndsAt:q,showCredits:z,showImageCreditsInfo:R}=C({title:t,scene:i,pricingEntrySource:f,offerEndsAt:h}),{handleExitTransitionEnd:L}=k({visible:y.visible,reportData:n}),O=(0,a.BX)(a.HY,{children:[(0,a.tZ)(m.n,{onCheckoutStart:b,onboardingTracking:x,onCheckoutCancel:v?_:void 0,className:"mb-0! w-full",displayVariant:"compact",defaultMode:r,enablePricingUnlimitedPackaging:F,pricingEntrySource:D,offerEndsAt:q,engagementSurface:"modal",reportData:n,hideTabLabel:!B,onItemClick:()=>{y.hide()},onCreditItemClick:()=>{y.hide()}}),(0,a.tZ)("p",{className:"mx-auto mb-0 mt-4 max-w-[800px] px-4 pb-4 text-center text-base text-[#888A8D]",children:w("note-it-takes-10-credits")})]}),W=(0,N.useCallback)(()=>{let e=P.current,t=M.current;if(!e||!t)return;let n=p({viewportWidth:window.innerWidth,viewportHeight:window.innerHeight});e.style.width="".concat(n.modalWidth,"px"),e.style.height="".concat(n.modalHeight,"px"),t.style.width="".concat(n.canvasWidth,"px"),t.style.height="".concat(n.designContentHeight,"px"),t.style.transform=1===n.scale?"":"scale(".concat(n.scale,")")},[]),Y=(0,N.useCallback)(e=>{P.current=e,W()},[W]),G=(0,N.useCallback)(e=>{M.current=e,W()},[W]);return((0,N.useLayoutEffect)(()=>{if(S)return;W();let e=0,t=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(W)};return window.addEventListener("resize",t,{passive:!0}),()=>{window.removeEventListener("resize",t),cancelAnimationFrame(e)}},[S,W,y.visible]),S)?(0,a.BX)(c.d,{...o.f.drawerProps(y),onClose:_,size:"95%",position:"bottom",withCloseButton:!1,keepMounted:!1,onExitTransitionEnd:L,classNames:{header:"min-h-0 bg-[#32373D] p-0",body:"h-full overflow-y-auto bg-[#12121380] p-0",content:"rounded-t-[20px] bg-[#32373D]"},children:[(0,a.BX)("header",{className:"relative flex min-h-[64px] items-center justify-center bg-[rgba(18,18,19,0.5)] px-12 py-4 text-center text-base font-semibold text-white",children:[(0,a.BX)("div",{children:[T,R&&(0,a.tZ)(A,{showCredits:z,size:"sm"})]}),(0,a.tZ)("button",{type:"button","aria-label":w(E()),className:"absolute right-4 top-4 flex size-8 items-center justify-center border-0 bg-transparent p-0 text-[#B3B5B7]",onClick:_,children:(0,a.tZ)(d.Z,{size:20})})]}),O]}):(0,a.BX)(u.u,{...o.f.modalProps(y),onClose:_,closeOnEscape:!1,closeOnClickOutside:!1,withCloseButton:!1,size:"auto",padding:0,keepMounted:!1,onExitTransitionEnd:L,classNames:{inner:"p-4",content:"relative overflow-hidden rounded-[20px] bg-[#32373D]",body:"p-0"},styles:{content:{maxWidth:"none",width:"fit-content",flex:"0 0 auto",minWidth:0}},children:[(0,a.tZ)("button",{type:"button","aria-label":w(I()),className:"absolute right-4 top-4 z-20 flex size-8 items-center justify-center border-0 bg-transparent p-0 text-[#B3B5B7] transition-opacity hover:opacity-80",onClick:_,children:(0,a.tZ)(d.Z,{size:16})}),(0,a.tZ)("div",{ref:Y,className:"overflow-hidden",children:(0,a.BX)("div",{ref:G,className:"@container flex min-h-0 flex-col bg-[#32373D]",style:{transformOrigin:"top left"},children:[(0,a.tZ)("header",{className:"relative flex min-h-[68px] shrink-0 items-center justify-center bg-[rgba(18,18,19,0.5)] px-16 py-4 text-center text-2xl font-semibold leading-none text-white",children:(0,a.BX)("div",{children:[T,R&&(0,a.tZ)(A,{showCredits:z,size:"sm"})]})}),(0,a.tZ)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:O})]})})]})}),M=(0,o.f)(e=>{let{title:t,reportData:n,defaultMode:i,hideTitle:p,scene:f,agentFullScreen:h,pricingEntrySource:v,offerEndsAt:g,onDismiss:b,onCheckoutStart:y,onboardingTracking:_}=e||{},w=(0,s.dd)(),S=()=>{w.hide(),null==b||b()},{isFree:E,isLogin:I}=r.userStore.useSnapshot(),{isMobile:P}=(0,Z.k)(),{displayTitle:M,modalPricingEntrySource:B,modalOfferEndsAt:T,showCredits:F,showImageCreditsInfo:D,showPricingUnlimitedPackaging:q,enablePricingUnlimitedPackaging:z}=C({title:t,scene:f,pricingEntrySource:v,offerEndsAt:g}),{handleExitTransitionEnd:R}=k({visible:w.visible,reportData:n}),{buyCreditsWithoutPlan:L}=(0,l.F)(),O=(0,N.useMemo)(()=>!I||E,[I,E]);return P?(0,a.tZ)(c.d,{...o.f.drawerProps(w),onClose:S,size:"95%",position:"bottom",classNames:{header:"min-h-auto pb-0 pt-3 bg-#32373D rd-t-5",body:"p-0 h-full",content:"bg-#32373D rd-t-5"},withCloseButton:!1,keepMounted:!1,onExitTransitionEnd:R,children:(0,a.BX)("div",{className:"relative flex flex-col h-full",children:[(0,a.tZ)("div",{className:"absolute top-4 right-4 z-10 flex-center",onClick:S,children:(0,a.tZ)(d.Z,{size:20})}),(0,a.BX)("div",{className:(0,x.cn)("px-7 text-center text-base font-medium bg-[#32373D]",p?O?"h-12":"h-10 <sm:h-8":"pt-8 pb-5",D&&"text-sm px-3"),children:[(0,a.tZ)("div",{children:p?null:M}),D&&(0,a.tZ)(A,{showCredits:F,size:"sm"})]}),(0,a.tZ)("div",{className:"flex-1 overflow-hidden bg-[#12121380]",children:(0,a.tZ)(m.n,{onCheckoutStart:y,onboardingTracking:_,onCheckoutCancel:b?S:void 0,className:"mt-0 mb-0 h-full",onItemClick:()=>{w.hide()},onCreditItemClick:()=>{w.hide()},defaultMode:i,keepMounted:"credits"!==i,enablePricingUnlimitedPackaging:z,pricingEntrySource:B,offerEndsAt:T,engagementSurface:"modal",reportData:n,hideTabLabel:!L})})]})}):(0,a.BX)(u.u,{...o.f.modalProps(w),onClose:S,closeOnEscape:!1,closeOnClickOutside:!1,fullScreen:h,padding:h?0:void 0,size:h?"100%":"auto",withCloseButton:!1,classNames:{inner:h?"p-0":void 0,title:"w-full",body:(0,x.cn)("p-0",!p&&"bg-[#32373D]",h&&"w-screen h-screen"),content:(0,x.cn)("overflow-hidden",h&&"fixed! inset-0! m-0! w-screen! h-screen! max-w-none! rounded-none!")},styles:h?{inner:{padding:0},content:{width:"100vw",height:"100dvh",maxWidth:"none",borderRadius:0},body:{width:"100vw",height:"100dvh"}}:void 0,keepMounted:!1,onExitTransitionEnd:R,children:[(0,a.tZ)("div",{className:(0,x.cn)("z-50 text-[#B3B5B7] curs
1or-pointer transition-opacity hover:opacity-80",h?"fixed right-6 top-6":(0,x.cn)("absolute right-4",p?"top-3":"top-4")),onClick:S,children:(0,a.tZ)(d.Z,{size:16})}),(0,a.BX)("div",{className:(0,x.cn)("relative flex flex-col",h?"h-screen":"h-[80vh]"),children:[p?null:(0,a.BX)("div",{className:(0,x.cn)("min-h-17 bg-[#12121380]!",q?"py-5":"pt-8 pb-[22px]"),children:[(0,a.tZ)("div",{className:(0,x.cn)("text-center font-semibold",q?"text-[28px] leading-normal <sm:text-xl":"text-2xl <sm:text-sm"),children:M}),D&&(0,a.tZ)(A,{showCredits:F,size:"lg"})]}),(0,a.tZ)("div",{className:(0,x.cn)("flex-1 overflow-y-auto"),children:(0,a.tZ)(m.n,{onCheckoutStart:y,onboardingTracking:_,onCheckoutCancel:b?S:void 0,className:(0,x.cn)("bg-none",h&&"h-full mb-0!"),onItemClick:()=>{w.hide()},onCreditItemClick:()=>{w.hide()},defaultMode:i,enablePricingUnlimitedPackaging:z,pricingEntrySource:B,offerEndsAt:T,engagementSurface:"modal",reportData:n,hideTabLabel:!L,classNames:p?{tabLabelWrapper:"[border-bottom:1px_solid_#6C7174] pl-15",tabsRoot:"h-[calc(100dvh-120px)]! pb-10 px-3"}:L?{tabLabelWrapper:(0,x.cn)("sm:!pl-12 sm:!pt-0",q&&"sm:!pt-0"),tabsRoot:h?"h-full!":void 0}:void 0})})]})]})});var B=n(29820);let T={show:async e=>{let{variant:t}=await (0,B.i7)(r.userStore.visitorId,{getVisitorId:()=>r.userStore.visitorId});return("b"===t?P:M).show(e)}}},72605:function(e,t,n){"use strict";n.d(t,{m:function(){return F},A:function(){return T}});var r,i,a,o,l,s,c,u,d=n(59197),p=n(10394),m=n(89516),f=n(87923),h=n(59359),v=n(21962),g=n(88320),b=n(84285),x=n(90571),y=n(58934),_=n(44308),w=n(66925),C=n(88864);function A(){return(A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var N=function(e){return C.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 70 45"},e),r||(r=C.createElement("g",{clipPath:"url(#debit-card_svg__a)"},C.createElement("path",{fill:"#4CDBC4",d:"M66.098 45H3.9c-.99 0-1.939-.397-2.64-1.105a3.8 3.8 0 0 1-1.099-2.669V3.677a3.8 3.8 0 0 1 1.1-2.67 3.72 3.72 0 0 1 2.64-1.104h62.196c.99 0 1.939.398 2.64 1.105a3.8 3.8 0 0 1 1.099 2.67v37.548a3.8 3.8 0 0 1-1.1 2.67A3.72 3.72 0 0 1 66.098 45"}),C.createElement("path",{fill:"#3A556A",d:"M.162 5.182h69.675v9.593H.162z"}),C.createElement("path",{fill:"#E1E6E9",d:"M31.354 30.67h16.164v2.82H31.354zm26.627 0h4.889v2.82h-4.89zm-7.676 0h4.889v2.82h-4.889z"}),C.createElement("path",{fill:"#FCD462",d:"M24.55 38.064H8.989a1.86 1.86 0 0 1-1.315-.559 1.9 1.9 0 0 1-.543-1.334v-8.23c0-.5.195-.979.543-1.333.348-.355.821-.556 1.315-.559h15.56c.494.003.967.204 1.315.559.348.354.544.834.544 1.334v8.23c0 .5-.196.979-.544 1.333-.348.355-.82.556-1.314.559"}))),i||(i=C.createElement("defs",null,C.createElement("clipPath",{id:"debit-card_svg__a"},C.createElement("path",{fill:"#fff",d:"M0 0h70v45H0z"})))))};function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var k=function(e){return C.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:124,height:33},e),a||(a=C.createElement("path",{fill:"#253B80",d:"M46.211 6.749h-6.839a.95.95 0 0 0-.939.802l-2.766 17.537a.57.57 0 0 0 .564.658h3.265a.95.95 0 0 0 .939-.803l.746-4.73a.95.95 0 0 1 .938-.803h2.165c4.505 0 7.105-2.18 7.784-6.5.306-1.89.013-3.375-.872-4.415-.972-1.142-2.696-1.746-4.985-1.746M47 13.154c-.374 2.454-2.249 2.454-4.062 2.454h-1.032l.724-4.583a.57.57 0 0 1 .563-.481h.473c1.235 0 2.4 0 3.002.704.359.42.469 1.044.332 1.906M66.654 13.075h-3.275a.57.57 0 0 0-.563.481l-.145.916-.229-.332c-.709-1.029-2.29-1.373-3.868-1.373-3.619 0-6.71 2.741-7.312 6.586-.313 1.918.132 3.752 1.22 5.031.998 1.176 2.426 1.666 4.125 1.666 2.916 0 4.533-1.875 4.533-1.875l-.146.91a.57.57 0 0 0 .562.66h2.95a.95.95 0 0 0 .939-.803l1.77-11.209a.568.568 0 0 0-.561-.658m-4.565 6.374c-.316 1.871-1.801 3.127-3.695 3.127-.951 0-1.711-.305-2.199-.883-.484-.574-.668-1.391-.514-2.301.295-1.855 1.805-3.152 3.67-3.152.93 0 1.686.309 2.184.892.499.589.697 1.411.554 2.317M84.096 13.075h-3.291a.95.95 0 0 0-.787.417l-4.539 6.686-1.924-6.425a.95.95 0 0 0-.912-.678h-3.234a.57.57 0 0 0-.541.754l3.625 10.638-3.408 4.811a.57.57 0 0 0 .465.9h3.287a.95.95 0 0 0 .781-.408l10.946-15.8a.57.57 0 0 0-.468-.895"})),o||(o=C.createElement("path",{fill:"#179BD7",d:"M94.992 6.749h-6.84a.95.95 0 0 0-.938.802l-2.766 17.537a.57.57 0 0 0 .562.658h3.51a.665.665 0 0 0 .656-.562l.785-4.971a.95.95 0 0 1 .938-.803h2.164c4.506 0 7.105-2.18 7.785-6.5.307-1.89.012-3.375-.873-4.415-.971-1.142-2.694-1.746-4.983-1.746m.789 6.405c-.373 2.454-2.248 2.454-4.062 2.454h-1.031l.725-4.583a.57.57 0 0 1 .562-.481h.473c1.234 0 2.4 0 3.002.704.359.42.468 1.044.331 1.906M115.434 13.075h-3.273a.57.57 0 0 0-.562.481l-.145.916-.23-.332c-.709-1.029-2.289-1.373-3.867-1.373-3.619 0-6.709 2.741-7.311 6.586-.312 1.918.131 3.752 1.219 5.031 1 1.176 2.426 1.666 4.125 1.666 2.916 0 4.533-1.875 4.533-1.875l-.146.91a.57.57 0 0 0 .564.66h2.949a.95.95 0 0 0 .938-.803l1.7
171-11.209a.57.57 0 0 0-.565-.658m-4.565 6.374c-.314 1.871-1.801 3.127-3.695 3.127-.949 0-1.711-.305-2.199-.883-.484-.574-.666-1.391-.514-2.301.297-1.855 1.805-3.152 3.67-3.152.93 0 1.686.309 2.184.892.501.589.699 1.411.554 2.317M119.295 7.23l-2.807 17.858a.57.57 0 0 0 .562.658h2.822c.469 0 .867-.34.939-.803l2.768-17.536a.57.57 0 0 0-.562-.659h-3.16a.57.57 0 0 0-.562.482"})),l||(l=C.createElement("path",{fill:"#253B80",d:"m7.266 29.154.523-3.322-1.165-.027H1.061L4.927 1.292a.316.316 0 0 1 .314-.268h9.38c3.114 0 5.263.648 6.385 1.927.526.6.861 1.227 1.023 1.917.17.724.173 1.589.007 2.644l-.012.077v.676l.526.298a3.7 3.7 0 0 1 1.065.812c.45.513.741 1.165.864 1.938.127.795.085 1.741-.123 2.812-.24 1.232-.628 2.305-1.152 3.183a6.55 6.55 0 0 1-1.825 2c-.696.494-1.523.869-2.458 1.109-.906.236-1.939.355-3.072.355h-.73c-.522 0-1.029.188-1.427.525a2.2 2.2 0 0 0-.744 1.328l-.055.299-.924 5.855-.042.215c-.011.068-.03.102-.058.125a.16.16 0 0 1-.096.035z"})),s||(s=C.createElement("path",{fill:"#179BD7",d:"M23.048 7.667q-.042.268-.096.55c-1.237 6.351-5.469 8.545-10.874 8.545H9.326c-.661 0-1.218.48-1.321 1.132L6.596 26.83l-.399 2.533a.704.704 0 0 0 .695.814h4.881c.578 0 1.069-.42 1.16-.99l.048-.248.919-5.832.059-.32c.09-.572.582-.992 1.16-.992h.73c4.729 0 8.431-1.92 9.513-7.476.452-2.321.218-4.259-.978-5.622a4.7 4.7 0 0 0-1.336-1.03"})),c||(c=C.createElement("path",{fill:"#222D65",d:"M21.754 7.151a10 10 0 0 0-1.203-.267 15 15 0 0 0-2.426-.177h-7.352a1.172 1.172 0 0 0-1.159.992L8.05 17.605l-.045.289a1.336 1.336 0 0 1 1.321-1.132h2.752c5.405 0 9.637-2.195 10.874-8.545q.055-.282.096-.55a6.6 6.6 0 0 0-1.017-.429 9 9 0 0 0-.277-.087"})),u||(u=C.createElement("path",{fill:"#253B80",d:"M9.614 7.699a1.17 1.17 0 0 1 1.159-.991h7.352c.871 0 1.684.057 2.426.177q.318.051.619.117a10 10 0 0 1 .862.236q.548.181 1.017.429c.368-2.347-.003-3.945-1.272-5.392C20.378.682 17.853 0 14.622 0h-9.38c-.66 0-1.223.48-1.325 1.133L.01 25.898a.806.806 0 0 0 .795.932h5.791l1.454-9.225z"})))},Z=n(14930),E=n(48059),I=n(95964),P=n(72076),M=n(83969);function B(){let e=(0,d._)(["Having trouble? Try our alternative payment methods >"]);return B=function(){return e},e}function T(e){var t,n,r,i,a,o,l,s,c,u,d,p,f,h;let{channel:v,planType:x,userInfo:_,isFree:w,onboardingTracking:C}=e,A="".concat(null==_?void 0:_.id,"_").concat(x,"_").concat(g.$.planInterval,"_").concat(v),N=parseInt(null==_?void 0:null===(t=_.id)||void 0===t?void 0:t.replace(/-/g,"").slice(0,13),16)+"",S=(0,y.Zg)(x+g.$.planInterval+v)+"",k=g.$.getPlanReportInfo(x,g.$.planInterval),E={payMethodTest:null==_?void 0:null===(n=_.plan)||void 0===n?void 0:n.payMethodTest,newUserPayMethodTest:null==_?void 0:null===(r=_.plan)||void 0===r?void 0:r.newUserPayMethodTest,newUserPayMethodTestV2:null==_?void 0:null===(i=_.plan)||void 0===i?void 0:i.newUserPayMethodTestV2,newUserPayMethodTestV3:(null==_?void 0:null===(a=_.plan)||void 0===a?void 0:a.type)===b.k9.Free?_.plan.newUserPayMethodTestV3:void 0},I=(0,m.lU)({...E,planPeriod:(0,m.sR)(g.$.planInterval)}),P=(0,m.xO)(E);return C||(0,Z.jW)("begin_checkout",{...k,channel:v,customEventId:N+S,contentId:S,pay_method_test:null==_?void 0:null===(o=_.plan)||void 0===o?void 0:o.payMethodTest,new_user_pay_method_test:null==_?void 0:null===(l=_.plan)||void 0===l?void 0:l.newUserPayMethodTest,new_user_pay_method_test_v2:null==_?void 0:null===(s=_.plan)||void 0===s?void 0:s.newUserPayMethodTestV2,new_user_pay_method_test_v3:null==_?void 0:null===(c=_.plan)||void 0===c?void 0:c.newUserPayMethodTestV3,resolved_payment_strategy:P,resolved_payment_route:I,plan_period:g.$.planInterval}),null===(p=window)||void 0===p||null===(d=p.ttq)||void 0===d||null===(u=d.track)||void 0===u||u.call(d,"InitiateCheckout",{value:0,currency:k.currency,content_type:"product",contents:[{content_id:S}]},{event_id:N+S}),w&&(null===(f=(h=window).fbq)||void 0===f||f.call(h,"track","InitiateCheckout",{currency:null==k?void 0:k.currency,value:null==k?void 0:k.value},{eventID:A})),C?{...C,custom_event_id:N+S,content_id:S}:void 0}let F=(0,v.f)(e=>{let t;let{planType:n,isPaypalUpgrade:r,onClose:i,coupon:a,onCheckoutCancel:o,onboardingTracking:l}=e,s=(0,_.dd)(),c=(0,E.NT)(),[u,d]=(0,I.useState)(!1),{userInfo:m,isFree:y}=x.userStore.useSnapshot(),{isStripe:C,isAdyen:A}=(0,f.Q)(),{inExperiment:S,isWindowAdyen:Z,isStripePaypalOnly:F}=(0,h.c)(),D=S?Z:A,q=D?b.ed.Stripe:b.ed.Adyen;t=D?b.ed.Adyen:S||C?b.ed.Stripe:b.ed.Evonet;let z=async e=>{try{let t=T({onboardingTracking:l,channel:e,planType:n,userInfo:m,isFree:y});d(!0),await g.$.handleFirstBuy(e,n,a,t),s.resolve(),s.remove()}finally{d(!1)}};return(0,p.BX)(w.u,{title:c("please-select-payment-method"),...v.f.modalProps(s),onClose:()=>{o&&s.resolve(!1),s.remove(),null==i||i(),null==o||o()},overlayProps:{blur:8},classNames:{header:"pt-2! pb-5"},children:[(0,p.tZ)("div",{className:"flex flex-col gap-4",children:[{icon:(0,p.tZ)(N,{className:"w-15"}),channel:t,label:c("debit-or-credit-card")},{icon:(0,p.tZ)(k,{}),channel:b.ed.ChargeBee3}].map(e=>r?null:(0,p.tZ)(P.Y,{fullWidth:!0,loading:u,onClick:()=>z(e.channel),size:"xl",leftSection:e.icon,color:M.Z.black3,className:"border-gray3",children:e.label},e.channel))}),!r&&!F&&(0,p.tZ)("div",{className:"text-center text-xs c-gray1 mt-lg cursor-pointer",onClick:()=>{z(q)},children:c(B())})]})})},30514:function(e,t,n){"use strict";n.d(t,{w:function(){return x}});var r=n(59197),i=n(10394),a=n(84031),o=n(21962),l=n(88320),s=n(44308),c=n(48059),u=n(90571),d=n(74850),p=n(95964),m=n(14930),f=n(23466),h=n(72076);function v(){let e=(0,r._)(["Convert Confirm"]);return v=function(){return e},e}function g(){let e=(0,r._)(["Cancel"]);return g=function(){return e},e}function b(){let e=(0,r._)(["Confirm"]);return b=function(){return e},e}let x=(0,o.f)(()=>{var e,t,n,r;let o=(0,s.dd)(),x=(0,c.NT)(),{userInfo:y}=u.userStore.useSnapshot(),_=d.Z(l.$.planGroup,[null==y?void 0:null===(e=y.plan)||void 0===e?void 0:e.type,null==y?void 0:null===(t=y.plan)||void 0===t?void 0:t.interval],0);return(0,p.useEffect)(()=>{o.visible&&(0,m.jW)("popup_exposure",{popup_name:"convert_confirm"})},[o.visible]),(0,i.tZ)(f.u,{modal:o,size:460,hideDrawer:!0,classNames:{header:"<sm:min-h-5!"},closeOnEscape:!1,closeOnClickOutside:!1,onClose:()=>{o.reject(),o.hide()},children:(0,i.BX)("div",{children:[(0,i.tZ)("div",{className:"text-6 font-600 text-center <sm:text-4.5",children:x(v())}),(0,i.tZ)("div",{className:"text-5 sm:font-600 text-center pt-6 <sm:text-4",children:x("convert-from-to",{planName:(0,a.O)(null==y?void 0:null===(n=y.plan)||void 0===n?void 0:n.type,null==y?void 0:null===(r=y.plan)||void 0===r?void 0:r.interval),symbol:"$",monthlyPrice:_})}),(0,i.tZ)("div",{className:"flex-center gap-3 pt-10 sm:pb-4 sm:px-6",children:[{label:
1x(g()),onClick:()=>{(0,m.jW)("button_click",{button_name:"cancel"}),o.reject(),o.hide()}},{label:x(b()),onClick:async()=>{var e,t;(0,m.jW)("button_click",{button_name:"confirm"}),await l.$.handleUpgrade(null==y?void 0:null===(e=y.plan)||void 0===e?void 0:e.type,null==y?void 0:null===(t=y.plan)||void 0===t?void 0:t.interval),o.resolve(),o.hide()}}].map((e,t)=>(0,i.tZ)(h.Y,{fullWidth:!0,className:"flex-1 h-12",variant:0===t?"outline":"filled",onClick:e.onClick,children:e.label},e.label))})]})})})},8876:function(e,t,n){"use strict";n.d(t,{n:function(){return iw}});var r,i,a,o,l,s,c,u,d,p,m,f,h,v,g,b,x,y,_,w,C,A,N,S,k=n(59197),Z=n(10394),E=n(48126),I=n.n(E),P=n(19779),M=n.n(P),B=n(64667),T=n(44308),F=n(94810),D=n(66344),q=n(21962),z=n(12104),R=n(75596),L=n(48059),O=n(95964),W=n(83969);let Y=(0,q.f)(e=>{let t=(0,T.dd)(),n=(0,R.useSearchParams)().get("redirectResult"),r=(0,L.NT)(),i=(0,L.tv)(),a=(0,B.v)({modal:t,router:i});return(0,O.useEffect)(()=>{t.visible&&n&&(async()=>{try{await z.od.request({redirectResult:decodeURIComponent(n)}),D.ZP.success(r("payment-success")),setTimeout(()=>{a.current.router.push("/pricing?isRefresh=1")},1e3)}catch(e){console.error("[Adyen] redirect authorisation failed"),D.ZP.error(r("payment-failed"))}finally{a.current.modal.hide()}})()},[t.visible,n,r]),(0,Z.tZ)(F.f,{visible:t.visible,overlayProps:{color:W.Z.bgBase,blur:5},loaderProps:{type:"bars",color:W.Z.primary,size:"md",variant:"bars"}})});var G=n(60371),X=n(14620),V=n(41101),j=n(82356),U=n(88320),H=n(27110),$=n(81869),Q=n(90571),K=n(82507),J=n(19856),ee=n(87433),et=n(4236),en=n(87923),er=n(84285),ei=n(22076),ea=n(94293),eo=n(37637),el=n(34574),es=n(63825),ec=n(72076),eu=n(80533),ed=n(14930);function ep(){let e=(0,k._)(["Total"]);return ep=function(){return e},e}function em(){let e=(0,k._)(["Bonus"]);return em=function(){return e},e}function ef(){let e=(0,k._)(["Subscription already exists on another device. Cannot modify from here currently."]);return ef=function(){return e},e}function eh(){let e=(0,k._)(["Available for Lite plan and above only"]);return eh=function(){return e},e}function ev(){let e=(0,k._)(["Purchase Now"]);return ev=function(){return e},e}let eg=e=>{var t,n,r,i,a,o,l;let{itemData:s,className:c,onItemClick:u,onCheckoutStart:d,onboardingTracking:p,onCheckoutCancel:m}=e||{},f=(0,L.NT)(),{isFree:h,userInfo:v}=Q.userStore.useSnapshot(),{isStripe:g,isAdyen:b}=(0,en.Q)(),{currencyInfo:x}=U.$.useSnapshot(),{buyCreditsWithoutPlan:y}=(0,ee.F)(),_=null!=v&&null!==(l=v.plan)&&void 0!==l&&!!l.isApp||!0!==y&&h,w=Math.round(s.price*x.rate);return(0,Z.BX)("div",{className:(0,es.cn)("bg-[rgba(18,18,19,0.8)] border border-solid border-[#373d42] rounded-[20px] w-96 p-[30px] <sm:p-6 flex flex-col",c),children:[(0,Z.BX)("div",{className:"flex-center-y justify-between",children:[(0,Z.BX)("div",{className:"flex-center-y gap-2.5",children:[(0,Z.tZ)("img",{src:"/images/creditv2.svg",alt:"credit",className:"w-[26px]"}),(0,Z.tZ)("span",{className:"text-[#fafeff] text-[32px] <sm:text-2xl font-medium leading-[40px]",children:(0,eo.Z)((null===(t=s.extraData)||void 0===t?void 0:t.quotaCount)||0).add((null===(n=s.extraData)||void 0===n?void 0:n.giftQuotaCount)||0).value()})]}),(0,Z.tZ)("span",{className:"text-xl text-white <sm:text-lg",children:x.symbol+w})]}),(0,Z.tZ)("div",{className:"mt-[15px] mb-[42px] text-lg <sm:mt-3 <sm:mb-6 <sm:text-base",children:(0,Z.BX)("span",{className:"text-[#bdbfc1]",children:[(0,Z.BX)("span",{children:[f(ep()),": "]}),(0,Z.BX)("span",{children:[(null===(r=s.extraData)||void 0===r?void 0:r.quotaCount)||0," "]}),!!(null===(i=s.extraData)||void 0===i?void 0:i.giftQuotaCount)&&(0,Z.BX)("span",{className:"text-primary",children:["+ ",null===(a=s.extraData)||void 0===a?void 0:a.giftQuotaCount," ",f(em())]})]})}),(0,Z.tZ)(ea.u,{label:f((null==v?void 0:null===(o=v.plan)||void 0===o?void 0:o.isApp)?ef():eh()),disabled:!_,withArrow:!0,children:(0,Z.tZ)("div",{children:(0,Z.tZ)(ec.Y,{disabled:_,className:(0,es.cn)("w-full h-[50px] rounded-[10px] text-lg font-semibold <sm:h-[40px] <sm:text-base",!_&&"!bg-[#3CA2F6] transition-opacity hover:opacity-95"),onClick:async()=>{var e,t,n,r,i;d?d():eu.t.onboardingV2Checkout.remove();let a=b?er.ed.Adyen:er.ed.Stripe;switch(!h&&[er.ed.Adyen,er.ed.Stripe,er.ed.ChargeBee3].includes(null==v?void 0:null===(e=v.plan)||void 0===e?void 0:e.channel)&&(a=null==v?void 0:null===(t=v.plan)||void 0===t?void 0:t.channel),p&&a!==er.ed.ChargeBee3||(0,ed.jW)("begin_checkout",{...s,channel:a}),h&&(null===(r=window)||void 0===r||null===(n=r.fbq)||void 0===n||n.call(r,"track","InitiateCheckout",{currency:"USD",value:s.price},{eventID:"".concat(null==v?void 0:v.id,"_").concat(s.id,"_").concat(a)}
1)),eu.t.addQuotaInfo.set({...s,channel:a}),a){case er.ed.Adyen:await (null===(i=U.$.adyenMount)||void 0===i?void 0:i.call(U.$,{onboardingTracking:p,onCheckoutCancel:m,amount:{currency:"USD",value:100*s.price},packageInfo:{product:s,productId:s.id}}));break;case er.ed.ChargeBee3:let o=(0,ei.U)(),l=await et._w$.request({productId:s.id});o?(o.location.href=l,el.PayStatusModal.show({isRedirect:!1,onCheckoutCancel:m})):alert("Please allow pop-ups from our website.");break;default:let c=(0,ei.U)(),f=await et.v3$.request({productId:s.id,onboardingTracking:p});c?(c.location.href=f,el.PayStatusModal.show({isRedirect:!1,onCheckoutCancel:m})):alert("Please allow pop-ups from our website.")}null==u||u(s)},children:f(ev())})})})]})};function eb(){let e=(0,k._)(["Credits are valid for one year from the date of purchase."]);return eb=function(){return e},e}function ex(){let e=(0,k._)(["No refunds or exchanges permitted.Available for Lite plan and above only, and becomes unavailable after the plan expires."]);return ex=function(){return e},e}let ey=e=>{let{onItemClick:t,onCheckoutStart:n,onboardingTracking:r,onCheckoutCancel:i}=e,a=(0,L.NT)(),{data:o}=et.d9h.useQuery(),{buyCreditsWithoutPlan:l}=(0,ee.F)();return!l&&(null==o?void 0:o.length)&&(o=o.filter(e=>![1400,3500].includes(e.price))),(0,Z.BX)("div",{children:[(0,Z.tZ)("div",{className:"grid justify-between grid-cols-1 sm:grid-cols-[repeat(1,400px)]  md:grid-cols-[repeat(2,360px)] xl:grid-cols-3 2xl:grid-cols-[repeat(3,400px)] gap-lg <sm:gap-y-3 2xl:gap-[30px] px-12 pt-5 <sm:px-4",children:null==o?void 0:o.map(e=>(0,Z.tZ)(eg,{className:"w-full",itemData:{...e,price:e.price/100},onItemClick:t,onCheckoutStart:n,onboardingTracking:r,onCheckoutCancel:i},e.id))}),(0,Z.BX)("div",{className:(0,es.cn)("mt-10 <sm:mb-8 text-center text-base text-[#888a8d] <sm:mt-6 <sm:text-xs <sm:px-4",l&&"[&>div]:inline-block"),children:[(0,Z.tZ)("div",{children:a(eb())}),(0,Z.tZ)("div",{children:a(l?"no-refunds-or":ex())})]})]})};var e_=n(59359),ew=n(76231),eC=n(70274),eA=n(73209),eN=n(39161),eS=n(64116),ek=n(475),eZ=n(72605),eE=n(30514),eI=n(59528),eP=n.n(eI),eM=n(16559),eB=n(88864);function eT(){return(eT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eF=function(e){return eB.createElement("svg",eT({xmlns:"http://www.w3.org/2000/svg",width:48,height:247,fill:"none"},e),i||(i=eB.createElement("path",{fill:"#232425",d:"M22 43h4v61h-4z"})),a||(a=eB.createElement("path",{fill:"#3CA2F6",d:"M22 43h4v31h-4z"})),o||(o=eB.createElement("path",{fill:"#232425",d:"M22 143h4v61h-4z"})),l||(l=eB.createElement("circle",{cx:24,cy:223,r:24,fill:"#232425"})),s||(s=eB.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.4,d:"M23.5 216.749a.6.6 0 0 1 1 0l3.137 4.706a.6.6 0 0 0 .874.136l3.05-2.44c.454-.363 1.107.066.954.626l-2.394 8.781a.6.6 0 0 1-.58.442H18.459a.6.6 0 0 1-.579-.442l-2.394-8.781c-.153-.56.5-.989.953-.626l3.051 2.44a.6.6 0 0 0 .874-.136z"})),c||(c=eB.createElement("circle",{cx:24,cy:124,r:24,fill:"#232425"})),u||(u=eB.createElement("path",{stroke:"#fff",strokeWidth:1.4,d:"M19.346 116.7h9.308a1.3 1.3 0 0 1 .933.395l3.558 3.667a1.3 1.3 0 0 1 0 1.81l-8.212 8.462a1.3 1.3 0 0 1-1.866 0l-8.212-8.462a1.3 1.3 0 0 1 0-1.81l3.558-3.667a1.3 1.3 0 0 1 .933-.395Z"})),d||(d=eB.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeWidth:1.4,d:"m20.75 124.5-2.48-2.555a.4.4 0 0 1 0-.557l1.833-1.888"})),p||(p=eB.createElement("circle",{cx:24,cy:24,r:24,fill:"#232425"})),m||(m=eB.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.4,d:"M31.5 23.25v8.25A1.5 1.5 0 0 1 30 33H18a1.5 1.5 0 0 1-1.5-1.5v-8.25m7.5-6.375a2.625 2.625 0 1 0-2.625 2.625H24m0-2.625V19.5m0-2.625a2.625 2.625 0 1 1 2.625 2.625H24m-7.875 3.75h15.75c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-15.75c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125"})),f||(f=eB.createElement("circle",{cx:24,cy:24,r:24,fill:"#3CA2F6"})),h||(h=eB.createElement("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.4,d:"M31.5 23.25v8.25A1.5 1.5 0 0 1 30 33H18a1.5 1.5 0 0 1-1.5-1.5v-8.25m7.5-6.375a2.625 2.625 0 1 0-2.625 2.625H24m0-2.625V19.5m0-2.625a2.625 2.625 0 1 1 2.625 2.625H24m-7.875 3.75h15.75c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-15.75c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125"})))},eD=n(30826);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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var ez=function(e){return eB.createElement("svg",eq({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 36 36"}
1,e),v||(v=eB.createElement("rect",{width:34,height:26,x:1,y:5,fill:"#6EBDE4",rx:4})),g||(g=eB.createElement("path",{fill:"#4457A2",d:"M1 9a4 4 0 0 1 4-4h26a4 4 0 0 1 4 4v5H1z"})),b||(b=eB.createElement("rect",{width:8,height:4,x:23,y:23,fill:"#27346A",rx:2})))};function eR(){return(eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var eL=function(e){return eB.createElement("svg",eR({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 138 36"},e),x||(x=eB.createElement("path",{fill:"#27346A",d:"M28.888 2.803C27.227.91 24.224.098 20.383.098H9.235a1.596 1.596 0 0 0-1.577 1.346l-4.642 29.44a.957.957 0 0 0 .946 1.106h6.883l1.728-10.963-.054.343a1.59 1.59 0 0 1 1.571-1.347h3.27c6.426 0 11.456-2.61 12.926-10.158q.065-.335.114-.653-.277-.147 0 0c.438-2.79-.003-4.69-1.512-6.41"})),y||(y=eB.createElement("path",{fill:"#27346A",d:"M15.207 8.207c.188-.09.393-.136.602-.136h8.74c1.035 0 2 .067 2.882.21q.37.059.736.14.52.114 1.024.28.651.216 1.21.51c.437-2.79-.004-4.689-1.513-6.408C27.226.91 24.224.098 20.383.098H9.234c-.785 0-1.453.571-1.576 1.346L3.016 30.883a.957.957 0 0 0 .945 1.106h6.884L14.43 9.25a1.4 1.4 0 0 1 .776-1.042"})),_||(_=eB.createElement("path",{fill:"#2790C3",d:"M30.286 9.864c-1.47 7.548-6.5 10.16-12.926 10.16H14.09a1.59 1.59 0 0 0-1.57 1.346L10.37 35a.838.838 0 0 0 .826.969h5.802a1.4 1.4 0 0 0 1.378-1.178l.057-.296 1.094-6.93.07-.383a1.396 1.396 0 0 1 1.378-1.177h.869c5.62 0 10.02-2.284 11.306-8.887.537-2.76.26-5.064-1.16-6.682a5.5 5.5 0 0 0-1.59-1.226q-.049.32-.113.653"})),w||(w=eB.createElement("path",{fill:"#1F264F",d:"M28.862 8.599a11 11 0 0 0-.693-.178q-.367-.08-.737-.14a18 18 0 0 0-2.883-.21h-8.74a1.392 1.392 0 0 0-1.378 1.179l-1.857 11.777-.054.343a1.59 1.59 0 0 1 1.57-1.347h3.272c6.425 0 11.455-2.61 12.925-10.158q.064-.335.114-.653a8 8 0 0 0-1.209-.51 10 10 0 0 0-.33-.103"})),C||(C=eB.createElement("path",{fill:"#fff",d:"M75.13 19.44q0 1.626-1.121 2.703T71.26 23.22q-1.274 0-2.043-.703-.77-.704-.77-1.935 0-1.626 1.1-2.747 1.098-1.12 2.724-1.12 1.231 0 2.044.725.814.725.814 2m-10.198-7.517q0-2.594-1.692-3.758Q61.547 7 58.822 7h-7.033q-.835 0-.923.835L48.009 25.77a.59.59 0 0 0 .132.484.54.54 0 0 0 .44.22h3.34q.879 0 .967-.836l.791-4.835a.86.86 0 0 1 .308-.571q.263-.22.66-.286a4.6 4.6 0 0 1 .746-.066q.352 0 .836.044.483.044.615.044 3.78 0 5.934-2.132t2.154-5.912m13.582 13.714 1.803-11.472a.59.59 0 0 0-.132-.484.54.54 0 0 0-.44-.22h-3.34q-.615 0-.748 1.451-1.187-1.758-4.176-1.758-3.165 0-5.384 2.374t-2.22 5.582q0 2.593 1.516 4.132t4.066 1.538q1.23 0 2.55-.527 1.318-.527 2.11-1.407-.176.528-.176.923 0 .704.571.704h3.033q.836 0 .967-.836m19.649-11.56a.62.62 0 0 0-.176-.418.52.52 0 0 0-.396-.198h-3.384q-.484 0-.792.44l-4.659 6.857-1.934-6.593q-.22-.703-.967-.703h-3.297a.52.52 0 0 0-.395.197.62.62 0 0 0-.176.418q0 .088.857 2.593t1.846 5.407q.99 2.901 1.033 3.077-3.604 4.923-3.604 5.275 0 .57.571.571h3.385q.483 0 .79-.44l11.21-16.175q.088-.089.088-.308m-38.55-.528q-.219 1.539-1.143 2.022-.923.484-2.637.484l-1.45.044.747-4.703q.087-.484.571-.484h.835q1.758 0 2.55.506.79.505.527 2.131M109.673 13.956q0 1.866-.965 2.533t-2.894.667l-1.403.044.745-4.756q.088-.489.57-.488h.79q.964 0 1.534.088.57.09 1.097.556.525.466.526 1.356m15.391 6.622q0 1.6-1.118 2.71a3.69 3.69 0 0 1-2.697 1.112q-1.27 0-2.061-.711-.789-.711-.789-1.956 0-1.644 1.096-2.777t2.719-1.134q1.228 0 2.039.734.811.732.811 2.022m-10.173-7.6q0-2.622-1.688-3.8Q111.514 8 108.796 8h-6.972q-.878 0-.965.844l-2.85 18.134q-.045.266.131.489a.54.54 0 0 0 .439.222h3.596q.525 0 .701-.578l.789-5.155a.87.87 0 0 1 .307-.578q.264-.222.658-.29.395-.066.746-.066.35 0 .833.045.482.045.614.044 3.771 0 5.919-2.155 2.15-2.156 2.149-5.978m13.55 13.866 1.798-11.6a.6.6 0 0 0-.132-.488.54.54 0 0 0-.439-.223h-3.332q-.614 0-.746 1.467-1.14-1.778-4.165-1.778-3.158 0-5.372 2.4t-2.214 5.645q0 2.622 1.512 4.177 1.513 1.557 4.057 1.556 1.271 0 2.587-.533 1.315-.534 2.061-1.423 0 .045-.088.4a2.5 2.5 0 0 0-.088.534q0 .71.57.71h3.026q.833.001.965-.844M138 8.667v-.045Q138 8 137.43 8h-3.245q-.483 0-.57.489l-2.85 18.489-.044.089q0 .222.175.422a.56.56 0 0 0 .439.2h2.894q.833 0 .921-.845z"})))};function eO(){let e=(0,k._)(["Please select payment method"]);return eO=function(){return e},e}function eW(){let e=(0,k._)(["Having trouble?"]);return eW=function(){return e},e}function eY(){let e=(0,k._)(["Try our alternative payment methods"]);return eY=function(){return e},e}let eG=e=>{let t;let{planType:n,coupon:r,modal:i,onboardingTracking:a}=e,o=(0,L.NT)(),[l,s]=(0,O.useState)(!1),{userInfo:c,isFree:u}=Q.userStore.useSnapshot(),{isStripe:d,isAdyen:p}=(0,en.Q)(),{inExperiment:m,isWindowAdyen:f,isStripePaypalOnly:h}=(0,e_.c)(er.ZF.Monthly),v=m?f:p,g=v?er.ed.Stripe:er.ed.Adyen;t=v?er.ed.Adyen:m||d?er.ed.Stripe:er.ed.Evonet;let b=async e=>{try{let t=(0,eZ.A)({onboardingTracking:a,channel:e,planType:n,userInfo:c,isFree:u});s(!0),await U.$.handleFirstBuy(e,n,r,t),i.resolve(),i.remove()}finally{s(!1)}};return(0,Z.BX)("div",{children:[(0,Z.tZ)("div",{className:"text-6 font-600 pt-12 pb-20 text-center <sm:text-5 <sm:pt-6",children:o(eO())}
1),(0,Z.tZ)("div",{className:"px-12 <sm:px-2",children:(0,Z.tZ)("div",{className:"flex flex-col gap-4",children:[{icon:(0,Z.tZ)(ez,{className:"w-9"}),channel:t,label:o("debit-or-credit-card")},{icon:(0,Z.tZ)(eL,{className:"w-35"}),channel:er.ed.ChargeBee3}].map(e=>(0,Z.tZ)(ec.Y,{fullWidth:!0,loading:l,onClick:()=>b(e.channel),leftSection:e.icon,className:"h-24 b-1px b-solid b-#6C7174 text-5 rd-4",color:"#121213",children:e.label},e.channel))})}),!h&&(0,Z.BX)("div",{className:"flex-center-y flex-col absolute left-0 bottom-0 w-full pb-15 <sm:pb-10",children:[(0,Z.tZ)("div",{className:"text-5 font-600 <sm:text-4.5",children:o(eW())}),(0,Z.BX)("div",{className:"flex-center c-#BDBFC1 pt-3 cursor-pointer",onClick:()=>{b(g)},children:[o(eY()),(0,Z.tZ)(eD.Z,{className:"size-3"})]})]})]})};var eX=n(23466);function eV(){let e=(0,k._)(["US$0 Trial DeeVid "," Membership"]);return eV=function(){return e},e}function ej(){let e=(0,k._)(["Today - Free trial starts, cancel anytime"]);return ej=function(){return e},e}function eU(){let e=(0,k._)(["Get "," points instantly"]);return eU=function(){return e},e}function eH(){let e=(0,k._)(["Free trial active"]);return eH=function(){return e},e}function e$(){let e=(0,k._)([""," points"]);return e$=function(){return e},e}function eQ(){let e=(0,k._)(["Free trial active"]);return eQ=function(){return e},e}function eK(){let e=(0,k._)([""," points"]);return eK=function(){return e},e}function eJ(){let e=(0,k._)(["Subscription starts"]);return eJ=function(){return e},e}function e0(){let e=(0,k._)([""," points/month"]);return e0=function(){return e},e}function e1(){let e=(0,k._)(["Subscription starts ",""]);return e1=function(){return e},e}function e2(){let e=(0,k._)(["Pay today (3-day free trial)"]);return e2=function(){return e},e}function e5(){let e=(0,k._)(["Continue"]);return e5=function(){return e},e}let e3=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eP()();return eP()(e).format("MMM DD, YYYY")},e4=(0,q.f)(e=>{let{price:t,planType:n,coupon:r,monthlyCredit:i,onCheckoutCancel:a,onboardingTracking:o}=e||{},l=(0,T.dd)(),s=(0,L.NT)(),[c,u]=(0,O.useState)(!1),[d,p]=(0,O.useState)(!1),{userInfo:m,isFree:f}=Q.userStore.useSnapshot(),{isStripeOnly:h}=(0,e_.c)(),{planInterval:v,planGroup:g,currencyInfo:b}=U.$.useSnapshot(),x=null!=i?i:g[n].monthlyCredit,y=async()=>{if((0,ed.jW)("button_click",{button_name:"Continue"}),!h){u(!0);return}try{p(!0);let e=(0,eZ.A)({onboardingTracking:o,channel:er.ed.Stripe,planType:n,userInfo:m,isFree:f});await U.$.handleFirstBuy(er.ed.Stripe,n,r,e),l.resolve(),l.remove()}finally{p(!1)}};return(0,O.useEffect)(()=>{l.visible&&(0,ed.jW)("popup_exposure",{popup_name:"免费试用弹窗",source_location:"".concat(n,"_").concat(v)})},[l.visible,v,n]),(0,Z.tZ)(eX.u,{modal:l,size:"auto",classNames:{header:"min-h-14",content:"h-152 relative min-w-538px"},drawerProps:{classNames:{content:"relative"}},onClose:()=>{a&&l.resolve(!1),l.remove(),null==a||a()},title:c?(0,Z.BX)("span",{className:"inline-flex items-center cursor-pointer",onClick:()=>{u(!1)},children:[(0,Z.tZ)(eM.Z,{className:"size-5"}),s("back")]}):null,children:c?(0,Z.tZ)(eG,{onboardingTracking:o,modal:l,planType:n,coupon:r}):(0,Z.BX)(Z.HY,{children:[(0,Z.tZ)("div",{className:"text-6 font-600 text-center <sm:text-5",children:s(eV(),n===er.k9.Standard?"Lite":n)}),(0,Z.BX)("div",{className:"mx-auto px-14px",children:[(0,Z.BX)("div",{className:"flex justify-center py-10",children:[(0,Z.tZ)("div",{className:"w-48px",children:(0,Z.tZ)(eF,{})}),(0,Z.tZ)("div",{className:"flex flex-col gap-5 pl-7.5 <sm:pl-4.5",children:[{title:s(ej()),content:s(eU(),20)},{title:"".concat(e3(eP()().add(1,"day"))," - ").concat(s(eH())),content:s(e$(),20)},{title:"".concat(e3(eP()().add(2,"day"))," - ").concat(s(eQ())),content:s(eK(),30)},{title:"".concat(e3(eP()().add(3,"day"))," - ").concat(s(eJ())),content:s(e0(),x)}].map(e=>(0,Z.BX)("div",{children:[(0,Z.tZ)("div",{className:"text-4 c-#BDBFC1 lh-5",children:e.title}),(0,Z.tZ)("div",{className:"text-4.5 font-500 lh-5 pt-1.5",children:e.content})]},e.title))})]}),(0,Z.BX)("div",{className:"absolute bottom-0 left-0 w-full px-20 <sm:px-4 pb-12",children:[(0,Z.BX)("div",{className:"flex justify-between c-#BDBFC1 <sm:px-2 <sm:text-3.5",children:[(0,Z.tZ)("span",{children:s(e1(),e3(eP()().add(3,"day")))}),(0,Z.BX)("span",{children:[b.prefix,"$",t*(v===er.ZF.Yearly?12:1)]})]}),(0,Z.BX)("div",{className:"flex justify-between text-5 font-600 pt-2 mb-8 <sm:px-2 <sm:text-18px <sm:font-500",children:[(0,Z.tZ)("span",{children:s(e2())}),(0,Z.BX)("span",{children:[b.prefix,"$0"]})]}),(0,Z.tZ)(ec.Y,{fullWidth:!0,size:"lg",loading:d,onClick:y,children:s(e5())})]})]})]})})});var e6=n(1972),e7=n(44310),e8={src:"/_next/static/media/avatar1.7a9e8a12.png",height:160,width:160,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAhFBMVEVMaXErMTC+lXwrNjZcYlJdamdCPzIYGRtgV0h7dGrew63Wuq2vjXtRXk50cGehd2C0iGeTgHj////09PtBRT3o7vnbyr1rRyydc07GnneXdFCiiXibbkWvhGngq5TQmYSglIbJkGhSW1LxvqndzslMQzPvq5qxelRtZFLOl3SIXzmDbVZWY5BZAAAAHXRSTlMAsvzwMPSyLvz8/Pn+sPf++bAw6+sutP75Lev3tBRnQJQAAAAJcEhZcwAAFiUAABYlAUlSJPAAAABJSURBVHicBcEFAoAgAASwoyTsTlDs+P//3ABJEh1IgDMdpariiNfQbdkRQCx2dv4WUIudz0cx5Du9aPcRFKXx7TtIoG7MOPX4AZIGBJQYN3rVAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},e9={src:"/_next/static/media/avatar2.5c509b01.png",height:160,width:160,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAATlBMVEUiIiBvTDZlSTVaQS4jIycREg80JhlnQzBmRTFMaXFtSDMjJCUoKy0XGxwrJiJrSTVlQy1xTjhBMiWofWODVz5UOSa2hWqYbFGTcVhMQjundfonAAAAD3RSTlP97rCwLv34LvYAtLTy6/3MD/bkAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAQklEQVR4nAXBiRHAIAgEwFNRQM2AX57+G80ulGsplRUckOcMjGhlLLEEMd/3YwIZx9fYAWlmf/sXQVcG0AlKDWikP108AoS1C6i4AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},te={src:"/_next/static/media/avatar3.2d3af7fb.png",height:160,width:160,blurDataURL:"data:image/png;
1base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAbFBMVEVMaXHw39d/eHTFtau1kIXs3NT/6+MZFxYrJiQnJyYdGhlkS0Hh1c8AAQK3rKbMvLCdjYUAAQJ0Tz8MCwvCr6haSkSVcmE1NzZJRED0x7pza2aLhIAGCAl7X1X6zcFFLSLXrJjWloZXPDLSppVuH/4cAAAAFXRSTlMAsLTw/DAt/C766/n0/Ov0sLQwtLBAnv/MAAAACXBIWXMAABYlAAAWJQFJUiTwAAAARUlEQVR4nAXBhQHAIBAEsEMfrWN12X/HJoDm1nINKFGSTJ0CW0k2vzH0dLTvrQGC0vlcJWCwdOdYFxi35xzdBJjRy9ngB3b3A5PpSHJHAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8};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 r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var tn=function(e){return eB.createElement("svg",tt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 18 18"},e),A||(A=eB.createElement("path",{fill:"currentColor",d:"M8.488 1.038a.571.571 0 0 1 1.024 0l2.294 4.648a.57.57 0 0 0 .43.312l5.129.745a.571.571 0 0 1 .317.975l-3.712 3.617a.57.57 0 0 0-.164.506l.876 5.108a.571.571 0 0 1-.829.602L9.266 15.14a.57.57 0 0 0-.532 0L4.147 17.55a.571.571 0 0 1-.83-.602l.877-5.108a.57.57 0 0 0-.164-.506L.319 7.718a.571.571 0 0 1 .316-.975l5.129-.745a.57.57 0 0 0 .43-.312z"})))},tr=n(26671),ti=n(4049);function ta(){let e=(0,k._)(["Trusted by over 3 million creative professionals, marketers, and designers..."]);return ta=function(){return e},e}let to={[L.e1.en]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI is a game-changer! As a daily content creator, I used to burn out on ideas. Now generating my 'Office Cat Diaries' series in 30 mins - fans can't get enough! Views up 200% with viral comment sections. Lifesaver for consistent creativity!”",comment2:"“Revolutionized our Shopify store! No more $2k product shoots. Deevid AI generates photorealistic videos - even steam rising from coffee mugs! Created 50+ SKU demos in 2 days. Conversion jumped from 1.2% to 4.8% with ‘Where to buy?’ flooding DMs.”",comment3:"“OAS hacker's dream! Generated 200 video variants overnight for A/B testing. CTR doubled to 2.3% with AI-optimized hooks. ROAS boosted from 1.8 to 4.2 on sneaker ads - client thought we tripled their budget! Scalable creativity at $0.05/cost”"},[L.e1.de]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI ist ein Game-Changer! Als t\xe4glicher Content-Ersteller hatte ich Probleme, mit Ideen zu k\xe4mpfen. Jetzt erstelle ich meine 'Office Cat Diaries' Serie in 30 Minuten - Fans k\xf6nnen nicht genug davon bekommen! Die Ansichten sind um 200% gestiegen mit viralen Kommentarabschnitten. Rettung f\xfcr konsistente Kreativit\xe4t!”",comment2:"“Revolutioniert unseren Shopify-Store! Kein mehr $2k Produkt-Shoot. Deevid AI generiert photorealistische Videos - sogar Dampf aus Kaffeebechern! Erstellt 50+ SKU-Demos in 2 Tagen. Die Konversion ist von 1,2% auf 4,8% gestiegen mit ‘Wo kann ich kaufen?’, die DMs \xfcberschwemmen.”",comment3:"“OAS Hacker-Traum! Generiert 200 Video-Varianten \xfcber Nacht f\xfcr A/B-Tests. CTR ist von 2,3% auf 4,2% gestiegen mit AI-optimierten Hooks. ROAS ist von 1,8 auf 4,2 bei Sneaker-Werbung gestiegen - der Kunde dachte, wir h\xe4tten sein Budget verdreifacht! Skalierbare Kreativit\xe4t bei $0,05/Kosten.”"},[L.e1.fr]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI est un changement de game! Comme cr\xe9ateur de contenu quotidien, je me d\xe9paysais sur les id\xe9es. Maintenant, je g\xe9n\xe8re ma s\xe9rie 'Office Cat Diaries' en 30 minutes - les fans ne peuvent pas en avoir assez! Les vues ont augment\xe9 de 200% avec des commentaires viraux. Sauvetage pour la cr\xe9ativit\xe9 constante!”",comment2:"“R\xe9volutionn\xe9 notre boutique Shopify! Plus de $2k pour les shootings de produits. Deevid AI g\xe9n\xe8re des vid\xe9os photor\xe9alistes - m\xeame la vapeur monte des tasses de caf\xe9! Cr\xe9\xe9 50+ d\xe9mos de SKU en 2 jours. La conversion est pass\xe9e de 1,2% \xe0 4,8% avec 'O\xf9 acheter?' qui envahit les DMs.”"}
1,[L.e1.ja]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AIは革命的なソリューションです!日々のコンテンツクリエイターとして、アイデアを尽くすのが難しかったのですが、今では30分で「オフィスの猫日記」シリーズを生成できるようになりました。ファンは十分に満足しています!ビデオの再生数は200%増加し、コメントセクションがバズっています。一貫性のあるクリエイティビティの救い主です!”",comment2:"“Shopifyストアを革命化しました!2,000ドルの製品撮影の代わりに、Deevid AIでフォトリアルなビデオを生成できるようになりました。コーヒーカップから蒸気が上がるほどのリアルなビデオを作成し、50以上のSKUデモを2日で作成しました。「購入先はどこ?」というメッセージがDMで溢れるようになり、コンバージョン率は1.2%から4.8%に跳ね上がりました。”",comment3:"“OASハッカーの夢!A/Bテスト用に200個のビデオバリエーションを一夜で生成しました。AI最適化されたフックでCTRが2倍になり、スニーカー広告のROASが1.8から4.2に上がりました。クライアントは、予算を3倍にしたと思っています!コスト0.05ドルでスケーラブルなクリエイティビティ。”"},[L.e1.ko]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI는 게임 체인저입니다! 매일 콘텐츠 크리에이터로서, 아이디어를 고갈시키는 문제가 있었습니다. 이제 30분 만에 '오피스 고양이 일기' 시리즈를 생성할 수 있습니다. 팬들은 충분히 만족할 수 있습니다! 비디오 조회수가 200% 증가하고 댓글 섹션이 버즈되었습니다. 일관된 크리에이터십을 위한 구조입니다!”",comment2:"“Shopify 스토어를 혁신했습니다! 2,000달러의 제품 촬영을 대신해서, Deevid AI로 사진 같은 비디오를 생성할 수 있게 되었습니다. 커피 잔에서 커피 거품이 올라오는 것처럼 실제 같은 비디오를 만들어 50개 이상의 SKU 데모를 2일 만에 만들었습니다. ‘구매 방법은 어디?’ 메시지가 DM으로 넘쳐나면서 전환율이 1.2%에서 4.8%로 급상승했습니다.”",comment3:"“OAS 해커의 꿈! A/B 테스트를 위해 200개의 비디오 변형을 한밤중에 생성했습니다. AI 최적화된 훅으로 CTR이 2배로 증가했습니다. 스니커 광고의 ROAS가 1.8에서 4.2로 급상승했습니다. 클라이언트는 예산을 3배로 늘렸다고 생각했습니다! 0.05달러 비용으로 확장 가능한 크리에이터십.”"},[L.e1.pt]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI \xe9 um game-changer! Como criador de conte\xfado di\xe1rio, eu costumava me esgotar com ideias. Agora, gerando minha s\xe9rie 'Office Cat Diaries' em 30 minutos - os f\xe3s n\xe3o podem ter o suficiente! Visualiza\xe7\xf5es aumentaram 200% com se\xe7\xf5es de coment\xe1rios virais. Salva-vidas para a criatividade 
1consistente!”",comment2:"“Reinventamos nossa loja Shopify! Mais de $2k para shootings de produtos. Deevid AI gera v\xeddeos fotorrealistas - at\xe9 vapor subindo das x\xedcaras de caf\xe9! Criou 50+ demonstra\xe7\xf5es de SKU em 2 dias. Convers\xe3o saltou de 1,2% para 4,8% com 'Onde comprar?' inundando DMs.”",comment3:"“OAS hacker's dream! Generated 200 video variants overnight for A/B testing. CTR doubled to 2.3% with AI-optimized hooks. ROAS boosted from 1.8 to 4.2 on sneaker ads - client thought we tripled their budget! Scalable creativity at $0.05/cost”"},[L.e1.es]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI es un game-changer! Como creador de contenido diario, sol\xeda agotarme con ideas. Ahora, generando mi serie 'Office Cat Diaries' en 30 minutos - los fans no pueden tener suficiente! Las vistas aumentaron 200% con secciones de comentarios virales. Salvavidas para la creatividad consistente!”",comment2:"“Reinventamos nuestra tienda Shopify! No m\xe1s $2k para shootings de productos. Deevid AI genera videos fotorrealistas - incluso vapor subiendo de las tazas de caf\xe9! Cre\xf3 50+ demostraciones de SKU en 2 d\xedas. La conversi\xf3n salt\xf3 de 1,2% a 4,8% con 'D\xf3nde comprar?' inundando DMs.”",comment3:"“OAS hacker's dream! Generated 200 video variants overnight for A/B testing. CTR doubled to 2.3% with AI-optimized hooks. ROAS boosted from 1.8 to 4.2 on sneaker ads - client thought we tripled their budget! Scalable creativity at $0.05/cost”"},[L.e1["zh-TW"]]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI 是遊戲改變者!作為日常內容創作者,我過去常常在想法上耗盡。現在,在 30 分鐘內生成我的“辦公室貓日記”系列 - 粉絲們無法得到足夠的!觀看次數增加 200% 與病毒式傳播的評論部分。拯救了持續創造力!”",comment2:"“徹底改變了我們的 Shopify 商店!不再需要 2,000 美元的產品拍攝。Deevid AI 生成逼真的視頻 - 甚至從咖啡杯中冒出蒸汽!在兩天內創建了 50 多個 SKU 演示。轉換率從 1.2% 躍升至 4.8%,“購買地點?”淹沒了 DM。”",comment3:"“OAS 黑客的夢想!在一夜之間生成 200 個視頻變體進行 A/B 測試。CTR 翻倍至 2.3%,使用 AI 優化鉤子。ROAS 從 1.8 躍升至 4.2,在運動鞋廣告上 - 客戶認為我們增加了他們的預算!可擴展的創造力,成本為 0.05 美元。”"},[L.e1.it]:{name1:"Social Media Creator",name2:"E-commerce Seller",name3:"EAd Specialist",comment1:"“Deevid AI \xe8 una vera rivoluzione! Come creatore di contenuti quotidiano, prima ero a corto di idee. Ora genero la mia serie 'Diari del Gatto d'Ufficio' in 30 minuti - i fan ne vanno matti! Visualizzazioni aumentate del 200% con sezioni commenti virali. Un salvatore per la creativit\xe0 costante!”",comment2:"“Ha rivoluzionato il nostro negozio Shopify! Basta servizi fotografici da $2000. Deevid AI genera video fotorealistici - persino il vapore che sale dalle tazze di caff\xe8! Creati oltre 50 demo di SKU in 2 giorni. Le conversioni sono schizzate dall'1,2% al 4,8% con i DM inondati da 'Dove comprare?'.”",comment3:"“Il sogno di ogni hacker OAS! Generate 200 varianti video overnight per test A/B. Il CTR raddoppiato al 2,3% con hook ottimizzati dall'IA. ROAS aumentato da 1,8 a 4,2 sugli annunci di sneaker - il cliente pensava avessimo triplicato il budget! Creativit\xe0 scalabile a $0,05/costo”"}},tl=e=>{let{item:t}=e;return(0,Z.tZ)("div",{className:"<sm:pt-40px <sm:h-full",children:(0,Z.BX)("div",{className:"relative bg-#121213 rd-5 flex-center-y flex-col pt-15 pb-8.5 px-7.5 h-full <sm:px-5",children:[(0,Z.tZ)(tr.default,{src:t.avatar||"",width:80,height:80,alt:t.name,className:"size-20 rd-50% absolute left-50% top-0 object-cover",style:{transform:"translate(-50%,-50%)"}}),(0,Z.tZ)("div",{className:"text-4.5 font-600",children:t.name}),(0,Z.tZ)("div",{className:"flex-center gap-0.5 pt-3 pb-6",children:[,,,,,].fill(null).map((e,t)=>(0,Z.tZ)(tn,{className:"size-5 c-#FBB92D"},t))}),(0,Z.tZ)("div",{className:"text-4 c-#BDBFC1",children:t.comment})]})})},ts=()=>{let e=(0,L.NT)(),t=(0,e7.useLocale)(),{isMobile:n}=(0,ti.k)(),r=to[t]||to[L.e1.en],i=[{avatar:e8,name:"Social Media Creator",comment:r.comment1},{avatar:e9,name:"E-commerce Seller",comment:r.comment2},{avatar:te,name:"EAd Specialist",comment:r.comment3}];return(0,Z.BX)("div",{className:"my-25 <sm:mt-17",children:[(0,Z.tZ)("div",{className:"text-7.5 font-500 text-center pb-27 <sm:pb-12 <sm:text-4.5 <sm:font-600",children:e(ta())}),n?(0,Z.tZ)(e6.l,{slideSize:"80%",slideGap:10,withControls:!1,withIndicators:!0,classNames:{indicator:"[&[data-active=true]]:bg-white size-1.5 rd-full bg-#383A3B",indicators:"gap-1 bottom--4"},loop:!0,align:"center",children:i.map((e,t)=>(0,Z.tZ)(e6.l.Slide,{children:(0,Z.tZ)(tl,{item:e},t)},e.name))}):(0,Z.tZ)("div",{className:"flex justify-center items-stretch gap-7.5 px-12",children:i.map((e,t)=>(0,Z.tZ)(tl,{item:e},t))})]})};var tc=n(60050);let tu={[L.e1.en]:[{q:"What are credits and how do I use them?",a:"Credits are the platform's consumption units. You can use credits to generate videos, images, or audio with any available model in Deevid."},{q:"Can I try before subscribing?",a:"New users get 20 free credits upon registration (approximately 4 videos). This is enough to experience our core features before choosing a suitable paid plan."},{q:"Can I subscribe for just one month without auto-renewal?",a:"All current plans are auto-renewable, but you can cancel anytime to avoid the next charge."},{q:"How do I cancel my subscription?",a:"You can cancel anytime by clicking “Cancel” on your Account page. After cancellation, your subscription will stop at the end of the current billing cycle, and you can continue using remaining credits until expiration."},{q:"Can I purchase more credits separately when I run out?",a:"Yes, you can upgrade to a higher-tier membership plan or purchase credit packs separately."},{q:"I upgraded my membership, how are credits calculated?",a:"Membership upgrades take effect immediately, and the original subscription will automatically stop renewing. Unused credits from the original subscription will migrate to the new subscription, with validity period aligned to the new subscription."},{q:"Will videos have watermarks? How to remove them?",a:"Free users' generated videos have watermarks. After upgrading to membership, generated videos have no watermarks."}
1,{q:"Can I use AI-generated videos for commercial purposes?",a:"Yes, you can use AI-generated videos for commercial purposes, including advertising, social media marketing, and promotional content. Please review our terms of service for specific guidelines."},{q:"Which devices can I use my membership on?",a:"You can use it on computers (Windows/Mac), iOS and Android mobile apps, and web browsers, with the same account across all devices."}],[L.e1.es]:[{q:"\xbfQu\xe9 son los cr\xe9ditos y c\xf3mo los uso?",a:"Los cr\xe9ditos son las unidades de consumo de la plataforma. Puede usar cr\xe9ditos para generar videos, im\xe1genes o audio con cualquier modelo disponible en Deevid."},{q:"\xbfPuedo probar antes de suscribirme?",a:"Los nuevos usuarios reciben 20 cr\xe9ditos gratuitos al registrarse (aproximadamente 4 videos). Esto es suficiente para experimentar nuestras caracter\xedsticas principales antes de elegir un plan de pago adecuado."},{q:"\xbfPuedo suscribirme por un mes sin renovaci\xf3n autom\xe1tica?",a:"Todos los planes actuales son renovables, pero puede cancelar en cualquier momento para evitar el siguiente cargo."},{q:"\xbfC\xf3mo cancelo mi suscripci\xf3n?",a:"Puede cancelar en cualquier momento haciendo clic en “Cancelar” en su p\xe1gina de Cuenta. Despu\xe9s de la cancelaci\xf3n, su suscripci\xf3n se detendr\xe1 al final del ciclo de facturaci\xf3n actual, y puede continuar usando los cr\xe9ditos restantes hasta su vencimiento."},{q:"\xbfPuedo comprar m\xe1s cr\xe9ditos por separado cuando se agotan?",a:"S\xed, puede actualizar a un plan de membres\xeda de nivel superior o comprar paquetes de cr\xe9ditos por separado."},{q:"\xbfC\xf3mo se calculan los cr\xe9ditos si actualizo mi membres\xeda?",a:"Las actualizaciones de membres\xeda surten efecto inmediatamente, y la suscripci\xf3n original se detendr\xe1 autom\xe1ticamente de renovar. Los cr\xe9ditos no utilizados de la suscripci\xf3n original se migrar\xe1n a la nueva suscripci\xf3n, con un per\xedodo de validez alineado con la nueva suscripci\xf3n."},{q:"\xbfTendr\xe1n los videos marcas de agua? \xbfC\xf3mo se eliminan?",a:"Los videos generados por usuarios gratuitos tienen marcas de agua. Despu\xe9s de actualizar a membres\xeda, los videos generados no tienen marcas de agua."},{q:"\xbfPuedo usar videos generados por IA para fines comerciales?",a:"S\xed, puede usar videos generados por IA para fines comerciales, incluyendo publicidad, marketing en redes sociales y contenido promocional. Por favor, revise nuestros t\xe9rminos de servicio para obtener directrices espec\xedficas."},{q:"\xbfEn qu\xe9 dispositivos puedo usar mi membres\xeda?",a:"Puede usarla en computadoras (Windows/Mac), aplicaciones m\xf3viles iOS y Android, y navegadores web, con la misma cuenta en todos los dispositivos."}],[L.e1.de]:[{q:"Was sind Credits und wie benutze ich sie?",a:"Credits sind die Verbrauchseinheiten der Plattform. Sie k\xf6nnen Credits verwenden, um Videos, Bilder oder Audio mit jedem verf\xfcgbaren Modell in Deevid zu generieren."},{q:"Kann ich vorab testen, bevor ich abonniere?",a:"Neue Benutzer erhalten 20 kostenlose Credits bei der Registrierung (ungef\xe4hr 4 Videos). Dies reicht aus, um unsere Kernfunktionen vor der Wahl eines geeigneten bezahlten Plans zu erleben."},{q:"Kann ich f\xfcr ein Monat abonnieren, ohne dass die automatische Verl\xe4ngerung aktiviert ist?",a:"Alle aktuellen Pl\xe4ne sind automatisch verl\xe4ngerbar, aber Sie k\xf6nnen jederzeit stornieren, um den n\xe4chsten Geb\xfchren zu vermeiden."},{q:"Wie kann ich mein Abonnement stornieren?",a:"Sie k\xf6nnen jederzeit stornieren, indem Sie auf “Stornieren” in Ihrer Kontoseite klicken. Nach der Stornierung wird Ihr Abonnement am Ende des aktuellen Abrechnungszyklus beendet, und Sie k\xf6nnen die verbleibenden Credits bis zur Ablaufzeit weiter verwenden."},{q:"Kann ich mehr Credits separat kaufen, wenn ich ausgehen?",a:"Ja, Sie k\xf6nnen zu einem h\xf6heren Mitgliedschaftsplan wechseln oder separate Kreditpakete kaufen."},{q:"Ich habe meine Mitgliedschaft aufgewertet, wie werden die Credits berechnet?",a:"Mitgliedschaftsaufstockungen treten sofort in Kraft und die urspr\xfcngliche Abonnementlizenz wird automatisch nicht mehr verl\xe4ngert. Unbenutzte Credits aus der urspr\xfcnglichen Abonnementlizenz werden zur neuen Abonnementlizenz migriert, mit einer G\xfcltigkeitsdauer, die mit der neuen Abonnementlizenz \xfcbereinstimmt."}
1,{q:"Werden Videos Wasserzeichen haben? Wie entfernen Sie sie?",a:"Videos, die von freien Benutzern generiert werden, haben Wasserzeichen. Nach der Aktualisierung auf Mitgliedschaft haben generierte Videos keine Wasserzeichen."},{q:"Kann ich AI-generierte Videos f\xfcr kommerzielle Zwecke verwenden?",a:"Ja, Sie k\xf6nnen AI-generierte Videos f\xfcr kommerzielle Zwecke verwenden, einschlie\xdflich Werbung, Social-Media-Marketing und Werbeinhalten. Bitte lesen Sie unsere Nutzungsbedingungen f\xfcr spezifische Richtlinien."},{q:"Auf welchen Ger\xe4ten kann ich meine Mitgliedschaft verwenden?",a:"Sie k\xf6nnen es auf Computern (Windows/Mac), iOS- und Android-Mobile-Apps und Web-Browsern verwenden, mit der gleichen Konto auf allen Ger\xe4ten."}],[L.e1.fr]:[{q:"Qu'est-ce que sont les cr\xe9dits et comment les utiliser ?",a:"Les cr\xe9dits sont les unit\xe9s de consommation de la plateforme. Vous pouvez utiliser des cr\xe9dits pour g\xe9n\xe9rer des vid\xe9os, des images ou de l'audio avec n'importe quel mod\xe8le disponible dans Deevid."},{q:"Puis-je essayer avant de m'abonner ?",a:"Les nouveaux utilisateurs re\xe7oivent 20 cr\xe9dits gratuits lors de leur inscription (environ 4 vid\xe9os). Cela suffit pour exp\xe9rimenter nos fonctionnalit\xe9s principales avant de choisir un plan payant adapt\xe9."},{q:"Puis-je m'abonner pour un mois sans renouvellement automatique ?",a:"Tous les plans actuels sont automatiquement renouvelables, mais vous pouvez annuler \xe0 tout moment pour \xe9viter le prochain paiement."},{q:"Comment puis-je annuler mon abonnement ?",a:"Vous pouvez annuler \xe0 tout moment en cliquant sur “Annuler” sur votre page de compte. Apr\xe8s la d\xe9sabonnement, votre abonnement s'arr\xeatera \xe0 la fin du cycle de facturation actuel, et vous pourrez continuer \xe0 utiliser les cr\xe9dits restants jusqu'\xe0 leur expiration."},{q:"Puis-je acheter plus de cr\xe9dits s\xe9par\xe9ment lorsque je me rends \xe0 \xe9puiser ?",a:"Oui, vous pouvez passer \xe0 un plan de membresse de niveau sup\xe9rieur ou acheter des paquets de cr\xe9dits s\xe9par\xe9ment."},{q:"J'ai mis \xe0 niveau mon abonnement, comment sont calcul\xe9s les cr\xe9dits ?",a:"Les mises \xe0 niveau de membresse prennent effet imm\xe9diatement, et l'abonnement original cesse automatiquement de se renouveler. Les cr\xe9dits non utilis\xe9s de l'abonnement original sont migr\xe9s vers le nouvel abonnement, avec une p\xe9riode de validit\xe9 align\xe9e avec le nouvel abonnement."},{q:"Les vid\xe9os auront-elles des filigranes ? Comment les supprimer ?",a:"Les vid\xe9os g\xe9n\xe9r\xe9es par les utilisateurs gratuits ont des filigranes. Apr\xe8s la mise \xe0 niveau vers la membresse, les vid\xe9os g\xe9n\xe9r\xe9es n'ont pas de filigranes."},{q:"Puis-je utiliser des vid\xe9os g\xe9n\xe9r\xe9es par IA pour des fins commerciales ?",a:"Oui, vous pouvez utiliser des vid\xe9os g\xe9n\xe9r\xe9es par IA pour des fins commerciales, y compris la publicit\xe9, le marketing sur les r\xe9seaux sociaux et le contenu promotionnel. Veuillez consulter nos conditions d'utilisation pour des directives sp\xe9cifiques."},{q:"Sur quels appareils puis-je utiliser mon abonnement ?",a:"Vous pouvez l'utiliser sur des ordinateurs (Windows/Mac), applications mobiles iOS et Android, et navigateurs web, avec le m\xeame compte sur tous les appareils."}],[L.e1.ja]:[{q:"クレジットとは何ですか?どのように使用しますか?",a:"クレジットはプラットフォームの消費単位です。Deevidの利用可能なモデルを使用してビデオ、画像、または音声を生成するためにクレジットを使用できます。"},{q:"試用してから購読できますか?",a:"新規登録時に20クレジットが無料で付与されます(約4つのビデオ)。これで、適切な有料プランを選択する前に、コア機能を体験できます。"},{q:"自動更新なしで1ヶ月間購読できますか?",a:"現在のすべてのプランは自動更新されますが、いつでもキャンセルすることで次の支払いを回避できます。"},{q:"購読をキャンセルするにはどうすればよいですか?",a:"アカウントページで「キャンセル」をクリックすると、いつでもキャンセルできます。キャンセル後、サブスクリプションは現在の請求サイクルの終了時に停止し、残りのクレジットを有効期限まで使用できます。"},{q:"クレジットを別途購入できますか?",a:"はい、上位の会員プランにアップグレードするか、クレジットパックを別途購入できます。"},{q:"会員サブスクリプションをアップグレードした場合、クレジットはどのように計算されますか?",a:"会員サブスクリプションのアップグレードは即座に有効になり、元のサブスクリプションは自動更新されã
1ªããªã‚Šã¾ã™ã€‚元のサブスクリプションの未使用クレジットは、新しいサブスクリプションに移行され、新しいサブスクリプションの有効期間に合わせて計算されます。"},{q:"ビデオに透かし印がありますか?どのように削除しますか?",a:"無料ユーザーが生成したビデオには透かし印があります。会員にアップグレードすると、生成されたビデオには透かし印がありません。"},{q:"AI生成のビデオを商用目的で使用できますか?",a:"はい、AI生成のビデオを商用目的で使用できます。広告、ソーシャルメディアマーケティング、プロモーションコンテンツを含むコメントを使用できます。詳細については、利用規約をご確認ください。"},{q:"どのデバイスで会員資格を使用できますか?",a:"コンピューター(Windows/Mac)、iOSおよびAndroidモバイルアプリ、およびWebブラウザーで使用できます。すべてのデバイスで同じアカウントを使用できます。"}],[L.e1.ko]:[{q:"크레딧은 무엇이며 어떻게 사용합니까?",a:"크레딧은 플랫폼의 소비 단위입니다. Deevid의 사용 가능한 모델을 사용하여 비디오, 이미지 또는 오디오를 생성하기 위해 크레딧을 사용할 수 있습니다."},{q:"구독 전에 시도할 수 있습니까?",a:"새 사용자는 등록 시 20개의 무료 크레딧을 받습니다(약 4개의 비디오). 이는 적절한 유료 계획을 선택하기 전에 핵심 기능을 경험하는 데 충분합니다."},{q:"자동 갱신 없이 1개월 구독할 수 있습니까?",a:"현재 모든 계획은 자동 갱신되지만, 언제든지 취소하여 다음 요금을 방지할 수 있습니다."},{q:"구독을 취소하려면 어떻게 해야 합니까?",a:"계정 페이지에서 “취소”를 클릭하여 언제든지 취소할 수 있습니다. 취소 후 구독은 현재 청구 주기의 종료 시점에 중단되며, 남은 크레딧은 만료 시까지 사용할 수 있습니다."},{q:"크레딧을 별도로 구매할 수 있습니까?",a:"예, 높은 등급의 회원 계획으로 업그레이드하거나 크레딧 팩을 별도로 구매할 수 있습니다."},{q:"회원 등급을 업그레이드하면 크레딧은 어떻게 계산됩니까?",a:"회원 등급 업그레이드는 즉시 적용되며, 원래 구독은 자동 갱신되지 않습니다. 원래 구독의 미사용 크레딧은 새 구독으로 이동되며, 새 구독의 유효 기간에 맞춰 계산됩니다."},{q:"비디오에 워터마크가 있습니까? 어떻게 제거합니까?",a:"무료 사용자가 생성한 비디오에는 워터마크가 있습니다. 회원 등급으로 업그레이드하면 생성된 비디오에는 워터마크가 없습니다."},{q:"AI 생성 비디오를 상업적 목적으로 사용할 수 있습니까?",a:"예, AI 생성 비디오를 상업적 목적으로 사용할 수 있습니다. 광고, 소셜 미디어 마케팅, 프로모션 콘텐츠를 포함할 수 있습니다. 자세한 내용은 이용 약관을 참조하십시오."},{q:"어떤 장치에서 회원 자격을 사용할 수 있습니까?",a:"컴퓨터(Windows/Mac), iOS 및 Android 모바일 앱, 웹 브라우저에서 사용할 수 있습니다. 모든 장치에서 동일한 계정을 사용할 수 있습니다."}],[L.e1.pt]:[{q:"O que s\xe3o cr\xe9ditos e como us\xe1-los?",a:"Cr\xe9ditos s\xe3o as unidades de consumo da plataforma. Voc\xea pode usar cr\xe9ditos para gerar v\xeddeos, imagens ou \xe1udio com qualquer modelo dispon\xedvel no Deevid."},{q:"Posso experimentar antes de me inscrever?",a:"Novos usu\xe1rios recebem 20 cr\xe9ditos gratuitos ao se inscrever (aproximadamente 4 v\xeddeos). Isso \xe9 suficiente para experimentar nossas funcionalidades principais antes de escolher um plano pago adequado."},{q:"Posso me inscrever por um m\xeas sem renova\xe7\xe3o autom\xe1tica?",a:"Todos os planos atuais s\xe3o renov\xe1veis, mas voc\xea pode cancelar a qualquer momento para evitar o pr\xf3ximo pagamento."},{q:"Como cancelar minha inscri\xe7\xe3o?",a:"Voc\xea pode cancelar a qualquer momento clicando em “Cancelar” na sua p\xe1gina de conta. Ap\xf3s a cancela\xe7\xe3o, sua inscri\xe7\xe3o ser\xe1 interrompida ao final do ciclo de faturamento atual, e voc\xea poder\xe1 continuar usando os cr\xe9ditos restantes at\xe9 a expira\xe7\xe3o."},{q:"Posso comprar mais cr\xe9ditos separadamente quando eu ficar sem?",a:"Sim, voc\xea pode atualizar para um plano de membro de n\xedvel superior ou comprar pacotes de cr\xe9ditos separadamente."},{q:"Eu atualizei meu plano, como s\xe3o calculados os cr\xe9ditos?",a:"As atualiza\xe7\xf5es de plano entram em vigor imediatamente e a assinatura original deixa de se renovar automaticamente. Os cr\xe9ditos n\xe3o utilizados da assinatura original s\xe3o migrados para a nova assinatura, com um per\xedodo de validade alinhado com a nova assinatura."},{q:"Os v\xeddeos ter\xe3o marca d'\xe1gua? Como remov\xea-los?",a:"V\xeddeos gerados por usu\xe1rios gratuitos t\xeam marca d'\xe1gua. Ap\xf3s a atualiza\xe7\xe3o para plano, os v\xeddeos gerados n\xe3o t\xeam marca d'\xe1gua."},{q:"Posso usar v\xeddeos gerados por IA para fins comerciais?",a:"Sim, voc\xea pode usar v\xeddeos gerados por IA para fins comerciais, incluindo publicidade, marketing de redes sociais e conte\xfado promocional. Por favor, revise nossos termos de uso para diretrizes espec\xedficas."},{q:"Em quais dispositivos posso usar meu plano?",a:"Voc\xea pode us\xe1-lo em computadores (Windows/Mac), aplicativos m\xf3veis iOS e Android e navegadores web, 
1com a mesma conta em todos os dispositivos."}],[L.e1["zh-TW"]]:[{q:"什麼是積分,如何使用?",a:"積分是平台的使用單位。您可以使用積分生成視頻、圖像或音頻,使用任何可用的模型。"},{q:"可以先試用再訂閱嗎?",a:"新用戶註冊時可獲得20個免費積分(約4個視頻)。這足以讓您在選擇合適的付費計劃之前體驗我們的核心功能。"},{q:"可以只訂閱一個月,不自動續費嗎?",a:"所有當前的計劃都是自動續費的,但您可以隨時取消以避免下一個收費。"},{q:"如何取消訂閱?",a:"您可以在帳戶頁面點擊”取消“隨時取消。取消後,您的訂閱將在當前計費週期的結束時停止,您可以繼續使用剩餘的積分,直到其過期。"},{q:"我可以購買更多積分嗎?",a:"是的,您可以升級到更高級的會員計劃或單獨購買積分包。"},{q:"我升級了會員,積分如何計算?",a:"會員升級會立即生效,原訂閱將自動停止續費。原訂閱的未使用積分將遷移到新訂閱,並與新訂閱的期限一致。"},{q:"視頻會有水印嗎?如何去除?",a:"免費用戶生成的視頻有水印。升級到會員後,生成的視頻沒有水印。"},{q:"我可以使用AI生成的視頻進行商業用途嗎?",a:"是的,您可以使用AI生成的視頻進行商業用途,包括廣告、社交媒體營銷和促銷內容。請參閱我們的使用條款以獲取具體指南。"},{q:"我可以在哪些設備上使用我的會員資格?",a:"您可以在計算機(Windows/Mac)、iOS和Android移動應用程序以及網絡瀏覽器上使用,在所有設備上使用相同的帳戶。"}],[L.e1.it]:[{q:"Cosa sono i crediti e come si usano?",a:"I crediti sono le unit\xe0 di consumo della piattaforma. Puoi utilizzarli per generare video, immagini o audio con qualsiasi modello disponibile in Deevid."},{q:"Posso provare prima di abbonarmi?",a:"I nuovi utenti ricevono 20 crediti gratuiti alla registrazione (circa 4 video). Sono sufficienti per sperimentare le nostre funzioni principali prima di scegliere un piano a pagamento adatto."},{q:"Posso abbonarmi per un solo mese senza rinnovo automatico?",a:"Tutti i piani attuali prevedono il rinnovo automatico, ma puoi cancellarti in qualsiasi momento per evitare l'addebito successivo."},{q:"Come posso cancellare l'abbonamento?",a:'Puoi cancellarti in qualsiasi momento cliccando "Annulla" nella pagina del tuo Account. Dopo la cancellazione, l\'abbonamento terminer\xe0 alla fine del ciclo di fatturazione corrente e potrai continuare a utilizzare i crediti rimanenti f
1ino alla scadenza.'},{q:"Posso acquistare pi\xf9 crediti separatamente quando si esauriscono?",a:"S\xec, puoi passare a un piano di abbonamento superiore o acquistare separatamente pacchetti di crediti."},{q:"Se ho migliorato l'abbonamento, come vengono calcolati i crediti?",a:"L'aggiornamento dell'abbonamento ha effetto immediato e l'abbonamento originale smetter\xe0 automaticamente di rinnovarsi. I crediti inutilizzati dell'abbonamento originale verranno trasferiti al nuovo abbonamento, con periodo di validit\xe0 allineato al nuovo abbonamento."},{q:"I video avranno filigrane? Come rimuoverle?",a:"I video generati dagli utenti gratuiti hanno filigrane. Dopo l'aggiornamento all'abbonamento, i video generati non avranno filigrane."},{q:"Posso utilizzare i video generati dall'IA per scopi commerciali?",a:"S\xec, puoi utilizzare i video generati dall'IA per scopi commerciali, inclusi pubblicit\xe0, marketing sui social media e contenuti promozionali. Consulta i nostri termini di servizio per le linee guida specifiche."},{q:"Su quali dispositivi posso utilizzare il mio abbonamento?",a:"Puoi utilizzarlo su computer (Windows/Mac), app mobili iOS e Android e browser web, con lo stesso account su tutti i dispositivi."}]},td=()=>{let e=(0,L.NT)(),t=tu[(0,e7.useLocale)()]||tu[L.e1.en];return(0,Z.BX)("div",{className:"px-14 <sm:px-7",children:[(0,Z.tZ)("div",{className:"text-10.5 font-700 text-center pb-5 <sm:text-4.5 <sm:pb-0",children:e("faq")}),(0,Z.tZ)(tc.FAQ,{data:t})]})};var tp=n(72350),tm=n(88906),tf=n(51127),th=n.n(tf);function tv(){return(tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var tg=function(e){return eB.createElement("svg",tv({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 7"},e),N||(N=eB.createElement("path",{fill:"currentColor",d:"M5.848.177a.2.2 0 0 1 .304 0l5.565 6.493a.2.2 0 0 1-.152.33H.435a.2.2 0 0 1-.152-.33z"})))},tb=n(34757),tx=n(10562),ty=n(11163);function t_(){let e=(0,k._)(["Lite"]);return t_=function(){return e},e}function tw(){let e=(0,k._)(["Premium"]);return tw=function(){return e},e}function tC(){let e=(0,k._)(["CREDITS"]);return tC=function(){return e},e}function tA(){let e=(0,k._)(["Buy More Credit Packs as Needed"]);return tA=function(){return e},e}function tN(){let e=(0,k._)(["FEATURES"]);return tN=function(){return e},e}function tS(){let e=(0,k._)(["Cross-Video Character Consistency"]);return tS=function(){return e},e}function tk(){let e=(0,k._)(["Top-Quality Video Models"]);return tk=function(){return e},e}function tZ(){let e=(0,k._)(["Image & Text-to-Video"]);return tZ=function(){return e},e}function tE(){let e=(0,k._)(["Full Al Toolkit (Lip Sync, Avatar, Templates...)"]);return tE=function(){return e},e}function tI(){let e=(0,k._)(["Fast Generation Mode"]);return tI=function(){return e},e}function tP(){let e=(0,k._)(["BENEFITS"]);return tP=function(){return e},e}function tM(){let e=(0,k._)(["No Watermarks"]);return tM=function(){return e},e}function tB(){let e=(0,k._)(["Full Commercial Use"]);return tB=function(){return e},e}function tT(){let e=(0,k._)(["Priority Support"]);return tT=function(){return e},e}function tF(){let e=(0,k._)(["Back"]);return tF=function(){return e},e}let tD=(e,t)=>t(e===er.k9.Standard?t_():e===er.k9.Pro?"pro":tw()),tq=e=>{let{planType:t,credits:n,t:r}=e,i=t===er.k9.Standard,a=t===er.k9.Premium;return[{title:r(tC()),items:[r.rich("credits-monthly",{credits:n.toLocaleString(),videoCount:Math.floor(n/5).toLocaleString(),span:e=>(0,Z.tZ)("strong",{className:"font-bold text-[#3CA2F6]",children:e}),i:e=>(0,Z.tZ)("strong",{className:"font-bold text-[#3CA2F6]",children:e})}),r(tA())]},{title:r(tN()),items:[r(tS()),r(tk()),r(tZ()),(0,Z.BX)("span",{children:[(0,Z.tZ)("strong",{className:"font-bold text-[#3CA2F6]",children:i?"720":"1080"})," ",r("output")]},"output"),r(tE()),r(tI())]},{title:r(tP()),items:[r("private-creation"),r(tM()),r(tB()),...a?[r(tT())]:[]]}]},tz=e=>{let{item:t,active:n=!1,planInterval:r,buttonProps:i,tooltip:a,compareMonthlyPrice:o,totalBillingDesc:l,reserveTotalBillingSpace:s,onMouseEnter:c,onMouseLeave:u}=e,d=(0,L.NT)(),p=(0,e7.useLocale)(),{currencyInfo:m}=U.$.useSnapshot(),{isPricingDailyPriceDisplay:f}
1=(0,tx.X)(),h=t.creditControl,[v,g]=(0,tm.C)(0,{min:null==h?void 0:h.min,max:null==h?void 0:h.max}),b=(0,B.v)({creditControl:h}),x=t.planGroupItem.type||t.type,y=Math.round(t.planGroupItem[r]*m.rate),_=o?Math.round(o*m.rate):void 0,w=tq({planType:t.type,credits:t.planGroupItem.monthlyCredit,t:d});return(0,O.useEffect)(()=>{var e,t;null===(t=b.current.creditControl)||void 0===t||null===(e=t.onChange)||void 0===e||e.call(t,v)},[v]),(0,Z.BX)("article",{onMouseEnter:c,onMouseLeave:u,className:(0,es.cn)(th().className,"relative z-1 min-w-0 text-white"),"data-plan-type":x,children:[n?(0,Z.BX)(Z.HY,{children:[(0,Z.tZ)("div",{className:"pointer-events-none absolute left-[-3px] top-[-3px] z-[-10]",style:{width:273,height:249,borderRadius:"20px 0px 200px 0px",background:"linear-gradient(138deg, #3CA2F6 5.68%, rgba(0, 18, 33, 0.00) 64.92%)",filter:"blur(5px)"}}),(0,Z.tZ)("div",{className:"pointer-events-none absolute bottom-[-3px] right-[-3px] z-[-10]",style:{width:273,height:249,transform:"rotate(180deg)",borderRadius:"20px 0px 200px 0px",background:"linear-gradient(138deg, #3CA2F6 5.68%, rgba(0, 18, 33, 0.00) 64.92%)",filter:"blur(5px)"}})]}):null,(0,Z.BX)("div",{className:(0,es.cn)("relative flex min-h-[848px] flex-col rounded-[20px] border border-solid px-[30px] pb-[28px] pt-[28px]",n?"border-[#36C7F3] bg-[rgba(18,18,19,0.8)] shadow-[0_0_22px_rgba(54,199,243,0.42)]":"border-[#373D42] bg-[rgba(18,18,19,0.6)]"),children:[(0,Z.BX)("div",{className:"pl-[clamp(0px,calc((100cqi-1200px)*16/180),16px)]",children:[(0,Z.BX)("div",{className:"flex min-h-9 items-center justify-between gap-3",children:[(0,Z.tZ)("h3",{className:"m-0 text-[28px] font-semibold leading-9",children:tD(t.type,d)}),t.titleTag?(0,Z.tZ)("div",{className:"flex h-[31px] w-[140px] shrink-0 items-center justify-center rounded-[6px] border border-solid border-[#7ACAFF] bg-[#121213] text-base font-normal text-[#C7E6FF]",children:t.titleTag}):null]}),(0,Z.tZ)("p",{className:"mb-0 mt-3 min-h-9 text-sm leading-[18px] text-[#BDBFC1]",children:t.subTitle}),(0,Z.BX)("div",{className:"mt-[5px] flex h-[clamp(60px,calc(60px+(100cqi-1200px)*8/180),68px)] min-w-0 items-end gap-2.5",children:[(0,Z.BX)("span",{className:"whitespace-nowrap font-semibold leading-none text-[clamp(46px,calc(46px+(100cqi-1200px)*6/180),52px)] text-white",children:[(0,Z.tZ)("span",{className:"font-normal text-[clamp(46px,calc(46px+(100cqi-1200px)*4/180),50px)]",children:m.symbol}),f?(0,tb.z)(y,r):y,(0,Z.BX)("span",{className:"font-normal text-[clamp(20px,calc(20px+(100cqi-1200px)*2/180),22px)] text-[#BDBFC1]",children:[m.label,d(f?"price-period-daily-short":"price-period-monthly-short")]}),_?(0,Z.BX)("span",{className:"ml-2.5 font-normal text-[clamp(20px,calc(20px+(100cqi-1200px)*4/180),24px)] text-[#656F75] line-through",children:[m.symbol,f?(0,tb.z)(_,er.ZF.Monthly):_]}):null]}),(null==h?void 0:h.show)?(0,Z.tZ)("div",{className:"mb-0.5 ml-auto flex h-[38px] w-[22px] shrink-0 flex-col rounded-[4px] bg-[#292C2F]",children:[{key:"increment",disabled:v===h.max},{key:"decrement",disabled:v===h.min}].map(e=>{let{key:t,disabled:n}=e,r="increment"===t;return(0,Z.tZ)("button",{type:"button",disabled:n,"aria-label":r?d("next"):d(tF()),className:"flex flex-1 items-center justify-center border-0 bg-transparent p-0 text-white disabled:cursor-not-allowed disabled:text-[#656F75]",onClick:()=>{var e;if(n)return;let t=r?v+1:v-1;null===(e=h.onVariantChange)||void 0===e||e.call(h,t),r?g.increment():g.decrement()},children:(0,Z.tZ)(tg,{className:"h-[7px] w-3",style:{transform:r?void 0:"rotate(180deg)"}})},t)})}):null]}),l||s?(0,Z.tZ)("div",{className:"mt-3 min-h-[23px] text-lg leading-[23px] text-[#656F75]",children:l}):null]}),(0,Z.tZ)(ea.u,{label:a,disabled:!a,withArrow:!0,multiline:!0,w:340,children:(0,Z.tZ)("div",{className:"mt-6",children:(0,Z.tZ)(tp.Button,{suppressHydrationWarning:!0,fullWidth:!0,className:(0,es.cn)("h-[50px] rounded-[10px] border-none text-lg font-semibold text-[#FAFEFF] transition-opacity",(null==i?void 0:i.disabled)?"!bg-[#262A32] !text-[#A6A8AB]":n?"!bg-[linear-gradient(271deg,#4A62FF_-21.87%,#52A8FF_28.26%,#54BEFF_71.12%,#8FCDFF_100%)] shadow-[inset_0_0_4px_rgba(255,255,255,0.5)] hover:opacity-95":"!bg-[#3CA2F6] hover:opacity-95","fr"===p&&"text-[17px]"),...ty.Z(i,"text"),onClick:()=>{var e;return null==i?void 0:null===(e=i.onClick)||void 0===e?void 0:e.call(i)},children:null==i?void 0:i.text})})}),(0,Z.tZ)("div",{className:"mt-[42px] flex flex-col gap-4 px-[10px] text-sm",children:w.map((e,t)=>(0,Z.BX)("section",{children:[(0,Z.tZ)("h4",{className:"m-0 font-semibold leading-[30px] text-white",children:e.title}),(0,Z.tZ)("ul",{className:"m-0 list-none pl-[21px] text-[#BDBFC1]",children:e.items.map((e,t)=>(0,Z.tZ)("li",{className:"relative leading-[30px] before:absolute before:left-[-13px] before:content-['•']",children:e},t))})]},t))})]})]})};n(11544);let tR="PRICING_DAILY_PRICE_DISPLAY_TEST",tL="/app/pricing",tO="Pricing",tW={PAGE_LEAVE:"page_leave",MODAL_CLOSE:"modal_close",PAGE_HIDDEN:"page_hidden",PAYMENT_START:"payment_start",PAGE_UNLOAD:"page_unload"},tY={MOUSE_LEAVE:"mouse_leave",CARD_CLICK:"card_click",PAYMENT_START:"payment_start",PAGE_LEAVE:"page_leave",PAGE_HIDDEN:"page_hidden"},tG=e=>"a"===e||"b"===e?e:void 0,tX=e=>e===er.ZF.Yearly?"yearly":"monthly",tV=e=>{let{isModal:t,enablePricingUnlimitedPackaging:n,pricingEntrySource:r}=e;return r||(t?n?"/agent":"paywall":"/pricing")},tj=e=>{let{context:t,isModal:n,enablePricingUnlimitedPackaging:r,pricingEntrySource:i}=e;return(0,G.Ht)(t,tV({isModal:n,enablePricingUnlimitedPackaging:r,pricingEntrySource:i}))}
1,tU=e=>(0,er.Dz)(e)?"lite":(0,er.Sm)(e)?"premium":(0,er.B9)(e)?"pro":e,tH=e=>e.toLowerCase().replaceAll(" ","_"),t$=e=>{let{planType:t,planInterval:n}=e;return{planId:U.$.getPlanReportInfo(t,n).package_id,billingInterval:tX(n)}},tQ=e=>{var t,n,r,i;let{enablePricingUnlimitedPackaging:a=!1,pricingEntrySource:o}=e,{planInterval:l,isModal:s}=U.$.useSnapshot(),c=(0,L.NT)(),{isMobile:u}=(0,ti.k)(),{serverGrayConfig:d}=Q.userStore.useSnapshot(),{couponsMap:p}=(0,eA.p)(),{isPricingUnlimitedExp:m}=(0,tx.X)(),f=m&&a,h=l===er.ZF.Monthly,v=(0,O.useRef)(null),g=(0,O.useRef)(null),b=(0,O.useRef)(null);(0,O.useEffect)(()=>{U.$.planInterval=er.ZF.Yearly},[]);let x=(0,O.useCallback)(()=>{let e=v.current,t=(h?b:g).current;e&&t&&(e.style.setProperty("--highlight-width","".concat(t.offsetWidth,"px")),e.style.setProperty("--highlight-x-pos","".concat(t.offsetLeft,"px")))},[h]);(0,O.useLayoutEffect)(()=>{x();let e=v.current;if(!e)return;let t=new ResizeObserver(x);return t.observe(e),g.current&&t.observe(g.current),b.current&&t.observe(b.current),()=>t.disconnect()},[x]);let y=e=>{var t;null===(t=(e===er.ZF.Monthly?b:g).current)||void 0===t||t.focus()},_=e=>{e!==l&&((0,ed.jW)("button_click",{button_name:e===er.ZF.Monthly?"Monthly":"Yearly"},{forceReport:!0}),(0,ed.jW)("pricing_billing_switched",{...tj({context:(0,G.fQ)(d),isModal:s,enablePricingUnlimitedPackaging:a,pricingEntrySource:o}),billing_interval:tX(e)}),U.$.planInterval=e)},w=(0,Z.tZ)("span",{className:(0,es.cn)("flex-center",u?"gap-1":"gap-[6px]"),children:c.rich("yearly-save-percent",{span:e=>(0,Z.tZ)("span",{className:(0,es.cn)("font-semibold text-[#FAFEFF]",u?"flex-center h-5 px-2 rounded-full text-xs":"flex-center h-[30px] rounded-[6px] bg-[#3CA2F6] px-2 text-[14px]! leading-none",u?"bg-[linear-gradient(277deg,#4E84FF_-90.25%,#53B0FF_104.35%)]":void 0),children:e}),percent:f?54:(null===(n=p[er.k9.Pro])||void 0===n?void 0:null===(t=n[er.ZF.Yearly])||void 0===t?void 0:t.planOff)||(null===(i=p[er.k9.Standard])||void 0===i?void 0:null===(r=i[er.ZF.Yearly])||void 0===r?void 0:r.planOff)||29})});return(0,Z.BX)("div",{ref:v,role:"radiogroup","aria-orientation":"horizontal",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey||"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"Home"!==e.key&&"End"!==e.key)return;e.preventDefault();let t="Home"===e.key?er.ZF.Yearly:"End"===e.key?er.ZF.Monthly:h?er.ZF.Yearly:er.ZF.Monthly;_(t),y(t)},className:(0,es.cn)("relative border border-solid border-[#373D42]",u?"mx-[35px] flex h-9 w-full items-center rounded-full bg-transparent p-0":"inline-flex h-[64px] w-fit shrink-0 items-center gap-[13px] gap-[clamp(13px,calc(13px+(100cqi-1200px)*3/180),16px)] rounded-[12px] bg-[#050505] p-[9px]"),children:[(0,Z.tZ)("span",{"aria-hidden":!0,className:(0,es.cn)("pointer-events-none absolute left-0 bg-[#383A3B] transition-[transform,width] duration-200 ease-[cubic-bezier(0.23,1,0.32,1)] motion-reduce:transition-none",u?"inset-y-0 rounded-full":"inset-y-[9px] rounded-[8px]"),style:{width:"var(--highlight-width, 0px)",transform:"translateX(var(--highlight-x-pos, 0px))"}}),(0,Z.BX)("button",{ref:g,type:"button",role:"radio","aria-checked":!h,tabIndex:h?-1:0,className:(0,es.cn)("relative z-1 flex items-center justify-center border-0 bg-transparent p-0 text-white",u?"h-full min-w-0 flex-1 text-sm text-[#6C7174]":"h-[46px] w-auto shrink-0 pl-[13px] pr-[15px] pl-[clamp(13px,calc(13px+(100cqi-1200px)*3/180),16px)] pr-[clamp(15px,calc(15px+(100cqi-1200px)*3/180),18px)] text-[20px]! leading-none tracking-[0.4px]",!h&&u&&"text-white"),onClick:()=>_(er.ZF.Yearly),children:[(0,Z.tZ)("span",{className:"invisible font-semibold","aria-hidden":!0,children:w}),(0,Z.tZ)("span",{className:(0,es.cn)("absolute inset-0 flex items-center justify-center",!h&&"font-semibold"),children:w})]}),(0,Z.BX)("button",{ref:b,type:"button",role:"radio","aria-checked":h,tabIndex:h?0:-1,className:(0,es.cn)("relative z-1 flex items-center justify-center border-0 bg-transparent p-0 text-white",u?"h-full min-w-0 flex-1 text-sm text-[#6C7174]":"h-[46px] w-auto shrink-0 px-[44px] px-[clamp(44px,calc(44px+(100cqi-1200px)*4/180),48px)] text-[20px]! leading-none",h&&u&&"text-white"),onClick:()=>_(er.ZF.Monthly),children:[(0,Z.tZ)("span",{className:"invisible font-semibold","aria-hidden":!0,
1children:c("monthly")}),(0,Z.tZ)("span",{className:(0,es.cn)("absolute inset-0 flex items-center justify-center",h&&"font-semibold"),children:c("monthly")})]})]})};var tK=n(97891),tJ=n(1663),t0=n(42878);function t1(){let e=(0,k._)(["$"," USD billed yearly"]);return t1=function(){return e},e}function t2(){let e=(0,k._)(["$"," USD billed monthly"]);return t2=function(){return e},e}function t5(){let e=(0,k._)(["\n              transition: transform 0.2s;\n              will-change: filter, transform;\n              &:hover {\n                transform: translateY(-12px);\n              }\n            "]);return t5=function(){return e},e}function t3(){let e=(0,k._)(["\n                          position: relative;\n                          color: ",';\n                          line-height: 30px;\n                          &::before {\n                            content: "•";\n                            position: absolute;\n                            left: -16px;\n                            top: 0;\n                            color: ',";\n                          }\n                        "]);return t3=function(){return e},e}let t4=e=>{var t;let{title:n,active:r,price:i,credit:a,buttonProps:o,subTitle:l,planInterval:s,compareMonthlyPrice:c,descGroup:u,creditControl:d,tooltip:p,tag:m,className:f,tagClassName:h,totalBillingDesc:v,titleTag:g,slot:b,onMouseEnter:x,onMouseLeave:y}=e||{},{isMobile:_}=(0,ti.k)(),w=(0,L.NT)(),C=(0,e7.useLocale)(),[A,N]=(0,tm.C)(0,{min:null==d?void 0:d.min,max:null==d?void 0:d.max}),{isModal:S,currencyInfo:k}=U.$.useSnapshot(),{isPricingDailyPriceDisplay:E}=(0,tx.X)(),I=(0,B.v)({creditControl:d}),P=Math.round(i*k.rate),M=Math.round(c*k.rate);(0,O.useEffect)(()=>{var e,t;null===(t=I.current.creditControl)||void 0===t||null===(e=t.onChange)||void 0===e||e.call(t,A)},[A]);let T=s===er.ZF.Yearly,F=(0,O.useMemo)(()=>{if(v)return v;let e=(0,eo.Z)(P*(T?12:1)).format({thousandSeparated:!0});return T?w(t1(),e):w(t2(),e)},[T,P,w,v]);return(0,Z.BX)("div",{onMouseEnter:x,onMouseLeave:y,className:(0,es.cn)("c-text rounded-5 w-100 b-1px b-solid b-[#373d42] relative flex flex-col <sm:w-full @container",th().className,S&&"z-1",f),css:_?void 0:(0,tK.iv)(t5()),children:[r&&(0,Z.BX)(Z.HY,{children:[(0,Z.tZ)("div",{className:"absolute top-[-3px] left-[-3px] z-[-10]",style:{width:273,height:249,borderRadius:"20px 0px 200px 0px",background:"linear-gradient(138deg, #3CA2F6 5.68%, rgba(0, 18, 33, 0.00) 64.92%)",filter:"blur(5px)"}}),(0,Z.tZ)("div",{className:"absolute bottom-[-3px] right-[-3px] z-[-10]",style:{width:273,height:249,transform:"rotate(180deg)",borderRadius:"20px 0px 200px 0px",background:"linear-gradient(138deg, #3CA2F6 5.68%, rgba(0, 18, 33, 0.00) 64.92%)",filter:"blur(5px)",WebkitFilter:"blur(5px)"}})]}),(0,Z.BX)("div",{className:(0,es.cn)("<sm:pt-sm size-full rounded-5",S?"bg-[rgba(18,18,19,.6)]":"bg-[#101111]",r&&"!bg-[rgba(18,18,19,.8)]"),children:[(0,Z.tZ)("div",{className:(0,es.cn)("absolute right-0 top-0 bg-#00CFFF66 font-600 py-1 px-5 rd-lb-5 rd-rt-4.5",h),hidden:!m,children:m}),(0,Z.BX)("div",{className:"px-10 pt-7 <sm:!px-6 <sm:pt-0 shift-left",children:[(0,Z.BX)("div",{className:(0,es.cn)("flex items-center mb-1 font-semibold text-7 <sm:text-6",(null==b?void 0:b.titleRight)?"":"justify-between"),children:[n,null==b?void 0:b.titleRight,g&&(0,Z.tZ)("div",{className:"flex-center sm:mr-[30px] p-[1px] w-[140px] h-[30px] font-normal text-base text-[#C7E6FF]",style:{background:"conic-gradient(\n    from -75deg at 50% 50%,\n    #7ACAFF 45deg,\n    #003C5F 165deg,\n    #7ACAFF 175deg,\n    #003C5F 345deg,\n    #7ACAFF 360deg\n  )",borderRadius:"6px"},children:(0,Z.tZ)("div",{className:"flex-center size-full rounded-[6px] bg-[#121213]",children:g})})]}),(0,Z.tZ)("div",{className:"text-sm text-[#bdbfc1] <sm:text-[13px]",children:l}),(0,Z.BX)("div",{className:(0,es.cn)("flex items-end gap-3",_&&"justify-between"),children:[(0,Z.BX)("span",{className:"whitespace-nowrap text-[52px] text-white font-600 <sm:text-10",children:[w.rich(E?"price-per-day":"price-per-month",{price:E?(0,tb.z)(P,s):P,a:e=>(0,Z.tZ)("span",{className:"sm:text-[50px] font-400",children:e}),u:e=>(0,Z.tZ)("span",{className:"c-gray4Text font-400 text-[22px] <sm:text-base plan-item-a-unit-label",children:e}),span:e=>(0,Z.tZ)("span",{className:"font-400 c-gray4Text text-2xl <sm:text-base plan-item-a-unit-label",children:e})}),(0,Z.BX)("span",{className:"ml-2.5 font-400 text-2xl <sm:ml-2 <sm:text-lg text-gray3 line-through plan-item-a-unit-label",hidden:!M,children:[k.symbol,E?(0,tb.z)(M,er.ZF.Monthly):M]})]}),(null==d?void 0:d.show)&&(0,Z.tZ)("div",{className:(0,es.cn)("bg-#1d2329 flex-center flex-col rounded",_?"justify-between w-8 h-12":"gap-1.5 w-5.5 h-9.5"),style:{transform:_?"translateY(-15%)":"translateY(-50%)"},children:[{icon:tg,key:"plus",disabled:A===(null==d?void 0:d.max)},{icon:tg,key:"minus",disabled:A===(null==d?void 0:d.min)}].map(e=>{let t="plus"===e.key;return(0,Z.tZ)("div",{className:"flex-1 flex-center",onClick:()=>{var n,r,i;if(e.disabled)return;let a=tJ.Z(t?A+1:A-1,null!==(r=null==d?void 0:d.min)&&void 0!==r?r:Number.NEGATIVE_INFINITY,null!==(i=null==d?void 0:d.max)&&void 0!==i?i:Number.POSITIVE_INFINITY);null==d||null===(n=d.onVariantChange)||void 0===n||n.call(d,a),t?N.increment():N.decrement
1()},children:(0,Z.tZ)(e.icon,{className:(0,es.cn)("size-3 sm:select-none",e.disabled?"cursor-not-allowed c-gray3":"cursor-pointer c-white"),style:{transform:t?void 0:"rotate(180deg)"}})},e.key)})})]}),(0,Z.tZ)("div",{className:"text-4 c-gray3 <sm:text-sm",children:F})]}),(0,Z.tZ)("div",{className:"px-10 py-5 <sm:px-6 <sm:pt-4",children:(0,Z.tZ)(ea.u,{label:p,withArrow:!0,disabled:!p,multiline:!0,w:340,children:(0,Z.tZ)("div",{children:(0,Z.tZ)(ec.Y,{suppressHydrationWarning:!0,fullWidth:!0,className:(0,es.cn)("text-lg font-semibold rounded-[10px] border-none transition-opacity h-50px <sm:h-40px <sm:text-4",!r&&!(null==o?void 0:o.disabled)&&"!bg-[#3ca2f6]",(null==o?void 0:o.loading)&&"!bg-[#3ca2f6]",!(null==o?void 0:o.disabled)&&"hover:opacity-95","fr"===C&&"text-19px"),style:!r||(null==o?void 0:o.disabled)?void 0:{borderRadius:"10px",backgroundColor:"transparent",backgroundImage:"linear-gradient(271deg, #4A62FF -21.87%, #52A8FF 28.26%, #54BEFF 71.12%, #8FCDFF 100%)"},...t0.Z(o,"text"),onClick:()=>{var e;null==o||null===(e=o.onClick)||void 0===e||e.call(o)},children:null==o?void 0:o.text})})})}),null==b?void 0:b.buttonBottom,(0,Z.tZ)("div",{className:"flex flex-col gap-y-4 pl-[46px] pt-[25px] pb-7 flex-1 rd-b-5 <sm:!px-6 <sm:pt-0 shift-left",children:null==u?void 0:null===(t=u.map)||void 0===t?void 0:t.call(u,(e,t)=>(0,Z.BX)("div",{className:"text-xs sm:text-sm",children:[(0,Z.tZ)("div",{className:"font-semibold",children:e.title}),(0,Z.tZ)("ul",{className:"m-0 pl-6 list-none",children:e.list.map((e,t)=>(0,Z.tZ)("li",{css:(0,tK.iv)(t3(),W.Z.gray4Text,W.Z.gray4Text),children:e},t))})]},t))})]})]})};n(27466);var t6=n(19236),t7=n(87563),t8=n(17568),t9=n(75506),ne=n(35205),nt=n(49849);function nn(){let e=(0,k._)(["Lite"]);return nn=function(){return e},e}function nr(){let e=(0,k._)(["Premium"]);return nr=function(){return e},e}function ni(){let e=(0,k._)(["credits"]);return ni=function(){return e},e}function na(){let e=(0,k._)(["Fixed credit amount"]);return na=function(){return e},e}function no(){let e=(0,k._)(["\n        ","\n\n        ","\n      "]);return no=function(){return e},e}function nl(){let e=(0,k._)(["Most Popular"]);return nl=function(){return e},e}function ns(){let e=(0,k._)(["Save ",""]);return ns=function(){return e},e}function nc(){let e=(0,k._)(["compared to monthly"]);return nc=function(){return e},e}function nu(){let e=(0,k._)(["FAST GENERATION"]);return nu=function(){return e},e}function nd(){let e=(0,k._)(["Access essential AI models"]);return nd=function(){return e},e}function np(){let e=(0,k._)(["UNLIMITED RELAXED GENERATION"]);return np=function(){return e},e}function nm(){let e=(0,k._)(["CREATION TOOLS"]);return nm=function(){return e},e}function nf(){let e=(0,k._)(["Limited model access"]);return nf=function(){return e},e}function nh(){let e=(0,k._)(["All model access"]);return nh=function(){return e},e}function nv(){let e=(0,k._)(["API access"]);return nv=function(){return e},e}function ng(){let e=(0,k._)(["USAGE RIGHTS"]);return ng=function(){return e},e}function nb(){let e=(0,k._)(["Top up credits anytime when you need more"]);return nb=function(){return e},e}function nx(){let e=(0,k._)(["Private, watermark-free commercial use"]);return nx=function(){return e},e}function ny(){let e=(0,k._)(["Priority support"]);return ny=function(){return e},e}let n_={[er.k9.Premium]:3300,[er.k9.Premium2]:6600,[er.k9.Premium3]:10500},nw=[3300,6600,10500],nC=e=>{var t,n;let{item:r,active:i,planInterval:a,buttonProps:o,tooltip:l,compareMonthlyPrice:s,totalBillingDesc:c,discountPercent:u,tag:d,tagClassName:p,titleRight:m,buttonBottom:f,className:h,reserveTotalBillingSpace:v,onMouseEnter:g,onMouseLeave:b}=e,x=(0,L.NT)(),{currencyInfo:y}=U.$.useSnapshot(),{isLite5test:_,isLite7Test:w,isPricingDailyPriceDisplay:C}=(0,tx.X)(),{isMobile:A}=(0,ti.k)(),[N,S]=(0,O.useState)(0),k=r.type,E=r.planGroupItem.type||r.type,I=a===er.ZF.Yearly,P=Math.round(r.planGroupItem[a]*y.rate),M="number"==typeof s?Math.round(s*y.rate):void 0,B=x(k===er.k9.Standard?nn():k===er.k9.Pro?"pro":nr()),T=I&&n_[E]?n_[E]:r.planGroupItem.monthlyCredit,F=c||(I?x("usd-billed-annually",{price:"".concat(y.symbol).concat((12*P).toLocaleStr
1ing())}):void 0),D=nS(r.planGroupItem[a],T),q=u||D,z=Math.round((("number"==typeof s?s:r.planGroupItem[er.ZF.Monthly])-r.planGroupItem[er.ZF.Yearly])*12*y.rate),R=nk(I&&(0,er.Sm)(k)?nw:null===(t=r.creditControl)||void 0===t?void 0:t.marks),W=nE(E,x),Y=!!(null==o?void 0:o.disabled),G=Math.floor(T/(_||w?2:5)),X=Math.floor(T/2),V=x.rich("≈ {0} videos or {1} images",{0:G.toLocaleString(),1:X.toLocaleString(),video:e=>(0,Z.tZ)("span",{className:"font-500 text-[#B6BCC2]",children:e}),image:e=>(0,Z.tZ)("span",{className:"font-500 text-[#B6BCC2]",children:e})});(0,O.useEffect)(()=>{var e,t;null===(t=r.creditControl)||void 0===t||null===(e=t.onChange)||void 0===e||e.call(t,N)},[N]);let j=(0,Z.BX)("div",{className:"mt-7 flex min-h-[156px] flex-col rounded-[17px] bg-[rgba(80,87,102,0.2)] px-5 py-5 <sm:mt-6 <sm:min-h-[148px] <sm:rounded-[14px]",children:[(0,Z.BX)("div",{className:"flex items-baseline gap-1 text-base text-[#F4F7FA] <sm:text-sm",children:[(0,Z.tZ)(nA,{className:"h-[13px] w-4 shrink-0 text-white"}),(0,Z.BX)("span",{className:"text-base font-600 leading-none text-[#F4F7FA]",children:[null==T?void 0:T.toLocaleString()," ",x(ni())]}),(0,Z.tZ)("span",{children:x("price-period-monthly-short")})]}),(0,Z.BX)("div",{className:"mt-2 flex min-w-0 flex-wrap items-center gap-1 text-sm leading-5 text-[#70757C] <sm:text-xs",children:[(0,Z.tZ)("span",{className:"min-w-0",children:V}),(0,Z.tZ)(ea.u,{label:x("pricing-actual-usage-varies"),withArrow:!0,multiline:!0,w:280,children:(0,Z.tZ)(t8.Z,{className:"ml-1 size-3.5 text-[#AEB4BC]"})})]}),(null===(n=r.creditControl)||void 0===n?void 0:n.show)&&R.length?(0,Z.tZ)("div",{className:"mt-6 px-1 pb-2",children:(0,Z.tZ)(t7.i,{min:r.creditControl.min,max:r.creditControl.max,step:1,value:N,onChange:e=>{if(e!==N){var t,n;null===(n=r.creditControl)||void 0===n||null===(t=n.onVariantChange)||void 0===t||t.call(n,e)}S(e)},marks:R,label:null,thumbChildren:(0,Z.tZ)(t9.Z,{size:14,strokeWidth:3,className:"text-[#262B30]"}),classNames:{mark:"hidden",markLabel:"text-[#70757C] text-xs mt-3",thumb:"flex-center"},styles:{track:{backgroundColor:"#474E56",height:5},bar:{backgroundColor:"#3CA2F6",height:5},thumb:{width:24,height:24,border:0,backgroundColor:"#fff",boxShadow:"none"}}})}):(0,Z.tZ)("div",{className:"mt-4 flex h-12 items-center justify-center rounded-[12px] bg-[rgba(80,87,102,0.2)] px-4 text-center text-sm text-[#70757C]",children:x(na())})]});return(0,Z.BX)("article",{onMouseEnter:g,onMouseLeave:b,className:(0,es.cn)("relative isolate flex min-h-[1324px] w-100 flex-col rounded-5 border border-solid border-[#373D42] bg-[rgba(18,18,19,0.6)] text-[#F4F7FA] transition-transform duration-200 will-change-transform <sm:min-h-0 <sm:w-full <sm:rounded-[18px]",!i&&"sm:mt-12",h),css:(0,tK.iv)(no(),i?'\n          &::before,\n          &::after {\n            content: "";\n            position: absolute;\n            z-index: -1;\n            width: 273px;\n            height: 249px;\n            pointer-events: none;\n            border-top-left-radius: 20px;\n            border-bottom-right-radius: 200px;\n            filter: blur(5px);\n            -webkit-filter: blur(5px);\n            opacity: 0.55;\n            background: linear-gradient(135deg, #3CA2F6 0%, rgba(0, 18, 33, 0.00) 50%);\n          }\n\n          &::before {\n            left: -4px;\n            top: -4px;\n          }\n\n          &::after {\n            right: -4px;\n            bottom: -4px;\n            transform: rotate(180deg);\n          }\n\n          .pricing-unlimited-border-highlight {\n            position: absolute;\n            inset: -1px;\n            z-index: 0;\n            padding: 1px;\n            pointer-events: none;\n            border-radius: inherit;\n            opacity: 0.82;\n            background:\n              radial-gradient(\n                600px 600px at 0 0,\n                #00cfff 0%,\n                rgba(54, 199, 243, 0.72) 18%,\n                rgba(54, 199, 243, 0.24) 44%,\n                rgba(54, 199, 243, 0) 72%\n              ),\n              radial-gradient(\n                600px 600px at 100% 100%,\n                #00cfff 0%,\n                rgba(54, 199, 243, 0.78) 18%,\n                rgba(54, 199, 243, 0.28) 46%,\n                rgba(54, 199, 243, 0) 74%\n              );\n            -webkit-mask:\n              linear-gradient(#000 0 0) content-box,\n              linear-gradient(#000 0 0);\n            -webkit-mask-composite: xor;\n            mask:\n              linear-gradient(#000 0 0) content-box,\n              linear-gradient(#000 0 0);\n            mask-composite: exclude;\n          }\n        ':"",A?"":"\n          &:hover {\n            transform: translateY(-12px);\n          }\n        "),children:[i&&(0,Z.tZ)("span",{className:"pricing-unlimited-border-highlight","aria-hidden":!0}),i&&(0,Z.tZ)("div",{className:"relative z-1 flex h-12 shrink-0 items-center justify-center rounded-t-[20px] bg-[linear-gradient(99deg,rgba(143,205,255,0.6)_0%,rgba(74,98,255,0.6)_100%)] text-lg text-white <sm
1:h-10 <sm:rounded-t-[18px] <sm:text-sm",children:x(nl())}),(0,Z.BX)("div",{className:"relative z-1 flex flex-1 flex-col px-[30px] pb-7 pt-[30px] <lg:px-7 <sm:px-6 <sm:pb-6 <sm:pt-5",children:[d&&(0,Z.tZ)("div",{className:(0,es.cn)("absolute right-0 top-0 z-2 rounded-bl-[20px] rounded-tr-[18px] bg-[linear-gradient(90deg,#9652EC_0%,#E8399E_100%)] px-5 py-1 text-sm font-600 text-white",i&&"rounded-tr-none",p),children:d}),(0,Z.BX)("div",{className:"pl-4 <sm:pl-0",children:[(0,Z.BX)("div",{children:[(0,Z.BX)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,Z.tZ)("h3",{className:"m-0 text-[28px] font-semibold leading-tight <sm:text-6",children:B}),q?(0,Z.BX)("div",{className:"shrink-0 whitespace-nowrap rounded-full bg-[rgba(60,162,246,0.3)] px-2.5 py-1 text-xs font-800 italic text-[#3CA2F6]",children:[q,"% ",x("off").toUpperCase()]}):null,m]}),(0,Z.tZ)("p",{className:"mb-0 mt-2 min-h-5 text-sm text-[#BDBFC1] <sm:text-[13px]",children:r.subTitle})]}),(0,Z.BX)("div",{className:"mt-8 flex min-w-0 flex-wrap items-end gap-y-2 <sm:mt-7",children:[(0,Z.BX)("span",{className:"text-[52px] font-600 leading-none tracking-0 text-white <sm:text-10",children:[y.symbol,C?(0,tb.z)(P,a):P]}),(0,Z.tZ)("span",{className:"pb-1 text-[22px] font-400 leading-none text-[#BDBFC1] <sm:text-base",children:x(C?"price-period-daily-short":"price-period-monthly-short")}),M&&(0,Z.BX)("span",{className:"ml-2.5 text-2xl font-400 text-[#686E78] line-through <sm:text-lg",children:[y.symbol,C?(0,tb.z)(M,er.ZF.Monthly):M]})]}),(F||v)&&(0,Z.tZ)("div",{className:(0,es.cn)("mt-3 min-h-[24px] text-base text-[#69717C] <sm:min-h-[20px] <sm:text-sm",!F&&"invisible"),children:F})]}),j,(0,Z.tZ)(ea.u,{label:l,disabled:!l,withArrow:!0,multiline:!0,w:340,children:(0,Z.tZ)("div",{className:"mt-5",children:(0,Z.tZ)(tp.Button,{fullWidth:!0,className:(0,es.cn)("h-50px rounded-[10px] border-none text-lg font-semibold transition-colors duration-200 <sm:h-40px <sm:text-4",Y?"!bg-[#262A32] !text-[#A6A8AB] hover:!bg-[#262A32]":i?"!bg-[linear-gradient(271deg,#4A62FF_-21.87%,#52A8FF_28.26%,#54BEFF_71.12%,#8FCDFF_100%)] !text-white shadow-[inset_0_0_4px_rgba(255,255,255,0.5)] hover:!bg-[linear-gradient(271deg,#536AFF_-21.87%,#5AAEFF_28.26%,#60C4FF_71.12%,#9BD3FF_100%)]":"!bg-[#3CA2F6] !text-white hover:!bg-[#4BAAF7]"),...ty.Z(o,"text"),onClick:()=>{var e;return null==o?void 0:null===(e=o.onClick)||void 0===e?void 0:e.call(o)},children:null==o?void 0:o.text})})}),I&&z>0&&(0,Z.BX)("div",{className:"mt-4 text-center text-sm text-[#70757C] <sm:text-xs",children:[(0,Z.tZ)("span",{className:"font-500 text-[#F4F7FA]",children:x(ns(),"".concat(y.symbol).concat(z))})," ",x(nc())]}),f,(0,Z.tZ)("div",{className:"mx-auto mt-7 flex w-80 flex-col gap-5 border-0 border-t border-solid border-[#2B2E31] pb-2 pt-6 <sm:w-full <sm:pb-4",children:W.map((e,t)=>(0,Z.tZ)("div",{className:"text-xs sm:text-sm","data-pricing-feature-group-index":t,style:{minHeight:"var(--pricing-feature-group-".concat(t,"-height, auto)")},children:(0,Z.BX)("div",{"data-pricing-feature-group-content-index":t,children:[(0,Z.BX)("div",{className:"mb-2 flex items-center gap-1 font-semibold uppercase leading-[30px] text-[#F0F3F5]",children:[e.title,e.info&&(0,Z.tZ)(ea.u,{label:e.info,withArrow:!0,multiline:!0,w:300,children:(0,Z.tZ)(t8.Z,{className:"size-3.5 text-[#8B97A5]"})})]}),(0,Z.tZ)("div",{className:"flex flex-col gap-2.5",children:e.items.map((e,t)=>(0,Z.tZ)(nN,{included:e.included,label:e.label},t))})]})},t))})]})]})},nA=e=>(0,Z.tZ)("svg",{viewBox:"0 0 16 13",fill:"none","aria-hidden":"true",...e,children:(0,Z.tZ)("path",{d:"M0 4.5L4 0.5H12L16 4.5L8 12.5L0 4.5Z",fill:"currentColor"})}),nN=e=>{let{label:t,included:n=!0}=e;return(0,Z.BX)("div",{className:(0,es.cn)("grid grid-cols-[20px_1fr] items-start gap-1.5 text-sm leading-5 <sm:text-sm",n?"text-[#BDBFC1]":"text-[#69717C]"),children:[(0,Z.tZ)("span",{className:(0,es.cn)("mt-px flex size-5 items-center justify-center",n?"text-[#BDBFC1]":"text-[#69717C]"),children:n?(0,Z.tZ)(ne.Z,{size:14,strokeWidth:1.8}):(0,Z.tZ)(nt.Z,{size:12})}),(0,Z.tZ)("span",{children:t})]})},nS=(e,t)=>{if(!t)return;let n=Math.round((1-e/t/.07)*100);return n>0?n:void 0},nk=e=>(null==e?void 0:e.map((e,t)=>
1({value:t,label:e.toLocaleString()})))||[],nZ=e=>(0,Z.tZ)("strong",{className:"font-600 text-[#F4F7FA]",children:e}),nE=(e,t)=>{let n=(0,er.Dz)(e),r=(0,er.Sm)(e);return[{title:t(nu()),items:[{label:t.rich("pricing-fast-generation-use-credits",{strong:nZ})},{label:n?t(nd()):t.rich("pricing-fast-generation-powered-by-top-models",{strong:nZ})}]},{title:t(np()),info:t("pricing-relaxed-generation-tooltip"),items:[{label:"NANO BANANA PRO",included:!n},{label:"NANO BANANA 2",included:!n},{label:"GPT Image 2",included:r},{label:"Seedance 1.5 Pro",included:r}]},{title:t(nm()),items:[{label:n?t.rich("Creation Agent powered by essential models",{strong:nZ}):t.rich("Smarter Creation Agent powered by Claude & GPT models",{strong:nZ})},{label:t.rich("Unlimited Agent chat for creative support",{strong:nZ})},{label:t.rich("count-concurrent-tasks",{count:r?10:5,strong:nZ})},{label:t.rich("count-queued-tasks",{count:r?50:20,strong:nZ})},{label:t(n?nf():nh())},...n?[]:[{label:t(nv())}],{label:t.rich("Video, image, audio generation & editing",{strong:nZ})}]},{title:t(ng()),items:[{label:t(nb())},{label:t(nx())},{label:t.rich("storage-size",{size:r?"1TB":n?"50GB":"500GB",strong:nZ})},...r?[{label:t(ny())}]:[]]}]};var nI=n(46854);let nP=()=>{let{defaultMode:e,modeEnabled:t}=(0,O.useMemo)(()=>({defaultMode:nI.O.QUALITY,modeEnabled:!0}),[]);return{defaultMode:e,modeEnabled:t}};var nM=n(76246),nB=n(16987);function nT(){let e=(0,k._)(["Up to "," videos or "," images"]);return nT=function(){return e},e}function nF(){let e=(0,k._)(["Massive Storage"]);return nF=function(){return e},e}function nD(){let e=(0,k._)(["Text-to-Image & Image-to-Image"]);return nD=function(){return e},e}function nq(){let e=(0,k._)(["Batch generation (up to 4 images)"]);return nq=function(){return e},e}function nz(){let e=(0,k._)(["Image & Text-to-Video"]);return nz=function(){return e},e}function nR(){let e=(0,k._)(["Cross-Video Character Consistency"]);return nR=function(){return e},e}function nL(){let e=(0,k._)(["Full AI Toolkit (Extend Video, Avatar)"]);return nL=function(){return e},e}function nO(){let e=(0,k._)(["Lite"]);return nO=function(){return e},e}function nW(){let e=(0,k._)(["For beginners exploring Al video creation and casual content makers"]);return nW=function(){return e},e}function nY(){let e=(0,k._)(["CREDITS"]);return nY=function(){return e},e}function nG(){let e=(0,k._)(["Buy More Credit Packs as Needed"]);return nG=function(){return e},e}function nX(){let e=(0,k._)(["FEATURES"]);return nX=function(){return e},e}function nV(){let e=(0,k._)(["Top-Quality Video Models"]);return nV=function(){return e},e}function nj(){let e=(0,k._)(["Image & Text-to-Video"]);return nj=function(){return e},e}function nU(){let e=(0,k._)(["AI Video Ads, AI Avatar, AI Music"]);return nU=function(){return e},e}function nH(){let e=(0,k._)(["Cross-Video Character Consistency"]);return nH=function(){return e},e}function n$(){let e=(0,k._)(["100+ AI Video Templates and Effects"]);return n$=function(){return e},e}function nQ(){let e=(0,k._)(["Top-Quality Video Models"]);return nQ=function(){return e},e}function nK(){let e=(0,k._)(["Image & Text-to-Video"]);return nK=function(){return e},e}function nJ(){let e=(0,k._)(["100+ Al Video Templates and Effects"]);return nJ=function(){return e},e}function n0(){let e=(0,k._)(["Cross-Video Character Consistency"]);return n0=function(){return e},e}function n1(){let e=(0,k._)(["Al Video Ads, Al Avatar, AI Music"]);return n1=function(){return e},e}function n2(){let e=(0,k._)(["Fast Generation Mode"]);return n2=function(){return e},e}function n5(){let e=(0,k._)(["BENEFITS"]);return n5=function(){return e},e}function n3(){let e=(0,k._)(["No Watermarks"]);return n3=function(){return e},e}function n4(){let e=(0,k._)(["Full Commercial Use"]);return n4=function(){return e},e}function n6(){let e=(0,k._)(["For creators needing higher quality output and increased production capacity"]);return n6=function(){return e},e}function n7(){let e=(0,k._)(["CREDITS"]);return n7=function(){return e},e}function n8(){let e=(0,k._)(["Buy More Credit Packs as Needed"]);return n8=function(){return e},e}function n9(){let e=(0,k._)(["FEATURES"]);return n9=function(){return e},e}function re(){let e=(0,k._)(["Top-Quality Video Models"]);return re=function(){return e},e}function rt(){let e=(0,k._)(["Image & Text-to-Video"]);return rt=function(){return e},e}function rn(){let e=(0,k._)(["AI Video Ads, AI Avatar, AI Music"]);return rn=function(){return e},e}function rr(){let e=(0,k._)(["Cross-Video Character Consistency"]);return rr=function(){return e},e}function ri(){let e=(0,k._)(["100+ AI Video Templates and Effects"]);return ri=function(){return e},e}function ra(){let e=(0,k._)(["Top-Quality Video Models"]);return ra=function(){return e},e}function ro(){let e=(0,k._)(["Image & Text-to-Video"]);return ro=function(){return e},e}function rl(){let e=(0,k._)(["100+ Al Video Templates and Effects"]);return rl=function(){return e},e}function rs(){let e=(0,k._)(["Cross-Video Character Consistency"]);return rs=function(){return e},e}function rc(){let e=(0,k._)(["Al Video Ads, Al Avatar, AI Music"]);return rc=function(){return e},e}function ru(){let e=(0,k._)(["Fast Generation Mode"]);return ru=function(){return e},e}function rd(){let e=(0,k._)(["BENEFITS"]);return rd=function(){return e},e}function rp(){let e=(0,k._)(["No Watermarks"]);return rp=function(){return e},e}function rm(){let e=(0,k._)(["Full Commercial Use"]);return rm=function(){return e},e}function rf(){let e=(0,k._)(["Premium"]);return rf=function(){return e},e}function rh(){let e=(0,k._)(["For high-volume professional users requiring maximum efficiency and value"]);return rh=function(){return e},e}
1function rv(){let e=(0,k._)(["Best Value"]);return rv=function(){return e},e}function rg(){let e=(0,k._)(["CREDITS"]);return rg=function(){return e},e}function rb(){let e=(0,k._)(["Buy More Credit Packs as Needed"]);return rb=function(){return e},e}function rx(){let e=(0,k._)(["FEATURES"]);return rx=function(){return e},e}function ry(){let e=(0,k._)(["Top-Quality Video Models"]);return ry=function(){return e},e}function r_(){let e=(0,k._)(["Image & Text-to-Video"]);return r_=function(){return e},e}function rw(){let e=(0,k._)(["AI Video Ads, AI Avatar, AI Music"]);return rw=function(){return e},e}function rC(){let e=(0,k._)(["Cross-Video Character Consistency"]);return rC=function(){return e},e}function rA(){let e=(0,k._)(["Fast Generation Mode"]);return rA=function(){return e},e}function rN(){let e=(0,k._)(["100+ AI Video Templates and Effects"]);return rN=function(){return e},e}function rS(){let e=(0,k._)(["Top-Quality Video Models"]);return rS=function(){return e},e}function rk(){let e=(0,k._)(["Image & Text-to-Video"]);return rk=function(){return e},e}function rZ(){let e=(0,k._)(["100+ Al Video Templates and Effects"]);return rZ=function(){return e},e}function rE(){let e=(0,k._)(["Cross-Video Character Consistency"]);return rE=function(){return e},e}function rI(){let e=(0,k._)(["Al Video Ads, Al Avatar, AI Music"]);return rI=function(){return e},e}function rP(){let e=(0,k._)(["Fast Generation Mode"]);return rP=function(){return e},e}function rM(){let e=(0,k._)(["BENEFITS"]);return rM=function(){return e},e}function rB(){let e=(0,k._)(["No Watermarks"]);return rB=function(){return e},e}function rT(){let e=(0,k._)(["Full Commercial Use"]);return rT=function(){return e},e}function rF(){let e=(0,k._)(["Priority Support"]);return rF=function(){return e},e}function rD(){let e=(0,k._)(["For beginners & casual makers"]);return rD=function(){return e},e}function rq(){let e=(0,k._)(["For creators scaling quality"]);return rq=function(){return e},e}function rz(){let e=(0,k._)(["For high-volume professional teams"]);return rz=function(){return e},e}let rR=e=>{let{credits:t,videoCount:n,minimumVideoCredit:r,showTtsPricingDesc:i}=e||{},a=(0,L.NT)(),{isFreeTrial:o,remainingFreeCredits:l,dayNo:s}=(0,ek.M)(),c=n+(o&&s<3?Math.floor(l/r):0),u=Math.floor(t/2);return(0,Z.BX)(Z.HY,{children:[(0,Z.tZ)("div",{className:"flex items-center gap-1",children:a.rich("credits-per-monthly",{credits:t,span:e=>(0,Z.BX)("span",{className:"text-[#3ca2f6] font-bold",children:[e,o&&s<3&&"+".concat(l)]}),i:e=>(0,Z.tZ)("span",{className:"text-[#3ca2f6] font-bold",children:e})})}),(0,Z.BX)("div",{className:"flex-center-y gap-2",children:[(0,Z.tZ)("span",{children:a(nT(),c,u)}),(0,Z.tZ)(ea.u,{label:a("fast-model-only-count-credits",{count:r}),withArrow:!0,children:(0,Z.tZ)(t8.Z,{className:"size-4"})})]}),i&&(0,Z.BX)(Z.HY,{children:[(0,Z.tZ)("div",{children:a("tts-pricing-up-to-n-tts-uses",{count:t})}),(0,Z.tZ)("div",{children:a("tts-pricing-up-to-n-music-uses",{count:Math.floor(t/4)})})]})]})},rL=function(){var e;let{enablePricingUnlimitedPackaging:t=!1,pricingEntrySource:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{planGroup:r,showImagePricingModalD:i,planInterval:a,isModal:o}=U.$.useSnapshot(),l=(0,L.NT)(),[s,c]=(0,O.useState)(0),[u,d]=(0,O.useState)(0),[p,m]=(0,O.useState)(0),{modeEnabled:f}=nP(),{userInfo:h,serverGrayConfig:v}=Q.userStore.useSnapshot(),g=l("private-creation"),{isLite5test:b,isLite7Test:x,isShowMassiveStorage:y,isTtsPricingDescTest:_,isPricingUnlimitedExp:w,isPricingDefault:C,isPricingP2:A}=(0,tx.X)(),N=w&&t,S=(0,O.useCallback)(e=>(0,Z.BX)("span",{children:[(0,Z.tZ)("strong",{className:"text-[#3ca2f6]",children:e})," ",l("output")]}),[l]),k=(0,O.useCallback)(e=>y?(0,Z.BX)(Z.HY,{children:[(0,Z.tZ)("span",{className:"text-3.5 font-700 c-primary",children:e})," ",l(nF())]}):null,[y,l]),E=(0,O.useMemo)(()=>{var e,t;if(null==h?void 0:null===(t=h.plan)||void 0===t?void 0:null===(e=t.coupons)||void 0===e?void 0:e.length){let e=(0,nM.Z)(r);return h.plan.coupons.forEach(t=>{let n=t.applicable_plan_name,i=t.applicable_plan_type.toUpperCase();e[n].originalMonthlyPrice=r[n][er.ZF.Monthly],e[n].originalYearlyPrice=r[n][er.ZF.Yearly],e[n][i]=i===er.ZF.Monthly?Number(t.discount_amount)/100:i===er.ZF.Yearly?Number(t.discount_amount)/100/12:void 0,e[n].couponIds={...e[n].couponIds||{},[i]:t.coupon_id}}),e}return r},[null==h?void 0:null===(e=h.plan)||void 0===e?void 0:e.coupons,r]),I=(0,O.useMemo)(()=>{let e=[{...E[er.k9.Pro],type:er.k9.Pro},{...E[er.k9.Pro1],type:er.k9.Pro1},{...E[er.k9.Pro2],type:er.k9.Pro2}];return A?e.slice(1):e},[A,E]),P=Math.min(s,Math.max(I.length-1,0)),M=I[P],B=(0,O.useMemo)(()=>[{...E[er.k9.Lite_5],type:er.k9.Lite_5,hide:!b},{...E[er.k9.Lite_7],type:er.k9.Lite_7,hide:!x},{...E[er.k9.Standard],type:er.k9.Standard,hide:!1}].filter(e=>!e.hide),[b,x,E]),T=(0,O.useMemo)(()=>[{...E[er.k9.Premium],type:er.k9.Premium},{...E[er.k9.Premium2],type:er.k9.Premium2},{...E[er.k9.Premium3],type:er.k9.Premium3}],[E]),F=(0,L.jD)(),D=(0,O.useCallback)((e,r)=>{var i;let l=null===(i=e[r])||void 0===i?void 0:i.type;l&&(0,ed.jW)("pricing_plan_variant_changed",{...tj({context:(0,G.fQ)(v),isModal:o,enablePricingUnlimitedPackaging:t,pricingEntrySource:n}
1),plan_selected:tU(l),billing_interval:tX(a),plan_variant:tH(l)})},[t,o,a,n,v]);return{planListA:(0,O.useMemo)(()=>{var e,t,n,r,o,s;let h=e=>[(0,Z.tZ)("strong",{className:"text-[#3ca2f6]",children:l("model-image-generation",{model:F.includes("model/seedream")?"Seedream 4.0":"Nano Banana"})},"1"),l(nD()),l(nq()),l(nz()),l(nR()),S("1080P"),l(nL())],v=b||x?2:5,y=B[p],w=[{title:l(nO()),subTitle:l(nW()),type:er.k9.Standard,planGroupItem:y,creditControl:{min:0,max:(null==B?void 0:B.length)-1,marks:B.map(e=>e.monthlyCredit),show:b||x,onChange:e=>{m(e)},onVariantChange:e=>{D(B,e)}},tag:(null===(t=E[er.k9.Standard])||void 0===t?void 0:null===(e=t.couponIds)||void 0===e?void 0:e[a])?l("first-time-offer"):void 0,tagClassName:"bg-[linear-gradient(90deg,#9652EC_0%,#E8399E_100%)]",descGroup:[{title:l(nY()),list:[(0,Z.tZ)(rR,{credits:y.monthlyCredit,videoCount:y.monthlyCredit/v,minimumVideoCredit:v,showTtsPricingDesc:_},"credits-monthly"),..._?[]:[l(nG())]]},{title:l(nX()),list:i?h("720P"):_?[l(nV()),l(nj()),l("tts-pricing-feature-tts"),l(nU()),S("720P"),l(nH()),l(n$())]:[l(nQ()),l(nK()),f?S("720P"):void 0,l(nJ()),l(n0()),l(n1()),l(n2())].filter(Boolean)},{title:l(n5()),list:[k("50GB"),g,l(n3()),l(n4())]}]},{title:l("pro"),subTitle:l(n6()),type:er.k9.Pro,planGroupItem:M,creditControl:{min:0,max:(null==I?void 0:I.length)-1,marks:I.map(e=>e.monthlyCredit),show:!0,onChange:e=>{c(e)},onVariantChange:e=>{D(I,e)}},tag:(null===(r=E[M.type])||void 0===r?void 0:null===(n=r.couponIds)||void 0===n?void 0:n[a])?l("first-time-offer"):void 0,tagClassName:"bg-[linear-gradient(90deg,#9652EC_0%,#E8399E_100%)]",descGroup:[{title:l(n7()),list:[(0,Z.tZ)(rR,{credits:M.monthlyCredit,videoCount:M.monthlyCredit/v,minimumVideoCredit:v,showTtsPricingDesc:_},"credits-monthly"),..._?[]:[l(n8())]]},{title:l(n9()),list:i?h("1080P HD"):_?[l(re()),l(rt()),l("tts-pricing-feature-tts"),l(rn()),S("1080P"),l(rr()),l(ri())]:[l(ra()),l(ro()),f?S("1080P"):void 0,l(rl()),l(rs()),l(rc()),l(ru())].filter(Boolean)},{title:l(rd()),list:[k("500GB"),g,l(rp()),l(rm())]}]},{title:l(rf()),subTitle:l(rh()),type:er.k9.Premium,planGroupItem:T[u],titleTag:l(rv()),tag:(null===(s=E[T[u].type])||void 0===s?void 0:null===(o=s.couponIds)||void 0===o?void 0:o[a])?l("first-time-offer"):void 0,tagClassName:"bg-[linear-gradient(90deg,#9652EC_0%,#E8399E_100%)]",creditControl:N?{min:0,max:T.length-1,marks:T.map(e=>e.monthlyCredit),show:!0,onChange:e=>{d(e)},onVariantChange:e=>{D(T,e)}}:void 0,descGroup:[{title:l(rg()),list:[(0,Z.tZ)(rR,{credits:T[u].monthlyCredit,videoCount:T[u].monthlyCredit/v,minimumVideoCredit:v,showTtsPricingDesc:_},"credits-monthly"),..._?[]:[l(rb())]]},{title:l(rx()),list:i?h("1080P HD"):_?[l(ry()),l(r_()),l("tts-pricing-feature-tts"),l(rw()),S("1080P"),l(rC()),l(rA()),l(rN())]:[l(rS()),l(rk()),f?S("1080P"):void 0,l(rZ()),l(rE()),l(rI()),l(rP())].filter(Boolean)},{title:l(rM()),list:[k("1TB"),g,l(rB()),l(rT()),l(rF())]}]}];return N&&(w=[{...w[0],subTitle:l(rD())},{...w[1],subTitle:l(rq())},{...w[2],subTitle:l(rz())}]),w=nB.Z(w,"sort","desc"),C||(w=w.filter(e=>!(0,er.Dz)(e.type))),w},[b,x,l,B,p,E,a,i,f,S,k,g,I,M,T,u,F,_,C,N,D])}};function rO(){let e=(0,k._)(["$0 today-$","/yr after 3-day free trial"]);return rO=function(){return e},e}function rW(){let e=(0,k._)(["$0 today-$","/mo after 3-day free trial"]);return rW=function(){return e},e}let rY=e=>{var t,n;let{item:r,planInterval:i,currencyInfo:a,canFreeTrial:o,t:l}=e;if(o){let e=Math.round(r.planGroupItem[i]*a.rate);return(i===er.ZF.Yearly?l(rO(),12*e):l(rW(),e)).replaceAll("$",a.symbol)}return i===er.ZF.Monthly&&r.planGroupItem.originalMonthlyPrice&&(null===(t=r.planGroupItem.couponIds)||void 0===t?void 0:t[er.ZF.Monthly])?l("first-month-usd-then-usd-mo",{price1:Math.round(r.planGroupItem[er.ZF.Monthly]*a.rate),price2:Math.round(r.planGroupItem.originalMonthlyPrice*a.rate)}).replaceAll("$",a.symbol).replaceAll("USD",a.label):i===er.ZF.Yearly&&r.planGroupItem.originalYearlyPrice&&(null===(n=r.planGroupItem.couponIds)||void 0===n?void 0:n[er.ZF.Yearly])?l("first-year-usd-then-usd-yr",{price1:Math.round(12*r.planGroupItem[er.ZF.Yearly]*a.rate),price2:Math.round(12*r.planGroupItem.originalYearlyPrice*a.rate)}).replaceAll("$",a.symbol).replaceAll("USD",a.label):i===er.ZF.Yearly?l("usd-billed-annually",{price:"".concat(a.symbol).concat(Math.round(12*r.planGroupItem[er.ZF.Yearly]*a.rate).toLocaleStr
1ing())}):l("usd-billed-monthly",{price:"".concat(a.symbol).concat(Math.round(r.planGroupItem[er.ZF.Monthly]*a.rate).toLocaleString())})};function rG(){let e=(0,k._)(["Start Trial & Get "," Credits! Try all features for free"]);return rG=function(){return e},e}function rX(){let e=(0,k._)(["Convert to Subscription & Extend "," Credits Validity! Credits expire if trial canceled."]);return rX=function(){return e},e}function rV(){let e=(0,k._)(["Convert to Subscription & Get "," Extra Credits! Free trial exclusive"]);return rV=function(){return e},e}function rj(){let e=(0,k._)(["Trial"]);return rj=function(){return e},e}function rU(){let e=(0,k._)(["Subscription already exists on another device. Cannot modify from here currently."]);return rU=function(){return e},e}function rH(){let e=(0,k._)(["You're already subscribed to a higher-tier plan, so lower tiers can't be selected"]);return rH=function(){return e},e}function r$(){let e=(0,k._)(["$0 today-$","/yr after 3-day free trial"]);return r$=function(){return e},e}function rQ(){let e=(0,k._)(["$0 today-$","/mo after 3-day free trial"]);return rQ=function(){return e},e}function rK(){let e=(0,k._)(["Subscription already exists on another device. Cannot modify from here currently."]);return rK=function(){return e},e}function rJ(){let e=(0,k._)(["You're already subscribed to a higher-tier plan, so lower tiers can't be selected"]);return rJ=function(){return e},e}let r0=e=>{var t,n;let{classNames:r,getButtonText:i,getEnButtonText:a,getIsButtonDisabled:o,subBtnClick:l,btnLoading:s,enablePricingUnlimitedPackaging:c=!1,pricingEntrySource:u,pricingEngagement:d}=e,[p,m]=(0,O.useState)(0),{planListA:f}=rL({enablePricingUnlimitedPackaging:c,pricingEntrySource:u}),{userInfo:h}=Q.userStore.useSnapshot(),{planInterval:v,currencyInfo:g}=U.$.useSnapshot(),b=(0,L.NT)(),[x,y]=(0,O.useState)(null),_=f.length,w=!!(null==h?void 0:null===(n=h.plan)||void 0===n?void 0:null===(t=n.coupons)||void 0===t?void 0:t.length),{canFreeTrial:C,remainingFreeCredits:A,dayNo:N}=(0,ek.M)(),{isPricingUnlimitedExp:S}=(0,tx.X)(),k=S&&c,E=e=>rY({item:e,planInterval:v,currencyInfo:g,canFreeTrial:C,t:b}),I=v===er.ZF.Monthly&&f.some(e=>!!E(e));return(0,Z.BX)("div",{className:(0,es.cn)(null==r?void 0:r.root),children:[(0,Z.BX)("div",{className:(0,es.cn)("flex items-center justify-between my-6",null==r?void 0:r.indicatorWrapper),children:[(0,Z.tZ)("div",{className:"flex-center  size-7 rounded-full bg-[#383a3b]",onClick:()=>{null==x||x.scrollPrev()},children:(0,Z.tZ)(t6.web,{size:12,color:"#fff"})}),(0,Z.tZ)("div",{className:"flex-center gap-x-2.5",children:Array.from({length:_}).map((e,t)=>(0,Z.tZ)("div",{className:(0,es.cn)("size-2 rounded-full bg-[#383A3B] cursor-pointer",t===p&&"bg-white"),onClick:()=>{null==x||x.scrollTo(t)}},t))}),(0,Z.tZ)("div",{className:"flex-center size-7 rounded-full bg-[#383a3b]",onClick:()=>{null==x||x.scrollNext()},children:(0,Z.tZ)(t6.GmF,{size:12,color:"#fff"})})]}),(0,Z.tZ)(e6.l,{withIndicators:!1,withControls:!1,height:k?"auto":800,slideSize:"85%",slideGap:16,getEmblaApi:y,loop:!0,align:"center",initialSlide:0,onSlideChange:e=>{m(e)},children:f.map((e,t)=>{var n,r,c,u,m,f,g;let x,y;let _=e.planGroupItem.type||e.type,S=t$({planType:_,planInterval:v}),P=e.type===er.k9.Pro,M=o(_),B=i(_),T=a(_),F=_===(null==h?void 0:null===(n=h.plan)||void 0===n?void 0:n.type)&&v===(null==h?void 0:null===(r=h.plan)||void 0===r?void 0:r.interval);C?x=b(rG(),70):(null==h?void 0:null===(c=h.plan)||void 0===c?void 0:c.isFreeTrial)&&F&&(x=3===N?b(rX(),70):b(rV(),A),y=(0,Z.tZ)("div",{className:"bg-#1D364C rd-1.5 lh-5.5 px-1 c-primary font-600 text-4 ml-2",children:b(rj())}));let D=w&&(null===(m=e.planGroupItem)||void 0===m?void 0:null===(u=m.couponIds)||void 0===u?void 0:u[v])&&!(e.type===er.k9.Pro&&v===er.ZF.Monthly),q=D?(0,eA.l)({planGroup:{currentPricePerMonth:v===er.ZF.Yearly?e.planGroupItem.YEARLY:e.planGroupItem.MONTHLY,originalPricePerMonth:e.planGroupItem.originalMonthlyPrice},planInterval:v}):void 0;return k?(0,Z.tZ)(e6.l.Slide,{className:"flex justify-center py-2",children:(0,Z.tZ)(nC,{item:e,active:e.type===er.k9.Premium,planInterval:v,compareMonthlyPrice:v===er.ZF.Yearly?e.planGroupItem.originalMonthlyPrice||e.planGroupItem[er.ZF.Monthly]:void 0,totalBillingDesc:E(e),reserveTotalBillingSpace:I,discountPercent:q,tag:e.tag,tagClassName:e.tagClassName,titleRight:y,className:"!w-auto",tooltip:M?(null==h?void 0:null===(g=h.plan)||void 0===g?void 0:g.isApp)?b(rU()):b(rH()):void 0,buttonBottom:x&&(0,Z.tZ)("div",{className:"mt-4 rounded-[10px] bg-[#ffffff0d] px-4 py-3 text-sm font-700 text-[#45A8FF]",children:x}),onMouseEnter:()=>null==d?void 0:d.startHover(S),onMouseLeave:()=>null==d?void 0:d.endHover(tY.MOUSE_LEAVE),buttonProps:{disabled:M,text:B,loading:s,onClick:()=>{(0,ed.jW)("button_click",{button_name:T},{forceReport:!0}),null==d||d.endHover(tY.CARD_CLICK),l(e)}}})},e.type):(0,Z.tZ)(e6.l.Slide,{className:"py-2",children:(0,Z.tZ)(t4,{className:"!w-auto h-full",descGroup:e.descGroup,planInterval:v,price:e.planGroupItem[v],credit:e.planGroupItem.monthlyCredit,title:D?(0,Z.BX)("div",{className:"flex items-center gap-x-[7px] w-fit",children:[e.title,(0,Z.BX)("div",{className:"flex-center px-2 h-[29px] rounded bg-[#1b232a] text-primary text-base font-semibold",children:[(0,eA.l)({planGroup:{currentPricePerMonth:v===er.ZF.Yearly?e.planGroupItem.YEARLY:e.planGroupItem.MONTHLY,originalPricePerMonth:e.planGroupItem.originalMonthlyPrice},planInterval:v}),"% ",b("off")]})]}):e.title,subTitle:e.subTitle,tag:e.tag,tagClassName:e.tagClassName,titleTag:e.titleTag,active:P&&t===p,compareMonthlyPrice:v===er.ZF.Yearly?e.planGroupItem.originalMonthlyPrice||e.planGroupItem[er.ZF.Monthly]:void 0,totalBillingDesc:(()=>{var t,n;if(C){let t=e.planGroupItem[v];return v===er.ZF.Yearly?b(r$(),12*t):b(rQ(),t)}return v===er.ZF.Monthly&&e.planGroupItem.originalMonthlyPrice&&(null===(t=e.planGroupItem.couponIds)||void 0===t?void 0:t[er.ZF.Monthly])?b("first-month-usd-then-usd-mo",{price1:e.planGroupItem[er.ZF.Monthly],price2:e.planGroupItem.originalMonthlyPrice}):v===er.ZF.Yearly&&e.planGroupItem.originalYearlyPrice&&(null===(n=e.planGroupItem.couponIds)||void 0===n?void 0:n[er.ZF.Yearly])?b("first-year-usd-then-usd-yr",{price1:12*e.planGroupItem[er.ZF.Yearly],price2:12*e.planGroupItem.originalYearlyPrice}):void 0})(),creditControl:e.creditControl,tooltip:M?(null==h?void 0:null===(f=h.plan)||void 0===f?void 0:f.isApp)?b(rK()):b(rJ()):void 0,slot:{buttonBottom:x&&(0,Z.BX)("div",{className:"mx-6 text-3.5 font-600 c-primary flex gap-1.5 bg-#ffffff0d rd-2.5 pa-3 items-baseline mb-6",children:[(0,Z.tZ)(ew.nb,{className:"w-3.5"}),(0,Z.tZ)("div",{className:"flex-1",children:x})]}),titleRight:y},onMouseEnter:()=>null==d?void 0:d.startHover(S),onMouseLeave:()=>null==d?void 0:d.endHover(tY.MOUSE_LEAVE),buttonProps:{disabled:M,text:B,loading:s,onClick:()=>{(0,ed.jW)("button_click",{button_name:T},{forceReport:!0}),null==d||d.endHover(tY.CARD_CLICK),l(e)}}})},e.type)})})]})};var r1=n(74850);function r2(){let e=(0,k._)(["Start for $O"]);return r2=function(){return e},e}function r5(){let e=(0,k._)(["Subscribe"]);return r5=function(){return e},e}function r3(){let e=(0,k._)(["Convert to Subscription"]);return r3=function(){return e},e}function r4(){let e=(0,k._)(["Best AI Video & Image Generator"]);return r4=function(){return e},e}function r6(){let e=(0,k._)(["Start Trial & Get "," Credits! Try all features for free"]);return r6=function(){return e},e}function r7(){let e=(0,k._)(["Convert to Subscription & Extend "," Credits Validity! Credits expire if trial canceled."]);return r7=function(){return e},e}function r8(){let e=(0,k._)(["Convert to Subscription & Get "," Extra Credits! Free trial exclusive"]);return r8=function(){return e},e}function r9(){let e=(0,k._)(["Trial"]);return r9=function(){return e},e}function ie(){let e=(0,k._)(["Subscription already exists on another device. Cannot modify from here currently."]);return ie=function(){return e},e}function it(){let e=(0,k._)(["You're already subscribed to a higher-tier plan, so lower tiers can't be selected"]);return it=function(){return e},e}function ir(){let e=(0,k._)(["Subscription already exists on another device. Cannot modify from here currently."]);return ir=function(){return e},e}function ii(){let e=(0,k._)(["You're already subscribed to a higher-tier plan, so lower tiers can't be selected"]);return ii=function(){return e},e}function ia(){let e=(0,k._)(["Subscription already exists on another device. Cannot modify from here currently."]);return ia=function(){return e},e}function io(){let e=(0,k._)(["You're already subscribed to a higher-tier plan, so lower tiers can't be selected"]);return io=function(){return e},e}let il={[er.k9.Premium]:3300,[er.k9.Premium2]:6600,[er.k9.Premium3]:10500},is=e=>{var t,n;let{onItemClick:r,onCheckoutStart:i,onboardingTracking:a,onCheckoutCancel:o,enablePricingUnlimitedPackaging:l=!1,pricingEntrySource:s,displayVariant:c="default",pricingEngagement:u}=e||{},d=(0,L.NT)(),{planInterval:p,isModal:m,currencyInfo:f,subscriptionSuccessReportData:h}=U.$.useSnapshot(),v=U.$.useLoading(),[g,b]=(0,O.useState)(!1),{userInfo:x,isFree:y,isLogin:_,serverGrayConfig:w}=Q.userStore.useSnapshot(),{isPricingUnlimitedExp:C,isPricingP1:A,isPricingP1O:N,isPricingP2:S,isPricingDailyPriceDisplay:k}=(0,tx.X)(),{planListA:E}=rL({enablePricingUnlimitedPackaging:l,pricingEntrySource:s}),{isMobile:I}=(0,ti.k)(),{canFreeTrial:P,remainingFreeCredits:M,dayNo:B,isFreeTrial:T}=(0,ek.M)(),{isStripeOnly:F}=(0,e_.c)(),D=C&&l,q="compact"===c,z=(0,G.I1)((0,G.fQ)(w)),R=(0,O.useRef)(null);(0,O.useEffect)(()=>
1{if(!D||q||I)return;let e=R.current;if(!e)return;let t=0,n=()=>{Array.from({length:4}).forEach((t,n)=>{e.style.removeProperty("--pricing-feature-group-".concat(n,"-height"))})},r=()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{let t=Array.from({length:4},()=>0);Array.from(e.querySelectorAll("[data-pricing-feature-group-content-index]")).forEach(e=>{let n=Number(e.dataset.pricingFeatureGroupContentIndex);!Number.isInteger(n)||n<0||n>=4||(t[n]=Math.max(t[n],e.scrollHeight))}),t.forEach((t,n)=>{t>0&&e.style.setProperty("--pricing-feature-group-".concat(n,"-height"),"".concat(Math.ceil(t),"px"))})})},i=new ResizeObserver(r);return i.observe(e),Array.from(e.querySelectorAll("[data-pricing-feature-group-content-index]")).forEach(e=>i.observe(e)),r(),window.addEventListener("resize",r),()=>{cancelAnimationFrame(t),i.disconnect(),window.removeEventListener("resize",r),n()}},[D,q,I,E]);let W=e=>{let t=e.planGroupItem.type||e.type;if(D&&p===er.ZF.Yearly&&(0,er.Sm)(t)){var n;return null!==(n=il[t])&&void 0!==n?n:e.planGroupItem.monthlyCredit}return e.planGroupItem.monthlyCredit},Y=async e=>{var t,n,c,v,g,C,A,N,S,E,I,M,B;let T=e.planGroupItem.type||e.type;(0,ed.jW)("pricing_subscribe_clicked",{...tj({context:(0,G.fQ)(w),isModal:m,enablePricingUnlimitedPackaging:l,pricingEntrySource:s}),plan_selected:tU(T),billing_interval:tX(p),plan_variant:tH(T)});let D=T===(null==x?void 0:null===(t=x.plan)||void 0===t?void 0:t.type)&&p===(null==x?void 0:null===(n=x.plan)||void 0===n?void 0:n.interval);if(!_)return await (0,eC.LoginModalShow)(),location.reload();i?i():eu.t.onboardingV2Checkout.remove(),null==u||u.endHover(tY.PAYMENT_START),null==u||u.endStay(tW.PAYMENT_START),null===(v=window)||void 0===v||null===(c=v.gtag)||void 0===c||c.call(v,"event","conversion",{send_to:"AW-11530007139/MJXaCPOopJQaEOPk9_kq"});let q=e.planGroupItem[p];if((null==x?void 0:null===(g=x.plan)||void 0===g?void 0:g.type)===er.k9.Free){m&&h?eu.t.subscriptionSuccessReportData.set(h):eu.t.subscriptionSuccessReportData.remove();let t=null===(A=e.planGroupItem)||void 0===A?void 0:null===(C=A.couponIds)||void 0===C?void 0:C[p],n="number"==typeof t?{couponId:t,priceMonthly:q,totalPriceInAnnually:12*q}:void 0;if(P){if(!1===await e4.show({onboardingTracking:a,planType:T,coupon:n,price:Math.round(q*f.rate),monthlyCredit:W(e),onCheckoutCancel:o}))return}else if(F){let e=(0,eZ.A)({onboardingTracking:a,channel:er.ed.Stripe,planType:T,userInfo:x,isFree:y});await U.$.handleFirstBuy(er.ed.Stripe,T,n,e)}else if(!1===await eZ.m.show({onboardingTracking:a,planType:T,coupon:n,onCheckoutCancel:o}))return;el.PayStatusModal.show({planType:T,price:q,isRedirect:!m,onCheckoutCancel:o})}else{b(!0);try{if((null==x?void 0:null===(N=x.plan)||void 0===N?void 0:N.channel)===er.ed.ChargeBee||(null==x?void 0:null===(S=x.plan)||void 0===S?void 0:S.channel)===er.ed.ChargeBee3)el.PayStatusModal.show({planType:T,price:q,isRedirect:!m}),await U.$.handleUpgrade(T);else if((null==x?void 0:null===(E=x.plan)||void 0===E?void 0:E.channel)===er.ed.Paypal)await eZ.m.show({planType:T,isPaypalUpgrade:!0,onClose:()=>{b(!1)}});else if((null==x?void 0:null===(I=x.plan)||void 0===I?void 0:I.isFreeTrial)&&D)await eE.w.show();else{let e=r1.Z(U.$.planGroup,"".concat(null==x?void 0:null===(M=x.plan)||void 0===M?void 0:M.type,".").concat(null==x?void 0:null===(B=x.plan)||void 0===B?void 0:B.interval),0);await new Promise((t,n)=>{var r,i,a;let o=(0,es.tL)(null==x?void 0:null===(r=x.plan)||void 0===r?void 0:r.type),l=(0,es.tL)(T);eN.qk.openConfirmModal({children:(0,Z.BX)("div",{className:"text-center",children:[(0,Z.tZ)("div",{className:"text-6 font-600 <sm:text-4.5",children:d("upgrade-confirm")}),(0,Z.tZ)("p",{className:"text-5 <sm:text-4",children:d("upgrade-confirm-desc",{from:"".concat(o,"(").concat((0,tb.C)(e,null!==(a=null==x?void 0:null===(i=x.plan)||void 0===i?void 0:i.interval)&&void 0!==a?a:er.ZF.Monthly,k,{daily:d("price-period-daily-short"),monthly:d("price-period-monthly-short")},f),")"),to:"".concat(l,"(").concat((0,tb.C)(q,p,k,{daily:d("price-period-daily-short"),monthly:d("price-period-monthly-short")},f),")")})})]}),groupProps:{className:"justify-center flex-nowrap gap-15 <sm:gap-2"},cancelProps:{className:"w-37.5 h-12.5",variant:"outline",size:"lg"},confirmProps:{className:"w-37.5 h-12.5",size:"lg"},classNames:{header:"text-6 font-600"},labels:{confirm:d("confirm"),cancel:d("cancel")},onClose:()=>{b(!1)},onConfirm:()=>{t(!0)}})}),await U.$.handleUpgrade(T)}}finally{b(!1)}}null==r||r(T,p)},X=e=>{var t,n,r,i,a,o,l,s,c,u,d,m;let f=null==x?void 0:null===(n=x.plan)||void 0===n?void 0:null===(t=n.pauseStatus)||void 0===t?void 0:t.isPau
1sed,h=f?null==x?void 0:null===(a=x.plan)||void 0===a?void 0:null===(i=a.pauseStatus)||void 0===i?void 0:null===(r=i.pauseInfo)||void 0===r?void 0:r.subscription_plan:null==x?void 0:null===(o=x.plan)||void 0===o?void 0:o.type,v=f?null==x?void 0:null===(c=x.plan)||void 0===c?void 0:null===(s=c.pauseStatus)||void 0===s?void 0:null===(l=s.pauseInfo)||void 0===l?void 0:l.subscription_plan_type:null==x?void 0:null===(u=x.plan)||void 0===u?void 0:u.interval;if(null==x?void 0:null===(d=x.plan)||void 0===d?void 0:d.isApp)return!0;if(h===e&&v===p)return null==x||null===(m=x.plan)||void 0===m||!m.isFreeTrial;let g=h===(D?er.k9.Premium3:er.k9.Premium)&&v===er.ZF.Yearly,b=v===er.ZF.Yearly&&p===er.ZF.Monthly,y=er.j1[h],_=er.j1[e]<y;return!!g||!!b||!!_},V=e=>{var t,n,r;if(P)return d(r2());let i=X(e),a=_?i?d("unavailable"):y?d(r5()):d("upgrade-now"):e===er.k9.Free?d("login-to-enjoy"):d("login-to-buy");return e===(null==x?void 0:null===(t=x.plan)||void 0===t?void 0:t.type)&&(null==x?void 0:null===(n=x.plan)||void 0===n?void 0:n.interval)===p&&(a=(null==x?void 0:null===(r=x.plan)||void 0===r?void 0:r.isFreeTrial)?d(r3()):d("current-plan")),a},j=e=>{var t,n;let r=X(e),i=_?r?"Unavailable":y?"Subscribe":"Upgrade now":e===er.k9.Free?"Login to enjoy":"Login to buy";return e===(null==x?void 0:null===(t=x.plan)||void 0===t?void 0:t.type)&&(null==x?void 0:null===(n=x.plan)||void 0===n?void 0:n.interval)===p&&(i="Current plan"),i},H=!!(null==x?void 0:null===(n=x.plan)||void 0===n?void 0:null===(t=n.coupons)||void 0===t?void 0:t.length),$=e=>rY({item:e,planInterval:p,currencyInfo:f,canFreeTrial:P,t:d}),K=p===er.ZF.Monthly&&E.some(e=>!!$(e)),J=m&&2===E.length?"@[768px]:!grid-cols-[repeat(2,400px)]":m&&3===E.length?"@[1280px]:!grid-cols-[repeat(3,400px)]":void 0,ee=2===E.length?"!grid grid-cols-1 !justify-center gap-[30px] !px-0 !grid-cols-[repeat(auto-fit,minmax(min(100%,400px),400px))]":void 0;return(0,Z.BX)("div",{className:(0,es.cn)(m&&"@container"),children:[(0,Z.tZ)("div",{className:(0,es.cn)("text-center <sm:mt-4",D?"text-[32px] font-semibold leading-normal <sm:px-7 <sm:text-xl mt-10":"text-[36px] font-medium <sm:px-15 <sm:text-4.5",!D&&(y?"":"mt-6")),hidden:m,children:D||z?d("pricing-page-unlimited-title"):(0,Z.BX)(Z.HY,{children:[(0,Z.tZ)(eS.Z,{className:"w-20"}
1),(0,Z.tZ)("span",{className:(0,es.cn)("pl-6"),children:d(r4())})]})}),(0,Z.tZ)("div",{className:(0,es.cn)("flex-center gap-8 <sm:flex-col <sm:px-9 <sm:gap-4 <sm:pt-4",D?m?"pt-4":"pt-5":"pt-6"),children:(0,Z.tZ)(tQ,{enablePricingUnlimitedPackaging:l,pricingEntrySource:s})}),I?(0,Z.tZ)(r0,{classNames:{indicatorWrapper:"mx-[35px]"},getButtonText:V,getEnButtonText:j,getIsButtonDisabled:X,btnLoading:v||g,subBtnClick:Y,enablePricingUnlimitedPackaging:l,pricingEntrySource:s,pricingEngagement:u}):(0,Z.tZ)("div",{ref:R,className:q?"mx-auto mt-[30px] mb-4 grid w-full justify-center overflow-visible px-[clamp(44px,calc(44px+(100cqi-1200px)*16/180),60px)] gap-[clamp(16px,calc(16px+(100cqi-1200px)*10/180),26px)]":(0,es.cn)("flex justify-between px-12 <sm:flex-col <sm:px-0 <sm:gap-lg",D?m?"mt-4":"mt-[22px]":"mt-5",m&&"!grid grid-cols-1 !justify-center @[768px]:grid-cols-2 @[1280px]:!grid-cols-3 @[1280px]:!gap-4 gap-lg",J,m&&"gap-lg",ee),style:q?{gridTemplateColumns:"repeat(".concat(E.length,", clamp(360px, 30cqi, 400px))")}:void 0,children:E.map(e=>{var t,n,r,i,a,o,l;let s,c;let f=e.planGroupItem.type||e.type,h=t$({planType:f,planInterval:p}),b=e.type===er.k9.Pro,y=X(f),_=V(f),w=j(f),C=f===(null==x?void 0:null===(t=x.plan)||void 0===t?void 0:t.type)&&p===(null==x?void 0:null===(n=x.plan)||void 0===n?void 0:n.interval);P?s=d(r6(),70):T&&C&&(s=3===B?d(r7(),70):d(r8(),M),c=(0,Z.tZ)("div",{className:"bg-#1D364C rd-1.5 lh-5.5 px-1 c-primary font-600 text-4 ml-2",children:d(r9())}));let A=H&&(null===(i=e.planGroupItem)||void 0===i?void 0:null===(r=i.couponIds)||void 0===r?void 0:r[p])&&!(e.type===er.k9.Pro&&p===er.ZF.Monthly),N=A?(0,eA.l)({planGroup:{currentPricePerMonth:p===er.ZF.Yearly?e.planGroupItem.YEARLY:e.planGroupItem.MONTHLY,originalPricePerMonth:e.planGroupItem.originalMonthlyPrice},planInterval:p}):void 0;return q?(0,Z.tZ)(tz,{item:e,active:e.type===er.k9.Pro,planInterval:p,compareMonthlyPrice:p===er.ZF.Yearly?e.planGroupItem.originalMonthlyPrice||e.planGroupItem[er.ZF.Monthly]:void 0,totalBillingDesc:$(e),reserveTotalBillingSpace:K,tooltip:y?(null==x?void 0:null===(o=x.plan)||void 0===o?void 0:o.isApp)?d(ie()):d(it()):void 0,onMouseEnter:()=>null==u?void 0:u.startHover(h),onMouseLeave:()=>null==u?void 0:u.endHover(tY.MOUSE_LEAVE),buttonProps:{disabled:y,text:_,loading:v||g,onClick:()=>{(0,ed.jW)("button_click",{button_name:w},{forceReport:!0}),null==u||u.endHover(tY.CARD_CLICK),Y(e)}}},e.title):D?(0,Z.tZ)(nC,{item:e,active:e.type===er.k9.Premium,planInterval:p,compareMonthlyPrice:p===er.ZF.Yearly?e.planGroupItem.originalMonthlyPrice||e.planGroupItem[er.ZF.Monthly]:void 0,totalBillingDesc:$(e),reserveTotalBillingSpace:K,discountPercent:N,tag:e.tag,tagClassName:e.tagClassName,titleRight:c,className:(0,es.cn)(m&&"!w-auto"),tooltip:y?(null==x?void 0:null===(l=x.plan)||void 0===l?void 0:l.isApp)?d(ir()):d(ii()):void 0,buttonBottom:s&&(0,Z.tZ)("div",{className:"mt-4 rounded-[10px] bg-[#ffffff0d] px-4 py-3 text-sm font-700 text-[#45A8FF]",children:s}),onMouseEnter:()=>null==u?void 0:u.startHover(h),onMouseLeave:()=>null==u?void 0:u.endHover(tY.MOUSE_LEAVE),buttonProps:{disabled:y,text:_,loading:v||g,onClick:()=>{(0,ed.jW)("button_click",{button_name:w},{forceReport:!0}),null==u||u.endHover(tY.CARD_CLICK),Y(e)}}},e.title):(0,Z.tZ)(t4,{className:m&&"!w-auto",descGroup:e.descGroup,planInterval:p,price:e.planGroupItem[p],credit:e.planGroupItem.monthlyCredit,title:A?(0,Z.BX)("div",{className:"flex items-center gap-x-[7px] w-fit",children:[e.title,(0,Z.BX)("div",{className:"flex-center px-2 h-[29px] rd-1.5 bg-primary text-white text-base font-semibold",children:[(0,eA.l)({planGroup:{currentPricePerMonth:p===er.ZF.Yearly?e.planGroupItem.YEARLY:e.planGroupItem.MONTHLY,originalPricePerMonth:e.planGroupItem.originalMonthlyPrice},planInterval:p}),"% ",d("off")]})]}):e.title,subTitle:e.subTitle,tag:e.tag,tagClassName:e.tagClassName,titleTag:e.titleTag,active:b,compareMonthlyPrice:p===er.ZF.Yearly?e.planGroupItem.originalMonthlyPrice||e.planGroupItem[er.ZF.Monthly]:void 0,totalBillingDesc:$(e),creditControl:e.creditControl,tooltip:y?(null==x?void 0:null===(a=x.plan)||void 0===a?void 0:a.isApp)?d(ia()):d(io()):void 0,slot:{buttonBottom:s&&(0,Z.BX)("div",{className:"mx-10 text-3.5 font-600 c-primary flex gap-1.5 bg-#ffffff0d rd-2.5 pa-3 items-baseline",children:[(0,Z.tZ)(ew.nb,{className:"w-3.5"}),(0,Z.tZ)("div",{className:"flex-1",children:s})]}),titleRight:c},onMouseEnter:()=>null==u?void 0:u.startHover(h),onMouseLeave:()=>null==u?void 0:u.endHover(tY.MOUSE_LEAVE),buttonProps:{disabled:y,text:_,loading:v||g,onClick:()=>{(0,ed.jW)("button_click",{button_name:w},{forceReport:!0}),null==u||u.endHover(tY.CARD_CLICK),Y(e)}}},e.title)})}),!q&&(0,Z.tZ)(ts,{}),!m&&(0,Z.tZ)(td,{})]})};var ic=n(38018);let iu=e=>Math.floor(Math.max(0,e)/1e3),id=e=>e>=100,ip=()=>window.matchMedia("(hover: hover) and (pointer: fine)").matches,im=e=>{let{pricingInstanceId:t,isOnboardingV2:n,stayDurationSeconds:r,variantId:i,exitType:a,entrySource:o,displayType:l,keepalive:s}=e;(0,ed.jW)("pricing_page_stay",{page_name:tL,feature:tO,entry_source:o,deevid_source:"V1",stay_duration_seconds:r,pricing_instance_id:t,...n?{onboarding_version:"v2"}:{},pricing_display_type:l,...i?{experiment_id:tR,variant_id:i}:{},exit_type:a},{forceReport:!0,keepalive:s})},ih=e=>{let{pricingInstanceId:t,isOnboardingV2:n,target:r,hoverDurationSeconds:i,variantId:a,hoverEndType:o,entrySource:l,keepalive:s}=e;(0,ed.jW)("pricing_plan_card_hover",{page_name:tL,feature:tO,entry_source:l,deevid_source:"V1",plan_id:r.planId,billing_interval:r.billingInterval,hover_duration_seconds:i,pricing_instance_id:t,...n?{onboarding_version:"v2"}:{},...a?{experiment_id:tR,variant_id:a}:{},hover_end_type:o},{forceReport:!0,keepalive:s})},iv=e=>{let{surface:t,variantId:n,entrySource:r,instanceId:i}=e,a=(0,O.useRef)(n);a.current=n;let o=(0,O.useRef)(r);o.current=r;let l=(0,O.useRef)({instanceId:"",flushed:!0,reportedExits:new Set,accumulatedMs:0,lastVisibleAt:0}),s=(0,O.useRef)(null),c=()=>{l.current={instanceId:null!=i?i:(0,ic.V)(),flushed:!1,reportedExits:new Set,accumulatedMs:0,lastVisibleAt:"undefined"!=typeof document&&"visible"===document.visibilityState?Date.now():0}},u=()=>{let e=l.current;e.lastVisibleAt&&(e.accumulatedMs+=Date.now()-e.lastVisibleAt,e.lastVisibleAt=0)},d=()=>{l.current.lastVisibleAt=Date.now()},p=e=>{let n=l.current;!(!n.instanceId||n.reportedExits.has(e))&&(n.reportedExits.add(e),n.flushed||(n.flushed=!0,u(),im({pricingInstanceId:n.instanceId,isOnboardingV2:!!i,stayDurationSeconds:iu(n.accumulatedMs),variantId:a.current,exitType:e,entrySource:o.current,displayType:t,keepalive:e===tW.PAGE_HIDDEN||e===tW.PAGE_UNLOAD})))},m=e=>{let t=s.current;if(!t||t.reported)return;t.reported=!0,s.current=null;let n=Date.now()-t.startedAt;id(n)&&ih({pricingInstanceId:l.current.instanceId,isOnboardingV2:!!i,target:t.target,hoverDurationSeconds:iu(n),variantId:a.current,hoverEndType:e,entrySource:o.current,keepalive:e===tY.PAGE_HIDDEN||e===tY.PAGE_LEAVE})},f=e=>{ip()&&(s.current&&m(tY.MOUSE_LEAVE),s.current={startedAt:Date.now(),target:e,reported:!1})},h=(0,O.useRef)({startStay:c,pauseStay:u,resumeStay:d,endStay:p,startHover:f,endHover:m});return h.current={startStay:c,pauseStay:u,resumeStay:d,endStay:p,startHover:f,endHover:m},(0,O.useLayoutEffect)(()=>{let e;let n=h.current;n.startStay();let r=()=>{if("hidden"===document.visibilityState){n.pauseStay(),e=window.setTimeout(()=>{n.endHover(tY.PAGE_HIDDEN),n.endStay(tW.PAGE_HIDDEN)},0);return}if(e&&(window.clearTimeout(e),e=void 0),l.current.flushed){n.startStay();return}n.resumeStay()},i=t=>{e&&(window.clearTimeout(e),e=void 0),n.endHover(t.persisted?tY.PAGE_HIDDEN:tY.PAGE_LEAVE),n.endStay(t.persisted?tW.PAGE_HIDDEN:tW.PAGE_UNLOAD)};return document.addEventListener("visibilitychange",r),window.addEventListener("pagehide",i),(
1)=>{document.removeEventListener("visibilitychange",r),window.removeEventListener("pagehide",i),e&&window.clearTimeout(e),n.endHover(tY.PAGE_LEAVE),n.endStay("modal"===t?tW.MODAL_CLOSE:tW.PAGE_LEAVE)}},[t]),{startHover:f,endHover:m,endStay:p,getPricingInstanceId:(0,O.useCallback)(()=>l.current.instanceId,[])}};function ig(){let e=(0,k._)(["Limited-time offer unlocked"]);return ig=function(){return e},e}function ib(){let e=(0,k._)(["54% OFF"]);return ib=function(){return e},e}function ix(){let e=(0,k._)(["Plans"]);return ix=function(){return e},e}function iy(){let e=(0,k._)(["Credits"]);return iy=function(){return e},e}(r=S||(S={})).Plans="plans",r.Credits="credits";let i_=new WeakSet,iw=e=>{var t,n;let{onItemClick:r,onCheckoutStart:i,onboardingTracking:a,onCheckoutCancel:o,className:l,defaultMode:s="plans",classNames:c,keepMounted:u=!0,hideTabLabel:d,onCreditItemClick:p,enablePricingUnlimitedPackaging:m=!1,pricingEntrySource:f,offerEndsAt:h,displayVariant:v,engagementSurface:g="page",reportData:b}=e||{},{isModal:x}=U.$.useSnapshot(),y=(0,L.NT)(),[_,w]=(0,O.useState)(s),C=(0,R.useSearchParams)(),A=C.get("isRefresh"),N=C.get("redirectResult"),{isLogin:S,isFree:k,serverGrayConfig:E,userInfo:P}=Q.userStore.useSnapshot(),{currentTeamId:B}=$.E.useSnapshot(),{teamEnabled:T}=(0,j.B)(),{isPricingUnlimitedExp:F,isPricingP1O:D}=(0,tx.X)(),q="onboarding"===f&&(null==b?void 0:b.onboarding_version)==="v2"?b:void 0,z=(0,O.useRef)(null),W=iv({surface:g,variantId:tG(null==E?void 0:E.PRICING_DAILY_PRICE_DISPLAY_TEST),entrySource:tV({isModal:"modal"===g,enablePricingUnlimitedPackaging:m,pricingEntrySource:f}),instanceId:"string"==typeof(null==q?void 0:q.pricing_instance_id)?q.pricing_instance_id:void 0}),{getPricingInstanceId:ee}=W,[et,en]=(0,O.useState)(()=>Date.now()),er=(0,G.kK)(h,et),ei=D&&er,ea=(0,O.useRef)(!1),eo=(0,O.useRef)(!1),el=(0,O.useRef)(!1),ec=Object.keys(E).length>0,eu=!!(null==P?void 0:null===(n=P.plan)||void 0===n?void 0:null===(t=n.coupons)||void 0===t?void 0:t.length);(0,O.useEffect)(()=>{"1"===A&&S&&V.WatchUserPlanModal.show({isRedirectToAccount:!0})},[A,S]),(0,O.useEffect)(()=>{N&&S&&Y.show()},[N,S]),(0,O.useEffect)(()=>{if(!D||"number"!=typeof h||!(0,G.kK)(h))return;let e=()=>en(Date.now());e();let t=window.setInterval(e,1e3),n=window.setTimeout(e,Math.max(0,h-Date.now()));return()=>{window.clearInterval(t),window.clearTimeout(n)}},[D,h]),(0,O.useLayoutEffect)(()=>{if(!x)return(0,H.oA)(ei),()=>{(0,H.oA)(!1)}},[x,ei]),(0,O.useEffect)(()=>{if("onboarding"!==f||q||"modal"!==g||"plans"!==_||el.current)return;let e=ee();e&&(el.current=!0,(0,ed.jW)("pricing_view",{feature:"pricing",entry_source:"onboarding",...(0,G.Bn)((0,G.fQ)(E),null==E?void 0:E.WEB_ONBOARDING_PATH_TEST),...(0,G.b7)(),onboarding_instance_id:null==b?void 0:b.onboarding_instance_id,onboarding_exit_type:null==b?void 0:b.onboarding_exit_type,pricing_instance_id:e,pricing_display_type:"modal",price_display_unit:"a"===tG(null==E?void 0:E.PRICING_DAILY_PRICE_DISPLAY_TEST)?"daily":"monthly"},{forceReport:!0}))},[g,ee,_,q,f,null==b?void 0:b.onboarding_exit_type,null==b?void 0:b.onboarding_instance_id,E]),(0,O.useEffect)(()=>{if(!ec||ea.current)return;let e=()=>{if(!ea.current){if(q){if(i_.has(q))return;i_.add(q)}ea.current=!0,(0,ed.jW)(q?"pricing_viewed":"subscribe_view",q?(0,X.Ic)({...q,feature:"pricing",pricing_instance_id:ee(),price_config_version:null}):{},{forceReport:!0,...q?{eventType:J.t.EXPOSURE}:{}}),F&&(0,ed.jW)("pricing_modal_viewed",{entry_source:tV({isModal:x,enablePricingUnlimitedPackaging:m,pricingEntrySource:f})})}};if(q){if("plans"!==_||!z.current)return;return(0,X.Vp)([z.current],e)}e()},[m,ec,x,F,f,q,ee,_]),(0,O.useEffect)(()=>{ei&&ec&&!eo.current&&(eo.current=!0,(0,ed.jW)("pricing_offer_bar_viewed",{...tj({context:(0,G.fQ)(E),isModal:x,enablePricingUnlimitedPackaging:m,pricingEntrySource:f})},{forceReport:!0}))},[m,ec,x,f,E,ei]);let ep=(0,O.useMemo)(()=>"boolean"==typeof d?d:!S||k,[S,k,d]),em=S?(0,es.cn)("rd-b-5",x&&ei?"mt-0":"mt-5"):"rd-5",ef="compact"===v;return(0,Z.BX)("div",{className:ef?(0,es.cn)("mx-auto mb-10 w-full",em,l):T?(0,es.cn)("mx-auto mb-10",em,x?"w-1200px rd-5! <sm:w-full 2xl:w-[1300px] 3xl:w-[1500px] 4xl
1:w-[1770px]":"<sm:w-full 2xl:w-[1500px] 3xl:w-[1770px]",l):(0,es.cn)("mx-auto mb-10 <sm:w-full",em,x?"<sm:w-full md:w-[700px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1400px] rd-5!":"w-343",l),children:[ei&&(0,Z.tZ)("div",{className:(0,es.cn)(I().className,"flex-center h-[42px] w-full text-base text-white <sm:px-3 <sm:text-xs",!x&&(0,es.cn)("absolute left-0 right-0 z-50",eu?"top-[42px] <sm:top-[49px]":"top-0")),style:{background:"linear-gradient(-59.26107518643843deg, rgba(74, 98, 255, 0.16) 0%, rgba(74, 98, 255, 0.22) 24%, rgba(143, 205, 255, 0.2) 78%, rgba(143, 205, 255, 0.16) 100%), #32373D"},children:(0,Z.BX)("div",{className:"flex h-[26px] items-center gap-5 <sm:w-full <sm:justify-between <sm:gap-0",children:[(0,Z.BX)("div",{className:"flex items-center gap-5 <sm:gap-3",children:[(0,Z.tZ)("span",{className:"font-400 leading-normal",children:y(ig())}),(0,Z.tZ)("strong",{className:"font-600 italic leading-normal text-white",children:y(ib())})]}),(0,Z.tZ)(e=>{let{offerEndsAt:t,now:n}=e,[r,i,a]=(0,G.w)(Math.max(0,(t||n)-n)).split(":");return(0,Z.tZ)("span",{className:(0,es.cn)(M().className,"flex items-center gap-1 tabular-nums"),children:[r,i,a].map((e,t)=>(0,Z.BX)(O.Fragment,{children:[t>0&&(0,Z.tZ)("span",{className:"text-xs font-700 leading-[22px] text-white",children:":"}),(0,Z.tZ)("span",{className:"flex-center h-[26px] w-[26px] rounded-[4px] bg-[rgba(0,0,0,0.3)] text-center text-xs font-500 leading-[22px] text-white",children:e})]},t))})},{offerEndsAt:h,now:et})]})}),(0,Z.tZ)("div",{className:(0,es.cn)("flex-center-y w-full pl-[35px] gap-10","<sm:gap-5 <sm:pl-4 <sm:pt-0",null==c?void 0:c.tabLabelWrapper,x?"pt-[14px] <sm:bg-[#32373D] <sm:[border-bottom:1px_solid_#4E5355]":ep?"":"[border-bottom:1px_solid_#373D42]"),children:[{value:"plans",label:y(ix()),hidden:ep},{value:"credits",label:y(iy()),hidden:!!B||ep}].filter(e=>!e.hidden).map(e=>{let t=_===e.value;return(0,Z.BX)("div",{className:(0,es.cn)("sm:font-semibold text-2xl text-center cursor-pointer <sm:text-base",t?"text-[#3CA2F6] font-semibold":"text-white"),onClick:()=>{w(e.value)},children:[(0,Z.tZ)("div",{className:"sm:px-2",children:e.label}),(0,Z.tZ)("div",{className:(0,es.cn)("w-full h-1",t?"bg-[#3CA2F6]":"bg-transparent")})]},e.value)})}),(0,Z.BX)(K.m,{value:_,keepMounted:u,className:(0,es.cn)(x&&!ef&&"h-[calc(100%-28px)] overflow-y-auto scrollbar-hidden",null==c?void 0:c.tabsRoot),children:[(0,Z.tZ)(K.m.Panel,{value:"plans",ref:z,children:(0,Z.tZ)(is,{onCheckoutStart:i,onboardingTracking:a,onCheckoutCancel:o,displayVariant:v,onItemClick:r,enablePricingUnlimitedPackaging:m,pricingEntrySource:f,pricingEngagement:W})}),(0,Z.tZ)(K.m.Panel,{value:"credits",children:(0,Z.tZ)(ey,{onItemClick:p,onCheckoutStart:i,onboardingTracking:a,onCheckoutCancel:o})})]})]})}},34757:function(e,t,n){"use strict";n.d(t,{C:function(){return a},z:function(){return i}});var r=n(84285);let i=(e,t)=>(Math.round(100*(t===r.ZF.Yearly?12*e/365:e/30))/100).toFixed(2),a=function(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{symbol:"$",rate:1},o=Math.round(e*a.rate);return"".concat(a.symbol).concat(n?i(o,t):o).concat(n?r.daily:r.monthly)}},475:function(e,t,n){"use strict";n.d(t,{M:function(){return s}});var r=n(59528),i=n.n(r),a=n(10562),o=n(90571),l=n(1663);let s=()=>{var e,t,n,r,s;let{isFreeTrailTest:c}=(0,a.X)(),{userInfo:u}=o.userStore.useSnapshot(),d=c&&!(null==u?void 0:null===(e=u.plan)||void 0===e?void 0:e.hasUsedFreeTrial),p=(null==u?void 0:null===(t=u.plan)||void 0===t?void 0:t.start)?l.Z(i()().startOf("day").diff(i()(null==u?void 0:null===(n=u.plan)||void 0===n?void 0:n.start).startOf("day"),"day")+1,0,3):0;return{canFreeTrial:d,isFreeTrial:(null==u?void 0:null===(r=u.plan)||void 0===r?void 0:r.isFreeTrial)&&(null==u?void 0:null===(s=u.plan)||void 0===s?void 0:s.autoRenew),dayNo:p,remainingFreeCredits:Math.max(0,50-(p-1)*20)}}},29820:function(e,t,n){"use strict";n.d(t,{i7:function(){return u}});var r=n(34991),i=n(5319);let a=e=>"a"===e||"b"===e?{authoritative:!0,variant:e}:{authoritative:!1,variant:"a"},o={authoritative:!1,variant:"a"},l=new Map,s=new Map,c=async e=>{let{visitorId:t,timeoutMs:n}=e,a=await i.e$.request({abtestNames:r.Nz},{timeout:n,headers:{"x-visitor-id":t}});return null==a?void 0:a.ONBOARDING_PRICE_MODAL},u=async function(e){let{getVisitorId:t=()=>e,loadVariant:n=c,timeoutMs:r=1500}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return o;let i=l.get(e);if(i)return{authoritative:!0,variant:i};let u=s.get(e);if(u)return u;let d=(async()=>{let i;try{let s=await Promise.race([n({visitorId:e,timeoutMs:r}),new Promise((e,t)=>
1{i=setTimeout(()=>t(Error("pricing modal variant request timeout after ".concat(r,"ms"))),r)})]);if(t()!==e)return o;let c=a(s);return c.authoritative&&l.set(e,c.variant),c}catch(e){return console.error("[PricingModal] variant request failed",e),o}finally{clearTimeout(i),s.delete(e)}})();return s.set(e,d),d}},23432:function(e,t,n){"use strict";n.d(t,{DA:function(){return c},Ei:function(){return l},RR:function(){return o},Tp:function(){return i},hX:function(){return u},ov:function(){return s}});var r=n(48059);let i=e=>"b"===e||"c"===e||"d"===e||"e"===e?e:"a",a={animate:"/image-to-video",idea:"/agent",image:"/ai-image-generator",reference:"/reference-to-video",editor:"/ai-video-editor",prompt:"/text-to-video",avatar:"/ai-avatar",explore:"/agent"},o=e=>"e"===e?["team","role","format","challenge","features","start"]:["goal","start"],l=(e,t)=>{let n=t.split("/")[1];return r.k1.some(e=>e===n)?"/".concat(n).concat(e):e},s=e=>{let t=r.k1.find(t=>t===e.split(/[/?#]/)[1]),n=t?e.slice(t.length+1):e;return{href:n.startsWith("/")?n:"/".concat(n),locale:t||r.al}},c=(e,t,n,r)=>"b"===e&&t&&!r?l(a[t]||"/agent",n):n,u=(e,t)=>e.includes(t)?e.filter(e=>e!==t):e.length<3?[...e,t]:e},14620:function(e,t,n){"use strict";n.d(t,{Ic:function(){return o},Vp:function(){return s},wU:function(){return l}});var r=n(38018),i=n(23432);let a={discover:"show_capabilities",prompt:"prompt_help",assets:"use_assets",example:"guided_example",create:"start_directly"},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return{...e,event_uid:(0,r.V)(),occurred_at:new Date().toISOString(),page_url:t.origin+t.pathname,page_name:t.pathname,search:""}};function l(e,t,n){let o;let l={...t,experiment_id:"WEB_ONBOARDING_TEST_V2",variant_id:e,product_version:"1.0",client_platform:"web",onboarding_version:"v2",flow_id:(0,r.V)(),onboarding_instance_id:(0,r.V)()},s=("d"===e?[1,2,3]:(0,i.RR)(e)).map((t,n)=>({step_id:"".concat("b"===e||"c"===e?"bc":e,"_").concat("d"===e?"video_":"q").concat(n+1),step_index:n+1,step_type:"d"===e?"video":"question"})),c=new Map,u=0,d=!1,p=-1,m="",f=!1,h="",v=(e,t)=>n(e,{...l,feature:"onboarding",...t}),g=()=>{var t;return{...s[p],question_id:"d"===e?null:null===(t=s[p])||void 0===t?void 0:t.step_id,step_view_id:m}};return{context:l,view(t,n,i){d||(u||(u=Date.now(),v("onboarding_viewed",{})),(p!==t||o&&!n)&&(p=t,m=(0,r.V)(),f=!1,v("onboarding_step_viewed",{...g(),skip_visible:!n})),n&&n!==o&&(h=(0,r.V)(),v("onboarding_receipt_viewed",{...g(),receipt_instance_id:h,guidance_mode:a[n],task_intent:"e"===e?null:null!=i?i:null,receipt_version:"v2_1",asset_version:"v2_1"})),o=n)},completeStep(e,t){var n;if(d||f||p<0)return!1;f=!0;let i=c.get(s[p].step_id),l=!i||[...i.answers].sort().join(",")!==[...e].sort().join(","),u=(null!==(n=null==i?void 0:i.revision)&&void 0!==n?n:0)+Number(l);return c.set(s[p].step_id,{answers:[...e],revision:u}),"receipt_cta"===t&&o&&v("onboarding_receipt_cta_clicked",{...g(),receipt_instance_id:h,guidance_mode:a[o],cta_id:"continue_to_pricing",action_id:(0,r.V)()}),v("onboarding_step_completed",{...g(),answer_ids:e,answer_revision:u,completion_id:(0,r.V)(),completion_method:t}),!0},finish(t){d||(d=!0,t&&v("onboarding_skip_clicked",{...g(),action_id:(0,r.V)(),skip_visible:!0,skip_scope:"flow",next_destination:"pricing"}),v("onboarding_completed",{exit_type:t?"skipped":"completed",answered_step_count:"d"===e?0:c.size,skipped_step_i
1ds:t?s.filter(e=>!c.has(e.step_id)).map(e=>e.step_id):[],duration_ms:u?Math.max(0,Date.now()-u):0}))}}}function s(e,t){let n=new Set,r=()=>{n.size===e.length&&"visible"===document.visibilityState&&t()},i=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting?n.add(t.target):n.delete(t.target);r()});return e.forEach(e=>i.observe(e)),document.addEventListener("visibilitychange",r),()=>{i.disconnect(),document.removeEventListener("visibilitychange",r)}}},23466:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var r=n(10394),i=n(85619),a=n(66925),o=n(21962),l=n(4049),s=n(77800);let c=e=>{let{modal:t,drawerProps:n,children:c,hideDrawer:u,...d}=e||{},{isMobile:p}=(0,l.k)(),m=p&&!u?i.d:a.u;return(0,r.tZ)(m,{...p&&!u?{...o.f.drawerProps(t),position:"bottom",size:"95%",...s.Z(d,["onClose","title"]),...n}:{...o.f.modalProps(t),...d},children:c})}},73209:function(e,t,n){"use strict";n.d(t,{l:function(){return s},p:function(){return l}});var r=n(88320),i=n(84285),a=n(90571),o=n(95964);let l=()=>{var e;let{userInfo:t}=a.userStore.useSnapshot(),{planGroup:n}=r.$.useSnapshot(),l=null===(e=t.plan)||void 0===e?void 0:e.coupons,{couponsMap:c}=(0,o.useMemo)(()=>{let e={};return(null==l?void 0:l.length)&&l.forEach(t=>{let r=t.applicable_plan_name,a=t.applicable_plan_type;e[r]||(e[r]={});let o=a===i.ZF.Monthly?Number(t.discount_amount)/100:a===i.ZF.Yearly?Number(t.discount_amount)/100/12:void 0,l=n[r][a];e[r][a]={...t,monthlyCredit:n[r].monthlyCredit,currentPricePerMonth:o,originalPricePerMonth:l,planOff:s({planGroup:{currentPricePerMonth:o,originalPricePerMonth:n[r][i.ZF.Monthly]},planInterval:a})}}),{couponsMap:e}},[n,l]);return{couponsMap:c}},s=e=>{let t,{planGroup:n,planInterval:r}=e;if(n.currentPricePerMonth&&n.originalPricePerMonth)return r===i.ZF.Monthly?t=M
1ath.floor(Number(((1-n.currentPricePerMonth/n.originalPricePerMonth)*100).toFixed(1))):r===i.ZF.Yearly&&(t=Math.floor(Number(((1-12*n.currentPricePerMonth/(12*n.originalPricePerMonth))*100).toFixed(1)))),t}},87433:function(e,t,n){"use strict";n.d(t,{F:function(){return o}});var r=n(10562),i=n(90571),a=n(48059);let o=()=>{var e;let{isNoSubsCreditsTest:t}=(0,r.X)(),{userInfo:n}=i.userStore.useSnapshot();return{buyCreditsWithoutPlan:"/ai-image-generator"===(0,a.jD)()&&t&&(null===(e=n.utm)||void 0===e?void 0:e.includes("image-nano"))}}},27110:function(e,t,n){"use strict";n.d(t,{K1:function(){return l},XS:function(){return o},oA:function(){return s}});var r=n(80533),i=n(52470);let a=e=>"number"==typeof e&&Number.isFinite(e)?e:null,o=(0,i.sj)({offerEndsAt:(()=>{let e=a(r.t.agentOfferEndsAt.get());return null!==e&&e<=Date.now()?(r.t.agentOfferEndsAt.remove(),null):e})(),isOfferBarVisible:!1},{name:"agentPricingOnboardingStore"}),l=e=>{let t=a(e);if(o.offerEndsAt=t,null===t){o.isOfferBarVisible=!1,r.t.agentOfferEndsAt.remove();return}r.t.agentOfferEndsAt.set(t)},s=e=>{o.isOfferBarVisible=e}}}]);

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.