import{k as s,r as a,V as i,W as e,X as l,Z as t,Y as n,O as c,l as o,aw as r,N as d,a0 as v,K as p,a1 as u}from"./base-lib.js?v=20260328163632";import{l as m,j as f,d as x,h as b,_ as g}from"./utils-lib.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const h={class:"expire-container"},w={class:"expire-card"},_={class:"expire-header"},j={class:"mb-10px flex items-center justify-center"},y={class:"expire-title"},k={class:"expire-desc"},q={class:"expire-content"},K={class:"qr-section"},V={class:"qrcode-wrapper"},C={class:"scan-tip"},H={class:"contact-info"},I={class:"divider-section"},N={class:"divider-text"},O={class:"activation-section"},T={class:"activation-header"},U={class:"activation-title"},W={class:"activation-form"},X={class:"input-wrapper"},Y=["placeholder","disabled"],Z=["disabled"],z={key:0,class:"svgtofont-icon-loading animate-spin"},A={class:"activation-tips"},B=g(s({__name:"index",setup(s){const g=x(),B=a(""),D=a(!1),E=async()=>{if(B.value.trim()){D.value=!0;try{const s=await f({code:B.value.trim()});s.status?(g.success(s.msg||m("激活码验证成功，请刷新页面")),setTimeout((()=>{window.location.href="/"}),1e3)):g.error(s.msg||m("激活码验证失败"))}catch(s){g.error((null==s?void 0:s.message)||m("激活码提交失败，请稍后重试"))}finally{D.value=!1}}else g.warn(m("请输入激活码"))};return(s,a)=>(i(),e("div",h,[l("div",w,[l("div",_,[l("div",j,[a[1]||(a[1]=l("i",{class:"svgtofont-el-warning-filled text-[40px] text-[#e6a23c] mr-8px"},null,-1)),l("h2",y,t(n(m)("面板体验已到期")),1)]),l("p",k,t(n(m)("您的授权已过期，请购买新的授权码继续使用")),1)]),l("div",q,[l("div",K,[l("div",V,[c(n(b),{src:"/customer/customer-qrcode.png",width:"100",class:"qrcode-image"})]),l("div",C,[a[2]||(a[2]=l("i",{class:"svgtofont-icon-scan"},null,-1)),l("span",null,t(n(m)("微信扫码购买授权码")),1)]),l("div",H,[l("p",null,t(n(m)("扫码联系客服，可领取一个月体验码")),1)])]),l("div",I,[a[3]||(a[3]=l("div",{class:"divider-line"},null,-1)),l("span",N,t(n(m)("或")),1),a[4]||(a[4]=l("div",{class:"divider-line"},null,-1))]),l("div",O,[l("div",T,[a[5]||(a[5]=l("i",{class:"svgtofont-icon-key activation-icon"},null,-1)),l("span",U,t(n(m)("激活码激活")),1)]),l("div",W,[l("div",X,[o(l("input",{"onUpdate:modelValue":a[0]||(a[0]=s=>d(B)?B.value=s:null),type:"text",class:"activation-input",placeholder:n(m)("请输入您的激活码"),disabled:n(D),onKeyup:v(E,["enter"])},null,40,Y),[[r,n(B)]]),l("button",{class:p(["submit-btn",{submitting:n(D)}]),disabled:!n(B).trim()||n(D),onClick:E},[n(D)?(i(),e("i",z)):u("",!0),l("span",null,t(n(D)?n(m)("验证中..."):n(m)("立即激活")),1)],10,Z)]),l("div",A,[a[6]||(a[6]=l("i",{class:"svgtofont-icon-info-circle"},null,-1)),l("span",null,t(n(m)("请输入完整的激活码进行验证")),1)])])])])])]))}}),[["__scopeId","data-v-2e88197a"]]);export{B as default};
