System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./ssl-legacy-BRxc0DyI.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,a){"use strict";var l,u,d,t,s,n,i,c,o,p,r,v,_,x,f,k,b,m,h,g,y,S,L,$,C,U;return{setters:[e=>{l=e._,u=e.i,d=e.c},e=>{t=e.g},e=>{s=e.k,n=e.am,i=e.an,c=e.$,o=e.a8,p=e.a9,r=e.a0,v=e._,_=e.ak,x=e.Z,f=e.j,k=e.aa,b=e.L,m=e.ao},e=>{h=e.k,g=e.aH,y=e.B,S=e.ap,L=e.a5,$=e.al,C=e.b,U=e.aV}],execute:function(){var a=document.createElement("style");a.textContent=".n-button[data-v-4f4b9d13]{--n-padding: 0 12px}\n/*$vite$:1*/",document.head.appendChild(a);const w={key:1,class:"text-desc"},j=s({__name:"domain-input",props:m({is_wp:{type:Boolean,default:!1}},{value:{required:!0},valueModifiers:{},parseList:{required:!0},parseListModifiers:{}}),emits:m(["update:domain"],["update:value","update:parseList"]),setup(e,{expose:a,emit:d}){const s=e,m=n(),j=i(e,"value"),B=i(e,"parseList"),D=d,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:l}=await t({domain:e});u(l)&&j.value[a]&&(B.value[a]={...l,auto:l.support.includes("auto"),ssl_cert:l.support.includes("ssl_cert"),cf_proxy:l.support.includes("cf_proxy")})},q=()=>{m.push("/ssl_domain/domain")};return a({onDomainItemBlur:M}),(e,a)=>{const u=C,d=y,t=g,n=$,i=l,m=L,I=S,E=h,H=U;return c(),o(H,{value:j.value,"onUpdate:value":a[0]||(a[0]=e=>j.value=e)},{default:p((({index:a})=>[r(u,{class:b(s.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:p((({index:l})=>[r(E,{class:"items-center ml-5px"},{default:p((()=>[s.is_wp?_("",!0):(c(),o(t,{key:0},{default:p((()=>[r(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:p((()=>a[1]||(a[1]=[v("span",null,"-",-1)]))),_:2,__:[1]},1032,["onClick","disabled"]),r(d,{onClick:e=>(e=>{j.value.splice(e+1,0,""),B.value.splice(e+1,0,{})})(l),round:""},{default:p((()=>a[2]||(a[2]=[v("span",null,"+",-1)]))),_:2,__:[2]},1032,["onClick"])])),_:2},1024)),B.value[l]?.support?(c(),x("span",w,[r(I,null,{default:p((()=>[r(m,{trigger:"hover",disabled:B.value[l].support.includes("auto")},{trigger:p((()=>[r(n,{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:p((()=>[v("div",null,[f(k(e.$t("SSL.index_5"))+" ",1),r(i,{onClick:q},{default:p((()=>[f(k(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),r(m,{trigger:"hover",disabled:B.value[l].support.includes("ssl_cert")},{trigger:p((()=>[r(n,{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:p((()=>[v("div",null,[f(k(e.$t("SSL.index_6"))+" ",1),r(i,{onClick:q},{default:p((()=>[f(k(e.$t("SSL.index_4")),1)])),_:1})])])),_:2},1032,["disabled"]),B.value[l].support.includes("cf_proxy")?(c(),o(n,{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"])):_("",!0)])),_:2},1024)])):_("",!0)])),_:2},1024)])),_:1},8,["value"])}}});e("D",d(j,[["__scopeId","data-v-4f4b9d13"]]))}}}));
