System.register(["./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,t,n,s,i,u,r,o,d,c,v,m,g,b,p;return{setters:[e=>{l=e.i,t=e.T,n=e._,s=e.d9,i=e.c,u=e.dk},e=>{r=e.R},e=>{o=e.r,d=e.X,c=e.F,v=e.j},e=>{m=e.dh,g=e.d9,b=e.bH,p=e.dd}],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("")),x=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{x.value=!0;const{message:e}=await s({p:1,limit:9999});if(i(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{x.value=!1}})),e("i",(async()=>{try{x.value=!0;const{message:e}=await u({p:1,limit:9999,id:y.value});i(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{x.value=!1}})),e("r",(e=>({key:"provider",title:l.global.t("SSL.Domain.index_28"),render:a=>{const s=a.task&&a.task.some((e=>100!==e.task_status));return d(g,null,{default:()=>[d("span",null,[a.name||a.provider]),s?d(m,{trigger:"hover"},{trigger:()=>d(t,{size:"small"},null),default:()=>d(c,null,[a.task.map((a=>d("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)}},[d("span",{class:"whitespace-nowrap mr-10px"},[a.task_name]),d(g,{class:"items-center flex-nowrap!"},{default:()=>[d(b,{class:"w-120px!",type:"line",status:"success",percentage:a.task_status,"indicator-placement":"inside",processing:100!==a.task_status},null),d(n,{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))?d("span",{class:"bt-link",onClick:()=>n()},[l.global.t("SSL.Domain.index_30")]):d(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?"--":d(p,{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")]})}}}))}}}));
