import { V as Q, Z as n, N as K, iJ as Oe, i2 as qe, bk as X, ae as Le, gI as me, hc as Re, d as Be, dc as Ve, e as Fe, f as $e, r as S, a as oe, iC as ae, iK as ne, iL as le, fc as Me, iM as Ue, iN as We, iI as ze, e6 as He, c as F, o as D, w as u, j as s, W as Ke, U as Qe, h as Xe, F as Je, a9 as Ze, l as f, M as Ye, E as $, i as ie, A as M, ee as Ge, ch as et, aA as tt, H as ot, aI as at, p as nt, B as lt, ca as it, gW as se, gX as ce, X as st, iO as re, iP as ct, iQ as rt, cZ as pt, __tla as __tla_0 } from "./index-9PRMimni.js";
import { a as ut } from "./download-CIBdrxiA.js";
import { B as dt } from "./BasicForm-dL_oCSPM.js";
import { u as mt } from "./useForm-CKmgcynv.js";
import { r as ft } from "./dictUtils-D8jA3mBt.js";
import { t as pe, c as fe, a as U, C as W, g as ue } from "./helper-ICuV4Aye.js";
import { _ as be } from "./Flex-CTSf12gq.js";
import { B as bt } from "./Table-0PViRYCf.js";
import { _ as ht } from "./TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js";
import { u as _t } from "./useRole-C-Zpngq4.js";
import { u as gt } from "./useOnceQuery-DP5CXD6A.js";
import { e as he, j as yt, f as jt, h as vt } from "./jobPlan-DTKoW_aS.js";
import { e as St } from "./template-rpthWlT9.js";
import { g as wt } from "./equipmentMainLibrary-bJTzj5mC.js";
import { h as Pt } from "./head-aneRfQQJ.js";
import { _ as xt } from "./Modal.vue_vue_type_script_setup_true_lang-B-DVuWuG.js";
import { u as Ct } from "./useSearchParam-B08ob60x.js";
import { _ as Et } from "./index.vue_vue_type_script_setup_true_lang-DLNIUGAj.js";
import { i as y } from "./includes-DdMWPj0t.js";
import { h as z } from "./has-CjqcrIOV.js";
import { i as kt } from "./isEmpty-BUg1OsQj.js";
import "./base64Conver-4Xd-Hzyx.js";
import "./Render.vue_vue_type_script_lang-DKUYY0Zw.js";
import "./SingleImageUpload-CNx4b9eC.js";
import "./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";
import "./componentSetting-DVhNDBTO.js";
import "./ImageUpload-DUsnro3W.js";
import "./vuedraggable.umd-Co2xEC3p.js";
import "./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";
import "./tabsView-BXskTdVh.js";
import "./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";
import "./propTypes-CebMRUpe.js";
import "./BasicSelect-C_uwzMkE.js";
import "./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";
import "./dictionary-BRse4lkf.js";
import "./index-DkvzUEqh.js";
import "./index-kKnqLkWM.js";
import "./AutoComplete-Dv1Bqed4.js";
import "./TreeSelect-BZh2DeCh.js";
import "./usePageCache-DluHn7Yy.js";
import "./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";
import "./componentMap-CElCaWis.js";
import "./format-DgF6KtHk.js";
import "./omit-B2_8Y6O_.js";
import "./_flatRest-DBrd2CHT.js";
import "./flatten-DeoUZLdb.js";
import "./print-CT_2hrjP.js";
import "./basicModal.vue_vue_type_script_setup_true_lang-CsJydKhW.js";
import "./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";
import "./useModal-CO65vga3.js";
import "./useTimeout-BxFilWvD.js";
import "./findIndex-BgUIH3i1.js";
import "./toInteger-DQeH-nF-.js";
import "./filter-D9g65sdN.js";
let Ro;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })()
]).then(async ()=>{
    const w = X(), { t: r } = Q(), Nt = ()=>({
            columns: [
                {
                    title: r("common.messagedefine.Num"),
                    key: "num",
                    width: 60,
                    render: (d, p)=>{
                        const { jobStatus: a, jobAlertStatus: _ } = d;
                        return n(be, {
                            class: "overflow-hidden",
                            align: "center",
                            size: "small",
                            wrap: !1
                        }, [
                            a === 2 ? n(K, {
                                size: "14px",
                                color: "#EDB716"
                            }, {
                                default: ()=>n(Oe)
                            }) : _ === 5 ? n(K, {
                                size: "14px",
                                color: "#767C82"
                            }, {
                                default: ()=>n(qe)
                            }) : n("div", {
                                class: "w-[12px] h-[12px]"
                            }),
                            p + 1
                        ]);
                    }
                },
                {
                    title: r("jobPlan.equipmentName"),
                    key: "equipmentName",
                    width: 150
                },
                {
                    title: r("jobPlan.jobCode"),
                    key: "jobCode",
                    width: 140
                },
                {
                    title: r("jobPlan.jobTitle"),
                    key: "jobTitle",
                    width: 140
                },
                {
                    title: r("jobPlan.jobDescription"),
                    key: "jobDescription",
                    width: 130
                },
                {
                    title: r("jobPlan.cyclingPattern"),
                    key: w.getLocale === "en" ? "cyclingPatternNameEn" : "cyclingPatternName",
                    width: 95
                },
                {
                    title: r("jobPlan.frequency"),
                    key: w.getLocale === "en" ? "frequencyNameEn" : "frequencyName",
                    width: 100
                },
                {
                    title: r("jobPlan.picDiscipline"),
                    key: w.getLocale === "en" ? "picNameEn" : "picName",
                    width: 55
                },
                {
                    title: r("jobPlan.department"),
                    key: w.getLocale === "en" ? "departmentNameEn" : "departmentName",
                    width: 70
                },
                {
                    title: r("jobPlan.lastDoneDate"),
                    key: "lastDoneDate",
                    width: 130
                },
                {
                    title: r("jobPlan.planDate"),
                    key: "nextDueDate",
                    width: 100
                },
                {
                    title: r("jobPlan.daysLeft"),
                    key: "daysLeft",
                    width: 60
                },
                {
                    title: r("jobPlan.lastDoneHrs"),
                    key: "lastDoneHrs",
                    width: 60
                },
                {
                    title: r("jobPlan.nextDueHrs"),
                    key: "nextDueHrs",
                    width: 60
                },
                {
                    title: r("jobPlan.remainHrs"),
                    key: "hoursRemain",
                    width: 60
                },
                {
                    title: r("jobPlan.jobStatus"),
                    key: w.getLocale === "en" ? "jobStatusNameEn" : "jobStatusName",
                    width: 150,
                    render (d) {
                        const { jobAlertStatus: p, jobStatusName: a, jobStatusNameEn: _, jobApprovalStatusName: g, jobApprovalStatusNameEn: O } = d, P = w.getLocale === "en" ? _ : a, x = w.getLocale === "en" ? O : g, T = `${P} ${x ? ` , ${x}` : ""}`;
                        return pe[p] ? n(Le, {
                            class: "rounded-[5px]",
                            color: pe[p]
                        }, {
                            default: ()=>T
                        }) : T;
                    }
                },
                {
                    title: r("jobPlan.criticalToSafetyColumn"),
                    key: "criticalToSafety",
                    width: 80,
                    render: (d)=>ft(fe, d.criticalToSafety)
                },
                {
                    title: r("jobPlan.toleranceStartDate"),
                    key: "toleranceDateStart",
                    width: 105
                },
                {
                    title: r("jobPlan.toleranceEndDate"),
                    key: "toleranceDateEnd",
                    width: 105
                }
            ]
        }), de = X(), { t: b } = Q(), Tt = await St({
        roleType: 2,
        roleCategory: 1
    }).then((h)=>me(h, (d)=>({
                label: d.name,
                labelEn: d.shortNameEn,
                value: d.id,
                raw: d
            }))), H = await Re(), At = H && H.length > 0 ? H[0].id : "", It = async ({ shipId: h, code: d = "0", model: p = "0", serialNumber: a = "0" })=>(await he({
            shipId: h,
            code: d,
            model: p,
            serialNumber: a
        })).map((g)=>({
                label: g.name,
                value: g.code + "-" + g.model + "-" + g.serialNumber,
                isLeaf: g.ifLeaf,
                raw: g
            })), Dt = await wt("pms_frequency"), _e = me(Dt, (h)=>({
            label: h.label,
            labelEn: h.labelEn,
            value: +h.value,
            raw: h
        }));
    function Ot(h) {
        return {
            schemas: [
                {
                    field: "jobDueDate",
                    hidden: !0
                },
                {
                    field: "equipmentName",
                    component: "NInput",
                    label: b("jobPlan.equipmentName")
                },
                {
                    field: "dataRange",
                    component: "NDatePicker",
                    label: b("jobPlan.jobDueDate"),
                    componentProps: ({ formAction: p })=>{
                        const { setFieldsValue: a } = p;
                        return {
                            valueFormat: "yyyy-MM-dd",
                            type: "daterange",
                            onUpdateFormattedValue: (_)=>{
                                const g = _.join(",");
                                a({
                                    jobDueDate: g
                                });
                            }
                        };
                    }
                },
                {
                    field: "jobCodeOrTitle",
                    component: "NInput",
                    label: b("jobPlan.jobTitle"),
                    componentProps: {
                        placeholder: b("jobPlan.searchPlaceholder")
                    }
                },
                {
                    field: "criticalToSafety",
                    component: "NSelect",
                    label: b("jobPlan.criticalToSafety"),
                    componentProps: {
                        options: fe,
                        "label-field": de.getLocale === "en" ? "labelEn" : "label"
                    }
                },
                {
                    field: "jobStatus",
                    component: "BasicSelect",
                    label: b("jobPlan.jobStatus"),
                    componentProps: {
                        block: !0,
                        cacheKey: "job_plan_status"
                    }
                },
                {
                    field: "pic",
                    component: "BasicSelect",
                    label: b("jobPlan.pic"),
                    componentProps: {
                        block: !0,
                        options: Tt
                    }
                },
                {
                    field: "jobInterval",
                    label: b("jobPlan.frequency"),
                    slot: "jobIntervalSlot"
                },
                {
                    field: "frequency",
                    defaultValue: Pt(_e)?.value,
                    hidden: !0
                },
                {
                    field: "equipmentType",
                    component: "NCascader",
                    label: b("jobPlan.equipmentType"),
                    componentProps: {
                        style: {
                            width: "100%"
                        },
                        checkStrategy: "parent",
                        showPath: !1,
                        allowCheckingNotLoaded: !0,
                        options: h.equipmentTypeOptions,
                        remote: !0,
                        renderLabel: (p)=>n("span", {
                                title: p.label
                            }, p.label),
                        onLoad: async (p)=>{
                            p.children = await It({
                                shipId: h.shipId.value,
                                code: p.raw.code,
                                model: p.raw.model,
                                serialNumber: p.raw.serialNumber
                            });
                        }
                    }
                },
                {
                    field: "equipmentCode",
                    component: "NInput",
                    label: b("jobPlan.equipmentCode")
                },
                {
                    field: "cyclingPattern",
                    component: "BasicSelect",
                    label: b("jobPlan.cyclingPattern"),
                    componentProps: {
                        block: !0,
                        cacheKey: "job_cycling_pattern"
                    }
                },
                {
                    field: "department",
                    component: "NSelect",
                    label: b("jobPlan.department"),
                    componentProps: {
                        labelField: de.getLocale === "en" ? "labelEn" : "label",
                        options: [
                            {
                                label: "甲板部",
                                labelEn: "Deck Department",
                                value: 1
                            },
                            {
                                label: "机舱部",
                                labelEn: "Engine Department",
                                value: 2
                            }
                        ]
                    }
                },
                {
                    field: "jobApprovalStatus",
                    component: "BasicSelect",
                    label: b("jobPlan.approvalStatus"),
                    componentProps: {
                        block: !0,
                        cacheKey: "job_plan_approval_status"
                    }
                },
                {
                    field: "isTolerance",
                    component: "BasicSelect",
                    label: b("jobPlan.tolerance"),
                    componentProps: {
                        block: !0,
                        options: [
                            {
                                label: "是",
                                labelEn: "YES",
                                value: "1"
                            },
                            {
                                label: "否",
                                labelEn: "NO",
                                value: "0"
                            }
                        ]
                    }
                }
            ],
            initShipValue: At
        };
    }
    let qt;
    qt = [
        "title"
    ];
    Ro = Be({
        __name: "index",
        setup (h) {
            const d = X(), { hasPermission: p } = Ve(), { t: a } = Q(), _ = Fe(), g = $e(), O = pt(), { hasSomeRole: P } = _t(), x = S(!1), T = S({
                list: [],
                total: 0
            }), C = S(), J = S(), Z = S(), m = oe({
                overdue: {
                    isActive: !1,
                    i18nStr: a("jobPlan.overdue"),
                    icon: n(le),
                    iconBgClass: [
                        "bg-[#e55357]"
                    ],
                    field: "overdue",
                    count: "N/A"
                },
                dueToday: {
                    isActive: !1,
                    i18nStr: a("jobPlan.dueToday"),
                    icon: n(ne),
                    iconBgClass: [
                        "bg-[#fb8a5a]"
                    ],
                    field: "dueToday",
                    count: "N/A"
                },
                alert: {
                    isActive: !1,
                    i18nStr: a("jobPlan.alert"),
                    icon: n(ae),
                    iconBgClass: [
                        "bg-[#ffc55e]"
                    ],
                    field: "alert",
                    count: "N/A"
                },
                criticalOverdue: {
                    isActive: !1,
                    i18nStr: a("jobPlan.criticalOverdue"),
                    icon: n(le),
                    iconBgClass: [
                        "bg-[#e55357]"
                    ],
                    field: "criticalOverdue",
                    count: "N/A"
                },
                criticalDueToday: {
                    isActive: !1,
                    i18nStr: a("jobPlan.criticalDueToday"),
                    icon: n(ne),
                    iconBgClass: [
                        "bg-[#fb8a5a]"
                    ],
                    field: "criticalDueToday",
                    count: "N/A"
                },
                criticalAlert: {
                    isActive: !1,
                    i18nStr: a("jobPlan.criticalAlert"),
                    icon: n(ae),
                    iconBgClass: [
                        "bg-[#ffc55e]"
                    ],
                    field: "criticalAlert",
                    count: "N/A"
                }
            });
            function Y(e) {
                return e === null ? {
                    label: "",
                    icon: null
                } : {
                    add: {
                        label: a("common.fillWorkOrderText"),
                        icon: n(ct, {
                            class: "text-[#0EC06A] text-[14px]"
                        })
                    },
                    edit: {
                        label: a("common.editWorkOrderText"),
                        icon: n(re, {
                            class: "text-[#0EC06A] text-[14px]"
                        })
                    },
                    view: {
                        label: a("common.viewWorkOrderText"),
                        icon: n(re, {
                            class: "text-[#0EC06A] text-[14px]"
                        })
                    }
                }[e];
            }
            function G(e) {
                const { jobStatus: t, jobApprovalStatus: o } = e, i = y([
                    7
                ], t) && y([
                    5
                ], o) ? "view" : "edit";
                return {
                    edit: {
                        label: a("common.optionsEditText"),
                        icon: se(ce.edit)
                    },
                    view: {
                        label: a("jobPlan.viewEditDetails"),
                        icon: n(rt, {
                            class: "text-[#0EC06A] text-[14px]"
                        })
                    }
                }[i];
            }
            const ge = oe({
                width: 220,
                title: a("common.optionsText"),
                key: "action",
                fixed: "right",
                align: "center",
                render (e) {
                    const { jobOrderId: t, canEdit: o } = e, i = y([
                        null,
                        void 0,
                        ""
                    ], t) ? o ? "add" : null : o ? "edit" : "view";
                    return n(ht, {
                        style: "text",
                        actions: [
                            {
                                label: a("common.optionsViewText"),
                                labelShow: !1,
                                icon: n(Me, {
                                    class: "text-[#2180F1] text-[14px]"
                                }),
                                onClick: ()=>{
                                    _.push({
                                        name: "jobPlanDetails",
                                        query: {
                                            id: e.planId
                                        }
                                    });
                                }
                            },
                            {
                                label: Y(i).label,
                                labelShow: !1,
                                icon: Y(i).icon,
                                ifShow: !!i && !y([
                                    6
                                ], e.jobStatus) && p([
                                    "pms:jobPlan:fillWorkOrder"
                                ]) && U === W.VESSEL,
                                onClick: ()=>{
                                    _.push({
                                        name: "jobOrder",
                                        query: {
                                            planId: e.planId,
                                            shipId: e.shipId,
                                            id: e.jobOrderId,
                                            type: i
                                        }
                                    });
                                }
                            },
                            {
                                label: a("common.optionsDelayText"),
                                labelShow: !1,
                                icon: n(Ue, {
                                    class: "text-[#0EC06A] text-[14px]"
                                }),
                                ifShow: (!e.hasOwnProperty("jobApprovalStatus") || e.jobApprovalStatus === null) && !y([
                                    6
                                ], e.jobStatus) && P([
                                    "chief_engineer"
                                ]) && U === W.VESSEL,
                                onClick: ()=>{
                                    J.value.showModal("delay", e);
                                }
                            },
                            {
                                label: a("common.completeHistoryText"),
                                labelShow: !1,
                                icon: n(We, {
                                    class: "text-[#0EC06A] text-[14px]"
                                }),
                                onClick: ()=>{
                                    _.push({
                                        name: "jobOrderHistory",
                                        query: {
                                            planId: e.planId,
                                            shipId: e.shipId
                                        }
                                    });
                                }
                            },
                            {
                                label: a("common.print"),
                                labelShow: !1,
                                icon: n(ze, {
                                    class: "text-[#0EC06A] text-[14px]"
                                }),
                                onClick: ()=>{
                                    _.push({
                                        name: "component_pdfPrint",
                                        query: {
                                            pageName: "JobPlanPrintItem",
                                            id: e.planId
                                        }
                                    });
                                }
                            },
                            {
                                label: G(e).label,
                                labelShow: !1,
                                icon: G(e).icon,
                                ifShow: ye(e),
                                onClick: ()=>{
                                    const { jobStatus: l, jobApprovalStatus: j } = e;
                                    if ((y([
                                        7
                                    ], l) && y([
                                        5
                                    ], j) ? "view" : void 0) === "view") {
                                        _.push({
                                            name: "jobPlanEditApprove",
                                            query: {
                                                id: e.planId,
                                                type: "view"
                                            }
                                        });
                                        return;
                                    } else _.push({
                                        name: "jobPlanEdit",
                                        query: {
                                            id: e.planId
                                        }
                                    });
                                }
                            },
                            {
                                label: a("jobPlan.cancel.cancelButtonText"),
                                labelShow: !1,
                                icon: n(He, {
                                    class: "text-red-500 text-[14px]"
                                }),
                                ifShow: y([
                                    1,
                                    2,
                                    3
                                ], e.jobStatus) && P([
                                    "chief_officer",
                                    "second_engineer",
                                    "chief_engineer",
                                    "technical_superintendent"
                                ]) && U === W.VESSEL,
                                onClick: ()=>{
                                    Z.value.handleOpenModal({
                                        record: e
                                    });
                                }
                            }
                        ]
                    });
                }
            });
            function ye(e) {
                const { jobStatus: t, jobApprovalStatus: o } = e;
                if (!P([
                    "chief_officer",
                    "second_engineer",
                    "chief_engineer",
                    "technical_superintendent"
                ])) return !1;
                let i = !1;
                return (y([
                    1,
                    2,
                    3
                ], t) || y([
                    7
                ], t) && y([
                    5,
                    6
                ], o)) && (i = !0), i;
            }
            function je() {
                if (kt(g.query) || x.value) return {};
                const { shipId: e, productCode: t, jobStatus: o, ...i } = g.query, l = {
                    ...e && {
                        shipId: Number(e)
                    },
                    ...t && {
                        equipmentCode: t
                    },
                    ...o && {
                        jobStatus: o
                    },
                    ...i
                };
                return E(l), Object.keys(l).forEach((j)=>{
                    if (y(j, "is")) {
                        const v = j.replace("is", "").charAt(0).toLowerCase() + j.slice(3);
                        z(m, v) && (m[v].isActive = l[j] === "1");
                    }
                }), x.value = !0, l;
            }
            async function ve(e, t) {
                !z(I(), "shipId") && q.value && (E({
                    shipId: R
                }), await Pe(L.value), t.shipId = R), q.value && (q.value = !1), L.value = t.shipId, E({
                    shipId: t.shipId
                }), t.equipmentType && (t.equipmentType = t.equipmentType.split("-")[0]);
                let o = ke();
                o && (E(o), t = o), Se(t);
                const i = ue(m), l = await yt({
                    ...e,
                    ...je(),
                    ...t,
                    ...i
                });
                return T.value = l, l;
            }
            async function Se(e) {
                try {
                    const t = await jt({
                        ...e
                    });
                    for(const o in m)z(t, o) ? m[o].count = t[o] : m[o].count = "N/A";
                } catch (t) {
                    console.error("Error fetching statistics:", t);
                    for(const o in m)m[o].count = "N/A";
                }
            }
            function we(e) {
                for(const t in m)t !== e.field && (m[t].isActive = !1);
                e.isActive = !e.isActive, C.value?.restReload();
            }
            function A() {
                for(const e in m)m[e].isActive = !1;
                C.value?.restReload(), gt();
            }
            const q = S(!0), L = S(), ee = S([]);
            async function Pe(e) {
                const t = await he({
                    shipId: e || R.toString(),
                    code: "0",
                    model: "0",
                    serialNumber: "0"
                });
                ee.value = t.map((o)=>({
                        label: o.name,
                        value: o.code + "-" + o.model + "-" + o.serialNumber,
                        isLeaf: o.ifLeaf,
                        raw: o
                    }));
            }
            const { columns: xe } = Nt(), { schemas: Ce, initShipValue: R } = Ot({
                equipmentTypeOptions: ee,
                shipId: L
            }), [Ee, { getFieldsValue: I, setFieldsValue: E }] = mt({
                gridProps: {
                    cols: 6
                },
                schemas: Ce
            }), { restoreSearchParams: ke } = Ct(I, E);
            async function Ne() {
                if (!C.value?.getTableRef) return;
                const e = C.value?.getTableRef() ?? {
                    pagination: {}
                }, { page: t, pageSize: o } = e.pagination, i = ue(m);
                await vt({
                    ...I(),
                    language: d.locale.split("_")[0],
                    ...i,
                    pageNum: t,
                    pageSize: o
                }).then((l)=>{
                    console.log("Export successful", l), l.status !== 200 && Promise.reject("Export failed");
                    let j = "job_plan_list.xlsx";
                    const v = l.headers?.["content-disposition"];
                    if (v) {
                        const k = v.match(/filename\*\s*=\s*([^']*)''([^;]+)/i);
                        if (k && k[2]) j = decodeURIComponent(k[2].trim());
                        else {
                            const N = v.match(/filename="?([^"]+)"?/i);
                            N && N[1] && (j = decodeURIComponent(N[1].trim()));
                        }
                    }
                    ut(l.data, j), O.success(a("jobPlan.exportSuccess"));
                }).catch((l)=>{
                    console.error("Export failed", l);
                });
            }
            return (e, t)=>{
                const o = K, i = be, l = Ke, j = Ye, v = Qe, k = et, N = tt, Te = Ge, te = ot, Ae = lt, Ie = at, De = st;
                return D(), F(De, null, {
                    default: u(()=>[
                            s(l, {
                                bordered: !1,
                                class: "proCard"
                            }, {
                                default: u(()=>[
                                        s(v, {
                                            "x-gap": "20",
                                            "y-gap": "20",
                                            cols: 6
                                        }, {
                                            default: u(()=>[
                                                    (D(!0), Xe(Je, null, Ze(f(m), (c)=>(D(), F(j, {
                                                            key: c.field
                                                        }, {
                                                            default: u(()=>[
                                                                    s(l, {
                                                                        bordered: "",
                                                                        class: $([
                                                                            "group",
                                                                            "proCard",
                                                                            "transition-transform",
                                                                            "duration-300",
                                                                            "ease-in-out",
                                                                            "hover:bg-[#66d99c]",
                                                                            "hover:text-white",
                                                                            "hover:translate-y-[-10px]",
                                                                            "shadow-[rgba(149,157,165,0.2)_0px_8px_24px]",
                                                                            {
                                                                                "bg-[#66d99c]": c.isActive
                                                                            },
                                                                            {
                                                                                "text-white": c.isActive
                                                                            }
                                                                        ]),
                                                                        "content-class": "px-4 py-2 cursor-pointer select-none",
                                                                        onClick: (B)=>we(c)
                                                                    }, {
                                                                        default: u(()=>[
                                                                                ie("div", {
                                                                                    class: "w-full overflow-hidden text-lg text-ellipsis whitespace-nowrap",
                                                                                    title: c.i18nStr
                                                                                }, M(c.i18nStr), 9, qt),
                                                                                s(i, {
                                                                                    align: "center",
                                                                                    justify: "space-between"
                                                                                }, {
                                                                                    default: u(()=>[
                                                                                            s(i, {
                                                                                                class: $([
                                                                                                    "p-[4px]",
                                                                                                    "rounded-full",
                                                                                                    "group-hover:bg-white",
                                                                                                    ...c.iconBgClass
                                                                                                ]),
                                                                                                align: "center",
                                                                                                justify: "center"
                                                                                            }, {
                                                                                                default: u(()=>[
                                                                                                        s(o, {
                                                                                                            class: "text-white group-hover:text-[#66d99c]",
                                                                                                            component: c.icon,
                                                                                                            size: "20"
                                                                                                        }, null, 8, [
                                                                                                            "component"
                                                                                                        ])
                                                                                                    ]),
                                                                                                _: 2
                                                                                            }, 1032, [
                                                                                                "class"
                                                                                            ]),
                                                                                            ie("div", {
                                                                                                class: $([
                                                                                                    "text-2xl",
                                                                                                    "font-bold",
                                                                                                    "group-hover:text-white",
                                                                                                    {
                                                                                                        "text-red-500": f(y)(c.field, "overdue")
                                                                                                    }
                                                                                                ])
                                                                                            }, M(c.count), 3)
                                                                                        ]),
                                                                                    _: 2
                                                                                }, 1024)
                                                                            ]),
                                                                        _: 2
                                                                    }, 1032, [
                                                                        "class",
                                                                        "onClick"
                                                                    ])
                                                                ]),
                                                            _: 2
                                                        }, 1024))), 128))
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                _: 1
                            }),
                            s(l, {
                                bordered: !1,
                                class: "proCard mt-2"
                            }, {
                                default: u(()=>[
                                        s(f(dt), {
                                            onRegister: f(Ee),
                                            onSubmit: A,
                                            onReset: A
                                        }, {
                                            jobIntervalSlot: u(({ model: c, field: B })=>[
                                                    s(Te, null, {
                                                        default: u(()=>[
                                                                s(k, {
                                                                    value: c[B],
                                                                    "onUpdate:value": (V)=>c[B] = V,
                                                                    showButton: !1
                                                                }, null, 8, [
                                                                    "value",
                                                                    "onUpdate:value"
                                                                ]),
                                                                s(N, {
                                                                    value: c.frequency,
                                                                    "onUpdate:value": (V)=>c.frequency = V,
                                                                    options: f(_e),
                                                                    clearable: !1,
                                                                    "label-field": f(d).getLocale === "en" ? "labelEn" : "label",
                                                                    style: {
                                                                        width: "140px"
                                                                    },
                                                                    placeholder: ""
                                                                }, null, 8, [
                                                                    "value",
                                                                    "onUpdate:value",
                                                                    "options",
                                                                    "label-field"
                                                                ])
                                                            ]),
                                                        _: 2
                                                    }, 1024)
                                                ]),
                                            _: 1
                                        }, 8, [
                                            "onRegister"
                                        ])
                                    ]),
                                _: 1
                            }),
                            s(l, {
                                bordered: !1,
                                class: "proCard mt-2"
                            }, {
                                default: u(()=>[
                                        s(f(bt), {
                                            ref_key: "basicTableRef",
                                            ref: C,
                                            columns: f(xe),
                                            request: (c)=>ve(c, f(I)()),
                                            "row-key": (c)=>c.planId,
                                            autoScrollX: !0,
                                            actionColumn: f(ge),
                                            "virtual-scroll": "",
                                            printConfig: {
                                                rowKey: "planId",
                                                header: f(a)("common.menu.jobPlan"),
                                                documentTitle: ""
                                            },
                                            tableSetting: {
                                                redo: !0,
                                                size: !0,
                                                setting: !0,
                                                fullscreen: !0,
                                                striped: !0,
                                                print: !0,
                                                query: !1,
                                                export: !1,
                                                bordered: !0
                                            }
                                        }, {
                                            tableTitle: u(()=>[
                                                    s(te, null, {
                                                        default: u(()=>[
                                                                s(i)
                                                            ]),
                                                        _: 1
                                                    })
                                                ]),
                                            toolbar: u(()=>[
                                                    s(te, null, {
                                                        default: u(()=>[
                                                                s(Ie, {
                                                                    trigger: "hover"
                                                                }, {
                                                                    trigger: u(()=>[
                                                                            s(Ae, {
                                                                                type: "primary",
                                                                                strong: "",
                                                                                bordered: "",
                                                                                secondary: "",
                                                                                class: "size-7",
                                                                                onClick: Ne
                                                                            }, {
                                                                                icon: u(()=>[
                                                                                        (D(), F(it(f(se)(f(ce).export, "text-[#0ec06a] text-[24px]"))))
                                                                                    ]),
                                                                                _: 1
                                                                            })
                                                                        ]),
                                                                    default: u(()=>[
                                                                            nt(" " + M(f(a)("jobPlan.export")), 1)
                                                                        ]),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        _: 1
                                                    })
                                                ]),
                                            _: 1
                                        }, 8, [
                                            "columns",
                                            "request",
                                            "row-key",
                                            "actionColumn",
                                            "printConfig"
                                        ])
                                    ]),
                                _: 1
                            }),
                            s(xt, {
                                ref_key: "ModalRef",
                                ref: J,
                                onSuccess: A
                            }, null, 512),
                            s(Et, {
                                ref_key: "CancelModalRef",
                                ref: Z,
                                onRefresh: A
                            }, null, 512)
                        ]),
                    _: 1
                });
            };
        }
    });
});
export { Ro as default, __tla };
