// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function progressRingElementJoyStyle() {
    return css `
:host {
  --progress-ring-background-color: var(--joy-scheme-highlight);
  --progress-ring-border-color: var(--joy-scheme-highlight);
  --progress-ring-border-radius: none;
  --progress-ring-border-style: solid;
  --progress-ring-border-width: 0px;
  --progress-ring-fill-color: var(--joy-scheme-foreground);
  --progress-ring-font-family: var(--joy-font-family);
  --progress-ring-font-letter-spacing: var(--joy-typography-body2-letter-spacing);
  --progress-ring-font-line-height: var(--joy-typography-body2-line-height);
  --progress-ring-font-size: var(--joy-typography-body2-font-size);
  --progress-ring-font-text-decoration: var(--joy-typography-body2-text-decoration);
  --progress-ring-font-text-transform: var(--joy-typography-body2-text-transform);
  --progress-ring-font-weight: normal;
  --progress-ring-foreground-color: var(--joy-color-neutral-900);
  --progress-ring-gap: var(--joy-layout-space);
  --progress-ring-padding-bottom: 4px;
  --progress-ring-padding-left: var(--joy-layout-space);
  --progress-ring-padding-right: var(--joy-layout-space);
  --progress-ring-padding-top: 4px;
  --progress-ring-radius: 60px;
  --progress-ring-shadow: unset unset unset unset unset;
  --progress-ring-shadow-blur: unset;
  --progress-ring-shadow-color: unset;
  --progress-ring-shadow-offset-x: unset;
  --progress-ring-shadow-offset-y: unset;
  --progress-ring-shadow-spread: unset;
  --progress-ring-thickness: 6px;
  --progress-ring-transition-duration: var(--joy-duration-short);
  --progress-ring-transition-mode: ease;
  --progress-ring-transition-property: background-color, color, border-color, opacity, box-shadow;
  --progress-ring-translate: none;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host {
  --_circumference: calc(2 * 3.1416 * var(--progress-ring-radius));
  width: calc(var(--progress-ring-radius) * 2);
  height: calc(var(--progress-ring-radius) * 2);
  line-height: 0;
  display: block;
}

:host [part="svg"] {
  vertical-align: middle;
  width: 100%;
  height: 100%;
  line-height: 1;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

:host [part="svg"] [part="indeterminate"] {
  stroke-width: var(--progress-ring-thickness);
  cx: var(--progress-ring-radius);
  cy: var(--progress-ring-radius);
  r: calc(var(--progress-ring-radius) - var(--progress-ring-thickness) / 2);
  fill: none;
}

:host [part="svg"] [part="bar"] {
  stroke: var(--progress-ring-background-color);
  stroke-width: var(--progress-ring-thickness);
  fill: none;
  cx: var(--progress-ring-radius);
  cy: var(--progress-ring-radius);
  r: calc(var(--progress-ring-radius) - var(--progress-ring-thickness) / 2);
}

:host [part="svg"] [part="fill"] {
  stroke-width: var(--progress-ring-thickness);
  stroke-linecap: round;
  fill: none;
  cx: var(--progress-ring-radius);
  cy: var(--progress-ring-radius);
  r: calc(var(--progress-ring-radius) - var(--progress-ring-thickness) / 2);
  stroke-dasharray: var(--_circumference) var(--_circumference);
  stroke-dashoffset: calc(var(--_circumference) * (1 - var(--_progress-ring-value) / 100));
  transition-property: stroke-dashoffset stroke-dasharray stroke;
  transition-duration: var(--progress-ring-transition-duration);
  transition-timing-function: var(--progress-ring-transition-mode);
  transform-origin: 50%;
  stroke: var(--progress-ring-fill-color);
  animation: all ease-out var(--progress-ring-transition-duration);
  transform: rotate(-90deg);
}

:host [part="hint"] {
  flex-direction: row;
  justify-content: space-between;
  display: flex;
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="svg"] {
  transform-origin: center;
  width: 100%;
  height: 100%;
  margin: auto;
  animation: 2s linear infinite indeterminate;
  position: absolute;
  inset: 0;
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="svg"] [part="indeterminate"] {
  stroke: var(--progress-ring-fill-color);
  stroke-dasharray: calc(var(--_circumference) * .01) calc(var(--_circumference) * .99);
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: 1.5s ease-in-out infinite dash;
}

@container style(--progress-ring-border-radius: 0) {
  :host [part="svg"] [part="indeterminate"], :host [part="svg"] [part="fill"] {
    stroke-linecap: square;
  }
}

@keyframes indeterminate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: calc(var(--_circumference) * .01) calc(var(--_circumference) * .99);
    stroke-dashoffset: 0;
  }

  25% {
    stroke-dasharray: calc(var(--_circumference) * .35) calc(var(--_circumference) * .65);
    stroke-dashoffset: calc(var(--_circumference) * -.15);
  }

  50% {
    stroke-dasharray: calc(var(--_circumference) * .45) calc(var(--_circumference) * .55);
    stroke-dashoffset: calc(var(--_circumference) * -.4);
  }

  75% {
    stroke-dasharray: calc(var(--_circumference) * .25) calc(var(--_circumference) * .75);
    stroke-dashoffset: calc(var(--_circumference) * -.7);
  }

  100% {
    stroke-dasharray: calc(var(--_circumference) * .01) calc(var(--_circumference) * .99);
    stroke-dashoffset: calc(var(--_circumference) * -1);
  }
}

:host([disabled]:not([disabled="false"])) {
  --progress-ring-background-color: var(--joy-scheme-background);
  --progress-ring-border-color: var(--joy-scheme-highlight);
  --progress-ring-foreground-color: var(--joy-scheme-disabled);
  --progress-ring-fill-color: var(--joy-scheme-disabled);
}

:host([disabled]:not([disabled="false"])) [part="svg"] [part="fill"] {
  --progress-ring-fill-color: var(--joy-scheme-disabled);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="primary"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-primary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="secondary"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-secondary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-tertiary-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="danger"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-danger-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="warning"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-warning-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="success"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-success-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="info"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-info-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="highlight"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-highlight-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="fill"], :host([variant="neutral"]:not([disabled]:not([disabled="false"]))) [part="svg"] [part="indeterminate"] {
  --progress-ring-fill-color: var(--joy-color-neutral-500);
}

@keyframes elastic-ring-rotate {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes elastic-ring-dash {
  0% {
    stroke-dasharray: calc(var(--_circumference) * .02) calc(var(--_circumference) * .98);
    stroke-dashoffset: 0;
  }

  5% {
    stroke-dasharray: calc(var(--_circumference) * .06) calc(var(--_circumference) * .94);
    stroke-dashoffset: calc(var(--_circumference) * -.01);
  }

  10% {
    stroke-dasharray: calc(var(--_circumference) * .12) calc(var(--_circumference) * .88);
    stroke-dashoffset: calc(var(--_circumference) * -.03);
  }

  15% {
    stroke-dasharray: calc(var(--_circumference) * .2) calc(var(--_circumference) * .8);
    stroke-dashoffset: calc(var(--_circumference) * -.05);
  }

  20% {
    stroke-dasharray: calc(var(--_circumference) * .3) calc(var(--_circumference) * .7);
    stroke-dashoffset: calc(var(--_circumference) * -.07);
  }

  25% {
    stroke-dasharray: calc(var(--_circumference) * .4) calc(var(--_circumference) * .6);
    stroke-dashoffset: calc(var(--_circumference) * -.1);
  }

  30% {
    stroke-dasharray: calc(var(--_circumference) * .48) calc(var(--_circumference) * .52);
    stroke-dashoffset: calc(var(--_circumference) * -.13);
  }

  35% {
    stroke-dasharray: calc(var(--_circumference) * .5) calc(var(--_circumference) * .5);
    stroke-dashoffset: calc(var(--_circumference) * -.15);
  }

  40% {
    stroke-dasharray: calc(var(--_circumference) * .48) calc(var(--_circumference) * .52);
    stroke-dashoffset: calc(var(--_circumference) * -.2);
  }

  45% {
    stroke-dasharray: calc(var(--_circumference) * .42) calc(var(--_circumference) * .58);
    stroke-dashoffset: calc(var(--_circumference) * -.26);
  }

  50% {
    stroke-dasharray: calc(var(--_circumference) * .34) calc(var(--_circumference) * .66);
    stroke-dashoffset: calc(var(--_circumference) * -.33);
  }

  55% {
    stroke-dasharray: calc(var(--_circumference) * .26) calc(var(--_circumference) * .74);
    stroke-dashoffset: calc(var(--_circumference) * -.4);
  }

  60% {
    stroke-dasharray: calc(var(--_circumference) * .18) calc(var(--_circumference) * .82);
    stroke-dashoffset: calc(var(--_circumference) * -.48);
  }

  65% {
    stroke-dasharray: calc(var(--_circumference) * .12) calc(var(--_circumference) * .88);
    stroke-dashoffset: calc(var(--_circumference) * -.56);
  }

  70% {
    stroke-dasharray: calc(var(--_circumference) * .08) calc(var(--_circumference) * .92);
    stroke-dashoffset: calc(var(--_circumference) * -.64);
  }

  75% {
    stroke-dasharray: calc(var(--_circumference) * .05) calc(var(--_circumference) * .95);
    stroke-dashoffset: calc(var(--_circumference) * -.72);
  }

  80% {
    stroke-dasharray: calc(var(--_circumference) * .04) calc(var(--_circumference) * .96);
    stroke-dashoffset: calc(var(--_circumference) * -.8);
  }

  85% {
    stroke-dasharray: calc(var(--_circumference) * .03) calc(var(--_circumference) * .97);
    stroke-dashoffset: calc(var(--_circumference) * -.87);
  }

  90% {
    stroke-dasharray: calc(var(--_circumference) * .02) calc(var(--_circumference) * .98);
    stroke-dashoffset: calc(var(--_circumference) * -.93);
  }

  95% {
    stroke-dasharray: calc(var(--_circumference) * .02) calc(var(--_circumference) * .98);
    stroke-dashoffset: calc(var(--_circumference) * -.97);
  }

  100% {
    stroke-dasharray: calc(var(--_circumference) * .02) calc(var(--_circumference) * .98);
    stroke-dashoffset: calc(var(--_circumference) * -1);
  }
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="svg"] {
  animation: elastic-ring-rotate calc(var(--joy-duration-long) * 3) linear infinite;
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="svg"] [part="indeterminate"] {
  animation: elastic-ring-dash calc(var(--joy-duration-long) * 3.33) cubic-bezier(.4, 0, .2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  :host([is-indeterminate]:not([is-indeterminate="false"])) [part="svg"], :host([is-indeterminate]:not([is-indeterminate="false"])) [part="svg"] [part="indeterminate"] {
    animation: none;
  }
}

    `;
}
//# sourceMappingURL=ProgressRingElement.Joy.js.map