{"version":3,"file":"sUc7AWd3.js","sources":["../../../../node_modules/vue-prop-validation-helper/dist/validators/everyItemOfArrayShouldHave.js"],"sourcesContent":["import listMissingPropertiesFrom from '../helper/listMissingProperties.js';\nfunction everyItemOfArrayShouldHave(requiredProperties) {\n // return the vue validator function\n return function (array) { return scanArray(array, requiredProperties); };\n}\nfunction scanArray(array, requiredProperties) {\n var missingPropertiesInEachItem = array.map(function (item) {\n return listMissingPropertiesFrom(item, { requiredProperties: requiredProperties });\n });\n var hasAnyInvalidItemInArray = missingPropertiesInEachItem.some(function (item) {\n // if any item of this array has a length greater than zero it means\n // this property has an item with at least one property missing\n return item.length;\n });\n if (!hasAnyInvalidItemInArray) {\n return true;\n }\n else {\n console.error('Array (', array, ') has invalid items, see table below for missing itens:');\n console.table(missingPropertiesInEachItem);\n return false;\n }\n}\nexport default everyItemOfArrayShouldHave;\n//# sourceMappingURL=everyItemOfArrayShouldHave.js.map"],"names":["everyItemOfArrayShouldHave","requiredProperties","array","scanArray","missingPropertiesInEachItem","item","listMissingPropertiesFrom","hasAnyInvalidItemInArray"],"mappings":"kCACA,SAASA,EAA2BC,EAAoB,CAEpD,OAAO,SAAUC,EAAO,CAAE,OAAOC,EAAUD,EAAOD,CAAkB,CAAI,CAC5E,CACA,SAASE,EAAUD,EAAOD,EAAoB,CAC1C,IAAIG,EAA8BF,EAAM,IAAI,SAAUG,EAAM,CACxD,OAAOC,EAA0BD,EAAM,CAAE,mBAAoBJ,CAAkB,CAAE,CACzF,CAAK,EACGM,EAA2BH,EAA4B,KAAK,SAAUC,EAAM,CAG5E,OAAOA,EAAK,MACpB,CAAK,EACD,OAAKE,GAID,QAAQ,MAAM,UAAWL,EAAO,yDAAyD,EACzF,QAAQ,MAAME,CAA2B,EAClC,IALA,EAOf","x_google_ignoreList":[0]}