'use strict';(d=>{const h=ThemifyBuilderModuleJs.cssUrl+"feature_styles/",k={small:100,medium:150,large:200},n=a=>{const b=a.closest(".module-feature");if(b){const c=b.classList;!d.cssLazy.tb_feature_left&&c.contains("layout-icon-left")?(d.cssLazy.tb_feature_left=!0,d.LoadCss(h+"left.css")):!d.cssLazy.tb_feature_right&&c.contains("layout-icon-right")&&(d.cssLazy.tb_feature_right=!0,d.LoadCss(h+"right.css"));const g=a.getElementsByClassName("tb_feature_stroke")[0],l=g?g.getAttribute("data-progress"):
null;if(l){!d.cssLazy.tb_feature_overlay&&c.contains("with-overlay-image")&&(d.cssLazy.tb_feature_overlay=!0,d.LoadCss(h+"overlay.css"));let e=0;if(c.contains("size-custom"))e=parseInt(a.style.width)||0;else for(let f in k)if(c.contains("size-"+f)){e=k[f];break}0===e&&(e=a.offsetWidth);e=parseFloat(e/2)-parseFloat(g.getAttribute("stroke-width")/2);g.setAttribute("stroke-dasharray",parseFloat(2*Math.PI*e*l/100)+",10000")}if(b.hasAttribute("data-layout-mobile")){const e=b.getAttribute("data-layout-mobile"),
f=b.getAttribute("data-layout-desktop");a=function(m){m&&(m.w>tbLocalScript.breakpoints.mobile?(b.classList.remove("layout-"+e),b.classList.add("layout-"+f)):(b.classList.remove("layout-"+f),b.classList.add("layout-"+e)))};a({w:d.w});d.on("tfsmartresize",a)}}},p=new IntersectionObserver((a,b)=>{for(let c=a.length-1;-1<c;--c)!0===a[c].isIntersecting&&(b.unobserve(a[c].target),n(a[c].target))},{threshold:.9});d.on("builder_load_module_partial",(a,b,c)=>{if(!0===c){if(!a[0].classList.contains("module-feature"))return;
a=[a[0]]}else a=d.selectWithParent("module-feature",a);for(b=a.length-1;-1<b;--b)(c=a[b].getElementsByClassName("module-feature-chart-html5")[0])&&p.observe(c)})})(Themify);
