1import{a as h,j as e}from"./markdown-CsXM4Fse.js";import{u as R,k as z,b as K,l as U,e as $,B as T,T as Q,C as q,D as O,c as X,w as I,G as Z,I as ee,r as Y}from"./index-nkgc4SH-.js";import{P as _}from"./paymentService-BftU7RXn.js";import{A as te,P as re}from"./appStore-BLI0OwfR.js";import"./firebase-DesKTKso.js";const se={lite:{monthly:"lite_monthly",annual:"lite_annual"},pro:{monthly:"pro_monthly",annual:"pro_annual"}};function D({plan:t,cycle:r,onClose:x}){const{t:s}=R(),{platform:p}=z(),{user:v}=K(),{showToast:a}=U();$();const[o,g]=h.useState("CARD"),[f,i]=h.useState(!1),k=p==="web"?"web":"mobile",n=T[t][k][r],j=t==="lite"?"Lite":"Pro",b=s(`modals.checkout.features.${t}`,{returnObjects:!0})||[],P=async()=>{if(!v){a(s("modals.checkout.loginRequired"),"error");return}if(p!=="web"){const d=se[t][r];q({productId:d,userId:v.uid})?(a(s("modals.checkout.iapOpened"),"info"),x()):a(s("modals.checkout.iapBridgeMissing"),"error");return}if(!O()){a(s("modals.checkout.overseasWebBlocked"),"info"),x();return}i(!0);try{const d=await _.requestBillingKey(t,r,o);await _.createSubscription(d,t,r),a(s("modals.checkout.completedToast"),"success"),x(),window.location.reload()}catch(d){a(d instanceof Error?d.message:s("modals.checkout.failedToast"),"error")}finally{i(!1)}};return e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-5",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:x,children:e.jsxs("div",{className:"checkout-modal relative flex w-full max-w-[440px] flex-col overflow-hidden rounded-[20px]",style:{background:"var(--card-bg)",border:"1px solid var(--card-border)",maxHeight:"90vh",boxShadow:"0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05) inset"},onClick:d=>d.stopPropagation(),children:[e.jsx("div",{className:"pointer-events-none absolute -top-10 left-1/2 h-20 w-[70%] -translate-x-1/2",style:{background:"radial-gradient(ellipse, rgba(250,177,47,0.25) 0%, transparent 70%)",filter:"blur(25px)"}}),e.jsxs("div",{className:"relative z-10 flex shrink-0 items-center justify-between px-6 py-5",children:[e.jsx("h2",{className:"text-[1.1rem] font-bold",style:{color:"var(--text-primary)"},children:s("modals.checkout.title",{plan:j})}),e.jsx("button",{onClick:x,className:"flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-[var(--hover-bg)]",style:{color:"var(--text-tertiary)"},children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[e.jsx("line",{x1:"15",y1:"5",x2:"5",y2:"15"}),e.jsx("line",{x1:"5",y1:"5",x2:"15",y2:"15"})]})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto px-6 pb-6",children:[e.jsxs("section",{className:"mb-[18px] border-b pb-[18px]",style:{borderColor:"var(--card-border)"},children:[e.jsx("h3",{className:"mb-3 text-[0.82rem] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:s("modals.checkout.summary")}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[0.9rem] font-semibold",style:{color:"var(--text-secondary)"},children:s("modals.checkout.amountLabel")}),e.jsxs("span",{className:"text-[1.6rem] font-extrabold tracking-tight",style:{color:"var(--text-primary)"},children:["â©",n==null?void 0:n.toLocaleString("ko-KR")]})]})]}),e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"mb-[18px] border-b pb-[18px]",style:{borderColor:"var(--card-border)"},children:[e.jsx("h3",{className:"mb-3 text-[0.82rem] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:s("modals.checkout.method")}),e.jsxs("div",{className:"flex gap-2.5",children:[e.jsxs("button",{onClick:()=>g("CARD"),className:`checkout-method flex flex-1 items-center justify-center gap-2 rounded-xl px-3 py-3 text-[0.88rem] font-medium transition-all ${o==="CARD"?"checkout-method-active":""}`,style:{background:"var(--card-bg)",color:"var(--text-primary)"},children:[e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),e.jsx("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]}),s("modals.checkout.card")]}),e.jsxs("button",{onClick:()=>g("EASY_PAY"),className:`checkout-method flex flex-1 items-center justify-center gap-2 rounded-xl px-3 py-3 text-[0.88rem] font-medium transition-all ${o==="EASY_PAY"?"checkout-method-active":""}`,style:{background:"var(--card-bg)",color:"var(--text-primary)"},children:[e.jsxs("span",{className:"inline-flex items-center gap-0.5 rounded-md px-2 py-0.5",style:{background:"#FEE500",height:"24px"},children:[e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:e.jsx("path",{d:"M12 3C6.48 3 2 6.58 2 10.9c0 2.78 1.8 5.22 4.51 6.6-.2.73-.72 2.64-.83 3.05-.13.5.18.5.39.36.16-.1 2.59-1.76 3.63-2.47.74.11 1.51.16 2.3.16 5.52 0 10-3.58 10-7.9S17.52 3 12 3z",fill:"#3C1E1E"})}),e.jsx("span",{className:"text-[0.8rem] font-extrabold tracking-tight",style:{color:"#3C1E1E"},children:"pay"})]}),s("modals.checkout.kakaoPay")]})]})]}),e.jsx("section",{className:"mb-[18px] border-b pb-[18px]",style:{borderColor:"var(--card-border)"},children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-[0.9rem] font-semibold",style:{color:"var(--text-secondary)"},children:s("modals.checkout.period")}),e.jsx("span",{className:"text-[0.88rem] font-medium",style:{color:"var(--text-primary)"},children:s(r==="monthly"?"modals.checkout.renewMonthly":"modals.checkout.renewAnnual")})]})})]}),e.jsxs("section",{children:[e.jsx("h3",{className:"mb-3 text-[0.82rem] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:s("modals.checkout.benefits")}),e.jsx("ul",{className:"m-0 grid list-none grid-cols-2 gap-x-4 gap-y-0.5 p-0 max-[520px]:grid-cols-1",children:b.map(d=>e.jsxs("li",{className:"flex items-center gap-2 py-1 text-[0.82rem]",style:{color:"var(--text-secondary)"},children:[e.jsx("span",{className:"inline-block h-[5px] w-[5px] shrink-0 rounded-full",style:{background:"#FAB12F"}}),d]},d))})]})]}),e.jsx("div",{className:"shrink-0 px-6 pb-5 pt-3.5",children:e.jsxs(e.Fragment,{children:[e.jsxs("p",{className:"mb-3 text-center text-[0.75rem] leading-relaxed opacity-70",style:{color:"var(--text-tertiary)"},children:[r==="monthly"?s("modals.checkout.autoRenewMonthly",{price:n==null?void 0:n.toLocaleStr
1ing("ko-KR")}):s("modals.checkout.autoRenewAnnual",{price:n==null?void 0:n.toLocaleString("ko-KR")}),e.jsx("br",{}),s("modals.checkout.cancelAnytime"),e.jsx("br",{}),e.jsx(Q,{i18nKey:"modals.checkout.refundConsent",components:{refund:e.jsx("a",{href:"/legal/refund",target:"_blank",rel:"noopener noreferrer",className:"underline",style:{color:"#FAB12F"}})}})]}),e.jsx("button",{onClick:P,disabled:f,className:"w-full rounded-full py-[15px] text-[0.95rem] font-bold text-white transition-all hover:translate-y-[-1px] active:translate-y-0 disabled:opacity-50 disabled:cursor-not-allowed",style:{background:"var(--text-primary)",boxShadow:"0 4px 15px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.1)",color:"var(--page-bg)"},children:f?s("modals.checkout.processing"):r==="monthly"?s("modals.checkout.subscribeMonthly",{price:n==null?void 0:n.toLocaleString("ko-KR")}):s("modals.checkout.subscribeAnnual",{price:n==null?void 0:n.toLocaleString("ko-KR")})}),e.jsx("p",{className:"mt-2.5 text-center text-[0.7rem] opacity-50",style:{color:"var(--text-tertiary)"},children:s("modals.checkout.secure")})]})})]})})}function W({onClose:t}){const{t:r}=R();return $(),e.jsx("div",{className:"fixed inset-0 z-[60] flex items-center justify-center p-5",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)"},onClick:t,children:e.jsxs("div",{className:"relative flex w-full max-w-[400px] flex-col overflow-hidden rounded-[20px]",style:{background:"var(--card-bg)",border:"1px solid var(--card-border)",boxShadow:"0 24px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05) inset"},onClick:x=>x.stopPropagation(),children:[e.jsx("div",{className:"pointer-events-none absolute -top-10 left-1/2 h-20 w-[70%] -translate-x-1/2",style:{background:"radial-gradient(ellipse, rgba(250,177,47,0.25) 0%, transparent 70%)",filter:"blur(25px)"}}),e.jsx("button",{onClick:t,className:"absolute right-4 top-4 z-10 flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-[var(--hover-bg)]","aria-label":r("modals.appSubscribe.close"),style:{color:"var(--text-tertiary)"},children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[e.jsx("line",{x1:"15",y1:"5",x2:"5",y2:"15"}),e.jsx("line",{x1:"5",y1:"5",x2:"15",y2:"15"})]})}),e.jsxs("div",{className:"relative z-[1] flex flex-col items-center px-7 py-9 text-center",children:[e.jsx("img",{src:"/logo.svg",alt:"",className:"h-12 w-12"}),e.jsx("h2",{className:"mt-5 text-[1.15rem] font-bold",style:{color:"var(--text-primary)"},children:r("modals.appSubscribe.title")}),e.jsx("p",{className:"mt-2.5 text-[0.88rem] leading-relaxed",style:{color:"var(--text-secondary)"},children:r("modals.appSubscribe.body")}),e.jsxs("div",{className:"mt-7 flex w-full flex-col gap-2.5",children:[e.jsxs("a",{href:te,target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center justify-center gap-2.5 rounded-full px-5 py-3 text-[0.9rem] font-semibold transition-all hover:scale-[1.01] active:scale-[0.99]",style:{background:"var(--text-primary)",color:"var(--page-bg)"},children:[e.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor",children:e.jsx("path",{d:"M17.05 20.28c-.98.95-2.05.88-3.08.4-1.09-.5-2.08-.48-3.24 0-1.44.62-2.2.44-3.06-.4C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),r("modals.appSubscribe.appStore")]}),e.jsxs("a",{href:re,target:"_blank",rel:"noopener noreferrer",className:"flex w-full items-center justify-center gap-2.5 rounded-full px-5 py-3 text-[0.9rem] font-semibold transition-all hover:scale-[1.01] active:scale-[0.99]",style:{background:"var(--input-bg)",border:"1px solid var(--card-border)",color:"var(--text-primary)"},children:[e.jsxs("svg",{viewBox:"0 0 24 24",width:"18",height:"18",children:[e.jsx("path",{d:"M3.6 2.3c-.2.2-.3.5-.3.9v17.6c0 .4.1.7.3.9l.1.1L13.5 12v-.1L3.7 2.2l-.1.1z",fill:"#00D7FE"}),e.jsx("path",{d:"M16.8 15.3L13.5 12v-.1l3.3-3.3.1.1 3.9 2.2c1.1.6 1.1 1.7 0 2.3l-3.9 2.2-.1-.1z",fill:"#FFBC00"}),e.jsx("path",{d:"M16.9 15.2L13.5 11.9 3.6 21.8c.4.4.9.4 1.6.1l11.7-6.7",fill:"#FF3A44"}),e.jsx("path",{d:"M16.9 8.6L5.2 2c-.7-.4-1.2-.3-1.6.1l9.9 9.8 3.4-3.3z",fill:"#00F076"})]}),r("modals.appSubscribe.playStore")]})]})]})]})})}
1function G(t){return`â©${t.toLocaleString("ko-KR")}`}function ae(t,r,x,s){if(x==="mobile"&&s){const v=`${t}_${r}`,a=s.find(o=>o.productId===v);if(a!=null&&a.displayPrice)return a.displayPrice}const p=T[t][x][r];return p?G(p):null}function me(){const{t}=R(),r=X(),{user:x}=K(),{plan:s,platform:p,nativePricing:v}=z(),{showToast:a}=U(),[o,g]=h.useState("monthly"),[f,i]=h.useState(null),[k,n]=h.useState(!1),j=p==="web"&&!O(),[b,P]=h.useState(()=>typeof window<"u"?window.matchMedia("(max-width: 767px)").matches:!1);h.useEffect(()=>{const l=window.matchMedia("(max-width: 767px)"),m=S=>P(S.matches);return l.addEventListener("change",m),()=>l.removeEventListener("change",m)},[]),h.useEffect(()=>(I(!1),()=>{I(!0)}),[]);const[d,C]=h.useState(!1);h.useEffect(()=>Z(l=>{l.action==="restoreResult"&&(C(!1),a(l.message||(l.success?t("pricing.restoreSuccess"):t("pricing.restoreFailed")),l.success?"success":"error"))}),[a,t]);const A=()=>{if(!x){a(t("pricing.loginRequired"),"warning");return}if(p==="web")return;C(!0),ee(x.uid)||(C(!1),a(t("pricing.restoreRequestFailed"),"error")),setTimeout(()=>C(!1),3e4)},M=p==="web"?"web":"mobile",c=M==="web";h.useEffect(()=>{!c&&o!=="monthly"&&g("monthly")},[c,o]);const u=(l,m)=>T[l][M][m],L=(l,m)=>ae(l,m,M,v),y=l=>{if(!x){a(t("pricing.loginRequired"),"warning"),r("/");return}if(s===l){r("/settings/subscription");return}if(s==="lite"||s==="pro"){a(t("pricing.planChangeNotSupported"),"info"),r("/settings/subscription");return}if(!u(l,o)){a(t("pricing.cycleNotAvailable"),"warning");return}if(p!=="web"){const S=`${l}_${o}`;q({productId:S,userId:x.uid})||a(t("pricing.iapBridgeFailed"),"error");return}if(j){n(!0);return}i({plan:l,cycle:o})},w=h.useMemo(()=>[{plan:"free"},{plan:"lite",price:u("lite",o)},{plan:"pro",price:u("pro",o)}],[o,M]);return b?e.jsxs(e.Fragment,{children:[e.jsx(ie,{cycle:o,setCycle:g,cycleSelectorAvailable:c,currentPlan:s,priceOf:u,priceDisplayOf:L,onSelect:y,onBack:()=>r(-1),onRestore:p!=="web"?A:void 0,restoring:d}),f&&e.jsx(D,{plan:f.plan,cycle:f.cycle,onClose:()=>i(null)}),k&&e.jsx(W,{onClose:()=>n(!1)})]}):e.jsxs("div",{className:"min-h-screen",style:{background:"var(--page-bg)"},children:[e.jsx("div",{className:"mx-auto max-w-5xl px-6 pt-6",children:e.jsxs("button",{onClick:()=>r(-1),onMouseDown:l=>l.preventDefault(),className:"inline-flex items-center gap-1.5 rounded-full px-4 py-2 text-[13px] font-medium transition-all hover:scale-[1.02] active:scale-95",style:{background:"var(--card-bg)",color:"var(--text-secondary)",border:"1px solid var(--card-border)"},children:[e.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})}),t("pricing.back")]})}),e.jsxs("div",{className:"mx-auto max-w-5xl px-6 pb-16 pt-16",children:[e.jsxs("div",{className:"flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-end",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("img",{src:"/logo.svg",alt:"Summix",className:"h-10 w-10"}),e.jsx("h1",{className:"text-[44px] font-bold tracking-tight leading-none",style:{color:"var(--text-primary)"},children:t("pricing.title")})]}),e.jsx("p",{className:"mt-2 text-[14px]",style:{color:"var(--text-tertiary)"},children:t("pricing.heroDescription")})]}),c&&e.jsx(H,{cycle:o,setCycle:g})]}),e.jsx("div",{className:"mt-12 grid gap-6 md:grid-cols-3",children:w.map(({plan:l,price:m})=>e.jsx(oe,{plan:l,price:m,priceDisplay:l!=="free"?L(l,o):null,cycle:o,current:s===l,onSelect:l!=="free"?()=>y(l):void 0},l))}),p!=="web"&&e.jsx("div",{className:"mt-10 flex justify-center",children:e.jsx("button",{type:"button",onClick:A,disabled:d,className:"text-[13px] underline transition-opacity disabled:opacity-50",style:{color:"var(--text-tertiary)"},children:t(d?"pricing.restoreInProgress":"pricing.restoreCta")})}),e.jsx(le,{})]}),f&&e.jsx(D,{plan:f.plan,cycle:f.cycle,onClose:()=>i(null)}),k&&e.jsx(W,{onClose:()=>n(!1)})]})}function H(t){return null}function le(){const{t}=R();return e.jsxs("footer",{className:"mt-16 text-center",children:[e.jsxs("div",{className:"flex flex-wrap justify-center gap-3 text-[12px]",style:{color:"var(--text-tertiary)"},children:[e.jsx("a",{href:"/legal/terms",className:"hover:underline",children:t("footer.terms")}),e.jsx("span",{children:"·"}),e.jsx("a",{href:"/legal/privacy",className:"hover:underline",children:t("footer.privacy")}),e.jsx("span",{children:"·"}),e.jsx("a",{href:"/legal/refund",className:"hover:underline",children:t("footer.refund")})]}),(Y.language||"ko").startsWith("ko")&&e.jsxs("p",{className:"mt-3 text-[11px] leading-relaxed",style:{color:"var(--text-tertiary)"},children:["ìí¸ëª
: í¬ë©ì¤(2Labs) | ëíì: ì´ê°ë",e.jsx("br",{}),"ì¬ì
ìë±ë¡ë²í¸: 434-11-01377",e.jsx("br",{}
1),"경기ë ì±ë¨ì ë¶ë¹êµ¬ ëë§ë¡476ë²ê¸¸ 31, 510-904",e.jsx("br",{}),"ëíì í: 010-7608-1066 | ì´ë©ì¼: [email protected]"]})]})}const F=[{plan:"free",label:"Free",taglineKey:"free"},{plan:"lite",label:"Lite",taglineKey:"lite"},{plan:"pro",label:"Pro",taglineKey:"pro"}];function ie({cycle:t,setCycle:r,cycleSelectorAvailable:x,currentPlan:s,priceOf:p,priceDisplayOf:v,onSelect:a,onBack:o,onRestore:g,restoring:f}){const{t:i}=R(),k="var(--text-primary)",n=s==="free"?2:F.findIndex(c=>c.plan===s),[j,b]=h.useState(n),P=h.useRef(null);h.useEffect(()=>{const c=P.current;if(!c)return;const u=c.children;if(u[n]){const y=u[n];c.scrollLeft=y.offsetLeft-(c.offsetWidth-y.offsetWidth)/2}const L=()=>{const y=c.scrollLeft+c.offsetWidth/2;let w=0,l=1/0;for(let m=0;m<u.length;m++){const S=u[m],N=S.offsetLeft+S.offsetWidth/2,B=Math.abs(y-N);B<l&&(l=B,w=m)}b(w)};return c.addEventListener("scroll",L,{passive:!0}),()=>c.removeEventListener("scroll",L)},[n]);const d=F[j],C=d.plan!=="free"?p(d.plan,t):void 0,A=s===d.plan,M=d.plan==="free";return e.jsxs("div",{className:"flex min-h-[100dvh] flex-col",style:{background:"var(--page-bg)"},children:[e.jsxs("div",{className:"flex shrink-0 items-center justify-between px-4 pt-3",children:[e.jsx("button",{onClick:o,onMouseDown:c=>c.preventDefault(),className:"flex h-9 w-9 items-center justify-center rounded-full transition-all active:scale-90",style:{background:"var(--card-bg)",color:"var(--text-secondary)",border:"1px solid var(--card-border)"},children:e.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})})}),x&&e.jsx(H,{cycle:t,setCycle:r})]}),e.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center px-8 text-center",children:[e.jsx("img",{src:"/logo.svg",alt:"Summix",className:"mb-4 h-12 w-12"}),e.jsx("p",{className:"text-[15px] font-semibold leading-relaxed",style:{color:"var(--text-primary)"},children:i("pricing.mobileHook")}),e.jsx("p",{className:"mt-2 text-[12px] leading-relaxed",style:{color:"var(--text-tertiary)"},children:i("pricing.mobileSubHook")})]}),e.jsxs("div",{className:"shrink-0 px-6 pb-3 text-center",children:[e.jsx("h1",{className:"text-[22px] font-bold tracking-tight",style:{color:"var(--text-primary)"},children:i("pricing.title")}),e.jsx("p",{className:"mt-1 text-[12px]",style:{color:"var(--text-tertiary)"},children:i("pricing.mobileSubtitle")})]}),e.jsx("div",{children:e.jsx("div",{ref:P,className:"flex snap-x snap-mandatory gap-3 overflow-x-auto",style:{scrollbarWidth:"none",paddingLeft:"11%",paddingRight:"11%",paddingTop:"4px",paddingBottom:"4px"},children:F.map(({plan:c,label:u,taglineKey:L})=>{const y=c==="pro",w=c==="free",l=w?void 0:p(c,t),m=V(c,i),S=i(`pricing.tagline.${L}`);return e.jsxs("div",{className:`relative flex w-[78vw] shrink-0 snap-center flex-col rounded-[22px] px-6 py-7 ${y?"pro-plan-card":""}`,style:{background:"var(--card-bg)",border:y?"none":"1px solid var(--card-border)",boxShadow:y?"0 0 0 1px rgba(250,177,47,0.3), 0 8px 32px rgba(250,177,47,0.1)":"0 1px 3px rgba(0,0,0,0.04)"},children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[18px] font-bold",style:{color:"var(--text-primary)"},children:u}),y&&e.jsx("span",{className:"rounded-full px-2.5 py-0.5 text-[10px] font-bold",style:{background:"var(--text-primary)",color:"var(--page-bg)"},children:i("pricing.recommended")})]}),e.jsxs("div",{className:"mt-3 flex items-baseline",children:[e.jsx("span",{className:"text-[28px] font-bold leading-none tracking-tight",style:{color:"var(--text-primary)"},children:w?"â©0":v(c,t)??"â"}),!w&&l&&e.jsxs("span",{className:"ml-1 text-[12px]",style:{color:"var(--text-tertiary)"},children:["/",i(t==="monthly"?"pricing.perMonth":"pricing.perYear")]})]}),e.jsx("p",{className:"mt-4 text-[13px] leading-snug",style:{color:"var(--text-tertiary)"},children:S}),e.jsx("div",{className:"my-4 h-px",style:{background:"var(--card-border)"}}),e.jsx("ul",{className:"flex-1 space-y-3.5",children:m.map(N=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(J,{color:N.disabled?"var(--text-tertiary)":k,opacity:N.disabled?.4:1}),e.jsx("span",{className:"text-[13.5px] leading-snug",style:{color:N.disabled?"var(--text-tertiary)":"var(--text-primary)",o
1pacity:N.disabled?.5:1},children:N.text})]},N.text))})]},c)})})}),e.jsx("div",{className:"flex justify-center gap-2 py-5",children:F.map((c,u)=>e.jsx("div",{className:"h-1.5 rounded-full transition-all",style:{width:u===j?"20px":"6px",background:u===j?k:"var(--card-border)"}},u))}),e.jsx("div",{className:"px-5 pb-2",children:M?e.jsx(E,{variant:"muted",label:i("pricing.freePlanCta"),disabled:!0}):e.jsx(E,{variant:"gradient",label:A?i("pricing.currentPlan"):i("pricing.subscribePlan",{plan:d.label}),onClick:A?void 0:()=>a(d.plan),disabled:A||!C})}),g&&e.jsx("div",{className:"px-5 pt-2 text-center",children:e.jsx("button",{type:"button",onClick:g,disabled:f,className:"text-[12.5px] underline transition-opacity disabled:opacity-50",style:{color:"var(--text-tertiary)"},children:i(f?"pricing.restoreInProgress":"pricing.restoreCta")})}),e.jsx("div",{className:"flex-1"}),e.jsx("div",{className:"px-5 pb-4 pt-2",children:e.jsxs("p",{className:"text-center text-[10.5px] leading-relaxed",style:{color:"var(--text-tertiary)"},children:[i("footer.autoRenewal")," · ",e.jsx("a",{href:"/legal/terms",className:"underline",children:i("footer.terms")})," · ",e.jsx("a",{href:"/legal/privacy",className:"underline",children:i("footer.shortPrivacy")})," · ",e.jsx("a",{href:"/legal/refund",className:"underline",children:i("footer.refund")}),(Y.language||"ko").startsWith("ko")&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),"í¬ë©ì¤(2Labs) · 434-11-01377 · 010-7608-1066"]})]})})]})}function E({variant:t,label:r,onClick:x,disabled:s}){const p={gradient:{background:"var(--text-primary)",color:"var(--page-bg)",border:"1px solid transparent",boxShadow:"0 4px 14px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.1)"},outline:{background:"var(--input-bg)",color:"var(--text-primary)",border:"1px solid var(--card-border)"},muted:{background:"var(--input-bg)",color:"var(--text-tertiary)",border:"1px solid transparent"}};return e.jsx("button",{onClick:x,disabled:s,className:"w-full rounded-full py-[11px] text-[14px] font-semibold transition-all hover:-translate-y-[1px] active:translate-y-0 disabled:cursor-not-allowed disabled:opacity-50",style:p[t],children:r})}function V(t,r){return t==="free"?[{text:r("pricing.features.freeSummariesLifetime")},{text:r("pricing.features.proToolsAvailable")},{text:r("pricing.features.clipsUnlimited")},{text:r("pricing.features.videoUpTo1h")},{text:r("pricing.features.customToolsLocked"),disabled:!0}]:t==="lite"?[{text:r("pricing.features.liteSummariesDaily")},{text:r("pricing.features.proToolsAvailable")},{text:r("pricing.features.customTools10")},{text:r("pricing.features.clipsUnlimited")},{text:r("pricing.features.videoUpTo2h")}]:[{text:r("pricing.features.summariesUnlimited")},{text:r("pricing.features.proToolsAvailable")},{text:r("pricing.features.customToolsUnlimited")},{text:r("pricing.features.clipsUnlimited")},{text:r("pricing.features.videoUpTo5h")},{text:r("pricing.features.prioritySupport")}]}function oe({plan:t,price:r,priceDisplay:x,cycle:s,current:p,onSelect:v}){const{t:a}=R(),o=t==="pro",g=t==="free"?"Free":t==="lite"?"Lite":"Pro",f=a(t==="free"?"pricing.taglineMultiline.free":t==="lite"?"pricing.taglineMultiline.lite":"pricing.taglineMultiline.pro"),i=V(t,a),k="var(--text-primary)",n=p?a("pricing.currentPlan"):t==="free"?a("pricing.freePlanCta"):a("pricing.subscribePlan",{plan:g}),j=p||t==="free"||!r;return e.jsxs("div",{className:`relative flex flex-col rounded-[24px] p-7 ${o?"pro-plan-card":""}`,style:{background:"var(--card-bg)",border:o?"none":"1px solid var(--card-border)",boxShadow:o?"0 0 0 1px rgba(250,177,47,0.3), 0 8px 40px rgba(250,177,47,0.1)":void 0,opacity:t==="free"?.92:1},children:[o&&e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute left-1/2 -translate-x-1/2",style:{top:"-60px",width:"80%",height:"120px",background:"radial-gradient(ellipse, rgba(250,177,47,0.4) 0%, rgba(255,0,51,0.15) 40%, transparent 75%)",filter:"blur(35px)",zIndex:0}}),e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"text-[20px] font-bold tracking-tight",style:{color:"var(--text-primary)"},children:g}),o&&e.jsx("span",{className:"rounded-full px-3 py-0.5 text-[11px] font-bold",style:{background:"var(--text-primary)",color:"var(--page-bg)"},children:a("pricing.recommended")})]}),e.jsx("div",{className:"mt-3",children:t==="free"?e.jsx("div",{className:"flex items-baseline",children:e.jsx("span",{className:"text-[24px] font-semibold leading-none tracking-tight",style:{color:"var(--text-primary)"},children:"â©0"})}):r?e.jsxs("div",{className:"flex items-baseline",children:[e.jsx("span",{className:"text-[24px] font-semibold leading-none tracking-tight",style:{color:"var(--text-primary)"},children:x??G(r)}),e.jsxs("span",{className:"ml-1.5 text-[13px]",style:{color:"var(--text-tertiary)"},children:["/",a(s==="monthly"?"pricing.perMonth":"pricing.perYear")]})]}):e.jsx("div",{className:"text-[18px] font-bold",style:{color:"var(--text-tertiary)"},children:a("pricing.cycleNotSupported")})}),e.jsx("p",{className:"mt-3 whitespace-pre-line text-[14px] leading-snug",style:{color:"var(--text-tertiary)"},children:f}),e.jsx("div",{className:"relative z-10 mt-4",children:e.jsx(E,{variant:t==="free"?"muted":"gradient",onClick:j?void 0:v,disabled:j,label:n})}),e.jsx("ul",{className:"relative z-10 mt-5 flex-1 space-y-3",children:i.map(b=>e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(J,{color:b.disabled?"var(--text-tertiary)":k,opacity:b.disabled?.4:1}),e.jsx("span",{className:"text-[14px] leading-snug",style:{color:b.disabled?"var(--text-tertiary)":"var(--text-primary)",o
1pacity:b.disabled?.5:1},children:b.text})]},b.text))})]})}function J({color:t,opacity:r}){return e.jsx("svg",{className:"mt-0.5 h-4 w-4 shrink-0",viewBox:"0 0 20 20",fill:"none",style:{opacity:r},children:e.jsx("path",{d:"M4.5 10.5l3.5 3.5 7.5-8",stroke:t,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}export{me 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.