PageSourceSearch

https://ximeng.ai/_nuxt/index_new.e4d9403b.js

js ximeng.ai collected 2026-10-05 14:24:23 UTC 22,324 bytes, 1 lines download raw bytes

1import{r as e,q as a,O as l,u as i,ay as n,bg as t,o as s,az as o,ao as r,B as c,A as u,K as d,z as v,L as p,I as m,J as g,U as y,W as b,M as h,P as w,Q as f,a8 as C,a9 as S,aj as I,a1 as k,V as P,bh as _,bi as x,aY as T,k as L,bj as A,bk as N,E as M,l as D,bl as U,aC as E,aD as z,H as B,_ as R}from"./entry.877ca4ca.js";import{_ as O}from"./wechat-pay-logo.a853eb32.js";import{j as V}from"./index.es.cb6b7460.js";const createWeChatPayment=async a=>{try{const{userId:l,planType:i,billingCycle:n="MONTHLY"}=a;if(!l||Number.isNaN(Number(l)))throw new Error("userId is required");if(!i)throw new Error("planType is required");const t=(e=>{const a=new URLSearchParams;return Object.entries(e).forEach((([e,l])=>{null!=l&&a.append(e,String(l))})),a.toString()})({userId:l,planType:i,billingCycle:n});return await e("/api2/wechat-subscription/create",{method:"post",headers:{"content-type":"application/x-www-form-urlencoded"},body:t})}catch(l){throw console.error("createWeChatPayment failed:",l),l}},pollWeChatPaymentStatus=(a,l,i,n,t=3e3,s=3e5)=>{let o=null,r=null,c=!1;const stopPolling=()=>{c=!0,o&&(clearInterval(o),o=null),r&&(clearTimeout(r),r=null)},checkStatus=async()=>{if(!c)try{const n=await(async a=>{try{if(!a)throw new Error("orderId is required");return await e(`/api2/wechat-subscription/payment/${a}`,{method:"get"})}catch(l){throw console.error("getWeChatPaymentByOrderId failed:",l),l}})(a);if(0===(null==n?void 0:n.code)||200===(null==n?void 0:n.code)){const e=n.data;"SUCCESS"===e.paymentStatus?(stopPolling(),l(e)):"FAILED"===e.paymentStatus&&(stopPolling(),null==i||i(e))}}catch(n){console.error("查询支付状态失败:",n)}};return checkStatus(),o=setInterval(checkStatus,t),r=setTimeout((()=>{stopPolling(),null==n||n()}),s),stopPolling},j={key:0,class:"modal-content"},q={class:"modal-header"},F={class:"modal-title-group"},H={class:"modal-title"},W={key:0,class:"billing-info"},$={class:"billing-label"},Y={class:"billing-date"},Q={class:"billing-amount"},J={class:"status-grid"},K={class:"status-item"},G={class:"status-item-label"},X={class:"status-item-value"},Z={class:"status-item-total"},ee={class:"status-item-note"},ae={class:"status-item"},le={class:"status-item-label"},ie={class:"status-item-value"},ne={class:"status-item-total"},te={class:"status-item-note"},se={class:"status-item"},oe={class:"status-item-label"},re={class:"status-item-value highlight"},ce={class:"status-item-note"},ue={class:"status-item"},de={class:"status-item-label"},ve={class:"status-item-value"},pe={class:"status-item-note"},me={class:"status-item"},ge={class:"status-item-label"},ye={class:"status-item-value"},be={class:"status-item-note"},he={class:"status-item"},we={class:"status-item-label"},fe={class:"status-item-value"},Ce={key:0,class:"access-yes"},Se={key:1,class:"access-no"},Ie={class:"status-item-note"},ke={key:0,class:"expiry-warning"},Pe={key:1,class:"modal-footer"},_e={class:"footer-left"},xe={key:1,class:"upgrade-options"},Te={class:"upgrade-header"},Le={class:"upgrade-plans"},Ae=["disabled","onClick"],Ne={class:"plan-info"},Me={class:"plan-name"},De={class:"plan-price"},Ue={class:"footer-right"},Ee={key:1,class:"cancel-confirm"},ze={class:"cancel-warning"},Be=["placeholder"],Re={class:"cancel-actions"},Oe=["disabled"],Ve={key:1,class:"modal-content loading"},je={class:"paypal-modal-content"},qe={class:"modal-header"},Fe={class:"modal-title"},He={class:"modal-subtitle"},We={class:"modal-price-inline"},$e={class:"payment-methods"},Ye={class:"payment-method-option"},Qe={class:"payment-method-description"},Je={class:"payment-method-option"},Ke={class:"payment-method-label"},Ge={class:"payment-method-text"},Xe={class:"payment-method-description"},Ze={class:"wechat-warning"},ea=["disabled"],aa={class:"wechat-modal-header"},la={class:"wechat-modal-title-group"},ia={class:"wechat-modal-title"},na={class:"wechat-pay-type-badge"},ta={class:"wechat-modal-body"},sa={class:"wechat-qr-wrapper"},oa={class:"wechat-order-info"},ra={class:"order-info-row"},ca={class:"order-info-label"},ua={class:"order-info-value"},da={key:0,class:"order-info-row"},va={class:"order-info-label"},pa={class:"order-info-value"},ma={class:"wechat-scan-tip"},ga={class:"wechat-auto-detect"},ya={class:"wechat-payment-notice"},ba=R(a({__name:"index_new",setup(e){const a=T((()=>B((()=>import("./PaypalSubscriptionModal.53d5b7cf.js")),["./PaypalSubscriptionModal.53d5b7cf.js","./entry.877ca4ca.js","./entry.b9760260.css","./paypal-js.8f2c219d.js","./PaypalSubscriptionModal.8ea65a43.css"],import.meta.url))),R=T((()=>B((()=>import("./index.f737095b.js")),["./index.f737095b.js","./entry.877ca4ca.js","./entry.b9760260.css","./index.027aff24.css"],import.meta.url))),{t:ba}=l(),ha=i(),{billingCycle:wa,plans:fa,getPlanId:Ca,getPlanPrice:Sa,loadPricingData:Ia}=n(),ka=L(null),Pa=L(null),_a=L(!1),xa=L(!1),Ta=L(!1),La=L(!1),Aa=L(""),Na=L(!1),fetchSub
1scriptionStatus=async()=>{try{_a.value=!0;const e=await A();return(0===(null==e?void 0:e.code)||200===(null==e?void 0:e.code))&&(Pa.value=e.data??null,!0)}catch(e){return!1}finally{_a.value=!1}},normalizePlanTypeToPlanId=e=>{if(!e)return null;const a=String(e).trim().toLowerCase();return a.includes("starter")?"starter":a.includes("basic")?"basic":a.includes("pro")?"pro":a.includes("ultimate")?"ultimate":null},normalizeBillingCycle=e=>{if(!e)return null;const a=String(e).trim().toLowerCase();return"monthly"===a?"monthly":"annual"===a||"yearly"===a?"annual":null},Ma=D((()=>{var e,a,l,i,n,t;return(null==(e=Pa.value)?void 0:e.hasActiveSubscription)&&"ACTIVE"===(null==(a=Pa.value)?void 0:a.subscriptionStatus)?{planId:normalizePlanTypeToPlanId(null==(i=null==(l=Pa.value)?void 0:l.planInfo)?void 0:i.planType),billingCycle:normalizeBillingCycle(null==(t=null==(n=Pa.value)?void 0:n.planInfo)?void 0:t.billingCycle)}:null})),Da=D((()=>{var e,a;return(null==(e=Ma.value)?void 0:e.planId)??normalizePlanTypeToPlanId((null==(a=ka.value)?void 0:a.currentPlanType)??null)}));t("pricing:billingCycle",wa),t("pricing:currentPlanId",Da),t("pricing:currentSubscription",Ma);const Ua=L(""),Ea=L(!1),za=L(!1),Ba=L(""),Ra=L(""),Oa=L(0),Va=L(""),ja=L(""),qa=L(""),Fa=L(""),Ha=L(!1);let Wa=null;const $a=L(!1),handlePaymentMethodConfirm=()=>{const e=[{item_id:String(Ba.value),item_name:Ra.value,quantity:1,price:Oa.value}];"paypal"!==Ua.value&&"wechat"!==Ua.value||N({payment_type:Ua.value,value:Oa.value,currency:"USD",items:e}),"paypal"===Ua.value?(Ea.value=!1,za.value=!0):"wechat"===Ua.value&&(Ea.value=!1,startWeChatPay())},closePaypalButtonModal=()=>{za.value=!1},startWeChatPay=async()=>{var e,a,l,i,n;try{const t=Number(null==(e=ha.userInfo)?void 0:e.id);if(!ha.isLogin||!t)return void M.error(ba("pricing.pleaseLoginFirst"));const s=(null==(l=null==(a=Ra.value)?void 0:a.trim)?void 0:l.call(a).toLowerCase())??"",o=fa.value.find((e=>(e.name??"").trim().toLowerCase()===s));if(!o)return console.error("WeChat pay: plan not found",{selectedPlanName:Ra.value,selectedNormalized:s,plans:fa.value,planNames:null==(i=fa.value)?void 0:i.map((e=>e.name)),planIds:null==(n=fa.value)?void 0:n.map((e=>e.id))}),void M.error("Invalid plan selected");const r={starter:"STARTER",basic:"BASIC",pro:"PRO",ultimate:"ULTIMATE"}[o.id];if(!r)return void M.error("Invalid plan type");const c={monthly:"MONTHLY",annual:"ANNUAL"}[wa.value]||"MONTHLY";console.log("Creating WeChat subscription payment:",{userId:t,planType:r,billingCycle:c,planName:Ra.value}),Ha.value=!0;const u=await createWeChatPayment({userId:t,planType:r,billingCycle:c});if(0===(null==u?void 0:u.code)||200===(null==u?void 0:u.code)){const e=u.data;ja.value=e.orderId,Va.value=e.qrCode,qa.value=e.merchantName||"AI Designs",Fa.value=String(e.totalFee||""),console.log("✅ WeChat subscription payment created:",{orderId:ja.value,planType:e.planType,billingCycle:e.billingCycle});/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)&&Va.value.startsWith("weixin://")&&(window.location.href=Va.value),startWeChatPaymentPolling(ja.value)}else M.error((null==u?void 0:u.message)||ba("pricing.createPaymentFailed"))}catch(t){console.error("❌ WeChat Pay creation error:",t),M.error(ba("pricing.createPaymentFailed"))}finally{Ha.value=!1}},startWeChatPaymentPolling=e=>{console.log("🔄 Starting payment status polling for orderId:",e),Wa&&Wa(),Wa=pollWeChatPaymentStatus(e,(e=>{console.log("✅ Payment successful:",e),M.success(ba("pricing.paymentSuccess"));const a="number"!=typeof e.usdPrice||Number.isNaN(e.usdPrice)?Oa.value:e.usdPrice;z({transaction_id:e.orderId||`wx_sub_${Date.now()}`,value:a,currency:"USD",payment_type:"wechat_pay",items:[{item_id:String(Ba.value||e.planType||"subscription"),item_name:Ra.value,quantity:1,price:a}]}),closeWeChatPayModal(),fetchSubscriptionStatus(),setTimeout((()=>{window.location.reload()}),1500)}),(e=>{console.log("❌ Payment failed:",e),M.error(ba("pricing.paymentFailed"))}),(()=>{console.log("⏱️ Payment polling timeout"),M.warning(ba("pricing.paymentTimeout"))}),3e3,3e5)},closeWeChatPayModal=()=>{Wa&&(Wa(),Wa=null),Va.value="",ja.value="",qa.value="",Fa.value=""},closeStatusModal=()=>{$a.value=!1};t("pricing:subscribe",(e=>{if((e=>Da.value===e)(e))return void($a.value=!0);const a=fa.value.find((a=>a.id===e));a&&(Ba.value=Ca(e),Ra.value=a.name,Oa.value=Sa(e),Ua.value="",E({value:Oa.value,currency:"USD",items:[{item_id:String(Ba.value),item_name:Ra.value,quantity:1,price:Oa.value}]}),Ea.value=!0)})),s((async()=>{var e;console.log("🔄 index_new.vue onMounted - before loadPricingData, plans.value.length:",fa.value.length),await Ia(),console.log("✅ index_new.vue onMounted - after loadPricingData, plans.value:",fa.value.map((e=>({id:e.id,monthlyPrice:e.monthlyPrice}))));const a=Number(null==(e=ha.userInfo)?void 0:e.id);if(ha.isLogin&&a){try{const e=await o(a);0===(null==e?void 0:e.code)&&(ka.value=e.data??null,console.log("✅ index_new.vue: Credit account loaded:",ka.value))}catch(l){console.error("❌ index_new.vue: Failed to load credit account:",l)}
1await fetchSubscriptionStatus()}else console.log("⚠️ index_new.vue: User not logged in, skipping subscription status fetch")}));const Ya=D((()=>{var e,a,l,i,n,t,s,o;const r=(null==(e=Pa.value)?void 0:e.hasActiveSubscription)&&"ACTIVE"===(null==(a=Pa.value)?void 0:a.subscriptionStatus)&&!!(null==(i=null==(l=Pa.value)?void 0:l.subscription)?void 0:i.subscriptionId);return console.log("🔍 canCancelSubscription computed:",{hasActiveSubscription:null==(n=Pa.value)?void 0:n.hasActiveSubscription,subscriptionStatus:null==(t=Pa.value)?void 0:t.subscriptionStatus,subscriptionId:null==(o=null==(s=Pa.value)?void 0:s.subscription)?void 0:o.subscriptionId,result:r}),r})),Qa=D((()=>{var e,a,l,i;const n=null==(a=null==(e=Pa.value)?void 0:e.planInfo)?void 0:a.planType,t=null==(i=null==(l=Pa.value)?void 0:l.planInfo)?void 0:i.billingCycle;return n&&t?fa.value.filter((e=>e.id!==n.toLowerCase())).map((e=>({id:e.id,name:e.name,price:"MONTHLY"===t?e.monthlyPrice:e.annualPrice,billingCycle:t}))):[]})),confirmCancelSubscription=async()=>{var e,a,l;const i=Number(null==(e=ha.userInfo)?void 0:e.id);if(ha.isLogin&&i&&!xa.value)try{xa.value=!0;const e=null==(l=null==(a=Pa.value)?void 0:a.planInfo)?void 0:l.planId,n=Aa.value.trim()||void 0;console.log("🔴 Calling cancelSubscription with:",{userId:i,planId:e,reason:n});const t=await U({userId:i,planId:e,reason:n});200===(null==t?void 0:t.code)||0===(null==t?void 0:t.code)?(M.success((null==t?void 0:t.data)||"Subscription cancelled successfully."),La.value=!1,Aa.value="",await fetchSubscriptionStatus(),closeStatusModal()):M.error((null==t?void 0:t.message)||"Failed to cancel subscription.")}catch(n){console.error("❌ Cancel subscription error:",n),M.error("An error occurred while cancelling subscription.")}finally{xa.value=!1}},closeSubscriptionModal=()=>{Ea.value=!1,Ua.value=""},handleSubscriptionSuccess=e=>{console.log("Subscription successful!");const a=(null==e?void 0:e.subscription_id)&&String(e.subscription_id).trim()||(null==e?void 0:e.order_id)&&String(e.order_id).trim()||`paypal_sub_${Date.now()}`;z({transaction_id:a,value:Oa.value,currency:"USD",payment_type:"paypal",items:[{item_id:String(Ba.value||"subscription"),item_name:Ra.value,quantity:1,price:Oa.value}]}),setTimeout((()=>{window.location.reload()}),1500)},formatDate=e=>{if(!e)return"N/A";try{return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch(a){return e}};return r((()=>{Wa&&(Wa(),Wa=null)})),(e,l)=>(c(),u("div",null,[d(v(R)),d(k,{name:"modal-fade"},{default:p((()=>{var e,a,i;return[$a.value?(c(),u("div",{key:0,class:"modal-overlay",onClick:closeStatusModal},[m("div",{class:"modal-container",onClick:l[5]||(l[5]=I((()=>{}),["stop"]))},[m("button",{class:"modal-close",onClick:closeStatusModal},[...l[9]||(l[9]=[m("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])]),Pa.value?(c(),u("div",j,[m("div",q,[m("div",F,[m("h2",H,g(Pa.value.planInfo.planName),1),m("span",{class:y(["status-badge",`status-${Pa.value.subscriptionStatus.toLowerCase()}`])},g(Pa.value.subscriptionStatus),3)]),(null==(e=Pa.value.billing)?void 0:e.nextBillingDate)?(c(),u("div",W,[m("span",$,g(v(ba)("pricing.nextBilling"))+":",1),m("span",Y,g(formatDate(Pa.value.billing.nextBillingDate)),1),m("span",Q,"$"+g(Pa.value.billing.amount),1)])):b("",!0)]),m("div",J,[m("div",K,[m("div",G,g(v(ba)("pricing.fastCredits")),1),m("div",X,[h(g(Pa.value.credits.currentPlanCredits.toLocaleString())+" ",1),m("span",Z,"/ "+g(Pa.value.credits.monthlyFastCredits.toLocaleString()),1)]),m("div",ee,g(v(ba)("pricing.monthlyAllocation")),1)]),m("div",ae,[m("div",le,g(v(ba)("pricing.dailyCredits")),1),m("div",ie,[h(g(Pa.value.credits.currentDailyCredits)+" ",1),m("span",ne,"/ "+g(Pa.value.credits.dailyFreeCredits),1)]),m("div",te,g(v(ba)("pricing.refreshesDaily")),1)]),m("div",se,[m("div",oe,g(v(ba)("pricing.totalAvailable")),1),m("div",re,g(Pa.value.credits.totalCredits.toLocaleString()),1),m("div",ce,g(v(ba)("pricing.credits")),1)]),m("div",ue,[m("div",de,g(v(ba)("pricing.concurrentTasks")),1),m("div",ve,g(Pa.value.limits.maxConcurrentTasks),1),m("div",pe,g(v(ba)("pricing.maxParallel")),1)]),m("div",me,[m("div",ge,g(v(ba)("pricing.maxRollover")),1),m("div",ye,g(Pa.value.limits.maxRollover.toLocaleStr
1ing()),1),m("div",be,g(v(ba)("pricing.credits")),1)]),m("div",he,[m("div",we,g(v(ba)("pricing.relaxedMode")),1),m("div",fe,[Pa.value.limits.hasRelaxedAccess?(c(),u("span",Ce,"✓")):(c(),u("span",Se,"✗"))]),m("div",Ie,g(Pa.value.limits.hasRelaxedAccess?v(ba)("pricing.available"):v(ba)("pricing.notAvailable")),1)])]),Pa.value.credits.creditsExpireAt?(c(),u("div",ke,[l[10]||(l[10]=m("svg",{class:"warning-icon",viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),m("span",null,g(v(ba)("pricing.creditsExpireOn"))+" "+g(formatDate(Pa.value.credits.creditsExpireAt)),1)])):b("",!0),(null==(a=Pa.value.subscription)?void 0:a.subscriptionId)?(c(),u("div",Pe,[m("div",_e,[Ta.value?(c(),u("div",xe,[m("div",Te,[m("span",null,g(v(ba)("pricing.selectPlanToUpgrade")),1),m("button",{class:"close-upgrade",onClick:l[1]||(l[1]=e=>Ta.value=!1)}," ✕ ")]),m("div",Le,[(c(!0),u(w,null,f(Qa.value,(e=>(c(),u("button",{key:e.id,class:"upgrade-plan-btn",disabled:Na.value,onClick:a=>(async e=>{var a,l,i;const n=Number(null==(a=ha.userInfo)?void 0:a.id);if(ha.isLogin&&n&&!Na.value)try{Na.value=!0;const a=null==(i=null==(l=Pa.value)?void 0:l.planInfo)?void 0:i.planId;console.log("🔄 Upgrading: Cancelling current subscription...",a);const t=await U({userId:n,planId:a,reason:`Upgrading to ${e.name}`});if(200!==(null==t?void 0:t.code)&&0!==(null==t?void 0:t.code))return void M.error("Failed to cancel current subscription.");console.log("✅ Current subscription cancelled, starting new subscription..."),closeStatusModal(),Ta.value=!1,Ba.value=Ca(e.id),Ra.value=e.name,Oa.value=e.price,E({value:Oa.value,currency:"USD",items:[{item_id:String(Ba.value),item_name:Ra.value,quantity:1,price:Oa.value}]}),Ea.value=!0,M.success(`Upgrading to ${e.name}. Please complete the PayPal subscription.`)}catch(t){console.error("❌ Upgrade error:",t),M.error("An error occurred during upgrade.")}finally{Na.value=!1}})(e)},[m("div",Ne,[m("span",Me,g(e.name),1),m("span",De,"$"+g(e.price)+"/mo",1)]),l[12]||(l[12]=m("svg",{class:"arrow-icon",viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1))],8,Ae)))),128))])])):(c(),u("button",{key:0,class:"upgrade-btn",onClick:l[0]||(l[0]=e=>Ta.value=!0)},[l[11]||(l[11]=m("svg",{viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M3.293 9.707a1 1 0 010-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L4.707 9.707a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1)),h(" "+g(v(ba)("pricing.upgradePlan")),1)]))]),m("div",Ue,[Ya.value&&!La.value?(c(),u("button",{key:0,class:"cancel-btn",onClick:l[2]||(l[2]=e=>La.value=!0)},g(v(ba)("pricing.cancelSubscription")),1)):La.value?(c(),u("div",Ee,[m("div",ze,[l[13]||(l[13]=m("svg",{class:"warning-icon-small",viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1)),m("span",null,g(v(ba)("pricing.subscriptionRemainActive"))+" "+g(formatDate((null==(i=Pa.value.billing)?void 0:i.nextBillingDate)??null)),1)]),C(m("textarea",{"onUpdate:modelValue":l[3]||(l[3]=e=>Aa.value=e),class:"cancel-reason-input",placeholder:v(ba)("pricing.cancelReasonPlaceholder"),rows:"2"},null,8,Be),[[S,Aa.value]]),m("div",Re,[m("button",{class:"cancel-action-btn keep-btn",onClick:l[4]||(l[4]=e=>{La.value=!1,Aa.value=""})},g(v(ba)("pricing.keepSubscription")),1),m("button",{class:"cancel-action-btn confirm-cancel-btn",disabled:xa.value,onClick:confirmCancelSubscription},g(xa.value?v(ba)("pricing.cancelling"):v(ba)("pricing.confirmCancellation")),9,Oe)])])):b("",!0)])])):b("",!0)])):(c(),u("div",Ve,[l[14]||(l[14]=m("div",{class:"loading-spinner"},null,-1)),m("p",null,g(v(ba)("pricing.loadingSubscriptionDetail
1s")),1)]))])])):b("",!0)]})),_:1}),(c(),P(x,{to:"body"},[d(k,{name:"modal-fade"},{default:p((()=>[Ea.value?(c(),u("div",{key:0,class:"paypal-modal-overlay",onClick:I(closeSubscriptionModal,["self"])},[m("div",je,[m("button",{class:"modal-close-btn",onClick:closeSubscriptionModal},[...l[15]||(l[15]=[m("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])]),m("div",qe,[m("h2",Fe,g(v(ba)("pricing.subscribeTitle")),1),m("p",He,[h(g(Ra.value)+" ",1),m("span",We,"$"+g(Oa.value)+"/"+g("monthly"===v(wa)?v(ba)("pricing.month"):v(ba)("pricing.year")),1)])]),m("div",$e,[m("label",Ye,[C(m("input",{type:"radio",name:"payment-method",value:"paypal","onUpdate:modelValue":l[6]||(l[6]=e=>Ua.value=e)},null,512),[[_,Ua.value]]),l[16]||(l[16]=m("span",{class:"payment-method-label"},[m("span",{class:"payment-method-text"},"PayPal")],-1)),m("div",Qe,[m("p",null,g(v(ba)("pricing.paypalSubscriptionNote")),1)])]),m("label",Je,[C(m("input",{type:"radio",name:"payment-method",value:"wechat","onUpdate:modelValue":l[7]||(l[7]=e=>Ua.value=e)},null,512),[[_,Ua.value]]),m("span",Ke,[m("span",Ge,g(v(ba)("pricing.wechatPay")),1)]),m("div",Xe,[m("div",Ze,[l[17]||(l[17]=m("svg",{class:"warning-icon-small",viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1)),m("span",null,g(v(ba)("pricing.wechatOneTimeNote")),1)])])])]),m("button",{class:"continue-payment-btn",disabled:!Ua.value,onClick:handlePaymentMethodConfirm},g(v(ba)("pricing.continueToPayment")),9,ea)])])):b("",!0)])),_:1})])),d(v(a),{"is-visible":za.value,"plan-id":Ba.value,"plan-name":Ra.value,"plan-price":Oa.value,"billing-cycle":v(wa),onClose:closePaypalButtonModal,onSuccess:handleSubscriptionSuccess},null,8,["is-visible","plan-id","plan-name","plan-price","billing-cycle"]),(c(),P(x,{to:"body"},[d(k,{name:"modal-fade"},{default:p((()=>[Va.value?(c(),u("div",{key:0,class:"wechat-pay-modal-overlay",onClick:closeWeChatPayModal},[m("div",{class:"wechat-pay-modal",onClick:l[8]||(l[8]=I((()=>{}),["stop"]))},[m("button",{class:"modal-close-btn",onClick:closeWeChatPayModal},[...l[18]||(l[18]=[m("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[m("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})],-1)])]),m("div",aa,[l[19]||(l[19]=m("img",{class:"wechat-modal-logo",src:O,alt:"WeChat Pay"},null,-1)),m("div",la,[m("h3",ia,g(v(ba)("pricing.wechatPay")),1),m("span",na,g(v(ba)("pricing.oneTimePayment")),1)])]),m("div",ta,[m("div",sa,[d(v(V),{value:Va.value,width:220,height:220},null,8,["value"])]),m("div",oa,[m("div",ra,[m("span",ca,g(v(ba)("pricing.orderNumber"))+":",1),m("span",ua,g(ja.value),1)]),qa.value?(c(),u("div",da,[m("span",va,g(v(ba)("pricing.merchant"))+":",1),m("span",pa,g(qa.value),1)])):b("",!0)]),m("p",ma,g(v(ba)("pricing.scanQRCode")),1),m("div",ga,[l[20]||(l[20]=m("div",{class:"loading-dots"},[m("span"),m("span"),m("span")],-1)),m("span",null,g(v(ba)("pricing.autoDetectingPayment")),1)]),m("div",ya,[l[21]||(l[21]=m("svg",{class:"notice-icon",viewBox:"0 0 20 20",fill:"currentColor"},[m("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})],-1)),m("span",null,g(v(ba)("pricing.wechatSubscriptionNotice")),1)])])])])):b("",!0)])),_:1})]))]))}}),[["__scopeId","data-v-681525ca"]]);export{ba 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.