class LiquidCarouselSlidesIndicatorBehavior extends LiquidBehavior{static behaviorName="liquidCarouselSlidesIndicator";static viewEvents={"carousel:activate":"onCarouselActivate","carousel:select":"setCurrentIndex"};options(){return{leadingZero:!1}}get ui(){return{wrapper:".lqd-carousel-slides-ind",current:".lqd-carousel-slides-ind-current",total:".lqd-carousel-slides-ind-total"}}onCarouselActivate(){this.setTotal()}setTotal(){const t=this.getOption("leadingZero"),e=this.view.carouselSlides.length;this.getUI("total")[0]&&(this.getUI("total")[0].innerText=`${t&&e<10?"0":""}${e}`),this.getUI("wrapper")[0].style.setProperty("--lqd-carousel-slides-total",e)}setCurrentIndex(){const t=this.getOption("leadingZero"),e=this.view.selectedIndex+1;this.getUI("current")[0]&&(this.getUI("current")[0].innerText=`${t&&e<10?"0":""}${e}`),this.getUI("wrapper")[0].style.setProperty("--lqd-carousel-slides-current",e)}}typeof window<"u"&&(window.liquid?.app?window.liquid?.app?.model?.set("loadedBehaviors",[...window.liquid.app.model.get("loadedBehaviors"),LiquidCarouselSlidesIndicatorBehavior]):window.liquid?.loadedBehaviors?.push(LiquidCarouselSlidesIndicatorBehavior));
