!function(){"use strict";const e='<div class="glide__arrows" data-glide-el="controls"><button class="glide__arrow glide__arrow--left" data-glide-dir="<" aria-label="'+(window.themeisleGutenbergSlider.isRTL?window.themeisleGutenbergSlider.next:window.themeisleGutenbergSlider.prev)+'"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewbox="0 0 100 100" role="img" aria-hidden="true"><path d="M 10,50 L 60,100 L 70,90 L 30,50  L 70,10 L 60,0 Z"></path></svg></button><button class="glide__arrow glide__arrow--right" data-glide-dir="&gt;" aria-label="'+(window.themeisleGutenbergSlider.isRTL?window.themeisleGutenbergSlider.prev:window.themeisleGutenbergSlider.next)+'"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewbox="0 0 100 100" role="img" aria-hidden="true"><path d="M 10,50 L 60,100 L 70,90 L 30,50  L 70,10 L 60,0 Z"></path></svg></button></div>';var t;t=()=>{const t=setInterval((()=>{void 0!==window?.Glide&&(clearInterval(t),(()=>{const t=document.querySelectorAll(".wp-block-themeisle-blocks-slider"),i={root:null,rootMargin:"0px",threshold:[0]};t.forEach((t=>{const r=t.querySelector(".glide__slides");if(!Boolean(r.childElementCount))return!1;Object.keys(i).map((e=>i[e]=Number(i[e])));const n=new IntersectionObserver((a=>{a.forEach((i=>{if(i.isIntersecting&&0<=i.intersectionRect.height){const i="false"!==t.dataset.autoplay&&("true"===t.dataset.autoplay?2e3:t.dataset.autoplay);if("true"!==t.dataset.hideArrows){const i=document.createElement("div");i.innerHTML=e,t.appendChild(i.firstElementChild)}new window.Glide(t,{...t.dataset,type:"carousel",keyboard:!0,autoplay:i,hoverpause:!0,animationTimingFunc:t.dataset?.transition||"ease",direction:window.themeisleGutenbergSlider.isRTL?"rtl":"ltr",breakpoints:{800:{perView:1,peek:0,gap:0}}}).mount(),r&&(r.style.height=t.dataset.height),n.unobserve(t)}}),i)}));n.observe(t)}))})())}),500)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",t):t())}();