'use strict';

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

const index = require('./index-8acc3c89.js');

const scBlockUiCss = ":host{display:block;position:var(--sc-block-ui-position, absolute);top:-5px;left:-5px;right:-5px;bottom:-5px;overflow:hidden;display:flex;align-items:center;justify-content:center}:host>*{z-index:1}:host:after{content:\"\";position:var(--sc-block-ui-position, absolute);top:0;left:0;right:0;bottom:0;cursor:var(--sc-block-ui-cursor, wait);background:var(--sc-block-ui-background-color, var(--sc-color-white));opacity:var(--sc-block-ui-opacity, 0.15)}:host.transparent:after{background:transparent}.overlay__content{font-size:var(--sc-font-size-large);font-weight:var(--sc-font-weight-semibold);display:grid;gap:0.5em;text-align:center}";
const ScBlockUiStyle0 = scBlockUiCss;

const ScBlockUi = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.zIndex = 1;
        this.transparent = undefined;
        this.spinner = undefined;
    }
    render() {
        return (index.h("div", { key: '91d9f75db99f5079999fb0b981c32403d9661d3a', part: "base", class: { overlay: true, transparent: this.transparent }, style: { 'z-index': this.zIndex.toString() } }, index.h("div", { key: '1790ea72e630d30c5ebcfb77736d7c2e744fdd0e', class: "overlay__content", part: "content" }, index.h("slot", { key: 'e62393831082c1c7dbcba3107ce49f49d239c93a', name: "spinner" }, !this.transparent && this.spinner && index.h("sc-spinner", { key: '4d0a1d49f3cefbdb1417e3b22c374c90ea8c46df' })), index.h("slot", { key: '2ff76f1ef358e6357d4b163d636e6bba2d69a2c4' }))));
    }
};
ScBlockUi.style = ScBlockUiStyle0;

exports.sc_block_ui = ScBlockUi;

//# sourceMappingURL=sc-block-ui.cjs.entry.js.map