import{r as i,h as e,H as r,g as n}from"./p-52e3bb32.js";import{L as a}from"./p-f2a6768b.js";const d=class{constructor(e){i(this,e),this.afSize=a.MEDIUM,this.afText=void 0}get cssModifiers(){return{"digi-loader-spinner--small":"small"==this.afSize,"digi-loader-spinner--medium":"medium"==this.afSize,"digi-loader-spinner--large":"large"==this.afSize}}render(){return e(r,{key:"a006926990f9225d534e62c6478be173be6f5d3a"},e("div",{key:"888ca4a5ffa7a0c3c7d1f0af085734339f1d5111","aria-label":this.afText,"aria-live":"assertive",class:Object.assign({"digi-loader-spinner":!0},this.cssModifiers)},e("div",{key:"f43445f601961f158b2912f6a55592e69b801969",class:"digi-loader-spinner__container","aria-hidden":"true"},e("digi-icon-spinner",{key:"8a86ff4ab1818af92541bf3a682e0bd272e46000",class:"digi-loader-spinner__spinner"})),this.afText&&e("div",{key:"f77a967241945cef8f4a832698ce1c45a07c56af",class:"digi-loader-spinner__label"},this.afText)))}get hostElement(){return n(this)}};d.style=".sc-digi-loader-spinner-h{--digi--loader-spinner--background-color:var(--digi--color--marking--indication--secondary);--digi--loader-spinner--icon--size--small:1rem;--digi--loader-spinner--icon--size--medium:2rem;--digi--loader-spinner--icon--size--large:5rem;--digi-loader-spinner--font--size--small:var(--digi--typography--heading-4--font-size--desktop-xsmall);--digi-loader-spinner--font--size--medium:var(--digi--typography--heading-4--font-size--desktop);--digi-loader-spinner--font--size--large:var(--digi--typography--heading-4--font-size--desktop-large)}.sc-digi-loader-spinner-h .digi-loader-spinner.sc-digi-loader-spinner{display:flex;flex-direction:column;align-items:center;width:max-content;padding:var(--PADDING)}.sc-digi-loader-spinner-h .digi-loader-spinner--small.sc-digi-loader-spinner{--ICON-HEIGHT:var(--digi--loader-spinner--icon--size--small);--FONT-SIZE:var(--digi-loader-spinner--font--size--small);--PADDING:0}.sc-digi-loader-spinner-h .digi-loader-spinner--medium.sc-digi-loader-spinner{--ICON-HEIGHT:var(--digi--loader-spinner--icon--size--medium);--FONT-SIZE:var(--digi-loader-spinner--font--size--medium);--PADDING:var(--digi--gutter--large)}.sc-digi-loader-spinner-h .digi-loader-spinner--large.sc-digi-loader-spinner{--ICON-HEIGHT:var(--digi--loader-spinner--icon--size--large);--FONT-SIZE:var(--digi-loader-spinner--font--size--large);--PADDING:var(--digi--gutter--large)}.sc-digi-loader-spinner-h .digi-loader-spinner__container.sc-digi-loader-spinner{height:max-content;width:max-content}.sc-digi-loader-spinner-h .digi-loader-spinner__spinner.sc-digi-loader-spinner{animation:animation__rotation 3s infinite linear;transform-origin:center;--digi--icon--height:var(--ICON-HEIGHT);--digi--icon--color:var(--digi--loader-spinner--background-color)}@media (prefers-reduced-motion){.sc-digi-loader-spinner-h .digi-loader-spinner__spinner.sc-digi-loader-spinner{animation:none}}@keyframes animation__rotation{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}.sc-digi-loader-spinner-h .digi-loader-spinner__label.sc-digi-loader-spinner{margin-top:var(--digi--gutter--medium);color:var(--digi--color--text--primary)}";export{d as digi_loader_spinner}