((e,t)=>{"use strict";const l=ThemifyBuilderModuleJs.cssUrl+"feature_styles/",o={small:100,medium:150,large:200},r=r=>{const a=r.closest(".module-feature");if(a){const i=a.classList,{layoutMobile:s,layoutDesktop:u}=a.dataset,f=r.tfClass("tb_feature_stroke")[0],y=f?.dataset.progress;if(i.contains("layout-icon-left")?e.loadCss(l+"left","tb_feature_left"):i.contains("layout-icon-right")&&e.loadCss(l+"right","tb_feature_right"),y){i.contains("with-overlay-image")&&e.loadCss(l+"overlay","tb_feature_overlay");let a=0;if(i.contains("size-custom"))a=~~r.style.width;else for(let e in o)if(i.contains("size-"+e)){a=o[e];break}0===a&&(a=r.offsetWidth),a=t(a/2)-t(f.getAttribute("stroke-width")/2),f.setAttribute("stroke-dasharray",t(2*Math.PI*a*y/100)+",10000")}if(s){const t=t=>{const o=a.classList;if(t.w>themify_vars.breakpoints.mobile)o.remove("layout-"+s),o.add("layout-"+u);else{o.remove("layout-"+u),o.add("layout-"+s);const t=s.replace("icon-","");"top"!==t&&e.loadCss(l+t,"tb_feature_"+t)}};t({w:e.w}),e.on("tfsmartresize",t)}}},a=new IntersectionObserver(((e,t)=>{for(let l=e.length-1;l>-1;--l){let o=e[l];!0===o.isIntersecting&&(t.unobserve(o.target),r(o.target))}}),{threshold:.9});e.on("builder_load_module_partial",((t,l)=>{if(!0!==l||t.classList.contains("module-feature"))for(let l=e.selectWithParent("module-feature",t),o=l.length-1;o>-1;--o){let e=l[o].tfClass("module-feature-chart-html5")[0];e&&a.observe(e)}}))})(Themify,parseFloat);