import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-AiOs8RvA.js';

const verdocsDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:absolute;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}verdocs-dialog .dialog{width:420px;display:-ms-flexbox;display:flex;max-width:100%;overflow:hidden;border-radius:4px;-ms-flex-direction:column;flex-direction:column;background:#ffffff;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;padding:8px 16px;-ms-flex-direction:row;flex-direction:row;color:#ffffff;background:#46497d}verdocs-dialog .content{padding:16px}verdocs-dialog .content p{margin:0 0 1em 0}verdocs-dialog .buttons{gap:14px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}";

const VerdocsDialog$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsDialog extends H {
    constructor() {
        super();
        this.__registerHost();
        this.exit = createEvent(this, "exit");
    }
    // We need a separate event handler for clicking the background because it can receive events "through" other child components
    handleDismiss(e) {
        var _a;
        if (e.target.className === 'background-overlay') {
            e.preventDefault();
            (_a = this.exit) === null || _a === void 0 ? void 0 : _a.emit();
        }
    }
    render() {
        return (h(Host, { key: 'db89d061e5d4b2aaef751621cfb32a332034ceed' }, h("div", { key: 'fb928bd8fda58c5c9c5bbed662c055dc00db5f6b', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '25c82f341ea3437777b69d2ef2578eb76f2bd566', class: "dialog" }, h("slot", { key: 'e3a0d4c6e3612203617fe40d192f0ba6282b84a6', name: "title" }, h("div", { key: '18b4ce4bd1a48cf9911756bc970c17580e3d149e', class: "heading" }, "Please Confirm")), h("div", { key: '638f57aba3dd14a91072aee3a80cc9038dbf6247', class: "content" }, h("slot", { key: 'b75d736e0f8d89ae080a9238ef570eab5b79ff83' }))))));
    }
    static get style() { return verdocsDialogCss; }
}, [4, "verdocs-dialog"]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["verdocs-dialog"];
    components.forEach(tagName => { switch (tagName) {
        case "verdocs-dialog":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, VerdocsDialog$1);
            }
            break;
    } });
}

const VerdocsDialog = VerdocsDialog$1;
const defineCustomElement = defineCustomElement$1;

export { VerdocsDialog, defineCustomElement };
//# sourceMappingURL=verdocs-dialog.js.map

//# sourceMappingURL=verdocs-dialog.js.map