/******/ (() => { // webpackBootstrap
/*!************************************************!*\
  !*** ./assets/src/blocks/progress-bar/view.js ***!
  \************************************************/
document.addEventListener("DOMContentLoaded", () => {
  document.querySelectorAll(".thim-blocks-progress-bar").forEach(container => {
    const fill = container.querySelector(".thim-progress-fill");
    const percentText = container.querySelector(".thim-progress-percent");
    const target = parseInt(fill.getAttribute("data-percentage"), 10) || 0;
    let current = 0;
    const step = () => {
      if (current < target) {
        current++;
        fill.style.width = current + "%";
        if (percentText) {
          percentText.textContent = current + "%";
        }
        requestAnimationFrame(step);
      }
    };
    step();
  });
});
/******/ })()
;
//# sourceMappingURL=view.js.map