// ------------------------------------------------------------------------------
// <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 progressBarElementJoyStyle() {
    return css `
:host {
  --progress-bar-font-family: unset;
  --progress-bar-font-letter-spacing: unset;
  --progress-bar-font-line-height: unset;
  --progress-bar-font-size: unset;
  --progress-bar-font-text-decoration: unset;
  --progress-bar-font-text-transform: unset;
  --progress-bar-font-weight: unset;
  --progress-bar-gap: unset;
  --progress-bar-padding-bottom: unset;
  --progress-bar-padding-left: unset;
  --progress-bar-padding-right: unset;
  --progress-bar-padding-top: unset;
  --progress-bar-shadow: unset unset unset unset unset;
  --progress-bar-shadow-blur: unset;
  --progress-bar-shadow-color: unset;
  --progress-bar-shadow-offset-x: unset;
  --progress-bar-shadow-offset-y: unset;
  --progress-bar-shadow-spread: unset;
  --progress-bar-transition-duration: unset;
  --progress-bar-transition-mode: unset;
  --progress-bar-transition-property: unset;
  --progress-bar-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 {
  line-height: 0;
  display: block;
}

:host [part="container"] {
  display: inline-block;
  position: relative;
}

:host [part="container"] [part="track"] {
  margin-right: 0;
  padding-right: 0;
  display: flex;
}

:host [part="container"] [part="track"] [part="track-fill"] {
  vertical-align: middle;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

:host [part="container"] [part="track"] [part="track-fill"] [part="fill"] {
  transition: all .4s ease-in-out;
  position: relative;
}

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

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="fill"]:before {
  content: "";
  will-change: transform;
  transform-origin: 0;
  width: 100%;
  animation: 2.1s cubic-bezier(.65, .815, .735, .395) infinite indeterminate;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="fill"]:after {
  content: "";
  will-change: transform;
  transform-origin: 0;
  width: 100%;
  animation: 2.1s cubic-bezier(.165, .84, .44, 1) 1.15s infinite indeterminate-short;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

:host, :host([orientation="horizontal"]) {
  width: 100%;
}

:host [part="container"], :host([orientation="horizontal"]) [part="container"], :host [part="container"] [part="track"], :host([orientation="horizontal"]) [part="container"] [part="track"], :host [part="container"] [part="track"] [part="track-fill"], :host([orientation="horizontal"]) [part="container"] [part="track"] [part="track-fill"] {
  width: inherit;
}

:host([orientation="vertical"]) {
  width: unset;
  height: 100%;
}

:host([orientation="vertical"]) [part="container"] {
  height: inherit;
}

:host([orientation="vertical"]) [part="container"] [part="track"], :host([orientation="vertical"]) [part="container"] [part="track"] [part="track-fill"] {
  width: unset;
  height: inherit;
}

@keyframes indeterminate {
  0% {
    transform: translateX(-100%) scaleX(0);
  }

  30% {
    transform: translateX(-30%) scaleX(.5);
  }

  60% {
    transform: translateX(100%) scaleX(.5);
  }

  100% {
    transform: translateX(100%) scaleX(0);
  }
}

@keyframes indeterminate-short {
  0% {
    transform: translateX(-100%) scaleX(0);
  }

  40% {
    transform: translateX(-50%) scaleX(.3);
  }

  70% {
    transform: translateX(100%) scaleX(.3);
  }

  100% {
    transform: translateX(100%) scaleX(0);
  }
}

:host [part="track-fill"] {
  background-color: var(--joy-scheme-highlight);
  border-radius: var(--joy-layout-radius);
}

:host [part="fill"] {
  background-color: var(--joy-color-primary-500);
}

:host([disabled]:not([disabled="false"])) [part="fill"] {
  background-color: var(--joy-color-neutral-500);
}

:host([variant="primary"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-primary-500);
}

:host([variant="secondary"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-secondary-500);
}

:host([variant="tertiary"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-tertiary-500);
}

:host([variant="danger"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-danger-500);
}

:host([variant="warning"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-warning-500);
}

:host([variant="success"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-success-500);
}

:host([variant="info"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-info-500);
}

:host([variant="highlight"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-highlight-500);
}

:host([variant="neutral"]:not([disabled]:not([disabled="false"]))) [part="fill"] {
  background-color: var(--joy-color-neutral-500);
}

:host([has-segments]) {
  --segment-gap: 4px;
  --_segment-width: calc(1 / var(--segments));
  --_mask-color: #999;
  --_jagged-edges-hack: var(--_mask-color) 0 99%, transparent calc(99% + .6px) 100%;
  --_left-circle: radial-gradient(circle closest-side at var(--joy-layout-radius) center, var(--_jagged-edges-hack));
  --_right-circle: radial-gradient(circle closest-side at calc(100% - var(--joy-layout-radius) - var(--segment-gap)) center, var(--_jagged-edges-hack));
  --_rectangle: linear-gradient(to right,
      transparent 0 var(--joy-layout-radius),
      var(--_mask-color) var(--joy-layout-radius) calc(100% - var(--joy-layout-radius) - var(--segment-gap)),
      transparent calc(100% - var(--joy-layout-radius) - var(--segment-gap)));
}

:host([has-segments]) [part="container"] {
  -webkit-mask-image: var(--_left-circle), var(--_right-circle), var(--_rectangle);
  mask-image: var(--_left-circle), var(--_right-circle), var(--_rectangle);
  -webkit-mask-size: calc(100% * var(--_segment-width) + var(--segment-gap) * var(--_segment-width));
  mask-size: calc(100% * var(--_segment-width) + var(--segment-gap) * var(--_segment-width));
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="fill"] {
  background-color: var(--joy-color-primary-500);
}

@keyframes elastic-indeterminate {
  0% {
    transform: translateX(-100%) scaleX(.02);
  }

  4% {
    transform: translateX(-88%) scaleX(.04);
  }

  8% {
    transform: translateX(-72%) scaleX(.08);
  }

  12% {
    transform: translateX(-55%) scaleX(.14);
  }

  16% {
    transform: translateX(-38%) scaleX(.22);
  }

  20% {
    transform: translateX(-22%) scaleX(.32);
  }

  24% {
    transform: translateX(-10%) scaleX(.42);
  }

  28% {
    transform: translateX(-2%) scaleX(.5);
  }

  32% {
    transform: translateX(4%) scaleX(.54);
  }

  36% {
    transform: translateX(10%) scaleX(.52);
  }

  40% {
    transform: translateX(16%) scaleX(.46);
  }

  44% {
    transform: translateX(22%) scaleX(.38);
  }

  48% {
    transform: translateX(28%) scaleX(.3);
  }

  52% {
    transform: translateX(35%) scaleX(.22);
  }

  56% {
    transform: translateX(42%) scaleX(.16);
  }

  60% {
    transform: translateX(50%) scaleX(.12);
  }

  64% {
    transform: translateX(58%) scaleX(.09);
  }

  68% {
    transform: translateX(66%) scaleX(.07);
  }

  72% {
    transform: translateX(74%) scaleX(.05);
  }

  76% {
    transform: translateX(82%) scaleX(.04);
  }

  80% {
    transform: translateX(90%) scaleX(.03);
  }

  84% {
    transform: translateX(96%) scaleX(.025);
  }

  88% {
    transform: translateX(102%) scaleX(.02);
  }

  92% {
    transform: translateX(105%) scaleX(.02);
  }

  100% {
    transform: translateX(105%) scaleX(.02);
  }
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="fill"] {
  background-color: inherit;
  will-change: transform;
  transform-origin: 0;
  animation: elastic-indeterminate calc(var(--joy-duration-long) * 2.5) cubic-bezier(.4, 0, .2, 1) infinite;
}

:host([is-indeterminate]:not([is-indeterminate="false"])) [part="fill"]:before, :host([is-indeterminate]:not([is-indeterminate="false"])) [part="fill"]:after {
  content: none;
}

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

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