{"version":3,"file":"./acf-blocks/products-grid/dist/js/script.js","mappings":"uBAAA,IAAMA,EAAcC,SAASC,eAAe,yBAkB5CF,SAAAA,EAAaG,iBAAiB,SAhBP,WACtBF,SACEG,iBAAiB,0CACjBC,SAAQ,SAACC,EAASC,GACdA,GAAS,GACZD,EAAQE,UAAUC,OAAO,SAE3B,IACGT,IACHA,EAAYU,MAAMC,QACjBV,SAASG,iBAAiB,0CAA0CQ,OAAS,EAC1E,OACA,GAEN,G,uCCfIC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCpBAJ,EAAoB,MAEMA,EAAoB,K","sources":["webpack://impulse-wp/./acf-blocks/products-grid/src/js/script.ts","webpack://impulse-wp/webpack/bootstrap","webpack://impulse-wp/webpack/startup"],"sourcesContent":["const showMoreBtn = document.getElementById('product-grid-showmore');\n\nconst handleShowMore = () => {\n\tdocument\n\t\t.querySelectorAll('.block-products-grid__grid-item.d-none')\n\t\t.forEach((element, index) => {\n\t\t\tif (index <= 3) {\n\t\t\t\telement.classList.remove('d-none');\n\t\t\t}\n\t\t});\n\tif (showMoreBtn) {\n\t\tshowMoreBtn.style.display =\n\t\t\tdocument.querySelectorAll('.block-products-grid__grid-item.d-none').length < 1\n\t\t\t\t? 'none'\n\t\t\t\t: '';\n\t}\n};\n\nshowMoreBtn?.addEventListener('click', handleShowMore);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// startup\n// Load entry module and return exports\n__webpack_require__(9925);\n// This entry module doesn't tell about it's top-level declarations so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(8728);\n"],"names":["showMoreBtn","document","getElementById","addEventListener","querySelectorAll","forEach","element","index","classList","remove","style","display","length","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__"],"sourceRoot":""}