1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"c3f9d1bb9087d3f884b31c5f541e29cc193b8371"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var a in s)s.hasOwnProperty(a)&&(e[a]=s[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:guidingstar-ui":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="001f9096-bdce-4f3c-9dba-0696e2b2a491",e._sentryDebugIdIdentifier="sentry-dbid-001f9096-bdce-4f3c-9dba-0696e2b2a491")}catch(s){}}();import{j as e,r as t,f as s,a}from"./vendor-react-B5UUB5Xn.js";import{B as i,k as r,Z as l,x as n,q as d,G as c,a0 as o,bQ as x,cP as m,cQ as p,bn as h,p as b,h as u,L as g,l as f,F as j,aV as y,u as v,t as N,H as w,cR as k,v as _,j as S,bo as z,S as I}from"./index-CRlZJMhO.js";import{a as C,F as q}from"./Footer-Tb1Khppe.js";import{S as P}from"./spotlight-Cj4DWAoK.js";import{u as T}from"./usePayment-Eqt2YvrW.js";import{C as M,r as E,u as B,a as A,b as L,P as $,E as R,H as D,G as F,c as G}from"./checkoutMethod-DQ7kdm6H.js";import{R as O,M as U,n as H}from"./reportCredits-C6dvXb3e.js";import{A as K}from"./index-BCXb6fLU.js";const W=[{highlight:"å
¨é¢åæ",rest:"é£åä½ å·²ç¶ç¶è±«å¾ä¹
çè¡å"},{highlight:"å
¨é¢åæ",rest:"é£åä½ ä¸æ¢èªªåºå£çåé¡"},{highlight:"å
¨é¢åæ",rest:"é£åä»¤ä½ æ·±å¤å¤±ç ç念é "}],Q=()=>W[Math.floor(Math.random()*W.length)],V=[{key:"job",segments:[{kind:"text",value:"æè©²ä¸è©²æå·¥ä½ï¼"}]},{key:"startup",segments:[{kind:"text",value:"ææ¯ççé©å嵿¥ï¼éæ¯æ³éé¿ç¾çï¼"}]},{key:"pattern",segments:[{kind:"text",value:"çºä»éº¼æç¸½è¢«åä¸ç¨®äººå¸å¼ï¼"}]},{key:"synastry",segments:[{kind:"text",value:"æè· "},{kind:"mention",label:"ä»/她"},{kind:"text",value:" é·æä¸å»æå¡å¨åªï¼"}]},{key:"timing-love",segments:[{kind:"text",value:"æä»éº¼æå容æé²å
¥ç©©å®éä¿ï¼"}]},{key:"next-30",segments:[{kind:"text",value:"æ¥ä¸ä¾ 30 天該åªå
èçä»éº¼ï¼"}]},{key:"flow-today",segments:[{kind:"flow",label:"仿¥"},{kind:"text",value:" é©ååä»éº¼æ¨£ç決å®ï¼"}]},{key:"tarot-read",segments:[{kind:"text",value:"幫æè§£é次æ½å°ç "},{kind:"tarot",label:"å¡ç¾
"}]}],J=[{name:"å
è²»çï¼Freeï¼",planId:"free",price:0,tagline:"å
è®æåæèªèä½ ä¸æ¬¡",features:["忬å
«åãç´«å¾®ææ¸ã西æ´å æãçå½éæ¸è MBTI çå¤ç¶äººçå表æ¿","å大å½ç系統åæå°ç
§ï¼æé
MBTI è¡çºæ ¡æºï¼è¾¨èä½ çåºå±¤æ¶æ§è交åè¨è","AI åçèæ¯æ¥æå¼è¨èï¼é¨æéæ¸
ä¸ä¸æ¥","æ¡æ©èææ©çå¯ä½¿ç¨","è¦è§£çè¨ä¸é 10 å","AI å°è©±è¨éä¿ç 3 天"],cta:"å
è²»éå§",link:"/login"},{name:"åºç¤çï¼Basicï¼",planId:"basic",price:299,tagline:"ç¶ä½ 卿æ
æå·¥ä½ä¸å¡ä½ï¼é裡æäººéªä½ çæ¸
æ¥",features:["æ¯æ 900 ææå¡æå¼å¹£ï¼æ¥å¸¸æåä¸éç¶è±«","å大å½çç³»çµ±å®æ´å°ç
§ à MBTI è¡çºæ ¡æºï¼äº¤åé©èä½ çè§å¯","è¦è§£çè¨ä¸é 50 å","AI å°è©±è¨éä¿ç 7 天","æå¼å¹£å
9 æåªæ "],cta:"éåæçåºç¤ç",link:"/login?plan=basic",badge:"æ¨è¦"},{name:"å°æ¥çï¼Proï¼",planId:"pro",price:599,tagline:"ä½ è¦çä¸åªæ¯éåå¹´ï¼æ¯æ¥ä¸ä¾å¹¾å¹´æéº¼èµ°",features:["æ¯æ 2,100 ææå¡æå¼å¹£ï¼æ·±åº¦æ¨æ¼èé·é±æåæ","å大å½çç³»çµ±å®æ´å°ç
§ à MBTI è¡çºæ ¡æºï¼äº¤åé©èä½ çè§å¯","è¦è§£çè¨ä¸é 999 å","AI å°è©±è¨éä¿ç 14 天","æå¼å¹£å
8 æåªæ "],cta:"ç宿´çæ",link:"/login?plan=pro",badge:"æè¦"}],Y=[{title:"åä¸ä»¶äºï¼çäºåè§åº¦ææ¾å¿",description:"åä¸ååé¡åææ¾é²å
«åãç´«å¾®ææ¸ã西æ´å æãçå½éæ¸ãMBTIââ䏿¯äºå系統å說åè©±ï¼æ¯äºåè§åº¦å°èåä¸ä»¶äºã",icon:e.jsx(i,{size:22})},{title:"ä½ åéçãæ³éçï¼é½æçå¨é裡",description:"ä½ ä¹ååéçäºãé£åè®ä½ ãå°ï¼å°±æ¯é樣ãçåè¦ï¼ä¸éµæ¶èï¼ä¹å¾å¯ä»¥ç¨æ¨ç±¤ãæéãé©èçæ
åé çï¼ä¹è½æè¡åæ´çæå¾é¸æ¸
å®ã",icon:e.jsx(r,{size:22})},{title:"ä½ è±çæ¯ä¸æå¹£ï¼é½çå¾å°å»è",description:"æ¯æ¬¡æåãæ·±å
¥åæãæ ¡æºæå¡ç¾
齿¸
æ¥æ£å¹£ï¼è¨é±æ¯æèªåè£å¹£ï¼å¹£å
éæå°å±¬ç¦®éã",icon:e.jsx(l,{size:22}),coinsUiOnly:!0},{title:"忍ä¸é»ç¹ä¸åºä¾çæåï¼é裡æ¯å¤©å
çµ¦ä½ ä¸ååå
¥é»",description:"æ¯å¤©æ´çä¸åéé»è¨èï¼é²å
¥å½éæ¨æ¼ç¹¼çºæ¢åï¼ææ¨¡ç³çå顿´çæä»å¤©å¯ä»¥æ¡åçä¸ä¸æ¥ã",icon:e.jsx(n,{size:22})}],Z=({plan:t,onSelect:s,onPurchase:a,purchaseLoading:i})=>{const r="åºç¤çï¼Basicï¼"===t.name;return e.jsxs("div",{className:d("relative h-full p-5 md:p-7 flex flex-col items-stretch transition-[background-color,border-color,box-shadow] duration-300",r?"dashboard-card":"dashboard-card-soft border border-white/[0.06]"),style:{borderRadius:"1.25rem"},children:[t.badge&&e.jsx("div",{className:"absolute top-4 right-4 px-2.5 py-1 text-[11px] rounded-full font-semibold",style:{borderColor:"rgba(136, 218, 255, 0.3)",border:"1px solid rgba(136, 218, 255, 0.3)",background:"linear-gradient(135deg, rgba(90, 186, 255, 0.12), rgba(154, 99, 255, 0.1))",color:"rgba(164, 223, 255, 0.9)"},children:t.badge}),e.jsxs("div",{className:"relative z-10 flex flex-col h-full",children:[e.jsxs("div",{className:"mb-5",children:[e.jsx("p",{className:"text-xs mb-1",style:{color:"rgba(171, 191, 223, 0.6)"},children:t.name}),e.jsx("h3",{className:"text-lg md:text-xl font-futuristic font-bold text-white min-h-[52px] md:min-
1h-[56px] leading-tight flex items-center",children:t.tagline})]}),e.jsxs("div",{className:"relative mb-5 border-b pt-3 pb-5",style:{borderColor:"rgba(255, 255, 255, 0.08)"},children:[e.jsx("span",{className:"absolute left-0 top-0 text-[10px] uppercase tracking-[0.1em]",style:{color:"rgba(171, 191, 223, 0.5)"},children:"TWD$"}),e.jsx("span",{className:"block text-center text-5xl md:text-6xl font-futuristic font-bold text-white tracking-tight leading-none",children:0===t.price?"0":t.price.toLocaleString()}),e.jsx("span",{className:"absolute right-0 bottom-6 text-[10px]",style:{color:"rgba(171, 191, 223, 0.5)"},children:"/ æ"})]}),e.jsx("ul",{className:"space-y-3.5 md:space-y-3 mb-7 flex-1",children:t.features.map(t=>e.jsxs("li",{className:"flex items-start text-sm leading-relaxed",style:{color:"rgba(220, 232, 255, 0.85)"},children:[e.jsx("div",{className:"mt-1 mr-2.5 w-4 h-4 rounded-full flex items-center justify-center shrink-0",style:{background:"linear-gradient(135deg, rgba(90, 186, 255, 0.18), rgba(154, 99, 255, 0.14))",boxShadow:"0 0 8px rgba(136, 218, 255, 0.2)"},children:e.jsx(o,{size:10,style:{color:"rgba(164, 223, 255, 0.9)"}})}),e.jsx("span",{children:t})]},t))}),e.jsxs("div",{className:"min-h-[20px] mb-3",children:["åºç¤çï¼Basicï¼"===t.name&&e.jsxs("div",{className:"text-xs flex items-center gap-1.5",style:{color:"rgba(164, 223, 255, 0.8)"},children:[e.jsx(n,{size:12,style:{color:"rgba(180, 140, 255, 0.8)"}}),e.jsx("span",{children:"æåæ¡è¿ï¼æçèææ¬æå¹³è¡¡"})]}),"å°æ¥çï¼Proï¼"===t.name&&e.jsxs("div",{className:"text-xs flex items-center gap-1.5",style:{color:"rgba(180, 140, 255, 0.8)"},children:[e.jsx(C,{size:12}),e.jsx("span",{children:"é«å¯åº¦æ¨æ¼èé·é±ææ±ºçæ¯æ´"})]})]}),a?e.jsxs(M,{className:d("pricing-liquid-cta",r?"pricing-liquid-cta--featured":"pricing-liquid-cta--quiet"),contentClassName:d("pricing-liquid-cta__content flex items-center justify-center gap-2 text-base font-semibold text-white"),onClick:a,disabled:i,children:[e.jsx(x,{className:"pricing-liquid-cta__icon shrink-0",size:17,"aria-hidden":"true"}),e.jsx("span",{className:"pricing-liquid-cta__label",children:i?"èçä¸â¦":t.cta})]}):e.jsxs(M,{to:t.link,className:d("pricing-liquid-cta",r?"pricing-liquid-cta--featured":"pricing-liquid-cta--quiet"),contentClassName:d("pricing-liquid-cta__content flex items-center justify-center gap-2 text-base font-semibold text-white"),onClick:s,children:[e.jsx(x,{className:"pricing-liquid-cta__icon shrink-0",size:17,"aria-hidden":"true"}),e.jsx("span",{className:"pricing-liquid-cta__label",children:t.cta})]})]})]})},X=[{id:"free",height:"h-[420px]"},{id:"basic",height:"h-[460px]"},{id:"pro",height:"h-[420px]"}],ee=()=>e.jsxs("div",{className:"relative mb-14",role:"status","aria-label":"æåº¦é¡§åè¦åä¸ï¼å°æªéæ¾",children:[e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none select-none grid grid-cols-1 md:grid-cols-3 gap-5 blur-md saturate-50 opacity-50",children:X.map(t=>e.jsxs("div",{className:d("dashboard-card-soft relative overflow-hidden flex flex-col gap-4 p-6",t.height),style:{background:"linear-gradient(155deg, rgba(11,18,53,0.85), rgba(44,19,85,0.55) 52%, rgba(9,14,45,0.9))",border:"1px solid rgba(154, 99, 255, 0.18)"},children:[e.jsx("div",{className:"h-3 w-1/2 rounded-full bg-white/15"}),e.jsx("div",{className:"h-10 w-3/4 rounded-md bg-white/12"}),e.jsx("div",{className:"h-2 w-2/3 rounded-full bg-white/10"}),e.jsx("div",{className:"mt-6 h-10 rounded-full bg-gradient-to-r from-cyan-300/25 via-v
1iolet-300/25 to-cyan-300/25"}),e.jsxs("div",{className:"mt-4 space-y-2",children:[e.jsx("div",{className:"h-2 w-full rounded-full bg-white/8"}),e.jsx("div",{className:"h-2 w-5/6 rounded-full bg-white/8"}),e.jsx("div",{className:"h-2 w-2/3 rounded-full bg-white/8"}),e.jsx("div",{className:"h-2 w-3/4 rounded-full bg-white/8"})]})]},t.id))}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center px-5",children:e.jsxs("div",{className:"dashboard-card-soft relative max-w-md w-full text-center px-6 py-8 backdrop-blur-xl",style:{background:"linear-gradient(155deg, rgba(11,18,53,0.92), rgba(44,19,85,0.85) 52%, rgba(9,14,45,0.94))",border:"1px solid rgba(154, 99, 255, 0.32)",boxShadow:"0 24px 70px -24px rgba(124, 58, 237, 0.55)"},children:[e.jsx("p",{className:"text-[11px] tracking-[0.32em] uppercase mb-2",style:{color:"rgba(171, 191, 223, 0.7)"},children:"Coming Soon"}),e.jsx("h2",{className:"text-2xl md:text-3xl font-futuristic font-bold mb-3 text-white",children:e.jsx(c,{children:"æåº¦é¡§å"})}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:"rgba(193, 209, 235, 0.85)"},children:"æ£å¨è¦åä¸ï¼å°æªéæ¾ã"}),e.jsx("p",{className:"mt-3 text-xs leading-relaxed",style:{color:"rgba(171, 191, 223, 0.6)"},children:"è«å
ç¨å®æ¬¡æ¨æ¼éå§é«é©ï¼æåæ£å¨åªåéç¼æåº¦é¡§ååè½ï¼è®ä½ æ¯ä¸æ¥é½æ¯æä½³è§£ã"})]})})]}),te=({onPurchase:s,loading:a,disabled:i=!1})=>{const[r,l]=t.useState(1),[n,d]=t.useState("1"),c=O*r,o=e=>{const t=H(e);l(t),d(String(t))};return e.jsx("section",{className:"mx-auto mb-14 max-w-xl",children:e.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-cyan-200/25 bg-slate-950/60 p-6 backdrop-blur-xl sm:p-8",children:[e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-gradient-to-br from-cyan-400/10 via-sky-400/5 to-purple-400/10"}),e.jsxs("div",{className:"relative",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-[11px] font-medium tracking-[0.2em] text-cyan-100/75",children:[e.jsx(m,{"aria-hidden":"true",className:"h-3 w-3"}),"宿´æ¨æ¼å ±å"]}),e.jsxs("p",{className:"mt-3 text-3xl font-semibold text-white",children:["NT$",O,e.jsx("span",{className:"ml-2 text-sm font-normal text-white/55",children:"ï¼ä»½"})]}),e.jsxs("div",{className:"mt-6 flex items-center justify-between gap-4 rounded-2xl border border-white/10 bg-white/[0.03] px-4 py-3",children:[e.jsx("span",{className:"text-sm text-white/70",children:"æ¸é"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{type:"button",onClick:()=>o(r-1),disabled:r<=1||a,"aria-label":"æ¸å°ä¸ä»½",className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-white/15 text-white/75 transition hover:border-white/30 hover:text-white disabled:cursor-not-allowed disabled:opacity-40",children:e.jsx(p,{size:14,"aria-hidden":"true"})}),e.jsx("input",{type:"text",inputMode:"numeric","aria-label":"份æ¸",value:n,disabled:a,onChange:e=>d(e.target.value.replace(/\D/g,"")),onBlur:()=>o(n),onKeyDown:e=>{"Enter"===e.key&&o(n)},className:"w-16 rounded-lg border border-white/12 bg-transparent py-1 text-center text-lg font-semibold text-white outline-none transition focus:border-cyan-200/50"}),e.jsx("button",{type:"button",onClick:()=>o(r+1),disabled:r>=U||a,"aria-label":"å¢å ä¸ä»½",className:"inline-flex h-8 w-8 items-center justify-center rounded-full border border-white/15 text-white/75 transition hover:border-white/30 hover:text-white disabled:cursor-not-allowed disabled:opacity-40",children:e.jsx(h,{size:14,"aria-hidden":"true"})})]})]}),e.jsxs("div",{className:"mt-4 flex items-baseline justify-between",children:[e.jsx("span",{className:"text-sm text-white/60",children:"總è¨"}),e.jsxs("span",{className:"text-2xl font-semibold text-cyan-100",children:["NT$",c.toLocaleString()]})]}),e.jsx(M,{className:"pricing-liquid-cta pricing-liquid-cta--solid mt-6 w-full",contentClassName:"pricing-liquid-cta__content flex items-center justify-center gap-2 text-sm font-semibold text-white",onClick:()=>{const e=H(n);o(e),s(e)},disabled:a||i,children:a?"åå¾ä»æ¬¾â¦":`å²å¼ NT$${c.toLocaleStr
1ing()}`}),e.jsx("p",{className:"mt-4 text-[11px] leading-5 text-white/45",children:"æ¯ä»½é¡åº¦å¯ç¨æ¼å»ºç«ä¸ä»½å®æ´æ¨æ¼å ±åï¼æ²æä½¿ç¨æéãå»¶ä¼¸æ¨æ¼å¯æ¼å ±å宿å¾ä¾éæ±å è³¼ã"})]})]})})},se=[{id:"card",label:"ä¿¡ç¨å¡ï¼éè¯å¡",description:"ç´æ¥å¨æ¤å®å
¨è¼¸å
¥å¡çè³æ"},{id:"apple_pay",label:"Apple Pay"},{id:"google_pay",label:"Google Pay"},{id:"samsung_pay",label:"Samsung Pay"}];function ae({quantity:s,onClose:a}){const[i,r]=t.useState(E),l=t.useRef(null),{ref:n,canScrollUp:d,canScrollDown:c}=B(),x=t.useMemo(()=>({kind:"report_credit",quantity:s}),[s]),m=A(null,"card"===i,{paymentTarget:x,fieldKey:`report-credit-${s}`,analyticsNamespace:"report_credit",analyticsSku:"report_credit"}),p=L("google_pay"===i,{paymentTarget:x,analyticsNamespace:"report_credit",analyticsSku:"report_credit"}),h="google_pay"===i&&!p.canFallBackToHosted,y=h&&"error"===p.phase,{startPayment:v,loading:N,error:w}=T(),k=O*s,_="submitting"===m.phase||"submitting"===p.phase||N,S="card"===i&&("ready"!==m.phase||!m.fieldsValid),z="card"===i?m.error:h?null:w;t.useEffect(()=>{const e=document.body.style.overflow;return document.body.style.overflow="hidden",l.current?.focus({preventScroll:!0}),()=>{document.body.style.overflow=e}},[]),t.useEffect(()=>{const e=e=>{"Escape"!==e.key||_||a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[_,a]);const I=()=>{_||a()},C=se.find(e=>e.id===i)?.label??"仿¬¾",q=_?{label:"èç仿¬¾ä¸â¦",showArrow:!1,state:"processing"}:S?{label:"è«å®æä¿¡ç¨å¡è³æ",hint:"填妥å¡èãæææéèå®å
¨ç¢¼å¾å³å¯ä»æ¬¾",showArrow:!1,state:"blocked"}:"card"===i?{label:`æ¯ä» NT$${k.toLocaleString()} 並å²å¼`,showArrow:!0,state:"ready"}:{label:`ä½¿ç¨ ${C} 仿¬¾ NT$${k.toLocaleString()}`,showArrow:!0,state:"ready"};return e.jsx(K,{children:e.jsx(b.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[110] flex items-center justify-center bg-[#02040d]/88 px-3 py-3 backdrop-blur-md sm:px-6 sm:py-8",onClick:I,children:e.jsxs(b.div,{ref:l,initial:{scale:.96,y:16},animate:{scale:1,y:0},exit:{scale:.96,y:16},onClick:e=>e.stopPropagation(),role:"dialog","aria-modal":"true","aria-labelledby":"report-credit-payment-title","aria-describedby":"report-credit-payment-description","aria-busy":_,tabIndex:-1,className:"relative mx-auto flex max-h-full w-full max-w-md flex-col overflow-hidden rounded-[1.5rem] border border-violet-200/20 bg-[linear-gradient(145deg,rgba(7,9,24,0.98),rgba(12,12,36,0.97))] text-white shadow-[0_30px_100px_-26px_rgba(104,82,235,0.65)] outline-none",children:[e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_8%_0%,rgba(86,144,255,0.13),transparent_34%),radial-gradient(circle_at_100%_20%,rgba(126,71,226,0.16),transparent_40%)]"}),e.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col",children:[e.jsxs("div",{className:"relative z-10 flex shrink-0 items-center justify-between px-5 pt-5 sm:px-6 sm:pt-6",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"grid h-10 w-10 place-items-center rounded-xl border border-violet-200/25 bg-violet-300/[0.08] text-violet-100",children:e.jsx(u,{size:18,"aria-hidden":"true"})}),e.jsxs("div",{children:[e.jsx("h2",{id:"report-credit-payment-title",className:"text-base font-semibold text-white",children:"å²å¼å®æ´æ¨æ¼é¡åº¦"}),e.jsx("p",{id:"report-credit-payment-description",className:"mt-0.5 text-[11px] text-slate-400",children:"å®å
¨ä»æ¬¾ · ä¸å²å宿´å¡è"})]})]}),e.jsx("button",{type:"button",onClick:I,disabled:_,"aria-label":"éé",className:"grid h-9 w-9 place-items-center rounded-lg border border-white/10 bg-white/[0.035] text-slate-300 transition hover:border-white/20 hover:bg-white/[0.08] hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cyan-100/70 disabled:cursor-not-allowed disabled:opacity-40",children:e.jsx(g,{size:19})}),d&&e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 -bottom-6 h-6 bg-gradient-to-b from-[#080a1c] to-transparent"})]}),e.jsxs("div",{ref:n,className:"min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 sm:px-6",children:[e.jsxs("div",{className:"mt-5 rounded-xl border border-white/[0.1] bg-slate-950/45 px-4 py-3.5",children:[e.jsx("p",{className:"text-[11px] text-slate-400",children:"è¨å®"}),e.jsxs("p",{className:"mt-1 text-sm leading-6 text-white",children:[s," 份宿´æ¨æ¼å ±åé¡åº¦"]}),e.jsxs("div",{className:"mt-3 flex items-baseline justify-between border-t border-white/[0.08] pt-3",children:[e.jsx("span",{className:"text-[11px] text-slate-500",children:"仿¬¾éé¡"}),e.jsxs("span",{className:"font-serifTc text-2xl font-semibold text-violet-200",children:["NT$",k.toLocaleString()]})]}),e.jsx("p",{className:"mt-3 border-t border-white/[0.08] pt-2.5 text-[10px] leading-4 text-slate-400",children:"é¡åº¦æ²æä½¿ç¨æéï¼æ¯ä»½å¯å»ºç«ä¸ä»½å®æ´æ¨æ¼å ±åã"})]}),e.jsx("p",{className:"mt-5 text-sm font-medium text-slate-200",children:"鏿仿¬¾æ¹å¼"}),e.jsx("div",{className:"mt-2.5 space-y-2",role:"radiogroup","aria-label":"仿¬¾æ¹å¼",children:se.map(({id:t,label:s,description:a})=>{const l=i===t;return e.jsxs("div",{className:"overflow-hidden rounded-2xl border transition "+(l?"border-violet-300/75 bg-violet-500/[0.14]":"border-white/[0.1] bg-white/[0.025] hover:border-violet-200/35 hover:bg-white/[0.05]"),children:[e.jsxs("button",{type:"button",role:"radio","aria-checked":l,disabled:_,onClick:()=>r(t),className:"flex w-full items-center gap-3 px-3.5 py-3 text-left transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-cyan-100/70 disabled:cursor-not-allowed disabled:opacity-60",children:[e.jsx($,{method:t}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsx("span",{className:"block text-sm text-slate-100",children:s}),a&&e.jsx("span",{className:"mt-0.5 block text-[10px] text-slate-500",children:a})]}),l&&e.jsx(o,{className:"shrink-0 text-violet-200",size:17,"aria-hidden":"true"})]}),e.jsx(K,{initial:!1,children:l&&e.jsx(b.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeOut"},children:e.jsx("div",{className:"px-2.5 pb-2.5",children:"card"===t?e.jsx(R,{fieldIds:m.fieldIds,phase:m.phase,error:z,onRetry:m.retry}):e.jsx("div",{className:"px-1 pb-0.5",children:"google_pay"===t&&h?e.jsx("p",{className:"text-xs leading-5 text-slate-400",children:"ç´æ¥å¨é裡以 Google Pay 仿¬¾ï¼ä¸æé¢éæåæã"}):e.jsx(D,{method:t,variant:"inline"})})})},`${t}-detail`)})]},t)})})]}),e.jsxs("div",{className:"relative z-10 shrink-0 px-5 pb-5 sm:px-6 sm:pb-6",children:[c&&e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 -top-8 h-8 bg-gradient-to-t from-[#0a0b22] to-transparent"}),z&&"card"!==i&&e.jsx("p",{role:"alert",className:"mt-3 text-[10px] leading-4 text-rose-200",children:z}),h&&e.jsx(F,{phase:p.phase,error:p.error,attachButton:p.attachButton}),(!h||y)&&e.jsxs(M,{onClick:()=>{"card"!==i?v({kind:"report_credit",quantity:s},i):m.submit()},disabled:_||S,"data-cta-state":q.state,className:"pricing-liquid-cta pricing-liquid-cta--solid mt-4 w-full",contentClassName:"pricing-liquid-cta__content flex items-center justify-center gap-2 text-sm font-semibold text-white",children:[_&&e.jsx(f,{size:15,"aria-hidden":"true",className:"animate-spin motion-reduce:animate-none"}),e.jsx("span",{children:q.label}),q.showArrow&&e.jsx(j,{size:15,"aria-hidden":"true"})]}),(!h||y)&&q.hint&&e.jsx("p",{className:"mt-2 text-center text-[10px] leading-4 text-slate-500",children:q.hint}),e.jsx(G,{className:"mt-3"})]})]})]})})})}const ie=()=>{const i=y("SUBSCRIPTION_PRICING"),[r,l]=t.useState(i?"subscription":"coins"),[n,o]=t.useState(null),[x]=t.useState(Q),m=t.useRef(!1),p=t.useRef(!1),h=t.useRef(null),b=t.useRef(null),{user:g,userProfile:f}=v(),j=s(),C=a(),{startPayment:M,loading:E,error:B}=T(),A=String(f?.plan_name??f?.planName??"free").toLowerCase(),L=A.includes("basic")||A.includes("pro"),$=i;t.useEffect(()=>{if(!i)return;if("subscription"!==r)return;if(window.matchMedia("(min-width: 768px)").matches)return;const e=h.current,t=b.current;if(!e||!t)return;const s=t.offsetLeft-(e.clientWidth-t.clientWidth)/2;e.scrollTo({left:Math.max(0,s),behavior:"auto"})},[r]),t.useEffect(()=>{m.current||($||"coins"===r)&&(m.current=!0,N("pricing_page_viewed",{billing_view:r}))},[r,$]),t.useEffect(()=>{g&&$&&!L&&!p.current&&(p.current=!0,N("subscription_upsell_shown",{billing_view:"subscription"}))},[$,L,g]);const R=e=>{l(t=>t===e?t:(N("billing_view_switched",{billing_view:e}),e))},D=e=>{$&&(N("plan_selected",{billing_view:"subscription",plan_id:e.planId,price_twd:e.price}),!L&&e.price>0&&N("subscription_upsell_action",{action:"upgrade",plan_id:e.planId}),!g||e.price<=0||(N("checkout_started",{entry_point:"pricing_page",billing_view:"subscription",plan_id:e.planId,price_twd:e.price}),M({kind:"subscription",planId:e.planId})))};return e.jsxs(e.Fragment,{children:[e.jsxs(w,{children:[e.jsx("title",{children:"æåæå¹æ ¼ | 宿´æ¨æ¼èç¸å®¹æå"}),e.jsx("meta",{name:"description",content:"宿´æ¨æ¼å ±å以ä¸åæ°åé¡çºä¸ä»½ï¼é¦ä»½å
è²»ï¼å¾çº NT$500ãæ¤é åæä¿çæ¢æå®æ´æ¨æ¼æ¬¡æ¸è帳åç¸å®¹å
¥å£ï¼æåº¦é¡§åå°å¨è¦åä¸ã"}),e.jsx("meta",{property:"og:title",content:"æåæå¹æ ¼ | 宿´æ¨æ¼èç¸å®¹æå"}),e.jsx("meta",{property:"og:description",content:"ç¨ä½ èªå·±çç¯å¥ï¼ææ¨¡ç³çæåæ´çæå¯ä»¥åè¦çæ±è¥¿ãä½ æºå好çæåï¼é裡é½å¨ã"})]}),e.jsxs("div",{className:"relative min-h-screen overflow-hidden",children:[e.jsxs("div",{className:"pointer-events-none fixed inset-0 z-0",children:[e.jsx("div",{className:"dashboard-nebula-light nebula-light-top-left"}),e.jsx("div",{className:"dashboard-nebula-light nebula-light-bottom-right"}),e.jsx("div",{className:"floating-orb orb-cyan"}),e.jsx("div",{className:"floating-orb orb-purple"}),e.jsx(P,{})]}),e.jsx("main",{className:"relative z-10 pb-24 min-h-screen",style:{paddingTop:"calc(var(--app-header-height, 0px) + 2rem)"},children:e.jsxs("section",{className:"container mx-auto px-5 md:px-4",children:[e.jsxs("div",{className:d("text-center max-w-3xl mx-auto","coins"===r?"mb-8":"mb-12"),children:[e.jsx("p",{className:"text-xs tracking-[0.2em] uppercase mb-3",style:{color:"rgba(171, 191, 223, 0.7)"},children:"Pricing & Plan"}),"subscription"===r?e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"text-3xl md:text-4xl font-futuristic font-bold mb-4 text-white",children:["é¸æä½ ç",e.
1jsx(c,{className:"ml-2",children:"æåæ"})]}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:"rgba(193, 209, 235, 0.78)"},children:"ç¨ä½ èªå·±çç¯å¥ï¼ææ¨¡ç³çæåæ´çæå¯ä»¥åè¦ãå¯ä»¥è¨è«çæ±è¥¿ã"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"text-3xl md:text-4xl font-futuristic font-bold mb-4 text-white",children:[e.jsx(c,{children:x.highlight}),e.jsx("span",{className:"block md:inline md:ml-2",children:x.rest})]}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:"rgba(193, 209, 235, 0.78)"},children:"æ¯ä¸æ¬¡å®æ´æ¨æ¼ï¼æåæææ¿ä½ æè§£åé¡èå¾çå½çè¨èãåè¦æ¨¡å¼èä¸ä¸æ¥è¡åã"})]}),e.jsx("div",{className:"mt-8 mb-3 flex justify-center",children:e.jsxs("div",{className:"dashboard-subtab-strip inline-flex items-center gap-1 p-1",children:[e.jsx("button",{type:"button",onClick:()=>R("coins"),"aria-pressed":"coins"===r,className:d("dashboard-subtab-pill px-5 py-2 rounded-xl text-sm font-medium transition-[background-color,border-color,color,box-shadow] duration-200","coins"===r?"dashboard-subtab-pill-active":"dashboard-subtab-pill-inactive"),children:"宿¬¡æ¨æ¼"}),e.jsxs("button",{type:"button",onClick:()=>R("subscription"),"aria-pressed":"subscription"===r,"aria-label":$?"æåº¦é¡§å":"æåº¦é¡§åï¼è¦åä¸ï¼",className:d("dashboard-subtab-pill px-5 py-2 rounded-xl text-sm font-medium transition-[background-color,border-color,color,box-shadow] duration-200 inline-flex items-center gap-1.5","subscription"===r?"dashboard-subtab-pill-active":"dashboard-subtab-pill-inactive"),children:[!$&&e.jsx(u,{size:12,"aria-hidden":"true",className:"opacity-70"}),e.jsx("span",{children:"æåº¦é¡§å"})]})]})})]}),B&&e.jsxs("div",{className:"mb-6 p-3 rounded-lg bg-red-400/10 border border-red-400/30 text-red-300 text-sm text-center",children:["çµå¸³éå°ä¸é»çæ³ï¼",B]}),"subscription"===r&&!$&&e.jsx(ee,{plans:J}),$&&"subscription"===r&&e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:h,className:"\n flex gap-5 mb-14 overflow-x-auto snap-x snap-mandatory -mx-5 px-5 pb-6 scroll-px-5\n md:grid md:grid-cols-3 md:gap-5 md:overflow-visible md:pb-0 md:mx-0 md:px-0\n scrollbar-hide\n ",children:J.map(t=>e.jsx("div",{className:"snap-center shrink-0 basis-[calc(100%-2.5rem)] h-full md:basis-auto",ref:"åºç¤çï¼Basicï¼"===t.name?b:void 0,children:e.jsx(Z,{plan:t,onSelect:()=>D(t),onPurchase:g&&t.price>0?()=>D(t):void 0,purchaseLoading:E})},t.name))}),e.jsx("section",{className:"grid grid-cols-1 lg:grid-cols-2 gap-x-6 gap-y-6 mb-14 px-1",children:Y.filter(e=>!e.coinsUiOnly).map(t=>e.jsx("article",{className:"dashboard-card-soft p-4",children:e.jsxs("div",{className:"flex items-start gap-3.5",children:[e.jsx("div",{className:"mt-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",style:{background:"linear-gradient(135deg, rgba(90, 186, 255, 0.15), rgba(154, 99, 255, 0.12))",color:"rgba(164, 223, 255, 0.9)"},children:t.icon}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-futuristic font-semibold text-white mb-1",children:t.title}),e.jsx("p",{className:"text-sm leading-relaxed",style:{color:"rgba(193, 209, 235, 0.72)"},children:t.description})]})]})},t.title))})]}),"coins"===r&&e.jsx(te,{onPurchase:e=>{g?(N("checkout_started",{entry_point:"pricing_page",billing_view:"coins",price_twd:O*e}),o(e)):j("/login",{state:{from:C}})},loading:!1}),"coins"===r&&e.jsxs("section",{className:"mb-14",children:[e.jsxs("div",{className:"mt-5 flex items-center justify-center gap-1.5 flex-wrap px-4",children:[e.jsx(k,{size:12,style:{color:"rgba(164, 223, 255, 0.78)"},"aria-hidden":"true"}),e.jsx("p",{className:"text-center text-xs leading-relaxed",style:{color:"rgba(193, 209, 235, 0.78)"},children:"éæµéé PCI-DSS åéè³å®èªèï¼AES-256 å å¯ï¼çµå¸³å®æå³å»å
¥å¸³"})]}),e.jsxs("section",{className:"mt-12 max-w-3xl mx-auto px-1 text-center",children:[e.jsx("p",{className:"text-xs tracking-[0.2em] uppercase mb-2",style:{color:"rgba(171, 191, 223, 0.7)"},children:"Ask the GuidingStar"}),e.jsx("h2",{className:"text-lg md:text-xl font-futuristic font-bold text-white mb-5 leading-snug",children:"ä½ å¯ä»¥ç´æ¥é樣åæåæï¼"}),e.jsx("ul",{className:"flex flex-wrap justify-center gap-2.5 md:gap-3",children:V.map(t=>e.jsx("li",{children:e.jsx("span",{className:"pricing-prompt-chip",children:t.segments.map((t,s)=>"text"===t.kind?e.jsx("span",{children:t.value},s):"mention"===t.kind?e.jsxs("span",{className:"gs-token-chip gs-token-chip--cyan",children:[e.jsx(_,{size:11,"aria-hidden":"true"}),e.jsxs("span",{children:["@",t.label]})]},s):"flow"===t.kind?e.jsxs("span",{className:"gs-token-chip gs-token-chip--cyan",children:[e.jsx(S,{size:11,"aria-hidden":"true"}),e.jsx("span",{children:t.label})]},s):e.jsxs("span",{className:"gs-token-chip gs-token-chip--violet",children:[e.jsx(z,{size:11,"aria-hidden":"true"}),e.jsx("span",{children:t.label})]},s))})},t.key))})]})]}),$&&"subscription"===r&&e.jsx("div",{className:"dashboard-card p-8 md:p-10",children:e.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-8 md:gap-10 relative z-10",children:[e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.2em] mb-2",style:{color:"rgba(171, 191, 223, 0.7)"},children:"éæ²ç¢ºå®æ¹åï¼"}),e.jsxs("h2",{className:"text-2xl md:text-3xl font-futuristic font-bold mb-3 text-white leading-snug",children:["å
å¾å
è²»çéå§",e.
1jsx("br",{}),e.jsx(c,{className:"bg-gradient-to-r from-[rgba(164,223,255,0.9)] to-[rgba(180,140,255,0.85)]",children:"ä½ çå½ç¤é¨æå¨é裡ï¼çä½ æºå好åå¾ä¸æ¢ç´¢ã"})]}),e.jsx("p",{className:"text-sm",style:{color:"rgba(193, 209, 235, 0.72)"},children:"ä½ æºå好çæåï¼é裡é½å¨ã"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 w-full md:w-auto md:min-w-[320px]",children:[e.jsx(I,{to:"/login",variant:"ghost",size:"lg",className:"w-full justify-center",children:"å
費註å"}),e.jsx(I,{to:"/console",variant:"default",size:"lg",className:"w-full justify-center",children:"åå¾å½éæ¨æ¼"})]})]})})]})}),e.jsx(q,{}),null!==n&&e.jsx(ae,{quantity:n,onClose:()=>o(null)})]})]})};export{ie as PricingPage,ie 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.