System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./useStore-legacy4.js?v=1761009159","./useController-legacy13.js?v=1761009159","./useStore-legacy12.js?v=1761009159"],function(e,t){"use strict";var n,l,i,s,a,r,u,c,o,p,v,d,f,m,x,y,b,k,g,j,S,h,_,C,z;return{setters:[function(e){n=e.c,l=e.s,i=e.g,s=e.q,a=e.v,r=e.x,u=e.y,c=e.C,o=e.z,p=e.D,v=e.e,d=e.B,f=e.F,m=e.A,x=e.G,y=e.aY},function(e){b=e.aj},function(e){k=e.u,g=e.S},function(e){j=e.t,S=e.m,h=e.c,_=e.r,C=e.d},function(e){z=e.u}],execute:function(){var t={class:"relative h-full"},w={key:0,class:"bg-light flex items-center justify-center h-full",style:{"min-height":"600px"}},T={key:0,class:"bg-lighter px-[48px] py-[16px] text-default"},A={key:1,class:"bg-lighter px-[48px] py-[16px] text-default"},B={key:1,class:"relative"},E={key:0,class:"mb-[16px]"},I={class:"flex items-center justify-between w-full"},L={class:"flex items-center"},q={class:"mr-[32px] text-small flex items-center"},D=["title"];e("_",n({__name:"index",setup:function(e,n){var F=n.expose,G=k().isBindExtranet,N=l(g()),R=N.siteType,Y=N.siteInfo,H=g().jumpTabEvent,J=z(),K=J.sslTabActive,M=J.sslAlertState,O=J.sslInfo,P=i(function(){var e,t;return"java"===R.value?null!==(null===(e=Y.value)||void 0===e?void 0:e.pid):"phpasync"===R.value?!(null===(t=Y.value)||void 0===t||!t.status):Y.value.run}),Q=i(function(){return!P.value&&["java","nodejs","go","python","net"].includes(R.value)}),U=b({type:"card",options:j,value:K}).BtTabs;return s(S),F({init:S}),function(e,n){var l=x,i=y;return a(),r("div",t,[!u(G)||u(Q)?(a(),r("div",w,[u(G)?u(Q)?(a(),r("div",A,[n[7]||(n[7]=c(" 请 ",-1)),o("span",{class:"!inline-block bt-link",onClick:n[1]||(n[1]=function(e){return u(H)("state")})}," 启动项目 "),n[8]||(n[8]=c(" 后再管理SSL ",-1))])):p("",!0):(a(),r("div",T,[n[5]||(n[5]=c(" 请开启 ",-1)),o("span",{class:"!inline-block bt-link",onClick:n[0]||(n[0]=function(e){return u(H)("mapping")})}," 外网映射 "),n[6]||(n[6]=c(" 后查看配置信息 ",-1))]))])):(a(),r("div",B,[u(M)?(a(),r("div",E,[v(i,{type:"error",class:"mb-[16px]",closable:!1},{title:d(function(){var e,t,i;return[o("div",I,[o("div",L,[null!==(e=u(O))&&void 0!==e&&e.isStart?p("",!0):(a(),r(f,{key:0},[n[10]||(n[10]=o("div",{class:"mr-[32px] text-small"},"温馨提示：当前站点未开启SSL证书访问，站点访问可能存在风险。",-1)),v(l,{type:"primary",size:"small",onClick:u(h)},{default:d(function(){return n[9]||(n[9]=[c(" 申请证书 ",-1)])}),_:1,__:[9]},8,["onClick"])],64)),null!==(t=u(O))&&void 0!==t&&t.isSupportRenewal&&null!==(i=u(O))&&void 0!==i&&i.isStart?(a(),r(f,{key:1},[o("div",q,[n[11]||(n[11]=c(" 温馨提示：当前[ ",-1)),o("span",{class:"flex max-w-[20rem] truncate leading-[18px] inline-block",title:u(O).dns.join("、")},m(u(O).dns.join("、")),9,D),c(" ]证书"+m(Number(u(O).endtime)<0?"已过期":"即将过期"),1)]),v(l,{type:"primary",size:"small",onClick:n[2]||(n[2]=function(e){return u(_)()})},{default:d(function(){return n[12]||(n[12]=[c(" 续签证书 ",-1)])}),_:1,__:[12]})],64)):p("",!0)]),o("span",{class:"bt-link absolute top-.7rem z-10 right-1.2rem flex items-center",onClick:n[3]||(n[3]=function(){return u(C)&&u(C).apply(void 0,arguments)})},n[13]||(n[13]=[o("span",{class:"svgtofont-desired text-medium"},null,-1),c(" 需求反馈 ",-1)]))])]}),_:1})])):p("",!0),v(u(U)),u(M)?p("",!0):(a(),r("span",{key:1,class:"bt-link absolute top-.7rem z-10 right-0 flex items-center",onClick:n[4]||(n[4]=function(){return u(C)&&u(C).apply(void 0,arguments)})},n[14]||(n[14]=[o("span",{class:"svgtofont-desired text-medium"},null,-1),c(" 需求反馈 ",-1)])))]))])}}}))}}});
