import {
    c as ii,
    d as ni
} from "./chunk-3RVRTJK2.js";
import {
    a as Ze
} from "./chunk-AHAXH4Z3.js";
import {
    c as Xe,
    o as Qt,
    p as Zt
} from "./chunk-2F2DP6Z5.js";
import {
    S as ei,
    T as ti
} from "./chunk-LNCD4SA3.js";
import {
    Ca as Ee,
    Ga as qt,
    Ka as Ne,
    La as qe,
    Qa as De,
    Ta as ke,
    Ya as Ae,
    _a as Qe,
    e as zt,
    eb as Xt,
    g as Ut,
    h as jt,
    ib as Jt,
    jb as Pe,
    l as Ie,
    s as Wt,
    t as Ht,
    u as Gt,
    w as Yt,
    z as Kt
} from "./chunk-XPOKHL3M.js";
import {
    c as Bt,
    d as Ge,
    f as Ye,
    h as Ke
} from "./chunk-Z33DM23Z.js";
import {
    c as $t,
    d as Lt,
    e as Ft,
    f as Se,
    g as Rt
} from "./chunk-GHJJ2Z4D.js";
import {
    k as xe,
    m as Me,
    n as Oe,
    r as Pt,
    s as Vt,
    w as Te,
    y as we
} from "./chunk-OYJWBUYU.js";
import {
    $ as Mt,
    Ab as c,
    B as de,
    Cb as Tt,
    Db as je,
    Eb as B,
    Gb as z,
    Jb as p,
    Kb as d,
    Kc as be,
    Lb as C,
    Mb as wt,
    Nb as St,
    Ob as It,
    Pb as _e,
    Pc as W,
    Ta as Ue,
    Vb as Et,
    Y as G,
    Ya as f,
    Yb as j,
    Z as ue,
    Zb as g,
    ba as fe,
    ca as ge,
    cb as w,
    cc as Nt,
    ec as Dt,
    f as ze,
    fc as kt,
    jc as O,
    ka as me,
    kc as Ce,
    la as he,
    lb as $,
    lc as We,
    ma as ye,
    mb as ve,
    na as F,
    nb as Ot,
    pb as R,
    pc as E,
    q,
    qc as N,
    rb as M,
    rc as D,
    sc as Y,
    ta as X,
    tc as He,
    uc as Q,
    vc as At,
    y as xt,
    zb as y
} from "./chunk-SSI6PFOR.js";
import {
    d as k
} from "./chunk-JYUAQH2U.js";
import {
    a as bt,
    e as pe,
    g as Ti
} from "./chunk-FFRAY7OK.js";
var pi = pe((ne, rt) => {
    "use strict";
    Object.defineProperty(ne, "__esModule", {
        value: !0
    });
    ne.default = sn;

    function sn(e) {
        if (e == null) throw new TypeError("Expected a string but received a ".concat(e));
        if (e.constructor.name !== "String") throw new TypeError("Expected a string but received a ".concat(e.constructor.name));
    }
    rt.exports = ne.default;
    rt.exports.default = ne.default;
});
var di = pe((oe, ct) => {
    "use strict";
    Object.defineProperty(oe, "__esModule", {
        value: !0
    });
    oe.default = an;

    function lt(e) {
        "@babel/helpers - typeof";
        return lt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(i) {
            return typeof i;
        } : function(i) {
            return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
        }, lt(e);
    }

    function an(e) {
        return lt(e) === "object" && e !== null ? typeof e.toString == "function" ? e = e.toString() : e = "[object Object]" : (e === null || typeof e > "u" || isNaN(e) && !e.length) && (e = ""), String(e);
    }
    ct.exports = oe.default;
    ct.exports.default = oe.default;
});
var ui = pe((se, pt) => {
    "use strict";
    Object.defineProperty(se, "__esModule", {
        value: !0
    });
    se.default = rn;

    function rn() {
        var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
            i = arguments.length > 1 ? arguments[1] : void 0;
        for (var t in i) typeof e[t] > "u" && (e[t] = i[t]);
        return e;
    }
    pt.exports = se.default;
    pt.exports.default = se.default;
});
var gi = pe((ae, ut) => {
    "use strict";
    Object.defineProperty(ae, "__esModule", {
        value: !0
    });
    ae.default = dn;
    var ln = dt(pi()),
        fi = dt(di()),
        cn = dt(ui());

    function dt(e) {
        return e && e.__esModule ? e : {
            default: e
        };
    }
    var pn = {
        ignoreCase: !1,
        minOccurrences: 1
    };

    function dn(e, i, t) {
        return (0, ln.default)(e), t = (0, cn.default)(t, pn), t.ignoreCase ? e.toLowerCase().split((0, fi.default)(i).toLowerCase()).length > t.minOccurrences : e.split((0, fi.default)(i)).length > t.minOccurrences;
    }
    ut.exports = ae.default;
    ut.exports.default = ae.default;
});
var Je = (() => {
    class e extends Ae {
        pathId;
        ngOnInit() {
            this.pathId = "url(#" + Ee() + ")";
        }
        static ɵfac = (() => {
            let t;
            return function(o) {
                return (t || (t = F(e)))(o || e);
            };
        })();
        static ɵcmp = $({
            type: e,
            selectors: [
                ["ExclamationTriangleIcon"]
            ],
            features: [R],
            decls: 8,
            vars: 7,
            consts: [
                ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"],
                ["d", "M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z", "fill", "currentColor"],
                ["d", "M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z", "fill", "currentColor"],
                ["d", "M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z", "fill", "currentColor"],
                [3, "id"],
                ["width", "14", "height", "14", "fill", "white"]
            ],
            template: function(n, o) {
                n & 1 && (ye(), p(0, "svg", 0)(1, "g"), C(2, "path", 1)(3, "path", 2)(4, "path", 3), d(), p(5, "defs")(6, "clipPath", 4), C(7, "rect", 5), d()()()), n & 2 && (B(o.getClassNames()), y("aria-label", o.ariaLabel)("aria-hidden", o.ariaHidden)("role", o.role), f(), y("clip-path", o.pathId), f(5), c("id", o.pathId));
            },
            encapsulation: 2
        });
    }
    return e;
})();
var et = (() => {
    class e extends Ae {
        pathId;
        ngOnInit() {
            this.pathId = "url(#" + Ee() + ")";
        }
        static ɵfac = (() => {
            let t;
            return function(o) {
                return (t || (t = F(e)))(o || e);
            };
        })();
        static ɵcmp = $({
            type: e,
            selectors: [
                ["InfoCircleIcon"]
            ],
            features: [R],
            decls: 6,
            vars: 7,
            consts: [
                ["width", "14", "height", "14", "viewBox", "0 0 14 14", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"],
                ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z", "fill", "currentColor"],
                [3, "id"],
                ["width", "14", "height", "14", "fill", "white"]
            ],
            template: function(n, o) {
                n & 1 && (ye(), p(0, "svg", 0)(1, "g"), C(2, "path", 1), d(), p(3, "defs")(4, "clipPath", 2), C(5, "rect", 3), d()()()), n & 2 && (B(o.getClassNames()), y("aria-label", o.ariaLabel)("aria-hidden", o.ariaHidden)("role", o.role), f(), y("clip-path", o.pathId), f(3), c("id", o.pathId));
            },
            encapsulation: 2
        });
    }
    return e;
})();
var Ii = (e, i) => ({
        showTransitionParams: e,
        hideTransitionParams: i
    }),
    Ei = e => ({
        value: "visible",
        params: e
    });

function Ni(e, i) {
    e & 1 && It(0);
}

function Di(e, i) {
    if (e & 1 && (p(0, "div", 1), M(1, Ni, 1, 0, "ng-container", 3), d()), e & 2) {
        let t = g();
        c("ngClass", "p-message p-message-" + t.severity), f(), c("ngTemplateOutlet", t.contentTemplate);
    }
}

function ki(e, i) {
    if (e & 1 && C(0, "span", 5), e & 2) {
        let t = g().$implicit,
            n = g(2);
        B("pi " + t.icon), c("ngClass", n.cx("icon")), y("data-pc-section", "icon");
    }
}

function Ai(e, i) {
    e & 1 && C(0, "CheckIcon"), e & 2 && y("data-pc-section", "icon");
}

function Pi(e, i) {
    e & 1 && C(0, "TimesCircleIcon"), e & 2 && y("data-pc-section", "icon");
}

function Vi(e, i) {
    e & 1 && C(0, "TimesCircleIcon"), e & 2 && y("data-pc-section", "icon");
}

function $i(e, i) {
    e & 1 && C(0, "ExclamationTriangleIcon"), e & 2 && y("data-pc-section", "icon");
}

function Li(e, i) {
    e & 1 && C(0, "InfoCircleIcon"), e & 2 && y("data-pc-section", "icon");
}

function Fi(e, i) {
    if (e & 1 && (p(0, "span", 5), M(1, Ai, 1, 1, "CheckIcon")(2, Pi, 1, 1, "TimesCircleIcon")(3, Vi, 1, 1, "TimesCircleIcon")(4, $i, 1, 1, "ExclamationTriangleIcon")(5, Li, 1, 1, "InfoCircleIcon"), d()), e & 2) {
        let t, n = g().$implicit,
            o = g(2);
        c("ngClass", o.cx("icon")), f(), z((t = n.severity) === "success" ? 1 : t === "error" ? 2 : t === "danger" ? 3 : t === "warn" ? 4 : 5);
    }
}

function Ri(e, i) {
    if (e & 1 && (p(0, "span", 5), O(1), d()), e & 2) {
        let t = g(2).$implicit,
            n = g(2);
        c("ngClass", n.cx("text")), f(), Ce(t.text);
    }
}

function Bi(e, i) {
    if (e & 1 && (p(0, "span", 5), O(1), d()), e & 2) {
        let t = g(2).$implicit,
            n = g(2);
        c("ngClass", n.cx("text", "p-message-summary")), y("data-pc-section", "summary"), f(), We(" ", t.summary, " ");
    }
}

function zi(e, i) {
    if (e & 1 && (p(0, "span", 5), O(1), d()), e & 2) {
        let t = g(2).$implicit,
            n = g(2);
        c("ngClass", n.cx("text", "p-message-detail")), y("data-pc-section", "detail"), f(), We(" ", t.detail, " ");
    }
}

function Ui(e, i) {
    if (e & 1 && M(0, Ri, 2, 2, "span", 5)(1, Bi, 2, 3, "span", 5)(2, zi, 2, 3, "span", 5), e & 2) {
        let t = g().$implicit;
        z(t.text ? 0 : -1), f(), z(t.summary ? 1 : -1), f(), z(t.detail ? 2 : -1);
    }
}

function ji(e, i) {
    if (e & 1 && C(0, "span", 10), e & 2) {
        let t = g(2).$implicit;
        c("innerHTML", t.summary, Ue), y("data-pc-section", "summary");
    }
}

function Wi(e, i) {
    if (e & 1 && C(0, "span", 11), e & 2) {
        let t = g(2).$implicit;
        c("innerHTML", t.detail, Ue), y("data-pc-section", "detail");
    }
}

function Hi(e, i) {
    if (e & 1 && M(0, ji, 1, 2, "span", 8)(1, Wi, 1, 2, "span", 9), e & 2) {
        let t = g().$implicit;
        c("ngIf", t.summary), f(), c("ngIf", t.detail);
    }
}

function Gi(e, i) {
    if (e & 1) {
        let t = _e();
        p(0, "p-button", 12), j("onClick", function() {
            me(t);
            let o = g().index,
                s = g(2);
            return he(s.removeMessage(o));
        }), C(1, "TimesIcon", 5), d();
    }
    if (e & 2) {
        let t = g(3);
        c("styleClass", t.cx("closeButton"))("ariaLabel", t.closeAriaLabel), y("data-pc-section", "closebutton"), f(), c("ngClass", t.cx("closeIcon")), y("data-pc-section", "closeicon");
    }
}

function Yi(e, i) {
    if (e & 1 && (p(0, "div", 1)(1, "div", 5), M(2, ki, 1, 4, "span", 6)(3, Fi, 6, 2, "span", 5)(4, Ui, 3, 3)(5, Hi, 2, 2)(6, Gi, 2, 5, "p-button", 7), d()()), e & 2) {
        let t, n = i.$implicit,
            o = g(2);
        B("p-message-" + n.severity), c("ngClass", o.cx("root"))("@messageAnimation", Q(13, Ei, At(10, Ii, o.showTransitionOptions, o.hideTransitionOptions))), f(), c("ngClass", o.cx("content")), y("data-pc-section", "wrapper")("id", n.id || null), f(), z(n.icon ? 2 : 3), f(2), z(o.escape ? 4 : 5), f(2), c("ngIf", o.closable && ((t = n.closable) !== null && t !== void 0 ? t : !0));
    }
}

function Ki(e, i) {
    if (e & 1 && M(0, Yi, 7, 15, "div", 4), e & 2) {
        let t = g();
        c("ngForOf", t.messages);
    }
}
var qi = ({
        dt: e
    }) => `
.p-messages {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: ${e("message.content.gap")};
}

.p-message {
    border-radius: ${e("message.border.radius")};
    outline-width: ${e("message.border.width")};
    outline-style: solid;
}

.p-message-content {
    display: flex;
    align-items: center;
    padding: ${e("message.content.padding")};
    height: 100%;
}

.p-message .p-message-content:has(:nth-child(1)) {
    gap: ${e("message.content.gap")};
}

.p-message-icon {
    flex-shrink: 0;
}

.p-message-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 0 0 auto;
    overflow: hidden;
    position: relative;
    width: ${e("message.close.button.width")};
    height: ${e("message.close.button.height")};
    border-radius: ${e("message.close.button.border.radius")};
    background: transparent;
    transition: background ${e("message.transition.duration")}, color ${e("message.transition.duration")}, outline-color ${e("message.transition.duration")}, box-shadow ${e("message.transition.duration")}, opacity 0.3s;
    outline-color: transparent;
    color: inherit;
    padding: 0;
    border: none;
    cursor: pointer;
    user-select: none;
}

.p-message-close-icon {
    font-size: ${e("message.close.icon.size")};
    width: ${e("message.close.icon.size")};
    height: ${e("message.close.icon.size")};
}

.p-message-close-button:focus-visible {
    outline-width: ${e("message.close.button.focus.ring.width")};
    outline-style: ${e("message.close.button.focus.ring.style")};
    outline-offset: ${e("message.close.button.focus.ring.offset")};
}

.p-message-info {
    background: ${e("message.info.background")};
    outline-color: ${e("message.info.border.color")};
    color: ${e("message.info.color")};
    box-shadow: ${e("message.info.shadow")};
}

.p-message-info .p-message-close-button:focus-visible {
    outline-color: ${e("message.info.close.button.focus.ring.color")};
    box-shadow: ${e("message.info.close.button.focus.ring.shadow")};
}

.p-message-info .p-message-close-button:hover {
    background: ${e("message.info.close.button.hover.background")};
}

.p-message-success {
    background: ${e("message.success.background")};
    outline-color: ${e("message.success.border.color")};
    color: ${e("message.success.color")};
    box-shadow: ${e("message.success.shadow")};
}

.p-message-success .p-message-close-button:focus-visible {
    outline-color: ${e("message.success.close.button.focus.ring.color")};
    box-shadow: ${e("message.success.close.button.focus.ring.shadow")};
}

.p-message-success .p-message-close-button:hover {
    background: ${e("message.success.close.button.hover.background")};
}

.p-message-warn {
    background: ${e("message.warn.background")};
    outline-color: ${e("message.warn.border.color")};
    color: ${e("message.warn.color")};
    box-shadow: ${e("message.warn.shadow")};
}

.p-message-warn .p-message-close-button:focus-visible {
    outline-color: ${e("message.warn.close.button.focus.ring.color")};
    box-shadow: ${e("message.warn.close.button.focus.ring.shadow")};
}

.p-message-warn .p-message-close-button:hover {
    background: ${e("message.warn.close.button.hover.background")};
}

.p-message-error {
    background: ${e("message.error.background")};
    outline-color: ${e("message.error.border.color")};
    color: ${e("message.error.color")};
    box-shadow: ${e("message.error.shadow")};
}

.p-message-error .p-message-close-button:focus-visible {
    outline-color: ${e("message.error.close.button.focus.ring.color")};
    box-shadow: ${e("message.error.close.button.focus.ring.shadow")};
}

.p-message-error .p-message-close-button:hover {
    background: ${e("message.error.close.button.hover.background")};
}

.p-message-secondary {
    background: ${e("message.secondary.background")};
    outline-color: ${e("message.secondary.border.color")};
    color: ${e("message.secondary.color")};
    box-shadow: ${e("message.secondary.shadow")};
}

.p-message-secondary .p-message-close-button:focus-visible {
    outline-color: ${e("message.secondary.close.button.focus.ring.color")};
    box-shadow: ${e("message.secondary.close.button.focus.ring.shadow")};
}

.p-message-secondary .p-message-close-button:hover {
    background: ${e("message.secondary.close.button.hover.background")};
}

.p-message-contrast {
    background: ${e("message.contrast.background")};
    outline-color: ${e("message.contrast.border.color")};
    color: ${e("message.contrast.color")};
    box-shadow: ${e("message.contrast.shadow")};
}

.p-message-contrast .p-message-close-button:focus-visible {
    outline-color: ${e("message.contrast.close.button.focus.ring.color")};
    box-shadow: ${e("message.contrast.close.button.focus.ring.shadow")};
}

.p-message-contrast .p-message-close-button:hover {
    background: ${e("message.contrast.close.button.hover.background")};
}

.p-message-text {
    font-size: ${e("message.text.font.size")};
    font-weight: ${e("message.text.font.weight")};
}

.p-message-icon {
    font-size: ${e("message.icon.size")};
    width: ${e("message.icon.size")};
    height: ${e("message.icon.size")};
}

.p-message-enter-from {
    opacity: 0;
}

.p-message-enter-active {
    transition: opacity 0.3s;
}

.p-message.p-message-leave-from {
    max-height: 1000px;
}

.p-message.p-message-leave-to {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.p-message-leave-active {
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.3s;
}

.p-message-leave-active .p-message-close-button {
    opacity: 0;
}
/* For PrimeNG */
.p-messages .p-message.ng-animating {
    overflow: hidden;
}

.p-message-content > p-button[data-pc-section="closebutton"] {
    margin-left: auto;
}
`,
    Xi = {
        root: ({
            instance: e
        }) => ({
            "p-message": !0
        }),
        container: "p-messages p-component",
        content: "p-message-content",
        icon: "p-message-icon",
        text: "p-message-text",
        closeButton: "p-message-close-button",
        closeIcon: "p-message-close-icon"
    },
    oi = (() => {
        class e extends De {
            name = "message";
            theme = qi;
            classes = Xi;
            static ɵfac = (() => {
                let t;
                return function(o) {
                    return (t || (t = F(e)))(o || e);
                };
            })();
            static ɵprov = G({
                token: e,
                factory: e.ɵfac
            });
        }
        return e;
    })(),
    tt = (() => {
        class e extends ke {
            messageService;
            set value(t) {
                this.messages = t, this.startMessageLifes(this.messages);
            }
            closable = !0;
            style;
            styleClass;
            enableService = !0;
            key;
            escape = !0;
            severity;
            showTransitionOptions = "300ms ease-out";
            hideTransitionOptions = "200ms cubic-bezier(0.86, 0, 0.07, 1)";
            valueChange = new X();
            onClose = new X();
            messages;
            messageSubscription;
            clearSubscription;
            timerSubscriptions = [];
            contentTemplate;
            _componentStyle = ge(oi);
            constructor(t) {
                super(), this.messageService = t, console.log("Messages component is deprecated as of v18. Use Message component instead.");
            }
            templates;
            ngAfterContentInit() {
                this.templates ? .forEach(t => {
                    switch (t.getType()) {
                        case "content":
                            this.contentTemplate = t.template;
                            break;
                        default:
                            this.contentTemplate = t.template;
                            break;
                    }
                }), this.messageService && this.enableService && !this.contentTemplate && (this.messageSubscription = this.messageService.messageObserver.subscribe(t => {
                    if (t) {
                        Array.isArray(t) || (t = [t]);
                        let n = t.filter(o => this.key === o.key);
                        this.messages = this.messages ? [...this.messages, ...n] : [...n], this.startMessageLifes(n), this.cd.markForCheck();
                    }
                }), this.clearSubscription = this.messageService.clearObserver.subscribe(t => {
                    t ? this.key === t && (this.messages = null) : this.messages = null, this.cd.markForCheck();
                }));
            }
            hasMessages() {
                let t = this.el.nativeElement.parentElement;
                return t && t.offsetParent ? this.contentTemplate != null || this.messages && this.messages.length > 0 : !1;
            }
            clear() {
                this.messages = [], this.valueChange.emit(this.messages);
            }
            removeMessage(t) {
                let n = this.messages[t];
                this.messages = this.messages ? .filter((o, s) => s !== t), n && this.onClose.emit(n), this.valueChange.emit(this.messages);
            }
            get icon() {
                let t = this.severity || (this.hasMessages() ? this.messages[0].severity : null);
                if (this.hasMessages()) switch (t) {
                    case "success":
                        return "pi-check";
                    case "info":
                        return "pi-info-circle";
                    case "error":
                    case "danger":
                        return "pi-times";
                    case "warn":
                        return "pi-exclamation-triangle";
                    default:
                        return "pi-info-circle";
                }
                return null;
            }
            get closeAriaLabel() {
                return this.config.translation.aria ? this.config.translation.aria.close : void 0;
            }
            ngOnDestroy() {
                this.messageSubscription && this.messageSubscription.unsubscribe(), this.clearSubscription && this.clearSubscription.unsubscribe(), this.timerSubscriptions ? .forEach(t => t.unsubscribe()), super.ngOnDestroy();
            }
            startMessageLifes(t) {
                t ? .forEach(n => n.life && this.startMessageLife(n));
            }
            startMessageLife(t) {
                let n = xt(t.life).subscribe(() => {
                    this.messages = this.messages ? .filter(o => o !== t), this.timerSubscriptions = this.timerSubscriptions ? .filter(o => o !== n), this.valueChange.emit(this.messages), this.cd.markForCheck();
                });
                this.timerSubscriptions.push(n);
            }
            static ɵfac = function(n) {
                return new(n || e)(w(qt, 8));
            };
            static ɵcmp = $({
                type: e,
                selectors: [
                    ["p-messages"]
                ],
                contentQueries: function(n, o, s) {
                    if (n & 1 && Nt(s, Ne, 4), n & 2) {
                        let a;
                        Dt(a = kt()) && (o.templates = a);
                    }
                },
                inputs: {
                    value: "value",
                    closable: [2, "closable", "closable", W],
                    style: "style",
                    styleClass: "styleClass",
                    enableService: [2, "enableService", "enableService", W],
                    key: "key",
                    escape: [2, "escape", "escape", W],
                    severity: "severity",
                    showTransitionOptions: "showTransitionOptions",
                    hideTransitionOptions: "hideTransitionOptions"
                },
                outputs: {
                    valueChange: "valueChange",
                    onClose: "onClose"
                },
                standalone: !1,
                features: [Y([oi]), R],
                decls: 3,
                vars: 8,
                consts: [
                    ["role", "alert", 3, "ngClass", "ngStyle"],
                    ["role", "alert", 3, "ngClass"],
                    ["role", "alert", 3, "ngClass", "class"],
                    [4, "ngTemplateOutlet"],
                    ["role", "alert", 3, "ngClass", "class", 4, "ngFor", "ngForOf"],
                    [3, "ngClass"],
                    [3, "ngClass", "class"],
                    ["rounded", "", "text", "", "severity", "secondary", 3, "styleClass", "ariaLabel", "onClick", 4, "ngIf"],
                    ["class", "p-message-summary", 3, "innerHTML", 4, "ngIf"],
                    ["class", "p-message-detail", 3, "innerHTML", 4, "ngIf"],
                    [1, "p-message-summary", 3, "innerHTML"],
                    [1, "p-message-detail", 3, "innerHTML"],
                    ["rounded", "", "text", "", "severity", "secondary", 3, "onClick", "styleClass", "ariaLabel"]
                ],
                template: function(n, o) {
                    n & 1 && (p(0, "div", 0), M(1, Di, 2, 2, "div", 1)(2, Ki, 1, 1, "div", 2), d()), n & 2 && (B(o.styleClass), c("ngClass", o.cx("container"))("ngStyle", o.style), y("aria-atomic", !0)("aria-live", "assertive")("data-pc-name", "message"), f(), z(o.contentTemplate ? 1 : 2));
                },
                dependencies: () => [xe, Me, Oe, Vt, Pt, Xe, et, Ze, Je, Qe, Jt],
                encapsulation: 2,
                data: {
                    animation: [Bt("messageAnimation", [Ke(":enter", [Ye({
                        opacity: 0,
                        transform: "translateY(-25%)"
                    }), Ge("{{showTransitionParams}}")]), Ke(":leave", [Ge("{{hideTransitionParams}}", Ye({
                        height: 0,
                        marginTop: 0,
                        marginBottom: 0,
                        marginLeft: 0,
                        marginRight: 0,
                        opacity: 0
                    }))])])]
                },
                changeDetection: 0
            });
        }
        return e;
    })(),
    it = (() => {
        class e {
            static ɵfac = function(n) {
                return new(n || e)();
            };
            static ɵmod = ve({
                type: e
            });
            static ɵinj = ue({
                imports: [we, Xe, et, Ze, Je, Qe, Pe, qe, qe]
            });
        }
        return e;
    })();
var S = class {
    constructor(i) {
        this.groups = [], this.each = !1, this.context = void 0, this.type = i.type, this.name = i.name, this.target = i.target, this.propertyName = i.propertyName, this.constraints = i ? .constraints, this.constraintCls = i.constraintCls, this.validationTypeOptions = i.validationTypeOptions, i.validationOptions && (this.message = i.validationOptions.message, this.groups = i.validationOptions.groups, this.always = i.validationOptions.always, this.each = i.validationOptions.each, this.context = i.validationOptions.context);
    }
};
var $e = class {
    transform(i) {
        let t = [];
        return Object.keys(i.properties).forEach(n => {
            i.properties[n].forEach(o => {
                let s = {
                        message: o.message,
                        groups: o.groups,
                        always: o.always,
                        each: o.each
                    },
                    a = {
                        type: o.type,
                        name: o.name,
                        target: i.name,
                        propertyName: n,
                        constraints: o.constraints,
                        validationTypeOptions: o.options,
                        validationOptions: s
                    };
                t.push(new S(a));
            });
        }), t;
    }
};

function si(e) {
    return e instanceof Map ? Array.from(e.values()) : Array.isArray(e) ? e : Array.from(e);
}

function ai() {
    if (typeof globalThis < "u") return globalThis;
    if (typeof global < "u") return global;
    if (typeof window < "u") return window;
    if (typeof self < "u") return self;
}

function Le(e) {
    return e !== null && typeof e == "object" && typeof e.then == "function";
}
var Z = class {
    constructor() {
        this.validationMetadatas = new Map(), this.constraintMetadatas = new Map();
    }
    get hasValidationMetaData() {
        return !!this.validationMetadatas.size;
    }
    addValidationSchema(i) {
        new $e().transform(i).forEach(n => this.addValidationMetadata(n));
    }
    addValidationMetadata(i) {
        let t = this.validationMetadatas.get(i.target);
        t ? t.push(i) : this.validationMetadatas.set(i.target, [i]);
    }
    addConstraintMetadata(i) {
        let t = this.constraintMetadatas.get(i.target);
        t ? t.push(i) : this.constraintMetadatas.set(i.target, [i]);
    }
    groupByPropertyName(i) {
        let t = {};
        return i.forEach(n => {
            t[n.propertyName] || (t[n.propertyName] = []), t[n.propertyName].push(n);
        }), t;
    }
    getTargetValidationMetadatas(i, t, n, o, s) {
        let a = r => typeof r.always < "u" ? r.always : r.groups && r.groups.length ? !1 : n,
            l = r => !!(o && (!s || !s.length) && r.groups && r.groups.length),
            m = (this.validationMetadatas.get(i) || []).filter(r => r.target !== i && r.target !== t ? !1 : a(r) ? !0 : l(r) ? !1 : s && s.length > 0 ? r.groups && !!r.groups.find(h => s.indexOf(h) !== -1) : !0),
            b = [];
        for (let [r, h] of this.validationMetadatas.entries()) i.prototype instanceof r && b.push(...h);
        let u = b.filter(r => typeof r.target == "string" || r.target === i || r.target instanceof Function && !(i.prototype instanceof r.target) ? !1 : a(r) ? !0 : l(r) ? !1 : s && s.length > 0 ? r.groups && !!r.groups.find(h => s.indexOf(h) !== -1) : !0).filter(r => !m.find(h => h.propertyName === r.propertyName && h.type === r.type));
        return m.concat(u);
    }
    getTargetValidatorConstraints(i) {
        return this.constraintMetadatas.get(i) || [];
    }
};

function I() {
    let e = ai();
    return e.classValidatorMetadataStorage || (e.classValidatorMetadataStorage = new Z()), e.classValidatorMetadataStorage;
}
var J = class {
    toString(i = !1, t = !1, n = "", o = !1) {
        let s = i ? "\x1B[1m" : "",
            a = i ? "\x1B[22m" : "",
            l = () => {
                var m;
                return (o ? Object.values : Object.keys)((m = this.constraints) !== null && m !== void 0 ? m : {}).join(", ");
            },
            _ = m => ` - property ${s}${n}${m}${a} has failed the following constraints: ${s}${l()}${a} 
`;
        if (t) {
            let m = Number.isInteger(+this.property) ? `[${this.property}]` : `${n?".":""}${this.property}`;
            return this.constraints ? _(m) : this.children ? this.children.map(b => b.toString(i, !0, `${n}${m}`, o)).join("") : "";
        } else return `An instance of ${s}${this.target?this.target.constructor.name:"an object"}${a} has failed the validation:
` + (this.constraints ? _(this.property) : "") + (this.children ? this.children.map(m => m.toString(i, !0, this.property, o)).join("") : "");
    }
};
var v = (() => {
    class e {
        static isValid(t) {
            return t !== "isValid" && t !== "getMessage" && Object.keys(this).map(n => this[n]).indexOf(t) !== -1;
        }
    }
    return e.CUSTOM_VALIDATION = "customValidation", e.NESTED_VALIDATION = "nestedValidation", e.PROMISE_VALIDATION = "promiseValidation", e.CONDITIONAL_VALIDATION = "conditionalValidation", e.WHITELIST = "whitelistValidation", e.IS_DEFINED = "isDefined", e;
})();

function Zi(e) {
    return Array.isArray(e) ? e.join(", ") : (typeof e == "symbol" && (e = e.description), `${e}`);
}
var Fe = class {
    static replaceMessageSpecialTokens(i, t) {
        let n;
        return i instanceof Function ? n = i(t) : typeof i == "string" && (n = i), n && Array.isArray(t.constraints) && t.constraints.forEach((o, s) => {
            n = n.replace(new RegExp(`\\$constraint${s+1}`, "g"), Zi(o));
        }), n && t.value !== void 0 && t.value !== null && ["string", "boolean", "number"].includes(typeof t.value) && (n = n.replace(/\$value/g, t.value)), n && (n = n.replace(/\$property/g, t.property)), n && (n = n.replace(/\$target/g, t.targetName)), n;
    }
};
var ee = class {
    constructor(i, t) {
        this.validator = i, this.validatorOptions = t, this.awaitingPromises = [], this.ignoreAsyncValidations = !1, this.metadataStorage = I();
    }
    execute(i, t, n) {
        var o, s;
        !this.metadataStorage.hasValidationMetaData && ((o = this.validatorOptions) === null || o === void 0 ? void 0 : o.enableDebugMessages) === !0 && console.warn(`No validation metadata found. No validation will be  performed. There are multiple possible reasons:
  - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.
  - This validation runs before any file with validation decorator was parsed by NodeJS.`);
        let a = this.validatorOptions ? this.validatorOptions.groups : void 0,
            l = this.validatorOptions && this.validatorOptions.strictGroups || !1,
            _ = this.validatorOptions && this.validatorOptions.always || !1,
            m = ((s = this.validatorOptions) === null || s === void 0 ? void 0 : s.forbidUnknownValues) === void 0 || this.validatorOptions.forbidUnknownValues !== !1,
            b = this.metadataStorage.getTargetValidationMetadatas(i.constructor, t, _, l, a),
            U = this.metadataStorage.groupByPropertyName(b);
        if (m && !b.length) {
            let u = new J();
            (!this.validatorOptions || !this.validatorOptions.validationError || this.validatorOptions.validationError.target === void 0 || this.validatorOptions.validationError.target === !0) && (u.target = i), u.value = void 0, u.property = void 0, u.children = [], u.constraints = {
                unknownValue: "an unknown value was passed to the validate function"
            }, n.push(u);
            return;
        }
        this.validatorOptions && this.validatorOptions.whitelist && this.whitelist(i, U, n), Object.keys(U).forEach(u => {
            let r = i[u],
                h = U[u].filter(x => x.type === v.IS_DEFINED),
                L = U[u].filter(x => x.type !== v.IS_DEFINED && x.type !== v.WHITELIST);
            r instanceof Promise && L.find(x => x.type === v.PROMISE_VALIDATION) ? this.awaitingPromises.push(r.then(x => {
                this.performValidations(i, x, u, h, L, n);
            })) : this.performValidations(i, r, u, h, L, n);
        });
    }
    whitelist(i, t, n) {
        let o = [];
        Object.keys(i).forEach(s => {
            (!t[s] || t[s].length === 0) && o.push(s);
        }), o.length > 0 && (this.validatorOptions && this.validatorOptions.forbidNonWhitelisted ? o.forEach(s => {
            let a = this.generateValidationError(i, i[s], s);
            a.constraints = {
                [v.WHITELIST]: `property ${s} should not exist`
            }, a.children = void 0, n.push(a);
        }) : o.forEach(s => delete i[s]));
    }
    stripEmptyErrors(i) {
        return i.filter(t => {
            if (t.children && (t.children = this.stripEmptyErrors(t.children)), Object.keys(t.constraints).length === 0) {
                if (t.children.length === 0) return !1;
                delete t.constraints;
            }
            return !0;
        });
    }
    performValidations(i, t, n, o, s, a) {
        let l = s.filter(u => u.type === v.CUSTOM_VALIDATION),
            _ = s.filter(u => u.type === v.NESTED_VALIDATION),
            m = s.filter(u => u.type === v.CONDITIONAL_VALIDATION),
            b = this.generateValidationError(i, t, n);
        a.push(b), this.conditionalValidations(i, t, m) && (this.customValidations(i, t, o, b), this.mapContexts(i, t, o, b), !(t === void 0 && this.validatorOptions && this.validatorOptions.skipUndefinedProperties === !0) && (t === null && this.validatorOptions && this.validatorOptions.skipNullProperties === !0 || t == null && this.validatorOptions && this.validatorOptions.skipMissingProperties === !0 || (this.customValidations(i, t, l, b), this.nestedValidations(t, _, b), this.mapContexts(i, t, s, b), this.mapContexts(i, t, l, b))));
    }
    generateValidationError(i, t, n) {
        let o = new J();
        return (!this.validatorOptions || !this.validatorOptions.validationError || this.validatorOptions.validationError.target === void 0 || this.validatorOptions.validationError.target === !0) && (o.target = i), (!this.validatorOptions || !this.validatorOptions.validationError || this.validatorOptions.validationError.value === void 0 || this.validatorOptions.validationError.value === !0) && (o.value = t), o.property = n, o.children = [], o.constraints = {}, o;
    }
    conditionalValidations(i, t, n) {
        return n.map(o => o.constraints[0](i, t)).reduce((o, s) => o && s, !0);
    }
    customValidations(i, t, n, o) {
        n.forEach(s => {
            this.metadataStorage.getTargetValidatorConstraints(s.constraintCls).forEach(a => {
                if (a.async && this.ignoreAsyncValidations || this.validatorOptions && this.validatorOptions.stopAtFirstError && Object.keys(o.constraints || {}).length > 0) return;
                let l = {
                    targetName: i.constructor ? i.constructor.name : void 0,
                    property: s.propertyName,
                    object: i,
                    value: t,
                    constraints: s.constraints
                };
                if (!s.each || !(Array.isArray(t) || t instanceof Set || t instanceof Map)) {
                    let u = a.instance.validate(t, l);
                    if (Le(u)) {
                        let r = u.then(h => {
                            if (!h) {
                                let [L, x] = this.createValidationError(i, t, s, a);
                                o.constraints[L] = x, s.context && (o.contexts || (o.contexts = {}), o.contexts[L] = Object.assign(o.contexts[L] || {}, s.context));
                            }
                        });
                        this.awaitingPromises.push(r);
                    } else if (!u) {
                        let [r, h] = this.createValidationError(i, t, s, a);
                        o.constraints[r] = h;
                    }
                    return;
                }
                let m = si(t).map(u => a.instance.validate(u, l));
                if (m.some(u => Le(u))) {
                    let u = m.map(h => Le(h) ? h : Promise.resolve(h)),
                        r = Promise.all(u).then(h => {
                            if (!h.every(x => x)) {
                                let [x, Oi] = this.createValidationError(i, t, s, a);
                                o.constraints[x] = Oi, s.context && (o.contexts || (o.contexts = {}), o.contexts[x] = Object.assign(o.contexts[x] || {}, s.context));
                            }
                        });
                    this.awaitingPromises.push(r);
                    return;
                }
                if (!m.every(u => u)) {
                    let [u, r] = this.createValidationError(i, t, s, a);
                    o.constraints[u] = r;
                }
            });
        });
    }
    nestedValidations(i, t, n) {
        i !== void 0 && t.forEach(o => {
            if (!(o.type !== v.NESTED_VALIDATION && o.type !== v.PROMISE_VALIDATION) && !(this.validatorOptions && this.validatorOptions.stopAtFirstError && Object.keys(n.constraints || {}).length > 0))
                if (Array.isArray(i) || i instanceof Set || i instanceof Map)(i instanceof Set ? Array.from(i) : i).forEach((a, l) => {
                    this.performValidations(i, a, l.toString(), [], t, n.children);
                });
                else if (i instanceof Object) {
                let s = typeof o.target == "string" ? o.target : o.target.name;
                this.execute(i, s, n.children);
            } else {
                let [s, a] = this.createValidationError(o.target, i, o);
                n.constraints[s] = a;
            }
        });
    }
    mapContexts(i, t, n, o) {
        return n.forEach(s => {
            if (s.context) {
                let a;
                s.type === v.CUSTOM_VALIDATION && (a = this.metadataStorage.getTargetValidatorConstraints(s.constraintCls)[0]);
                let l = this.getConstraintType(s, a);
                o.constraints[l] && (o.contexts || (o.contexts = {}), o.contexts[l] = Object.assign(o.contexts[l] || {}, s.context));
            }
        });
    }
    createValidationError(i, t, n, o) {
        let s = i.constructor ? i.constructor.name : void 0,
            a = this.getConstraintType(n, o),
            l = {
                targetName: s,
                property: n.propertyName,
                object: i,
                value: t,
                constraints: n.constraints
            },
            _ = n.message || "";
        !n.message && (!this.validatorOptions || this.validatorOptions && !this.validatorOptions.dismissDefaultMessages) && o && o.instance.defaultMessage instanceof Function && (_ = o.instance.defaultMessage(l));
        let m = Fe.replaceMessageSpecialTokens(_, l);
        return [a, m];
    }
    getConstraintType(i, t) {
        return t && t.name ? t.name : i.type;
    }
};
var te = class {
    validate(i, t, n) {
        return this.coreValidate(i, t, n);
    }
    async validateOrReject(i, t, n) {
        let o = await this.coreValidate(i, t, n);
        if (o.length) return Promise.reject(o);
    }
    validateSync(i, t, n) {
        let o = typeof i == "string" ? t : i,
            s = typeof i == "string" ? n : t,
            a = typeof i == "string" ? i : void 0,
            l = new ee(this, s);
        l.ignoreAsyncValidations = !0;
        let _ = [];
        return l.execute(o, a, _), l.stripEmptyErrors(_);
    }
    coreValidate(i, t, n) {
        let o = typeof i == "string" ? t : i,
            s = typeof i == "string" ? n : t,
            a = typeof i == "string" ? i : void 0,
            l = new ee(this, s),
            _ = [];
        return l.execute(o, a, _), Promise.all(l.awaitingPromises).then(() => l.stripEmptyErrors(_));
    }
};
var Ji = new class {
        constructor() {
            this.instances = [];
        }
        get(e) {
            let i = this.instances.find(t => t.type === e);
            return i || (i = {
                type: e,
                object: new e()
            }, this.instances.push(i)), i.object;
        }
    }(),
    ri, Re;

function H(e) {
    if (ri) try {
        let i = ri.get(e);
        if (i || !Re || !Re.fallback) return i;
    } catch (i) {
        if (!Re || !Re.fallbackOnErrors) throw i;
    }
    return Ji.get(e);
}
var K = class {
    constructor(i, t, n = !1) {
        this.target = i, this.name = t, this.async = n;
    }
    get instance() {
        return H(this.target);
    }
};

function li(e) {
    let i;
    if (e.validator instanceof Function) {
        if (i = e.validator, H(Z).getTargetValidatorConstraints(e.validator).length > 1) throw `More than one implementation of ValidatorConstraintInterface found for validator on: ${e.target.name}:${e.propertyName}`;
    } else {
        let n = e.validator;
        i = class {
            validate(s, a) {
                return n.validate(s, a);
            }
            defaultMessage(s) {
                return n.defaultMessage ? n.defaultMessage(s) : "";
            }
        }, I().addConstraintMetadata(new K(i, e.name, e.async));
    }
    let t = {
        type: e.name && v.isValid(e.name) ? e.name : v.CUSTOM_VALIDATION,
        name: e.name,
        target: e.target,
        propertyName: e.propertyName,
        validationOptions: e.options,
        constraintCls: i,
        constraints: e.constraints
    };
    I().addValidationMetadata(new S(t));
}

function A(e, i) {
    return t => {
        let n = i && i.each ? "each value in " : "";
        return e(n, t);
    };
}

function P(e, i) {
    return function(t, n) {
        li({
            name: e.name,
            target: t.constructor,
            propertyName: n,
            options: i,
            constraints: e.constraints,
            validator: e.validator
        });
    };
}

function nt(e) {
    return function(i) {
        let t = e && e.async,
            n = e && e.name ? e.name : "";
        n || (n = i.name, n || (n = n.replace(/\.?([A-Z]+)/g, (s, a) => "_" + a.toLowerCase()).replace(/^_/, "")));
        let o = new K(i, n, t);
        I().addConstraintMetadata(o);
    };
}

function ot(e, i, t) {
    return function(n, o) {
        let s = {
            type: v.CUSTOM_VALIDATION,
            target: n.constructor,
            propertyName: o,
            constraintCls: e,
            constraints: Array.isArray(i) ? i : void 0,
            validationOptions: Array.isArray(i) ? t : i
        };
        I().addValidationMetadata(new S(s));
    };
}

function st(e, i) {
    return function(t, n) {
        let o = {
            type: v.CONDITIONAL_VALIDATION,
            target: t.constructor,
            propertyName: n,
            constraints: [e],
            validationOptions: i
        };
        I().addValidationMetadata(new S(o));
    };
}

function at(e) {
    let i = bt({}, e),
        t = i.each ? "each value in " : "";
    return i.message = i.message || t + "nested property $property must be either object or array",
        function(n, o) {
            let s = {
                type: v.NESTED_VALIDATION,
                target: n.constructor,
                propertyName: o,
                validationOptions: i
            };
            I().addValidationMetadata(new S(s));
        };
}
var en = "isNotEmpty";

function tn(e) {
    return e !== "" && e !== null && e !== void 0;
}

function ie(e) {
    return P({
        name: en,
        validator: {
            validate: (i, t) => tn(i),
            defaultMessage: A(i => i + "$property should not be empty", e)
        }
    }, e);
}
var nn = "isIn";

function on(e, i) {
    return Array.isArray(i) && i.some(t => t === e);
}

function ci(e, i) {
    return P({
        name: nn,
        constraints: [e],
        validator: {
            validate: (t, n) => on(t, n ? .constraints[0]),
            defaultMessage: A(t => t + "$property must be one of the following values: $constraint1", i)
        }
    }, i);
}
var mi = Ti(gi()),
    un = "contains";

function fn(e, i) {
    return typeof e == "string" && (0, mi.default)(e, i);
}

function Be(e, i) {
    return P({
        name: un,
        constraints: [e],
        validator: {
            validate: (t, n) => fn(t, n ? .constraints[0]),
            defaultMessage: A(t => t + "$property must contain a $constraint1 string", i)
        }
    }, i);
}
var gn = "isObject";

function ft(e) {
    return e != null && (typeof e == "object" || typeof e == "function") && !Array.isArray(e);
}

function gt(e) {
    return P({
        name: gn,
        validator: {
            validate: (i, t) => ft(i),
            defaultMessage: A(i => i + "$property must be an object", e)
        }
    }, e);
}
var mn = "isNotEmptyObject";

function hn(e, i) {
    if (!ft(e)) return !1;
    if (i ? .nullable === !1) return !Object.values(e).every(t => t == null);
    for (let t in e)
        if (e.hasOwnProperty(t)) return !0;
    return !1;
}

function hi(e, i) {
    return P({
        name: mn,
        constraints: [e],
        validator: {
            validate: (t, n) => hn(t, n ? .constraints[0]),
            defaultMessage: A(t => t + "$property must be a non-empty object", i)
        }
    }, i);
}

function yi(e, i, t) {
    return typeof e == "string" ? H(te).validate(e, i, t) : H(te).validate(e, i);
}
var vn = ({
        dt: e
    }) => `
.p-textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-size: 1rem;
    color: ${e("textarea.color")};
    background: ${e("textarea.background")};
    padding: ${e("textarea.padding.y")} ${e("textarea.padding.x")};
    border: 1px solid ${e("textarea.border.color")};
    transition: background ${e("textarea.transition.duration")}, color ${e("textarea.transition.duration")}, border-color ${e("textarea.transition.duration")}, outline-color ${e("textarea.transition.duration")}, box-shadow ${e("textarea.transition.duration")};
    appearance: none;
    border-radius: ${e("textarea.border.radius")};
    outline-color: transparent;
    box-shadow: ${e("textarea.shadow")};
}

.p-textarea.ng-invalid.ng-dirty {
    border-color: ${e("textarea.invalid.border.color")};
}

.p-textarea:enabled:hover {
    border-color: ${e("textarea.hover.border.color")};
}

.p-textarea:enabled:focus {
    border-color: ${e("textarea.focus.border.color")};
    box-shadow: ${e("textarea.focus.ring.shadow")};
    outline: ${e("textarea.focus.ring.width")} ${e("textarea.focus.ring.style")} ${e("textarea.focus.ring.color")};
    outline-offset: ${e("textarea.focus.ring.offset")};
}

.p-textarea.p-invalid {
    border-color: ${e("textarea.invalid.border.color")};
}

.p-textarea.p-variant-filled {
    background: ${e("textarea.filled.background")};
}

.p-textarea.p-variant-filled:enabled:hover {
    background: ${e("textarea.filled.hover.background")};
}

.p-textarea.p-variant-filled:enabled:focus {
    background: ${e("textarea.filled.focus.background")};
}

.p-textarea:disabled {
    opacity: 1;
    background: ${e("textarea.disabled.background")};
    color: ${e("textarea.disabled.color")};
}

.p-textarea::placeholder {
    color: ${e("textarea.placeholder.color")};
}

.p-textarea.ng-invalid.ng-dirty::placeholder {
    color: ${e("textarea.invalid.placeholder.color")};
}

.p-textarea-fluid {
    width: 100%;
}

.p-textarea-resizable {
    overflow: hidden;
    resize: none;
}

.p-textarea-sm {
    font-size: ${e("textarea.sm.font.size")};
    padding-block: ${e("textarea.sm.padding.y")};
    padding-inline: ${e("textarea.sm.padding.x")};
}

.p-textarea-lg {
    font-size: ${e("textarea.lg.font.size")};
    padding-block: ${e("textarea.lg.padding.y")};
    padding-inline: ${e("textarea.lg.padding.x")};
}
`,
    _n = {
        root: ({
            instance: e,
            props: i
        }) => ["p-textarea p-component", {
            "p-filled": e.filled,
            "p-textarea-resizable ": i.autoResize,
            "p-invalid": i.invalid,
            "p-variant-filled": i.variant ? i.variant === "filled" : e.config.inputStyle === "filled" || e.config.inputVariant === "filled",
            "p-textarea-fluid": i.fluid
        }]
    },
    vi = (() => {
        class e extends De {
            name = "textarea";
            theme = vn;
            classes = _n;
            static ɵfac = (() => {
                let t;
                return function(o) {
                    return (t || (t = F(e)))(o || e);
                };
            })();
            static ɵprov = G({
                token: e,
                factory: e.ɵfac
            });
        }
        return e;
    })();
var _i = (() => {
    class e extends ke {
        ngModel;
        control;
        autoResize;
        variant;
        fluid = !1;
        pSize;
        onResize = new X();
        filled;
        cachedScrollHeight;
        ngModelSubscription;
        ngControlSubscription;
        _componentStyle = ge(vi);
        constructor(t, n) {
            super(), this.ngModel = t, this.control = n;
        }
        ngOnInit() {
            super.ngOnInit(), this.ngModel && (this.ngModelSubscription = this.ngModel.valueChanges.subscribe(() => {
                this.updateState();
            })), this.control && (this.ngControlSubscription = this.control.valueChanges.subscribe(() => {
                this.updateState();
            }));
        }
        get hasFluid() {
            let n = this.el.nativeElement.closest("p-fluid");
            return this.fluid || !!n;
        }
        ngAfterViewInit() {
            super.ngAfterViewInit(), this.autoResize && this.resize(), this.updateFilledState(), this.cd.detectChanges();
        }
        ngAfterViewChecked() {
            this.autoResize && this.resize();
        }
        onInput(t) {
            this.updateState();
        }
        updateFilledState() {
            this.filled = this.el.nativeElement.value && this.el.nativeElement.value.length;
        }
        resize(t) {
            this.el.nativeElement.style.height = "auto", this.el.nativeElement.style.height = this.el.nativeElement.scrollHeight + "px", parseFloat(this.el.nativeElement.style.height) >= parseFloat(this.el.nativeElement.style.maxHeight) ? (this.el.nativeElement.style.overflowY = "scroll", this.el.nativeElement.style.height = this.el.nativeElement.style.maxHeight) : this.el.nativeElement.style.overflow = "hidden", this.onResize.emit(t || {});
        }
        updateState() {
            this.updateFilledState(), this.autoResize && this.resize();
        }
        ngOnDestroy() {
            this.ngModelSubscription && this.ngModelSubscription.unsubscribe(), this.ngControlSubscription && this.ngControlSubscription.unsubscribe(), super.ngOnDestroy();
        }
        static ɵfac = function(n) {
            return new(n || e)(w(Ie, 8), w(Ut, 8));
        };
        static ɵdir = Ot({
            type: e,
            selectors: [
                ["", "pTextarea", ""],
                ["", "pInputTextarea", ""]
            ],
            hostAttrs: [1, "p-textarea", "p-component"],
            hostVars: 16,
            hostBindings: function(n, o) {
                n & 1 && j("input", function(a) {
                    return o.onInput(a);
                }), n & 2 && Tt("p-filled", o.filled)("p-textarea-resizable", o.autoResize)("p-variant-filled", o.variant === "filled" || o.config.inputStyle() === "filled" || o.config.inputVariant() === "filled")("p-textarea-fluid", o.hasFluid)("p-textarea-sm", o.pSize === "small")("p-inputfield-sm", o.pSize === "small")("p-textarea-lg", o.pSize === "large")("p-inputfield-lg", o.pSize === "large");
            },
            inputs: {
                autoResize: [2, "autoResize", "autoResize", W],
                variant: "variant",
                fluid: [2, "fluid", "fluid", W],
                pSize: "pSize"
            },
            outputs: {
                onResize: "onResize"
            },
            features: [Y([vi]), R]
        });
    }
    return e;
})();
var Ci = () => ({
        width: "100%"
    }),
    Cn = e => ({
        severity: "error",
        summary: "Error",
        detail: e
    }),
    bn = e => [e];

function xn(e, i) {
    e & 1 && C(0, "div", 16);
}

function Mn(e, i) {
    if (e & 1 && (p(0, "option", 17), O(1), d()), e & 2) {
        let t = i.$implicit;
        c("value", t.value), f(), Ce(t.label);
    }
}

function On(e, i) {
    if (e & 1 && C(0, "p-messages", 20), e & 2) {
        let t = g(2);
        c("value", Q(6, bn, Q(4, Cn, t.notificationErrorMessage)))("closable", !1)("showTransitionOptions", "500ms")("hideTransitionOptions", "500ms");
    }
}

function Tn(e, i) {
    if (e & 1) {
        let t = _e();
        p(0, "button", 18), j("click", function() {
            me(t);
            let o = g();
            return he(o.submitOutageNotificationsMessage());
        }), wt(1), Et(2, 0), St(), d(), M(3, On, 1, 8, "p-messages", 19);
    }
    if (e & 2) {
        let t = g();
        c("disabled", !t.selectedNotificationMessage || t.lookupNotificationLoading), f(3), c("ngIf", t.notificationErrorMessage);
    }
}
var mt = function(e) {
        return e.EN = "en", e.FR = "fr", e;
    }(mt || {}),
    bi = "yyyy-MM-dd HH:mm";

function wn(e) {
    if (!e) return e;
    switch (e.toLowerCase()) {
        case "alarm":
            return "Alarm";
        case "warning":
            return "Warning";
        case "info":
            return "Info";
        case "success":
            return "Success";
        default:
            return e;
    }
}

function Sn(e) {
    if (!e) return e;
    switch (e.toLowerCase()) {
        case "alarm":
            return "error";
        case "warning":
            return "warn";
        case "info":
            return "info";
        case "success":
            return "success";
        default:
            return e;
    }
}

function xi(e) {
    switch (e.toLowerCase()) {
        case "error":
            return "alarm";
        case "warn":
            return "warning";
        case "info":
            return "info";
        case "success":
            return "success";
        default:
            return e;
    }
}
var Ct = new Mt("NewModuleConfig"),
    In = (() => {
        let e = class {
            validate(t, n) {
                return typeof t == "string" && t.includes("http") && t.includes("//");
            }
            defaultMessage(t) {
                return 'The endpoint must contain "http" and "//".';
            }
        };
        return e = k([nt({
            name: "ContainsHttpAndSlash",
            async: !1
        })], e), e;
    })(),
    En = (() => {
        let e = class {
            validate(t, n) {
                return t ? !(t.connectionType === le.GET && !t.getNotificationApiEndpoint) : !1;
            }
            defaultMessage(t) {
                return "getNotificationApi is invalid: getNotificationApiEndpoint is required when connectionType is GET.";
            }
        };
        return e = k([nt({
            name: "ValidateNotificationApi",
            async: !1
        })], e), e;
    })(),
    Nn = 99999,
    Ca = (() => {
        class e {
            constructor() {
                this.autoStart = !0, this.enableRuntimeValidation = !0, this.addOktaToken = !1;
            }
        }
        return k([ie(), ot(In)], e.prototype, "apiBaseUrl", void 0), k([ie({
            message: "The endpoint should not be empty."
        }), Be("/")], e.prototype, "getAllNotificationsApiEndpoint", void 0), k([ie({
            message: "The endpoint should not be empty."
        }), Be("/")], e.prototype, "postNotificationApiEndpoint", void 0), k([gt(), hi(), ot(En), at()], e.prototype, "getNotificationApi", void 0), e;
    })(),
    ba = (() => {
        class e {}
        return k([ci(["GET", "WEB_SOCKET"], {
            message: "Invalid value: must be GET or WEB_SOCKET"
        })], e.prototype, "connectionType", void 0), k([st(i => i.connectionType === le.WEB_SOCKET), gt({
            message: "webSocket must be a valid object when connectionType is WEB_SOCKET"
        }), at()], e.prototype, "webSocket", void 0), k([st(i => i.connectionType === le.GET), ie({
            message: "getNotificationApiEndpoint is required for GET connection type."
        }), Be("/")], e.prototype, "getNotificationApiEndpoint", void 0), e;
    })();
var le = function(e) {
        return e.WEB_SOCKET = "WEB_SOCKET", e.GET = "GET", e;
    }(le || {}),
    ht = class {
        encodeKey(i) {
            return encodeURIComponent(i);
        }
        encodeValue(i) {
            return encodeURIComponent(i);
        }
        decodeKey(i) {
            return decodeURIComponent(i);
        }
        decodeValue(i) {
            return decodeURIComponent(i);
        }
    },
    Dn = new ht(),
    ce = class {
        constructor(i, t, n, o, s) {
            this.name = i, this.value = t, this.options = n, this.options = n || {}, (this.options.style === null || this.options.style === void 0) && (this.options.style = o), (this.options.explode === null || this.options.explode === void 0) && (this.options.explode = s);
        }
        serializeValue(i, t = ",") {
            if (i == null) return "";
            if (i instanceof Array) return i.map(n => this.serializeValue(n).split(t).join(encodeURIComponent(t))).join(t);
            if (typeof i == "object") {
                let n = [];
                for (let o of Object.keys(i)) {
                    let s = i[o];
                    s != null && (s = this.serializeValue(s).split(t).join(encodeURIComponent(t)), this.options.explode ? n.push(`${o}=${s}`) : (n.push(o), n.push(s)));
                }
                return n.join(t);
            } else return String(i);
        }
    },
    yt = class extends ce {
        constructor(i, t, n) {
            super(i, t, n, "simple", !1);
        }
        append(i) {
            let t = this.value;
            t == null && (t = "");
            let n = this.options.style === "label" ? "." : "",
                o = this.options.explode ? n === "" ? "," : n : ",",
                s = !1;
            return this.options.style === "matrix" && (n = `;${this.name}=`, this.options.explode && typeof t == "object" && (n = ";", t instanceof Array ? (t = t.map(a => `${this.name}=${this.serializeValue(a,";")}`), t = t.join(";"), s = !0) : (t = this.serializeValue(t, ";"), s = !0))), t = n + (s ? t : this.serializeValue(t, o)), i = i.replace(`{${this.name}}`, t), i = i.replace(`{${n}${this.name}${this.options.explode?"*":""}}`, t), i;
        }
        serializeValue(i, t = ",") {
            var n = typeof i == "string" ? encodeURIComponent(i) : super.serializeValue(i, t);
            return n = n.replace("%3D", "="), n = n.replace("%3B", ";"), n = n.replace("%2C", ","), n;
        }
    },
    vt = class extends ce {
        constructor(i, t, n) {
            super(i, t, n, "form", !0);
        }
        append(i) {
            if (this.value instanceof Array) {
                if (this.options.explode)
                    for (let t of this.value) i = i.append(this.name, this.serializeValue(t));
                else {
                    let t = this.options.style === "spaceDelimited" ? " " : this.options.style === "pipeDelimited" ? "|" : ",";
                    return i.append(this.name, this.serializeValue(this.value, t));
                }
            } else if (this.value !== null && typeof this.value == "object") {
                if (this.options.style === "deepObject")
                    for (let t of Object.keys(this.value)) {
                        let n = this.value[t];
                        n != null && (i = i.append(`${this.name}[${t}]`, this.serializeValue(n)));
                    } else if (this.options.explode)
                        for (let t of Object.keys(this.value)) {
                            let n = this.value[t];
                            n != null && (i = i.append(t, this.serializeValue(n)));
                        } else {
                            let t = [];
                            for (let n of Object.keys(this.value)) {
                                let o = this.value[n];
                                o != null && (t.push(n), t.push(o));
                            }
                            i = i.append(this.name, this.serializeValue(t));
                        }
            } else this.value !== null && this.value !== void 0 && (i = i.append(this.name, this.serializeValue(this.value)));
            return i;
        }
    },
    _t = class extends ce {
        constructor(i, t, n) {
            super(i, t, n, "simple", !1);
        }
        append(i) {
            if (this.value !== null && this.value !== void 0)
                if (this.value instanceof Array)
                    for (let t of this.value) i = i.append(this.name, this.serializeValue(t));
                else i = i.append(this.name, this.serializeValue(this.value));
            return i;
        }
    },
    re = class {
        constructor(i, t, n) {
            this.rootUrl = i, this.operationPath = t, this.method = n, this._path = new Map(), this._query = new Map(), this._header = new Map();
        }
        path(i, t, n) {
            this._path.set(i, new yt(i, t, n || {}));
        }
        query(i, t, n) {
            this._query.set(i, new vt(i, t, n || {}));
        }
        header(i, t, n) {
            this._header.set(i, new _t(i, t, n || {}));
        }
        body(i, t = "application/json") {
            if (i instanceof Blob ? this._bodyContentType = i.type : this._bodyContentType = t, this._bodyContentType === "application/x-www-form-urlencoded" && i !== null && typeof i == "object") {
                let n = [];
                for (let o of Object.keys(i)) {
                    let s = i[o];
                    s instanceof Array || (s = [s]);
                    for (let a of s) {
                        let l = this.formDataValue(a);
                        l !== null && n.push([o, l]);
                    }
                }
                this._bodyContent = n.map(o => `${encodeURIComponent(o[0])}=${encodeURIComponent(o[1])}`).join("&");
            } else if (this._bodyContentType === "multipart/form-data") {
                let n = new FormData();
                if (i != null)
                    for (let o of Object.keys(i)) {
                        let s = i[o];
                        if (s instanceof Array)
                            for (let a of s) {
                                let l = this.formDataValue(a);
                                l !== null && n.append(o, l);
                            } else {
                                let a = this.formDataValue(s);
                                a !== null && n.set(o, a);
                            }
                    }
                this._bodyContent = n;
            } else this._bodyContent = i;
        }
        formDataValue(i) {
            return i == null ? null : i instanceof Blob ? i : typeof i == "object" ? JSON.stringify(i) : String(i);
        }
        build(i) {
            i = i || {};
            let t = this.operationPath;
            for (let a of this._path.values()) t = a.append(t);
            let n = this.rootUrl + t,
                o = new Lt({
                    encoder: Dn
                });
            for (let a of this._query.values()) o = a.append(o);
            let s = new $t();
            i.accept && (s = s.append("Accept", i.accept));
            for (let a of this._header.values()) s = a.append(s);
            return this._bodyContentType && !(this._bodyContent instanceof FormData) && (s = s.set("Content-Type", this._bodyContentType)), new Ft(this.method.toUpperCase(), n, this._bodyContent, {
                params: o,
                headers: s,
                responseType: i.responseType,
                reportProgress: i.reportProgress
            });
        }
    },
    Mi = (() => {
        class e {
            constructor(t, n, o) {
                this.locale = t, this.config = n, this.http = o, this.alertRefresh = new ze(), this.statusAlertRefresh = new ze(), this.alertRefresh$ = this.alertRefresh.asObservable(), this.statusAlertRefresh$ = this.statusAlertRefresh.asObservable();
            }
            lookupNotificationGet$Response() {
                let t = new re(this.config.apiBaseUrl, this.config.getNotificationApi.getNotificationApiEndpoint, "get");
                return this.http.request(t.build({
                    responseType: "json",
                    accept: "application/json"
                })).pipe(de(n => n instanceof Se), q(n => n.body));
            }
            lookupNotificationPost$Response(t) {
                let n = new re(this.config.apiBaseUrl, this.config.postNotificationApiEndpoint, "post");
                return t && n.body(t), this.http.request(n.build({
                    responseType: "json",
                    accept: "application/json"
                })).pipe(de(o => o instanceof Se), q(o => o));
            }
            postLookupNotification(t) {
                return this.lookupNotificationPost$Response(t).pipe(q(n => n.body));
            }
            lookupNotificationsGet$Response() {
                let t = new re(this.config.apiBaseUrl, this.config.getAllNotificationsApiEndpoint, "get");
                return this.http.request(t.build({
                    responseType: "json",
                    accept: "application/json"
                })).pipe(de(n => n instanceof Se), q(n => n.body));
            }
            connect(t) {
                let n = this.config.getNotificationApi.webSocket.webSocketEndPoint;
                this.ws = new WebSocket(n), this.ws.onmessage = o => {
                    t(JSON.parse(o.data));
                }, this.ws.onerror = o => {
                    console.error("WebSocket error:", o);
                };
            }
            disconnect() {
                this.ws && this.ws.close();
            }
            static {
                this.ɵfac = function(n) {
                    return new(n || e)(fe(be), fe(Ct), fe(Rt));
                };
            }
            static {
                this.ɵprov = G({
                    token: e,
                    factory: e.ɵfac,
                    providedIn: "root"
                });
            }
        }
        return e;
    })(),
    xa = (() => {
        class e {
            constructor(t, n, o) {
                this.apiService = t, this.locale = n, this.config = o, this.notificationMessages = [], this.currentNotificationMessage = [], this.onMessageReceived = s => {
                    if (this.config.getNotificationApi.webSocket.showChangedMessagesAfterDismiss) {
                        let a = e.messageIsChanged([this.buildMessage(s)], this.currentNotificationMessage);
                        this.currentNotificationMessage = [this.buildMessage(s)], a && this.isBelowNotificationThreshold() && (this.config.getNotificationApi.webSocket.enableStacking ? this.notificationMessages = [this.buildMessage(s), ...this.notificationMessages] : this.notificationMessages = [this.buildMessage(s)]);
                    }
                };
            }
            ngOnInit() {
                this.config.autoStart !== !1 && this.initialize();
            }
            ngOnDestroy() {
                this.apiService.disconnect();
                try {
                    this.getLookupNotification && typeof this.getLookupNotification.unsubscribe == "function" && this.getLookupNotification.unsubscribe();
                } catch {}
            }
            initialize() {
                if (!(this.config.enableRuntimeValidation !== !1)) {
                    this.startNotificationWorkflow();
                    return;
                }
                yi(this.config).then(n => {
                    if (n.length > 0) {
                        console.error("NotificationBannerConfig validation failed with errors: ", n);
                        return;
                    }
                    this.startNotificationWorkflow();
                }).catch(n => {
                    console.error("NotificationBannerConfig validation threw an unexpected error: ", n);
                });
            }
            startNotificationWorkflow() {
                if (this.config.getNotificationApi.connectionType == le.WEB_SOCKET) {
                    let t = this.config.getNotificationApi.webSocket;
                    if (t && t.autoConnectOnInit === !1) return;
                    this.apiService.connect(this.onMessageReceived);
                } else this.getNotificationMessage();
            }
            getNotificationMessage() {
                this.getLookupNotification = this.apiService.lookupNotificationGet$Response().subscribe({
                    next: t => {
                        !t.severity || t.status === "inactive" ? this.notificationMessages = [] : this.notificationMessages = [this.buildMessage(t)];
                    },
                    error: t => {
                        console.error(t.message), this.currentNotificationMessage = [];
                    }
                });
            }
            static messageIsChanged(t, n) {
                function o(s) {
                    return !s.severity && !s.summary && !s.detail;
                }
                return !n[0] && o(t[0]) ? !1 : t && !n || n.length !== t.length || n[0].severity !== t[0].severity || n[0].summary !== t[0].summary || n[0].detail !== t[0].detail;
            }
            isBelowNotificationThreshold() {
                let t = this.config.getNotificationApi.webSocket.maxDisplayingNotifications;
                return t == Nn || this.notificationMessages.length < t;
            }
            buildMessage(t) {
                return {
                    severity: Sn(t.severity),
                    summary: this.locale !== mt.FR ? t.messageTitle : t.messageTitleFr,
                    detail: this.locale !== mt.FR ? t.message : t.messageFr
                };
            }
            static {
                this.ɵfac = function(n) {
                    return new(n || e)(w(Mi), w(be), w(Ct));
                };
            }
            static {
                this.ɵcmp = $({
                    type: e,
                    selectors: [
                        ["app-notification-banner"]
                    ],
                    decls: 1,
                    vars: 5,
                    consts: [
                        [1, "custom-messages", 3, "valueChange", "value", "enableService", "showTransitionOptions", "hideTransitionOptions", "escape"]
                    ],
                    template: function(n, o) {
                        n & 1 && (p(0, "p-messages", 0), D("valueChange", function(a) {
                            return N(o.notificationMessages, a) || (o.notificationMessages = a), a;
                        }), d()), n & 2 && (E("value", o.notificationMessages), c("enableService", !1)("showTransitionOptions", "500ms")("hideTransitionOptions", "500ms")("escape", !1));
                    },
                    dependencies: [it, tt, Pe, Xt],
                    styles: ["[_nghost-%COMP%]     .p-message-error, [_nghost-%COMP%]     .p-message-warn, [_nghost-%COMP%]     .p-message-success, [_nghost-%COMP%]     .p-message-info{color:#000!important}"]
                });
            }
        }
        return e;
    })(),
    Ma = (() => {
        class e {
            constructor(t, n, o) {
                this.locale = t, this.apiService = n, this.datePipe = o, this.manageNotificationClicked = !1, this.lookupNotificationLoading = !1, this.severityOptions = [], this.notificationMessage = "", this.notificationMessageFr = "", this.messageTitle = "", this.messageTitleFr = "", this.notificationStartDateTime = null, this.notificationEndDateTime = null, this.notificationStatus = "", this.statusOptions = [{
                    label: "Active",
                    value: "active"
                }, {
                    label: "Inactive",
                    value: "inactive"
                }];
            }
            ngOnInit() {
                this.onSeverityChange();
            }
            onSeverityChange() {
                this.selectedSeverity ? this.fillOutNotificationMessage() : this.clearOutNotificationMessage();
            }
            fillOutNotificationMessage() {
                this.notificationMessage = this.selectedSeverity.message, this.notificationMessageFr = this.selectedSeverity.messageFr, this.notificationStartDateTime = this.selectedSeverity.startDateTime, this.notificationEndDateTime = this.selectedSeverity.endDateTime, this.notificationStatus = this.selectedSeverity.notificationStatus, this.messageTitle = this.selectedSeverity.messageTitle, this.messageTitleFr = this.selectedSeverity.messageTitleFr, this.selectedNotificationMessage = this.selectedSeverity;
            }
            clearOutNotificationMessage() {
                this.notificationMessage = "", this.notificationMessageFr = "", this.notificationStartDateTime = null, this.notificationEndDateTime = null, this.messageTitle = "", this.messageTitleFr = "", this.notificationStatus = "", this.selectedNotificationMessage = null;
            }
            getOverLaps(t) {
                let n = [],
                    o = this.severityOptions.filter(a => a.severity.toLowerCase() !== t.severity.toLowerCase());
                o.push(t);
                let s = o.filter(a => a.notificationStatus === "active");
                s.sort((a, l) => a.startDateTime.getTime() - l.startDateTime.getTime());
                for (let a = 0; a < s.length - 1; a++) {
                    let l = s[a],
                        _ = s[a + 1];
                    l.endDateTime > _.startDateTime && (n.includes(s[a].severity) || n.push(s[a].severity), n.includes(s[a + 1].severity) || n.push(s[a + 1].severity));
                }
                return n;
            }
            submitOutageNotificationsMessage() {
                let t = {
                        severity: xi(this.selectedSeverity.severity),
                        messageTitle: this.messageTitle,
                        messageTitleFr: this.messageTitleFr,
                        message: this.notificationMessage,
                        messageFr: this.notificationMessageFr,
                        startDateTime: this.datePipe.transform(this.notificationStartDateTime, bi),
                        endDateTime: this.datePipe.transform(this.notificationEndDateTime, bi),
                        status: this.notificationStatus
                    },
                    n = {
                        severity: xi(this.selectedSeverity.severity),
                        messageTitle: this.messageTitle,
                        messageTitleFr: this.messageTitleFr,
                        message: this.notificationMessage,
                        messageFr: this.notificationMessageFr,
                        startDateTime: this.notificationStartDateTime,
                        endDateTime: this.notificationEndDateTime,
                        notificationStatus: this.notificationStatus
                    },
                    o = this.getOverLaps(n);
                o.length > 0 ? (this.manageNotificationClicked = !0, this.notificationErrorMessage = "We have " + o.length + " overlap(s) between " + o.toString()) : this.selectedSeverity && (this.notificationErrorMessage = void 0, this.apiService.postLookupNotification(t).subscribe({
                    next: s => {
                        this.manageNotificationClicked = !1;
                    },
                    error: s => {
                        this.manageNotificationClicked = !0, this.notificationErrorMessage = "An error occurred: " + (s.message || "Unknown error");
                    }
                }));
            }
            showOutageNotifications() {
                this.manageNotificationClicked = !0, this.notificationErrorMessage = void 0, this.clearOutNotificationMessage(), this.getAndFillNotificationMessages();
            }
            getAndFillNotificationMessages() {
                this.severityOptions = [];
                try {
                    this.getLookupNotifications.unsubscribe();
                } catch {}
                this.lookupNotificationLoading = !0, this.getLookupNotifications = this.apiService.lookupNotificationsGet$Response().subscribe(t => {
                    this.severityOptions = t.map(o => ({
                        severity: wn(o.severity),
                        message: o.message,
                        messageFr: o.messageFr,
                        startDateTime: new Date(o.startDateTime),
                        endDateTime: new Date(o.endDateTime),
                        notificationStatus: o.status,
                        messageTitle: o.messageTitle,
                        messageTitleFr: o.messageTitleFr
                    }));
                    let n = ["Alarm", "Warning", "Info", "Success"];
                    this.severityOptions.sort((o, s) => n.indexOf(o.severity) - n.indexOf(s.severity)), this.lookupNotificationLoading = !1;
                });
            }
            getDropDownClass(t) {
                if (t == null) return "";
                switch (t.severity) {
                    case "Alarm":
                        return "alarm-outline";
                    case "Warning":
                        return "warn-outline";
                    case "Info":
                        return "info-outline";
                    case "Success":
                        return "success-outline";
                    default:
                        return "";
                }
            }
            static {
                this.ɵfac = function(n) {
                    return new(n || e)(w(be), w(Mi), w(Te));
                };
            }
            static {
                this.ɵcmp = $({
                    type: e,
                    selectors: [
                        ["app-outage-notification-dialog"]
                    ],
                    features: [Y([Te])],
                    decls: 34,
                    vars: 34,
                    consts: () => {
                        let t;
                        return t = "Update", [t, ["role", "dialog", "header", "Manage Outage Messages", "styleClass", "outage-dialog", 1, "pur-dialog", "outage-dialog", 3, "visibleChange", "visible", "modal", "draggable", "resizable", "closable"],
                            ["class", "loading-overlay", 4, "ngIf"],
                            [1, "pur-form-field"],
                            ["name", "selectedSeverity", "optionLabel", "severity", "placeholder", "Select a severity", "appendTo", "body", 3, "ngModelChange", "onChange", "options", "ngModel", "showClear", "filter", "filterBy", "ngClass"],
                            [1, "pur-form-field", "d-flex", "align-items-center"],
                            [1, "w-25"],
                            ["type", "text", "name", "messageTitle", "placeholder", "Enter notification title message", "id", "notification-message", 1, "flex-grow-1", 3, "ngModelChange", "ngModel"],
                            ["type", "text", "name", "messageTitleFr", "placeholder", "Entrez le titre du message de notification", "id", "notification-message-fr", 1, "flex-grow-1", 3, "ngModelChange", "ngModel"],
                            ["name", "notificationMessage", "pTextarea", "", "maxlength", "255", "placeholder", "Enter notification message", "rows", "4", "id", "notification-body", 1, "flex-grow-1", 3, "ngModelChange", "ngModel"],
                            ["name", "notificationMessageFr", "pTextarea", "", "placeholder", "Entrer un message de notification", "maxlength", "255", "rows", "4", "id", "notification-body-fr", 1, "flex-grow-1", 3, "ngModelChange", "ngModel"],
                            ["name", "notificationStartDateTime", "id", "start-date", 1, "flex-grow-1", 3, "ngModelChange", "ngModel", "showTime", "showIcon", "dateFormat", "appendTo"],
                            ["name", "notificationEndDateTime", "id", "end-date", 1, "flex-grow-1", 3, "ngModelChange", "ngModel", "showTime", "showIcon", "dateFormat", "appendTo"],
                            ["name", "notificationStatus", "id", "notification-status", 1, "form-control", "notification-select", "pur-form-control", 3, "ngModelChange", "ngModel"],
                            [3, "value", 4, "ngFor", "ngForOf"],
                            ["pTemplate", "footer"],
                            [1, "loading-overlay"],
                            [3, "value"],
                            ["type", "button", 1, "pur-button", "pur-button--dark", 3, "click", "disabled"],
                            ["class", "mb-3", 3, "value", "closable", "showTransitionOptions", "hideTransitionOptions", 4, "ngIf"],
                            [1, "mb-3", 3, "value", "closable", "showTransitionOptions", "hideTransitionOptions"]
                        ];
                    },
                    template: function(n, o) {
                        n & 1 && (p(0, "p-dialog", 1), D("visibleChange", function(a) {
                            return N(o.manageNotificationClicked, a) || (o.manageNotificationClicked = a), a;
                        }), M(1, xn, 1, 0, "div", 2), p(2, "div", 3)(3, "p-select", 4), D("ngModelChange", function(a) {
                            return N(o.selectedSeverity, a) || (o.selectedSeverity = a), a;
                        }), j("onChange", function() {
                            return o.onSeverityChange();
                        }), d()(), p(4, "div", 5)(5, "strong", 6), O(6, "Notification Title:"), d(), p(7, "input", 7), D("ngModelChange", function(a) {
                            return N(o.messageTitle, a) || (o.messageTitle = a), a;
                        }), d()(), p(8, "div", 5)(9, "strong", 6), O(10, "Titre de la notification:"), d(), p(11, "input", 8), D("ngModelChange", function(a) {
                            return N(o.messageTitleFr, a) || (o.messageTitleFr = a), a;
                        }), d()(), p(12, "div", 5)(13, "strong", 6), O(14, "Notification Body:"), d(), p(15, "textarea", 9), D("ngModelChange", function(a) {
                            return N(o.notificationMessage, a) || (o.notificationMessage = a), a;
                        }), d()(), p(16, "div", 5)(17, "strong", 6), O(18, "D\xE9tails de la notification:"), d(), p(19, "textarea", 10), D("ngModelChange", function(a) {
                            return N(o.notificationMessageFr, a) || (o.notificationMessageFr = a), a;
                        }), d()(), p(20, "div", 5)(21, "strong", 6), O(22, "Start Date and Time:"), d(), p(23, "p-datepicker", 11), D("ngModelChange", function(a) {
                            return N(o.notificationStartDateTime, a) || (o.notificationStartDateTime = a), a;
                        }), d()(), p(24, "div", 5)(25, "strong", 6), O(26, "End Date and Time:"), d(), p(27, "p-datepicker", 12), D("ngModelChange", function(a) {
                            return N(o.notificationEndDateTime, a) || (o.notificationEndDateTime = a), a;
                        }), d()(), p(28, "div", 5)(29, "strong", 6), O(30, "Notification Status:"), d(), p(31, "select", 13), D("ngModelChange", function(a) {
                            return N(o.notificationStatus, a) || (o.notificationStatus = a), a;
                        }), M(32, Mn, 2, 2, "option", 14), d()(), M(33, Tn, 4, 2, "ng-template", 15), d()), n & 2 && (E("visible", o.manageNotificationClicked), c("modal", !0)("draggable", !1)("resizable", !1)("closable", !0), f(), c("ngIf", o.lookupNotificationLoading), f(2), c("options", o.severityOptions), E("ngModel", o.selectedSeverity), c("showClear", !0)("filter", !0)("filterBy", "severity")("ngClass", o.getDropDownClass(o.selectedSeverity)), f(4), E("ngModel", o.messageTitle), f(4), E("ngModel", o.messageTitleFr), f(4), E("ngModel", o.notificationMessage), f(4), E("ngModel", o.notificationMessageFr), f(4), je(He(32, Ci)), E("ngModel", o.notificationStartDateTime), c("showTime", !0)("showIcon", !0)("dateFormat", "yy-mm-dd")("appendTo", "body"), f(4), je(He(33, Ci)), E("ngModel", o.notificationEndDateTime), c("showTime", !0)("showIcon", !0)("dateFormat", "yy-mm-dd")("appendTo", "body"), f(4), E("ngModel", o.notificationStatus), f(), c("ngForOf", o.statusOptions));
                    },
                    dependencies: [we, xe, Me, Oe, Kt, Ht, Gt, zt, Wt, jt, Yt, Ie, ti, ei, Ne, Zt, Qt, ni, ii, _i, it, tt],
                    styles: ['.outage-dialog[_ngcontent-%COMP%]{position:relative;height:100%;max-height:70vh}.pur-button--dark[_ngcontent-%COMP%]:focus{outline:2px solid #FF6161!important;box-shadow:0 0 0 4px #eb0000}.main-menu__submenu[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline:none!important;margin:calc(var(--pur-xs) - var(--pur-xxs) / 2) 0;padding:0;list-style:none}[_nghost-%COMP%]     .p-dropdown, [_nghost-%COMP%]     .p-calendar input, [_nghost-%COMP%]     .form-control, [_nghost-%COMP%]     .notification-select, [_nghost-%COMP%]     input[type=text], [_nghost-%COMP%]     input[type=email], [_nghost-%COMP%]     input[type=password]{outline:solid 1px lightgrey;border-radius:5px;width:100%;height:55px;padding:.75rem;border:none;background-color:#fff;box-shadow:0 0 5px 1px var(--pur-secondary-black-shadow);font-size:1rem;transition:all .2s ease}[_nghost-%COMP%]     .p-dropdown:hover, [_nghost-%COMP%]     .p-dropdown:focus, [_nghost-%COMP%]     .p-calendar input:hover, [_nghost-%COMP%]     .p-calendar input:focus, [_nghost-%COMP%]     .form-control:hover, [_nghost-%COMP%]     .form-control:focus, [_nghost-%COMP%]     .notification-select:hover, [_nghost-%COMP%]     .notification-select:focus, [_nghost-%COMP%]     input[type=text]:hover, [_nghost-%COMP%]     input[type=text]:focus, [_nghost-%COMP%]     input[type=email]:hover, [_nghost-%COMP%]     input[type=email]:focus, [_nghost-%COMP%]     input[type=password]:hover, [_nghost-%COMP%]     input[type=password]:focus{outline-color:var(--pur-primary-blue);box-shadow:0 0 8px 2px var(--pur-secondary-black-shadow)}[_nghost-%COMP%]     .p-button{background-color:var(--pur-primary-blue)}[_nghost-%COMP%]     .p-dropdown-panel{margin-top:7px;border:none;border-radius:5px;box-shadow:0 4px 10px #0000001a;background-color:#fff}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-header{padding:1rem;border-bottom:1px solid var(--pur-Pattens-Blue);background-color:var(--pur-webtoolkit-dropdown-filled);border-top-left-radius:5px;border-top-right-radius:5px}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-header .p-dropdown-filter{width:100%;height:45px;border:1px solid var(--pur-webtoolkit-darkgrey);border-radius:4px;padding:.5rem}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-header .p-dropdown-filter:focus{outline:none;border-color:var(--pur-primary-blue)}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-items{padding:.5rem 0}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-items .p-dropdown-item{padding:.75rem 1rem;margin:0;transition:background-color .2s}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-items .p-dropdown-item:hover{background-color:var(--pur-alice-blue)}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{color:var(--pur-light-blue);background-color:var(--pur-alice-blue)}[_nghost-%COMP%]     .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:1rem;text-align:center;color:var(--pur-text-light);background-color:#fff}[_nghost-%COMP%]     .p-calendar{width:100%;position:relative}[_nghost-%COMP%]     .p-calendar input{width:100%;cursor:text;user-select:text;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text}[_nghost-%COMP%]     .p-calendar .p-datepicker{position:absolute;min-width:300px;background:#fff;border-radius:5px;box-shadow:0 4px 10px #0000001a;z-index:1000}[_nghost-%COMP%]     .p-calendar .p-datepicker.p-datepicker-popup{margin-top:4px;animation:_ngcontent-%COMP%_fadeIn .2s ease-out}[_nghost-%COMP%]     .p-calendar .p-datepicker.p-datepicker-popup[data-pos=bottom]{top:100%;left:0}[_nghost-%COMP%]     .p-calendar .p-datepicker.p-datepicker-popup[data-pos=top]{bottom:100%;left:0}[_nghost-%COMP%]     .p-calendar .p-datepicker table{border-collapse:collapse;width:100%}[_nghost-%COMP%]     .p-calendar .p-datepicker table th{padding:.5rem;text-align:center;font-weight:600;color:var(--pur-text-black)}[_nghost-%COMP%]     .p-calendar .p-datepicker table td{padding:.25rem;text-align:center}[_nghost-%COMP%]     .p-calendar .p-datepicker table td.p-datepicker-today>span{background:var(--pur-alice-blue);border-radius:50%}[_nghost-%COMP%]     .p-calendar .p-datepicker table td:not(.p-disabled){cursor:pointer}[_nghost-%COMP%]     .p-calendar .p-datepicker table td:not(.p-disabled):hover>span{background:var(--pur-alice-blue);border-radius:50%}[_nghost-%COMP%]     .p-calendar .p-datepicker table td.p-highlight>span{background:var(--pur-primary-blue);color:#fff;border-radius:50%}[_nghost-%COMP%]     .p-calendar .p-timepicker{display:flex;justify-content:center;padding:1rem;border-top:1px solid var(--pur-Pattens-Blue)}[_nghost-%COMP%]     .p-calendar .p-timepicker>div{display:flex;align-items:center;margin:0 .5rem}[_nghost-%COMP%]     .p-calendar .p-timepicker>div>span{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%]     .p-calendar .p-timepicker>div>span button{background:none;border:none;padding:.25rem;color:var(--pur-text-black);cursor:pointer}[_nghost-%COMP%]     .p-calendar .p-timepicker>div>span button:hover{color:var(--pur-primary-blue)}[_nghost-%COMP%]     .p-calendar .p-timepicker>div>span input{width:2.5rem;text-align:center;border:1px solid var(--pur-Pattens-Blue);border-radius:3px;padding:.25rem;margin:.25rem 0}[_nghost-%COMP%]     .p-calendar .p-timepicker>div>span input:focus{outline:none;border-color:var(--pur-primary-blue)}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media screen and (max-width: 480px){[_nghost-%COMP%]     .p-calendar .p-datepicker{min-width:280px}[_nghost-%COMP%]     .p-calendar .p-datepicker.p-datepicker-popup{position:fixed;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}}[_nghost-%COMP%]     .warn-outline .p-dropdown, [_nghost-%COMP%]     .warn-outline .form-control, [_nghost-%COMP%]     .warn-outline input{outline-color:#ff0}[_nghost-%COMP%]     .alarm-outline .p-dropdown, [_nghost-%COMP%]     .alarm-outline .form-control, [_nghost-%COMP%]     .alarm-outline input{outline-color:red}[_nghost-%COMP%]     .info-outline .p-dropdown, [_nghost-%COMP%]     .info-outline .form-control, [_nghost-%COMP%]     .info-outline input{outline-color:#00f}[_nghost-%COMP%]     .success-outline .p-dropdown, [_nghost-%COMP%]     .success-outline .form-control, [_nghost-%COMP%]     .success-outline input{outline-color:green}.pur-form-field[_ngcontent-%COMP%]{margin-bottom:1.5rem;width:100%}.pur-form-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .pur-form-field[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-weight:600}.pur-form-field.d-flex[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.pur-form-field.d-flex[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{flex:0 0 25%;margin-bottom:0}.loading-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:1000;display:flex;justify-content:center;align-items:center}.loading-overlay[_ngcontent-%COMP%]:before{content:"Loading...";color:#fff;font-size:1.5rem}[_nghost-%COMP%]     .p-dialog.p-element{max-width:95vw!important;border-width:0;margin:auto;position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;border-radius:var(--pur-radius-sm);overflow:hidden;font:var(--pur-font-body)}[_nghost-%COMP%]     .p-dialog .p-dialog-content{position:relative;padding:2rem;max-height:70vh;overflow-y:auto}[_nghost-%COMP%]     .p-dialog .p-dialog-header{padding:var(--pur-gap)}[_nghost-%COMP%]     .p-dialog-mask{background-color:#0006}']
                });
            }
        }
        return e;
    })();

function Oa(e) {
    return [{
        provide: Ct,
        useValue: e
    }];
}
var kn = function(e) {
        return e.ADHOC = "Adhoc", e.SCHEDULED = "Scheduled", e.DASHBOARD = "Dashboard", e.OTP = "OTP", e.SPEND = "SPEND", e.CARBON_CAPTURE = "CC", e;
    }(kn || {}),
    An = function(e) {
        return e.ONETIME = "onetime", e.SCHEDULED = "scheduled", e.RECURRING = "recurring", e;
    }(An || {}),
    Pn = function(e) {
        return e.WEEKLY = "Weekly", e.BIWEEKLY = "Bi-Weekly", e.MONTHLY = "Monthly", e.QUARTERLY = "Quarterly", e.ANNUALLY = "Annually", e;
    }(Pn || {}),
    Vn = function(e) {
        return e.WEEKLY = "WEEKLY", e.BIWEEKLY = "BI-WEEKLY", e.MONTHLY = "MONTHLY", e.QUARTERLY = "QUARTERLY", e.ANNUALLY = "ANNUALLY", e;
    }(Vn || {}),
    $n = function(e) {
        return e.TRACKING = "Tracking Summary", e.EXCEPTION = "Exception", e;
    }($n || {}),
    Ln = function(e) {
        return e.CSV = "csv", e.PDF = "pdf", e.XLS = "xls", e;
    }(Ln || {}),
    Fn = function(e) {
        return e.OR = "or", e.AND = "and", e;
    }(Fn || {}),
    Rn = function(e) {
        return e.CONTAINS = "contains", e.STARTS_WITH = "startsWith", e.ENDS_WITH = "endsWith", e.NOT_CONTAINS = "notContains", e.EQUALS = "equals", e.NOT_EQUALS = "notEquals", e.INCLUDES = "includes", e;
    }(Rn || {}),
    Bn = function(e) {
        return e.DELIVERY_DATE_RANGE = "deliveryDateRange", e;
    }(Bn || {}),
    zn = function(e) {
        return e.SENDER = "sender", e.RECEIVER = "receiver", e;
    }(zn || {}),
    T = function(e) {
        return e.ON_GOING = "ON_GOING", e.FAILED = "FAILED", e.COMPLETED = "COMPLETED", e.APPROVED = "APPROVED", e.DISTRIBUTED = "DISTRIBUTED", e.IN_REVIEW = "IN_REVIEW", e.IN_DISTRIBUTION = "IN_DISTRIBUTION", e.DISTRIBUTED_NO_LIST = "DISTRIBUTED_NO_LIST", e.BLACKLISTED = "BLACKLISTED", e;
    }(T || {}),
    V = function(e) {
        return e.ON_GOING = "Ongoing", e.FAILED = "Failed", e.COMPLETED = "Completed", e.APPROVED = "Approved", e.DISTRIBUTED = "Distributed", e.IN_REVIEW = "In Review", e.IN_DISTRIBUTION = "In Distribution", e.DISTRIBUTED_NO_LIST = "Complete", e.BLACKLISTED = "Blacklisted", e;
    }(V || {}),
    Un = {
        [T.ON_GOING]: V.ON_GOING,
        [T.FAILED]: V.FAILED,
        [T.COMPLETED]: V.COMPLETED,
        [T.APPROVED]: V.APPROVED,
        [T.DISTRIBUTED]: V.DISTRIBUTED,
        [T.IN_REVIEW]: V.IN_REVIEW,
        [T.IN_DISTRIBUTION]: V.IN_DISTRIBUTION,
        [T.DISTRIBUTED_NO_LIST]: V.DISTRIBUTED_NO_LIST,
        [T.BLACKLISTED]: V.BLACKLISTED
    };

function jn(e) {
    if (!e) return null;
    let i = e.toString().trim().toUpperCase().replaceAll(/[\s-]+/g, "_").replaceAll(/_+/g, "_"),
        t = i;
    return i === "ONGOING" ? t = T.ON_GOING : i === "COMPLETE" && (t = T.DISTRIBUTED_NO_LIST), Object.values(T).includes(t) ? t : null;
}

function wa(e) {
    let i = jn(e);
    return i ? Un[i] : null;
}
var Wn = function(e) {
        return e.CREATE = "create", e.EDIT = "edit", e;
    }(Wn || {}),
    Hn = function(e) {
        return e.DASHBOARD = "dashboard", e.REPORTING = "reporting", e;
    }(Hn || {}),
    Gn = function(e) {
        return e.EN = "en", e.FR = "fr", e;
    }(Gn || {});
export {
    Je as a, et as b, kn as c, An as d, Pn as e, Vn as f, $n as g, Ln as h, Fn as i, Rn as j, Bn as k, zn as l, V as m, wa as n, Wn as o, Hn as p, Gn as q, Ca as r, ba as s, le as t, xa as u, Ma as v, Oa as w
}; /**i18n:6e1dbccd4192d215e143e99fb4b6a095cee3c871f5aa7cd380ca91231f35e8e0*/