"use strict";(self.webpackChunk_brizy_builder_free=self.webpackChunk_brizy_builder_free||[]).push([["288"],{9419(e,r,t){t.r(r),t.d(r,{default:()=>n});var l,a=t(2540),s=t(1378),u=((l={}).Style1="style1",l.Style2="style2",l);function n(e){let r=e.get(0);r&&r.querySelectorAll(".brz-progress-bar").forEach(e=>{var r;let t=e.querySelector(".brz-progress-bar__wrapper"),l=e.querySelector(".brz-progress-bar__percent"),n=null!=(r=(e=>{switch(e){case u.Style1:case u.Style2:return e}})(e.getAttribute((0,a.uo)("type"))))?r:u.Style1,i=(0,s.L)(null==t?void 0:t.getAttribute("data-progress"));t&&i&&(e=>{let{text:r,wrapper:t,value:l,type:a}=e,s=0,u="rtl"===document.dir?l:Math.max(-l,-100),n=setInterval(()=>{s>=l?clearInterval(n):(s++,t&&(t.style.maxWidth=s+.5+"%"),r&&(r.innerHTML=s+"%","style2"===a&&(r.style.marginInlineStart=`clamp(0%, ${Math.round(s+.5)+"%"}, 100%)`,r.style.transform=`translateX(${u}%)`)))},1500/l)})({text:l,wrapper:t,type:n,value:i})})}},1378(e,r,t){t.d(r,{L:()=>l});let l=e=>{switch(typeof e){case"string":{let r=""!==e?Number(e):NaN;return isNaN(r)?void 0:r}case"number":return isNaN(e)?void 0:e;default:return}}}}]);