import{j}from'./chunk-BlVv8LBg.js';import{bR as ye,bT as xxe}from'./main-DEZ5cZzu.js';function s(e){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(e);}function t(e){return e?e.includes("@"):false;}var u=e=>{if(!e.value)return null;let i=[],a=xxe(e.value);for(let n of a)s(n)===false&&i.push(""+n+"\uC740 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 ");return i.length===0?null:{validHosts:{reason:"invalid",value:i.join(". ")+"."}};},d=e=>{if(!e.value)return null;let i=[],a=xxe(e.value);for(let n of a)s(n)===false&&t(n)===false&&i.push(""+n+"\uC740 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 ");return i.length===0?null:{validHostsOrHandles:{reason:"invalid",value:i.join(". ")+"."}};},v={VALIDATORS:[ye.required,u,j],MESSAGES:{required:"\uB3C4\uBA54\uC778\uC774 \uD544\uC218\uC785\uB2C8\uB2E4",validHosts:"\uC785\uB825\uD55C \uB3C4\uBA54\uC778\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",unique:"\uC785\uB825\uD55C \uB3C4\uBA54\uC778\uC5D0 \uC911\uBCF5 \uD56D\uBAA9\uC774 \uC788\uC2B5\uB2C8\uB2E4"}},z={VALIDATORS:[ye.required,d,j],MESSAGES:{required:"\uB3C4\uBA54\uC778\uC774 \uD544\uC218\uC785\uB2C8\uB2E4",validHostsOrHandles:"\uB3C4\uBA54\uC778 \uB610\uB294 \uD578\uB4E4\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4",unique:"\uB3C4\uBA54\uC778 \uB610\uB294 \uD578\uB4E4\uC5D0 \uC911\uBCF5 \uD56D\uBAA9\uC774 \uC788\uC2B5\uB2C8\uB2E4"}};/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{s,v,z};//# sourceMappingURL=chunk-DxOctuNS.js.map