1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,567012,e=>{"use strict";e.i(466598);var a=e.i(843476),t=e.i(846781),r=e.i(161854),i=e.i(271645),l=e.i(975157);function n({width:e=40,height:t=40,x:r=-1,y:n=-1,strokeDasharray:s="0",squares:d,className:o,...c}){let m=(0,i.useId)();return(0,a.jsxs)("svg",{"aria-hidden":"true",className:(0,l.cn)("pointer-events-none absolute inset-0 h-full w-full fill-gray-400/30 stroke-gray-400/30",o),...c,children:[(0,a.jsx)("defs",{children:(0,a.jsx)("pattern",{id:m,width:e,height:t,patternUnits:"userSpaceOnUse",x:r,y:n,children:(0,a.jsx)("path",{d:`M.5 ${t}V.5H${e}`,fill:"none",strokeDasharray:s})})}),(0,a.jsx)("rect",{width:"100%",height:"100%",strokeWidth:0,fill:`url(#${m})`}),d&&(0,a.jsx)("svg",{x:r,y:n,className:"overflow-visible",children:d.map(([r,i])=>(0,a.jsx)("rect",{strokeWidth:"0",width:e-1,height:t-1,x:r*e+1,y:i*t+1},`${r}-${i}`))})]})}var s=e.i(865774),d=e.i(519455),o=e.i(375679),c=e.i(671973),m=e.i(453375),p=e.i(177227),x=e.i(717521),x=x,h=e.i(618566);function u({planId:e,priceId:t,planKey:r,interval:l=p.PlanIntervals.MONTH,variant:n="default",size:s="default",className:u,children:g}){let[b,f]=(0,i.useState)(!1),v=(0,h.usePathname)(),w=r??("dev"===e?"dev":"pro"===e?"pro":void 0),N=async()=>{let e;try{f(!0),(0,o.trackFunnelStep)("checkout_started",{source:"pricing_card",plan:w||"unknown",billingCycle:l,hasPriceId:!!t});let a={attribution:{...(0,m.buildCheckoutAttribution)("pricing_card"),paywallTrigger:"pricing_page_direct",billingCycle:l}};w&&(a.plan=w),a.interval=l,t&&(a.priceId=t),(0,m.clearStoredCheckoutAttemptId)();let r=await fetch("/api/billing/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(401===r.status){let e=v||"/pricing";(0,o.trackFunnelStep)("checkout_requires_auth",{source:"pricing_card",plan:w||"unknown",billingCycle:l,statusCode:r.status}),(0,o.trackFunnelStep)("signup_cta_clicked",{source:"checkout_requires_auth",path:e,plan:w||"unknown"}),(0,o.trackFunnelStep)("signup_started",{source:"checkout_requires_auth",path:e,plan:w||"unknown"}),window.location.href=`/signin?callbackUrl=${encodeURIComponent(e)}`;return}let i=await r.json().catch(()=>({}));if(e=i.checkoutAttemptId,!r.ok||!i.url)throw Error((0,c.getBillingCheckoutErrorMessage)(r.status,i));(0,m.storeCheckoutAttemptId)(e),(0,o.trackFunnelStep)("checkout_session_created",{source:"pricing_card",plan:w||"unknown",billingCycle:l,statusCode:r.status,checkoutAttemptId:e}),(0,o.trackFunnelStep)("checkout_redirected",{source:"pricing_card",plan:w||"unknown",billingCycle:l,destination:"stripe",checkoutAttemptId:e}),window.location.href=i.url}catch(t){let a=t instanceof Error?t.message:"Failed to create checkout session";(0,m.clearStoredCheckoutAttemptId)(),(0,o.trackFunnelStep)("checkout_failed",{source:"pricing_card",plan:w||"unknown",billingCycle:l,reason:a,checkoutAttemptId:e}),window.alert(a)}finally{f(!1)}};return(0,a.jsx)(d.Button,{variant:n,size:s,className:u,onClick:N,disabled:b,children:b?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.default,{className:"mr-2 size-4 animate-spin"}),"Loading..."]}):g})}var x=x;function g({variant:e="default",size:t="default",className:r,children:n}){let[s,o]=(0,i.useState)(!1),c=(0,h.usePathname)(),m=async()=>{try{o(!0);let e=await fetch("/api/billing/portal",{method:"POST"});if(401===e.status){window.location.href=`/signin?callbackUrl=${encodeURIComponent(c||"/dashboard")}`;return}let a=await e.json().catch(()=>({}));if(!e.ok||!a.url)throw Error(a.error||"Failed to create billing portal session");window.location.href=a.url}catch(a){let e=a instanceof Error?a.message:"Failed to create billing portal session";window.alert(e)}finally{o(!1)}};return(0,a.jsx)(d.Button,{variant:e,size:t,className:(0,l.cn)(r,"cursor-pointer"),onClick:m,disabled:s,children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.default,{className:"mr-2 size-4 animate-spin"}),"Loading..."]}):n})}var b=e.i(614537),f=e.i(563921),f=f,v=e.i(678745),v=v,w=e.i(555546),w=w,N=e.i(136166),N=N,y=e.i(576144),y=y,j=e.i(841947),j=j,k=e.i(871631),k=k,_=e.i(526732),z=e.i(861745);
1let P={free:{id:"free",name:"Free",description:"For personal use and light workloads.",idealFor:"Best when you only need shareable links for single uploads and occasional publishing.",gridClassName:"lg:col-span-3",mobileOrderClassName:"order-2 lg:order-none",panelClassName:"bg-[linear-gradient(180deg,rgba(9,14,28,0.96),rgba(4,8,22,0.98))]",badgeClassName:"border-white/12 bg-white/[0.06] text-zinc-200 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)]",priceClassName:"text-zinc-50",ctaClassName:"border-white/14 bg-white/[0.04] text-zinc-100 hover:bg-white/[0.10]",gradientColor:"rgba(148, 163, 184, 0.10)",gradientFrom:"#cbd5e1",gradientTo:"#67e8f9",beamFrom:"#cbd5e1",beamTo:"#67e8f9",features:[{label:"Upload size",value:"2MB"},{label:"Daily uploads",value:"10"},{label:"Storage quota",value:"500MB"},{label:"Batch upload",value:!1},{label:"Upload history",value:!1},{label:"Bonus AI credits",value:"5 / day"},{label:"Image management",value:!1},{label:"Private images",value:!1},{label:"API",value:!1},{label:"CDN",value:"Standard"},{label:"Webhook",value:!1},{label:"Ads",value:"Enabled"},{label:"Support",value:"Community"}]},pro:{id:"pro",name:"Pro",description:"For frequent creators with higher limits and no ads.",idealFor:"Best once uploads become daily work and you want history, management, and API access without friction.",planKey:"pro",featured:!0,gridClassName:"lg:col-span-5",mobileOrderClassName:"order-1 lg:order-none",panelClassName:"bg-[linear-gradient(180deg,rgba(14,22,36,0.98),rgba(8,13,26,0.99))]",badgeClassName:"border-cyan-200/18 bg-cyan-300/10 text-cyan-50 shadow-[inset_0_1px_0_rgba(255,255,255,0.12)]",priceClassName:"text-cyan-50",ctaClassName:"bg-[linear-gradient(135deg,rgba(103,232,249,0.98),rgba(251,191,36,0.96))] text-[#081827] hover:brightness-105",gradientColor:"rgba(8, 145, 178, 0.12)",gradientFrom:"#67e8f9",gradientTo:"#fbbf24",beamFrom:"#67e8f9",beamTo:"#fbbf24",features:[{label:"Upload size",value:"50MB"},{label:"Daily uploads",value:"1000"},{label:"Storage quota",value:"50GB"},{label:"Batch upload",value:"20 images"},{label:"Upload history",value:"30 days"},{label:"Bonus AI credits",value:"100 / month"},{label:"Image management",value:!0},{label:"Private images",value:!0},{label:"API",value:"5000 / month"},{label:"CDN",value:"Standard"},{label:"Webhook",value:!1},{label:"Ads",value:"Disabled"},{label:"Support",value:"Email"}]},dev:{id:"dev",name:"Dev",description:"For products, automation, and API-heavy workflows.",idealFor:"Best when Image2URL becomes part of a product, internal toolchain, or webhook-driven ingestion pipeline.",planKey:"dev",gridClassName:"lg:col-span-4",mobileOrderClassName:"order-3 lg:order-none",panelClassName:"bg-[linear-gradient(180deg,rgba(7,22,27,0.96),rgba(3,12,18,0.99))]",badgeClassName:"border-emerald-200/18 bg-emerald-200/10 text-emerald-50 shadow-[inset_0_1px_0_rgba(255,255,255,0.10)]",priceClassName:"text-emerald-50",ctaClassName:"bg-[linear-gradient(135deg,rgba(52,211,153,0.96),rgba(20,184,166,0.96))] text-[#08251f] hover:brightness-105",gradientColor:"rgba(16, 185, 129, 0.10)",gradientFrom:"#34d399",gradientTo:"#67e8f9",beamFrom:"#34d399",beamTo:"#67e8f9",features:[{label:"Upload size",value:"100MB"},{label:"Daily uploads",value:"10000"},{label:"Storage quota",value:"250GB"},{label:"Batch upload",value:"200 images"},{label:"Upload history",value:"Permanent"},{label:"Bonus AI credits",value:"400 / month"},{label:"Image management",value:!0},{label:"Private images",value:!0},{label:"API",value:"50000 / month"},{label:"CDN",value:"High speed"},{label:"Webhook",value:!0},{label:"Ads",value:"Disabled"},{label:"Support",value:"Priority"}]}},I=[{title:"Start Free",description:"Best for testing the workflow before uploads become part of your routine.",icon:y.default},{title:"Choose Pro",description:"Best value once publishing becomes recurring and you want history, bigger limits, and monthly bonus AI credits.",icon:k.default},{title:"Go Dev",description:"Built for API-heavy workflows, automation, and products that need webhook support.",icon:w.default}],C=["Upload size","Daily uploads","Storage quota","Bonus AI credits"],A=["Upload size","Daily uploads","Storage quota","Batch upload","Upload history","Bonus AI credits","API","Webhook","Support"],S={pro:[{href:"/docs/quickstart",label:{en:"API quickstart",zh:"API å¿«éå¼å§"}},{href:"/docs/authentication-and-usage",label:{en:"Auth and usage",zh:"认è¯ä¸ç¨é"}}],dev:[{href:"/docs/route-reference",label:{en:"Route reference",zh:"è·¯ç±åè"}},{href:"/docs/webhooks",label:{en:"Webhook guide",zh:"Webhook æå"}}]},B=[{id:"starter",name:"Starter Pack",credits:100,priceUsd:"$12",effectiveRate:"$0.12 / credit",description:"Best for occasional AI work on top of the credits already included in your subscription.",eligiblePlans:["pro","dev"]},{id:"growth",name:"Growth Pack",credits:300,priceUsd:"$30",effectiveRate:"$0.10 / credit",description:"A better fit once image AI becomes part of your weekly workflow and you need extra headroom.",eligiblePlans:["pro","dev"]},{id:"scale",name:"Scale Pack",credits:1e3,priceUsd:"$90",effectiveRate:"$0.09 / credit",description:"Designed for heavier AI usage while keeping one-time purchases simpler than a full plan change.",eligiblePlans:["pro","dev"]}],F=[{id:"storage-25gb",name:"Storage +25GB",quotaLabel:"+25GB quota",priceUsd:"$9",description:"For Pro or Dev workspaces that are running out of room but do not need a full plan change yet.",eligiblePlans:["pro","dev"]},{id:"storage-100gb",name:"Storage +100GB",quotaLabel:"+100GB quota",priceUsd:"$29",description:"Reserved for heavier Dev workspaces storing larger asset libraries and long-running upload history.",eligiblePlans:["dev"]}],M=[{label:"Free AI",description:"Includes 5 bonus AI credits per day and refreshes daily at 8:00 AM."},{label:"Pro AI",description:"Includes 100 bonus AI credits every month for recurring image work."},{label:"Dev AI",description:"Includes 400 bonus AI credits every month for heavier API and automation workloads."},{label:"Storage",description:"Storage quota stays separate from AI credits and can be expanded with capacity packs."}],E=[{id:p.PlanIntervals.YEAR,label:"Annually",badge:"Recommended",description:"Pay once, save on Pro, and start with the strongest value for regular use."},{id:p.PlanIntervals.MONTH,label:"Monthly",description:"Stay flexible if you are still validating usage or want a lower upfront commitment."}];function T(){return(0,a.jsx)(t.BlurFade,{delay:.03,children:(0,a.jsx)(s.MagicCard,{className:"rounded-[26px] border border-white/8",innerClassName:"bg-[linear-gradient(180deg,rgba(9,14,28,0.96),rgba(4,8,22,0.98))]",gradientColor:"rgba(103, 232, 249, 0.10)",gradientFrom:"#67e8f9",gradientTo:"#fde68a",gradientSize:220,children:(0,a.jsxs)("section",{className:"relative overflow-hidden rounded-[26px] px-3.5 py-3.5 sm:px-5 sm:py-4",children:[(0,a.jsx)(n,{width:32,height:32,className:"absolute inset-0 h-full w-full stroke-white/[0.05] fill-white/[0.01] [mask-image:radial-gradient(circle_at_top_right,white,transparent_74%)]"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 border-b border-white/8 pb-4 sm:flex-row sm:items-end sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.28em] text-zinc-500",children:"Qu
1ick picks"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-300",children:"Use this shortcut if you are choosing by workload first."})]}),(0,a.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Free to Pro to Dev"})]}),(0,a.jsx)("div",{className:"mt-4 grid gap-2.5 md:grid-cols-3 md:gap-0",children:I.map((e,t)=>{let r=e.icon;return(0,a.jsx)("div",{className:(0,l.cn)("px-0.5 py-0.5 sm:px-1 sm:py-1 md:px-4",t>0&&"md:border-l md:border-white/8"),children:(0,a.jsxs)("div",{className:"flex items-start gap-3 rounded-[18px] border border-white/8 bg-black/15 px-3 py-3.5 sm:rounded-[20px] sm:px-4 sm:py-4 md:min-h-[150px]",children:[(0,a.jsx)("div",{className:"inline-flex rounded-full border border-white/10 bg-white/[0.05] p-2 text-zinc-100",children:(0,a.jsx)(r,{className:"size-4"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-zinc-300",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-zinc-400",children:e.description})]})]})},e.title)})})]})]})})})}function $(e){return"boolean"==typeof e?e?"Included":"Not included":e}function R(e,a){return"Storage quota"===a?"free"===e.id?"500MB":"pro"===e.id?e.displayInterval===p.PlanIntervals.YEAR?"75GB":"50GB":"250GB":e.features.find(e=>e.label===a)?.value??!1}function U(e,a){return"dev"===e.id&&"API"===a?"Built for product and internal integrations":"dev"===e.id&&"Webhook"===a?"Live event delivery for automation flows":"Storage quota"!==a?"Bonus AI credits"===a&&"free"===e.id?"Refreshes daily at 8:00 AM":void 0:"pro"===e.id?e.displayInterval===p.PlanIntervals.YEAR?"50GB base + 25GB annual bonus":"Standard Pro storage":"free"===e.id?"Entry-level hosting space":"dev"===e.id?"Built for larger hosted asset libraries":void 0}function D({title:e,subtitle:c,hideHeading:m=!1,defaultInterval:x=p.PlanIntervals.MONTH,className:w,yearlyCheckoutEnabled:y={},showDecisionGuideBelowPlans:k=!1}){let{status:D}=(0,_.useSession)(),L=(0,z.useLocale)(),q=(0,h.usePathname)(),[G,O]=(0,i.useState)(null),[Y,H]=(0,i.useState)(x);(0,i.useEffect)(()=>{H(x)},[x]),(0,i.useEffect)(()=>{if("authenticated"!==D)return void O(null);let e=!1;return(async()=>{try{let a=await fetch("/api/dashboard/subscription",{cache:"no-store"});if(!a.ok)return;let t=await a.json();e||O({plan:"pro"===t.plan||"dev"===t.plan||"free"===t.plan?t.plan:"free",stripePriceId:t.stripePriceId??null,interval:t.interval===p.PlanIntervals.YEAR||t.interval===p.PlanIntervals.MONTH?t.interval:null})}catch{e||O(null)}})(),()=>{e=!0}},[D]);let W=G?.plan??"free",K=G?.interval??null,V=q||"/pricing",Q=`/signin?callbackUrl=${encodeURIComponent(V)}`,J="authenticated"===D,X="free"!==W,Z=Object.keys(P).map(e=>{var a,t,r;return{...P[e],...(a=e,t=Y,r=y,"free"===a?{eyebrow:"Test the workflow",price:"$0",period:"/free",priceNote:"No credit card. Includes 5 bonus AI credits per day, refreshed at 8:00 AM.",cta:"Start Free",footerLabel:"No commitment"}:"pro"===a?t===p.PlanIntervals.YEAR?{eyebrow:"Annual best value",price:"$7.20",period:"/month",strikePrice:"$9",totalPriceLabel:"Total $86.40 /year",priceNote:"Billed once per year. Save $21.60 compared with paying $9 monthly for 12 months. Includes 100 bonus AI credits every month and 25GB bonus storage on top of the 50GB Pro base.",savingsChip:"Save $21.60",cadenceChip:"Save 20%",cta:"Start Pro Annual",checkoutInterval:p.PlanIntervals.YEAR,checkoutEnabled:r.pro??!1,unavailableLabel:"Annual checkout unavailable",footerLabel:"Best upfront conversion"}:{eyebrow:"Flexible monthly",price:"$9",period:"/month",priceNote:"Lower commitment, but annual billing is the stronger offer at $86.40/year. Includes 100 bonus AI credits every month and the standard 50GB Pro storage.",cadenceChip:"Switch to annual later",cta:"Start Pro Monthly",checkoutInterval:p.PlanIntervals.MONTH,checkoutEnabled:!0,footerLabel:"Instant activation after Stripe checkout"}:t===p.PlanIntervals.YEAR?{eyebrow:"Automation-first",price:"$29",period:"/month",priceNote:"Dev currently stays on monthly billing while annual expansion is finalized.",cadenceChip:"Monthly only",cta:"Start Dev for API Workflows",checkoutInterval:p.PlanIntervals.MONTH,checkoutEnabled:!0,footerLabel:"Built for API delivery and automation",intervalFallback:"Dev remains monthly while annual checkout is focused on Pro."}:{eyebrow:"Automation-first",price:"$29",period:"/month",priceNote:"Built for API delivery, automation, webhook-driven jobs, and 400 bonus AI credits every month. The 250GB storage quota is included capacity, not the main reason to buy Dev.",cta:"Start Dev for API Workflows",checkoutInterval:p.PlanIntervals.MONTH,checkoutEnabled:!0,footerLabel:"Built for API delivery and automation"}),displayInterval:"free"===e||Y===p.PlanIntervals.YEAR&&"dev"===e?p.PlanIntervals.MONTH:Y}}),ee=A.map(e=>({label:e,values:Object.fromEntries(Z.map(a=>[a.id,$(R(a,e))]))}));E.find(e=>e.id===Y)??E[0];let ea=Y===p.PlanIntervals.YEAR?"Annual pricing is selected. Pro saves 20% compared with twelve monthly payments.":"Monthly pricing is selected. Switch to annual any time you want the lower Pro rate.",et=Y===p.PlanIntervals.YEAR?y.pro?"Pay yearly to lock the best Pro price. Dev stays available monthly for API-heavy teams.":"Monthly checkout is available now. Annual Pro can be enabled as soon as the yearly Stripe price is connected.":"Monthly billing keeps the barrier low while annual remains the better-value upgrade path.",er=J&&X,ei=L.toLowerCase().startsWith("zh");return(0,a.jsxs)("div",{className:(0,l.cn)("flex flex-col gap-6",w),children:[m?k?null:(0,a.jsx)(t.BlurFade,{delay:.03,children:(0,a.jsx)(s.MagicCard,{className:"hidden rounded-[26px] border border-white/8 md:block",innerClassName:"bg-[linear-gradient(180deg,rgba(9,14,28,0.96),rgba(4,8,22,0.98))]",gradientColor:"rgba(103, 232, 249, 0.10)",gradientFrom:"#67e8f9",gradientTo:"#fde68a",gradientSize:220,children:(0,a.jsxs)("section",{className:"relative overflow-hidden rounded-[26px] px-3.5 py-3.5 sm:px-5 sm:py-4",children:[(0,a.jsx)(n,{width:32,height:32,className:"absolute inset-0 h-full w-full stroke-white/[0.05] fill-white/[0.01] [mask-image:radial-gradient(circle_at_top_right,white,transparent_74%)]"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 border-b border-white/8 pb-4 sm:flex-row sm:items-end sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.28em] text-zinc-500",children:"Qu
1ick picks"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-300",children:"Use this shortcut if you are choosing by workload first."})]}),(0,a.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Free to Pro to Dev"})]}),(0,a.jsx)("div",{className:"mt-4 grid gap-2.5 md:grid-cols-3 md:gap-0",children:I.map((e,t)=>{let r=e.icon;return(0,a.jsx)("div",{className:(0,l.cn)("px-0.5 py-0.5 sm:px-1 sm:py-1 md:px-4",t>0&&"md:border-l md:border-white/8"),children:(0,a.jsxs)("div",{className:"flex items-start gap-3 rounded-[18px] border border-white/8 bg-black/15 px-3 py-3.5 sm:rounded-[20px] sm:px-4 sm:py-4 md:min-h-[150px]",children:[(0,a.jsx)("div",{className:"inline-flex rounded-full border border-white/10 bg-white/[0.05] p-2 text-zinc-100",children:(0,a.jsx)(r,{className:"size-4"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.18em] text-zinc-300",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-zinc-400",children:e.description})]})]})},e.title)})})]})]})})}):(0,a.jsxs)("div",{className:"mx-auto max-w-3xl space-y-3 text-center",children:[(0,a.jsx)("p",{className:"text-xs font-medium uppercase tracking-[0.32em] text-zinc-400",children:"Plans"}),(0,a.jsx)("h1",{className:"font-serif text-[2.15rem] text-zinc-50 md:text-5xl",children:e}),(0,a.jsx)("p",{className:"text-sm leading-6 text-zinc-300 md:text-lg md:leading-7",children:c}),(0,a.jsx)("p",{className:"text-xs uppercase tracking-[0.28em] text-zinc-500",children:ea})]}),m&&!k?(0,a.jsxs)("div",{className:"rounded-[20px] border border-white/8 bg-[linear-gradient(180deg,rgba(9,14,28,0.92),rgba(4,8,22,0.96))] px-4 py-3 md:hidden",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.26em] text-zinc-500",children:"Quick pick"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-200",children:"Pro is the default fit for regular hosted publishing. Move to Dev only when API or webhook-driven workflows become part of the job."})]}):null,(0,a.jsx)(s.MagicCard,{className:"rounded-[34px] border border-white/8",innerClassName:"bg-[linear-gradient(180deg,rgba(11,16,29,0.98),rgba(4,8,20,0.98))]",gradientColor:"rgba(251, 191, 36, 0.10)",gradientFrom:"#67e8f9",gradientTo:"#fbbf24",gradientSize:260,children:(0,a.jsxs)("section",{className:"relative overflow-hidden rounded-[34px] px-3 py-3.5 sm:px-4 sm:py-5 lg:px-5",children:[(0,a.jsx)(n,{width:36,height:36,className:"absolute inset-0 h-full w-full stroke-white/[0.05] fill-white/[0.012] [mask-image:radial-gradient(circle_at_top_left,white,transparent_78%)]"}),(0,a.jsxs)("div",{className:"relative flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl flex-col items-center gap-4 text-center",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-zinc-500",children:"Billing"}),(0,a.jsx)("h2",{className:"font-serif text-[1.6rem] text-zinc-50 sm:text-2xl",children:"Choose the billing pace that fits the workload."}),(0,a.jsx)("p",{className:"mx-auto max-w-2xl text-[13px] leading-5 text-zinc-300 sm:text-sm sm:leading-6",children:et})]}),(0,a.jsx)("div",{className:"w-full max-w-4xl rounded-[24px] border border-white/10 bg-black/20 p-1 shadow-[inset_0_1px_0_rgba(255,255,255,0.04)] sm:rounded-[26px] sm:p-1.5",children:(0,a.jsx)("div",{className:"grid gap-1 sm:grid-cols-2 sm:gap-1.5",role:"tablist","aria-label":"Billing cycle",children:E.map(e=>{let t=Y===e.id;return(0,a.jsxs)("button",{type:"button",onClick:()=>{H(e.id),(0,o.trackFunnelStep)("pricing_billing_cycle_changed",{source:"pricing_toggle",billingCycle:e.id})},role:"tab","aria-selected":t,"aria-pressed":t,className:(0,l.cn)("group rounded-[18px] border px-3.5 py-3.5 text-center transition focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-amber-300/70 sm:rounded-[20px] sm:px-5 sm:py-4",t?"cursor-default border-amber-200/30 bg-[linear-gradient(180deg,rgba(251,191,36,0.18),rgba(251,191,36,0.05)
1)] shadow-[0_18px_40px_rgba(251,191,36,0.10)] ring-1 ring-amber-200/14":"cursor-pointer border-white/6 bg-transparent hover:border-white/10 hover:bg-white/[0.04]"),children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,a.jsx)("span",{className:(0,l.cn)("text-base font-semibold sm:text-lg",t?"text-amber-50":"text-zinc-100"),children:e.label}),e.badge?(0,a.jsx)("span",{className:"rounded-full bg-[linear-gradient(135deg,rgba(251,191,36,0.96),rgba(244,114,182,0.92))] px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-[#2a1500]",children:e.badge}):null]}),(0,a.jsx)("p",{className:(0,l.cn)("mt-2 text-[13px] leading-5 transition sm:text-sm sm:leading-6",t?"text-zinc-100":"text-zinc-400"),children:e.description}),(0,a.jsx)("p",{className:(0,l.cn)("mt-3 text-[10px] font-semibold uppercase tracking-[0.24em] transition",t?"text-amber-200/80":"text-zinc-500 group-hover:text-zinc-300"),children:t?"Prices below match this selection":"Switch plan view"})]},e.id)})})}),(0,a.jsx)("div",{className:"w-full max-w-4xl",children:(0,a.jsx)("p",{className:"text-[13px] leading-5 text-zinc-100 sm:text-sm sm:leading-6",children:Y===p.PlanIntervals.YEAR?"Annual pricing is active below. Pro shows 75GB total storage with the annual bonus baked in.":"Monthly pricing is active below. Pro shows the standard 50GB storage that matches the monthly plan."})})]}),(0,a.jsx)("div",{className:"mx-auto h-px w-full max-w-[88rem] bg-[linear-gradient(90deg,transparent,rgba(255,255,255,0.08),transparent)]"}),(0,a.jsx)("div",{className:"mx-auto w-full max-w-[88rem]",children:(0,a.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:gap-4 lg:grid-cols-12 xl:grid-cols-[minmax(0,4fr)_minmax(0,5fr)_minmax(0,4fr)]",children:Z.map((e,i)=>{let c=W===e.id,m=J&&"free"!==e.id,x=K===e.displayInterval,h="dev"===e.id?["API","Webhook","Storage quota","Bonus AI credits"].map(a=>({label:a,value:R(e,a),note:U(e,a)})):C.map(a=>({label:a,value:R(e,a),note:U(e,a)})),g=e.features.filter(e=>!C.includes(e.label)),b="pro"===e.id,w=b&&Y===p.PlanIntervals.YEAR;return(0,a.jsx)(t.BlurFade,{delay:.03+.06*i,className:(0,l.cn)(e.gridClassName,e.mobileOrderClassName,"xl:col-span-1",e.featured&&"lg:-translate-y-3",b&&Y===p.PlanIntervals.YEAR&&"lg:-translate-y-4"),children:(0,a.jsx)(s.MagicCard,{className:(0,l.cn)("h-full rounded-[30px] border border-white/8 transition duration-300 md:hover:-translate-y-1 md:hover:shadow-[0_22px_55px_rgba(3,7,18,0.32)]",c&&"shadow-[0_24px_70px_rgba(15,23,42,0.34)] ring-1 ring-white/12",b&&Y===p.PlanIntervals.YEAR&&"border-[#d9a13d]/90 shadow-[inset_0_1px_0_rgba(255,245,204,0.46),0_0_0_1px_rgba(255,216,128,0.16),0_28px_80px_rgba(251,191,36,0.14)]",b&&Y===p.PlanIntervals.MONTH&&"border-amber-100/10 shadow-[0_24px_70px_rgba(251,191,36,0.08)] ring-1 ring-amber-100/10"),innerClassName:e.panelClassName,gradientColor:e.gradientColor,gradientFrom:e.gradientFrom,gradientTo:e.gradientTo,gradientSize:220,children:(0,a.jsxs)("article",{"data-pricing-plan":e.id,"data-pricing-interval":e.displayInterval,className:(0,l.cn)("relative flex h-full flex-col rounded-[30px] p-4 sm:p-5 md:p-6",w?"overflow-visible":"overflow-hidden"),children:[(0,a.jsx)(n,{width:38,height:38,className:"absolute inset-0 h-full w-full stroke-white/[0.05] fill-white/[0.012] [mask-image:radial-gradient(circle_at_top,white,transparent_78%)]"}),(e.featured||c)&&(0,a.jsx)(r.BorderBeam,{size:e.featured?220:160,duration:e.featured?8:7,colorFrom:e.beamFrom,colorTo:e.beamTo,reverse:!e.featured}),(0,a.jsxs)("div",{className:"relative flex h-full flex-col",children:[w?(0,a.jsx)("div",{className:"pointer-events-none absolute -top-7 right-4 z-30 sm:-top-8 sm:right-5",children:(0,a.jsxs)("span",{className:"inline-flex items-center rounded-full bg-[linear-gradient(135deg,#ff6a8b,#ff4f72)] px-4 py-2 text-[11px] font-black uppercase tracking-[0.08em] text-white shadow-[0_16px_38px_rgba(255,79,114,0.34)] ring-1 ring-white/14",children:["Flash Sale ",20,"%"]})}):null,(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:(0,l.cn)("inline-flex items-center rounded-full border px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.24em]",e.badgeClassName),children:e.eyebrow}),(0,a.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[(0,a.jsx)("h3",{className:"font-serif text-[2.35rem] leading-none text-zinc-50 sm:text-3xl md:text-[2.3rem]",children:e.name}),e.featured?(0,a.jsx)("span",{className:(0,l.cn)("rounded-full px-3 py-1 text-[10px] font-black uppercase tracking-[0.18em]",b?"border border-amber-200/22 bg-[linear-gradient(135deg,rgba(255,205,83,0.98),rgba(245,158,11,0.94))] text-[#3b2100] shadow-[inset_0_1px_0_rgba(255,247,214,0.6),0_10px_24px_rgba(245,158,11,0.18)]":"border border-amber-100/16 bg-amber-100/10 text-amber-50"),children:b?"Most Popular":"Recommended"}):null]}),(e.savingsChip||!e.featured&&e.savingsChip)&&(0,a.jsx)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:e.savingsChip&&!w?(0,a.jsx)("span",{className:"rounded-full border border-amber-200/18 bg-amber-200/12 px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.24em] text-amber-100",children:e.savingsChip}):null})]}),c?(0,a.jsx)("span",{className:"self-start rounded-full border border-white/14 bg-white/[0.08] px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-white",children:x?"Current":K===p.PlanIntervals.YEAR?"Current annual":"Current monthly"}):null]}),(0,a.jsx)("p",{className:"mt-4 max-w-xl text-sm leading-6 text-zinc-200/90",children:e.description}),(0,a.jsx)("div",{className:"mt-5 grid grid-cols-2 gap-2 sm:mt-6 sm:grid-cols-2 sm:gap-2.5",children:h.map(t=>{var r;return(0,a.jsxs)("div",{className:"rounded-[20px] border border-white/10 bg-black/15 px-3.5 py-3",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-zinc-500",children:t.label}),(0,a.jsx)("div",{className:"mt-2 text-sm font-semibold text-zinc-100",children:"boolean"==typeof(r=t.value)?r?(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-emerald-300/20 bg-emerald-300/10 px-2.5 py-1 text-[11px] font-medium text-emerald-200",children:[(0,a.jsx)(v.default,{className:"size-3.5"}),"Included"]}):(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-white/10 bg-white/[0.04] px-2.5 py-1 text-[11px] font-medium text-zinc-400",children:[(0,a.jsx)(j.default,{className:"size-3.5"}),"Not included"]}):(0,a.jsx)("span",{className:"text-sm font-medium text-zinc-100",children:r})}),t.note?(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-zinc-500",children:t.note}):null]},`${e.id}-${t.label}-highlight`)})}),(0,a.jsxs)("div",{className:"mt-5 flex flex-wrap items-end gap-x-2 gap-y-1 sm:mt-6",children:[e.strikePrice?(0,a.jsx)("span",{className:"text-xl font-semibold text-zinc-500 line-through sm:text-2xl",children:e.strikePrice}):null,(0,a.jsx)("span",{className:(0,l.cn)("text-[3rem] leading-none font-semibold tracking-tight sm:text-5xl",e.priceClassName),children:e.price}),(0,a.jsx)("span",{className:"mb-1 text-sm uppercase tracking-[0.24em] text-zinc-400",children:e.period})]}),e.totalPriceLabel?(0,a.jsx)("p",{className:"mt-2 text-xs font-semibold uppercase tracking-[0.24em] text-zinc-400",children:e.totalPriceLabel}):null,(0,a.jsxs)("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[e.cadenceChip?(0,a.jsx)("span",{className:"rounded-full border border-white/10 bg-white/[0.05] px-3 py-1 text-[10px] font-semibold uppercase tracking-[0.22em] text-zinc-200",children:e.cadenceChip}):null,e.intervalFallback?(0,a.jsx)("span",{className:"rounded-full border border-white/10 bg-white/[0.03] px-3 py-1 text-[10px] font-semibold uppercase tracking-[0.22em] text-zinc-400",children:e.intervalFallback}):null]}),e.priceNote?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"mt-3 max-w-xl text-sm leading-6 text-zinc-300 sm:hidden",children:e.priceNote?"free"===e.id?"5 bonus AI credits / day. Refreshes at 8:00 AM.":"pro"===e.id&&e.displayInterval===p.PlanIntervals.YEAR?"Pay yearly, save 20%, and get 75GB total storage plus 100 AI credits monthly.":"pro"===e.id?"Monthly Pro includes 50GB storage and 100 AI credits every month.":"dev"===e.id?"Monthly Dev includes API, webhook supp
1ort, 250GB storage, and 400 AI credits.":e.priceNote:null}),(0,a.jsx)("p",{className:"mt-3 hidden max-w-xl text-sm leading-6 text-zinc-300 sm:block",children:e.priceNote})]}):null,(0,a.jsx)("p",{className:"mt-3 max-w-xl text-sm leading-6 text-zinc-300 sm:hidden",children:"free"===e.id?"Best for occasional uploads and lightweight publishing.":"pro"===e.id?"Best once uploads become recurring work and you need cleaner day-to-day headroom.":"dev"===e.id?"Best when Image2URL becomes part of a product or automation workflow.":e.idealFor}),(0,a.jsx)("p",{className:"mt-3 hidden max-w-xl text-sm leading-6 text-zinc-300 sm:block",children:e.idealFor}),(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Included capabilities"}),(0,a.jsx)("div",{className:"mt-3 grid grid-cols-1 gap-2 sm:grid-cols-2",children:g.map((t,r)=>{let i=!1!==t.value;return(0,a.jsxs)("div",{className:(0,l.cn)("flex items-start gap-2.5 rounded-2xl border border-white/10 bg-black/10 px-3.5 py-3",r>=4&&"hidden sm:flex"),children:[(0,a.jsx)("span",{className:(0,l.cn)("mt-0.5 inline-flex size-5 shrink-0 items-center justify-center rounded-full border",i?"border-emerald-300/18 bg-emerald-300/10 text-emerald-200":"border-white/10 bg-white/[0.04] text-zinc-500"),children:i?(0,a.jsx)(v.default,{className:"size-3.5"}):(0,a.jsx)(j.default,{className:"size-3.5"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm text-zinc-200",children:t.label}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-5 text-zinc-500",children:$(t.value)})]})]},`${e.id}-${t.label}`)})}),g.length>4?(0,a.jsx)("p",{className:"mt-3 text-xs leading-5 text-zinc-500 sm:hidden",children:"More plan details continue in the comparison section below."}):null]}),(0,a.jsxs)("div",{className:"mt-6 border-t border-white/10 pt-5",children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-[0.24em] text-zinc-500",children:e.footerLabel}),(0,a.jsx)("div",{className:"mt-4",children:"free"===e.id?J?(0,a.jsx)(d.Button,{className:"h-11 w-full rounded-full border border-white/12 bg-white/[0.05] text-zinc-100 hover:bg-white/[0.12]",variant:"outline",disabled:c,children:c?"Current Plan":"Free Plan"}):(0,a.jsxs)(d.Button,{className:(0,l.cn)("h-11 w-full rounded-full border text-zinc-100",e.ctaClassName),variant:"outline",onClick:()=>{(0,o.trackFunnelStep)("signup_cta_clicked",{source:"pricing_table_free",path:V,billingCycle:Y}),(0,o.trackFunnelStep)("signup_started",{source:"pricing_table_free",path:V,billingCycle:Y}),window.location.href=Q},children:[e.cta,(0,a.jsx)(f.default,{className:"size-4"})]}):c?(0,a.jsx)(d.Button,{className:"h-11 w-full rounded-full border border-white/12 bg-white/[0.08] text-zinc-100",disabled:!0,children:x?"Current Plan":K===p.PlanIntervals.YEAR?"Current Annual Plan":"Current Monthly Plan"}):!1===e.checkoutEnabled?(0,a.jsx)(d.Button,{className:"h-11 w-full rounded-full border border-white/12 bg-white/[0.05] text-zinc-400",disabled:!0,children:e.unavailableLabel??"Unavailable"}):m?(0,a.jsxs)(u,{className:(0,l.cn)("h-11 w-full rounded-full border-0 text-sm font-semibold shadow-[0_12px_32px_rgba(15,23,42,0.24)]",e.ctaClassName),planKey:e.planKey,interval:e.checkoutInterval,children:[e.cta,(0,a.jsx)(f.default,{className:"size-4"})]}):(0,a.jsxs)(d.Button,{className:(0,l.cn)("h-11 w-full rounded-full border-0 text-sm font-semibold shadow-[0_12px_32px_rgba(15,23,42,0.24)]",e.ctaClassName),onClick:()=>{(0,o.trackFunnelStep)("signup_cta_clicked",{source:`pricing_table_${e.id}`,path:V,billingCycle:e.checkoutInterval??Y}),(0,o.trackFunnelStep)("signup_started",{source:`pricing_table_${e.id}`,path:V,billingCycle:e.checkoutInterval??Y}),window.location.href=Q},children:[e.cta,(0,a.jsx)(f.default,{className:"size-4"})]})})]})]})]})})},`${e.id}-${Y}`)})})})]})]})}),k?(0,a.jsx)(T,{}):null,J&&X?(0,a.jsx)(t.BlurFade,{delay:.02,children:(0,a.jsx)(s.MagicCard,{className:"rounded-[26px] border border-white/8",innerClassName:"bg-[linear-gradient(135deg,rgba(16,185,129,0.14),rgba(15,23,42,0.72))]",gradientColor:"rgba(16, 185, 129, 0.12)",gradientFrom:"#34d399",gradientTo:"#67e8f9",gradientSize:220,children:(0,a.jsxs)("div",{className:"relative overflow-hidden rounded-[26px] px-5 py-4",children:[(0,a.jsx)(r.BorderBeam,{size:160,duration:7,colorFrom:"#34d399",colorTo:"#67e8f9",reverse:!0}),(0,a.jsxs)("div",{className:"relative flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsxs)("p",{className:"inline-flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.24em] text-emerald-200/90",children:[(0,a.jsx)(N.default,{className:"size-4"}
1),"Active"," ",K===p.PlanIntervals.YEAR?"annual":K===p.PlanIntervals.MONTH?"monthly":"paid"," ","workspace"]}),(0,a.jsx)("p",{className:"text-sm text-emerald-50/95",children:"Your billing is already managed in Stripe. Use the portal for invoices, payment methods, or plan changes."})]}),(0,a.jsx)(g,{size:"sm",className:"rounded-full border border-emerald-100/18 bg-emerald-100/10 px-5 text-emerald-50 hover:bg-emerald-100/16",children:"Manage Billing"})]})]})})}):null,(0,a.jsx)(s.MagicCard,{className:"rounded-[26px] border border-white/8",innerClassName:"bg-[linear-gradient(180deg,rgba(8,13,25,0.86),rgba(10,17,31,0.94))]",gradientColor:"rgba(103, 232, 249, 0.10)",gradientFrom:"#67e8f9",gradientTo:"#34d399",gradientSize:220,children:(0,a.jsxs)("section",{className:"relative overflow-hidden rounded-[26px] px-5 py-5 sm:px-6",children:[(0,a.jsx)(n,{width:34,height:34,className:"absolute inset-0 h-full w-full stroke-white/[0.05] fill-white/[0.012] [mask-image:radial-gradient(circle_at_top_left,white,transparent_78%)]"}),(0,a.jsxs)("div",{className:"relative grid gap-4 lg:grid-cols-[0.9fr_1.1fr] lg:items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-zinc-500",children:"Technical buyers"}),(0,a.jsx)("h2",{className:"mt-2 font-serif text-2xl text-zinc-50",children:"Need implementation details before checkout?"}),(0,a.jsx)("p",{className:"mt-3 max-w-xl text-sm leading-6 text-zinc-300",children:"The plan cards stay focused on the buying decision. If you need API, auth, or webhook details, jump into the docs from here instead of leaving the comparison area."})]}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:["pro","dev"].map(e=>(0,a.jsxs)("div",{className:"rounded-[22px] border border-white/10 bg-white/[0.04] p-4",children:[(0,a.jsx)("p",{className:(0,l.cn)("text-[11px] font-semibold uppercase tracking-[0.24em]","pro"===e?"text-cyan-100":"text-emerald-100"),children:"pro"===e?"Pro docs":"Dev docs"}),(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:S[e].map(t=>(0,a.jsx)(b.Link,{href:t.href,className:(0,l.cn)("inline-flex items-center rounded-full border px-3 py-1.5 text-xs font-semibold transition","pro"===e?"border-cyan-300/20 bg-cyan-300/8 text-cyan-100 hover:border-cyan-200/40 hover:bg-cyan-300/14":"border-emerald-300/18 bg-emerald-300/10 text-emerald-100 hover:border-emerald-200/38 hover:bg-emerald-300/14"),children:ei?t.label.zh:t.label.en},`${e}-${t.href}-footer`))})]},`docs-${e}`))})]})]})}),(0,a.jsx)(s.MagicCard,{className:"rounded-[30px] border border-white/8",innerClassName:"bg-[linear-gradient(180deg,rgba(8,12,24,0.9),rgba(10,18,34,0.96))]",gradientColor:"rgba(34,197,94,0.10)",gradientFrom:"#67e8f9",gradientTo:"#34d399",gradientSize:220,children:(0,a.jsxs)("section",{className:"relative overflow-hidden rounded-[30px]",children:[(0,a.jsx)(n,{width:38,height:38,className:"absolute inset-0 h-full w-full stroke-white/[0.05] fill-white/[0.012] [mask-image:radial-gradient(circle_at_top_right,white,transparent_80%)]"}),(0,a.jsxs)("div",{className:"relative grid gap-5 px-5 py-6 lg:grid-cols-[0.95fr_1.45fr] lg:px-7 lg:py-8",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-zinc-500",children:"Subscriber add-ons"}),(0,a.jsx)("h2",{className:"font-serif text-3xl text-zinc-50",children:"Bonus AI credits follow the plan cadence. Storage add-ons expand quota after you subscribe."}),(0,a.jsx)("p",{className:"max-w-md text-sm leading-6 text-zinc-300",children:"Free includes 5 bonus AI credits per day and refreshes them at 8:00 AM. Pro includes 100 bonus AI credits every month, and Dev includes 400 every month. Storage quota stays separate: Free includes 500MB, Pro includes 50GB or 75GB on annual billing, and Dev includes 250GB."}),(0,a.jsx)("div",{className:"grid gap-2",children:M.map(e=>(0,a.jsxs)("div",{className:"rounded-2xl border border-white/10 bg-white/[0.04] px-4 py-3",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-zinc-400",children:e.label}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-200",children:e.description})]},e.label))}),(0,a.jsxs)("div",{className:"rounded-2xl border border-amber-200/12 bg-amber-200/[0.06] px-4 py-3",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-amber-100/90",children:"Add-on rule"}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-200",children:"Storage packs and AI credit packs are not a subscription replacement. They unlock only after Pro or Dev is active, and purchased credit packs stay separate from the monthly bonus grant."})]})]}),(0,a.jsxs)("div",{className:"grid gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"AI credit packs"}),(0,a.jsx)("div",{className:"mt-3 grid gap-3 md:grid-cols-3",children:B.map((e,r)=>(0,a.jsx)(t.BlurFade,{delay:.03+.05*r,children:(0,a.jsx)(s.MagicCard,{className:"h-full rounded-[24px] border border-white/8",innerClassName:"bg-[linear-gradient(180deg,rgba(10,16,29,0.94),rgba(5,9,21,0.98))]",gradientColor:"rgba(103,232,249,0.10)",gradientFrom:"#67e8f9",gradientTo:"#34d399",gradientSize:180,children:(0,a.jsxs)("div",{className:"relative flex h-full flex-col overflow-hidden rounded-[24px] p-5",children:[(0,a.jsx)("div",{className:"inline-flex w-fit roun
1ded-full border border-white/10 bg-white/[0.05] px-3 py-1 text-[10px] font-semibold uppercase tracking-[0.24em] text-zinc-300",children:"Subscribers only"}),(0,a.jsx)("h3",{className:"mt-4 font-serif text-2xl text-zinc-50",children:e.name}),(0,a.jsx)("p",{className:"mt-2 text-4xl font-semibold tracking-tight text-cyan-50",children:e.priceUsd}),(0,a.jsxs)("p",{className:"mt-2 text-sm font-semibold uppercase tracking-[0.2em] text-zinc-400",children:[e.credits," AI credits"]}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-zinc-300",children:e.description}),(0,a.jsxs)("div",{className:"mt-5 rounded-2xl border border-white/10 bg-black/10 px-4 py-3",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Effective rate"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-zinc-100",children:e.effectiveRate}),(0,a.jsxs)("p",{className:"mt-2 text-[11px] uppercase tracking-[0.22em] text-zinc-500",children:["Available for"," ",e.eligiblePlans.map(e=>e.toUpperCase()).join(" + ")]})]}),(0,a.jsx)("div",{className:"mt-auto pt-5",children:(0,a.jsx)(d.Button,{className:(0,l.cn)("h-11 w-full rounded-full border-0 text-sm font-semibold shadow-[0_12px_32px_rgba(15,23,42,0.24)]",er?"bg-[linear-gradient(135deg,rgba(103,232,249,0.98),rgba(52,211,153,0.96))] text-[#081827] hover:brightness-105":"bg-white/[0.06] text-zinc-300 hover:bg-white/[0.12]"),disabled:!0,children:er?"Add-on checkout soon":"Upgrade to unlock add-ons"})})]})})},e.id))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Storage expansion"}),(0,a.jsx)("div",{className:"mt-3 grid gap-3 md:grid-cols-2",children:F.map((e,r)=>(0,a.jsx)(t.BlurFade,{delay:.06+(B.length+r)*.04,children:(0,a.jsx)(s.MagicCard,{className:"h-full rounded-[24px] border border-white/8",innerClassName:"bg-[linear-gradient(180deg,rgba(8,18,28,0.95),rgba(4,11,20,0.98))]",gradientColor:"rgba(52,211,153,0.10)",gradientFrom:"#34d399",gradientTo:"#67e8f9",gradientSize:180,children:(0,a.jsxs)("div",{className:"relative flex h-full flex-col overflow-hidden rounded-[24px] p-5",children:[(0,a.jsx)("div",{className:"inline-flex w-fit rounded-full border border-emerald-300/14 bg-emerald-300/10 px-3 py-1 text-[10px] font-semibold uppercase tracking-[0.24em] text-emerald-100",children:"Capacity pack"}),(0,a.jsx)("h3",{className:"mt-4 font-serif text-2xl text-zinc-50",children:e.name}),(0,a.jsx)("p",{className:"mt-2 text-4xl font-semibold tracking-tight text-emerald-50",children:e.priceUsd}),(0,a.jsx)("p",{className:"mt-2 text-sm font-semibold uppercase tracking-[0.2em] text-zinc-400",children:e.quotaLabel}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-zinc-300",children:e.description}),(0,a.jsxs)("div",{className:"mt-5 rounded-2xl border border-white/10 bg-black/10 px-4 py-3",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Available for"}),(0,a.jsx)("p",{className:"mt-1 text-sm text-zinc-100",children:e.eligiblePlans.map(e=>e.toUpperCase()).join(" + ")}),(0,a.jsx)("p",{className:"mt-2 text-[11px] uppercase tracking-[0.22em] text-zinc-500",children:"Stacks on top of your base quota"})]}),(0,a.jsx)("div",{className:"mt-auto pt-5",children:(0,a.jsx)(d.Button,{className:(0,l.cn)("h-11 w-full rounded-full border-0 text-sm font-semibold shadow-[0_12px_32px_rgba(15,23,42,0.24)]",er?"bg-[linear-gradient(135deg,rgba(52,211,153,0.96),rgba(103,232,249,0.96))] text-[#08251f] hover:brightness-105":"bg-white/[0.06] text-zinc-300 hover:bg-white/[0.12]"),disabled:!0,children:er?"Capacity checkout soon":"Upgrade to expand storage"})})]})})},e.id))})]})]})]})]})}),(0,a.jsx)(s.MagicCard,{className:"rounded-[30px] border border-white/8",innerClassName:"bg-[linear-gradient(180deg,rgba(5,10,22,0.82),rgba(13,18,33,0.88))]",gradientColor:"rgba(103, 232, 249, 0.10)",gradientFrom:"#67e8f9",gradientTo:"#fde68a",gradientSize:240,children:(0,a.jsxs)("section",{className:"relative overflow-hidden rounded-[30px]",children:[(0,a.jsx)(n,{width:38,height:38,className:"absolute inset-0 h-full w-full stroke-white/[0.05] fill-white/[0.012] [mask-image:radial-gradient(circle_at_top_left,white,transparent_82%)]"}),(0,a.jsxs)("div",{className:"relative grid lg:grid-cols-[0.95fr_1.45fr]",children:[(0,a.jsxs)("div",{className:"border-b border-white/10 px-5 py-6 lg:border-b-0 lg:border-r lg:px-7 lg:py-8",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-zinc-500",children:"Compare the essentials"}),(0,a.jsx)("h2",{className:"mt-3 font-serif text-3xl text-zinc-50",children:"What changes when you move up a plan"}),(0,a.jsx)("p",{className:"mt-3 max-w-md text-sm leading-6 text-zinc-300",children:"Focus on the practical differences: bigger files, more daily headroom, monthly bonus AI credits, stronger history, and automation features only when you need them."}),(0,a.jsx)("p",{className:"mt-6 text-xs uppercase tracking-[0.24em] text-zinc-500",children:ea})]}),(0,a.jsx)("div",{className:"grid gap-3 px-4 py-4 md:hidden",children:ee.map(e=>(0,a.jsxs)("div",{className:"rounded-[22px] border border-white/10 bg-white/[0.04] p-4",children:[(0,a.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.24em] text-zinc-500",children:e.label}),(0,a.jsx)("div",{className:"mt-3 grid gap-2",children:Z.map(t=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-2xl border border-white/[0.08] bg-black/10 px-3 py-2.5",children:[(0,a.jsx)("span",{className:(0,l.cn)("text-sm font-semibold","pro"===t.id?"text-cyan-100":"dev"===t.id?"text-emerald-100":"text-zinc-100"),children:t.name}),(0,a.jsx)("span",{className:"text-right text-sm text-zinc-200",children:e.values[t.id]})]},`${e.label}-${t.id}-mobile`))})]},e.label))}),(0,a.jsx)("div",{className:"hidden overflow-x-auto md:block",children:(0,a.jsxs)("div",{className:"min-w-[680px]",children:[(0,a.jsxs)("div",{className:"grid grid-cols-[1.2fr_repeat(3,minmax(0,1fr))] border-b border-white/10 bg-white/[0.03]",children:[(0,a.jsx)("div",{className:"px-4 py-4 text-xs font-semibold uppercase tracking-[0.24em] text-zinc-500",children:"Capability"}),Z.map(e=>(0,a.jsx)("div",{className:(0,l.cn)("px-4 py-4 text-center text-sm font-semibold uppercase tracking-[0.18em]","pro"===e.id?"text-cyan-100":"dev"===e.id?"text-emerald-100":"text-zinc-100"),children:e.name},e.id))]}),ee.map((e,t)=>(0,a.jsxs)("div",{className:(0,l.cn)("grid grid-cols-[1.2fr_repeat(3,minmax(0,1fr))] border-b border-white/[0.06]",t%2==0?"bg-transparent":"bg-white/[0.025]"),children:[(0,a.jsx)("div",{className:"px-4 py-4 text-sm text-zinc-300",children:e.label}),Z.map(t=>(0,a.jsx)("div",{className:"px-4 py-4 text-center text-sm text-zinc-100",children:e.values[t.id]},`${e.label}-${t.id}`))]},e.label))]})})]})]})})]})}e.s(["HardcodedPricingTable",()=>D],567012)},444443,e=>{"use strict";var a=e.i(375679),t=e.i(453375),r=e.i(271645);function i({locale:e}){let i=(0,r.useRef)(0),l=(0,r.useRef)(new Set),n=(0,r.useRef)(new Set);return(0,r.useEffect)(()=>{let r=Array.from(document.querySelectorAll("[data-pricing-plan]"));if(0===r.length)return;let i=new IntersectionObserver(r=>{for(let i of r){if(!i.isIntersecting||i.intersectionRatio<.45)continue;let r=i.target.dataset.pricingPlan;!r||l.current.has(r)||(l.current.add(r),(0,t.recordPricingBehavior)({pricingPlanSeen:r}),(0,a.trackFunnelStep)("pricing_viewed",{locale:e,source:"pricing_plan_seen",plan:r}),(0,a.trackFunnelStep)("pricing_plan_seen",{locale:e,source:r,plan:r}))}},{threshold:[.45,.75]});for(let e of r)i.observe(e);return()=>i.disconnect()},[e]),(0,r.useEffect)(()=>{let r=r=>{let i=r.target,l=i?.closest("[data-pricing-plan]"),n=i?.closest("[data-pricing-behavior]");if(l&&i?.closest("button,a")){let r=l.dataset.pricingPlan;r&&((0,t.recordPricingBehavior)({pricingPlanClicked:r}),(0,a.trackFunnelStep)("pricing_cta_clicked",{locale:e,source:"pricing_plan_clicked",plan:r}),(0,a.trackFunnelStep)("pricing_plan_clicked",{locale:e,source:r,plan:r}))}if(n){let r=n.dataset.pricingBehavior,i=n.dataset.pricingBehaviorValue;"faq_opened"===r&&((0,t.recordPricingBehavior)({pricingFaqOpened:i||"unknown"}),(0,a.trackFunnelStep)("pricing_faq_opened",{locale:e,source:i||"unknown",item:i||"unknown"})),"feature_expanded"===r&&((0,t.recordPricingBehavior)({pricingFeatureExpanded:i||"unknown"}),(0,a.trackFunnelStep)("pricing_feature_expanded",{locale:e,source:i||"unknown",item:i||"unknown"})),"billing_cycle_changed"===r&&((0,t.recordPricingBehavior)({billingCycle:i||"unknown"}),(0,a.trackFunnelStep)("pricing_billing_cycle_changed",{locale:e,source:i||"unknown",billingCycle:i||"unknown"}))}};return document.addEventListener("click",r,!0),()=>document.removeEventListener("click",r,!0)},[e]),(0,r.useEffect)(()=>{let r=()=>{let r=window.scrollY,l=document.documentElement.scrollHeight-window.innerHeight;if(l<=0)return;let s=Math.min(100,Math.round(r/l*100));if(!(s<i.current+10)||!(s<100))for(let r of(i.current=Math.max(i.current,s),(0,t.recordPricingBehavior)({pricingScrollDepth:i.current}),[25,50,75,100]))i.current>=r&&!n.current.has(r)&&(n.current.add(r),(0,a.trackFunnelStep)("pricing_scroll_depth",{locale:e,source:`depth_${r}`,pricingScrollDepth:r}))};return r(),window.addEventListener("scroll",r,{passive:!0}),()=>window.removeEventListener("scroll",r)},[]),null}e.s(["PricingBehaviorTracker",()=>i])},206092,e=>{"use strict";var a=e.i(375679),t=e.i(453375),r=e.i(271645);function i({locale:e}){return(0,r.useEffect)(()=>{let r=(0,t.recordPricingView)(e);(0,a.trackFunnelStep)("pricing_viewed",{locale:e,pricingEntryPath:r.pricingEntryPath,pricingReferrer:r.pricingReferrer,firstLandingPath:r.firstLandingPath})},[e]),null}e.s(["PricingViewTracker",()=>i])}]);
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.