Files
AllinSSL/build/static/js/drawer-DVbszTPd.js
chudong 207f199cf9 【新增】dns 新增华为和Cloudflare
【调整】为空时内容添加的显示问题
2025-05-12 18:19:58 +08:00

2 lines
2.0 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 t,m as o,$ as s,c as r,bJ as i,p as l,x as d,y as n}from"./main-D92iQLHy.js";import{u as p,k as m}from"./index-C9NRvKDf.js";import{r as u}from"./verify-U_gDGaWF.js";import{D as v}from"./index-DmPzrJ4v.js";import"./index-ByUokZp4.js";import"./index-D-QIoV6w.js";import"./test-CYQWlnDo.js";import"./useStore-XqOgqRp1.js";import"./business-CtcbZNlm.js";import"./useStore-qQGFLktY.js";import"./setting-Gn9bSs52.js";import"./index-JU_E0h2o.js";import"./index-DRKVr0tQ.js";import"./text-xuSlHCsU.js";import"./Flex-ClBU6JvG.js";const c=e({name:"ApplyNodeDrawer",props:{node:{type:Object,default:()=>({id:"",config:{domains:"",email:"",provider_id:"",provider:"",end_day:30}})}},setup(e){const{updateNodeConfig:c,isRefreshNode:_}=p(),{confirm:j}=n(),{useFormInput:y,useFormHelp:f}=o(),x=a(m(e.node.config)),g=t((()=>[y(s("t_17_1745227838561"),"domains",{placeholder:s("t_0_1745735774005"),onInput:e=>{x.value.domains=e.trim(),x.value.domains=x.value.domains.replace(//g,","),x.value.domains=x.value.domains.replace(/;/g,",")},onFocus:()=>{x.value.domains=x.value.domains.replace(/,^/g,"")}}),y(s("t_1_1745735764953"),"email",{placeholder:s("t_2_1745735773668"),onInput:e=>x.value.email=e.trim()}),{type:"custom",render:()=>r(v,{type:"dns",path:"provider_id",value:x.value.provider_id,"onUpdate:value":e=>{x.value.provider_id=e.value,x.value.provider=e.type}},null)},{type:"custom",render:()=>r(l,{label:s("t_5_1745735769112"),path:"end_day"},{default:()=>[r(i,{value:x.value.end_day,"onUpdate:value":e=>x.value.end_day=e,showButton:!1,min:1,class:"w-[180px]",placeholder:s("t_6_1745735765205")},null),r("span",{class:"text-[1.4rem] ml-[1.2rem]"},[s("t_7_1745735768326")])]})},f([{content:s("t_0_1747040228657"),isHtml:!1},{content:s("t_1_1747040226143"),isHtml:!1}])])),{component:h,data:b,example:w}=d({defaultValue:x,config:g,rules:u});return j((async a=>{var t;try{await(null==(t=w.value)?void 0:t.validate()),c(e.node.id,b.value),_.value=e.node.id,a()}catch(o){}})),()=>r("div",{class:"apply-node-drawer"},[r(h,{labelPlacement:"top"},null)])}});export{c as default};