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