import { jsx as o } from "../../../../../preact@10.29.0/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js";
import i from "classnames";
try {
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, r = new e.Error().stack;
  r && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[r] = "c6d20d48-407b-4be4-af37-07c4e78a2962", e._sentryDebugIdIdentifier = "sentry-dbid-c6d20d48-407b-4be4-af37-07c4e78a2962");
} catch {
}
const l = "adyen-kyc-progress-bar", g = "adyen-kyc-progress-bar-rounded", p = "adyen-kyc-progress-bar-indicator", s = {
  progressBar: l,
  progressBarRounded: g,
  progressBarIndicator: p
}, f = ({ progress: e, ariaLabel: r, rounded: n = !1 }) => {
  const a = ((c) => Math.min(Math.max(c, 0), 100))(e), d = `${a}%`, t = i(s.progressBar, {
    [s.progressBarRounded]: n
  });
  return /* @__PURE__ */ o(
    "div",
    {
      className: t,
      role: "progressbar",
      "aria-label": r,
      "aria-valuenow": a,
      "aria-valuemin": 0,
      "aria-valuemax": 100,
      children: /* @__PURE__ */ o("div", { className: s.progressBarIndicator, style: { width: d }, children: [
        e,
        "%"
      ] })
    }
  );
};
export {
  f as P
};
