import{d as S}from"./dayjs.min-QtCe8tbb.js";import{d as k,O as V,c as r,y 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 y,q as Y,F as D,a as o,w as s,l as e,s as i,r as F,t,U as $}from"./iconify-ifN16AHJ.js";import{u as L}from"./options.store-CrfMY3gQ.js";import{_ as j}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./useTheme-BYL2Ajg2.js";const q={class:"w-full flex items-start my-1"},z={key:1,class:"flex-1 min-w-0"},d=k({__name:"LabelField",props:{labelWidth:{default:"120px"}},setup(w){const m=V();return(l,_)=>(c(),r("div",q,[a(m).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(m).content?(c(),r("div",z,[g(l.$slots,"content")])):h("",!0)]))}}),M={class:"p-2"},O={class:"field-label"},P={class:"flex items-center gap-1"},R={class:"flex items-center gap-1"},W={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:m}=I(),l=L(),{clearLicense:_}=l,{profile:f}=N(l),b=T(!1),x=y(()=>!!f.value.license),C=y(()=>S(f.value.expires).format("YYYY-MM-DD"));return(n,u)=>{const p=F("Icon");return c(),r("div",M,[x.value?(c(),r(D,{key:0},[o(d,null,{label:s(()=>[e("span",O,t(n.$t("account_type")),1)]),content:s(()=>[e("div",P,[e("div",R,[o(p,{icon:"fluent:premium-12-regular",class:"text-warning text-[1.5em]"}),i(" "+t(n.$t("account_types.premium")),1)]),o(a($),{to:"/options-page/features",class:"ml-2"},{default:s(()=>[e("button",W,[o(p,{icon:"ep:question-filled"}),i(" "+t(n.$t("learn_about_premium_features")),1)])]),_:1})])]),_:1}),o(d,null,{label:s(()=>[e("span",E,t(n.$t("expires")),1)]),content:s(()=>[i(t(C.value),1)]),_:1}),o(d,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(d,{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($),{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};
