(()=>{"use strict";document.addEventListener("DOMContentLoaded",function(){t.init()});const t={init:function(){this.holder=document.querySelectorAll(".qi-block-button"),this.holder.length&&[...this.holder].map(e=>{t.initItem(e)})},getRealCurrentItem:function(t){return"string"==typeof t&&""!==t&&(t=qiBlocksEditor.qodefGetCurrentBlockElement.get(t)),t},initItem:function(e){if(!(e=t.getRealCurrentItem(e)))return;const n=e.querySelector(".qodef-m-icon");if(n){let t="auto";e.classList.contains("qodef-type--icon-boxed")&&(t=parseInt(window.getComputedStyle(e).getPropertyValue("height"),10)+"px"),n.style.width=t}}}})();