2 lines
7.4 KiB
JavaScript
2 lines
7.4 KiB
JavaScript
System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./ssl-legacy-BRxc0DyI.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index-legacy-hh1mlQOF.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,l){"use strict";var a,t,n,i,s,o,u,r,c,d,_,p,f,m,v,y,h,x,C,b,g,w,S,k,j,B,$,D,L,V,P,M,N,R,A,U,H;return{setters:[e=>{a=e._,t=e.l,n=e.i,i=e.m,s=e.p,o=e.P},e=>{u=e._},e=>{r=e.a0,c=e.A},e=>{d=e._},e=>{_=e.c},e=>{p=e.a1,f=e.b,m=e.B,v=e.k,y=e.g},e=>{h=e.k,x=e.ab,C=e.$,b=e.Z,g=e._,w=e.a0,S=e.a9,k=e.j,j=e.aa,B=e.S,$=e.R,D=e.O,L=e.e,V=e.r,P=e.c,M=e.n,N=e.a8,R=e.a3},e=>{A=e._},e=>{U=e.u},e=>{H=e.u},null,null,null,null,null],execute:function(){const F={class:"text-14px mb-20px!"},T=h({__name:"dns-verification",props:{form:{}},setup:e=>(e,l)=>{const t=a,n=x("i18n-t"),i=f,s=m,o=p,u=v,r=d;return C(),b("div",null,[g("div",F,[w(n,{keypath:"SSL.Business.index_15",scope:"global"},{a:S((()=>[w(t,null,{default:S((()=>[k(j(e.form.domain_name),1)])),_:1})])),b:S((()=>[k(j(e.form.record_type),1)])),_:1})]),w(r,{model:e.form,"label-width":"100px"},{default:S((()=>[w(o,{label:e.$t("Mail.Domain.index_37")},{default:S((()=>[w(i,{class:"w-380px!",value:e.form.host_record,"onUpdate:value":l[0]||(l[0]=l=>e.form.host_record=l),readonly:""},null,8,["value"]),w(s,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=l=>B(_)(e.form.host_record))},{default:S((()=>[k(j(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),w(o,{label:e.$t("Mail.Domain.index_36")},{default:S((()=>[w(i,{class:"w-380px!",value:e.form.record_type,"onUpdate:value":l[2]||(l[2]=l=>e.form.record_type=l),readonly:""},null,8,["value"])])),_:1},8,["label"]),w(o,{label:e.$t("Mail.Domain.index_38")},{default:S((()=>[w(u,null,{default:S((()=>[w(i,{type:"textarea",class:"w-380px!",value:e.form.record_value,"onUpdate:value":l[3]||(l[3]=l=>e.form.record_value=l),readonly:""},null,8,["value"]),w(s,{type:"primary",onClick:l[4]||(l[4]=l=>B(_)(e.form.record_value))},{default:S((()=>[k(j(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"])])}}),q={class:"text-14px mb-20px!"},E={class:"text-primary"},Z=h({__name:"http-verification",props:{form:{},paths:{}},setup(e){const{t:l}=$(),a=e,{form:i,paths:s}=D(a),{columns:o}=H([{title:"URL",key:"url",width:"50%",ellipsis:{tooltip:!0}},{title:"Verification Result",key:"status",render:e=>-1===e.status?w("span",{class:"color-error"},[l("Failed"),k("("),e.status,k(")"),w(t,{class:"ml-5px! cursor-pointer",name:"base-problem",onClick:()=>{window.open("https://www.yakpanel.com/docs/Function/BusinessCertificate.html#http-and-https-file-verification-methods","_blank")}},null)]):w("span",{class:"text-primary"},[l("Site.PHP.index_35")])},U({width:150,options:e=>[{label:l("Public.Btn.Copy"),onClick:()=>{_(e.url)}},{label:l("Config.Panel.index_83_1"),onClick:()=>{window.open(e.url,"_blank")}},{label:"Re-verify",onClick:async()=>{try{const{message:l}=await r({url:e.url,content:a.form.file_content});n(l)&&(e.status=l.status)}catch(l){e.status=y(l,"message.status",-1)}}}]})]);return(e,l)=>{const a=f,t=m,n=p,u=v,r=d,c=A;return C(),b("div",null,[g("div",q,[l[6]||(l[6]=k(" Please add a verification file to the following domain name [ ")),g("span",E,j(B(i).domain_name),1),l[7]||(l[7]=k(" ], the verification information is as follows: "))]),w(r,{model:B(i),"label-width":"100px"},{default:S((()=>[w(n,{label:"File Location"},{default:S((()=>[w(a,{class:"w-380px!",value:B(i).file_path,"onUpdate:value":l[0]||(l[0]=e=>B(i).file_path=e),readonly:""},null,8,["value"]),w(t,{class:"ml-10px!",type:"primary",onClick:l[1]||(l[1]=e=>B(_)(B(i).file_path))},{default:S((()=>[k(j(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1}),w(n,{label:e.$t("file.fileName")},{default:S((()=>[w(a,{class:"w-380px!",value:B(i).file_name,"onUpdate:value":l[2]||(l[2]=e=>B(i).file_name=e),readonly:""},null,8,["value"]),w(t,{class:"ml-10px!",type:"primary",onClick:l[3]||(l[3]=e=>B(_)(B(i).file_name))},{default:S((()=>[k(j(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),w(n,{label:e.$t("SSL.Domain.index_13")},{default:S((()=>[w(u,null,{default:S((()=>[w(a,{type:"textarea",class:"w-380px!",value:B(i).file_content,"onUpdate:value":l[4]||(l[4]=e=>B(i).file_content=e),readonly:""},null,8,["value"]),w(t,{type:"primary",onClick:l[5]||(l[5]=e=>B(_)(B(i).file_content))},{default:S((()=>[k(j(e.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),w(c,{columns:B(o),data:B(s)},null,8,["columns","data"])])}}}),G={class:"p-40px",show:!1};e("default",h({__name:"domain-verification",props:{uc_id:{},verify:{},paths:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(e,{emit:t}){const{t:r}=$(),d=e,{uc_id:_,verify:p,request:f,paths:y}=D(d),h=t,x=L({host_record:"",record_type:"",record_value:"",domain_name:"",file_path:"/.well-known/pki-validation/",file_name:"",file_content:""}),A=V([]),U=V(""),H=P((()=>"CNAME_CSR_HASH"==U.value)),F=async()=>{const{message:e}=await c({uc_id:_.value});n(e)&&("PENDING"===e.certStatus?i.success(r("SSL.Business.index_23")):(d.onRefresh(),h("close")),x.host_record=e.data.DCVdnsHost,x.record_type=e.data.DCVdnsType,x.record_value=e.data.DCVdnsValue,x.domain_name=e.data.dcvList.map((e=>e.domainName)).join(","),U.value=e.data.dcvList[0].dcvMethod,x.file_name=e.data.DCVfileName,x.file_content=e.data.DCVfileContent,A.value=e.paths)},q=()=>{h("close")};M((()=>{f.value?F():E()}));const E=()=>{x.host_record=p.value.DCVdnsHost,x.record_type=p.value.DCVdnsType,x.record_value=p.value.DCVdnsValue,x.domain_name=p.value.dcvList.map((e=>e.domainName)).join(","),U.value=p.value.dcvList[0].dcvMethod,x.file_name=p.value.DCVfileName,x.file_content=p.value.DCVfileContent,A.value=y?.value||[]},I=()=>{s({title:"Modify the verification method",width:500,minHeight:200,data:{uc_id:_.value,onRefresh:F},footer:!0,component:R((()=>o((()=>l.import("./change-verification-legacy-DNGOFs9E.js?v=1773287522785")),void 0)))})};return(e,l)=>{const t=a,n=u,i=m,s=v;return C(),b("div",G,[B(H)?(C(),N(T,{key:0,form:B(x)},null,8,["form"])):(C(),N(Z,{key:1,form:B(x),paths:B(A)},null,8,["form","paths"])),w(n,{class:"my-20px"},{default:S((()=>[l[0]||(l[0]=g("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),g("li",null,j(e.$t("SSL.Business.index_16")),1),g("li",null,j(e.$t("SSL.Business.index_17")),1),g("li",null,j(e.$t("SSL.Business.index_18")),1),g("li",null,j(e.$t("SSL.Business.index_19")),1),g("li",null,[w(t,{href:"https://www.yakpanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:S((()=>[k(j(e.$t("SSL.Business.index_20")),1)])),_:1})])])),_:1,__:[0]}),w(s,null,{default:S((()=>[w(i,{type:"primary",onClick:F},{default:S((()=>[k(j(e.$t("SSL.Business.index_21")),1)])),_:1}),w(i,{onClick:I},{default:S((()=>l[1]||(l[1]=[k("Modifiy verify")]))),_:1,__:[1]}),w(i,{onClick:q},{default:S((()=>[k(j(e.$t("SSL.Business.index_22")),1)])),_:1})])),_:1})])}}}))}}}));
|