const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-SpqtCMaF.js","assets/index.vue_vue_type_script_setup_true_lang-aJ7O0bSt.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/equipmentMainLibrary-bJTzj5mC.js","assets/isEmpty-BUg1OsQj.js","assets/index-B1UqrXMv.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/jobPlanDetails-5wu16ZE_.js","assets/pick-Cg3anC-c.js","assets/index-6WFLOWTY.js","assets/index-C-jlPeux.js","assets/index-DfLZwQmD.js","assets/index-CtHc-ivN.js","assets/index-BSAIlE_5.js"])))=>i.map(i=>d[i]);
import { d as y, eV as V, f as I, a as R, hO as s, ec as r, br as _, r as w, bl as x, aw as L, c as d, o as i, w as l, D as E, l as u, W as T, j as O, x as g, h as k, F as A, a9 as F, y as h, hP as S, p as N, ca as q, H, X as M, __tla as __tla_0 } from "./index-9PRMimni.js";
import { f as B } from "./jobPlanDetails-5wu16ZE_.js";
let z;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })()
]).then(async ()=>{
    let D, W;
    D = {
        OFFICE: "office",
        VESSEL: "vessel"
    };
    W = D.VESSEL;
    z = y({
        __name: "index",
        setup (J) {
            const { t: P } = V(), p = I(), e = R({
                jobDetails: {
                    meta: {
                        title: "jobPlan.viewDetails.jobDetails"
                    },
                    data: {},
                    component: s(r(()=>_(()=>import("./index-SpqtCMaF.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]))))
                },
                procedures: {
                    meta: {
                        title: "jobPlan.viewDetails.procedures"
                    },
                    data: {},
                    component: s(r(()=>_(()=>import("./index-B1UqrXMv.js"), __vite__mapDeps([30,2,3,31,32,11,5,33,16,34,35,36,37,38,39,40,41,42,43,8,44,27,14,45,46,47]))))
                },
                spareParts: {
                    meta: {
                        title: "jobPlan.viewDetails.spareParts"
                    },
                    data: {},
                    component: s(r(()=>_(()=>import("./index-6WFLOWTY.js"), __vite__mapDeps([48,2,3,31,32,11,5,33,16,34,35,36,37,38,39,40,41,42,43,8,44,27,14,45,46]))))
                },
                smsForms: {
                    meta: {
                        title: "jobPlan.viewDetails.smsForms"
                    },
                    data: {},
                    component: s(r(()=>_(()=>import("./index-C-jlPeux.js"), __vite__mapDeps([49,2,3,31,32,11,5,33,16,34,35,36,37,38,39,40,41,42,43,8,44,27,14,45,46]))))
                },
                attachment: {
                    meta: {
                        title: "jobPlan.viewDetails.attachment"
                    },
                    data: {},
                    component: s(r(()=>_(()=>import("./index-DfLZwQmD.js"), __vite__mapDeps([50,2,3,46]))))
                },
                userManual: {
                    meta: {
                        title: "jobPlan.viewDetails.userManual"
                    },
                    data: {},
                    component: s(r(()=>_(()=>import("./index-CtHc-ivN.js"), __vite__mapDeps([51,2,3,31,32,11,5,33,16,34,35,36,37,38,39,40,41,42,43,8,44,27,14,45]))))
                },
                jobExtensionHistory: {
                    meta: {
                        title: "jobPlan.viewDetails.jobExtensionHistory"
                    },
                    data: {},
                    component: s(r(()=>_(()=>import("./index-BSAIlE_5.js").then(async (m)=>{
                                await m.__tla;
                                return m;
                            }), __vite__mapDeps([52,2,3,31,32,11,5,33,16,34,35,36,37,38,39,40,41,42,43,8,44,27,14,45,46]))))
                }
            });
            w(!1);
            const j = x("componentsRef");
            async function v() {
                if (!p.query.id) return;
                e.jobDetails.data = await B(p.query.id);
                const { shipId: c, serialNumber: t, equipmentCode: a, model: o, jobCode: n, planId: m } = e.jobDetails.data;
                e.procedures.data = {
                    shipId: c,
                    serialNumber: t,
                    productCode: a,
                    model: o,
                    jobCode: n
                }, e.spareParts.data = {
                    shipId: c,
                    serialNumber: t,
                    productCode: a,
                    model: o,
                    jobCode: n
                }, e.smsForms.data = {
                    shipId: c,
                    serialNumber: t,
                    productCode: a,
                    model: o,
                    jobCode: n
                }, e.attachment.data = {
                    shipId: c,
                    serialNumber: t,
                    productCode: a,
                    model: o,
                    jobCode: n
                }, e.userManual.data = {}, e.jobExtensionHistory.data = {
                    shipId: c,
                    serialNumber: t,
                    equipmentCode: a,
                    model: o,
                    jobCode: n,
                    planId: m
                };
            }
            return L(()=>{
                v();
            }), (c, t)=>{
                const a = H, o = h, n = g, m = T, C = M;
                return i(), d(C, null, {
                    default: l(()=>[
                            u(p).query.id ? (i(), d(m, {
                                key: 0,
                                bordered: !1,
                                class: "proCard"
                            }, {
                                default: l(()=>[
                                        O(n, {
                                            animated: ""
                                        }, {
                                            suffix: l(()=>[
                                                    u(W) === u(D).OFFICE ? (i(), d(a, {
                                                        key: 0
                                                    })) : E("", !0)
                                                ]),
                                            default: l(()=>[
                                                    (i(!0), k(A, null, F(e, (f, b)=>(i(), d(o, {
                                                            key: b,
                                                            name: b,
                                                            tab: u(P)(f.meta?.title)
                                                        }, {
                                                            default: l(()=>[
                                                                    (i(), d(S, null, {
                                                                        default: l(()=>[
                                                                                (i(), d(q(f.component), {
                                                                                    class: "mt-2",
                                                                                    ref_for: !0,
                                                                                    ref_key: "componentsRef",
                                                                                    ref: j,
                                                                                    data: f.data,
                                                                                    isExtension: e.jobDetails.data?.jobStatus === 2
                                                                                }, null, 8, [
                                                                                    "data",
                                                                                    "isExtension"
                                                                                ]))
                                                                            ]),
                                                                        fallback: l(()=>t[0] || (t[0] = [
                                                                                N(" loading... ")
                                                                            ])),
                                                                        _: 2
                                                                    }, 1024))
                                                                ]),
                                                            _: 2
                                                        }, 1032, [
                                                            "name",
                                                            "tab"
                                                        ]))), 128))
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                _: 1
                            })) : E("", !0)
                        ]),
                    _: 1
                });
            };
        }
    });
});
export { z as default, __tla };
