System.register(["./page_layout-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172"],(function(e,a){"use strict";var l,d,u,t,s,n,i,c,o,p,r,v,_,f,x,m,k,b,h,g,y,S,L,U,C,$;return{setters:[e=>{l=e.am,d=e.c,u=e.o,t=e.aY,s=e.d$,n=e.p},e=>{i=e.k,c=e.ad,o=e.am,p=e.ae,r=e.R,v=e.a2,_=e.a3,f=e.X,x=e.H,m=e.U,k=e.an,b=e.S,h=e.j,g=e.a4},e=>{y=e.au,S=e.aC,L=e.aZ,U=e._,C=e.dh,$=e.d9}],execute:function(){var a=document.createElement("style");a.textContent=".n-button[data-v-4f4b9d13]{--n-padding: 0 12px}\n",document.head.appendChild(a);const w={key:1,class:"text-desc"},j=i({__name:"domain-input",props:c({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:c(["update:domain"],["update:value","update:parseList"]),setup(e,{expose:a,emit:n}){const i=e,c=o(),j=p(e,"value"),B=p(e,"parseList"),D=n,M=async(e,a)=>{if(0===a&&D("update:domain",e),!e?.trim())return void(B.value[a]&&B.value.splice(a,1));const{message:u}=await l({domain:e});d(u)&&j.value[a]&&(B.value[a]={...u,auto:u.support.includes("auto"),ssl_cert:u.support.includes("ssl_cert"),cf_proxy:u.support.includes("cf_proxy")})},q=()=>{c.push("/ssl_domain/domain")};return a({onDomainItemBlur:M}),(e,a)=>{const l=y,d=S,n=L,c=U,o=u,p=C,I=t,E=$,H=s;return r(),v(H,{value:j.value,"onUpdate:value":a[0]||(a[0]=e=>j.value=e)},{default:_((({index:a})=>[f(l,{class:x(i.is_wp?"w-200px!":"w-140px!"),value:j.value[a],"onUpdate:value":e=>j.value[a]=e,placeholder:e.$t("Mail.Setting.index_20"),onBlur:e=>M(j.value[a],a)},null,8,["class","value","onUpdate:value","placeholder","onBlur"])])),action:_((({index:l})=>[f(E,{class:"items-center ml-5px"},{default:_((()=>[i.is_wp?k("",!0):(r(),v(n,{key:0},{default:_((()=>[f(d,{onClick:e=>(e=>{j.value.splice(e,1),B.value.splice(e,1),0===e&&D("update:domain",j.value[0]?j.value[0]:"")})(l),disabled:1===j.value.length,round:""},{default:_((()=>a[1]||(a[1]=[m("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),f(d,{onClick:e=>(e=>{j.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(l),round:""},{default:_((()=>a[2]||(a[2]=[m("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),B.value[l]?.support?(r(),b("span",w,[f(I,null,{default:_((()=>[f(p,{trigger:"hover",disabled:B.value[l].support.includes("auto")},{trigger:_((()=>[f(c,{checked:B.value[l].auto,"onUpdate:checked":e=>B.value[l].auto=e,disabled:!B.value[l].support.includes("auto"),label:e.$t("SSL.Domain.index_34")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[m("div",null,[h(g(e.$t("SSL.index_5"))+" ",1),f(o,{onClick:q},{default:_((()=>[h(g(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),f(p,{trigger:"hover",disabled:B.value[l].support.includes("ssl_cert")},{trigger:_((()=>[f(c,{checked:B.value[l].ssl_cert,"onUpdate:checked":e=>B.value[l].ssl_cert=e,disabled:!B.value[l].support.includes("ssl_cert"),label:e.$t("SSL.index_7")},null,8,["checked","onUpdate:checked","disabled","label"])])),default:_((()=>[m("div",null,[h(g(e.$t("SSL.index_6"))+" ",1),f(o,{onClick:q},{default:_((()=>[h(g(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[l].support.includes("cf_proxy")?(r(),v(c,{key:0,checked:B.value[l].cf_proxy,"onUpdate:checked":e=>B.value[l].cf_proxy=e,disabled:!B.value[l].support.includes("cf_proxy"),label:e.$t("SSL.index_8")},null,8,["checked","onUpdate:checked","disabled","label"])):k("",!0)])),_:2},1024)])):k("",!0)])),_:2},1024)])),_:1},8,["value"])}}});e("D",n(j,[["__scopeId","data-v-4f4b9d13"]]))}}}));
