import {
    c as Gi,
    d as rt,
    e as ki,
    f as ui,
    g as jo,
    j as Qo,
    l as Jo,
    m as en,
    n as Bt
} from "./chunk-O776I53L.js";
import {
    a as tn,
    b as on,
    c as nn,
    d as rn,
    e as an,
    f as ln,
    g as sn,
    h as pn,
    i as Bi
} from "./chunk-CRGY2FKE.js";
import {
    g as Fi,
    h as wi,
    i as Et,
    j as $i,
    k as Vi,
    m as Zo,
    r as at
} from "./chunk-GBCJOPXR.js";
import {
    c as le,
    d as V,
    e as mt,
    f as Fe,
    g as ne,
    h as zo,
    i as ci,
    j as Yo,
    k as Di,
    l as vi,
    m as Vt,
    n as tr,
    o as Mt,
    q as ir,
    u as Wo
} from "./chunk-SUCRLMBQ.js";
import {
    a as ce,
    b as It,
    c as or,
    d as Li,
    e as nr,
    f as rr
} from "./chunk-MFQI6WA3.js";
import {
    c as bi,
    d as xi
} from "./chunk-3RVRTJK2.js";
import {
    a as je
} from "./chunk-JLPDNABD.js";
import "./chunk-XF2CNCVA.js";
import {
    c as Ye,
    d as Bn,
    e as ke,
    f as ko,
    g as Xn,
    j as Mo
} from "./chunk-IIZSMBNO.js";
import {
    a as ar,
    b as lr,
    d as qo
} from "./chunk-ZLBVZLCB.js";
import {
    a as Ko,
    b as di
} from "./chunk-MMJF5WBO.js";
import {
    a as jn
} from "./chunk-AHAXH4Z3.js";
import {
    h as Ze,
    i as Ee,
    m as Jn,
    n as er,
    o as yi,
    p as $t
} from "./chunk-2F2DP6Z5.js";
import {
    $ as gt,
    N as se,
    S as Xe,
    T as be,
    _ as xe,
    a as We,
    b as dt,
    c as it,
    d as E,
    f as oi,
    j as zt,
    s as Hn
} from "./chunk-LNCD4SA3.js";
import {
    A as Gt,
    Ga as ye,
    Ja as nt,
    Ka as Be,
    La as Ke,
    Qa as pi,
    R as Tn,
    Ra as Kn,
    S as Wn,
    Ta as _i,
    Wa as Zn,
    Xa as qn,
    _a as Ho,
    ab as Qn,
    b as ot,
    c as zn,
    d as $o,
    db as kt,
    e as $e,
    eb as De,
    f as _e,
    h as Ie,
    hb as qe,
    i as ni,
    j as Vo,
    jb as ve,
    k as ge,
    l as Ve,
    m as ri,
    n as Bo,
    o as ai,
    p as Ii,
    q as Yn,
    r as li,
    v as Xo,
    w as Uo,
    x as Cn,
    y as si,
    z as fe
} from "./chunk-XPOKHL3M.js";
import {
    c as Un,
    d as gn,
    f as En,
    h as Rn
} from "./chunk-Z33DM23Z.js";
import {
    i as $n,
    j as Vn
} from "./chunk-GHJJ2Z4D.js";
import {
    k as me,
    m as he,
    n as re,
    r as Mi,
    s as wt,
    u as kn,
    v as ii,
    w as ue,
    x as Go,
    y as ie
} from "./chunk-OYJWBUYU.js";
import {
    $b as wn,
    Ab as _,
    Bb as Fo,
    Cb as vn,
    Cc as ae,
    Dc as et,
    Eb as ut,
    Ec as Ei,
    Fb as bn,
    Fc as tt,
    Gb as Ut,
    Gc as mn,
    Hb as xn,
    Hc as z,
    Ib as Ln,
    Jb as r,
    Kb as a,
    Kc as wo,
    Lb as h,
    Lc as Ni,
    Mb as G,
    Nb as k,
    Ob as lt,
    Pb as P,
    Pc as ze,
    Qc as Ri,
    T as Oi,
    Ta as Nt,
    Tb as Z,
    Ua as Dn,
    Ub as q,
    Vb as d,
    Wb as xt,
    X as In,
    Xa as vt,
    Xb as Lt,
    Y as pt,
    Ya as s,
    Yb as R,
    Z as _t,
    Zb as p,
    _b as Fn,
    ac as Ai,
    bb as bt,
    c as Mn,
    ca as Dt,
    cb as A,
    cc as Ft,
    dc as Ht,
    ec as we,
    f as Pt,
    fc as Ge,
    ic as j,
    jc as S,
    ka as m,
    kc as N,
    la as g,
    lb as te,
    lc as de,
    mb as ct,
    mc as He,
    na as At,
    ob as Lo,
    pb as ti,
    pc as x,
    qc as L,
    rb as C,
    rc as F,
    sc as Te,
    ta as J,
    tc as K,
    uc as ee,
    vc as Je,
    xa as Pi,
    xc as Gn,
    ya as yn,
    yc as dn,
    zb as X
} from "./chunk-SSI6PFOR.js";
import "./chunk-JYUAQH2U.js";
import {
    a as bo,
    b as xo
} from "./chunk-FFRAY7OK.js";
var Br = ["container"],
    Xr = ["icon"],
    Ur = ["closeicon"],
    Hr = ["*"],
    zr = (o, c) => ({
        showTransitionParams: o,
        hideTransitionParams: c
    }),
    Yr = o => ({
        value: "visible()",
        params: o
    }),
    Wr = o => ({
        closeCallback: o
    });

function Kr(o, c) {
    o & 1 && lt(0);
}

function Zr(o, c) {
    if (o & 1 && C(0, Kr, 1, 0, "ng-container", 7), o & 2) {
        let e = p(2);
        _("ngTemplateOutlet", e.iconTemplate || e.iconTemplate);
    }
}

function qr(o, c) {
    if (o & 1 && h(0, "i", 3), o & 2) {
        let e = p(2);
        _("ngClass", e.icon);
    }
}

function jr(o, c) {
    if (o & 1 && h(0, "span", 9), o & 2) {
        let e = p(3);
        _("ngClass", e.cx("text"))("innerHTML", e.text, Nt);
    }
}

function Qr(o, c) {
    if (o & 1 && (r(0, "div"), C(1, jr, 1, 2, "span", 8), a()), o & 2) {
        let e = p(2);
        s(), _("ngIf", !e.escape);
    }
}

function Jr(o, c) {
    if (o & 1 && (r(0, "span", 5), S(1), a()), o & 2) {
        let e = p(3);
        _("ngClass", e.cx("text")), s(), N(e.text);
    }
}

function ea(o, c) {
    if (o & 1 && C(0, Jr, 2, 2, "span", 10), o & 2) {
        let e = p(2);
        _("ngIf", e.escape && e.text);
    }
}

function ta(o, c) {
    o & 1 && lt(0);
}

function ia(o, c) {
    if (o & 1 && C(0, ta, 1, 0, "ng-container", 11), o & 2) {
        let e = p(2);
        _("ngTemplateOutlet", e.containerTemplate || e.containerTemplate)("ngTemplateOutletContext", ee(2, Wr, e.close.bind(e)));
    }
}

function oa(o, c) {
    if (o & 1 && (r(0, "span", 5), wn(1), a()), o & 2) {
        let e = p(2);
        _("ngClass", e.cx("text"));
    }
}

function na(o, c) {
    if (o & 1 && h(0, "i", 13), o & 2) {
        let e = p(3);
        _("ngClass", e.closeIcon);
    }
}

function ra(o, c) {
    o & 1 && lt(0);
}

function aa(o, c) {
    if (o & 1 && C(0, ra, 1, 0, "ng-container", 7), o & 2) {
        let e = p(3);
        _("ngTemplateOutlet", e.closeIconTemplate || e._closeIconTemplate);
    }
}

function la(o, c) {
    o & 1 && h(0, "TimesIcon", 14);
}

function sa(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 12), R("click", function(t) {
            m(e);
            let n = p(2);
            return g(n.close(t));
        }), C(1, na, 1, 1, "i", 13)(2, aa, 1, 1, "ng-container")(3, la, 1, 0, "TimesIcon", 14), a();
    }
    if (o & 2) {
        let e = p(2);
        X("aria-label", e.closeAriaLabel), s(), Ut(e.closeIcon ? 1 : -1), s(), Ut(e.closeIconTemplate || e._closeIconTemplate ? 2 : -1), s(), Ut(!e.closeIconTemplate && !e._closeIconTemplate && !e.closeIcon ? 3 : -1);
    }
}

function pa(o, c) {
    if (o & 1 && (r(0, "div", 1)(1, "div", 2), C(2, Zr, 1, 1, "ng-container")(3, qr, 1, 1, "i", 3)(4, Qr, 2, 1, "div", 4)(5, ea, 1, 1, "ng-template", null, 0, z)(7, ia, 1, 4, "ng-container")(8, oa, 2, 1, "span", 5)(9, sa, 4, 4, "button", 6), a()()), o & 2) {
        let e = j(6),
            i = p();
        _("ngClass", i.containerClass)("@messageAnimation", ee(13, Yr, Je(10, zr, i.showTransitionOptions, i.hideTransitionOptions))), X("aria-live", "polite")("role", "alert"), s(2), Ut(i.iconTemplate || i._iconTemplate ? 2 : -1), s(), Ut(i.icon ? 3 : -1), s(), _("ngIf", !i.escape)("ngIfElse", e), s(3), Ut(i.containerTemplate || i._containerTemplate ? 7 : 8), s(2), Ut(i.closable ? 9 : -1);
    }
}
var _a = ({
        dt: o
    }) => `
.p-message {
    border-radius: ${o("message.border.radius")};
    outline-width: ${o("message.border.width")};
    outline-style: solid;
}

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

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

.p-message-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-inline-start: auto;
    overflow: hidden;
    position: relative;
    width: ${o("message.close.button.width")};
    height: ${o("message.close.button.height")};
    border-radius: ${o("message.close.button.border.radius")};
    background: transparent;
    transition: background ${o("message.transition.duration")}, color ${o("message.transition.duration")}, outline-color ${o("message.transition.duration")}, box-shadow ${o("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: ${o("message.close.icon.size")};
    width: ${o("message.close.icon.size")};
    height: ${o("message.close.icon.size")};
}

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

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

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

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

.p-message-info.p-message-outlined {
    color: ${o("message.info.outlined.color")};
    outline-color: ${o("message.info.outlined.border.color")};
}

.p-message-info.p-message-simple {
    color: ${o("message.info.simple.color")};
}

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

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

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

.p-message-success.p-message-outlined {
    color: ${o("message.success.outlined.color")};
    outline-color: ${o("message.success.outlined.border.color")};
}

.p-message-success.p-message-simple {
    color: ${o("message.success.simple.color")};
}

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

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

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

.p-message-warn.p-message-outlined {
    color: ${o("message.warn.outlined.color")};
    outline-color: ${o("message.warn.outlined.border.color")};
}

.p-message-warn.p-message-simple {
    color: ${o("message.warn.simple.color")};
}

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

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

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

.p-message-error.p-message-outlined {
    color: ${o("message.error.outlined.color")};
    outline-color: ${o("message.error.outlined.border.color")};
}

.p-message-error.p-message-simple {
    color: ${o("message.error.simple.color")};
}

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

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

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

.p-message-secondary.p-message-outlined {
    color: ${o("message.secondary.outlined.color")};
    outline-color: ${o("message.secondary.outlined.border.color")};
}

.p-message-secondary.p-message-simple {
    color: ${o("message.secondary.simple.color")};
}

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

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

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

.p-message-contrast.p-message-outlined {
    color: ${o("message.contrast.outlined.color")};
    outline-color: ${o("message.contrast.outlined.border.color")};
}

.p-message-contrast.p-message-simple {
    color: ${o("message.contrast.simple.color")};
}

.p-message-text {
    display: inline-flex;
    align-items: center;
    font-size: ${o("message.text.font.size")};
    font-weight: ${o("message.text.font.weight")};
}

.p-message-icon {
    font-size: ${o("message.icon.size")};
    width: ${o("message.icon.size")};
    height: ${o("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;
}

.p-message-sm .p-message-content {
    padding: ${o("message.content.sm.padding")};
}

.p-message-sm .p-message-text {
    font-size: ${o("message.text.sm.font.size")};
}

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

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

.p-message-lg .p-message-content {
    padding: ${o("message.content.lg.padding")};
}

.p-message-lg .p-message-text {
    font-size: ${o("message.text.lg.font.size")};
}

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

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

.p-message-outlined {
    background: transparent;
    outline-width: ${o("message.outlined.border.width")};
}

.p-message-simple {
    background: transparent;
    outline-color: transparent;
    box-shadow: none;
}

.p-message-simple .p-message-content {
    padding: ${o("message.simple.content.padding")};
}

.p-message-outlined .p-message-close-button:hover,
.p-message-simple .p-message-close-button:hover {
    background: transparent;
}`,
    ca = {
        root: ({
            props: o
        }) => ["p-message p-component p-message-" + o.severity, {
            "p-message-simple": o.variant === "simple"
        }],
        content: "p-message-content",
        icon: "p-message-icon",
        text: "p-message-text",
        closeButton: "p-message-close-button",
        closeIcon: "p-message-close-icon"
    },
    sr = (() => {
        class o extends pi {
            name = "message";
            theme = _a;
            classes = ca;
            static ɵfac = (() => {
                let e;
                return function(t) {
                    return (e || (e = At(o)))(t || o);
                };
            })();
            static ɵprov = pt({
                token: o,
                factory: o.ɵfac
            });
        }
        return o;
    })();
var hn = (() => {
        class o extends _i {
            severity = "info";
            text;
            escape = !0;
            style;
            styleClass;
            closable = !1;
            icon;
            closeIcon;
            life;
            showTransitionOptions = "300ms ease-out";
            hideTransitionOptions = "200ms cubic-bezier(0.86, 0, 0.07, 1)";
            size;
            variant;
            onClose = new J();
            get closeAriaLabel() {
                return this.config.translation.aria ? this.config.translation.aria.close : void 0;
            }
            get containerClass() {
                let e = this.variant === "outlined" ? "p-message-outlined" : this.variant === "simple" ? "p-message-simple" : "",
                    i = this.size === "small" ? "p-message-sm" : this.size === "large" ? "p-message-lg" : "";
                return `p-message-${this.severity} ${e} ${i}`.trim() + (this.styleClass ? " " + this.styleClass : "");
            }
            visible = yn(!0);
            _componentStyle = Dt(sr);
            containerTemplate;
            iconTemplate;
            closeIconTemplate;
            templates;
            _containerTemplate;
            _iconTemplate;
            _closeIconTemplate;
            ngOnInit() {
                super.ngOnInit(), this.life && setTimeout(() => {
                    this.visible.set(!1);
                }, this.life);
            }
            ngAfterContentInit() {
                this.templates ? .forEach(e => {
                    switch (e.getType()) {
                        case "container":
                            this._containerTemplate = e.template;
                            break;
                        case "icon":
                            this._iconTemplate = e.template;
                            break;
                        case "closeicon":
                            this._closeIconTemplate = e.template;
                            break;
                    }
                });
            }
            close(e) {
                this.visible.set(!1), this.onClose.emit({
                    originalEvent: e
                });
            }
            static ɵfac = (() => {
                let e;
                return function(t) {
                    return (e || (e = At(o)))(t || o);
                };
            })();
            static ɵcmp = te({
                type: o,
                selectors: [
                    ["p-message"]
                ],
                contentQueries: function(i, t, n) {
                    if (i & 1 && (Ft(n, Br, 4), Ft(n, Xr, 4), Ft(n, Ur, 4), Ft(n, Be, 4)), i & 2) {
                        let l;
                        we(l = Ge()) && (t.containerTemplate = l.first), we(l = Ge()) && (t.iconTemplate = l.first), we(l = Ge()) && (t.closeIconTemplate = l.first), we(l = Ge()) && (t.templates = l);
                    }
                },
                inputs: {
                    severity: "severity",
                    text: "text",
                    escape: [2, "escape", "escape", ze],
                    style: "style",
                    styleClass: "styleClass",
                    closable: [2, "closable", "closable", ze],
                    icon: "icon",
                    closeIcon: "closeIcon",
                    life: "life",
                    showTransitionOptions: "showTransitionOptions",
                    hideTransitionOptions: "hideTransitionOptions",
                    size: "size",
                    variant: "variant"
                },
                outputs: {
                    onClose: "onClose"
                },
                features: [Te([sr]), ti],
                ngContentSelectors: Hr,
                decls: 1,
                vars: 1,
                consts: [
                    ["escapeOut", ""],
                    [1, "p-message", "p-component", 3, "ngClass"],
                    [1, "p-message-content"],
                    [1, "p-message-icon", 3, "ngClass"],
                    [4, "ngIf", "ngIfElse"],
                    [3, "ngClass"],
                    ["pRipple", "", "type", "button", 1, "p-message-close-button"],
                    [4, "ngTemplateOutlet"],
                    [3, "ngClass", "innerHTML", 4, "ngIf"],
                    [3, "ngClass", "innerHTML"],
                    [3, "ngClass", 4, "ngIf"],
                    [4, "ngTemplateOutlet", "ngTemplateOutletContext"],
                    ["pRipple", "", "type", "button", 1, "p-message-close-button", 3, "click"],
                    [1, "p-message-close-icon", 3, "ngClass"],
                    ["styleClass", "p-message-close-icon"]
                ],
                template: function(i, t) {
                    i & 1 && (Fn(), C(0, pa, 10, 15, "div", 1)), i & 2 && Ut(t.visible() ? 0 : -1);
                },
                dependencies: [ie, me, re, wt, Ho, kt, Ke],
                encapsulation: 2,
                data: {
                    animation: [Un("messageAnimation", [Rn(":enter", [En({
                        opacity: 0,
                        transform: "translateY(-25%)"
                    }), gn("{{showTransitionParams}}")]), Rn(":leave", [gn("{{hideTransitionParams}}", En({
                        height: 0,
                        marginTop: 0,
                        marginBottom: 0,
                        marginLeft: 0,
                        marginRight: 0,
                        opacity: 0
                    }))])])]
                },
                changeDetection: 0
            });
        }
        return o;
    })(),
    pr = (() => {
        class o {
            static ɵfac = function(i) {
                return new(i || o)();
            };
            static ɵmod = ct({
                type: o
            });
            static ɵinj = _t({
                imports: [hn, Ke, Ke]
            });
        }
        return o;
    })();
var da = ["content"],
    ma = (o, c) => ({
        "p-progressbar p-component": !0,
        "p-progressbar-determinate": o,
        "p-progressbar-indeterminate": c
    }),
    ga = o => ({
        $implicit: o
    });

function Ea(o, c) {
    if (o & 1 && (r(0, "div"), S(1), a()), o & 2) {
        let e = p(2);
        Fo("display", e.value != null && e.value !== 0 ? "flex" : "none"), X("data-pc-section", "label"), s(), He("", e.value, "", e.unit, "");
    }
}

function Ra(o, c) {
    o & 1 && lt(0);
}

function Ca(o, c) {
    if (o & 1 && (r(0, "div", 3)(1, "div", 4), C(2, Ea, 2, 5, "div", 5)(3, Ra, 1, 0, "ng-container", 6), a()()), o & 2) {
        let e = p();
        ut(e.valueStyleClass), Fo("width", e.value + "%")("background", e.color), _("ngClass", "p-progressbar-value p-progressbar-value-animate"), X("data-pc-section", "value"), s(2), _("ngIf", e.showValue && !e.contentTemplate && !e._contentTemplate), s(), _("ngTemplateOutlet", e.contentTemplate || e._contentTemplate)("ngTemplateOutletContext", ee(11, ga, e.value));
    }
}

function Ta(o, c) {
    if (o & 1 && (r(0, "div", 7), h(1, "div", 8), a()), o & 2) {
        let e = p();
        ut(e.valueStyleClass), _("ngClass", "p-progressbar-indeterminate-container"), X("data-pc-section", "container"), s(), Fo("background", e.color), X("data-pc-section", "value");
    }
}
var ha = ({
        dt: o
    }) => `
.p-progressbar {
    position: relative;
    overflow: hidden;
    height: ${o("progressbar.height")};
    background: ${o("progressbar.background")};
    border-radius: ${o("progressbar.border.radius")};
}

.p-progressbar-value {
    margin: 0;
    background: ${o("progressbar.value.background")};
}

.p-progressbar-label {
    color: ${o("progressbar.label.color")};
    font-size: ${o("progressbar.label.font.size")};
    font-weight: ${o("progressbar.label.font.weight")};
}

.p-progressbar-determinate .p-progressbar-value {
    height: 100%;
    width: 0%;
    position: absolute;
    display: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 1s ease-in-out;
}

.p-progressbar-determinate .p-progressbar-label {
    display: inline-flex;
}

.p-progressbar-indeterminate .p-progressbar-value::before {
    content: "";
    position: absolute;
    background: inherit;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    will-change: inset-inline-start, inset-inline-end;
    animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.p-progressbar-indeterminate .p-progressbar-value::after {
    content: "";
    position: absolute;
    background: inherit;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    will-change: inset-inline-start, inset-inline-end;
    animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation-delay: 1.15s;
}

@-webkit-keyframes p-progressbar-indeterminate-anim {
    0% {
        inset-inline-start: -35%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
    100% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
}
@keyframes p-progressbar-indeterminate-anim {
    0% {
        inset-inline-start: -35%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
    100% {
        inset-inline-start: 100%;
        inset-inline-end: -90%;
    }
}
@-webkit-keyframes p-progressbar-indeterminate-anim-short {
    0% {
        inset-inline-start: -200%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
    100% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
}
@keyframes p-progressbar-indeterminate-anim-short {
    0% {
        inset-inline-start: -200%;
        inset-inline-end: 100%;
    }
    60% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
    100% {
        inset-inline-start: 107%;
        inset-inline-end: -8%;
    }
}
`,
    fa = {
        root: ({
            instance: o
        }) => ["p-progressbar p-component", {
            "p-progressbar-determinate": o.determinate,
            "p-progressbar-indeterminate": o.indeterminate
        }],
        value: "p-progressbar-value",
        label: "p-progressbar-label"
    },
    _r = (() => {
        class o extends pi {
            name = "progressbar";
            theme = ha;
            classes = fa;
            static ɵfac = (() => {
                let e;
                return function(t) {
                    return (e || (e = At(o)))(t || o);
                };
            })();
            static ɵprov = pt({
                token: o,
                factory: o.ɵfac
            });
        }
        return o;
    })();
var fn = (() => {
        class o extends _i {
            value;
            showValue = !0;
            styleClass;
            valueStyleClass;
            style;
            unit = "%";
            mode = "determinate";
            color;
            contentTemplate;
            _componentStyle = Dt(_r);
            templates;
            _contentTemplate;
            ngAfterContentInit() {
                this.templates ? .forEach(e => {
                    switch (e.getType()) {
                        case "content":
                            this._contentTemplate = e.template;
                            break;
                        default:
                            this._contentTemplate = e.template;
                    }
                });
            }
            static ɵfac = (() => {
                let e;
                return function(t) {
                    return (e || (e = At(o)))(t || o);
                };
            })();
            static ɵcmp = te({
                type: o,
                selectors: [
                    ["p-progressBar"],
                    ["p-progressbar"],
                    ["p-progress-bar"]
                ],
                contentQueries: function(i, t, n) {
                    if (i & 1 && (Ft(n, da, 4), Ft(n, Be, 4)), i & 2) {
                        let l;
                        we(l = Ge()) && (t.contentTemplate = l.first), we(l = Ge()) && (t.templates = l);
                    }
                },
                inputs: {
                    value: [2, "value", "value", Ri],
                    showValue: [2, "showValue", "showValue", ze],
                    styleClass: "styleClass",
                    valueStyleClass: "valueStyleClass",
                    style: "style",
                    unit: "unit",
                    mode: "mode",
                    color: "color"
                },
                features: [Te([_r]), ti],
                decls: 3,
                vars: 15,
                consts: [
                    ["role", "progressbar", 3, "ngStyle", "ngClass"],
                    ["style", "display:flex", 3, "ngClass", "class", "width", "background", 4, "ngIf"],
                    [3, "ngClass", "class", 4, "ngIf"],
                    [2, "display", "flex", 3, "ngClass"],
                    [1, "p-progressbar-label"],
                    [3, "display", 4, "ngIf"],
                    [4, "ngTemplateOutlet", "ngTemplateOutletContext"],
                    [3, "ngClass"],
                    [1, "p-progressbar-value", "p-progressbar-value-animate"]
                ],
                template: function(i, t) {
                    i & 1 && (r(0, "div", 0), C(1, Ca, 4, 13, "div", 1)(2, Ta, 2, 7, "div", 2), a()), i & 2 && (ut(t.styleClass), _("ngStyle", t.style)("ngClass", Je(12, ma, t.mode === "determinate", t.mode === "indeterminate")), X("aria-valuemin", 0)("aria-valuenow", t.value)("aria-valuemax", 100)("data-pc-name", "progressbar")("data-pc-section", "root")("aria-label", t.value + t.unit), s(), _("ngIf", t.mode === "determinate"), s(), _("ngIf", t.mode === "indeterminate"));
                },
                dependencies: [ie, me, re, wt, Mi, Ke],
                encapsulation: 2,
                changeDetection: 0
            });
        }
        return o;
    })(),
    cr = (() => {
        class o {
            static ɵfac = function(i) {
                return new(i || o)();
            };
            static ɵmod = ct({
                type: o
            });
            static ɵinj = _t({
                imports: [fn, Ke, Ke]
            });
        }
        return o;
    })();
var Se = (() => {
    class o {
        constructor() {
            this.filterValue = new Pt(), this.$filterValue = this.filterValue.asObservable(), this.reportsRecordNo = new Pt(), this.$reportsRecordNo = this.reportsRecordNo.asObservable(), this.reportPayLoad = {
                userId: "",
                title: "",
                reportType: {
                    reportName: "",
                    recurringType: ""
                },
                accountDetails: {
                    groupNames: [],
                    accountNumbers: []
                },
                frequency: "",
                generatingDate: "",
                deliveryDateEnd: "",
                deliveryDateStart: "",
                shipmentDateEnd: "",
                shipmentDateStart: "",
                creationDate: "",
                lastUsedDate: "",
                email: "",
                columnLayout: {
                    templateId: "",
                    columnNames: []
                },
                lang: "",
                fileType: "",
                exportParams: {
                    filters: [],
                    shipmentpin: [],
                    packageEstimatedDeliveryDate: {
                        from_date: "",
                        to_date: ""
                    }
                },
                shipment_expected_delivery_date: "",
                userEmail: "",
                scheduleId: ""
            };
        }
        setFilterValue(e) {
            this.filterValue.next(e);
        }
        getFilterValue() {
            return this.$filterValue;
        }
        sendGeneratedReportsNo(e) {
            this.reportsRecordNo.next(e);
        }
        getGeneratedReportsNo() {
            return this.$reportsRecordNo;
        }
        setColumnLayout(e) {
            this.reportPayLoad.columnLayout = e;
        }
        resetReportPayload() {
            this.reportPayLoad = {
                userId: "",
                title: "",
                reportType: {
                    reportName: "",
                    recurringType: ""
                },
                accountDetails: {
                    groupNames: [],
                    accountNumbers: []
                },
                frequency: "",
                generatingDate: "",
                deliveryDateEnd: "",
                deliveryDateStart: "",
                shipmentDateEnd: "",
                shipmentDateStart: "",
                creationDate: "",
                lastUsedDate: "",
                email: "",
                columnLayout: {
                    templateId: "",
                    columnNames: []
                },
                lang: "",
                fileType: "",
                exportParams: {
                    filters: [],
                    shipmentpin: [],
                    packageEstimatedDeliveryDate: {
                        from_date: "",
                        to_date: ""
                    }
                },
                shipment_expected_delivery_date: "",
                userEmail: "",
                scheduleId: ""
            };
        }
        localizedReportType(e) {
            let i = e;
            switch (e) {
                case ne.TRACKING:
                    i = "Tracking Summary";
                    break;
                case ne.EXCEPTION:
                    i = "Exception";
                    break;
                default:
                    i = e;
            }
            return i;
        }
        localizedReportStatus(e) {
            let i = e;
            switch (e) {
                case Vt.ON_GOING:
                    i = "Ongoing";
                    break;
                case Vt.COMPLETED:
                    i = "Completed";
                    break;
                case Vt.FAILED:
                    i = "Failed";
                    break;
                case Vt.DISTRIBUTED:
                    i = "Distributed";
                    break;
                case Vt.IN_REVIEW:
                    i = "In Review";
                    break;
                case Vt.IN_DISTRIBUTION:
                    i = "In Distribution";
                    break;
                default:
                    i = e;
            }
            return i;
        }
        localizedReportFrequency(e) {
            let i = e;
            switch (e) {
                case Fe.WEEKLY:
                    i = "Weekly";
                    break;
                case Fe.BIWEEKLY:
                    i = "Bi-Weekly";
                    break;
                case Fe.MONTHLY:
                    i = "Monthly";
                    break;
                case Fe.QUARTERLY:
                    i = "Quarterly";
                    break;
                case Fe.ANNUALLY:
                    i = "Annually";
                    break;
                default:
                    i = e;
            }
            return i;
        }
        localizedTypeOfService(e) {
            let i = e;
            switch (e) {
                case "express":
                    i = "Express";
                    break;
                case "ground":
                    i = "Ground";
                    break;
                case "9AM":
                    i = "9 AM";
                    break;
                case "1030AM":
                    i = "10:30 AM";
                    break;
                case "noon":
                    i = "Noon";
                    break;
                case "evening":
                    i = "Evening";
                    break;
                case "endofDay":
                    i = "End of Day";
                    break;
                case "canada":
                    i = "Canada";
                    break;
                case "us":
                    i = "US";
                    break;
                case "international":
                    i = "International";
                    break;
                default:
                    i = e;
            }
            return i;
        }
        localizedInReviewDaysLeft(e) {
            let i = e ? .remainingTime ? .days,
                t = Number.isFinite(Number(i)) ? Number(i) : 0;
            return t < 0 ? Math.abs(t) + " " + (Math.abs(t) == 1 ? " day exceeded" : " days exceeded") : t + " " + (t == 1 ? " day remaining" : " days remaining");
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)();
            };
        }
        static {
            this.ɵprov = pt({
                token: o,
                factory: o.ɵfac,
                providedIn: "root"
            });
        }
    }
    return o;
})();
var Oa = (o, c) => ({
        "orange-progress": o,
        "red-progress": c
    }),
    Pa = () => ({
        standalone: !0
    });

function Aa(o, c) {
    o & 1 && (r(0, "span", 45), G(1), d(2, 5), k(), S(3, " Purolator "), a());
}

function Na(o, c) {
    if (o & 1 && (r(0, "span", 45), G(1), d(2, 6), k(), S(3), a()), o & 2) {
        let e = p(2);
        s(3), de(" ", e.user.userData.view.signature.selectedOrganizationName, " ");
    }
}

function Ma(o, c) {
    if (o & 1 && h(0, "p-message", 46), o & 2) {
        let e = c.$implicit;
        _("severity", e.severity)("text", e.summary + (e.detail ? ": " + e.detail : ""));
    }
}

function Ia(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "section", 47)(1, "h5"), d(2, 7), a(), r(3, "p"), d(4, 8), a(), r(5, "div", 48)(6, "div", 49), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.goToAddReport("oneTime"));
        })("keypress", function() {
            m(e);
            let t = p(2);
            return g(t.goToAddReport("oneTime"));
        }), r(7, "div", 50), h(8, "img", 51), r(9, "span"), d(10, 9), a(), h(11, "img", 52), a(), r(12, "p"), d(13, 10), a()(), r(14, "div", 53), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.goToAddReport("exception"));
        })("keypress", function() {
            m(e);
            let t = p(2);
            return g(t.goToAddReport("exception"));
        }), r(15, "div", 50), h(16, "img", 54), r(17, "span"), d(18, 11), a(), h(19, "img", 52), a(), r(20, "p"), d(21, 12), a()()()();
    }
}

function ya(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "li", 55)(1, "a", 56), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.globalFilterText = "");
        }), d(2, 13), a()();
    }
}

function Da(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "li", 55)(1, "a", 57), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.globalFilterText = "");
        }), d(2, 14), a()();
    }
}

function va(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "li", 55)(1, "a", 58), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.globalFilterText = "");
        }), d(2, 15), a()();
    }
}

function ba(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "article", 20)(1, "div", 21)(2, "h1"), d(3, 1), a(), r(4, "div", 22), C(5, Aa, 4, 0, "span", 23)(6, Na, 4, 1, "span", 23), a()(), r(7, "div", 24), C(8, Ma, 1, 2, "p-message", 25), a(), C(9, Ia, 22, 0, "section", 26), r(10, "section", 27)(11, "div", 28)(12, "div", 29)(13, "h5", 30), d(14, 2), a(), r(15, "p", 31), d(16, 3), a()(), r(17, "div", 32)(18, "div", 33)(19, "span", 34), S(20), a(), h(21, "p-progressBar", 35), a()()(), r(22, "div", 28)(23, "div", 36)(24, "ul", 37), C(25, ya, 3, 0, "li", 38)(26, Da, 3, 0, "li", 38)(27, va, 3, 0, "li", 38), a()(), r(28, "div", 39)(29, "div", 40)(30, "label", 41), d(31, 4), a(), r(32, "span", 42), h(33, "i", 43), r(34, "input", 44), R("input", function(t) {
            m(e);
            let n = p();
            return g(n.applyGlobalFilter(t));
        }), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.globalFilterText, t) || (n.globalFilterText = t), g(t);
        }), a()()()()()()();
    }
    if (o & 2) {
        let e = p();
        s(5), _("ngIf", e.authService.hasAccess(e.DASHBOARD_SELECT_ORGANIZATION) && !e.user.userData.view.signature.selectedOrganizationName), s(), _("ngIf", e.authService.hasAccess(e.DASHBOARD_SELECT_ORGANIZATION) && e.user.userData.view.signature.selectedOrganizationName), s(2), _("ngForOf", e.messages), s(), _("ngIf", e.authService.isReportingCreateReportAuthorised() || e.authService.isReportingScheduleReportAuthorised()), s(11), N(e.reportText), s(), _("value", e.progressBarValue)("showValue", !1)("mode", "determinate")("ngClass", Je(14, Oa, e.progressBarValue >= 80, e.progressBarValue >= 100)), s(4), _("ngIf", e.authService.isReportingViewReportAuthorised()), s(), _("ngIf", e.authService.isReportingViewSchedulesAuthorised()), s(), _("ngIf", e.authService.isReportingViewTemplatesAuthorised()), s(7), x("ngModel", e.globalFilterText), _("ngModelOptions", K(17, Pa));
    }
}

function xa(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 59)(1, "button", 60), R("click", function() {
            m(e);
            let t = p();
            return g(t.displayModal = !1);
        }), a()();
    }
}
var ur = (() => {
    class o {
        constructor(e, i, t, n) {
            this.router = e, this.reportingDashboardService = i, this.user = t, this.authService = n, this.progressBarValue = 0, this.DASHBOARD_SELECT_ORGANIZATION = Hn, this.globalFilterText = "", this.messages = [], this.activeTab = this.router.url.split("/")[2], this.summaryText = "Generated Reports are at Capacity.", this.detailText = "You have reached the maximum number of reports created. Please delete a report to free up space.", this.reportText = "" + this.progressBarValue + " of 100 reports created", this.router.routeReuseStrategy.shouldReuseRoute = () => !1;
        }
        ngOnInit() {
            this.reportingDashboardService.getGeneratedReportsNo().subscribe(e => {
                this.activeTab = this.router.url.split("/")[2];
                let i = this.router.url.split("/")[1];
                this.progressBarValue = e, this.progressBarValue >= 80 && this.progressBarValue < 100 ? (this.summaryText = "Report limit is nearing capacity.", this.detailText = "When limit reaches 100 reports, you will not be able to create more. Delete reports to free up space.", this.addMessages({
                    severity: "warn",
                    summary: this.summaryText,
                    detail: this.detailText
                })) : this.progressBarValue >= 100 ? (this.summaryText = "Generated Reports are at Capacity.", this.detailText = "You have reached the maximum number of reports created. Please delete a report to free up space.", this.activeTab === "scheduled" ? (this.summaryText = "Scheduled Reports are at Capacity.", this.detailText = "You have reached the maximum number of scheduled reports. Please delete a report to free up space.") : (this.activeTab === "saved-column-layouts" || i === "saved-column-layouts") && (this.summaryText = "Templates are at Capacity.", this.detailText = "You have reached the maximum number of templates created. Please delete a template to free up space."), this.addMessages({
                    severity: "error",
                    summary: this.summaryText,
                    detail: this.detailText
                })) : (this.messages = [], this.displayModal = !1), this.activeTab === "scheduled" ? this.reportText = "" + this.progressBarValue + " of 100 schedules created" : this.activeTab === "saved-column-layouts" ? this.reportText = "" + this.progressBarValue + " of 100 layouts created" : this.reportText = "" + this.progressBarValue + " of 100 reports created";
            });
        }
        checkAuthorization() {
            !(this.authService.isReportingViewReportAuthorised() || this.authService.isReportingCreateReportAuthorised() || this.authService.isReportingScheduleReportAuthorised() || this.authService.isReportingViewSchedulesAuthorised() || this.authService.isReportingManageSchedulesAuthorised()) && this.router.navigate(["/dashboard"]);
        }
        applyGlobalFilter(e) {
            let i = e.target.value;
            this.globalFilterText = i, this.reportingDashboardService.setFilterValue(this.globalFilterText);
        }
        addMessages(e) {
            this.messages = [{
                severity: e.severity,
                summary: e.summary,
                detail: e.detail
            }];
        }
        goToAddReport(e) {
            if (this.progressBarValue >= 100) {
                this.displayModal = !0;
                return;
            }
            this.router.navigate([`/reporting-dashboard/${e.toLocaleLowerCase()}-report`]);
        }
        ngOnDestroy() {
            this.displayModal = !1;
        }
        displayModalChange(e) {
            this.displayModal = e;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(ke), A(Se), A(se), A(je));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-reporting-dashboard"]
                ],
                decls: 9,
                vars: 5,
                consts: () => {
                    let e;
                    e = "Search reports";
                    let i;
                    i = "Reporting";
                    let t;
                    t = "View Your Reports";
                    let n;
                    n = "Switch between the tabs to view various report data, and filter to see specific ones:";
                    let l;
                    l = "Search Reports :";
                    let u;
                    u = "Selected Organization:";
                    let T;
                    T = "Selected Organization:";
                    let f;
                    f = "Create a New Report";
                    let M;
                    M = "Select from the following options to generate a new report: ";
                    let D;
                    D = "Tracking Summary";
                    let b;
                    b = "Status of your shipments and delivery dates.";
                    let v;
                    v = "Exception Reporting";
                    let $;
                    $ = "Shipments in Attention status.";
                    let y;
                    y = "Recently Generated";
                    let U;
                    U = "Scheduled";
                    let oe;
                    oe = "Saved Column Layouts";
                    let B;
                    return B = "Okay", [
                        ["footer", ""], i, t, n, l, u, T, f, M, D, b, v, $, y, U, oe, ["class", "dashboard", 4, "ngIf"],
                        [1, "delete-dailog"],
                        [1, "pur-dialog", 3, "visibleChange", "header", "visible", "modal"],
                        [1, "model-body", "text-left"],
                        [1, "dashboard"],
                        [1, "dashboard_header", "mb-3"],
                        [1, "organization"],
                        ["class", "organizationName", 4, "ngIf"],
                        [1, "dashboard_header_message"],
                        [3, "severity", "text", 4, "ngFor", "ngForOf"],
                        ["class", "pur-card mb-3", 4, "ngIf"],
                        [1, "report-section", "p-3", "bg-white"],
                        [1, "row"],
                        [1, "col-md-8"],
                        [1, "report-section__title"],
                        [1, "report-section__text", "mb-4"],
                        [1, "col-md-4"],
                        [1, "progressbar-section"],
                        [1, "progressbar-info"],
                        ["color", "#001996", 3, "value", "showValue", "mode", "ngClass"],
                        [1, "col-lg-8", "col-md-12", "col-sm-12"],
                        [1, "nav", "mb-1"],
                        ["class", "nav-item", 4, "ngIf"],
                        [1, "col-lg-4", "col-md-12", "col-sm-12"],
                        [1, "fix-container"],
                        ["for", "searchReports", 1, "search-field-label"],
                        [1, "p-input-icon-left", "tableSearchInput"],
                        [1, "pi", "pi-search"],
                        ["id", "searchReports", "name", "searchReports", "pInputText", "", "type", "search", "placeholder", e, 3, "input", "ngModelChange", "ngModel", "ngModelOptions"],
                        [1, "organizationName"],
                        [3, "severity", "text"],
                        [1, "pur-card", "mb-3"],
                        [1, "pur-card__content"],
                        ["tabindex", "0", "role", "button", "aria-label", "Tracking Summary clickable", 1, "pur-card__item", 3, "click", "keypress"],
                        [1, "pur-card__item__icon"],
                        ["src", "assets/images/motion_sensor.png", "alt", "tracking summary", 1, "pur-card__item__icon--tracking"],
                        ["src", "assets/images/plus.png", "alt", "plus", 1, "pur-card__item__icon--plus"],
                        ["tabindex", "0", "role", "button", "aria-label", "Exception Reporting clickable", 1, "pur-card__item", 3, "click", "keypress"],
                        ["src", "assets/images/warning.png", "alt", "exception reporting", 1, "pur-card__item__icon--tracking"],
                        [1, "nav-item"],
                        ["routerLink", "/reporting-dashboard/recently-generated", "routerLinkActive", "active", 1, "nav-link", 3, "click"],
                        ["routerLink", "/reporting-dashboard/scheduled", "routerLinkActive", "active", 1, "nav-link", 3, "click"],
                        ["routerLink", "/reporting-dashboard/saved-column-layouts", "routerLinkActive", "active", 1, "nav-link", 3, "click"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", "label", B, 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1) {
                        let n = P();
                        h(0, "app-notification-banner"), C(1, ba, 35, 18, "article", 16), r(2, "div", 17)(3, "p-dialog", 18), F("visibleChange", function(u) {
                            return m(n), L(t.displayModal, u) || (t.displayModal = u), g(u);
                        }), r(4, "p", 19), S(5), a(), C(6, xa, 2, 0, "ng-template", null, 0, z), a()(), h(8, "router-outlet");
                    }
                    i & 2 && (s(), _("ngIf", t.authService.isReportingViewReportAuthorised() || t.authService.isReportingViewSchedulesAuthorised() || t.authService.isReportingViewTemplatesAuthorised()), s(2), _("header", t.summaryText), x("visible", t.displayModal), _("modal", !0), s(2), N(t.detailText));
                },
                dependencies: [ie, me, he, re, fe, $e, Ie, Ve, pr, hn, nt, cr, fn, be, Xe, Bn, ko, Xn, Ee, Ze, ve, qe, De, Wo],
                styles: ['body[_ngcontent-%COMP%]{font:var(--pur-font-body);color:var(--pur-text-black);background-color:var(--pur-canvas)}a[_ngcontent-%COMP%]{color:var(--pur-link)}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{color:var(--pur-link-hover)}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], p[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], dl[_ngcontent-%COMP%]{margin-block-start:0;margin-block-end:var(--pur-gap)}article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], details[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], section[_ngcontent-%COMP%]{display:block}[hidden][_ngcontent-%COMP%]{display:none!important}[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.dashboard_header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;height:62px;margin-top:0}.organization[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;gap:10px;margin-top:6px}.organization[_ngcontent-%COMP%]   .p-button.p-button-icon-only.p-button-rounded[_ngcontent-%COMP%]{top:5px;color:var(--pur-primary-blue);width:3.357rem;background:none!important;border:none!important;border-radius:0!important;outline:none!important;margin:0 5px}.organization[_ngcontent-%COMP%]   .organizationName[_ngcontent-%COMP%]{margin-top:.75rem;margin-right:.75rem}[_nghost-%COMP%]     .organization .p-button.p-button-icon-only.p-button-rounded span.pi-refresh{font-size:1.4rem}[_nghost-%COMP%]     .organization .p-button.p-button-text:enabled:active, [_nghost-%COMP%]     .organization .p-button.p-button-text:enabled:hover, [_nghost-%COMP%]     .organization .p-button.p-button-text:enabled:focus{background:none!important;color:var(--pur-primary-blue);border:none;border-radius:0;outline:none;box-shadow:none}h5[_ngcontent-%COMP%]{margin-bottom:5px;font-size:1.375rem;font-weight:var(--pur-font-semibold)}.last-refresh-text[_ngcontent-%COMP%]{text-decoration:underline;color:var(--pur-primary-blue);cursor:default}@media screen and (max-width: 1415px){h1[_ngcontent-%COMP%]{margin-bottom:0}.dashboard_header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start;height:1%;width:100%;margin-top:0}}.pur-card__content[_ngcontent-%COMP%]{display:flex;font-size:var(--pur-font-desktop-xxs)}.pur-card__item[_ngcontent-%COMP%]{cursor:pointer;border:2px solid var(--pur-web-grey-light);border-radius:10px;padding:16px;margin-right:15px;width:370px}.pur-card__item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;color:var(--pur-primary-blue)}.pur-card__item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--pur-primary-blue)}.pur-card__item__icon[_ngcontent-%COMP%]{margin-bottom:5px}.pur-card__item__icon[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:600}.pur-card__item__icon--tracking[_ngcontent-%COMP%]{margin-right:10px}.pur-card__item__icon--plus[_ngcontent-%COMP%]{float:right}.pur-card__item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--pur-web-grey-dark);margin-bottom:0}.report-section__text[_ngcontent-%COMP%]{color:#080808}.nav-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:1.35rem;color:var(--pur-primary-blue)}.nav-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline:none!important}.nav-item[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{box-shadow:inset 0 -4px var(--pur-primary-blue)}.progressbar-section[_ngcontent-%COMP%]{float:right;width:186px}.progressbar-info[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs);color:#757575}.tableSearchInput[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]{padding:8px 8px 8px 30px;border:1px solid #757575;border-radius:5px;width:300px}.tableSearchInput[_ngcontent-%COMP%]   input[type=search][_ngcontent-%COMP%]::-webkit-search-cancel-button{-webkit-appearance:none;width:11px;height:11px;background:linear-gradient(45deg,#0000 0% 43%,#000 45% 55%,#0000 57% 100%),linear-gradient(135deg,transparent 0%,transparent 43%,#000 45%,#000 55%,transparent 57%,transparent 100%)}.search-field-label[_ngcontent-%COMP%]{line-height:2.25rem;width:100%}.fix-container[_ngcontent-%COMP%]{width:300px}@media screen and (min-width: 992px){.fix-container[_ngcontent-%COMP%]{float:right}}']
            });
        }
    }
    return o;
})();
var La = () => ["generationDate", "title", "type", "resultCount", "status"],
    Fa = () => ({
        standalone: !0
    }),
    wa = o => ({
        disabled: o
    });

function Ga(o, c) {
    o & 1 && (r(0, "th", 58), d(1, 14), a());
}

function ka(o, c) {
    o & 1 && (r(0, "th", 59), d(1, 15), a());
}

function $a(o, c) {
    if (o & 1 && (r(0, "tr")(1, "th", 46), Z(2, 9), h(3, "p-sortIcon", 47), q(), a(), r(4, "th", 48), Z(5, 10), h(6, "p-sortIcon", 49), q(), a(), r(7, "th", 50), Z(8, 11), h(9, "p-sortIcon", 51), q(), a(), r(10, "th", 52), Z(11, 12), h(12, "p-sortIcon", 53), q(), a(), r(13, "th", 54), Z(14, 13), h(15, "p-sortIcon", 55), q(), a(), C(16, Ga, 2, 0, "th", 56)(17, ka, 2, 0, "th", 57), a()), o & 2) {
        let e = p(2);
        s(16), _("ngIf", e.authService.isReportingDownloadReportAuthorised()), s(), _("ngIf", e.authService.isReportingDownloadReportAuthorised());
    }
}

function Va(o, c) {
    if (o & 1 && (r(0, "span"), S(1), a()), o & 2) {
        let e = p().$implicit,
            i = p(2);
        s(), de("(", i.reportingDashboardService.localizedInReviewDaysLeft(e), ")");
    }
}

function Ba(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "td", 64)(1, "a", 65), R("click", function() {
            m(e);
            let t = p().$implicit,
                n = p(2);
            return g(n.downloadReport(t.reportId));
        }), h(2, "i", 66), a()();
    }
    if (o & 2) {
        let e = p().$implicit,
            i = p(2);
        s(), _("ngClass", ee(3, wa, e.status.toLowerCase() === "failed" || e.status.toLowerCase() === "ongoing")), X("aria-label", i.getFileName(e))("data-report-id", e.reportId);
    }
}

function Xa(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "td", 67)(1, "i", 68), R("click", function(t) {
            m(e);
            let n = j(3),
                l = p(),
                u = l.$implicit,
                T = l.rowIndex,
                f = p(2);
            return n.toggle(t), f.setSelectedRow(T, u), f.delSendReportId(u.userId, u.reportId), g(f.selectedItem = u);
        })("keypress", function(t) {
            m(e);
            let n = j(3),
                l = p(),
                u = l.$implicit,
                T = l.rowIndex,
                f = p(2);
            return n.toggle(t), f.setSelectedRow(T, u), f.delSendReportId(u.userId, u.reportId), g(f.selectedItem = u);
        }), a(), r(2, "p-menu", 69, 2), R("onShow", function() {
            m(e);
            let t = p(3);
            return g(t.onMenuShow());
        })("onHide", function() {
            m(e);
            let t = p(3);
            return g(t.onMenuHide());
        }), a()();
    }
    if (o & 2) {
        let e = p(),
            i = e.$implicit,
            t = e.rowIndex,
            n = p(2);
        s(), _("id", "id" + i.reportId + t), X("aria-expanded", n.isMenuVisible ? "true" : "false"), s(), _("popup", !0)("model", n.actionItems);
    }
}

function Ua(o, c) {
    if (o & 1 && (r(0, "tr")(1, "td"), S(2), ae(3, "date"), a(), r(4, "td"), S(5), a(), r(6, "td"), S(7), a(), r(8, "td"), h(9, "i"), r(10, "span", 60), S(11), C(12, Va, 2, 1, "span", 61), a()(), r(13, "td"), S(14), a(), C(15, Ba, 3, 5, "td", 62)(16, Xa, 4, 4, "td", 63), a()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(2), N(e.generationDate ? Ei(3, 11, e.generationDate, "yyyy-MM-dd") : ""), s(3), N(e.title), s(2), N(i.reportingDashboardService.localizedReportType(e.type)), s(2), bn("pi pi-circle-fill text-status-", i.statusCssClass(e.status), ""), s(2), de(" ", i.reportingDashboardService.localizedReportStatus(e.status), " "), s(), _("ngIf", e.status === i.ReportStatusView.IN_REVIEW), s(2), N(e.resultCount), s(), _("ngIf", i.authService.isReportingDownloadReportAuthorised()), s(), _("ngIf", i.authService.isReportingDownloadReportAuthorised());
    }
}

function Ha(o, c) {
    o & 1 && (r(0, "tr")(1, "td"), d(2, 16), a()());
}

function za(o, c) {
    o & 1 && (r(0, "tr")(1, "td"), d(2, 17), a()());
}

function Ya(o, c) {
    if (o & 1 && C(0, Ha, 3, 0, "tr", 61)(1, za, 3, 0, "tr", 61), o & 2) {
        let e = p(2);
        _("ngIf", e.isShowEmptyMessage), s(), _("ngIf", e.isLoading);
    }
}

function Wa(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 70)(1, "button", 71), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayModal = !1);
        }), a(), r(2, "button", 72), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.confirmDelete(t.user.userData.id, t.reportId));
        }), a()();
    }
}

function Ka(o, c) {
    o & 1 && (r(0, "p", 73), d(1, 18), a());
}

function Za(o, c) {
    o & 1 && (r(0, "p", 73), d(1, 19), a());
}

function qa(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 74)(1, "button", 75), R("click", function() {
            m(e);
            let t = p(2);
            return t.displayTemplateModal = !1, g(t.focusToOriginElement());
        }), d(2, 20), a(), r(3, "button", 76), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.saveColumnLayout());
        }), d(4, 21), a()();
    }
}

function ja(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 70)(1, "button", 77), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayCapacityModal = !1);
        }), a()();
    }
}

function Qa(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 70)(1, "button", 78), R("click", function() {
            m(e);
            let t = p(2);
            return t.displayNoChangeModal = !1, g(t.focusToOriginElement());
        }), d(2, 22), a()();
    }
}

function Ja(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 25)(1, "div", 26)(2, "div", 27)(3, "p-table", 28, 0), C(5, $a, 18, 2, "ng-template", 29)(6, Ua, 17, 14, "ng-template", 30)(7, Ya, 2, 2, "ng-template", 31), a()(), r(8, "p", 32), S(9, "*"), r(10, "span"), d(11, 4), a()()(), r(12, "div", 33)(13, "p-dialog", 34), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayModal, t) || (n.displayModal = t), g(t);
        }), r(14, "p", 35), d(15, 5), a(), C(16, Wa, 3, 0, "ng-template", null, 1, z), a()(), r(18, "div", 36)(19, "p-dialog", 37), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayTemplateModal, t) || (n.displayTemplateModal = t), g(t);
        }), r(20, "p", 38), d(21, 6), a(), r(22, "div", 39)(23, "label", 40), d(24, 7), a(), r(25, "input", 41), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.columnLayoutName, t) || (n.columnLayoutName = t), g(t);
        }), R("keypress", function(t) {
            m(e);
            let n = p();
            return g(n.restrictSpecialCharacters(t));
        })("paste", function(t) {
            m(e);
            let n = p();
            return g(n.pasteHandler(t));
        }), a(), C(26, Ka, 2, 0, "p", 42)(27, Za, 2, 0, "p", 42), a(), C(28, qa, 5, 0, "ng-template", null, 1, z), a()(), r(30, "div", 33)(31, "p-dialog", 43), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayCapacityModal, t) || (n.displayCapacityModal = t), g(t);
        }), r(32, "p", 35), S(33), a(), C(34, ja, 2, 0, "ng-template", null, 1, z), a()(), r(36, "div", 44)(37, "p-dialog", 45), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayNoChangeModal, t) || (n.displayNoChangeModal = t), g(t);
        }), r(38, "p", 35), d(39, 8), a(), C(40, Qa, 3, 0, "ng-template", null, 1, z), a()()();
    }
    if (o & 2) {
        let e = p();
        s(3), _("resizableColumns", !0)("autoLayout", !0)("sortOrder", -1)("value", e.rowData)("globalFilterFields", K(19, La)), s(10), x("visible", e.displayModal), _("modal", !0), s(6), x("visible", e.displayTemplateModal), _("modal", !0), s(6), x("ngModel", e.columnLayoutName), _("ngModelOptions", K(20, Fa)), s(), _("ngIf", e.showErrorMessage && !e.columnLayoutName), s(), _("ngIf", e.duplicateReportTitleError && e.columnLayoutName), s(4), _("header", e.summaryText), x("visible", e.displayCapacityModal), _("modal", !0), s(2), N(e.detailText), s(4), x("visible", e.displayNoChangeModal), _("modal", !0);
    }
}
var gr = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f) {
            this.reportingDashboardService = e, this.router = i, this.spinner = t, this.apiService = n, this.authService = l, this.renderer = u, this.user = T, this.messageService = f, this.ReportStatusView = Vt, this.backUpRowData = [], this.columnLayoutName = "", this.showErrorMessage = !1, this.rowData = [], this.duplicateReportTitleError = !1, this.titleInvalidCharacters = !1, this.isShowEmptyMessage = !1, this.isLoading = !1, this.totalReports = 0, this.displayCapacityModal = !1, this.summaryText = "Generated Reports are at Capacity.", this.detailText = "You have reached the maximum number of reports created. Please delete a report to free up space.", this.displayNoChangeModal = !1, this.errorMessages = {
                summary: "Something Went Wrong!",
                detail: "Please try again later. If issue persist again, please contact support team."
            }, this.isMenuVisible = !1, this.displayModal = !1, this.displayTemplateModal = !1, this.actionItems = [], this.selectedRowIndex = -1;
        }
        ngOnInit() {
            this.multiSortMeta = [{
                field: "type",
                order: 1
            }, {
                field: "title",
                order: 1
            }], this.columnLayoutName = this.selectedRowData ? .title, this.getSavedColumnData(), this.onGeneratedReportData(), this.filterSubscription = this.reportingDashboardService.getFilterValue().subscribe(e => {
                this.isShowEmptyMessage = !0, this.rowData = this.backUpRowData.filter(i => i.title.toLocaleLowerCase().includes(e.toLocaleLowerCase()) || i.type.toLocaleLowerCase().includes(e.toLocaleLowerCase()) || i.status.toLocaleLowerCase().includes(e.toLocaleLowerCase()) || i ? .resultCount ? .toString().toLocaleLowerCase().includes(e.toLocaleLowerCase()) || i ? .generationDate ? .toString().toLocaleLowerCase().includes(e.toLocaleLowerCase()));
            }), this.reportingDashboardService.getGeneratedReportsNo().subscribe(e => {
                this.totalReports = e;
            });
        }
        updateActionItems(e) {
            this.actionItems = [{
                label: "View Details",
                command: () => {
                    this.viewDetails(e);
                }
            }, ...(this.authService.isReportingManageTemplatesAuthorised() && this.isTrackingOrExceptionReport(e) ? [{
                label: "Save as Column layout",
                command: () => {
                    this.displayTemplateModal = !0, this.showErrorMessage = !1, this.columnLayoutName = "";
                }
            }] : []), ...(this.authService.isReportingDeleteReportAuthorised() ? [{
                label: "Delete Report",
                command: () => {
                    this.delSendReportId(this.user.userData.id, this.reportId), this.deleteReport(e);
                }
            }] : [])];
        }
        deleteReport(e) {
            let i = e ? .status ? .toString().toLocaleLowerCase(),
                t = Vt.ON_GOING.toLocaleLowerCase();
            if (i === t) {
                this.displayNoChangeModal = !1, this.displayModal = !0;
                return;
            }
            this.displayModal = !0;
        }
        onDeleteReport({
            userId: e,
            reportId: i
        }) {
            this.spinner.show("reportLoadingSpinner"), this.apiService.reportDelete({
                userId: this.user.userData.id,
                reportId: this.reportId
            }).subscribe(t => {
                this.rowData = this.removeItemById(this.reportId), this.backUpRowData = this.backUpRowData.filter(n => n.reportId !== this.reportId), this.spinner.hide("reportLoadingSpinner"), this.reportingDashboardService.sendGeneratedReportsNo(this.backUpRowData.length);
            }, t => {
                this.spinner.hide("reportLoadingSpinner");
                let n = this.errorMessages.summary,
                    l = this.errorMessages.detail;
                this.messageService.add({
                    severity: "error",
                    summary: n,
                    detail: l
                });
            });
        }
        confirmDelete(e, i) {
            this.onDeleteReport({
                userId: e,
                reportId: this.reportId
            }), this.displayModal = !1;
        }
        delSendReportId(e, i) {
            this.reportId = i;
        }
        viewDetails(e) {
            e && this.router.navigate(["/reporting-dashboard/view-details/" + le.ADHOC, e.reportId]);
        }
        downloadReport(e) {
            this.downloadSubscription = this.apiService.downloadReport({
                userId: this.user.userData.id,
                reportId: e
            }).subscribe(i => {
                i && i.payload && this.downloadURI(i);
            });
        }
        onGeneratedReportData() {
            this.isLoading = !0, this.reportSubscription = this.apiService.generatedReportsGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                e && e.payload && (this.rowData = e.payload, this.rowData.forEach(i => {
                    let t = i.type.indexOf("|");
                    i.reportType = i.type, i.resultCount = +i.resultCount, t !== -1 && (i.type = i.type.substring(0, i.type.indexOf("|")));
                    let n = tr(i.status);
                    n && (i.status = n);
                }), this.backUpRowData = this.rowData, this.sortUsersByCreationDate(), this.sortData()), this.isLoading = !1, this.isShowEmptyMessage = !1, this.reportingDashboardService.sendGeneratedReportsNo(this.rowData.length);
            }, e => {
                this.isLoading = !1, this.isShowEmptyMessage = !0;
            });
        }
        downloadURI(e) {
            let i = document.createElement("a");
            i.href = e.payload.downloadUrl, i.download = e.payload.fileName, document.body.appendChild(i), i.click(), document.body.removeChild(i);
        }
        ngOnDestroy() {
            this.displayCapacityModal = !1, this.reportSubscription.unsubscribe(), this.filterSubscription.unsubscribe(), this.downloadSubscription && this.downloadSubscription.unsubscribe();
        }
        setSelectedRow(e, i) {
            this.selectedRowData = i, this.selectedRowIndex = e;
        }
        saveColumnLayout() {
            if (!this.columnLayoutName ? .trim()) {
                this.showErrorMessage = !0;
                return;
            }
            if (this.duplicateTitleChecker()) return;
            let i = {
                userId: this.selectedRowData.userId,
                type: this.selectedRowData.reportType,
                creationDate: new Date().toISOString().split("T")[0],
                title: this.columnLayoutName.trim(),
                columns: this.selectedRowData.details ? .columnNames,
                reportId: this.selectedRowData.reportId,
                outputFormat: this.selectedRowData.fileType
            };
            this.spinner.show("reportLoadingSpinner"), this.apiService.saveColumnLayout(i).subscribe(t => {
                this.messageService.add({
                    severity: "success",
                    summary: "success",
                    detail: "Column layout created successfully."
                }), this.displayTemplateModal = !1, this.columnLayoutName = "", this.spinner.hide("reportLoadingSpinner"), this.getSavedColumnData();
            }, t => {
                if (this.spinner.hide("reportLoadingSpinner"), this.displayTemplateModal = !1, t ? .error ? .payload ? .includes(Li)) {
                    this.summaryText = "Templates are at Capacity.", this.detailText = "You have reached the maximum number of templates created. Please delete a template to free up space.", this.displayCapacityModal = !0;
                    return;
                }
                let n = this.errorMessages.summary,
                    l = this.errorMessages.detail;
                this.messageService.add({
                    severity: "error",
                    summary: n,
                    detail: l
                });
            });
        }
        restrictSpecialCharacters(e) {
            let i = /[^~|*<>^{}\\/]/g,
                t = String.fromCharCode(e.charCode);
            this.columnLayoutName && this.columnLayoutName.length >= 30 && e.preventDefault(), i.test(t) ? (this.titleInvalidCharacters = !1, this.duplicateReportTitleError = !1) : (this.titleInvalidCharacters = !0, e.preventDefault());
        }
        pasteHandler(e) {
            e.preventDefault();
            let t = (e.clipboardData || window.Clipboard).getData("text") + " ";
            if (!/[~|*<>^{}\\/]/g.test(t)) {
                let l = e.target,
                    u = l.value.substring(0, l.selectionStart || 0),
                    T = l.value.substring(l.selectionEnd || 0),
                    f = u + t + T;
                f && f.trim().length >= 30 && (f = f.substring(0, 30)), l.value = f.trimEnd();
                let M = u.length + t.length;
                l.selectionStart = M, l.selectionEnd = M, this.columnLayoutName = f;
            }
        }
        duplicateTitleChecker() {
            let e = !1;
            return e = this.reportTemplates.some(i => i.title ? .trim().toLocaleUpperCase() == this.columnLayoutName ? .trim().toLocaleUpperCase()), e ? (this.duplicateReportTitleError = !0, !0) : (this.duplicateReportTitleError = !1, !1);
        }
        getSavedColumnData() {
            this.apiService.savedColumnLayoutGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                if (e ? .payload) {
                    let i = e.payload;
                    i.forEach(t => {
                        if (t.type) {
                            let n = t.type.indexOf("|");
                            t.reportType = t.type, n !== -1 && (t.type = t.type.substring(0, t.type.indexOf("|")));
                        }
                    }), this.reportTemplates = i.filter(t => [ne.TRACKING, ne.EXCEPTION].includes(t.type));
                }
            });
        }
        removeItemById(e) {
            return this.rowData.filter(i => i.reportId !== e);
        }
        sortUsersByCreationDate() {
            this.backUpRowData.sort((e, i) => {
                let t = new Date(e.creationDate);
                return new Date(i.creationDate).getTime() - t.getTime();
            });
        }
        sortData() {
            this.rowData.sort((e, i) => {
                for (let t = 0; t < this.multiSortMeta.length; t++) {
                    let n = this.multiSortMeta[t],
                        l = null,
                        u = null,
                        T = 0;
                    if (l = e[n.field], u = i[n.field], l < u ? T = -1 : l > u && (T = 1), T !== 0) return T * n.order;
                }
                return 0;
            });
        }
        handleKeyboardEvent(e) {
            if (e.key === "Tab" && this.displayTemplateModal) {
                let i = document.querySelector(".p-dialog-header-close"),
                    t = document.querySelector(".p-dialog-title");
                i && i.setAttribute("tabindex", "0"), t && t.setAttribute("tabindex", "1");
            }
            if (e.key === "Enter" && setTimeout(() => {
                    document.querySelector(".ng-trigger-overlayAnimation ") && (document.querySelector(".ng-trigger.p-menu .p-menu-list li a").focus(), this.setFocus());
                }), e.key === "Escape") {
                let i = document.querySelector("#id" + this.selectedRowData ? .reportId + this.selectedRowIndex);
                i && (i.click(), i.focus());
            }
        }
        focusNextElement(e, i) {
            this.renderer.listen(e, "keydown", t => {
                t.key === "Tab" && !t.shiftKey && (t.preventDefault(), i.focus(), this.closeMenu());
            });
        }
        focusPreviousElement(e, i) {
            this.renderer.listen(e, "keydown", t => {
                t.key === "Tab" && t.shiftKey && (t.preventDefault(), i.focus(), this.closeMenu());
            });
        }
        closeMenu() {
            let e = document.querySelector("#id" + this.selectedRowData.reportId + this.selectedRowIndex);
            e && (e.click(), e.focus());
        }
        setFocus() {
            let e = document.querySelector("#id" + this.selectedRowData.reportId + this.selectedRowIndex),
                i = document.querySelectorAll(".ng-trigger.p-menu .p-menu-list li a");
            this.focusNextElement(i[2], e), this.focusPreviousElement(i[0], e);
        }
        focusToOriginElement() {
            let e = document.querySelector("#id" + this.selectedRowData.reportId + this.selectedRowIndex);
            e && e.focus();
        }
        getFileName(e) {
            let {
                title: i,
                type: t,
                generationDate: n
            } = e;
            return `Download ${i} ${t} ${n}`;
        }
        statusCssClass(e) {
            return (e ? ? "").toString().trim().toLowerCase().replaceAll(/[\s_]+/g, "-");
        }
        onMenuShow() {
            this.isMenuVisible = !0, this.selectedItem && this.updateActionItems(this.selectedItem);
        }
        onMenuHide() {
            this.isMenuVisible = !1;
        }
        isTrackingOrExceptionReport(e) {
            return !e || !e.type ? !1 : e.type.includes(ne.TRACKING) || e.type.includes(ne.EXCEPTION);
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(Se), A(ke), A(We), A(xe), A(je), A(bt), A(se), A(ye));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-recently-generated"]
                ],
                hostBindings: function(i, t) {
                    i & 1 && R("keydown", function(l) {
                        return t.handleKeyboardEvent(l);
                    }, !1, vt);
                },
                features: [Te([ye])],
                decls: 4,
                vars: 2,
                consts: () => {
                    let e;
                    e = "Processing...";
                    let i;
                    i = "Are you sure, you want to delete the report ?";
                    let t;
                    t = "Save as Column Layout";
                    let n;
                    n = "Cannot delete";
                    let l;
                    l = "Failed reports are deleted after 30 days. Successful reports are deleted if they are unopened for 60 days.";
                    let u;
                    u = "You will not be able to recover the report details once it has been deleted.";
                    let T;
                    T = " To Save the Column Layout for future use, please enter a unique name:";
                    let f;
                    f = "Column Layout Name";
                    let M;
                    M = "You cannot delete the report as it is currently in progress.";
                    let D;
                    D = " Date of Report " + "\uFFFD#3\uFFFD" + "" + "\uFFFD/#3\uFFFD" + "";
                    let b;
                    b = " Report Title " + "\uFFFD#6\uFFFD" + "" + "\uFFFD/#6\uFFFD" + "";
                    let v;
                    v = " Report Type " + "\uFFFD#9\uFFFD" + "" + "\uFFFD/#9\uFFFD" + "";
                    let $;
                    $ = " Status " + "\uFFFD#12\uFFFD" + "" + "\uFFFD/#12\uFFFD" + "";
                    let y;
                    y = " Results " + "\uFFFD#15\uFFFD" + "" + "\uFFFD/#15\uFFFD" + "";
                    let U;
                    U = " Download ";
                    let oe;
                    oe = " Actions ";
                    let B;
                    B = "No data found";
                    let w;
                    w = "Loading...";
                    let pe;
                    pe = "Cancel";
                    let Y;
                    Y = "Delete";
                    let Q;
                    Q = "Column Layout Name is required.";
                    let Oe;
                    Oe = " Title already exists, please provide a unique title ";
                    let Pe;
                    Pe = "Back";
                    let Ae;
                    Ae = "Save Layout";
                    let Ne;
                    Ne = "Okay";
                    let Me;
                    return Me = "Okay", [
                        ["pTableRef", ""],
                        ["footer", ""],
                        ["menu", ""], e, l, u, T, f, M, D, b, v, $, y, U, oe, B, w, Q, Oe, Pe, Ae, Me, ["name", "reportLoadingSpinner", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        ["class", "container-fluid bg-white", 4, "ngIf"],
                        [1, "container-fluid", "bg-white"],
                        [1, "row"],
                        [1, "col-md-12", "mb-4"],
                        ["columnResizeMode", "expand", "responsiveLayout", "scroll", "scrollHeight", "65vh", "sortField", "generationDate", 1, "pur-datatable", 3, "resizableColumns", "autoLayout", "sortOrder", "value", "globalFilterFields"],
                        ["pTemplate", "header"],
                        ["pTemplate", "body"],
                        ["pTemplate", "emptymessage"],
                        [1, "note"],
                        [1, "delete-dailog"],
                        ["header", i, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "model-body", "text-left"],
                        ["id", "save-dailog", 1, "delete-dailog"],
                        ["header", t, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "model-body", "text-left", "modal-sub-heading"],
                        [1, "Layout-field"],
                        ["for", "title", 1, "control-label"],
                        ["pInputText", "", "type", "text", "autofocus", "", 1, "form-input", 3, "ngModelChange", "keypress", "paste", "ngModel", "ngModelOptions"],
                        ["class", "p-error block error-message", 4, "ngIf"],
                        [1, "pur-dialog", 3, "visibleChange", "header", "visible", "modal"],
                        [1, "delete-dailog", "restriction"],
                        ["header", n, 1, "pur-dialog", "delete-res-popup-header", 3, "visibleChange", "visible", "modal"],
                        ["pSortableColumn", "generationDate"],
                        ["field", "generationDate"],
                        ["pSortableColumn", "title"],
                        ["field", "title"],
                        ["pSortableColumn", "type"],
                        ["field", "type"],
                        ["pSortableColumn", "status"],
                        ["field", "status"],
                        ["pSortableColumn", "resultCount"],
                        ["field", "resultCount"],
                        ["class", "text-center", 4, "ngIf"],
                        ["class", "text-right", 4, "ngIf"],
                        [1, "text-center"],
                        [1, "text-right"],
                        [1, "ml-1", "vertical-align-middle"],
                        [4, "ngIf"],
                        ["class", "download-col text-center", 4, "ngIf"],
                        ["class", "action-col text-right", 4, "ngIf"],
                        [1, "download-col", "text-center"],
                        ["href", "javascript:void(0)", 3, "click", "ngClass"],
                        [1, "pi", "pi-download"],
                        [1, "action-col", "text-right"],
                        ["aria-haspopup", "true", "aria-label", "More options", "role", "menu", "tabindex", "0", 1, "pi", "pi-ellipsis-v", 3, "click", "keypress", "id"],
                        ["appendTo", "body", 3, "onShow", "onHide", "popup", "model"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", "label", pe, 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", "label", Y, 1, "pur-button", "pur-button--sm", 3, "click"],
                        [1, "p-error", "block", "error-message"],
                        [1, "pur-form", "pur-form--inline", "layout-footer"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "label", Ne, 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "autofocus", "", 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    i & 1 && (h(0, "p-toast"), r(1, "ngx-spinner", 23), d(2, 3), a(), C(3, Ja, 42, 21, "div", 24)), i & 2 && (s(), _("fullScreen", !0), s(2), _("ngIf", t.authService.isReportingViewReportAuthorised()));
                },
                dependencies: [ie, me, re, ue, fe, $e, Ie, Ve, rt, Gi, nt, Be, it, dt, at, Et, $i, Vi, ui, ki, be, Xe, ve, qe, De, Ee, Ze],
                styles: [".note[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs)}.action-col[_ngcontent-%COMP%]{text-align:right!important;position:relative;overflow:visible!important}.form-input[_ngcontent-%COMP%]{margin-bottom:.25rem}.download-col[_ngcontent-%COMP%]{text-align:center!important}.download-col[_ngcontent-%COMP%]   i.pi-download[_ngcontent-%COMP%]{font-weight:600!important;color:var(--pur-primary-blue)}.download-col[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.download-col[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%]   i.pi-download[_ngcontent-%COMP%]{color:var(--pur-web-grey)}.pi.pi-circle-fill[_ngcontent-%COMP%]{font-size:.75rem;margin-right:3px}.pur-datatable[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(1), .pur-datatable[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-last-child(3){text-align:right}.pur-datatable[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-last-child(3){text-align:right;padding-right:3rem}.Layout-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.Layout-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs);color:var(--pur-web-black);font-weight:700}.layout-footer[_ngcontent-%COMP%]{margin-top:1.5rem}.modal-sub-heading[_ngcontent-%COMP%]{font-size:.8rem}.Layout-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border-color:var(--pur-web-grey);border-radius:.25rem;font-size:var(--pur-font-desktop-xxs);outline:none}.error-message[_ngcontent-%COMP%]{font-size:.75rem;margin:0rem}.text-status-ongoing[_ngcontent-%COMP%], .text-status-in-review[_ngcontent-%COMP%], .text-status-in-distribution[_ngcontent-%COMP%]{color:var(--pur-web-yellow)}.text-status-completed[_ngcontent-%COMP%], .text-status-complete[_ngcontent-%COMP%]{color:var(--pur-web-green)}.text-status-failed[_ngcontent-%COMP%], .text-status-blacklisted[_ngcontent-%COMP%]{color:var(--pur-danger)}"]
            });
        }
    }
    return o;
})();
var el = () => ["title", "type", "generatingDate", "status", "prevGenerationDate"];

function tl(o, c) {
    o & 1 && (r(0, "tr")(1, "th", 31), Z(2, 7), h(3, "p-sortIcon", 32), q(), a(), r(4, "th", 33), Z(5, 8), h(6, "p-sortIcon", 34), q(), a(), r(7, "th", 35), Z(8, 9), h(9, "p-sortIcon", 36), q(), a(), r(10, "th", 37), Z(11, 10), h(12, "p-sortIcon", 38), q(), a(), r(13, "th", 39), Z(14, 11), h(15, "p-sortIcon", 40), q(), a(), r(16, "th"), d(17, 12), a()());
}

function il(o, c) {
    o & 1 && h(0, "i", 47);
}

function ol(o, c) {
    o & 1 && h(0, "i", 48);
}

function nl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "tr")(1, "td"), S(2), ae(3, "date"), a(), r(4, "td"), S(5), a(), r(6, "td"), S(7), a(), r(8, "td"), C(9, il, 1, 0, "i", 41)(10, ol, 1, 0, "i", 42), r(11, "span", 43), S(12), ae(13, "titlecase"), a()(), r(14, "td"), S(15), ae(16, "date"), a(), r(17, "td", 44)(18, "i", 45), R("click", function(t) {
            let n = m(e),
                l = n.$implicit,
                u = n.rowIndex,
                T = j(20),
                f = p(2);
            return f.activerowData = l, T.toggle(t), f.setSelectedRow(u, l), g(f.delSendReportId(l.scheduleId));
        })("keypress", function(t) {
            let n = m(e),
                l = n.$implicit,
                u = n.rowIndex,
                T = j(20),
                f = p(2);
            return f.activerowData = l, T.toggle(t), f.setSelectedRow(u, l), g(f.delSendReportId(l.scheduleId));
        }), a(), r(19, "p-menu", 46, 2), R("onShow", function() {
            m(e);
            let t = p(2);
            return g(t.onMenuShow());
        })("onHide", function() {
            m(e);
            let t = p(2);
            return g(t.onMenuHide());
        }), a()()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = c.rowIndex,
            t = p(2);
        s(2), N(e.prevGenerationDate ? Ei(3, 11, e.prevGenerationDate, "yyyy-MM-dd") : ""), s(3), N(e.title), s(2), N(t.reportingDashboardService.localizedReportType(e.reportType.reportName)), s(2), _("ngIf", (e.status == null ? null : e.status.toLowerCase()) === "active"), s(), _("ngIf", (e.status == null ? null : e.status.toLowerCase()) === "inactive"), s(2), de(" ", et(13, 14, t.reportingDashboardService.localizedReportStatus(e.status == null ? null : e.status.toLowerCase())), " "), s(3), N(e.generatingDate ? Ei(16, 16, e.generatingDate, "yyyy-MM-dd") : ""), s(3), _("id", "id" + e.scheduleId + i), X("aria-expanded", t.isMenuVisible ? "true" : "false"), s(), _("popup", !0)("model", t.actionItems);
    }
}

function rl(o, c) {
    o & 1 && (r(0, "tr")(1, "td"), d(2, 13), a()());
}

function al(o, c) {
    o & 1 && (r(0, "tr")(1, "td"), d(2, 14), a()());
}

function ll(o, c) {
    if (o & 1 && C(0, rl, 3, 0, "tr", 49)(1, al, 3, 0, "tr", 49), o & 2) {
        let e = p(2);
        _("ngIf", e.isShowEmptyMessage), s(), _("ngIf", e.isLoading);
    }
}

function sl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 50)(1, "button", 51), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayNoChangeModal = !1);
        }), d(2, 15), a()();
    }
}

function pl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 50)(1, "button", 52), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.isScheduledDeleteModal = !1);
        }), a(), r(2, "button", 53), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.confirmDelete());
        }), a()();
    }
}

function _l(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 18)(1, "div", 19)(2, "div", 20)(3, "p-table", 21, 0), C(5, tl, 18, 0, "ng-template", 22)(6, nl, 21, 19, "ng-template", 23)(7, ll, 2, 2, "ng-template", 24), a()(), r(8, "p", 25), S(9, "*"), r(10, "span"), d(11, 4), a()()(), r(12, "div", 26)(13, "p-dialog", 27), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayNoChangeModal, t) || (n.displayNoChangeModal = t), g(t);
        }), r(14, "p", 28), d(15, 5), a(), C(16, sl, 3, 0, "ng-template", null, 1, z), a()(), r(18, "div", 29)(19, "p-dialog", 30), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.isScheduledDeleteModal, t) || (n.isScheduledDeleteModal = t), g(t);
        }), r(20, "p", 28), d(21, 6), a(), C(22, pl, 3, 0, "ng-template", null, 1, z), a()()();
    }
    if (o & 2) {
        let e = p();
        s(3), _("resizableColumns", !0)("autoLayout", !0)("sortOrder", 1)("value", e.rowData)("globalFilterFields", K(9, el)), s(10), x("visible", e.displayNoChangeModal), _("modal", !0), s(6), x("visible", e.isScheduledDeleteModal), _("modal", !0);
    }
}
var Er = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f) {
            this.reportingDashboardService = e, this.messageService = i, this.apiService = t, this.user = n, this.router = l, this.spinner = u, this.renderer = T, this.authService = f, this.backUpRowData = [], this.reportingPeriod = [{
                retrictdelete: "You cannot delete or reschedule this report as it has already been queued. you can modify this schedule after 24 hours."
            }, {
                viewDetails: "View Details"
            }, {
                editSchedule: "Edit Schedule"
            }, {
                deleteSchedule: "Delete Schedule"
            }], this.errorMessages = {
                summary: " Something Went Wrong!",
                detail: " Please try again later. If issue persist again, please contact support team."
            }, this.displayNoChangeModal = !1, this.rowData = [], this.isShowEmptyMessage = !1, this.isLoading = !1, this.isScheduledDeleteModal = !1, this.isMenuVisible = !1, this.selectedRowIndex = -1;
        }
        ngOnInit() {
            this.multiSortMeta = [{
                field: "reportType",
                child: "reportName",
                order: 1
            }, {
                field: "title",
                child: "reportName",
                order: 1
            }];
            let e = 1;
            this.actionItems = [{
                label: this.reportingPeriod[1].viewDetails,
                command: () => {
                    this.viewDetails();
                }
            }, ...(this.authService.isReportingManageSchedulesAuthorised() ? [{
                label: this.reportingPeriod[2].editSchedule,
                command: () => {
                    this.editSchedule(e);
                }
            }] : []), ...(this.authService.isReportingManageSchedulesAuthorised() ? [{
                label: this.reportingPeriod[3].deleteSchedule,
                command: () => {
                    this.deleteReport(e);
                }
            }] : [])], this.reportingDashboardService.sendGeneratedReportsNo(this.rowData.length), this.getScheduledReportData(), this.filterSubscription = this.reportingDashboardService.getFilterValue().subscribe(i => {
                this.isShowEmptyMessage = !0, this.rowData = this.backUpRowData.filter(t => t.title.toLocaleLowerCase().includes(i.toLocaleLowerCase()) || (t.reportType ? .reportName ? ? "").toLocaleLowerCase().includes(i.toLocaleLowerCase()) || (t.generatingDate ? .toString() ? ? "").toLocaleLowerCase().includes(i.toLocaleLowerCase()) || t.status && t.status ? .toString().toLocaleLowerCase().includes(i.toLocaleLowerCase()) || t.prevGenerationDate && t.prevGenerationDate ? .toString().toLocaleLowerCase().includes(i.toLocaleLowerCase()));
            });
        }
        viewDetails() {
            if (this.activerowData.scheduleId) {
                let e = this.activerowData.scheduleId;
                this.router.navigate(["/reporting-dashboard/view-details/" + le.SCHEDULED, e]);
            }
        }
        sortUsersByCreationDate() {
            this.backUpRowData.sort((e, i) => {
                let t = e.prevGenerationDate ? new Date(e ? .prevGenerationDate) : null,
                    n = i.prevGenerationDate ? new Date(i ? .prevGenerationDate) : null;
                return t && n ? n.getTime() - t.getTime() : 0;
            });
        }
        deleteReport(e) {
            let i = this.activerowData.generatingDate,
                n = new Date().toISOString().slice(0, 10);
            i === n ? this.displayNoChangeModal = !0 : this.isScheduledDeleteModal = !0;
        }
        editSchedule(e) {
            let i = this.activerowData.generatingDate,
                n = new Date().toISOString().slice(0, 10);
            if (i === n) this.displayNoChangeModal = !0;
            else {
                let l = this.activerowData.scheduleId;
                this.activerowData.reportType.reportName === ne.EXCEPTION ? this.router.navigate(["/reporting-dashboard/exception-report", l, "shedule"]) : this.router.navigate(["/reporting-dashboard/onetime-report", l, "shedule"]);
            }
        }
        getScheduledReportData() {
            this.isLoading = !0, this.reportSubscription = this.apiService.sheduleReportGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                e && e.payload && (this.rowData = e.payload, this.backUpRowData = this.rowData, this.sortUsersByCreationDate(), this.sortData()), this.isLoading = !1, this.isShowEmptyMessage = !1, this.reportingDashboardService.sendGeneratedReportsNo(this.rowData.length);
            }, e => {
                this.isLoading = !1, this.isShowEmptyMessage = !0;
            });
        }
        onDeleteReport() {
            this.spinner.show("reportLoadingSpinner"), this.apiService.scheduledReportDelete({
                userId: this.user.userData.id,
                scheduleId: this.scheduleId
            }).subscribe(e => {
                this.rowData = this.removeItemById(this.scheduleId), this.backUpRowData = this.backUpRowData.filter(i => i.scheduleId !== this.scheduleId), this.spinner.hide("reportLoadingSpinner"), this.reportingDashboardService.sendGeneratedReportsNo(this.backUpRowData.length);
            }, e => {
                this.spinner.hide("reportLoadingSpinner");
                let i = this.errorMessages.summary,
                    t = this.errorMessages.detail;
                this.messageService.add({
                    severity: "error",
                    summary: i,
                    detail: t
                });
            });
        }
        confirmDelete() {
            this.onDeleteReport(), this.isScheduledDeleteModal = !1;
        }
        delSendReportId(e) {
            this.scheduleId = e;
        }
        ngOnDestroy() {
            this.filterSubscription.unsubscribe(), this.reportSubscription.unsubscribe();
        }
        removeItemById(e) {
            return this.rowData.filter(i => i.scheduleId !== e);
        }
        sortData() {
            this.rowData.sort((e, i) => {
                for (let t = 0; t < this.multiSortMeta.length; t++) {
                    let n = this.multiSortMeta[t],
                        l = null,
                        u = null,
                        T = 0;
                    if (n.field === "title" ? (l = e[n.field], u = i[n.field]) : (l = e[n.field][n.child], u = i[n.field][n.child]), l < u ? T = -1 : l > u && (T = 1), T !== 0) return T * n.order;
                }
                return 0;
            });
        }
        setSelectedRow(e, i) {
            this.selectedRowData = i, this.selectedRowIndex = e;
        }
        handleKeyboardEvent(e) {
            if (e.key === "Tab") {
                let i = document.querySelector(".p-dialog-header-close"),
                    t = document.querySelector(".p-dialog-title");
                i && i.setAttribute("tabindex", "0"), t && t.setAttribute("tabindex", "1");
            }
            if (e.key === "Enter" && setTimeout(() => {
                    document.querySelector(".ng-trigger-overlayAnimation ") && (document.querySelector(".ng-trigger.p-menu .p-menu-list li a").focus(), this.setFocus());
                }), e.key === "Escape") {
                let i = document.querySelector("#id" + this.selectedRowData.scheduleId + this.selectedRowIndex);
                i && (i.click(), i.focus());
            }
        }
        focusNextElement(e, i) {
            this.renderer.listen(e, "keydown", t => {
                t.key === "Tab" && !t.shiftKey && (t.preventDefault(), i.focus(), this.closeMenu());
            });
        }
        focusPreviousElement(e, i) {
            this.renderer.listen(e, "keydown", t => {
                t.key === "Tab" && t.shiftKey && (t.preventDefault(), i.focus(), this.closeMenu());
            });
        }
        closeMenu() {
            let e = document.querySelector("#id" + this.selectedRowData.scheduleId + this.selectedRowIndex);
            e && (e.click(), e.focus());
        }
        setFocus() {
            let e = document.querySelector("#id" + this.selectedRowData.scheduleId + this.selectedRowIndex),
                i = document.querySelectorAll(".ng-trigger.p-menu .p-menu-list li a");
            this.focusNextElement(i[2], e), this.focusPreviousElement(i[0], e);
        }
        focusToOriginElement() {
            let e = document.querySelector("#id" + this.selectedRowData.scheduleId + this.selectedRowIndex);
            e && e.focus();
        }
        onMenuShow() {
            this.isMenuVisible = !0;
        }
        onMenuHide() {
            this.isMenuVisible = !1;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(Se), A(ye), A(xe), A(se), A(ke), A(We), A(bt), A(je));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-scheduled"]
                ],
                hostBindings: function(i, t) {
                    i & 1 && R("keydown", function(l) {
                        return t.handleKeyboardEvent(l);
                    }, !1, vt);
                },
                features: [Te([ye])],
                decls: 4,
                vars: 2,
                consts: () => {
                    let e;
                    e = "Processing...";
                    let i;
                    i = "Cannot delete or reschedule";
                    let t;
                    t = "Are you sure, you want to unschedule this future report?";
                    let n;
                    n = "Failed reports are deleted after 30 days. Successful reports are deleted if they are unopened for 60 days.";
                    let l;
                    l = "You cannot delete or reschedule this report as it has already been queued, you can modify this schedule after 24 hours.";
                    let u;
                    u = "You will not be able to recover the sheduled report details once it has been deleted.";
                    let T;
                    T = " Date of Last Report " + "\uFFFD#3\uFFFD" + "" + "\uFFFD/#3\uFFFD" + "";
                    let f;
                    f = " Report Title " + "\uFFFD#6\uFFFD" + "" + "\uFFFD/#6\uFFFD" + "";
                    let M;
                    M = " Report Type " + "\uFFFD#9\uFFFD" + "" + "\uFFFD/#9\uFFFD" + "";
                    let D;
                    D = " Status of the Last Report " + "\uFFFD#12\uFFFD" + "" + "\uFFFD/#12\uFFFD" + "";
                    let b;
                    b = " Next Schedule Report Date " + "\uFFFD#15\uFFFD" + "" + "\uFFFD/#15\uFFFD" + "";
                    let v;
                    v = " Actions ";
                    let $;
                    $ = "No data found";
                    let y;
                    y = "Loading...";
                    let U;
                    U = "Okay";
                    let oe;
                    oe = "Cancel";
                    let B;
                    return B = "Delete", [
                        ["dt2", ""],
                        ["footer", ""],
                        ["menu", ""], e, n, l, u, T, f, M, D, b, v, $, y, U, ["name", "reportLoadingSpinner", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        ["class", "container-fluid bg-white sheduled-report", 4, "ngIf"],
                        [1, "container-fluid", "bg-white", "sheduled-report"],
                        [1, "row"],
                        [1, "col-md-12", "mb-4"],
                        ["columnResizeMode", "expand", "responsiveLayout", "scroll", "sortField", "generatingDate", 1, "pur-datatable", 3, "resizableColumns", "autoLayout", "sortOrder", "value", "globalFilterFields"],
                        ["pTemplate", "header"],
                        ["pTemplate", "body"],
                        ["pTemplate", "emptymessage"],
                        [1, "note"],
                        [1, "delete-dailog", "restriction"],
                        ["header", i, 1, "pur-dialog", "delete-res-popup-header", 3, "visibleChange", "visible", "modal"],
                        [1, "model-body", "text-left"],
                        [1, "delete-dailog"],
                        ["header", t, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        ["pSortableColumn", "prevGenerationDate"],
                        ["field", "prevGenerationDate"],
                        ["pSortableColumn", "title"],
                        ["field", "title"],
                        ["pSortableColumn", "reportType.reportName"],
                        ["field", "reportType.reportName"],
                        ["pSortableColumn", "status"],
                        ["field", "status"],
                        ["pSortableColumn", "generatingDate"],
                        ["field", "generatingDate"],
                        ["class", "pi pi-circle-fill text-success", 4, "ngIf"],
                        ["class", "pi pi-circle-fill text-danger", 4, "ngIf"],
                        [1, "ml-1", "vertical-align-middle"],
                        [1, "action-col"],
                        ["aria-haspopup", "true", "aria-expanded", "false", "aria-label", "More options", "role", "menu", "tabindex", "0", 1, "pi", "pi-ellipsis-v", 3, "click", "keypress", "id"],
                        ["appendTo", "body", 3, "onShow", "onHide", "popup", "model"],
                        [1, "pi", "pi-circle-fill", "text-success"],
                        [1, "pi", "pi-circle-fill", "text-danger"],
                        [4, "ngIf"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "label", oe, 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", "label", B, 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    i & 1 && (h(0, "p-toast"), r(1, "ngx-spinner", 16), d(2, 3), a(), C(3, _l, 24, 10, "div", 17)), i & 2 && (s(), _("fullScreen", !0), s(2), _("ngIf", t.authService.isReportingViewSchedulesAuthorised()));
                },
                dependencies: [ie, re, kn, ue, rt, Gi, nt, Be, it, dt, at, Et, $i, Vi, ui, ki, be, Xe, ve, qe, De, Ee],
                styles: [".note[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs)}.action-col[_ngcontent-%COMP%]{text-align:right!important}.pi.pi-circle-fill[_ngcontent-%COMP%]{font-size:.75rem;margin-right:3px}.restriction[_ngcontent-%COMP%]   .delete-res-popup-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.restriction[_ngcontent-%COMP%]   .delete-res-popup-header[_ngcontent-%COMP%]   .p-dialog-header-actions[_ngcontent-%COMP%]{justify-content:flex-end;margin-right:-.5rem}"]
            });
        }
    }
    return o;
})();

function Rr(o, c) {
    let e = [],
        i = o;
    for (; i <= c;) e.push(new Date(i)), i.setDate(i.getDate() + 1);
    return e;
}

function Ue(o) {
    var c = o.getMonth() + 1,
        e = o.getDate(),
        i = o.getFullYear();
    return [(c > 9 ? "" : "0") + c, (e > 9 ? "" : "0") + e, i].join("/");
}

function Cr(o) {
    let e = Date.now() - 864e5;
    return o < e;
}
var cl = ["inputtext"],
    ul = ["container"],
    dl = (o, c, e, i) => ({
        "p-inputchips p-component p-input-wrapper": !0,
        "p-disabled": o,
        "p-focus": c,
        "p-inputwrapper-filled": e,
        "p-inputwrapper-focus": i
    }),
    ml = o => ({
        "p-chips-clearable": o
    }),
    gl = o => ({
        "p-inputchips-chip-item": !0,
        "p-focus": o
    }),
    hr = o => ({
        $implicit: o
    }),
    El = o => ({
        removeItem: o
    });

function Rl(o, c) {
    o & 1 && lt(0);
}

function Cl(o, c) {
    o & 1 && lt(0);
}

function Tl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "TimesCircleIcon", 16), R("click", function(t) {
            m(e);
            let n = p(4).index,
                l = p();
            return g(l.removeItem(t, n));
        }), a();
    }
    o & 2 && (_("styleClass", "p-chips-token-icon"), X("data-pc-section", "removeTokenIcon")("aria-hidden", !0));
}

function hl(o, c) {}

function fl(o, c) {
    o & 1 && C(0, hl, 0, 0, "ng-template");
}

function Sl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "span", 17), R("click", function(t) {
            m(e);
            let n = p(4).index,
                l = p();
            return g(l.removeItem(t, n));
        }), C(1, fl, 1, 0, null, 11), a();
    }
    if (o & 2) {
        let e = p(5);
        X("data-pc-section", "removeTokenIcon")("aria-hidden", !0), s(), _("ngTemplateOutlet", e.removeTokenIconTemplate)("ngTemplateOutletContext", ee(4, El, e.removeItem.bind(e)));
    }
}

function Ol(o, c) {
    if (o & 1 && (G(0), C(1, Tl, 1, 3, "TimesCircleIcon", 14)(2, Sl, 2, 6, "span", 15), k()), o & 2) {
        let e = p(4);
        s(), _("ngIf", !e.removeTokenIconTemplate), s(), _("ngIf", e.removeTokenIconTemplate);
    }
}

function Pl(o, c) {
    if (o & 1 && C(0, Ol, 3, 2, "ng-container", 9), o & 2) {
        let e = p(3);
        _("ngIf", !e.disabled);
    }
}

function Al(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-chip", 13), R("onRemove", function(t) {
            m(e);
            let n = p().index,
                l = p();
            return g(l.removeItem(t, n));
        }), C(1, Cl, 1, 0, "ng-container", 11)(2, Pl, 1, 1, "ng-template", null, 3, z), a();
    }
    if (o & 2) {
        let e = p().$implicit,
            i = p();
        _("label", i.field ? i.resolveFieldData(e, i.field) : e)("removeIcon", i.chipIcon), s(), _("ngTemplateOutlet", i.itemTemplate)("ngTemplateOutletContext", ee(4, hr, e));
    }
}

function Nl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "li", 10, 2), R("click", function(t) {
            let n = m(e).$implicit,
                l = p();
            return g(l.onItemClick(t, n));
        })("contextmenu", function(t) {
            let n = m(e).$implicit,
                l = p();
            return g(l.onItemContextMenu(t, n));
        }), C(2, Rl, 1, 0, "ng-container", 11)(3, Al, 4, 6, "p-chip", 12), a();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p();
        _("ngClass", ee(11, gl, t.focusedIndex === i)), X("id", t.id + "_chips_item_" + i)("ariaLabel", e)("aria-selected", !0)("aria-setsize", t.value.length)("aria-posinset", i + 1)("data-p-focused", t.focusedIndex === i)("data-pc-section", "token"), s(2), _("ngTemplateOutlet", t.itemTemplate)("ngTemplateOutletContext", ee(13, hr, e)), s(), _("ngIf", !t.itemTemplate);
    }
}

function Ml(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "TimesIcon", 16), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.clear());
        }), a();
    }
    o & 2 && _("styleClass", "p-chips-clear-icon");
}

function Il(o, c) {}

function yl(o, c) {
    o & 1 && C(0, Il, 0, 0, "ng-template");
}

function Dl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "span", 19), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.clear());
        }), C(1, yl, 1, 0, null, 20), a();
    }
    if (o & 2) {
        let e = p(2);
        s(), _("ngTemplateOutlet", e.clearIconTemplate);
    }
}

function vl(o, c) {
    if (o & 1 && (r(0, "li"), C(1, Ml, 1, 1, "TimesIcon", 14)(2, Dl, 2, 1, "span", 18), a()), o & 2) {
        let e = p();
        s(), _("ngIf", !e.clearIconTemplate), s(), _("ngIf", e.clearIconTemplate);
    }
}
var bl = ({
        dt: o
    }) => `
.p-inputchips {
    display: inline-flex;
}

.p-inputchips-input {
    margin: 0;
    list-style-type: none;
    cursor: text;
    overflow: hidden;
    display: flex;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    padding: calc(${o("inputchips.padding.y")} / 2) ${o("inputchips.padding.x")};
    gap: calc(${o("inputchips.padding.y")} / 2);
    color: ${o("inputchips.color")};
    background: ${o("inputchips.background")};
    border: 1px solid ${o("inputchips.border.color")};
    border-radius: ${o("inputchips.border.radius")};
    width: 100%;
    transition: background ${o("inputchips.transition.duration")}, color ${o("inputchips.transition.duration")}, border-color ${o("inputchips.transition.duration")}, outline-color ${o("inputchips.transition.duration")}, box-shadow ${o("inputchips.transition.duration")};
    outline-color: transparent;
    box-shadow: ${o("inputchips.shadow")};
}

.p-inputchips:not(.p-disabled):hover .p-inputchips-input {
    border-color: ${o("inputchips.hover.border.color")};
}

.p-inputchips:not(.p-disabled).p-focus .p-inputchips-input {
    border-color: ${o("inputchips.focus.border.color")};
    box-shadow: ${o("inputchips.focus.ring.shadow")};
    outline: ${o("inputchips.focus.ring.width")} ${o("inputchips.focus.ring.style")} ${o("inputchips.focus.ring.color")};
    outline-offset: ${o("inputchips.focus.ring.offset")};
}

.p-inputchips.p-invalid .p-inputchips-input {
    border-color: ${o("inputchips.invalid.border.color")};
}

.p-variant-filled.p-inputchips-input {
    background: ${o("inputchips.filled.background")};
}

.p-inputchips:not(.p-disabled).p-focus .p-variant-filled.p-inputchips-input  {
    background: ${o("inputchips.filled.focus.background")};
}

.p-inputchips.p-disabled .p-inputchips-input {
    opacity: 1;
    background: ${o("inputchips.disabled.background")};
    color: ${o("inputchips.disabled.color")};
}

.p-inputchips-chip.p-chip {
    padding-top: calc(${o("inputchips.padding.y")} / 2);
    padding-bottom: calc(${o("inputchips.padding.y")} / 2);
    border-radius: ${o("inputchips.chip.border.radius")};
    transition: background ${o("inputchips.transition.duration")}, color ${o("inputchips.transition.duration")};
}

.p-inputchips-chip-item.p-focus .p-inputchips-chip {
    background: ${o("inputchips.chip.focus.background")};
    color: ${o("inputchips.chip.focus.color")};
}

.p-inputchips-input:has(.p-inputchips-chip) {
    padding-left: calc(${o("inputchips.padding.y")} / 2);
    padding-right: calc(${o("inputchips.padding.y")} / 2);
}

.p-inputchips-input-item {
    flex: 1 1 auto;
    display: inline-flex;
    padding-top: calc(${o("inputchips.padding.y")} / 2);
    padding-bottom: calc(${o("inputchips.padding.y")} / 2);
}

.p-inputchips-input-item input {
    border: 0 none;
    outline: 0 none;
    background: transparent;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    font-family: inherit;
    font-feature-settings: inherit;
    font-size: 1rem;
    color: inherit;
}

.p-inputchips-input-item input::placeholder {
    color: ${o("inputchips.placeholder.color")};
}

/* For PrimeNG */

.p-chips-clear-icon {
    position: absolute;
    top: 50%;
    margin-top: -0.5rem;
    cursor: pointer;
    right: ${o("inputchips.padding.x")};
}
`,
    xl = {
        root: ({
            instance: o,
            props: c
        }) => ["p-inputchips p-component p-inputwrapper", {
            "p-disabled": c.disabled,
            "p-invalid": c.invalid,
            "p-focus": o.focused,
            "p-inputwrapper-filled": c.modelValue && c.modelValue.length || o.inputValue && o.inputValue.length,
            "p-inputwrapper-focus": o.focused
        }],
        input: ({
            props: o,
            instance: c
        }) => ["p-inputchips-input", {
            "p-variant-filled": o.variant ? o.variant === "filled" : c.config.inputStyle === "filled" || c.config.inputVariant === "filled"
        }],
        chipItem: ({
            state: o,
            index: c
        }) => ["p-inputchips-chip-item", {
            "p-focus": o.focusedIndex === c
        }],
        pcChip: "p-inputchips-chip",
        chipIcon: "p-inputchips-chip-icon",
        inputItem: "p-inputchips-input-item"
    },
    Tr = (() => {
        class o extends pi {
            name = "inputchips";
            theme = bl;
            classes = xl;
            static ɵfac = (() => {
                let e;
                return function(t) {
                    return (e || (e = At(o)))(t || o);
                };
            })();
            static ɵprov = pt({
                token: o,
                factory: o.ɵfac
            });
        }
        return o;
    })();
var Ll = {
        provide: zn,
        useExisting: In(() => _n),
        multi: !0
    },
    _n = (() => {
        class o extends _i {
            el;
            cd;
            config;
            style;
            styleClass;
            disabled;
            field;
            placeholder;
            max;
            maxLength;
            ariaLabel;
            ariaLabelledBy;
            tabindex;
            inputId;
            allowDuplicate = !0;
            caseSensitiveDuplication = !0;
            inputStyle;
            inputStyleClass;
            chipIcon;
            addOnTab;
            addOnBlur;
            separator;
            showClear = !1;
            autofocus;
            variant = "outlined";
            onAdd = new J();
            onRemove = new J();
            onFocus = new J();
            onBlur = new J();
            onChipClick = new J();
            onChipContextMenu = new J();
            onClear = new J();
            inputViewChild;
            containerViewChild;
            templates;
            itemTemplate;
            removeTokenIconTemplate;
            clearIconTemplate;
            value;
            onModelChange = () => {};
            onModelTouched = () => {};
            valueChanged;
            id = Qn();
            focused;
            focusedIndex;
            filled;
            _componentStyle = Dt(Tr);
            get focusedOptionId() {
                return this.focusedIndex !== null ? `${this.id}_chips_item_${this.focusedIndex}` : null;
            }
            get isMaxedOut() {
                return this.max && this.value && this.max === this.value.length;
            }
            constructor(e, i, t) {
                super(), this.el = e, this.cd = i, this.config = t, console.log("Deprecated since v18. Use AutoComplete component instead with its typeahead property.");
            }
            ngAfterContentInit() {
                this.templates.forEach(e => {
                    switch (e.getType()) {
                        case "item":
                            this.itemTemplate = e.template;
                            break;
                        case "removetokenicon":
                            this.removeTokenIconTemplate = e.template;
                            break;
                        case "clearicon":
                            this.clearIconTemplate = e.template;
                            break;
                        default:
                            this.itemTemplate = e.template;
                            break;
                    }
                }), this.updateFilledState();
            }
            onWrapperClick() {
                this.inputViewChild ? .nativeElement.focus();
            }
            onContainerFocus() {
                this.focused = !0;
            }
            onContainerBlur() {
                this.focusedIndex = -1, this.focused = !1;
            }
            onContainerKeyDown(e) {
                switch (e.code) {
                    case "ArrowLeft":
                        this.onArrowLeftKeyOn();
                        break;
                    case "ArrowRight":
                        this.onArrowRightKeyOn();
                        break;
                    case "Backspace":
                        this.onBackspaceKeyOn(e);
                        break;
                    case "Space":
                        this.focusedIndex !== null && this.value && this.value.length > 0 && this.onItemClick(e, this.value[this.focusedIndex]);
                        break;
                    default:
                        break;
                }
            }
            onArrowLeftKeyOn() {
                this.inputViewChild.nativeElement.value.length === 0 && this.value && this.value.length > 0 && (this.focusedIndex = this.focusedIndex === null ? this.value.length - 1 : this.focusedIndex - 1, this.focusedIndex < 0 && (this.focusedIndex = 0));
            }
            onArrowRightKeyOn() {
                this.inputViewChild.nativeElement.value.length === 0 && this.value && this.value.length > 0 && (this.focusedIndex === this.value.length - 1 ? (this.focusedIndex = null, this.inputViewChild ? .nativeElement.focus()) : this.focusedIndex++);
            }
            onBackspaceKeyOn(e) {
                this.focusedIndex !== null && this.removeItem(e, this.focusedIndex);
            }
            onInput() {
                this.updateFilledState(), this.focusedIndex = null;
            }
            onPaste(e) {
                this.disabled || (this.separator && ((e.clipboardData || this.document.defaultView.clipboardData).getData("Text").split(this.separator).forEach(t => {
                    this.addItem(e, t, !0);
                }), this.inputViewChild.nativeElement.value = ""), this.updateFilledState());
            }
            updateFilledState() {
                !this.value || this.value.length === 0 ? this.filled = this.inputViewChild && this.inputViewChild.nativeElement && this.inputViewChild.nativeElement.value != "" : this.filled = !0;
            }
            onItemClick(e, i) {
                this.onChipClick.emit({
                    originalEvent: e,
                    value: i
                });
            }
            onItemContextMenu(e, i) {
                this.onChipContextMenu.emit({
                    originalEvent: e,
                    value: i
                });
            }
            writeValue(e) {
                this.value = e, this.updateMaxedOut(), this.updateFilledState(), this.cd.markForCheck();
            }
            registerOnChange(e) {
                this.onModelChange = e;
            }
            registerOnTouched(e) {
                this.onModelTouched = e;
            }
            setDisabledState(e) {
                this.disabled = e, this.cd.markForCheck();
            }
            resolveFieldData(e, i) {
                if (e && i) {
                    if (i.indexOf(".") == -1) return e[i]; {
                        let l = i.split("."),
                            u = e;
                        for (var t = 0, n = l.length; t < n; ++t) u = u[l[t]];
                        return u;
                    }
                } else return null;
            }
            onInputFocus(e) {
                this.focused = !0, this.focusedIndex = null, this.onFocus.emit(e);
            }
            onInputBlur(e) {
                this.focused = !1, this.focusedIndex = null, this.addOnBlur && this.inputViewChild.nativeElement.value && this.addItem(e, this.inputViewChild.nativeElement.value, !1), this.onModelTouched(), this.onBlur.emit(e);
            }
            removeItem(e, i) {
                if (this.disabled) return;
                let t = this.value[i];
                this.value = this.value.filter((n, l) => l != i), this.focusedIndex = null, this.inputViewChild.nativeElement.focus(), this.onModelChange(this.value), this.onRemove.emit({
                    originalEvent: e,
                    value: t
                }), this.updateFilledState(), this.updateMaxedOut();
            }
            addItem(e, i, t) {
                if (this.value = this.value || [], i && i.trim().length) {
                    let n = this.caseSensitiveDuplication ? this.value.includes(i) : this.value.some(l => l.toLowerCase() === i.toLowerCase());
                    (this.allowDuplicate || !n) && !this.isMaxedOut && (this.value = [...this.value, i], this.onModelChange(this.value), this.onAdd.emit({
                        originalEvent: e,
                        value: i
                    }));
                }
                this.updateFilledState(), this.updateMaxedOut(), this.inputViewChild.nativeElement.value = "", t && e.preventDefault();
            }
            clear() {
                this.value = null, this.updateFilledState(), this.onModelChange(this.value), this.updateMaxedOut(), this.onClear.emit();
            }
            onKeyDown(e) {
                let i = e.target.value;
                switch (e.code) {
                    case "Backspace":
                        i.length === 0 && this.value && this.value.length > 0 && (this.focusedIndex !== null ? this.removeItem(e, this.focusedIndex) : this.removeItem(e, this.value.length - 1));
                        break;
                    case "Enter":
                    case "NumpadEnter":
                        i && i.trim().length && !this.isMaxedOut && this.addItem(e, i, !0);
                        break;
                    case "Tab":
                        this.addOnTab && i && i.trim().length && !this.isMaxedOut && (this.addItem(e, i, !0), e.preventDefault());
                        break;
                    case "ArrowLeft":
                        i.length === 0 && this.value && this.value.length > 0 && this.containerViewChild ? .nativeElement.focus();
                        break;
                    case "ArrowRight":
                        e.stopPropagation();
                        break;
                    default:
                        this.separator && (this.separator === e.key || e.key.match(this.separator)) && this.addItem(e, i, !0);
                        break;
                }
            }
            updateMaxedOut() {
                this.inputViewChild && this.inputViewChild.nativeElement && (this.isMaxedOut ? (this.inputViewChild.nativeElement.blur(), this.inputViewChild.nativeElement.disabled = !0) : (this.disabled && this.inputViewChild.nativeElement.blur(), this.inputViewChild.nativeElement.disabled = this.disabled || !1));
            }
            static ɵfac = function(i) {
                return new(i || o)(A(Pi), A(Ni), A(Kn));
            };
            static ɵcmp = te({
                type: o,
                selectors: [
                    ["p-chips"]
                ],
                contentQueries: function(i, t, n) {
                    if (i & 1 && Ft(n, Be, 4), i & 2) {
                        let l;
                        we(l = Ge()) && (t.templates = l);
                    }
                },
                viewQuery: function(i, t) {
                    if (i & 1 && (Ht(cl, 5), Ht(ul, 5)), i & 2) {
                        let n;
                        we(n = Ge()) && (t.inputViewChild = n.first), we(n = Ge()) && (t.containerViewChild = n.first);
                    }
                },
                hostAttrs: [1, "p-element", "p-inputwrapper"],
                hostVars: 6,
                hostBindings: function(i, t) {
                    i & 2 && vn("p-inputwrapper-filled", t.filled)("p-inputwrapper-focus", t.focused)("p-chips-clearable", t.showClear);
                },
                inputs: {
                    style: "style",
                    styleClass: "styleClass",
                    disabled: [2, "disabled", "disabled", ze],
                    field: "field",
                    placeholder: "placeholder",
                    max: [2, "max", "max", Ri],
                    maxLength: "maxLength",
                    ariaLabel: "ariaLabel",
                    ariaLabelledBy: "ariaLabelledBy",
                    tabindex: [2, "tabindex", "tabindex", Ri],
                    inputId: "inputId",
                    allowDuplicate: [2, "allowDuplicate", "allowDuplicate", ze],
                    caseSensitiveDuplication: [2, "caseSensitiveDuplication", "caseSensitiveDuplication", ze],
                    inputStyle: "inputStyle",
                    inputStyleClass: "inputStyleClass",
                    chipIcon: "chipIcon",
                    addOnTab: [2, "addOnTab", "addOnTab", ze],
                    addOnBlur: [2, "addOnBlur", "addOnBlur", ze],
                    separator: "separator",
                    showClear: [2, "showClear", "showClear", ze],
                    autofocus: [2, "autofocus", "autofocus", ze],
                    variant: "variant"
                },
                outputs: {
                    onAdd: "onAdd",
                    onRemove: "onRemove",
                    onFocus: "onFocus",
                    onBlur: "onBlur",
                    onChipClick: "onChipClick",
                    onChipContextMenu: "onChipContextMenu",
                    onClear: "onClear"
                },
                features: [Te([Ll, Tr]), ti],
                decls: 8,
                vars: 31,
                consts: [
                    ["container", ""],
                    ["inputtext", ""],
                    ["token", ""],
                    ["removeicon", ""],
                    [3, "ngClass", "ngStyle"],
                    ["tabindex", "-1", "role", "listbox", 1, "p-inputchips-input", 3, "click", "focus", "blur", "keydown"],
                    ["role", "option", 3, "ngClass", "click", "contextmenu", 4, "ngFor", "ngForOf"],
                    ["role", "option", 1, "p-inputchips-input-item", 3, "ngClass"],
                    ["type", "text", "pAutoFocus", "", 1, "test", 3, "keydown", "input", "paste", "focus", "blur", "disabled", "ngStyle", "autofocus"],
                    [4, "ngIf"],
                    ["role", "option", 3, "click", "contextmenu", "ngClass"],
                    [4, "ngTemplateOutlet", "ngTemplateOutletContext"],
                    ["class", "p-inputchips-chip", "removable", "", 3, "label", "removeIcon", "onRemove", 4, "ngIf"],
                    ["removable", "", 1, "p-inputchips-chip", 3, "onRemove", "label", "removeIcon"],
                    [3, "styleClass", "click", 4, "ngIf"],
                    ["class", "p-chips-token-icon", 3, "click", 4, "ngIf"],
                    [3, "click", "styleClass"],
                    [1, "p-chips-token-icon", 3, "click"],
                    ["class", "p-chips-clear-icon", 3, "click", 4, "ngIf"],
                    [1, "p-chips-clear-icon", 3, "click"],
                    [4, "ngTemplateOutlet"]
                ],
                template: function(i, t) {
                    if (i & 1) {
                        let n = P();
                        r(0, "div", 4)(1, "ul", 5, 0), R("click", function() {
                            return m(n), g(t.onWrapperClick());
                        })("focus", function() {
                            return m(n), g(t.onContainerFocus());
                        })("blur", function() {
                            return m(n), g(t.onContainerBlur());
                        })("keydown", function(u) {
                            return m(n), g(t.onContainerKeyDown(u));
                        }), C(3, Nl, 4, 15, "li", 6), r(4, "li", 7)(5, "input", 8, 1), R("keydown", function(u) {
                            return m(n), g(t.onKeyDown(u));
                        })("input", function() {
                            return m(n), g(t.onInput());
                        })("paste", function(u) {
                            return m(n), g(t.onPaste(u));
                        })("focus", function(u) {
                            return m(n), g(t.onInputFocus(u));
                        })("blur", function(u) {
                            return m(n), g(t.onInputBlur(u));
                        }), a()(), C(7, vl, 3, 2, "li", 9), a()();
                    }
                    i & 2 && (ut(t.styleClass), _("ngClass", Gn(24, dl, t.disabled, t.focused, t.value && t.value.length || (t.inputViewChild == null ? null : t.inputViewChild.nativeElement.value) && (t.inputViewChild == null ? null : t.inputViewChild.nativeElement.value.length), t.focused))("ngStyle", t.style), X("data-pc-name", "chips")("data-pc-section", "root"), s(), X("aria-labelledby", t.ariaLabelledBy)("aria-label", t.ariaLabel)("aria-activedescendant", t.focused ? t.focusedOptionId : void 0)("aria-orientation", "horizontal")("data-pc-section", "container"), s(2), _("ngForOf", t.value), s(), _("ngClass", ee(29, ml, t.showClear && !t.disabled)), X("data-pc-section", "inputToken"), s(), ut(t.inputStyleClass), _("disabled", t.disabled || t.isMaxedOut)("ngStyle", t.inputStyle)("autofocus", t.autofocus), X("id", t.inputId)("maxlength", t.maxLength)("placeholder", t.value && t.value.length ? null : t.placeholder)("tabindex", t.tabindex), s(2), _("ngIf", t.value != null && t.filled && !t.disabled && t.showClear));
                },
                dependencies: [ie, me, he, re, wt, Mi, Ee, Ke, qn, Zn, jn, Ho, lr, ar],
                encapsulation: 2,
                changeDetection: 0
            });
        }
        return o;
    })(),
    cn = (() => {
        class o {
            static ɵfac = function(i) {
                return new(i || o)();
            };
            static ɵmod = ct({
                type: o
            });
            static ɵinj = _t({
                imports: [_n, Ke, Ke]
            });
        }
        return o;
    })();
var fr = () => ({
        standalone: !0
    }),
    wl = () => ["title", "type", "creationDate", "outputFormat"];

function Gl(o, c) {
    o & 1 && (r(0, "tr")(1, "th", 60), Z(2, 12), h(3, "p-sortIcon", 61), q(), a(), r(4, "th", 62), Z(5, 13), h(6, "p-sortIcon", 63), q(), a(), r(7, "th", 64), Z(8, 14), h(9, "p-sortIcon", 65), q(), a(), r(10, "th", 66), Z(11, 15), h(12, "p-sortIcon", 67), q(), a(), r(13, "th", 68), d(14, 16), a()());
}

function kl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "tr")(1, "td"), S(2), ae(3, "date"), a(), r(4, "td"), S(5), a(), r(6, "td"), S(7), a(), r(8, "td"), S(9), ae(10, "uppercase"), a(), r(11, "td", 69)(12, "i", 70), R("click", function(t) {
            let n = m(e),
                l = n.$implicit,
                u = n.rowIndex,
                T = j(14),
                f = p(2);
            return f.activerowData = l, T.toggle(t), f.setSelectedRow(u, l), g(f.delSendReportId(l.userId, l.templateId));
        })("keypress", function(t) {
            let n = m(e),
                l = n.$implicit,
                u = n.rowIndex,
                T = j(14),
                f = p(2);
            return f.activerowData = l, T.toggle(t), f.setSelectedRow(u, l), g(f.delSendReportId(l.userId, l.templateId));
        }), a(), r(13, "p-menu", 71, 2), R("onShow", function() {
            m(e);
            let t = p(2);
            return g(t.onMenuShow());
        })("onHide", function() {
            m(e);
            let t = p(2);
            return g(t.onMenuHide());
        }), a()()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = c.rowIndex,
            t = p(2);
        s(2), N(e.creationDate ? Ei(3, 8, e.creationDate, "yyyy-MM-dd") : ""), s(3), N(e.title), s(2), N(t.reportingDashboardService.localizedReportType(e.type)), s(2), N(et(10, 11, e.outputFormat)), s(3), _("id", "id" + e.templateId + i), X("aria-expanded", t.isMenuVisible ? "true" : "false"), s(), _("popup", !0)("model", t.actionItems);
    }
}

function $l(o, c) {
    o & 1 && (r(0, "tr")(1, "td"), d(2, 17), a()());
}

function Vl(o, c) {
    o & 1 && (r(0, "tr")(1, "td"), d(2, 18), a()());
}

function Bl(o, c) {
    if (o & 1 && C(0, $l, 3, 0, "tr", 72)(1, Vl, 3, 0, "tr", 72), o & 2) {
        let e = p(2);
        _("ngIf", e.isShowEmptyMessage), s(), _("ngIf", e.isLoading);
    }
}

function Xl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 73)(1, "button", 74), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displaySavedColumnNoChangeModal = !1);
        }), d(2, 19), a()();
    }
}

function Ul(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 73)(1, "button", 75), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.isSavedTemplateDeleteModal = !1);
        }), a(), r(2, "button", 76), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.confirmDelete(t.user.userData.id, t.templateId));
        }), a()();
    }
}

function Hl(o, c) {
    o & 1 && (r(0, "p", 77), d(1, 20), a());
}

function zl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 78)(1, "button", 79), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayTemplateModal = !1);
        }), d(2, 21), a(), r(3, "button", 80), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.sendSavedColumnLayout());
        }), d(4, 22), a()();
    }
    if (o & 2) {
        let e = p(2);
        s(3), _("disabled", e.listUserEmails && e.listUserEmails.length === 0);
    }
}

function Yl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 45)(1, "div", 46)(2, "div", 47)(3, "p-table", 48, 1), C(5, Gl, 15, 0, "ng-template", 49)(6, kl, 15, 13, "ng-template", 50)(7, Bl, 2, 2, "ng-template", 51), a()(), r(8, "p", 52), S(9, "*"), r(10, "span"), d(11, 7), a()()(), r(12, "div", 34)(13, "p-dialog", 53), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displaySavedColumnNoChangeModal, t) || (n.displaySavedColumnNoChangeModal = t), g(t);
        }), r(14, "p", 33), d(15, 8), a(), C(16, Xl, 3, 0, "ng-template", null, 0, z), a()(), r(18, "div", 31)(19, "p-dialog", 54), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.isSavedTemplateDeleteModal, t) || (n.isSavedTemplateDeleteModal = t), g(t);
        }), r(20, "p", 33), d(21, 9), a(), C(22, Ul, 3, 0, "ng-template", null, 0, z), a()(), r(24, "div", 55)(25, "p-dialog", 56), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayTemplateModal, t) || (n.displayTemplateModal = t), g(t);
        }), r(26, "p", 40), d(27, 10), a(), r(28, "label", 57), d(29, 11), a(), r(30, "div", 58)(31, "p-chips", 59), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.listUserEmails, t) || (n.listUserEmails = t), g(t);
        }), R("onAdd", function(t) {
            m(e);
            let n = p();
            return g(n.addChips(t));
        })("onRemove", function() {
            m(e);
            let t = p();
            return g(t.removeChips());
        }), a(), C(32, Hl, 2, 0, "p", 44), a(), C(33, zl, 5, 1, "ng-template", null, 0, z), a()()();
    }
    if (o & 2) {
        let e = p();
        s(3), _("resizableColumns", !0)("autoLayout", !0)("sortOrder", -1)("value", e.rowData)("globalFilterFields", K(14, wl)), s(10), x("visible", e.displaySavedColumnNoChangeModal), _("modal", !0), s(6), x("visible", e.isSavedTemplateDeleteModal), _("modal", !0), s(6), x("visible", e.displayTemplateModal), _("modal", !0), s(6), x("ngModel", e.listUserEmails), _("ngModelOptions", K(15, fr)), s(), _("ngIf", e.showEmailErrorMessage);
    }
}

function Wl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 73)(1, "button", 81), R("click", function() {
            m(e);
            let t = p();
            return g(t.displayCapacityModal = !1);
        }), a()();
    }
}

function Kl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 73)(1, "button", 74), R("click", function() {
            m(e);
            let t = p();
            return g(t.displayTemplateInUseModal = !1);
        }), d(2, 23), a()();
    }
}

function Zl(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 73)(1, "button", 74), R("click", function() {
            m(e);
            let t = p();
            return g(t.showSendMessageModal = !1);
        }), d(2, 24), a()();
    }
}

function ql(o, c) {
    o & 1 && (r(0, "p", 77), d(1, 25), a());
}

function jl(o, c) {
    o & 1 && (r(0, "p", 77), d(1, 26), a());
}

function Ql(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 78)(1, "button", 79), R("click", function() {
            m(e);
            let t = p();
            return g(t.displaySharedTemplateModal = !1);
        }), d(2, 27), a(), r(3, "button", 74), R("click", function() {
            m(e);
            let t = p();
            return g(t.saveSharedColumnLayout());
        }), d(4, 28), a()();
    }
}
var Sn = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f, M, D, b) {
            this.router = e, this.activatedRoute = i, this.reportingDashboardService = t, this.apiService = n, this.spinner = l, this.user = u, this.messageService = T, this.datePipe = f, this.renderer = M, this.authService = D, this.locale = b, this.displaySavedColumnNoChangeModal = !1, this.isShowEmptyMessage = !1, this.isLoading = !1, this.isSavedTemplateDeleteModal = !1, this.displayTemplateModal = !1, this.showSendMessageModal = !1, this.displaySharedTemplateModal = !1, this.showErrorMessage = !1, this.showEmailErrorMessage = !1, this.duplicateReportTitleError = !1, this.titleInvalidCharacters = !1, this.displayTemplateInUseModal = !1, this.reportingPeriod = [{
                ViewEditDetails: "View/Edit Details"
            }, {
                SendColumnLayout: "Send Column Layout"
            }, {
                CreateaReport: "Create a Report"
            }, {
                DeleteColumnLayout: "Delete Column Layout"
            }], this.totalReports = 0, this.displayCapacityModal = !1, this.summaryText = " Generated Reports are at Capacity.", this.detailText = " You have reached the maximum number of reports created. Please delete a report to free up space.", this.sendMessageTxt = "This column layout will be shared with the user specified as long as they are a registered Vision users in your organization.  If the user doesn\u2019t get the email, kindly encourage them to register for Vision.", this.errorMessages = {
                summary: " Something Went Wrong!",
                detail: " Please try again later. If issue persist again, please contact support team."
            }, this.isMenuVisible = !1, this.selectedRowIndex = -1;
        }
        ngOnInit() {
            this.multiSortMeta = [{
                field: "type",
                order: 1
            }, {
                field: "title",
                order: 1
            }], this.activatedRoute.params.subscribe(e => {
                this.sharedTemplateId = e.templateId;
            }), this.actionItems = [...(this.authService.isReportingManageTemplatesAuthorised() ? [{
                label: `${this.reportingPeriod[0].ViewEditDetails}`,
                command: () => {
                    this.goToFinalColumnLayout();
                }
            }] : []), ...(this.authService.isReportingSendTemplatesAuthorised() ? [{
                label: `${this.reportingPeriod[1].SendColumnLayout}`,
                command: () => {
                    this.displayTemplateModal = !0, this.listUserEmails = [], this.showEmailErrorMessage = !1;
                }
            }] : []), ...(this.authService.isReportingCreateReportAuthorised() ? [{
                label: `${this.reportingPeriod[2].CreateaReport}`,
                command: () => {
                    this.createReport();
                }
            }] : []), ...(this.authService.isReportingManageTemplatesAuthorised() ? [{
                label: `${this.reportingPeriod[3].DeleteColumnLayout}`,
                command: () => {
                    this.deleteReport(1);
                }
            }] : [])], this.getSavedColumnData(), this.filterSubscription = this.getFilteredSubscriptions();
        }
        getFilteredSubscriptions() {
            return this.reportingDashboardService.getFilterValue().subscribe(e => {
                this.isShowEmptyMessage = !0, this.rowData = this.backUpRowData.filter(i => i.title.toLocaleLowerCase().includes(e.toLocaleLowerCase()) || i.type.toLocaleLowerCase().includes(e.toLocaleLowerCase()) || i.creationDate.toString().toLocaleLowerCase().includes(e.toLocaleLowerCase()));
            });
        }
        getSavedColumnData() {
            this.isLoading = !0, this.reportSubscription = this.apiService.savedColumnLayoutGet({
                userId: this.user.userData.id
            }).subscribe({
                next: e => {
                    e ? .payload && (this.processSavedColumnData(e.payload), this.sharedTemplateId && this.addSharedColumnLayout()), this.isLoading = !1, this.isShowEmptyMessage = !1, this.reportingDashboardService.sendGeneratedReportsNo(this.backUpRowData.length);
                },
                error: () => {
                    this.isLoading = !1, this.isShowEmptyMessage = !0;
                }
            });
        }
        processSavedColumnData(e) {
            this.rowData = e, this.rowData = this.rowData.filter(i => {
                let t = i.type.indexOf("|");
                return i.reportType = i.type, t !== -1 && (i.type = i.type.substring(0, t)), [ne.TRACKING, ne.EXCEPTION].includes(i.type);
            }), this.backUpRowData = this.rowData, this.sortUsersByCreationDate(), this.sortData();
        }
        sortUsersByCreationDate() {
            this.backUpRowData.sort((e, i) => {
                let t = new Date(e.creationDate);
                return new Date(i.creationDate).getTime() - t.getTime();
            });
        }
        deleteReport(e) {
            this.delSendReportId(this.user.userData.id, this.templateId), this.isSavedTemplateDeleteModal = !0;
        }
        onDeleteReport({
            userId: e,
            templateId: i
        }) {
            this.spinner.show("reportLoadingSpinner"), this.apiService.savedTemplateDelete({
                userId: this.user.userData.id,
                templateId: this.templateId
            }).subscribe(t => {
                this.rowData = this.removeItemById(this.templateId), this.backUpRowData = this.backUpRowData.filter(n => n.templateId !== this.templateId), this.spinner.hide("reportLoadingSpinner"), this.reportingDashboardService.sendGeneratedReportsNo(this.backUpRowData.length);
            }, t => {
                if (this.spinner.hide("reportLoadingSpinner"), t ? .error ? .payload ? .includes(or)) {
                    this.displaySavedColumnNoChangeModal = !0;
                    return;
                }
                let n = this.errorMessages.summary,
                    l = this.errorMessages.detail;
                this.messageService.add({
                    severity: "error",
                    summary: n,
                    detail: l
                });
            });
        }
        confirmDelete(e, i) {
            this.onDeleteReport({
                userId: e,
                templateId: this.templateId
            }), this.isSavedTemplateDeleteModal = !1;
        }
        delSendReportId(e, i) {
            this.templateId = i;
        }
        removeItemById(e) {
            return this.rowData.filter(i => i.templateId !== e);
        }
        sendSavedColumnLayout() {
            if (this.listUserEmails.length > 0) {
                if (this.listUserEmails.forEach(i => {
                        if (!this.validateEmail(i)) {
                            this.showEmailErrorMessage = !0;
                            return;
                        }
                    }), this.showEmailErrorMessage) return;
                this.spinner.show("reportLoadingSpinner");
                let e = {
                    userId: this.user.userData.id,
                    templateId: this.templateId,
                    emails: this.listUserEmails
                };
                this.shareSubscription = this.apiService.shareTemplatePost(e).subscribe({
                    next: i => {
                        this.spinner.hide("reportLoadingSpinner"), this.sendMessageTxt = "This column layout will be shared with the user specified as long as they are a registered Vision users in your organization.  If the user doesn\u2019t get the email, kindly encourage them to register for Vision.", this.displayTemplateModal = !1, this.showSendMessageModal = !0;
                    },
                    error: i => {
                        if (this.spinner.hide("reportLoadingSpinner"), this.displayTemplateModal = !1, this.showSendMessageModal = !0, i.error && i.error.payload) {
                            let t = i.error.payload;
                            if (t.includes(rr)) {
                                let n = t.match(/\[(.*?)\]/);
                                this.sendMessageTxt = "User with email " + n[0] + " not found";
                            } else t.includes(nr) ? this.sendMessageTxt = "Provided recipient organization does not match with senders organization" : this.sendMessageTxt = i.error.payload;
                        } else this.sendMessageTxt = "An Error Has Occurred.";
                    }
                });
            }
        }
        addChips(e) {
            if (this.showEmailErrorMessage = !1, this.listUserEmails.length > 5) {
                let i = this.listUserEmails.indexOf(e.value);
                i > -1 && this.listUserEmails.splice(i, 1);
            }
        }
        removeChips() {
            this.showEmailErrorMessage = !1;
        }
        createReport() {
            this.generatedReportSubscription = this.apiService.generatedReportsGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                let i = e.payload;
                this.totalReports = i.length, this.totalReports >= 100 ? (this.summaryText = "Generated Reports are at Capacity.", this.detailText = "You have reached the maximum number of reports created. Please delete a report to free up space.", this.displayCapacityModal = !0) : this.activerowData.type === ne.TRACKING ? this.router.navigate(["/reporting-dashboard/onetime-report"], {
                    state: this.activerowData,
                    queryParams: {
                        mode: Mt.CREATE
                    }
                }) : this.activerowData.type === ne.EXCEPTION && this.router.navigate(["/reporting-dashboard/exception-report"], {
                    state: this.activerowData,
                    queryParams: {
                        mode: Mt.CREATE
                    }
                });
            });
        }
        ngOnDestroy() {
            this.filterSubscription.unsubscribe(), this.reportSubscription.unsubscribe(), this.generatedReportSubscription && this.generatedReportSubscription.unsubscribe(), this.scheduledReportSubscription && this.scheduledReportSubscription.unsubscribe(), this.shareSubscription && this.shareSubscription.unsubscribe(), this.templateSubscription && this.templateSubscription.unsubscribe(), this.updateTemplateSubscription && this.updateTemplateSubscription.unsubscribe();
        }
        goToFinalColumnLayout() {
            let e = Cr(new Date(this.activerowData.creationDate).getTime()),
                t = this.activerowData.type.indexOf(le.ADHOC) > -1;
            !e && !t ? this.displayTemplateInUseModal = !0 : this.activerowData.type === ne.TRACKING ? this.router.navigate(["/reporting-dashboard/onetime-report"], {
                state: this.activerowData,
                queryParams: {
                    mode: Mt.EDIT
                }
            }) : this.activerowData.type === ne.EXCEPTION && this.router.navigate(["/reporting-dashboard/exception-report"], {
                state: this.activerowData,
                queryParams: {
                    mode: Mt.EDIT
                }
            });
        }
        addSharedColumnLayout() {
            this.showErrorMessage = !1, this.duplicateReportTitleError = !1, this.backUpRowData.length < 100 && (this.decodedTemplateId = this.hexToAscii(this.sharedTemplateId), this.templateSubscription = this.apiService.getTemplateById({
                userId: this.user.userData.id,
                templateId: this.decodedTemplateId
            }).subscribe(e => {
                this.sharedTemplateData = e.payload, this.displaySharedTemplateModal = !0;
            }));
        }
        saveSharedColumnLayout() {
            if (!this.sharedColumnLayoutName) {
                this.showErrorMessage = !0;
                return;
            }
            if (this.duplicateTitleChecker()) return;
            let i = {
                templateId: this.decodedTemplateId,
                userId: this.user.userData.id,
                status: this.sharedTemplateData.status,
                creationDate: this.datePipe.transform(new Date(), ce),
                template_shared_date: this.sharedTemplateData.template_shared_date,
                title: this.sharedColumnLayoutName.trim(),
                type: this.sharedTemplateData.type,
                outputFormat: this.sharedTemplateData.outputFormat,
                columns: this.sharedTemplateData.columns
            };
            this.updateTemplateSubscription = this.apiService.saveUpdateFinalColumnLayout(i).subscribe(t => {
                this.displaySharedTemplateModal = !1;
                let n = "New column layout added",
                    l = "A new column layout has been added,";
                this.messageService.add({
                    severity: "success",
                    summary: n,
                    detail: l
                }), this.sharedTemplateId = "", this.decodedTemplateId = "", this.getSavedColumnData();
            });
        }
        duplicateTitleChecker() {
            for (let e of this.backUpRowData)
                if (e.title && e.title.trim() === this.sharedColumnLayoutName.trim()) return this.duplicateReportTitleError = !0, !0;
            return this.duplicateReportTitleError = !1, !1;
        }
        restrictSpecialCharacters(e) {
            let i = /[^~|*<>^{}\\/]/g,
                t = String.fromCharCode(e.charCode);
            this.sharedColumnLayoutName && this.sharedColumnLayoutName.length >= 30 && e.preventDefault(), i.test(t) ? (this.titleInvalidCharacters = !1, this.duplicateReportTitleError = !1) : (this.titleInvalidCharacters = !0, e.preventDefault());
        }
        pasteHandler(e) {
            e.preventDefault();
            let t = (e.clipboardData || window.Clipboard).getData("text") + " ";
            if (!/[~|*<>^{}\\/]/g.test(t)) {
                let l = e.target,
                    u = l.value.substring(0, l.selectionStart || 0),
                    T = l.value.substring(l.selectionEnd || 0),
                    f = u + t + T;
                f && f.trim().length >= 30 && (f = f.substring(0, 30)), l.value = f.trimEnd();
                let M = u.length + t.length;
                l.selectionStart = M, l.selectionEnd = M, this.sharedColumnLayoutName = f;
            }
        }
        hexToAscii(e) {
            let i = e,
                t = "";
            for (let n = 0; n < i.length; n += 2) t += String.fromCharCode(parseInt(i.substr(n, 2), 16));
            return t;
        }
        validateEmail(e) {
            return /^([a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)$/.test(e);
        }
        sortData() {
            this.backUpRowData.sort((e, i) => {
                for (let t = 0; t < this.multiSortMeta.length; t++) {
                    let n = this.multiSortMeta[t],
                        l = null,
                        u = null,
                        T = 0;
                    if (l = e[n.field], u = i[n.field], l < u ? T = -1 : l > u && (T = 1), T !== 0) return T * n.order;
                }
                return 0;
            });
        }
        setSelectedRow(e, i) {
            this.selectedRowData = i, this.selectedRowIndex = e;
        }
        handleKeyboardEvent(e) {
            if (e.key === "Tab" && this.displayTemplateModal) {
                let i = document.querySelector(".p-dialog-header-close"),
                    t = document.querySelector(".p-dialog-title");
                i && i.setAttribute("tabindex", "0"), t && t.setAttribute("tabindex", "1");
            }
            if (e.key === "Enter" && setTimeout(() => {
                    document.querySelector(".ng-trigger-overlayAnimation ") && (document.querySelector(".ng-trigger.p-menu .p-menu-list li a").focus(), this.setFocus());
                }), e.key === "Escape") {
                let i = document.querySelector("#id" + this.selectedRowData.templateId + this.selectedRowIndex);
                i && (i.click(), i.focus());
            }
        }
        focusNextElement(e, i) {
            this.renderer.listen(e, "keydown", t => {
                t.key === "Tab" && !t.shiftKey && (t.preventDefault(), i.focus(), this.closeMenu());
            });
        }
        focusPreviousElement(e, i) {
            this.renderer.listen(e, "keydown", t => {
                t.key === "Tab" && t.shiftKey && (t.preventDefault(), i.focus(), this.closeMenu());
            });
        }
        closeMenu() {
            let e = document.querySelector("#id" + this.selectedRowData.templateId + this.selectedRowIndex);
            e && (e.click(), e.focus());
        }
        setFocus() {
            let e = document.querySelector("#id" + this.selectedRowData.templateId + this.selectedRowIndex),
                i = document.querySelectorAll(".ng-trigger.p-menu .p-menu-list li a");
            this.focusNextElement(i[3], e), this.focusPreviousElement(i[0], e);
        }
        focusToOriginElement() {
            let e = document.querySelector("#id" + this.selectedRowData.templateId + this.selectedRowIndex);
            e && e.focus();
        }
        onMenuShow() {
            this.isMenuVisible = !0;
        }
        onMenuHide() {
            this.isMenuVisible = !1;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(ke), A(Ye), A(Se), A(xe), A(We), A(se), A(ye), A(ue), A(bt), A(je), A(wo));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-saved-column-layouts"]
                ],
                hostBindings: function(i, t) {
                    i & 1 && R("keydown", function(l) {
                        return t.handleKeyboardEvent(l);
                    }, !1, vt);
                },
                features: [Te([ye, ue])],
                decls: 34,
                vars: 18,
                consts: () => {
                    let e;
                    e = "Template in Use";
                    let i;
                    i = "Save as Column Layout";
                    let t;
                    t = "Processing...";
                    let n;
                    n = "You cannot delete or edit this template as it has already been queued. You can modify this template after 24 hours";
                    let l;
                    l = " To Save the Column Layout for future use, please enter a unique name:";
                    let u;
                    u = "Column Layout Name";
                    let T;
                    T = "Cannot delete or reschedule";
                    let f;
                    f = "Are you sure, you want to delete the saved column layout?";
                    let M;
                    M = "Send a Column Layout";
                    let D;
                    D = "Failed reports are deleted after 30 days. Successful reports are deleted if they are unopened for 60 days.";
                    let b;
                    b = "This template is being used in a scheduled future report, or an ad hoc report being executed. Please cancel the scheduled report or wait for the ad hoc report to complete before deleting.";
                    let v;
                    v = "You will not be able to recover the column layout details once it has been deleted.";
                    let $;
                    $ = " You can only send a column layout to Vision registered users in your organization. If you are unable to add a user they may not be within our system, and we encourage you to have them register for Vision.";
                    let y;
                    y = "Email(s) - input email and press enter";
                    let U;
                    U = " Date of Generation " + "\uFFFD#3\uFFFD" + "" + "\uFFFD/#3\uFFFD" + "";
                    let oe;
                    oe = " Column Layout Name " + "\uFFFD#6\uFFFD" + "" + "\uFFFD/#6\uFFFD" + "";
                    let B;
                    B = " Report Type " + "\uFFFD#9\uFFFD" + "" + "\uFFFD/#9\uFFFD" + "";
                    let w;
                    w = " Output Format " + "\uFFFD#12\uFFFD" + "" + "\uFFFD/#12\uFFFD" + "";
                    let pe;
                    pe = " Actions ";
                    let Y;
                    Y = "No data found";
                    let Q;
                    Q = "Loading...";
                    let Oe;
                    Oe = "Okay";
                    let Pe;
                    Pe = "Cancel";
                    let Ae;
                    Ae = "Delete";
                    let Ne;
                    Ne = "Invalid Email.";
                    let Me;
                    Me = "Cancel";
                    let I;
                    I = "Send";
                    let Rt;
                    Rt = "Okay";
                    let Ct;
                    Ct = "Okay";
                    let Tt;
                    Tt = "Okay";
                    let ht;
                    ht = "Column Layout Name is required.";
                    let ft;
                    ft = " Title already exists, please provide a unique title ";
                    let St;
                    St = "Cancel";
                    let Ot;
                    return Ot = "Save Layout", [
                        ["footer", ""],
                        ["dt2", ""],
                        ["menu", ""], t, n, l, u, D, b, v, $, y, U, oe, B, w, pe, Y, Q, Oe, Ne, Me, I, Ct, Tt, ht, ft, St, Ot, ["name", "reportLoadingSpinner", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        ["class", "container-fluid bg-white", 4, "ngIf"],
                        [1, "delete-dailog"],
                        [1, "pur-dialog", 3, "visibleChange", "header", "visible", "modal"],
                        [1, "model-body", "text-left"],
                        [1, "delete-dailog", "restriction"],
                        ["header", e, 1, "pur-dialog", "delete-res-popup-header", 3, "visibleChange", "visible", "modal"],
                        ["id", "send-dailog-message", 1, "delete-dailog"],
                        ["header", "", 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        ["id", "save-dailog", 1, "delete-dailog"],
                        ["header", i, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "model-body", "text-left", "modal-sub-heading"],
                        [1, "Layout-field"],
                        ["for", "title", 1, "control-label"],
                        ["pInputText", "", "type", "text", "name", "sharedColumnLayoutName", 3, "ngModelChange", "keypress", "paste", "ngModel", "ngModelOptions"],
                        ["class", "p-error block error-message", 4, "ngIf"],
                        [1, "container-fluid", "bg-white"],
                        [1, "row"],
                        [1, "col-md-12", "mb-4"],
                        ["columnResizeMode", "expand", "responsiveLayout", "scroll", "sortField", "creationDate", 1, "pur-datatable", 3, "resizableColumns", "autoLayout", "sortOrder", "value", "globalFilterFields"],
                        ["pTemplate", "header"],
                        ["pTemplate", "body"],
                        ["pTemplate", "emptymessage"],
                        [1, "note"],
                        ["header", T, 1, "pur-dialog", "delete-res-popup-header", 3, "visibleChange", "visible", "modal"],
                        ["header", f, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        ["id", "send-dailog", 1, "delete-dailog"],
                        ["header", M, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        ["for", "sendcolumnemails", 1, "control-label", "mb-2", "emailsLabel"],
                        [1, "Layout-field", "p-fluid"],
                        ["name", "listUserEmails", 3, "ngModelChange", "onAdd", "onRemove", "ngModel", "ngModelOptions"],
                        ["id", "creationDate", "pSortableColumn", "creationDate"],
                        ["field", "creationDate"],
                        ["id", "title", "pSortableColumn", "title"],
                        ["field", "title"],
                        ["id", "type", "pSortableColumn", "type"],
                        ["field", "type"],
                        ["id", "outputFormat", "pSortableColumn", "outputFormat"],
                        ["field", "outputFormat"],
                        ["id", "actions"],
                        [1, "action-col"],
                        ["aria-label", "More options", "role", "menu", "tabindex", "0", 1, "pi", "pi-ellipsis-v", 3, "click", "keypress", "id"],
                        ["appendTo", "body", 3, "onShow", "onHide", "popup", "model"],
                        [4, "ngIf"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "label", Pe, 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", "label", Ae, 1, "pur-button", "pur-button--sm", 3, "click"],
                        [1, "p-error", "block", "error-message"],
                        [1, "pur-form", "pur-form--inline", "layout-footer"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", 3, "click", "disabled"],
                        ["type", "button", "pButton", "", "label", Rt, 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1) {
                        let n = P();
                        h(0, "p-toast"), r(1, "ngx-spinner", 29), d(2, 3), a(), C(3, Yl, 35, 16, "div", 30), r(4, "div", 31)(5, "p-dialog", 32), F("visibleChange", function(u) {
                            return m(n), L(t.displayCapacityModal, u) || (t.displayCapacityModal = u), g(u);
                        }), r(6, "p", 33), S(7), a(), C(8, Wl, 2, 0, "ng-template", null, 0, z), a()(), r(10, "div", 34)(11, "p-dialog", 35), F("visibleChange", function(u) {
                            return m(n), L(t.displayTemplateInUseModal, u) || (t.displayTemplateInUseModal = u), g(u);
                        }), r(12, "p", 33), d(13, 4), a(), C(14, Kl, 3, 0, "ng-template", null, 0, z), a()(), r(16, "div", 36)(17, "p-dialog", 37), F("visibleChange", function(u) {
                            return m(n), L(t.showSendMessageModal, u) || (t.showSendMessageModal = u), g(u);
                        }), r(18, "p", 33), S(19), a(), C(20, Zl, 3, 0, "ng-template", null, 0, z), a()(), r(22, "div", 38)(23, "p-dialog", 39), F("visibleChange", function(u) {
                            return m(n), L(t.displaySharedTemplateModal, u) || (t.displaySharedTemplateModal = u), g(u);
                        }), r(24, "p", 40), d(25, 5), a(), r(26, "div", 41)(27, "label", 42), d(28, 6), a(), r(29, "input", 43), F("ngModelChange", function(u) {
                            return m(n), L(t.sharedColumnLayoutName, u) || (t.sharedColumnLayoutName = u), g(u);
                        }), R("keypress", function(u) {
                            return m(n), g(t.restrictSpecialCharacters(u));
                        })("paste", function(u) {
                            return m(n), g(t.pasteHandler(u));
                        }), a(), C(30, ql, 2, 0, "p", 44)(31, jl, 2, 0, "p", 44), a(), C(32, Ql, 5, 0, "ng-template", null, 0, z), a()();
                    }
                    i & 2 && (s(), _("fullScreen", !0), s(2), _("ngIf", t.authService.isReportingViewTemplatesAuthorised()), s(2), _("header", t.summaryText), x("visible", t.displayCapacityModal), _("modal", !0), s(2), N(t.detailText), s(4), x("visible", t.displayTemplateInUseModal), _("modal", !0), s(6), x("visible", t.showSendMessageModal), _("modal", !0), s(2), N(t.sendMessageTxt), s(4), x("visible", t.displaySharedTemplateModal), _("modal", !0), s(6), x("ngModel", t.sharedColumnLayoutName), _("ngModelOptions", K(17, fr)), s(), _("ngIf", t.showErrorMessage && !t.sharedColumnLayoutName), s(), _("ngIf", t.duplicateReportTitleError && t.sharedColumnLayoutName));
                },
                dependencies: [ie, re, ii, ue, fe, $e, Ie, Ve, be, Xe, nt, Be, cn, _n, rt, Gi, at, Et, $i, Vi, ui, ki, ve, qe, De, Ee, Ze, it, dt],
                styles: [".note[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs)}.action-col[_ngcontent-%COMP%]{text-align:left!important;padding-left:3.6rem!important}.Layout-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.Layout-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs);color:var(--pur-web-black);font-weight:700}.layout-footer[_ngcontent-%COMP%]{margin-top:1.5rem}.modal-sub-heading[_ngcontent-%COMP%]{font-size:.8rem}.Layout-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border-color:var(--pur-web-grey);border-radius:.25rem;font-size:var(--pur-font-desktop-xxs);outline:none}"]
            });
        }
    }
    return o;
})();
var Re = (() => {
    class o {
        constructor() {
            this.field = "", this.header = "", this.name = "", this.position = 0, this.isDefault = !1, this.isDisplayed = !1, this.isAvailable = !1, this.sort = 0, this.sequence = "";
        }
        static {
            this.PACKAGE_STATUS_CODE = "packagestatuscode";
        }
        static {
            this.PACKAGE_STATUS_ATTENTION = "ATT";
        }
        static {
            this.PACKAGE_STATUS_DELIVERED = "DEL";
        }
        static {
            this.PACKAGE_STATUS_INDUCTED = "IND";
        }
        static {
            this.PACKAGE_STATUS_IN_TRANSIT = "INT";
        }
        static {
            this.PACKAGE_STATUS_OUT_FOR_DELIVERY = "OFD";
        }
        static {
            this.PACKAGE_STATUS_PICKED_UP = "POP";
        }
        static {
            this.PACKAGE_STATUS_SHIPMENT_CREATED = "SDR";
        }
        static getColumnHeaderByField(e, i, t = "en") {
            let n = e.find(l => l.code === i);
            return n ? n[t] : i || "";
        }
    }
    return o;
})();
var Jl = ["list"],
    es = o => ({
        "p-steps p-component": !0,
        "p-readonly": o
    }),
    ts = (o, c) => ({
        "p-steps-item-active": o,
        "p-disabled": c
    }),
    is = () => ({
        exact: !1
    }),
    os = (o, c) => c.label;

function ns(o, c) {
    if (o & 1 && (r(0, "span", 14), S(1), a()), o & 2) {
        let e = p(3).$implicit;
        s(), N(e.label);
    }
}

function rs(o, c) {
    if (o & 1 && h(0, "span", 15), o & 2) {
        let e = p(3).$implicit;
        _("innerHTML", e.label, Nt);
    }
}

function as(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "a", 11), R("click", function(t) {
            m(e);
            let n = p(2),
                l = n.$implicit,
                u = n.$index,
                T = p();
            return g(T.onItemClick(t, l, u));
        })("keydown", function(t) {
            m(e);
            let n = p(2),
                l = n.$implicit,
                u = n.$index,
                T = p();
            return g(T.onItemKeydown(t, l, u));
        }), r(1, "span", 12), S(2), a(), C(3, ns, 2, 1, "span", 13)(4, rs, 1, 1, "ng-template", null, 3, z), a();
    }
    if (o & 2) {
        let e = j(5),
            i = p(2),
            t = i.$implicit,
            n = i.$index,
            l = p();
        _("routerLink", t.routerLink)("queryParams", t.queryParams)("routerLinkActiveOptions", t.routerLinkActiveOptions || K(17, is))("target", t.target)("fragment", t.fragment)("queryParamsHandling", t.queryParamsHandling)("preserveFragment", t.preserveFragment)("skipLocationChange", t.skipLocationChange)("replaceUrl", t.replaceUrl)("state", t.state), X("tabindex", l.getItemTabIndex(t, n))("aria-expanded", n === l.activeIndex)("aria-disabled", t.disabled || l.readonly && n !== l.activeIndex)("ariaCurrentWhenActive", l.exact ? "step" : void 0), s(2), N(n + 1), s(), _("ngIf", t.escape !== !1)("ngIfElse", e);
    }
}

function ls(o, c) {
    if (o & 1 && (r(0, "span", 14), S(1), a()), o & 2) {
        let e = p(3).$implicit;
        s(), N(e.label);
    }
}

function ss(o, c) {
    if (o & 1 && h(0, "span", 15), o & 2) {
        let e = p(3).$implicit;
        _("innerHTML", e.label, Nt);
    }
}

function ps(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "a", 16), R("click", function(t) {
            m(e);
            let n = p(2),
                l = n.$implicit,
                u = n.$index,
                T = p();
            return g(T.onItemClick(t, l, u));
        })("keydown", function(t) {
            m(e);
            let n = p(2),
                l = n.$implicit,
                u = n.$index,
                T = p();
            return g(T.onItemKeydown(t, l, u));
        }), r(1, "span", 12), S(2), a(), C(3, ls, 2, 1, "span", 13)(4, ss, 1, 1, "ng-template", null, 4, z), a();
    }
    if (o & 2) {
        let e = j(5),
            i = p(2),
            t = i.$implicit,
            n = i.$index,
            l = p();
        _("target", t.target), X("href", t.url, Dn)("tabindex", l.getItemTabIndex(t, n))("aria-expanded", n === l.activeIndex)("aria-disabled", t.disabled || l.readonly && n !== l.activeIndex)("ariaCurrentWhenActive", l.exact && (!t.disabled || l.readonly) ? "step" : void 0), s(2), N(n + 1), s(), _("ngIf", t.escape !== !1)("ngIfElse", e);
    }
}

function _s(o, c) {
    if (o & 1 && (r(0, "li", 9, 1), C(2, as, 6, 18, "a", 10)(3, ps, 6, 9, "ng-template", null, 2, z), a()), o & 2) {
        let e = j(4),
            i = p(),
            t = i.$implicit,
            n = i.$index,
            l = p();
        ut(t.styleClass), _("ngStyle", t.style)("tooltipOptions", t.tooltipOptions)("ngClass", Je(10, ts, l.isActive(t, n), t.disabled || l.readonly && !l.isActive(t, n))), X("aria-current", l.isActive(t, n) ? "step" : void 0)("id", t.id)("data-pc-section", "menuitem"), s(2), _("ngIf", l.isClickableRouterLink(t))("ngIfElse", e);
    }
}

function cs(o, c) {
    if (o & 1 && C(0, _s, 5, 13, "li", 8), o & 2) {
        let e = c.$implicit;
        _("ngIf", e.visible !== !1);
    }
}
var us = ({
        dt: o
    }) => `
.p-steps {
    position: relative;
}

.p-steps-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
}

.p-steps-item {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
}

.p-steps-item.p-disabled,
.p-steps-item.p-disabled * {
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
    cursor: auto;
}

.p-steps-item:before {
    content: " ";
    border-top: 2px solid ${o("steps.separator.background")};
    width: 100%;
    top: 50%;
    left: 0;
    display: block;
    position: absolute;
    margin-top: -1rem;
    margin-top: calc(-1rem + 1px);
}

.p-steps-item:first-child::before {
    width: calc(50% + 1rem);
    transform: translateX(100%);
}

.p-steps-item:last-child::before {
    width: 50%;
}

.p-steps-item-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    transition: outline-color ${o("steps.transition.duration")}, box-shadow ${o("steps.transition.duration")};
    border-radius: ${o("steps.item.link.border.radius")};
    outline-color: transparent;
    gap: ${o("steps.item.link.gap")};
}

.p-steps-item-link:not(.p-disabled):focus-visible {
    box-shadow: ${o("steps.item.link.focus.ring.shadow")};
    outline: ${o("steps.item.link.focus.ring.width")} ${o("steps.item.link.focus.ring.style")} ${o("steps.item.link.focus.ring.color")};
    outline-offset: ${o("steps.item.link.focus.ring.offset")};
}

.p-steps-item-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: ${o("steps.item.label.color")};
    display: block;
    font-weight: ${o("steps.item.label.font.weight")};
}

.p-steps-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    color: ${o("steps.item.number.color")};
    border: 2px solid ${o("steps.item.number.border.color")};
    background: ${o("steps.item.number.background")};
    min-width: ${o("steps.item.number.size")};
    height: ${o("steps.item.number.size")};
    line-height: ${o("steps.item.number.size")};
    font-size: ${o("steps.item.number.font.size")};
    z-index: 1;
    border-radius: ${o("steps.item.number.border.radius")};
    position: relative;
    font-weight: ${o("steps.item.number.font.weight")};
}

.p-steps-item-number::after {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: ${o("steps.item.number.border.radius")};
    box-shadow: ${o("steps.item.number.shadow")};
}

.p-steps:not(.p-readonly) .p-steps-item {
    cursor: pointer;
}

.p-steps-item-active .p-steps-item-number {
    background: ${o("steps.item.number.active.background")};
    border-color: ${o("steps.item.number.active.border.color")};
    color: ${o("steps.item.number.active.color")};
}

.p-steps-item-active .p-steps-item-label {
    color: ${o("steps.item.label.active.color")};
}
`,
    ds = {
        root: ({
            props: o
        }) => ["p-steps p-component", {
            "p-readonly": o.readonly
        }],
        list: "p-steps-list",
        item: ({
            instance: o,
            item: c,
            index: e
        }) => ["p-steps-item", {
            "p-steps-item-active": o.isActive(e),
            "p-disabled": o.isItemDisabled(c, e)
        }],
        itemLink: "p-steps-item-link",
        itemNumber: "p-steps-item-number",
        itemLabel: "p-steps-item-label"
    },
    Sr = (() => {
        class o extends pi {
            name = "steps";
            theme = us;
            classes = ds;
            static ɵfac = (() => {
                let e;
                return function(t) {
                    return (e || (e = At(o)))(t || o);
                };
            })();
            static ɵprov = pt({
                token: o,
                factory: o.ɵfac
            });
        }
        return o;
    })();
var yo = (() => {
        class o extends _i {
            activeIndex = 0;
            model;
            readonly = !0;
            style;
            styleClass;
            exact = !0;
            activeIndexChange = new J();
            listViewChild;
            router = Dt(ke);
            route = Dt(Ye);
            _componentStyle = Dt(Sr);
            subscription;
            ngOnInit() {
                super.ngOnInit(), this.subscription = this.router.events.subscribe(() => this.cd.markForCheck());
            }
            onItemClick(e, i, t) {
                if (this.readonly || i.disabled) {
                    e.preventDefault();
                    return;
                }
                this.activeIndexChange.emit(t), !i.url && !i.routerLink && e.preventDefault(), i.command && i.command({
                    originalEvent: e,
                    item: i,
                    index: t
                });
            }
            onItemKeydown(e, i, t) {
                switch (e.code) {
                    case "ArrowRight":
                        {
                            this.navigateToNextItem(e.target),
                            e.preventDefault();
                            break;
                        }
                    case "ArrowLeft":
                        {
                            this.navigateToPrevItem(e.target),
                            e.preventDefault();
                            break;
                        }
                    case "Home":
                        {
                            this.navigateToFirstItem(e.target),
                            e.preventDefault();
                            break;
                        }
                    case "End":
                        {
                            this.navigateToLastItem(e.target),
                            e.preventDefault();
                            break;
                        }
                    case "Tab":
                        if (t !== this.activeIndex) {
                            let n = Tn(this.listViewChild.nativeElement, '[data-pc-section="menuitem"]');
                            n[t].children[0].tabIndex = "-1", n[this.activeIndex].children[0].tabIndex = "0";
                        }
                        break;
                    case "Enter":
                    case "Space":
                        {
                            this.onItemClick(e, i, t),
                            e.preventDefault();
                            break;
                        }
                    default:
                        break;
                }
            }
            navigateToNextItem(e) {
                let i = this.findNextItem(e);
                i && this.setFocusToMenuitem(e, i);
            }
            navigateToPrevItem(e) {
                let i = this.findPrevItem(e);
                i && this.setFocusToMenuitem(e, i);
            }
            navigateToFirstItem(e) {
                let i = this.findFirstItem();
                i && this.setFocusToMenuitem(e, i);
            }
            navigateToLastItem(e) {
                let i = this.findLastItem();
                i && this.setFocusToMenuitem(e, i);
            }
            findNextItem(e) {
                let i = e.parentElement.nextElementSibling;
                return i ? i.children[0] : null;
            }
            findPrevItem(e) {
                let i = e.parentElement.previousElementSibling;
                return i ? i.children[0] : null;
            }
            findFirstItem() {
                let e = Wn(this.listViewChild.nativeElement, '[data-pc-section="menuitem"]');
                return e ? e.children[0] : null;
            }
            findLastItem() {
                let e = Tn(this.listViewChild.nativeElement, '[data-pc-section="menuitem"]');
                return e ? e[e.length - 1].children[0] : null;
            }
            setFocusToMenuitem(e, i) {
                e.tabIndex = "-1", i.tabIndex = "0", i.focus();
            }
            isClickableRouterLink(e) {
                return e.routerLink && !this.readonly && !e.disabled;
            }
            isActive(e, i) {
                if (e.routerLink) {
                    let t = Array.isArray(e.routerLink) ? e.routerLink : [e.routerLink];
                    return this.router.isActive(this.router.createUrlTree(t, {
                        relativeTo: this.route
                    }).toString(), !1);
                }
                return i === this.activeIndex;
            }
            getItemTabIndex(e, i) {
                return e.disabled ? "-1" : !e.disabled && this.activeIndex === i ? e.tabindex || "0" : e.tabindex ? ? "-1";
            }
            ngOnDestroy() {
                this.subscription && this.subscription.unsubscribe(), super.ngOnDestroy();
            }
            static ɵfac = (() => {
                let e;
                return function(t) {
                    return (e || (e = At(o)))(t || o);
                };
            })();
            static ɵcmp = te({
                type: o,
                selectors: [
                    ["p-steps"]
                ],
                viewQuery: function(i, t) {
                    if (i & 1 && Ht(Jl, 5), i & 2) {
                        let n;
                        we(n = Ge()) && (t.listViewChild = n.first);
                    }
                },
                inputs: {
                    activeIndex: [2, "activeIndex", "activeIndex", Ri],
                    model: "model",
                    readonly: [2, "readonly", "readonly", ze],
                    style: "style",
                    styleClass: "styleClass",
                    exact: [2, "exact", "exact", ze]
                },
                outputs: {
                    activeIndexChange: "activeIndexChange"
                },
                features: [Te([Sr]), ti],
                decls: 5,
                vars: 8,
                consts: [
                    ["list", ""],
                    ["menuitem", ""],
                    ["elseBlock", ""],
                    ["htmlLabel", ""],
                    ["htmlRouteLabel", ""],
                    [3, "ngClass", "ngStyle"],
                    [1, "p-steps-list"],
                    ["pTooltip", "", 1, "p-steps-item", 3, "ngStyle", "class", "tooltipOptions", "ngClass"],
                    ["class", "p-steps-item", "pTooltip", "", 3, "ngStyle", "class", "tooltipOptions", "ngClass", 4, "ngIf"],
                    ["pTooltip", "", 1, "p-steps-item", 3, "ngStyle", "tooltipOptions", "ngClass"],
                    ["role", "link", "class", "p-steps-item-link", 3, "routerLink", "queryParams", "routerLinkActiveOptions", "target", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "click", "keydown", 4, "ngIf", "ngIfElse"],
                    ["role", "link", 1, "p-steps-item-link", 3, "click", "keydown", "routerLink", "queryParams", "routerLinkActiveOptions", "target", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state"],
                    [1, "p-steps-item-number"],
                    ["class", "p-steps-item-label", 4, "ngIf", "ngIfElse"],
                    [1, "p-steps-item-label"],
                    [1, "p-steps-item-label", 3, "innerHTML"],
                    ["role", "link", 1, "p-steps-item-link", 3, "click", "keydown", "target"]
                ],
                template: function(i, t) {
                    i & 1 && (r(0, "nav", 5)(1, "ul", 6, 0), xn(3, cs, 1, 1, "li", 7, os), a()()), i & 2 && (ut(t.styleClass), _("ngClass", ee(6, es, t.readonly))("ngStyle", t.style), X("data-pc-name", "steps"), s(), X("data-pc-section", "menu"), s(2), Ln(t.model));
                },
                dependencies: [ie, me, re, Mi, Mo, ko, er, Jn, Ke],
                encapsulation: 2,
                changeDetection: 0
            });
        }
        return o;
    })(),
    un = (() => {
        class o {
            static ɵfac = function(i) {
                return new(i || o)();
            };
            static ɵmod = ct({
                type: o
            });
            static ɵinj = _t({
                imports: [yo, Ke, Ke]
            });
        }
        return o;
    })();
var Le = (() => {
    class o {
        constructor() {
            this.field = "", this.header = "", this.name = "", this.position = 0, this.isDefault = !1, this.isDisplayed = !1, this.isAvailable = !1, this.sort = 0, this.sequence = "";
        }
        static {
            this.ADDRESS_CORRECTION = "Address Correction Required";
        }
        static {
            this.APPOINTMENT_REQUIRED = "Appointment Required";
        }
        static {
            this.PICKUP_AVAILABLE = "Available For Pickup";
        }
        static {
            this.CUSTOMS = "Customs";
        }
        static {
            this.DAMAGED = "Damaged";
        }
        static {
            this.DELAYED = "Delayed";
        }
        static {
            this.UNDEFINED = "Undefined";
        }
        static {
            this.OTHER = "Other";
        }
        static {
            this.RECEIVER_UNAVAILABLE = "Receiver Unavailable";
        }
        static getColumnHeaderByField(e, i, t = "en") {
            let n = e.find(l => l.code === i);
            return n ? n[t] : i || "";
        }
    }
    return o;
})();
var Pr = (() => {
    class o {
        transform(e, i, t, n, l) {
            let u = i.find(f => f.shipperName === t),
                T = u ? u.shipperOperators : [];
            if (n.length > 1) {
                let f = n.get(l.toString()) ? .get("shipperName") ? .getRawValue(),
                    M = n.get(l.toString()) ? .get("shipperText") ? .getRawValue(),
                    D = n.get(l.toString()) ? .get("shipperFilterOperator") ? .getRawValue();
                return f && M ? .trim() && D ? e.filter(b => b.value === D) : e.filter(b => !T.includes(b.value));
            }
            return e;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)();
            };
        }
        static {
            this.ɵpipe = Lo({
                name: "shipperFilter",
                type: o,
                pure: !0
            });
        }
    }
    return o;
})();
var Ar = (() => {
    class o {
        transform(e, i, t, n, l) {
            let u = i.find(f => f.receiverName === t),
                T = u ? u.receiverOperators : [];
            if (n.length > 1) {
                let f = n.get(l.toString()) ? .get("receiverName") ? .getRawValue(),
                    M = n.get(l.toString()) ? .get("receiverText") ? .getRawValue(),
                    D = n.get(l.toString()) ? .get("receiverFilterOperator") ? .getRawValue();
                return f && M ? .trim() && D ? e.filter(b => b.value === D) : e.filter(b => !T.includes(b.value));
            }
            return e;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)();
            };
        }
        static {
            this.ɵpipe = Lo({
                name: "receiverFilter",
                type: o,
                pure: !0
            });
        }
    }
    return o;
})();
var gs = o => ({
        "hide-optional-filter": o
    }),
    Es = () => ({
        standalone: !0
    }),
    yr = (o, c, e, i, t) => [o, c, e, i, t],
    Dr = o => ({
        "d-none": o
    });

function Rs(o, c) {
    o & 1 && (r(0, "span", 45), d(1, 5), a());
}

function Cs(o, c) {
    o & 1 && (r(0, "span", 46), d(1, 6), a());
}

function Ts(o, c) {
    o & 1 && (r(0, "small", 111), d(1, 24), a());
}

function hs(o, c) {
    o & 1 && (r(0, "small", 111), d(1, 25), a());
}

function fs(o, c) {
    o & 1 && (r(0, "small", 111), d(1, 26), a());
}

function Ss(o, c) {
    if (o & 1) {
        let e = P();
        G(0), r(1, "div", 102)(2, "div", 103)(3, "div", 82)(4, "p-select", 104), R("onSelectionChange", function(t) {
            let n = m(e).index,
                l = p(3);
            return g(l.checkShipperDetails(t, n));
        }), a(), C(5, Ts, 2, 0, "small", 105), a(), r(6, "div", 106)(7, "p-select", 107), ae(8, "shipperFilter"), R("onSelectionChange", function() {
            let t = m(e).index,
                n = p(3);
            return g(n.updateShipperDetails(t));
        })("onClick", function(t) {
            let n = m(e).index,
                l = p(3);
            return g(l.checkShipperDetails(t, n));
        }), a(), r(9, "img", 108), R("click", function() {
            let t = m(e).index,
                n = p(3);
            return g(n.removeShipperDetail(t));
        }), a(), C(10, hs, 2, 0, "small", 105), a()(), r(11, "div", 109)(12, "input", 110), R("keyup", function(t) {
            let n = m(e).index,
                l = p(3);
            return l.checkShipperDetails(t, n), g(l.updateShipperDetails(n));
        }), a(), C(13, fs, 2, 0, "small", 105), a(), h(14, "hr"), a(), k();
    }
    if (o & 2) {
        let e = c.index,
            i = p(3);
        s(), _("formGroupName", e), s(3), _("options", i.shipperField), s(), _("ngIf", !i.hasShipperName && i.textErrorIndex === e), s(2), _("options", mn(8, 7, dn(13, yr, i.receiverOperator, i.shipperOperatorArray, i.selectedShipperName, i.shipperItems, e))), s(2), _("ngClass", ee(19, Dr, i.shipperDetail.controls.length === 1)), s(), _("ngIf", !i.hasShipperOperator && i.textErrorIndex === e), s(3), _("ngIf", !i.hasShipperText && i.textErrorIndex === e);
    }
}

function Os(o, c) {
    if (o & 1 && (G(0, 100), C(1, Ss, 15, 21, "ng-container", 101), k()), o & 2) {
        let e = p(2);
        s(), _("ngForOf", e.shipperDetail == null ? null : e.shipperDetail.controls);
    }
}

function Ps(o, c) {
    o & 1 && (r(0, "small", 111), d(1, 27), a());
}

function As(o, c) {
    o & 1 && (r(0, "small", 111), d(1, 28), a());
}

function Ns(o, c) {
    o & 1 && (r(0, "small", 111), d(1, 29), a());
}

function Ms(o, c) {
    if (o & 1) {
        let e = P();
        G(0), r(1, "div", 102)(2, "div", 103)(3, "div", 82)(4, "p-select", 113), R("onSelectionChange", function(t) {
            let n = m(e).index,
                l = p(3);
            return g(l.checkReceiverDetails(t, n));
        }), a(), C(5, Ps, 2, 0, "small", 105), a(), r(6, "div", 106)(7, "p-select", 114), ae(8, "receiverFilter"), R("onSelectionChange", function() {
            let t = m(e).index,
                n = p(3);
            return g(n.updateReceiverDetails(t));
        })("onClick", function(t) {
            let n = m(e).index,
                l = p(3);
            return g(l.checkReceiverDetails(t, n));
        }), a(), r(9, "img", 108), R("click", function() {
            let t = m(e).index,
                n = p(3);
            return g(n.removeReceiverDetail(t));
        }), a(), C(10, As, 2, 0, "small", 105), a()(), r(11, "div", 109)(12, "input", 115), R("keyup", function(t) {
            let n = m(e).index,
                l = p(3);
            return l.checkReceiverDetails(t, n), g(l.updateReceiverDetails(n));
        }), a(), C(13, Ns, 2, 0, "small", 105), a(), h(14, "hr"), a(), k();
    }
    if (o & 2) {
        let e = c.index,
            i = p(3);
        s(), _("formGroupName", e), s(3), _("options", i.receiverField), s(), _("ngIf", !i.hasReceiverName && i.textErrorIndex === e), s(2), _("options", mn(8, 7, dn(13, yr, i.receiverOperator, i.receiverOperatorArray, i.selectedReceiverName, i.receiverItems, e))), s(2), _("ngClass", ee(19, Dr, i.receiverDetail.controls.length === 1)), s(), _("ngIf", !i.hasReceiverOperator && i.textErrorIndex === e), s(3), _("ngIf", !i.hasReceiverText && i.textErrorIndex === e);
    }
}

function Is(o, c) {
    if (o & 1 && (G(0, 112), C(1, Ms, 15, 21, "ng-container", 101), k()), o & 2) {
        let e = p(2);
        s(), _("ngForOf", e.receiverDetail == null ? null : e.receiverDetail.controls);
    }
}

function ys(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 63)(1, "p-checkbox", 116), R("onChange", function(t) {
            m(e);
            let n = p(2);
            return g(n.checkPriorityCategories(t));
        }), a(), r(2, "label", 117), S(3), a()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(), _("id", e.name)("formControl", i.priorityCtg)("name", e.name)("value", e), X("name", e.name), s(), _("for", e.name), s(), N(e.name);
    }
}

function Ds(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 63)(1, "p-checkbox", 116), R("onChange", function(t) {
            m(e);
            let n = p(2);
            return g(n.checkTimeOfDeliveryGroup(t));
        }), a(), r(2, "label", 117), S(3), a()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(), _("id", e.name)("formControl", i.timeOfDeliveryCtg)("name", e.name)("value", e), X("name", e.name), s(), _("for", e.name), s(), N(e.name);
    }
}

function vs(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 63)(1, "p-checkbox", 116), R("onChange", function(t) {
            m(e);
            let n = p(2);
            return g(n.checkDomesticCategories(t));
        }), a(), r(2, "label", 117), S(3), a()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(), _("id", e.name)("formControl", i.domesticCtg)("name", e.name)("value", e), X("name", e.name), s(), _("for", e.name), s(), N(e.name);
    }
}

function bs(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 63)(1, "p-checkbox", 118), R("onChange", function(t) {
            m(e);
            let n = p(2);
            return g(n.checkExceptionCategoryGroup(t));
        }), a(), r(2, "label", 117), S(3), a()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(), _("id", e.name)("formControl", i.exceptionCtgGroup)("value", e)("name", e.name), X("name", e.name), s(), _("for", e.name), s(), N(e.name);
    }
}

function xs(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "app-dropdown-editor", 119, 2)(2, "div", 85)(3, "header", 86)(4, "h2"), d(5, 30), a()(), h(6, "p-datePicker", 120, 3), r(8, "footer", 91)(9, "div", 121)(10, "div", 122)(11, "span", 123)(12, "p-radioButton", 124), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationNext7());
        }), a(), r(13, "label", 125), d(14, 31), a()(), r(15, "span", 123)(16, "p-radioButton", 126), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationNext14());
        }), a(), r(17, "label", 127), d(18, 32), a()(), r(19, "span", 123)(20, "p-radioButton", 128), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationCustom());
        }), a(), r(21, "label", 129), d(22, 33), a()(), r(23, "span", 123)(24, "p-radioButton", 130), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationNone());
        })("keydown.enter", function() {
            m(e);
            let t = p(2);
            return g(t.creationNone());
        })("keydown.space", function() {
            m(e);
            let t = p(2);
            return g(t.creationNone());
        }), a(), r(25, "label", 131), d(26, 34), a()()(), h(27, "br"), r(28, "div", 132)(29, "button", 95), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.clearCreationDate());
        }), G(30), d(31, 35), k(), a(), r(32, "button", 96), R("click", function(t) {
            m(e);
            let n = j(1),
                l = p(2);
            return g(l.applyCreationDate(t, n));
        }), G(33), d(34, 36), k(), a()()()()()();
    }
    if (o & 2) {
        let e = p(2);
        _("value", e.selectedDateRange), s(6), _("minDate", e.oneTimeMinDate)("inline", !0)("readonlyInput", !0)("numberOfMonths", 2)("autofocus", !0)("tabIndex", 0), s(18), _("autofocus", !0);
    }
}

function Ls(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div")(1, "div", 122)(2, "span", 123)(3, "p-radioButton", 133), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationNext7());
        }), a(), r(4, "label", 134), d(5, 37), a()(), r(6, "span", 123)(7, "p-radioButton", 135), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationNext14());
        }), a(), r(8, "label", 127), d(9, 38), a()(), r(10, "span", 123)(11, "p-radioButton", 130), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationNone());
        })("keydown.enter", function() {
            m(e);
            let t = p(2);
            return g(t.creationNone());
        })("keydown.space", function() {
            m(e);
            let t = p(2);
            return g(t.creationNone());
        }), a(), r(12, "label", 131), d(13, 39), a()()()();
    }
    o & 2 && (s(11), _("autofocus", !0));
}

function Fs(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 136)(1, "p", 137), S(2), r(3, "span", 138), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.showPinWarning = !1);
        }), S(4, "\xD7"), a()()();
    }
    if (o & 2) {
        let e = p(2);
        s(2), de(" ", e.pinWarningMessage, " ");
    }
}

function ws(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 63)(1, "p-checkbox", 118), R("onChange", function(t) {
            m(e);
            let n = p(2);
            return g(n.checkPackageStatusGroup(t));
        }), a(), r(2, "label", 117), S(3), a()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(), _("id", e.name)("formControl", i.packageStatusGroup)("value", e)("name", e.name), X("name", e.name), s(), _("for", e.name), s(), N(e.name);
    }
}

function Gs(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 47)(1, "form", 48)(2, "div", 49)(3, "label", 50)(4, "b"), d(5, 7), a()(), r(6, "div", 51), C(7, Os, 2, 1, "ng-container", 52), r(8, "a", 53), R("click", function() {
            m(e);
            let t = p();
            return g(t.addShipperDetail());
        }), h(9, "img", 54), r(10, "span"), d(11, 8), a()()()(), r(12, "div", 55)(13, "label", 56)(14, "b"), d(15, 9), a()(), r(16, "div", 51), C(17, Is, 2, 1, "ng-container", 57), r(18, "a", 53), R("click", function() {
            m(e);
            let t = p();
            return g(t.addReceiverDetail());
        }), h(19, "img", 58), r(20, "span"), d(21, 10), a()()()(), r(22, "div", 59)(23, "label", 60)(24, "b"), d(25, 11), a()(), r(26, "div", 61)(27, "span")(28, "b"), d(29, 12), a()(), h(30, "br"), r(31, "div", 62)(32, "div", 63)(33, "p-checkbox", 64), R("onChange", function(t) {
            m(e);
            let n = p();
            return g(n.checkAnyPriorityCategories(t));
        }), a(), r(34, "label", 65), S(35), a()(), C(36, ys, 4, 7, "div", 66), a()(), r(37, "div", 61)(38, "span")(39, "b"), d(40, 13), a()(), h(41, "br"), r(42, "div", 62)(43, "div", 63)(44, "p-checkbox", 67), R("onChange", function(t) {
            m(e);
            let n = p();
            return g(n.checkAnyTimeOfDeliveryGroup(t));
        }), a(), r(45, "label", 68), S(46), a()(), C(47, Ds, 4, 7, "div", 66), a()(), r(48, "div", 69)(49, "span")(50, "b"), d(51, 14), a()(), h(52, "br"), r(53, "div", 62)(54, "div", 63)(55, "p-checkbox", 70), R("onChange", function(t) {
            m(e);
            let n = p();
            return g(n.checkAnyDomesticCategories(t));
        }), a(), r(56, "label", 71), S(57), a()(), C(58, vs, 4, 7, "div", 66), a()()(), r(59, "div", 59)(60, "label", 72)(61, "b"), d(62, 15), a()(), r(63, "div", 69)(64, "div", 62)(65, "div", 63)(66, "p-checkbox", 73), R("onChange", function(t) {
            m(e);
            let n = p();
            return g(n.checkAnyExceptionCategoryGroup(t));
        }), a(), r(67, "label", 74), S(68), a()(), C(69, bs, 4, 7, "div", 66), a()(), h(70, "div", 69), a(), r(71, "div", 75)(72, "label", 76)(73, "b"), d(74, 16), a()(), r(75, "div", 77)(76, "div"), C(77, xs, 35, 8, "app-dropdown-editor", 78)(78, Ls, 14, 1, "div", 79), a()()(), r(79, "div", 80)(80, "label", 81)(81, "b"), d(82, 17), a()(), r(83, "div", 77)(84, "div", 82), h(85, "input", 83), r(86, "app-dropdown-editor", 84, 0)(88, "div", 85)(89, "header", 86)(90, "h2"), d(91, 18), a()(), r(92, "div", 87)(93, "label", 88)(94, "p"), d(95, 19), a()(), r(96, "textarea", 89), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.user.userData.view.signature.pinText, t) || (n.user.userData.view.signature.pinText = t), g(t);
        }), a()(), C(97, Fs, 5, 1, "div", 90), r(98, "footer", 91)(99, "div", 92)(100, "button", 93), R("click", function() {
            m(e);
            let t = j(104);
            return g(t.click());
        }), G(101), d(102, 20), k(), a(), r(103, "input", 94, 1), R("change", function(t) {
            m(e);
            let n = p();
            return g(n.handlePinFile(t));
        }), a()(), r(105, "div", 92)(106, "button", 95), R("click", function() {
            m(e);
            let t = p();
            return g(t.clearShipmentPins());
        }), G(107), d(108, 21), k(), a(), r(109, "button", 96), R("click", function(t) {
            m(e);
            let n = j(87),
                l = p();
            return g(l.applyPinEntry(t, n));
        }), G(110), d(111, 22), k(), a()()()()()()()(), r(112, "div", 59)(113, "label", 97)(114, "b"), d(115, 23), a()(), r(116, "div", 69)(117, "div", 62)(118, "div", 63)(119, "p-checkbox", 98), R("onChange", function(t) {
            m(e);
            let n = p();
            return g(n.checkAnyPackageStatusGroup(t));
        }), a(), r(120, "label", 99), S(121), a()(), C(122, ws, 4, 7, "div", 66), a()()()()();
    }
    if (o & 2) {
        let e = p();
        s(), _("formGroup", e.optionalForm), s(6), _("ngIf", e.shipperDetail), s(10), _("ngIf", e.receiverDetail), s(18), N(e.Any), s(), _("ngForOf", e.priorityCategories), s(10), N(e.Any), s(), _("ngForOf", e.timeOfDeliveryCategories), s(10), N(e.Any), s(), _("ngForOf", e.domesticCategories), s(10), N(e.Any), s(), _("ngForOf", e.optionsExceptionCategories), s(7), ut(e.reportType === e.RecurringType.ONETIME ? "col-5" : "col-12"), s(), _("ngIf", e.reportType === e.RecurringType.ONETIME), s(), _("ngIf", e.reportType !== "onetime"), s(8), _("value", e.user.userData.view.signature.pinSummary)("autofocus", !0), s(10), x("ngModel", e.user.userData.view.signature.pinText), _("autofocus", !0)("ngModelOptions", K(25, Es))("tabIndex", 0), s(), _("ngIf", e.showPinWarning), s(6), _("hidden", !0), s(18), N(e.Any), s(), _("ngForOf", e.optionsPackageStatus);
    }
}
var vr = (() => {
    class o {
        constructor(e, i, t, n, l, u) {
            this.formBuilder = e, this.renderer = i, this.el = t, this.lookupDataService = n, this.localeService = l, this.user = u, this.RecurringType = V, this.showOptionalFilter = !1, this.shipperItems = new Cn([]), this.receiverItems = new Cn([]), this.selectedDateRange = "None", this.minimumDate = new Date(), this.oneTimeMinDate = new Date(), this.deliveryDateDisable = !0, this.hasShipperName = !0, this.hasReceiverName = !0, this.hasShipperOperator = !0, this.hasReceiverOperator = !0, this.hasShipperText = !0, this.hasReceiverText = !0, this.shipperOperatorArray = [], this.receiverOperatorArray = [], this.textErrorIndex = -1, this.pinLimit = zt.pinLimit, this.initialDate = ["", ""], this.receiverOperator = [{
                name: "Starts with",
                value: "startswith",
                inactive: !1
            }, {
                name: "Contains",
                value: "contains",
                inactive: !1
            }, {
                name: "Not contains",
                value: "notcontains",
                inactive: !1
            }, {
                name: "Ends with",
                value: "endswith",
                inactive: !1
            }, {
                name: "Equals",
                value: "equals",
                inactive: !1
            }], this.shipperField = [], this.receiverField = [], this.selectedAnyPriorityCategories = new ge(["any"]), this.selectedPriorityCategories = new ge([]), this.priorityCategories = [{
                name: "Express",
                key: "express"
            }, {
                name: "Ground",
                key: "ground"
            }], this.updateCheckedExceptionCategory = new J(), this.updateCheckedServiceDomestic = new J(), this.updateCheckedServicePriority = new J(), this.updateCheckedServiceTimeOfDelivery = new J(), this.updateShipperDetailsEmitter = new J(), this.updateReceiverDetailsEmitter = new J(), this.updatePackageStatus = new J(), this.updatedeliveryDateRange = new J(), this.Any = "Any", this.selectedTimeOfDeliveryCategories = new ge(["any"]), this.timeOfDeliveryCategories = [{
                name: "9 AM",
                key: "9AM"
            }, {
                name: "10:30 AM",
                key: "1030AM"
            }, {
                name: "Noon",
                key: "noon"
            }, {
                name: "Evening",
                key: "evening"
            }, {
                name: "End Of Day",
                key: "endofDay"
            }], this.domesticCategories = [{
                name: "Canada",
                key: "canada"
            }, {
                name: "US",
                key: "us"
            }, {
                name: "International",
                key: "international"
            }], this.packageStatusColumns = [Re.PACKAGE_STATUS_ATTENTION, Re.PACKAGE_STATUS_DELIVERED, Re.PACKAGE_STATUS_IN_TRANSIT, Re.PACKAGE_STATUS_PICKED_UP, Re.PACKAGE_STATUS_OUT_FOR_DELIVERY], this.exceptionCategoriesColumns = [Le.ADDRESS_CORRECTION, Le.APPOINTMENT_REQUIRED, Le.PICKUP_AVAILABLE, Le.CUSTOMS, Le.DAMAGED, Le.DELAYED, Le.OTHER, Le.UNDEFINED, Le.RECEIVER_UNAVAILABLE], this.showPinWarning = !1, this.pinWarningMessage = "You have exceeded the maximum of 3,000 PINs.  Please reduce your query to 3,000 or less PINs", this.showOptionalFilterTxt = "Show optional filters", this.hideOptionalFilterTxt = "Hide optional filters", this.optionsExceptionCategories = [], this.optionsPackageStatus = [], this.updateShipperItems = (T, f) => {
                let M = this.shipperItems.get(f.toString()) ? .get("shipperName") ? .getRawValue(),
                    D = this.shipperOperatorArray.find(v => v.shipperName === M),
                    b = this.receiverOperator.filter(v => !D ? .shipperOperators.includes(v.value));
                this.shipperItems.get(f.toString()) ? .get("shipperFilterOperator") ? .setValue(b[0].value);
            }, this.updateReceiverItems = (T, f) => {
                let M = this.receiverItems.get(f.toString()) ? .get("receiverName") ? .getRawValue(),
                    D = this.receiverOperatorArray.find(v => v.receiverName === M),
                    b = this.receiverOperator.filter(v => !D ? .receiverOperators.includes(v.value));
                this.receiverItems.get(f.toString()) ? .get("receiverFilterOperator") ? .setValue(b[0].value);
            }, this.formBuilder = e;
        }
        ngOnInit() {
            this.optionalForm = this.formBuilder.group({
                priorityGroup: [],
                anyPriorityGroup: [],
                timeOfDeliveryGroup: [],
                anytimeOfDeliveryGroup: [],
                anyExceptionCategoryGroup: [],
                exceptionCategoryGroup: [],
                domesticGroup: [],
                anyDomesticGroup: [],
                shipperDetail: this.formBuilder.array([]),
                receiverDetail: this.formBuilder.array([]),
                anyPackageStatusGroup: [],
                packageStatusGroup: [],
                deliveryDays: ["none"],
                deliveryDateRange: this.initialDate,
                reportShippingPINS: [""]
            }), this.initializeLocalizedFields(), this.createShipperOptions(), this.createReceiverOptions(), this.initializedFormControls(), this.addShipperDetail(), this.addReceiverDetail(), this.eventsSubscription = this.events.subscribe(e => this.setOptionalFiltersOnEdit(e));
        }
        initializeLocalizedFields() {
            this.lookupDataService.getAllByGroup("packageStatus").subscribe(e => {
                this.packageStatusColumns.forEach((i, t) => {
                    this.optionsPackageStatus.push({
                        name: E.getColumnHeaderByField(e, i, this.localeService.getLocale()),
                        key: i,
                        sequence: t
                    });
                });
            }), this.lookupDataService.getAllByGroup("packageSubStatus").subscribe(e => {
                this.exceptionCategoriesColumns.forEach((i, t) => {
                    this.optionsExceptionCategories.push({
                        name: E.getColumnHeaderByField(e, i, this.localeService.getLocale()),
                        key: i,
                        sequence: t
                    });
                });
            });
        }
        initializedFormControls() {
            [this.optionsExceptionCategories.length, 0].includes(this.exceptionCategories.length) ? (this.updateCheckedExceptionCategory.emit([]), this.optionalForm.controls.anyExceptionCategoryGroup.setValue(["any"])) : this.optionalForm.controls.exceptionCategoryGroup.setValue(this.exceptionCategories), [this.domesticCategories.length, 0].includes(this.domesticCategory.length) ? (this.updateCheckedServiceDomestic.emit([]), this.optionalForm.controls.anyDomesticGroup.setValue(["any"])) : this.optionalForm.controls.domesticGroup.setValue(this.domesticCategory), [this.priorityCategories.length, 0].includes(this.priorityCategory.length) ? (this.updateCheckedServicePriority.emit([]), this.optionalForm.controls.anyPriorityGroup.setValue(["any"])) : this.optionalForm.controls.priorityGroup.setValue(this.priorityCategory), [this.timeOfDeliveryCategories.length, 0].includes(this.timeOfDeliveryCategory.length) ? (this.updateCheckedServiceTimeOfDelivery.emit([]), this.optionalForm.controls.anytimeOfDeliveryGroup.setValue(["any"])) : this.optionalForm.controls.timeOfDeliveryGroup.setValue(this.timeOfDeliveryCategory), [this.optionsPackageStatus.length, 0].includes(this.packageStatus.length) ? (this.updatePackageStatus.emit([]), this.optionalForm.controls.anyPackageStatusGroup.setValue(["any"])) : this.optionalForm.controls.packageStatusGroup.setValue(this.packageStatus);
            let u = this.shipperUpdatedDetails;
            u && u.length > 0 && (this.shipperItems = this.optionalForm.controls.shipperDetail, u.forEach(f => {
                this.shipperItems.push(this.formBuilder.group({
                    shipperName: {
                        value: f.shipperName,
                        disabled: !0
                    },
                    shipperFilterOperator: {
                        value: f.shipperFilterOperator,
                        disabled: !0
                    },
                    shipperText: {
                        value: f.shipperText,
                        disabled: !0
                    }
                }));
            }));
            let T = this.receiverUpdatedDetails;
            T && T.length > 0 && (this.receiverItems = this.optionalForm.controls.receiverDetail, T.forEach(f => {
                this.receiverItems.push(this.formBuilder.group({
                    receiverName: {
                        value: f.receiverName,
                        disabled: !0
                    },
                    receiverFilterOperator: {
                        value: f.receiverFilterOperator,
                        disabled: !0
                    },
                    receiverText: {
                        value: f.receiverText,
                        disabled: !0
                    }
                }));
            }));
        }
        checkAnyPriorityCategories(e) {
            this.optionalForm.controls.priorityGroup.setValue([]), this.updateCheckedServicePriority.emit([]), this.optionalForm.controls.anyPriorityGroup.setValue(["any"]);
        }
        checkPriorityCategories(e) {
            e.checked[0] && this.optionalForm.controls.anyPriorityGroup.setValue([]);
            let i = this.optionalForm.controls.priorityGroup.value;
            [this.priorityCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyPriorityGroup.setValue(["any"]), this.optionalForm.controls.priorityGroup.setValue([]), this.updateCheckedServicePriority.emit(this.priorityCategories);
            }, 800) : this.updateCheckedServicePriority.emit(i);
        }
        get priorityCtg() {
            return this.optionalForm.get("priorityGroup");
        }
        checkAnyTimeOfDeliveryGroup(e) {
            this.optionalForm.controls.timeOfDeliveryGroup.setValue([]), this.updateCheckedServiceTimeOfDelivery.emit([]), this.optionalForm.controls.anytimeOfDeliveryGroup.setValue(["any"]);
        }
        checkTimeOfDeliveryGroup(e) {
            e.checked[0] && this.optionalForm.controls.anytimeOfDeliveryGroup.setValue([]);
            let i = this.optionalForm.controls.timeOfDeliveryGroup.value;
            [this.timeOfDeliveryCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anytimeOfDeliveryGroup.setValue(["any"]), this.optionalForm.controls.timeOfDeliveryGroup.setValue([]), this.updateCheckedServiceTimeOfDelivery.emit(this.timeOfDeliveryCategories);
            }, 800) : this.updateCheckedServiceTimeOfDelivery.emit(i);
        }
        get timeOfDeliveryCtg() {
            return this.optionalForm.get("timeOfDeliveryGroup");
        }
        checkAnyDomesticCategories(e) {
            this.optionalForm.controls.domesticGroup.setValue([]), this.updateCheckedServiceDomestic.emit([]), this.optionalForm.controls.anyDomesticGroup.setValue(["any"]);
        }
        checkDomesticCategories(e) {
            e.checked[0] && this.optionalForm.controls.anyDomesticGroup.setValue([]);
            let i = this.optionalForm.controls.domesticGroup.value;
            [this.domesticCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyDomesticGroup.setValue(["any"]), this.optionalForm.controls.domesticGroup.setValue([]), this.updateCheckedServiceDomestic.emit(this.domesticCategories);
            }, 800) : this.updateCheckedServiceDomestic.emit(i);
        }
        get domesticCtg() {
            return this.optionalForm.get("domesticGroup");
        }
        toggleOptionalFilter() {
            this.showOptionalFilter = !this.showOptionalFilter;
        }
        toggleByKeyboard(e) {
            (e.key === "Enter" || e.keyCode === 13) && this.toggleOptionalFilter();
        }
        get shipperDetail() {
            return this.optionalForm ? .get("shipperDetail");
        }
        get receiverDetail() {
            return this.optionalForm ? .get("receiverDetail");
        }
        createShipperOptions() {
            this.lookupDataService.getAllByGroup("column").subscribe(e => {
                this.shipperField.push({
                    value: E.SHIPPERNAME,
                    name: E.SHIPPERNAME
                }), this.shipperField.push({
                    value: E.SHIPPERCOMPANYNAME,
                    name: E.SHIPPERCOMPANYNAME
                }), this.shipperField.push({
                    value: E.SHIPPERPROVINCESTATE,
                    name: E.SHIPPERPROVINCESTATE
                }), this.shipperField.push({
                    value: E.SHIPPERCITY,
                    name: E.SHIPPERCITY
                }), this.shipperField.push({
                    value: E.SHIPPERPOSTALZIPCODE,
                    name: E.SHIPPERPOSTALZIPCODE
                }), this.shipperField.push({
                    value: E.SHIPPERSTREETADDRESS1,
                    name: E.SHIPPERSTREETADDRESS1
                }), this.shipperField.push({
                    value: E.SHIPPERSTREETADDRESS2,
                    name: E.SHIPPERSTREETADDRESS2
                }), this.shipperField.push({
                    value: E.SHIPPERSTREETADDRESS3,
                    name: E.SHIPPERSTREETADDRESS3
                }), E.localize(e, this.localeService.getLocale(), this.shipperField, "value", "name");
            });
        }
        createReceiverOptions() {
            this.lookupDataService.getAllByGroup("column").subscribe(e => {
                this.receiverField.push({
                    value: E.RECEIVERNAME,
                    name: E.RECEIVERNAME
                }), this.receiverField.push({
                    value: E.RECEIVERCOMPANYNAME,
                    name: E.RECEIVERCOMPANYNAME
                }), this.receiverField.push({
                    value: E.RECEIVERPROVINCESTATE,
                    name: E.RECEIVERPROVINCESTATE
                }), this.receiverField.push({
                    value: E.RECEIVERCITY,
                    name: E.RECEIVERCITY
                }), this.receiverField.push({
                    value: E.RECEIVERPOSTALZIPCODE,
                    name: E.RECEIVERPOSTALZIPCODE
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS1,
                    name: E.RECEIVERADDRESS1
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS2,
                    name: E.RECEIVERADDRESS2
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS3,
                    name: E.RECEIVERADDRESS3
                }), E.localize(e, this.localeService.getLocale(), this.receiverField, "value", "name");
            });
        }
        creationNext7() {
            if (this.setExpectedDeliveryDateForScheduledReport()) return;
            let e = new Date(Date.now() + 7 * 24 * 60 * 60 * 1e3),
                i = new Date();
            this.optionalForm.controls.deliveryDateRange.setValue([i, e]), this.deliveryDateDisable = !0, this.optionalForm.controls.deliveryDateRange.disable({
                emitEvent: !1
            });
        }
        creationNext14() {
            if (this.setExpectedDeliveryDateForScheduledReport()) return;
            let e = new Date(Date.now() + 14 * 24 * 60 * 60 * 1e3),
                i = new Date();
            this.optionalForm.controls.deliveryDateRange.setValue([i, e]), this.deliveryDateDisable = !0, this.optionalForm.controls.deliveryDateRange.disable({
                emitEvent: !1
            });
        }
        creationCustom() {
            let e = new Date();
            this.optionalForm.controls.deliveryDateRange.setValue([e, e]), this.deliveryDateDisable = !1, this.optionalForm.controls.deliveryDateRange.enable({
                emitEvent: !1
            }), this.oneTimeMinDate = new Date(), this.oneTimeMinDate.setMonth(this.oneTimeMinDate.getMonth() - 1), this.oneTimeMinDate.setFullYear(this.oneTimeMinDate.getFullYear() - 1);
        }
        creationNone() {
            this.setExpectedDeliveryDateForScheduledReport() || (this.deliveryDateDisable = !0, this.optionalForm.controls.deliveryDateRange.disable({
                emitEvent: !1
            }), this.optionalForm.controls.deliveryDays.setValue("none"), this.optionalForm.controls.deliveryDateRange.setValue(["", ""]));
        }
        clearCreationDate() {
            this.creationNone(), this.selectedDateRange = "None";
        }
        applyCreationDate(e, i) {
            let t = this.optionalForm.controls.deliveryDateRange.value,
                n = this.optionalForm.controls.deliveryDays.value;
            if (["next7", "next14", "none"].includes(n)) n === "next7" ? this.selectedDateRange = "Next 7 days" : n === "next14" ? this.selectedDateRange = "Next 14 Days" : this.selectedDateRange = "None";
            else if (t && t[0] != "") {
                let u = t.toString().split(",");
                u[1] ? this.selectedDateRange = Ue(new Date(u[0])) + " - " + Ue(new Date(u[1])) : (this.selectedDateRange = Ue(new Date(u[0])) + " - " + Ue(new Date(u[0])), this.optionalForm.controls.deliveryDateRange.setValue([u[0], u[0]]));
            }
            let l = t;
            l && l[0] != "" ? this.updatedeliveryDateRange.emit(l) : this.updatedeliveryDateRange.emit("none"), i.isExpanded$.next(!1);
        }
        addShipperDetail() {
            if (this.shipperItems = this.optionalForm.controls.shipperDetail, this.shipperItems.length > 0) {
                if (this.checkShipperDetails(null, this.shipperItems.length - 1), this.shipperItems.length == 1 && (this.shipperItems.get("0") ? .get("shipperName") ? .enable(), this.shipperItems.get("0") ? .get("shipperFilterOperator") ? .enable(), this.shipperItems.get("0") ? .get("shipperText") ? .enable()), this.shipperItems.getRawValue().some(i => !i.shipperText || !i.shipperName || !i.shipperFilterOperator)) return;
                this.shipperItems.get((this.shipperItems.length - 1).toString()) ? .get("shipperName") ? .disable(), this.shipperItems.get((this.shipperItems.length - 1).toString()) ? .get("shipperFilterOperator") ? .disable(), this.shipperItems.get((this.shipperItems.length - 1).toString()) ? .get("shipperText") ? .disable();
            }
            this.shipperItems.push(this.formBuilder.group({
                shipperName: [""],
                shipperFilterOperator: [""],
                shipperText: [""]
            }));
        }
        addReceiverDetail() {
            if (this.receiverItems = this.optionalForm.controls.receiverDetail, this.receiverItems.length > 0) {
                if (this.checkReceiverDetails(null, this.receiverItems.length - 1), this.receiverItems.length == 1 && (this.receiverItems.get("0") ? .get("receiverName") ? .enable(), this.receiverItems.get("0") ? .get("receiverFilterOperator") ? .enable(), this.receiverItems.get("0") ? .get("receiverText") ? .enable()), this.receiverItems.getRawValue().some(i => !i.receiverText || !i.receiverName || !i.receiverFilterOperator)) return;
                this.receiverItems.get((this.receiverItems.length - 1).toString()) ? .get("receiverName") ? .disable(), this.receiverItems.get((this.receiverItems.length - 1).toString()) ? .get("receiverFilterOperator") ? .disable(), this.receiverItems.get((this.receiverItems.length - 1).toString()) ? .get("receiverText") ? .disable();
            }
            this.receiverItems.push(this.formBuilder.group({
                receiverName: [""],
                receiverFilterOperator: [""],
                receiverText: [""]
            }));
        }
        removeShipperDetail(e) {
            this.enableFilterOperator(e), this.shipperItems.removeAt(e), this.shipperItems.length == 1 && (this.shipperItems.get("0") ? .get("shipperName") ? .enable(), this.shipperItems.get("0") ? .get("shipperFilterOperator") ? .enable(), this.shipperItems.get("0") ? .get("shipperText") ? .enable()), this.updateShipperDetailsEmitter.emit(this.shipperItems.getRawValue());
        }
        removeReceiverDetail(e) {
            this.enableReceiverFilterOperator(e), this.receiverItems.removeAt(e), this.receiverItems.length == 1 && (this.receiverItems.get("0") ? .get("receiverName") ? .enable(), this.receiverItems.get("0") ? .get("receiverFilterOperator") ? .enable(), this.receiverItems.get("0") ? .get("receiverText") ? .enable()), this.updateReceiverDetailsEmitter.emit(this.receiverItems.getRawValue());
        }
        checkAnyExceptionCategoryGroup(e) {
            this.optionalForm.controls.exceptionCategoryGroup.setValue([]), this.updateCheckedExceptionCategory.emit([]), this.optionalForm.controls.anyExceptionCategoryGroup.setValue(["any"]);
        }
        checkExceptionCategoryGroup(e) {
            e.checked[0] && this.optionalForm.controls.anyExceptionCategoryGroup.setValue([]);
            let i = this.optionalForm.controls.exceptionCategoryGroup.value;
            [this.optionsExceptionCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyExceptionCategoryGroup.setValue(["any"]), this.optionalForm.controls.exceptionCategoryGroup.setValue([]), this.updateCheckedExceptionCategory.emit([]);
            }, 800) : this.updateCheckedExceptionCategory.emit(i);
        }
        get exceptionCtgGroup() {
            return this.optionalForm ? .get("exceptionCategoryGroup");
        }
        checkAnyPackageStatusGroup(e) {
            this.optionalForm.controls.packageStatusGroup.setValue([]), this.updatePackageStatus.emit([]), this.optionalForm.controls.anyPackageStatusGroup.setValue(["any"]);
        }
        checkPackageStatusGroup(e) {
            e.checked[0] && this.optionalForm.controls.anyPackageStatusGroup.setValue([]);
            let i = this.optionalForm.controls.packageStatusGroup.value;
            [this.optionsPackageStatus.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyPackageStatusGroup.setValue(["any"]), this.optionalForm.controls.packageStatusGroup.setValue([]), this.updatePackageStatus.emit([]);
            }, 800) : this.updatePackageStatus.emit(i);
        }
        setExpectedDeliveryDateForScheduledReport() {
            if (this.reportType ? .toLocaleLowerCase() !== V.ONETIME) {
                let e = this.optionalForm.controls.deliveryDays.value;
                return this.updatedeliveryDateRange.emit(e), !0;
            } else return !1;
        }
        get packageStatusGroup() {
            return this.optionalForm ? .controls.packageStatusGroup;
        }
        handlePinFile(e) {
            let i = e.target.files[0];
            if (i.type !== "text/plain" && i.type !== "text/csv") {
                this.pinWarningMessage = "Please upload a valid CSV file", this.showPinWarning = !0;
                return;
            }
            this.showPinWarning = !1;
            let t = new FileReader();
            t.onloadend = n => {
                let l = t.result,
                    u = [];
                l !== null && (u = l.replace(/\r?\n/g, ",").split(",")), this.user.userData.view.signature.pinText = "";
                for (let T = 0; T < u.length; T++) u[T].trim() !== "" && (this.user.userData.view.signature.pinText += u[T].trim() + `
`);
            }, t.readAsText(i);
        }
        clearShipmentPins() {
            this.user.userData.view.signature.pinText = "", this.user.updatePinEntry(), this.showPinWarning = !1;
        }
        applyPinEntry(e, i) {
            this.user.updatePinEntry(), this.showPinWarning = !1;
            var t = new oi();
            this.user.userData.view.signature.pinText === "" || this.user.userData.view.signature.pins.length > this.pinLimit && (this.showPinWarning = !0), !(e === void 0 || i === void 0 || this.user.userData.view.signature.pins.length > this.pinLimit) && i.isExpanded$.next(!1);
        }
        checkShipperDetails(e, i) {
            let t = this.shipperItems.get(i.toString()) ? .get("shipperName") ? .getRawValue(),
                n = this.shipperItems.get(i.toString()) ? .get("shipperFilterOperator") ? .getRawValue(),
                l = this.shipperItems.get(i.toString()) ? .get("shipperText") ? .getRawValue();
            this.selectedShipperName = t;
            let u = -1,
                T = !0,
                f = !0,
                M = !0;
            if (t || (T = !1, u = i), n || (f = !1, u = i), (!l || l && l.trim() === "") && (M = !1, u = i), this.textErrorIndex = u, this.hasShipperName = T, this.hasShipperOperator = f, this.hasShipperText = M, !T || !f || !M) {
                e && e.constructor === PointerEvent && e.preventDefault();
                return;
            }
            this.addOrUpdateOperatorArray(i);
        }
        updateShipperDetails(e) {
            let i = this.shipperItems.getRawValue();
            this.hasShipperName && this.hasShipperOperator && (this.disableFilterOperator(e), this.updateShipperDetailsEmitter.emit(i));
        }
        disableFilterOperator(e) {
            this.addOrUpdateOperatorArray(e), this.shipperItems.length > 1 && (this.shipperItems.get(e.toString()) ? .get("shipperName") ? .disable(), this.shipperItems.get(e.toString()) ? .get("shipperFilterOperator") ? .disable());
        }
        disableReceiverFilterOperator(e) {
            this.addOrUpdateReceiverOperatorArray(e), this.receiverItems.length > 1 && (this.receiverItems.get(e.toString()) ? .get("receiverName") ? .disable(), this.receiverItems.get(e.toString()) ? .get("receiverFilterOperator") ? .disable());
        }
        addOrUpdateOperatorArray(e) {
            let i = this.shipperOperatorArray.some(l => l.shipperName === this.shipperItems.get(e.toString()) ? .get("shipperName") ? .getRawValue()),
                t = this.shipperItems.get(e.toString()) ? .get("shipperName") ? .getRawValue(),
                n = this.shipperItems.get(e.toString()) ? .get("shipperFilterOperator") ? .getRawValue();
            if (i) {
                if (this.shipperItems.length > 1) {
                    let l = this.shipperOperatorArray.findIndex(T => T.shipperName === t),
                        u = this.shipperOperatorArray[l].shipperOperators;
                    e !== -1 && !u.includes(n) && (this.shipperOperatorArray[l].shipperOperators = [n, ...u]);
                }
            } else {
                let l = {
                    shipperName: t,
                    shipperOperators: [n]
                };
                this.shipperOperatorArray.push(l);
            }
        }
        addOrUpdateReceiverOperatorArray(e) {
            let i = this.receiverOperatorArray.some(l => l.receiverName === this.receiverItems.get(e.toString()) ? .get("receiverName") ? .getRawValue()),
                t = this.receiverItems.get(e.toString()) ? .get("receiverName") ? .getRawValue(),
                n = this.receiverItems.get(e.toString()) ? .get("receiverFilterOperator") ? .getRawValue();
            if (i) {
                if (this.receiverItems.length > 1) {
                    let l = this.receiverOperatorArray.findIndex(T => T.receiverName === t),
                        u = this.receiverOperatorArray[l].receiverOperators;
                    e !== -1 && !u.includes(n) && (this.receiverOperatorArray[l].receiverOperators = [n, ...u]);
                }
            } else {
                let l = {
                    receiverName: t,
                    receiverOperators: [n]
                };
                this.receiverOperatorArray.push(l);
            }
        }
        enableFilterOperator(e) {
            let i = this.shipperOperatorArray.some(l => l.shipperName === this.shipperItems.get(e.toString()) ? .get("shipperName") ? .getRawValue()),
                t = this.shipperItems.get(e.toString()) ? .get("shipperName") ? .getRawValue(),
                n = this.shipperItems.get(e.toString()) ? .get("shipperFilterOperator") ? .getRawValue();
            if (i) {
                let l = this.shipperOperatorArray.findIndex(u => u.shipperName === t);
                this.shipperOperatorArray[l].shipperOperators = this.shipperOperatorArray[l].shipperOperators.filter(u => u !== n), this.shipperItems.get(e.toString()) ? .get("shipperFilterOperator") ? .enable();
            }
        }
        enableReceiverFilterOperator(e) {
            let i = this.receiverOperatorArray.some(l => l.receiverName === this.receiverItems.get(e.toString()) ? .get("receiverName") ? .getRawValue()),
                t = this.receiverItems.get(e.toString()) ? .get("receiverName") ? .getRawValue(),
                n = this.receiverItems.get(e.toString()) ? .get("receiverFilterOperator") ? .getRawValue();
            if (i) {
                let l = this.receiverOperatorArray.findIndex(u => u.receiverName === t);
                this.receiverOperatorArray[l].receiverOperators = this.receiverOperatorArray[l].receiverOperators.filter(u => u !== n), this.receiverItems.get(e.toString()) ? .get("receiverFilterOperator") ? .enable();
            }
        }
        checkReceiverDetails(e, i) {
            let t = this.receiverItems.get(i.toString()) ? .get("receiverName") ? .getRawValue(),
                n = this.receiverItems.get(i.toString()) ? .get("receiverFilterOperator") ? .getRawValue(),
                l = this.receiverItems.get(i.toString()) ? .get("receiverText") ? .getRawValue();
            this.selectedReceiverName = t;
            let u = -1,
                T = !0,
                f = !0,
                M = !0;
            t || (T = !1, u = i), n || (f = !1, u = i), (!l || l && l.trim() === "") && (M = !1, u = i), this.textErrorIndex = u, this.hasReceiverName = T, this.hasReceiverOperator = f, this.hasReceiverText = M, !(!T || !f || !M) && this.addOrUpdateReceiverOperatorArray(i);
        }
        updateReceiverDetails(e) {
            let i = this.receiverItems.getRawValue();
            this.hasReceiverName && this.hasReceiverOperator && (this.disableReceiverFilterOperator(e), this.updateReceiverDetailsEmitter.emit(i));
        }
        addShipperItems(e) {
            e.forEach(i => {
                this.shipperItems.push(this.formBuilder.group({
                    shipperName: [i.shipperName],
                    shipperFilterOperator: [i.shipperFilterOperator],
                    shipperText: [i.shipperText]
                }));
            }), this.updateShipperDetailsEmitter.emit(this.shipperItems.getRawValue());
        }
        addReceiverItems(e) {
            e.forEach(i => {
                this.receiverItems.push(this.formBuilder.group({
                    receiverName: [i.receiverName],
                    receiverFilterOperator: [i.receiverFilterOperator],
                    receiverText: [i.receiverText]
                }));
            }), this.updateReceiverDetailsEmitter.emit(this.receiverItems.getRawValue());
        }
        setOptionalFiltersOnEdit(e) {
            switch (e.topic) {
                case Di.DELIVERY_DATE_RANGE:
                    this.optionalForm.controls.deliveryDays.setValue(e.value), this.updatedeliveryDateRange.emit(e.value);
                    break;
                case Re.PACKAGE_STATUS_CODE:
                    let i = e.value.map(y => y.key),
                        t = this.optionsPackageStatus.filter(y => i.includes(y.key));
                    this.optionalForm.controls.anyPackageStatusGroup.setValue([]), this.optionalForm.controls.packageStatusGroup.setValue(t), this.updatePackageStatus.emit(t);
                    break;
                case E.PACKAGESTATUSSUBCODE:
                    let n = e.value.map(y => y.key),
                        l = this.optionsExceptionCategories.filter(y => n.includes(y.key));
                    this.optionalForm.controls.anyExceptionCategoryGroup.setValue([]), this.optionalForm.controls.exceptionCategoryGroup.setValue(l), this.updateCheckedExceptionCategory.emit(l);
                    break;
                case E.DESCRIPTION:
                    let u = e.value.map(y => y.key),
                        T = this.timeOfDeliveryCategories.filter(y => u.includes(y.key));
                    this.optionalForm.controls.anytimeOfDeliveryGroup.setValue([]), this.optionalForm.controls.timeOfDeliveryGroup.setValue(T), this.updateCheckedServiceTimeOfDelivery.emit(T);
                    break;
                case E.PRODUCTCODE:
                    let f = e.value.map(y => y.key),
                        M = this.priorityCategories.filter(y => f.includes(y.key));
                    this.optionalForm.controls.anyPriorityGroup.setValue([]), this.optionalForm.controls.priorityGroup.setValue(M), this.updateCheckedServicePriority.emit(M);
                    break;
                case E.RECEIVERCOUNTRYCODE:
                    let D = e.value.map(y => y.key),
                        b = this.domesticCategories.filter(y => D.includes(y.key));
                    this.optionalForm.controls.anyDomesticGroup.setValue([]), this.optionalForm.controls.domesticGroup.setValue(b), this.updateCheckedServiceDomestic.emit(b);
                    break;
                default:
                    if (this.shipperField.some(y => y.value === e.topic)) {
                        this.shipperItems.getRawValue()[0].shipperName === "" && this.shipperItems.clear();
                        let y = e.value.map(U => ({
                            shipperName: e.topic,
                            shipperFilterOperator: U.matchMode,
                            shipperText: U.key
                        }));
                        this.addShipperItems(y);
                    }
                    if (this.receiverField.some(y => y.value === e.topic)) {
                        this.receiverItems.getRawValue()[0].receiverName === "" && this.receiverItems.clear();
                        let y = e.value.map(U => ({
                            receiverName: e.topic,
                            receiverFilterOperator: U.matchMode,
                            receiverText: U.key
                        }));
                        this.addReceiverItems(y);
                    }
                    break;
            }
        }
        ngOnDestroy() {
            this.eventsSubscription.unsubscribe();
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(si), A(bt), A(Pi), A(gt), A(ot), A(se));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-optional-filter"]
                ],
                inputs: {
                    formGroupName: "formGroupName",
                    shipperUpdatedDetails: "shipperUpdatedDetails",
                    receiverUpdatedDetails: "receiverUpdatedDetails",
                    exceptionCategories: "exceptionCategories",
                    priorityCategory: "priorityCategory",
                    timeOfDeliveryCategory: "timeOfDeliveryCategory",
                    deliveryDateRange: "deliveryDateRange",
                    domesticCategory: "domesticCategory",
                    packageStatus: "packageStatus",
                    reportType: "reportType",
                    events: "events"
                },
                outputs: {
                    updateCheckedExceptionCategory: "updateCheckedExceptionCategory",
                    updateCheckedServiceDomestic: "updateCheckedServiceDomestic",
                    updateCheckedServicePriority: "updateCheckedServicePriority",
                    updateCheckedServiceTimeOfDelivery: "updateCheckedServiceTimeOfDelivery",
                    updateShipperDetailsEmitter: "updateShipperDetailsEmitter",
                    updateReceiverDetailsEmitter: "updateReceiverDetailsEmitter",
                    updatePackageStatus: "updatePackageStatus",
                    updatedeliveryDateRange: "updatedeliveryDateRange"
                },
                decls: 8,
                vars: 8,
                consts: () => {
                    let e;
                    e = "optional filters";
                    let i;
                    i = "Hide";
                    let t;
                    t = "Show";
                    let n;
                    n = "Expected Delivery Date";
                    let l;
                    l = "PINs";
                    let u;
                    u = "Shipper Details (Name/Address)";
                    let T;
                    T = "Add Shipper Detail";
                    let f;
                    f = "Receiver Details (Name/Address)";
                    let M;
                    M = "Add Receiver Detail";
                    let D;
                    D = "Service Type";
                    let b;
                    b = "Priority";
                    let v;
                    v = "Time of Delivery";
                    let $;
                    $ = "Domestic/US/Intl";
                    let y;
                    y = "Exception Category";
                    let U;
                    U = "Shipment Expected Delivery Date ";
                    let oe;
                    oe = "Shipment PIN(s)";
                    let B;
                    B = "Select PINs to Include";
                    let w;
                    w = " Enter up to 3,000 PINs, one per line or comma separated, or upload a CSV file. ";
                    let pe;
                    pe = "Upload CSV";
                    let Y;
                    Y = "Clear";
                    let Q;
                    Q = "Filter";
                    let Oe;
                    Oe = "Package Status";
                    let Pe;
                    Pe = "Select Shipper Detail";
                    let Ae;
                    Ae = "Select option";
                    let Ne;
                    Ne = " Please select Shipper Detail ";
                    let Me;
                    Me = " Please select Shipper Option ";
                    let I;
                    I = " Please enter text ";
                    let Rt;
                    Rt = "Select Receiver Detail";
                    let Ct;
                    Ct = "Select option";
                    let Tt;
                    Tt = " Please select Receiver Detail ";
                    let ht;
                    ht = " Please select Receiver Option ";
                    let ft;
                    ft = " Please enter text ";
                    let St;
                    St = "Select a Date Range";
                    let Ot;
                    Ot = "Next 7 days";
                    let W;
                    W = "Next 14 days";
                    let Kt;
                    Kt = "Custom";
                    let Zt;
                    Zt = "None";
                    let qt;
                    qt = "Clear";
                    let jt;
                    jt = "Filter";
                    let Qt;
                    Qt = "Next 7 days";
                    let Jt;
                    Jt = "Next 14 days";
                    let ei;
                    return ei = "None", [
                        ["pinEditor", ""],
                        ["chooseFile", ""],
                        ["creationDateEditor", ""],
                        ["pCreationCalendar", ""], e, i, t, u, T, f, M, D, b, v, $, y, U, oe, B, w, pe, Y, Q, Oe, Ne, Me, I, Tt, ht, ft, St, Ot, W, Kt, Zt, qt, jt, Qt, Jt, ei, [1, "optional-filter"],
                        ["tabindex", "0", "aria-controls", "optionalSection", "id", "optionalFilterAccordion", 1, "d-inline-flex", "show-optional-filter", 3, "click", "keypress", "ngClass"],
                        ["class", "show", 4, "ngIf"],
                        ["class", "hide", 4, "ngIf"],
                        ["role", "region", "id", "optionalSection", "aria-labelledby", "optionalFilterAccordion", 4, "ngIf"],
                        [1, "show"],
                        [1, "hide"],
                        ["role", "region", "id", "optionalSection", "aria-labelledby", "optionalFilterAccordion"],
                        [1, "form-horizontal", "mx-3", "mt-3", 3, "formGroup"],
                        [1, "row", "my-3", "mb-4", "shipper-detail-section"],
                        ["for", "shipperDetails", 1, "shipper-control-label", "col-4", "strong"],
                        [1, "col-8"],
                        ["formArrayName", "shipperDetail", 4, "ngIf"],
                        ["href", "javascript:void(0)", 1, "add-receiver-detail-link", 3, "click"],
                        ["src", "assets/images/round-plus.png", "alt", "add shipper detail"],
                        [1, "row", "my-3", "mb-4", "receiver-detail-section"],
                        ["for", "receiverDetails", 1, "receiver-control-label", "col-4", "strong"],
                        ["formArrayName", "receiverDetail", 4, "ngIf"],
                        ["src", "assets/images/round-plus.png", "alt", "add receiver detail"],
                        [1, "row", "my-3", "serviceOptions"],
                        ["for", "serviceType", 1, "control-label", "col-sm-4", "strong", "serviceTypes"],
                        [1, "col-2"],
                        [1, "flex", "flex-column", "gap-2"],
                        [1, "field-checkbox", "p-field-checkbox"],
                        ["inputId", "any", "name", "anyPriorityGroup", "formControlName", "anyPriorityGroup", "value", "any", 3, "onChange"],
                        ["for", "anyPriorityGroup"],
                        ["class", "field-checkbox p-field-checkbox", 4, "ngFor", "ngForOf"],
                        ["inputId", "anytimeOfDeliveryGroup", "name", "anytimeOfDeliveryGroup", "formControlName", "anytimeOfDeliveryGroup", "value", "any", 3, "onChange"],
                        ["for", "anytimeOfDeliveryGroup"],
                        [1, "col"],
                        ["inputId", "any", "formControlName", "anyDomesticGroup", "name", "anyDomesticGroup", "value", "any", 3, "onChange"],
                        ["for", "any"],
                        ["for", "exceptionCategory", 1, "control-label", "col-sm-4", "strong", "exceptionCategory"],
                        ["inputId", "any", "name", "anyExceptionCategoryGroup", "formControlName", "anyExceptionCategoryGroup", "value", "any", 3, "onChange"],
                        ["for", "anyExceptionCategoryGroup"],
                        [1, "row", "pur-form-field-inline", "my-3"],
                        ["for", "shipmentException", 1, "control-label", "col-sm-4", "strong"],
                        [1, "col-sm-8"],
                        ["label", n, "autofocus", "", 3, "value", 4, "ngIf"],
                        [4, "ngIf"],
                        [1, "row", "my-3", "shipmentPins"],
                        ["for", "shipperPins", 1, "receiver-control-label", "col-4", "strong"],
                        [1, "col-5"],
                        ["id", "shipperPins", "type", "text", "formControlName", "reportShippingPINS", 1, "form-control", "report-account", "d-none"],
                        ["label", l, 3, "value", "autofocus"],
                        ["role", "dialog"],
                        [1, "pur-overlaypanel-header"],
                        [1, "pin-panel-content"],
                        ["for", "pin-entry-textarea"],
                        ["id", "pin-entry-textarea", "pTextarea", "", "rows", "6", "cols", "25", 3, "ngModelChange", "ngModel", "autofocus", "ngModelOptions", "tabIndex"],
                        ["class", "pin-warning-area", 4, "ngIf"],
                        [1, "filter-controls__footer"],
                        [1, "filter-controls__actions"],
                        [1, "pur-button", "pur-button--sm", "pur-button--outline", "pur-button--icon-upload", 3, "click"],
                        ["type", "file", "name", "requestfile", 3, "change", "hidden"],
                        ["type", "button", 1, "pur-button", "pur-button--sm", "pur-button--outline", 3, "click"],
                        ["type", "button", 1, "pur-button", "pur-button--sm", "pur-button--dark", 3, "click"],
                        ["for", "packageStatus", 1, "control-label", "col-sm-4", "strong", "exceptionCategory"],
                        ["inputId", "any", "name", "anyPackageStatusGroup", "formControlName", "anyPackageStatusGroup", "value", "any", 3, "onChange"],
                        ["for", "anyPackageStatusGroup"],
                        ["formArrayName", "shipperDetail"],
                        [4, "ngFor", "ngForOf"],
                        [1, "col-12", "mb-3", 3, "formGroupName"],
                        [1, "row", "mb-3"],
                        ["placeholder", Pe, "optionLabel", "name", "optionValue", "value", "formControlName", "shipperName", 1, "receiver-dropdown", 3, "onSelectionChange", "options"],
                        ["class", "p-error block", 4, "ngIf"],
                        [1, "col-5", "col-receiver-operator"],
                        ["placeholder", Ae, "optionLabel", "name", "optionValue", "value", "formControlName", "shipperFilterOperator", 1, "receiver-dropdown", 3, "onSelectionChange", "onClick", "options"],
                        ["src", "assets/images/close.png", "alt", "close icon", 1, "receiver-close", 3, "click", "ngClass"],
                        [1, "col-10"],
                        ["id", "shipperDetails", "type", "text", "pInputText", "", "formControlName", "shipperText", 1, "form-control", "p-inputtext-lg", 3, "keyup"],
                        [1, "p-error", "block"],
                        ["formArrayName", "receiverDetail"],
                        ["placeholder", Rt, "optionLabel", "name", "optionValue", "value", "formControlName", "receiverName", 1, "receiver-dropdown", 3, "onSelectionChange", "options"],
                        ["placeholder", Ct, "optionLabel", "name", "optionValue", "value", "formControlName", "receiverFilterOperator", 1, "receiver-dropdown", 3, "onSelectionChange", "onClick", "options"],
                        ["id", "receiverDetails", "type", "text", "pInputText", "", "formControlName", "receiverText", 1, "form-control", "p-inputtext-lg", 3, "keyup"],
                        [3, "onChange", "id", "formControl", "name", "value"],
                        [3, "for"],
                        [3, "onChange", "id", "formControl", "value", "name"],
                        ["label", n, "autofocus", "", 3, "value"],
                        ["inputId", "range", "formControlName", "deliveryDateRange", "selectionMode", "range", 1, "pur-calendar", 3, "minDate", "inline", "readonlyInput", "numberOfMonths", "autofocus", "tabIndex"],
                        [1, "button-wrapper"],
                        [1, "filter-controls__shortcuts", "pur-form", "pur-form--inline"],
                        [1, "pur-form-field"],
                        ["inputId", "creationNext7", "formControlName", "deliveryDays", "name", "deliveryDays", "value", "next7", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationNext7"],
                        ["inputId", "creationNext14", "formControlName", "deliveryDays", "name", "deliveryDays", "value", "next14", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationNext14"],
                        ["inputId", "creationCustom", "formControlName", "deliveryDays", "name", "deliveryDays", "value", "custom", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationCustom"],
                        ["inputId", "creationNone", "formControlName", "deliveryDays", "name", "deliveryDays", "value", "none", 1, "pur-radiobutton", 3, "click", "keydown.enter", "keydown.space", "autofocus"],
                        ["for", "creationNone"],
                        [1, "filter-controls__actions", "pur-form", "pur-form--inline"],
                        ["inputId", "creationNext7", "formControlName", "deliveryDays", "name", "deliveryDays", "value", "NEXT7", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationLast7"],
                        ["inputId", "creationNext14", "formControlName", "deliveryDays", "name", "deliveryDays", "value", "NEXT14", 1, "pur-radiobutton", 3, "click"],
                        [1, "pin-warning-area"],
                        ["id", "pin-warning-text"],
                        [1, "pin-warning-close-btn", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    i & 1 && (r(0, "div", 40)(1, "h4", 41), R("click", function() {
                        return t.toggleOptionalFilter();
                    })("keypress", function(l) {
                        return t.toggleByKeyboard(l);
                    }), C(2, Rs, 2, 0, "span", 42)(3, Cs, 2, 0, "span", 43), r(4, "span"), d(5, 4), a()(), C(6, Gs, 123, 26, "div", 44), h(7, "hr"), a()), i & 2 && (s(), _("ngClass", ee(6, gs, t.showOptionalFilter)), X("aria-label", t.showOptionalFilter ? t.hideOptionalFilterTxt : t.showOptionalFilterTxt)("aria-expanded", t.showOptionalFilter), s(), _("ngIf", t.showOptionalFilter), s(), _("ngIf", !t.showOptionalFilter), s(3), _("ngIf", t.showOptionalFilter));
                },
                dependencies: [ie, me, he, re, fe, ri, $e, Ie, ni, Ve, Gt, Bo, ai, li, Ii, Yn, di, Ko, xi, bi, wi, Fi, rt, Ee, Ze, ve, De, $t, yi, Bt, Pr, Ar],
                styles: [`[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.optional-filter[_ngcontent-%COMP%]{margin-left:-1rem;margin-right:-1rem}.show-optional-filter[_ngcontent-%COMP%]{cursor:pointer;font-size:1.125rem;margin-top:.5rem;margin-bottom:.5rem}.show-optional-filter[_ngcontent-%COMP%]:before{background-image:url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Vector' d='M0 0L5 5L10 0L0 0Z' fill='%23001996'/%3E%3C/svg%3E");position:relative;width:20px;margin:.2rem .25em 0 .6rem;content:"";background-repeat:no-repeat;background-position:center center}.show-optional-filter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:5px;display:inline-flex}.show-optional-filter[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%], .show-optional-filter[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{padding-right:.25rem}.hide-optional-filter[_ngcontent-%COMP%]:before{-moz-transform:scaleY(-1);-webkit-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1)}.shipper-detail-section[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]:last-of-type{margin-bottom:var(--pur-font-desktop-md)!important}.receiver-detail-section[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]:last-of-type{margin-bottom:var(--pur-font-desktop-md)!important}[_nghost-%COMP%]     .receiver-dropdown.p-select{width:100%}[_nghost-%COMP%]     .receiver-dropdown .p-dropdown .p-dropdown-label.p-placeholder{color:var(--text-dark)}[_nghost-%COMP%]     .receiver-dropdown .p-dropdown .p-dropdown-items-wrapper{max-height:100%!important}[_nghost-%COMP%]     .receiver-dropdown .p-dropdown .p-dropdown-items-wrapper .p-dropdown-item{font-size:var(--pur-font-desktop-xxs)}.add-receiver-detail-link[_ngcontent-%COMP%]{color:var(--pur-primary-blue);cursor:pointer;font-size:var(--pur-font-desktop-sm);text-decoration:none}.add-receiver-detail-link[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:.5rem}.col-receiver-operator[_ngcontent-%COMP%]{position:relative}.receiver-close[_ngcontent-%COMP%]{position:absolute;top:0;right:-.938rem}.pin-panel-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--pur-gap);width:35rem;max-width:100%}.pin-warning-area[_ngcontent-%COMP%]{max-width:100%;background-color:#ff000080;color:#000;text-align:center;padding:5px;margin:10px;border-radius:8px}#pin-warning-text[_ngcontent-%COMP%]{margin:0;font-size:12px}.pin-warning-close-btn[_ngcontent-%COMP%]{position:relative;left:2.5px;font-size:15px;cursor:pointer;font-weight:700}.filter-controls__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-block-start:var(--pur-gap)}.filter-controls__footer[_ngcontent-%COMP%]:has(.filter-controls__actions:only-child){justify-content:end}.filter-controls__actions[_ngcontent-%COMP%]{display:flex;gap:var(--pur-xs)}.p-field-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}`]
            });
        }
    }
    return o;
})();
var br = () => ({
        standalone: !0
    }),
    $s = o => ({
        "hide-optional-filter": o
    });

function Vs(o, c) {
    o & 1 && (r(0, "h4", 45), d(1, 5), a());
}

function Bs(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = p().$implicit;
        s(), N(e);
    }
}

function Xs(o, c) {
    if (o & 1 && C(0, Bs, 2, 1, "th", 46), o & 2) {
        let e = c.index,
            i = p();
        _("ngIf", e < i.columnsField.length);
    }
}

function Us(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = c.$implicit;
        s(), N(e.header);
    }
}

function Hs(o, c) {
    o & 1 && (r(0, "span", 47), d(1, 6), a());
}

function zs(o, c) {
    o & 1 && (r(0, "span", 48), d(1, 7), a());
}

function Ys(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "li", 75)(1, "div", 27), R("click", function() {
            m(e);
            let t = p().$implicit,
                n = p(2);
            return n.addColumnToFinalList(t), g(n.showUpdateButton());
        }), h(2, "img", 76), a(), r(3, "div"), S(4), a()();
    }
    if (o & 2) {
        let e = p().$implicit;
        s(4), N(e.header);
    }
}

function Ws(o, c) {
    if (o & 1 && (G(0), C(1, Ys, 5, 1, "li", 74), k()), o & 2) {
        let e = c.$implicit;
        s(), _("ngIf", e.isDisplayed);
    }
}

function Ks(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 27), R("click", function() {
            m(e);
            let t = p().$implicit,
                n = p(2);
            return g(n.removeColumnFromFinalList(t));
        }), h(1, "img", 83), a();
    }
}

function Zs(o, c) {
    if (o & 1 && (G(0), r(1, "div", 77), h(2, "div", 78), r(3, "div", 79)(4, "div", 80)(5, "div"), h(6, "img", 81), a(), r(7, "div"), S(8), a()(), C(9, Ks, 2, 0, "div", 82), a()(), k()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(3), _("cdkDragDisabled", e.field === i.packagePinKey), s(5), N(e.header), s(), _("ngIf", e.field != i.packagePinKey);
    }
}

function qs(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 84)(1, "button", 85), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayUpdateConfModal = !0);
        }), a()();
    }
}

function js(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 86)(1, "button", 87), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayUpdateConfModal = !1);
        }), d(2, 15), a(), r(3, "button", 88), R("click", function() {
            m(e);
            let t = p(2);
            return t.displaySaveColModal = !0, g(t.displayUpdateConfModal = !1);
        }), d(4, 16), a()();
    }
}

function Qs(o, c) {
    o & 1 && (r(0, "p", 89), d(1, 17), a());
}

function Js(o, c) {
    o & 1 && (r(0, "p", 89), d(1, 18), a());
}

function ep(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 86)(1, "button", 87), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displaySaveColModal = !1);
        }), d(2, 19), a(), r(3, "button", 88), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.saveOrUpdateColumnLayout());
        }), d(4, 20), a()();
    }
}

function tp(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 49)(1, "p", 50)(2, "b"), d(3, 8), a()(), r(4, "p", 51), d(5, 9), a(), r(6, "div", 52)(7, "div", 53)(8, "p"), d(9, 10), a(), r(10, "label", 54), S(11, "Search Columns:"), a(), r(12, "div", 55), h(13, "i", 56), r(14, "input", 57), R("keyup", function(t) {
            m(e);
            let n = p();
            return g(n.filterColumn(t));
        }), a()(), r(15, "ul", 58), C(16, Ws, 2, 1, "ng-container", 35), a()(), r(17, "div", 59)(18, "p", 60)(19, "span"), d(20, 11), a(), r(21, "span", 61), S(22), r(23, "span"), d(24, 12), a()()(), r(25, "div", 62)(26, "div", 63), R("cdkDropListDropped", function(t) {
            m(e);
            let n = p();
            return g(n.drop(t));
        }), C(27, Zs, 10, 3, "ng-container", 35), a()(), C(28, qs, 2, 0, "div", 64), r(29, "div", 65)(30, "p-dialog", 66), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayUpdateConfModal, t) || (n.displayUpdateConfModal = t), g(t);
        }), r(31, "p", 67), S(32), a(), C(33, js, 5, 0, "ng-template", null, 0, z), a()(), r(35, "div", 68)(36, "p-dialog", 69), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displaySaveColModal, t) || (n.displaySaveColModal = t), g(t);
        }), r(37, "p", 67), d(38, 13), a(), r(39, "div", 70)(40, "label", 71), d(41, 14), a(), r(42, "input", 72), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.columnLayoutName, t) || (n.columnLayoutName = t), g(t);
        }), R("keypress", function(t) {
            m(e);
            let n = p();
            return g(n.restrictSpecialCharacters(t));
        })("paste", function(t) {
            m(e);
            let n = p();
            return g(n.pasteHandler(t));
        }), a(), C(43, Qs, 2, 0, "p", 73)(44, Js, 2, 0, "p", 73), a(), C(45, ep, 5, 0, "ng-template", null, 0, z), a()()()(), h(47, "hr"), a();
    }
    if (o & 2) {
        let e = p();
        s(16), _("ngForOf", e.additionalColumnAvailable), s(6), de("", e.finalColumn.length, " "), s(4), _("cdkDropListData", e.finalColumn), s(), _("ngForOf", e.finalColumn), s(), _("ngIf", e.showUpdateTableButton), s(2), x("visible", e.displayUpdateConfModal), _("modal", !0), s(2), N(e.savedDialogDetailText), s(4), x("visible", e.displaySaveColModal), _("modal", !0), s(6), x("ngModel", e.columnLayoutName), _("ngModelOptions", K(14, br)), s(), _("ngIf", e.showErrorMessage && !e.columnLayoutName), s(), _("ngIf", e.duplicateReportTitleError && e.columnLayoutName);
    }
}

function ip(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 90)(1, "button", 91), R("click", function() {
            m(e);
            let t = p();
            return g(t.displayCapacityModal = !1);
        }), a()();
    }
}
var xr = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f, M, D) {
            this.user = e, this.lookupDataService = i, this.messageService = t, this.datePipe = n, this.spinner = l, this.apiService = u, this.authService = T, this.reportingDashboardService = f, this.activatedRoute = M, this.localeService = D, this.templates = [], this.columnsField = [], this.showOptionalFilter = !1, this.displayUpdateConfModal = !1, this.displaySaveColModal = !1, this.showErrorMessage = !1, this.columnLayoutName = "", this.selectedFinalColumn = {
                title: "",
                columnList: []
            }, this.templateId = "", this.duplicateReportTitleError = !1, this.showUpdateTableButton = !1, this.titleInvalidCharacters = !1, this.reportType = V.ONETIME, this.outputFormat = zo.CSV, this.redirectToFinalColumnList = !1, this.savedColumnLayoutActiveData = null, this.editMode = !1, this.allColumns = [], this.rowTemplates = [], this.lookupData = [], this.savedDialogDetailText = "We\u2019ve noticed you made changes to the standard column layout, would you like to save it? Saved Layouts can be accessed from your Reporting dashboard, and can be re-used for making future reports.", this.showColumnEditorTxt = "Show Column Editor", this.hideColumnEditorTxt = "Hide Column Editor", this.displayCapacityModal = !1, this.summaryText = " Generated Reports are at Capacity.", this.detailText = " You have reached the maximum number of reports created. Please delete a report to free up space.", this.errorMessages = {
                summary: " Something Went Wrong!",
                detail: " Please try again later. If issue persist again, please contact support team."
            }, this.sendFinalColumnToParent = new J(), this.additionalColumnAvailable = [], this.finalColumn = [], this.packagePinKey = E.PACKAGEPIN, this.standardColumnNames = [E.PACKAGEPIN, E.SHIPMENTCREATED, E.PACKAGESTATUSCODEDESCRIPTION, E.LAST_SCAN_REASON, E.LASTEVENTDATETIME, E.PIECETOTALCOUNT, E.PACKAGEESTIMATEDDELIVERYDATE, E.PACKAGEDELIVERYDATETIME, E.RECEIVERCITY, E.RECEIVERPROVINCESTATE, E.RECEIVERNAME, E.RECEIVERADDRESS1, E.RECEIVERADDRESS2, E.RECEIVERADDRESS3, E.RECEIVERPOSTALZIPCODE, E.SHIPPERACCOUNT, E.SHIPPERCOMPANYNAME, E.SHIPPERSTREETADDRESS1, E.SHIPPERSTREETADDRESS2, E.SHIPPERSTREETADDRESS3, E.SHIPPERCITY, E.SHIPPERPROVINCESTATE, E.SHIPPERPOSTALZIPCODE, E.PRODUCTCODEDESCRIPTION, E.SHIPMENTPIN, E.SHIPMENTTYPEDESCRIPTION, E.WEIGHTVALUE, E.REFERENCE1, E.REFERENCE2], this.additionalColumnNames = [E.WEIGHTUNIT, E.NOTE, E.SHIPPERNAME, E.SHIPPERCOUNTRYCODE, E.RECEIVERCOMPANYNAME, E.RECEIVERCOUNTRYCODE, E.PACKAGEDELIVERYNAME, E.PACKAGESTATUSSUBCODE, E.RETURNSHIPMENT, E.HOLDFORPICKUPLOCATIONID, E.LASTEVENTCITY, E.LASTEVENTPROVINCESTATE, E.PAYERACCOUNT, E.PACKAGEWEIGHTDECLAREDVALUE, E.PACKAGEWEIGHTDECLAREDUNIT, E.PACKAGEREFERENCES, E.REFERENCE3, E.REFERENCE4, E.REFERENCE5, E.PICKUP_DATE, E.PICKUP_TIME, E.TERMINAL_NAME, E.PCH_DANGEROUS_GOODS, E.PCH_EXPRESS_CHEQUE, E.PCH_SATURDAY_DELIVERY, E.PCH_SATURDAY_PICKUP, E.PCH_DECLARED_VALUE, E.PCH_SPECIAL_HANDLING, E.PCH_OSNR, E.PCH_RES_SIG_DOM, E.PCH_RES_SIG_INTL, E.PCH_CHAIN_OF_SIGNATURE, E.PCH_HEALTHCARE, E.X_REFERENCE], this.selectedReportsCode = "";
        }
        createStandardColumns() {
            return this.lookupDataService.getAllByGroup("column").subscribe(e => {
                let i = this.getStandardColumnsHeader(this.standardColumnNames);
                this.columnsField = [], this.standardColumnNames.filter(t => {
                    let n = [E.RECEIVERADDRESS1, E.RECEIVERADDRESS2, E.RECEIVERADDRESS3];
                    return !(!this.authService.isDashBoardViewAddress123Authorised() && n.includes(t));
                }).forEach((t, n) => {
                    this.columnsField.push({
                        field: t,
                        position: n + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: i[n]
                    });
                }), E.updateColumnHeader(e, this.localeService.getLocale(), this.columnsField), this.columnsField = this.columnsField.sort((t, n) => t.field === E.PACKAGEPIN ? -1 : n.field === E.PACKAGEPIN || t.position > n.position ? 1 : -1);
            }), this.columnsField;
        }
        getStandardColumnsHeader(e) {
            let i = [],
                t = 0,
                n = e.length,
                l = Array.from(Array(26)).map((u, T) => String.fromCharCode(T + 65));
            for (; n > 0;) {
                let u = "",
                    T = t;
                for (; T >= 0;) u = l[T % 26] + u, T = Math.floor(T / 26) - 1;
                i.push(u), t++, n--;
            }
            return i;
        }
        ngOnInit() {
            this.finalColumn = this.selectedFinalColumn.columnList, this.allColumns = this.setAllColumns(), this.updateAvailableColumns(this.selectedFinalColumn.columnList), !this.selectedFinalColumn.columnList.length && !this.templateId && (this.finalColumn = this.createStandardColumns(), this.updateAvailableColumns(this.finalColumn)), this.selectedFinalColumn.columnList.length && this.onDataSourceChange(), this.sendFinalColToParent(), this.getSavedColumnData(), this.activatedRoute.params.subscribe(e => {
                this.sheduleReportId = e.reportId, this.sheduleReportId && (this.createFinalizeColumns(), this.updateAvailableColumns(this.finalColumn));
            }), this.editMode && (this.savedDialogDetailText = "We\u2019ve noticed you made changes to the standard column layout, would you like to save it? The new changes will replace existing saved layouts in your reporting dashboard.");
        }
        createFinalizeColumns() {
            return this.lookupDataService.getAllByGroup("column").subscribe(e => {
                let i = this.reportingDashboardService.reportPayLoad.columnLayout.columnNames,
                    t = this.getStandardColumnsHeader(i);
                this.finalColumn = [], this.columnsField = [], i.forEach((n, l) => {
                    this.finalColumn.push({
                        field: n,
                        position: l + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: t[l]
                    }), this.columnsField.push({
                        field: n,
                        position: l + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: t[l]
                    });
                }), E.updateColumnHeader(e, this.localeService.getLocale(), this.finalColumn), E.updateColumnHeader(e, this.localeService.getLocale(), this.columnsField), this.sendFinalColToParent();
            }), this.finalColumn;
        }
        onDataSourceChange() {
            this.columnsField = [], this.columnsField = this.finalColumn;
        }
        toggleOptionalFilter() {
            this.showOptionalFilter = !this.showOptionalFilter;
        }
        toggleByKeyboard(e) {
            (e.key === "Enter" || e.keyCode === 13) && this.toggleOptionalFilter();
        }
        filterColumn(e) {
            let i = e.target.value;
            this.additionalColumnAvailable = this.additionalColumnAvailable.map(t => (t.header.toLowerCase().includes(i ? .toLowerCase()) ? t.isDisplayed = !0 : t.isDisplayed = !1, t));
        }
        addColumnToFinalList(e) {
            this.finalColumn.push(e), this.sendFinalColToParent(), this.showUpdateButton(), this.additionalColumnAvailable = this.additionalColumnAvailable.filter(i => i.field != e.field);
        }
        removeColumnFromFinalList(e) {
            let i = e.field;
            if (this.finalColumn = this.finalColumn.filter(t => t.field != i), this.additionalColumnAvailable.push(e), this.sendFinalColToParent(), this.finalColumn.length == 1) {
                this.showUpdateTableButton = !1;
                return;
            }
            this.showUpdateButton();
        }
        sendFinalColToParent() {
            this.sendFinalColumnToParent.emit({
                title: this.columnLayoutName,
                templateId: this.templateId,
                columnList: this.finalColumn
            });
        }
        drop(e) {
            e.currentIndex !== 0 && (this.showUpdateButton(), jo(e.container.data, e.previousIndex, e.currentIndex));
        }
        saveOrUpdateColumnLayout() {
            let e = this.reportType ? .toLocaleLowerCase() === V.ONETIME ? le.ADHOC : le.SCHEDULED,
                i = `${ne.TRACKING}|${e}`;
            if (this.sendFinalColToParent(), !this.columnLayoutName ? .trim()) {
                this.showErrorMessage = !0;
                return;
            }
            if (this.duplicateTitleChecker()) return;
            let n = this.finalColumn.map(u => u.field),
                l = {
                    userId: this.user.userData.id,
                    creationDate: this.datePipe.transform(new Date(), "yyyy-MM-dd"),
                    title: this.columnLayoutName.trim(),
                    type: i,
                    outputFormat: this.outputFormat,
                    columns: n
                };
            this.templateId && (l.templateId = this.templateId), this.spinner.show("reportLoadingSpinner"), this.apiService.saveUpdateFinalColumnLayout(l).subscribe(u => {
                this.messageService.add({
                    severity: "success",
                    summary: "success",
                    detail: "Column layout created successfully."
                }), this.displaySaveColModal = !1, this.columnLayoutName = "", this.spinner.hide("reportLoadingSpinner"), this.getSavedColumnData();
            }, u => {
                if (this.spinner.hide("reportLoadingSpinner"), this.displaySaveColModal = !1, u ? .error ? .payload ? .includes(Li)) {
                    this.summaryText = "Templates are at Capacity.", this.detailText = "You have reached the maximum number of templates created. Please delete a template to free up space.", this.displayCapacityModal = !0;
                    return;
                }
                let T = this.errorMessages.summary,
                    f = this.errorMessages.detail;
                this.messageService.add({
                    severity: "error",
                    summary: T,
                    detail: f
                });
            });
        }
        restrictSpecialCharacters(e) {
            let i = /[^~|*<>^{}\\/]/g,
                t = String.fromCharCode(e.charCode);
            this.columnLayoutName && this.columnLayoutName.length >= 30 && e.preventDefault(), i.test(t) ? (this.titleInvalidCharacters = !1, this.duplicateReportTitleError = !1) : (this.titleInvalidCharacters = !0, e.preventDefault());
        }
        pasteHandler(e) {
            e.preventDefault();
            let t = (e.clipboardData || window.Clipboard).getData("text") + " ";
            if (!/[~|*<>^{}\\/]/g.test(t)) {
                let l = e.target,
                    u = l.value.substring(0, l.selectionStart || 0),
                    T = l.value.substring(l.selectionEnd || 0),
                    f = u + t + T;
                f && f.trim().length >= 30 && (f = f.substring(0, 30)), l.value = f.trimEnd();
                let M = u.length + t.length;
                l.selectionStart = M, l.selectionEnd = M, this.columnLayoutName = f;
            }
        }
        duplicateTitleChecker() {
            let e = !1,
                i = this.rowTemplates;
            return this.savedColumnLayoutActiveData && (i = i.filter(t => t.title ? .trim() != this.savedColumnLayoutActiveData ? .title ? .trim())), e = i.some(t => t.title ? .trim().toLocaleUpperCase() == this.columnLayoutName ? .trim().toLocaleUpperCase()), e ? (this.duplicateReportTitleError = !0, !0) : (this.duplicateReportTitleError = !1, !1);
        }
        getSavedColumnData() {
            this.apiService.savedColumnLayoutGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                if (e && e.payload) {
                    let i = e.payload;
                    i.forEach(n => {
                        if (n.type) {
                            let l = n.type.indexOf("|");
                            n.reportType = n.type, l !== -1 && (n.type = n.type.substring(0, n.type.indexOf("|")));
                        }
                    });
                    let t = i.filter(n => n.type === ne.TRACKING);
                    this.rowTemplates = i.filter(n => [ne.TRACKING, ne.EXCEPTION].includes(n.type)), this.templates = t;
                }
                this.redirectToFinalColumnList && this.populateFinalColumnList(e.payload);
            });
        }
        showUpdateButton() {
            this.showUpdateTableButton = !0;
        }
        populateFinalColumnList(e) {
            let i = e.find(n => n.templateId == this.templateId),
                t = [];
            i ? .columns ? .forEach(n => {
                let l = this.allColumns.find(u => u.field == n);
                l && t.push(l);
            }), i && t.length > 0 && (this.finalColumn = t, this.columnLayoutName = i.title, this.sendFinalColToParent(), this.updateAvailableColumns(this.finalColumn), this.onDataSourceChange());
        }
        updateAvailableColumns(e) {
            this.additionalColumnAvailable = this.allColumns.map(i => xo(bo({}, i), {
                isDisplayed: !0
            })).filter(i => !e.some(t => t.field == i.field));
        }
        useSaveColumnLayout(e) {
            this.templateId = e.value, this.savedDialogDetailText = "We\u2019ve noticed you made changes to the standard column layout, would you like to save it? The new changes will replace existing saved layouts in your reporting dashboard.", this.populateFinalColumnList(this.templates);
        }
        setAllColumns() {
            return this.lookupDataService.getAllByGroup("column").subscribe(e => {
                let i = this.standardColumnNames.concat(this.additionalColumnNames),
                    t = this.getStandardColumnsHeader(i);
                this.allColumns = [], i.filter(n => {
                    let l = [E.RECEIVERADDRESS1, E.RECEIVERADDRESS2, E.RECEIVERADDRESS3];
                    return !(!this.authService.isDashBoardViewAddress123Authorised() && l.includes(n));
                }).forEach((n, l) => {
                    this.allColumns.push({
                        field: n,
                        position: l + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: t[l]
                    });
                }), E.updateColumnHeader(e, this.localeService.getLocale(), this.allColumns), this.allColumns = this.allColumns.sort((n, l) => n.field === E.PACKAGEPIN ? -1 : l.field === E.PACKAGEPIN || n.position > l.position ? 1 : -1);
            }), this.allColumns;
        }
        handleKeyboardEvent(e) {
            if (e.key === "Tab") {
                let i = document.querySelector(".p-dialog-header-close"),
                    t = document.querySelector(".p-dialog-title");
                i && i.setAttribute("tabindex", "0"), t && t.setAttribute("tabindex", "1");
            }
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(se), A(gt), A(ye), A(ue), A(We), A(xe), A(je), A(Se), A(Ye), A(ot));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-finalize-columns"]
                ],
                hostBindings: function(i, t) {
                    i & 1 && R("keydown", function(l) {
                        return t.handleKeyboardEvent(l);
                    }, !1, vt);
                },
                inputs: {
                    selectedFinalColumn: "selectedFinalColumn",
                    templateId: "templateId",
                    reportType: "reportType",
                    outputFormat: "outputFormat",
                    redirectToFinalColumnList: "redirectToFinalColumnList",
                    savedColumnLayoutActiveData: "savedColumnLayoutActiveData",
                    editMode: "editMode"
                },
                outputs: {
                    sendFinalColumnToParent: "sendFinalColumnToParent"
                },
                features: [Te([ye, ue])],
                decls: 47,
                vars: 21,
                consts: () => {
                    let e;
                    e = "Select from saved column layouts";
                    let i;
                    i = "Report Preview";
                    let t;
                    t = "columns showing";
                    let n;
                    n = "Refresh";
                    let l;
                    l = "Column Editor";
                    let u;
                    u = "Review the orders of the columns in the preview below, or open the column editor to make changes";
                    let T;
                    T = "Hide";
                    let f;
                    f = "Show";
                    let M;
                    M = "Search Columns";
                    let D;
                    D = "Would you like to save your column layout?";
                    let b;
                    b = "Save as Column Layout";
                    let v;
                    v = "Column Editor";
                    let $;
                    $ = "Adjust the column layout for your report using the left panel. Drag column to reorder or remove them. New columns will be added to the bottom of the list. Click \"Update Table\" to save changes and update the preview.";
                    let y;
                    y = "Additional Columns Available";
                    let U;
                    U = "Final Column List";
                    let oe;
                    oe = "selected";
                    let B;
                    B = " To Save the Column Layout for future use, please enter a unique name:";
                    let w;
                    w = "Column Layout Name";
                    let pe;
                    pe = "Update Table";
                    let Y;
                    Y = "No, Continue";
                    let Q;
                    Q = "Yes, Save Layout";
                    let Oe;
                    Oe = "Column Layout Name is required.";
                    let Pe;
                    Pe = " Name already exists, please provide a unique template name ";
                    let Ae;
                    Ae = "Back";
                    let Ne;
                    Ne = "Save Layout";
                    let Me;
                    return Me = "Okay", [
                        ["footer", ""], i, t, n, l, u, T, f, v, $, y, U, oe, B, w, Y, Q, Oe, Pe, Ae, Ne, [1, "container-fluid"],
                        [1, "row"],
                        [1, "col-12"],
                        ["class", "page-title", 4, "ngIf"],
                        [1, "preview"],
                        [1, "report-pill"],
                        [3, "click"],
                        ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-refresh", "aria-label", "refresh", 1, "padding-left", "p-button-rounded", "p-button-text", "refreshIconFinalize", "refresh-icon"],
                        [1, "refresh", "ml-1"],
                        ["placeholder", e, "optionLabel", "title", "optionValue", "templateId", 1, "select-template", "report-dropdown", 3, "ngModelChange", "onSelectionChange", "disabled", "options", "ngModel", "ngModelOptions"],
                        [1, "col-xs-12"],
                        [1, "finalize-column-table-container"],
                        [1, "finalize-column-table"],
                        ["ngFor", "", 3, "ngForOf"],
                        [4, "ngFor", "ngForOf"],
                        [1, "form-hr"],
                        [1, "optional-filter"],
                        ["tabindex", "0", "aria-controls", "columnEditorSection", "id", "columnEditorAccordion", 1, "d-inline-flex", "show-optional-filter", 3, "click", "keypress", "ngClass"],
                        ["class", "show", 4, "ngIf"],
                        ["class", "hide", 4, "ngIf"],
                        ["class", "additional-column", "role", "region", "id", "columnEditorSection", "aria-labelledby", "columnEditorAccordion", 4, "ngIf"],
                        [1, "delete-dailog"],
                        [1, "pur-dialog", 3, "visibleChange", "header", "visible", "modal"],
                        [1, "model-body", "text-left"],
                        [1, "page-title"],
                        [4, "ngIf"],
                        [1, "show"],
                        [1, "hide"],
                        ["role", "region", "id", "columnEditorSection", "aria-labelledby", "columnEditorAccordion", 1, "additional-column"],
                        [1, "column-editor-title"],
                        [1, "column-editor-sub-title"],
                        [1, "flex-row"],
                        [1, "flex-item"],
                        ["for", "searchColumns", 1, "search-field-label"],
                        [1, "search-column"],
                        [1, "pi", "pi-search", "search-icon"],
                        ["id", "searchColumns", "pInputText", "", "type", "text", "placeholder", M, 3, "keyup"],
                        [1, "column-list", "addition-column"],
                        [1, "flex-item", "p-relative"],
                        [1, "flex", "justify-space-between"],
                        [1, "selected-count"],
                        ["cdkDropList", ""],
                        ["cdkDropList", "", 1, "column-list", "final-column-list", 3, "cdkDropListDropped", "cdkDropListData"],
                        ["class", "update-btn", 4, "ngIf"],
                        ["id", "save-dailog", 1, "delete-dailog"],
                        ["header", D, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "model-body", "text-left", "modal-sub-heading"],
                        ["id", "save-dialog-confirm", 1, "delete-dailog"],
                        ["header", b, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "Layout-field"],
                        ["for", "title", 1, "control-label"],
                        ["pInputText", "", "type", "text", "autofocus", "", 1, "form-input", 3, "ngModelChange", "keypress", "paste", "ngModel", "ngModelOptions"],
                        ["class", "p-error block error-message", 4, "ngIf"],
                        ["class", "column-row", 4, "ngIf"],
                        [1, "column-row"],
                        ["src", "assets/images/plus.png", "alt", "plus", 1, "add-btn"],
                        [1, "final-column-items"],
                        [1, "alphabet-counter"],
                        ["cdkDrag", "", 1, "column-row", "justify-space-between", 3, "cdkDragDisabled"],
                        [1, "flex"],
                        ["src", "assets/images/move.png", "alt", "move", 1, "move-btn"],
                        [3, "click", 4, "ngIf"],
                        ["src", "assets/images/cross.png", "alt", "cross", 1, "remove-btn"],
                        [1, "update-btn"],
                        ["pButton", "", "pRipple", "", "type", "button", "label", pe, 1, "pur-button", 3, "click"],
                        [1, "pur-form", "pur-form--inline", "layout-footer"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", 3, "click"],
                        [1, "p-error", "block", "error-message"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", "label", Me, 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1) {
                        let n = P();
                        r(0, "div", 21)(1, "div", 22)(2, "div", 23), C(3, Vs, 2, 0, "h4", 24), a()(), r(4, "div", 22)(5, "div", 23)(6, "span", 25), d(7, 1), a(), r(8, "span", 26), S(9), r(10, "span"), d(11, 2), a()(), r(12, "span", 27), R("click", function() {
                            return m(n), g(t.onDataSourceChange());
                        }), h(13, "button", 28), r(14, "span", 29), d(15, 3), a()(), r(16, "p-select", 30), F("ngModelChange", function(u) {
                            return m(n), L(t.selectedReportsCode, u) || (t.selectedReportsCode = u), g(u);
                        }), R("onSelectionChange", function(u) {
                            return m(n), g(t.useSaveColumnLayout(u));
                        }), a()()(), r(17, "div", 22)(18, "div", 31)(19, "div", 32)(20, "table", 33)(21, "thead")(22, "tr"), h(23, "th"), C(24, Xs, 1, 1, "ng-template", 34), a(), r(25, "tr"), h(26, "th"), C(27, Us, 2, 1, "th", 35), a()(), r(28, "tbody")(29, "tr")(30, "td"), S(31, "1"), a()()()()()()()(), h(32, "br")(33, "hr", 36), r(34, "div", 37)(35, "h4", 38), R("click", function() {
                            return m(n), g(t.toggleOptionalFilter());
                        })("keypress", function(u) {
                            return m(n), g(t.toggleByKeyboard(u));
                        }), C(36, Hs, 2, 0, "span", 39)(37, zs, 2, 0, "span", 40), r(38, "span"), d(39, 4), a()(), C(40, tp, 48, 15, "div", 41), r(41, "div", 42)(42, "p-dialog", 43), F("visibleChange", function(u) {
                            return m(n), L(t.displayCapacityModal, u) || (t.displayCapacityModal = u), g(u);
                        }), r(43, "p", 44), S(44), a(), C(45, ip, 2, 0, "ng-template", null, 0, z), a()()();
                    }
                    i & 2 && (s(3), _("ngIf", !t.editMode), s(6), de("", t.columnsField.length, " "), s(7), _("disabled", t.editMode)("options", t.templates), x("ngModel", t.selectedReportsCode), _("ngModelOptions", K(18, br)), s(8), _("ngForOf", t.getStandardColumnsHeader(t.columnsField)), s(3), _("ngForOf", t.columnsField), s(8), _("ngClass", ee(19, $s, t.showOptionalFilter)), X("aria-label", t.showOptionalFilter ? t.hideColumnEditorTxt : t.showColumnEditorTxt)("aria-expanded", t.showOptionalFilter), s(), _("ngIf", t.showOptionalFilter), s(), _("ngIf", !t.showOptionalFilter), s(3), _("ngIf", t.showOptionalFilter), s(2), _("header", t.summaryText), x("visible", t.displayCapacityModal), _("modal", !0), s(2), N(t.detailText));
                },
                dependencies: [ie, me, he, re, fe, $e, Ie, Ve, en, Jo, Qo, $t, yi, be, Xe, Ee, Ze, ve, qe, De, kt, rt],
                styles: [`body[_ngcontent-%COMP%]{font:var(--pur-font-body);color:var(--pur-text-black);background-color:var(--pur-canvas)}a[_ngcontent-%COMP%]{color:var(--pur-link)}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{color:var(--pur-link-hover)}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], p[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], dl[_ngcontent-%COMP%]{margin-block-start:0;margin-block-end:var(--pur-gap)}article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], details[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], section[_ngcontent-%COMP%]{display:block}[hidden][_ngcontent-%COMP%]{display:none!important}[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.page-title[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:var(--pur-font-normal);color:var(--pur-primary-blue)}.report-subtext[_ngcontent-%COMP%]{font-size:var(--pur-font-mobile-md)}.preview[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);font-size:var(--pur-font-mobile-sm);color:#495057}.report-pill[_ngcontent-%COMP%]{background:#0019961a;border-radius:10px;padding:0 .5rem;margin-right:1rem;margin-left:1rem;font-size:var(--pur-font-mobile-xs);color:#001996;font-weight:var(--pur-font-semibold);cursor:pointer}.refresh[_ngcontent-%COMP%]{font-size:var(--pur-font-mobile-xs);color:#001996;font-weight:var(--pur-font-semibold);padding-left:.5rem;cursor:pointer}.refresh-icon[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);color:#001996;cursor:pointer}.select-template[_ngcontent-%COMP%]{float:right}.finalize-column-table[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.2);width:100%;margin-top:1rem}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#757575}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2){background:#ededed}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.1);padding:16px 8px;font-size:1rem;font-weight:var(--pur-font-semibold);text-transform:capitalize;white-space:nowrap;color:#111}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]:first-of-type{border-right-width:none}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#9f9f9f}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.2);padding:8px;background:#fff;color:#000;font-size:1rem}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type{font-weight:var(--pur-font-semibold)}.refreshIconFinalize[_ngcontent-%COMP%]{margin-bottom:-.5rem}.refreshIconFinalize[_ngcontent-%COMP%]   .pi[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);color:#001996}.optional-filter[_ngcontent-%COMP%]{margin-left:0rem;margin-right:0rem}.show-optional-filter[_ngcontent-%COMP%]{cursor:pointer;font-size:1.125rem;margin:1rem 0rem}.show-optional-filter[_ngcontent-%COMP%]:before{background-image:url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Vector' d='M0 0L5 5L10 0L0 0Z' fill='%23001996'/%3E%3C/svg%3E");position:relative;width:1.25rem;margin:.2rem .25rem 0 .6rem;content:"";background-repeat:no-repeat;background-position:center center}.show-optional-filter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:.313rem;display:inline-flex}.show-optional-filter[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%], .show-optional-filter[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{padding-right:.25rem}.hide-optional-filter[_ngcontent-%COMP%]:before{-moz-transform:scaleY(-1);-webkit-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1)}.additional-column[_ngcontent-%COMP%]{padding:0rem 1rem}.column-editor-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.063rem}.flex-row[_ngcontent-%COMP%]{display:flex;gap:2.5rem;width:100%}.flex[_ngcontent-%COMP%]{display:flex;gap:.625rem;align-items:center}.flex-item[_ngcontent-%COMP%]{flex:1;padding:1.25rem;position:relative}.flex-item[_ngcontent-%COMP%]:nth-child(2){background-color:#f5f5f5}.search-column[_ngcontent-%COMP%]{position:relative}.flex-item[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-weight:700}.search-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:2.188rem;border-radius:.5rem;width:calc(100% - 2.5rem);height:2.563rem;margin-bottom:1.25rem;border:.063rem solid #757575}.search-column[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;left:.625rem;top:.75rem;color:#949494}.column-list[_ngcontent-%COMP%]{overflow-y:auto;list-style-type:none;max-height:75vh;padding:0}.column-list[_ngcontent-%COMP%]:nth-child(2){max-height:80vh}.column-row[_ngcontent-%COMP%]{display:flex;gap:.625rem;border:.063rem solid #ced4da;padding:.5rem .625rem;border-radius:.5rem;margin:.5rem 1.25rem .5rem 0;background-color:#fff;position:relative;font-weight:700}.addition-column[_ngcontent-%COMP%]{color:#001996}.alphabet-counter[_ngcontent-%COMP%]{margin-left:1.875px}.justify-space-between[_ngcontent-%COMP%]{justify-content:space-between}.add-btn[_ngcontent-%COMP%], .remove-btn[_ngcontent-%COMP%]{padding:0 .313rem;cursor:pointer;color:#00f;transition:.5s}.add-btn[_ngcontent-%COMP%]:hover, .remove-btn[_ngcontent-%COMP%]:hover{transform:scale(1.3)}.move-btn[_ngcontent-%COMP%]{color:#00f;cursor:move;padding-bottom:2px}.selected-count[_ngcontent-%COMP%]{background:#dadada;padding:.25rem .5rem;border-radius:.375rem;color:#00f;font-weight:700}.final-column-list[_ngcontent-%COMP%]{counter-reset:alphabet}.final-column-items[_ngcontent-%COMP%]{counter-increment:alphabet}.alphabet-counter[_ngcontent-%COMP%]:before{width:2rem;float:left;margin-top:.625rem;content:counter(alphabet,upper-alpha)}.form-hr[_ngcontent-%COMP%]{margin-left:0rem;margin-right:0rem}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:0 2px 2px 1px #0003,0 2px 2px 2px #00000024,0 2px 2px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.p-relative[_ngcontent-%COMP%]{position:relative;padding-bottom:5rem}.update-btn[_ngcontent-%COMP%]{position:absolute;right:1.25rem;bottom:1.25rem}.Layout-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.Layout-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs);color:var(--pur-web-black);font-weight:700}.layout-footer[_ngcontent-%COMP%]{margin-top:1.5rem}.finalize-column-table-container[_ngcontent-%COMP%]{width:100%;overflow:auto;display:block;max-height:50vh}[_nghost-%COMP%]     .p-dropdown{width:18.75rem;height:3.125rem}.search-field-label[_ngcontent-%COMP%]{margin-bottom:.125rem}.form-input[_ngcontent-%COMP%]{margin-bottom:.25rem}`]
            });
        }
    }
    return o;
})();

function op(o, c) {
    o & 1 && (r(0, "label", 40), d(1, 11), a());
}

function np(o, c) {
    o & 1 && (r(0, "label", 41), d(1, 12), a());
}

function rp(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function ap(o, c) {
    if (o & 1 && (S(0), C(1, rp, 2, 0, "span", 34)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p().$implicit,
            n = p(2);
        He(" ", n.getReceiverOperator(e.matchMode), " ", e.value, " "), s(), _("ngIf", i < t.actions.length - 1);
    }
}

function lp(o, c) {
    if (o & 1 && (r(0, "label", 43)(1, "span", 44), S(2), a(), C(3, ap, 2, 3, "ng-template", 45), a()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(2), de("", i.getReceiverDetails(e.columnName), " -"), s(), _("ngForOf", e.actions);
    }
}

function sp(o, c) {
    if (o & 1 && (G(0), C(1, lp, 4, 2, "label", 42), k()), o & 2) {
        let e = p();
        s(), _("ngForOf", e.receiverDetails);
    }
}

function pp(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function _p(o, c) {
    if (o & 1 && (S(0), C(1, pp, 2, 0, "span", 34)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(2);
        N(t.reportingDashboardService.localizedTypeOfService(e.value)), s(), _("ngIf", i < t.serviceProduct.length - 1);
    }
}

function cp(o, c) {
    if (o & 1 && (G(0), r(1, "label", 46)(2, "span"), d(3, 13), a(), S(4, " - "), C(5, _p, 2, 2, "ng-template", 47), a(), k()), o & 2) {
        let e = p();
        s(5), _("ngForOf", e.serviceProduct);
    }
}

function up(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function dp(o, c) {
    if (o & 1 && (S(0), C(1, up, 2, 0, "span", 34)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(2);
        N(t.reportingDashboardService.localizedTypeOfService(e.value)), s(), _("ngIf", i < t.serviceDescription.length - 1);
    }
}

function mp(o, c) {
    if (o & 1 && (G(0), r(1, "label", 46)(2, "span"), d(3, 14), a(), S(4, " - "), C(5, dp, 2, 2, "ng-template", 47), a(), k()), o & 2) {
        let e = p();
        s(5), _("ngForOf", e.serviceDescription);
    }
}

function gp(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function Ep(o, c) {
    if (o & 1 && (S(0), C(1, gp, 2, 0, "span", 34)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(2);
        N(t.reportingDashboardService.localizedTypeOfService(e.value)), s(), _("ngIf", i < t.serviceDomestic.length - 1);
    }
}

function Rp(o, c) {
    if (o & 1 && (G(0), r(1, "label", 46)(2, "span"), d(3, 15), a(), S(4, " - "), C(5, Ep, 2, 2, "ng-template", 47), a(), k()), o & 2) {
        let e = p();
        s(5), _("ngForOf", e.serviceDomestic);
    }
}

function Cp(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = c.$implicit;
        s(), N(e);
    }
}

function Tp(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = c.$implicit;
        s(), N(e.header);
    }
}
var Lr = (() => {
    class o {
        constructor(e, i, t, n, l) {
            this.user = e, this.apiService = i, this.reportingDashboardService = t, this.lookupDataService = n, this.locale = l, this.ReportType = le, this.RecurringType = V, this.FinalColumn = [], this.receiverField = [], this.header = [], this.templateId = "", this.reportData = this.reportingDashboardService.reportPayLoad, this.receiverDetails = null, this.serviceDescription = null, this.serviceProduct = null, this.serviceDomestic = null, this.finalColumnData = {
                title: "",
                columnList: []
            }, this.changeTab = new J(), this.reportDetails = new Vo({}), this.selectedAccounts = "", this.dateRange = "", this.receiverOperator = [{
                name: "Starts with",
                value: "startswith",
                inactive: !1
            }, {
                name: "Contains",
                value: "contains",
                inactive: !1
            }, {
                name: "Not contains",
                value: "notcontains",
                inactive: !1
            }, {
                name: "Ends with",
                value: "endswith",
                inactive: !1
            }, {
                name: "Equals",
                value: "equals",
                inactive: !1
            }];
        }
        ngOnInit() {
            this.createReceiverOptions(), this.FinalColumn = this.finalColumnData.columnList, this.header = this.getStandardColumnsHeader(this.FinalColumn), this.getAllFinalColumns(), this.createOptionFilterDetails();
        }
        getStandardColumnsHeader(e) {
            let i = [],
                t = 0,
                n = e.length,
                l = Array.from(Array(26)).map((u, T) => String.fromCharCode(T + 65));
            for (; n > 0;) {
                let u = "",
                    T = t;
                for (; T >= 0;) u = l[T % 26] + u, T = Math.floor(T / 26) - 1;
                i.push(u), t++, n--;
            }
            return i;
        }
        setTemplateId(e) {
            let i = e.find(t => t.title == this.finalColumnData.title);
            this.templateId = i ? .templateId;
        }
        getAllFinalColumns() {
            this.apiService.getAllFinalColumnsById(this.user.userData.id).subscribe(e => {
                this.setTemplateId(e.payload);
            });
        }
        editColumnLayout(e, i) {
            e.preventDefault(), this.changeTab.emit({
                tabIndex: i,
                templateId: this.templateId
            });
        }
        createOptionFilterDetails() {
            let e = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName.includes(vi.RECEIVER)).filter(l => l.columnName !== E.RECEIVERCOUNTRYCODE);
            this.receiverDetails = e;
            let i = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName === E.DESCRIPTION);
            this.serviceDescription = i && i.length > 0 ? i[0].actions : null;
            let t = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName === E.PRODUCTCODE);
            this.serviceProduct = t && t.length > 0 ? t[0].actions : null;
            let n = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName === E.RECEIVERCOUNTRYCODE);
            this.serviceDomestic = n && n.length > 0 ? n[0].actions : null;
        }
        getReceiverOperator(e) {
            let i = this.receiverOperator.find(t => t.value == e);
            return i ? i.name : e;
        }
        createReceiverOptions() {
            this.lookupDataService.getAllByGroup("column").subscribe(e => {
                this.receiverField.push({
                    value: E.RECEIVERNAME,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERCOMPANYNAME,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERPROVINCESTATE,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERCITY,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERPOSTALZIPCODE,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS1,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS2,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS3,
                    name: "NULL"
                }), E.localize(e, this.locale, this.receiverField, "value", "name");
            });
        }
        getReceiverDetails(e) {
            let i = this.receiverField.find(t => t.value == e);
            return i ? i.name : e;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(se), A(xe), A(Se), A(gt), A(wo));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-review-detail"]
                ],
                inputs: {
                    finalColumnData: "finalColumnData",
                    reportDetails: "reportDetails",
                    selectedAccounts: "selectedAccounts",
                    dateRange: "dateRange"
                },
                outputs: {
                    changeTab: "changeTab"
                },
                decls: 81,
                vars: 14,
                consts: () => {
                    let e;
                    e = "Take a look at what's included in your report";
                    let i;
                    i = "Report Filter";
                    let t;
                    t = "Edit";
                    let n;
                    n = "" + "\uFFFD#17\uFFFD" + "Report Title" + "\uFFFD/#17\uFFFD" + "";
                    let l;
                    l = "" + "\uFFFD#23\uFFFD" + "Report Schedule" + "\uFFFD/#23\uFFFD" + "";
                    let u;
                    u = "Account(s)";
                    let T;
                    T = "" + "\uFFFD#39\uFFFD" + "Report Format" + "\uFFFD/#39\uFFFD" + "";
                    let f;
                    f = "" + "\uFFFD#46\uFFFD" + "Receiver Details" + "\uFFFD/#46\uFFFD" + "";
                    let M;
                    M = "" + "\uFFFD#52\uFFFD" + "Service Type" + "\uFFFD/#52\uFFFD" + "";
                    let D;
                    D = "Report Column";
                    let b;
                    b = "Edit";
                    let v;
                    v = " One-Time ";
                    let $;
                    $ = " Recurring ";
                    let y;
                    y = "Priority";
                    let U;
                    U = "Time of Delivery";
                    let oe;
                    return oe = "Domestic/US/Intl", [e, i, t, n, l, u, T, f, M, D, b, v, $, y, U, oe, [1, "container-fluid"],
                        [1, "row"],
                        [1, "col-12"],
                        [1, "page-title"],
                        [1, "report-view"],
                        [1, "preview"],
                        ["href", "", 3, "click"],
                        [1, "col-xs-12"],
                        [1, "form-horizontal", "mx-3", "mt-3"],
                        [1, "row", "pur-form-field-inline"],
                        ["for", "title", 1, "control-label", "col-sm-4", "strong"],
                        [1, "col-sm-8"],
                        [1, "row", "pur-form-field-inline", "my-3"],
                        ["for", "title", "class", "control-label col-sm-4", "for", "one-time", 4, "ngIf"],
                        ["for", "title", "class", "control-label col-sm-4", "for", "recurring", 4, "ngIf"],
                        ["for", "dateRange", 1, "control-label", "col-sm-4"],
                        [1, "row", "my-3"],
                        ["for", "format", 1, "control-label", "col-sm-4", "strong"],
                        [4, "ngIf"],
                        ["href", "#", 3, "click"],
                        [2, "width", "100%", "overflow", "auto", "display", "block", "max-height", "50vh"],
                        [1, "review-column-table"],
                        [4, "ngFor", "ngForOf"],
                        [1, "form-hr"],
                        ["for", "title", "for", "one-time", 1, "control-label", "col-sm-4"],
                        ["for", "title", "for", "recurring", 1, "control-label", "col-sm-4"],
                        ["for", "receiverDetails", "class", "control-label col-sm-8", 4, "ngFor", "ngForOf"],
                        ["for", "receiverDetails", 1, "control-label", "col-sm-8"],
                        [1, "col-sm-4"],
                        ["ngFor", "", 1, "col-sm-8", 3, "ngForOf"],
                        ["for", "title", 1, "control-label", "col-sm-8"],
                        ["ngFor", "", 3, "ngForOf"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1 && (r(0, "div", 16)(1, "div", 17)(2, "div", 18)(3, "h4", 19), d(4, 0), a()()(), h(5, "hr"), r(6, "div", 20)(7, "span", 21), d(8, 1), a(), r(9, "a", 22), R("click", function(l) {
                            return t.editColumnLayout(l, 0);
                        }), d(10, 2), a()(), h(11, "hr"), r(12, "section", 23)(13, "div", 24)(14, "div", 25)(15, "label", 26), Z(16, 3), h(17, "b"), q(), a(), r(18, "div", 27), S(19), a()(), r(20, "div", 28)(21, "label", 26), Z(22, 4), h(23, "b"), q(), a(), r(24, "div", 27), C(25, op, 2, 0, "label", 29)(26, np, 2, 0, "label", 30), h(27, "br"), r(28, "label", 31), S(29), a()()(), r(30, "div", 28)(31, "label", 26)(32, "b"), d(33, 5), a()(), r(34, "div", 27), S(35), a()(), r(36, "div", 32)(37, "label", 33), Z(38, 6), h(39, "b"), q(), a(), r(40, "div", 27), S(41), ae(42, "uppercase"), a()(), r(43, "div", 32)(44, "label", 33), Z(45, 7), h(46, "b"), q(), a(), r(47, "div", 27), C(48, sp, 2, 1, "ng-container", 34), a()(), r(49, "div", 32)(50, "label", 33), Z(51, 8), h(52, "b"), q(), a(), r(53, "div", 27), C(54, cp, 6, 1, "ng-container", 34)(55, mp, 6, 1, "ng-container", 34)(56, Rp, 6, 1, "ng-container", 34), a()(), h(57, "hr"), r(58, "div", 20)(59, "span", 21), d(60, 9), a(), r(61, "a", 35), R("click", function(l) {
                            return t.editColumnLayout(l, 1);
                        }), d(62, 10), a()(), h(63, "hr"), a()(), r(64, "div", 17)(65, "div", 23)(66, "div", 36)(67, "table", 37)(68, "thead")(69, "tr"), h(70, "th"), C(71, Cp, 2, 1, "th", 38), a(), r(72, "tr"), h(73, "th"), C(74, Tp, 2, 1, "th", 38), a()(), r(75, "tbody")(76, "tr")(77, "td"), S(78, "1"), a()()()()()()()(), h(79, "br")(80, "hr", 39)), i & 2) {
                        let n, l, u, T, f;
                        s(19), N((n = t.reportDetails.get("reportTitle")) == null ? null : n.value), s(6), _("ngIf", ((l = t.reportDetails.get("reportType")) == null ? null : l.value) === t.RecurringType.ONETIME), s(), _("ngIf", ((u = t.reportDetails.get("reportType")) == null ? null : u.value) !== t.RecurringType.ONETIME), s(3), de("", ((T = t.reportDetails.get("reportType")) == null ? null : T.value) === t.RecurringType.ONETIME ? t.dateRange : t.reportingDashboardService.localizedReportFrequency((T = t.reportDetails.get("recurringShedule")) == null ? null : T.value), " "), s(6), N(t.selectedAccounts), s(6), N(et(42, 12, (f = t.reportDetails.get("reportFormat")) == null ? null : f.value)), s(7), _("ngIf", t.receiverDetails), s(6), _("ngIf", t.serviceProduct), s(), _("ngIf", t.serviceDescription), s(), _("ngIf", t.serviceDomestic), s(15), _("ngForOf", t.header), s(3), _("ngForOf", t.FinalColumn);
                    }
                },
                dependencies: [ie, he, re, ii],
                styles: ['body[_ngcontent-%COMP%]{font:var(--pur-font-body);color:var(--pur-text-black);background-color:var(--pur-canvas)}a[_ngcontent-%COMP%]{color:var(--pur-link)}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{color:var(--pur-link-hover)}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], p[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], dl[_ngcontent-%COMP%]{margin-block-start:0;margin-block-end:var(--pur-gap)}article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], details[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], section[_ngcontent-%COMP%]{display:block}[hidden][_ngcontent-%COMP%]{display:none!important}[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.page-title[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:var(--pur-font-normal);color:var(--pur-primary-blue)}.preview[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);font-size:var(--pur-font-mobile-sm);color:#495057}.review-column-table[_ngcontent-%COMP%]{border:.063rem solid rgba(27,31,35,.2);width:100%;margin-top:1rem}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#757575}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2){background:#ededed}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]{border:.063rem solid rgba(27,31,35,.1);padding:1rem .5rem;font-size:1rem;font-weight:var(--pur-font-semibold);text-transform:capitalize;white-space:nowrap;color:#111}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]:first-of-type{border-right-width:none}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#9f9f9f}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:.063rem solid rgba(27,31,35,.2);padding:.5rem;background:#fff;color:#000;font-size:1rem}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type{font-weight:var(--pur-font-semibold)}.report-view[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 1rem}']
            });
        }
    }
    return o;
})();
var Sp = ["dropdown"],
    Op = o => ({
        "has-error": o
    }),
    fi = () => ({
        standalone: !0
    }),
    Pp = () => ({
        "min-width": "95%"
    }),
    Ap = o => ({
        "account-checked": o
    }),
    Np = (o, c) => ({
        "main-expanded-row": o,
        "group-checked": c
    }),
    Mp = o => ({
        group: o
    }),
    Ip = (o, c) => ({
        space: o,
        "none-space": c
    }),
    yp = o => ({
        space: o
    }),
    Dp = o => ({
        "last-row": o
    });

function vp(o, c) {
    o & 1 && (r(0, "h2", 98), d(1, 13), a());
}

function bp(o, c) {
    o & 1 && (r(0, "h2", 98), d(1, 14), a());
}

function xp(o, c) {
    if (o & 1 && (r(0, "h2", 98), S(1), a()), o & 2) {
        let e = p();
        s(), N(e.columnLayoutName);
    }
}

function Lp(o, c) {
    o & 1 && (r(0, "p"), d(1, 15), a());
}

function Fp(o, c) {
    if (o & 1 && h(0, "p", 99), o & 2) {
        let e = p();
        _("innerHTML", e.createModeHeader, Nt);
    }
}

function wp(o, c) {
    o & 1 && (G(0), h(1, "hr"), r(2, "p", 100), d(3, 16), a(), k());
}

function Gp(o, c) {
    if (o & 1 && (r(0, "div", 101)(1, "div", 102), h(2, "p-steps", 103), a()()), o & 2) {
        let e = p();
        s(2), _("activeIndex", e.active)("id", "p-active-" + e.active)("model", e.items);
    }
}

function kp(o, c) {
    o & 1 && (r(0, "h5", 160), d(1, 33), a());
}

function $p(o, c) {
    if (o & 1 && (G(0), r(1, "div", 161)(2, "label", 162)(3, "b"), d(4, 34), a()(), r(5, "div", 110)(6, "label"), d(7, 35), a()()(), r(8, "div", 163)(9, "label", 162)(10, "b"), d(11, 36), a()(), r(12, "div", 110)(13, "label"), d(14, 37), a()()(), k()), o & 2) {
        let e = p(2);
        s(7), xt(e.columnLayoutName), Lt(7), s(7), xt(e.reportType), Lt(14);
    }
}

function Vp(o, c) {
    o & 1 && (r(0, "small", 164), d(1, 38), a());
}

function Bp(o, c) {
    o & 1 && (r(0, "small", 164), d(1, 45), a());
}

function Xp(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 165)(1, "app-dropdown-editor", 166, 2)(3, "div", 128)(4, "header", 129)(5, "h2"), d(6, 39), a()(), h(7, "p-datePicker", 167, 3), r(9, "footer", 168)(10, "div", 169)(11, "fieldset", 150)(12, "span", 170)(13, "p-radioButton", 171), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationLast7());
        }), a(), r(14, "label", 172), d(15, 40), a()(), r(16, "span", 170)(17, "p-radioButton", 173), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationLast14());
        }), a(), r(18, "label", 174), d(19, 41), a()(), r(20, "span", 170)(21, "p-radioButton", 175), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationCustom());
        }), a(), r(22, "label", 176), d(23, 42), a()()(), h(24, "br"), r(25, "div", 177)(26, "button", 178), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.setLast7OnClear());
        }), G(27), d(28, 43), k(), a(), r(29, "button", 179), R("click", function(t) {
            m(e);
            let n = j(2),
                l = p(2);
            return g(l.applyCreationDate(t, n));
        }), G(30), d(31, 44), k(), a()()()()()(), C(32, Bp, 2, 0, "small", 112), a();
    }
    if (o & 2) {
        let e = p(2);
        s(), _("autofocus", !0)("value", e.selectedDateRange), s(6), _("minDate", e.oneTimeMinDate)("inline", !0)("readonlyInput", !0)("numberOfMonths", 2)("autofocus", !0)("tabIndex", 0), s(6), _("autofocus", !0), s(19), _("ngIf", e.shipmentDateError);
    }
}

function Up(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 180)(1, "app-dropdown-editor", 181, 4)(3, "div", 128)(4, "header", 129)(5, "h2"), d(6, 46), a()(), r(7, "div")(8, "div", 182), h(9, "p-radioButton", 183), r(10, "label", 184), d(11, 47), a()(), r(12, "div", 182), h(13, "p-radioButton", 185), r(14, "label", 186), d(15, 48), a()(), r(16, "div", 182), h(17, "p-radioButton", 187), r(18, "label", 188), d(19, 49), a()(), r(20, "div", 182), h(21, "p-radioButton", 189), r(22, "label", 190), d(23, 50), a()(), r(24, "div", 182), h(25, "p-radioButton", 191), r(26, "label", 192), d(27, 51), a()()(), r(28, "footer", 168)(29, "div", 169)(30, "div", 177)(31, "button", 178), R("click", function() {
            m(e);
            let t = j(2),
                n = p(2);
            return g(n.clearShedule(t));
        }), G(32), d(33, 52), k(), a(), r(34, "button", 179), R("click", function() {
            m(e);
            let t = j(2),
                n = p(2);
            return g(n.recurringSchedule(t));
        }), G(35), d(36, 53), k(), a()()()()()()();
    }
    if (o & 2) {
        let e = p(2);
        s(), _("autofocus", !0)("value", e.selectedPeriod);
    }
}

function Hp(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 113)(1, "label", 162)(2, "b"), d(3, 54), a()(), r(4, "div", 110)(5, "div", 165)(6, "app-dropdown-editor", 193, 5)(8, "div", 128)(9, "header", 129)(10, "h2"), d(11, 55), a()(), h(12, "p-datePicker", 194, 6), r(14, "footer", 168)(15, "div", 169)(16, "div", 177)(17, "button", 178), R("click", function() {
            m(e);
            let t = j(7),
                n = p(2);
            return g(n.clearDate(t));
        }), G(18), d(19, 56), k(), a(), r(20, "button", 179), R("click", function() {
            m(e);
            let t = j(7),
                n = p(2);
            return g(n.selectDate(t));
        }), G(21), d(22, 57), k(), a()()()()()()()()();
    }
    if (o & 2) {
        let e = p(2);
        s(6), _("autofocus", !0)("value", e.selectedFirstReportDate), s(6), _("minDate", e.minimumDate)("maxDate", e.maximumDate)("readonlyInput", !0)("inline", !0)("showWeek", !1)("autofocus", !0)("tabIndex", 0);
    }
}

function zp(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "tr")(1, "th", 195), d(2, 58), a(), r(3, "th", 196), d(4, 59), a(), r(5, "th", 196), d(6, 60), a(), r(7, "th", 196), d(8, 61), a(), r(9, "th", 196), d(10, 62), a(), r(11, "th", 196), d(12, 63), a()(), r(13, "tr", 197)(14, "th", 195)(15, "input", 198), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.selectAll, t) || (n.selectAll = t), g(t);
        }), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.onSelectAll());
        }), a()(), r(16, "th", 196)(17, "label", 199), S(18, "Filter by Province/State"), a(), r(19, "span", 200), h(20, "i", 201), r(21, "input", 202), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterTerritory, t) || (n.filterTerritory = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(22, "th", 196)(23, "label", 203), S(24, "Filter by City"), a(), r(25, "span", 200), h(26, "i", 201), r(27, "input", 204), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterCity, t) || (n.filterCity = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(28, "th", 196)(29, "label", 205), S(30, "Filter by Postal Code"), a(), r(31, "span", 200), h(32, "i", 201), r(33, "input", 206), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterPostalZipCode, t) || (n.filterPostalZipCode = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(34, "th", 196)(35, "label", 207), S(36, "Filter by Account Name"), a(), r(37, "span", 200), h(38, "i", 201), r(39, "input", 208), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterName, t) || (n.filterName = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(40, "th", 196)(41, "label", 209), S(42, "Filter by Account Number"), a(), r(43, "span", 200), h(44, "i", 201), r(45, "input", 210), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterAccount, t) || (n.filterAccount = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()()();
    }
    if (o & 2) {
        let e = p(2);
        s(15), x("ngModel", e.selectAll), _("ngModelOptions", K(12, fi)), s(6), x("ngModel", e.filterTerritory), _("ngModelOptions", K(13, fi)), s(6), x("ngModel", e.filterCity), _("ngModelOptions", K(14, fi)), s(6), x("ngModel", e.filterPostalZipCode), _("ngModelOptions", K(15, fi)), s(6), x("ngModel", e.filterName), _("ngModelOptions", K(16, fi)), s(6), x("ngModel", e.filterAccount), _("ngModelOptions", K(17, fi));
    }
}

function Yp(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "tr", 211)(1, "td", 195)(2, "input", 212), R("click", function() {
            let t = m(e).$implicit,
                n = p(2);
            return g(n.onSelectedCount(t));
        }), a()(), r(3, "td", 196), S(4), a(), r(5, "td", 196), S(6), a(), r(7, "td", 196), S(8), a(), r(9, "td", 196), S(10), a(), r(11, "td", 196), S(12), a()();
    }
    if (o & 2) {
        let e = c.$implicit;
        _("ngClass", ee(7, Ap, e.checked)), s(2), _("checked", e.checked), s(2), N(e.territory), s(2), N(e.city), s(2), N(e.postalZipCode), s(2), N(e.name.substring(0, 18)), s(2), N(e.account);
    }
}

function Wp(o, c) {
    o & 1 && (r(0, "h4"), d(1, 64), a());
}

function Kp(o, c) {
    o & 1 && lt(0);
}

function Zp(o, c) {
    if (o & 1 && (r(0, "tr", 215), C(1, Kp, 1, 0, "ng-container", 216), a(), h(2, "tr", 211)), o & 2) {
        let e = c.$implicit;
        p();
        let i = j(3),
            t = p(2);
        _("ngClass", Je(4, Np, t.expandedGroupName.includes(e.groupName), e.checked)), s(), _("ngTemplateOutlet", i)("ngTemplateOutletContext", ee(7, Mp, e)), s(), _("ngClass", Je(9, Ip, !t.expandedGroupName.includes(e.groupName), t.expandedGroupName.includes(e.groupName)));
    }
}

function qp(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "td", 217)(1, "div")(2, "div", 218)(3, "span", 219)(4, "b"), S(5), a()()(), r(6, "div")(7, "a", 220), R("click", function() {
            let t = m(e).group,
                n = p(3);
            return g(n.expandedGroup(t.name));
        }), Z(8, 65), ae(9, "number"), h(10, "i", 211), q(), a()()(), r(11, "div")(12, "input", 221), R("click", function() {
            let t = m(e).group,
                n = p(3);
            return g(n.onSelectedGroupCount(t));
        }), a()()();
    }
    if (o & 2) {
        let e = c.group,
            i = p(3);
        s(5), N(e.name), s(2), _("pRowToggler", e), s(3), _("ngClass", i.expandedGroupName.includes(e.name) ? "pi pi-chevron-up" : "pi pi-chevron-down"), xt(et(9, 5, e.accounts.length)), Lt(8), s(2), _("checked", e.checked);
    }
}

function jp(o, c) {
    if (o & 1 && (r(0, "tr", 223)(1, "td", 224), S(2), a()()), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(2).$implicit;
        _("ngClass", ee(3, Dp, i === t.accounts.length - 1)), s(2), He(" \xA0\xA0", e.name, " (", e.account, ") ");
    }
}

function Qp(o, c) {
    if (o & 1 && (r(0, "div"), C(1, jp, 3, 5, "tr", 222), h(2, "td", 211), a()), o & 2) {
        let e = p().$implicit,
            i = p(3);
        s(), _("ngForOf", e.accounts), s(), _("ngClass", ee(2, yp, i.expandedGroupName.includes(e.name)));
    }
}

function Jp(o, c) {
    if (o & 1 && C(0, Qp, 3, 4, "div", 82), o & 2) {
        let e = c.$implicit,
            i = p(3);
        _("ngIf", i.expandedGroupName.includes(e.name));
    }
}

function e_(o, c) {
    if (o & 1 && (r(0, "p-table", 213), C(1, Zp, 3, 12, "ng-template", 143)(2, qp, 13, 7, "ng-template", null, 7, z)(4, Jp, 1, 1, "ng-template", 214), a()), o & 2) {
        let e = p(2);
        _("value", e.groups)("scrollable", !0)("resizableColumns", !0)("autoLayout", !0);
    }
}

function t_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "section", 104), C(1, kp, 2, 0, "h5", 105), r(2, "div")(3, "form", 106)(4, "p", 99), S(5, "Fields marked with a red asterisk ("), h(6, "span", 107), S(7, " ) are required."), a(), C(8, $p, 15, 2, "ng-container", 82), r(9, "div", 108)(10, "label", 109)(11, "b"), d(12, 17), a()(), r(13, "div", 110)(14, "input", 111), R("keypress", function(t) {
            m(e);
            let n = p();
            return g(n.restrictSpecialCharacters(t));
        })("keyup", function(t) {
            m(e);
            let n = p();
            return g(n.checkEmptyTitle(t));
        })("paste", function(t) {
            m(e);
            let n = p();
            return g(n.pasteHandler(t));
        }), a(), C(15, Vp, 2, 0, "small", 112), a()(), r(16, "div", 113)(17, "label", 114)(18, "b"), d(19, 18), a()(), r(20, "div", 110)(21, "div", 101)(22, "div", 115)(23, "p-radioButton", 116), R("click", function(t) {
            m(e);
            let n = p();
            return g(n.validateonetime(t));
        }), a(), r(24, "label", 117), d(25, 19), a()(), r(26, "div", 118)(27, "p-radioButton", 119), R("click", function(t) {
            m(e);
            let n = p();
            return g(n.validaterecurring(t));
        }), a(), r(28, "label", 120), d(29, 20), a()()(), C(30, Xp, 33, 10, "div", 121)(31, Up, 37, 2, "div", 122), a()(), C(32, Hp, 23, 9, "div", 123), r(33, "div", 113)(34, "label", 124)(35, "b"), d(36, 21), a()(), r(37, "div", 110)(38, "div", 125), h(39, "input", 126), r(40, "app-dropdown-editor", 127, 1), R("click", function() {
            m(e);
            let t = p();
            return g(t.getSelectedRows());
        }), r(42, "div", 128)(43, "header", 129)(44, "h2"), d(45, 22), a()(), r(46, "div", 130)(47, "span")(48, "b"), d(49, 23), a()(), r(50, "div", 131)(51, "span", 132), d(52, 24), a(), r(53, "span", 133)(54, "p-inputSwitch", 134), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.onlySelected, t) || (n.onlySelected = t), g(t);
        }), R("ngModelChange", function() {
            m(e);
            let t = p();
            return g(t.activeIndex === 0 ? t.onOnlySelected() : t.onOnlySelectedGroup());
        }), a()()()(), h(55, "br")(56, "br"), r(57, "p-tabs", 135), F("valueChange", function(t) {
            m(e);
            let n = p();
            return L(n.activeIndex, t) || (n.activeIndex = t), g(t);
        }), r(58, "p-tablist")(59, "p-tab", 136), d(60, 25), a(), r(61, "p-tab", 136), d(62, 26), a()(), r(63, "p-tabpanels")(64, "p-tabpanel", 136)(65, "span", 137)(66, "button", 138), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onCancel(t));
        }), a(), S(67, " \xA0 \xA0 "), r(68, "button", 139), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onDone(t));
        }), a()(), h(69, "br")(70, "br")(71, "br"), r(72, "ngx-spinner", 140), d(73, 27), a(), r(74, "p-table", 141), ae(75, "filter"), ae(76, "filter"), ae(77, "filter"), ae(78, "filter"), ae(79, "filter"), C(80, zp, 46, 18, "ng-template", 142)(81, Yp, 13, 9, "ng-template", 143), a()(), r(82, "p-tabpanel", 136)(83, "span", 137)(84, "button", 144), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onCancel(t));
        }), a(), S(85, " \xA0 \xA0 "), r(86, "button", 145), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onDoneGroup(t));
        }), a()(), h(87, "br")(88, "br")(89, "br"), r(90, "ngx-spinner", 146), d(91, 28), a(), C(92, Wp, 2, 0, "h4", 82)(93, e_, 5, 4, "p-table", 147), a()()()()()()()(), r(94, "div", 148)(95, "label", 149)(96, "b"), d(97, 29), a()(), r(98, "div", 110)(99, "div", 150)(100, "span", 151), h(101, "p-radioButton", 152), r(102, "label", 153), d(103, 30), a()(), r(104, "span", 151), h(105, "p-radioButton", 154), r(106, "label", 155), d(107, 31), a()(), r(108, "span", 151), h(109, "p-radioButton", 156), r(110, "label", 157), d(111, 32), a()()()()(), h(112, "hr", 158), r(113, "app-optional-filter", 159), R("updateShipperDetailsEmitter", function(t) {
            m(e);
            let n = p();
            return g(n.updateShipperDetails(t));
        })("updateReceiverDetailsEmitter", function(t) {
            m(e);
            let n = p();
            return g(n.updateReceiverDetails(t));
        })("updatePackageStatus", function(t) {
            m(e);
            let n = p();
            return g(n.updatePackageStatus(t));
        })("updateCheckedExceptionCategory", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedExceptionCategory(t));
        })("updateCheckedServicePriority", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedServicePriority(t));
        })("updateCheckedServiceTimeOfDelivery", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedServiceTimeOfDelivery(t));
        })("updateCheckedServiceDomestic", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedServiceDomestic(t));
        })("updatedeliveryDateRange", function(t) {
            m(e);
            let n = p();
            return g(n.updatedeliveryDateRange(t));
        })("updateShipperDetailsEmitter", function(t) {
            m(e);
            let n = p();
            return g(n.updateShipperDetails(t));
        })("updateReceiverDetailsEmitter", function(t) {
            m(e);
            let n = p();
            return g(n.updateReceiverDetails(t));
        }), a()()()();
    }
    if (o & 2) {
        let e, i = p();
        s(), _("ngIf", !i.createMode), s(2), _("formGroup", i.userForm), s(), _("innerHTML", i.formInstructions, Nt), s(4), _("ngIf", i.createMode), s(7), _("ngIf", i.duplicateReportTitleError), s(15), _("ngIf", i.reportSchedulingType === i.RecurringType.ONETIME), s(), _("ngIf", i.reportSchedulingType === i.RecurringType.RECURRING), s(), _("ngIf", i.reportSchedulingType === i.RecurringType.RECURRING), s(6), _("ngClass", ee(61, Op, !((e = i.userForm.get("reportAccounts")) != null && e.valid))), s(), _("value", i.user.userData.view.signature.selectedAccountReportingList), s(), _("label", i.accounts)("value", i.allAccountsSelected)("autofocus", !0), s(9), xt(i.activeIndex === 0 ? i.selectedAccounts : i.selectedGroups), Lt(49), s(5), x("ngModel", i.onlySelected), _("ngModelOptions", K(63, fi))("autofocus", !0)("tabIndex", 0), s(3), x("value", i.activeIndex), s(2), _("value", 0), s(2), _("value", 1), s(3), _("value", 0), s(8), _("fullScreen", !1), s(2), _("value", tt(79, 57, tt(78, 53, tt(77, 49, tt(76, 45, tt(75, 41, i.displayAccounts, "account", i.filterAccount), "name", i.filterName), "city", i.filterCity), "territory", i.filterTerritory), "postalZipCode", i.filterPostalZipCode))("tableStyle", K(64, Pp))("scrollable", !0), s(8), _("value", 1), s(4), _("disabled", !i.groups.length), s(4), _("fullScreen", !1), s(2), _("ngIf", !i.groups.length), s(), _("ngIf", i.groups.length), s(20), _("shipperUpdatedDetails", i.userForm.controls.shipperDetails.value)("receiverUpdatedDetails", i.userForm.controls.receiverDetails.value)("packageStatus", i.userForm.controls.packageStatus.value)("exceptionCategories", i.userForm.controls.exceptionCategory.value)("priorityCategory", i.userForm.controls.priorityCategory.value)("timeOfDeliveryCategory", i.userForm.controls.timeOfDeliveryCategory.value)("domesticCategory", i.userForm.controls.domesticCategory.value)("deliveryDateRange", i.userForm.controls.deliveryDateRange.value)("reportType", i.userForm.controls.reportType.value)("events", i.optionalFilterEvent.asObservable());
    }
}

function i_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "section", 104)(1, "app-finalize-columns", 225), R("sendFinalColumnToParent", function(t) {
            m(e);
            let n = p();
            return g(n.setFinalColumn(t));
        }), a()();
    }
    if (o & 2) {
        let e = p();
        s(), _("selectedFinalColumn", e.finalColumnData)("templateId", e.templateId)("editMode", e.editMode)("reportType", e.userForm.controls.reportType.value)("outputFormat", e.userForm.controls.reportFormat.value)("redirectToFinalColumnList", e.redirectToFinalColumnList)("savedColumnLayoutActiveData", e.savedColumnLayoutActiveData);
    }
}

function o_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "section", 104)(1, "app-review-detail", 226), R("changeTab", function(t) {
            m(e);
            let n = p();
            return g(n.changeTab(t));
        }), a()();
    }
    if (o & 2) {
        let e = p();
        s(), _("finalColumnData", e.finalColumnData)("reportDetails", e.userForm)("selectedAccounts", e.allAccountsSelected)("dateRange", e.selectedDateRange);
    }
}

function n_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 227), R("click", function() {
            m(e);
            let t = p();
            return g(t.backToReports());
        }), r(1, "span"), d(2, 66), a()();
    }
}

function r_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 228), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepBack());
        }), r(1, "span"), d(2, 67), a()();
    }
}

function a_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 229), R("click", function() {
            m(e);
            let t = p();
            return g(t.createReportFromSavedColumnLayout());
        }), r(1, "span"), d(2, 68), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", e.userForm.invalid);
    }
}

function l_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 229), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepNext());
        }), r(1, "span"), d(2, 69), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", !(e.active == 1 && e.hideBackButton) && e.userForm.invalid);
    }
}

function s_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 229), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepNext());
        }), r(1, "span"), d(2, 70), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", e.userForm.invalid);
    }
}

function p_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 229), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepNext());
        }), r(1, "span"), d(2, 71), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", e.userForm.invalid);
    }
}

function __(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 230)(1, "button", 231), R("click", function() {
            m(e);
            let t = p();
            return g(t.hideGenerateDialog());
        }), d(2, 72), a()();
    }
    if (o & 2) {
        let e = p();
        s(), X("aria-label", e.btnGoToReportsAriaLbl);
    }
}

function c_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 232)(1, "button", 233), R("click", function() {
            m(e);
            let t = p();
            return g(t.displayCapacityModal = !1);
        }), a()();
    }
}

function u_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 230)(1, "button", 234), R("click", function() {
            m(e);
            let t = p();
            return g(t.backToReports());
        }), a()();
    }
}

function d_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 232)(1, "button", 235), R("click", function() {
            m(e);
            let t = p();
            return g(t.backtoReportNo());
        }), a(), r(2, "button", 236), R("click", function() {
            m(e);
            let t = p();
            return g(t.isFormUnsavedModal = !1);
        }), a()();
    }
}
var Pn = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f, M, D, b) {
            this.fb = e, this.localeService = i, this.spinner = t, this.reportingDashboardService = n, this.apiService = l, this.authService = u, this.user = T, this.router = f, this.datePipe = M, this.cdr = D, this.activatedRoute = b, this.RecurringType = V, this.unsubscribe$ = new Pt(), this.initialDate = [new Date(Date.now() - 7 * 24 * 60 * 60 * 1e3), new Date()], this.currentDate = new Date(), this.locale = "en", this.repSchedulingDateRangeDisable = !0, this.selectedDateRange = "Last 7 days", this.selectedPeriod = "Select", this.reportSchedulingType = V.ONETIME, this.recurringPeriod = "", this.reportAccounts = [], this.reportingPeriod = [{
                name: "Weekly",
                code: mt.WEEKLY
            }, {
                name: "Bi-Weekly",
                code: mt.BIWEEKLY
            }, {
                name: "Monthly",
                code: mt.MONTHLY
            }, {
                name: "Quarterly",
                code: mt.QUARTERLY
            }, {
                name: "Annually",
                code: mt.ANNUALLY
            }], this.summaryText = " Generated Reports are at Capacity.", this.detailText = " You have reached the maximum number of reports created. Please delete a report to free up space.", this.btnGoToReportsAriaLbl = "Close dialog and go to reports", this.filterClose = !1, this.finalColumnData = {
                title: "",
                columnList: []
            }, this.templateId = "", this.columnLayoutName = "", this.reportType = "", this.editMode = !1, this.createMode = !1, this.redirectToFinalColumnList = !1, this.hideBackButton = !1, this.createModeHeader = "Using a saved column layout, add the necessary filters to generate a new report. Fields marked with a red asterisk (<span class='required'></span> ) are required.", this.shipmentDateError = !1, this.formInstructions = "Fields marked with a red asterisk (<span class='required'></span> ) are required.", this.optionalFilterEvent = new Pt(), this.userForm = this.fb.group({
                reportTitle: ["", _e.required],
                reportFormat: ["", _e.required],
                reportType: [this.authService.isReportingManageSchedulesAuthorised() && !this.authService.isReportingCreateReportAuthorised() ? V.RECURRING : V.ONETIME, _e.required],
                reportSchedulingDays: ["last7"],
                reportSchedulingDateRange: [{
                    value: this.initialDate,
                    disabled: !0
                }, _e.required],
                reportSchedulingDaysValidator: [""],
                deliveryDateRange: ["none"],
                reportAccounts: [this.user.userData.view.signature.selectedAccountReportingList ? .length, _e.required],
                recurringShedule: [""],
                recurringSheduleValidator: [""],
                firstReportDate: [""],
                firstReportDateValidator: [""],
                exceptionCategory: new ge([]),
                priorityCategory: new ge([]),
                timeOfDeliveryCategory: new ge([]),
                domesticCategory: new ge([]),
                shipperDetails: new ge([]),
                receiverDetails: new ge([]),
                packageStatus: new ge([]),
                optionalFilter: this.fb.group({})
            }), this.active = 0, this.filterAccount = "", this.filterName = "", this.filterCity = "", this.filterTerritory = "", this.filterPostalZipCode = "", this.displayAccounts = [], this.backupAccounts = [], this.groups = [], this.localGroupsByOrg = [], this.backupGroups = [], this.expandedGroupName = [], this.selectAll = !1, this.onlySelected = !1, this.allAccountsSelected = "", this.accounts = "Accounts", this.selectedAccounts = 0, this.selectedGroups = 0, this.activeIndex = 0, this.recurringtype = "", this.selectedFirstReportDate = It, this.minimumDate = new Date(this.currentDate.setDate(this.currentDate.getDate() + 1)), this.oneTimeMinDate = new Date(), this.displayGenerateModal = !1, this.displayUpdateModal = !1, this.displayCapacityModal = !1, this.totalReports = 0, this.sheduleReportId = null, this.reportDataArray = [], this.isFormUnsavedModal = !1, this.isTrackingSummaryreportUpdated = !1, this.isNoClicked = !1, this.editedFileType = "", this.selectedOrganizationId = "", this.selectedOrganizationName = "", this.selectedFormat = "csv", this.duplicateReportTitleError = !1, this.selectedOrganizationId = this.user.userData.view.signature.selectedOrganizationId, this.selectedOrganizationName = this.user.userData.view.signature.selectedOrganizationName, this.locale = this.localeService.getLocale(), this.user.userData.view.signature.selectedAccountReportingList = [], this.user.userData.accounts.map(y => y.checked = !0), this.displayAccounts = this.user.userData.accounts, this.backupAccounts = this.displayAccounts, this.localGroupsByOrg = T.userData.localAccountGroups.filter(y => y.organizationId === this.user.userData.view.signature.selectedOrganizationId), this.groups = this.localGroupsByOrg, this.backupGroups = this.localGroupsByOrg, this.sortObjectArray(this.displayAccounts, "name"), this.sortObjectArray(this.groups, "name"), this.items = [{
                label: "Set Filters"
            }, {
                label: ""
            }, {
                label: ""
            }];
            let $ = this.router.getCurrentNavigation() ? .extras ? .state;
            $ && $.templateId && $.title && $.type && (this.savedColumnLayoutActiveData = $, this.templateId = $.templateId, this.columnLayoutName = $.title, this.reportType = $.type, this.editedFileType = $.outputFormat), this.activatedRoute.queryParamMap.pipe(Oi(this.unsubscribe$)).subscribe(y => {
                let U = y.get("mode");
                U === Mt.EDIT && (this.editMode = !0, this.active = 1, this.redirectToFinalColumnList = !0), U === Mt.CREATE && (this.createMode = !0);
            });
        }
        ngOnInit() {
            this.user.userData.role === "1" && (this.selectedOrganizationId === "" || this.selectedOrganizationId === "Purolator" || this.selectedOrganizationName === "Purolator") ? (this.displayAccounts = [], this.user.userData.accounts = []) : (this.displayAccounts = this.user.userData.accounts, this.user.userData.view.signature.selectedAccountReportingList = this.displayAccounts.slice()), this.getSelectedRows(), this.maximumDate = new Date(), this.maximumDate.setFullYear(this.maximumDate.getFullYear() + 1), this.setTotalReports(), this.redirectToFinalColumnList || this.activatedRoute.params.subscribe(e => {
                this.sheduleReportId = e.reportId, this.active = 0, this.sheduleReportId ? this.updatesheduledReportForm() : this.setTotalReports(), this.updateReportTypeDisabledState();
            }), this.checkAuthorization();
        }
        ngAfterViewInit() {
            (this.createMode || this.editMode) && this.userForm.controls.reportFormat.setValue(this.editedFileType), setTimeout(() => {
                this.activeIndex = 0, this.cdr.detectChanges();
            }, 0);
        }
        checkAuthorization() {
            this.authService.isReportingCreateReportAuthorised() || this.authService.isReportingManageSchedulesAuthorised() || this.router.navigate(["/reporting-dashboard"]), this.updateReportTypeDisabledState();
        }
        updateReportTypeDisabledState() {
            let e = this.userForm.get("reportType");
            if (e) {
                let i = this.sheduleReportId || !this.authService.isReportingCreateReportAuthorised(),
                    t = this.sheduleReportId || !this.authService.isReportingManageSchedulesAuthorised();
                i && t ? e.disable() : e.enable();
            }
        }
        updatesheduledReportForm() {
            let e = {
                userId: this.user.userData.id,
                reportId: this.sheduleReportId
            };
            this.sheduleReportId && (this.reportingDashboardService.reportPayLoad.scheduleId = this.sheduleReportId, this.apiService.getSheduledReportById(e).subscribe(i => {
                this.editSchedulereportData = i.payload, this.reportingDashboardService.setColumnLayout(this.editSchedulereportData.columnLayout), this.userForm.controls.reportTitle.setValue(this.editSchedulereportData.title), this.userForm.controls.reportFormat.setValue(this.editSchedulereportData.fileType), this.editSchedulereportData.reportType.recurringType === le.SCHEDULED && (this.userForm.controls.reportType.setValue(V.RECURRING), this.recurringPeriod = this.editSchedulereportData.frequency, this.recurringSchedule(new Bt()), this.userForm.controls.firstReportDate.setValue(this.editSchedulereportData.firstGenerationDate), this.reportingDashboardService.reportPayLoad.generatingDate = this.editSchedulereportData.generatingDate, this.selectDate(new Bt()), this.addRemoveValidation(V.RECURRING)), this.editSchedulereportData.shipment_expected_delivery_date ? this.userForm.controls.deliveryDateRange.setValue(this.editSchedulereportData.shipment_expected_delivery_date) : this.userForm.controls.deliveryDateRange.setValue(""), this.user.userData.view.signature.selectedAccountReportingList = this.editSchedulereportData.accountDetails.accountNumbers.map(n => ({
                    account: n
                })), this.selectAccountsSelected();
                let t = new Set(this.editSchedulereportData.accountDetails.accountNumbers);
                if (this.displayAccounts.forEach(n => {
                        t.has(n.account) && (n.checked = !n.checked);
                    }), this.showSelectedCount(), this.getSelectedRows(), this.setTotalReports(), this.editSchedulereportData ? .exportParams) {
                    let n = {
                        exportParams: this.editSchedulereportData.exportParams,
                        shipmentExpectedDeliveryDate: this.editSchedulereportData.shipment_expected_delivery_date,
                        shipmentPins: this.editSchedulereportData.exportParams.shipmentpin
                    };
                    this.setOptionalFiltersOnEdit(n);
                }
            }));
        }
        setFinalColumn(e) {
            this.templateId = e.templateId || "", this.finalColumnData = e;
        }
        restrictSpecialCharacters(e) {
            let i = /[^~|*<>^{}\\/]/g,
                t = String.fromCharCode(e.charCode);
            i.test(t) || e.preventDefault();
        }
        checkEmptyTitle(e) {
            let i = this.userForm.controls.reportTitle.value,
                t = !0;
            return i && i.trim() ? (this.userForm.controls.reportTitle.setValue(i), t = !1) : (this.userForm.controls.reportTitle.setValue(null), t = !0), t;
        }
        pasteHandler(e) {
            e.preventDefault();
            let t = (e.clipboardData || window.Clipboard).getData("text") + " ";
            if (!/[~|*<>^{}\\/]/g.test(t)) {
                let l = e.target,
                    u = l.value.substring(0, l.selectionStart || 0),
                    T = l.value.substring(l.selectionEnd || 0),
                    f = u + t + T;
                f && f.trim().length >= 30 && (f = f.substring(0, 30)), l.value = f.trimEnd();
                let M = u.length + t.length;
                l.selectionStart = M, l.selectionEnd = M, this.userForm.controls.reportTitle.setValue(f);
            }
        }
        duplicateTitleChecker() {
            let e = !1,
                i = this.reportDataArray;
            return this.editSchedulereportData && (i = i.filter(t => t.title ? .trim() != this.editSchedulereportData ? .title ? .trim())), e = i.some(t => t.title ? .trim().toLocaleUpperCase() == this.userForm.value.reportTitle ? .trim().toLocaleUpperCase()), e ? (this.duplicateReportTitleError = !0, !0) : (this.duplicateReportTitleError = !1, !1);
        }
        creationLast7() {
            let e = new Date(Date.now() - 6048e5),
                i = new Date();
            this.userForm.controls.reportSchedulingDateRange.setValue([e, i]), this.userForm.controls.reportSchedulingDateRange.disable(), this.repSchedulingDateRangeDisable = !0;
        }
        creationLast14() {
            let e = new Date(Date.now() - 12096e5),
                i = new Date();
            this.userForm.controls.reportSchedulingDateRange.setValue([e, i]), this.userForm.controls.reportSchedulingDateRange.disable(), this.repSchedulingDateRangeDisable = !0;
        }
        creationCustom() {
            this.userForm.controls.reportSchedulingDateRange.enable(), this.repSchedulingDateRangeDisable = !1, this.oneTimeMinDate = new Date(), this.oneTimeMinDate.setMonth(this.oneTimeMinDate.getMonth() - 1), this.oneTimeMinDate.setFullYear(this.oneTimeMinDate.getFullYear() - 1);
        }
        applyCreationDate(e, i) {
            let t = this.userForm.controls.reportSchedulingDateRange.value,
                n = this.userForm.controls.reportSchedulingDays.value;
            if (["last7", "last14"].includes(n || "")) n === "last7" ? this.selectedDateRange = "Last 7 days" : n === "last14" && (this.selectedDateRange = "Last 14 Days"), this.shipmentDateError = !1;
            else if (t != null) {
                let l = t.toString().split(",");
                l[1] ? (this.selectedDateRange = Ue(new Date(l[0])) + " - " + Ue(new Date(l[1])), new Date(l[0]) > new Date(l[1]) ? (this.shipmentDateError = !0, this.userForm.controls.reportSchedulingDateRange.setValue(null)) : this.shipmentDateError = !1) : (this.selectedDateRange = Ue(new Date(l[0])) + " - " + Ue(new Date(l[0])), this.userForm.controls.reportSchedulingDateRange.setValue([new Date(l[0]), new Date(l[0])]));
            }
            this.userForm.controls.reportSchedulingDaysValidator.setValue(n), i.isExpanded$.next(!1);
        }
        setLast7OnClear() {
            this.creationLast7(), this.userForm.controls.reportSchedulingDays.setValue("last7"), this.selectedDateRange = "Last 7 days", this.userForm.controls.reportSchedulingDaysValidator.setValue("last7");
        }
        stepBack() {
            this.editMode ? this.router.navigate(["/reporting-dashboard/saved-column-layouts"]) : (this.active = this.active - 1, this.tabLabelHandler(this.active));
        }
        stepNext() {
            if (this.redirectToFinalColumnList = !1, this.active == 0) {
                let e = this.duplicateTitleChecker();
                if (this.checkEmptyTitle(null)) return;
                if (!e) {
                    if (this.active = 1, this.reportingDashboardService.reportPayLoad.lang = this.locale, this.reportingDashboardService.reportPayLoad.userId = this.user.userData.id, this.reportingDashboardService.reportPayLoad.title = this.userForm.value.reportTitle, this.userForm.controls.reportType.value ? .toLowerCase() === V.ONETIME) {
                        this.reportingDashboardService.reportPayLoad.reportType.reportName = ne.TRACKING, this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.ADHOC;
                        let b = this.userForm.controls.reportSchedulingDateRange.value;
                        b && (this.reportingDashboardService.reportPayLoad.shipmentDateStart = this.datePipe.transform(b[0], ce), this.reportingDashboardService.reportPayLoad.shipmentDateEnd = this.datePipe.transform(b[1], ce));
                        let v = this.userForm.value.deliveryDateRange;
                        v && (v === "none" ? this.reportingDashboardService.reportPayLoad.exportParams.packageEstimatedDeliveryDate = {
                            from_date: "",
                            to_date: ""
                        } : v instanceof Array && (this.reportingDashboardService.reportPayLoad.exportParams.packageEstimatedDeliveryDate = {
                            from_date: this.datePipe.transform(v[0], ce),
                            to_date: this.datePipe.transform(v[1], ce)
                        }));
                    } else {
                        this.reportingDashboardService.reportPayLoad.reportType.reportName = ne.TRACKING, this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.SCHEDULED, this.reportingDashboardService.reportPayLoad.userEmail = this.user.userData.email, this.reportingDashboardService.reportPayLoad.frequency = this.userForm.value.recurringShedule, this.reportingDashboardService.reportPayLoad.generatingDate = this.datePipe.transform(this.userForm.value.firstReportDate, ce);
                        let b = this.userForm.value.deliveryDateRange;
                        b && (this.reportingDashboardService.reportPayLoad.shipment_expected_delivery_date = b === "none" ? "" : b);
                    }
                    this.reportingDashboardService.reportPayLoad.email = this.user.userData.email, this.reportingDashboardService.reportPayLoad.fileType = this.userForm.value.reportFormat, this.reportingDashboardService.reportPayLoad.creationDate = this.datePipe.transform(new Date(), ce), this.reportingDashboardService.reportPayLoad.accountDetails = this.buildAccountList(), this.reportingDashboardService.reportPayLoad.exportParams.shipmentpin = this.user.userData.view.signature.pins, this.reportingDashboardService.reportPayLoad.exportParams.filters = [];
                    let n = this.userForm.value.packageStatus;
                    this.setOptionalFilters(n, Re.PACKAGE_STATUS_CODE);
                    let l = this.userForm.value.exceptionCategory;
                    this.setOptionalFilters(l, E.PACKAGESTATUSSUBCODE);
                    let u = this.userForm.value.timeOfDeliveryCategory;
                    this.setOptionalFilters(u, E.DESCRIPTION);
                    let T = this.userForm.value.priorityCategory;
                    this.setOptionalFilters(T, E.PRODUCTCODE);
                    let f = this.userForm.value.domesticCategory;
                    this.setOptionalFilters(f, E.RECEIVERCOUNTRYCODE);
                    let M = this.userForm.value.shipperDetails;
                    this.setShipperDetails(M);
                    let D = this.userForm.value.receiverDetails;
                    this.setReceiverDetails(D);
                }
            } else if (this.active == 1) {
                if (this.finalColumnData.columnList.length > 0) {
                    let e = this.finalColumnData.columnList.map(i => i.field);
                    this.reportingDashboardService.setColumnLayout({
                        templateId: this.templateId,
                        columnNames: e
                    });
                }
                this.active = 2;
            } else if (this.active == 2) {
                if (this.totalReports >= 100) {
                    this.setCapacityModalDetails(), this.displayCapacityModal = !0;
                    return;
                }
                this.sheduleReportId ? this.updateSheduleReport() : this.createReport();
            }
            this.tabLabelHandler(this.active), this.reportData = this.userForm.value;
        }
        tabLabelHandler(e) {
            let i = [{}, {}, {}],
                t = ["Set Filters", "Finalize Columns", "Review Details"];
            i[e] = {
                label: t[e]
            }, this.items = i;
        }
        getSelectedRows() {
            this.reloadDisplayAccounts(), oi.setAccountSummaryForReporting(this.user.userData.view.signature, this.displayAccounts.length), this.allAccountsSelected = this.user.userData.view.signature.accountSummaryReporting;
            let e = this.displayAccounts.filter(i => i.checked);
            this.backupAccounts = this.displayAccounts, this.selectAll = e.length === this.displayAccounts.length, (this.selectAll || !this.user.userData.view.signature.selectedAccountReportingList.length) && (this.allAccountsSelected = "" + e.length + " of " + this.displayAccounts.length + " Selected", this.selectAll = !0), this.selectAll && (this.displayAccounts.forEach(i => i.checked = !1), this.groups.forEach(i => i.checked = !1), this.selectAll = !1, this.selectedAccounts = 0, this.selectedGroups = 0, this.clearAccountFilter()), this.showSelectedCount();
        }
        reloadDisplayAccounts() {
            this.displayAccounts = this.user.userData.accounts, this.selectAccountsSelected();
            let e = this.displayAccounts.filter(i => i.checked);
            e.length === this.user.userData.accounts.length && (this.allAccountsSelected = "" + e.length + " of " + this.displayAccounts.length + " Selected"), this.displayAccounts.forEach(i => {
                e.forEach(t => {
                    t.account === i.account && (i.checked = !0);
                });
            });
        }
        selectAccountsSelected() {
            this.displayAccounts.forEach(e => {
                this.user.userData.view.signature.selectedAccountReportingList.forEach(i => {
                    i.account === e.account && (e.checked = !0);
                });
            }), this.allAccountsSelected = this.user.userData.view.signature.accountSummaryReporting;
        }
        selectGroupsSelected() {
            this.groups.forEach(i => {
                this.user.userData.view.signature.selectedGroupReportingList.forEach(t => {
                    t.name === i.name && (i.checked = !0);
                });
            }), this.groups.filter(i => i.checked).forEach(i => {
                let t = i.accounts.map(n => n.account);
                for (let n = 0; n < t.length; n++)
                    for (let l = 0; l < this.displayAccounts.length; l++) this.displayAccounts[l].account === t[n] && (this.displayAccounts[l].checked = !0);
            });
        }
        onSelectedCount(e) {
            this.displayAccounts.forEach(i => {
                i.account === e.account && (i.checked = !i.checked);
            }), this.showSelectedCount();
        }
        showSelectedCount() {
            this.selectedAccounts = this.displayAccounts.filter(e => e.checked).length, this.onlySelected && this.onOnlySelected();
        }
        onSelectedGroupCount(e) {
            this.groups.forEach(i => {
                i.name === e.name && (i.checked = !i.checked, i.accounts.forEach(t => {
                    this.displayAccounts.forEach(n => {
                        n.account === t.account && (n.checked = i.checked);
                    });
                }));
            }), this.showSelectedGroupCount();
        }
        showSelectedGroupCount() {
            this.selectedGroups = this.groups.filter(e => e.checked).length, this.onlySelected && this.onOnlySelectedGroup();
        }
        onSelectAll() {
            this.selectAll ? (this.displayAccounts || []).forEach(e => {
                (!this.filterTerritory || e.territory.toLowerCase().includes(this.filterTerritory.toLowerCase())) && (!this.filterCity || e.city.toLowerCase().includes(this.filterCity.toLowerCase())) && (!this.filterPostalZipCode || e.postalZipCode.toLowerCase().includes(this.filterPostalZipCode.toLowerCase())) && (!this.filterName || e.name.toLowerCase().includes(this.filterName.toLowerCase())) && (!this.filterAccount || e.account.toLowerCase().includes(this.filterAccount.toLowerCase())) && (e.checked = !1);
            }) : (this.displayAccounts || []).forEach(e => {
                (!this.filterTerritory || e.territory.toLowerCase().includes(this.filterTerritory.toLowerCase())) && (!this.filterCity || e.city.toLowerCase().includes(this.filterCity.toLowerCase())) && (!this.filterPostalZipCode || e.postalZipCode.toLowerCase().includes(this.filterPostalZipCode.toLowerCase())) && (!this.filterName || e.name.toLowerCase().includes(this.filterName.toLowerCase())) && (!this.filterAccount || e.account.toLowerCase().includes(this.filterAccount.toLowerCase())) && (e.checked = !0);
            }), this.showSelectedCount();
        }
        onFilterChange() {
            this.selectAll = !1;
        }
        clearAccountFilter() {
            this.filterAccount = "", this.filterName = "", this.filterCity = "", this.filterTerritory = "", this.filterPostalZipCode = "";
        }
        onOnlySelected() {
            this.onlySelected ? (this.clearAccountFilter(), this.displayAccounts = this.displayAccounts.filter(e => e.checked)) : this.reloadDisplayAccounts();
        }
        onOnlySelectedGroup() {
            this.onlySelected ? this.groups = this.groups.filter(e => e.checked) : this.groups = this.backupGroups;
        }
        onCancel(e) {
            e.isExpanded$.next(!1);
        }
        onDone(e) {
            let i = this.displayAccounts.filter(t => t.checked);
            this.displayAccounts = this.user.userData.accounts, this.onlySelected = !1, this.displayAccounts.forEach(t => {
                i.forEach(n => {
                    n.account === t.account && (t.checked = !0);
                });
            }), i.forEach(t => {
                delete t.checked;
            }), this.user.userData.view.signature.selectedAccountReportingList = i, oi.setAccountSummaryForReporting(this.user.userData.view.signature, this.displayAccounts.length), this.displayAccounts.length === this.user.userData.view.signature.selectedAccountReportingList.length && (this.user.userData.view.signature.accountSummaryReporting = "" + i.length + " of " + this.displayAccounts.length + " Selected", (this.displayAccounts || []).forEach(t => t.checked = !0), this.selectAll = !0), this.selectAccountsSelected(), this.onCancel(e);
        }
        onDoneGroup(e) {
            let i = this.groups.filter(t => t.checked);
            i.forEach(t => {
                let n = t.accounts.map(l => l.account);
                for (let l = 0; l < n.length; l++)
                    for (let u = 0; u < this.displayAccounts.length; u++) this.displayAccounts[u].account === n[l] && (this.displayAccounts[u].checked = !0);
                delete t.checked;
            }), this.user.userData.view.signature.selectedGroupReportingList = i, this.selectGroupsSelected(), this.onDone(e);
        }
        expandedGroup(e) {
            this.expandedGroupName.includes(e) ? this.expandedGroupName = this.expandedGroupName.filter(i => i !== e) : this.expandedGroupName.push(e);
        }
        sortObjectArray(e, i) {
            e.sort((t, n) => {
                let l = t[i].toLowerCase(),
                    u = n[i].toLowerCase();
                return l < u ? -1 : l > u ? 1 : 0;
            });
        }
        backToReports() {
            this.createMode || this.editMode ? this.router.navigate(["/reporting-dashboard/saved-column-layouts"]) : this.userForm.controls.reportType.value ? .toLowerCase() === V.ONETIME ? this.router.navigate(["/reporting-dashboard/recently-generated"]) : this.userForm.controls.reportType.value ? .toLowerCase() === V.RECURRING ? this.router.navigate(["/reporting-dashboard/scheduled"]) : this.router.navigate(["/reporting-dashboard/recently-generated"]);
        }
        backtoReportNo() {
            this.isNoClicked = !0, this.isFormUnsavedModal = !1, this.router.navigate(["reporting-dashboard/recently-generated"]);
        }
        canDeactivate() {
            return this.userForm.dirty && !this.isTrackingSummaryreportUpdated && this.sheduleReportId ? (this.isFormUnsavedModal = !0, !!this.isNoClicked) : !0;
        }
        recurringSchedule(e) {
            let i = this.userForm.controls.recurringShedule.value || this.recurringPeriod;
            switch (this.recurringPeriod = i, i) {
                case Fe.WEEKLY:
                    this.selectedPeriod = "Weekly";
                    break;
                case Fe.BIWEEKLY:
                    this.selectedPeriod = "Bi-Weekly";
                    break;
                case Fe.MONTHLY:
                    this.selectedPeriod = "Monthly";
                    break;
                case Fe.QUARTERLY:
                    this.selectedPeriod = "Quarterly";
                    break;
                case Fe.ANNUALLY:
                    this.selectedPeriod = "Annually";
                    break;
            }
            this.userForm.controls.recurringSheduleValidator.setValue(this.selectedPeriod), e ? .isExpanded$ ? .next(!1), this.validaterecurring();
        }
        clearShedule(e) {
            this.selectedPeriod = "Select", e.isExpanded$.next(!1), this.userForm.controls.recurringShedule.setValue(null), this.clearDate(e);
        }
        validaterecurring(e) {
            if (this.sheduleReportId || !this.authService.isReportingManageSchedulesAuthorised()) {
                e && (e.preventDefault ? .(), e.stopPropagation ? .());
                return;
            }
            this.sheduleReportId || this.addRemoveValidation(V.RECURRING), this.shipmentDateError = !1, this.setTotalReports();
        }
        selectDate(e) {
            let i = this.userForm.controls.firstReportDate.value;
            if (i) {
                let t = i.toString().split(",");
                this.selectedFirstReportDate = Ue(new Date(t[0]));
            }
            this.userForm.controls.firstReportDateValidator.setValue(i), e.isExpanded$.next(!1);
        }
        clearDate(e) {
            this.selectedFirstReportDate = It, e.isExpanded$.next(!1), this.userForm.controls.firstReportDate.setValue(null);
        }
        validateonetime(e) {
            if (this.sheduleReportId || !this.authService.isReportingCreateReportAuthorised()) {
                e.preventDefault(), e.stopPropagation();
                return;
            }
            this.sheduleReportId || (this.selectedPeriod = "Select", this.selectedFirstReportDate = It, this.addRemoveValidation(V.ONETIME)), this.setTotalReports();
        }
        addRemoveValidation(e) {
            e === V.ONETIME ? (this.userForm.controls.reportSchedulingDateRange.setValidators([_e.required]), this.userForm.controls.reportSchedulingDaysValidator.setValidators([_e.required]), this.userForm.controls.recurringSheduleValidator.setValidators(null), this.userForm.controls.recurringSheduleValidator.setValue(null), this.userForm.controls.firstReportDateValidator.setValidators(null), this.userForm.controls.firstReportDateValidator.setValue(null), this.userForm.controls.recurringShedule.setValidators(null), this.userForm.controls.recurringShedule.setValue(null), this.userForm.controls.firstReportDate.setValidators(null), this.userForm.controls.firstReportDate.setValue(null), this.recurringPeriod = "", this.setLast7OnClear(), this.reportSchedulingType = V.ONETIME) : e === V.RECURRING && (this.userForm.controls.recurringShedule.setValidators([_e.required]), this.userForm.controls.recurringSheduleValidator.setValidators([_e.required]), this.userForm.controls.firstReportDate.setValidators([_e.required]), this.userForm.controls.firstReportDateValidator.setValidators([_e.required]), this.userForm.controls.reportSchedulingDateRange.setValidators(null), this.userForm.controls.reportSchedulingDaysValidator.setValidators(null), this.userForm.controls.reportSchedulingDateRange.setValue(null), this.userForm.controls.reportSchedulingDaysValidator.setValue(null), this.userForm.controls.reportSchedulingDays.setValue(null), this.userForm.controls.deliveryDateRange.setValue(null), this.selectedDateRange = null, this.reportSchedulingType = V.RECURRING), this.userForm.controls.recurringSheduleValidator.updateValueAndValidity(), this.userForm.controls.firstReportDateValidator.updateValueAndValidity(), this.userForm.controls.reportSchedulingDaysValidator.updateValueAndValidity(), this.userForm.controls.reportSchedulingDateRange.updateValueAndValidity(), this.userForm.controls.recurringShedule.updateValueAndValidity(), this.userForm.controls.firstReportDate.updateValueAndValidity();
        }
        updateCheckedExceptionCategory(e) {
            this.userForm.controls.exceptionCategory.setValue(e), this.userForm.controls.exceptionCategory.markAsDirty();
        }
        updateCheckedServicePriority(e) {
            this.userForm.controls.priorityCategory.setValue(e), this.userForm.controls.priorityCategory.markAsDirty();
        }
        updateCheckedServiceTimeOfDelivery(e) {
            this.userForm.controls.timeOfDeliveryCategory.setValue(e), this.userForm.controls.timeOfDeliveryCategory.markAsDirty();
        }
        updateCheckedServiceDomestic(e) {
            this.userForm.controls.domesticCategory.setValue(e), this.userForm.controls.domesticCategory.markAsDirty();
        }
        updatePackageStatus(e) {
            this.userForm.controls.packageStatus.setValue(e), this.userForm.controls.packageStatus.markAsDirty();
        }
        updatedeliveryDateRange(e) {
            this.userForm.controls.deliveryDateRange.setValue(e), this.userForm.controls.deliveryDateRange.markAsDirty();
        }
        updateShipperDetails(e) {
            this.userForm.controls.shipperDetails.setValue(e), this.userForm.controls.shipperDetails.markAsDirty();
        }
        updateReceiverDetails(e) {
            this.userForm.controls.receiverDetails.setValue(e), this.userForm.controls.receiverDetails.markAsDirty();
        }
        buildAccountList() {
            let e = [],
                i = [];
            for (let t = 0; t < this.user.userData.view.signature.selectedGroupReportingList.length; t++) i.push(this.user.userData.view.signature.selectedGroupReportingList[t].name);
            if (this.user.userData.view.signature.selectedAccountReportingList.length === 0)
                for (let t = 0; t < this.user.userData.accounts.length; t++) e.push(this.user.userData.accounts[t].account);
            else
                for (let t = 0; t < this.user.userData.view.signature.selectedAccountReportingList.length; t++) e.push(this.user.userData.view.signature.selectedAccountReportingList[t].account);
            return {
                groupNames: i,
                accountNumbers: e
            };
        }
        createReport() {
            this.spinner.show("reportProcessingSpinner"), this.userForm.controls.reportType.value ? .toLocaleLowerCase() === V.ONETIME ? this.createReportSubscription = this.apiService.createReport(this.reportingDashboardService.reportPayLoad).subscribe({
                next: e => {
                    this.spinner.hide("reportProcessingSpinner"), this.resetUserForm(), this.displayGenerateModal = !0;
                },
                error: e => {
                    this.spinner.hide("reportProcessingSpinner");
                }
            }) : this.createReportSubscription = this.apiService.sheduleReportPost(this.reportingDashboardService.reportPayLoad).subscribe({
                next: e => {
                    this.spinner.hide("reportProcessingSpinner"), this.resetUserForm(), this.displayGenerateModal = !0;
                },
                error: e => {
                    this.spinner.hide("reportProcessingSpinner");
                }
            });
        }
        updateSheduleReport() {
            this.createReportSubscription = this.apiService.createSheduleReport(this.reportingDashboardService.reportPayLoad).subscribe({
                next: e => {
                    this.spinner.hide("reportProcessingSpinner"), this.resetUserForm(), this.displayUpdateModal = !0, this.isTrackingSummaryreportUpdated = !0;
                },
                error: e => {
                    this.spinner.hide("reportProcessingSpinner");
                }
            });
        }
        changeTab(e) {
            this.active = e.tabIndex, this.tabLabelHandler(e.tabIndex), this.templateId = e.templateId;
        }
        setTotalReports() {
            this.userForm.controls.reportType.value ? .toLocaleLowerCase() === V.ONETIME ? this.apiService.generatedReportsGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                let i = e.payload;
                this.reportDataArray = i, this.totalReports = i.length;
            }) : this.apiService.sheduleReportGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                let i = e.payload;
                this.reportDataArray = i, this.totalReports = i.length;
            });
        }
        setCapacityModalDetails() {
            this.userForm.controls.reportType.value ? .toLocaleLowerCase() === V.RECURRING ? (this.summaryText = "Scheduled Reports are at Capacity.", this.detailText = "You have reached the maximum number of scheduled reports. Please delete a report to free up space.") : (this.summaryText = "Generated Reports are at Capacity.", this.detailText = "You have reached the maximum number of reports created. Please delete a report to free up space.");
        }
        setOptionalFilters(e, i, t = ci.OR) {
            if (e.length > 0) {
                let n = [];
                e.forEach(u => {
                    n.push({
                        value: u ? .key ? .trim(),
                        matchMode: u ? .matchMode || Yo.CONTAINS,
                        operator: t
                    });
                });
                let l = this.reportingDashboardService.reportPayLoad.exportParams.filters.find(u => u.columnName === i);
                if (l) {
                    let u = this.reportingDashboardService.reportPayLoad.exportParams.filters.indexOf(l);
                    this.reportingDashboardService.reportPayLoad.exportParams.filters[u].actions = n;
                } else this.reportingDashboardService.reportPayLoad.exportParams.filters.push({
                    columnName: i,
                    actions: n
                });
            } else {
                let n = this.reportingDashboardService.reportPayLoad.exportParams.filters.find(l => l.columnName === i);
                if (n) {
                    let l = this.reportingDashboardService.reportPayLoad.exportParams.filters.indexOf(n);
                    this.reportingDashboardService.reportPayLoad.exportParams.filters.splice(l, 1);
                }
            }
        }
        setShipperDetails(e) {
            let i = {};
            e.forEach(t => {
                i[t.shipperName] || (i[t.shipperName] = []), i[t.shipperName] = [...i[t.shipperName], {
                    column: t.shipperName,
                    matchMode: t.shipperFilterOperator,
                    key: t.shipperText
                }];
            });
            for (let t in i) this.setOptionalFilters(i[t], t, ci.AND);
        }
        setReceiverDetails(e) {
            let i = {};
            e.forEach(t => {
                i[t.receiverName] || (i[t.receiverName] = []), i[t.receiverName] = [...i[t.receiverName], {
                    column: t.receiverName,
                    matchMode: t.receiverFilterOperator,
                    key: t.receiverText
                }];
            });
            for (let t in i) this.setOptionalFilters(i[t], t, ci.AND);
        }
        resetUserForm() {
            this.userForm.reset(), this.user.userData.view.signature.pinText = "", this.user.updatePinEntry(), this.userForm.controls.reportType.setValue(V.ONETIME), this.userForm.controls.reportSchedulingDays.setValue("last7"), this.userForm.controls.reportSchedulingDateRange.setValue(this.initialDate), this.userForm.controls.deliveryDateRange.setValue("none");
            let e = this.user.userData.view.signature.selectedAccountReportingList ? .length || 0;
            this.userForm.controls.reportAccounts.setValue(e), this.userForm.controls.recurringShedule.setValue(""), this.userForm.controls.firstReportDate.setValue(""), this.userForm.controls.exceptionCategory.setValue([]), this.userForm.controls.priorityCategory.setValue([]), this.userForm.controls.timeOfDeliveryCategory.setValue([]), this.userForm.controls.domesticCategory.setValue([]), this.userForm.controls.shipperDetails.setValue([]), this.userForm.controls.receiverDetails.setValue([]), this.userForm.controls.packageStatus.setValue([]), this.userForm.controls.optionalFilter.setValue({}), this.reportingDashboardService.resetReportPayload(), this.selectedDateRange = "Last 7 days", this.selectedPeriod = "Select", this.recurringPeriod = "", this.selectedFirstReportDate = It, this.selectedFormat = "csv", this.finalColumnData = {
                title: "",
                columnList: []
            }, this.templateId = "", this.sheduleReportId = "", this.filterClose = !1, this.displayAccounts = this.user.userData.accounts, this.backupAccounts = this.displayAccounts, this.groups = this.user.userData.localAccountGroups.filter(i => i.organizationId === this.user.userData.view.signature.selectedOrganizationId), this.backupGroups = this.groups, this.expandedGroupName = [], this.selectedAccounts = 0, this.selectedGroups = 0, this.selectAll = !1, this.onlySelected = !1, this.allAccountsSelected = "", this.activeIndex = 0, this.recurringtype = "", this.selectedFirstReportDate = It, this.oneTimeMinDate = new Date(), this.displayGenerateModal = !1, this.displayUpdateModal = !1, this.displayCapacityModal = !1, this.totalReports = 0;
        }
        createReportFromSavedColumnLayout() {
            if (this.reportingDashboardService.reportPayLoad.lang = this.locale, this.reportingDashboardService.reportPayLoad.userId = this.user.userData.id, this.reportingDashboardService.reportPayLoad.title = this.userForm.value.reportTitle, this.userForm.controls.reportType.value ? .toLowerCase() === V.ONETIME) {
                this.reportingDashboardService.reportPayLoad.reportType.reportName = ne.TRACKING, this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.ADHOC;
                let D = this.userForm.value.deliveryDateRange;
                D === "none" ? this.reportingDashboardService.reportPayLoad.exportParams.packageEstimatedDeliveryDate = {
                    from_date: "",
                    to_date: ""
                } : D instanceof Array && (this.reportingDashboardService.reportPayLoad.exportParams.packageEstimatedDeliveryDate = {
                    from_date: this.datePipe.transform(D[0], ce),
                    to_date: this.datePipe.transform(D[1], ce)
                });
            } else {
                this.reportingDashboardService.reportPayLoad.reportType.reportName = ne.TRACKING, this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.SCHEDULED, this.reportingDashboardService.reportPayLoad.userEmail = this.user.userData.email, this.reportingDashboardService.reportPayLoad.frequency = this.userForm.value.recurringShedule, this.reportingDashboardService.reportPayLoad.generatingDate = this.datePipe.transform(this.userForm.value.firstReportDate, ce);
                let D = this.userForm.value.deliveryDateRange;
                D && (this.reportingDashboardService.reportPayLoad.shipment_expeced_delivery_date = D === "none" ? "" : D);
            }
            this.reportingDashboardService.reportPayLoad.columnLayout.templateId = this.savedColumnLayoutActiveData.templateId, this.reportingDashboardService.reportPayLoad.columnLayout.columnNames = this.savedColumnLayoutActiveData.columns, this.reportingDashboardService.reportPayLoad.email = this.user.userData.email, this.reportingDashboardService.reportPayLoad.fileType = this.userForm.value.reportFormat, this.reportingDashboardService.reportPayLoad.creationDate = this.datePipe.transform(new Date(), ce);
            let i = this.userForm.controls.reportSchedulingDateRange.value;
            i && (this.reportingDashboardService.reportPayLoad.shipmentDateStart = this.datePipe.transform(i[0], ce), this.reportingDashboardService.reportPayLoad.shipmentDateEnd = this.datePipe.transform(i[1], ce)), this.reportingDashboardService.reportPayLoad.accountDetails = this.buildAccountList(), this.reportingDashboardService.reportPayLoad.exportParams.shipmentpin = this.user.userData.view.signature.pins;
            let t = this.userForm.value.packageStatus;
            this.setOptionalFilters(t, Re.PACKAGE_STATUS_CODE);
            let n = this.userForm.value.exceptionCategory;
            this.setOptionalFilters(n, E.PACKAGESTATUSSUBCODE);
            let l = this.userForm.value.timeOfDeliveryCategory;
            this.setOptionalFilters(l, E.DESCRIPTION);
            let u = this.userForm.value.priorityCategory;
            this.setOptionalFilters(u, E.PRODUCTCODE);
            let T = this.userForm.value.domesticCategory;
            this.setOptionalFilters(T, E.RECEIVERCOUNTRYCODE);
            let f = this.userForm.value.shipperDetails;
            this.setShipperDetails(f);
            let M = this.userForm.value.receiverDetails;
            this.setReceiverDetails(M), this.createReport();
        }
        setOptionalFiltersOnEdit(e) {
            e && e.exportParams.filters.length > 0 && e.exportParams.filters.forEach(t => {
                let n = [];
                switch (t.actions.forEach(l => {
                    n.push({
                        key: l.value,
                        matchMode: l.matchMode,
                        operator: l.operator
                    });
                }), t.columnName) {
                    case Re.PACKAGE_STATUS_CODE:
                        this.userForm.controls.packageStatus.setValue(n), this.optionalFilterEvent.next({
                            topic: Re.PACKAGE_STATUS_CODE,
                            value: n
                        });
                        break;
                    case E.PACKAGESTATUSSUBCODE:
                        this.userForm.controls.exceptionCategory.setValue(n), this.optionalFilterEvent.next({
                            topic: E.PACKAGESTATUSSUBCODE,
                            value: n
                        });
                        break;
                    case E.DESCRIPTION:
                        this.userForm.controls.timeOfDeliveryCategory.setValue(n), this.optionalFilterEvent.next({
                            topic: E.DESCRIPTION,
                            value: n
                        });
                        break;
                    case E.PRODUCTCODE:
                        this.userForm.controls.priorityCategory.setValue(n), this.optionalFilterEvent.next({
                            topic: E.PRODUCTCODE,
                            value: n
                        });
                        break;
                    case E.RECEIVERCOUNTRYCODE:
                        this.userForm.controls.domesticCategory.setValue(n), this.optionalFilterEvent.next({
                            topic: E.RECEIVERCOUNTRYCODE,
                            value: n
                        });
                        break;
                    default:
                        this.optionalFilterEvent.next({
                            topic: t.columnName,
                            value: n
                        });
                        break;
                }
            });
            let i = e.shipmentExpectedDeliveryDate;
            if (i && this.optionalFilterEvent.next({
                    topic: Di.DELIVERY_DATE_RANGE,
                    value: i
                }), e.shipmentPins) {
                let t = e.shipmentPins;
                this.user.userData.view.signature.pinText = t.join(","), this.user.updatePinEntry();
            }
        }
        hideGenerateDialog() {
            this.displayGenerateModal = !1, this.router.navigate(["/reporting-dashboard/recently-generated"]);
        }
        ngOnDestroy() {
            this.unsubscribe$.next(), this.unsubscribe$.complete(), this.createReportSubscription && this.createReportSubscription.unsubscribe();
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(si), A(ot), A(We), A(Se), A(xe), A(je), A(se), A(ke), A(ue), A(Ni), A(Ye));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-onetime-report"]
                ],
                viewQuery: function(i, t) {
                    if (i & 1 && Ht(Sp, 5), i & 2) {
                        let n;
                        we(n = Ge()) && (t.dropdown = n.first);
                    }
                },
                features: [Te([ue])],
                decls: 52,
                vars: 28,
                consts: () => {
                    let e;
                    e = "Generating Report";
                    let i;
                    i = "Scheduling a Report";
                    let t;
                    t = "There are unsaved changes";
                    let n;
                    n = "Processing...";
                    let l;
                    l = "Back to Reporting";
                    let u;
                    u = " Your Tracking Summary report is now being generated. You will receive an email with a link to your report, and you will be able to access it from the Reports tab once it's ready. ";
                    let T;
                    T = " You have scheduled (or edited a schedule) to generate a report. This planned report is now visible in your scheduled reports tab. At the specified report date/interval, a new report will appear in your generated report tab. ";
                    let f;
                    f = "Do you want to save the changes?";
                    let M;
                    M = "Tracking Summary Report";
                    let D;
                    D = "Create a Report";
                    let b;
                    b = " View the one-time performance of your shipments compared with Purolator's delivery guarantees. ";
                    let v;
                    v = " Report Columns ";
                    let $;
                    $ = "Cancel";
                    let y;
                    y = "Done";
                    let U;
                    U = "Cancel";
                    let oe;
                    oe = "Done";
                    let B;
                    B = "Report Title";
                    let w;
                    w = "Report Schedule";
                    let pe;
                    pe = "One-Time";
                    let Y;
                    Y = "Recurring";
                    let Q;
                    Q = "Accounts";
                    let Oe;
                    Oe = "Select Accounts/Groups";
                    let Pe;
                    Pe = "" + "\uFFFD0\uFFFD" + "\xA0 selected";
                    let Ae;
                    Ae = "Show only selected\xA0";
                    let Ne;
                    Ne = "Accounts";
                    let Me;
                    Me = "Groups";
                    let I;
                    I = "Loading... ";
                    let Rt;
                    Rt = "Loading... ";
                    let Ct;
                    Ct = "Report Format";
                    let Tt;
                    Tt = "CSV";
                    let ht;
                    ht = "PDF";
                    let ft;
                    ft = "XLS";
                    let St;
                    St = " Enter the information you want to filter for in your report. ";
                    let Ot;
                    Ot = "Column Layout Name";
                    let W;
                    W = "" + "\uFFFD0\uFFFD" + "";
                    let Kt;
                    Kt = "Report Type";
                    let Zt;
                    Zt = "" + "\uFFFD0\uFFFD" + "";
                    let qt;
                    qt = " Title already exists, please provide a unique title ";
                    let jt;
                    jt = "Select Date Range";
                    let Qt;
                    Qt = "Select a Date Range";
                    let Jt;
                    Jt = "Last 7 days";
                    let ei;
                    ei = "Last 14 days";
                    let H;
                    H = "Custom";
                    let Hi;
                    Hi = "Clear";
                    let zi;
                    zi = "Filter";
                    let Yi;
                    Yi = " Shipment end date should be greater than shipment start date. ";
                    let Wi;
                    Wi = "Report Period";
                    let Ki;
                    Ki = "Select Report Period";
                    let Zi;
                    Zi = "Weekly";
                    let qi;
                    qi = "Bi-Weekly";
                    let ji;
                    ji = "Monthly";
                    let Qi;
                    Qi = "Quarterly";
                    let Ji;
                    Ji = "Annually";
                    let eo;
                    eo = "Clear";
                    let to;
                    to = "Filter";
                    let io;
                    io = "Date of First Report";
                    let oo;
                    oo = "Date of First Report";
                    let no;
                    no = "Date of First Report";
                    let ro;
                    ro = "Clear";
                    let ao;
                    ao = "Filter";
                    let lo;
                    lo = "Select All";
                    let so;
                    so = "Province/State";
                    let po;
                    po = "City";
                    let _o;
                    _o = "Postal Code";
                    let co;
                    co = "Account Name";
                    let uo;
                    uo = "Account Number";
                    let mo;
                    mo = "No groups available.";
                    let go;
                    go = " " + "\uFFFD0\uFFFD" + " Accounts " + "\uFFFD#10\uFFFD" + "" + "\uFFFD/#10\uFFFD" + "";
                    let Eo;
                    Eo = "Cancel";
                    let Ro;
                    Ro = "Back";
                    let Co;
                    Co = "Create Report";
                    let To;
                    To = "Continue";
                    let ho;
                    ho = "Generate Report";
                    let fo;
                    fo = "Update Schedule";
                    let So;
                    So = "Go to Reports";
                    let Oo;
                    Oo = "Okay";
                    let Po;
                    Po = "Go to Reports";
                    let Ao;
                    Ao = "No";
                    let No;
                    return No = "Yes", [
                        ["footer", ""],
                        ["accountEditor", ""],
                        ["creationDateEditor", ""],
                        ["pCreationCalendar", ""],
                        ["selectrecurringeditor", ""],
                        ["firstreportDateEditor", ""],
                        ["pFirstReportCalendar", ""],
                        ["row", ""], n, l, u, T, f, M, D, b, v, B, w, pe, Y, Q, Oe, Pe, Ae, Ne, Me, I, Rt, Ct, Tt, ht, ft, St, Ot, W, Kt, Zt, qt, Qt, Jt, ei, H, Hi, zi, Yi, Ki, Zi, qi, ji, Qi, Ji, eo, to, oo, no, ro, ao, lo, so, po, _o, co, uo, mo, go, Eo, Ro, Co, To, ho, fo, So, ["name", "reportProcessingSpinner", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        [1, "back-to-reporting"],
                        ["tabindex", "0", 1, "cursor-pointer", 3, "click", "keypress"],
                        [1, "back-icon"],
                        [1, "backto"],
                        [1, "reportForm", "reportForm__content", "pur-card", "tracking-summary-repo"],
                        [1, "reportForm__header"],
                        [1, "reportForm__header-text"],
                        ["class", "exception-report-heading", 4, "ngIf"],
                        [4, "ngIf"],
                        [3, "innerHTML", 4, "ngIf"],
                        ["class", "row", 4, "ngIf"],
                        ["class", "flex justify-content-center", 4, "ngIf"],
                        [1, "pur-card__actions", "action-container", "container-margin"],
                        ["pButton", "", "class", "pur-button cursor-pointer pur-button--sm pur-button--outline mx-2", 3, "click", 4, "ngIf"],
                        ["pButton", "", "class", "pur-button pur-button--sm pur-button--outline mx-2", 3, "click", 4, "ngIf"],
                        ["pButton", "", "class", "pur-button  pur-button--sm mx-2", 3, "disabled", "click", 4, "ngIf"],
                        [1, "generate-report-dailog"],
                        ["header", e, "closeTabindex", "0", 1, "pur-dialog", 3, "visibleChange", "onHide", "visible", "modal", "closeAriaLabel"],
                        [1, "model-body", "text-left"],
                        [1, "delete-dailog"],
                        [1, "pur-dialog", 3, "visibleChange", "header", "visible", "modal"],
                        [1, "update-report-dailog"],
                        ["header", i, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        ["header", t, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "exception-report-heading"],
                        [3, "innerHTML"],
                        [1, "sub-header"],
                        [1, "row"],
                        [1, "col-sm-12"],
                        [1, "reportStepper", "my-4", 3, "activeIndex", "id", "model"],
                        [1, "flex", "justify-content-center"],
                        ["class", "reportForm_subText", 4, "ngIf"],
                        [1, "form-horizontal", "mx-3", "mt-3", 3, "formGroup"],
                        ["aria-label", "required", 1, "required"],
                        [1, "row", "pur-form-field-inline"],
                        ["for", "reportTitle", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "col-sm-8"],
                        ["id", "reportTitle", "type", "text", "pInputText", "", "formControlName", "reportTitle", "maxlength", "30", "required", "", 1, "form-control", "p-inputtext-lg", 3, "keypress", "keyup", "paste"],
                        ["class", "p-error block", 4, "ngIf"],
                        [1, "row", "pur-form-field-inline", "my-3"],
                        ["for", "reportType", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "col-xs-6", "col-md-3", "align-center"],
                        ["id", "onetime", "inputId", "one-time", "name", "reportType", "formControlName", "reportType", "value", "onetime", 1, "pur-radiobutton", 3, "click"],
                        ["for", "one-time"],
                        [1, "col-xs-6", "col-md-2", "align-center"],
                        ["id", "recurring", "inputId", "recurring", "name", "reportType", "formControlName", "reportType", "value", "recurring", 1, "pur-radiobutton", 3, "click"],
                        ["for", "recurring"],
                        ["class", "col-5 date-first-report-wrapper", 4, "ngIf"],
                        ["class", "col-5 mt-4", 4, "ngIf"],
                        ["class", "row pur-form-field-inline my-3", 4, "ngIf"],
                        ["for", "account", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "col-5", "date-first-report-wrapper", 3, "ngClass"],
                        ["id", "account", "type", "text", "formControlName", "reportAccounts", 1, "form-control", "report-account", "d-none", 3, "value"],
                        [3, "click", "label", "value", "autofocus"],
                        ["role", "dialog"],
                        [1, "pur-overlaypanel-header"],
                        [1, "header_select"],
                        [1, "align"],
                        [1, "toggle-inline"],
                        [1, "toggle-btn", "toggle-inline"],
                        ["id", "only-selected-switch", 3, "ngModelChange", "ngModel", "ngModelOptions", "autofocus", "tabIndex"],
                        [1, "table_width", 3, "valueChange", "value"],
                        [3, "value"],
                        [1, "tab-button-wrapper"],
                        ["pButton", "", "pRipple", "", "type", "button", "label", $, 1, "p-button", "pur-button", "pur-button--outline", "cancel_button", "move_right", 3, "click"],
                        ["pButton", "", "pRipple", "", "type", "button", "label", y, 1, "p-button", "pur-button", "move_right", "pur-button--dark", 3, "click"],
                        ["name", "groupEditLoading", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        ["scrollHeight", "400px", 3, "value", "tableStyle", "scrollable"],
                        ["pTemplate", "header"],
                        ["pTemplate", "body"],
                        ["pButton", "", "pRipple", "", "type", "button", "label", U, 1, "p-button", "pur-button", "pur-button--outline", "cancel_button", 3, "click"],
                        ["pButton", "", "pRipple", "", "type", "button", "label", oe, 1, "p-button", "pur-button", "pur-button--dark", 3, "click", "disabled"],
                        ["name", "groupLoading", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        ["class", "shipments pur-datatable table_width", "columnResizeMode", "expand", "responsiveLayout", "scroll", "dataKey", "groupName", "scrollHeight", "75%", 3, "value", "scrollable", "resizableColumns", "autoLayout", 4, "ngIf"],
                        [1, "row", "my-3"],
                        ["for", "reportFormat", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "filter-controls__shortcuts", "pur-form", "pur-form--inline"],
                        [1, "pur-form-field", "radio-button-gap"],
                        ["inputId", "csvFormat", "name", "reportFormat", "formControlName", "reportFormat", "value", "csv", 1, "pur-radiobutton"],
                        ["for", "csvFormat"],
                        ["inputId", "pdfFormat", "name", "reportFormat", "formControlName", "reportFormat", "value", "pdf", 1, "pur-radiobutton"],
                        ["for", "pdfFormat"],
                        ["inputId", "xlsFormat", "name", "reportFormat", "formControlName", "reportFormat", "value", "xls", 1, "pur-radiobutton"],
                        ["for", "xlsFormat"],
                        [1, "form-hr"],
                        ["formGroupName", "optionalFilter", 3, "updateShipperDetailsEmitter", "updateReceiverDetailsEmitter", "updatePackageStatus", "updateCheckedExceptionCategory", "updateCheckedServicePriority", "updateCheckedServiceTimeOfDelivery", "updateCheckedServiceDomestic", "updatedeliveryDateRange", "shipperUpdatedDetails", "receiverUpdatedDetails", "packageStatus", "exceptionCategories", "priorityCategory", "timeOfDeliveryCategory", "domesticCategory", "deliveryDateRange", "reportType", "events"],
                        [1, "reportForm_subText"],
                        [1, "row", "pur-form-field-inline", "mb-5", "mt-4"],
                        ["for", "title", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "row", "pur-form-field-inline", "mb-5"],
                        [1, "p-error", "block"],
                        [1, "col-5", "date-first-report-wrapper"],
                        ["label", jt, 3, "autofocus", "value"],
                        ["inputId", "range", "formControlName", "reportSchedulingDateRange", "selectionMode", "range", 1, "pur-calendar", 3, "minDate", "inline", "readonlyInput", "numberOfMonths", "autofocus", "tabIndex"],
                        [1, "filter-controls__footer"],
                        [1, "button-wrapper"],
                        [1, "pur-form-field"],
                        ["inputId", "creationLast7", "formControlName", "reportSchedulingDays", "name", "reportSchedulingDays", "value", "last7", 1, "pur-radiobutton", 3, "click", "autofocus"],
                        ["for", "creationLast7"],
                        ["inputId", "creationLast14", "formControlName", "reportSchedulingDays", "name", "reportSchedulingDays", "value", "last14", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationLast14"],
                        ["inputId", "creationCustom", "formControlName", "reportSchedulingDays", "name", "reportSchedulingDays", "value", "custom", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationCustom"],
                        [1, "filter-controls__actions", "pur-form", "pur-form--inline"],
                        ["type", "button", 1, "p-button", "pur-button", "pur-button--sm", "pur-button--outline", 3, "click"],
                        ["type", "button", 1, "p-button", "pur-button", "pur-button--sm", "pur-button--dark", 3, "click"],
                        [1, "col-5", "mt-4"],
                        ["label", Wi, 3, "autofocus", "value"],
                        [1, "col-12", "align-center"],
                        ["id", "weekly", "formControlName", "recurringShedule", "value", "WEEKLY", "inputId", "weekly", 1, "pur-radiobutton"],
                        ["for", "weekly"],
                        ["id", "bi-weekly", "formControlName", "recurringShedule", "value", "BI-WEEKLY", "inputId", "biweekly", 1, "pur-radiobutton"],
                        ["for", "bi-weekly"],
                        ["id", "monthly", "formControlName", "recurringShedule", "value", "MONTHLY", "inputId", "monthly", 1, "pur-radiobutton"],
                        ["for", "monthly"],
                        ["id", "quarterly", "formControlName", "recurringShedule", "value", "QUARTERLY", "inputId", "quarterly", 1, "pur-radiobutton"],
                        ["for", "qauterly"],
                        ["id", "annually", "formControlName", "recurringShedule", "value", "ANNUALLY", "inputId", "annually", 1, "pur-radiobutton"],
                        ["for", "annualy"],
                        ["label", io, 3, "autofocus", "value"],
                        ["inputId", "date", "formControlName", "firstReportDate", 1, "pur-calendar", 3, "minDate", "maxDate", "readonlyInput", "inline", "showWeek", "autofocus", "tabIndex"],
                        [1, "col-1", "select_all_column"],
                        [1, "col-2"],
                        [1, "search-input"],
                        ["type", "checkbox", "name", "selectAll", "id", "selectAll", "aria-label", "Select All", 1, "account-dialog-checkbox", 3, "ngModelChange", "click", "ngModel", "ngModelOptions"],
                        ["for", "filterTerritory", 1, "sr-only"],
                        [1, "p-input-icon-right", "searchInput"],
                        [1, "pi", "pi-search"],
                        ["type", "text", "id", "filterTerritory", "aria-label", "Filter by Province/State", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterCity", 1, "sr-only"],
                        ["type", "text", "id", "filterCity", "aria-label", "Filter by City", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterPostalZipCode", 1, "sr-only"],
                        ["type", "text", "id", "filterPostalZipCode", "aria-label", "Filter by Postal Code", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterName", 1, "sr-only"],
                        ["type", "text", "id", "filterName", "aria-label", "Filter by Account Name", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterAccount", 1, "sr-only"],
                        ["type", "text", "id", "filterAccount", "aria-label", "Filter by Account Number", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        [3, "ngClass"],
                        ["type", "checkbox", 1, "account-dialog-checkbox", 3, "click", "checked"],
                        ["columnResizeMode", "expand", "responsiveLayout", "scroll", "dataKey", "groupName", "scrollHeight", "75%", 1, "shipments", "pur-datatable", "table_width", 3, "value", "scrollable", "resizableColumns", "autoLayout"],
                        ["pTemplate", "rowexpansion"],
                        [1, "table__row", "col-12", 3, "ngClass"],
                        [4, "ngTemplateOutlet", "ngTemplateOutletContext"],
                        [1, "col-12", "space_between"],
                        [1, "blue"],
                        [1, "description"],
                        ["href", "#", 3, "click", "pRowToggler"],
                        ["type", "checkbox", 3, "click", "checked"],
                        ["class", "expanded-row col-10", 3, "ngClass", 4, "ngFor", "ngForOf"],
                        [1, "expanded-row", "col-10", 3, "ngClass"],
                        [1, "col-12"],
                        [3, "sendFinalColumnToParent", "selectedFinalColumn", "templateId", "editMode", "reportType", "outputFormat", "redirectToFinalColumnList", "savedColumnLayoutActiveData"],
                        [3, "changeTab", "finalColumnData", "reportDetails", "selectedAccounts", "dateRange"],
                        ["pButton", "", 1, "pur-button", "cursor-pointer", "pur-button--sm", "pur-button--outline", "mx-2", 3, "click"],
                        ["pButton", "", 1, "pur-button", "pur-button--sm", "pur-button--outline", "mx-2", 3, "click"],
                        ["pButton", "", 1, "pur-button", "pur-button--sm", "mx-2", 3, "click", "disabled"],
                        [1, "pur-form", "pur-form--inline", "mt-3"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", 3, "click"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", "label", Oo, 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "label", Po, 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "label", Ao, 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", "label", No, 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1) {
                        let n = P();
                        r(0, "ngx-spinner", 73), d(1, 8), a(), r(2, "section", 74)(3, "h5", 75), R("click", function() {
                            return m(n), g(t.backToReports());
                        })("keypress", function() {
                            return m(n), g(t.backToReports());
                        }), h(4, "span", 76), r(5, "a", 77), d(6, 9), a()()(), r(7, "article", 78)(8, "header", 79)(9, "div", 80), C(10, vp, 2, 0, "h2", 81)(11, bp, 2, 0, "h2", 81)(12, xp, 2, 1, "h2", 81)(13, Lp, 2, 0, "p", 82)(14, Fp, 1, 1, "p", 83)(15, wp, 4, 0, "ng-container", 82), a()(), h(16, "hr"), C(17, Gp, 3, 3, "div", 84)(18, t_, 114, 65, "section", 85)(19, i_, 2, 7, "section", 85)(20, o_, 2, 4, "section", 85), r(21, "div", 86), C(22, n_, 3, 0, "button", 87)(23, r_, 3, 0, "button", 88)(24, a_, 3, 1, "button", 89)(25, l_, 3, 1, "button", 89)(26, s_, 3, 1, "button", 89)(27, p_, 3, 1, "button", 89), a()(), r(28, "div", 90)(29, "p-dialog", 91), F("visibleChange", function(u) {
                            return m(n), L(t.displayGenerateModal, u) || (t.displayGenerateModal = u), g(u);
                        }), R("onHide", function() {
                            return m(n), g(t.hideGenerateDialog());
                        }), r(30, "p", 92), d(31, 10), a(), C(32, __, 3, 1, "ng-template", null, 0, z), a()(), r(34, "div", 93)(35, "p-dialog", 94), F("visibleChange", function(u) {
                            return m(n), L(t.displayCapacityModal, u) || (t.displayCapacityModal = u), g(u);
                        }), r(36, "p", 92), S(37), a(), C(38, c_, 2, 0, "ng-template", null, 0, z), a()(), r(40, "div", 95)(41, "p-dialog", 96), F("visibleChange", function(u) {
                            return m(n), L(t.displayUpdateModal, u) || (t.displayUpdateModal = u), g(u);
                        }), r(42, "p", 92), d(43, 11), a(), C(44, u_, 2, 0, "ng-template", null, 0, z), a()(), r(46, "div", 93)(47, "p-dialog", 97), F("visibleChange", function(u) {
                            return m(n), L(t.isFormUnsavedModal, u) || (t.isFormUnsavedModal = u), g(u);
                        }), r(48, "p", 92), d(49, 12), a(), C(50, d_, 3, 0, "ng-template", null, 0, z), a()();
                    }
                    i & 2 && (_("fullScreen", !0), s(10), _("ngIf", !t.createMode && !t.editMode), s(), _("ngIf", t.createMode), s(), _("ngIf", t.editMode), s(), _("ngIf", !t.createMode && !t.editMode), s(), _("ngIf", t.createMode), s(), _("ngIf", t.editMode), s(2), _("ngIf", !t.createMode && !t.editMode), s(), _("ngIf", t.active == 0), s(), _("ngIf", t.active == 1), s(), _("ngIf", t.active == 2), s(2), _("ngIf", t.active === 0), s(), _("ngIf", t.active != 0 && !(t.active == 1 && t.hideBackButton)), s(), _("ngIf", t.createMode && !t.editMode), s(), _("ngIf", !t.sheduleReportId && !t.createMode && !t.editMode && t.active != 2), s(), _("ngIf", !t.sheduleReportId && !t.createMode && !t.editMode && t.active == 2), s(), _("ngIf", t.sheduleReportId && !t.createMode && !t.editMode), s(2), x("visible", t.displayGenerateModal), _("modal", !0)("closeAriaLabel", t.btnGoToReportsAriaLbl), s(6), _("header", t.summaryText), x("visible", t.displayCapacityModal), _("modal", !0), s(2), N(t.detailText), s(4), x("visible", t.displayUpdateModal), _("modal", !0), s(6), x("visible", t.isFormUnsavedModal), _("modal", !0));
                },
                dependencies: [ie, me, he, re, wt, Go, fe, ri, $e, $o, Ie, ni, Xo, Uo, Ve, Gt, ai, li, Ii, be, Xe, nt, Be, $t, xi, bi, wi, Fi, ve, qe, De, kt, di, qo, Ee, Ze, pn, sn, it, dt, un, yo, at, Et, Zo, ln, an, rn, nn, tn, on, Bt, vr, xr, Lr, Bi],
                styles: [`[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.reportForm_content[_ngcontent-%COMP%], .tracking-summary-repo[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .reportForm__header[_ngcontent-%COMP%], .reportForm__header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .gapStyle[_ngcontent-%COMP%]{margin-block-end:var(-pur-gap-xs)}@media (min-width: 67.5rem){.reportForm__header[_ngcontent-%COMP%]{gap:var(-pur-gap-xs)}}@media (min-width: 67.5rem){.reportForm_header-text[_ngcontent-%COMP%]{flex:1}}.reportForm_subText[_ngcontent-%COMP%]{color:var(--pur-primary-blue);margin-block-end:var(-pur-gap-xs)}.align-center[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.filter-controls__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-block-start:var(--pur-gap)}.filter-controls__footer[_ngcontent-%COMP%]:has(.filter-controls__actions:only-child){justify-content:end}.action-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.tracking-summary-repo[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .h2[_ngcontent-%COMP%], .tracking-summary-repo[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-block-end:var(-pur-gap-xs)}.p-steps-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .p-steps-item[_ngcontent-%COMP%]:nth-child(3){display:flex;justify-content:right}.p-steps-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .p-steps-item[_ngcontent-%COMP%]:nth-last-child(-n+1){border:2px solid orange;margin-top:1px}.p-steps[_ngcontent-%COMP%]   .p-steps-item[_ngcontent-%COMP%]:last-child{justify-content:right;margin-right:auto!important}.searchInput1[_ngcontent-%COMP%]{margin-left:0;padding-left:0;max-width:100%}.searchInput[_ngcontent-%COMP%]{max-width:100%}.p-input-icon-right[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]:last-of-type{color:var(--pur-blue-magenta)}#only-selected-switch[_ngcontent-%COMP%]:focus{outline:none!important}.header_select[_ngcontent-%COMP%]{float:right}.table_width[_ngcontent-%COMP%]{display:block;min-width:1175px}.space_between[_ngcontent-%COMP%]{justify-content:space-between}.select_all_column[_ngcontent-%COMP%]{max-width:10%;align-items:center;text-align:center}td.col-1.select_all_column[_ngcontent-%COMP%]{text-align:center}footer[_ngcontent-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{width:100%}.p-inputtext.ng-dirty.ng-invalid[_ngcontent-%COMP%]{border-color:#aeaeae}#custom-dropdown[_ngcontent-%COMP%]   .p-dropdown-item[_ngcontent-%COMP%]{padding:.375rem .938rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.94rem}.title[_ngcontent-%COMP%]{flex-direction:column;text-align:left;font-weight:700;padding:1.25rem .94rem .62rem;display:inline-block;font-size:.87rem}.item-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.item-row[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:pointer}.p-dropdown-panel[_ngcontent-%COMP%]   .p-dropdown-items[_ngcontent-%COMP%]   .p-dropdown-item[_ngcontent-%COMP%]:not(.p-highlight):not(.p-disabled).p-focus{background:transparent}.selected-label[_ngcontent-%COMP%]{font-size:.75rem}.form-hr[_ngcontent-%COMP%]{margin-left:-1rem;margin-right:-1rem}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{margin:1.5rem 0;display:inline-block;cursor:pointer}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]{background-color:#f5f6f6;border-radius:50%;width:2rem;height:2rem;margin-right:.5rem;display:inline-block;vertical-align:middle}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:2rem;height:2rem;fill:#001996;background-image:url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_3245_5919)'%3E%3Cpath d='M25 16C25 16.2708 24.8958 16.5104 24.6875 16.7188C24.5 16.9062 24.2708 17 24 17H10.4062L13.7188 20.2812C13.8854 20.4688 13.9792 20.6875 14 20.9375C14.0208 21.1875 13.9479 21.4167 13.7812 21.625L13.7188 21.7188C13.5104 21.9062 13.2708 22 13 22C12.7292 22 12.4896 21.9062 12.2812 21.7188L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.21875 16.625 7.21875 16.625L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.20833 16.6146 7.1875 16.5938C7.1875 16.5729 7.17708 16.5625 7.15625 16.5625C7.15625 16.5417 7.15625 16.5312 7.15625 16.5312C7.13542 16.5104 7.125 16.5 7.125 16.5C7.125 16.5 7.125 16.4896 7.125 16.4688C7.125 16.4688 7.11458 16.4688 7.09375 16.4688C7.09375 16.4479 7.09375 16.4375 7.09375 16.4375C7.09375 16.4167 7.08333 16.4062 7.0625 16.4062C7.0625 16.3854 7.0625 16.375 7.0625 16.375C7.0625 16.3542 7.0625 16.3438 7.0625 16.3438C7.0625 16.3229 7.0625 16.3125 7.0625 16.3125C7.04167 16.3125 7.03125 16.3125 7.03125 16.3125C7.03125 16.2917 7.03125 16.2812 7.03125 16.2812C7.03125 16.2604 7.03125 16.25 7.03125 16.25C7.03125 16.2292 7.03125 16.2083 7.03125 16.1875C7.03125 16.1875 7.02083 16.1875 7 16.1875V16.1562C7 16.1354 7 16.125 7 16.125C7 16.1042 7 16.0938 7 16.0938V16.0625V16.0312C7 16.0104 7 16 7 16V15.9688V15.9375C7 15.9167 7 15.9062 7 15.9062V16C7 15.9792 7 15.9583 7 15.9375C7 15.8958 7 15.8646 7 15.8438C7.02083 15.8229 7.03125 15.8125 7.03125 15.8125C7.03125 15.7917 7.03125 15.7812 7.03125 15.7812C7.03125 15.7604 7.03125 15.7396 7.03125 15.7188C7.03125 15.6979 7.04167 15.6875 7.0625 15.6875C7.0625 15.6667 7.0625 15.6458 7.0625 15.625C7.08333 15.6042 7.09375 15.5833 7.09375 15.5625C7.11458 15.5417 7.125 15.5312 7.125 15.5312C7.125 15.5104 7.125 15.5 7.125 15.5C7.125 15.5 7.13542 15.4896 7.15625 15.4688C7.17708 15.4479 7.1875 15.4271 7.1875 15.4062C7.20833 15.3854 7.21875 15.375 7.21875 15.375C7.21875 15.375 7.22917 15.3646 7.25 15.3438C7.27083 15.3229 7.28125 15.3021 7.28125 15.2812L12.2812 10.2812C12.4896 10.0938 12.7292 10 13 10C13.2708 10 13.5104 10.0938 13.7188 10.2812C13.9062 10.4896 14 10.7292 14 11C14 11.2708 13.9062 11.5104 13.7188 11.7188L10.4062 15H24C24.2708 15 24.5 15.1042 24.6875 15.3125C24.8958 15.5 25 15.7292 25 16Z' fill='%2358698D'/%3E%3Cpath d='M25 16C25 16.2708 24.8958 16.5104 24.6875 16.7188C24.5 16.9062 24.2708 17 24 17H10.4062L13.7188 20.2812C13.8854 20.4688 13.9792 20.6875 14 20.9375C14.0208 21.1875 13.9479 21.4167 13.7812 21.625L13.7188 21.7188C13.5104 21.9062 13.2708 22 13 22C12.7292 22 12.4896 21.9062 12.2812 21.7188L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.21875 16.625 7.21875 16.625L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.20833 16.6146 7.1875 16.5938C7.1875 16.5729 7.17708 16.5625 7.15625 16.5625C7.15625 16.5417 7.15625 16.5312 7.15625 16.5312C7.13542 16.5104 7.125 16.5 7.125 16.5C7.125 16.5 7.125 16.4896 7.125 16.4688C7.125 16.4688 7.11458 16.4688 7.09375 16.4688C7.09375 16.4479 7.09375 16.4375 7.09375 16.4375C7.09375 16.4167 7.08333 16.4062 7.0625 16.4062C7.0625 16.3854 7.0625 16.375 7.0625 16.375C7.0625 16.3542 7.0625 16.3438 7.0625 16.3438C7.0625 16.3229 7.0625 16.3125 7.0625 16.3125C7.04167 16.3125 7.03125 16.3125 7.03125 16.3125C7.03125 16.2917 7.03125 16.2812 7.03125 16.2812C7.03125 16.2604 7.03125 16.25 7.03125 16.25C7.03125 16.2292 7.03125 16.2083 7.03125 16.1875C7.03125 16.1875 7.02083 16.1875 7 16.1875V16.1562C7 16.1354 7 16.125 7 16.125C7 16.1042 7 16.0938 7 16.0938V16.0625V16.0312C7 16.0104 7 16 7 16V15.9688V15.9375C7 15.9167 7 15.9062 7 15.9062V16C7 15.9792 7 15.9583 7 15.9375C7 15.8958 7 15.8646 7 15.8438C7.02083 15.8229 7.03125 15.8125 7.03125 15.8125C7.03125 15.7917 7.03125 15.7812 7.03125 15.7812C7.03125 15.7604 7.03125 15.7396 7.03125 15.7188C7.03125 15.6979 7.04167 15.6875 7.0625 15.6875C7.0625 15.6667 7.0625 15.6458 7.0625 15.625C7.08333 15.6042 7.09375 15.5833 7.09375 15.5625C7.11458 15.5417 7.125 15.5312 7.125 15.5312C7.125 15.5104 7.125 15.5 7.125 15.5C7.125 15.5 7.13542 15.4896 7.15625 15.4688C7.17708 15.4479 7.1875 15.4271 7.1875 15.4062C7.20833 15.3854 7.21875 15.375 7.21875 15.375C7.21875 15.375 7.22917 15.3646 7.25 15.3438C7.27083 15.3229 7.28125 15.3021 7.28125 15.2812L12.2812 10.2812C12.4896 10.0938 12.7292 10 13 10C13.2708 10 13.5104 10.0938 13.7188 10.2812C13.9062 10.4896 14 10.7292 14 11C14 11.2708 13.9062 11.5104 13.7188 11.7188L10.4062 15H24C24.2708 15 24.5 15.1042 24.6875 15.3125C24.8958 15.5 25 15.7292 25 16Z' fill='black' fill-opacity='0.2'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_3245_5919'%3E%3Crect width='32' height='32' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:50% 50%}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]:before{cursor:pointer;display:block;position:relative}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:1.125rem;color:#000;text-decoration:none}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none;color:#000}.margin-bs-1[_ngcontent-%COMP%]{margin-block-start:1rem}.margin-be-1[_ngcontent-%COMP%]{margin-block-end:1rem}.date-first-report-wrapper[_ngcontent-%COMP%]{margin-block-start:1rem}.tab-button-wrapper[_ngcontent-%COMP%]{float:right;display:inline-flex}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.exception-report-heading[_ngcontent-%COMP%]{margin-block-end:1rem}.sub-header[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:700;margin-block-end:1rem}`]
            });
        }
    }
    return o;
})();
var m_ = o => ({
    "hide-optional-filter": o
});

function g_(o, c) {
    o & 1 && (r(0, "span", 9), d(1, 1), a());
}

function E_(o, c) {
    o & 1 && (r(0, "span", 10), d(1, 2), a());
}

function R_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 17)(1, "p-checkbox", 21), R("onChange", function(t) {
            m(e);
            let n = p(2);
            return g(n.checkExceptionCategoryGroup(t));
        }), a(), r(2, "label", 22), S(3), a()();
    }
    if (o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(), _("id", e.name)("formControl", i.exceptionCtgGroup)("value", e)("name", e.name), X("name", e.name), s(), _("for", e.name), s(), N(e.name);
    }
}

function C_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 11)(1, "form", 12)(2, "div", 13)(3, "label", 14)(4, "b"), d(5, 3), a()(), r(6, "div", 15)(7, "div", 16)(8, "div", 17)(9, "p-checkbox", 18), R("onChange", function(t) {
            m(e);
            let n = p();
            return g(n.checkAnyExceptionCategoryGroup(t));
        }), a(), r(10, "label", 19), S(11), a()(), C(12, R_, 4, 7, "div", 20), a()(), h(13, "div", 15), a()()();
    }
    if (o & 2) {
        let e = p();
        s(), _("formGroup", e.optionalForm), s(10), N(e.Any), s(), _("ngForOf", e.optionsExceptionCategories);
    }
}
var Fr = (() => {
    class o {
        constructor(e, i, t, n, l, u) {
            this.formBuilder = e, this.renderer = i, this.el = t, this.lookupDataService = n, this.localeService = l, this.user = u, this._environment = zt, this.showOptionalFilter = !1, this.selectedDateRange = "None", this.minimumDate = new Date(), this.oneTimeMinDate = new Date(), this.deliveryDateDisable = !0, this.hasReceiverName = !1, this.hasShipperName = !1, this.hasShipperOperator = !1, this.hasShipperText = !1, this.textErrorIndex = -1, this.shipperOperatorArray = [], this.initialDate = [new Date(Date.now() - 365 * 24 * 60 * 60 * 1e3), new Date(Date.now() + 30 * 24 * 60 * 60 * 1e3)], this.receiverOperator = [{
                name: "Starts with",
                value: "startswith",
                inactive: !1
            }, {
                name: "Contains",
                value: "contains",
                inactive: !1
            }, {
                name: "Not contains",
                value: "notcontains",
                inactive: !1
            }, {
                name: "Ends with",
                value: "endswith",
                inactive: !1
            }, {
                name: "Equals",
                value: "equals",
                inactive: !1
            }], this.shipperField = [], this.receiverField = [], this.selectedAnyPriorityCategories = new ge(["any"]), this.selectedPriorityCategories = new ge([]), this.updateCheckedServiceTimeOfDelivery = new J(), this.updateCheckedExceptionCategory = new J(), this.updateCheckedServiceDomestic = new J(), this.updateCheckedServicePriority = new J(), this.updateReceiverDetailsEmitter = new J(), this.updateShipperDetailsEmitter = new J(), this.updatedeliveryDateRange = new J(), this.updatePackageStatus = new J(), this.Any = "Any", this.selectedTimeOfDeliveryCategories = new ge(["any"]), this.timeOfDeliveryCategories = [{
                name: "9 AM",
                key: "9AM"
            }, {
                name: "10:30 AM",
                key: "1030AM"
            }, {
                name: "Noon",
                key: "noon"
            }, {
                name: "Evening",
                key: "evening"
            }, {
                name: "End Of Day",
                key: "endofDay"
            }], this.optionsExceptionCategories = [], this.exceptionCategoriesColumns = [Le.ADDRESS_CORRECTION, Le.APPOINTMENT_REQUIRED, Le.PICKUP_AVAILABLE, Le.CUSTOMS, Le.DAMAGED, Le.DELAYED, Le.OTHER, Le.UNDEFINED, Le.RECEIVER_UNAVAILABLE], this.optionsPackageStatus = [], this.packageStatusColumns = [Re.PACKAGE_STATUS_ATTENTION, Re.PACKAGE_STATUS_DELIVERED, Re.PACKAGE_STATUS_IN_TRANSIT, Re.PACKAGE_STATUS_PICKED_UP, Re.PACKAGE_STATUS_OUT_FOR_DELIVERY], this.domesticCategories = [{
                name: "Canada",
                key: "canada"
            }, {
                name: "US",
                key: "us"
            }, {
                name: "International",
                key: "international"
            }], this.priorityCategories = [{
                name: "Express",
                key: "express"
            }, {
                name: "Ground",
                key: "ground"
            }], this.showPinWarning = !1, this.pinLimit = zt.pinLimit, this.pinWarningMessage = "You have exceeded the maximum of 3,000 PINs.  Please reduce your query to 3,000 or less PINs", this.showOptionalFilterTxt = "Show optional filters", this.hideOptionalFilterTxt = "Hide optional filters";
        }
        ngOnInit() {
            this.optionalForm = this.formBuilder.group({
                priorityGroup: [],
                anyPriorityGroup: [],
                timeOfDeliveryGroup: [],
                anytimeOfDeliveryGroup: [],
                domesticGroup: [],
                anyDomesticGroup: [],
                exceptionCategoryGroup: [],
                anyExceptionCategoryGroup: [],
                packageStatusGroup: [],
                anyPackageStatusGroup: [],
                deliveryDays: ["none"],
                deliveryDateRange: [this.initialDate, _e.required],
                shipperDetail: this.formBuilder.array([]),
                receiverDetail: this.formBuilder.array([]),
                reportShippingPINS: [""]
            }), this.initializeLocalizedFields(), this.initializedFormControls(), this.eventsSubscription = this.events.subscribe(e => this.setOptionalFiltersOnEdit(e));
        }
        initializeLocalizedFields() {
            this.lookupDataService.getAllByGroup("packageStatus").subscribe(e => {
                this.packageStatusColumns.forEach((i, t) => {
                    this.optionsPackageStatus.push({
                        name: E.getColumnHeaderByField(e, i, this.localeService.getLocale()),
                        key: i,
                        sequence: t
                    });
                });
            }), this.lookupDataService.getAllByGroup("packageSubStatus").subscribe(e => {
                this.exceptionCategoriesColumns.forEach((i, t) => {
                    this.optionsExceptionCategories.push({
                        name: E.getColumnHeaderByField(e, i, this.localeService.getLocale()),
                        key: i,
                        sequence: t
                    });
                });
            });
        }
        initializedFormControls() {
            [this.optionsExceptionCategories.length, 0].includes(this.exceptionCategories.length) ? (this.updateCheckedExceptionCategory.emit([]), this.optionalForm.controls.anyExceptionCategoryGroup.setValue(["any"])) : this.optionalForm.controls.exceptionCategoryGroup.setValue(this.exceptionCategories), [this.domesticCategories.length, 0].includes(this.domesticCategory.length) ? (this.updateCheckedServiceDomestic.emit([]), this.optionalForm.controls.anyDomesticGroup.setValue(["any"])) : this.optionalForm.controls.domesticGroup.setValue(this.domesticCategory), [this.priorityCategories.length, 0].includes(this.priorityCategory.length) ? (this.updateCheckedServicePriority.emit([]), this.optionalForm.controls.anyPriorityGroup.setValue(["any"])) : this.optionalForm.controls.priorityGroup.setValue(this.priorityCategory), [this.timeOfDeliveryCategories.length, 0].includes(this.timeOfDeliveryCategory.length) ? (this.updateCheckedServiceTimeOfDelivery.emit([]), this.optionalForm.controls.anytimeOfDeliveryGroup.setValue(["any"])) : this.optionalForm.controls.timeOfDeliveryGroup.setValue(this.timeOfDeliveryCategory), [this.optionsPackageStatus.length, 0].includes(this.packageStatus.length) ? (this.updatePackageStatus.emit([]), this.optionalForm.controls.anyPackageStatusGroup.setValue(["any"])) : this.optionalForm.controls.packageStatusGroup.setValue(this.packageStatus);
        }
        toggleOptionalFilter() {
            this.showOptionalFilter = !this.showOptionalFilter;
        }
        toggleByKeyboard(e) {
            (e.key === "Enter" || e.keyCode === 13) && this.toggleOptionalFilter();
        }
        checkAnyExceptionCategoryGroup(e) {
            this.optionalForm.controls.exceptionCategoryGroup.setValue([]), this.updateCheckedExceptionCategory.emit(this.optionsExceptionCategories), this.optionalForm.controls.anyExceptionCategoryGroup.setValue(["any"]);
        }
        checkExceptionCategoryGroup(e) {
            e.checked[0] && this.optionalForm.controls.anyExceptionCategoryGroup.setValue([]);
            let i = this.optionalForm.controls.exceptionCategoryGroup.value;
            [this.optionsExceptionCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyExceptionCategoryGroup.setValue(["any"]), this.optionalForm.controls.exceptionCategoryGroup.setValue([]), this.updateCheckedExceptionCategory.emit(this.optionsExceptionCategories);
            }, 800) : this.updateCheckedExceptionCategory.emit(i);
        }
        get exceptionCtgGroup() {
            return this.optionalForm ? .get("exceptionCategoryGroup");
        }
        checkAnyPackageStatusGroup(e) {
            this.optionalForm.controls.packageStatusGroup.setValue([]), this.updatePackageStatus.emit([]), this.optionalForm.controls.anyPackageStatusGroup.setValue(["any"]);
        }
        checkPackageStatusGroup(e) {
            e.checked[0] && this.optionalForm.controls.anyPackageStatusGroup.setValue([]);
            let i = this.optionalForm.controls.packageStatusGroup.value;
            [this.optionsPackageStatus.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyPackageStatusGroup.setValue(["any"]), this.optionalForm.controls.packageStatusGroup.setValue([]), this.updatePackageStatus.emit([]);
            }, 800) : this.updatePackageStatus.emit(i);
        }
        get packageStatusGroup() {
            return this.optionalForm ? .controls.packageStatusGroup;
        }
        checkAnyPriorityCategories(e) {
            this.optionalForm.controls.priorityGroup.setValue([]), this.updateCheckedServicePriority.emit(this.priorityCategories), this.optionalForm.controls.anyPriorityGroup.setValue(["any"]);
        }
        checkPriorityCategories(e) {
            e.checked[0] && this.optionalForm.controls.anyPriorityGroup.setValue([]);
            let i = this.optionalForm.controls.priorityGroup.value;
            [this.priorityCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyPriorityGroup.setValue(["any"]), this.optionalForm.controls.priorityGroup.setValue([]), this.updateCheckedServicePriority.emit(this.priorityCategories);
            }, 800) : this.updateCheckedServicePriority.emit(i);
        }
        get priorityCtg() {
            return this.optionalForm.get("priorityGroup");
        }
        checkAnyTimeOfDeliveryGroup(e) {
            this.optionalForm.controls.timeOfDeliveryGroup.setValue([]), this.updateCheckedServiceTimeOfDelivery.emit(this.timeOfDeliveryCategories), this.optionalForm.controls.anytimeOfDeliveryGroup.setValue(["any"]);
        }
        checkTimeOfDeliveryGroup(e) {
            e.checked[0] && this.optionalForm.controls.anytimeOfDeliveryGroup.setValue([]);
            let i = this.optionalForm.controls.timeOfDeliveryGroup.value;
            [this.timeOfDeliveryCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anytimeOfDeliveryGroup.setValue(["any"]), this.optionalForm.controls.timeOfDeliveryGroup.setValue([]), this.updateCheckedServiceTimeOfDelivery.emit(this.timeOfDeliveryCategories);
            }, 800) : this.updateCheckedServiceTimeOfDelivery.emit(i);
        }
        get timeOfDeliveryCtg() {
            return this.optionalForm.get("timeOfDeliveryGroup");
        }
        checkAnyDomesticCategories(e) {
            this.optionalForm.controls.domesticGroup.setValue([]), this.updateCheckedServiceDomestic.emit(this.domesticCategories), this.optionalForm.controls.anyDomesticGroup.setValue(["any"]);
        }
        checkDomesticCategories(e) {
            e.checked[0] && this.optionalForm.controls.anyDomesticGroup.setValue([]);
            let i = this.optionalForm.controls.domesticGroup.value;
            [this.domesticCategories.length, 0].includes(i.length) ? setTimeout(() => {
                this.optionalForm.controls.anyDomesticGroup.setValue(["any"]), this.optionalForm.controls.domesticGroup.setValue([]), this.updateCheckedServiceDomestic.emit(this.domesticCategories);
            }, 800) : this.updateCheckedServiceDomestic.emit(i);
        }
        get domesticCtg() {
            return this.optionalForm.get("domesticGroup");
        }
        handlePinFile(e) {
            let i = e.target.files[0],
                t = new FileReader();
            t.onloadend = n => {
                let l = t.result,
                    u = [];
                l !== null && (u = l.replace(/\r?\n/g, ",").split(",")), this.user.userData.view.signature.pinText = "";
                for (let T = 0; T < u.length; T++) u[T].trim() !== "" && (this.user.userData.view.signature.pinText += u[T].trim() + `
`);
            }, t.readAsText(i);
        }
        applyPinEntry(e, i) {
            this.user.updatePinEntry(), this.showPinWarning = !1, this.user.userData.view.signature.pinText === "" || this.user.userData.view.signature.pins.length > this.pinLimit && (this.showPinWarning = !0), !(e === void 0 || i === void 0 || this.user.userData.view.signature.pins.length > this.pinLimit) && i.isExpanded$.next(!1);
        }
        setPinLimit(e) {
            this.pinLimit = e;
        }
        setOptionalFiltersOnEdit(e) {
            switch (e.topic) {
                case Di.DELIVERY_DATE_RANGE:
                    this.optionalForm.controls.deliveryDays.setValue([e.value]), this.updatedeliveryDateRange.emit(e.value);
                    break;
                case Re.PACKAGE_STATUS_CODE:
                    let i = e.value.map(v => v.key),
                        t = this.optionsPackageStatus.filter(v => i.includes(v.key));
                    this.optionalForm.controls.anyPackageStatusGroup.setValue([]), this.optionalForm.controls.packageStatusGroup.setValue(t), this.updatePackageStatus.emit(t);
                    break;
                case E.PACKAGESTATUSSUBCODE:
                    let n = e.value.map(v => v.key),
                        l = this.optionsExceptionCategories.filter(v => n.includes(v.key));
                    this.optionalForm.controls.anyExceptionCategoryGroup.setValue([]), this.optionalForm.controls.exceptionCategoryGroup.setValue(l), this.updateCheckedExceptionCategory.emit(l);
                    break;
                case E.DESCRIPTION:
                    let u = e.value.map(v => v.key),
                        T = this.timeOfDeliveryCategories.filter(v => u.includes(v.key));
                    this.optionalForm.controls.anytimeOfDeliveryGroup.setValue([]), this.optionalForm.controls.timeOfDeliveryGroup.setValue(T), this.updateCheckedServiceTimeOfDelivery.emit(T);
                    break;
                case E.PRODUCTCODE:
                    let f = e.value.map(v => v.key),
                        M = this.priorityCategories.filter(v => f.includes(v.key));
                    this.optionalForm.controls.anyPriorityGroup.setValue([]), this.optionalForm.controls.priorityGroup.setValue(M), this.updateCheckedServicePriority.emit(M);
                    break;
                case E.RECEIVERCOUNTRYCODE:
                    let D = e.value.map(v => v.key),
                        b = this.domesticCategories.filter(v => D.includes(v.key));
                    this.optionalForm.controls.anyDomesticGroup.setValue([]), this.optionalForm.controls.domesticGroup.setValue(b), this.updateCheckedServiceDomestic.emit(b);
                    break;
                default:
                    break;
            }
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(si), A(bt), A(Pi), A(gt), A(ot), A(se));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-optional-filter-exception"]
                ],
                inputs: {
                    formGroupName: "formGroupName",
                    exceptionCategories: "exceptionCategories",
                    priorityCategory: "priorityCategory",
                    timeOfDeliveryCategory: "timeOfDeliveryCategory",
                    domesticCategory: "domesticCategory",
                    packageStatus: "packageStatus",
                    reportType: "reportType",
                    events: "events"
                },
                outputs: {
                    updateCheckedServiceTimeOfDelivery: "updateCheckedServiceTimeOfDelivery",
                    updateCheckedExceptionCategory: "updateCheckedExceptionCategory",
                    updateCheckedServiceDomestic: "updateCheckedServiceDomestic",
                    updateCheckedServicePriority: "updateCheckedServicePriority",
                    updateReceiverDetailsEmitter: "updateReceiverDetailsEmitter",
                    updateShipperDetailsEmitter: "updateShipperDetailsEmitter",
                    updatedeliveryDateRange: "updatedeliveryDateRange",
                    updatePackageStatus: "updatePackageStatus"
                },
                decls: 8,
                vars: 8,
                consts: () => {
                    let e;
                    e = "optional filters";
                    let i;
                    i = "Hide";
                    let t;
                    t = "Show";
                    let n;
                    return n = "Exception Category", [e, i, t, n, [1, "optional-filter"],
                        ["tabindex", "0", "aria-controls", "optionalSection", "id", "optionalFilterAccordion", 1, "d-inline-flex", "show-optional-filter", 3, "click", "keypress", "ngClass"],
                        ["class", "show", 4, "ngIf"],
                        ["class", "hide", 4, "ngIf"],
                        ["role", "region", "id", "optionalSection", "aria-labelledby", "optionalFilterAccordion", 4, "ngIf"],
                        [1, "show"],
                        [1, "hide"],
                        ["role", "region", "id", "optionalSection", "aria-labelledby", "optionalFilterAccordion"],
                        [1, "form-horizontal", "mx-3", "mt-3", 3, "formGroup"],
                        [1, "row", "my-3", "serviceOptions"],
                        ["for", "exceptionCategory", 1, "control-label", "col-sm-4", "strong", "exceptionCategory"],
                        [1, "col"],
                        [1, "flex", "flex-column", "gap-2"],
                        [1, "field-checkbox", "p-field-checkbox"],
                        ["inputId", "any", "name", "anyExceptionCategoryGroup", "formControlName", "anyExceptionCategoryGroup", "value", "any", 3, "onChange"],
                        ["for", "anyExceptionCategoryGroup"],
                        ["class", "field-checkbox p-field-checkbox", 4, "ngFor", "ngForOf"],
                        [3, "onChange", "id", "formControl", "value", "name"],
                        [3, "for"]
                    ];
                },
                template: function(i, t) {
                    i & 1 && (r(0, "div", 4)(1, "h4", 5), R("click", function() {
                        return t.toggleOptionalFilter();
                    })("keypress", function(l) {
                        return t.toggleByKeyboard(l);
                    }), C(2, g_, 2, 0, "span", 6)(3, E_, 2, 0, "span", 7), r(4, "span"), d(5, 0), a()(), C(6, C_, 14, 3, "div", 8), h(7, "hr"), a()), i & 2 && (s(), _("ngClass", ee(6, m_, t.showOptionalFilter)), X("aria-label", t.showOptionalFilter ? t.hideOptionalFilterTxt : t.showOptionalFilterTxt)("aria-expanded", t.showOptionalFilter), s(), _("ngIf", t.showOptionalFilter), s(), _("ngIf", !t.showOptionalFilter), s(3), _("ngIf", t.showOptionalFilter));
                },
                dependencies: [ie, me, he, re, fe, ri, Ie, ni, Gt, Bo, ai, li, di, Ko],
                styles: [`[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.optional-filter[_ngcontent-%COMP%]{margin-left:-1rem;margin-right:-1rem}.show-optional-filter[_ngcontent-%COMP%]{cursor:pointer;font-size:1.125rem;margin-top:.5rem;margin-bottom:.5rem}.show-optional-filter[_ngcontent-%COMP%]:before{background-image:svg-uri('<svg width="10" height="5" viewBox="0 0 10 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="Vector" d="M0 0L5 5L10 0L0 0Z" fill="#001996"/></svg>');position:relative;width:20px;margin:.2rem .25em 0 .6rem;content:"";background-repeat:no-repeat;background-position:center center}.show-optional-filter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:5px;display:inline-flex}.show-optional-filter[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%], .show-optional-filter[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{padding-right:.25rem}.hide-optional-filter[_ngcontent-%COMP%]:before{-moz-transform:scaleY(-1);-webkit-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1)}.shipper-detail-section[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]:last-of-type{margin-bottom:var(--pur-font-desktop-md)!important}.receiver-detail-section[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]:last-of-type{margin-bottom:var(--pur-font-desktop-md)!important}[_nghost-%COMP%]     .receiver-dropdown .p-dropdown{width:100%}[_nghost-%COMP%]     .receiver-dropdown .p-dropdown .p-dropdown-label.p-placeholder{color:var(--text-dark)}[_nghost-%COMP%]     .receiver-dropdown .p-dropdown .p-dropdown-items-wrapper{max-height:100%!important}[_nghost-%COMP%]     .receiver-dropdown .p-dropdown .p-dropdown-items-wrapper .p-dropdown-item{font-size:var(--pur-font-desktop-xxs)}.add-receiver-detail-link[_ngcontent-%COMP%]{color:var(--pur-primary-blue);cursor:pointer;font-size:var(--pur-font-desktop-sm);text-decoration:none}.add-receiver-detail-link[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:.5rem}.col-receiver-operator[_ngcontent-%COMP%]{position:relative}.receiver-close[_ngcontent-%COMP%]{position:absolute;top:0;right:-.938rem}.pin-panel-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--pur-gap);width:35rem;max-width:100%}.pin-warning-area[_ngcontent-%COMP%]{max-width:100%;background-color:#ff000080;color:#000;text-align:center;padding:5px;margin:10px;border-radius:8px}#pin-warning-text[_ngcontent-%COMP%]{margin:0;font-size:12px}.pin-warning-close-btn[_ngcontent-%COMP%]{position:relative;left:2.5px;font-size:15px;cursor:pointer;font-weight:700}.filter-controls__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-block-start:var(--pur-gap)}.filter-controls__footer[_ngcontent-%COMP%]:has(.filter-controls__actions:only-child){justify-content:end}.filter-controls__actions[_ngcontent-%COMP%]{display:flex;gap:var(--pur-xs)}.p-field-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}`]
            });
        }
    }
    return o;
})();
var wr = () => ({
        standalone: !0
    }),
    T_ = o => ({
        "hide-optional-filter": o
    });

function h_(o, c) {
    o & 1 && (r(0, "h4", 45), d(1, 5), a());
}

function f_(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = p().$implicit;
        s(), N(e);
    }
}

function S_(o, c) {
    if (o & 1 && C(0, f_, 2, 1, "th", 46), o & 2) {
        let e = c.index,
            i = p();
        _("ngIf", e < i.columnsField.length);
    }
}

function O_(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = c.$implicit;
        s(), N(e.header);
    }
}

function P_(o, c) {
    o & 1 && (r(0, "span", 47), d(1, 6), a());
}

function A_(o, c) {
    o & 1 && (r(0, "span", 48), d(1, 7), a());
}

function N_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "li", 75)(1, "div", 27), R("click", function() {
            m(e);
            let t = p().$implicit,
                n = p(2);
            return n.addColumnToFinalList(t), g(n.showUpdateButton());
        }), h(2, "img", 76), a(), r(3, "div"), S(4), a()();
    }
    if (o & 2) {
        let e = p().$implicit;
        s(4), N(e.header);
    }
}

function M_(o, c) {
    if (o & 1 && (G(0), C(1, N_, 5, 1, "li", 74), k()), o & 2) {
        let e = c.$implicit;
        s(), _("ngIf", e.isDisplayed);
    }
}

function I_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 27), R("click", function() {
            m(e);
            let t = p().$implicit,
                n = p(2);
            return g(n.removeColumnFromFinalList(t));
        }), h(1, "img", 83), a();
    }
}

function y_(o, c) {
    if (o & 1 && (G(0), r(1, "div", 77), h(2, "div", 78), r(3, "div", 79)(4, "div", 80)(5, "div"), h(6, "img", 81), a(), r(7, "div"), S(8), a()(), C(9, I_, 2, 0, "div", 82), a()(), k()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(3), _("cdkDragDisabled", e.field === i.packagePinKey), s(5), N(e.header), s(), _("ngIf", e.field != i.packagePinKey);
    }
}

function D_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 84)(1, "button", 85), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayUpdateConfModal = !0);
        }), a()();
    }
}

function v_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 86)(1, "button", 87), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displayUpdateConfModal = !1);
        }), d(2, 15), a(), r(3, "button", 88), R("click", function() {
            m(e);
            let t = p(2);
            return t.displaySaveColModal = !0, g(t.displayUpdateConfModal = !1);
        }), d(4, 16), a()();
    }
}

function b_(o, c) {
    o & 1 && (r(0, "p", 89), d(1, 17), a());
}

function x_(o, c) {
    o & 1 && (r(0, "p", 89), d(1, 18), a());
}

function L_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 86)(1, "button", 87), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.displaySaveColModal = !1);
        }), d(2, 19), a(), r(3, "button", 88), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.saveOrUpdateColumnLayout());
        }), d(4, 20), a()();
    }
}

function F_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 49)(1, "p", 50)(2, "b"), d(3, 8), a()(), r(4, "p", 51), d(5, 9), a(), r(6, "div", 52)(7, "div", 53)(8, "p"), d(9, 10), a(), r(10, "label", 54), S(11, "Search Columns:"), a(), r(12, "div", 55), h(13, "i", 56), r(14, "input", 57), R("keyup", function(t) {
            m(e);
            let n = p();
            return g(n.filterColumn(t));
        }), a()(), r(15, "ul", 58), C(16, M_, 2, 1, "ng-container", 35), a()(), r(17, "div", 59)(18, "p", 60)(19, "span"), d(20, 11), a(), r(21, "span", 61), S(22), r(23, "span"), d(24, 12), a()()(), r(25, "div", 62)(26, "div", 63), R("cdkDropListDropped", function(t) {
            m(e);
            let n = p();
            return g(n.drop(t));
        }), C(27, y_, 10, 3, "ng-container", 35), a()(), C(28, D_, 2, 0, "div", 64), r(29, "div", 65)(30, "p-dialog", 66), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displayUpdateConfModal, t) || (n.displayUpdateConfModal = t), g(t);
        }), r(31, "p", 67), S(32), a(), C(33, v_, 5, 0, "ng-template", null, 0, z), a()(), r(35, "div", 68)(36, "p-dialog", 69), F("visibleChange", function(t) {
            m(e);
            let n = p();
            return L(n.displaySaveColModal, t) || (n.displaySaveColModal = t), g(t);
        }), r(37, "p", 67), d(38, 13), a(), r(39, "div", 70)(40, "label", 71), d(41, 14), a(), r(42, "input", 72), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.columnLayoutName, t) || (n.columnLayoutName = t), g(t);
        }), R("keypress", function(t) {
            m(e);
            let n = p();
            return g(n.restrictSpecialCharacters(t));
        })("paste", function(t) {
            m(e);
            let n = p();
            return g(n.pasteHandler(t));
        }), a(), C(43, b_, 2, 0, "p", 73)(44, x_, 2, 0, "p", 73), a(), C(45, L_, 5, 0, "ng-template", null, 0, z), a()()()(), h(47, "hr"), a();
    }
    if (o & 2) {
        let e = p();
        s(16), _("ngForOf", e.additionalColumnAvailable), s(6), de("", e.finalColumn.length, " "), s(4), _("cdkDropListData", e.finalColumn), s(), _("ngForOf", e.finalColumn), s(), _("ngIf", e.showUpdateTableButton), s(2), x("visible", e.displayUpdateConfModal), _("modal", !0), s(2), N(e.savedDialogDetailText), s(4), x("visible", e.displaySaveColModal), _("modal", !0), s(6), x("ngModel", e.columnLayoutName), _("ngModelOptions", K(14, wr)), s(), _("ngIf", e.showErrorMessage && !e.columnLayoutName), s(), _("ngIf", e.duplicateReportTitleError && e.columnLayoutName);
    }
}

function w_(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 90)(1, "button", 91), R("click", function() {
            m(e);
            let t = p();
            return g(t.displayCapacityModal = !1);
        }), a()();
    }
}
var Gr = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f, M, D) {
            this.user = e, this.lookupDataService = i, this.messageService = t, this.spinner = n, this.activatedRoute = l, this.reportingDashboardService = u, this.datePipe = T, this.authService = f, this.apiService = M, this.localeService = D, this.templates = [], this.columnsField = [], this.showOptionalFilter = !1, this.displayUpdateConfModal = !1, this.displaySaveColModal = !1, this.showErrorMessage = !1, this.columnLayoutName = "", this.duplicateReportTitleError = !1, this.showUpdateTableButton = !1, this.titleInvalidCharacters = !1, this.additionalColumnAvailable = [], this.finalColumn = [], this.allColumns = [], this.packagePinKey = E.PACKAGEPIN, this.rowTemplates = [], this.displayCapacityModal = !1, this.summaryText = " Generated Reports are at Capacity.", this.detailText = " You have reached the maximum number of reports created. Please delete a report to free up space.", this.errorMessages = {
                summary: " Something Went Wrong!",
                detail: " Please try again later. If issue persist again, please contact support team."
            }, this.reportType = V.ONETIME, this.outputFormat = zo.CSV, this.redirectToFinalColumnList = !1, this.selectedFinalColumn = {
                title: "",
                columnList: []
            }, this.templateId = "", this.editMode = !1, this.savedColumnLayoutActiveData = null, this.sendFinalColumnToParent = new J(), this.savedDialogDetailText = "We\u2019ve noticed you made changes to the standard column layout, would you like to save it? Saved Layouts can be accessed from your Reporting dashboard, and can be re-used for making future reports.", this.showColumnEditorTxt = "Show Column Editor", this.hideColumnEditorTxt = "Hide Column Editor", this.standardColumnNames = [E.PACKAGEPIN, E.SHIPMENTCREATED, E.PACKAGESTATUSCODEDESCRIPTION, E.PACKAGESTATUSSUBCODE, E.PACKAGEESTIMATEDDELIVERYDATE, E.LASTEVENTCITY, E.LASTEVENTPROVINCESTATE, E.LASTEVENTDATETIME, E.RECEIVERCITY, E.RECEIVERNAME, E.RECEIVERPOSTALZIPCODE, E.RECEIVERPROVINCESTATE, E.RECEIVERADDRESS1, E.RECEIVERADDRESS2, E.RECEIVERADDRESS3, E.RECEIVERCOUNTRYCODE, E.PRODUCTCODEDESCRIPTION, E.SHIPMENTPIN, E.SHIPPERACCOUNT, E.PAYERACCOUNT, E.SHIPPERPOSTALZIPCODE, E.PIECETOTALCOUNT, E.WEIGHTVALUE, E.WEIGHTUNIT, E.PCH_CHAIN_OF_SIGNATURE, E.PCH_DANGEROUS_GOODS, E.PACKAGEDELIVERYDATETIME, E.PCH_HEALTHCARE, E.HOLDFORPICKUPLOCATIONID, E.REFERENCE1, E.REFERENCE2, E.PCH_RES_SIG_DOM, E.PCH_RES_SIG_INTL, E.RETURNSHIPMENT, E.PCH_SATURDAY_DELIVERY, E.PCH_SATURDAY_PICKUP, E.SHIPPERSTREETADDRESS1, E.SHIPPERSTREETADDRESS2, E.SHIPPERSTREETADDRESS3, E.SHIPPERCITY, E.SHIPPERNAME, E.SHIPPERPROVINCESTATE, E.PACKAGEDELIVERYNAME, E.DAMAGED, E.DELAYED, E.RECEIVER_UNAVAILABLE, E.CUSTOMS, E.UNDEFINED, E.OTHER, E.APPOINTMENT_REQUIRED, E.ADDRESS_CORRECTION, E.PICKUP_AVAILABLE], this.additionalColumnNames = [E.NOTE, E.LAST_SCAN_REASON, E.SHIPPERCOUNTRYCODE, E.SHIPPERCOMPANYNAME, E.SHIPMENTTYPEDESCRIPTION, E.RECEIVERCOMPANYNAME, E.RECEIVERCOUNTRYCODE, E.PACKAGEWEIGHTDECLAREDVALUE, E.PACKAGEWEIGHTDECLAREDUNIT, E.PACKAGEREFERENCES, E.REFERENCE3, E.REFERENCE4, E.REFERENCE5, E.PICKUP_DATE, E.PICKUP_TIME, E.TERMINAL_NAME, E.PCH_EXPRESS_CHEQUE, E.PCH_DECLARED_VALUE, E.PCH_SPECIAL_HANDLING, E.PCH_OSNR, E.X_REFERENCE], this.selectedReportsCode = "";
        }
        createStandardColumns() {
            return this.lookupDataService.getAllByGroup("column").subscribe(e => {
                let i = this.getStandardColumnsHeader(this.standardColumnNames);
                this.columnsField = [], this.standardColumnNames.filter(t => {
                    let n = [E.RECEIVERADDRESS1, E.RECEIVERADDRESS2, E.RECEIVERADDRESS3];
                    return !(!this.authService.isDashBoardViewAddress123Authorised() && n.includes(t));
                }).forEach((t, n) => {
                    this.columnsField.push({
                        field: t,
                        position: n + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: i[n]
                    });
                }), E.updateColumnHeader(e, this.localeService.getLocale(), this.columnsField), this.columnsField.forEach(t => {
                    if (t.field.match(/\[(.*?)\]/)) {
                        let l = "Flag";
                        this.localeService.isFrench() ? t.header = `${l} ${t.header}` : t.header = `${t.header} ${l}`;
                    }
                }), this.columnsField = this.columnsField.sort((t, n) => t.field === E.PACKAGEPIN ? -1 : n.field === E.PACKAGEPIN || t.position > n.position ? 1 : -1);
            }), this.columnsField;
        }
        getStandardColumnsHeader(e) {
            let i = [],
                t = 0,
                n = e.length,
                l = Array.from(Array(26)).map((u, T) => String.fromCharCode(T + 65));
            for (; n > 0;) {
                let u = "",
                    T = t;
                for (; T >= 0;) u = l[T % 26] + u, T = Math.floor(T / 26) - 1;
                i.push(u), t++, n--;
            }
            return i;
        }
        ngOnInit() {
            this.finalColumn = this.selectedFinalColumn.columnList, this.allColumns = this.setAllColumns(), this.updateAvailableColumns(this.selectedFinalColumn.columnList), !this.selectedFinalColumn.columnList.length && !this.templateId && (this.finalColumn = this.createStandardColumns(), this.updateAvailableColumns(this.finalColumn)), this.selectedFinalColumn.columnList.length && this.onDataSourceChange(), this.sendFinalColToParent(), this.getSavedColumnData(), this.updateFinalizeColumnForEdit(), this.editMode && (this.savedDialogDetailText = "We\u2019ve noticed you made changes to the standard column layout, would you like to save it? The new changes will replace existing saved layouts in your reporting dashboard.");
        }
        onDataSourceChange() {
            this.columnsField = [], this.columnsField = this.finalColumn;
        }
        addColumnToFinalList(e) {
            this.finalColumn.push(e), this.sendFinalColToParent(), this.showUpdateButton(), this.additionalColumnAvailable = this.additionalColumnAvailable.filter(i => i.field != e.field);
        }
        removeColumnFromFinalList(e) {
            let i = e.field;
            if (this.finalColumn = this.finalColumn.filter(t => t.field != i), this.additionalColumnAvailable.push(e), this.sendFinalColToParent(), this.finalColumn.length == 1) {
                this.showUpdateTableButton = !1;
                return;
            }
            this.showUpdateButton();
        }
        toggleOptionalFilter() {
            this.showOptionalFilter = !this.showOptionalFilter;
        }
        toggleByKeyboard(e) {
            (e.key === "Enter" || e.keyCode === 13) && this.toggleOptionalFilter();
        }
        showUpdateButton() {
            this.showUpdateTableButton = !0;
        }
        populateFinalColumnList(e) {
            let i = e.find(t => t.templateId == this.templateId);
            if (i) {
                let t = [];
                i ? .columns ? .forEach(n => {
                    let l = this.allColumns.find(u => u.field == n);
                    l && t.push(l);
                }), this.finalColumn = t, this.columnLayoutName = i.title, this.sendFinalColToParent(), this.updateAvailableColumns(this.finalColumn), this.onDataSourceChange();
            }
        }
        updateAvailableColumns(e) {
            this.additionalColumnAvailable = this.allColumns.map(i => xo(bo({}, i), {
                isDisplayed: !0
            })).filter(i => !e.some(t => t.field == i.field));
        }
        filterColumn(e) {
            let i = e.target.value;
            this.additionalColumnAvailable = this.additionalColumnAvailable.map(t => (t.header.toLowerCase().includes(i ? .toLowerCase()) ? t.isDisplayed = !0 : t.isDisplayed = !1, t));
        }
        drop(e) {
            e.currentIndex !== 0 && (this.showUpdateButton(), jo(e.container.data, e.previousIndex, e.currentIndex));
        }
        saveOrUpdateColumnLayout() {
            let e = this.reportType ? .toLocaleLowerCase() === V.ONETIME ? le.ADHOC : le.SCHEDULED,
                i = `${ne.EXCEPTION}|${e}`;
            if (this.sendFinalColToParent(), !this.columnLayoutName ? .trim()) {
                this.showErrorMessage = !0;
                return;
            }
            if (this.duplicateTitleChecker()) return;
            let n = this.finalColumn.map(u => u.field),
                l = {
                    userId: this.user.userData.id,
                    creationDate: this.datePipe.transform(new Date(), ce),
                    title: this.columnLayoutName.trim(),
                    type: i,
                    outputFormat: this.outputFormat,
                    columns: n
                };
            this.templateId && (l.templateId = this.templateId), this.spinner.show("reportLoadingSpinner"), this.apiService.saveUpdateFinalColumnLayout(l).subscribe(u => {
                this.messageService.add({
                    severity: "success",
                    summary: "success",
                    detail: "Column layout created successfully."
                }), this.displaySaveColModal = !1, this.columnLayoutName = "", this.spinner.hide("reportLoadingSpinner"), this.getSavedColumnData();
            }, u => {
                if (this.spinner.hide("reportLoadingSpinner"), this.displaySaveColModal = !1, u ? .error ? .payload ? .includes(Li)) {
                    this.summaryText = "Templates are at Capacity.", this.detailText = "You have reached the maximum number of templates created. Please delete a template to free up space.", this.displayCapacityModal = !0;
                    return;
                }
                let T = this.errorMessages.summary,
                    f = this.errorMessages.detail;
                this.messageService.add({
                    severity: "error",
                    summary: T,
                    detail: f
                });
            });
        }
        restrictSpecialCharacters(e) {
            let i = /[^~|*<>^{}\\/]/g,
                t = String.fromCharCode(e.charCode);
            this.columnLayoutName && this.columnLayoutName.length >= 30 && e.preventDefault(), i.test(t) ? (this.titleInvalidCharacters = !1, this.duplicateReportTitleError = !1) : (this.titleInvalidCharacters = !0, e.preventDefault());
        }
        pasteHandler(e) {
            e.preventDefault();
            let t = (e.clipboardData || window.Clipboard).getData("text") + " ";
            if (!/[~|*<>^{}\\/]/g.test(t)) {
                let l = e.target,
                    u = l.value.substring(0, l.selectionStart || 0),
                    T = l.value.substring(l.selectionEnd || 0),
                    f = u + t + T;
                f && f.trim().length >= 30 && (f = f.substring(0, 30)), l.value = f.trimEnd();
                let M = u.length + t.length;
                l.selectionStart = M, l.selectionEnd = M, this.columnLayoutName = f;
            }
        }
        duplicateTitleChecker() {
            let e = !1,
                i = this.rowTemplates;
            return this.savedColumnLayoutActiveData && (i = i.filter(t => t.title.trim() != this.savedColumnLayoutActiveData ? .title ? .trim())), e = i.some(t => t.title.trim().toLocaleUpperCase() == this.columnLayoutName ? .trim().toLocaleUpperCase()), e ? (this.duplicateReportTitleError = !0, !0) : (this.duplicateReportTitleError = !1, !1);
        }
        getSavedColumnData() {
            this.apiService.savedColumnLayoutGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                if (e && e.payload) {
                    let i = e.payload;
                    i.map(n => {
                        if (n.type) {
                            let l = n.type.indexOf("|");
                            n.reportType = n.type, l !== -1 && (n.type = n.type.substring(0, n.type.indexOf("|")));
                        }
                    });
                    let t = i.filter(n => n.type === ne.EXCEPTION);
                    this.rowTemplates = i.filter(n => [ne.TRACKING, ne.EXCEPTION].includes(n.type)), this.templates = t, this.redirectToFinalColumnList && this.populateFinalColumnList(e.payload);
                }
            });
        }
        useSaveColumnLayout(e) {
            this.templateId = e.value, this.savedDialogDetailText = "We\u2019ve noticed you made changes to the standard column layout, would you like to save it? The new changes will replace existing saved layouts in your reporting dashboard.", this.populateFinalColumnList(this.templates);
        }
        sendFinalColToParent() {
            this.sendFinalColumnToParent.emit({
                title: this.columnLayoutName,
                templateId: this.templateId,
                columnList: this.finalColumn
            });
        }
        createFinalizeColumns() {
            return this.lookupDataService.getAllByGroup("column").subscribe(e => {
                let i = this.reportingDashboardService.reportPayLoad.columnLayout.columnNames;
                this.finalColumn = [], this.columnsField = [];
                let t = this.getStandardColumnsHeader(i);
                i.forEach((n, l) => {
                    this.finalColumn.push({
                        field: n,
                        position: l + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: t[l]
                    });
                }), E.updateColumnHeader(e, this.localeService.getLocale(), this.finalColumn), E.updateColumnHeader(e, this.localeService.getLocale(), this.columnsField), this.finalColumn.forEach(n => {
                    if (n.field.match(/\[(.*?)\]/)) {
                        let u = "Flag";
                        this.localeService.isFrench() ? n.header = `${u} ${n.header}` : n.header = `${n.header} ${u}`;
                    }
                }), this.sendFinalColToParent();
            }), this.finalColumn;
        }
        updateFinalizeColumnForEdit() {
            this.activatedRoute.params.subscribe(e => {
                this.sheduleReportId = e.reportId, this.sheduleReportId && (this.createFinalizeColumns(), this.updateAvailableColumns(this.finalColumn));
            });
        }
        setAllColumns() {
            return this.lookupDataService.getAllByGroup("column").subscribe(e => {
                let i = this.standardColumnNames.concat(this.additionalColumnNames),
                    t = this.getStandardColumnsHeader(i);
                this.allColumns = [], i.filter(n => {
                    let l = [E.RECEIVERADDRESS1, E.RECEIVERADDRESS2, E.RECEIVERADDRESS3];
                    return !(!this.authService.isDashBoardViewAddress123Authorised() && l.includes(n));
                }).forEach((n, l) => {
                    this.allColumns.push({
                        field: n,
                        position: l + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: t[l]
                    });
                }), E.updateColumnHeader(e, this.localeService.getLocale(), this.allColumns), this.allColumns.forEach(n => {
                    if (n.field.match(/\[(.*?)\]/)) {
                        let u = "Flag";
                        this.localeService.isFrench() ? n.header = `${u} ${n.header}` : n.header = `${n.header} ${u}`;
                    }
                }), this.allColumns = this.allColumns.sort((n, l) => n.field === E.PACKAGEPIN ? -1 : l.field === E.PACKAGEPIN || n.position > l.position ? 1 : -1);
            }), this.allColumns;
        }
        handleKeyboardEvent(e) {
            if (e.key === "Tab") {
                let i = document.querySelector(".p-dialog-header-close"),
                    t = document.querySelector(".p-dialog-title");
                i && i.setAttribute("tabindex", "0"), t && t.setAttribute("tabindex", "1");
            }
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(se), A(gt), A(ye), A(We), A(Ye), A(Se), A(ue), A(je), A(xe), A(ot));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-finalize-columns-exception"]
                ],
                hostBindings: function(i, t) {
                    i & 1 && R("keydown", function(l) {
                        return t.handleKeyboardEvent(l);
                    }, !1, vt);
                },
                inputs: {
                    reportType: "reportType",
                    outputFormat: "outputFormat",
                    redirectToFinalColumnList: "redirectToFinalColumnList",
                    selectedFinalColumn: "selectedFinalColumn",
                    templateId: "templateId",
                    editMode: "editMode",
                    savedColumnLayoutActiveData: "savedColumnLayoutActiveData"
                },
                outputs: {
                    sendFinalColumnToParent: "sendFinalColumnToParent"
                },
                features: [Te([ye, ue])],
                decls: 47,
                vars: 21,
                consts: () => {
                    let e;
                    e = "Select from saved column layouts";
                    let i;
                    i = "Report Preview";
                    let t;
                    t = "columns showing";
                    let n;
                    n = "Refresh";
                    let l;
                    l = "Column Editor";
                    let u;
                    u = "Review the orders of the columns in the preview below, or open the column editor to make changes";
                    let T;
                    T = "Hide";
                    let f;
                    f = "Show";
                    let M;
                    M = "Search Columns";
                    let D;
                    D = "Would you like to save your column layout?";
                    let b;
                    b = "Save as Column Layout";
                    let v;
                    v = "Column Editor";
                    let $;
                    $ = "Adjust the column layout for your report using the left panel. Drag column to reorder or remove them. New columns will be added to the bottom of the list. Click \"Update Table\" to save changes and update the preview.";
                    let y;
                    y = "Additional Columns Available";
                    let U;
                    U = "Final Column List";
                    let oe;
                    oe = "selected";
                    let B;
                    B = " To Save the Column Layout for future use, please enter a unique name:";
                    let w;
                    w = "Column Layout Name";
                    let pe;
                    pe = "Update Table";
                    let Y;
                    Y = "No, Continue";
                    let Q;
                    Q = "Yes, Save Layout";
                    let Oe;
                    Oe = "Column Layout Name is required.";
                    let Pe;
                    Pe = " Name already exists, please provide a unique template name ";
                    let Ae;
                    Ae = "Back";
                    let Ne;
                    Ne = "Save Layout";
                    let Me;
                    return Me = "Okay", [
                        ["footer", ""], i, t, n, l, u, T, f, v, $, y, U, oe, B, w, Y, Q, Oe, Pe, Ae, Ne, [1, "container-fluid"],
                        [1, "row"],
                        [1, "col-12"],
                        ["class", "page-title", 4, "ngIf"],
                        [1, "preview"],
                        [1, "report-pill"],
                        [3, "click"],
                        ["pButton", "", "pRipple", "", "type", "button", "icon", "pi pi-refresh", "aria-label", "refresh", 1, "padding-left", "p-button-rounded", "p-button-text", "refreshIconFinalize", "refresh-icon"],
                        [1, "refresh", "ml-1"],
                        ["placeholder", e, "optionLabel", "title", "optionValue", "templateId", 1, "select-template", "report-dropdown", 3, "ngModelChange", "onSelectionChange", "disabled", "options", "ngModel", "ngModelOptions"],
                        [1, "col-xs-12"],
                        [1, "finalize-column-table-container"],
                        [1, "finalize-column-table"],
                        ["ngFor", "", 3, "ngForOf"],
                        [4, "ngFor", "ngForOf"],
                        [1, "form-hr"],
                        [1, "optional-filter"],
                        ["tabindex", "0", "aria-controls", "columnEditorSection", "id", "columnEditorAccordion", 1, "d-inline-flex", "show-optional-filter", 3, "click", "keypress", "ngClass"],
                        ["class", "show", 4, "ngIf"],
                        ["class", "hide", 4, "ngIf"],
                        ["class", "additional-column", "role", "region", "id", "columnEditorSection", "aria-labelledby", "columnEditorAccordion", 4, "ngIf"],
                        [1, "delete-dailog"],
                        [1, "pur-dialog", 3, "visibleChange", "header", "visible", "modal"],
                        [1, "model-body", "text-left"],
                        [1, "page-title"],
                        [4, "ngIf"],
                        [1, "show"],
                        [1, "hide"],
                        ["role", "region", "id", "columnEditorSection", "aria-labelledby", "columnEditorAccordion", 1, "additional-column"],
                        [1, "column-editor-title"],
                        [1, "column-editor-sub-title"],
                        [1, "flex-row"],
                        [1, "flex-item"],
                        ["for", "searchColumns", 1, "search-field-label"],
                        [1, "search-column"],
                        [1, "pi", "pi-search", "search-icon"],
                        ["id", "searchColumns", "pInputText", "", "type", "text", "placeholder", M, 3, "keyup"],
                        [1, "column-list", "addition-column"],
                        [1, "flex-item", "p-relative"],
                        [1, "flex", "justify-space-between"],
                        [1, "selected-count"],
                        ["cdkDropList", ""],
                        ["cdkDropList", "", 1, "column-list", "final-column-list", 3, "cdkDropListDropped", "cdkDropListData"],
                        ["class", "update-btn", 4, "ngIf"],
                        ["id", "save-dialog-confirm", 1, "delete-dailog"],
                        ["header", D, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "model-body", "text-left", "modal-sub-heading"],
                        ["id", "save-dailog", 1, "delete-dailog"],
                        ["header", b, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "Layout-field"],
                        ["for", "title", 1, "control-label"],
                        ["pInputText", "", "type", "text", "autofocus", "", 1, "form-input", 3, "ngModelChange", "keypress", "paste", "ngModel", "ngModelOptions"],
                        ["class", "p-error block error-message", 4, "ngIf"],
                        ["class", "column-row", 4, "ngIf"],
                        [1, "column-row"],
                        ["src", "assets/images/plus.png", "alt", "plus", 1, "add-btn"],
                        [1, "final-column-items"],
                        [1, "alphabet-counter"],
                        ["cdkDrag", "", 1, "column-row", "justify-space-between", 3, "cdkDragDisabled"],
                        [1, "flex"],
                        ["src", "assets/images/move.png", "alt", "move", 1, "move-btn"],
                        [3, "click", 4, "ngIf"],
                        ["src", "assets/images/cross.png", "alt", "cross", 1, "remove-btn"],
                        [1, "update-btn"],
                        ["pButton", "", "pRipple", "", "type", "button", "label", pe, 1, "pur-button", 3, "click"],
                        [1, "pur-form", "pur-form--inline", "layout-footer"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", 1, "pur-button", "pur-button--sm", 3, "click"],
                        [1, "p-error", "block", "error-message"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", "label", Me, 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1) {
                        let n = P();
                        r(0, "div", 21)(1, "div", 22)(2, "div", 23), C(3, h_, 2, 0, "h4", 24), a()(), r(4, "div", 22)(5, "div", 23)(6, "span", 25), d(7, 1), a(), r(8, "span", 26), S(9), r(10, "span"), d(11, 2), a()(), r(12, "span", 27), R("click", function() {
                            return m(n), g(t.onDataSourceChange());
                        }), h(13, "button", 28), r(14, "span", 29), d(15, 3), a()(), r(16, "p-select", 30), F("ngModelChange", function(u) {
                            return m(n), L(t.selectedReportsCode, u) || (t.selectedReportsCode = u), g(u);
                        }), R("onSelectionChange", function(u) {
                            return m(n), g(t.useSaveColumnLayout(u));
                        }), a()()(), r(17, "div", 22)(18, "div", 31)(19, "div", 32)(20, "table", 33)(21, "thead")(22, "tr"), h(23, "th"), C(24, S_, 1, 1, "ng-template", 34), a(), r(25, "tr"), h(26, "th"), C(27, O_, 2, 1, "th", 35), a()(), r(28, "tbody")(29, "tr")(30, "td"), S(31, "1"), a()()()()()()()(), h(32, "br")(33, "hr", 36), r(34, "div", 37)(35, "h4", 38), R("click", function() {
                            return m(n), g(t.toggleOptionalFilter());
                        })("keypress", function(u) {
                            return m(n), g(t.toggleByKeyboard(u));
                        }), C(36, P_, 2, 0, "span", 39)(37, A_, 2, 0, "span", 40), r(38, "span"), d(39, 4), a()(), C(40, F_, 48, 15, "div", 41), a(), r(41, "div", 42)(42, "p-dialog", 43), F("visibleChange", function(u) {
                            return m(n), L(t.displayCapacityModal, u) || (t.displayCapacityModal = u), g(u);
                        }), r(43, "p", 44), S(44), a(), C(45, w_, 2, 0, "ng-template", null, 0, z), a()();
                    }
                    i & 2 && (s(3), _("ngIf", !t.editMode), s(6), de("", t.columnsField.length, " "), s(7), _("disabled", t.editMode)("options", t.templates), x("ngModel", t.selectedReportsCode), _("ngModelOptions", K(18, wr)), s(8), _("ngForOf", t.getStandardColumnsHeader(t.columnsField)), s(3), _("ngForOf", t.columnsField), s(8), _("ngClass", ee(19, T_, t.showOptionalFilter)), X("aria-label", t.showOptionalFilter ? t.hideColumnEditorTxt : t.showColumnEditorTxt)("aria-expanded", t.showOptionalFilter), s(), _("ngIf", t.showOptionalFilter), s(), _("ngIf", !t.showOptionalFilter), s(3), _("ngIf", t.showOptionalFilter), s(2), _("header", t.summaryText), x("visible", t.displayCapacityModal), _("modal", !0), s(2), N(t.detailText));
                },
                dependencies: [ie, me, he, re, fe, $e, Ie, Ve, en, Jo, Qo, $t, yi, nt, be, Xe, Ee, Ze, ve, qe, De, kt, rt],
                styles: [`body[_ngcontent-%COMP%]{font:var(--pur-font-body);color:var(--pur-text-black);background-color:var(--pur-canvas)}a[_ngcontent-%COMP%]{color:var(--pur-link)}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{color:var(--pur-link-hover)}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], p[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], dl[_ngcontent-%COMP%]{margin-block-start:0;margin-block-end:var(--pur-gap)}article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], details[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], section[_ngcontent-%COMP%]{display:block}[hidden][_ngcontent-%COMP%]{display:none!important}[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.page-title[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:var(--pur-font-normal);color:var(--pur-primary-blue)}.report-subtext[_ngcontent-%COMP%]{font-size:var(--pur-font-mobile-md)}.preview[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);font-size:var(--pur-font-mobile-sm);color:#495057}.report-pill[_ngcontent-%COMP%]{background:#0019961a;border-radius:10px;padding:0 .5rem;margin-right:1rem;margin-left:1rem;font-size:var(--pur-font-mobile-xs);color:#001996;font-weight:var(--pur-font-semibold);cursor:pointer}.refresh[_ngcontent-%COMP%]{font-size:var(--pur-font-mobile-xs);color:#001996;font-weight:var(--pur-font-semibold);padding-left:.5rem;cursor:pointer}.refresh-icon[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);color:#001996;cursor:pointer}.select-template[_ngcontent-%COMP%]{float:right}.finalize-column-table[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.2);width:100%;margin-top:1rem}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#757575}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2){background:#ededed}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.1);padding:16px 8px;font-size:1rem;font-weight:var(--pur-font-semibold);text-transform:capitalize;white-space:nowrap;color:#111}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]:first-of-type{border-right-width:none}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#9f9f9f}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.2);padding:8px;background:#fff;color:#000;font-size:1rem}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type{font-weight:var(--pur-font-semibold)}.refreshIconFinalize[_ngcontent-%COMP%]{margin-bottom:-.5rem}.refreshIconFinalize[_ngcontent-%COMP%]   .pi[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);color:#001996}.optional-filter[_ngcontent-%COMP%]{margin-left:0rem;margin-right:0rem}.show-optional-filter[_ngcontent-%COMP%]{cursor:pointer;font-size:1.125rem;margin:1rem 0rem}.show-optional-filter[_ngcontent-%COMP%]:before{background-image:svg-uri('<svg width="10" height="5" viewBox="0 0 10 5" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="Vector" d="M0 0L5 5L10 0L0 0Z" fill="#001996"/></svg>');position:relative;width:1.25rem;margin:.2rem .25rem 0 .6rem;content:"";background-repeat:no-repeat;background-position:center center}.show-optional-filter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:.313rem;display:inline-flex}.show-optional-filter[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%], .show-optional-filter[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{padding-right:.25rem}.hide-optional-filter[_ngcontent-%COMP%]:before{-moz-transform:scaleY(-1);-webkit-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1)}.additional-column[_ngcontent-%COMP%]{padding:0rem 1rem}.column-editor-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.063rem}.flex-row[_ngcontent-%COMP%]{display:flex;gap:2.5rem;width:100%}.flex[_ngcontent-%COMP%]{display:flex;gap:.625rem;align-items:center}.flex-item[_ngcontent-%COMP%]{flex:1;padding:1.25rem;position:relative}.flex-item[_ngcontent-%COMP%]:nth-child(2){background-color:#f5f5f5}.search-column[_ngcontent-%COMP%]{position:relative}.flex-item[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-weight:700}.search-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:2.188rem;border-radius:.5rem;width:calc(100% - 2.5rem);height:2.563rem;margin-bottom:1.25rem;border:.063rem solid #757575}.search-column[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;left:.625rem;top:.75rem;color:#949494}.column-list[_ngcontent-%COMP%]{overflow-y:auto;list-style-type:none;max-height:75vh;padding:0}.column-list[_ngcontent-%COMP%]:nth-child(2){max-height:80vh}.column-row[_ngcontent-%COMP%]{display:flex;gap:.625rem;border:.063rem solid #ced4da;padding:.5rem .625rem;border-radius:.5rem;margin:.5rem 1.25rem .5rem 0;background-color:#fff;position:relative;font-weight:700}.addition-column[_ngcontent-%COMP%]{color:#001996}.alphabet-counter[_ngcontent-%COMP%]{margin-left:1.875px}.justify-space-between[_ngcontent-%COMP%]{justify-content:space-between}.add-btn[_ngcontent-%COMP%], .remove-btn[_ngcontent-%COMP%]{padding:0 .313rem;cursor:pointer;color:#00f;transition:.5s}.add-btn[_ngcontent-%COMP%]:hover, .remove-btn[_ngcontent-%COMP%]:hover{transform:scale(1.3)}.move-btn[_ngcontent-%COMP%]{color:#00f;cursor:move;padding-bottom:2px}.selected-count[_ngcontent-%COMP%]{background:#dadada;padding:.25rem .5rem;border-radius:.375rem;color:#00f;font-weight:700}.final-column-list[_ngcontent-%COMP%]{counter-reset:alphabet}.final-column-items[_ngcontent-%COMP%]{counter-increment:alphabet}.alphabet-counter[_ngcontent-%COMP%]:before{width:2rem;float:left;margin-top:.625rem;content:counter(alphabet,upper-alpha)}.form-hr[_ngcontent-%COMP%]{margin-left:0rem;margin-right:0rem}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:0 2px 2px 1px #0003,0 2px 2px 2px #00000024,0 2px 2px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.p-relative[_ngcontent-%COMP%]{position:relative;padding-bottom:5rem}.update-btn[_ngcontent-%COMP%]{position:absolute;right:1.25rem;bottom:1.25rem}.Layout-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.Layout-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs);color:var(--pur-web-black);font-weight:700}.layout-footer[_ngcontent-%COMP%]{margin-top:1.5rem}.finalize-column-table-container[_ngcontent-%COMP%]{width:100%;overflow:auto;display:block;max-height:50vh}[_nghost-%COMP%]     .p-dropdown{width:18.75rem;height:3.125rem}.search-field-label[_ngcontent-%COMP%]{margin-bottom:.125rem}.form-input[_ngcontent-%COMP%]{margin-bottom:.25rem}`]
            });
        }
    }
    return o;
})();

function G_(o, c) {
    o & 1 && (r(0, "label", 44), d(1, 11), a());
}

function k_(o, c) {
    o & 1 && (r(0, "label", 45), d(1, 12), a());
}

function $_(o, c) {
    if (o & 1 && (r(0, "label", 47)(1, "span"), d(2, 13), a(), S(3), a()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(3), He(" ", i.getReceiverOperator(e.matchMode), " ", e.value, " ");
    }
}

function V_(o, c) {
    if (o & 1 && (G(0), C(1, $_, 4, 2, "label", 46), k()), o & 2) {
        let e = p();
        s(), _("ngForOf", e.receiverProvince);
    }
}

function B_(o, c) {
    if (o & 1 && (r(0, "label", 49)(1, "span"), d(2, 14), a(), S(3), a()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(3), He(" ", i.getReceiverOperator(e.matchMode), " ", e.value, " ");
    }
}

function X_(o, c) {
    if (o & 1 && (G(0), C(1, B_, 4, 2, "label", 48), k()), o & 2) {
        let e = p();
        s(), _("ngForOf", e.receiverCompany);
    }
}

function U_(o, c) {
    if (o & 1 && (r(0, "label", 51)(1, "span"), d(2, 15), a(), S(3), a()), o & 2) {
        let e = c.$implicit;
        s(3), He(" ", e.matchMode, " ", e.value, " ");
    }
}

function H_(o, c) {
    if (o & 1 && (G(0), C(1, U_, 4, 2, "label", 50), k()), o & 2) {
        let e = p();
        s(), _("ngForOf", e.receiverCity);
    }
}

function z_(o, c) {
    if (o & 1 && (r(0, "label", 53)(1, "span"), d(2, 16), a(), S(3), a()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(3), He(" ", i.getReceiverOperator(e.matchMode), " ", e.value, " ");
    }
}

function Y_(o, c) {
    if (o & 1 && (G(0), C(1, z_, 4, 2, "label", 52), k()), o & 2) {
        let e = p();
        s(), _("ngForOf", e.receiverAddress);
    }
}

function W_(o, c) {
    if (o & 1 && (r(0, "label", 55)(1, "span"), d(2, 17), a(), S(3), a()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(3), de(" - ", i.reportingDashboardService.localizedTypeOfService(e.value), " ");
    }
}

function K_(o, c) {
    if (o & 1 && (G(0), C(1, W_, 4, 1, "label", 54), k()), o & 2) {
        let e = p();
        s(), _("ngForOf", e.serviceProduct);
    }
}

function Z_(o, c) {
    if (o & 1 && (r(0, "label", 55)(1, "span"), d(2, 18), a(), S(3), a()), o & 2) {
        let e = c.$implicit,
            i = p(2);
        s(3), de(" - ", i.reportingDashboardService.localizedTypeOfService(e.value), " ");
    }
}

function q_(o, c) {
    if (o & 1 && (G(0), C(1, Z_, 4, 1, "label", 54), k()), o & 2) {
        let e = p();
        s(), _("ngForOf", e.serviceDescription);
    }
}

function j_(o, c) {
    o & 1 && h(0, "th", 56);
}

function Q_(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = c.$implicit;
        s(), N(e.header);
    }
}
var kr = (() => {
    class o {
        constructor(e, i, t) {
            this.user = e, this.apiService = i, this.reportingDashboardService = t, this.ReportType = le, this.RecurringType = V, this.columnsField = [], this.additionalColumnAvailable = [], this.FinalColumn = [], this.header = [], this.templateId = "", this.reportData = this.reportingDashboardService.reportPayLoad, this.receiverCity = null, this.receiverProvince = null, this.receiverAddress = null, this.receiverCompany = null, this.serviceDescription = null, this.serviceProduct = null, this.finalColumnData = {
                title: "",
                columnList: []
            }, this.changeTab = new J(), this.reportDetails = new Vo({}), this.selectedAccounts = "", this.dateRange = "", this.receiverOperator = [{
                name: "Starts with",
                value: "startswith",
                inactive: !1
            }, {
                name: "Contains",
                value: "contains",
                inactive: !1
            }, {
                name: "Not contains",
                value: "notcontains",
                inactive: !1
            }, {
                name: "Ends with",
                value: "endswith",
                inactive: !1
            }, {
                name: "Equals",
                value: "equals",
                inactive: !1
            }];
        }
        ngOnInit() {
            this.FinalColumn = this.finalColumnData.columnList, this.additionalColumnAvailable = this.user.createDefaultColumns(), this.header = this.getStandardColumnsHeader(this.FinalColumn), this.getAllFinalColumns(), this.createOptionFilterDetails();
        }
        getStandardColumnsHeader(e) {
            let i = [],
                t = 0,
                n = e.length,
                l = Array.from(Array(26)).map((u, T) => String.fromCharCode(T + 65));
            for (; n > 0;) {
                let u = "",
                    T = t;
                for (; T >= 0;) u = l[T % 26] + u, T = Math.floor(T / 26) - 1;
                i.push(u), t++, n--;
            }
            return i;
        }
        setTemplateId(e) {
            let i = e.find(t => t.title == this.finalColumnData.title);
            this.templateId = i ? .templateId;
        }
        getAllFinalColumns() {
            this.apiService.getAllFinalColumnsById(this.user.userData.id).subscribe(e => {
                this.setTemplateId(e.payload);
            });
        }
        editColumnLayout(e, i) {
            e.preventDefault(), this.changeTab.emit({
                tabIndex: i,
                templateId: this.templateId
            });
        }
        createOptionFilterDetails() {
            let e = this.reportData ? .exportParams ? .filters ? .filter(f => f.columnName.includes(vi.RECEIVER)),
                i = e.find(f => f.columnName === E.RECEIVERCITY);
            this.receiverCity = i ? i.actions : null;
            let t = e.find(f => f.columnName === E.RECEIVERPROVINCESTATE);
            this.receiverProvince = t ? t.actions : null;
            let n = e.find(f => f.columnName === E.RECEIVERADDRESS1);
            this.receiverAddress = n ? n.actions : null;
            let l = e.find(f => f.columnName === E.RECEIVERCOMPANYNAME);
            this.receiverCompany = l ? l.actions : null;
            let u = this.reportData ? .exportParams ? .filters ? .filter(f => f.columnName === E.DESCRIPTION);
            this.serviceDescription = u && u.length > 0 ? u[0].actions : null;
            let T = this.reportData ? .exportParams ? .filters ? .filter(f => f.columnName === E.PRODUCTCODE);
            this.serviceProduct = T && T.length > 0 ? T[0].actions : null;
        }
        getReceiverOperator(e) {
            let i = this.receiverOperator.find(t => t.value == e);
            return i ? i.name : e;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(se), A(xe), A(Se));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-review-detail-exception"]
                ],
                inputs: {
                    finalColumnData: "finalColumnData",
                    reportDetails: "reportDetails",
                    selectedAccounts: "selectedAccounts",
                    dateRange: "dateRange"
                },
                outputs: {
                    changeTab: "changeTab"
                },
                decls: 83,
                vars: 16,
                consts: () => {
                    let e;
                    e = "Take a look at what's included in your report";
                    let i;
                    i = "Report Filter";
                    let t;
                    t = "Edit";
                    let n;
                    n = "" + "\uFFFD#17\uFFFD" + "Report Title" + "\uFFFD/#17\uFFFD" + "";
                    let l;
                    l = "" + "\uFFFD#23\uFFFD" + "Report Schedule" + "\uFFFD/#23\uFFFD" + "";
                    let u;
                    u = "Account(s)";
                    let T;
                    T = "" + "\uFFFD#39\uFFFD" + "Report Format" + "\uFFFD/#39\uFFFD" + "";
                    let f;
                    f = "" + "\uFFFD#46\uFFFD" + "Receiver Details" + "\uFFFD/#46\uFFFD" + "";
                    let M;
                    M = "" + "\uFFFD#55\uFFFD" + "Service Type" + "\uFFFD/#55\uFFFD" + "";
                    let D;
                    D = "Report Column";
                    let b;
                    b = "Edit";
                    let v;
                    v = " One-Time ";
                    let $;
                    $ = " Recurring ";
                    let y;
                    y = "Receiver Province";
                    let U;
                    U = "Receiver Company";
                    let oe;
                    oe = "Receiver City";
                    let B;
                    B = "Receiver Address";
                    let w;
                    w = "Priority";
                    let pe;
                    return pe = "Time of Delivery", [e, i, t, n, l, u, T, f, M, D, b, v, $, y, U, oe, B, w, pe, [1, "container-fluid"],
                        [1, "row"],
                        [1, "col-12"],
                        [1, "page-title"],
                        [1, "report-view"],
                        [1, "preview"],
                        ["href", "", 3, "click"],
                        [1, "col-xs-12"],
                        [1, "form-horizontal", "mx-3", "mt-3"],
                        [1, "row", "pur-form-field-inline"],
                        ["for", "title", 1, "control-label", "col-sm-4", "strong"],
                        [1, "col-sm-8"],
                        [1, "row", "pur-form-field-inline", "my-3"],
                        ["for", "title", "class", "control-label col-sm-4", "for", "one-time", 4, "ngIf"],
                        ["for", "title", "class", "control-label col-sm-4", "for", "recurring", 4, "ngIf"],
                        ["for", "dateRange", 1, "control-label", "col-sm-4"],
                        [1, "row", "my-3"],
                        ["for", "format", 1, "control-label", "col-sm-4", "strong"],
                        [4, "ngIf"],
                        ["href", "#", 3, "click"],
                        [2, "width", "100%", "overflow", "auto", "display", "block", "max-height", "50vh"],
                        [1, "review-column-table"],
                        ["class", "alphabet-counter", 4, "ngFor", "ngForOf"],
                        [4, "ngFor", "ngForOf"],
                        [1, "form-hr"],
                        ["for", "title", "for", "one-time", 1, "control-label", "col-sm-4"],
                        ["for", "title", "for", "recurring", 1, "control-label", "col-sm-4"],
                        ["for", "receiverProvince", "class", "control-label col-sm-8", 4, "ngFor", "ngForOf"],
                        ["for", "receiverProvince", 1, "control-label", "col-sm-8"],
                        ["for", "receiverCompany", "class", "control-label col-sm-8", 4, "ngFor", "ngForOf"],
                        ["for", "receiverCompany", 1, "control-label", "col-sm-8"],
                        ["for", "receiverCity", "class", "control-label col-sm-8", 4, "ngFor", "ngForOf"],
                        ["for", "receiverCity", 1, "control-label", "col-sm-8"],
                        ["for", "receiverAddress", "class", "control-label col-sm-8", 4, "ngFor", "ngForOf"],
                        ["for", "receiverAddress", 1, "control-label", "col-sm-8"],
                        ["for", "title", "class", "control-label col-sm-8", 4, "ngFor", "ngForOf"],
                        ["for", "title", 1, "control-label", "col-sm-8"],
                        [1, "alphabet-counter"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1 && (r(0, "div", 19)(1, "div", 20)(2, "div", 21)(3, "h4", 22), d(4, 0), a()()(), h(5, "hr"), r(6, "div", 23)(7, "span", 24), d(8, 1), a(), r(9, "a", 25), R("click", function(l) {
                            return t.editColumnLayout(l, 0);
                        }), d(10, 2), a()(), h(11, "hr"), r(12, "section", 26)(13, "div", 27)(14, "div", 28)(15, "label", 29), Z(16, 3), h(17, "b"), q(), a(), r(18, "div", 30), S(19), a()(), r(20, "div", 31)(21, "label", 29), Z(22, 4), h(23, "b"), q(), a(), r(24, "div", 30), C(25, G_, 2, 0, "label", 32)(26, k_, 2, 0, "label", 33), h(27, "br"), r(28, "label", 34), S(29), a()()(), r(30, "div", 31)(31, "label", 29)(32, "b"), d(33, 5), a()(), r(34, "div", 30), S(35), a()(), r(36, "div", 35)(37, "label", 36), Z(38, 6), h(39, "b"), q(), a(), r(40, "div", 30), S(41), ae(42, "uppercase"), a()(), r(43, "div", 35)(44, "label", 36), Z(45, 7), h(46, "b"), q(), a(), r(47, "div", 30), C(48, V_, 2, 1, "ng-container", 37)(49, X_, 2, 1, "ng-container", 37)(50, H_, 2, 1, "ng-container", 37)(51, Y_, 2, 1, "ng-container", 37), a()(), r(52, "div", 35)(53, "label", 36), Z(54, 8), h(55, "b"), q(), a(), r(56, "div", 30), C(57, K_, 2, 1, "ng-container", 37)(58, q_, 2, 1, "ng-container", 37), a()(), h(59, "hr"), r(60, "div", 23)(61, "span", 24), d(62, 9), a(), r(63, "a", 38), R("click", function(l) {
                            return t.editColumnLayout(l, 1);
                        }), d(64, 10), a()(), h(65, "hr"), a()(), r(66, "div", 20)(67, "div", 26)(68, "div", 39)(69, "table", 40)(70, "thead")(71, "tr"), h(72, "th"), C(73, j_, 1, 0, "th", 41), a(), r(74, "tr"), h(75, "th"), C(76, Q_, 2, 1, "th", 42), a()(), r(77, "tbody")(78, "tr")(79, "td"), S(80, "1"), a()()()()()()()(), h(81, "br")(82, "hr", 43)), i & 2) {
                        let n, l, u, T, f;
                        s(19), N((n = t.reportDetails.get("reportTitle")) == null ? null : n.value), s(6), _("ngIf", ((l = t.reportDetails.get("reportType")) == null ? null : l.value) === t.RecurringType.ONETIME), s(), _("ngIf", ((u = t.reportDetails.get("reportType")) == null ? null : u.value) !== t.RecurringType.ONETIME), s(3), de("", ((T = t.reportDetails.get("reportType")) == null ? null : T.value) === t.RecurringType.ONETIME ? t.dateRange : t.reportingDashboardService.localizedReportFrequency((T = t.reportDetails.get("recurringShedule")) == null ? null : T.value), " "), s(6), N(t.selectedAccounts), s(6), N(et(42, 14, (f = t.reportDetails.get("reportFormat")) == null ? null : f.value)), s(7), _("ngIf", t.receiverProvince), s(), _("ngIf", t.receiverCompany), s(), _("ngIf", t.receiverCity), s(), _("ngIf", t.receiverAddress), s(6), _("ngIf", t.serviceProduct), s(), _("ngIf", t.serviceDescription), s(15), _("ngForOf", t.FinalColumn), s(3), _("ngForOf", t.FinalColumn);
                    }
                },
                dependencies: [ie, he, re, ii],
                styles: ['body[_ngcontent-%COMP%]{font:var(--pur-font-body);color:var(--pur-text-black);background-color:var(--pur-canvas)}a[_ngcontent-%COMP%]{color:var(--pur-link)}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{color:var(--pur-link-hover)}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], p[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], dl[_ngcontent-%COMP%]{margin-block-start:0;margin-block-end:var(--pur-gap)}article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], details[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], section[_ngcontent-%COMP%]{display:block}[hidden][_ngcontent-%COMP%]{display:none!important}[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.page-title[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:var(--pur-font-normal);color:var(--pur-primary-blue)}.preview[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);font-size:var(--pur-font-mobile-sm);color:#495057}.review-column-table[_ngcontent-%COMP%]{border:.063rem solid rgba(27,31,35,.2);width:100%;margin-top:1rem}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#757575}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2){background:#ededed}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]{border:.063rem solid rgba(27,31,35,.1);padding:1rem .5rem;font-size:1rem;font-weight:var(--pur-font-semibold);text-transform:capitalize;white-space:nowrap;color:#111}.review-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]:first-of-type{border-right-width:none}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#9f9f9f}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:.063rem solid rgba(27,31,35,.2);padding:.5rem;background:#fff;color:#000;font-size:1rem}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type{font-weight:var(--pur-font-semibold)}.review-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{counter-reset:alphabet-counter}.review-column-table[_ngcontent-%COMP%]   .alphabet-counter[_ngcontent-%COMP%]:before{counter-increment:alphabet-counter;content:counter(alphabet-counter,upper-alpha);font-weight:700}.report-view[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:0 1rem}']
            });
        }
    }
    return o;
})();
var J_ = ["dropdown"],
    ec = o => ({
        "has-error": o
    }),
    Si = () => ({
        standalone: !0
    }),
    tc = o => ({
        "account-checked": o
    }),
    ic = (o, c) => ({
        "main-expanded-row": o,
        "group-checked": c
    }),
    oc = o => ({
        group: o
    }),
    nc = (o, c) => ({
        space: o,
        "none-space": c
    }),
    rc = o => ({
        space: o
    }),
    ac = o => ({
        "last-row": o
    });

function lc(o, c) {
    o & 1 && (r(0, "h2", 100), d(1, 13), a());
}

function sc(o, c) {
    o & 1 && (r(0, "h2", 100), d(1, 14), a());
}

function pc(o, c) {
    if (o & 1 && (r(0, "h2", 100), S(1), a()), o & 2) {
        let e = p();
        s(), N(e.columnLayoutName);
    }
}

function _c(o, c) {
    o & 1 && (r(0, "p"), d(1, 15), a());
}

function cc(o, c) {
    if (o & 1 && h(0, "p", 101), o & 2) {
        let e = p();
        _("innerHTML", e.createModeHeader, Nt);
    }
}

function uc(o, c) {
    o & 1 && (G(0), h(1, "hr"), r(2, "p", 102), d(3, 16), a(), k());
}

function dc(o, c) {
    if (o & 1 && (r(0, "div", 103)(1, "div", 104), h(2, "p-steps", 105), a()()), o & 2) {
        let e = p();
        s(2), _("activeIndex", e.active)("id", "p-active-" + e.active)("model", e.items);
    }
}

function mc(o, c) {
    o & 1 && (r(0, "h5", 163), d(1, 37), a());
}

function gc(o, c) {
    if (o & 1 && (G(0), r(1, "div", 164)(2, "label", 165)(3, "b"), d(4, 38), a()(), r(5, "div", 112)(6, "label"), d(7, 39), a()()(), r(8, "div", 166)(9, "label", 116)(10, "b"), d(11, 40), a()(), r(12, "div", 112)(13, "label"), d(14, 41), a()()(), k()), o & 2) {
        let e = p(2);
        s(7), xt(e.columnLayoutName), Lt(7), s(7), xt(e.reportType), Lt(14);
    }
}

function Ec(o, c) {
    o & 1 && (r(0, "small", 167), d(1, 42), a());
}

function Rc(o, c) {
    o & 1 && (r(0, "small", 167), d(1, 49), a());
}

function Cc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 168)(1, "app-dropdown-editor", 169, 2)(3, "div", 130)(4, "header", 131)(5, "h2"), d(6, 43), a()(), h(7, "p-datePicker", 170, 3), r(9, "footer", 171)(10, "div", 172)(11, "fieldset", 153)(12, "span", 173)(13, "p-radioButton", 174), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationLast7());
        }), a(), r(14, "label", 175), d(15, 44), a()(), r(16, "span", 173)(17, "p-radioButton", 176), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationLast14());
        }), a(), r(18, "label", 177), d(19, 45), a()(), r(20, "span", 173)(21, "p-radioButton", 178), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.creationCustom());
        }), a(), r(22, "label", 179), d(23, 46), a()()(), h(24, "br"), r(25, "div", 180)(26, "button", 181), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.setLast7OnClear());
        }), G(27), d(28, 47), k(), a(), r(29, "button", 182), R("click", function(t) {
            m(e);
            let n = j(2),
                l = p(2);
            return g(l.applyCreationDate(t, n));
        }), G(30), d(31, 48), k(), a()()()()()(), C(32, Rc, 2, 0, "small", 114), a();
    }
    if (o & 2) {
        let e = p(2);
        s(), _("autofocus", !0)("value", e.selectedDateRange), s(6), _("minDate", e.oneTimeMinDate)("inline", !0)("readonlyInput", !0)("disabled", e.repSchedulingDateRangeDisable)("numberOfMonths", 2)("autofocus", !0)("disabledDates", e.invalidDates)("tabIndex", 0), s(6), _("autofocus", !0), s(19), _("ngIf", e.shipmentDateError);
    }
}

function Tc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 183)(1, "app-dropdown-editor", 184, 4)(3, "div", 130)(4, "header", 131)(5, "h2"), d(6, 50), a()(), r(7, "div")(8, "div", 185), h(9, "p-radioButton", 186), r(10, "label", 187), d(11, 51), a()(), r(12, "div", 185), h(13, "p-radioButton", 188), r(14, "label", 189), d(15, 52), a()(), r(16, "div", 185), h(17, "p-radioButton", 190), r(18, "label", 191), d(19, 53), a()(), r(20, "div", 185), h(21, "p-radioButton", 192), r(22, "label", 193), d(23, 54), a()(), r(24, "div", 185), h(25, "p-radioButton", 194), r(26, "label", 195), d(27, 55), a()()(), r(28, "footer", 171)(29, "div", 172)(30, "div", 180)(31, "button", 181), R("click", function() {
            m(e);
            let t = j(2),
                n = p(2);
            return g(n.clearShedule(t));
        }), G(32), d(33, 56), k(), a(), r(34, "button", 182), R("click", function() {
            m(e);
            let t = j(2),
                n = p(2);
            return g(n.recurringSchedule(t));
        }), G(35), d(36, 57), k(), a()()()()()()();
    }
    if (o & 2) {
        let e = p(2);
        s(), _("autofocus", !0)("value", e.selectedPeriod), s(8), Ai("value", e.ReportFrequency.WEEKLY), s(4), Ai("value", e.ReportFrequency.BIWEEKLY), s(4), Ai("value", e.ReportFrequency.MONTHLY), s(4), Ai("value", e.ReportFrequency.QUARTERLY), s(4), Ai("value", e.ReportFrequency.ANNUALLY);
    }
}

function hc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "div", 115)(1, "label", 165)(2, "b"), d(3, 58), a()(), r(4, "div", 112)(5, "div", 196)(6, "app-dropdown-editor", 197, 5)(8, "div", 130)(9, "header", 131)(10, "h2"), d(11, 59), a()(), h(12, "p-datePicker", 198, 6), r(14, "footer", 171)(15, "div", 172)(16, "div", 180)(17, "button", 181), R("click", function() {
            m(e);
            let t = j(7),
                n = p(2);
            return g(n.clearDate(t));
        }), G(18), d(19, 60), k(), a(), r(20, "button", 182), R("click", function() {
            m(e);
            let t = j(7),
                n = p(2);
            return g(n.selectDate(t));
        }), G(21), d(22, 61), k(), a()()()()()()()()();
    }
    if (o & 2) {
        let e = p(2);
        s(6), _("autofocus", !0)("value", e.selectedFirstReportDate), s(6), _("minDate", e.minimumDate)("maxDate", e.maximumDate)("readonlyInput", !0)("inline", !0)("showWeek", !1)("autofocus", !0)("tabIndex", 0);
    }
}

function fc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "tr")(1, "th", 199), d(2, 62), a(), r(3, "th", 200), d(4, 63), a(), r(5, "th", 200), d(6, 64), a(), r(7, "th", 200), d(8, 65), a(), r(9, "th", 200), d(10, 66), a(), r(11, "th", 200), d(12, 67), a()(), r(13, "tr", 201)(14, "th", 199)(15, "input", 202), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.selectAll, t) || (n.selectAll = t), g(t);
        }), R("click", function() {
            m(e);
            let t = p(2);
            return g(t.onSelectAll());
        }), a()(), r(16, "th", 200)(17, "label", 203), S(18, "Filter by Province/State"), a(), r(19, "span", 204), h(20, "i", 205), r(21, "input", 206), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterTerritory, t) || (n.filterTerritory = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(22, "th", 200)(23, "label", 207), S(24, "Filter by City"), a(), r(25, "span", 204), h(26, "i", 205), r(27, "input", 208), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterCity, t) || (n.filterCity = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(28, "th", 200)(29, "label", 209), S(30, "Filter by Postal Code"), a(), r(31, "span", 204), h(32, "i", 205), r(33, "input", 210), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterPostalZipCode, t) || (n.filterPostalZipCode = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(34, "th", 200)(35, "label", 211), S(36, "Filter by Account Name"), a(), r(37, "span", 204), h(38, "i", 205), r(39, "input", 212), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterName, t) || (n.filterName = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()(), r(40, "th", 200)(41, "label", 213), S(42, "Filter by Account Number"), a(), r(43, "span", 204), h(44, "i", 205), r(45, "input", 214), F("ngModelChange", function(t) {
            m(e);
            let n = p(2);
            return L(n.filterAccount, t) || (n.filterAccount = t), g(t);
        }), R("keyup", function() {
            m(e);
            let t = p(2);
            return g(t.onFilterChange());
        }), a()()()();
    }
    if (o & 2) {
        let e = p(2);
        s(15), x("ngModel", e.selectAll), _("ngModelOptions", K(12, Si)), s(6), x("ngModel", e.filterTerritory), _("ngModelOptions", K(13, Si)), s(6), x("ngModel", e.filterCity), _("ngModelOptions", K(14, Si)), s(6), x("ngModel", e.filterPostalZipCode), _("ngModelOptions", K(15, Si)), s(6), x("ngModel", e.filterName), _("ngModelOptions", K(16, Si)), s(6), x("ngModel", e.filterAccount), _("ngModelOptions", K(17, Si));
    }
}

function Sc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "tr", 215)(1, "td", 199)(2, "input", 216), R("click", function() {
            let t = m(e).$implicit,
                n = p(2);
            return g(n.onSelectedCount(t));
        }), a()(), r(3, "td", 200), S(4), a(), r(5, "td", 200), S(6), a(), r(7, "td", 200), S(8), a(), r(9, "td", 200), S(10), a(), r(11, "td", 200), S(12), a()();
    }
    if (o & 2) {
        let e = c.$implicit;
        _("ngClass", ee(7, tc, e.checked)), s(2), _("checked", e.checked), s(2), N(e.territory), s(2), N(e.city), s(2), N(e.postalZipCode), s(2), N(e.name.substring(0, 18)), s(2), N(e.account);
    }
}

function Oc(o, c) {
    o & 1 && (r(0, "h4"), d(1, 68), a());
}

function Pc(o, c) {
    o & 1 && lt(0);
}

function Ac(o, c) {
    if (o & 1 && (r(0, "tr", 219), C(1, Pc, 1, 0, "ng-container", 220), a(), h(2, "tr", 215)), o & 2) {
        let e = c.$implicit;
        p();
        let i = j(3),
            t = p(2);
        _("ngClass", Je(4, ic, t.expandedGroupName.includes(e.groupName), e.checked)), s(), _("ngTemplateOutlet", i)("ngTemplateOutletContext", ee(7, oc, e)), s(), _("ngClass", Je(9, nc, !t.expandedGroupName.includes(e.groupName), t.expandedGroupName.includes(e.groupName)));
    }
}

function Nc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "td", 221)(1, "div")(2, "div", 222)(3, "span", 223)(4, "b"), S(5), a()()(), r(6, "div")(7, "a", 224), R("click", function() {
            let t = m(e).group,
                n = p(3);
            return g(n.expandedGroup(t.name));
        }), Z(8, 69), ae(9, "number"), h(10, "i", 215), q(), a()()(), r(11, "div")(12, "input", 225), R("click", function() {
            let t = m(e).group,
                n = p(3);
            return g(n.onSelectedGroupCount(t));
        }), a()()();
    }
    if (o & 2) {
        let e = c.group,
            i = p(3);
        s(5), N(e.name), s(2), _("pRowToggler", e), s(3), _("ngClass", i.expandedGroupName.includes(e.name) ? "pi pi-chevron-up" : "pi pi-chevron-down"), xt(et(9, 5, e.accounts.length)), Lt(8), s(2), _("checked", e.checked);
    }
}

function Mc(o, c) {
    if (o & 1 && (r(0, "tr", 227)(1, "td", 228), S(2), a()()), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(2).$implicit;
        _("ngClass", ee(3, ac, i === t.accounts.length - 1)), s(2), He(" \xA0\xA0", e.name, " (", e.account, ") ");
    }
}

function Ic(o, c) {
    if (o & 1 && (r(0, "div"), C(1, Mc, 3, 5, "tr", 226), h(2, "td", 215), a()), o & 2) {
        let e = p().$implicit,
            i = p(3);
        s(), _("ngForOf", e.accounts), s(), _("ngClass", ee(2, rc, i.expandedGroupName.includes(e.name)));
    }
}

function yc(o, c) {
    if (o & 1 && C(0, Ic, 3, 4, "div", 85), o & 2) {
        let e = c.$implicit,
            i = p(3);
        _("ngIf", i.expandedGroupName.includes(e.name));
    }
}

function Dc(o, c) {
    if (o & 1 && (r(0, "p-table", 217), C(1, Ac, 3, 12, "ng-template", 145)(2, Nc, 13, 7, "ng-template", null, 7, z)(4, yc, 1, 1, "ng-template", 218), a()), o & 2) {
        let e = p(2);
        _("value", e.groups)("scrollable", !0)("resizableColumns", !0)("autoLayout", !0);
    }
}

function vc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "section", 106), C(1, mc, 2, 0, "h5", 107), r(2, "div")(3, "form", 108)(4, "p", 101), S(5, "Fields marked with a red asterisk ("), h(6, "span", 109), S(7, " ) are required."), a(), C(8, gc, 15, 2, "ng-container", 85), r(9, "div", 110)(10, "label", 111)(11, "b"), d(12, 17), a()(), r(13, "div", 112)(14, "input", 113), R("keypress", function(t) {
            m(e);
            let n = p();
            return g(n.restrictSpecialCharacters(t));
        })("keyup", function(t) {
            m(e);
            let n = p();
            return g(n.checkEmptyTitle(t));
        })("paste", function(t) {
            m(e);
            let n = p();
            return g(n.pasteHandler(t));
        }), a(), C(15, Ec, 2, 0, "small", 114), a()(), r(16, "div", 115)(17, "label", 116)(18, "b"), d(19, 18), a()(), r(20, "div", 112)(21, "div", 103)(22, "div", 117)(23, "p-radioButton", 118), R("click", function(t) {
            m(e);
            let n = p();
            return g(n.validateonetime(t));
        }), a(), r(24, "label", 119), d(25, 19), a()(), r(26, "div", 120)(27, "p-radioButton", 121), R("click", function(t) {
            m(e);
            let n = p();
            return g(n.validaterecurring(t));
        }), a(), r(28, "label", 122), d(29, 20), a()()(), C(30, Cc, 33, 12, "div", 123)(31, Tc, 37, 7, "div", 124), a()(), C(32, hc, 23, 9, "div", 125), r(33, "div", 115)(34, "label", 126)(35, "b"), d(36, 21), a()(), r(37, "div", 112)(38, "div", 127), h(39, "input", 128), r(40, "app-dropdown-editor", 129, 1), R("click", function() {
            m(e);
            let t = p();
            return g(t.getSelectedRows());
        }), r(42, "div", 130)(43, "header", 131)(44, "h2"), d(45, 22), a()(), r(46, "div", 132)(47, "span")(48, "b"), d(49, 23), a()(), r(50, "div", 133)(51, "span", 134), d(52, 24), a(), r(53, "span", 135)(54, "p-inputSwitch", 136), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.onlySelected, t) || (n.onlySelected = t), g(t);
        }), R("ngModelChange", function() {
            m(e);
            let t = p();
            return g(t.activeIndex === 0 ? t.onOnlySelected() : t.onOnlySelectedGroup());
        }), a()()()(), h(55, "br")(56, "br"), r(57, "p-tabs", 137), F("valueChange", function(t) {
            m(e);
            let n = p();
            return L(n.activeIndex, t) || (n.activeIndex = t), g(t);
        }), r(58, "p-tablist")(59, "p-tab", 138), d(60, 25), a(), r(61, "p-tab", 138), d(62, 26), a()(), r(63, "p-tabpanels")(64, "p-tabpanel", 138)(65, "span", 139)(66, "button", 140), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onCancel(t));
        }), d(67, 27), a(), S(68, " \xA0 \xA0 "), r(69, "button", 141), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onDone(t));
        }), d(70, 28), a()(), h(71, "br")(72, "br")(73, "br"), r(74, "ngx-spinner", 142), d(75, 29), a(), r(76, "p-table", 143), ae(77, "filter"), ae(78, "filter"), ae(79, "filter"), ae(80, "filter"), ae(81, "filter"), C(82, fc, 46, 18, "ng-template", 144)(83, Sc, 13, 9, "ng-template", 145), a()(), r(84, "p-tabpanel", 138)(85, "span", 146)(86, "button", 147), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onCancel(t));
        }), d(87, 30), a(), S(88, " \xA0 \xA0 "), r(89, "button", 148), R("click", function() {
            m(e);
            let t = j(41),
                n = p();
            return g(n.onDoneGroup(t));
        }), d(90, 31), a()(), h(91, "br")(92, "br")(93, "br"), r(94, "ngx-spinner", 149), d(95, 32), a(), C(96, Oc, 2, 0, "h4", 85)(97, Dc, 5, 4, "p-table", 150), a()()()()()()()(), r(98, "div", 151)(99, "label", 152)(100, "b"), d(101, 33), a()(), r(102, "div", 112)(103, "div", 153)(104, "span", 154), h(105, "p-radioButton", 155), r(106, "label", 156), d(107, 34), a()(), r(108, "span", 154), h(109, "p-radioButton", 157), r(110, "label", 158), d(111, 35), a()(), r(112, "span", 154), h(113, "p-radioButton", 159), r(114, "label", 160), d(115, 36), a()()()()(), h(116, "hr", 161), r(117, "app-optional-filter-exception", 162), R("updatePackageStatus", function(t) {
            m(e);
            let n = p();
            return g(n.updatePackageStatus(t));
        })("updateCheckedExceptionCategory", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedExceptionCategory(t));
        })("updateCheckedServicePriority", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedServicePriority(t));
        })("updateCheckedServiceTimeOfDelivery", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedServiceTimeOfDelivery(t));
        })("updateCheckedServiceDomestic", function(t) {
            m(e);
            let n = p();
            return g(n.updateCheckedServiceDomestic(t));
        })("updateShipperDetailsEmitter", function(t) {
            m(e);
            let n = p();
            return g(n.updateShipperDetails(t));
        })("updateReceiverDetailsEmitter", function(t) {
            m(e);
            let n = p();
            return g(n.updateReceiverDetails(t));
        }), a()()()();
    }
    if (o & 2) {
        let e, i = p();
        s(), _("ngIf", !i.createMode), s(2), _("formGroup", i.userForm), s(), _("innerHTML", i.formInstructions, Nt), s(4), _("ngIf", i.createMode), s(7), _("ngIf", i.duplicateReportTitleError), s(15), _("ngIf", i.reportSchedulingType === i.RecurringType.ONETIME), s(), _("ngIf", i.reportSchedulingType === i.RecurringType.RECURRING), s(), _("ngIf", i.reportSchedulingType === i.RecurringType.RECURRING), s(6), _("ngClass", ee(57, ec, !((e = i.userForm.get("reportAccounts")) != null && e.valid))), s(), _("value", i.user.userData.view.signature.selectedAccountReportingList), s(), _("label", i.accounts)("value", i.allAccountsSelected)("autofocus", !0), s(9), xt(i.activeIndex === 0 ? i.selectedAccounts : i.selectedGroups), Lt(49), s(5), x("ngModel", i.onlySelected), _("ngModelOptions", K(59, Si))("autofocus", !0)("tabIndex", 0), s(3), x("value", i.activeIndex), s(2), _("value", 0), s(2), _("value", 1), s(3), _("value", 0), s(10), _("fullScreen", !1), s(2), _("value", tt(81, 53, tt(80, 49, tt(79, 45, tt(78, 41, tt(77, 37, i.displayAccounts, "account", i.filterAccount), "name", i.filterName), "city", i.filterCity), "territory", i.filterTerritory), "postalZipCode", i.filterPostalZipCode))("scrollable", !0), s(8), _("value", 1), s(5), _("disabled", !i.groups.length), s(5), _("fullScreen", !1), s(2), _("ngIf", !i.groups.length), s(), _("ngIf", i.groups.length), s(20), _("reportType", i.userForm.controls.reportType.value)("packageStatus", i.userForm.controls.packageStatus.value)("exceptionCategories", i.userForm.controls.exceptionCategory.value)("priorityCategory", i.userForm.controls.priorityCategory.value)("timeOfDeliveryCategory", i.userForm.controls.timeOfDeliveryCategory.value)("domesticCategory", i.userForm.controls.domesticCategory.value)("events", i.optionalFilterEvent.asObservable());
    }
}

function bc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "section", 106)(1, "app-finalize-columns-exception", 229), R("sendFinalColumnToParent", function(t) {
            m(e);
            let n = p();
            return g(n.setFinalColumn(t));
        }), a()();
    }
    if (o & 2) {
        let e = p();
        s(), _("reportType", e.userForm.controls.reportType.value)("selectedFinalColumn", e.finalColumnData)("templateId", e.templateId)("savedColumnLayoutActiveData", e.savedColumnLayoutActiveData)("editMode", e.editMode)("outputFormat", e.userForm.controls.reportFormat.value)("redirectToFinalColumnList", e.redirectToFinalColumnList);
    }
}

function xc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "section", 106)(1, "app-review-detail-exception", 230), R("changeTab", function(t) {
            m(e);
            let n = p();
            return g(n.changeTab(t));
        }), a()();
    }
    if (o & 2) {
        let e = p();
        s(), _("finalColumnData", e.finalColumnData)("reportDetails", e.userForm)("selectedAccounts", e.allAccountsSelected)("dateRange", e.selectedDateRange);
    }
}

function Lc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 231), R("click", function() {
            m(e);
            let t = p();
            return g(t.backToReports());
        }), r(1, "span"), d(2, 70), a()();
    }
}

function Fc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 231), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepBack());
        }), r(1, "span"), d(2, 71), a()();
    }
}

function wc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 232), R("click", function() {
            m(e);
            let t = p();
            return g(t.createReportFromSavedColumnLayout());
        }), r(1, "span"), d(2, 72), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", e.userForm.invalid);
    }
}

function Gc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 232), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepNext());
        }), r(1, "span"), d(2, 73), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", !(e.active == 1 && e.hideBackButton) && e.userForm.invalid);
    }
}

function kc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 232), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepNext());
        }), r(1, "span"), d(2, 74), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", e.userForm.invalid);
    }
}

function $c(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 232), R("click", function() {
            m(e);
            let t = p();
            return g(t.stepNext());
        }), r(1, "span"), d(2, 75), a()();
    }
    if (o & 2) {
        let e = p();
        _("disabled", e.userForm.invalid);
    }
}

function Vc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 233)(1, "button", 234), R("click", function() {
            m(e);
            let t = p();
            return g(t.backToReports());
        }), a()();
    }
    if (o & 2) {
        let e = p();
        s(), X("aria-label", e.btnGoToReportsAriaLbl);
    }
}

function Bc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 233)(1, "button", 235), R("click", function() {
            m(e);
            let t = p();
            return g(t.backToReports());
        }), a()();
    }
}

function Xc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 236)(1, "button", 237), R("click", function() {
            m(e);
            let t = p();
            return g(t.backtoReportNo());
        }), a(), r(2, "button", 238), R("click", function() {
            m(e);
            let t = p();
            return g(t.isFormUnsavedModal = !1);
        }), a()();
    }
}

function Uc(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "p-footer", 236)(1, "button", 239), R("click", function() {
            m(e);
            let t = p();
            return g(t.displayCapacityModal = !1);
        }), a()();
    }
}
var An = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f, M, D, b) {
            this.localeService = e, this.fb = i, this.user = t, this.apiService = n, this.authService = l, this.reportingDashboardService = u, this.spinner = T, this.router = f, this.activatedRoute = M, this.cdr = D, this.datePipe = b, this.ReportFrequency = Fe, this.RecurringType = V, this.unsubscribe$ = new Pt(), this.initialDate = [new Date(Date.now() - 7 * 24 * 60 * 60 * 1e3), new Date()], this.currentDate = new Date(), this.locale = "en", this.repSchedulingDateRangeDisable = !0, this.selectedDateRange = "Last 7 days", this.selectedPeriod = "Select", this.reportSchedulingType = V.ONETIME, this.recurringPeriod = "", this.reportingPeriod = [{
                name: "Weekly",
                code: mt.WEEKLY
            }, {
                name: "Bi-Weekly",
                code: mt.BIWEEKLY
            }, {
                name: "Monthly",
                code: mt.MONTHLY
            }, {
                name: "Quarterly",
                code: mt.QUARTERLY
            }, {
                name: "Annually",
                code: mt.ANNUALLY
            }], this.reportAccounts = [], this.summaryText = " Generated Reports are at Capacity.", this.detailText = " You have reached the maximum number of reports created. Please delete a report to free up space.", this.btnGoToReportsAriaLbl = "Close dialog and go to reports", this.active = 0, this.oneTimeMinDate = new Date(), this.selectedFirstReportDate = It, this.minimumDate = new Date(this.currentDate.setDate(this.currentDate.getDate() + 1)), this.displayCapacityModal = !1, this.displayGenerateModal = !1, this.displayUpdateModal = !1, this.finalColumnData = {
                title: "",
                columnList: []
            }, this.templateId = "", this.columnLayoutName = "", this.reportType = "", this.selectedFormat = "csv", this.editMode = !1, this.createMode = !1, this.redirectToFinalColumnList = !1, this.hideBackButton = !1, this.createModeHeader = "Using a saved column layout, add the necessary filters to generate a new report. Fields marked with a red asterisk (<span class='required'></span> ) are required.", this.shipmentDateError = !1, this.formInstructions = "Fields marked with a red asterisk (<span class='required'></span> ) are required.", this.totalReports = 0, this.sheduleReportId = null, this.reportDataArray = [], this.optionalFilterEvent = new Pt(), this.userForm = this.fb.group({
                reportTitle: ["", _e.required],
                reportFormat: ["csv", _e.required],
                reportType: [this.authService.isReportingManageSchedulesAuthorised() && !this.authService.isReportingCreateReportAuthorised() ? V.RECURRING : V.ONETIME, _e.required],
                reportSchedulingDateRange: [this.initialDate, _e.required],
                reportSchedulingDays: ["last7"],
                reportSchedulingDaysValidator: [""],
                recurringShedule: [""],
                recurringSheduleValidator: [""],
                firstReportDate: [""],
                firstReportDateValidator: [""],
                reportAccounts: [this.user.userData.view.signature.selectedAccountReportingList ? .length, _e.required],
                exceptionCategory: new ge([]),
                priorityCategory: new ge([]),
                timeOfDeliveryCategory: new ge([]),
                domesticCategory: new ge([]),
                packageStatus: new ge([]),
                shipperDetails: new ge([]),
                receiverDetails: new ge([]),
                optionalFilter: this.fb.group({})
            }), this.filterAccount = "", this.filterName = "", this.filterCity = "", this.filterTerritory = "", this.filterPostalZipCode = "", this.displayAccounts = [], this.backupAccounts = [], this.groups = [], this.localGroupsByOrg = [], this.backupGroups = [], this.expandedGroupName = [], this.selectAll = !1, this.onlySelected = !1, this.allAccountsSelected = "", this.accounts = "Accounts", this.selectedAccounts = 0, this.selectedGroups = 0, this.activeIndex = 0, this.isFormUnsavedModal = !1, this.isTrackingSummaryreportUpdated = !1, this.isNoClicked = !1, this.editedFileType = "", this.selectedOrganizationId = "", this.selectedOrganizationName = "", this.duplicateReportTitleError = !1, this.locale = this.localeService.getLocale();
            let $ = this.router.getCurrentNavigation() ? .extras ? .state;
            $ && $.templateId && $.title && $.type && (this.savedColumnLayoutActiveData = $, this.templateId = $.templateId, this.columnLayoutName = $.title, this.reportType = $.type, this.editedFileType = $.outputFormat), this.activatedRoute.queryParamMap.pipe(Oi(this.unsubscribe$)).subscribe(y => {
                let U = y.get("mode");
                U === Mt.EDIT && (this.editMode = !0, this.active = 1, this.redirectToFinalColumnList = !0), U === Mt.CREATE && (this.createMode = !0);
            }), this.selectedOrganizationId = this.user.userData.view.signature.selectedOrganizationId, this.selectedOrganizationName = this.user.userData.view.signature.selectedOrganizationName, this.user.userData.view.signature.selectedAccountReportingList = [], this.user.userData.accounts.map(y => y.checked = !0), this.displayAccounts = this.user.userData.accounts, this.backupAccounts = this.displayAccounts, this.localGroupsByOrg = t.userData.localAccountGroups.filter(y => y.organizationId === this.user.userData.view.signature.selectedOrganizationId), this.groups = this.localGroupsByOrg, this.backupGroups = this.localGroupsByOrg, this.sortObjectArray(this.displayAccounts, "name"), this.sortObjectArray(this.groups, "name"), this.items = [{
                label: "Set Filters"
            }, {
                label: " "
            }, {
                label: " "
            }];
        }
        ngOnInit() {
            this.maximumDate = new Date(), this.maximumDate.setFullYear(this.maximumDate.getFullYear() + 1), this.user.userData.role === "1" && (this.selectedOrganizationId === "" || this.selectedOrganizationId === "Purolator" || this.selectedOrganizationName === "Purolator") ? (this.displayAccounts = [], this.user.userData.accounts = []) : (this.displayAccounts = this.user.userData.accounts, this.user.userData.view.signature.selectedAccountReportingList = this.displayAccounts.slice()), this.getSelectedRows(), this.invalidDates = Rr(new Date(1900, 0, 1), zt.launchDate), this.setTotalReports(), this.redirectToFinalColumnList || this.activatedRoute.params.subscribe(e => {
                this.sheduleReportId = e.reportId, this.active = 0, this.sheduleReportId ? this.updatesheduledReportForm() : this.setTotalReports(), this.updateReportTypeDisabledState();
            }), this.checkAuthorization();
        }
        ngAfterViewInit() {
            (this.createMode || this.editMode) && this.userForm.controls.reportFormat.setValue(this.editedFileType), setTimeout(() => {
                this.activeIndex = 0, this.cdr.detectChanges();
            }, 0);
        }
        checkAuthorization() {
            this.authService.isReportingCreateReportAuthorised() || this.authService.isReportingManageSchedulesAuthorised() || this.router.navigate(["/reporting-dashboard"]), this.updateReportTypeDisabledState();
        }
        updateReportTypeDisabledState() {
            let e = this.userForm.get("reportType");
            if (e) {
                let i = this.sheduleReportId || !this.authService.isReportingCreateReportAuthorised(),
                    t = this.sheduleReportId || !this.authService.isReportingManageSchedulesAuthorised();
                i && t ? e.disable() : e.enable();
            }
        }
        changeTab(e) {
            this.active = e.tabIndex, this.tabLabelHandler(e.tabIndex), this.templateId = e.templateId;
        }
        ngOnDestroy() {
            this.displayGenerateModal = !1, this.displayUpdateModal = !1, this.unsubscribe$.next(), this.unsubscribe$.complete(), this.createReportSubscription && this.createReportSubscription.unsubscribe();
        }
        backToReports() {
            let e = this.userForm.controls.reportType.value ? .toLowerCase();
            this.createMode || this.editMode ? this.router.navigate(["/reporting-dashboard/saved-column-layouts"]) : e === V.ONETIME ? this.router.navigate(["/reporting-dashboard/recently-generated"]) : e === V.RECURRING ? this.router.navigate(["/reporting-dashboard/scheduled"]) : this.router.navigate(["/reporting-dashboard/recently-generated"]);
        }
        stepBack() {
            this.editMode ? this.router.navigate(["/reporting-dashboard/saved-column-layouts"]) : (this.active = this.active - 1, this.tabLabelHandler(this.active));
        }
        tabLabelHandler(e) {
            let i = [{}, {}, {}],
                t = ["Set Filters", "Finalize Columns", "Review Details"];
            i[e] = {
                label: t[e]
            }, this.items = i;
        }
        updatesheduledReportForm() {
            let e = {
                userId: this.user.userData.id,
                reportId: this.sheduleReportId
            };
            this.sheduleReportId && (this.reportingDashboardService.reportPayLoad.scheduleId = this.sheduleReportId, this.apiService.getSheduledReportById(e).subscribe(i => {
                this.editSchedulereportData = i.payload, this.reportingDashboardService.setColumnLayout(this.editSchedulereportData.columnLayout), this.userForm.controls.reportTitle.setValue(this.editSchedulereportData.title), this.userForm.controls.reportFormat.setValue(this.editSchedulereportData.fileType), this.editSchedulereportData.reportType.recurringType === le.SCHEDULED && (this.userForm.controls.reportType.setValue(V.RECURRING), this.recurringPeriod = this.editSchedulereportData.frequency, this.recurringSchedule(new Bt()), this.userForm.controls.firstReportDate.setValue(this.editSchedulereportData.firstGenerationDate), this.reportingDashboardService.reportPayLoad.generatingDate = this.editSchedulereportData.generatingDate, this.selectDate(new Bt()), this.addRemoveValidation(V.RECURRING)), this.user.userData.view.signature.selectedAccountReportingList = this.editSchedulereportData.accountDetails.accountNumbers.map(n => ({
                    account: n
                })), this.selectAccountsSelected();
                let t = new Set(this.editSchedulereportData.accountDetails.accountNumbers);
                if (this.displayAccounts.forEach(n => {
                        t.has(n.account) && (n.checked = !n.checked);
                    }), this.showSelectedCount(), this.getSelectedRows(), this.setTotalReports(), this.editSchedulereportData ? .exportParams) {
                    let n = {
                        exportParams: this.editSchedulereportData.exportParams,
                        shipmentExpectedDeliveryDate: this.editSchedulereportData.shipment_expected_delivery_date,
                        shipmentPins: this.editSchedulereportData.exportParams.shipmentpin
                    };
                    this.setOptionalFiltersOnEdit(n);
                }
            }));
        }
        setTotalReports() {
            this.userForm.controls.reportType.value ? .toLocaleLowerCase() === V.ONETIME ? this.apiService.generatedReportsGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                let i = e.payload;
                this.reportDataArray = i, this.totalReports = i.length;
            }) : this.apiService.sheduleReportGet({
                userId: this.user.userData.id
            }).subscribe(e => {
                let i = e.payload;
                this.reportDataArray = i, this.totalReports = i.length;
            });
        }
        restrictSpecialCharacters(e) {
            let i = /[^~|*<>^{}\\/]/g,
                t = String.fromCharCode(e.charCode);
            i.test(t) || e.preventDefault();
        }
        checkEmptyTitle(e) {
            let i = this.userForm.controls.reportTitle.value,
                t = !0;
            return i && i.trim() ? (this.userForm.controls.reportTitle.setValue(i), t = !1) : (this.userForm.controls.reportTitle.setValue(null), t = !0), t;
        }
        pasteHandler(e) {
            e.preventDefault();
            let t = (e.clipboardData || window.Clipboard).getData("text") + " ";
            if (!/[~|*<>^{}\\/]/g.test(t)) {
                let l = e.target,
                    u = l.value.substring(0, l.selectionStart || 0),
                    T = l.value.substring(l.selectionEnd || 0),
                    f = u + t + T;
                f && f.trim().length >= 30 && (f = f.substring(0, 30)), l.value = f.trimEnd();
                let M = u.length + t.length;
                l.selectionStart = M, l.selectionEnd = M, this.userForm.controls.reportTitle.setValue(f);
            }
        }
        duplicateTitleChecker() {
            let e = !1,
                i = this.reportDataArray;
            return this.editSchedulereportData && (i = i.filter(t => t.title ? .trim() != this.editSchedulereportData ? .title ? .trim())), e = i.some(t => t.title ? .trim().toLocaleUpperCase() == this.userForm.value.reportTitle ? .trim().toLocaleUpperCase()), e ? (this.duplicateReportTitleError = !0, !0) : (this.duplicateReportTitleError = !1, !1);
        }
        creationLast7() {
            let e = new Date(Date.now() - 6048e5),
                i = new Date();
            this.userForm.controls.reportSchedulingDateRange.setValue([e, i]), this.repSchedulingDateRangeDisable = !0;
        }
        creationLast14() {
            let e = new Date(Date.now() - 12096e5),
                i = new Date();
            this.userForm.controls.reportSchedulingDateRange.setValue([e, i]), this.repSchedulingDateRangeDisable = !0;
        }
        creationCustom() {
            this.repSchedulingDateRangeDisable = !1, this.oneTimeMinDate = new Date(), this.oneTimeMinDate.setMonth(this.oneTimeMinDate.getMonth() - 1), this.oneTimeMinDate.setFullYear(this.oneTimeMinDate.getFullYear() - 1);
        }
        applyCreationDate(e, i) {
            let t = this.userForm.controls.reportSchedulingDateRange.value,
                n = this.userForm.controls.reportSchedulingDays.value;
            if (["last7", "last14"].includes(n || "")) n === "last7" ? this.selectedDateRange = "Last 7 days" : n === "last14" && (this.selectedDateRange = "Last 14 Days"), this.shipmentDateError = !1;
            else if (t != null) {
                let l = t.toString().split(",");
                l[1] ? (this.selectedDateRange = Ue(new Date(l[0])) + " - " + Ue(new Date(l[1])), new Date(l[0]) > new Date(l[1]) ? (this.shipmentDateError = !0, this.userForm.controls.reportSchedulingDateRange.setValue(null)) : this.shipmentDateError = !1) : (this.selectedDateRange = Ue(new Date(l[0])) + " - " + Ue(new Date(l[0])), this.userForm.controls.reportSchedulingDateRange.setValue([new Date(l[0]), new Date(l[0])]));
            }
            this.userForm.controls.reportSchedulingDaysValidator.setValue(n), i.isExpanded$.next(!1);
        }
        setLast7OnClear() {
            this.creationLast7(), this.userForm.controls.reportSchedulingDays.setValue("last7"), this.selectedDateRange = "Last 7 days", this.userForm.controls.reportSchedulingDaysValidator.setValue("last7");
        }
        clearShedule(e) {
            this.selectedPeriod = "Select", e.isExpanded$.next(!1), this.userForm.controls.recurringShedule.setValue(null), this.clearDate(e);
        }
        clearDate(e) {
            this.selectedFirstReportDate = It, e.isExpanded$.next(!1), this.userForm.controls.firstReportDate.setValue(null);
        }
        validateonetime(e) {
            if (this.sheduleReportId || !this.authService.isReportingCreateReportAuthorised()) {
                e.preventDefault(), e.stopPropagation();
                return;
            }
            this.sheduleReportId || (this.selectedPeriod = "Select", this.selectedFirstReportDate = It, this.addRemoveValidation(V.ONETIME)), this.setTotalReports();
        }
        selectDate(e) {
            let i = this.userForm.controls.firstReportDate.value;
            if (i) {
                let t = i.toString().split(",");
                this.selectedFirstReportDate = Ue(new Date(t[0]));
            } else this.selectedFirstReportDate = It;
            this.userForm.controls.firstReportDateValidator.setValue(i), e.isExpanded$.next(!1);
        }
        recurringSchedule(e) {
            let i = this.userForm.controls.recurringShedule.value || this.recurringPeriod;
            switch (this.recurringPeriod = i, i) {
                case Fe.WEEKLY:
                    this.selectedPeriod = "Weekly";
                    break;
                case Fe.BIWEEKLY:
                    this.selectedPeriod = "Bi-Weekly";
                    break;
                case Fe.MONTHLY:
                    this.selectedPeriod = "Monthly";
                    break;
                case Fe.QUARTERLY:
                    this.selectedPeriod = "Quarterly";
                    break;
                case Fe.ANNUALLY:
                    this.selectedPeriod = "Annually";
                    break;
            }
            this.userForm.controls.recurringSheduleValidator.setValue(this.selectedPeriod), e ? .isExpanded$ ? .next(!1), this.validaterecurring();
        }
        validaterecurring(e) {
            if (this.sheduleReportId || !this.authService.isReportingManageSchedulesAuthorised()) {
                e && (e.preventDefault ? .(), e.stopPropagation ? .());
                return;
            }
            this.sheduleReportId || this.addRemoveValidation(V.RECURRING), this.shipmentDateError = !1, this.setTotalReports();
        }
        addRemoveValidation(e) {
            e === V.ONETIME ? (this.userForm.controls.reportSchedulingDateRange.setValidators([_e.required]), this.userForm.controls.reportSchedulingDaysValidator.setValidators([_e.required]), this.userForm.controls.recurringSheduleValidator.setValidators(null), this.userForm.controls.recurringSheduleValidator.setValue(null), this.userForm.controls.firstReportDateValidator.setValidators(null), this.userForm.controls.firstReportDateValidator.setValue(null), this.userForm.controls.recurringShedule.setValidators(null), this.userForm.controls.recurringShedule.setValue(null), this.userForm.controls.firstReportDate.setValidators(null), this.userForm.controls.firstReportDate.setValue(null), this.recurringPeriod = "", this.setLast7OnClear(), this.reportSchedulingType = V.ONETIME) : e === V.RECURRING && (this.userForm.controls.recurringShedule.setValidators([_e.required]), this.userForm.controls.firstReportDate.setValidators([_e.required]), this.userForm.controls.recurringSheduleValidator.setValidators([_e.required]), this.userForm.controls.firstReportDateValidator.setValidators([_e.required]), this.userForm.controls.reportSchedulingDaysValidator.setValidators(null), this.userForm.controls.reportSchedulingDaysValidator.setValue(null), this.userForm.controls.reportSchedulingDateRange.setValidators(null), this.userForm.controls.reportSchedulingDateRange.setValue(null), this.userForm.controls.reportSchedulingDays.setValue(null), this.selectedDateRange = null, this.reportSchedulingType = V.RECURRING), this.userForm.controls.recurringSheduleValidator.updateValueAndValidity(), this.userForm.controls.firstReportDateValidator.updateValueAndValidity(), this.userForm.controls.reportSchedulingDaysValidator.updateValueAndValidity(), this.userForm.controls.reportSchedulingDateRange.updateValueAndValidity(), this.userForm.controls.recurringShedule.updateValueAndValidity(), this.userForm.controls.firstReportDate.updateValueAndValidity();
        }
        updateCheckedExceptionCategory(e) {
            this.userForm.controls.exceptionCategory.setValue(e), this.userForm.controls.exceptionCategory.markAsDirty();
        }
        updateCheckedServicePriority(e) {
            this.userForm.controls.priorityCategory.setValue(e);
        }
        updateCheckedServiceTimeOfDelivery(e) {
            this.userForm.controls.timeOfDeliveryCategory.setValue(e);
        }
        updateCheckedServiceDomestic(e) {
            this.userForm.controls.domesticCategory.setValue(e);
        }
        updatePackageStatus(e) {
            this.userForm.controls.packageStatus.setValue(e);
        }
        updateShipperDetails(e) {
            this.userForm.controls.shipperDetails.setValue(e);
        }
        updateReceiverDetails(e) {
            this.userForm.controls.receiverDetails.setValue(e);
        }
        stepNext() {
            if (this.redirectToFinalColumnList = !1, this.active == 0) {
                let e = this.duplicateTitleChecker();
                if (this.checkEmptyTitle(null)) return;
                if (!e) {
                    if (this.active = 1, this.reportingDashboardService.reportPayLoad.userId = this.user.userData.id, this.reportingDashboardService.reportPayLoad.title = this.userForm.value.reportTitle, this.reportingDashboardService.reportPayLoad.reportType.reportName = ne.EXCEPTION, this.reportingDashboardService.reportPayLoad.creationDate = this.datePipe.transform(new Date(), ce), this.reportingDashboardService.reportPayLoad.lang = this.locale, this.reportingDashboardService.reportPayLoad.fileType = this.userForm.value.reportFormat, this.userForm.controls.reportType.value ? .toLowerCase() === V.ONETIME) {
                        this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.ADHOC, this.reportingDashboardService.reportPayLoad.email = this.user.userData.email;
                        let b = this.userForm.value.reportSchedulingDateRange;
                        b && (this.reportingDashboardService.reportPayLoad.shipmentDateStart = this.datePipe.transform(b[0], ce), this.reportingDashboardService.reportPayLoad.shipmentDateEnd = this.datePipe.transform(b[1], ce));
                    } else this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.SCHEDULED, this.reportingDashboardService.reportPayLoad.email = this.user.userData.email, this.reportingDashboardService.reportPayLoad.frequency = this.userForm.value.recurringShedule, this.sheduleReportId || (this.reportingDashboardService.reportPayLoad.generatingDate = this.datePipe.transform(this.userForm.value.firstReportDate, ce));
                    this.reportingDashboardService.reportPayLoad.accountDetails = this.buildAccountList(), this.reportingDashboardService.reportPayLoad.exportParams.shipmentpin = this.user.userData.view.signature.pins;
                    let n = this.userForm.value.packageStatus;
                    this.setOptionalFilters(n, Re.PACKAGE_STATUS_CODE);
                    let l = this.userForm.value.exceptionCategory;
                    this.setOptionalFilters(l, E.PACKAGESTATUSSUBCODE);
                    let u = this.userForm.value.timeOfDeliveryCategory;
                    this.setOptionalFilters(u, E.DESCRIPTION);
                    let T = this.userForm.value.priorityCategory;
                    this.setOptionalFilters(T, E.PRODUCTCODE);
                    let f = this.userForm.value.domesticCategory;
                    this.setOptionalFilters(f, E.RECEIVERCOUNTRYCODE);
                    let M = this.userForm.value.shipperDetails;
                    this.setShipperDetails(M);
                    let D = this.userForm.value.receiverDetails;
                    this.setReceiverDetails(D);
                }
            } else if (this.active == 1) {
                if (this.finalColumnData.columnList.length > 0) {
                    let e = this.finalColumnData.columnList.map(i => i.field);
                    this.reportingDashboardService.reportPayLoad.columnLayout.columnNames = e;
                }
                this.active = 2;
            } else if (this.active == 2) {
                if (this.totalReports >= 100) {
                    this.setCapacityModalDetails(), this.displayCapacityModal = !0;
                    return;
                }
                this.sheduleReportId ? this.updateSheduleReport() : this.createReport();
            }
            this.tabLabelHandler(this.active), this.reportData = this.userForm.value;
        }
        createReport() {
            this.spinner.show("reportProcessingSpinner"), this.userForm.controls.reportType.value ? .toLocaleLowerCase() === V.ONETIME ? this.createReportSubscription = this.apiService.createReport(this.reportingDashboardService.reportPayLoad).subscribe({
                next: e => {
                    this.spinner.hide("reportProcessingSpinner"), this.resetUserForm(), this.displayGenerateModal = !0;
                },
                error: e => {
                    this.spinner.hide("reportProcessingSpinner");
                }
            }) : this.createReportSubscription = this.apiService.sheduleReportPost(this.reportingDashboardService.reportPayLoad).subscribe({
                next: e => {
                    this.spinner.hide("reportProcessingSpinner"), this.resetUserForm(), this.editSchedulereportData ? this.displayUpdateModal = !0 : this.displayGenerateModal = !0;
                },
                error: e => {
                    this.spinner.hide("reportProcessingSpinner");
                }
            });
        }
        setFinalColumn(e) {
            this.finalColumnData = e;
        }
        selectAccountsSelected() {
            this.displayAccounts.forEach(e => {
                this.user.userData.view.signature.selectedAccountReportingList.forEach(i => {
                    i.account === e.account && (e.checked = !0);
                });
            }), this.allAccountsSelected = this.user.userData.view.signature.accountSummaryReporting;
        }
        expandedGroup(e) {
            this.expandedGroupName.includes(e) ? this.expandedGroupName = this.expandedGroupName.filter(i => i !== e) : this.expandedGroupName.push(e);
        }
        onSelectedCount(e) {
            this.displayAccounts.forEach(i => {
                i.account === e.account && (i.checked = !i.checked);
            }), this.showSelectedCount();
        }
        showSelectedCount() {
            this.selectedAccounts = this.displayAccounts.filter(e => e.checked).length, this.onlySelected && this.onOnlySelected();
        }
        onSelectAll() {
            this.selectAll ? (this.displayAccounts || []).forEach(e => {
                (!this.filterTerritory || e.territory.toLowerCase().includes(this.filterTerritory.toLowerCase())) && (!this.filterCity || e.city.toLowerCase().includes(this.filterCity.toLowerCase())) && (!this.filterPostalZipCode || e.postalZipCode.toLowerCase().includes(this.filterPostalZipCode.toLowerCase())) && (!this.filterName || e.name.toLowerCase().includes(this.filterName.toLowerCase())) && (!this.filterAccount || e.account.toLowerCase().includes(this.filterAccount.toLowerCase())) && (e.checked = !1);
            }) : (this.displayAccounts || []).forEach(e => {
                (!this.filterTerritory || e.territory.toLowerCase().includes(this.filterTerritory.toLowerCase())) && (!this.filterCity || e.city.toLowerCase().includes(this.filterCity.toLowerCase())) && (!this.filterPostalZipCode || e.postalZipCode.toLowerCase().includes(this.filterPostalZipCode.toLowerCase())) && (!this.filterName || e.name.toLowerCase().includes(this.filterName.toLowerCase())) && (!this.filterAccount || e.account.toLowerCase().includes(this.filterAccount.toLowerCase())) && (e.checked = !0);
            }), this.showSelectedCount();
        }
        getSelectedRows() {
            this.reloadDisplayAccounts(), oi.setAccountSummaryForReporting(this.user.userData.view.signature, this.displayAccounts.length), this.allAccountsSelected = this.user.userData.view.signature.accountSummaryReporting;
            let e = this.displayAccounts.filter(i => i.checked);
            this.backupAccounts = this.displayAccounts, this.selectAll = e.length === this.displayAccounts.length, (this.selectAll || !this.user.userData.view.signature.selectedAccountReportingList.length) && (this.allAccountsSelected = "" + e.length + " of " + this.displayAccounts.length + " Selected", this.selectAll = !0), this.selectAll && (this.displayAccounts.forEach(i => i.checked = !1), this.groups.forEach(i => i.checked = !1), this.selectAll = !1, this.selectedAccounts = 0, this.selectedGroups = 0, this.clearAccountFilter()), this.showSelectedCount();
        }
        onOnlySelectedGroup() {
            this.onlySelected ? this.groups = this.groups.filter(e => e.checked) : this.groups = this.backupGroups;
        }
        onSelectedGroupCount(e) {
            this.groups.forEach(i => {
                i.name === e.name && (i.checked = !i.checked, i.accounts.forEach(t => {
                    this.displayAccounts.forEach(n => {
                        n.account === t.account && (n.checked = i.checked);
                    });
                }));
            }), this.showSelectedGroupCount();
        }
        showSelectedGroupCount() {
            this.selectedGroups = this.groups.filter(e => e.checked).length, this.onlySelected && this.onOnlySelectedGroup();
        }
        reloadDisplayAccounts() {
            this.displayAccounts = this.user.userData.accounts, this.selectAccountsSelected();
            let e = this.displayAccounts.filter(i => i.checked);
            e.length === this.user.userData.accounts.length && (this.allAccountsSelected = "" + e.length + " of " + this.displayAccounts.length + " Selected"), this.displayAccounts.forEach(i => {
                e.forEach(t => {
                    t.account === i.account && (i.checked = !0);
                });
            });
        }
        onOnlySelected() {
            this.onlySelected ? (this.clearAccountFilter(), this.displayAccounts = this.displayAccounts.filter(e => e.checked)) : this.reloadDisplayAccounts();
        }
        clearAccountFilter() {
            this.filterAccount = "", this.filterName = "", this.filterCity = "", this.filterTerritory = "", this.filterPostalZipCode = "";
        }
        selectGroupsSelected() {
            this.groups.forEach(i => {
                this.user.userData.view.signature.selectedGroupReportingList.forEach(t => {
                    t.name === i.name && (i.checked = !0);
                });
            }), this.groups.filter(i => i.checked).forEach(i => {
                let t = i.accounts.map(n => n.account);
                for (let n = 0; n < t.length; n++)
                    for (let l = 0; l < this.displayAccounts.length; l++) this.displayAccounts[l].account === t[n] && (this.displayAccounts[l].checked = !0);
            });
        }
        onDoneGroup(e) {
            let i = this.groups.filter(t => t.checked);
            i.forEach(t => {
                let n = t.accounts.map(l => l.account);
                for (let l = 0; l < n.length; l++)
                    for (let u = 0; u < this.displayAccounts.length; u++) this.displayAccounts[u].account === n[l] && (this.displayAccounts[u].checked = !0);
                delete t.checked;
            }), this.user.userData.view.signature.selectedGroupReportingList = i, this.selectGroupsSelected(), this.onDone(e);
        }
        onFilterChange() {
            this.selectAll = !1;
        }
        onDone(e) {
            let i = this.displayAccounts.filter(t => t.checked);
            this.displayAccounts = this.user.userData.accounts, this.onlySelected = !1, this.displayAccounts.forEach(t => {
                i.forEach(n => {
                    n.account === t.account && (t.checked = !0);
                });
            }), i.forEach(t => {
                delete t.checked;
            }), this.user.userData.view.signature.selectedAccountReportingList = i, oi.setAccountSummaryForReporting(this.user.userData.view.signature, this.displayAccounts.length), this.displayAccounts.length === this.user.userData.view.signature.selectedAccountReportingList.length && (this.user.userData.view.signature.accountSummaryReporting = "" + i.length + " of " + this.displayAccounts.length + " Selected", (this.displayAccounts || []).forEach(t => t.checked = !0), this.selectAll = !0), this.selectAccountsSelected(), this.onCancel(e);
        }
        onCancel(e) {
            e.isExpanded$.next(!1);
        }
        sortObjectArray(e, i) {
            e.sort((t, n) => {
                let l = t[i].toLowerCase(),
                    u = n[i].toLowerCase();
                return l < u ? -1 : l > u ? 1 : 0;
            });
        }
        buildAccountList() {
            let e = [],
                i = [];
            for (let t = 0; t < this.user.userData.view.signature.selectedGroupReportingList.length; t++) i.push(this.user.userData.view.signature.selectedGroupReportingList[t].name);
            if (this.user.userData.view.signature.selectedAccountReportingList.length === 0)
                for (let t = 0; t < this.user.userData.accounts.length; t++) e.push(this.user.userData.accounts[t].account);
            else
                for (let t = 0; t < this.user.userData.view.signature.selectedAccountReportingList.length; t++) e.push(this.user.userData.view.signature.selectedAccountReportingList[t].account);
            return {
                groupNames: i,
                accountNumbers: e
            };
        }
        setOptionalFilters(e, i, t = Yo.CONTAINS, n = ci.OR) {
            if (e.length > 0) {
                let l = [];
                e.forEach(T => {
                    l.push({
                        value: T ? .key ? .trim(),
                        matchMode: t,
                        operator: n
                    });
                });
                let u = this.reportingDashboardService.reportPayLoad.exportParams.filters.find(T => T.columnName === i);
                if (u) {
                    let T = this.reportingDashboardService.reportPayLoad.exportParams.filters.indexOf(u);
                    this.reportingDashboardService.reportPayLoad.exportParams.filters[T].actions = l;
                } else this.reportingDashboardService.reportPayLoad.exportParams.filters.push({
                    columnName: i,
                    actions: l
                });
            }
        }
        setShipperDetails(e) {
            let i = {};
            e.forEach(t => {
                i[t.shipperName] || (i[t.shipperName] = []), i[t.shipperName] = [...i[t.shipperName], {
                    column: t.shipperName,
                    matchMode: t.shipperFilterOperator,
                    key: t.shipperText
                }];
            });
            for (let t in i) {
                let n = [];
                for (let l = 0; l < i[t].length; l++) {
                    if (!n.includes(t)) n.push(t);
                    else continue;
                    this.setOptionalFilters(i[t], t, i[t][l].matchMode, ci.AND);
                }
            }
        }
        setReceiverDetails(e) {
            let i = {};
            e.forEach(t => {
                i[t.receiverName] || (i[t.receiverName] = []), i[t.receiverName] = [...i[t.receiverName], {
                    column: t.receiverName,
                    matchMode: t.receiverFilterOperator,
                    key: t.receiverText
                }];
            });
            for (let t in i)
                for (let n = 0; n < i[t].length; n++) this.setOptionalFilters(i[t], t, i[t][n].matchMode, ci.AND);
        }
        createReportFromSavedColumnLayout() {
            this.reportingDashboardService.reportPayLoad.userId = this.user.userData.id, this.reportingDashboardService.reportPayLoad.title = this.userForm.value.reportTitle, this.reportingDashboardService.reportPayLoad.reportType.reportName = ne.EXCEPTION, this.reportingDashboardService.reportPayLoad.creationDate = this.datePipe.transform(new Date(), ce), this.reportingDashboardService.reportPayLoad.lang = this.locale, this.reportingDashboardService.reportPayLoad.fileType = this.userForm.value.reportFormat, this.userForm.controls.reportType.value ? .toLowerCase() === V.ONETIME ? (this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.ADHOC, this.reportingDashboardService.reportPayLoad.email = this.user.userData.email, this.userForm.value.reportSchedulingDateRange && (this.reportingDashboardService.reportPayLoad.shipmentDateStart = this.datePipe.transform(this.userForm.value.reportSchedulingDateRange[0], ce), this.reportingDashboardService.reportPayLoad.shipmentDateEnd = this.datePipe.transform(this.userForm.value.reportSchedulingDateRange[1], ce))) : (this.reportingDashboardService.reportPayLoad.reportType.recurringType = le.SCHEDULED, this.reportingDashboardService.reportPayLoad.email = this.user.userData.email, this.reportingDashboardService.reportPayLoad.frequency = this.userForm.value.recurringShedule, this.reportingDashboardService.reportPayLoad.generatingDate = this.datePipe.transform(new Date(), ce)), this.reportingDashboardService.reportPayLoad.columnLayout.templateId = this.savedColumnLayoutActiveData.templateId, this.reportingDashboardService.reportPayLoad.columnLayout.columnNames = this.savedColumnLayoutActiveData.columns, this.reportingDashboardService.reportPayLoad.accountDetails = this.buildAccountList(), this.reportingDashboardService.reportPayLoad.exportParams.shipmentpin = this.user.userData.view.signature.pins;
            let e = this.userForm.value.packageStatus;
            this.setOptionalFilters(e, Re.PACKAGE_STATUS_CODE);
            let i = this.userForm.value.exceptionCategory;
            this.setOptionalFilters(i, E.PACKAGESTATUSSUBCODE);
            let t = this.userForm.value.timeOfDeliveryCategory;
            this.setOptionalFilters(t, E.DESCRIPTION);
            let n = this.userForm.value.priorityCategory;
            this.setOptionalFilters(n, E.PRODUCTCODE);
            let l = this.userForm.value.domesticCategory;
            this.setOptionalFilters(l, E.RECEIVERCOUNTRYCODE), this.createReport();
        }
        setOptionalFiltersOnEdit(e) {
            e && e.exportParams.filters.length > 0 && e.exportParams.filters.forEach(i => {
                let t = [];
                switch (i.actions.forEach(n => {
                    t.push({
                        key: n.value,
                        matchMode: n.matchMode,
                        operator: n.operator
                    });
                }), i.columnName) {
                    case Re.PACKAGE_STATUS_CODE:
                        this.userForm.controls.packageStatus.setValue(t), this.optionalFilterEvent.next({
                            topic: Re.PACKAGE_STATUS_CODE,
                            value: t
                        });
                        break;
                    case E.PACKAGESTATUSSUBCODE:
                        this.userForm.controls.exceptionCategory.setValue(t), this.optionalFilterEvent.next({
                            topic: E.PACKAGESTATUSSUBCODE,
                            value: t
                        });
                        break;
                    default:
                        this.optionalFilterEvent.next({
                            topic: i.columnName,
                            value: t
                        });
                        break;
                }
            });
        }
        resetUserForm() {
            this.userForm.reset(), this.user.userData.view.signature.pinText = "", this.user.updatePinEntry(), this.reportingDashboardService.resetReportPayload();
            let e = this.user.userData.view.signature.selectedAccountReportingList ? .length || 0;
            this.userForm.controls.reportAccounts.setValue(e);
        }
        backtoReportNo() {
            this.isNoClicked = !0, this.isFormUnsavedModal = !1, this.router.navigate(["/reporting-dashboard/recently-generated"]);
        }
        canDeactivate() {
            return this.userForm.dirty && !this.isTrackingSummaryreportUpdated && this.sheduleReportId ? (this.isFormUnsavedModal = !0, !!this.isNoClicked) : !0;
        }
        setCapacityModalDetails() {
            this.userForm.controls.reportType.value ? .toLocaleLowerCase() === V.RECURRING ? (this.summaryText = "Scheduled Reports are at Capacity.", this.detailText = "You have reached the maximum number of scheduled reports. Please delete a report to free up space.") : (this.summaryText = "Generated Reports are at Capacity.", this.detailText = "You have reached the maximum number of reports created. Please delete a report to free up space.");
        }
        updateSheduleReport() {
            this.createReportSubscription = this.apiService.createSheduleReport(this.reportingDashboardService.reportPayLoad).subscribe({
                next: e => {
                    this.spinner.hide("reportProcessingSpinner"), this.resetUserForm(), this.displayUpdateModal = !0, this.isTrackingSummaryreportUpdated = !0;
                },
                error: e => {
                    this.spinner.hide("reportProcessingSpinner");
                }
            });
        }
        hideGenerateDialog(e) {
            this.displayGenerateModal = !1, this.router.navigate(["/reporting-dashboard/recently-generated"]);
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(ot), A(si), A(se), A(xe), A(je), A(Se), A(We), A(ke), A(Ye), A(Ni), A(ue));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-exception-report"]
                ],
                viewQuery: function(i, t) {
                    if (i & 1 && Ht(J_, 5), i & 2) {
                        let n;
                        we(n = Ge()) && (t.dropdown = n.first);
                    }
                },
                features: [Te([ue])],
                decls: 52,
                vars: 28,
                consts: () => {
                    let e;
                    e = "Generating Report";
                    let i;
                    i = "Scheduling a Report";
                    let t;
                    t = "There are unsaved changes";
                    let n;
                    n = "Processing...";
                    let l;
                    l = "Back to Reporting";
                    let u;
                    u = " Your Exception report is now being generated. You will receive an email with a link to your report, and you will be able to access it from the Reports tab once it's ready. ";
                    let T;
                    T = " You have scheduled (or edited a schedule) to generate a report. This planned report is now visible in your scheduled reports tab. At the specified report date/interval, a new report will appear in your generated report tab. ";
                    let f;
                    f = "Do you want to save the changes?";
                    let M;
                    M = "Exception Summary Report";
                    let D;
                    D = "Create a Report";
                    let b;
                    b = " View the one-time performance of your shipments compared with Purolator's delivery guarantees. ";
                    let v;
                    v = " Report Columns ";
                    let $;
                    $ = "Report Title";
                    let y;
                    y = "Report Schedule";
                    let U;
                    U = "One-Time";
                    let oe;
                    oe = "Recurring";
                    let B;
                    B = "Accounts";
                    let w;
                    w = "Select Accounts/Groups";
                    let pe;
                    pe = "" + "\uFFFD0\uFFFD" + "\xA0 selected";
                    let Y;
                    Y = "Show only selected\xA0";
                    let Q;
                    Q = "Accounts";
                    let Oe;
                    Oe = "Groups";
                    let Pe;
                    Pe = "Cancel";
                    let Ae;
                    Ae = "Done";
                    let Ne;
                    Ne = "Loading... ";
                    let Me;
                    Me = "Cancel";
                    let I;
                    I = "Done";
                    let Rt;
                    Rt = "Loading... ";
                    let Ct;
                    Ct = "Report Format";
                    let Tt;
                    Tt = "CSV";
                    let ht;
                    ht = "PDF";
                    let ft;
                    ft = "XLS";
                    let St;
                    St = " Enter the information you want to filter for in your report. ";
                    let Ot;
                    Ot = "Column Layout Name";
                    let W;
                    W = "" + "\uFFFD0\uFFFD" + "";
                    let Kt;
                    Kt = "Report Type";
                    let Zt;
                    Zt = "" + "\uFFFD0\uFFFD" + "";
                    let qt;
                    qt = " Title already exists, please provide a unique title ";
                    let jt;
                    jt = "Select Date Range";
                    let Qt;
                    Qt = "Select a Date Range";
                    let Jt;
                    Jt = "Last 7 days";
                    let ei;
                    ei = "Last 14 days";
                    let H;
                    H = "Custom";
                    let Hi;
                    Hi = "Clear";
                    let zi;
                    zi = "Filter";
                    let Yi;
                    Yi = " Shipment end date should be greater than shipment start date. ";
                    let Wi;
                    Wi = "Report Period";
                    let Ki;
                    Ki = "Select Report Period";
                    let Zi;
                    Zi = "Weekly";
                    let qi;
                    qi = "Bi-Weekly";
                    let ji;
                    ji = "Monthly";
                    let Qi;
                    Qi = "Quarterly";
                    let Ji;
                    Ji = "Annually";
                    let eo;
                    eo = "Clear";
                    let to;
                    to = "Filter";
                    let io;
                    io = "Date of First Report";
                    let oo;
                    oo = "Date of First Report";
                    let no;
                    no = "Date of First Report";
                    let ro;
                    ro = "Clear";
                    let ao;
                    ao = "Filter";
                    let lo;
                    lo = "Select All";
                    let so;
                    so = "Province/State";
                    let po;
                    po = "City";
                    let _o;
                    _o = "Postal Code";
                    let co;
                    co = "Account Name";
                    let uo;
                    uo = "Account Number";
                    let mo;
                    mo = "No groups available.";
                    let go;
                    go = " " + "\uFFFD0\uFFFD" + " Accounts " + "\uFFFD#10\uFFFD" + "" + "\uFFFD/#10\uFFFD" + "";
                    let Eo;
                    Eo = "Cancel";
                    let Ro;
                    Ro = "Back";
                    let Co;
                    Co = "Create Report";
                    let To;
                    To = "Continue";
                    let ho;
                    ho = "Generate Report";
                    let fo;
                    fo = "Update Schedule";
                    let So;
                    So = "Go to Reports";
                    let Oo;
                    Oo = "Go to Reports";
                    let Po;
                    Po = "No";
                    let Ao;
                    Ao = "Yes";
                    let No;
                    return No = "Okay", [
                        ["footer", ""],
                        ["accountEditor", ""],
                        ["creationDateEditor", ""],
                        ["pCreationCalendar", ""],
                        ["selectrecurringeditor", ""],
                        ["firstreportDateEditor", ""],
                        ["pFirstReportCalendar", ""],
                        ["row", ""], n, l, u, T, f, M, D, b, v, $, y, U, oe, B, w, pe, Y, Q, Oe, Pe, Ae, Ne, Me, I, Rt, Ct, Tt, ht, ft, St, Ot, W, Kt, Zt, qt, Qt, Jt, ei, H, Hi, zi, Yi, Ki, Zi, qi, ji, Qi, Ji, eo, to, oo, no, ro, ao, lo, so, po, _o, co, uo, mo, go, Eo, Ro, Co, To, ho, fo, ["name", "reportProcessingSpinner", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        [1, "back-to-reporting"],
                        ["tabindex", "0", 3, "click", "keypress"],
                        [1, "back-icon"],
                        [1, "backto"],
                        [1, "reportForm", "reportForm__content", "pur-card", "tracking-summary-repo"],
                        [1, "reportForm__header"],
                        [1, "reportForm__header-text"],
                        ["class", "exception-report-heading", 4, "ngIf"],
                        [4, "ngIf"],
                        [3, "innerHTML", 4, "ngIf"],
                        ["class", "row", 4, "ngIf"],
                        ["class", "flex justify-content-center", 4, "ngIf"],
                        [1, "pur-card__actions", "action-container", "m-2"],
                        ["pButton", "", "class", "p-button pur-button pur-button--sm pur-button--outline mx-2", 3, "click", 4, "ngIf"],
                        ["pButton", "", "class", "p-button pur-button  pur-button--sm mx-2", 3, "disabled", "click", 4, "ngIf"],
                        [1, "generate-report-dailog"],
                        ["header", e, "closeTabindex", "0", 1, "pur-dialog", 3, "visibleChange", "onHide", "visible", "modal", "closeAriaLabel"],
                        [1, "model-body", "text-left"],
                        [1, "update-report-dailog"],
                        ["header", i, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "delete-dailog"],
                        ["header", t, 1, "pur-dialog", 3, "visibleChange", "visible", "modal"],
                        [1, "pur-dialog", 3, "visibleChange", "header", "visible", "modal"],
                        [1, "exception-report-heading"],
                        [3, "innerHTML"],
                        [1, "sub-header"],
                        [1, "row"],
                        [1, "col-sm-12"],
                        [1, "reportStepper", "my-4", 3, "activeIndex", "id", "model"],
                        [1, "flex", "justify-content-center"],
                        ["class", "reportForm_subText", 4, "ngIf"],
                        [1, "form-horizontal", "mx-3", "mt-3", 3, "formGroup"],
                        ["aria-label", "required", 1, "required"],
                        [1, "row", "pur-form-field-inline"],
                        ["for", "reportTitle", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "col-sm-8"],
                        ["id", "reportTitle", "type", "text", "pInputText", "", "formControlName", "reportTitle", "maxlength", "30", "required", "", 1, "form-control", "p-inputtext-lg", 3, "keypress", "keyup", "paste"],
                        ["class", "p-error block", 4, "ngIf"],
                        [1, "row", "pur-form-field-inline", "my-3"],
                        ["for", "reportType", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "col-xs-6", "col-md-3", "align-center"],
                        ["id", "onetime", "inputId", "one-time", "name", "reportType", "formControlName", "reportType", "value", "onetime", 1, "pur-radiobutton", 3, "click"],
                        ["for", "one-time"],
                        [1, "col-xs-6", "col-md-2", "align-center"],
                        ["id", "recurring", "inputId", "recurring", "name", "reportType", "formControlName", "reportType", "value", "recurring", 1, "pur-radiobutton", 3, "click"],
                        ["for", "recurring"],
                        ["class", "col-5 margin-block", 4, "ngIf"],
                        ["class", "col-5 mt-4", 4, "ngIf"],
                        ["class", "row pur-form-field-inline my-3", 4, "ngIf"],
                        ["for", "account", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "col-5", "margin-block", 3, "ngClass"],
                        ["id", "account", "type", "text", "formControlName", "reportAccounts", 1, "form-control", "report-account", "d-none", 3, "value"],
                        [3, "click", "label", "value", "autofocus"],
                        ["role", "dialog"],
                        [1, "pur-overlaypanel-header"],
                        [1, "header_select"],
                        [1, "align"],
                        [1, "toggle-inline"],
                        [1, "toggle-btn", "toggle-inline"],
                        ["id", "only-selected-switch", 3, "ngModelChange", "ngModel", "ngModelOptions", "autofocus", "tabIndex"],
                        [1, "table_width", 3, "valueChange", "value"],
                        [3, "value"],
                        [1, "btn-flex"],
                        ["pButton", "", "pRipple", "", "type", "button", 1, "p-button", "pur-button", "pur-button--outline", "cancel_button", "move_right", 3, "click"],
                        ["pButton", "", "pRipple", "", "type", "button", 1, "p-button", "pur-button", "move_right", "pur-button--dark", 3, "click"],
                        ["name", "groupEditLoading", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        ["scrollHeight", "40vh", 1, "custom-p-table", 3, "value", "scrollable"],
                        ["pTemplate", "header"],
                        ["pTemplate", "body"],
                        [1, "btn-span"],
                        ["pButton", "", "pRipple", "", "type", "button", 1, "p-button", "pur-button", "pur-button--outline", "cancel_button", 3, "click"],
                        ["pButton", "", "pRipple", "", "type", "button", 1, "p-button", "pur-button", "pur-button--dark", 3, "click", "disabled"],
                        ["name", "groupLoading", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        ["class", "shipments pur-datatable table_width", "columnResizeMode", "expand", "responsiveLayout", "scroll", "dataKey", "groupName", "scrollHeight", "75%", 3, "value", "scrollable", "resizableColumns", "autoLayout", 4, "ngIf"],
                        [1, "row", "my-3"],
                        ["for", "reportFormat", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "filter-controls__shortcuts", "pur-form", "pur-form--inline"],
                        [1, "pur-form-field", "radio-button-gap"],
                        ["inputId", "csvFormat", "name", "reportFormat", "formControlName", "reportFormat", "value", "csv", 1, "pur-radiobutton"],
                        ["for", "csvFormat"],
                        ["inputId", "pdfFormat", "name", "reportFormat", "formControlName", "reportFormat", "value", "pdf", 1, "pur-radiobutton"],
                        ["for", "pdfFormat"],
                        ["inputId", "xlsFormat", "name", "reportFormat", "formControlName", "reportFormat", "value", "xls", 1, "pur-radiobutton"],
                        ["for", "xlsFormat"],
                        [1, "form-hr"],
                        ["formGroupName", "optionalFilter", 3, "updatePackageStatus", "updateCheckedExceptionCategory", "updateCheckedServicePriority", "updateCheckedServiceTimeOfDelivery", "updateCheckedServiceDomestic", "updateShipperDetailsEmitter", "updateReceiverDetailsEmitter", "reportType", "packageStatus", "exceptionCategories", "priorityCategory", "timeOfDeliveryCategory", "domesticCategory", "events"],
                        [1, "reportForm_subText"],
                        [1, "row", "pur-form-field-inline", "mb-5", "mt-4"],
                        ["for", "title", 1, "control-label", "col-sm-4", "required", "strong"],
                        [1, "row", "pur-form-field-inline", "mb-5"],
                        [1, "p-error", "block"],
                        [1, "col-5", "margin-block"],
                        ["label", jt, 3, "autofocus", "value"],
                        ["inputId", "range", "formControlName", "reportSchedulingDateRange", "selectionMode", "range", 1, "pur-calendar", 3, "minDate", "inline", "readonlyInput", "disabled", "numberOfMonths", "autofocus", "disabledDates", "tabIndex"],
                        [1, "filter-controls__footer"],
                        [1, "button-wrapper"],
                        [1, "pur-form-field"],
                        ["inputId", "creationLast7", "formControlName", "reportSchedulingDays", "name", "reportSchedulingDays", "value", "last7", 1, "pur-radiobutton", 3, "click", "autofocus"],
                        ["for", "creationLast7"],
                        ["inputId", "creationLast14", "formControlName", "reportSchedulingDays", "name", "reportSchedulingDays", "value", "last14", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationLast14"],
                        ["inputId", "creationCustom", "formControlName", "reportSchedulingDays", "name", "reportSchedulingDays", "value", "custom", 1, "pur-radiobutton", 3, "click"],
                        ["for", "creationCustom"],
                        [1, "filter-controls__actions", "pur-form", "pur-form--inline"],
                        ["type", "button", 1, "p-button", "pur-button", "pur-button--sm", "pur-button--outline", 3, "click"],
                        ["type", "button", 1, "p-button", "pur-button", "pur-button--sm", "pur-button--dark", 3, "click"],
                        [1, "col-5", "mt-4"],
                        ["label", Wi, 3, "autofocus", "value"],
                        [1, "col-12", "align-center"],
                        ["id", "weekly", "formControlName", "recurringShedule", "inputId", "weekly", 1, "pur-radiobutton", 3, "value"],
                        ["for", "weekly"],
                        ["id", "bi-weekly", "formControlName", "recurringShedule", "inputId", "biweekly", 1, "pur-radiobutton", 3, "value"],
                        ["for", "bi-weekly"],
                        ["id", "monthly", "formControlName", "recurringShedule", "inputId", "monthly", 1, "pur-radiobutton", 3, "value"],
                        ["for", "monthly"],
                        ["id", "quarterly", "formControlName", "recurringShedule", "inputId", "quarterly", 1, "pur-radiobutton", 3, "value"],
                        ["for", "qauterly"],
                        ["id", "annually", "formControlName", "recurringShedule", "inputId", "annually", 1, "pur-radiobutton", 3, "value"],
                        ["for", "annualy"],
                        [1, "col-5", "date-first-report-wrapper"],
                        ["label", io, 3, "autofocus", "value"],
                        ["inputId", "date", "formControlName", "firstReportDate", 1, "pur-calendar", 3, "minDate", "maxDate", "readonlyInput", "inline", "showWeek", "autofocus", "tabIndex"],
                        [1, "col-1", "select_all_column"],
                        [1, "col-2"],
                        [1, "search-input"],
                        ["type", "checkbox", "name", "selectAll", "id", "selectAll", "aria-label", "Select All", 1, "account-dialog-checkbox", 3, "ngModelChange", "click", "ngModel", "ngModelOptions"],
                        ["for", "filterTerritory", 1, "sr-only"],
                        [1, "p-input-icon-right", "searchInput"],
                        [1, "pi", "pi-search"],
                        ["type", "text", "id", "filterTerritory", "aria-label", "Filter by Province/State", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterCity", 1, "sr-only"],
                        ["type", "text", "id", "filterCity", "aria-label", "Filter by City", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterPostalZipCode", 1, "sr-only"],
                        ["type", "text", "id", "filterPostalZipCode", "aria-label", "Filter by Postal Code", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterName", 1, "sr-only"],
                        ["type", "text", "id", "filterName", "aria-label", "Filter by Account Name", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        ["for", "filterAccount", 1, "sr-only"],
                        ["type", "text", "id", "filterAccount", "aria-label", "Filter by Account Number", 1, "searchInput", 3, "ngModelChange", "keyup", "ngModel", "ngModelOptions"],
                        [3, "ngClass"],
                        ["type", "checkbox", 1, "account-dialog-checkbox", 3, "click", "checked"],
                        ["columnResizeMode", "expand", "responsiveLayout", "scroll", "dataKey", "groupName", "scrollHeight", "75%", 1, "shipments", "pur-datatable", "table_width", 3, "value", "scrollable", "resizableColumns", "autoLayout"],
                        ["pTemplate", "rowexpansion"],
                        [1, "table__row", "col-12", 3, "ngClass"],
                        [4, "ngTemplateOutlet", "ngTemplateOutletContext"],
                        [1, "col-12", "space_between"],
                        [1, "blue"],
                        [1, "description"],
                        ["href", "#", 3, "click", "pRowToggler"],
                        ["type", "checkbox", 3, "click", "checked"],
                        ["class", "expanded-row col-10", 3, "ngClass", 4, "ngFor", "ngForOf"],
                        [1, "expanded-row", "col-10", 3, "ngClass"],
                        [1, "col-12"],
                        [3, "sendFinalColumnToParent", "reportType", "selectedFinalColumn", "templateId", "savedColumnLayoutActiveData", "editMode", "outputFormat", "redirectToFinalColumnList"],
                        [3, "changeTab", "finalColumnData", "reportDetails", "selectedAccounts", "dateRange"],
                        ["pButton", "", 1, "p-button", "pur-button", "pur-button--sm", "pur-button--outline", "mx-2", 3, "click"],
                        ["pButton", "", 1, "p-button", "pur-button", "pur-button--sm", "mx-2", 3, "click", "disabled"],
                        [1, "pur-form", "pur-form--inline", "mt-3"],
                        ["type", "button", "pButton", "", "label", So, 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "label", Oo, 1, "pur-button", "pur-button--sm", 3, "click"],
                        [1, "pur-form", "pur-form--inline"],
                        ["type", "button", "pButton", "", "label", Po, 1, "pur-button", "pur-button--sm", "pur-button--outline", "custom-button", 3, "click"],
                        ["type", "button", "pButton", "", "label", Ao, 1, "pur-button", "pur-button--sm", 3, "click"],
                        ["type", "button", "pButton", "", "label", No, 1, "pur-button", "pur-button--sm", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    if (i & 1) {
                        let n = P();
                        r(0, "ngx-spinner", 76), d(1, 8), a(), r(2, "section", 77)(3, "h5", 78), R("click", function() {
                            return m(n), g(t.backToReports());
                        })("keypress", function() {
                            return m(n), g(t.backToReports());
                        }), h(4, "span", 79), r(5, "a", 80), d(6, 9), a()()(), r(7, "article", 81)(8, "header", 82)(9, "div", 83), C(10, lc, 2, 0, "h2", 84)(11, sc, 2, 0, "h2", 84)(12, pc, 2, 1, "h2", 84)(13, _c, 2, 0, "p", 85)(14, cc, 1, 1, "p", 86)(15, uc, 4, 0, "ng-container", 85), a()(), h(16, "hr"), C(17, dc, 3, 3, "div", 87)(18, vc, 118, 60, "section", 88)(19, bc, 2, 7, "section", 88)(20, xc, 2, 4, "section", 88), r(21, "div", 89), C(22, Lc, 3, 0, "button", 90)(23, Fc, 3, 0, "button", 90)(24, wc, 3, 1, "button", 91)(25, Gc, 3, 1, "button", 91)(26, kc, 3, 1, "button", 91)(27, $c, 3, 1, "button", 91), a()(), r(28, "div", 92)(29, "p-dialog", 93), F("visibleChange", function(u) {
                            return m(n), L(t.displayGenerateModal, u) || (t.displayGenerateModal = u), g(u);
                        }), R("onHide", function(u) {
                            return m(n), g(t.hideGenerateDialog(u));
                        }), r(30, "p", 94), d(31, 10), a(), C(32, Vc, 2, 1, "ng-template", null, 0, z), a()(), r(34, "div", 95)(35, "p-dialog", 96), F("visibleChange", function(u) {
                            return m(n), L(t.displayUpdateModal, u) || (t.displayUpdateModal = u), g(u);
                        }), r(36, "p", 94), d(37, 11), a(), C(38, Bc, 2, 0, "ng-template", null, 0, z), a()(), r(40, "div", 97)(41, "p-dialog", 98), F("visibleChange", function(u) {
                            return m(n), L(t.isFormUnsavedModal, u) || (t.isFormUnsavedModal = u), g(u);
                        }), r(42, "p", 94), d(43, 12), a(), C(44, Xc, 3, 0, "ng-template", null, 0, z), a()(), r(46, "div", 97)(47, "p-dialog", 99), F("visibleChange", function(u) {
                            return m(n), L(t.displayCapacityModal, u) || (t.displayCapacityModal = u), g(u);
                        }), r(48, "p", 94), S(49), a(), C(50, Uc, 2, 0, "ng-template", null, 0, z), a()();
                    }
                    i & 2 && (_("fullScreen", !0), s(10), _("ngIf", !t.createMode && !t.editMode), s(), _("ngIf", t.createMode), s(), _("ngIf", t.editMode), s(), _("ngIf", !t.createMode && !t.editMode), s(), _("ngIf", t.createMode), s(), _("ngIf", t.editMode), s(2), _("ngIf", !t.createMode && !t.editMode), s(), _("ngIf", t.active == 0), s(), _("ngIf", t.active == 1), s(), _("ngIf", t.active == 2), s(2), _("ngIf", t.active === 0), s(), _("ngIf", t.active != 0 && !(t.active == 1 && t.hideBackButton)), s(), _("ngIf", t.createMode && !t.editMode), s(), _("ngIf", !t.sheduleReportId && !t.createMode && !t.editMode && t.active != 2), s(), _("ngIf", !t.sheduleReportId && !t.createMode && !t.editMode && t.active == 2), s(), _("ngIf", t.sheduleReportId && !t.createMode && !t.editMode), s(2), x("visible", t.displayGenerateModal), _("modal", !0)("closeAriaLabel", t.btnGoToReportsAriaLbl), s(6), x("visible", t.displayUpdateModal), _("modal", !0), s(6), x("visible", t.isFormUnsavedModal), _("modal", !0), s(6), _("header", t.summaryText), x("visible", t.displayCapacityModal), _("modal", !0), s(2), N(t.detailText));
                },
                dependencies: [ie, me, he, re, wt, Go, fe, ri, $e, $o, Ie, ni, Xo, Uo, Ve, Gt, ai, li, Ii, be, Xe, nt, Be, $t, xi, bi, wi, Fi, ve, qe, De, kt, di, qo, Ee, Ze, pn, sn, it, dt, un, yo, at, Et, Zo, ln, an, rn, nn, tn, on, Bt, Fr, Gr, kr, Bi],
                styles: [`[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.reportForm_content[_ngcontent-%COMP%], .tracking-summary-repo[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .reportForm__header[_ngcontent-%COMP%], .reportForm__header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .gapStyle[_ngcontent-%COMP%]{margin-block-end:var(-pur-gap-xs)}@media (min-width: 67.5rem){.reportForm__header[_ngcontent-%COMP%]{gap:var(-pur-gap-xs)}}@media (min-width: 67.5rem){.reportForm_header-text[_ngcontent-%COMP%]{flex:1}}.reportForm_subText[_ngcontent-%COMP%]{color:var(--pur-primary-blue);margin-block-end:var(-pur-gap-xs)}.align-center[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.filter-controls__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-block-start:var(--pur-gap)}.filter-controls__footer[_ngcontent-%COMP%]:has(.filter-controls__actions:only-child){justify-content:end}.action-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.tracking-summary-repo[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   .h2[_ngcontent-%COMP%], .tracking-summary-repo[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-block-end:var(-pur-gap-xs)}.p-steps-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .p-steps-item[_ngcontent-%COMP%]:nth-child(3){display:flex;justify-content:right}.p-steps-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .p-steps-item[_ngcontent-%COMP%]:nth-last-child(-n+1){border:2px solid orange;margin-top:1px;margin-right:auto}.table_width[_ngcontent-%COMP%]{display:block;min-width:1175px}footer[_ngcontent-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{width:100%}.p-inputtext.ng-dirty.ng-invalid[_ngcontent-%COMP%]{border-color:#aeaeae}#custom-dropdown[_ngcontent-%COMP%]   .p-dropdown-item[_ngcontent-%COMP%]{padding:.375rem .938rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:.94rem}.title[_ngcontent-%COMP%]{flex-direction:column;text-align:left;font-weight:700;padding:1.25rem .94rem .62rem;display:inline-block;font-size:.87rem}.item-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.item-row[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:pointer}.p-dropdown-panel[_ngcontent-%COMP%]   .p-dropdown-items[_ngcontent-%COMP%]   .p-dropdown-item[_ngcontent-%COMP%]:not(.p-highlight):not(.p-disabled).p-focus{background:transparent}.selected-label[_ngcontent-%COMP%]{font-size:.75rem}.form-hr[_ngcontent-%COMP%]{margin-left:-1rem;margin-right:-1rem}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{margin:1.5rem 0;display:inline-block;cursor:pointer}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]{background-color:#f5f6f6;border-radius:50%;width:2rem;height:2rem;margin-right:.5rem;display:inline-block;vertical-align:middle}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:2rem;height:2rem;fill:#001996;background-image:url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_3245_5919)'%3E%3Cpath d='M25 16C25 16.2708 24.8958 16.5104 24.6875 16.7188C24.5 16.9062 24.2708 17 24 17H10.4062L13.7188 20.2812C13.8854 20.4688 13.9792 20.6875 14 20.9375C14.0208 21.1875 13.9479 21.4167 13.7812 21.625L13.7188 21.7188C13.5104 21.9062 13.2708 22 13 22C12.7292 22 12.4896 21.9062 12.2812 21.7188L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.21875 16.625 7.21875 16.625L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.20833 16.6146 7.1875 16.5938C7.1875 16.5729 7.17708 16.5625 7.15625 16.5625C7.15625 16.5417 7.15625 16.5312 7.15625 16.5312C7.13542 16.5104 7.125 16.5 7.125 16.5C7.125 16.5 7.125 16.4896 7.125 16.4688C7.125 16.4688 7.11458 16.4688 7.09375 16.4688C7.09375 16.4479 7.09375 16.4375 7.09375 16.4375C7.09375 16.4167 7.08333 16.4062 7.0625 16.4062C7.0625 16.3854 7.0625 16.375 7.0625 16.375C7.0625 16.3542 7.0625 16.3438 7.0625 16.3438C7.0625 16.3229 7.0625 16.3125 7.0625 16.3125C7.04167 16.3125 7.03125 16.3125 7.03125 16.3125C7.03125 16.2917 7.03125 16.2812 7.03125 16.2812C7.03125 16.2604 7.03125 16.25 7.03125 16.25C7.03125 16.2292 7.03125 16.2083 7.03125 16.1875C7.03125 16.1875 7.02083 16.1875 7 16.1875V16.1562C7 16.1354 7 16.125 7 16.125C7 16.1042 7 16.0938 7 16.0938V16.0625V16.0312C7 16.0104 7 16 7 16V15.9688V15.9375C7 15.9167 7 15.9062 7 15.9062V16C7 15.9792 7 15.9583 7 15.9375C7 15.8958 7 15.8646 7 15.8438C7.02083 15.8229 7.03125 15.8125 7.03125 15.8125C7.03125 15.7917 7.03125 15.7812 7.03125 15.7812C7.03125 15.7604 7.03125 15.7396 7.03125 15.7188C7.03125 15.6979 7.04167 15.6875 7.0625 15.6875C7.0625 15.6667 7.0625 15.6458 7.0625 15.625C7.08333 15.6042 7.09375 15.5833 7.09375 15.5625C7.11458 15.5417 7.125 15.5312 7.125 15.5312C7.125 15.5104 7.125 15.5 7.125 15.5C7.125 15.5 7.13542 15.4896 7.15625 15.4688C7.17708 15.4479 7.1875 15.4271 7.1875 15.4062C7.20833 15.3854 7.21875 15.375 7.21875 15.375C7.21875 15.375 7.22917 15.3646 7.25 15.3438C7.27083 15.3229 7.28125 15.3021 7.28125 15.2812L12.2812 10.2812C12.4896 10.0938 12.7292 10 13 10C13.2708 10 13.5104 10.0938 13.7188 10.2812C13.9062 10.4896 14 10.7292 14 11C14 11.2708 13.9062 11.5104 13.7188 11.7188L10.4062 15H24C24.2708 15 24.5 15.1042 24.6875 15.3125C24.8958 15.5 25 15.7292 25 16Z' fill='%2358698D'/%3E%3Cpath d='M25 16C25 16.2708 24.8958 16.5104 24.6875 16.7188C24.5 16.9062 24.2708 17 24 17H10.4062L13.7188 20.2812C13.8854 20.4688 13.9792 20.6875 14 20.9375C14.0208 21.1875 13.9479 21.4167 13.7812 21.625L13.7188 21.7188C13.5104 21.9062 13.2708 22 13 22C12.7292 22 12.4896 21.9062 12.2812 21.7188L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.21875 16.625 7.21875 16.625L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.20833 16.6146 7.1875 16.5938C7.1875 16.5729 7.17708 16.5625 7.15625 16.5625C7.15625 16.5417 7.15625 16.5312 7.15625 16.5312C7.13542 16.5104 7.125 16.5 7.125 16.5C7.125 16.5 7.125 16.4896 7.125 16.4688C7.125 16.4688 7.11458 16.4688 7.09375 16.4688C7.09375 16.4479 7.09375 16.4375 7.09375 16.4375C7.09375 16.4167 7.08333 16.4062 7.0625 16.4062C7.0625 16.3854 7.0625 16.375 7.0625 16.375C7.0625 16.3542 7.0625 16.3438 7.0625 16.3438C7.0625 16.3229 7.0625 16.3125 7.0625 16.3125C7.04167 16.3125 7.03125 16.3125 7.03125 16.3125C7.03125 16.2917 7.03125 16.2812 7.03125 16.2812C7.03125 16.2604 7.03125 16.25 7.03125 16.25C7.03125 16.2292 7.03125 16.2083 7.03125 16.1875C7.03125 16.1875 7.02083 16.1875 7 16.1875V16.1562C7 16.1354 7 16.125 7 16.125C7 16.1042 7 16.0938 7 16.0938V16.0625V16.0312C7 16.0104 7 16 7 16V15.9688V15.9375C7 15.9167 7 15.9062 7 15.9062V16C7 15.9792 7 15.9583 7 15.9375C7 15.8958 7 15.8646 7 15.8438C7.02083 15.8229 7.03125 15.8125 7.03125 15.8125C7.03125 15.7917 7.03125 15.7812 7.03125 15.7812C7.03125 15.7604 7.03125 15.7396 7.03125 15.7188C7.03125 15.6979 7.04167 15.6875 7.0625 15.6875C7.0625 15.6667 7.0625 15.6458 7.0625 15.625C7.08333 15.6042 7.09375 15.5833 7.09375 15.5625C7.11458 15.5417 7.125 15.5312 7.125 15.5312C7.125 15.5104 7.125 15.5 7.125 15.5C7.125 15.5 7.13542 15.4896 7.15625 15.4688C7.17708 15.4479 7.1875 15.4271 7.1875 15.4062C7.20833 15.3854 7.21875 15.375 7.21875 15.375C7.21875 15.375 7.22917 15.3646 7.25 15.3438C7.27083 15.3229 7.28125 15.3021 7.28125 15.2812L12.2812 10.2812C12.4896 10.0938 12.7292 10 13 10C13.2708 10 13.5104 10.0938 13.7188 10.2812C13.9062 10.4896 14 10.7292 14 11C14 11.2708 13.9062 11.5104 13.7188 11.7188L10.4062 15H24C24.2708 15 24.5 15.1042 24.6875 15.3125C24.8958 15.5 25 15.7292 25 16Z' fill='black' fill-opacity='0.2'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_3245_5919'%3E%3Crect width='32' height='32' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");background-size:contain;background-repeat:no-repeat;background-position:50% 50%}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]:before{display:block;position:relative}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:1.125rem;color:#000;text-decoration:none}.back-to-reporting[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none;color:#000}.margin-bs-1[_ngcontent-%COMP%]{margin-block-start:1rem}.margin-be-1[_ngcontent-%COMP%]{margin-block-end:1rem}.date-first-report-wrapper[_ngcontent-%COMP%]{margin-block-start:1rem}.exception-report-heading[_ngcontent-%COMP%]{margin-block-end:1rem}.sub-header[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:700;margin-block-end:1rem}.searchInput1[_ngcontent-%COMP%]{margin-left:0;padding-left:0;max-width:100%}.searchInput[_ngcontent-%COMP%]{max-width:100%}.p-input-icon-right[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]:last-of-type{color:var(--pur-blue-magenta)}#only-selected-switch[_ngcontent-%COMP%]:focus{outline:none!important}.header_select[_ngcontent-%COMP%]{float:right}.table_width[_ngcontent-%COMP%]{display:block;min-width:73.438rem}.space_between[_ngcontent-%COMP%]{justify-content:space-between}.select_all_column[_ngcontent-%COMP%]{max-width:10%;align-items:center;text-align:center}td.col-1.select_all_column[_ngcontent-%COMP%]{text-align:center}.exp-report[_ngcontent-%COMP%]{margin-inline-end:1rem}.margin-block[_ngcontent-%COMP%]{margin-block-start:1rem}.btn-flex[_ngcontent-%COMP%]{float:right;display:inline-flex}.custom-p-table[_ngcontent-%COMP%]{min-width:95%}`]
            });
        }
    }
    return o;
})();
var Hc = () => ({
        "1199px": "75vw",
        "575px": "90vw"
    }),
    zc = () => ({
        "min-width": "95%"
    }),
    Yc = () => ({
        standalone: !0
    });

function Wc(o, c) {
    o & 1 && (r(0, "label", 67), d(1, 13), a());
}

function Kc(o, c) {
    o & 1 && (r(0, "label", 68), d(1, 14), a());
}

function Zc(o, c) {
    if (o & 1 && (r(0, "span"), S(1), a()), o & 2) {
        let e = p(2);
        s(), N(e.reportData.shipment_expected_delivery_date);
    }
}

function qc(o, c) {
    if (o & 1 && (r(0, "span"), S(1), a()), o & 2) {
        let e = p(2);
        s(), He("", e.reportData.packageEstimatedDeliveryDate.from_date, " - ", e.reportData.packageEstimatedDeliveryDate.to_Date, "");
    }
}

function jc(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function Qc(o, c) {
    if (o & 1 && (S(0), C(1, jc, 2, 0, "span", 49)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p().$implicit,
            n = p(3);
        He(" ", n.getReceiverOperator(e.matchMode), " ", e.value, " "), s(), _("ngIf", i < t.actions.length - 1);
    }
}

function Jc(o, c) {
    if (o & 1 && (r(0, "label", 70)(1, "span", 71), S(2), a(), C(3, Qc, 2, 3, "ng-template", 72), a()), o & 2) {
        let e = c.$implicit,
            i = p(3);
        s(2), de("", i.getReceiverDetails(e.columnName), " -"), s(), _("ngForOf", e.actions);
    }
}

function eu(o, c) {
    if (o & 1 && (G(0), C(1, Jc, 4, 2, "label", 69), k()), o & 2) {
        let e = p(2);
        s(), _("ngForOf", e.receiverDetails);
    }
}

function tu(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function iu(o, c) {
    if (o & 1 && (S(0), C(1, tu, 2, 0, "span", 49)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(3);
        N(t.reportingDashboardService.localizedTypeOfService(e.value)), s(), _("ngIf", i < t.serviceProduct.length - 1);
    }
}

function ou(o, c) {
    if (o & 1 && (G(0), r(1, "label", 73)(2, "span"), d(3, 15), a(), S(4, " - "), C(5, iu, 2, 2, "ng-template", 74), a(), k()), o & 2) {
        let e = p(2);
        s(5), _("ngForOf", e.serviceProduct);
    }
}

function nu(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function ru(o, c) {
    if (o & 1 && (S(0), C(1, nu, 2, 0, "span", 49)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(3);
        N(t.reportingDashboardService.localizedTypeOfService(e.value)), s(), _("ngIf", i < t.serviceDescription.length - 1);
    }
}

function au(o, c) {
    if (o & 1 && (G(0), r(1, "label", 73)(2, "span"), d(3, 16), a(), S(4, " - "), C(5, ru, 2, 2, "ng-template", 74), a(), k()), o & 2) {
        let e = p(2);
        s(5), _("ngForOf", e.serviceDescription);
    }
}

function lu(o, c) {
    o & 1 && (r(0, "span"), S(1, ", "), a());
}

function su(o, c) {
    if (o & 1 && (S(0), C(1, lu, 2, 0, "span", 49)), o & 2) {
        let e = c.$implicit,
            i = c.index,
            t = p(3);
        N(t.reportingDashboardService.localizedTypeOfService(e.value)), s(), _("ngIf", i < t.serviceDomestic.length - 1);
    }
}

function pu(o, c) {
    if (o & 1 && (G(0), r(1, "label", 73)(2, "span"), d(3, 17), a(), S(4, " - "), C(5, su, 2, 2, "ng-template", 74), a(), k()), o & 2) {
        let e = p(2);
        s(5), _("ngForOf", e.serviceDomestic);
    }
}

function _u(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = c.$implicit;
        s(), N(e.sequence);
    }
}

function cu(o, c) {
    if (o & 1 && (r(0, "th"), S(1), a()), o & 2) {
        let e = c.$implicit;
        s(), N(e.header);
    }
}

function uu(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "article", 33)(1, "header", 34)(2, "div", 35)(3, "h1", 36), S(4), a()()(), h(5, "hr"), r(6, "h2", 37), Z(7, 3), h(8, "b"), q(), a(), h(9, "hr"), r(10, "section", 38)(11, "div", 39)(12, "div", 40)(13, "label", 41), Z(14, 4), h(15, "b"), q(), a(), r(16, "div", 42), S(17), a()(), r(18, "div", 43)(19, "label", 44), Z(20, 5), h(21, "b"), q(), a(), r(22, "div", 45)(23, "label", 46), C(24, Wc, 2, 0, "label", 47)(25, Kc, 2, 0, "label", 48)(26, Zc, 2, 1, "span", 49)(27, qc, 2, 2, "span", 49), a()()(), r(28, "div", 43)(29, "label", 50)(30, "b"), d(31, 6), a()(), r(32, "div", 51)(33, "a", 52), R("click", function() {
            m(e);
            let t = p();
            return g(t.showAccountDialog());
        })("keypress", function() {
            m(e);
            let t = p();
            return g(t.showAccountDialog());
        }), d(34, 7), a()()(), r(35, "div", 53)(36, "label", 54), Z(37, 8), h(38, "b"), q(), a(), r(39, "div", 55), S(40), ae(41, "uppercase"), a()(), r(42, "div", 53)(43, "label", 56), Z(44, 9), h(45, "b"), q(), a(), r(46, "div", 57), C(47, eu, 2, 1, "ng-container", 49), a()(), r(48, "div", 53)(49, "label", 58), Z(50, 10), h(51, "b"), q(), a(), r(52, "div", 59), C(53, ou, 6, 1, "ng-container", 49)(54, au, 6, 1, "ng-container", 49)(55, pu, 6, 1, "ng-container", 49), a()(), h(56, "hr", 60), r(57, "h2", 37), Z(58, 11), h(59, "b"), q(), a(), h(60, "hr", 60), a()(), r(61, "div")(62, "div", 38)(63, "section", 61)(64, "div", 62)(65, "table", 63)(66, "thead")(67, "tr"), C(68, _u, 2, 1, "th", 64), a(), r(69, "tr"), C(70, cu, 2, 1, "th", 64), a()()()()()(), h(71, "hr"), r(72, "div", 65)(73, "button", 66), R("click", function() {
            m(e);
            let t = p();
            return g(t.backToReports());
        }), r(74, "span"), d(75, 12), a()()()()();
    }
    if (o & 2) {
        let e = p();
        s(4), N(e.reportData.title), s(13), N(e.reportData.title), s(7), _("ngIf", e.type === e.ReportType.ADHOC), s(), _("ngIf", e.type === e.ReportType.SCHEDULED), s(), _("ngIf", e.reportData.shipment_expected_delivery_date), s(), _("ngIf", e.reportData.packageEstimatedDeliveryDate), s(13), N(et(41, 13, e.reportData.fileType)), s(7), _("ngIf", e.receiverDetails), s(6), _("ngIf", e.serviceProduct), s(), _("ngIf", e.serviceDescription), s(), _("ngIf", e.serviceDomestic), s(13), _("ngForOf", e.columnsField), s(2), _("ngForOf", e.columnsField);
    }
}

function du(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "tr")(1, "th", 75), d(2, 18), a()(), r(3, "tr", 76)(4, "th", 75)(5, "span", 77), h(6, "i", 78), r(7, "input", 79), F("ngModelChange", function(t) {
            m(e);
            let n = p();
            return L(n.filterAccount, t) || (n.filterAccount = t), g(t);
        }), a()()()();
    }
    if (o & 2) {
        let e = p();
        s(7), x("ngModel", e.filterAccount), _("ngModelOptions", K(2, Yc));
    }
}

function mu(o, c) {
    if (o & 1 && (r(0, "tr")(1, "td", 75), S(2), a()()), o & 2) {
        let e = c.$implicit;
        s(2), N(e.account);
    }
}

function gu(o, c) {
    if (o & 1) {
        let e = P();
        r(0, "button", 80), R("click", function() {
            m(e);
            let t = p();
            return g(t.closeAccountModal());
        }), G(1), d(2, 19), k(), a();
    }
}
var $r = (() => {
    class o {
        constructor(e, i, t, n, l, u, T, f) {
            this.activatedRoute = e, this.user = i, this.router = t, this.apiService = n, this.lookupDataService = l, this.reportingDashboardService = u, this.spinner = T, this.localeService = f, this.ReportType = le, this.unsubscribe$ = new Pt(), this.selectAccountClicked = !1, this.columnNames = [], this.columnsField = [], this.reportData = null, this.reportId = null, this.filterAccount = "", this.selectedFormat = "csv", this.displayAccounts = [], this.type = null, this.receiverDetails = null, this.serviceDescription = null, this.serviceProduct = null, this.serviceDomestic = null, this.receiverField = [], this.receiverOperator = [{
                name: "Starts with",
                value: "startswith",
                inactive: !1
            }, {
                name: "Contains",
                value: "contains",
                inactive: !1
            }, {
                name: "Not contains",
                value: "notcontains",
                inactive: !1
            }, {
                name: "Ends with",
                value: "endswith",
                inactive: !1
            }, {
                name: "Equals",
                value: "equals",
                inactive: !1
            }];
        }
        getStandardColumnsHeader(e) {
            let i = [],
                t = 0,
                n = e.length,
                l = Array.from(Array(26)).map((u, T) => String.fromCharCode(T + 65));
            for (; n > 0;) {
                let u = "",
                    T = t;
                for (; T >= 0;) u = l[T % 26] + u, T = Math.floor(T / 26) - 1;
                i.push(u), t++, n--;
            }
            return i;
        }
        createStandardColumns() {
            return this.lookupDataService.getAllByGroup("column").subscribe(e => {
                let i = this.getStandardColumnsHeader(this.columnNames);
                this.columnNames.forEach((t, n) => {
                    this.columnsField.push({
                        field: t,
                        position: n + 1,
                        isDefault: !0,
                        isDisplayed: !0,
                        isAvailable: !0,
                        sequence: i[n]
                    });
                }), E.updateColumnHeader(e, this.localeService.getLocale(), this.columnsField), this.columnsField.forEach(t => {
                    if (t.field.match(/\[(.*?)\]/)) {
                        let l = "Flag";
                        this.localeService.getLocale() !== ir.FR ? t.header = `${t.header} ${l}` : t.header = `${l} ${t.header}`;
                    }
                });
            }), this.columnsField;
        }
        ngOnInit() {
            this.createReceiverOptions(), this.activatedRoute.paramMap.pipe(Oi(this.unsubscribe$)).subscribe(i => {
                this.type = i.get("type"), this.reportId = i.get("id"), [le.ADHOC, le.SCHEDULED].includes(this.type) || this.backToReports();
            });
            let e = {
                userId: this.user.userData.id,
                reportId: this.reportId
            };
            this.spinner.show("viewDetailsLoading"), this.reportId && this.type === le.SCHEDULED ? this.reportSubscription = this.apiService.getSheduledReportById(e).subscribe({
                next: i => {
                    if (i && i.payload) {
                        this.reportData = i.payload, this.createOptionFilterDetails();
                        let t = this.reportData.columnLayout.columnNames;
                        this.columnNames = t;
                        let n = this.reportData.accountDetails.accountNumbers;
                        this.createStandardColumns(), this.displayAccounts = n.map(l => ({
                            account: l
                        }));
                    }
                    this.spinner.hide("viewDetailsLoading");
                },
                error: () => {
                    this.spinner.hide("viewDetailsLoading");
                },
                complete: () => {
                    this.spinner.hide("viewDetailsLoading");
                }
            }) : this.reportSubscription = this.apiService.getReportById(e).subscribe({
                next: i => {
                    if (i && i.payload) {
                        this.reportData = i.payload, this.createOptionFilterDetails(), this.columnNames = this.reportData.details.columnNames;
                        let t = this.reportData.details.accountNumbers;
                        this.displayAccounts = t.map(n => ({
                            account: n
                        })), this.createStandardColumns();
                    }
                    this.spinner.hide("viewDetailsLoading");
                },
                error: () => {
                    this.spinner.hide("viewDetailsLoading");
                },
                complete: () => {
                    this.spinner.hide("viewDetailsLoading");
                }
            });
        }
        backToReports() {
            this.router.navigate(["/reporting-dashboard"]);
        }
        showAccountDialog() {
            this.selectAccountClicked = !0;
        }
        closeAccountModal() {
            this.selectAccountClicked = !1;
        }
        ngOnDestroy() {
            this.reportSubscription.unsubscribe(), this.unsubscribe$.next(), this.unsubscribe$.complete();
        }
        createOptionFilterDetails() {
            let e = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName.includes(vi.RECEIVER)).filter(l => l.columnName !== E.RECEIVERCOUNTRYCODE);
            this.receiverDetails = e;
            let i = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName === E.DESCRIPTION);
            this.serviceDescription = i && i.length > 0 ? i[0].actions : null;
            let t = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName === E.PRODUCTCODE);
            this.serviceProduct = t && t.length > 0 ? t[0].actions : null;
            let n = this.reportData ? .exportParams ? .filters ? .filter(l => l.columnName === E.RECEIVERCOUNTRYCODE);
            this.serviceDomestic = n && n.length > 0 ? n[0].actions : null;
        }
        getReceiverOperator(e) {
            let i = this.receiverOperator.find(t => t.value == e);
            return i ? i.name : e;
        }
        createReceiverOptions() {
            this.lookupDataService.getAllByGroup("column").subscribe(e => {
                this.receiverField.push({
                    value: E.RECEIVERNAME,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERCOMPANYNAME,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERPROVINCESTATE,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERCITY,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERPOSTALZIPCODE,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS1,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS2,
                    name: "NULL"
                }), this.receiverField.push({
                    value: E.RECEIVERADDRESS3,
                    name: "NULL"
                }), E.localize(e, this.localeService.getLocale(), this.receiverField, "value", "name");
            });
        }
        getReceiverDetails(e) {
            let i = this.receiverField.find(t => t.value == e);
            return i ? i.name : e;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(Ye), A(se), A(ke), A(xe), A(gt), A(Se), A(We), A(ot));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-view-details"]
                ],
                decls: 17,
                vars: 17,
                consts: () => {
                    let e;
                    e = "Loading...";
                    let i;
                    i = "Back to Reporting";
                    let t;
                    t = "Loading... ";
                    let n;
                    n = "" + "\uFFFD#8\uFFFD" + "Report Filters" + "\uFFFD/#8\uFFFD" + "";
                    let l;
                    l = "" + "\uFFFD#15\uFFFD" + "Report Title" + "\uFFFD/#15\uFFFD" + "";
                    let u;
                    u = "" + "\uFFFD#21\uFFFD" + "Report Schedule" + "\uFFFD/#21\uFFFD" + "";
                    let T;
                    T = "Account(s)";
                    let f;
                    f = "View Accounts";
                    let M;
                    M = "" + "\uFFFD#38\uFFFD" + "Report Format" + "\uFFFD/#38\uFFFD" + "";
                    let D;
                    D = "" + "\uFFFD#45\uFFFD" + "Receiver Details" + "\uFFFD/#45\uFFFD" + "";
                    let b;
                    b = "" + "\uFFFD#51\uFFFD" + "Service Type" + "\uFFFD/#51\uFFFD" + "";
                    let v;
                    v = "" + "\uFFFD#59\uFFFD" + "Report Columns" + "\uFFFD/#59\uFFFD" + "";
                    let $;
                    $ = "Back";
                    let y;
                    y = "One-Time";
                    let U;
                    U = "Recurring";
                    let oe;
                    oe = "Priority";
                    let B;
                    B = "Time of Delivery";
                    let w;
                    w = "Domestic/US/Intl";
                    let pe;
                    pe = "Account Number";
                    let Y;
                    return Y = "Close", [e, i, t, n, l, u, T, f, M, D, b, v, $, y, U, oe, B, w, pe, Y, ["name", "viewDetailsLoading", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        [1, "back-to-reporting"],
                        ["tabindex", "0", 3, "click", "keypress"],
                        [1, "back-icon"],
                        [1, "backto"],
                        ["class", "reportForm reportForm__content pur-card tracking-summary-repo view-details", 4, "ngIf"],
                        [1, "report-view-details"],
                        ["role", "dialog", 1, "pur-dialog", 3, "visibleChange", "modal", "visible", "breakpoints", "draggable", "resizable", "closable"],
                        ["name", "groupEditLoading", "type", "ball-spin-clockwise", 3, "fullScreen"],
                        [3, "value", "tableStyle"],
                        ["pTemplate", "header"],
                        ["pTemplate", "body"],
                        ["pTemplate", "footer"],
                        [1, "reportForm", "reportForm__content", "pur-card", "tracking-summary-repo", "view-details"],
                        [1, "reportForm__header"],
                        [1, "reportForm__header-text"],
                        [1, "margin-block-end-1"],
                        [1, "reportForm_subText", "mx-3", "mt-4", "string"],
                        [1, "col-xs-12"],
                        [1, "form-horizontal", "mx-3", "mt-3"],
                        [1, "row", "pur-form-field-inline"],
                        ["id", "reportTitle", "tabindex", "0", 1, "control-label", "col-sm-4", "strong"],
                        ["tabindex", "0", "aria-labelledby", "reportTitle", 1, "col-sm-8"],
                        [1, "row", "pur-form-field-inline", "my-3"],
                        ["id", "reportSchedule", "tabindex", "0", 1, "control-label", "col-sm-4", "strong"],
                        ["tabindex", "0", "aria-labelledby", "reportSchedule", 1, "col-sm-8"],
                        ["for", "type", 1, "control-label", "col-sm-4"],
                        ["for", "one-time", 4, "ngIf"],
                        ["for", "recurring", 4, "ngIf"],
                        [4, "ngIf"],
                        ["id", "account", "tabindex", "0", 1, "control-label", "col-sm-4", "strong"],
                        [1, "col-sm-8"],
                        ["href", "javascript:void('')", "tabindex", "0", "aria-labelledby", "account", 3, "click", "keypress"],
                        [1, "row", "my-3"],
                        ["id", "reportFormat", "tabindex", "0", 1, "control-label", "col-sm-4", "strong"],
                        ["tabindex", "0", "aria-labelledby", "reportFormat", 1, "col-sm-8"],
                        ["id", "receiverDetails", "tabindex", "0", 1, "control-label", "col-sm-4", "strong"],
                        ["tabindex", "0", "aria-labelledby", "receiverDetails", 1, "col-sm-8"],
                        ["id", "serviceType", "tabindex", "0", 1, "control-label", "col-sm-4", "strong"],
                        ["tabindex", "0", "aria-labelledby", "serviceType", 1, "col-sm-8"],
                        [1, "form-hr"],
                        [1, "flex"],
                        [2, "width", "100%", "overflow", "auto", "display", "block", "max-height", "50vh"],
                        [1, "finalize-column-table"],
                        [4, "ngFor", "ngForOf"],
                        [1, "pur-card__actions", "action-container", "m-2", "move-right"],
                        ["pButton", "", 1, "pur-button", "pur-button--sm", "pur-button--outline", "mx-2", 3, "click"],
                        ["for", "one-time"],
                        ["for", "recurring"],
                        ["for", "receiverDetails", "class", "control-label col-sm-8", 4, "ngFor", "ngForOf"],
                        ["for", "receiverDetails", 1, "control-label", "col-sm-8"],
                        [1, "col-sm-4"],
                        ["ngFor", "", 1, "col-sm-8", 3, "ngForOf"],
                        ["for", "title", 1, "control-label", "col-sm-8"],
                        ["ngFor", "", 3, "ngForOf"],
                        [1, "col-2"],
                        [1, "search-input"],
                        [1, "p-input-icon-right", "searchInput"],
                        [1, "pi", "pi-search"],
                        ["type", "text", 1, "searchInput", 3, "ngModelChange", "ngModel", "ngModelOptions"],
                        ["type", "button", 1, "pur-button", "pur-button--dark", 3, "click"]
                    ];
                },
                template: function(i, t) {
                    i & 1 && (r(0, "ngx-spinner", 20), d(1, 0), a(), r(2, "section", 21)(3, "p", 22), R("click", function() {
                        return t.backToReports();
                    })("keypress", function() {
                        return t.backToReports();
                    }), h(4, "span", 23), r(5, "a", 24), d(6, 1), a()()(), C(7, uu, 76, 15, "article", 25), r(8, "div", 26)(9, "p-dialog", 27), F("visibleChange", function(l) {
                        return L(t.selectAccountClicked, l) || (t.selectAccountClicked = l), l;
                    }), r(10, "ngx-spinner", 28), d(11, 2), a(), r(12, "p-table", 29), ae(13, "filter"), C(14, du, 8, 3, "ng-template", 30)(15, mu, 3, 1, "ng-template", 31), a(), C(16, gu, 3, 0, "ng-template", 32), a()()), i & 2 && (_("fullScreen", !0), s(7), _("ngIf", t.reportData), s(2), _("modal", !0), x("visible", t.selectAccountClicked), _("breakpoints", K(15, Hc))("draggable", !1)("resizable", !0)("closable", !0), s(), _("fullScreen", !1), s(2), _("value", tt(13, 11, t.displayAccounts, "account", t.filterAccount))("tableStyle", K(16, zc)));
                },
                dependencies: [ie, he, re, ii, fe, $e, Ie, Ve, it, dt, be, Xe, Be, at, Et, Ee, Bi],
                styles: [`body[_ngcontent-%COMP%]{font:var(--pur-font-body);color:var(--pur-text-black);background-color:var(--pur-canvas)}a[_ngcontent-%COMP%]{color:var(--pur-link)}a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{color:var(--pur-link-hover)}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], p[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], dl[_ngcontent-%COMP%]{margin-block-start:0;margin-block-end:var(--pur-gap)}article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], details[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], section[_ngcontent-%COMP%]{display:block}[hidden][_ngcontent-%COMP%]{display:none!important}[_ngcontent-%COMP%]:root{--pur-xxs: .5rem;--pur-xs: 1rem;--pur-sm: 1.5rem;--pur-md: 2rem;--pur-lg: 3rem;--pur-xl: 4rem;--pur-xxl: 6rem;--pur-breakpoint-xxs: 23.4375rem;--pur-breakpoint-xs: 50rem;--pur-breakpoint-sm: 67.5rem;--pur-breakpoint-md: 80rem;--pur-breakpoint-lg: 90rem;--pur-breakpoint-xl: 100rem;--pur-breakpoint-xxl: 120rem;--pur-breakpoint-xxxl: 160rem;--pur-sidebar-width: 13.1875rem;--pur-max-width: var(--pur-breakpoint-xxxl);--pur-gap: var(--pur-sm);--pur-gap-xs: var(--pur-xs);--pur-primary-red: #f00000;--pur-primary-blue: #001996;--pur-secondary-blue: #00a9ce;--pur-secondary-blue-darker: #00819e;--pur-secondary-orange: #ffa300;--pur-secondary-yellow: #fbdd40;--pur-secondary-green: #64a70b;--pur-secondary-magenta: #c800a1;--pur-secondary-grey-light: #a2aaad;--pur-secondary-grey-dark: #000;--pur-web-yellow: #f8c81e;--pur-web-green: #61A30A;--pur-web-grey-lighter: #f5f6f6;--pur-web-grey-light: #d3d3d3;--pur-web-grey: #c0c0c0;--pur-web-grey-dark: #495057;--pur-text-light: #fff;--pur-text-dark: #111;--pur-blue-magenta: #53525a;--pur-link: #001996;--pur-link-hover: #0a38e6;--pur-light-blue: #1d4ed8;--pur-alice-blue: #eff6ff;--pur-canvas: #ededed;--pur-backdrop: #303136;--pur-danger: #eb0000;--pur-Pattens-Blue: #dee2e6;--pur-webtoolkit-lightgrey-disabled: rgb(229, 229, 229);--pur-webtoolkit-darkgrey: rgb(73, 80, 87);--pur-webtoolkit-textcolour: rgb(17, 17, 17);--pur-webtoolkit-dropdown-filled: rgb(233, 233, 233);--pur-webtext-lightgreycolour1: rgb(245, 245, 245);--pur-secondary-black-shadow: rgba(0, 0, 0, .25);--pur-dropdown-header: rgb(248, 249, 250);--pur-font-mobile-xxs: .875rem;--pur-font-mobile-xs: 1rem;--pur-font-mobile-sm: 1.125rem;--pur-font-mobile-md: 1.25rem;--pur-font-mobile-lg: 1.625rem;--pur-font-mobile-xl: 1.875rem;--pur-font-mobile-xxl: 2.5rem;--pur-font-desktop-xxs: .875rem;--pur-font-desktop-xs: 1rem;--pur-font-desktop-sm: 1.25rem;--pur-font-desktop-md: 1.5rem;--pur-font-desktop-lg: 1.75rem;--pur-font-desktop-xl: 2rem;--pur-font-desktop-xxl: 2.5rem;--pur-line-mobile-xxs: 1.5rem;--pur-line-mobile-xs: 1.5rem;--pur-line-mobile-sm: 1.75rem;--pur-line-mobile-md: 1.75rem;--pur-line-mobile-lg: 2.5rem;--pur-line-mobile-xl: 2.5rem;--pur-line-mobile-xxl: 2.5rem;--pur-line-desktop-xxs: 1.5rem;--pur-line-desktop-xs: 1.5rem;--pur-line-desktop-sm: 1.5625rem;--pur-line-desktop-md: 2rem;--pur-line-desktop-lg: 3.5rem;--pur-line-desktop-xl: 3.75rem;--pur-line-desktop-xxl: 4.125rem;--pur-font-normal: 400;--pur-font-semibold: 600;--pur-font-body-family: "Open Sans", Arial, Helvetica, sans-serif;--pur-font-h1: var(--pur-font-normal) var(--pur-font-mobile-xxl)/var(--pur-line-mobile-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-mobile-xl)/var(--pur-line-mobile-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-mobile-lg)/var(--pur-line-mobile-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-mobile-md)/var(--pur-line-mobile-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-mobile-sm)/var(--pur-line-mobile-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-mobile-xs)/var(--pur-line-mobile-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-mobile-xxs)/var(--pur-line-mobile-xxs) var(--pur-font-body-family);--pur-border-xxs: 1px;--pur-border-xs: 2px;--pur-border-md: .25rem;--pur-radius-sm: .25rem;--pur-radius-md: .625rem;--pur-shadow-md: drop-shadow(4px 4px 12px rgba(0, 0, 0, .16));--pur-duration: .15s;--pur-timing: ease-out;--pur-grey-high-dark: #757575;--pur-light-blue-bg:#00A2C7;--pur-p-chips-textcolor:#2C2C30;--pur-setting-editbutton:#5B6062;--pur-setting-openbutton:#056EC7;--pur-setting-deletebutton:#c01120;--pur-white:#FFFFFF;--pur-field-bordercolor:#919191}@media (min-width: 67.5rem){[_ngcontent-%COMP%]:root{--pur-font-h1: var(--pur-font-normal) var(--pur-font-desktop-xxl)/var(--pur-line-desktop-xxl) var(--pur-font-body-family);--pur-font-h2: var(--pur-font-normal) var(--pur-font-desktop-xl)/var(--pur-line-desktop-xl) var(--pur-font-body-family);--pur-font-h3: var(--pur-font-normal) var(--pur-font-desktop-lg)/var(--pur-line-desktop-lg) var(--pur-font-body-family);--pur-font-h4: var(--pur-font-normal) var(--pur-font-desktop-md)/var(--pur-line-desktop-md) var(--pur-font-body-family);--pur-font-h5: var(--pur-font-normal) var(--pur-font-desktop-sm)/var(--pur-line-desktop-sm) var(--pur-font-body-family);--pur-font-body: var(--pur-font-normal) var(--pur-font-desktop-xs)/var(--pur-line-desktop-xs) var(--pur-font-body-family);--pur-font-legal: var(--pur-font-normal) var(--pur-font-desktop-xxs)/var(--pur-line-desktop-xxs) var(--pur-font-body-family)}}.page-title[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:var(--pur-font-normal);color:var(--pur-primary-blue)}.report-subtext[_ngcontent-%COMP%]{font-size:var(--pur-font-mobile-md)}.preview[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);font-size:var(--pur-font-mobile-sm);color:#495057}.report-pill[_ngcontent-%COMP%]{background:#0019961a;border-radius:10px;padding:0 .5rem;margin-right:1rem;margin-left:1rem;font-size:var(--pur-font-mobile-xs);color:#001996;font-weight:var(--pur-font-semibold);cursor:pointer}.refresh[_ngcontent-%COMP%]{font-size:var(--pur-font-mobile-xs);color:#001996;font-weight:var(--pur-font-semibold);padding-left:.5rem;cursor:pointer}.refresh-icon[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);color:#001996;cursor:pointer}.select-template[_ngcontent-%COMP%]{float:right}.finalize-column-table[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.2);width:100%;margin-top:1rem}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#757575}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2){background:#ededed}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.1);padding:16px 8px;font-size:1rem;font-weight:var(--pur-font-semibold);text-transform:capitalize;white-space:nowrap;color:#111}.finalize-column-table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-of-type(2)   th[_ngcontent-%COMP%]:first-of-type{border-right-width:none}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type{background-color:#9f9f9f}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-of-type   th[_ngcontent-%COMP%]{text-align:center;color:#fff;text-transform:uppercase}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border:1px solid rgba(27,31,35,.2);padding:8px;background:#fff;color:#000;font-size:1rem}.finalize-column-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type{font-weight:var(--pur-font-semibold)}.refreshIconFinalize[_ngcontent-%COMP%]{margin-bottom:-.5rem}.refreshIconFinalize[_ngcontent-%COMP%]   .pi[_ngcontent-%COMP%]{font-weight:var(--pur-font-semibold);color:#001996}.optional-filter[_ngcontent-%COMP%]{margin-left:0rem;margin-right:0rem}.show-optional-filter[_ngcontent-%COMP%]{cursor:pointer;font-size:1.125rem;margin:1rem 0rem}.show-optional-filter[_ngcontent-%COMP%]:before{background-image:url("data:image/svg+xml,%3Csvg width='10' height='5' viewBox='0 0 10 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Vector' d='M0 0L5 5L10 0L0 0Z' fill='%23001996'/%3E%3C/svg%3E");position:relative;width:1.25rem;margin:.2rem .25rem 0 .6rem;content:"";background-repeat:no-repeat;background-position:center center}.show-optional-filter[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:.313rem;display:inline-flex}.show-optional-filter[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%], .show-optional-filter[_ngcontent-%COMP%]   .hide[_ngcontent-%COMP%]{padding-right:.25rem}.hide-optional-filter[_ngcontent-%COMP%]:before{-moz-transform:scaleY(-1);-webkit-transform:scaleY(-1);-o-transform:scaleY(-1);transform:scaleY(-1)}.additional-column[_ngcontent-%COMP%]{padding:0rem 1rem}.column-editor-title[_ngcontent-%COMP%]{font-weight:700;font-size:1.063rem}.flex-row[_ngcontent-%COMP%]{display:flex;gap:2.5rem;width:100%}.flex[_ngcontent-%COMP%]{display:flex;gap:.625rem;align-items:center}.flex-item[_ngcontent-%COMP%]{flex:1;padding:1.25rem;position:relative}.flex-item[_ngcontent-%COMP%]:nth-child(2){background-color:#f5f5f5}.search-column[_ngcontent-%COMP%]{position:relative}.flex-item[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-weight:700}.search-column[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-left:2.188rem;border-radius:.5rem;width:calc(100% - 2.5rem);height:2.563rem;margin-bottom:1.25rem;border:.063rem solid #757575}.search-column[_ngcontent-%COMP%]   .search-icon[_ngcontent-%COMP%]{position:absolute;left:.625rem;top:.75rem;color:#949494}.column-list[_ngcontent-%COMP%]{overflow-y:auto;list-style-type:none;max-height:75vh;padding:0}.column-list[_ngcontent-%COMP%]:nth-child(2){max-height:80vh}.column-row[_ngcontent-%COMP%]{display:flex;gap:.625rem;border:.063rem solid #ced4da;padding:.5rem .625rem;border-radius:.5rem;margin:.5rem 1.25rem .5rem 0;background-color:#fff;position:relative;font-weight:700}.addition-column[_ngcontent-%COMP%]{color:#001996}.alphabet-counter[_ngcontent-%COMP%]{margin-left:1.875px}.justify-space-between[_ngcontent-%COMP%]{justify-content:space-between}.add-btn[_ngcontent-%COMP%], .remove-btn[_ngcontent-%COMP%]{padding:0 .313rem;cursor:pointer;color:#00f;transition:.5s}.add-btn[_ngcontent-%COMP%]:hover, .remove-btn[_ngcontent-%COMP%]:hover{transform:scale(1.3)}.move-btn[_ngcontent-%COMP%]{color:#00f;cursor:move;padding-bottom:2px}.selected-count[_ngcontent-%COMP%]{background:#dadada;padding:.25rem .5rem;border-radius:.375rem;color:#00f;font-weight:700}.final-column-list[_ngcontent-%COMP%]{counter-reset:alphabet}.final-column-items[_ngcontent-%COMP%]{counter-increment:alphabet}.alphabet-counter[_ngcontent-%COMP%]:before{width:2rem;float:left;margin-top:.625rem;content:counter(alphabet,upper-alpha)}.form-hr[_ngcontent-%COMP%]{margin-left:0rem;margin-right:0rem}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:0 2px 2px 1px #0003,0 2px 2px 2px #00000024,0 2px 2px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.p-relative[_ngcontent-%COMP%]{position:relative;padding-bottom:5rem}.update-btn[_ngcontent-%COMP%]{position:absolute;right:1.25rem;bottom:1.25rem}.Layout-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.Layout-field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:var(--pur-font-desktop-xxs);color:var(--pur-web-black);font-weight:700}.layout-footer[_ngcontent-%COMP%]{margin-top:1.5rem}.finalize-column-table-container[_ngcontent-%COMP%]{width:100%;overflow:auto;display:block;max-height:50vh}[_nghost-%COMP%]     .p-dropdown{width:18.75rem;height:3.125rem}.search-field-label[_ngcontent-%COMP%]{margin-bottom:.125rem}.form-input[_ngcontent-%COMP%]{margin-bottom:.25rem}.pur-dialog[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]   .p-dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px!important}.pur-dialog[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]   .p-dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1!important}.pur-dialog[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]   .p-dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#888!important}.pur-dialog[_ngcontent-%COMP%]   .p-dialog[_ngcontent-%COMP%]   .p-dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#555!important}.move-right[_ngcontent-%COMP%]{text-align:right}.back-header-icon[_ngcontent-%COMP%]:before{background-image:svg-uri('<svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" rx="20" fill="#EDF0F5"/><g clip-path="url(#a)"><path d="M29 20c0 .27-.104.51-.313.719A.936.936 0 0 1 28 21H14.406l3.313 3.281c.166.188.26.407.281.657.02.25-.052.479-.219.687l-.062.094A1.044 1.044 0 0 1 17 26c-.27 0-.51-.094-.719-.281l-5-5c0-.021-.01-.042-.031-.063l-.031-.031.062.094c0-.021-.01-.042-.031-.063l-.063-.062c0-.021-.01-.032-.03-.032v-.03l-.032-.032v-.031h-.031v-.032c0-.02-.01-.03-.031-.03v-.095h-.032v-.125H11v-.28V20v-.156l.031-.032v-.093c0-.021.01-.032.031-.032v-.062c.021-.02.032-.042.032-.063l.031-.03V19.5l.031-.031c.021-.021.031-.042.031-.063l.032-.031.031-.031c.02-.021.031-.042.031-.063l5-5c.209-.187.448-.281.719-.281.27 0 .51.094.719.281.187.209.281.448.281.719 0 .27-.094.51-.281.719L14.406 19H28c.27 0 .5.104.688.313A.89.89 0 0 1 29 20Z" fill="#58698D"/><path d="M29 20c0 .27-.104.51-.313.719A.936.936 0 0 1 28 21H14.406l3.313 3.281c.166.188.26.407.281.657.02.25-.052.479-.219.687l-.062.094A1.044 1.044 0 0 1 17 26c-.27 0-.51-.094-.719-.281l-5-5c0-.021-.01-.042-.031-.063l-.031-.031.062.094c0-.021-.01-.042-.031-.063l-.063-.062c0-.021-.01-.032-.03-.032v-.03l-.032-.032v-.031h-.031v-.032c0-.02-.01-.03-.031-.03v-.095h-.032v-.125H11v-.28V20v-.156l.031-.032v-.093c0-.021.01-.032.031-.032v-.062c.021-.02.032-.042.032-.063l.031-.03V19.5l.031-.031c.021-.021.031-.042.031-.063l.032-.031.031-.031c.02-.021.031-.042.031-.063l5-5c.209-.187.448-.281.719-.281.27 0 .51.094.719.281.187.209.281.448.281.719 0 .27-.094.51-.281.719L14.406 19H28c.27 0 .5.104.688.313A.89.89 0 0 1 29 20Z" fill="#000" fill-opacity=".2"/></g><defs><clipPath id="a"><path fill="#fff" transform="translate(4 4)" d="M0 0h32v32H0z"/></clipPath></defs></svg>');position:relative;width:20px;margin:.2rem .25em 0 .6rem;content:"";background-repeat:no-repeat;background-position:center center}.view-details[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:underline;font-weight:400}.back-to-reporting[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:1.5rem 0;display:inline-block;cursor:pointer}.back-to-reporting[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]{background-color:#f5f6f6;border-radius:50%;width:2rem;height:2rem;margin-right:.5rem;display:inline-block;vertical-align:middle}.back-to-reporting[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   .back-icon[_ngcontent-%COMP%]:before{background-image:svg-uri('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_3245_5919)"><path d="M25 16C25 16.2708 24.8958 16.5104 24.6875 16.7188C24.5 16.9062 24.2708 17 24 17H10.4062L13.7188 20.2812C13.8854 20.4688 13.9792 20.6875 14 20.9375C14.0208 21.1875 13.9479 21.4167 13.7812 21.625L13.7188 21.7188C13.5104 21.9062 13.2708 22 13 22C12.7292 22 12.4896 21.9062 12.2812 21.7188L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.21875 16.625 7.21875 16.625L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.20833 16.6146 7.1875 16.5938C7.1875 16.5729 7.17708 16.5625 7.15625 16.5625C7.15625 16.5417 7.15625 16.5312 7.15625 16.5312C7.13542 16.5104 7.125 16.5 7.125 16.5C7.125 16.5 7.125 16.4896 7.125 16.4688C7.125 16.4688 7.11458 16.4688 7.09375 16.4688C7.09375 16.4479 7.09375 16.4375 7.09375 16.4375C7.09375 16.4167 7.08333 16.4062 7.0625 16.4062C7.0625 16.3854 7.0625 16.375 7.0625 16.375C7.0625 16.3542 7.0625 16.3438 7.0625 16.3438C7.0625 16.3229 7.0625 16.3125 7.0625 16.3125C7.04167 16.3125 7.03125 16.3125 7.03125 16.3125C7.03125 16.2917 7.03125 16.2812 7.03125 16.2812C7.03125 16.2604 7.03125 16.25 7.03125 16.25C7.03125 16.2292 7.03125 16.2083 7.03125 16.1875C7.03125 16.1875 7.02083 16.1875 7 16.1875V16.1562C7 16.1354 7 16.125 7 16.125C7 16.1042 7 16.0938 7 16.0938V16.0625V16.0312C7 16.0104 7 16 7 16V15.9688V15.9375C7 15.9167 7 15.9062 7 15.9062V16C7 15.9792 7 15.9583 7 15.9375C7 15.8958 7 15.8646 7 15.8438C7.02083 15.8229 7.03125 15.8125 7.03125 15.8125C7.03125 15.7917 7.03125 15.7812 7.03125 15.7812C7.03125 15.7604 7.03125 15.7396 7.03125 15.7188C7.03125 15.6979 7.04167 15.6875 7.0625 15.6875C7.0625 15.6667 7.0625 15.6458 7.0625 15.625C7.08333 15.6042 7.09375 15.5833 7.09375 15.5625C7.11458 15.5417 7.125 15.5312 7.125 15.5312C7.125 15.5104 7.125 15.5 7.125 15.5C7.125 15.5 7.13542 15.4896 7.15625 15.4688C7.17708 15.4479 7.1875 15.4271 7.1875 15.4062C7.20833 15.3854 7.21875 15.375 7.21875 15.375C7.21875 15.375 7.22917 15.3646 7.25 15.3438C7.27083 15.3229 7.28125 15.3021 7.28125 15.2812L12.2812 10.2812C12.4896 10.0938 12.7292 10 13 10C13.2708 10 13.5104 10.0938 13.7188 10.2812C13.9062 10.4896 14 10.7292 14 11C14 11.2708 13.9062 11.5104 13.7188 11.7188L10.4062 15H24C24.2708 15 24.5 15.1042 24.6875 15.3125C24.8958 15.5 25 15.7292 25 16Z" fill="#58698D"/><path d="M25 16C25 16.2708 24.8958 16.5104 24.6875 16.7188C24.5 16.9062 24.2708 17 24 17H10.4062L13.7188 20.2812C13.8854 20.4688 13.9792 20.6875 14 20.9375C14.0208 21.1875 13.9479 21.4167 13.7812 21.625L13.7188 21.7188C13.5104 21.9062 13.2708 22 13 22C12.7292 22 12.4896 21.9062 12.2812 21.7188L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.21875 16.625 7.21875 16.625L7.28125 16.7188C7.28125 16.6979 7.27083 16.6771 7.25 16.6562C7.22917 16.6354 7.20833 16.6146 7.1875 16.5938C7.1875 16.5729 7.17708 16.5625 7.15625 16.5625C7.15625 16.5417 7.15625 16.5312 7.15625 16.5312C7.13542 16.5104 7.125 16.5 7.125 16.5C7.125 16.5 7.125 16.4896 7.125 16.4688C7.125 16.4688 7.11458 16.4688 7.09375 16.4688C7.09375 16.4479 7.09375 16.4375 7.09375 16.4375C7.09375 16.4167 7.08333 16.4062 7.0625 16.4062C7.0625 16.3854 7.0625 16.375 7.0625 16.375C7.0625 16.3542 7.0625 16.3438 7.0625 16.3438C7.0625 16.3229 7.0625 16.3125 7.0625 16.3125C7.04167 16.3125 7.03125 16.3125 7.03125 16.3125C7.03125 16.2917 7.03125 16.2812 7.03125 16.2812C7.03125 16.2604 7.03125 16.25 7.03125 16.25C7.03125 16.2292 7.03125 16.2083 7.03125 16.1875C7.03125 16.1875 7.02083 16.1875 7 16.1875V16.1562C7 16.1354 7 16.125 7 16.125C7 16.1042 7 16.0938 7 16.0938V16.0625V16.0312C7 16.0104 7 16 7 16V15.9688V15.9375C7 15.9167 7 15.9062 7 15.9062V16C7 15.9792 7 15.9583 7 15.9375C7 15.8958 7 15.8646 7 15.8438C7.02083 15.8229 7.03125 15.8125 7.03125 15.8125C7.03125 15.7917 7.03125 15.7812 7.03125 15.7812C7.03125 15.7604 7.03125 15.7396 7.03125 15.7188C7.03125 15.6979 7.04167 15.6875 7.0625 15.6875C7.0625 15.6667 7.0625 15.6458 7.0625 15.625C7.08333 15.6042 7.09375 15.5833 7.09375 15.5625C7.11458 15.5417 7.125 15.5312 7.125 15.5312C7.125 15.5104 7.125 15.5 7.125 15.5C7.125 15.5 7.13542 15.4896 7.15625 15.4688C7.17708 15.4479 7.1875 15.4271 7.1875 15.4062C7.20833 15.3854 7.21875 15.375 7.21875 15.375C7.21875 15.375 7.22917 15.3646 7.25 15.3438C7.27083 15.3229 7.28125 15.3021 7.28125 15.2812L12.2812 10.2812C12.4896 10.0938 12.7292 10 13 10C13.2708 10 13.5104 10.0938 13.7188 10.2812C13.9062 10.4896 14 10.7292 14 11C14 11.2708 13.9062 11.5104 13.7188 11.7188L10.4062 15H24C24.2708 15 24.5 15.1042 24.6875 15.3125C24.8958 15.5 25 15.7292 25 16Z" fill="black" fill-opacity="0.2"/></g><defs><clipPath id="clip0_3245_5919"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>');background-repeat:no-repeat;background-position:center center;content:"";display:block;position:relative;width:2rem;height:2rem}.back-to-reporting[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:1.125rem;color:#000;text-decoration:none}.back-to-reporting[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none;color:#000}.margin-block-end-1[_ngcontent-%COMP%]{margin-block-end:1rem}.view-details[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:focus{outline:none!important}h2.reportForm_subText[_ngcontent-%COMP%]{color:#000}`]
            });
        }
    }
    return o;
})();
var vo = (() => {
    class o {
        canDeactivate(e, i, t) {
            if (e.canDeactivate) {
                let n = e.canDeactivate();
                return n instanceof Mn, n;
            } else return !0;
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)();
            };
        }
        static {
            this.ɵprov = pt({
                token: o,
                factory: o.ɵfac
            });
        }
    }
    return o;
})();
var Nn = (() => {
    class o {
        constructor(e, i, t) {
            this.router = e, this.activatedRoute = i, this.user = t, this.templateId = null, this.router.routeReuseStrategy.shouldReuseRoute = () => !1;
        }
        ngOnInit() {
            this.activatedRoute.params.subscribe(e => {
                this.templateId = e.templateId || "";
            }), this.user.userData.currentLanguage === "fr" || localStorage.getItem("currentLanguage") === "fr" ? typeof globalThis.__karma__ > "u" && (globalThis.location.href = `${globalThis.location.origin}/${zt.visionAppName.toLowerCase()}/fr/reporting-dashboard/saved-column-layouts/${this.templateId}`) : this.router.navigate([`/reporting-dashboard/saved-column-layouts/${this.templateId}`]);
        }
        static {
            this.ɵfac = function(i) {
                return new(i || o)(A(ke), A(Ye), A(se));
            };
        }
        static {
            this.ɵcmp = te({
                type: o,
                selectors: [
                    ["app-redirect-page"]
                ],
                decls: 0,
                vars: 0,
                template: function(i, t) {},
                encapsulation: 2
            });
        }
    }
    return o;
})();
var Eu = [{
        path: "",
        component: ur,
        children: [{
            path: "",
            redirectTo: "recently-generated",
            pathMatch: "full"
        }, {
            path: "recently-generated",
            component: gr
        }, {
            path: "scheduled",
            component: Er
        }, {
            path: "saved-column-layouts",
            component: Sn
        }, {
            path: "saved-column-layouts/:templateId",
            component: Sn
        }, {
            path: "redirect-page",
            component: Nn
        }, {
            path: "redirect-page/:templateId",
            component: Nn
        }]
    }, {
        path: "onetime-report",
        component: Pn
    }, {
        path: "onetime-report/:reportId/:reportType",
        component: Pn,
        canDeactivate: [vo]
    }, {
        path: "exception-report",
        component: An
    }, {
        path: "exception-report/:reportId/:reportType",
        component: An,
        canDeactivate: [vo]
    }, {
        path: "view-details/:type/:id",
        component: $r
    }],
    Vr = (() => {
        class o {
            static {
                this.ɵfac = function(i) {
                    return new(i || o)();
                };
            }
            static {
                this.ɵmod = ct({
                    type: o
                });
            }
            static {
                this.ɵinj = _t({
                    imports: [Mo.forChild(Eu), Mo]
                });
            }
        }
        return o;
    })();
var y1 = (() => {
    class o {
        static {
            this.ɵfac = function(i) {
                return new(i || o)();
            };
        }
        static {
            this.ɵmod = ct({
                type: o
            });
        }
        static {
            this.ɵinj = _t({
                providers: [vo, $n(Vn())],
                imports: [ie, fe, Gt, Vr, be, ve, ui, De, at, Ee, rt, cn, it, Wo]
            });
        }
    }
    return o;
})();
export {
    y1 as ReportingDashboardModule
}; /**i18n:6e1dbccd4192d215e143e99fb4b6a095cee3c871f5aa7cd380ca91231f35e8e0*/