import{validateArray as e}from"./validateArray.mjs";import{validateString as t}from"./validateString.mjs";const n=[`name`,`membersIds`,`adminsIds`],r=4,i=100,a=1,o=(r,i=n)=>{let a={},o=JSON.parse(JSON.stringify(r)),s=new Set(i);for(let n of s){let r=o[n];if(a[n]=[],n===`name`){let e=t(r,`Name`,4,100);e.length>0&&(a[n]=e)}if(n===`membersIds`||n===`adminsIds`){let t=e(r,`Members`,`string`,void 0,1);t.length>0&&(a[n]=t)}a[n].length===0&&delete a[n]}return a};export{a as MEMBERS_MIN_LENGTH,i as NAME_MAX_LENGTH,r as NAME_MIN_LENGTH,o as validateOrganization};
//# sourceMappingURL=validateOrganization.mjs.map