(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}var e=function(e){var o=e.querySelector("img");o&&"object"===t(o)&&"clientWidth"in o&&e.style.setProperty("--width-child-img","".concat(o.clientWidth,"px"))};wp.blocks.registerBlockStyle("core/paragraph",{name:"boxed",label:"Laatikko"});var o=new LazyLoad({callback_loaded:function(t){"figure"===t.parentElement.tagName&&e(t.parentElement)}});window.addEventListener("load",(function(){o.update(),function(t){t.forEach((function(t){e(t)}))}(document.querySelectorAll("figure")),window.acf&&window.acf.addAction("render_block_preview",(function(t){o.update()}))}))})();