PageSourceSearch

https://genzwrite.com/_next/static/chunks/ca6994b570194d5c.js?dpl=dpl_DuJusokopVFToW3ea1kbSZrjVBJz

js genzwrite.com collected 2026-10-06 04:22:00 UTC 22,284 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95187,(e,a,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s={callServer:function(){return i.callServer},createServerReference:function(){return r.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}};for(var l in s)Object.defineProperty(t,l,{enumerable:!0,get:s[l]});let i=e.r(32120),n=e.r(92245),r=e.r(35326)},8370,e=>{"use strict";var a=e.i(43476),t=e.i(25685);e.s(["default",0,({title:e,content:s,isOpen:l,onClick:i})=>(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsxs)("button",{onClick:i,className:`text-[18px] mb-4 flex items-center justify-between text-start cursor-pointer hover:bg-[#FFCC92] rounded-[30px] px-4 py-3 w-full ${l?"bg-[#FFCC92]":""} `,children:[e,(0,a.jsx)("span",{children:l?"−":(0,a.jsx)(t.CiCirclePlus,{size:35})})]}),l&&(0,a.jsx)("div",{className:"p-4 text-gray-600 border-b border-x border-[#0000001f] rounded-b-2xl",children:s})]})])},92476,e=>{"use strict";var a=e.i(43476);e.s(["default",0,({isAnnual:e,setIsAnnual:t,t:s})=>(0,a.jsx)("div",{className:"flex items-center justify-center gap-6 bg-[#F5F5F5] w-fit mx-auto p-2 rounded-full",children:(0,a.jsxs)("div",{className:"flex flex-1 rounded-[40] overflow-hidden select-none gap-2 w-full max-w-48 285p:max-w-58 xs:min-w-100 xs:max-w-100 h-15 text-[12px] xs:text-[16px]",children:[(0,a.jsxs)("div",{onClick:()=>t(!0),className:`flex-1 flex flex-col 285p:flex-row items-center  285p:gap-2 justify-center cursor-pointer transition-colors duration-100
2            ${e?"bg-white text-black rounded-full px-2 xs:px-7 py-4":"bg-gray-100 text-black"}`,children:[s("annual")," ",e&&(0,a.jsxs)("span",{className:"text-[10px] xs:text-[14px] xs:whitespace-nowrap  rounded-full bg-(--primary-color) px-2 xs:px-2.5 text-white text-center",children:[s("save")," 50%"]})]}),(0,a.jsx)("div",{onClick:()=>t(!1),className:`flex-1 flex items-center justify-center cursor-pointer transition-colors duration-100
3            ${!e?"bg-white text-black rounded-full px-2 xs:px-7 py-4":"bg-gray-100 text-black"}`,children:s("monthly")})]})})])},81650,e=>{"use strict";function a(e){return e.replace(/:\d+$/,"").toLowerCase()}function t(){if("u"<typeof navigator)return!1;let e=navigator.userAgent,a="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return!!/iPhone|iPad|iPod/i.test(e)||!!a||/Macintosh/i.test(e)}function s(e){let t=a(e||"");return"genzwrite.com"===a(t).replace(/^www\./,"")||t.endsWith(".vercel.app")?"https://genzwrite.com/open":"/open"}e.s(["APP_STORE_URL",0,"https://apps.apple.com/app/id6804414989","IOS_CUSTOM_SCHEME",0,"genzwrite://","canOpenNativeApp",()=>t,"getSmartOpenHref",()=>s])},84661,91155,e=>{"use strict";var a=e.i(5766),t=e.i(45141),s=e.i(99509);let l=async(e,a)=>{let t=await fetch("/api/checkout/claim",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e,method:a})}),s=await t.json().catch(()=>({}));return{ok:t.ok,status:t.status,error:s?.error}},i=e=>{"already_subscribed"===e?a.default.error(t.default.t("pricing.alreadySubscribed")):"checkout_in_progress"===e?a.default.error(t.default.t("pricing.checkoutInProgress")):a.default.error(t.default.t("pricing.checkoutFailed"))},n=async(e,n,c,d,o)=>{var u;if(c(!0),await new Promise(e=>{window.gtag?(window.gtag("event","conversion",{send_to:"AW-17747682384/_viaCIfgwcUbENDI4I5C",event_callback:()=>{e()},event_timeout:2e3}),setTimeout(()=>{e()},2e3)):(console.warn("⚠️ gtag not loaded yet"),setTimeout(()=>e(),100))}),u={plan:e,type:d},window.ttq.track("Subscribe",u),!n)return void c(!1);let h=window.tolt_referral||null;try{if(o)await r(n);else{let s=await l(n,"stripe");if(!s.ok)return void i(s.error);let r=await fetch("/api/purchase",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:n,pack:e,type:d,host:window.location.origin,toltReferral:h})}),c=await r.json();if(409===r.status)return void i(c.error);c.url?window.location.href=c.url:a.default.error(t.default.t("pricing.checkoutFailed"))}}catch(e){console.error(e),(0,s.default)("App error logged",{type:"checkout",message:e instanceof Error?e.message:String(e)}),a.default.error(t.default.t("pricing.checkoutFailed"))}finally{c(!1)}},r=async e=>{let s=await fetch("/api/create-portal-session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e,host:window.location.origin})}),l=await s.json();l.url?window.location.href=l.url:a.default.error(t.default.t("pricing.checkoutFailed"))};e.s(["default",0,n,"handleMangeSubscription",0,r],84661),e.i(43476),e.i(71645);var c=e.i(81650);function d(){window.location.href=(0,c.getSmartOpenHref)(window.location.host)}e.s(["goToSmartAppOpen",()=>d],91155)},56098,e=>{"use strict";e.s(["SUBSCRIPTION_PLANS",0,{basic:{monthly:{planId:"P-7MA15301UW129200XNE37RUI",credits:5e3,plan:"basic",plan_type:"monthly",price:4.99},annual:{planId:"P-7ME441877J816063BNE37YHA",credits:5e3,plan:"basic",plan_type:"annual",price:23.88}},pro:{monthly:{planId:"P-2MD35632RM574850GNE37SUQ",credits:15e3,plan:"pro",plan_type:"monthly",price:9.99},annual:{planId:"P-7MB370493H890321ENE37Y2Y",credits:15e3,plan:"pro",plan_type:"annual",price:59.88}},ultra:{monthly:{planId:"P-7DH06579ME2896024NE37TMA",credits:3e4,plan:"ultra",plan_type:"monthly",price:19.99},annual:{planId:"P-7Y340795NP4377544NE37UBI",credits:3e4,plan:"ultra",plan_type:"annual",price:119.88}}}])},40919,e=>{e.v("/_next/static/media/check_icon.837f5c7f.svg")},96740,e=>{e.v("/_next/static/media/disabled_icon.fa2e7856.svg")},97958,e=>{e.v("/_next/static/media/check_icon_pro.944d098c.svg")},59851,e=>{e.v("/_next/static/media/disabled_icon_pro.fa2e7856.svg")},37886,e=>{e.v("/_next/static/media/check_icon_ultra.837f5c7f.svg")},32181,98955,21714,e=>{"use strict";var a=e.i(43476),t=e.i(57688);let s={src:e.i(40919).default,width:24,height:24,blurWidth:0,blurHeight:0},l={src:e.i(96740).default,width:24,height:24,blurWidth:0,blurHeight:0};
3e.s(["default",0,({isAnnual:e,handleClick:i,t:n,isAppStore:r})=>(0,a.jsxs)("article",{className:"pricing-card card-basic",children:[(0,a.jsx)("div",{className:"card-bg-layer bg-basic notched-container"}),(0,a.jsxs)("div",{className:"badge-notch notch-basic",children:[(0,a.jsx)("svg",{className:"notch-border-svg",viewBox:"0 0 158 80",width:158,height:80,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0 0 C 9.92 0, 19.10 5.25, 24.13 13.80 L 37.89 37.20 C 42.92 45.75, 52.11 51, 62.03 51 L 129.01 51 C 144.48 51, 157.01 63.54, 157.01 79",stroke:"var(--border-light)",strokeWidth:"1.4",strokeLinecap:"round"})}),(0,a.jsxs)("div",{className:"badge-content",children:[(0,a.jsx)("span",{children:n("notchContent")}),(0,a.jsx)("span",{className:"dot dot-orange"})]})]}),(0,a.jsxs)("div",{className:"card-content",children:[(0,a.jsxs)("div",{className:"card-header",children:[(0,a.jsx)("h2",{className:"plan-name text-center ",children:n("planName")}),(0,a.jsxs)("div",{className:"plan-price-wrapper text-center",children:[(0,a.jsxs)("span",{className:"plan-price","data-monthly":"$4.99","data-annual":"$2.49",children:["$",e?2.49:4.99]}),(0,a.jsxs)("span",{className:"plan-interval",children:[n("interval"),(0,a.jsx)("br",{}),e&&(0,a.jsx)("span",{className:"billed-annual",children:n("billedAnnually")})]})]}),(0,a.jsx)("div",{className:"plan-pill pill-light",children:(0,a.jsx)("span",{className:"pill-text",children:n("pillText")})})]}),(0,a.jsx)("hr",{className:"plan-divider divider-dark"}),(0,a.jsxs)("ul",{className:"feature-list list-dark",children:[(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:s,alt:n("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature1")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:s,alt:n("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature2")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:s,alt:n("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature3")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:s,alt:n("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature4")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:s,alt:n("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature5")})]}),(0,a.jsxs)("li",{className:"feature-item disabled",children:[(0,a.jsx)(t.default,{src:l,alt:n("imageAlts.notIncluded"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature6")})]}),(0,a.jsxs)("li",{className:"feature-item disabled",children:[(0,a.jsx)(t.default,{src:l,alt:n("imageAlts.notIncluded"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature7")})]}),(0,a.jsxs)("li",{className:"feature-item disabled",children:[(0,a.jsx)(t.default,{src:l,alt:n("imageAlts.notIncluded"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature8")})]}),(0,a.jsxs)("li",{className:"feature-item disabled",children:[(0,a.jsx)(t.default,{src:l,alt:n("imageAlts.notIncluded"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:n("features.feature9")})]})]}),(0,a.jsxs)("div",{className:"card-footer",children:[(0,a.jsx)("p",{className:"plan-summary",children:n("planSummary")}),(0,a.jsx)("button",{onClick:()=>i("basic",e),className:`cta-button btn-dark${r?" app-store-cta":""}`,children:n(r?"btnAppStore":"btn")}),r&&(0,a.jsx)("p",{className:"app-store-hint",children:n("btnAppStoreHint")})]})]})]})],32181);let i={src:e.i(97958).default,width:24,height:24,blurWidth:0,blurHeight:0},n={src:e.i(59851).default,width:24,height:24,blurWidth:0,blurHeight:0};
3e.s(["default",0,({isAnnual:e,handleClick:s,t:l,isAppStore:r})=>(0,a.jsxs)("article",{className:"pricing-card card-pro-wrapper",children:[(0,a.jsx)("div",{className:"pro-grid-overlay"}),(0,a.jsxs)("div",{className:"card-pro-inner",children:[(0,a.jsx)("div",{className:"card-bg-layer bg-pro notched-container"}),(0,a.jsx)("div",{className:"badge-notch notch-pro",children:(0,a.jsxs)("div",{className:"badge-content",children:[(0,a.jsx)("span",{children:l("notchContent")}),(0,a.jsx)("span",{className:"dot dot-black"})]})}),(0,a.jsxs)("div",{className:"card-content",children:[(0,a.jsxs)("div",{className:"card-header",children:[(0,a.jsx)("h2",{className:"plan-name text-center",children:l("planName")}),(0,a.jsxs)("div",{className:"plan-price-wrapper",children:[(0,a.jsxs)("span",{className:"plan-price","data-monthly":"$4.99","data-annual":"$9.99",children:["$",e?4.99:9.99]}),(0,a.jsxs)("span",{className:"plan-interval",children:[l("interval"),(0,a.jsx)("br",{}),e&&(0,a.jsx)("span",{className:"billed-annual",children:l("billedAnnually")})]})]}),(0,a.jsx)("div",{className:"plan-pill pill-dark",children:(0,a.jsx)("span",{className:"pill-text",children:l("pillText")})})]}),(0,a.jsx)("hr",{className:"plan-divider divider-light"}),(0,a.jsxs)("ul",{className:"feature-list list-light",children:[(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:i,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature1")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:i,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature2")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:i,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature3")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:i,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature4")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:i,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature5")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:i,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature6")})]}),(0,a.jsxs)("li",{className:"feature-item disabled",children:[(0,a.jsx)(t.default,{src:n,alt:l("imageAlts.notIncluded"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature7")})]}),(0,a.jsxs)("li",{className:"feature-item disabled",children:[(0,a.jsx)(t.default,{src:n,alt:l("imageAlts.notIncluded"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature8")})]}),(0,a.jsxs)("li",{className:"feature-item disabled",children:[(0,a.jsx)(t.default,{src:n,alt:l("imageAlts.notIncluded"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature9")})]})]}),(0,a.jsxs)("div",{className:"card-footer",children:[(0,a.jsx)("p",{className:"plan-summary",children:l("planSummary")}),(0,a.jsx)("button",{onClick:()=>s("pro",e),className:`cta-button btn-light${r?" app-store-cta":""}`,children:l(r?"btnAppStore":"btn")}),r&&(0,a.jsx)("p",{className:"app-store-hint",children:l("btnAppStoreHint")})]})]})]})]})],98955);let r={src:e.i(37886).default,width:24,height:24,blurWidth:0,blurHeight:0};e.s(["default",0,({isAnnual:e,handleClick:s,t:l,isAppStore:i})=>(0,a.jsxs)("article",{className:"pricing-card card-ultra",children:[(0,a.jsx)("div",{className:"card-bg-layer bg-ultra notched-container"}),(0,a.jsxs)("div",{className:"badge-notch notch-ultra",children:[(0,a.jsx)("svg",{className:"notch-border-svg",viewBox:"0 0 158 80",width:158,height:80,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M0 0 C 9.92 0, 19.10 5.25, 24.13 13.80 L 37.89 37.20 C 42.92 45.75, 52.11 51, 62.03 51 L 129.01 51 C 144.48 51, 157.01 63.54, 157.01 79",stroke:"var(--border-light)",strokeWidth:"1.4",strokeLinecap:"round"})}),(0,a.jsxs)("div",{className:"badge-content",children:[(0,a.jsx)("span",{children:l("notchContent")}),(0,a.jsx)("span",{className:"dot dot-green"})]})]}),(0,a.jsxs)("div",{className:"card-content",children:[(0,a.jsxs)("div",{className:"card-header",children:[(0,a.jsx)("h2",{className:"plan-name text-center",children:l("planName")}),(0,a.jsxs)("div",{className:"plan-price-wrapper",children:[(0,a.jsxs)("span",{className:"plan-price","data-monthly":"$9.99","data-annual":"$19.99",children:["$",e?9.99:19.99]}),(0,a.jsxs)("span",{className:"plan-interval",children:[l("interval"),(0,a.jsx)("br",{}),e&&(0,a.jsx)("span",{className:"billed-annual",children:l("billedAnnually")})]})]}),(0,a.jsx)("div",{className:"plan-pill pill-light",children:(0,a.jsx)("span",{className:"pill-text",children:l("pillText")})})]}),(0,a.jsx)("hr",{className:"plan-divider divider-dark"}),(0,a.jsxs)("ul",{className:"feature-list list-dark",children:[(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature1")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature2")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature3")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature4")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature5")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature6")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature7")})]}),(0,a.jsxs)("li",{className:"feature-item enabled",children:[(0,a.jsx)(t.default,{src:r,alt:l("imageAlts.included"),width:60,height:60,className:"feat-icon"}),(0,a.jsx)("span",{className:"feat-text",children:l("features.feature8")})]})]}),(0,a.jsxs)("div",{className:"card-footer",children:[(0,a.jsx)("p",{className:"plan-summary",children:l("planSummary")}
3),(0,a.jsx)("button",{onClick:()=>s("ultra",e),className:`cta-button btn-dark${i?" app-store-cta":""}`,children:l(i?"btnAppStore":"btn")}),i&&(0,a.jsx)("p",{className:"app-store-hint",children:l("btnAppStoreHint")})]})]})]})],21714)},92302,35020,e=>{"use strict";var a=e.i(95187);let t=(0,a.createServerReference)("702f097ec91141238231bf1c082a9353a719055703",a.callServer,void 0,a.findSourceMapURL,"findUser");e.s(["findUser",()=>t],35020);var s=e.i(5766);let l=async(e,a,l,i,n)=>{l(!0);try{if(!e||!a)return;let l=await fetch("/api/paypal/change-plan",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscriptionId:a,newPlanId:e,host:window.location.origin})}),r=await l.json();if(r.error)return void("OVERRIDES_ON_SAME_PLAN_NOT_ALLOWED"===r.details.details[0].issue?s.default.error("You are already on this plan. Please choose a different one.",{duration:5e3,position:"bottom-right"}):s.default.error("Something went wrong. Please try again.",{duration:5e3,position:"bottom-right"}));r.approveUrl&&(window.location.href=r.approveUrl);let c=await t(a,null,null);if(!c)return;i({...n,plan:c.plan,plan_type:c.plan_type,credits:c.credits})}catch(e){console.error("Error updating PayPal plan:",e),s.default.error("Something went wrong. Please try again.",{duration:5e3,position:"bottom-right"})}finally{l(!1)}};e.s(["default",0,l],92302)},76998,e=>{"use strict";var a=e.i(43476),t=e.i(91095),s=e.i(71645),l=e.i(60071),i=e.i(92476),n=e.i(70703),r=e.i(32181),c=e.i(98955),d=e.i(21714),o=e.i(71287),u=e.i(45742),h=e.i(56098),p=e.i(35020),m=e.i(92302),f=e.i(99509),x=e.i(84661),j=e.i(94848),g=e.i(18566),N=e.i(91155);let b=(0,n.default)(()=>e.A(29357),{loadableGenerated:{modules:[4143]},ssr:!1});e.s(["default",0,()=>{let{setIsLoginOpen:e}=(0,t.useLogin)(),{user:n,setUser:w}=(0,u.useUser)(),[v,y]=(0,s.useState)(!0),[_,A]=(0,s.useState)(!1),[S,k]=(0,s.useState)(!1),[C,P]=(0,s.useState)(null),I=(0,o.createClient)(),T=(0,g.useParams)().locale,{t:O}=(0,j.useTranslation)(T,"common","pricing"),{t:M}=(0,j.useTranslation)(T,"common","basicCard"),{t:E}=(0,j.useTranslation)(T,"common","proCard"),{t:U}=(0,j.useTranslation)(T,"common","ultraCard"),{t:L}=(0,j.useTranslation)(T,"common","confirmReactivateModal");(0,s.useEffect)(()=>{P(window?.tolt_referral||null)},[]);let R=async()=>{await I.from("users").update({tolt_code:C}).eq("id",n?.user_id)},$=async e=>{if(n&&n.subscription_id)if(n.cancelled_at)k(!0);else{let a=Object.values(h.SUBSCRIPTION_PLANS).flatMap(e=>Object.values(e)).find(a=>a.plan===e&&a.plan_type===(v?"annual":"monthly"));if(!a)return;let t=await (0,p.findUser)(n.subscription_id,null,null);if(!t)return;if(a.plan===t.plan&&a.plan_type===t.plan_type)return void alert("You are already subscribed to this plan.");await (0,m.default)(a.planId,n.subscription_id,A,w,n)}},H=async(a,t)=>{n?((0,f.default)("offer_started",{plan:a,plan_type:t?"annual":"monthly",user_email:n?.email}),await R(),"revenuecat"===n.payment_method)?(0,N.goToSmartAppOpen)():"paypal"!==n.payment_method?(0,x.default)(a,n?.user_id,A,t?"annual":"monthly",n.subscription_id):$(a):e(!0)};return(0,a.jsxs)("div",{children:[(0,a.jsx)(i.default,{isAnnual:v,setIsAnnual:y,t:O}),_&&(0,a.jsx)(l.default,{}),(0,a.jsxs)("div",{className:"mt-10",children:[S&&(0,a.jsx)(b,{setShowReactivate:k,setLoading:A,t:L}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5",children:[(0,a.jsx)(r.default,{isAnnual:v,handleClick:H,t:M,isAppStore:n?.payment_method==="revenuecat"}),(0,a.jsx)(c.default,{isAnnual:v,handleClick:H,t:E,isAppStore:n?.payment_method==="revenuecat"}),(0,a.jsx)(d.default,{isAnnual:v,handleClick:H,t:U,isAppStore:n?.payment_method==="revenuecat"})]})]})]})}])},5167,e=>{"use strict";var a=e.i(43476),t=e.i(71645),s=e.i(8370);e.s(["default",0,({data:e})=>{let[l,i]=(0,t.useState)([]),n=e=>{i(a=>a.includes(e)?a.filter(a=>a!==e):[...a,e])},r=e.filter((e,a)=>a%2==0),c=e.filter((e,a)=>a%2!=0);return(0,a.jsx)("div",{className:"w-full mx-auto rounded-2xl",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-2",children:[(0,a.jsx)("div",{className:"flex-1 flex flex-col gap-2",children:c.map((e,t)=>(0,a.jsx)(s.default,{title:e.question,content:e.answer,isOpen:l.includes(2*t+1),onClick:()=>n(2*t+1)},`right-${t}`))}),(0,a.jsx)("div",{className:"flex-1 flex flex-col gap-2",children:r.map((e,t)=>(0,a.jsx)(s.default,{title:e.question,content:e.answer,isOpen:l.includes(2*t),onClick:()=>n(2*t)},`left-${t}`))})]})})}])},29357,e=>{e.v(a=>Promise.all(["static/chunks/e52a61701c081231.js","static/chunks/dcf6425225c9f0c7.js"].map(a=>e.l(a))).then(()=>a(4143)))}]);

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.