import { h } from '../ema.core.js';

import './chunk-de721f0a.js';
import { j as TranslateService, t as formDefinitions, d as Util, e as DomUtil } from './chunk-f41c48db.js';

class LoadingSpinner {
    constructor() {
        this.isActive = true;
        this.type = 'android';
        this.color = 'grey';
    }
    show() {
        this.host.style.display = 'block';
        this.isActive = true;
    }
    hide() {
        this.host.style.display = 'none';
        this.isActive = false;
    }
    toggle() {
        if (this.isActive) {
            this.hide();
        }
        else {
            this.show();
        }
    }
    render() {
        switch (this.type) {
            case 'circle':
                return (h("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", width: "40px", height: "40px", viewBox: "0 0 50 50", style: "enable-background:new 0 0 50 50;", xmlSpace: "preserve" },
                    h("path", { fill: this.color, d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z", transform: "rotate(360 -4.05439e-8 -4.05439e-8)" },
                        h("animateTransform", { attributeType: "xml", attributeName: "transform", type: "rotate", from: "0 25 25", to: "360 25 25", dur: "0.6s", repeatCount: "indefinite" }))));
            case 'bars':
                return (h("svg", { version: "1.1", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", x: "0px", y: "0px", width: "24px", height: "30px", viewBox: "0 0 24 30", style: "enable-background:new 0 0 50 50;", xmlSpace: "preserve" },
                    h("rect", { x: "0", y: "5.83333", width: "4", height: "18.3333", fill: this.color, opacity: "0.2" },
                        h("animate", { attributeName: "opacity", attributeType: "XML", values: "0.2; 1; .2", begin: "0s", dur: "0.6s", repeatCount: "indefinite" }),
                        h("animate", { attributeName: "height", attributeType: "XML", values: "10; 20; 10", begin: "0s", dur: "0.6s", repeatCount: "indefinite" }),
                        h("animate", { attributeName: "y", attributeType: "XML", values: "10; 5; 10", begin: "0s", dur: "0.6s", repeatCount: "indefinite" })),
                    h("rect", { x: "8", y: "6.66667", width: "4", height: "16.6667", fill: this.color, opacity: "0.2" },
                        h("animate", { attributeName: "opacity", attributeType: "XML", values: "0.2; 1; .2", begin: "0.15s", dur: "0.6s", repeatCount: "indefinite" }),
                        h("animate", { attributeName: "height", attributeType: "XML", values: "10; 20; 10", begin: "0.15s", dur: "0.6s", repeatCount: "indefinite" }),
                        h("animate", { attributeName: "y", attributeType: "XML", values: "10; 5; 10", begin: "0.15s", dur: "0.6s", repeatCount: "indefinite" })),
                    h("rect", { x: "16", y: "9.16667", width: "4", height: "11.6667", fill: this.color, opacity: "0.2" },
                        h("animate", { attributeName: "opacity", attributeType: "XML", values: "0.2; 1; .2", begin: "0.3s", dur: "0.6s", repeatCount: "indefinite" }),
                        h("animate", { attributeName: "height", attributeType: "XML", values: "10; 20; 10", begin: "0.3s", dur: "0.6s", repeatCount: "indefinite" }),
                        h("animate", { attributeName: "y", attributeType: "XML", values: "10; 5; 10", begin: "0.3s", dur: "0.6s", repeatCount: "indefinite" }))));
            case 'android':
                return (h("svg", { class: "spinner-android", viewBox: "0 0 50 50" },
                    h("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none", stroke: this.color, "stroke-width": "5" })));
            case 'ios':
                return (h("svg", { class: "spinner-ios", xmlns: "http://www.w3.org/2000/svg", width: "27", height: "27", viewBox: "0 0 27 27", fill: this.color },
                    h("path", { d: "M18.696,10.5c-0.275-0.479-0.113-1.09,0.365-1.367l4.759-2.751c0.482-0.273,1.095-0.11,1.37,0.368 c0.276,0.479,0.115,1.092-0.364,1.364l-4.764,2.751C19.583,11.141,18.973,10.977,18.696,10.5z" }),
                    h("path", { d: "M16.133,6.938l2.75-4.765c0.276-0.478,0.889-0.643,1.367-0.366c0.479,0.276,0.641,0.886,0.365,1.366l-2.748,4.762 C17.591,8.415,16.979,8.58,16.5,8.303C16.021,8.027,15.856,7.414,16.133,6.938z" }),
                    h("path", { d: "M13.499,7.5c-0.552,0-1-0.448-1-1.001V1c0-0.554,0.448-1,1-1c0.554,0,1.003,0.447,1.003,1v5.499 C14.5,7.053,14.053,7.5,13.499,7.5z" }),
                    h("path", { d: "M8.303,10.5c-0.277,0.477-0.888,0.641-1.365,0.365L2.175,8.114C1.697,7.842,1.532,7.229,1.808,6.75 c0.277-0.479,0.89-0.642,1.367-0.368l4.762,2.751C8.416,9.41,8.58,10.021,8.303,10.5z" }),
                    h("path", { d: "M9.133,7.937l-2.75-4.763c-0.276-0.48-0.111-1.09,0.365-1.366c0.479-0.277,1.09-0.114,1.367,0.366l2.75,4.765 c0.274,0.476,0.112,1.088-0.367,1.364C10.021,8.581,9.409,8.415,9.133,7.937z" }),
                    h("path", { d: "M6.499,14.5H1c-0.554,0-1-0.448-1-1c0-0.554,0.447-1.001,1-1.001h5.499c0.552,0,1.001,0.448,1.001,1.001 C7.5,14.052,7.052,14.5,6.499,14.5z" }),
                    h("path", { d: "M8.303,16.502c0.277,0.478,0.113,1.088-0.365,1.366l-4.762,2.749c-0.478,0.273-1.091,0.112-1.368-0.366 c-0.276-0.479-0.111-1.089,0.367-1.368l4.762-2.748C7.415,15.856,8.026,16.021,8.303,16.502z" }),
                    h("path", { d: "M10.866,20.062l-2.75,4.767c-0.277,0.475-0.89,0.639-1.367,0.362c-0.477-0.277-0.642-0.886-0.365-1.365l2.75-4.764 c0.277-0.477,0.888-0.638,1.366-0.365C10.978,18.974,11.141,19.585,10.866,20.062z" }),
                    h("path", { d: "M13.499,19.502c0.554,0,1.003,0.448,1.003,1.002v5.498c0,0.55-0.448,0.999-1.003,0.999c-0.552,0-1-0.447-1-0.999v-5.498 C12.499,19.95,12.946,19.502,13.499,19.502z" }),
                    h("path", { d: "M17.867,19.062l2.748,4.764c0.275,0.479,0.113,1.088-0.365,1.365c-0.479,0.276-1.091,0.112-1.367-0.362l-2.75-4.767 c-0.276-0.477-0.111-1.088,0.367-1.365C16.979,18.424,17.591,18.585,17.867,19.062z" }),
                    h("path", { d: "M18.696,16.502c0.276-0.48,0.887-0.646,1.365-0.367l4.765,2.748c0.479,0.279,0.64,0.889,0.364,1.368 c-0.275,0.479-0.888,0.64-1.37,0.366l-4.759-2.749C18.583,17.59,18.421,16.979,18.696,16.502z" }),
                    h("path", { d: "M25.998,12.499h-5.501c-0.552,0-1.001,0.448-1.001,1.001c0,0.552,0.447,1,1.001,1h5.501c0.554,0,1.002-0.448,1.002-1 C27,12.946,26.552,12.499,25.998,12.499z" })));
            default:
                return (null);
        }
    }
    static get is() { return "ema-loading-spinner"; }
    static get properties() { return {
        "color": {
            "type": String,
            "attr": "color"
        },
        "hide": {
            "method": true
        },
        "host": {
            "elementRef": true
        },
        "isActive": {
            "state": true
        },
        "show": {
            "method": true
        },
        "toggle": {
            "method": true
        },
        "type": {
            "type": String,
            "attr": "type"
        }
    }; }
    static get style() { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-loading-spinner{display:block;text-align:center!important;margin-top:-1rem}ema-loading-spinner svg{width:2rem;height:2rem}ema-loading-spinner svg.spinner-android{-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}ema-loading-spinner svg.spinner-android .path{stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}ema-loading-spinner svg.spinner-ios{-webkit-animation:iosIntro .6s;animation:iosIntro .6s}ema-loading-spinner svg.spinner-ios path:first-of-type{-webkit-animation:pulse 1s linear infinite;animation:pulse 1s linear infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(2){-webkit-animation:pulse 1s linear -83ms infinite;animation:pulse 1s linear -83ms infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(3){-webkit-animation:pulse 1s linear -.166s infinite;animation:pulse 1s linear -.166s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(4){-webkit-animation:pulse 1s linear -.249s infinite;animation:pulse 1s linear -.249s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(5){-webkit-animation:pulse 1s linear -.332s infinite;animation:pulse 1s linear -.332s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(6){-webkit-animation:pulse 1s linear -.415s infinite;animation:pulse 1s linear -.415s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(7){-webkit-animation:pulse 1s linear -.498s infinite;animation:pulse 1s linear -.498s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(8){-webkit-animation:pulse 1s linear -.581s infinite;animation:pulse 1s linear -.581s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(9){-webkit-animation:pulse 1s linear -.664s infinite;animation:pulse 1s linear -.664s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(10){-webkit-animation:pulse 1s linear -.747s infinite;animation:pulse 1s linear -.747s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(11){-webkit-animation:pulse 1s linear -.83s infinite;animation:pulse 1s linear -.83s infinite}ema-loading-spinner svg.spinner-ios path:nth-of-type(12){-webkit-animation:pulse 1s linear -.913s infinite;animation:pulse 1s linear -.913s infinite}\@-webkit-keyframes rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}\@keyframes rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}\@-webkit-keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}\@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}\@-webkit-keyframes pulse{50%{fill-opacity:.2}to{fill-opacity:1}}\@keyframes pulse{50%{fill-opacity:.2}to{fill-opacity:1}}\@-webkit-keyframes iosIntro{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}\@keyframes iosIntro{0%{-webkit-transform:scale(0);transform:scale(0);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}"; }
}

class LoginForm {
    constructor() {
        this.submitLabel = 'LOGIN';
        this.forgotPasswordLabel = 'PASSWORD FORGOTTEN?';
        this.language = 'en';
        this.type = 'name-password';
        this.translate = TranslateService.instance;
    }
    componentWillLoad() {
        this.data = formDefinitions.loginForm.data.attributes;
        this.definitions = formDefinitions.loginForm.data.meta.definitions;
    }
    componentDidLoad() {
        this.host.getElementsByTagName('ema-form')[0].addEventListener('formSubmit', (event) => {
            this.loginHandler(event);
        });
    }
    componentDidUnload() {
        this.host.getElementsByTagName('ema-form')[0].removeEventListener('formSubmit', this.loginHandler);
    }
    loginHandler(event) {
        event.preventDefault();
        this.formSubmit.emit(event.detail);
    }
    alterForm(type) {
        if (type === 'email-password') {
            this.definitions.username.label = 'EMAIL ADDRESS';
            this.definitions.username.constraints = {
                email: {
                    message: "^" + this.translate.get('EMAIL ERROR')
                },
                presence: true,
            };
        }
    }
    render() {
        this.alterForm(this.type);
        return (h("ema-form", { "data-json": JSON.stringify(this.data), "definitions-json": JSON.stringify(this.definitions), language: this.language, "submit-label": this.submitLabel, "submit-error": this.submitError }));
    }
    static get is() { return "ema-login-form"; }
    static get properties() { return {
        "forgotPasswordLabel": {
            "type": String,
            "attr": "forgot-password-label"
        },
        "forgotPasswordUrl": {
            "type": String,
            "attr": "forgot-password-url"
        },
        "host": {
            "elementRef": true
        },
        "language": {
            "type": String,
            "attr": "language"
        },
        "submitError": {
            "type": String,
            "attr": "submit-error"
        },
        "submitLabel": {
            "type": String,
            "attr": "submit-label"
        },
        "type": {
            "type": String,
            "attr": "type"
        }
    }; }
    static get events() { return [{
            "name": "formSubmit",
            "method": "formSubmit",
            "bubbles": true,
            "cancelable": true,
            "composed": true
        }]; }
    static get style() { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-login-form .forgot{margin-top:15px}ema-login-form .error{color:red;margin-top:15px}"; }
}

class Modal {
    constructor() {
        this.fadeDuration = 150;
        this.html = '';
        this.width = '80%';
        this.centerVertical = true;
        this.centerContent = false;
        this.allowClose = 'true';
        this.id = Util.getUUID();
    }
    async show(html) {
        this.host.querySelectorAll('.modal-check')[0]['checked'] = true;
        if (html)
            this.html = html;
        this.postRender();
        setTimeout(() => {
        }, 210);
    }
    async hide() {
        this.host.querySelectorAll('.modal-check')[0]['checked'] = false;
    }
    modalContentChangeHandler() {
        this.html = this.modalContent;
    }
    componentWillLoad() {
        if (this.modalContent)
            this.html = this.modalContent;
    }
    componentDidLoad() {
        this.postRender();
    }
    componentDidUpdate() {
        this.postRender();
    }
    postRender() {
        this.modalWrapper = this.host.querySelector('.modal-wrapper');
        this.modalHeader = this.host.querySelector('.modal-header');
        this.modal = this.host.querySelector('.modal');
        this.modalBackground = this.host.querySelector('.modal-background');
        this.content = this.host.querySelector('.modal-content-render');
        if (this.html) {
            this.host.getElementsByClassName('html-render')[0].innerHTML = this.html;
        }
        setTimeout(() => {
            let headerH = this.modalHeader['offsetHeight'];
            if (this.modal['offsetHeight'] > (this.content['offsetHeight'] + headerH)) {
                let correction = this.modal['offsetHeight'] - (this.content['offsetHeight'] + headerH);
                this.modal['style'].height = (this.modal['offsetHeight'] - correction) + 'px';
            }
            this.modal['style'].width = this.width;
            if (this.height) {
                this.modal['style'].height = this.height;
            }
            if (this.centerContent) {
                DomUtil.addClass(this.content, 'modal-content-centered');
                DomUtil.addClass(this.modalHeader, 'modal-header-centered');
            }
            if (!this.centerVertical) {
                DomUtil.addClass(this.modal, 'modal-align-top');
            }
            if (!this.modalTitle) {
                DomUtil.addClass(this.modalHeader, 'modal-header-no-title');
            }
            if (this.allowClose == 'false') {
                this.host.querySelectorAll('.modal-background')[0].setAttribute('for', '');
            }
            else {
                this.host.querySelectorAll('.modal-background')[0].setAttribute('for', 'modal-' + this.id);
            }
        }, 100);
    }
    render() {
        return (h("div", { class: 'modal-wrapper' },
            h("input", { type: "checkbox", id: 'modal-' + this.id, class: 'modal-check' }),
            h("label", { htmlFor: 'modal-' + this.id, class: "modal-background" }),
            h("div", { class: "modal" },
                h("div", { class: "modal-header" },
                    this.modalTitle &&
                        h("div", { class: "modal-title" }, this.modalTitle),
                    this.allowClose == 'true' &&
                        h("label", { htmlFor: 'modal-' + this.id },
                            h("img", { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAdVBMVEUAAABNTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU1NTU0N3NIOAAAAJnRSTlMAAQIDBAUGBwgRFRYZGiEjQ3l7hYaqtLm8vsDFx87a4uvv8fP1+bbY9ZEAAAB8SURBVBhXXY5LFoJAAMOCIP4VBRXEv5j7H9HFDOizu2TRFljedgCQHeocWHVaAWStXnKyl2oVWI+kd1XLvFV1D7Ng3qrWKYMZ+MdEhk3gbhw59KvlH0eTnf2mgiRwvQ7NW6aqNmncukKhnvo/zzlQ2PR/HgsAJkncH6XwAcr0FUY5BVeFAAAAAElFTkSuQmCC", width: "16", height: "16", alt: "" }))),
                h("div", { class: "modal-content-render" }, this.html !== '' ? (h("span", { class: 'html-render' })) : (h("slot", null))))));
    }
    static get is() { return "ema-modal"; }
    static get properties() { return {
        "allowClose": {
            "type": String,
            "attr": "allow-close"
        },
        "centerContent": {
            "type": Boolean,
            "attr": "center-content"
        },
        "centerVertical": {
            "type": Boolean,
            "attr": "center-vertical"
        },
        "height": {
            "type": String,
            "attr": "height"
        },
        "hide": {
            "method": true
        },
        "host": {
            "elementRef": true
        },
        "html": {
            "state": true
        },
        "modalContent": {
            "type": String,
            "attr": "modal-content",
            "watchCallbacks": ["modalContentChangeHandler"]
        },
        "modalTitle": {
            "type": String,
            "attr": "modal-title"
        },
        "show": {
            "method": true
        },
        "width": {
            "type": String,
            "attr": "width"
        }
    }; }
    static get style() { return ":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}ema-modal input[type=checkbox]{display:none}ema-modal input[type=checkbox]:checked~.modal,ema-modal input[type=checkbox]:checked~.modal-background{display:block;opacity:1}ema-modal .modal-wrapper{z-index:9996;display:block}ema-modal .modal-background{width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:9998}ema-modal .modal,ema-modal .modal-background{opacity:0;position:fixed;top:0;left:0;display:none;-webkit-transition:opacity .2s;transition:opacity .2s}ema-modal .modal{border-radius:var(--ema-border-radius,3px);background:var(--ema-background,#fff);right:0;bottom:0;margin:auto;min-height:180px;min-width:180px;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:9999;overflow-y:auto}ema-modal .modal-align-top{margin:var(--ema-paddig,15px) auto}ema-modal .modal-header{background-color:var(--ema-background,#fff);border-bottom:var(--ema-border,1px solid #c5c9cd);-webkit-box-sizing:border-box;box-sizing:border-box;padding:var(--ema-padding-md,1rem)}ema-modal .modal-header .modal-title{margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-weight:700}ema-modal .modal-header label{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;top:var(--ema-padding-md,1rem);right:var(--ema-padding-md,1rem);line-height:50px;padding:0 var(--ema-padding-md,1rem) 0 var(--ema-padding-md,1rem);margin-top:-1rem;margin-right:-.8rem;cursor:pointer;z-index:1}ema-modal .modal-header label:hover img{opacity:.6}ema-modal .modal-header.modal-header-centered{text-align:center}ema-modal .modal-header.modal-header-centered .modal-title{text-align:center;padding-top:var(--ema-padding-xl,2rem);margin:0 auto}ema-modal .modal-header.modal-header-centered label{right:50%;margin-left:-8px}ema-modal .modal-header.modal-header-no-title{border-bottom:none}ema-modal .modal-header.modal-header-no-title label{top:var(--ema-padding-sm,.5rem)}ema-modal .modal-content-render{padding:var(--ema-padding-md,1rem)}ema-modal .modal-content-render.modal-content-centered{text-align:center;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}"; }
}

export { LoadingSpinner as EmaLoadingSpinner, LoginForm as EmaLoginForm, Modal as EmaModal };
