Files
AllinSSL/build/static/js/drawer-DaZ4fk4C.js
2025-05-19 16:59:09 +08:00

2 lines
2.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{d as e,r as a,l as r,m as l,$ as o,c as s,v as t,p as n,y as i,o as u,z as d}from"./main--Z-F5Mso.js";import{u as m,k as p}from"./index-Bl2UqGsw.js";import{r as v}from"./verify-BQy9LC9v.js";import{D as _}from"./index-BbF543B8.js";import"./index-DzP4fK88.js";import"./index-Cx-50PaG.js";import"./test-BBMWj0EK.js";import"./useStore-C8WUEfX4.js";import"./business-DKhLj0qi.js";import"./useStore-DbUVxU9E.js";import"./setting-EBiWLyAJ.js";import"./index-CC0vEZXE.js";import"./index-zRd4zQnc.js";import"./text-CVYnuFHc.js";const c=e({name:"ApplyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{domains:"",email:"",provider_id:"",provider:"",end_day:30,name_server:"",skip_check:1,algorithm:"RSA2048"}})}},setup(e){const{updateNodeConfig:c,advancedOptions:h,isRefreshNode:y}=m(),{confirm:f}=d(),{useFormInput:j,useFormSelect:g,useFormMore:R,useFormHelp:S,useFormSwitch:x}=l(),A=a(p(e.node.config)),b=r((()=>[j(o("t_17_1745227838561"),"domains",{placeholder:o("t_0_1745735774005"),onInput:e=>{A.value.domains=e.trim(),A.value.domains=A.value.domains.replace(//g,","),A.value.domains=A.value.domains.replace(/;/g,",")},onFocus:()=>{A.value.domains=A.value.domains.replace(/,^/g,"")}}),j(o("t_1_1745735764953"),"email",{placeholder:o("t_2_1745735773668"),onInput:e=>A.value.email=e.trim()}),{type:"custom",render:()=>s(_,{type:"dns",path:"provider_id",value:A.value.provider_id,"onUpdate:value":e=>{A.value.provider_id=e.value,A.value.provider=e.type}},null)},{type:"custom",render:()=>s(n,{label:o("t_5_1745735769112"),path:"end_day"},{default:()=>[s(t,{value:A.value.end_day,"onUpdate:value":e=>A.value.end_day=e,showButton:!1,min:1,class:"w-[180px]",placeholder:o("t_6_1745735765205")},null),s("span",{class:"text-[1.4rem] ml-[1.2rem]"},[o("t_7_1745735768326")])]})},R(h),...h.value?[g(o("证书算法"),"algorithm",[{label:"RSA2048",value:"RSA2048"},{label:"RSA3072",value:"RSA3072"},{label:"RSA4096",value:"RSA4096"},{label:"RSA8192",value:"RSA8192"},{label:"EC256",value:"EC256"},{label:"EC384",value:"EC384"}],{},{showRequireMark:!1}),j(o("t_0_1747106957037"),"name_server",{placeholder:o("t_1_1747106961747"),onInput:e=>{A.value.name_server=e.trim(),A.value.name_server=A.value.name_server.replace(//g,","),A.value.name_server=A.value.name_server.replace(/;/g,",")},onFocus:()=>{A.value.name_server=A.value.name_server.replace(/,^/g,"")}},{showRequireMark:!1}),x(o("t_2_1747106957037"),"skip_check",{},{showRequireMark:!1})]:[],S([{content:o("t_0_1747040228657"),isHtml:!1},{content:o("t_1_1747040226143"),isHtml:!1}])])),{component:w,data:k,example:F}=i({defaultValue:A,config:b,rules:v});return u((()=>{h.value=!1})),f((async a=>{var r;try{await(null==(r=F.value)?void 0:r.validate()),c(e.node.id,k.value),y.value=e.node.id,a()}catch(l){}})),()=>s("div",{class:"apply-node-drawer"},[s(w,{labelPlacement:"top"},null)])}});export{c as default};