{"version":3,"file":"./block-editor/blocks/header-multi-media/view-script.js","mappings":"YACA,IAAIA,ECAoB,SAASC,GACX,oBAAXC,QAA0BA,OAAOC,aAC1CC,OAAOC,eAAeJ,EAASC,OAAOC,YAAa,CAAEG,MAAO,WAE7DF,OAAOC,eAAeJ,EAAS,aAAc,CAAEK,OAAO,GACvD,E,mCCNA,IAAIC,EAAMC,SAASC,eAAe,SAC9BC,EAAOF,SAASC,eAAe,cACnC,GAAGF,EAAK,CAEN,IAAII,GAAW,EACfJ,EAAIK,QAAU,WACZD,GAAY,CACd,EAGAJ,EAAIM,UAAY,WACdF,GAAY,CACd,EACAH,SAASC,eAAe,cAAcK,QAAU,WACzCH,GACCD,EAAIK,UAAUC,OAAO,QACrBN,EAAIK,UAAUE,IAAI,SAe1BV,EAAIW,UAXIR,EAAIK,UAAUE,IAAI,QAClBP,EAAIK,UAAUC,OAAO,SAM7BT,EAAIY,OAHJ,CACF,C","sources":["webpack://welocalize-theme/webpack/bootstrap","webpack://welocalize-theme/webpack/runtime/make namespace object","webpack://welocalize-theme/./block-editor/blocks/header-multi-media/view-script.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define __esModule on exports\n__webpack_require__.r = function(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};","var vid = document.getElementById(\"video\");\nvar btn = document.getElementById(\"video-play\");\nif(vid) {\n // if video status is changed to \"paused\", then change control button to \"Continue Play\"\n var isPlaying =true;\n vid.onpause = function() {\n isPlaying = false;\n };\n\n // if video status is changed to \"playing\", then change control button to \"Stop\"\n vid.onplaying = function() {\n isPlaying = true;\n };\n document.getElementById(\"video-play\").onclick = function() { \n if(isPlaying) {\n btn.classList.remove(\"play\");\n btn.classList.add(\"pause\");\n pauseVid();\n }\n else {\n btn.classList.add(\"play\");\n btn.classList.remove(\"pause\");\n playVid();\n }\n }; \n}\nfunction playVid() { \n vid.play(); \n} \n\nfunction pauseVid() { \n vid.pause(); \n} "],"names":["__webpack_require__","exports","Symbol","toStringTag","Object","defineProperty","value","vid","document","getElementById","btn","isPlaying","onpause","onplaying","onclick","classList","remove","add","pause","play"],"sourceRoot":""}