import{H as e,Z as t}from"./element-plus-D99A5MMY.js";import{l as n,o as r,s as i}from"./main-D027d2Op.js";import{n as a}from"./usePopup-D1kkDbGu.js";function o(){let o=a(),s=t({name:[{required:!0,message:`请输入名称`,trigger:`blur`}]});e(()=>{o.collectionForm.uri.forEach((e,t)=>{e.value?s[`uri.${t}`]=[{validator:(e,t,r)=>{t&&!n(t.value)?r(Error(`请输入有效的URI`)):r()},trigger:`change`}]:s[`uri.${t}`]=[{required:!1}]})});function c(e){return e.length?i(r(e[0].target)):`暂无匹配项`}return{rules:s,getTargetHostname:c}}export{o as t};
//# sourceMappingURL=collection-Fg2QwatV.js.map