System.register(["./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509"],(function(e,l){"use strict";var a,t,s,n,i,u,r,o,c,v,d,m,b,g,p;return{setters:[e=>{a=e.U,t=e.$,s=e.Y},e=>{n=e.c,i=e.i,u=e.O,r=e._},e=>{o=e.r,c=e.Q,v=e.F,d=e.j},e=>{m=e.c3,b=e.bY,g=e.bA,p=e.c0}],execute:function(){e("m",o("host")),e("e",o(!1));const l=e("b",o([])),y=e("d",o([])),_=e("h",o()),f=e("a",o("")),k=e("c",o("")),x=e("l",o(!1));e("t",[{label:"A",value:"A"},{label:"AAAA",value:"AAAA"},{label:"MX",value:"MX"},{label:"TXT",value:"TXT"},{label:"NS",value:"NS"},{label:"CAA",value:"CAA"},{label:"CNAME",value:"CNAME"}]),e("f",(async()=>{try{x.value=!0;const{message:e}=await a({p:1,limit:9999});n(e)&&(e.data.length>0?(l.value=e.data.map((e=>({label:e.name,value:e.id,alias:e.alias}))),_.value||(_.value=l.value[0].value),f.value||(f.value=l.value[0].label)):(l.value=[],_.value=void 0,f.value=""))}finally{x.value=!1}})),e("g",(async()=>{try{x.value=!0;const{message:e}=await s({p:1,limit:9999,id:_.value});n(e)&&(e.data.length>0?(y.value=e.data.map((e=>({label:e.name,value:e.name,ssl_info:e.ssl_info.end_time}))),k.value||(k.value=y.value[0].value)):(y.value=[],k.value=""))}finally{x.value=!1}})),e("r",(e=>({key:"provider",title:i.global.t("SSL.Domain.index_28"),render:l=>{const a=l.task&&l.task.some((e=>100!==e.task_status));return c(b,null,{default:()=>[c("span",null,[l.name||l.provider]),a?c(m,{trigger:"hover"},{trigger:()=>c(u,{size:"small"},null),default:()=>c(v,null,[l.task.map((l=>c("div",{class:"flex flex-nowrap! p-10px cursor-pointer justify-between items-center",title:i.global.t("SSL.Domain.index_33"),key:l.id,onClick:()=>{e(l.task_log)}},[c("span",{class:"whitespace-nowrap mr-10px"},[l.task_name]),c(b,{class:"items-center flex-nowrap!"},{default:()=>[c(g,{class:"w-120px!",type:"line",status:"success",percentage:l.task_status,"indicator-placement":"inside",processing:100!==l.task_status},null),c(r,{name:"base-left-logs",size:18},null)]})])))])}):""]})}}))),e("i",(e=>{const l={key:"ps",title:i.global.t("SSL.Domain.index_29"),render:l=>{const a=l.user_for;if(!a)return"--";const s=(a="site")=>{e(l,a)};return Object.keys(a).map((e=>a[e])).every((e=>0===e.length))?c("span",{class:"bt-link",onClick:()=>s()},[i.global.t("SSL.Domain.index_30")]):c(t,{options:[{label:i.global.t("Layout.Sider.site_1"),onClick:()=>s("site"),show:a.sites?.length>0},{label:i.global.t("SSL.Domain.index_31"),onClick:()=>s("mail"),show:a.mails?.length>0},{label:i.global.t("SSL.Domain.index_32"),onClick:()=>s("panel"),show:a.panel?.length>0}]},null)}};return l})),e("u",(e=>{const{key:l="end_time"}=e;return{key:l,title:e.title,width:e.width,render:e=>{const a=l.split(".").reduce(((e,l)=>e&&e[l]),e);return-1===a||void 0===a?"--":c(p,{type:Number(a)>30?"success":Number(a)>0?"warning":"error",class:"px-10px"},{default:()=>[Number(a)?Number(a):i.global.t("Config.Safe.index_166"),d(" "),i.global.t("Crontab.arrange.index_41")]})}}}))}}}));
