// ------------------------------------------------------------------------------
// <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 progressRingElementMemphisStyle() {
    return css `
:host {
  --progress-ring-background-color: var(--memphis-color-light-neutral-200);
  --progress-ring-border-color: var(--memphis-scheme-transparent);
  --progress-ring-border-radius: 50%;
  --progress-ring-border-style: solid;
  --progress-ring-border-width: 0px;
  --progress-ring-fill-color: var(--memphis-color-light-secondary-500);
  --progress-ring-font-family: var(--memphis-font-family);
  --progress-ring-font-letter-spacing: var(--memphis-typography-body2-letter-spacing);
  --progress-ring-font-line-height: var(--memphis-typography-body2-line-height);
  --progress-ring-font-size: var(--memphis-typography-body2-font-size);
  --progress-ring-font-text-decoration: var(--memphis-typography-body2-text-decoration);
  --progress-ring-font-text-transform: var(--memphis-typography-body2-text-transform);
  --progress-ring-font-weight: var(--memphis-typography-body2-font-weight);
  --progress-ring-foreground-color: var(--memphis-scheme-foreground);
  --progress-ring-gap: var(--memphis-layout-space);
  --progress-ring-padding-bottom: 0px;
  --progress-ring-padding-left: 0px;
  --progress-ring-padding-right: 0px;
  --progress-ring-padding-top: 0px;
  --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(--memphis-duration-short);
  --progress-ring-transition-mode: ease;
  --progress-ring-transition-property: stroke, stroke-dashoffset, stroke-dasharray, transform;
  --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);
  }
}

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