const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CctnHkRo.js","assets/index-9PRMimni.js","assets/index-CZ_CrH4_.css","assets/BasicForm-dL_oCSPM.js","assets/Render.vue_vue_type_script_lang-DKUYY0Zw.js","assets/SingleImageUpload-CNx4b9eC.js","assets/ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js","assets/componentSetting-DVhNDBTO.js","assets/ImageUpload-2O79x_Q-.css","assets/ImageUpload-DUsnro3W.js","assets/vuedraggable.umd-Co2xEC3p.js","assets/BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js","assets/BasicUpload-q2aOClOy.css","assets/tabsView-BXskTdVh.js","assets/BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js","assets/propTypes-CebMRUpe.js","assets/BasicForm-foIylFd_.css","assets/BasicSelect-C_uwzMkE.js","assets/BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js","assets/BasicSelect-DteQK1Vf.css","assets/dictionary-BRse4lkf.js","assets/index-DkvzUEqh.js","assets/index-kKnqLkWM.js","assets/AutoComplete-Dv1Bqed4.js","assets/TreeSelect-BZh2DeCh.js","assets/Table-0PViRYCf.js","assets/Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js","assets/componentMap-CElCaWis.js","assets/format-DgF6KtHk.js","assets/omit-B2_8Y6O_.js","assets/_flatRest-DBrd2CHT.js","assets/flatten-DeoUZLdb.js","assets/Table-Dcnz4X4a.css","assets/print-CT_2hrjP.js","assets/basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js","assets/basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js","assets/basicModal-DbyYhys_.css","assets/useModal-CO65vga3.js","assets/useTimeout-BxFilWvD.js","assets/usePageCache-DluHn7Yy.js","assets/Flex-CTSf12gq.js","assets/TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js","assets/schemas-DLHXnB0l.js","assets/useForm-CKmgcynv.js","assets/Modal.vue_vue_type_script_setup_true_lang-lMLJ7Z6q.js","assets/template-rpthWlT9.js","assets/index-CTwMqQ5U.js","assets/index-CrWX-xDw.js","assets/index-CyN-z1hM.js","assets/index-BJxgDUQV.js","assets/Modal.vue_vue_type_script_setup_true_lang-BWzSPHvu.js","assets/index-BfuADxzq.js","assets/index-CsyxnRfH.js","assets/index-BWPKhhIz.js","assets/FormPage.vue_vue_type_script_setup_true_lang-BR7F7Mn7.js","assets/TableSelect.vue_vue_type_script_setup_true_lang-BAU5mgvB.js","assets/props-CLtNejQT.js","assets/tabsView-BuQA2jOW.js","assets/element-resize-detector-D6t9qRKJ.js","assets/tabsView-pEsCFcVr.css","assets/schemas-C0ECnkWr.js","assets/planner-BebmniHR.js","assets/hook-C9rOLWu_.js","assets/columns-CSOIGjyz.js","assets/dateUtil-BtafrT1f.js","assets/index-CNB5cyS_.js","assets/Modal.vue_vue_type_script_setup_true_lang-CXKyxUcQ.js","assets/navigationAudit-BE8ZxDH9.js"])))=>i.map(i=>d[i]);
import { d as X, V as Z, e as $, bk as J, r as c, aw as Q, c as T, o as I, w as a, i as u, aE as Y, j as r, W as ee, k as te, l, N as ne, dA as oe, cB as se, H as ae, B as ie, p as V, A as x, eG as re, aF as le, ca as ce, S as ue, X as _e, eH as de, ec as o, cO as v, cZ as pe, br as s, __tla as __tla_0 } from "./index-9PRMimni.js";
import { g as me } from "./tree-Doz7tklw.js";
import { v as fe, __tla as __tla_1 } from "./schemas-DLHXnB0l.js";
let Oe;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })()
]).then(async ()=>{
    let ve, he, ge, ye, we, Ee, Ae, h;
    ve = {
        style: {
            display: "flex",
            width: "100%",
            height: "100%"
        }
    };
    he = {
        style: {
            width: "290px",
            "min-width": "290px",
            height: "100%"
        }
    };
    ge = {
        class: "flex items-center"
    };
    ye = {
        class: "w-full menu"
    };
    we = {
        class: "py-3 menu-list"
    };
    Ee = {
        style: {
            flex: "1",
            "margin-left": "8px",
            "min-width": "0",
            height: "100%",
            overflow: "auto"
        }
    };
    Ae = {
        class: "flex items-center justify-center py-4"
    };
    h = "REPORT_PAGE_PATH";
    Oe = X({
        __name: "index",
        setup (Te) {
            const g = {
                superintendentVesselInspection: o(()=>s(()=>import("./index-CctnHkRo.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]))),
                managementInspection: o(()=>s(()=>import("./index-CTwMqQ5U.js"), __vite__mapDeps([46,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,45,43]))),
                psc: o(()=>s(()=>import("./index-CrWX-xDw.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([47,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,45,43]))),
                cdi: o(()=>s(()=>import("./index-CyN-z1hM.js"), __vite__mapDeps([48,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45]))),
                sire: o(()=>s(()=>import("./index-BJxgDUQV.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,50]))),
                fsc: o(()=>s(()=>import("./index-BfuADxzq.js"), __vite__mapDeps([51,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45]))),
                rightShip: o(()=>s(()=>import("./index-CsyxnRfH.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([52,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,45,50]))),
                qualitySafetyInspection: o(()=>s(()=>import("./index-BWPKhhIz.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([53,1,2,54,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,55,56,43,39,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,57,58,59,60,45,61,62,41,63,64]))),
                navigationAudit: o(()=>s(()=>import("./index-CNB5cyS_.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,66,34,35,36,45,43,39,25,26,27,28,29,30,31,32,33,37,38,40,41,67]))),
                mooringAudit: o(()=>s(()=>import("./index-CNB5cyS_.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,66,34,35,36,45,43,39,25,26,27,28,29,30,31,32,33,37,38,40,41,67]))),
                Bunkering: o(()=>s(()=>import("./index-CNB5cyS_.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,66,34,35,36,45,43,39,25,26,27,28,29,30,31,32,33,37,38,40,41,67]))),
                cargoAudit: o(()=>s(()=>import("./index-CNB5cyS_.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,66,34,35,36,45,43,39,25,26,27,28,29,30,31,32,33,37,38,40,41,67]))),
                engineeringAudit: o(()=>s(()=>import("./index-CNB5cyS_.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([65,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,66,34,35,36,45,43,39,25,26,27,28,29,30,31,32,33,37,38,40,41,67])))
            }, { t: p } = Z(), R = pe(), b = $(), S = J(), { refreshVisitingType: K } = fe(), f = c(null), y = c(""), _ = c([]), B = c(""), w = c([]), d = c([]), E = c(!0);
            function k() {
                _.value.length ? _.value = [] : _.value = A(l(d));
            }
            async function H(t, e) {
                if (t.length) {
                    const n = de(l(d), t[0]);
                    let i = n && n.rawData;
                    B.value = i ? n.rawData.businessKey : t[0], O(i ? n.rawData.businessKey : t[0], e?.[0]);
                }
            }
            function N(t) {
                _.value = t;
            }
            const q = (()=>{
                let t = 0;
                return Object.freeze({
                    increment: ()=>t++,
                    getCount: ()=>t
                });
            })();
            function D(t) {
                return t.map((e)=>({
                        key: e.id,
                        label: S.getLocale === "en" ? e.nameEn : e.name,
                        level: q.increment(),
                        children: e.children && e.children.length > 0 ? D(e.children) : null,
                        rawData: e
                    }));
            }
            const P = c();
            function O(t, e = {}) {
                const i = [
                    "superintendentVesselInspection",
                    "managementInspection",
                    "psc",
                    "cdi",
                    "fsc",
                    "sire",
                    "rightShip",
                    "qualitySafetyInspection",
                    "navigationAudit",
                    "mooringAudit",
                    "Bunkering",
                    "cargoAudit",
                    "engineeringAudit"
                ].includes(t);
                console.log(t, i, "000"), i ? (g[t] && (f.value = g[t]), P.value = t, v.set(h, t), console.log(g[t], "====asyncComponentMap[key]")) : (f.value = null, v.remove(h), !e?.children?.length && R.warning("Please wait while the page is being developed..."));
            }
            async function z() {
                const t = await me();
                d.value = D(t);
            }
            function C(t, e) {
                for (const n of t){
                    if (n.rawData?.businessKey === e) return n.rawData.id || n.rawData.key;
                    if (n.children && n.children.length > 0) {
                        const i = C(n.children, e);
                        if (i) return i;
                    }
                }
                return null;
            }
            function A(t) {
                return t.reduce((e, n)=>(e.push(n.key), n.children && n.children.length > 0 && (e = e.concat(A(n.children))), e), []);
            }
            async function M() {
                await z(), await K();
                const t = b.options?.history?.state?.back || "";
                if (_.value = A(l(d)), typeof t == "string" && t.indexOf("add/hsqe/auditInspection/reportList/") > -1) {
                    const e = v.get(h);
                    if (e) {
                        O(e);
                        const n = C(d.value, e);
                        w.value = [
                            n
                        ];
                    }
                } else v.remove(h);
            }
            return Q(async ()=>{
                await M();
            }), (t, e)=>{
                const n = ne, i = ie, U = ae, j = te, G = se, L = ee, W = ue, F = _e;
                return I(), T(F, null, {
                    default: a(()=>[
                            u("div", ve, [
                                Y(u("div", he, [
                                    r(L, {
                                        segmented: {
                                            content: "hard"
                                        },
                                        bordered: !1,
                                        size: "small",
                                        style: {
                                            width: "290px"
                                        }
                                    }, {
                                        header: a(()=>[
                                                r(U, null, {
                                                    default: a(()=>[
                                                            r(i, {
                                                                type: "primary",
                                                                ghost: "",
                                                                "icon-placement": "left",
                                                                onClick: k
                                                            }, {
                                                                icon: a(()=>[
                                                                        u("div", ge, [
                                                                            r(n, {
                                                                                size: "14"
                                                                            }, {
                                                                                default: a(()=>[
                                                                                        r(l(re))
                                                                                    ]),
                                                                                _: 1
                                                                            })
                                                                        ])
                                                                    ]),
                                                                default: a(()=>[
                                                                        V(x(l(p)("system.menu.all")) + " " + x(_.value.length ? l(p)("system.menu.retract") : l(p)("system.menu.expand")) + " ", 1)
                                                                    ]),
                                                                _: 1
                                                            })
                                                        ]),
                                                    _: 1
                                                })
                                            ]),
                                        default: a(()=>[
                                                u("div", ye, [
                                                    r(j, {
                                                        value: y.value,
                                                        "onUpdate:value": e[0] || (e[0] = (m)=>y.value = m),
                                                        placeholder: l(p)("common.messagedefine.placeholderkeyword")
                                                    }, {
                                                        suffix: a(()=>[
                                                                r(n, {
                                                                    size: "18",
                                                                    class: "cursor-pointer"
                                                                }, {
                                                                    default: a(()=>[
                                                                            r(l(oe))
                                                                        ]),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        _: 1
                                                    }, 8, [
                                                        "value",
                                                        "placeholder"
                                                    ]),
                                                    u("div", we, [
                                                        r(G, {
                                                            "block-line": "",
                                                            cascade: "",
                                                            "virtual-scroll": !0,
                                                            pattern: y.value,
                                                            data: d.value,
                                                            "default-expand-all": !0,
                                                            style: {
                                                                "max-height": "650px",
                                                                overflow: "hidden"
                                                            },
                                                            "onUpdate:selectedKeys": [
                                                                H,
                                                                e[1] || (e[1] = (m)=>w.value = m)
                                                            ],
                                                            "onUpdate:expandedKeys": N,
                                                            selectable: "",
                                                            expandedKeys: _.value,
                                                            "selected-keys": w.value
                                                        }, null, 8, [
                                                            "pattern",
                                                            "data",
                                                            "expandedKeys",
                                                            "selected-keys"
                                                        ])
                                                    ])
                                                ])
                                            ]),
                                        _: 1
                                    })
                                ], 512), [
                                    [
                                        le,
                                        E.value
                                    ]
                                ]),
                                u("div", Ee, [
                                    u("div", null, [
                                        f.value ? (I(), T(ce(f.value), {
                                            key: 0,
                                            isShowTree: E.value,
                                            "onUpdate:isShowTree": e[2] || (e[2] = (m)=>E.value = m),
                                            currentComponent: P.value,
                                            ref: "componentRef"
                                        }, null, 40, [
                                            "isShowTree",
                                            "currentComponent"
                                        ])) : (I(), T(L, {
                                            key: 1,
                                            class: "proCard",
                                            bordered: !1
                                        }, {
                                            default: a(()=>[
                                                    u("div", Ae, [
                                                        r(W, null, {
                                                            default: a(()=>[
                                                                    V(x(l(p)("hsqe.auditInspection.selectText")), 1)
                                                                ]),
                                                            _: 1
                                                        })
                                                    ])
                                                ]),
                                            _: 1
                                        }))
                                    ])
                                ])
                            ])
                        ]),
                    _: 1
                });
            };
        }
    });
});
export { Oe as default, __tla };
