{"ast":null,"code":"'use strict';\n\nvar _asyncToGenerator = require(\"D:/Development/Work/CENOS/cenos-ui/node_modules/@babel/runtime/helpers/asyncToGenerator\").default;\n\nconst pMap = require('p-map');\n\nconst pFilter = /*#__PURE__*/function () {\n  var _ref = _asyncToGenerator(function* (iterable, filterer, options) {\n    const values = yield pMap(iterable, (element, index) => Promise.all([filterer(element, index), element]), options);\n    return values.filter(value => Boolean(value[0])).map(value => value[1]);\n  });\n\n  return function pFilter(_x, _x2, _x3) {\n    return _ref.apply(this, arguments);\n  };\n}();\n\nmodule.exports = pFilter; // TODO: Remove this for the next major release\n\nmodule.exports.default = pFilter;","map":{"version":3,"sources":["D:/Development/Work/CENOS/cenos-ui/node_modules/p-filter/index.js"],"names":["pMap","require","pFilter","iterable","filterer","options","values","element","index","Promise","all","filter","value","Boolean","map","module","exports","default"],"mappings":"AAAA;;;;AACA,MAAMA,IAAI,GAAGC,OAAO,CAAC,OAAD,CAApB;;AAEA,MAAMC,OAAO;AAAA,+BAAG,WAAOC,QAAP,EAAiBC,QAAjB,EAA2BC,OAA3B,EAAuC;AACtD,UAAMC,MAAM,SAASN,IAAI,CACxBG,QADwB,EAExB,CAACI,OAAD,EAAUC,KAAV,KAAoBC,OAAO,CAACC,GAAR,CAAY,CAACN,QAAQ,CAACG,OAAD,EAAUC,KAAV,CAAT,EAA2BD,OAA3B,CAAZ,CAFI,EAGxBF,OAHwB,CAAzB;AAKA,WAAOC,MAAM,CAACK,MAAP,CAAcC,KAAK,IAAIC,OAAO,CAACD,KAAK,CAAC,CAAD,CAAN,CAA9B,EAA0CE,GAA1C,CAA8CF,KAAK,IAAIA,KAAK,CAAC,CAAD,CAA5D,CAAP;AACA,GAPY;;AAAA,kBAAPV,OAAO;AAAA;AAAA;AAAA,GAAb;;AASAa,MAAM,CAACC,OAAP,GAAiBd,OAAjB,C,CACA;;AACAa,MAAM,CAACC,OAAP,CAAeC,OAAf,GAAyBf,OAAzB","sourcesContent":["'use strict';\nconst pMap = require('p-map');\n\nconst pFilter = async (iterable, filterer, options) => {\n\tconst values = await pMap(\n\t\titerable,\n\t\t(element, index) => Promise.all([filterer(element, index), element]),\n\t\toptions\n\t);\n\treturn values.filter(value => Boolean(value[0])).map(value => value[1]);\n};\n\nmodule.exports = pFilter;\n// TODO: Remove this for the next major release\nmodule.exports.default = pFilter;\n"]},"metadata":{},"sourceType":"script"}