import{St as HAe}from"./chunk-B_pj7Jpm.js";import{F as ye}from"./chunk-BPHMC4rz.js";import{t as H$1}from"./chunk-CHiPV57o.js";function n(i){return new RegExp(`^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$`).test(i)}function s(i){return i?i.includes(`@`):!1}var d=i=>{if(!i.value)return null;let a=[],r=HAe(i.value);for(let o of r)n(o)===!1&&a.push(`${o} 無效\n        `);return a.length===0?null:{validHosts:{reason:`invalid`,value:a.join(`. `)+`.`}}};var u=i=>{if(!i.value)return null;let a=[],r=HAe(i.value);for(let o of r)n(o)===!1&&s(o)===!1&&a.push(`${o} 無效\n        `);return a.length===0?null:{validHostsOrHandles:{reason:`invalid`,value:a.join(`. `)+`.`}}};var z={VALIDATORS:[ye.required,d,H$1],MESSAGES:{required:"網域必填。",validHosts:"輸入的網域無效。",unique:"輸入的網域中包含重複項目。"}};var H={VALIDATORS:[ye.required,u,H$1],MESSAGES:{required:"網域必填。",validHostsOrHandles:"網域或名稱無效。",unique:"網域或名稱有重複項目。"}};export{n,z as r,H as t};
//# debugId=e120d386-e983-5a08-83f2-220351391c94
//# sourceMappingURL=chunk-BtRj7p5_.js.map