"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "getModalId", {
    enumerable: true,
    get: function() {
        return getModalId;
    }
});
const symModalId = Symbol("modalId");
let uidSeed = 0;
const getUid = ()=>`__modal_${uidSeed++}`;
const getModalId = (modal)=>{
    if (typeof modal === "string") return modal;
    if (!modal[symModalId]) {
        modal[symModalId] = getUid();
    }
    return modal[symModalId];
};

//# sourceMappingURL=utils.js.map