import { _ as R, a8 as D } from "./template-rpthWlT9.js";
import { ad as F, V as U, bk as O, r as d, Z as s, ae as T, k as h, ch as L, c9 as x, c8 as S, __tla as __tla_0 } from "./index-9PRMimni.js";
import { v as A, __tla as __tla_1 } from "./schemas-DzvLPsci.js";
import { c as _ } from "./index-CKrxNOjs.js";
import { g as $, __tla as __tla_2 } from "./columns-CcSTU2Qa.js";
let le, te, se, oe, ie, ae, ce, ne, re;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_2;
        } catch  {}
    })()
]).then(async ()=>{
    ae = function(c) {
        return F.Post("/crewEvaluateInfo/findEvaluateList", c);
    };
    le = function(c) {
        return F.Get(`/crewEvaluateInfo/${c}`);
    };
    te = function(c) {
        return F.Post("/crewEvaluateInfo/saveEvaluateBasic", c);
    };
    re = function(c) {
        return F.Post("/crewEvaluateInfo/updateTemplateUid", c);
    };
    function M() {
        return F.Get("/crewEvaluateInfo/findRole/list");
    }
    oe = function(c) {
        return F.Get(`/crewEvaluateInfo/download/${c}`);
    };
    const y = O(), { t: a } = U(), q = await R(), B = await M(), Y = await D();
    a("crew.status.pending"), a("crew.status.complete"), a("crew.status.returned");
    ne = function() {
        return {
            schemas: [
                {
                    field: "vesselId",
                    component: "NSelect",
                    label: a("crew.evaluation.vesselName"),
                    componentProps: {
                        placeholder: a("crew.evaluation.vesselName"),
                        options: A,
                        labelField: y.getLocale === "en" ? "shipNameEn" : "shipName",
                        valueField: "id",
                        filterable: !0,
                        clearable: !0
                    }
                },
                {
                    field: "crewName",
                    component: "NInput",
                    label: a("crew.evaluation.crewName"),
                    componentProps: {
                        placeholder: a("crew.evaluation.crewName")
                    }
                },
                {
                    field: "rankId",
                    component: "NSelect",
                    label: a("crew.evaluation.rank"),
                    componentProps: {
                        options: q,
                        placeholder: a("crew.evaluation.rank"),
                        labelField: y.getLocale === "en" ? "shortNameEn" : "name",
                        valueField: "id"
                    }
                },
                {
                    field: "status",
                    component: "NSelect",
                    label: a("crew.evaluation.status"),
                    componentProps: {
                        options: Y,
                        placeholder: a("crew.evaluation.status"),
                        labelField: y.getLocale === "en" ? "labelEn" : "label"
                    }
                },
                {
                    field: "evaluateDate",
                    component: "NDatePicker",
                    label: a("crew.evaluation.evaluationDate"),
                    componentProps: {
                        type: "daterange",
                        valueFormat: "yyyy-MM-dd",
                        placeholder: a("crew.evaluation.evaluationDate")
                    }
                }
            ],
            schemasUpload: [
                {
                    field: "fileDtoList",
                    label: "",
                    slot: "attachment"
                }
            ]
        };
    };
    se = function(c, r, u) {
        const g = d(!0), i = d(!1), f = d(!1), v = d(!1), N = d(!1), C = d(!1), I = (t)=>{
            g.value = t;
        }, P = d([]), V = d(0), e = d(0), l = [
            {
                field: "comment",
                label: a("crew.evaForm.comment"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    placeholder: a("crew.evaForm.comment")
                },
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "file",
                label: a("crew.evaForm.master"),
                slot: "fileSlot",
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "Assessment",
                label: a("crew.evaForm.AsOfCompany"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    placeholder: a("crew.evaForm.AsOfCompany")
                },
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "file1",
                label: a("crew.evaForm.assessor"),
                slot: "fileUpload",
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            }
        ], o = [
            {
                field: "comment",
                label: a("crew.evaForm.comment"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    placeholder: a("crew.evaForm.comment")
                },
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "file",
                label: a("crew.evaForm.cE"),
                slot: "fileSlot",
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "Assessment",
                label: a("crew.evaForm.AsOfCompany"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    placeholder: a("crew.evaForm.AsOfCompany")
                },
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "file1",
                label: a("crew.evaForm.assessor"),
                slot: "fileUpload",
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            }
        ], b = [
            {
                field: "comment",
                label: a("crew.evaForm.comment"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    placeholder: a("crew.evaForm.comment")
                },
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "file",
                label: a("crew.evaForm.headOfDept"),
                slot: "fileSlot",
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "Assessment",
                label: a("crew.evaForm.AsOfCompany"),
                component: "NInput",
                componentProps: {
                    type: "textarea",
                    placeholder: a("crew.evaForm.AsOfCompany")
                },
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            },
            {
                field: "file1",
                label: a("crew.evaForm.assessor"),
                slot: "fileUpload",
                defaultValue: "",
                labelWidth: 200,
                giProps: {
                    span: 3
                }
            }
        ], p = [
            {
                field: "vesselId",
                component: "NSelect",
                label: a("crew.evaluation.vesselName"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                componentProps: {
                    placeholder: a("crew.evaluation.vesselName"),
                    options: A,
                    labelField: y.getLocale === "en" ? "shipNameEn" : "shipName",
                    valueField: "id",
                    disabled: !0,
                    filterable: !0,
                    clearable: !0,
                    async onUpdateValue (t) {
                        if (c(t), V.value = t, e.value) {
                            const m = e.value, E = await _({
                                vesselId: +t,
                                rankId: m
                            });
                            P.value = E;
                        }
                    }
                },
                rules: [
                    {
                        required: !0,
                        type: "number",
                        message: a("crew.evaluation.vesselName"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "rankId",
                component: "NSelect",
                label: a("crew.evaluation.rank"),
                labelWidth: 60,
                giProps: {
                    span: 3
                },
                componentProps: {
                    options: B,
                    placeholder: a("crew.evaluation.rank"),
                    labelField: y.getLocale === "en" ? "shortNameEn" : "name",
                    valueField: "id",
                    disabled: v,
                    async onUpdateValue (t) {
                        e.value = t, r(t);
                    }
                },
                rules: [
                    {
                        required: !0,
                        type: "number",
                        message: a("crew.evaluation.rank"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "crewId",
                component: "NSelect",
                label: a("crew.evaluation.crewName"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                hidden: v,
                componentProps: {
                    options: P,
                    labelField: y.getLocale === "en" ? "crewNameEn" : "crewName",
                    valueField: "crewId",
                    disabled: v,
                    placeholder: a("crew.evaluation.crewName"),
                    onUpdateValue (t) {
                        u(t);
                    }
                },
                rules: [
                    {
                        required: !0,
                        type: "number",
                        message: a("crew.evaluation.crewName"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: y.getLocale === "en" ? "crewNameEn" : "crewName",
                component: "NInput",
                label: a("crew.evaluation.crewName"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                hidden: C,
                componentProps: {
                    disabled: v,
                    placeholder: a("crew.evaluation.crewName")
                },
                rules: [
                    {
                        required: !0,
                        type: "string",
                        message: a("crew.oilForm.period"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "onBroadDate",
                component: "NDatePicker",
                label: a("crew.oilForm.onDate"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                componentProps: {
                    disabled: !0,
                    type: "date",
                    valueFormat: "yyyy-MM-dd",
                    placeholder: a("crew.oilForm.onDate")
                },
                rules: [
                    {
                        required: !0,
                        type: "date",
                        message: a("crew.oilForm.onDate"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "onBroadPort",
                component: "NInput",
                label: a("crew.oilForm.onPort"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                componentProps: {
                    disabled: !0,
                    placeholder: a("crew.oilForm.onPort")
                },
                rules: [
                    {
                        required: !0,
                        type: "string",
                        message: a("crew.oilForm.onPort"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "evaluationPeriod",
                component: "NDatePicker",
                label: a("crew.oilForm.period"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                hidden: f,
                componentProps: {
                    type: "quarter",
                    disabled: i
                },
                rules: [
                    {
                        required: !0,
                        type: "number",
                        message: a("crew.oilForm.period"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "evaluateDate",
                component: "NDatePicker",
                label: a("crew.oilForm.date"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                componentProps: {
                    disabled: i,
                    type: "date",
                    valueFormat: "yyyy-MM-dd",
                    placeholder: a("crew.oilForm.date")
                },
                rules: [
                    {
                        required: !0,
                        type: "string",
                        message: a("crew.oilForm.date"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "assessor",
                component: "NInput",
                label: a("crew.oilForm.assessor"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                componentProps: {
                    disabled: i,
                    placeholder: a("crew.oilForm.assessor")
                },
                rules: [
                    {
                        required: !0,
                        type: "string",
                        message: a("crew.oilForm.assessor"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "managementCompany",
                component: "NInput",
                label: a("crew.oilForm.company"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                componentProps: {
                    disabled: i,
                    placeholder: a("crew.oilForm.company")
                }
            },
            {
                field: "imo",
                component: "NInput",
                label: a("crew.oilForm.IMO"),
                labelWidth: 100,
                giProps: {
                    span: 3
                },
                componentProps: {
                    placeholder: a("crew.oilForm.IMO"),
                    disabled: !0
                }
            },
            {
                field: "remark",
                component: "NInput",
                label: a("crew.oilForm.remark"),
                labelWidth: 100,
                giProps: {
                    span: 6
                },
                componentProps: {
                    disabled: i,
                    placeholder: a("crew.oilForm.remark")
                }
            },
            {
                field: "competenceAssessment",
                component: "NRadioGroup",
                label: a("crew.oilForm.assessment"),
                labelWidth: 200,
                giProps: {
                    span: 3
                },
                hidden: ()=>N.value,
                componentProps: {
                    disabled: i,
                    placeholder: a("crew.oilForm.assessment"),
                    options: [
                        {
                            value: 0,
                            label: a("crew.oilForm.competent")
                        },
                        {
                            value: 1,
                            label: a("crew.oilForm.notCompetent")
                        }
                    ],
                    onUpdateValue: (t)=>{
                        I(t === 0);
                    }
                },
                rules: [
                    {
                        required: !0,
                        type: "number",
                        message: a("crew.oilForm.assessment"),
                        trigger: [
                            "blur"
                        ]
                    }
                ]
            },
            {
                field: "blackRemarks",
                component: "NInput",
                label: "",
                showLabel: !1,
                giProps: {
                    span: 8
                },
                hidden: ()=>N.value,
                componentProps: {
                    disabled: g
                }
            }
        ];
        return {
            methods: {
                async updateCrewNameList (t, m) {
                    const E = await _({
                        vesselId: +t,
                        rankId: m
                    });
                    P.value = E;
                },
                updateReadOnly: (t)=>{
                    i.value = t;
                },
                updateEdict: (t)=>{
                    v.value = t, C.value = !v.value;
                },
                updateHidden: (t)=>{
                    f.value = t;
                },
                updateShipTypeId: (t)=>{
                    N.value = t;
                },
                updateCrew: (t)=>{
                    C.value = t;
                }
            },
            addOilSchemas: p,
            addMasterEvFileSchemas: l,
            addCeEvFileSchemas: o,
            addEvFileSchemas: b
        };
    };
    function G(c) {
        return {
            1: {
                color: "rgba(23, 182, 235, 0.12)",
                textColor: "rgba(23, 182, 235, 1)",
                borderColor: "rgba(23, 182, 235, 0.50)"
            },
            2: {
                color: "rgba(227, 107, 181, 0.12)",
                textColor: "rgba(227, 107, 181, 1)",
                borderColor: "rgba(227, 107, 181, 0.50)"
            },
            3: {
                color: "rgba(148, 99, 226, 0.12)",
                textColor: "rgba(148, 99, 226, 1)",
                borderColor: "rgba(148, 99, 226, 0.50)"
            },
            4: {
                color: "rgba(33, 128, 241, 0.12)",
                textColor: "rgba(33, 128, 241, 1)",
                borderColor: "rgba(33, 128, 241, 0.50)"
            },
            5: {
                color: "rgba(63, 195, 63, 0.12)",
                textColor: "rgba(63, 195, 63, 1)",
                borderColor: "rgba(63, 195, 63, 0.50)"
            },
            6: {
                color: "rgba(33, 128, 241, 0.12)",
                textColor: "rgba(33, 128, 241, 1)",
                borderColor: "rgba(33, 128, 241, 0.50)"
            },
            7: {
                color: "rgba(210, 76, 76, 0.12)",
                textColor: "rgba(210, 76, 76, 1)",
                borderColor: "rgba(210, 76, 76, 0.50)"
            },
            8: {
                color: "rgba(63, 195, 63, 0.12)",
                textColor: "rgba(63, 195, 63, 1)",
                borderColor: "rgba(63, 195, 63, 0.50)"
            }
        }[c];
    }
    const H = await R(), Q = await D(), { t: n } = U(), w = O(), W = [
        {
            label: "是",
            labelEn: "Yes",
            value: "1"
        },
        {
            label: "否",
            labelEn: "No",
            value: "0"
        }
    ], Z = [
        {
            label: "优秀",
            labelEn: "Excellent",
            value: "excellent"
        },
        {
            label: "良好",
            labelEn: "Good",
            value: "good"
        },
        {
            label: "一般",
            labelEn: "Normal",
            value: "normal"
        },
        {
            label: "较差",
            labelEn: "Bad",
            value: "bad"
        }
    ], j = [
        {
            label: "提升",
            labelEn: "Promotion",
            value: "1"
        },
        {
            label: "上次评估不足是否改善",
            labelEn: "Improve After Last Evaluation",
            value: "2"
        },
        {
            label: "再次聘用",
            labelEn: "Re-employment",
            value: "3"
        },
        {
            label: "培训或转岗",
            labelEn: "Re-training Or Changing Position",
            value: "4"
        },
        {
            label: "解聘",
            labelEn: "No Re-employment",
            value: "5"
        }
    ];
    ie = function() {
        return {
            columns: [
                {
                    title: n("crew.No"),
                    key: "",
                    width: 60,
                    render (r, u) {
                        return u + 1;
                    }
                },
                {
                    title: n("crew.evaluation.crewName"),
                    key: "crewName",
                    width: 120,
                    render: (r)=>w.getLocale === "en" ? r.crewNameEn : r.crewName
                },
                {
                    title: n("crew.evaluation.vesselName"),
                    key: "vesselId",
                    width: 120,
                    render (r) {
                        const u = A.find((g)=>g.id === r.vesselId);
                        return w.getLocale === "en" ? u?.shipNameEn : u?.shipName;
                    }
                },
                {
                    title: n("crew.evaluation.rank"),
                    key: "rankId",
                    width: 120,
                    render: (r)=>{
                        const u = H.find((v)=>v.id == r.rankId) || {}, g = Number(u.deptType) || 0, i = $(g), f = w.getLocale === "en" ? u.shortNameEn || "-" : u.name || "-";
                        return s(T, {
                            style: {
                                backgroundColor: i.backgroundColor,
                                color: i.textColor,
                                borderColor: i.borderColor,
                                borderWidth: "1px",
                                borderStyle: "solid",
                                borderRadius: "4px",
                                padding: "2px 8px"
                            },
                            bordered: !1
                        }, {
                            default: ()=>f
                        });
                    }
                },
                {
                    title: n("crew.evaluation.assessor"),
                    key: "assessor",
                    width: 120
                },
                {
                    title: n("crew.evaluation.evaluationDate"),
                    key: "evaluateDate",
                    width: 120
                },
                {
                    title: n("crew.evaluation.status"),
                    key: "status",
                    width: 120,
                    render: (r)=>{
                        const u = Q.find((i)=>i.value == r.status) || {
                            label: r.status,
                            labelEn: r.status
                        }, g = G(r.status);
                        return s(T, {
                            color: g,
                            bordered: !1
                        }, {
                            default: ()=>w.getLocale === "en" ? u.labelEn : u.label
                        });
                    }
                }
            ]
        };
    };
    ce = function() {
        const c = d("captain"), r = d(!1), u = d(5), g = d(5), i = d([]), f = d([]), v = {
            setTitle: (e)=>{
                c.value = e;
            },
            setTotal: (e)=>{
                u.value = e;
            },
            setaverageLeft: (e)=>{
                g.value = e;
            },
            updateReadOnly: (e)=>{
                r.value = e;
            },
            getLeftData: (e)=>{
                i.value = e;
            },
            getRightData: (e)=>{
                f.value = e;
            }
        }, N = [
            {
                key: w.getLocale === "en" ? "contentEn" : "contentCn",
                title: ()=>s("span", {}, `${n("crew.oilTable.the")} ${n(`crew.oilTable.${c.value}`)} ${n("crew.oilTable.title")}`),
                titleAlign: "center",
                align: "left",
                ellipsis: !1,
                titleColSpan: 2,
                colSpan: (e, l)=>l === i.value.length - 1 ? 1 : 2
            },
            {
                title: "",
                key: "remark",
                titleAlign: "center",
                colSpan: (e, l)=>l === i.value.length - 1 ? 2 : 1,
                render: (e, l)=>{
                    if (l === i.value.length - 1) return s(h, {
                        modelValue: e.remark ?? "",
                        value: e.remark,
                        style: {
                            width: "1000px"
                        },
                        align: "left",
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue: (o)=>{
                            e.remark = o;
                        }
                    });
                }
            },
            {
                title: n("crew.oilTable.score"),
                key: "score",
                width: 140,
                titleAlign: "center",
                align: "center",
                render: (e)=>e.isScore ? e.score : e.isText ? s(h, {
                        modelValue: e.remark ?? "",
                        value: e.remark,
                        align: "left",
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue: (l)=>{
                            e.remark = l;
                        }
                    }) : s(L, {
                        modelValue: e.score ?? 0,
                        value: e.score,
                        disabled: r.value,
                        min: 1,
                        max: 5,
                        showButton: !1,
                        onUpdateValue: (l)=>{
                            e.score = l ?? 0;
                            const o = i.value.filter((t)=>!t.isScore && !t.isText), b = o.reduce((t, m)=>t + (m.score || 0), 0), p = o.length > 0 ? b / o.length : 0, k = i.value.find((t)=>t.isScore);
                            k && (k.score = Math.round(p * 10) / 10), i.value[i.value.length - 1].score = p.toFixed(2);
                        }
                    })
            }
        ], C = [
            {
                key: "title",
                title: ()=>s("span", {}, `${n("crew.oilTable.prefix")} ${n(`crew.oilTable.${c.value}`)} ${n("crew.oilTable.afterfix")}`),
                ellipsis: !1,
                titleAlign: "center",
                align: "left",
                titleColSpan: 2,
                colSpan: (e, l)=>l < 11 ? 2 : l === 11 || l === 12 ? 3 : 1,
                render: (e, l)=>{
                    if (l === 12) return s(S, {
                        value: e.isYes ?? "",
                        disabled: r.value,
                        onUpdateValue: (p)=>{
                            e.isYes = p;
                        }
                    }, j.map((p)=>s(x, {
                            label: w.getLocale === "en" ? p.labelEn : p.label,
                            value: p.value
                        })));
                    const o = n(e.title), b = [];
                    return (e.required || l === 11) && b.push(s("span", {
                        style: {
                            color: "red",
                            marginRight: "4px"
                        }
                    }, "*")), b.unshift(s("span", {
                        style: e.isTitle ? {
                            fontWeight: "bold"
                        } : {}
                    }, o)), s("span", {}, b);
                }
            },
            {
                title: "",
                key: "remark",
                titleAlign: "center",
                colSpan: (e, l)=>l > 12 ? 2 : 1,
                render: (e, l)=>{
                    if (l > 12) return s(h, {
                        modelValue: e.remark ?? "",
                        value: e.remark,
                        style: {
                            width: "1000px"
                        },
                        align: "left",
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue: (o)=>{
                            e.remark = o;
                        }
                    });
                }
            },
            {
                title: n("crew.oilTable.score"),
                key: "score",
                width: 140,
                titleAlign: "center",
                align: "center",
                render: (e, l)=>{
                    if (l < 10) return s(L, {
                        modelValue: e.score,
                        value: e.score,
                        disabled: r.value,
                        min: 1,
                        max: 5,
                        showButton: !1,
                        onUpdateValue: (o)=>{
                            e.score = o ?? 0;
                            const b = f.value.filter((m)=>!m.isScore && !m.isText), p = b.reduce((m, E)=>m + (E.score || 0), 0), k = b.length > 0 ? p / b.length : 0, t = f.value.find((m)=>m.isScore);
                            t && (t.score = Math.round(k * 10) / 10), f.value[10].score = k.toFixed(2);
                        }
                    });
                    if (l === 10) return e.score;
                    if (l > 12 && l < 19) return s(h, {
                        modelValue: e.remark ?? "",
                        value: e.remark,
                        align: "left",
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue: (o)=>{
                            e.remark = o;
                        }
                    });
                }
            }
        ], I = [
            {
                title: n("crew.No"),
                key: "",
                width: 50,
                titleAlign: "center",
                align: "center",
                ellipsis: !1,
                render (e, l) {
                    return l < 5 ? 1 : l < 8 ? 2 : 3;
                },
                rowSpan: (e, l)=>l === 0 ? 5 : l === 5 ? 3 : 1
            },
            {
                title: n("crew.master.item"),
                key: "item",
                width: 360,
                titleAlign: "center",
                align: "left",
                ellipsis: !1,
                render: (e)=>n(e.item)
            },
            {
                title: n("crew.master.YN"),
                key: "YN",
                width: 120,
                titleAlign: "center",
                align: "center",
                ellipsis: !1,
                colSpan: (e, l)=>l === 8 ? 2 : 1,
                render: (e, l)=>l === 8 ? s(h, {
                        value: e.company,
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue (o) {
                            e.company = o;
                        }
                    }) : s(S, {
                        value: e.YN || "",
                        disabled: r.value,
                        onUpdateValue: (o)=>{
                            e.YN = o;
                        }
                    }, W.map((o)=>s(x, {
                            label: w.getLocale === "en" ? o.labelEn : o.label,
                            value: o.value
                        })))
            },
            {
                title: n("crew.master.remark"),
                key: "remark",
                width: 120,
                titleAlign: "center",
                align: "left",
                ellipsis: !1,
                render: (e)=>s(h, {
                        value: e.remark,
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue (l) {
                            e.remark = l;
                        }
                    })
            }
        ], P = [
            {
                title: n("crew.No"),
                key: "",
                width: 50,
                titleAlign: "center",
                align: "center",
                ellipsis: !1,
                render (e, l) {
                    return l < 5 ? 1 : l < 8 ? 2 : 3;
                },
                rowSpan: (e, l)=>l === 0 ? 5 : l === 5 ? 3 : 1
            },
            {
                title: n("crew.master.item"),
                key: "item",
                width: 360,
                titleAlign: "center",
                align: "left",
                ellipsis: !1,
                render: (e)=>n(e.item)
            },
            {
                title: n("crew.master.YN"),
                key: "YN",
                width: 120,
                titleAlign: "center",
                align: "center",
                ellipsis: !1,
                colSpan: (e, l)=>l === 8 ? 2 : 1,
                render: (e, l)=>l === 8 ? s(h, {
                        value: e.company,
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue (o) {
                            e.company = o;
                        }
                    }) : s(S, {
                        value: e.YN || "",
                        disabled: r.value,
                        onUpdateValue: (o)=>{
                            e.YN = o;
                        }
                    }, W.map((o)=>s(x, {
                            label: w.getLocale === "en" ? o.labelEn : o.label,
                            value: o.value
                        })))
            },
            {
                title: n("crew.master.remark"),
                key: "remark",
                width: 120,
                titleAlign: "center",
                align: "left",
                ellipsis: !1,
                render: (e)=>s(h, {
                        value: e.remark,
                        disabled: r.value,
                        type: "textarea",
                        onUpdateValue (l) {
                            e.remark = l;
                        }
                    })
            }
        ], V = [
            {
                title: n("crew.evaluationContents"),
                key: "item",
                width: 180,
                titleAlign: "center",
                align: "left",
                rowSpan: (e, l)=>5,
                ellipsis: !1,
                render: (e)=>n(e.item)
            },
            {
                title: n("crew.items"),
                key: "category",
                ellipsis: !1,
                titleAlign: "center",
                align: "left",
                render: (e)=>n(e.category)
            },
            {
                title: n("crew.results"),
                key: "result",
                titleAlign: "center",
                align: "left",
                width: 480,
                ellipsis: !1,
                render: (e)=>s(S, {
                        value: e.result || "",
                        disabled: r.value,
                        style: {
                            width: "480px",
                            "text-align": "center"
                        },
                        onUpdateValue (l) {
                            e.result = l;
                        }
                    }, Z.map((l)=>s(x, {
                            value: l.value,
                            label: w.getLocale === "en" ? l.labelEn : l.label,
                            style: {
                                width: "100px",
                                "text-align": "left"
                            }
                        })))
            }
        ];
        return {
            addColumns: I,
            addCEColumns: P,
            addEvColumns: V,
            addOilColumns: N,
            addOilTColumns: C,
            methods: v
        };
    };
});
export { le as a, te as b, se as c, oe as d, ie as e, ae as f, ce as g, ne as s, re as u, __tla };
