import{d as S}from"./dayjs.min-QtCe8tbb.js";import{d as k,O as V,c as r,v as h,u as a,T as B,P as g,o as c,g as I,z as N,k as T,j as $,s as Y,F as D,a as o,w as s,l as e,m as i,r as F,t,U as y}from"./iconify-rhDH-VLI.js";import{u as L}from"./options.store-DfYED2ZT.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./useTheme-B_7ggifZ.js";const z={class:"w-full flex items-start my-1"},M={key:1,class:"flex-1 min-w-0"},m=k({__name:"LabelField",props:{labelWidth:{default:"120px"}},setup(w){const d=V();return(l,_)=>(c(),r("div",z,[a(d).label?(c(),r("div",{key:0,class:"text-gray-400 flex-shrink-0",style:B({width:l.labelWidth})},[g(l.$slots,"label")],4)):h("",!0),a(d).content?(c(),r("div",M,[g(l.$slots,"content")])):h("",!0)]))}}),O={class:"p-2"},P={class:"field-label"},R={class:"flex items-center gap-1"},W={class:"flex items-center gap-1"},q={class:"btn btn-info btn-sm btn-soft"},E={class:"field-label"},U={class:"field-label"},A={class:"field-label"},G={class:"mt-2"},H={class:"btn btn btn-success text-white"},J=k({__name:"account",setup(w){const{t:d}=I(),l=L(),{clearLicense:_}=l,{profile:f}=N(l),b=T(!1),x=$(()=>!!f.value.license),C=$(()=>S(f.value.expires).format("YYYY-MM-DD"));return(n,u)=>{const p=F("Icon");return c(),r("div",O,[x.value?(c(),r(D,{key:0},[o(m,null,{label:s(()=>[e("span",P,t(n.$t("account_type")),1)]),content:s(()=>[e("div",R,[e("div",W,[o(p,{icon:"fluent:premium-12-regular",class:"text-warning text-[1.5em]"}),i(" "+t(n.$t("account_types.premium")),1)]),o(a(y),{to:"/options-page/features",class:"ml-2"},{default:s(()=>[e("button",q,[o(p,{icon:"ep:question-filled"}),i(" "+t(n.$t("learn_about_premium_features")),1)])]),_:1})])]),_:1}),o(m,null,{label:s(()=>[e("span",E,t(n.$t("expires")),1)]),content:s(()=>[i(t(C.value),1)]),_:1}),o(m,null,{label:s(()=>[e("span",U,t(n.$t("license")),1)]),content:s(()=>[e("div",{class:"license-content",onClick:u[0]||(u[0]=v=>b.value=!b.value)},t(b.value?a(f).license:"激活码已默认隐藏，点击查看"),1),e("button",{class:"btn btn-sm btn-warning btn-soft mt-2",onClick:u[1]||(u[1]=(...v)=>a(_)&&a(_)(...v))},[o(p,{icon:"ph:trash"}),i(" "+t(n.$t("remove_license")),1)])]),_:1})],64)):(c(),Y(m,{key:1},{label:s(()=>[e("span",A,t(n.$t("account_type")),1)]),content:s(()=>[i(t(n.$t("account_types.free"))+" ",1),e("div",G,[o(a(y),{to:"/options-page/upgrade"},{default:s(()=>[e("button",H,[o(p,{icon:"fluent:premium-12-regular",class:"text-warning text-[1.5em]"}),i(" "+t(n.$t("upgrade_to_premium")),1)])]),_:1})])]),_:1}))])}}}),te=j(J,[["__scopeId","data-v-a2fb2d6d"]]);export{te as default};
