import { watch } from "./chunk.XX234VRK.js"; import { T, e, h, n, o, r } from "./chunk.5PIDMFOE.js"; import { __decorateClass } from "./chunk.IHGPZX35.js"; // _uyihdawu1:/Users/claviska/Projects/shoelace/src/components/progress-ring/progress-ring.scss var progress_ring_default = ":host {\n position: relative;\n box-sizing: border-box;\n}\n:host *, :host *:before, :host *:after {\n box-sizing: inherit;\n}\n\n[hidden] {\n display: none !important;\n}\n\n:host {\n --track-color: var(--sl-color-gray-200);\n --indicator-color: var(--sl-color-primary-500);\n display: inline-flex;\n}\n\n.progress-ring {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n\n.progress-ring__image {\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n}\n\n.progress-ring__track {\n stroke: var(--track-color);\n}\n\n.progress-ring__indicator {\n stroke: var(--indicator-color);\n transition: 0.35s stroke-dashoffset, 0.35s stroke;\n}\n\n.progress-ring__label {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n user-select: none;\n}"; // src/components/progress-ring/progress-ring.ts var SlProgressRing = class extends h { constructor() { super(...arguments); this.size = 128; this.strokeWidth = 4; } firstUpdated() { this.updateProgress(); } handlePercentageChange() { this.updateProgress(); } updateProgress() { const radius = this.indicator.r.baseVal.value; const circumference = radius * 2 * Math.PI; const offset = circumference - this.percentage / 100 * circumference; this.indicator.style.strokeDasharray = `${circumference} ${circumference}`; this.indicator.style.strokeDashoffset = `${offset}`; } render() { return T`