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