const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-FQqkQB8f.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/jobOrder-CGbsc7bp.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/helper-CCzdCdb2.js","assets/dictUtils-D8jA3mBt.js","assets/useForm-CKmgcynv.js","assets/index-CNIWkB7d.js","assets/Modal.vue_vue_type_script_setup_true_lang-CMk_d_H3.js","assets/isEmpty-BUg1OsQj.js","assets/ButtonGroup-C8-zHw_m.js","assets/index-Bsnez3r7.js","assets/has-CjqcrIOV.js","assets/isNumber-D5aBrEhN.js","assets/index-CoaekU6T.js","assets/index.vue_vue_type_style_index_0_scoped_b974e5ec_lang-_0QwzFKM.js","assets/index-ZGvpErbw.css","assets/index.vue_vue_type_script_setup_true_lang-CiThekrH.js","assets/TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js","assets/index.vue_vue_type_script_setup_true_lang-BaiGZfx5.js","assets/schemas-BmKi-UM9.js","assets/props-CLtNejQT.js","assets/index-DNoap-xr.css","assets/index-D19zdJV9.js","assets/OnlineDocs.vue_vue_type_script_setup_true_lang-BtgbMnNs.js","assets/OnlyOffice.vue_vue_type_script_setup_true_lang-BH1_y9Dy.js","assets/event-CLiVQHeO.js","assets/account-C850CBTF.js","assets/index-xZXlqiMn.css","assets/index-D668_Q-7.js"])))=>i.map(i=>d[i]);
import { _ as P } from "./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";
import "./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";
import { B as L } from "./Table-0PViRYCf.js";
import { _ as V } from "./TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js";
import { b as x } from "./jobOrder-CGbsc7bp.js";
import { B as A } from "./BasicForm-dL_oCSPM.js";
import { u as B } from "./useForm-CKmgcynv.js";
import { V as u, bk as T, ec as n, br as a, d as F, e as M, r as h, a as H, Z as y, c as $, o as q, l as t, w as m, j as l, W, __tla as __tla_0 } from "./index-9PRMimni.js";
import { u as J } from "./useModal-CO65vga3.js";
let ae, re, ne;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })()
]).then(async ()=>{
    let O, s, X, Z, e, z;
    O = T();
    ({ t: s } = u());
    X = ()=>({
            columns: [
                {
                    title: s("common.messagedefine.Num"),
                    key: "num",
                    width: 60,
                    render: (p, r)=>r + 1
                },
                {
                    title: s("jobOrder.jobOrderNo"),
                    key: "jobOrderNo",
                    width: 120
                },
                {
                    title: s("jobOrder.jobCode"),
                    key: "jobCode",
                    width: 120
                },
                {
                    title: s("jobOrder.jobTitle"),
                    key: "jobTitle",
                    width: 120
                },
                {
                    title: s("jobOrder.jobType"),
                    key: O.getLocale === "en" ? "jobTypeNameEn" : "jobTypeName",
                    width: 120
                },
                {
                    title: s("jobOrder.doneBy"),
                    key: O.getLocale === "en" ? "picNameEn" : "picName",
                    width: 120
                },
                {
                    title: s("jobOrder.jobDoneDate"),
                    key: "jobEndDateTime",
                    width: 120
                }
            ]
        });
    Z = T();
    ({ t: e } = u());
    re = ()=>({
            descFields: [
                {
                    field: "jobCode",
                    label: e("jobOrder.jobCode"),
                    span: 6
                },
                {
                    field: Z.getLocale === "en" ? "shipNameEn" : "shipName",
                    label: e("jobOrder.vessel"),
                    span: 6
                },
                {
                    field: "jobTitle",
                    label: e("jobOrder.jobTitle"),
                    span: 6
                }
            ]
        });
    ne = ()=>({
            stepsFields: [
                {
                    field: "step",
                    title: e("jobOrder.basicDetail"),
                    component: n(()=>a(()=>import("./index-FQqkQB8f.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,36,37,38,39,40,41,42,43,44]))),
                    status: "process"
                },
                {
                    title: e("jobOrder.riskAssessment"),
                    component: n(()=>a(()=>import("./index-CNIWkB7d.js"), __vite__mapDeps([45,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,46,35,36,37,26,27,28,29,30,31,32,33,34,38,39,40,41,44,47,42,48]))),
                    status: "wait"
                },
                {
                    field: "section",
                    title: e("jobOrder.jobDoneDetail"),
                    component: n(()=>a(()=>import("./index-Bsnez3r7.js"), __vite__mapDeps([49,1,2,25,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,42,50,44,40,47,51]))),
                    status: "wait"
                },
                {
                    field: "section",
                    title: e("jobOrder.sparePartConsume"),
                    component: n(()=>a(()=>import("./index-CoaekU6T.js").then(async (m)=>{
                                await m.__tla;
                                return m;
                            }), __vite__mapDeps([52,1,2,36,37,6,7,8,10,11,12,14,15,16,18,19,21,22,53,25,50,54,55,35,3,4,5,9,13,17,20,23,24,26,27,28,29,30,31,32,33,34,38,39,40,41,56,44,47,57,58,59,60]))),
                    status: "wait"
                },
                {
                    field: "section",
                    title: e("jobOrder.smsForms"),
                    component: n(()=>a(()=>import("./index-D19zdJV9.js"), __vite__mapDeps([61,1,2,26,27,10,4,28,15,29,30,31,32,33,34,35,36,37,38,7,39,40,13,41,56,25,62,63,64,65,50,47,66]))),
                    status: "wait"
                },
                {
                    field: "section",
                    title: e("jobOrder.attachment"),
                    component: n(()=>a(()=>import("./index-D668_Q-7.js"), __vite__mapDeps([67,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,47,44,40]))),
                    status: "wait"
                }
            ]
        });
    z = ()=>({
            historySchemas: [
                {
                    field: "jobDoneDates",
                    component: "NDatePicker",
                    label: e("jobOrder.doneDate"),
                    componentProps: {
                        type: "daterange",
                        valueFormat: "yyyy-MM-dd"
                    }
                },
                {
                    field: "jobCodeOrTitle",
                    component: "NInput",
                    label: e("jobOrder.jobTitle"),
                    componentProps: {}
                }
            ]
        });
    ae = F({
        __name: "Modal",
        setup (i, { expose: p }) {
            const { t: r } = u(), w = M(), { historySchemas: g } = z(), { columns: D } = X(), [R, { getFieldsValue: k }] = B({
                gridProps: {
                    cols: 3
                },
                schemas: g,
                showAdvancedButton: !1
            }), [v, { openModal: C }] = J({
                title: r("jobOrder.jobOrderReportHistory"),
                subBtuText: r("common.saveText"),
                width: 1100
            }), b = h(), c = h(), E = H({
                width: 80,
                title: r("common.optionsText"),
                key: "action",
                fixed: "right",
                align: "center",
                render (o) {
                    return y(V, {
                        style: "text",
                        actions: [
                            {
                                label: r("common.optionsViewText"),
                                labelShow: !1,
                                icon: y("i", {
                                    class: "iconfont icon-View blue"
                                }),
                                onClick: ()=>{
                                    w.push({
                                        name: "jobOrder",
                                        query: {
                                            shipId: o.shipId,
                                            id: o.id,
                                            planId: c.value,
                                            type: "detail"
                                        }
                                    });
                                }
                            }
                        ]
                    });
                }
            });
            async function I(o) {
                console.log(o), C(), o && (c.value = o);
            }
            async function S(o, f) {
                return await x({
                    ...o,
                    ...f,
                    planId: c.value
                });
            }
            function _() {
                b.value?.restReload();
            }
            return p({
                handleOpenModal: I
            }), (o, f)=>{
                const j = W, N = P;
                return q(), $(N, {
                    ref: "modalRef",
                    onRegister: t(v),
                    showAction: !1
                }, {
                    default: m(()=>[
                            l(j, {
                                bordered: !1,
                                class: "proCard",
                                "content-class": "p-0"
                            }, {
                                default: m(()=>[
                                        l(t(A), {
                                            onRegister: t(R),
                                            onSubmit: _,
                                            onReset: _
                                        }, null, 8, [
                                            "onRegister"
                                        ])
                                    ]),
                                _: 1
                            }),
                            l(j, {
                                bordered: !1,
                                class: "proCard mt-2",
                                "content-class": "p-0"
                            }, {
                                default: m(()=>[
                                        l(t(L), {
                                            ref_key: "basicTableRef",
                                            ref: b,
                                            columns: t(D),
                                            request: (d)=>S(d, t(k)()),
                                            "row-key": (d)=>d.id,
                                            autoScrollX: !0,
                                            actionColumn: t(E),
                                            showTableSetting: !1,
                                            "virtual-scroll": ""
                                        }, null, 8, [
                                            "columns",
                                            "request",
                                            "row-key",
                                            "actionColumn"
                                        ])
                                    ]),
                                _: 1
                            })
                        ]),
                    _: 1
                }, 8, [
                    "onRegister"
                ]);
            };
        }
    });
});
export { ae as _, re as c, ne as s, __tla };
