(()=>{var __webpack_modules__={7121(e,_,r){"use strict";r.d(_,{O:()=>a});var t=r(5485);function a(e){(0,t.w)(()=>{const _=document.createElement("style");_.innerHTML=e,document.head.appendChild(_)})}},9843(e,_,r){"use strict";function t(e){"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}r.d(_,{Q:()=>t})},4439(e,_,r){"use strict";r.d(_,{_:()=>c});let t=!1;const a=new MutationObserver(function(){for(const[e,_]of d){const r=document.querySelector(e);r&&(_.forEach(_=>_(r,o(e))),d.delete(e))}0===d.size&&(a.disconnect(),t=!1)});function c(e,_){try{const r=document.querySelector(e);if(r)return void _(r,o(e));!function(e,_){const r=d.get(e)??[];d.set(e,[...r,_]),t||(t=!0,a.observe(document.body,{childList:!0,subtree:!0}))}(e,_)}catch(_){console.log(`Element “${e}” not found.`)}}const o=e=>_=>{const r=document.createElement("style");r.textContent=`${e} {\n${n(_)}\n}`,document.head?.appendChild(r)},n=(e="")=>e.replace(/^\s*/,"").replace(/\s*$/,""),d=new Map},5485(e,_,r){"use strict";r.d(_,{w:()=>o});var t=r(9843);let a=!1;const c=[],o=e=>a?void e():void c.push(e),n=()=>{a||(a=!0,c.forEach(e=>e()))},d=()=>{if(!a)return null!==document.body?n():void setTimeout(d,100)};d(),(0,t.Q)(n)},3824(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{p:()=>initJavaScriptPreviewer});var _safe_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9750),_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6783),_assets_src_public_utils_helpers_append_style__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7121),_assets_src_public_utils_helpers_element_ready__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4439);function initJavaScriptPreviewer(alternative,enabled){if((0,_utils__WEBPACK_IMPORTED_MODULE_1__.mZ)(enabled),enabled){const run=eval(`(()=>${alternative.run})()`);run(()=>{},{appendStyle:_assets_src_public_utils_helpers_append_style__WEBPACK_IMPORTED_MODULE_2__.O,domReady:_safe_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__.default,elementReady:_assets_src_public_utils_helpers_element_ready__WEBPACK_IMPORTED_MODULE_3__._,showContent:()=>{}})}}},5359(e,_,r){"use strict";r.r(_);var t,a=r(3824);window.nab={...(t=window,t&&"object"==typeof t&&"nab"in t?window.nab:{}),initJavaScriptPreviewer:a.p}},6783(e,_,r){"use strict";r.d(_,{mZ:()=>n}),window.wp.url;const t=window.parent,a=t.wp.data.dispatch,c=t.wp.data.select,o="nab/data";function n(e){const _=c(o).getPageAttribute("javascript-editor/javascriptEditorState");_&&a(o).setPageAttribute("javascript-editor/javascriptEditorState",{..._,isPreviewInScope:e})}},9750(e,_,r){"use strict";r.d(_,{default:()=>a});var t=r(8490);const a=r.n(t)()},8490(e){"use strict";e.exports=window.wp.domReady}},__webpack_module_cache__={},deferred;function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}deferred=[],__webpack_require__.O=(e,_,r,t)=>{if(!_){var a=1/0;for(d=0;d<deferred.length;d++){for(var[_,r,t]=deferred[d],c=!0,o=0;o<_.length;o++)(!1&t||a>=t)&&Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](_[o]))?_.splice(o--,1):(c=!1,t<a&&(a=t));if(c){deferred.splice(d--,1);var n=r();void 0!==n&&(e=n)}}return e}t=t||0;for(var d=deferred.length;d>0&&deferred[d-1][2]>t;d--)deferred[d]=deferred[d-1];deferred[d]=[_,r,t]},__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(_,{a:_}),_},__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__.O(void 0,[209],()=>__webpack_require__(5359));__webpack_exports__=__webpack_require__.O(__webpack_exports__);var __webpack_export_target__=nab="undefined"==typeof nab?{}:nab;for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__]=__webpack_exports__[__webpack_i__];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})();