const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-pkLRCEsE.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/useForm-CKmgcynv.js","assets/usePageCache-DluHn7Yy.js","assets/TableSelect.vue_vue_type_script_setup_true_lang-BAU5mgvB.js","assets/props-CLtNejQT.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/Flex-CTSf12gq.js","assets/helper-CNwA55dE.js","assets/equipmentMainLibrary-bJTzj5mC.js","assets/requisitionOrder-D0IG9N7e.js","assets/useRole-C-Zpngq4.js","assets/columns-Cv1qVJFZ.js","assets/goodsReceiptNoteDetail-DWFnSNrx.js","assets/index.vue_vue_type_script_setup_true_lang-DLlbreDy.js","assets/TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js","assets/index.vue_vue_type_script_setup_true_lang-B_S9u-OV.js","assets/includes-DdMWPj0t.js","assets/toInteger-DQeH-nF-.js","assets/index.vue_vue_type_script_setup_true_lang-Cv5LP8XJ.js","assets/isNumber-D5aBrEhN.js","assets/find-D_h_aJYR.js","assets/findIndex-BgUIH3i1.js","assets/some-vU4SVDLd.js","assets/startsWith-JzGQtvao.js","assets/index.vue_vue_type_script_setup_true_lang-CSVKsKYX.js","assets/index.vue_vue_type_script_setup_true_lang-D8OHpETW.js","assets/index.vue_vue_type_script_setup_true_lang-2_KRqSQd.js","assets/requisitionListPage-CxtdksCl.js","assets/index-C8ntV9uP.js"])))=>i.map(i=>d[i]);
import { d as Re, bk as Te, f as De, e as qe, a4 as x, u as he, eV as Ie, r as v, hO as J, ec as X, br as Y, bl as N, aw as Ae, c as f, o as u, w as r, j as l, D as _, W as Pe, H as Se, i as c, aI as ke, p as R, A as g, l as e, B as Ve, h as B, aA as xe, F as Z, x as we, a9 as Le, y as Fe, hP as Me, ca as Ne, X as Be, ac as W, c_ as We, __tla as __tla_0 } from "./index-9PRMimni.js";
import { u as Ue } from "./useTags-C1thGhjF.js";
import { u as je } from "./useRole-C-Zpngq4.js";
import "./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";
import "./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";
import "./vuedraggable.umd-Co2xEC3p.js";
import "./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";
import "./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";
import "./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";
import "./index-DkvzUEqh.js";
import { __tla as __tla_1 } from "./index.vue_vue_type_style_index_0_scoped_b974e5ec_lang-_0QwzFKM.js";
import "./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";
import "./print-CT_2hrjP.js";
import { H as He, __tla as __tla_2 } from "./index-8tHZJCCW.js";
import "./schemas-BmKi-UM9.js";
import "./props-CLtNejQT.js";
import { s as ze, o as Qe, i as Ge, q as $e } from "./requisitionOrder-D0IG9N7e.js";
import { _ as Ke, __tla as __tla_3 } from "./index.vue_vue_type_script_setup_true_lang-Dq-PQeFf.js";
import { P as t, c as Je, i as ee, j as te, e as b, C, M as ae, g as re, h as Xe, k as ne, a as oe, __tla as __tla_4 } from "./helper-CNwA55dE.js";
import { i as s } from "./includes-DdMWPj0t.js";
import { o as Ye } from "./omit-B2_8Y6O_.js";
import "./tabsView-BXskTdVh.js";
import "./componentSetting-DVhNDBTO.js";
import "./propTypes-CebMRUpe.js";
import "./index-kKnqLkWM.js";
import "./jobOrder-CGbsc7bp.js";
import "./has-CjqcrIOV.js";
import "./Render.vue_vue_type_script_lang-DKUYY0Zw.js";
import "./componentMap-CElCaWis.js";
import "./format-DgF6KtHk.js";
import "./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";
import "./useModal-CO65vga3.js";
import "./TimelineItem-Bkds7ZW8.js";
import "./Flex-CTSf12gq.js";
import "./BasicForm-dL_oCSPM.js";
import "./SingleImageUpload-CNx4b9eC.js";
import "./ImageUpload-DUsnro3W.js";
import "./BasicSelect-C_uwzMkE.js";
import "./dictionary-BRse4lkf.js";
import "./AutoComplete-Dv1Bqed4.js";
import "./TreeSelect-BZh2DeCh.js";
import "./useForm-CKmgcynv.js";
import "./usePageCache-DluHn7Yy.js";
import "./equipmentMainLibrary-bJTzj5mC.js";
import "./toInteger-DQeH-nF-.js";
import "./_flatRest-DBrd2CHT.js";
import "./flatten-DeoUZLdb.js";
let Zt;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_2;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_3;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_4;
        } catch  {}
    })()
]).then(async ()=>{
    let Ze, et, tt, at, rt, nt;
    Ze = {
        class: "text-[18px]",
        style: {
            fontWeight: "var(--n-title-font-weight)"
        }
    };
    et = {
        class: "flex justify-between items-center"
    };
    tt = {
        class: "flex items-center text-[16px] gap-2"
    };
    at = {
        key: 0,
        class: "flex items-center gap-2"
    };
    rt = {
        class: "flex items-center gap-2"
    };
    nt = {
        class: "flex items-center gap-2"
    };
    Zt = Re({
        __name: "index",
        setup (ot) {
            const { hasRole: U } = je(), j = Te(), P = De(), k = qe(), { closeCurrent: se, setTabState: ie } = Ue(), i = x(()=>P.query.type ?? t.CREATE), H = x(()=>P.query.parentPageName ?? "PMS_requisitionListPage"), z = x(()=>P.query.parentPageQuery ? JSON.parse(P.query.parentPageQuery) : {}), le = x(()=>b === C.OFFICE ? U([
                    "technical_superintendent"
                ]) ? te((n)=>s(ne[oe.CHARTS_AND_PUBLICATIONS], n.value)) : U([
                    "marine_superintendent"
                ]) ? te((n)=>!s(ne[oe.CHARTS_AND_PUBLICATIONS], n.value)) : [] : Je), O = he(), { t: o } = Ie(), ue = v(0), q = v(!1), Q = v([]), T = v(null), h = v(ee), d = v({
                id: null
            }), S = v(""), w = v(!1), L = v(0), D = v([
                {
                    name: "details",
                    meta: {
                        title: "requisitionOrder.details"
                    },
                    refName: "detailsRef",
                    component: J(X(()=>Y(()=>import("./index-pkLRCEsE.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,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]))))
                },
                {
                    name: "attachments",
                    meta: {
                        title: "requisitionOrder.attachments"
                    },
                    refName: "attachmentsRef",
                    component: J(X(()=>Y(()=>import("./index-C8ntV9uP.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,46,38,39,40,41,29,30,31,32,33,34,35,36,37,42,26,43,51,44,45,47,25,53,54]))))
                }
            ]), I = v(D.value[0].name), V = N(D.value[0].refName), G = N("historyDetailRef"), F = N("passOrRejectDetailRef");
            function de() {
                if (L.value === 0) return O.warning(o("requisitionOrder.noItemDetails"));
                k.push({
                    name: "Add_RFQ_PageList",
                    query: {
                        reqId: d.value.id,
                        type: t.CREATE
                    }
                });
            }
            function ce() {
                G.value?.handleOpenModal();
            }
            function pe() {
                if (!d.value.id) {
                    console.warn("handleReturn: reqFormOtherInfo.id is null");
                    return;
                }
                F.value?.handleOpenModal({
                    type: "reject"
                });
            }
            function me() {
                if (!d.value.id) {
                    console.warn("handleApprove: reqFormOtherInfo.id is null");
                    return;
                }
                F.value?.handleOpenModal({
                    type: "pass"
                });
            }
            async function ve() {
                if (b === C.VESSEL && s([
                    t.CREATE,
                    t.EDIT
                ], i.value) && await $(), !re(h.value)) return O.warning(o("requisitionOrder.pleaseSelectCategory"));
                I.value !== D.value[0].name && (I.value = D.value[0].name), V.value?.[0]?.validate().then(async ()=>{
                    if (L.value === 0) return O.warning(o("requisitionOrder.noItemDetails"));
                    ze({
                        shipId: T.value ? +T.value : null,
                        busId: d.value.id,
                        subModuleCode: S.value,
                        moduleCode: ae
                    }).then(()=>{
                        O.success(o("requisitionOrder.submitSuccess")), A();
                    }).catch((n)=>{
                        console.error("Submit failed:", n);
                    });
                }).catch((n)=>{
                    console.warn("handle submit catch:", n);
                });
            }
            async function $() {
                return new Promise((n, a)=>{
                    if (!re(h.value)) return O.warning(o("requisitionOrder.pleaseSelectCategory"));
                    I.value !== D.value[0].name && (I.value = D.value[0].name), V.value?.[0]?.validate().then(async ()=>{
                        const m = await V.value?.[0].getFieldsValue();
                        q.value = !0, await Qe({
                            ...m,
                            ...d.value
                        }).then(async (E)=>{
                            O.success(o("requisitionOrder.saveSuccess")), await fe(), n();
                        }).catch((E)=>{
                            O.error(o("requisitionOrder.saveFailed")), a(E);
                        }).finally(()=>{
                            q.value = !1;
                        });
                    }).catch((m)=>{
                        console.warn("handle save catch:", m);
                    });
                });
            }
            async function fe() {
                if (b === C.OFFICE && s([
                    t.CREATE,
                    t.EDIT
                ], i.value)) {
                    A(!1);
                    const n = {
                        [t.CREATE]: t.CREATED,
                        [t.EDIT]: t.EDITED
                    };
                    W(()=>{
                        k.replace({
                            name: "requisitionOrder",
                            query: {
                                orderId: d.value.id,
                                type: n[i.value]
                            }
                        });
                    });
                    return;
                }
                if (b === C.VESSEL && s([
                    t.CREATE,
                    t.EDIT
                ], i.value)) {
                    await Ge(d.value.id).then((n)=>{
                        S.value = n.approveFlow;
                    });
                    return;
                }
                if (b === C.OFFICE) {
                    A();
                    return;
                }
            }
            async function ge() {
                const n = await V.value?.[0].getFieldsValue(), a = Ye(n, [
                    "source",
                    "applicant",
                    "category",
                    "shipId",
                    "applyDate"
                ]);
                if (s([
                    t.CREATED,
                    t.EDITED,
                    t.VIEW,
                    t.APPROVE
                ], i.value) || Object.keys(a).length === 0) {
                    A();
                    return;
                }
                We().warning({
                    title: o("requisitionOrder.goBackDialog.title"),
                    content: o("requisitionOrder.goBackDialog.content"),
                    positiveText: o("requisitionOrder.goBackDialog.confirmText"),
                    negativeText: o("requisitionOrder.goBackDialog.cancelText"),
                    onPositiveClick: ()=>{
                        A();
                    },
                    onNegativeClick: ()=>{}
                });
            }
            function A(n = !0) {
                try {
                    se(), n && W(()=>{
                        k.replace({
                            name: H.value,
                            query: z.value
                        });
                    });
                } catch (a) {
                    console.warn("Error closing tab:", a), W(()=>{
                        k.replace({
                            name: H.value,
                            query: z.value
                        });
                    });
                }
            }
            async function Ee() {
                const { id: n } = await $e();
                d.value = {
                    id: n
                };
            }
            function ye() {
                if (Xe().then((n)=>{
                    Q.value = n, T.value = n?.[0].value;
                }), s([
                    t.CREATE
                ], i.value)) Ee();
                else {
                    const { orderId: n } = P.query;
                    if (n) d.value.id = +n;
                    else {
                        O.error("common.missingRequiredParameters");
                        return;
                    }
                }
                s([
                    t.CREATE,
                    t.EDIT
                ], i.value) && ie({
                    state: "unsaved"
                });
            }
            return Ae(()=>{
                ye();
            }), (n, a)=>{
                const m = Ve, E = ke, _e = Se, M = Pe, K = xe, be = Fe, Ce = we, Oe = Be;
                return u(), f(Oe, null, {
                    default: r(()=>[
                            l(M, {
                                bordered: !1,
                                class: "proCard"
                            }, {
                                default: r(()=>[
                                        l(_e, null, {
                                            default: r(()=>[
                                                    l(E, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                l(m, {
                                                                    type: "text",
                                                                    class: "size-8",
                                                                    onClick: ge
                                                                }, {
                                                                    icon: r(()=>a[9] || (a[9] = [
                                                                            c("i", {
                                                                                class: "iconfont icon-a-shangyibu2 text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        default: r(()=>[
                                                                R(" " + g(e(o)("requisitionOrder.backList")), 1)
                                                            ]),
                                                        _: 1
                                                    }),
                                                    c("div", Ze, g(e(o)("requisitionOrder.requisitionOrder")), 1)
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                _: 1
                            }),
                            l(M, {
                                bordered: !1,
                                class: "mt-2 proCard"
                            }, {
                                default: r(()=>[
                                        c("div", et, [
                                            c("div", tt, [
                                                e(s)([
                                                    e(t).CREATE,
                                                    e(t).CREATED,
                                                    e(t).EDIT,
                                                    e(t).EDITED,
                                                    e(t).APPROVE
                                                ], i.value) ? (u(), B("div", at, [
                                                    c("span", null, g(e(o)("requisitionOrder.vessel")), 1),
                                                    l(K, {
                                                        disabled: e(s)([
                                                            e(t).CREATED,
                                                            e(t).EDIT,
                                                            e(t).EDITED,
                                                            e(t).APPROVE
                                                        ], i.value) || w.value,
                                                        value: T.value,
                                                        "onUpdate:value": a[0] || (a[0] = (p)=>T.value = p),
                                                        options: Q.value,
                                                        style: {
                                                            width: "240px"
                                                        },
                                                        "label-field": e(j).getLocale == "en" ? "labelEn" : "label",
                                                        placeholder: e(o)("requisitionOrder.pleaseSelectVessel")
                                                    }, null, 8, [
                                                        "disabled",
                                                        "value",
                                                        "options",
                                                        "label-field",
                                                        "placeholder"
                                                    ])
                                                ])) : _("", !0),
                                                c("div", rt, [
                                                    c("span", null, g(e(o)("requisitionOrder.procurementCategory")), 1),
                                                    l(K, {
                                                        disabled: e(s)([
                                                            e(t).CREATED,
                                                            e(t).EDIT,
                                                            e(t).EDITED,
                                                            e(t).APPROVE,
                                                            e(t).VIEW
                                                        ], i.value) || w.value,
                                                        value: h.value,
                                                        "onUpdate:value": a[1] || (a[1] = (p)=>h.value = p),
                                                        options: le.value,
                                                        style: {
                                                            width: "240px"
                                                        },
                                                        "label-field": e(j).getLocale == "en" ? "labelEn" : "label",
                                                        placeholder: e(o)("requisitionOrder.pleaseSelectCategory")
                                                    }, null, 8, [
                                                        "disabled",
                                                        "value",
                                                        "options",
                                                        "label-field",
                                                        "placeholder"
                                                    ])
                                                ])
                                            ]),
                                            c("div", nt, [
                                                e(b) === e(C).OFFICE && e(s)([
                                                    e(t).CREATED,
                                                    e(t).EDITED
                                                ], i.value) ? (u(), f(m, {
                                                    key: 0,
                                                    strong: "",
                                                    secondary: "",
                                                    type: "primary",
                                                    onClick: de
                                                }, {
                                                    default: r(()=>[
                                                            R(g(e(o)("requisitionOrder.createRequestForQuotation")), 1)
                                                        ]),
                                                    _: 1
                                                })) : _("", !0),
                                                e(s)([
                                                    e(t).APPROVE
                                                ], i.value) ? (u(), B(Z, {
                                                    key: 1
                                                }, [
                                                    l(E, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                l(m, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    bordered: "",
                                                                    secondary: "",
                                                                    class: "size-7",
                                                                    onClick: me,
                                                                    disabled: q.value
                                                                }, {
                                                                    icon: r(()=>a[10] || (a[10] = [
                                                                            c("i", {
                                                                                class: "iconfont icon-Approve text-[#0ec06a]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                }, 8, [
                                                                    "disabled"
                                                                ])
                                                            ]),
                                                        default: r(()=>[
                                                                R(" " + g(e(o)("requisitionOrder.btnApprove")), 1)
                                                            ]),
                                                        _: 1
                                                    }),
                                                    l(E, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: r(()=>[
                                                                l(m, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    bordered: "",
                                                                    secondary: "",
                                                                    class: "size-7",
                                                                    onClick: pe,
                                                                    disabled: q.value
                                                                }, {
                                                                    icon: r(()=>a[11] || (a[11] = [
                                                                            c("i", {
                                                                                class: "iconfont icon-Returned text-[#0ec06a]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                }, 8, [
                                                                    "disabled"
                                                                ])
                                                            ]),
                                                        default: r(()=>[
                                                                R(" " + g(e(o)("requisitionOrder.btnReturn")), 1)
                                                            ]),
                                                        _: 1
                                                    })
                                                ], 64)) : _("", !0),
                                                e(b) === e(C).VESSEL && e(s)([
                                                    e(t).EDIT
                                                ], i.value) || e(s)([
                                                    e(t).VIEW,
                                                    e(t).APPROVE
                                                ], i.value) ? (u(), f(E, {
                                                    key: 2,
                                                    trigger: "hover"
                                                }, {
                                                    trigger: r(()=>[
                                                            l(m, {
                                                                type: "primary",
                                                                strong: "",
                                                                bordered: "",
                                                                secondary: "",
                                                                class: "size-7",
                                                                onClick: ce
                                                            }, {
                                                                icon: r(()=>a[12] || (a[12] = [
                                                                        c("i", {
                                                                            class: "iconfont icon-Log text-[#0ec06a]"
                                                                        }, null, -1)
                                                                    ])),
                                                                _: 1
                                                            })
                                                        ]),
                                                    default: r(()=>[
                                                            R(" " + g(e(o)("requisitionOrder.btnHistory")), 1)
                                                        ]),
                                                    _: 1
                                                })) : _("", !0),
                                                e(s)([
                                                    e(t).CREATE,
                                                    e(t).EDIT
                                                ], i.value) ? (u(), f(E, {
                                                    key: 3,
                                                    trigger: "hover"
                                                }, {
                                                    trigger: r(()=>[
                                                            l(m, {
                                                                type: "primary",
                                                                strong: "",
                                                                bordered: "",
                                                                secondary: "",
                                                                class: "size-7",
                                                                onClick: $,
                                                                disabled: q.value
                                                            }, {
                                                                icon: r(()=>a[13] || (a[13] = [
                                                                        c("i", {
                                                                            class: "iconfont icon-Save text-[#0ec06a]"
                                                                        }, null, -1)
                                                                    ])),
                                                                _: 1
                                                            }, 8, [
                                                                "disabled"
                                                            ])
                                                        ]),
                                                    default: r(()=>[
                                                            R(" " + g(e(o)("requisitionOrder.btnSave")), 1)
                                                        ]),
                                                    _: 1
                                                })) : _("", !0),
                                                e(b) === e(C).VESSEL && e(s)([
                                                    e(t).CREATE,
                                                    e(t).EDIT
                                                ], i.value) ? (u(), f(E, {
                                                    key: 4,
                                                    trigger: "hover"
                                                }, {
                                                    trigger: r(()=>[
                                                            l(m, {
                                                                type: "primary",
                                                                strong: "",
                                                                bordered: "",
                                                                secondary: "",
                                                                class: "size-7",
                                                                onClick: ve,
                                                                disabled: q.value
                                                            }, {
                                                                icon: r(()=>a[14] || (a[14] = [
                                                                        c("i", {
                                                                            class: "iconfont icon-Submit text-[#0ec06a]"
                                                                        }, null, -1)
                                                                    ])),
                                                                _: 1
                                                            }, 8, [
                                                                "disabled"
                                                            ])
                                                        ]),
                                                    default: r(()=>[
                                                            R(" " + g(e(o)("requisitionOrder.btnSubmit")), 1)
                                                        ]),
                                                    _: 1
                                                })) : _("", !0)
                                            ])
                                        ])
                                    ]),
                                _: 1
                            }),
                            l(M, {
                                bordered: !1,
                                class: "mt-2 proCard"
                            }, {
                                default: r(()=>[
                                        d.value.id && e(ee) ? (u(), f(Ce, {
                                            "tab-class": "text-[16px]",
                                            "tab-style": {
                                                fontWeight: "var(--n-title-font-weight)"
                                            },
                                            animated: "",
                                            value: I.value,
                                            "onUpdate:value": a[7] || (a[7] = (p)=>I.value = p),
                                            key: ue.value
                                        }, {
                                            default: r(()=>[
                                                    (u(!0), B(Z, null, Le(D.value, (p)=>(u(), f(be, {
                                                            key: p.name,
                                                            name: p.name,
                                                            tab: e(o)(p.meta?.title),
                                                            "display-directive": "show"
                                                        }, {
                                                            default: r(()=>[
                                                                    (u(), f(Me, null, {
                                                                        default: r(()=>[
                                                                                (u(), f(Ne(p.component), {
                                                                                    class: "mt-2",
                                                                                    ref_for: !0,
                                                                                    ref: p.refName,
                                                                                    vesselValue: T.value,
                                                                                    "onUpdate:vesselValue": a[2] || (a[2] = (y)=>T.value = y),
                                                                                    procurementCategory: h.value,
                                                                                    "onUpdate:procurementCategory": a[3] || (a[3] = (y)=>h.value = y),
                                                                                    reqFormOtherInfo: d.value,
                                                                                    onChangeKeyWordsDisabled: a[4] || (a[4] = (y)=>w.value = y),
                                                                                    onResolveSubModuleCode: a[5] || (a[5] = (y)=>S.value = y),
                                                                                    onTableListDataLengthChange: a[6] || (a[6] = (y)=>L.value = y)
                                                                                }, null, 40, [
                                                                                    "vesselValue",
                                                                                    "procurementCategory",
                                                                                    "reqFormOtherInfo"
                                                                                ]))
                                                                            ]),
                                                                        fallback: r(()=>a[15] || (a[15] = [
                                                                                R("loading...")
                                                                            ])),
                                                                        _: 2
                                                                    }, 1024))
                                                                ]),
                                                            _: 2
                                                        }, 1032, [
                                                            "name",
                                                            "tab"
                                                        ]))), 128))
                                                ]),
                                            _: 1
                                        }, 8, [
                                            "value"
                                        ])) : _("", !0)
                                    ]),
                                _: 1
                            }),
                            e(b) === e(C).VESSEL && e(s)([
                                e(t).EDIT
                            ], i.value) || e(s)([
                                e(t).VIEW,
                                e(t).APPROVE
                            ], i.value) ? (u(), f(e(He), {
                                key: 0,
                                ref_key: "historyDetailRef",
                                ref: G,
                                busId: d.value.id,
                                moduleCode: e(ae),
                                subModuleCode: S.value
                            }, null, 8, [
                                "busId",
                                "moduleCode",
                                "subModuleCode"
                            ])) : _("", !0),
                            e(s)([
                                e(t).APPROVE
                            ], i.value) ? (u(), f(Ke, {
                                key: 1,
                                ref_key: "passOrRejectDetailRef",
                                ref: F,
                                reqFormOtherInfo: d.value,
                                subModuleCode: S.value,
                                onFinish: a[8] || (a[8] = (p)=>A())
                            }, null, 8, [
                                "reqFormOtherInfo",
                                "subModuleCode"
                            ])) : _("", !0)
                        ]),
                    _: 1
                });
            };
        }
    });
});
export { Zt as default, __tla };
