import{validateString as e}from"./validateString.mjs";import{validateEmail as t}from"./validateEmail.mjs";import{validatePhone as n}from"./validatePhone.mjs";const r=[`name`,`phone`,`email`,`phone`],i=4,a=100,o=(i,a=r)=>{let o={},s=new Set(a),c=JSON.parse(JSON.stringify(i));for(let r of s){let i=c[r];if(o[r]=[],r===`name`){let t=e(i,`User ${r}`,4,100);t.length>0&&(o[r]=t)}if(r===`email`){let e=t(i,`User Email`);e.length>0&&(o[r]=e)}if(r===`phone`){let e=n(i,`User Phone`,8,20);e.length>0&&(o[r]=e)}o[r].length===0&&delete o[r]}return o};export{a as NAMES_MAX_LENGTH,i as NAMES_MIN_LENGTH,o as validateUser};
//# sourceMappingURL=validateUser.mjs.map