'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-7a477838.js');
const loaderSpinnerSize_enum = require('./loader-spinner-size.enum-db2973f0.js');

const loaderSpinnerCss = ".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)}";
const DigiLoaderSpinnerStyle0 = loaderSpinnerCss;

const LoaderSpinner = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.afSize = loaderSpinnerSize_enum.LoaderSpinnerSize.MEDIUM;
        this.afText = undefined;
    }
    get cssModifiers() {
        return {
            'digi-loader-spinner--small': this.afSize == 'small',
            'digi-loader-spinner--medium': this.afSize == 'medium',
            'digi-loader-spinner--large': this.afSize == 'large'
        };
    }
    render() {
        return (index.h(index.Host, { key: 'd2ff7ec4dead0e6764978cd0833cfabc11eec31b' }, index.h("div", { key: '6e57f7e74bc42a4d38f33b60e8c50e37b46a6bf8', "aria-label": this.afText, "aria-live": "assertive", class: Object.assign({ 'digi-loader-spinner': true }, this.cssModifiers) }, index.h("div", { key: '9a5ff5d94df387af74ab280ba9fe0c7e85edf175', class: "digi-loader-spinner__container", "aria-hidden": "true" }, index.h("digi-icon-spinner", { key: 'a43b971d373c65b92b88c673d18dea21d7551de1', class: "digi-loader-spinner__spinner" })), this.afText && (index.h("div", { key: 'c9b17158034feae1a0e3b88bdd987a68060eaa94', class: "digi-loader-spinner__label" }, this.afText)))));
    }
    get hostElement() { return index.getElement(this); }
};
LoaderSpinner.style = DigiLoaderSpinnerStyle0;

exports.digi_loader_spinner = LoaderSpinner;
