import{l as S,_ as T}from"./index-M_JNBppB.js";import{v as B,c as r,r as b,j as L,w as D,B as n,D as i,aB as f,I as c,K as l,L as v,u as V,aw as E,z as o}from"./vue-BJk78QHK.js";import"./element-3_pOinej.js";import"./utils-YI6ye1sf.js";import"./threejs-BafxXW5-.js";import"./vxe-Dx3zSILm.js";const I={class:"license-expired-page"},M={class:"container"},R={class:"title"},$={key:0},j={key:1},q={key:2},Q={key:0,class:"message"},K={key:1,class:"message"},P={key:2,class:"message"},W={key:3,class:"org-info"},z={key:0},A=B({__name:"index",setup(F){const p=E(),w=S();function x(a,e){if(["localhost","127.0.0.1","::1"].includes(a))return!0;if(/^(\d{1,3}\.){3}\d{1,3}$/.test(e))return a===e;const d=a.trim().toLowerCase(),g=e.trim().toLowerCase();return d===g?!0:d.endsWith(`.${g}`)}const t=r(()=>w.customInfo),m=window.location.hostname,y=r(()=>{var a;return(a=t.value)!=null&&a.domain?x(m,t.value.domain):!1}),k=r(()=>!t.value||t.value.type!=="enterprise_trial"?!1:Date.now()>new Date(t.value.endTime).getTime()),h=r(()=>{var a;return((a=t.value)==null?void 0:a.type)==="enterprise"}),s=b("no_license");function _(){!t.value||!t.value.domain?s.value="no_license":y.value?h.value?(s.value="valid",p.replace("/")):t.value.type==="enterprise_trial"&&k.value?s.value="trial_expired":(s.value="valid",p.replace("/")):s.value="domain_mismatch"}L(()=>{_()}),D(t,(a,e)=>{a!==e&&_()},{deep:!0});const N=r(()=>{var a;return(a=t.value)!=null&&a.endTime?new Date(t.value.endTime).toLocaleString("zh-CN"):"—"});function C(){window.open(`${window.location.protocol}//onetwin.cn`,"_blank")}return(a,e)=>{var u,d;return o(),n("div",I,[i("div",M,[e[6]||(e[6]=f('<div class="icon" data-v-e93cd954><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-e93cd954><circle cx="12" cy="12" r="10" data-v-e93cd954></circle><line x1="12" y1="8" x2="12" y2="12" data-v-e93cd954></line><line x1="12" y1="16" x2="12.01" y2="16" data-v-e93cd954></line></svg></div>',1)),i("h1",R,[s.value==="domain_mismatch"?(o(),n("span",$,"域名未授权")):s.value==="trial_expired"?(o(),n("span",j,"试用版已过期")):s.value==="no_license"?(o(),n("span",q,"未授权使用")):c("",!0)]),s.value==="domain_mismatch"?(o(),n("p",Q,[e[0]||(e[0]=l(" 当前访问域名 ")),i("strong",null,v(V(m)),1),e[1]||(e[1]=l(" 未在授权列表中。 ")),e[2]||(e[2]=i("br",null,null,-1)),e[3]||(e[3]=l("授权绑定域名为：")),i("strong",null,v((u=t.value)==null?void 0:u.domain),1)])):s.value==="trial_expired"?(o(),n("p",K,[e[4]||(e[4]=l(" 您的 ")),e[5]||(e[5]=i("strong",null,"企业试用版",-1)),l(" 已于 "+v(N.value)+" 到期。 ",1)])):s.value==="no_license"?(o(),n("p",P," 当前系统未检测到有效商业授权。 ")):c("",!0),e[7]||(e[7]=f('<div class="contact-info" data-v-e93cd954><p data-v-e93cd954>请联系销售团队获取正式企业版授权码：</p><div class="contacts" data-v-e93cd954><div class="contact-item" data-v-e93cd954><strong data-v-e93cd954>📞 电话：</strong><span data-v-e93cd954>13772198285</span></div><div class="contact-item" data-v-e93cd954><strong data-v-e93cd954>✉️ 邮箱：</strong><span data-v-e93cd954>1035141145@qq.com</span></div><div class="contact-item" data-v-e93cd954><strong data-v-e93cd954>💬 QQ：</strong><span data-v-e93cd954>1035141145</span></div><div class="contact-item" data-v-e93cd954><strong data-v-e93cd954>🌐 官网：</strong><span data-v-e93cd954>http://onetwin.cn</span></div></div></div>',1)),i("div",{class:"actions"},[i("button",{onClick:C,class:"btn btn-secondary"}," 访问官网 ")]),(d=t.value)!=null&&d.orgName?(o(),n("div",W,[t.value.orgName?(o(),n("p",z," 授权单位："+v(t.value.orgName),1)):c("",!0)])):c("",!0)])])}}}),Z=T(A,[["__scopeId","data-v-e93cd954"]]);export{Z as default};
