PageSourceSearch

https://cardkept.com/assets/Plans-d0ykdtVp.js

js cardkept.com collected 2026-10-02 01:25:19 UTC 8,135 bytes, 1 lines download raw bytes

1import{r as f,j as e,L as w}from"./vendor-react-CxPMMIsh.js";import{B as u}from"./button-BMKHWBF3.js";import{S as g}from"./separator-BwqHJ7EC.js";import{a as C,u as j,s as F,c as P}from"./index-CCrgG9IM.js";import{Y as S,f as E,a as L,b as I,P as y}from"./plan-pricing-9eWm1sUN.js";import{i as A}from"./vendor-paddle-Cg4-DRFI.js";import{u as N}from"./vendor-i18n-JarRYShB.js";import{A as R,Z as _,y as T,V as $,b as B}from"./vendor-icons-CRqowDKK.js";import"./vendor-radix-DXT-P5oj.js";import"./vendor-supabase-oA5cwLJd.js";import"./vendor-utils-CbK4XRml.js";import"./vendor-query-CDOFNuNk.js";import"./vendor-posthog-D7lzUwA9.js";import"./vendor-helmet-BddiuCch.js";const U="live_2927815542486c024d403d46817",Y="production",M=`${window.location.origin}/settings?upgraded=1`;let h=null;function O(){return h||(h=A({environment:Y,token:U}).catch(r=>{console.error("Paddle init failed:",r),h=null})),h}function V(){const{t:r}=N(),{user:n}=C(),t=f.useRef(null),[c,d]=f.useState(!1);return{ready:!0,loading:c,openCheckout:async(s,m)=>{var i;if(!n){j.error(r("plans.signInFirst"));return}d(!0);try{if(!t.current){const x=await O();if(!x){j.error(r("plans.paymentNotReady"));return}t.current=x}const{data:l,error:p}=await F.functions.invoke("paddle-checkout",{body:{plan:s,cycle:m,userId:n.id,email:n.email}});if(p)throw p;if(!(l!=null&&l.transactionId))throw new Error("No transaction id returned");t.current.Checkout.open({transactionId:l.transactionId,settings:{displayMode:"overlay",theme:"dark",locale:typeof navigator<"u"&&((i=navigator.language)!=null&&i.startsWith("ko"))?"ko":"en",successUrl:M}})}catch(l){j.error(l instanceof Error?l.message:r("plans.checkoutFailed"))}finally{d(!1)}}}}function te(){const{t:r,i18n:n}=N(),{plan:t,betaActive:c}=P(),{openCheckout:d,loading:b}=V(),[s,m]=f.useState("monthly"),[i,l]=f.useState(null),p=async o=>{l(o),await d(o,s),l(null)},x=()=>E(n.language),v=o=>L(o,n.language),k=o=>I(o,n.language);return e.jsx("div",{className:"min-h-screen bg-background text-foreground p-8",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs(w,{to:"/",className:"inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors mb-6",children:[e.jsx(R,{className:"h-4 w-4"}),r("plans.back")]}),e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold lowercase mb-2",children:r("plans.title")}),e.jsx("p",{className:"text-muted-foreground",children:r("plans.subtitle")})]}),c&&e.jsx("div",{className:"max-w-2xl mx-auto mb-8 rounded-lg border border-primary/30 bg-primary/10 px-4 py-3 text-center text-sm text-primary",children:r("beta.plansBanner")}),e.jsx("div",{className:"flex justify-center mb-8",children:e.jsxs("div",{role:"radiogroup","aria-label":r("plans.cycleGroupLabel"),className:"inline-flex bg-card border border-border rounded-lg p-1",children:[e.jsx("button",{type:"button",role:"radio","aria-checked":s==="monthly",onClick:()=>m("monthly"),className:`min-h-[44px] min-w-[44px] px-4 py-2 text-sm rounded-md ${s==="monthly"?"bg-primary text-primary-foreground":"text-muted-foreground"}`,children:r("plans.monthly")}),e.jsxs("button",{type:"button",role:"radio","aria-checked":s==="yearly",onClick:()=>m("yearly"),className:`min-h-[44px] min-w-[44px] px-4 py-2 text-sm rounded-md ${s==="yearly"?"bg-primary text-primary-foreground":"text-muted-foreground"}`,children:[r("plans.yearly")," ",e.jsxs("span",{className:"ml-1 text-[10px] opacity-70",children:["−",S,"%"]})]})]})}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs("div",{className:`bg-card border rounded-lg p-6 flex flex-col ${t==="free"?"border-primary":"border-border"}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(_,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h2",{className:"text-xl font-bold lowercase",children:"free"})]}),e.jsx("p",{className:"text-3xl font-bold mb-1",children:x()}),e.jsx("p",{className:"text-xs text-muted-foreground mb-6",children:r("plans.freeForever")}),e.jsx(g,{className:"mb-4"}),e.jsxs("ul",{className:"space-y-2 text-sm flex-1",children:[e.jsx(a,{children:r("plans.freeFeature1")}),e.jsx(a,{children:r("plans.freeFeature2")}),e.jsx(a,{children:r("plans.freeFeature3")}),e.jsx(a,{children:r("plans.freeFeature4")}),e.jsx(a,{children:r("plans.freeFeature5")})]}),e.jsx(u,{disabled:!0,className:"mt-6 min-h-[44px]",variant:"outline",children:r(t==="free"?"plans.currentPlan":"plans.downgrade")})]}),e.jsxs("div",{className:`bg-card border-2 rounded-lg p-6 flex flex-col relative ${t==="pro"?"border-primary":"border-primary/50"}`,children:[e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-primary text-primary-foreground text-[10px] font-bold rounded uppercase",children:r("plans.popular")}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(T,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"text-xl font-bold lowercase",children:"pro"})]}),e.jsx("p",{className:"text-3xl font-bold mb-1 text-primary",children:v(y.pro[s])}),e.jsx("p",{className:"text-xs text-muted-foreground font-mono",children:k(y.pro[s])}),e.jsx("p",{className:"text-xs text-muted-foreground mb-6",children:r(s==="monthly"?"plans.perMonth":"plans.perYear")}),e.jsx(g,{className:"mb-4"}),e.jsxs("ul",{className:"space-y-2 text-sm flex-1",children:[e.jsx(a,{children:r("plans.proFeature1")}),e.jsx(a,{children:r("plans.proFeature2")}),e.jsx(a,{children:r("plans.proFeature3")}),e.jsx(a,{children:r("plans.proFeature4")}),e.jsx(a,{children:r("plans.proFeature5")}),e.jsx(a,{children:r("plans.proFeature6")})]}),c&&t==="free"?e.jsx(u,{disabled:!0,className:"mt-6 min-h-[44px]",variant:"outline",children:r("beta.proIncluded")}):e.jsx(u,{onClick:()=>p("pro"),disabled:b&&i==="pro"||t==="pro",className:"mt-6 min-h-[44px]","aria-label":r("plans.startProAria"),children:t==="pro"?r("plans.currentPlan"):b&&i==="pro"?"...":r("plans.startPro")})]}),e.jsxs("div",{className:"bg-card/40 border border-dashed border-primary/25 rounded-lg p-6 flex flex-col relative",children:[e.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-background border border-primary/40 text-primary text-[10px] font-bold rounded uppercase tracking-wider",children:r("landing.pricing.collector.comingSoonBadge")}),e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx($,{className:"w-5 h-5 text-primary"}),e.jsx("h2",{className:"text-xl font-bold lowercase",children:"collector+"})]}),e.jsx("p",{className:"text-3xl italic font-display text-muted-foreground mb-1",children:r("plans.collectorComingSoonPrice")}
1),e.jsx("p",{className:"text-xs text-muted-foreground/80 mb-6",children:r("plans.collectorComingSoonHint")}),e.jsx(g,{className:"mb-4"}),e.jsxs("ul",{className:"space-y-2 text-sm flex-1 text-muted-foreground/85",children:[e.jsx(a,{children:r("plans.collectorFeature1")}),e.jsx(a,{children:r("plans.collectorFeature2")}),e.jsx(a,{children:r("plans.collectorFeature3")}),e.jsx(a,{children:r("plans.collectorFeature4")}),e.jsx(a,{children:r("plans.collectorFeature5")})]}),e.jsx(u,{disabled:!0,className:"mt-6 min-h-[44px]",variant:"outline","aria-label":r("plans.collectorComingSoonAria"),children:r("plans.collectorComingSoon")})]})]}),e.jsx("p",{className:"text-center text-xs text-muted-foreground/80 mt-6",children:r("plans.latinNameNotice")}),e.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-4",children:[r("plans.paddleNotice"),e.jsx("a",{href:"/legal/terms",className:"underline underline-offset-2 text-primary hover:text-primary/80",children:r("plans.terms")})," · ",e.jsx("a",{href:"/legal/privacy",className:"underline underline-offset-2 text-primary hover:text-primary/80",children:r("plans.privacy")})," · ",e.jsx("a",{href:"/legal/refund",className:"underline underline-offset-2 text-primary hover:text-primary/80",children:r("plans.refunds")})]})]})})}function a({children:r}){return e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(B,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),e.jsx("span",{children:r})]})}export{te 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.