1import{_ as pt}from"./L6sJQF1O.js";import{_ as mt}from"./D1o-wRve.js";import{_ as He,e as Ke,o as l,c as i,a as t,t as a,B as E,ae as J,j as n,q as F,l as v,m as c,ab as ht,y,aQ as _t,g as ft,u as gt,aR as yt,$ as ue,aS as kt,f as bt,R as Be,h as wt,an as $t,i as Ct,F as g,r as L,k as b,C as Z,aT as Ue,d as h,a1 as je,w as Pt,x as Oe,aU as ve,b as Dt,v as Mt,aV as St,aW as Lt,aX as Tt,aY as Et,aZ as At,a_ as It,ad as Nt,a$ as Vt}from"./Rv12JP1g.js";const Rt={class:"modal-wrapper"},Bt={class:"modal-content"},Ut={class:"title"},jt={class:"form-item","data-handle":"currentPassword"},Ot={class:"label"},Ht=["placeholder"],Kt={key:0,class:"error"},zt={class:"form-item","data-handle":"newPassword"},Ft={class:"label"},Yt=["placeholder"],Gt={key:0,class:"error"},qt={class:"form-item","data-handle":"confirmPassword"},Qt={class:"label"},Xt=["placeholder"],Zt={key:0,class:"error"},Jt={__name:"ChangePasswordModal",emits:["close"],setup(ze,{emit:Y}){const{locale:W,t:r}=Ke(),j=Y,w=c(),_=c(),$=c(),k=ht({password:!1,new_password:!1,confirm:!1}),A=c(""),f=y(()=>{const u={password:"",new_password:"",confirm:""};return A.value?u.password=A.value:w.value&&(w.value.length<6||w.value.length>18)?u.password=r("account.error-2"):w.value||(u.password=r("account.error-1")),_.value&&(_.value.length<6||_.value.length>18)?u.new_password=r("account.error-2"):_.value||(u.new_password=r("account.error-1")),$.value!==_.value?u.confirm=r("account.error-3"):$.value||(u.confirm=r("account.error-4")),u}),I=y(()=>{const u=w.value.length,p=_.value.length;return u>=6&&u<=18&&p>=6&&p<=18&&$.value===_.value}),x=async()=>{if(Object.keys(k).forEach(u=>k[u]=!0),!!I.value)try{await _t({password:w.value,new_password:_.value}),j("close")}catch({error:u}){A.value=r("account.error-5")}};return(u,p)=>
1(l(),i("div",Rt,[t("div",Bt,[t("div",{class:"close",onClick:p[0]||(p[0]=m=>u.$emit("close"))}),t("div",Ut,a(u.$t("account.title")),1),t("div",jt,[t("div",Ot,a(u.$t("account.current")),1),E(t("input",{type:"text",placeholder:u.$t("account.current-placeholder"),"onUpdate:modelValue":p[1]||(p[1]=m=>F(w)?w.value=m:null),onBlur:p[2]||(p[2]=m=>n(k).password=!0)},null,40,Ht),[[J,n(w)]]),n(k).password&&n(f).password?(l(),i("div",Kt,a(n(f).password),1)):v("",!0)]),t("div",zt,[t("div",Ft,a(u.$t("account.new")),1),E(t("input",{type:"text",placeholder:u.$t("account.new-placeholder"),"onUpdate:modelValue":p[3]||(p[3]=m=>F(_)?_.value=m:null),onBlur:p[4]||(p[4]=m=>n(k).new_password=!0)},null,40,Yt),[[J,n(_)]]),n(k).new_password&&n(f).new_password?(l(),i("div",Gt,a(n(f).new_password),1)):v("",!0)]),t("div",qt,[t("div",Qt,a(u.$t("account.confirm")),1),E(t("input",{type:"text",placeholder:u.$t("account.confirm-placeholder"),"onUpdate:modelValue":p[5]||(p[5]=m=>F($)?$.value=m:null),onBlur:p[6]||(p[6]=m=>n(k).confirm=!0)},null,40,Xt),[[J,n($)]]),n(k).confirm&&n(f).confirm?(l(),i("div",Zt,a(n(f).confirm),1)):v("",!0)]),t("div",{class:"btn",onClick:x},a(u.$t("account.submit")),1)])]))}},Wt=He(Jt,[["__scopeId","data-v-c92bbd23"]]),xt={class:"account-wrapper"},ea={class:"account-content"},ta={class:"menu","data-handle":"menu"},aa=["data-target","onClick"],sa={class:"account-panel"},oa=["aria-label"],na={class:"account-card info-content"},la={class:"info"},ia={class:"info-item"},ra={class:"info-label"},ca={class:"info-value"},da={class:"info-item"},ua={class:"info-label"},va={class:"info-value info-value-password"},pa={key:0},ma={class:"account-card plan-content"},ha={class:"card-header"},_a={class:"title"},fa={class:"banner-actions"},ga={class:"dropdown-menu"},ya={key:0,class:"plan-summary plan-summary-mobile"},ka={class:"summary-card summary-card-total"},ba={class:"summary-label"},wa={class:"summary-value"},$a={class:"summary-card summary-card-detail"},Ca={class:"summary-label"},Pa={class:"summary-value"},Da={key:1,class:"plan-summary"},Ma={class:"summary-item"},Sa={class:"summary-label"},La={class:"summary-value"},Ta={key:0,class:"summary-divider"},Ea={key:1,class:"summary-divider"},Aa={class:"plan-section"},Ia={class:"section-label"},Na={class:"plan-item-header"},Va={class:"plan-name"},Ra={key:0,class:"plan-credit"},Ba={class:"plan-item-footer"},Ua={key:0,class:"plan-meta"},ja={key:1,class:"plan-meta"},Oa={key:0,class:"plan-empty"},Ha={class:"plan-section"},Ka={class:"section-label"},za={class:"plan-item-header"},Fa={class:"plan-name"},Ya={key:0,class:"plan-credit"},Ga={class:"plan-item-footer"},qa={class:"plan-meta"},Qa={key:0,class:"plan-meta"},Xa={key:0,class:"plan-empty"},Za={class:"plan-note"},Ja={class:"account-card delete-content"},Wa={key:0,class:"delete-panel"},xa={class:"delete-description"},es={class:"order-content"},ts={class:"title"},as={class:"list-header"},ss={class:"list-column"},os={class:"list-column"},ns={class:"list-column"},ls={class:"list-column"},is={key:0,class:"list-loading"},rs={class:"loading-text"},cs={key:1,class:"list-blank"},ds={key:2},us={class:"list-column"},vs={class:"list-column"},ps={class:"list-column"},ms={key:3,class:"list-pagination"},hs={"data-handle":"orderPaginationNumber"},_s=["onClick"],fs={class:"order-content credit-content"},gs={class:"credit-head"},ys={class:"title"},ks={class:"credit-search"},bs=["placeholder"],ws=["aria-label"],$s=["aria-label"],Cs={class:"list-header"},Ps={class:"list-column"},Ds={class:"list-column"},Ms={class:"list-column"},Ss={key:0,class:"list-loading"},Ls={class:"loading-text"},Ts={key:1,class:"list-blank"},Es={key:2,class:"list-blank"},As={key:3},Is={class:"list-column"},Ns={class:"list-column"},Vs={class:"list-column"},Rs={key:4,class:"list-pagination"},Bs={"data-handle":"creditPaginationNumber"},Us=["onClick"],js={class:"delete-modal"},Os={class:"delete-modal-title"},Hs={class:"checkbox-box"},Ks={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},zs={class:"checkbox-label"},T=3,pe=500,Fs={__name:"index",setup(ze){const Y=ft(),{locale:W,t:r}=Ke(),j=W.value==="en"?"":`${W.value}/`,{success:w,error:_}=Nt(),$=c(!1),k=c(!1),A=c(!1),f=c(!1),I=c(!1),x=()=>{A.value=!0,f.value=!1},u=()=>{I.value||(A.value=!1)},p=async()=>
1{if(!(!f.value||I.value)){I.value=!0;try{await It(),w(r("account.delete-account-toast-success")),A.value=!1,setTimeout(()=>{qe(),window.dispatchEvent(new Event("outside-storage")),Be(Y("/"))},1200)}catch(e){_(e?.message||r("account.delete-account-toast-error"))}finally{I.value=!1}}};gt({title:r("account.head_title"),meta:[{name:"robots",content:"noindex"},{name:"description",content:r("account.head_description")},{property:"og:title",content:r("account.head_title")},{property:"og:description",content:r("account.head_description")},{property:"og:url",content:`https://somio.ai/${j}account/`},{property:"og:image",content:"https://somio.ai/asset/images/home/sns.png"},{name:"twitter:title",content:r("account.head_title")},{name:"twitter:description",content:r("account.head_description")},{name:"twitter:image",content:"https://somio.ai/asset/images/home/sns.png"},{name:"twitter:image:alt",content:r("account.head_title")}],link:[{rel:"canonical",href:`https://somio.ai/${j}account/`},{rel:"shortcut icon",href:"https://somio.ai/favicon.ico"},{rel:"alternate",hreflang:"en",href:"https://somio.ai/account/"},{rel:"alternate",hreflang:"it",href:"https://somio.ai/it/account/"},{rel:"alternate",hreflang:"de",href:"https://somio.ai/de/account/"},{rel:"alternate",hreflang:"fr",href:"https://somio.ai/fr/account/"},{rel:"alternate",hreflang:"es",href:"https://somio.ai/es/account/"},{rel:"alternate",hreflang:"pt",href:"https://somio.ai/pt/account/"},{rel:"alternate",hreflang:"ja",href:"https://somio.ai/ja/account/"},{rel:"alternate",hreflang:"ko",href:"https://somio.ai/ko/account/"},{rel:"alternate",hreflang:"nl",href:"https://somio.ai/nl/account/"},{rel:"alternate",hreflang:"ro",href:"https://somio.ai/ro/account/"},{rel:"alternate",hreflang:"zh-tw",href:"https://somio.ai/zh-tw/account/"},{rel:"alternate",hreflang:"zh-cn",href:"https://somio.ai/zh-cn/account/"},{rel:"alternate",hreflang:"pl",href:"https://somio.ai/pl/account/"},{rel:"alternate",hreflang:"x-default",href:"https://somio.ai/account/"}]});const m=c("account"),Fe=["account","order","credit"],me=yt(),he=e=>{const s=String(e||"");Fe.includes(s)&&(m.value=s)};ue(()=>me.query.tab,he);const{initAuth:_e,syncAuthState:Ye,isLogined:Ge,info:N,logout:qe}=kt(),{isMobile:fe}=bt(),Qe=y(()=>[{key:"account",label:r("account.account-center")},{key:"order",label:r("account.my-order")},{key:"credit",label:r("account.credit-history")}]),R=c({}),ee=c(!1),Xe=(e,s=!1)=>
1{if(!e)return"";const d=new Date(String(e).replace(" ","T"));if(Number.isNaN(d.getTime())||d.getFullYear()>=2100)return"";const M=`${d.getMonth()+1}/${d.getDate()}/${d.getFullYear()}`;if(!s)return M;const o=d.getHours()%12||12,S=String(d.getMinutes()).padStart(2,"0"),X=d.getHours()>=12?"PM":"AM";return`${M}, ${o}:${S} ${X}`},ge=async()=>{if(!ee.value){ee.value=!0;try{for(let e=1;e<=T;e++)try{R.value=await Et()||{};return}catch(s){if(console.log(`loadCreditOverview 第 ${e}/${T} 次请æ±å¤±è´¥`,s),e===T){R.value={};return}await new Promise(d=>setTimeout(d,pe))}}finally{ee.value=!1}}},ye=e=>({id:e.id,name:e.item_name||"",remaining:e.remain_nums??0,total:e.nums??0,creditDetailAvailable:e.credit_detail_available!==!1}),Ze={credit_refresh:"account.next-refresh",billing:"account.next-renewal",expiry:"account.expires"},ke=e=>{const s=Ze[e.next_event_type]||"",d=Xe(e.next_event_at,!0);return!s||!d?{metaLabel:"",metaDate:""}:{metaLabel:s,metaDate:d}},Je=y(()=>N.value?.email||""),be=y(()=>N.value?.is_password_empty==0),We=y(()=>!N.value||Object.keys(N.value).length===0),we=y(()=>(R.value.subscription_orders||[]).map(e=>({...ye(e),...ke(e)}))),$e=y(()=>(R.value.payg_orders||[]).map(e=>({...ye(e),...ke(e)}))),Ce=y(()=>R.value.credit_breakdown_available===!1),O=y(()=>{const e=R.value,s=e.credit_breakdown_available!==!1;return[{key:"total",label:r("account.total-remaining-credits"),mobileLabel:r("account.total-remaining-credits"),value:e.total_remaining_credits??0,available:!0},{key:"subscription",label:r("account.subscription-credits"),mobileLabel:r("account.subscription-credits-short"),value:e.subscription_credits??0,available:s},{key:"payg",label:r("account.pay-as-you-go-credits"),mobileLabel:r("account.pay-as-you-go-credits-short"),value:e.payg_credits??0,available:s},{key:"bonus",label:r("account.bonus-credits"),mobileLabel:r("account.bonus-credits-short"),value:e.bonus_credits??0,available:s}]});_e(),Ye(),ue(Ge,e=>{e||Be(`/${j}`)});const xe=e=>{e.disabled||(m.value=e.key)},C=c(!1),te=c(null),Pe=c(null),De=e=>{C.value&&(Pe.value?.contains(e.target)||(C.value=!1))},et=y(()=>{const e=N.value?.subscription_status;return!!e&&e.auto_renewing===!1}),tt="lj_live_somio",Me=async()=>{if(C.value=!1,!ae.value){_(r("pricing.update-payment-error"));return}try{const s=(await At({subscription_id:ae.value,metadata:{environment:tt}}))?.url;if(!s){_(r("pricing.update-payment-error"));return}window.location.href=s}catch{_(r("pricing.update-payment-error"))}},at=()=>{C.value=!1,te.value?.openCancel()},st=()=>{C.value=!1,te.value?.openRenew()},G=y(()=>N.value?.active_plans?.[0]),Se=y(()=>!!G.value?.plan_type),ae=y(()=>G.value?.stripe_subscription_id||G.value?.subscription_id||""),ot=async()=>{try{const e=await Vt();e&&(localStorage.setItem("userInfo",JSON.stringify(e)),N.value=e)}catch{_e()}},se=()=>{setTimeout(()=>{ot(),ge()},1e3)},H=c(1),nt=c(10),lt=c(1),oe=c(0),q=c([]),ne=c(!1),Le=async()=>{ne.value=!0;try{for(let e=1;e<=T;e++)try{const s=await Tt({page:H.value,perPage:nt.value});q.value=s.list,lt.value=s.total,oe.value=s.totalPages;return}catch(s){if(console.log(`getOrderList 第 ${e}/${T} 次请æ±å¤±è´¥`,s),e===T)return;await new Promise(d=>setTimeout(d,pe))}}finally{ne.value=!1}},le=async e=>{e<1||e>oe.value||(H.value=e,await Le())},P=c(1),it=c(10),V=c(""),K=c(""),B=c([]),U=c(0),z=c(!1),ie=c(!1);let re=null;const ce=async()=>{if(!z.value){z.value=!0,ie.value=!1;try{for(let e=1;e<=T;e++)try{const s=await Lt({page:P.value,size:it.value,keyword:V.value});B.value=Ae(s?.list||[]),U.value=s?.total_pages||0;return}catch(s){if(console.log(`getCreditHistoryList 第 ${e}/${T} 次请æ±å¤±è´¥`,s),e===T){B.value=[],U.value=0,ie.value=!0;return}await new Promise(d=>setTimeout(d,pe))}}finally{z.value=!1}}},Q=()=>{clearTimeout(re),P.value=1,ce()},rt=()=>{clearTimeout(re),re=setTimeout(Q,400)},Te=()=>{V.value="",Q()},de=e=>{typeof e!="number"||e<1||e>U.value||z.value||(P.value=e,ce())},Ee={mobile:3,desktop:7},ct=y(()=>{const e=U.value,s=Array.from({length:e},(S,X)=>X+1),d=fe.value?Ee.mobile:Ee.desktop;if(e<=d)return s;const M=Math.floor((d-1)/2),o=Math.min(Math.max(P.value-M,1),e-d+1);return[...o>1?["..."]:[],...s.slice(o-1,o-1+d),...o+d-1<e?["..."]:[]]}),Ae=e=>!K.value||!e?.length?e:[...e].sort((s,d)=>{const M=new Date(String(s.occurred_at).replace(" ","T"))-new Date(String(d.occurred_at).replace(" ","T"));return K.value==="asc"?M:-M}),Ie=()=>{K.value=K.value==="asc"?"desc":"asc",B.value=Ae(B.value)}
1,dt=["plan_purchase","plan_renewal","plan_refresh","payg_purchase","credit_returned","welcome_gift","referral_reward","share_reward","activity_reward"],ut=e=>{const s=e?.event_type;return s==="credit_consume"?"change-white":s==="plan_expired"?"change-cost":dt.includes(s)||Number(e?.change_amount)>=0?"change-gain":"change-cost"},vt=e=>{const s=Number(e)||0;return`${s>=0?"+":"-"}${D(Math.abs(s))}`};ue(m,e=>{e==="credit"&&ce()});const D=e=>new Intl.NumberFormat("en-US").format(e||0),Ne=e=>{if(!e?.total)return 0;const s=(e.total-e.remaining)/e.total*100;return Math.max(0,Math.min(100,Math.round(s)))},Ve=e=>{if(!e?.total)return 0;const s=e.remaining/e.total*100;return Math.max(0,Math.min(100,Math.round(s)))},Re=()=>{N.value?.is_password_empty==1?typeof window.somioSetPassword=="function"?window.somioSetPassword():console.warn("External method window.somioSetPassword is not defined"):$.value=!0};return wt(async()=>{he(me.query.tab||$t("tab")),document.addEventListener("pointerdown",De),await Promise.all([Le(),ge()])}),Ct(()=>{document.removeEventListener("pointerdown",De)}),(e,s)=>{const d=pt,M=mt;return l(),i(g,null,[t("div",xt,[t("div",ea,[t("div",ta,[(l(!0),i(g,null,L(n(Qe),o=>(l(),i("div",{key:o.key,"data-target":o.key,class:b(["menu-item",n(m)===o.key?"active":"",o.disabled?"disabled":""]),onClick:S=>xe(o)},a(o.label),11,aa))),128))]),E(t("div",sa,[n(We)?(l(),i("div",{key:0,class:"account-panel-loading","aria-label":e.$t("account.loading")},[...s[9]||(s[9]=[Ue('<div class="skeleton-card info-skeleton" data-v-325fcb11><div class="skeleton-avatar skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-lines" data-v-325fcb11><div class="skeleton-line skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-line skeleton-shimmer" data-v-325fcb11></div></div></div><div class="skeleton-card plan-skeleton" data-v-325fcb11><div class="skeleton-row skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-grid" data-v-325fcb11><div class="skeleton-cell skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-cell skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-cell skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-cell skeleton-shimmer" data-v-325fcb11></div></div><div class="skeleton-bar skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-row skeleton-shimmer" data-v-325fcb11></div><div class="skeleton-bar skeleton-shimmer" data-v-325fcb11></div></div><div class="skeleton-card delete-skeleton" data-v-325fcb11><div class="skeleton-row skeleton-shimmer" data-v-325fcb11></div></div>',3)])],8,oa)):(l(),i(g,{key:1},[t("div",na,[s[10]||(s[10]=t("div",{class:"avatar"},null,-1)),t("div",la,[t("div",ia,[t("div",ra,a(e.$t("account.email"))+":",1),t("div",ca,a(n(Je)),1)]),t("div",da,[t("div",ua,a(e.$t("account.password"))+":",1),t("div",va,[n(be)?(l(),i("span",pa,"******")):v("",!0),n(be)?(l(),i("div",{key:1,class:"edit",onClick:Re})):(l(),i("div",{key:2,class:"btn-set",onClick:Re},a(e.$t("account.set-password")),1))])])])]),t("div",ma,[t("div",ha,[t("div",_a,a(e.$t("account.your-active-plans")),1),t("div",fa,[n(Se)&&n(et)?(l(),i(g,{key:0},[t("div",{class:"btn-manage renew-btn",onClick:st},a(e.$t("pricing.renew-subscription")),1),t("div",{class:"btn-manage update-payment-btn",onClick:Me},a(e.$t("pricing.update-payment")),1)],64)):n(Se)?(l(),i("div",{key:1,ref_key:"manageDropdownRef",ref:Pe,class:"manage-subscription dropdown"},[t("div",{class:"btn-manage manage-btn",onClick:s[0]||(s[0]=o=>C.value=!n(C))},[h(a(e.$t("account.manage-subscription"))+" ",1),t("span",{class:b(["arrow",{"is-open":n(C)}])},null,2)]),E(t("div",ga,[t("div",{class:"dropdown-item",onClick:Me},a(e.$t("pricing.update-payment")),1),n(G).period!=="lifetime"?(l(),i("div",{key:0,class:"dropdown-item",onClick:at},a(e.$t("pricing.cancel-plan")),1)):v("",!0)],512),[[Z,n(C)]])],512)):(l(),je(d,{key:2,class:"btn-manage upgrade-btn",to:n(Y)("/pricing/")},{default:Pt(()=>[h(a(e.$t("account.upgrade")),1)]),_:1},8,["to"]))])]),n(fe)?(l(),i("div",ya,[t("div",ka,[t("div",ba,a(n(O)[0].label),1),t("div",wa,a(D(n(O)[0].value)),1)]),t("div",$a,[(l(!0),i(g,null,L(n(O).slice(1),o=>(l(),i("div",{key:o.key,class:"summary-item"}
1,[t("div",Ca,a(o.mobileLabel),1),t("div",Pa,a(o.available?D(o.value):"-"),1)]))),128))])])):(l(),i("div",Da,[(l(!0),i(g,null,L(n(O),(o,S)=>(l(),i(g,{key:o.key},[t("div",Ma,[t("div",Sa,a(o.label),1),t("div",La,a(o.available?D(o.value):"-"),1)]),S===0?(l(),i("div",Ta,"=")):S<n(O).length-1?(l(),i("div",Ea,"+")):v("",!0)],64))),128))])),t("div",Aa,[t("div",Ia,a(e.$t("account.suscription-plan")),1),(l(!0),i(g,null,L(n(we),o=>(l(),i("div",{key:o.id,class:"plan-item"},[t("div",Na,[t("div",Va,a(o.name),1),o.creditDetailAvailable?(l(),i("div",Ra,a(D(o.remaining))+" / "+a(D(o.total))+" "+a(e.$t("account.credits")),1)):v("",!0)]),o.creditDetailAvailable?(l(),i("div",{key:0,class:"plan-progress-track",style:Oe({"--progress-width":`${Ve(o)}%`})},[...s[11]||(s[11]=[t("div",{class:"plan-progress-value"},null,-1)])],4)):v("",!0),t("div",Ba,[o.metaDate?(l(),i("div",Ua,a(e.$t(o.metaLabel))+" "+a(o.metaDate),1)):v("",!0),o.creditDetailAvailable?(l(),i("div",ja,a(Ne(o))+"% "+a(e.$t("account.used")),1)):v("",!0)])]))),128)),n(we).length?v("",!0):(l(),i("div",Oa,a(e.$t(n(Ce)?"account.not-displayed":"account.no-active-subscription-plan")),1))]),t("div",Ha,[t("div",Ka,a(e.$t("account.pay-as-you-go-plan")),1),(l(!0),i(g,null,L(n($e),o=>(l(),i("div",{key:o.id,class:"plan-item"},[t("div",za,[t("div",Fa,a(o.name),1),o.creditDetailAvailable?(l(),i("div",Ya,a(D(o.remaining))+" / "+a(D(o.total))+" "+a(e.$t("account.credits")),1)):v("",!0)]),o.creditDetailAvailable?(l(),i("div",{key:0,class:"plan-progress-track",style:Oe({"--progress-width":`${Ve(o)}%`})},[...s[12]||(s[12]=[t("div",{class:"plan-progress-value"},null,-1)])],4)):v("",!0),t("div",Ga,[t("div",qa,[o.metaDate?(l(),i(g,{key:0},[h(a(e.$t(o.metaLabel))+" "+a(o.metaDate),1)],64)):(l(),i(g,{key:1},[h(a(e.$t("account.no-expiration")),1)],64))]),o.creditDetailAvailable?(l(),i("div",Qa,a(Ne(o))+"% "+a(e.$t("account.used")),1)):v("",!0)])]))),128)),n($e).length?v("",!0):(l(),i("div",Xa,a(e.$t(n(Ce)?"account.not-displayed":"account.no-active-pay-as-you-go-plan")),1))]),t("div",Za,a(e.$t("account.plan-details-note")),1)]),t("div",Ja,[t("div",{class:"delete-toggle",onClick:s[1]||(s[1]=o=>k.value=!n(k))},[t("span",null,a(e.$t("account.account-deletion")),1),t("span",{class:b(["delete-arrow",n(k)?"expanded":""])},null,2)]),n(k)?(l(),i("div",Wa,[t("div",xa,a(e.$t("account.delete-account")),1),t("div",{class:"delete-account-btn",onClick:x},[t("span",null,a(e.$t("account.delete-account-button")),1),s[13]||(s[13]=Ue('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-325fcb11><path d="M3 6H5H21" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-325fcb11></path><path d="M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-325fcb11></path><path d="M10 11V17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-325fcb11></path><path d="M14 11V17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-325fcb11></path></svg>',1))])])):v("",!0)])],64))],512),[[Z,n(m)==="account"]]),E(t("div",es,[t("div",ts,a(e.$t("account.order-title")),1),t("div",as,[t("div",ss,a(e.$t("account.orderID")),1),t("div",os,a(e.$t("account.orderPlan")),1),t("div",ns,a(e.$t("account.orderDate")),1),t("div",ls,a(e.$t("account.orderStatus")),1)]),n(ne)?(l(),i("div",is,[s[14]||(s[14]=t("div",{class:"loading-icon"},null,-1)),t("div",rs,a(e.$t("account.loading")),1)])):n(q).length?(l(),i("div",ds,[(l(!0),i(g,null,L(n(q),o=>(l(),i("div",{class:"list-row",key:o.id},[t("div",us,[t("span",null,a(e.$t("account.orderID")),1),h(a(o.id),1)]),t("div",vs,[t("span",null,a(e.$t("account.orderPlan")),1),h(a(o.item_name),1)]),t("div",ps,[t("span",null,a(e.$t("account.orderDate")),1),h(a(o.payment_date),1)]),t("div",{class:b(["list-column",o.status==="Active"?"status_active":"status"])},[t("span",null,a(e.$t("account.orderStatus")),1),h(a(o.status),1)],2)]))),128))])):(l(),i("div",cs,a(e.$t("account.no-data")),1)),n(q).length?(l(),i("div",ms,[t("div",{class:"list-pagination-pre",onClick:s[2]||(s[2]=o=>le(n(H)-1))},[s[15]||(s[15]=h(" < ",-1)),t("span",null,a(e.$t("account.pre")),1)]),t("div",hs,[(l(!0),i(g,null,L(n(oe),o=>(l(),i("div",{key:o,class:b(["list-pagination-item",n(H)===o?"active":""]),onClick:S=>le(o)},a(o),11,_s))),128))]),t("div",{class:"list-pagination-next",onClick:s[3]||(s[3]=o=>le(n(H)+1))},[t("span",null,a(e.$t("account.next")),1),s[16]||(s[16]=h(" > ",-1))])])):v("",!0)],512),[[Z,n(m)==="order"]]),E(t("div",fs,[t("div",gs,[t("div",ys,a(e.$t("account.credit-history")),1),t("div",ks,[E(t("input",{"onUpdate:modelValue":s[4]||(s[4]=o=>F(V)?V.value=o:null),type:"text",class:b({"has-value":!!n(V)}),placeholder:e.$t("account.credit-search-placeholder"),onKeyup:ve(Q,["enter"]),onInput:rt},null,42,bs),[[J,n(V),void 0,{trim:!0}]]),n(V)?(l(),i("div",{key:0,class:"credit-search-clear",role:"button",tabindex:"0","aria-label":e.$t("account.credit-search-clear"),onClick:Te,onKeyup:ve(Te,["enter"])},[...s[17]||(s[17]=[t("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round"},[t("line",{x1:"6",y1:"6",x2:"18",y2:"18"}),t("line",{x1:"18",y1:"6",x2:"6",y2:"18"})],-1)])],40,ws)):v("",!0),t("div",{class:"credit-search-btn","aria-label":e.$t("account.credit-search-placeholder"),onClick:Q},[...s[18]||(s[18]=[t("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},[t("circle",{cx:"11",cy:"11",r:"8"}),t("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})],-1)])],8,$s)])]),t("div",Cs,[t("div",Ps,a(e.$t("account.credit-description")),1),t("div",Ds,a(e.$t("account.credit-change")),1),t("div",Ms,a(e.$t("account.credit-remaining")),1),t("div",{class:"list-column credit-date-col",role:"button",tabindex:"0",onClick:Ie,onKeyup:ve(Ie,["enter"])},[h(a(e.$t("account.credit-date"))+" ",1),t("span",{class:b(["credit-date-arrow",n(K)])},null,2)],32)]),n(z)?(l(),i("div",Ss,[s[19]||(s[19]=t("div",{class:"loading-icon"},null,-1)),t("div",Ls,a(e.$t("account.loading")),1)])):n(ie)?(l(),i("div",Ts,a(e.$t("account.credit-load-failed")),1)):n(B).length?(l(),i("div",As,[(l(!0),i(g,null,L(n(B),o=>(l(),i("div",{class:"list-row",key:o.id},[t("div",Is,[t("span",null,a(e.$t("account.credit-description")),1),h(a(o.description),1)]),t("div",{class:b(["list-column",ut(o)])},[t("span",null,a(e.$t("account.credit-change")),1),h(a(vt(o.change_amount)),1)],2),t("div",Ns,[t("span",null,a(e.$t("account.credit-remaining")),1),h(a(D(o.remaining_total)),1)]),t("div",Vs,[t("span",null,a(e.$t("account.credit-date")),1),h(a(o.occurred_at),1)])]))),128))])):(l(),i("div",Es,a(e.$t("account.no-data")),1)),n(U)>1?(l(),i("div",Rs,[t("div",{class:b(["list-pagination-pre",{disabled:n(P)<=1}
1]),onClick:s[5]||(s[5]=o=>de(n(P)-1))},[s[20]||(s[20]=h(" < ",-1)),t("span",null,a(e.$t("account.pre")),1)],2),t("div",Bs,[(l(!0),i(g,null,L(n(ct),(o,S)=>(l(),i("div",{key:S,class:b(["list-pagination-item",{ellipsis:o==="...",active:n(P)===o}]),onClick:X=>de(o)},a(o),11,Us))),128))]),t("div",{class:b(["list-pagination-next",{disabled:n(P)>=n(U)}]),onClick:s[6]||(s[6]=o=>de(n(P)+1))},[t("span",null,a(e.$t("account.next")),1),s[21]||(s[21]=h(" > ",-1))],2)])):v("",!0)],512),[[Z,n(m)==="credit"]])]),Dt(M,{ref_key:"modalsRef",ref:te,"subscription-id":n(ae),onRenewed:se,onCancelled:se,onDiscounted:se},null,8,["subscription-id"]),n($)?(l(),je(Wt,{key:0,onClose:s[7]||(s[7]=o=>$.value=!1)})):v("",!0)]),n(A)?(l(),i("div",{key:0,class:"modal-overlay delete-modal-overlay",onClick:Mt(u,["self"])},[t("div",js,[t("p",Os,a(e.$t("account.delete-account-confirm-title")),1),t("label",{class:b(["delete-modal-checkbox",{checked:n(f)}])},[E(t("input",{type:"checkbox","onUpdate:modelValue":s[8]||(s[8]=o=>F(f)?f.value=o:null)},null,512),[[St,n(f)]]),t("span",Hs,[n(f)?(l(),i("svg",Ks,[...s[22]||(s[22]=[t("polyline",{points:"20 6 9 17 4 12"},null,-1)])])):v("",!0)]),t("span",zs,a(e.$t("account.delete-account-confirm-checkbox")),1)],2),t("div",{class:b(["confirm-delete-btn",{disabled:!n(f)||n(I)}]),onClick:p},a(n(I)?e.$t("account.loading"):e.$t("account.delete-account-confirm-button")),3)])])):v("",!0)],64)}}},Qs=He(Fs,[["__scopeId","data-v-325fcb11"]]);export{Qs 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.