{"version":3,"file":"block_video.bundle.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,IAAMA,SAAS,GAAG,SAAZA,SAASA,CAAKC,KAAK,EAAM;EAE9B,IAAMC,MAAM,GAAGD,KAAK,CAACE,aAAa,CAAE,iBAAkB,CAAC;EACvD,IAAMC,QAAQ,GAAGH,KAAK,CAACE,aAAa,CAAE,oBAAqB,CAAC;EAE5D,IAAKD,MAAM,IAAIE,QAAQ,EAAG;IAEzBF,MAAM,CAACG,gBAAgB,CAAE,OAAO,EAAE,YAAM;MAEvC,IAAMC,KAAK,GAAGF,QAAQ,CAACG,OAAO,CAACC,SAAS,CAAE,IAAK,CAAC;MAEhDJ,QAAQ,CAACK,WAAW,CAAEH,KAAM,CAAC;MAC7BJ,MAAM,CAACQ,SAAS,CAACC,GAAG,CAAE,uBAAwB,CAAC;MAC/CV,KAAK,CACHE,aAAa,CAAE,uBAAwB,CAAC,CACxCO,SAAS,CAACC,GAAG,CAAE,8BAA+B,CAAC;IAElD,CAAE,CAAC;EAEJ;AAED,CAAC;AAEDC,QAAQ,CAACC,gBAAgB,CAAE,UAAW,CAAC,CAACC,OAAO,CAAE,UAAEb,KAAK,EAAM;EAE7D;EACA;EACA;;EAEAD,SAAS,CAAEC,KAAM,CAAC;AAEnB,CAAE,CAAC;;;;;;;;;;;;ACpCH;;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;ACN8B","sources":["webpack://wombat/./src/blocks/video/video.js","webpack://wombat/./src/blocks/video/_video-styles.scss?e405","webpack://wombat/webpack/bootstrap","webpack://wombat/webpack/runtime/compat get default export","webpack://wombat/webpack/runtime/define property getters","webpack://wombat/webpack/runtime/hasOwnProperty shorthand","webpack://wombat/webpack/runtime/make namespace object","webpack://wombat/./src/blocks/video/block-video.js"],"sourcesContent":["/**\n * Load and play video on click\n *\n * @param {object} block\n */\nconst playVideo = ( block ) => {\n\n\tconst button = block.querySelector( \".js-play-button\" );\n\tconst template = block.querySelector( \".js-video-template\" );\n\n\tif ( button && template ) {\n\n\t\tbutton.addEventListener( \"click\", () => {\n\n\t\t\tconst video = template.content.cloneNode( true );\n\n\t\t\ttemplate.replaceWith( video );\n\t\t\tbutton.classList.add( \"b-video__icon--hidden\" );\n\t\t\tblock\n\t\t\t\t.querySelector( \".b-video__video-image\" )\n\t\t\t\t.classList.add( \"b-video__video-image--hidden\" );\n\n\t\t} );\n\n\t}\n\n};\n\ndocument.querySelectorAll( \".b-video\" ).forEach( ( block ) => {\n\n\t/////////////////////\n\t// BLOCK CODE HERE //\n\t/////////////////////\n\n\tplayVideo( block );\n\n} );\n","// extracted by mini-css-extract-plugin\nexport {};","// 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","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import \"./_video-styles.scss\";\n\nimport './video';\n"],"names":["playVideo","block","button","querySelector","template","addEventListener","video","content","cloneNode","replaceWith","classList","add","document","querySelectorAll","forEach"],"sourceRoot":""}