const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CeHb18_x.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/AddModal.vue_vue_type_script_setup_true_lang-BONWSA-x.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/schemas-BcMAx2yL.js","assets/schemas-Cam1kIsU.js","assets/vesselEquipmentDetails-CJeqdW1Z.js","assets/useModal-CO65vga3.js","assets/useForm-CKmgcynv.js","assets/usePageCache-DluHn7Yy.js","assets/index-B3aV_c_T.css","assets/index-0JrLyPHA.js","assets/AddJobPlanModal.vue_vue_type_script_setup_true_lang-C1zVfWY-.js","assets/schemas-Dz7LnyWK.js","assets/template-rpthWlT9.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/useTimeout-BxFilWvD.js","assets/Flex-CTSf12gq.js","assets/TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js","assets/columns-BV6QS8Hv.js","assets/index-DatBjkM3.js","assets/columns-BK5KZ8kW.js","assets/dateUtil-BtafrT1f.js","assets/tabsView-BuQA2jOW.js","assets/element-resize-detector-D6t9qRKJ.js","assets/tabsView-pEsCFcVr.css","assets/index-Bewn9XoI.js","assets/FormModal.vue_vue_type_script_setup_true_lang-D2nKDzTn.js","assets/material-Fe1jAspV.js","assets/index-Drst2IW4.js","assets/index-Cw0R2_od.js","assets/FormModal-KlcUTEQl.js","assets/account-C850CBTF.js","assets/FormModal-DyuLfjwV.css","assets/index-CdEj2ezq.js","assets/FormModal-EdElmVaV.js","assets/FormModal-CHGmrU7n.css","assets/index-Ca7ZYdD0.js","assets/index-Cv5WOseW.js","assets/FormModal.vue_vue_type_script_setup_true_lang-CnORK0py.js","assets/index-CO7F_rKx.js","assets/index-toeH5d_H.js","assets/index-Dj37cqHp.js"])))=>i.map(i=>d[i]);
import { d as k, V as q, bk as N, r as l, a as $, a4 as b, ec as t, aw as B, c as g, o as L, w as m, i as r, j as c, l as e, A as K, aA as U, ds as h, W, aE as j, H as F, gE as J, aF as Q, ca as X, X as Z, br as s, cZ as z, ac as G, v as Y, __tla as __tla_0 } from "./index-9PRMimni.js";
import ee from "./VesselTree-nohBCxN8.js";
import { T as te } from "./tabsView-BuQA2jOW.js";
import { k as se } from "./vesselEquipmentDetails-CJeqdW1Z.js";
import { a0 as oe } from "./template-rpthWlT9.js";
import { g as ae } from "./schemas-Cam1kIsU.js";
import "./vuedraggable.umd-Co2xEC3p.js";
import "./element-resize-detector-D6t9qRKJ.js";
import "./Render.vue_vue_type_script_lang-DKUYY0Zw.js";
import "./index-kKnqLkWM.js";
let Le;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })()
]).then(async ()=>{
    let ne, ie, le, re, ce, _e, ue;
    ne = {
        class: "flex"
    };
    ie = {
        class: "w-[340px] mr-2"
    };
    le = {
        class: "flex items-center"
    };
    re = {
        class: "mr-2"
    };
    ce = {
        class: "flex-1 overflow-hidden"
    };
    _e = {
        class: "flex-1 overflow-auto pr-[16px] pl-[16px]"
    };
    ue = k({
        name: "PMS_vesselEquipmentDetails",
        __name: "index",
        setup (de) {
            const { t: _ } = q(), x = N(), V = z(), D = {
                EquipmentDetails: t(()=>s(()=>import("./index-CeHb18_x.js"), __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]))),
                JobPlan: t(()=>s(()=>import("./index-0JrLyPHA.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([36,1,2,37,26,27,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,38,30,39,31,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58]))),
                SpareParts: t(()=>s(()=>import("./index-Bewn9XoI.js").then(async (m)=>{
                            await m.__tla;
                            return m;
                        }), __vite__mapDeps([59,1,2,6,7,8,60,26,27,28,3,4,5,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,30,61,31,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51,54]))),
                Specification: t(()=>s(()=>import("./index-Drst2IW4.js"), __vite__mapDeps([62,1,2,40,41,10,4,42,15,43,44,45,46,47,48,26,27,28,32,7,49,34,13,50,31]))),
                Survey: t(()=>s(()=>import("./index-Cw0R2_od.js"), __vite__mapDeps([63,1,2,64,26,27,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,65,32,33,34,66,40,41,42,43,44,45,46,47,48,49,50,51,53]))),
                ConditionOfClass: t(()=>s(()=>import("./index-CdEj2ezq.js"), __vite__mapDeps([67,1,2,68,26,27,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,65,32,33,34,69,40,41,42,43,44,45,46,47,48,49,50,51,53]))),
                PurchaseHistory: t(()=>s(()=>import("./index-Ca7ZYdD0.js"), __vite__mapDeps([70,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,33,34,40,41,42,43,44,45,46,47,48,26,27,28,32,49,50,31,53]))),
                ServiceLetters: t(()=>s(()=>import("./index-Cv5WOseW.js"), __vite__mapDeps([71,1,2,72,26,27,28,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,31,65,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51]))),
                UserManual: t(()=>s(()=>import("./index-CO7F_rKx.js"), __vite__mapDeps([73,1,2]))),
                HSQE: t(()=>s(()=>import("./index-toeH5d_H.js"), __vite__mapDeps([74,1,2,40,41,10,4,42,15,43,44,45,46,47,48,26,27,28,32,7,49,34,13,50]))),
                MountDismountHistory: t(()=>s(()=>import("./index-Dj37cqHp.js"), __vite__mapDeps([75,1,2])))
            }, T = l(), { tabList: y } = ae(), o = $({
                tabsList: y,
                activeKey: y[0]?.value
            }), a = l(), E = l(window.innerHeight - 105), I = b(()=>D[o.activeKey]), f = b(()=>a.value), v = l([]), n = l(), p = l(!1);
            async function w() {
                p.value = !0;
                try {
                    await se(n.value), V.success(_("common.optionsSuccessText")), p.value = !1;
                } catch  {
                    p.value = !1;
                }
            }
            function P(u) {
                a.value = u, G(()=>{
                    !f.value && (o.activeKey = o.tabsList[0]?.value);
                });
            }
            function R(u) {
                T.value?.handleRefreshNode(u || e(a));
            }
            async function S() {
                v.value = await oe(), n.value = v.value?.[0]?.id;
            }
            return B(()=>{
                S();
            }), (u, i)=>{
                const A = U, O = J, H = F, C = W, M = Z;
                return L(), g(M, null, {
                    default: m(()=>[
                            r("div", ne, [
                                r("div", ie, [
                                    c(ee, {
                                        ref_key: "vesselTreeRef",
                                        ref: T,
                                        selectedVesselId: e(n),
                                        treeHeight: e(E) - 115,
                                        onHandleSelect: P
                                    }, {
                                        header: m(()=>[
                                                r("div", le, [
                                                    r("span", re, K(e(_)("equipmentLibrary.equipmentMainLibrary.vessel")) + "：", 1),
                                                    c(A, {
                                                        value: e(n),
                                                        "onUpdate:value": i[0] || (i[0] = (d)=>h(n) ? n.value = d : null),
                                                        options: e(v),
                                                        placeholder: `${e(_)("common.chooseText")} ${e(_)("equipmentLibrary.equipmentMainLibrary.vessel")}`,
                                                        "label-field": e(x).getLocale === "en" ? "shipNameEn" : "shipName",
                                                        "value-field": "id",
                                                        filterable: "",
                                                        class: "flex-1"
                                                    }, null, 8, [
                                                        "value",
                                                        "options",
                                                        "placeholder",
                                                        "label-field"
                                                    ])
                                                ])
                                            ]),
                                        _: 1
                                    }, 8, [
                                        "selectedVesselId",
                                        "treeHeight"
                                    ])
                                ]),
                                r("div", ce, [
                                    c(C, {
                                        bordered: !1,
                                        "content-style": {
                                            display: "flex",
                                            flexFlow: "column",
                                            overflow: "hidden",
                                            maxHeight: `${e(E)}px`,
                                            paddingLeft: 0,
                                            paddingRight: 0
                                        },
                                        class: "ui-card-small"
                                    }, {
                                        default: m(()=>[
                                                c(H, {
                                                    justify: "end",
                                                    class: "mb-2 pr-[16px]"
                                                }, {
                                                    default: m(()=>[
                                                            c(O, {
                                                                loading: e(p),
                                                                buttonText: e(_)("equipmentLibrary.equipmentMainLibrary.syncToOffice"),
                                                                iconType: "text",
                                                                onClick: w
                                                            }, null, 8, [
                                                                "loading",
                                                                "buttonText"
                                                            ])
                                                        ]),
                                                    _: 1
                                                }),
                                                j(c(e(te), {
                                                    modelValue: e(o),
                                                    "onUpdate:modelValue": i[1] || (i[1] = (d)=>h(o) ? o.value = d : null),
                                                    class: "pt-0"
                                                }, null, 8, [
                                                    "modelValue"
                                                ]), [
                                                    [
                                                        Q,
                                                        e(f)
                                                    ]
                                                ]),
                                                r("div", _e, [
                                                    (L(), g(X(e(I)), {
                                                        selectedTreeItem: e(a),
                                                        "onUpdate:selectedTreeItem": i[2] || (i[2] = (d)=>h(a) ? a.value = d : null),
                                                        key: e(o).activeKey,
                                                        isShowDetail: e(f),
                                                        isEditable: e(a)?.ifActive,
                                                        onHandleRefreshNode: R
                                                    }, null, 40, [
                                                        "selectedTreeItem",
                                                        "isShowDetail",
                                                        "isEditable"
                                                    ]))
                                                ])
                                            ]),
                                        _: 1
                                    }, 8, [
                                        "content-style"
                                    ])
                                ])
                            ])
                        ]),
                    _: 1
                });
            };
        }
    });
    Le = Y(ue, [
        [
            "__scopeId",
            "data-v-398b4b35"
        ]
    ]);
});
export { Le as default, __tla };
