PageSourceSearch

https://paper2gal.com/assets/MembershipPage-BQA3GMQU.js

js paper2gal.com collected 2026-10-09 22:39:45 UTC 75,515 bytes, 1 lines download raw bytes

1import{r as u,j as e}from"./react-vendor-CHQL15iE.js";import{u as it,a2 as at,a3 as nt,a4 as st,l as I,a5 as rt,a6 as lt,a7 as ot}from"./main-Dck1T9BT.js";import{c as L,aU as Ue,aa as H,G as Re,u as W,aB as Ce,az as Be,aV as J,aC as ct,j as Y,a5 as dt,aW as pt,ae as ut,J as q,aI as X,A as Te,q as K,o as De,h as Ie,b as xt,C as mt,f as bt,X as ft,ap as ht,aT as gt}from"./lucide-BFLOpGdB.js";import"./pdfjs-ji3DqnKJ.js";import"./markdown-W-rE_H7s.js";import"./katex-math-BxKHCrdI.js";const Ee={zh:{title:"Paper2Gal 会员",subtitle:"多文档、语音和高频阅读都走会员权益。",heroTitle:"解锁更多创作可能",heroSubtitle:"把论文一键变成可读、可听、可玩的 Galgame 体验。",choosePlan:"选择适合你的会员方案",billingOneTime:"30 天一次性",billingAutoRenew:"每月自动续费",billingSave:"节省 10%",freePlan:"免费版",basicPlan:"Basic 会员",proPlan:"Pro 会员",freePlanDesc:"适合轻量体验和偶尔阅读",currentPlan:"当前方案",freeFeatureUses:"基础每日生成额度",freeFeatureUpload:"每次上传 1 个文档",freeFeatureVoice:"每天 1 次语音",freeFeatureQuestions:"每天 20 次剧情问答",freeFeatureSaves:"最多 100 个存档",compareTitle:"权益对比",faqTitle:"常见问题",faqSubtitle:"关于计费、续费和权益范围",faqOneTimeQ:"30 天一次性和自动续费有什么区别?",faqOneTimeA:"两者权益相同。30 天一次性方案当前临时享受 3 折,到期不会扣款;自动续费保持原价按月扣款,可随时取消。",faqCancelQ:"如何取消自动续费?",faqCancelA:"点击页面右上角“管理账单”进入 Stripe Customer Portal 取消。取消后不会继续扣款,权益保留到当前计费周期结束。",faqInfinityQ:"Infinity 的“无限制”包括哪些内容?",faqInfinityA:"包括生成、语音、多文档数量、剧情问答、存档数量和视频链接解析。单文件大小、支持格式、内容长度及安全风控限制仍然生效。",faqActiveQ:"付款后多久生效?",faqActiveA:"Stripe 确认付款后通常会立即开通。若页面没有更新,可返回主菜单后重新进入会员页。",faqSwitchQ:"可以直接切换会员方案吗?",faqSwitchA:"有效会员期间不能重复购买。订阅的支付方式和取消操作可在 Stripe 管理;一次性方案与订阅方案不能在 Stripe 内直接互换。",faqRefundQ:"如何申请退款?",faqRefundA:"点击右上角“退款申请”提交原因。符合条件的订单可能自动退款,其他申请会进入人工审核。",active:"会员有效",login:"登录后购买",processing:"正在打开 Stripe...",loading:"加载中...",close:"关闭",validUntil:"有效期至",cancelAtPeriodEnd:"到期后取消",benefitsTitle:"所有会员权益",benefitUses:"每日额外 30 次生成",benefitVoice:"无限制语音次数",benefitPriority:"自动走 Pro 语音优先通道",benefitMultiUpload:"多文档上传,最多 5 个文件",benefitQuestions:"剧情内举手问答每天 100 次",benefitSaves:"存档上限提升到 500 个",benefitVideoParsing:"视频链接解析每天 15 次",benefitVideoParsingUnlimited:"视频链接解析无限制",benefitGameUi:"樱花与哥特两套会员专属游戏 UI",benefitProfileDecoration:"专属主页装饰、昵称样式与会员标识",orderTitle:"订单",orderSubtitle:"30 天可一次性购买,也可选择自动续费。",thirtyDay:"30 天会员",autoRenew:"30 天自动续费",autoRenewBadge:"九折",promotionBadge:"临时优惠·3折",unlimitedThirtyDay:"Infinity 会员",unlimitedBadge:"Infinity",unlimitedValueBadge:"最高权益",oneTime:"一次性",recurring:"自动续费",unlimitedBenefit:"生成、语音、剧情问答、存档、多文档与视频链接解析全部无限制",pay:"去支付",current:"当前会员不可重复购买",billing:"查看订单 / 管理账单",manageBilling:"管理账单",billingLoading:"正在打开账单...",billingError:"无法打开订单页面,请稍后重试。",contactSupport:"联系支持 / 退款申请",refundRequestShort:"退款申请",refundTitle:"退款申请",refundEmail:"收款邮箱",refundReason:"退款原因",refundReasonPlaceholder:"请说明退款原因,例如误购、无法使用、重复付款等",refundSubmit:"提交申请",refundSubmitting:"提交中...",refundSuccessManual:"退款申请已提交,将进入后台人工审核。",refundError:"提交退款申请失败,请稍后重试。",note:"自动续费保持原价:Basic 9 美元/月、Pro 18 美元/月、Infinity 90 美元/月,可在 Str
1ipe 账单页取消。",poweredBy:"支付安全由 Stripe 提供",secure:"安全可靠",secureSub:"支付信息加密处理",cancelAnytime:"随时取消",cancelAnytimeSub:"订阅可在 Stripe 账户中取消",privacy:"隐私保护",privacySub:"我们不会存储你的支付信息",support:"专属支持",supportSub:"会员问题优先处理",back:"返回",checkoutError:"无法创建支付会话,请稍后重试。"},en:{title:"Paper2Gal Membership",subtitle:"Member benefits for multi-document uploads, voice, and frequent reading.",heroTitle:"Unlock more creation",heroSubtitle:"Turn papers into readable, listenable, playable Galgame experiences.",choosePlan:"Choose your membership plan",billingOneTime:"30-day one-time",billingAutoRenew:"Monthly auto-renew",billingSave:"Save 10%",freePlan:"Free",basicPlan:"Basic",proPlan:"Pro",freePlanDesc:"For light use and occasional reading",currentPlan:"Current plan",freeFeatureUses:"Base daily generation quota",freeFeatureUpload:"Upload 1 document at a time",freeFeatureVoice:"1 voice session per day",freeFeatureQuestions:"20 in-story questions per day",freeFeatureSaves:"Up to 100 saves",compareTitle:"Benefit comparison",faqTitle:"Frequently Asked Questions",faqSubtitle:"Billing, renewals, and benefit coverage",faqOneTimeQ:"What is the difference between one-time and auto-renew?",faqOneTimeA:"Benefits are identical. One-time 30-day plans are temporarily 70% off with no further charge; auto-renew remains at its regular monthly price and can be cancelled anytime.",faqCancelQ:"How do I cancel auto-renewal?",faqCancelA:"Select Manage Billing at the top right to open the Stripe Customer Portal. Cancellation stops future charges while benefits remain active through the current billing period.",faqInfinityQ:"What does unlimited mean for Infinity?",faqInfinityA:"It covers generations, voice, document count, in-story questions, saves, and video transcriptions. Per-file size, supported formats, content length, and safety controls still apply.",faqActiveQ:"When do benefits become active?",faqActiveA:"Benefits normally activate as soon as Stripe confirms payment. If the page has not refreshed, return to the main menu and reopen Membership.",faqSwitchQ:"Can I switch plans directly?",faqSwitchA:"You cannot purchase another plan while a membership is active. Stripe can manage payment methods and cancellation, but one-time purchases cannot be converted directly into subscriptions.",faqRefundQ:"How do I request a refund?",faqRefundA:"Select Refund Request at the top right and provide a reason. Eligible orders may be refunded automatically; other requests are reviewed manually.",active:"Membership active",login:"Log in to buy",processing:"Opening Stripe...",loading:"Loading...",close:"Close",validUntil:"Valid until",cancelAtPeriodEnd:"cancels at period end",benefitsTitle:"All member benefits",benefitUses:"+30 daily generations",benefitVoice:"Unlimited voice usage",benefitPriority:"Automatic Pro priority voice queue",benefitMultiUpload:"Multi-document upload, up to 5 files",benefitQuestions:"100 in-story questions per day",benefitSaves:"Save limit increased to 500",benefitVideoParsing:"15 video transcriptions per day",benefitVideoParsingUnlimited:"Unlimited video transcriptions",benefitGameUi:"Exclusive Sakura and Gothic game UI presets",benefitProfileDecoration:"Exclusive profile, name style, and member badge",orderTitle:"Order",orderSubtitle:"Choose a one-time 30-day plan or auto-renewal.",thirtyDay:"30-day membership",autoRenew:"30-day auto-renew",autoRenewBadge:"10% off",promotionBadge:"Limited-time 70% off",unlimitedThirtyDay:"Infinity",unlimitedBadge:"Infinity",unlimitedValueBadge:"Maximum access",oneTime:"One-time",recurring:"Recurring",unlimitedBenefit:"Unlimited generations, voice, questions, saves, document uploads, and video transcriptions",pay:"Checkout",current:"Already active",billing:"View orders / Manage billing",manageBilling:"Manage billing",billingLoading:"Opening billing...",billingError:"Could not open billing portal. Please try again.",contactSupport:"Contact support / Refund request",refundRequestShort:"Refund request",refundTitle:"Refund request",refundEmail:"Email",refundReason:"Reason",refundReasonPlaceholder:"Tell us why you need a refund, e.g. accidental purchase, unable to use, duplicate payment.",refundSubmit:"Submit request",refundSubmitting:"Submitting...",refundSuccessManual:"Refund request submitted for manual review.",refundError:"Could not submit refund request. Please try again.",note:"Auto-renew remains at its regular price: $9/month for Basic, $18/month for Pro, and $90/month for Infinity. Cancel anytime through Stripe.",poweredBy:"Secure payments by Stripe",secure:"Secure",secureSub:"Encrypted payment processing",cancelAnytime:"C
1ancel anytime",cancelAnytimeSub:"Subscriptions can be cancelled in Stripe",privacy:"Private",privacySub:"We do not store payment details",support:"Priority support",supportSub:"Member issues are handled first",back:"Back",checkoutError:"Could not start checkout. Please try again."},ja:{title:"Paper2Gal メンバーシップ",subtitle:"複数ドキュメント・音声・高頻度の読書はメンバー特典で。",heroTitle:"さらなる創作の可能性を解放",heroSubtitle:"論文をワンクリックで「読む・聴く・遊ぶ」ギャルゲー体験へ。",choosePlan:"あなたに合ったプランを選ぶ",billingOneTime:"30日 買い切り",billingAutoRenew:"月額自動更新",billingSave:"10%お得",freePlan:"無料版",basicPlan:"Basic メンバー",proPlan:"Pro メンバー",freePlanDesc:"気軽な体験やたまの読書に",currentPlan:"現在のプラン",freeFeatureUses:"基本の1日生成枠",freeFeatureUpload:"アップロードは1回1件",freeFeatureVoice:"音声は1日1回",freeFeatureQuestions:"ストーリー質問は1日20回",freeFeatureSaves:"セーブは最大100件",compareTitle:"特典比較",faqTitle:"よくある質問",faqSubtitle:"課金・更新・特典範囲について",faqOneTimeQ:"30日買い切りと自動更新の違いは?",faqOneTimeA:"特典内容は同じです。30日買い切りプランは期間限定70%オフです。自動更新は通常価格で毎月課金され、いつでも解約できます。",faqCancelQ:"自動更新の解約方法は?",faqCancelA:"右上の「お支払い管理」からStripeカスタマーポータルで解約できます。解約後は課金されず、特典は現在の請求期間の終了まで有効です。",faqInfinityQ:"Infinityの「無制限」に含まれるものは?",faqInfinityA:"生成・音声・マルチドキュメント数・ストーリー質問・セーブ数・動画リンク解析が対象です。ファイルサイズ・対応形式・コンテンツ長・安全制限は引き続き適用されます。",faqActiveQ:"支払い後どれくらいで有効になる?",faqActiveA:"Stripeの支払い確認後、通常すぐに有効になります。ページが更新されない場合は、メインメニューに戻ってメンバーページを開き直してください。",faqSwitchQ:"プランを直接切り替えられる?",faqSwitchA:"メンバー有効期間中は重複購入できません。支払い方法や解約はStripeで管理できますが、買い切りと定期購読の直接の相互変換はできません。",faqRefundQ:"返金申請の方法は?",faqRefundA:"右上の「返金申請」から理由を送信してください。条件を満たす注文は自動返金される場合があり、その他は個別審査になります。",active:"メンバー有効",login:"ログインして購入",processing:"Stripeを開いています...",loading:"読み込み中...",close:"閉じる",validUntil:"有効期限",cancelAtPeriodEnd:"期間終了後に解約",benefitsTitle:"すべてのメンバー特典",benefitUses:"1日追加30回生成",benefitVoice:"音声回数無制限",benefitPriority:"自動でPro音声優先レーン",benefitMultiUpload:"マルチドキュメント、最大5ファイル",benefitQuestions:"ストーリー質問1日100回",benefitSaves:"セーブ上限500件に拡大",benefitVideoParsing:"動画リンク解析1日15回",benefitVideoParsingUnlimited:"動画リンク解析無制限",benefitGameUi:"桜・ゴシックの2種のメンバー限定ゲームUI",benefitProfileDecoration:"限定プロフィール装飾・ネームスタイル・メンバーバッジ",orderTitle:"注文",orderSubtitle:"30日買い切りか自動更新を選べます。",thirtyDay:"30日メンバー",autoRenew:"30日自動更新",autoRenewBadge:"10%オフ",promotionBadge:"期間限定70%オフ",unlimitedThirtyDay:"Infinityメンバー",unlimitedBadge:"Infinity",unlimitedValueBadge:"最高特典",oneTime:"買い切り",recurring:"自動更新",unlimitedBenefit:"生成・音声・ストーリー質問・セーブ・マルチドキュメント・動画リンク解析すべて無制限",pay:"支払いへ",current:"現在のメンバーは再購入できません",billing:"注文確認 / お支払い管理",manageBilling:"お支払い管理",billingLoading:"お支払い画面を開いています...",billingError:"注文ページを開けませんでした。しばらくしてからお試しください。",contactSupport:"サポート / 返金申請",refundRequestShort:"返金申請",refundTitle:"返金申請",refundEmail:"受取メールアドレス",refundReason:"返金理由",refundReasonPlaceholder:"誤購入・利用不可・重複決済など、返金理由をご記入ください",refundSubmit:"申請を送信",refundSubmitting:"送信中...",refundSuccessManual:"返金申請を送信しました。個別審査に進みます。",refundError:"返金申請を送信できませんでした。しばらくしてからお試しください。",note:"自動更新は通常価格:Basicは月額9ドル、Proは月額18ドル、Infinityは月額90ドル。Stripeの請求ページで解約できます。",poweredBy:"Stripeによる安全な決済",secure:"安全・安心",secureSub:"決済情報は暗号化処理",cancelAnytime:"いつでも解約",cancelAnytimeSub:"購読はStripeアカウントで解約可能",privacy:"プライバシー保護",privacySub:"決済情報は保存しません",support:"専属サポート",supportSub:"メンバーの問い合わせを優先対応",back:"戻る",checkoutError:"決済セッションを作成できませんでした。しばらくしてからお試しください。"},ru:{title:"Подписка Paper2Gal",subtitle:"Мультидокументы, озвучка и частое чтение — по подписке.",heroTitle:"Откройте больше возможностей для творчества",heroSubtitle:"Превращайте статьи в геймлайф: читайте, слушайте, играйте.",choosePlan:"Выберите подходящий план",billingOneTime:"30 дней разово",b
1illingAutoRenew:"Автопродление ежемесячно",billingSave:"Скидка 10%",freePlan:"Бесплатный",basicPlan:"Basic",proPlan:"Pro",freePlanDesc:"Для лёгкого использования и чтения время от времени",currentPlan:"Текущий план",freeFeatureUses:"Базовая дневная квота генераций",freeFeatureUpload:"1 документ за загрузку",freeFeatureVoice:"1 озвучка в день",freeFeatureQuestions:"20 вопросов в сюжете в день",freeFeatureSaves:"До 100 сохранений",compareTitle:"Сравнение преимуществ",faqTitle:"Частые вопросы",faqSubtitle:"Оплата, продление и покрытие преимуществ",faqOneTimeQ:"Чем разовый план на 30 дней отличается от автопродления?",faqOneTimeA:"Преимущества одинаковы. Разовые планы на 30 дней временно продаются со скидкой 70%; автопродление остаётся по обычной ежемесячной цене и отменяется в любой момент.",faqCancelQ:"Как отменить автопродление?",faqCancelA:"Нажмите «Управление оплатой» в правом верхнем углу и отмените в Stripe Customer Portal. Списания прекратятся, преимущества сохранятся до конца текущего периода.",faqInfinityQ:"Что входит в «безлимит» Infinity?",faqInfinityA:"Генерации, озвучка, количество документов, вопросы в сюжете, сохранения и распознавание видео по ссылке. Ограничения на размер файла, форматы, длину контента и правила безопасности сохраняются.",faqActiveQ:"Когда активируются преимущества после оплаты?",faqActiveA:"Обычно сразу после подтверждения платежа Stripe. Если страница не обновилась, вернитесь в главное меню и откройте страницу подписки заново.",faqSwitchQ:"Можно ли сразу сменить план?",faqSwitchA:"При активной подписке повторная покупка невозможна. Способы оплаты и отмена управляются в Stripe; разовый план и подписка напрямую не конвертируются.",faqRefundQ:"Как запросить возврат?",faqRefundA:"Нажмите «Запрос на возврат» в правом верхнем углу и укажите причину. Подходящие заказы могут быть возвращены автоматически, остальные заявки рассматриваются вручную.",active:"Подписка активна",login:"Войдите, чтобы купить",processing:"Открываем Stripe...",loading:"Загрузка...",close:"Закрыть",validUntil:"Действует до",cancelAtPeriodEnd:"отмена в конце периода",benefitsTitle:"Все преимущества подписки",benefitUses:"+30 генераций в день",benefitVoice:"Безлимитная озвучка",benefitPriority:"Автоматический приоритет Pro-очереди озвучки",benefitMultiUpload:"Мультизагрузка до 5 файлов",benefitQuestions:"100 вопросов в сюжете в день",benefitSaves:"Лимит сохранений увеличен до 500",benefitVideoParsing:"15 распознаваний видео по ссылке в день",benefitVideoParsingUnlimited:"Безлимитное распознавание видео по ссылке",benefitGameUi:"Эксклюзивные игровые UI «Сакура» и «Готика
1»",benefitProfileDecoration:"Эксклюзивное оформление профиля, стиль ника и значок",orderTitle:"Заказ",orderSubtitle:"30 дней разово или с автопродлением.",thirtyDay:"Подписка на 30 дней",autoRenew:"Автопродление 30 дней",autoRenewBadge:"−10%",promotionBadge:"Временно −70%",unlimitedThirtyDay:"Infinity",unlimitedBadge:"Infinity",unlimitedValueBadge:"Максимум преимуществ",oneTime:"Разово",recurring:"Автопродление",unlimitedBenefit:"Безлимит: генерации, озвучка, вопросы, сохранения, документы и распознавание видео",pay:"К оплате",current:"Действующую подписку нельзя купить повторно",billing:"Заказы / Управление оплатой",manageBilling:"Управление оплатой",billingLoading:"Открываем оплату...",billingError:"Не удалось открыть страницу заказа. Попробуйте позже.",contactSupport:"Поддержка / Возврат",refundRequestShort:"Возврат",refundTitle:"Запрос на возврат",refundEmail:"Email для возврата",refundReason:"Причина возврата",refundReasonPlaceholder:"Опишите причину: ошибочная покупка, не работает, двойное списание и т.д.",refundSubmit:"Отправить заявку",refundSubmitting:"Отправка...",refundSuccessManual:"Заявка на возврат отправлена и будет рассмотрена вручную.",refundError:"Не удалось отправить заявку. Попробуйте позже.",note:"Автопродление остаётся по обычной цене: Basic $9/мес, Pro $18/мес, Infinity $90/мес. Отмена — на странице оплаты Stripe.",poweredBy:"Безопасные платежи через Stripe",secure:"Надёжно",secureSub:"Платёжные данные зашифрованы",cancelAnytime:"Отмена в любой момент",cancelAnytimeSub:"Подписку можно отменить в Stripe",privacy:"Приватность",privacySub:"Мы не храним платёжные данные",support:"Приоритетная поддержка",supportSub:"Вопросы подписчиков обрабатываются первыми",back:"Назад",checkoutError:"Не удалось создать платёжную сессию. Попробуйте позже."}},yt=f=>Ee[f]??Ee.en,wt=f=>({zh:"zh-CN",en:"en-US",ja:"ja-JP",ru:"ru-RU"})[f]||"en-US",Me=f=>{const o=Math.max(0,Number(f)||0)/100;return o%1===0?`$${o.toFixed(0)}`:`$${o.toFixed(2)}`},Ut=({language:f,user:o,onBack:ze,onLogin:m})=>{var fe,he;const P=it(),t=yt(f),i=(n,s,r,d)=>f==="zh"?n:f==="ja"?r:f==="ru"?d:s,[a,S]=u.useState(null),[Z,ee]=u.useState(!1),[N,te]=u.useState(null),[U,ie]=u.useState(!1),[Qe,Fe]=u.useState("thirty_day"),[v,E]=u.useState("one_time"),[ae,h]=u.useState(null),[Ve,M]=u.useState(!1),[z,Q]=u.useState((o==null?void 0:o.email)||""),[ne,se]=u.useState(""),[R,re]=u.useState(!1),[le,A]=u.useState(null),[c,$e]=u.useState(at),[x,Oe]=u.useState({channel:"web"}),[C,F]=u.useState("alipay"),[B,oe]=u.useState(!1);u.useEffect(()=>{let n=!0;return nt().then(async s=>{var r,d;if(n&&($e(s),s==="direct"&&E("one_time"),s!=="web"))try{const l=await st();if(!n)return;Oe(l),s==="direct"&&!((r=l.direct)!=null&&r.alipay)&&((d=l.direct)!=null&&d.wechat)&&F("wechat")}catch(l){n&&h((l==null?void 0:l.message)||"Unable to load mobile billing")}}),()=>{n=!1}},[]);const ce=async()=>{if(!o){S(null);return}const n=localStorage.getItem("p2g_token");if(n){ee(!0);try{const s=await I("/api/membership/status",{headers:{Authorization:`Bearer ${n}`}});if(s.status===401){m();return}const r=await s.json().catch(()=>({}));s.ok&&S(r.membership||null)}finally{ee(!1)}}},de=async()=>{const n=localStorage.getItem("p2g_token");if(!o||!n){m();return}oe(!0),h(null);
1try{const s=c==="apple"?await rt({token:n,catalog:x}):await lt({userId:o.id,token:n,catalog:x});S(s)}catch(s){h((s==null?void 0:s.message)||"Unable to restore store purchase")}finally{oe(!1)}};u.useEffect(()=>{ce()},[o==null?void 0:o.id]),u.useEffect(()=>{o!=null&&o.email&&Q(o.email)},[o==null?void 0:o.email]);const pe=async n=>{if(!o){m();return}const s=n||Qe;if(!(N||a!=null&&a.active)){Fe(s),te(s),h(null);try{const r=localStorage.getItem("p2g_token");if(!r){m();return}if(c!=="web"){if(s==="experience_three_day")throw new Error(i("iOS/Android 商店版暂不提供 3 天体验包","The 3-day experience package is not available in the mobile store build yet","モバイルストア版では3日間体験パックをまだ提供していません","Трёхдневный пакет пока недоступен в мобильной версии"));const _=await ot({channel:c,plan:c==="direct"?s==="unlimited_monthly_auto_renew"||s==="unlimited_thirty_day"?"unlimited_thirty_day":s==="basic_monthly_auto_renew"||s==="basic_thirty_day"?"basic_thirty_day":"thirty_day":s,userId:o.id,token:r,directProvider:C,catalog:x});S(_);return}const d=s==="monthly_auto_renew"||s==="unlimited_monthly_auto_renew"||s==="basic_monthly_auto_renew"?"subscription":"one_time",l=await I("/api/membership/checkout",{method:"POST",headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json"},body:JSON.stringify({mode:d,plan:s})}),p=await l.json().catch(()=>({}));if(l.status===401){m();return}if(l.status===409&&(p!=null&&p.membership)){S(p.membership),(p==null?void 0:p.code)==="EXPERIENCE_ALREADY_PURCHASED"&&h(i("每个账号只能购买一次体验包","The experience package can only be purchased once per account","体験パックは1アカウントにつき1回のみ購入できます","Пробный пакет можно купить только один раз на аккаунт"));return}if(!l.ok||!(p!=null&&p.url))throw new Error((p==null?void 0:p.error)||t.checkoutError);window.location.href=p.url}catch(r){h((r==null?void 0:r.message)||t.checkoutError)}finally{te(null)}}},Ge=async()=>{if(!o){m();return}if(!U){ie(!0),h(null);try{const n=localStorage.getItem("p2g_token");if(!n){m();return}const s=await I("/api/membership/billing-portal",{method:"POST",headers:{Authorization:`Bearer ${n}`}}),r=await s.json().catch(()=>({}));if(s.status===401){m();return}if(!s.ok||!(r!=null&&r.url))throw new Error((r==null?void 0:r.error)||t.billingError);window.location.href=r.url}catch(n){h((n==null?void 0:n.message)||t.billingError)}finally{ie(!1)}}},Le=()=>{if(!o){m();return}A(null),h(null),Q(o.email||z),M(!0)},He=()=>{if(c==="apple"){window.open("https://reportaproblem.apple.com/","_blank","noopener,noreferrer");return}Le()},We=async()=>{if(!o){m();return}if(R)return;const n=z.trim(),s=ne.trim();if(!n||!s){A(i("请填写邮箱和退款原因。","Email and reason are required.","メールアドレスと返金理由を入力してください。","Укажите email и причину возврата."));return}re(!0),A(null);try{const r=localStorage.getItem("p2g_token");if(!r){m();return}const d=await I("/api/membership/refund-request",{method:"POST",headers:{Authorization:`Bearer ${r}`,"Content-Type":"application/json"},body:JSON.stringify({email:n,reason:s})}),l=await d.json().catch(()=>({}));if(d.status===401){m();return}if(!d.ok&&d.status!==202)throw new Error((l==null?void 0:l.error)||t.refundError);A(l!=null&&l.autoRefunded?null:(l==null?void 0:l.message)||t.refundSuccessManual),se(""),ce()}catch(r){A((r==null?void 0:r.message)||t.refundError)}finally{re(!1)}},y={experience_three_day:(a==null?void 0:a.experiencePriceUsdCents)||200,basic_thirty_day:(a==null?void 0:a.basicThirtyDayPriceUsdCents)||300,basic_monthly_auto_renew:(a==null?void 0:a.basicAutoRenewPriceUsdCents)||900,thirty_day:(a==null?void 0:a.thirtyDayPriceUsdCents)||(a==null?void 0:a.priceUsdCents)||600,monthly_auto_renew:(a==null?void 0:a.autoRenewPriceUsdCents)||1800,unlimited_thirty_day:(a==null?void 0:a.unlimitedThirtyDayPriceUsdCents)||3e3,unlimited_monthly_auto_renew:(a==null?void 0:a.unlimitedAutoRenewPriceUsdCents)||9e3},V={basic_thirty_day:(a==null?void 0:a.basicThirtyDayOriginalPriceUsdCents)||1e3,basic_monthly_auto_renew:(a==null?void 0:a.basicAutoRenewOriginalPriceUsdCents)||900,thirty_day:(a==null?void 0:a.thirtyDayOriginalPriceUsdCents)||2e3,monthly_auto_renew:(a==null?void 0:a.autoRenewOriginalPriceUsdCents)||1800,unlimited_thirty_day:(a==null?void 0:a.unlimitedThirtyDayOriginalPriceUsdCents)||1e4,unlimited_monthly_auto_renew:(a==null?void 0:a.unlimitedAutoRenewOriginalPriceUsdCents)||9e3}
1,ue=(a==null?void 0:a.promotionActive)??!0,Je=(a==null?void 0:a.promotionDiscountRate)||.3,w=(n,s)=>{var r,d,l,p,k,_,g,T,j;if(c==="direct"){const b=(l=(d=(r=x.direct)==null?void 0:r.plans)==null?void 0:d[n])==null?void 0:l.amountCents;if(b)return`Â¥${(b/100).toFixed(b%100===0?0:2)}`}if(c==="google"){const b=(_=(k=(p=x.google)==null?void 0:p.plans)==null?void 0:k[n])==null?void 0:_.price;if(b)return b}if(c==="apple"){const b=(j=(T=(g=x.apple)==null?void 0:g.plans)==null?void 0:T[n])==null?void 0:j.price;if(b)return b}return Me(s)},$=(n,s)=>{var r,d,l;if(ue&&!(n==="basic_monthly_auto_renew"||n==="monthly_auto_renew"||n==="unlimited_monthly_auto_renew")){if(c==="direct"){const p=(l=(d=(r=x.direct)==null?void 0:r.plans)==null?void 0:d[n])==null?void 0:l.amountCents;if(p)return`Â¥${(p/Je/100).toFixed(0)}`}if(!(c==="google"||c==="apple"))return Me(s)}},xe=[{id:"experience_three_day",title:i("3 天 Pro 体验包","3-Day Pro Experience","3日間 Pro 体験パック","Пробный Pro на 3 дня"),price:w("experience_three_day",y.experience_three_day),meta:i("/3 天","/3 days","/3日","/3 дня")},{id:"basic_thirty_day",title:t.basicPlan,price:w("basic_thirty_day",y.basic_thirty_day),originalPrice:$("basic_thirty_day",V.basic_thirty_day),meta:t.oneTime},{id:"basic_monthly_auto_renew",title:t.basicPlan,price:w("basic_monthly_auto_renew",y.basic_monthly_auto_renew),meta:t.recurring,badge:t.autoRenewBadge},{id:"thirty_day",title:t.proPlan,price:w("thirty_day",y.thirty_day),originalPrice:$("thirty_day",V.thirty_day),meta:t.oneTime},{id:"monthly_auto_renew",title:t.proPlan,price:w("monthly_auto_renew",y.monthly_auto_renew),meta:t.recurring,badge:t.autoRenewBadge},{id:"unlimited_thirty_day",title:t.unlimitedThirtyDay,price:w("unlimited_thirty_day",y.unlimited_thirty_day),originalPrice:$("unlimited_thirty_day",V.unlimited_thirty_day),meta:t.oneTime},{id:"unlimited_monthly_auto_renew",title:t.unlimitedThirtyDay,price:w("unlimited_monthly_auto_renew",y.unlimited_monthly_auto_renew),meta:t.recurring,badge:t.autoRenewBadge}],Ye=[{icon:L,text:t.benefitUses},{icon:Ue,text:t.benefitVoice},{icon:H,text:t.benefitPriority},{icon:Re,text:t.benefitMultiUpload},{icon:W,text:t.benefitQuestions},{icon:Ce,text:t.benefitSaves},{icon:Be,text:t.benefitVideoParsing},{icon:J,text:t.benefitGameUi},{icon:J,text:t.benefitProfileDecoration}],me={experience_three_day:{sub:i("每个账号仅可购买一次","One purchase per account","1アカウントにつき1回のみ","Одна покупка на аккаунт"),cta:i("立即体验 Pro","Try Pro now","Proを体験","Попробовать Pro"),features:[i("完整 Pro 权益,连续使用 3 天","Full Pro benefits for 3 consecutive days","Proの全特典を3日間利用可能","Все преимущества Pro на 3 дня"),t.benefitVoice,t.benefitMultiUpload,t.benefitVideoParsing]},basic_thirty_day:{sub:i("不含语音权益,其余 Pro 权益齐全","All Pro benefits except voice perks","音声特典以外のPro特典をすべて含む","Все преимущества Pro, кроме озвучки"),cta:i("è´­ä¹° Basic 会员","Buy Basic","Basicメンバーを購入","Купить Basic"),features:[t.benefitUses,t.benefitMultiUpload,t.benefitQuestions,t.benefitSaves,t.benefitVideoParsing,t.benefitGameUi,t.benefitProfileDecoration]},basic_monthly_auto_renew:{sub:i("不含语音权益,自动续费可随时取消","No voice perks, auto-renews, cancel anytime","音声特典なし・自動更新・いつでも解約可能","Без озвучки, автопродление, отмена в любой момент"),cta:i("订阅 Basic","Subscribe Basic","Basicを購読","Оформить Basic"),features:[t.benefitUses,t.benefitMultiUpload,t.benefitQuestions,t.benefitSaves,t.benefitVideoParsing,t.benefitGameUi,t.benefitProfileDecoration]},monthly_auto_renew:{sub:i("自动续费,可随时取消","Auto-renews, cancel anytime","自動更新・いつでも解約可能","Автопродление, отмена в любой момент"),cta:i("订阅 Pro","Subscribe Pro","Proを購読","Оформить Pro"),featured:!0,features:[t.benefitUses,t.benefitVoice,t.benefitPriority,t.benefitMultiUpload,t.benefitQuestions,t.benefitSaves,t.benefitVideoParsing,t.benefitGameUi,t.benefitProfileDecoration]},thirty_day:{sub:i("不自动续费,购买后使用 30 天","One-time payment for 30 days","自動更新なし・購入後30日間有効","Без автопродления, 30 дней после покупки"),cta:i("è´­ä¹° 30 å
1¤©ä¼šå‘˜","Buy 30 days","30日メンバーを購入","Купить 30 дней"),featured:!0,features:[t.benefitUses,t.benefitVoice,t.benefitPriority,t.benefitMultiUpload,t.benefitQuestions,t.benefitSaves,t.benefitVideoParsing,t.benefitGameUi,t.benefitProfileDecoration]},unlimited_thirty_day:{sub:i("一次购买,30 天内全部核心额度无限制","One payment with unlimited core quotas for 30 days","1回の購入で30日間コア枠がすべて無制限","Один платёж — 30 дней безлимитных основных квот"),cta:i("è´­ä¹° Infinity 会员","Buy Infinity","Infinityメンバーを購入","Купить Infinity"),features:[t.unlimitedBenefit,t.benefitPriority,t.benefitVideoParsingUnlimited,t.benefitGameUi,t.benefitProfileDecoration]},unlimited_monthly_auto_renew:{sub:i("每月自动续费,可随时取消","Auto-renews monthly, cancel anytime","月額自動更新・いつでも解約可能","Ежемесячное автопродление, отмена в любой момент"),cta:i("订阅 Infinity","Subscribe Infinity","Infinityを購読","Оформить Infinity"),features:[t.unlimitedBenefit,t.benefitPriority,t.benefitVideoParsingUnlimited,t.benefitGameUi,t.benefitProfileDecoration]}},Xe=[v==="auto_renew"?"basic_monthly_auto_renew":"basic_thirty_day",v==="auto_renew"?"monthly_auto_renew":"thirty_day",v==="auto_renew"?"unlimited_monthly_auto_renew":"unlimited_thirty_day"],O=xe.find(n=>n.id==="experience_three_day"),G=me.experience_three_day,be=(a==null?void 0:a.experienceAvailable)===!1,Ke=[t.freeFeatureUses,t.freeFeatureUpload,t.freeFeatureVoice,t.freeFeatureQuestions,t.freeFeatureSaves],Ze=[{icon:L,label:i("每日生成次数","Daily generations","1日の生成回数","Генерации в день"),values:[i("基础额度","Base quota","基本枠","Базовая квота"),i("基础额度 +30","Base quota +30","基本枠 +30","Базовая квота +30"),i("基础额度 +30","Base quota +30","基本枠 +30","Базовая квота +30"),i("无限制","Unlimited","無制限","Безлимит")]},{icon:De,label:i("语音朗读","Voice reading","音声読み上げ","Озвучка"),values:[i("限 1 次 / 天","1/day","1日1回まで","1/день"),i("限 1 次 / 天","1/day","1日1回まで","1/день"),i("无限制","Unlimited","無制限","Безлимит"),i("无限制","Unlimited","無制限","Безлимит")]},{icon:H,label:i("语音通道","Voice queue","音声レーン","Очередь озвучки"),values:[i("标准","Standard","標準","Стандарт"),i("标准","Standard","標準","Стандарт"),i("Pro 优先通道","Pro priority","Pro優先レーン","Приоритет Pro"),i("Pro 优先通道","Pro priority","Pro優先レーン","Приоритет Pro")]},{icon:Re,label:i("文档上传数量","Document uploads","ドキュメントアップロード数","Загрузка документов"),values:[i("1 个","1 file","1ä»¶","1 файл"),i("最多 5 个","Up to 5","最大5ä»¶","До 5"),i("最多 5 个","Up to 5","最大5ä»¶","До 5"),i("无限制","Unlimited","無制限","Безлимит")]},{icon:W,label:i("剧情问答次数","In-story questions","ストーリー質問回数","Вопросы в сюжете"),values:[i("20 次 / 天","20/day","1日20回","20/день"),i("100 次 / 天","100/day","1日100回","100/день"),i("100 次 / 天","100/day","1日100回","100/день"),i("无限制","Unlimited","無制限","Безлимит")]},{icon:Ce,label:i("存档上限","Save limit","セーブ上限","Лимит сохранений"),values:[i("100 个","100","100ä»¶","100"),i("500 个","500","500ä»¶","500"),i("500 个","500","500ä»¶","500"),i("无限制","Unlimited","無制限","Безлимит")]},{icon:Be,label:i("视频链接解析","Video transcription","動画リンク解析","Распознавание видео"),values:[i("2 次 / 天","2/day","1日2回","2/день"),i("15 次 / 天","15/day","1日15回","15/день"),i("15 次 / 天","15/day","1日15回","15/день"),i("无限制","Unlimited","無制限","Безлимит")]},{icon:J,label:i("游戏 UI 预设","Game UI presets","ゲームUIプリセット","Игровые UI-пресеты"),values:[i("2 套免费","2 free presets","無料2種","2 бесплатных"),i("额外 2 套专属","2 more exclusive presets","追加限定2種","ещё 2 эксклюзивных"),i("额外 2 套专属","2 more exclusive presets","追加限定2種","ещё 2 эксклюзивных"),i("全部预设","All presets","全プリセット","Все пресеты")]},{icon:K,label:i("个人主页装饰","Profile decoration","プロフィール装飾","Оформление профиля"),values:[i("标准","Standard","標準","Стандарт"),i("装饰、昵称与标识","Decoration, name, and badge","装飾・ネーム・バッジ","Оформление, ник и значок"),i("装饰、昵称与标识","Decoration, name, and badge","装飾・ネーム・バッジ","Оформление, ник и значок"),i("装饰、昵称与标识","Decoration, name, and badge","装飾・ネーム・バッジ","Оформление, ник и значок")]}],et=c==="apple"?[{question:i("如何管理或取消 App Store 订阅?","How do I manage or cancel an App Store subscription?","App Storeのサブスクリプションを管理・解約するには?","Как управлять подпиской App Store или отменить ее?"),answer:i("打开设备“设置”,选择 Apple ID,再进入“订阅”管理 Paper2Gal。取消后权益保留到当前周期结束。","Open device Settings, select your Apple ID, then Subscriptions to manage Paper2Gal. Benefits remain active through the current billing period after cancellation.","端末の「設定」でApple IDを選択し、「サブスクリプション」からPaper2Galを管理できます。解約後も現在の期間終了まで特典を利用できます。","Откройте настройки устройства, выберите Apple ID, затем «Подписки». После отмены преимущества сохраняются до конца текущего периода.")},{question:i("如何恢复购买?","How do I restore purchases?","購入を復元するには?","Как восстановить покупки?"),answer:i("使用原 Apple ID 和原 Paper2Gal 账号登录,然后点击本页“恢复购买”。","Sign in with the original Apple ID and Paper2Gal account, then select Restore Purchases on this page.","購入時のApple IDとPaper2Galアカウントでログインし、このページの「購入を復元」を選択してください。","Войдите с исходным Apple ID и аккаунтом Paper2Gal, затем выберите «Восстановить покупки» на этой странице.")},{question:i("如何申请 App Store 退款?","How do I request an App Store refund?","App Storeの返金を申請するには?","Как запросить возврат App Store?"),answer:i("App Store 订单由 Apple 处理,请点击页面右上角“退款申请”进入 Apple 的“报告问题”页面。","App Store orders are handled by Apple. Select Refund Request at the top right to open Apple Report a Problem.","App Storeの注文はAppleが処理します。右上の「返金申請」からAppleの「問題を報告」を開いてください。","Заказ
1ы App Store обрабатывает Apple. Нажмите «Запрос возврата» вверху справа, чтобы открыть Apple Report a Problem.")}]:[{question:t.faqOneTimeQ,answer:t.faqOneTimeA},{question:t.faqCancelQ,answer:t.faqCancelA},{question:t.faqInfinityQ,answer:t.faqInfinityA},{question:t.faqActiveQ,answer:t.faqActiveA},{question:t.faqSwitchQ,answer:t.faqSwitchA},{question:t.faqRefundQ,answer:t.faqRefundA}],tt=[{icon:ct,title:t.secure,sub:t.secureSub,tone:"text-pink-500 bg-pink-50 border-pink-100"},{icon:Y,title:t.cancelAnytime,sub:c==="apple"?i("订阅可在 App Store 中取消","Subscriptions can be cancelled in the App Store","App Storeでサブスクリプションを解約できます","Подписку можно отменить в App Store"):t.cancelAnytimeSub,tone:"text-emerald-500 bg-emerald-50 border-emerald-100"},{icon:dt,title:t.privacy,sub:t.privacySub,tone:"text-violet-500 bg-violet-50 border-violet-100"},{icon:pt,title:t.support,sub:t.supportSub,tone:"text-amber-500 bg-amber-50 border-amber-100"}];return e.jsx("div",{className:"absolute inset-0 z-40 overflow-y-auto bg-[#fff7fb] text-slate-800 font-sans",children:e.jsxs("div",{className:"relative min-h-full overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-[0.14]",style:{backgroundImage:"url(/background.jpg)",backgroundSize:"cover",backgroundPosition:"center"},"aria-hidden":"true"}),e.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(135deg,rgba(255,255,255,0.94),rgba(255,244,250,0.94)_45%,rgba(253,242,248,0.98)),radial-gradient(circle_at_52%_4%,rgba(244,114,182,0.12),transparent_28%),linear-gradient(90deg,rgba(244,114,182,0.06)_1px,transparent_1px),linear-gradient(rgba(244,114,182,0.06)_1px,transparent_1px)] bg-[size:auto,auto,32px_32px,32px_32px]","aria-hidden":"true"}),e.jsx("header",{className:"sticky top-0 z-20 border-b border-pink-100/70 bg-white/82 shadow-sm shadow-pink-100/50 backdrop-blur-xl",children:e.jsxs("div",{className:"mx-auto flex max-w-7xl flex-wrap items-center justify-between gap-2 px-4 py-3 md:px-8",children:[e.jsxs("button",{type:"button",onClick:ze,className:"inline-flex min-h-11 items-center gap-2 rounded-xl border border-pink-100 bg-white px-3 py-2 text-sm font-black text-slate-600 shadow-sm transition hover:border-pink-300 hover:text-pink-600 active:scale-95",children:[e.jsx(ut,{size:16}),t.back]}),e.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[c==="web"&&e.jsxs("button",{type:"button",onClick:Ge,disabled:U,className:"inline-flex min-h-11 items-center gap-2 rounded-xl border border-pink-100 bg-white px-3 py-2 text-sm font-black text-slate-700 shadow-sm transition hover:border-pink-300 hover:text-pink-600 active:scale-95 disabled:text-slate-400",children:[U?e.jsx(q,{size:16,className:"animate-spin"}):e.jsx(X,{size:16}),e.jsx("span",{children:U?t.billingLoading:t.manageBilling})]}),e.jsxs("button",{type:"button",onClick:He,className:"inline-flex min-h-11 items-center gap-2 rounded-xl border border-pink-100 bg-white px-3 py-2 text-sm font-black text-slate-700 shadow-sm transition hover:border-pink-300 hover:text-pink-600 active:scale-95",children:[e.jsx(Te,{size:16}),t.refundRequestShort]})]})]})}),e.jsxs("main",{className:`relative z-10 mx-auto max-w-7xl px-4 pb-10 md:px-8 md:pb-16 ${P?"pt-5":"pt-8"}`,children:[e.jsxs("section",{className:`grid items-center md:grid-cols-[minmax(0,1fr)_420px] ${P?"gap-4":"gap-8 md:py-8"}`,children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"inline-flex items-center gap-3 text-2xl font-black text-slate-950 md:text-3xl",children:[e.jsx("span",{className:"inline-flex h-12 w-12 items-center justify-center rounded-2xl bg-pink-500 text-white shadow-lg shadow-pink-200",children:e.jsx(K,{size:26})}),"Paper2Gal ",e.jsx("span",{className:"text-pink-500",children:"Pro"})]}),e.jsx("h1",{className:"mt-5 max-w-2xl text-3xl font-black leading-tight text-slate-950 md:text-5xl lg:text-6xl",children:i(e.jsxs(e.Fragment,{children:["解锁",e.jsx("span",{className:"text-pink-500",children:"更多创作可能"})]}),e.jsxs(e.Fragment,{children:["Unlock ",e.jsx("span",{className:"text-pink-500",children:"more creation"})]}),e.jsxs(e.Fragment,{children:["さらなる",e.jsx("span",{className:"text-pink-500",children:"創作の可能性"}),"を解放"]}),e.jsxs(e.Fragment,{children:["Откройте ",e.jsx("span",{className:"text-pink-500",children:"больше возможностей"})," для творчества"]}))}),e.jsx("p",{className:"mt-5 max-w-2xl text-base font-bold leading-relaxed text-slate-500 md:text-lg",children:t.heroSubtitle}),e.jsx("div",{className:"mt-8 grid max-w-2xl gap-4 sm:grid-cols-2",children:Ye.slice(0,4).map(({icon:n,text:s})=>e.jsxs("div",{className:"group flex items-start gap-3",children:[e.jsx("span",{className:"mt-0.5 inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-pink-100 text-pink-500 transition duration-200 group-hover:-translate-y-0.5 group-hover:scale-105 group-hover:bg-pink-500 group-hover:text-white group-hover:shadow-lg group-hover:shadow-
1pink-200",children:e.jsx(n,{size:18})}),e.jsx("span",{className:"text-sm font-black leading-snug text-slate-700 transition group-hover:text-pink-600",children:s})]},s))})]}),e.jsxs("div",{className:`relative min-h-[360px] ${P?"hidden":"hidden md:block"}`,"aria-hidden":"true",children:[e.jsx("div",{className:"absolute left-1/2 top-1/2 h-72 w-72 -translate-x-1/2 -translate-y-1/2 rounded-full border-[28px] border-pink-100/80 bg-white/65 shadow-[0_30px_100px_rgba(236,72,153,0.25)]"}),e.jsxs("div",{className:"absolute left-1/2 top-1/2 flex h-56 w-48 -translate-x-1/2 -translate-y-1/2 rotate-6 flex-col items-center justify-center rounded-[34px] border border-white/70 bg-pink-500 text-white shadow-[0_30px_80px_rgba(236,72,153,0.45)]",children:[e.jsx(K,{size:58,fill:"currentColor"}),e.jsx("div",{className:"mt-3 text-5xl font-black",children:"Pro"})]}),e.jsx("div",{className:"absolute left-8 top-20 flex h-16 w-16 items-center justify-center rounded-2xl bg-white text-violet-400 shadow-xl shadow-pink-100",children:e.jsx(De,{size:28})}),e.jsx("div",{className:"absolute bottom-16 left-16 flex h-16 w-16 items-center justify-center rounded-2xl bg-white text-pink-400 shadow-xl shadow-pink-100",children:e.jsx(Ue,{size:28})}),e.jsx("div",{className:"absolute right-8 top-24 flex h-16 w-16 items-center justify-center rounded-2xl bg-white text-violet-400 shadow-xl shadow-pink-100",children:e.jsx(W,{size:28})}),e.jsx("div",{className:"absolute bottom-20 right-14 flex h-16 w-16 items-center justify-center rounded-2xl bg-pink-500 text-white shadow-xl shadow-pink-200",children:e.jsx(H,{size:28})})]})]}),e.jsxs("section",{className:"mt-8 rounded-[24px] border border-pink-100 bg-white/76 px-4 py-7 shadow-[0_24px_80px_rgba(236,72,153,0.12)] backdrop-blur-xl md:px-8",children:[e.jsx("h2",{className:"text-center text-xl font-black text-slate-950",children:t.choosePlan}),c==="apple"&&e.jsx("div",{"aria-label":"App Store subscription disclosure",className:"mx-auto mt-6 max-w-5xl rounded-2xl border border-slate-200 bg-white p-5 text-sm font-bold leading-6 text-slate-600 shadow-sm",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("span",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl bg-slate-950 text-white",children:e.jsx(X,{size:20})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"text-base font-black text-slate-950",children:i("App Store 购买与自动续订","App Store purchases and auto-renewal","App Storeでの購入と自動更新","Покупки и автопродление в App Store")}),e.jsx("p",{className:"mt-2",children:i("每个方案会显示名称、计费周期和 App Store 本地价格。自动续订方案会从 Apple ID 扣款,并在当前周期结束前 24 小时内按所示月价续订;除非在周期结束至少 24 小时前取消。","Each plan shows its name, billing period, and local App Store price. Auto-renewing subscriptions are charged to your Apple ID and renew at the displayed monthly price within 24 hours before the current period ends unless cancelled at least 24 hours before renewal.","各プランには名称、請求期間、App Storeの現地価格が表示されます。自動更新プランはApple IDに請求され、更新の24時間前までに解約しない限り、現在の期間終了前24時間以内に表示の月額で更新されます。","Для каждого плана указаны название, период и локальная цена App Store. Автопродляемая подписка оплачивается через Apple ID и продлевается по указанной месячной цене в течение 24 часов до конца периода, если ее не отменить минимум за 24 часа до продления.")}),e.jsxs("div",{className:"mt-4 flex flex-wrap gap-2",children:[e.jsxs("button",{type:"button",onClick:de,disabled:B,className:"inline-flex min-h-11 items-center gap-2 rounded-xl bg-slate-950 px-4 text-xs font-black text-white disabled:opacity-50",children:[e.jsx(Y,{size:15,className:B?"animate-spin":""}),i("恢复购买","Restore purchases","購入を復元","Восстановить покупки")]}),e.jsx("a",{href:"https://apps.apple.com/account/subscriptions",target:"_blank",rel:"noreferrer",className:"inline-flex min-h-11 items-center rounded-xl border border-slate-200 bg-white px-4 text-xs font-black text-slate-700",children:i("管理订阅","Manage subscriptions","サブスクリプションを管理","Управление подписками")}),e.jsx("a",{href:"https://paper2gal.com/terms",target:"_blank",rel:"noreferrer",className:"inline-flex min-h-11 items-center rounded-xl border border-slate-200 bg-white px-4 text-xs font-black text-slate-700",children:i("使用条款","Terms of Service","利用規約","Условия использования")}),e.jsx("a",{href:"https://paper2gal.com/privacy",target:"_blank",rel:"noreferrer",className:"inline-flex min-h-11 items-center rounded-xl border border-slate-200 bg-white px-4 text-xs font-black text-slate-700",children:i("隐私政策","Privacy Policy","プライバシーポリシー","Политика конфиденциальности")})]})]})]})}),c==="web"&&e.jsxs("div",{className:"mx-auto mt-6 flex max-w-5xl flex-col gap-5 rounded-2xl border border-emerald-200 bg-emerald-50 p-5 shadow-[0_14px_40px_rgba(16,185,129,0.10)] sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{className:"flex min-w-0 items-start gap-4",children:[e.jsx("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-emerald-500 text-white shadow-lg shadow-emerald-200",children:e.jsx(L,{size:24})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("h3",{className:"text-lg font-black text-slate-950",children:O.title}),e.jsx("span",{className:"rounded-full bg-white px-2.5 py-1 text-[11px] font-black text-emerald-700 shadow-sm",children:i("新用户体验","Starter offer","初回限定","Стартовое предложение")})]}),e.jsx("p",{className:"mt-1 text-sm font-bold text-slate-600",children:G.sub}),e.jsx("p",{className:"mt-2 text-xs font-semibold text-slate-500",children:G.features[0]})]})]}),e.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-4 sm:justify-end",children:[e.jsxs("div",{className:"text-right",children:[e.jsx("div",{className:"text-3xl font-black leading-none text-emerald-600",children:O.price}),e.jsx("div",{className:"mt-1 text-xs font-bold text-slate-400",children:O.meta}
1)]}),e.jsxs("button",{type:"button",onClick:()=>pe("experience_three_day"),disabled:!!N||Z||!!(a!=null&&a.active)||be,className:"inline-flex min-h-11 min-w-28 items-center justify-center rounded-full bg-emerald-500 px-5 py-2.5 text-sm font-black text-white shadow-lg shadow-emerald-200 transition hover:bg-emerald-600 active:scale-[0.98] disabled:cursor-not-allowed disabled:bg-slate-200 disabled:text-slate-400 disabled:shadow-none",children:[N==="experience_three_day"&&e.jsx(q,{size:17,className:"mr-2 animate-spin"}),a!=null&&a.active?t.current:be?i("已购买过","Already purchased","購入済み","Уже куплено"):o?G.cta:t.login]})]})]}),c==="direct"&&e.jsxs("div",{className:"mx-auto mt-5 flex w-fit max-w-full items-center rounded-2xl border border-slate-200 bg-slate-50 p-1.5 shadow-sm","aria-label":i("支付方式","Payment method","お支払い方法","Способ оплаты"),children:[e.jsx("button",{type:"button",disabled:!((fe=x.direct)!=null&&fe.alipay),onClick:()=>F("alipay"),className:`min-h-11 rounded-xl px-5 text-sm font-black transition disabled:cursor-not-allowed disabled:opacity-40 ${C==="alipay"?"bg-[#1677ff] text-white shadow-md":"text-slate-500 hover:bg-white"}`,children:i("支付宝","Alipay","Alipay","Alipay")}),e.jsx("button",{type:"button",disabled:!((he=x.direct)!=null&&he.wechat),onClick:()=>F("wechat"),className:`min-h-11 rounded-xl px-5 text-sm font-black transition disabled:cursor-not-allowed disabled:opacity-40 ${C==="wechat"?"bg-[#07c160] text-white shadow-md":"text-slate-500 hover:bg-white"}`,children:i("微信支付","WeChat Pay","WeChat Pay","WeChat Pay")})]}),e.jsxs("div",{className:"mx-auto mt-5 flex w-fit max-w-full items-center rounded-2xl border border-pink-100 bg-white p-1.5 shadow-sm",children:[e.jsx("button",{type:"button",onClick:()=>E("one_time"),className:`min-h-11 rounded-xl px-4 text-xs font-black transition sm:text-sm ${v==="one_time"?"bg-slate-900 text-white shadow-md":"text-slate-500 hover:bg-slate-50"}`,children:t.billingOneTime}),c!=="direct"&&e.jsxs("button",{type:"button",onClick:()=>E("auto_renew"),className:`min-h-11 rounded-xl px-4 text-xs font-black transition sm:text-sm ${v==="auto_renew"?"bg-pink-500 text-white shadow-md shadow-pink-100":"text-slate-500 hover:bg-pink-50"}`,children:[t.billingAutoRenew,e.jsx("span",{className:`ml-2 rounded-full px-2 py-0.5 text-[10px] ${v==="auto_renew"?"bg-white/20 text-white":"bg-pink-100 text-pink-500"}`,children:t.billingSave})]})]}),e.jsxs("div",{className:"mx-auto mt-7 grid max-w-7xl gap-5 md:grid-cols-2 xl:grid-cols-4",children:[e.jsxs("div",{className:`flex flex-col rounded-[24px] border border-slate-200 bg-white shadow-[0_16px_50px_rgba(15,23,42,0.06)] ${P?"min-h-0 p-5":"min-h-[450px] p-6"}`,children:[e.jsxs("div",{className:"text-center",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-950",children:t.freePlan}),e.jsx("p",{className:"mt-2 min-h-[34px] text-sm font-bold text-slate-500",children:t.freePlanDesc}),e.jsxs("div",{className:"mt-6 flex items-end justify-center gap-2",children:[e.jsx("span",{className:"text-5xl font-black leading-none text-slate-950",children:"$0"}),e.jsx("span",{className:"pb-1 text-sm font-black text-slate-400",children:i("/月","/month","/月","/мес")})]})]}),e.jsx("div",{className:"mt-7 flex-1 space-y-3",children:Ke.map(n=>e.jsxs("div",{className:"flex items-start gap-3 text-sm font-bold text-slate-600",children:[e.jsx(Ie,{size:16,className:"mt-0.5 shrink-0 text-emerald-500"}),e.jsx("span",{children:n})]},n))}),e.jsx("div",{className:"mt-7 min-h-[82px]",children:e.jsx("button",{type:"button",disabled:!0,className:"inline-flex min-h-[50px] w-full items-center justify-center rounded-full bg-slate-100 px-4 py-3 text-sm font-black text-slate-400",children:a!=null&&a.active?t.freePlan:t.currentPlan})})]}),Xe.map(n=>{var b,ge,ye,we,je,ve,ke,_e,Pe,Se,Ne,Ae,qe;const s=xe.find(D=>D.id===n),r=me[n],d=!!r.featured,l=N===n,p=C==="alipay"?(b=x.direct)==null?void 0:b.alipay:(ge=x.direct)==null?void 0:ge.wechat,k=c==="direct"?!p||!((je=(we=(ye=x.direct)==null?void 0:ye.plans)==null?void 0:we[n])!=null&&je.amountCents):c==="google"?!((ve=x.google)!=null&&ve.configured)||!((Pe=(_e=(ke=x.google)==null?void 0:ke.plans)==null?void 0:_e[n])!=null&&Pe.productId):c==="apple"?n==="experience_three_day"||!((Se
1=x.apple)!=null&&Se.configured)||!((qe=(Ae=(Ne=x.apple)==null?void 0:Ne.plans)==null?void 0:Ae[n])!=null&&qe.productId):!1,_=!!(a!=null&&a.active)||k,g=n==="unlimited_thirty_day"||n==="unlimited_monthly_auto_renew",T=n==="basic_thirty_day"||n==="basic_monthly_auto_renew",j=n==="monthly_auto_renew"||n==="unlimited_monthly_auto_renew"||n==="basic_monthly_auto_renew";return e.jsxs("div",{className:`group relative flex flex-col rounded-[24px] border bg-white shadow-sm transition duration-300 hover:-translate-y-1.5 hover:border-pink-400 hover:shadow-[0_28px_80px_rgba(236,72,153,0.20)] ${P?"min-h-0 p-5":"min-h-[450px] p-6"} ${d?"border-pink-500 shadow-[0_24px_70px_rgba(236,72,153,0.18)]":"border-slate-100 shadow-[0_16px_50px_rgba(15,23,42,0.06)]"}`,children:[d&&e.jsx("div",{className:"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rounded-full bg-pink-500 px-5 py-1.5 text-xs font-black text-white shadow-lg shadow-pink-200",children:i("推荐","Recommended","おすすめ","Рекомендуем")}),g&&e.jsx("div",{className:"absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rounded-full bg-violet-600 px-5 py-1.5 text-xs font-black text-white shadow-lg shadow-violet-200",children:t.unlimitedValueBadge}),e.jsxs("div",{className:"text-center",children:[e.jsx("h3",{className:"text-2xl font-black text-slate-950 transition group-hover:text-pink-600",children:s.title}),e.jsx("p",{className:"mt-2 min-h-[34px] text-sm font-bold text-slate-500",children:r.sub}),e.jsxs("div",{className:"mt-6 flex items-end justify-center gap-2",children:[e.jsx("span",{className:`text-5xl font-black leading-none ${d?"text-pink-500":"text-slate-950"}`,children:s.price}),e.jsx("span",{className:"pb-1 text-sm font-black text-slate-400",children:s.meta})]}),j&&s.badge&&e.jsxs("div",{className:`mt-2 inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-black ${g?"bg-violet-50 text-violet-600":"bg-pink-50 text-pink-500"}`,children:[e.jsx("span",{className:"line-through text-slate-400",children:g?"$100":T?"$10":"$20"}),s.badge]}),g&&!j&&e.jsx("div",{className:"mt-2 inline-flex rounded-full bg-violet-50 px-3 py-1 text-xs font-black text-violet-600",children:t.unlimitedBadge}),ue&&!j&&e.jsxs("div",{className:`mt-2 inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-black ${g?"bg-violet-50 text-violet-600":"bg-pink-50 text-pink-500"}`,children:[s.originalPrice&&e.jsx("span",{className:"line-through text-slate-400",children:s.originalPrice}),t.promotionBadge]})]}),e.jsx("div",{className:"mt-7 flex-1 space-y-3",children:r.features.map(D=>e.jsxs("div",{className:"flex items-start gap-3 text-sm font-bold text-slate-600",children:[e.jsx(Ie,{size:16,className:"mt-0.5 shrink-0 text-slate-700"}),e.jsx("span",{children:D})]},D))}),e.jsxs("div",{className:"mt-7 min-h-[82px]",children:[e.jsxs("button",{type:"button",onClick:()=>pe(n),disabled:!!N||_,className:`inline-flex min-h-[50px] w-full items-center justify-center rounded-full px-4 py-3 text-sm font-black transition duration-200 hover:-translate-y-0.5 active:scale-[0.98] disabled:cursor-not-allowed disabled:translate-y-0 disabled:bg-slate-200 disabled:text-slate-400 ${d?"bg-pink-500 text-white shadow-xl shadow-pink-200 hover:bg-pink-600 hover:shadow-pink-300":"border-2 border-pink-400 bg-white text-pink-500 hover:bg-pink-50 hover:shadow-lg hover:shadow-pink-100"}`,children:[l?e.jsx(q,{size:18,className:"animate-spin"}):null,e.jsx("span",{className:l?"ml-2":"",children:l?i("正在处理支付...","Processing payment...","お支払い処理中...","Обработка платежа..."):a!=null&&a.active?t.current:k?i("支付暂不可用","Payment unavailable","お支払い利用不可","Оплата недоступна"):o?r.cta:t.login})]}),d&&j&&e.jsx("div",{className:"mt-4 text-center text-xs font-bold text-slate-500",children:c==="google"?i("可在 Google Play 中管理或取消","Manage or cancel in Google Play","Google Playで管理・解約できます","Управление и отмена в Google Play"):c==="apple"?i("可在 App Store 中管理或取消","Manage or cancel in the App Store","App Storeで管理・解約できます","Управление и отмена в App Store"):i("可随时在 Stripe 账户中取消","Cancel anytime in Stripe","Stripeアカウントでいつでも解約可能","Отмена в любой момент в Stripe")})]})]},n)})]}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-2 text-xs font-black text-slate-500",children:[e.jsx("span",{className:"mr-1",children:c==="direct"?i("Direct 版支持","Direct build supp
1orts","Direct版対応","Direct-версия поддерживает"):c==="google"?"Google Play Billing":c==="apple"?"Apple In-App Purchase":t.poweredBy}),c==="direct"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"inline-flex h-7 min-w-16 items-center justify-center rounded-md bg-[#1677ff] px-3 text-[11px] font-black text-white shadow-sm",children:"支付宝"}),e.jsx("span",{className:"inline-flex h-7 min-w-16 items-center justify-center rounded-md bg-[#07c160] px-3 text-[11px] font-black text-white shadow-sm",children:"微信支付"})]}):c==="google"?e.jsx("span",{className:"inline-flex h-7 min-w-24 items-center justify-center rounded-md border border-slate-200 bg-white px-3 text-[11px] font-black text-slate-700 shadow-sm",children:"Google Play"}):c==="apple"?e.jsx("span",{className:"inline-flex h-7 min-w-24 items-center justify-center rounded-md border border-slate-200 bg-white px-3 text-[11px] font-black text-slate-900 shadow-sm",children:" App Store"}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"inline-flex h-7 min-w-11 items-center justify-center rounded-md border border-slate-200 bg-white px-2 text-[13px] font-black italic text-[#1a1f71] shadow-sm",children:"VISA"}),e.jsxs("span",{className:"inline-flex h-7 min-w-11 items-center justify-center rounded-md border border-slate-200 bg-white px-2 shadow-sm",children:[e.jsx("span",{className:"h-4 w-4 rounded-full bg-[#eb001b]"}),e.jsx("span",{className:"-ml-1 h-4 w-4 rounded-full bg-[#f79e1b] opacity-90"})]}),e.jsx("span",{className:"inline-flex h-7 min-w-11 items-center justify-center rounded-md border border-slate-200 bg-[#1f72cd] px-2 text-[10px] font-black text-white shadow-sm",children:"AMEX"}),e.jsx("span",{className:"inline-flex h-7 min-w-11 items-center justify-center rounded-md border border-slate-200 bg-white px-2 text-[11px] font-black text-slate-950 shadow-sm",children:" Pay"}),e.jsx("span",{className:"inline-flex h-7 min-w-11 items-center justify-center rounded-md border border-slate-200 bg-white px-2 text-[11px] font-black text-slate-700 shadow-sm",children:"G Pay"}),e.jsx("span",{className:"inline-flex h-7 min-w-11 items-center justify-center rounded-md border border-slate-200 bg-white px-2 text-[11px] font-black text-[#07c160] shadow-sm",children:"微信"}),e.jsx("span",{className:"inline-flex h-7 min-w-11 items-center justify-center rounded-md border border-slate-200 bg-white px-2 text-[11px] font-black text-[#1677ff] shadow-sm",children:"支付宝"})]}),c==="google"&&e.jsxs("button",{type:"button",onClick:de,disabled:B,className:"ml-2 inline-flex min-h-11 items-center justify-center gap-2 rounded-lg border border-slate-200 bg-white px-3 text-xs font-black text-slate-600 shadow-sm transition hover:border-pink-200 hover:text-pink-600 disabled:opacity-50",children:[e.jsx(Y,{size:14,className:B?"animate-spin":""}),i("恢复购买","Restore purchases","購入を復元","Восстановить покупки")]})]}),Z?e.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm font-bold text-slate-500",children:[e.jsx(q,{size:16,className:"animate-spin"}),t.loading]}):a!=null&&a.active?e.jsxs("div",{className:"mx-auto mt-5 max-w-xl rounded-2xl border border-emerald-100 bg-emerald-50 px-4 py-3 text-sm font-bold text-emerald-700",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 font-black",children:[e.jsx(xt,{size:16}),a.unlimitedAll?t.unlimitedThirtyDay:t.active]}),a.currentPeriodEnd&&e.jsxs("div",{className:"mt-1 text-center text-xs",children:[t.validUntil,": ",new Date(a.currentPeriodEnd).toLocaleDateString(wt(f)),a.cancelAtPeriodEnd?`, ${t.cancelAtPeriodEnd}`:""]})]}):null,ae&&e.jsx("div",{className:"mx-auto mt-4 max-w-xl rounded-2xl border border-red-100 bg-red-50 px-4 py-3 text-center text-xs font-bold text-red-600",children:ae})]}),e.jsxs("section",{className:"mx-auto mt-8 max-w-6xl rounded-[24px] border border-pink-100 bg-white/88 p-4 shadow-[0_24px_80px_rgba(236,72,153,0.10)] backdrop-blur-xl md:p-7",children:[e.jsxs("div",{className:"flex flex-col gap-2 text-center md:flex-row md:items-end md:justify-between md:text-left",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-xs font-black uppercase tracking-[0.18em] text-pink-400",children:"Pro"}),e.jsx("h2",{className:"mt-1 text-xl font-black text-slate-950",children:t.compareTitle})]}),e.jsx("div",{className:"text-xs font-bold text-slate-400",children:i("免费版与会员权益一览","Free and member benefits at a glance","無料版ã
1¨ãƒ¡ãƒ³ãƒãƒ¼ç‰¹å…¸ã®ä¸€è¦§","Бесплатный план и преимущества подписки")})]}),e.jsx("div",{className:"mt-5 overflow-x-auto rounded-[20px] border border-slate-100 bg-white shadow-sm",children:e.jsxs("table",{className:"w-full min-w-[900px] border-separate border-spacing-0 text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-slate-900",children:[e.jsx("th",{className:"w-[28%] border-b border-slate-100 bg-slate-50/80 px-5 py-3.5 text-left font-black",children:i("功能权益","Benefit","機能・特典","Преимущество")}),e.jsx("th",{className:"w-[18%] border-b border-slate-100 bg-slate-50/80 px-5 py-3.5 text-center font-black",children:i("免费版","Free","無料版","Бесплатный")}),e.jsx("th",{className:"w-[18%] border-b border-sky-100 bg-sky-50/80 px-5 py-3.5 text-center font-black text-sky-600 shadow-[inset_1px_0_0_rgba(14,165,233,0.14)]",children:e.jsx("span",{className:"inline-flex items-center justify-center rounded-full bg-sky-500 px-4 py-1.5 text-xs font-black text-white shadow-md shadow-sky-100",children:"Basic"})}),e.jsx("th",{className:"w-[18%] border-b border-pink-100 bg-pink-50/80 px-5 py-3.5 text-center font-black text-pink-500 shadow-[inset_1px_0_0_rgba(244,114,182,0.14)]",children:e.jsx("span",{className:"inline-flex items-center justify-center rounded-full bg-pink-500 px-4 py-1.5 text-xs font-black text-white shadow-md shadow-pink-100",children:"Pro"})}),e.jsx("th",{className:"w-[18%] border-b border-violet-100 bg-violet-50/80 px-5 py-3.5 text-center font-black text-violet-600 shadow-[inset_1px_0_0_rgba(139,92,246,0.14)]",children:e.jsx("span",{className:"inline-flex items-center justify-center rounded-full bg-violet-600 px-4 py-1.5 text-xs font-black text-white shadow-md shadow-violet-100",children:"Infinity"})})]})}),e.jsx("tbody",{children:Ze.map(({icon:n,label:s,values:r},d)=>e.jsxs("tr",{className:"group",children:[e.jsx("td",{className:`border-b border-slate-100 px-5 py-3 font-black text-slate-700 last:border-b-0 ${d%2===0?"bg-white":"bg-slate-50/45"}`,children:e.jsxs("span",{className:"inline-flex items-center gap-3",children:[e.jsx("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-xl bg-pink-50 text-pink-500 transition group-hover:bg-pink-500 group-hover:text-white group-hover:shadow-md group-hover:shadow-pink-100",children:e.jsx(n,{size:16})}),e.jsx("span",{className:"whitespace-nowrap",children:s})]})}),e.jsx("td",{className:`border-b border-slate-100 px-5 py-3 text-center last:border-b-0 ${d%2===0?"bg-white":"bg-slate-50/45"}`,children:e.jsx("span",{className:"inline-flex min-w-24 items-center justify-center rounded-full border border-slate-100 bg-white px-3 py-1.5 text-xs font-black text-slate-500 shadow-sm",children:r[0]})}),e.jsx("td",{className:`border-b border-sky-100 px-5 py-3 text-center shadow-[inset_1px_0_0_rgba(14,165,233,0.14)] last:border-b-0 ${d%2===0?"bg-sky-50/35":"bg-sky-50/65"}`,children:e.jsx("span",{className:"inline-flex min-w-28 items-center justify-center rounded-full bg-white px-4 py-1.5 text-xs font-black text-sky-600 shadow-sm ring-1 ring-sky-100",children:r[1]})}),e.jsx("td",{className:`border-b border-pink-100 px-5 py-3 text-center shadow-[inset_1px_0_0_rgba(244,114,182,0.14)] last:border-b-0 ${d%2===0?"bg-pink-50/35":"bg-pink-50/65"}`,children:e.jsx("span",{className:"inline-flex min-w-28 items-center justify-center rounded-full bg-white px-4 py-1.5 text-xs font-black text-pink-500 shadow-sm ring-1 ring-pink-100",children:r[2]})}),e.jsx("td",{className:`border-b border-violet-100 px-5 py-3 text-center shadow-[inset_1px_0_0_rgba(139,92,246,0.14)] last:border-b-0 ${d%2===0?"bg-violet-50/35":"bg-violet-50/65"}`,children:e.jsx("span",{className:"inline-flex min-w-28 items-center justify-center rounded-full bg-white px-4 py-1.5 text-xs font-black text-violet-600 shadow-sm ring-1 ring-violet-100",children:r[3]})})]},s))})]})})]}),e.jsxs("section",{className:"mx-auto mt-8 max-w-6xl px-1 py-3 md:px-2",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("span",{className:"mx-auto flex h-11 w-11 items-center justify-center rounded-2xl bg-pink-100 text-pink-500",children:e.jsx(mt,{size:22})}),e.jsx("h2",{className:"mt-3 text-2xl font-black text-slate-950",children:t.faqTitle}),e.jsx("p",{className:"mt-1 text-sm font-bold text-slate-400",children:t.faqSubtitle})]}),e.jsx("div",{className:"mx-auto mt-6 grid max-w-4xl items-start gap-3",children:et.map(({question:n,answer:s})=>e.jsxs("details",{className:"group overflow-hidden rounded-2xl border border-pink-100 bg-white shadow-sm open:sha
1dow-md",children:[e.jsxs("summary",{className:"flex min-h-[62px] cursor-pointer list-none items-center gap-3 px-4 py-3 text-left text-sm font-black text-slate-800 transition hover:bg-pink-50/60 [&::-webkit-details-marker]:hidden",children:[e.jsx("span",{className:"min-w-0 flex-1",children:n}),e.jsx(bt,{size:17,className:"shrink-0 text-pink-400 transition-transform group-open:rotate-180"})]}),e.jsx("div",{className:"border-t border-pink-50 px-4 py-4 text-sm font-bold leading-7 text-slate-500",children:s})]},n))})]}),e.jsx("section",{className:"mt-8 grid gap-4 rounded-[24px] border border-pink-100 bg-white/82 p-5 shadow-[0_24px_80px_rgba(236,72,153,0.10)] backdrop-blur-xl md:grid-cols-4 md:p-7",children:tt.map(({icon:n,title:s,sub:r,tone:d})=>e.jsxs("div",{className:"group flex items-center gap-4 transition duration-200 hover:-translate-y-0.5 md:border-r md:border-slate-100 md:last:border-r-0",children:[e.jsx("span",{className:`inline-flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl border transition duration-200 group-hover:scale-105 group-hover:shadow-lg ${d}`,children:e.jsx(n,{size:25})}),e.jsxs("span",{children:[e.jsx("span",{className:"block text-sm font-black text-slate-900 transition group-hover:text-pink-600",children:s}),e.jsx("span",{className:"mt-1 block text-xs font-bold leading-relaxed text-slate-500",children:r})]})]},s))}),e.jsx("div",{className:"mt-5 text-center text-xs font-bold leading-relaxed text-slate-400",children:c==="apple"?i("购买确认后将从 Apple ID 扣款。订阅与退款由 Apple 管理。","Your Apple ID is charged after purchase confirmation. Subscriptions and refunds are managed by Apple.","購入確認後、Apple IDに請求されます。サブスクリプションと返金はAppleが管理します。","После подтверждения покупки средства списываются с Apple ID. Подписками и возвратами управляет Apple."):t.note})]}),Ve&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-slate-950/30 p-4 backdrop-blur-sm",children:e.jsx("div",{className:"w-full max-w-lg overflow-hidden rounded-[28px] border border-white/75 bg-white/90 shadow-[0_28px_90px_rgba(236,72,153,0.24)] backdrop-blur-xl",children:e.jsxs("div",{className:"custom-scrollbar max-h-[calc(100dvh-2rem-2px)] touch-pan-y overflow-y-auto overscroll-y-contain p-5 md:p-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-pink-50 text-pink-500",children:e.jsx(X,{size:23})}),e.jsx("div",{children:e.jsx("h2",{className:"text-xl font-black text-slate-950",children:t.refundTitle})})]}),e.jsx("button",{type:"button",onClick:()=>M(!1),className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-2xl border border-pink-100 bg-white text-slate-400 transition hover:text-pink-500","aria-label":t.close,children:e.jsx(ft,{size:18})})]}),e.jsxs("div",{className:"mt-5 space-y-4",children:[e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-2 flex items-center gap-2 text-xs font-black uppercase tracking-wide text-slate-400",children:[e.jsx(ht,{size:14}),t.refundEmail]}),e.jsx("input",{type:"email",value:z,onChange:n=>Q(n.target.value),className:"h-12 w-full rounded-2xl border border-pink-100 bg-white/80 px-4 text-sm font-bold text-slate-800 outline-none transition focus:border-pink-300 focus:ring-4 focus:ring-pink-50",placeholder:(o==null?void 0:o.email)||"[email protected]"})]}),e.jsxs("label",{className:"block",children:[e.jsxs("span",{className:"mb-2 flex items-center gap-2 text-xs font-black uppercase tracking-wide text-slate-400",children:[e.jsx(Te,{size:14}),t.refundReason]}),e.jsx("textarea",{value:ne,onChange:n=>se(n.target.value),rows:5,className:"w-full resize-none rounded-2xl border border-pink-100 bg-white/80 px-4 py-3 text-sm font-bold leading-relaxed text-slate-800 outline-none transition placeholder:text-slate-300 focus:border-pink-300 focus:ring-4 focus:ring-pink-50",placeholder:t.refundReasonPlaceholder})]}),le&&e.jsx("div",{className:"rounded-2xl border border-pink-100 bg-pink-50/80 px-4 py-3 text-sm font-bold leading-relaxed text-pink-700",children:le}),e.jsxs("div",{className:"flex flex-col-reverse gap-3 sm:flex-row sm:justify-end",children:[e.jsx("button",{type:"button",onClick:()=>M(!1),className:"h-12 rounded-2xl border border-slate-200 bg-white px-5 text-sm font-black text-slate-500 transition hover:text-slate-900",children:t.close}),e.jsxs("button",{type:"button",onClick:We,disabled:R,className:"inline-flex h-12 items-center justify-center gap-2 rounded-2xl bg-pink-500 px-5 text-sm font-black text-white shadow-lg shadow-pink-200 transition hover:bg-pink-600 disabled:opacity-60",children:[R?e.jsx(q,{size:16,className:"animate-spin"}):e.jsx(gt,{size:16}),R?t.refundSubmitting:t.refundSubmit]})]})]})]})})})]})})};export{Ee as MEMBERSHIP_COPY,Ut as default,wt as getMembershipLocale};

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.