1import{W as v,b as S,G as L,u as g,r as d,bn as R,bo as _,h as b,aY as E,j as e,a2 as M,F as K,e as D,p as O,f as B,bp as T,bq as y,br as k,bs as x,bt as u,B as A,m as P,bu as F,bv as H,bw as $}from"./index-Crn3t0IA.js";import{C as W,c as z,b as G,e as V}from"./card-DH1WBqn6.js";import{S as U}from"./spinner-C167tJ1H.js";import{d as j,c as N,e as Y}from"./checkoutIntent-B8ivXEAk.js";import{C as q}from"./check-CGIyrBIn.js";import{M as J}from"./minus-D4-Gy9yb.js";import"./loader-circle-Dpl5Edzd.js";const Q=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],X=v("circle-check-big",Q);function Z(){if(typeof window>"u")return!1;const a=window.localStorage.getItem(T);if(typeof a!="string")return!1;try{const i=JSON.parse(a);return typeof i=="string"&&i.trim().length>0}catch{return a.trim().length>0}}function I(a,i){return`${a}${i}`}function C(a,i,l){const n=H(a,l);for(const o of x)n[o]={...n[o],priceDisplay:$(o,i)};return n}function ee(a,i){return a===!0?e.jsxs(e.Fragment,{children:[e.jsx(q,{className:"h-4 w-4 text-primary","aria-hidden":"true"}),e.jsxs("span",{className:"sr-only",children:["Included in ",i]})]}):a===!1?e.jsxs(e.Fragment,{children:[e.jsx(J,{className:"h-4 w-4 text-muted-foreground","aria-hidden":"true"}),e.jsxs("span",{className:"sr-only",children:["Not included in ",i]})]}):e.jsx("span",{className:"text-sm text-foreground",children:a})}function te(){const{productKey:a}=g(),i=k[a],l=y(),n=C(i,l,a),o=F(i);return e.jsx("section",{className:"mt-8 py-6 sm:mt-12 sm:py-10",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:[e.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[e.jsx("h3",{className:"heading-md app-title-font font-normal text-foreground",children:i.comparisonHeading}),e.jsx("p",{className:"mx-auto mt-4 max-w-2xl text-sm leading-7 text-muted-foreground",children:i.comparisonSubheading})]}),e.jsx("div",{className:"mt-10 overflow-x-auto rounded-3xl border border-black/10 bg-white/70 shadow-xl backdrop-blur-sm dark:border-white/20 dark:bg-zinc-900/70",children:e.jsxs("table",{className:"min-w-[720px] w-full border-collapse text-left",children:[e.jsx("caption",{className:"sr-only",children:"Pricing plan comparison"}),e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-black/10 dark:border-white/20",children:[e.jsx("th",{className:"px-6 py-5 text-sm font-medium text-muted-foreground",children:"Feature"}),x.map(r=>{const s=n[r].priceDisplay;return e.jsxs("th",{className:P("px-6 py-5 align-top",{"bg-[rgb(247,251,255)] dark:bg-[rgb(24,24,27)]":r===u}),children:[e.jsx("p",{className:"text-base font-semibold text-foreground",children:n[r].name}),s.offerLabel?e.jsx("p",{className:"mt-1 text-[11px] font-semibold uppercase tracking-[0.12em] text-emerald-700 dark:text-emerald-300",children:s.offerLabel}):null,e.jsxs("p",{className:"mt-1 text-sm text-foreground",children:[e.jsx("span",{className:"font-semibold",children:s.prominentPriceLabel})," ",e.jsx("span",{className:"text-muted-foreground",children:s.prominentCadenceLabel})]}),s.continuationLabel?e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:s.continuationLabel}):null]},r)})]})}),o.map(r=>e.jsxs("tbody",{children:[e.jsx("tr",{className:"border-b border-black/10 dark:border-white/20",children:e.jsx("th",{colSpan:x.length+1,className:"bg-black/[0.03] px-6 py-3 text-xs font-semibold uppercase tracking-[0.15em] text-muted-foreground dark:bg-white/[0.03]",children:r.title})}),r.rows.map(s=>e.jsxs("tr",{className:"border-b border-black/10 last:border-b-0 dark:border-white/20",children:[e.jsx("th",{className:"px-6 py-4 text-sm font-medium text-foreground",children:s.name}),x.map(t=>e.jsx("td",{className:"px-6 py-4",children:e.jsx("div",{className:"flex items-center gap-2",children:ee(s.values[t],n[t].name)})},`${s.name}-${t}`))]},s.name))]},r.title))]})})]})})}function ae({hasSessionHint:a,onPlanClick:i}){const{productKey:l}=g(),n=k[l],o=y(),r=C(n,o,l),s=a?n.planCtaLabelAuthenticated??"Get started":n.planCtaLabelUnauthenticated??"Create account to continue";return e.jsx("div",{className:"py-10 lg:mt-10",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:[e.jsx("div",{id:"pricing",className:"mx-auto max-w-4xl text-center",children:e.jsx("h2",{className:"mt-2 heading-lg app-title-font font-normal text-foreground",children:n.pricingHeading})}),e.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-center text-lg leading-8 text-muted-foreground",children:n.pricingSubheading}),e.jsx("div",{className:"isolate mx-auto mt-16 grid max-w-md grid-cols-1 gap-y-8 sm:mt-20 lg:mx-0 lg:max-w-none lg:grid-cols-3 lg:gap-x-8",children:x.map(t=>{const c=r[t].priceDisplay;return e.jsxs(W,{"data-testid":`pricing-plan-${t}`,className:P("relative flex grow flex-col justify-between overflow-hidden rounded-[2rem] border border-border shadow-2xl transition-all duration-300 hover:shadow-[0_25px_50px_-12px_rgba(0,0,0,0.175)]",{"aurora-surface !border-black !bg-[rgb(247,251,255)] dark:!border-white dark:!bg-[rgb(24,24,27)] lg:scale-[1.02]":t===u,"bg-white/70 backdrop-blur-sm dark:bg-zinc-900/70 lg:my-8":t!==u}),children:[e.jsxs(z,{className:"h-full justify-between p-5 sm:p-6",children:[e.jsxs("div",{className:"flex items-center justify-between gap-x-4",children:[e.jsx(G,{id:t,className:"text-lg font-semibold leading-8 text-foreground",children:r[t].name}),t===u?e.jsx("span",{className:"rounded-full bg-foreground px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.12em] text-background",children:"Most popular"}):null]}),e.jsx("p",{className:"mt-4 text-sm leading-6 text-muted-foreground",children:r[t].description}),e.jsxs("p",{className:"mt-6 flex items-baseline gap-x-1",children:[e.jsx("span",{className:"text-4xl font-bold tracking-tight text-foreground",children:c.prominentPriceLabel}),e.jsx("span",{className:"text-sm font-semibold leading-6 text-muted-foreground",children:c.prominentC
1adenceLabel})]}),c.offerLabel?e.jsx("p",{className:"mt-2 text-xs font-semibold uppercase tracking-[0.12em] text-emerald-700 dark:text-emerald-300",children:c.offerLabel}):null,c.continuationLabel?e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:c.continuationLabel}):null,e.jsx("ul",{role:"list",className:"mt-8 space-y-3 text-sm leading-6 text-muted-foreground",children:r[t].features.map(p=>e.jsxs("li",{className:"flex gap-x-3",children:[e.jsx(X,{className:"h-5 w-5 flex-none text-primary","aria-hidden":"true"}),p]},p))})]}),e.jsx(V,{className:"px-5 pb-5 pt-0 sm:px-6 sm:pb-6",children:e.jsx(A,{type:"button","data-testid":`pricing-plan-cta-${t}`,onClick:()=>i(t),"aria-describedby":t,variant:t===u?"default":"outline",className:"w-full",children:s})})]},t)})}),n.riskReversalLine?e.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:n.riskReversalLine}):null,n.usageNotes?e.jsx("div",{className:"mx-auto mt-16 grid max-w-5xl gap-8 sm:grid-cols-2 sm:gap-12",children:n.usageNotes.map(t=>e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-semibold text-foreground",children:t.title}),e.jsx("p",{className:"mt-3 text-sm leading-7 text-muted-foreground",children:t.description})]},t.title))}):null]})})}function de(){const a=S(),i=L(),{productKey:l}=g(),n=d.useRef(null),o=d.useRef(!1),r=d.useMemo(()=>{const m=new URLSearchParams(a.search);return R(m.get(_))},[a.search]),s=Z(),t=d.useMemo(()=>I(a.pathname,a.search),[a.pathname,a.search]),c=d.useMemo(()=>r?j({plan:r,source:"pricing",selectionPath:t}):null,[r,t]),p=d.useMemo(()=>b(c?.authResumePath??t),[c?.authResumePath,t]);d.useEffect(()=>{r||o.current||(o.current=!0,E({pageKey:"pricing_plans",productKey:l,metadata:{hasSessionHint:s}}))},[r,l,s]),d.useEffect(()=>{if(!c||!s)return;const m=c.checkoutPath;n.current!==m&&(n.current=m,N({plan:c.plan,source:c.source,returnTo:c.checkoutReturnTo,replace:!0}))},[c,s]);function w(m){const f=D({entryPageKey:"pricing",entryButtonKey:Y(m),entryIntent:"auth_then_onboarding",entryPath:a.pathname});O(f);const h=j({plan:m,source:"pricing",selectionPath:B(t,f)});if(!s){i(b(h.authResumePath));return}N({plan:h.plan,source:h.source,returnTo:h.checkoutReturnTo})}return r&&!s?e.jsx(M,{to:p,replace:!0}):r?e.jsx("div",{className:"flex min-h-screen items-center justify-center px-6 py-16",children:e.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[e.jsx(U,{className:"size-6 text-muted-foreground"}),e.jsxs("div",{className:"space-y-1",children:[e.jsx("h1",{className:"text-lg font-medium",children:"Opening secure checkout"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Handing your selected plan off to the owned `/pay` checkout page."})]})]})}):e.jsxs("div",{className:"flex min-h-screen flex-col bg-transparent text-foreground",children:[e.jsxs("main",{className:"flex-1",children:[e.jsx(ae,{hasSessionHint:s,onPlanClick:w}),e.jsx(te,{})]}),e.jsx(K,{})]})}export{de as default};
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.