System.register(["./ssl-legacy-BRxc0DyI.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,t){"use strict";var a,l,n,s,r,i,o,c,u,p,d,f,y,w,h,m,v,g,x,S,D,b,C,P,j,k,M,T,A,I,N,R,B,L;return{setters:[e=>{a=e.t,l=e.a,n=e.u,s=e.v,r=e.w,i=e.x,o=e.r},e=>{c=e.i,u=e.m,p=e.h,d=e.a3,f=e.p,y=e.P,w=e.au},e=>{h=e.a4,m=e.r,v=e.k,g=e.R,x=e.w,S=e.o,D=e.K,b=e.$,C=e.Z,P=e.S,j=e.n,k=e.a0,M=e.j,T=e.F,A=e.u,I=e.a3},e=>{N=e.k,R=e.a3,B=e.a4,L=e.a6}],execute:function(){e("u",h("ssl",(()=>{const e=m(!0),t=m(!0);return{dnsInstall:e,dnsStatus:t,getDNSStatus:async()=>{const{message:l}=await a();c(l)&&(t.value=l.status,e.value="pdns"===l.service)}}})));const _=["innerHTML"],F=v({__name:"index",props:{path:{type:String,default:"/www/server/panel/logs/letsencrypt.log"},callBack:{type:Function,default:()=>{}}},emits:["close"],setup(e,{emit:t}){const a=m("Please wait..."),n=m(null),{t:s}=g(),r=e,i=t,o=async()=>{const{message:e}=await l({path:r.path});c(e)&&(a.value=e.data?e.data:"None",e.data.includes("YakPanelDns Service Success!")&&(u.success(s("Waf.Block.index_75")),r.callBack(),i("close")))};o(),x(a,(async()=>{await j(),(()=>{const e=n.value;e&&(e.scrollTop=e.scrollHeight)})()}));let p=null;return S((()=>{p=setInterval((()=>{o()}),1e3)})),D((()=>{p&&clearInterval(p)})),(e,t)=>(b(),C("pre",{ref_key:"logRef",ref:n,innerHTML:P(a),class:"h-full overflow-auto bg-black text-white p-10px whitespace-pre-wrap"},null,8,_))}}),{t:H}=d.global,K=(e("d",(async()=>{const e=m("none"),t=[{label:H("Accept all emails"),value:"none"},{label:H("Reject all emails"),value:"reject"}];p({width:500,title:H("Confirm Applying DMARC Policy?"),content:()=>k(T,null,[k("p",null,[H("Enabling this feature will create DMARCDNS records for all domains. If a domain already has a DMARC record, the system will not modify the existing record.")]),k(N,{class:"items-center flex-nowrap! mt-10px"},{default:()=>[k("span",{class:"whitespace-nowrap"},[H("Policy:")]),k(L,{class:"w-320px",value:e.value,"onUpdate:value":t=>e.value=t,options:t,placeholder:H("Select DMARC Policy"),consistentMenuWidth:!1},null)]})]),onConfirm:async()=>{await s({policy:e.value})}})})),e("e",(async()=>{p({width:400,title:H("Confirm DKIM/SPF Enabled?"),content:H("After enabling this feature, the system will create DKIM and SPF DNS records for the selected domain. If an SPF record already exists for a domain, the system will appropriately append the servers IP address to the existing record. However, the system will not modify any existing DKIM records. During this process, please do not edit any nameserver configuration files."),onConfirm:async()=>{await r()}})})),e("f",(async()=>{p({width:400,title:H("DNS Clear"),content:H("This program will clean up your name server configuration files and remove all duplicate entries. Please ensure that you do not edit any name server configuration files during the cleanup process."),onConfirm:async()=>{await i()}})})),e("o",(async()=>{w({title:()=>k(N,{class:"items-center flex-nowrap!",size:5},{default:()=>[k("span",{class:"bg-#4caf50 inline-block w-25px h-25px flex items-center justify-center rounded-5px"},[k("i",{class:"i-soft-dns-icon text-18px text-white"},null)]),k("span",null,[H("DNS Manager")])]}),name:"pdns",admin:!0})})),e("g",(async(e,t)=>{const a=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+" "+H("Self-Built DNS"),l=H("Are you sure you want to {0} a self-built DNS server?",[e]),s=m(0);p({width:400,title:a,content:()=>{let t;return"install"===e?l:k(T,null,[k("p",null,[l]),k(N,{class:"items-center flex-nowrap! mt-10px"},{default:()=>[k("span",null,[H("Preserve config")]),k(R,{value:s.value,"onUpdate:value":e=>s.value=e},{default:()=>{return[k(B,{value:0},(e=t=H("Preserve"),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!A(e)?t:{default:()=>[t]})),k(B,{value:1},{default:()=>[M("Don't preserve")]})];var e}})]})])},onConfirm:async()=>{await n({act:e,clean:s.value}),f({title:a,width:500,height:300,hideClose:!0,data:{path:"/www/server/panel/logs/install_pdns.log",callBack:()=>{t?.()}},component:F})}})})),e("c",m(!0)));e("a",(async()=>{const{message:e}=await o({act:"status"});c(e)&&(K.value=0===e.checker_status)})),e("b",(e=>[{key:"setTTL",label:H("Set TTL"),onBatch:a=>{f({title:H("Set TTL"),width:500,minHeight:100,footer:!0,data:{rows:a,refresh:e},component:I((()=>y((()=>t.import("./set-ttl-legacy-CKky035B.js?v=1773287522785")),void 0)))})}}]))}}}));
