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