System.register(["./public-legacy.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(e,t){"use strict";var a,l,n,s,c,o,r,i,u,p,d,f,y,w,m,h,v,g,x,b,S,D,j,C,P,M,k,A,I;return{setters:[e=>{a=e.a,l=e.u},e=>{n=e.a},e=>{s=e.t,c=e.c,o=e.m,r=e.i,i=e.dp,u=e.dq,p=e.dr,d=e.da},e=>{f=e.k,y=e.r,w=e.P,m=e.w,h=e.n,v=e.o,g=e.G,x=e.R,b=e.S,S=e.V,D=e.X,j=e.F,C=e.j,P=e.u},e=>{M=e.d9,k=e.dV,A=e.dT,I=e.dU}],execute:function(){const t=["innerHTML"],R=f({__name:"index",props:{path:{type:String,default:"/www/server/panel/logs/letsencrypt.log"},callBack:{type:Function,default:()=>{}}},emits:["close"],setup(e,{emit:a}){const l=y("Please wait..."),n=y(null),{t:r}=w(),i=e,u=a,p=async()=>{const{message:e}=await s({path:i.path});c(e)&&(l.value=e.data?e.data:"None",e.data.includes("aaPanelDns Service Success!")&&(o.success(r("Waf.Block.index_75")),i.callBack(),u("close")))};p(),m(l,(async()=>{await h(),(()=>{const e=n.value;e&&(e.scrollTop=e.scrollHeight)})()}));let d=null;return v((()=>{d=setInterval((()=>{p()}),1e3)})),g((()=>{d&&clearInterval(d)})),(e,a)=>(x(),b("pre",{ref_key:"logRef",ref:n,innerHTML:S(l),class:"h-full overflow-auto bg-black text-white p-10px whitespace-pre-wrap"},null,8,t))}}),{t:_}=r.global,N=(e("b",(async()=>{const e=y("none"),t=[{label:_("Accept all emails"),value:"none"},{label:_("Reject all emails"),value:"reject"}];a({width:500,title:_("Confirm Applying DMARC Policy?"),content:()=>D(j,null,[D("p",null,[_("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.")]),D(M,{class:"items-center flex-nowrap! mt-10px"},{default:()=>[D("span",{class:"whitespace-nowrap"},[_("Policy:")]),D(k,{class:"w-320px",value:e.value,"onUpdate:value":t=>e.value=t,options:t,placeholder:_("Select DMARC Policy"),consistentMenuWidth:!1},null)]})]),onConfirm:async()=>{await i({policy:e.value})}})})),e("d",(async()=>{a({width:400,title:_("Confirm DKIM/SPF Enabled?"),content:_("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 u()}})})),e("o",(async()=>{n({title:()=>D(M,{class:"items-center flex-nowrap!",size:5},{default:()=>[D("span",{class:"bg-#4caf50 inline-block w-25px h-25px flex items-center justify-center rounded-5px"},[D("i",{class:"i-soft-dns-icon text-18px text-white"},null)]),D("span",null,[_("DNS Manager")])]}),name:"dnscustom",admin:!0})})),e("e",(async(e,t)=>{const n=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+" "+_("Self-Built DNS"),s=_("Are you sure you want to {0} a self-built DNS server?",[e]),c=y(0);a({width:400,title:n,content:()=>{let t;return"install"===e?s:D(j,null,[D("p",null,[s]),D(M,{class:"items-center flex-nowrap! mt-10px"},{default:()=>[D("span",null,[_("Preserve config")]),D(A,{value:c.value,"onUpdate:value":e=>c.value=e},{default:()=>{return[D(I,{value:0},(e=t=_("Preserve"),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!P(e)?t:{default:()=>[t]})),D(I,{value:1},{default:()=>[C("Don't preserve")]})];var e}})]})])},onConfirm:async()=>{await p({act:e,clean:c.value}),l({title:n,width:500,height:300,hideClose:!0,data:{path:"/www/server/panel/logs/install_pdns.log",callBack:()=>{t?.()}},component:R})}})})),e("c",y(!0)));e("a",(async()=>{const{message:e}=await d({act:"status"});c(e)&&(N.value=0===e.checker_status)}))}}}));
