Files
yakpanel-core/YakPanel/static/vite/js/index-legacy-CYANoMEV.js
2026-04-07 02:04:22 +05:30

2 lines
8.4 KiB
JavaScript

System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./mail-legacy-BX4bHMTA.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./index-legacy-BJ5UIh35.js?v=1773287522785","./ssl-legacy-BRxc0DyI.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BBkGleHZ.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,a){"use strict";var l,t,i,s,o,n,d,r,u,c,_,p,m,y,v,f,g,x,h,b,w,j,k,M,D,q,A,S,$,E,T,B,C,U,X,P,R,N,z,G,L,W,F,V;return{setters:[e=>{l=e._},e=>{t=e._},e=>{i=e.i,s=e.t,o=e.l,n=e.Q,d=e.m,r=e.C},e=>{u=e.k,c=e.am,_=e.r,p=e.c,m=e.$,y=e.a8,v=e.a9,f=e.S,g=e.Z,x=e.ak,h=e.a0,b=e._,w=e.j,j=e.R,k=e.e,M=e.l,D=e.v,q=e.aa},e=>{A=e.ae,S=e.af},e=>{$=e.g},e=>{E=e._},e=>{T=e.g},e=>{B=e.g},e=>{C=e.u},e=>{U=e.u},e=>{X=e.k,P=e.ad,R=e.B,N=e.a9,z=e.a1,G=e.a3,L=e.a4,W=e.b,F=e._,V=e.a6},null,null,null,null,null,null,null,null,null],execute:function(){const a={key:0,class:"color-desc"},Y={key:3,class:"color-desc"},Z=u({__name:"automatic",props:{domain:{}},setup(e,{expose:l}){const t=c(),s=e,{table:o,columns:n}=U([{key:"type",title:"Type",width:50},{key:"record",title:"Record",width:120,ellipsis:{tooltip:!0}},{key:"value",title:"Value",ellipsis:{tooltip:!0}},{key:"priority",title:"MX priority",render:e=>-1!==e.priority?e.priority:"-",width:90},{key:"status",title:"Status",width:110}]),d=_(),r=p((()=>d.value?.support.includes("auto"))),u=()=>{t.push("/ssl_domain/domain")},{loading:j,setLoading:k}=C();return l({getParseStatus:async()=>{const{message:e}=await B({domain:s.domain});if(i(e)&&(d.value=e,r.value))try{k(!0);const{message:a}=await T({domain:s.domain,hash:e.hash});i(a)&&(o.data=[{type:"A",record:a.A.record,value:a.A.record_value,priority:a.A.priority,status:a.A.status?"Added":"Waiting to add"},{type:"MX",record:a.MX.record,value:a.MX.record_value,priority:a.MX.priority,status:a.MX.status?"Added":"Waiting to add"},...a.TXT.map((e=>({type:"TXT",record:e.record,value:e.record_value,priority:e.priority,status:e.status?"Added":"Waiting to add"})))])}finally{k(!1)}},parseStatus:d,isSupportAuto:r}),(e,l)=>{const t=R,i=X,s=P,c=N,_=E;return m(),y(i,null,{default:v((()=>[f(d)?x("",!0):(m(),g("span",a," *The program will use the APl to automatically add the required DNS records forthe mail server and complete the installation of the SSL certifcate. ")),f(d)?(m(),y(i,{key:1},{default:v((()=>[f(r)?(m(),y(s,{key:1,type:"success"},{default:v((()=>l[2]||(l[2]=[w(" Your domain has been connccted to the domain managementccnter, and you can use this fcature to complcte onc-click deployment. ")]))),_:1,__:[2]})):(m(),y(s,{key:0,type:"error"},{default:v((()=>[h(i,{class:"items-center flex-nowrap!"},{default:v((()=>[l[1]||(l[1]=b("span",null,"Your domain has not yet been integrated with the Domain Name Management Center.",-1)),h(t,{type:"primary",size:"small",ghost:"",onClick:u},{default:v((()=>l[0]||(l[0]=[w("Add Now")]))),_:1,__:[0]})])),_:1,__:[1]})])),_:1})),f(j)?(m(),y(i,{key:2,class:"items-center!"},{default:v((()=>[l[3]||(l[3]=b("span",{class:"color-desc"},"Checking for records to be added",-1)),h(c,{size:"small"})])),_:1,__:[3]})):x("",!0),!f(j)&&f(r)?(m(),g("span",Y,"The records that will be automatically added")):x("",!0),!f(j)&&f(r)?(m(),y(_,{key:4,data:f(o).data,columns:f(n)},null,8,["data","columns"])):x("",!0)])),_:1})):x("",!0)])),_:1})}}}),I={class:"p-20px"},O={class:"flex h-15px items-center mr-16px"},Q={class:"w-320px"},H={class:"w-100px ml-20px"},J={class:"w-320px"},K={class:"text-error"};e("default",u({__name:"index",props:{row:{},isEdit:{type:Boolean}},emits:["refresh"],setup(e,{expose:a,emit:i}){const u=e,c=i,p=s(),E=_(null),T=_(""),B=()=>{""!==P.domain.trim()?T.value!==P.domain&&2===P.dns_record&&(E.value?.getParseStatus(),T.value=P.domain):T.value=""},{t:C}=j(),U=_(null),P=k({domain:"",a_record:"",dns_record:2,quota:5,quota_unit:"GB",mailboxes:50,email:"",ips:""}),R=[{label:"GB",value:"GB"},{label:"MB",value:"MB"}],N={domain:{trigger:["blur","input"],validator:()=>""!==P.domain.trim()||new Error(C("Mail.Domain.index_27"))}},Y=()=>{n({source:351})},ee=()=>({domain:P.domain,a_record:P.a_record,ips:u.isEdit&&!P.ips?"del":P.ips,quota:P.quota+" "+P.quota_unit,mailboxes:P.mailboxes,email:P.email,automatic:2===P.dns_record?1:null,hash:2===P.dns_record?E.value?.parseStatus?.hash:null});return(()=>{const{isEdit:e,row:a}=u;if(e&&a){const e=a.ip_address.ipv4.join(""),l=a.ip_address.ipv6.join("");P.domain=a.domain,P.a_record=a.a_record,P.ips=e.length>0?e:l;const t=r(a.quota);P.quota=$(t.split(" ")[0]),P.quota_unit=t.split(" ")[1],P.mailboxes=a.mailboxes,P.email=a.email,P.dns_record=1}})(),a({onConfirm:async()=>{if(await(U.value?.validate()),!E.value?.isSupportAuto&&2===P.dns_record&&!u.isEdit)return d.error("This domain does not support automatic resolution, please choose manual resolution"),!1;const{isEdit:e}=u;e?await A(ee()):await S(ee()),c("refresh")}}),(e,a)=>{const i=o,s=L,n=G,d=z,r=W,u=X,c=F,_=V,j=t,k=l;return m(),g("div",I,[h(j,{ref_key:"formRef",ref:U,model:f(P),rules:N,"label-width":"150px"},{default:v((()=>[e.isEdit?x("",!0):(m(),y(d,{key:0,label:"DNS record"},{default:v((()=>[h(n,{value:f(P).dns_record,"onUpdate:value":[a[0]||(a[0]=e=>f(P).dns_record=e),B]},{default:v((()=>[h(s,{value:2},{default:v((()=>[b("div",O,[a[8]||(a[8]=b("div",null,"Automatic",-1)),h(i,{name:"ssl-stars",size:22})])])),_:1}),h(s,{value:1},{default:v((()=>a[9]||(a[9]=[w("Manual")]))),_:1,__:[9]})])),_:1},8,["value"])])),_:1})),h(d,{label:e.$t("Mail.Domain.index_3"),path:"domain"},{default:v((()=>[b("div",Q,[h(r,{value:f(P).domain,"onUpdate:value":a[1]||(a[1]=e=>f(P).domain=e),disabled:e.isEdit,placeholder:e.$t("Mail.Domain.index_18"),onBlur:B},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),M(h(d,{label:e.$t("Mail.Domain.index_19")},{default:v((()=>[h(u,null,{default:v((()=>[h(r,{class:"w-320px!",value:f(P).a_record,"onUpdate:value":a[2]||(a[2]=e=>f(P).a_record=e),disabled:e.isEdit,placeholder:e.$t("Mail.Domain.index_20")},null,8,["value","disabled","placeholder"]),a[10]||(a[10]=b("span",{class:"text-font2"}," *Resolve the domain to the mail server's lP address for server communication ormail client connections. ",-1))])),_:1,__:[10]})])),_:1},8,["label"]),[[D,1===f(P).dns_record]]),M(h(d,{label:" "},{default:v((()=>[h(Z,{ref_key:"automaticRef",ref:E,domain:f(P).domain},null,8,["domain"])])),_:1},512),[[D,2===f(P).dns_record]]),e.isEdit?(m(),y(d,{key:1,label:"IP"},{default:v((()=>[h(u,{class:"items-center"},{default:v((()=>[h(r,{class:"w-320px!",value:f(P).ips,"onUpdate:value":a[3]||(a[3]=e=>f(P).ips=e),disabled:f(p).isFree,placeholder:e.$t("Mail.Domain.index_65")},null,8,["value","disabled","placeholder"]),f(p).isFree?(m(),g("span",{key:0,class:"cursor-pointer color-#ffb800",onClick:Y}," PRO ")):x("",!0)])),_:1})])),_:1})):x("",!0),h(d,{label:e.$t("Mail.Domain.index_21")},{default:v((()=>[h(c,{value:f(P).quota,"onUpdate:value":a[4]||(a[4]=e=>f(P).quota=e),class:"w-200px",min:0,"show-button":!1},null,8,["value"]),b("div",H,[h(_,{value:f(P).quota_unit,"onUpdate:value":a[5]||(a[5]=e=>f(P).quota_unit=e),options:R},null,8,["value"])])])),_:1},8,["label"]),h(d,{label:e.$t("Mail.Domain.index_22")},{default:v((()=>[h(c,{value:f(P).mailboxes,"onUpdate:value":a[6]||(a[6]=e=>f(P).mailboxes=e),class:"w-320px",min:0,"show-button":!1},null,8,["value"])])),_:1},8,["label"]),h(d,{label:e.$t("Mail.Domain.index_7")},{default:v((()=>[b("div",J,[h(r,{value:f(P).email,"onUpdate:value":a[7]||(a[7]=e=>f(P).email=e),placeholder:e.$t("Mail.Domain.index_23")},null,8,["value","placeholder"])])])),_:1},8,["label"])])),_:1},8,["model"]),h(k,null,{default:v((()=>[b("li",K,q(e.$t("Mail.Domain.index_24")),1),b("li",null,q(e.$t("Mail.Domain.index_25")),1),b("li",null,q(e.$t("Mail.Domain.index_26")),1)])),_:1})])}}}))}}}));