const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CircularFeedbackStatus-qp8d-9wp.js","assets/CustomCard.vue_vue_type_script_setup_true_lang-374ERk20.js","assets/BasicForm-dL_oCSPM.js","assets/Render.vue_vue_type_script_lang-DKUYY0Zw.js","assets/index-9PRMimni.js","assets/index-CZ_CrH4_.css","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/workbench-DEgqNpqd.js","assets/useForm-CKmgcynv.js","assets/usePageCache-DluHn7Yy.js","assets/Flex-CTSf12gq.js","assets/CustomTable.vue_vue_type_script_setup_true_lang-CVzOsXR0.js","assets/useECharts-XZ1IwN24.js","assets/useTimeout-BxFilWvD.js","assets/tslib.es6-CSJU3tT9.js","assets/columns-1dSLzo5A.js","assets/index-DatBjkM3.js","assets/dateUtil-BtafrT1f.js","assets/format-DgF6KtHk.js","assets/helper-D9DF1oLX.js","assets/find-D_h_aJYR.js","assets/findIndex-BgUIH3i1.js","assets/toInteger-DQeH-nF-.js","assets/includes-DdMWPj0t.js","assets/CircularList-CLP8JTHs.js","assets/CrewChangeStatus-D8Qjt37H.js","assets/DeficiencyStatus-FADLdeLw.js","assets/MyPendingTaskList-DxcXDMbT.js","assets/NonConformityStatus-C68UagLj.js","assets/NoticeFeedbackStatus-CtlAA8MO.js","assets/NoticeList-DEfWy_fb.js","assets/PurchaseOrderStatus-BmLVs4Hg.js","assets/PurchaseOrderTracking-CmlbACUK.js","assets/SparePartsStockStatus-BcVamdV6.js","assets/VesselCertificateStatus-BpcDncaM.js","assets/VesselJobStatus-CufpUDU9.js","assets/VesselManagementReportList-DgSCXAm5.js","assets/VesselCriticalEquipmentJobPlan-DGA-uhxg.js","assets/ShippingRiskWarningList-D9ZxeX9X.js","assets/VesselTracking-H0dAeNI_.js"])))=>i.map(i=>d[i]);
import { ec as i, br as r, d as he, V as ve, dk as be, bk as Ee, dW as ke, e as xe, c0 as G, r as p, a4 as X, l as e, ay as Ce, hn as Ne, aw as Se, ho as De, cn as Te, c as _, o as u, w as s, j as n, i as c, W as we, H as Le, h as N, F as A, gE as Pe, h9 as Ie, D as S, aG as b, B as Re, N as Ve, hp as Be, p as Ae, A as E, E as O, ca as Oe, ed as We, a9 as Fe, hq as $e, aa as Z, cC as Me, X as ze, cZ as Qe, ac as je, hc as He, v as qe, __tla as __tla_0 } from "./index-9PRMimni.js";
import { D as U } from "./vuedraggable.umd-Co2xEC3p.js";
import { A as Je, B as Ke, C as Ge, D as Xe } from "./workbench-DEgqNpqd.js";
let ut;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })()
]).then(async ()=>{
    function Ze() {
        const W = {
            MyPendingTask: {
                iconBg: "#8FDE47",
                routerName: "notice_myTask"
            },
            VesselCertificateExpiredWarning: {
                iconBg: "#EE642E",
                routerName: "vesselCertificate",
                routerQuery: {
                    queryWarning: 1
                }
            },
            DeficiencyExpiredWarning: {
                iconBg: "#EC4F51",
                routerName: "HSQE_deficiencyList",
                routerQuery: {
                    expirationWarningStatus: 1
                }
            },
            NonConformityExpiredWarning: {
                iconBg: "#2FDEEA",
                routerName: "HSQE_deficiencyNcList",
                routerQuery: {
                    expirationWarningStatus: 1
                }
            },
            JobOverdueNumber: {
                iconBg: "#ED5153",
                routerName: "PMS_jobPlan",
                routerQuery: {
                    isOverdue: 1
                }
            },
            JobExpiredNumber: {
                iconBg: "#5781F0",
                routerName: "PMS_jobPlan",
                routerQuery: {
                    isDueToday: 1
                }
            },
            JobExpiredWarningNumber: {
                iconBg: "#5881F0",
                routerName: "PMS_jobPlan",
                routerQuery: {
                    isAlert: 1
                }
            },
            VesselDrillWarning: {
                iconBg: "#627BF4"
            },
            CrewCertificateExpiredWarning: {
                iconBg: "#2FDEEA",
                routerName: "Onboard_list",
                routerQuery: {
                    alertStatus: 2
                }
            },
            DeficiencyPendingNumber: {
                iconBg: "#97E14A",
                routerName: "HSQE_deficiencyList"
            },
            NonConformityPendingNumber: {
                iconBg: "#5781F0",
                routerName: "HSQE_deficiencyNcList"
            },
            SparePartsStockWarning: {
                iconBg: "#23DBEB",
                routerName: "sparePartsStock",
                routerQuery: {
                    statusId: 2
                }
            },
            ShippingRiskWarning: {
                iconBg: "#EE642E"
            },
            ContingencyFundWarning: {
                iconBg: "#EA5B22"
            },
            SystemFileExpiredWarning: {
                iconBg: "#59EBE9"
            }
        }, d = {
            CircularFeedbackStatus: i(()=>r(()=>import("./CircularFeedbackStatus-qp8d-9wp.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]))),
            CircularList: i(()=>r(()=>import("./CircularList-CLP8JTHs.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([43,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,34,35,36,37,38,39,40,41,42]))),
            CrewChangeStatus: i(()=>r(()=>import("./CrewChangeStatus-D8Qjt37H.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([44,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]))),
            DeficiencyStatus: i(()=>r(()=>import("./DeficiencyStatus-FADLdeLw.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __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,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]))),
            MyPendingTaskList: i(()=>r(()=>import("./MyPendingTaskList-DxcXDMbT.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([46,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,34,35,36,37,38,39,40,41,42]))),
            NonConformityStatus: i(()=>r(()=>import("./NonConformityStatus-C68UagLj.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([47,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]))),
            NoticeFeedbackStatus: i(()=>r(()=>import("./NoticeFeedbackStatus-CtlAA8MO.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([48,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]))),
            MyDispatchNotice: i(()=>r(()=>import("./NoticeFeedbackStatus-CtlAA8MO.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([48,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]))),
            NoticeList: i(()=>r(()=>import("./NoticeList-DEfWy_fb.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([49,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,34,35,36,37,38,39,40,41,42]))),
            PurchaseOrderStatus: i(()=>r(()=>import("./PurchaseOrderStatus-BmLVs4Hg.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([50,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]))),
            PurchaseOrderTracking: i(()=>r(()=>import("./PurchaseOrderTracking-CmlbACUK.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([51,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,34,35,36,37,38,39,40,41,42]))),
            SparePartsStockStatus: i(()=>r(()=>import("./SparePartsStockStatus-BcVamdV6.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([52,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]))),
            VesselCertificateStatus: i(()=>r(()=>import("./VesselCertificateStatus-BpcDncaM.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([53,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]))),
            VesselJobStatus: i(()=>r(()=>import("./VesselJobStatus-CufpUDU9.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([54,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]))),
            VesselManagementReportList: i(()=>r(()=>import("./VesselManagementReportList-DgSCXAm5.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([55,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,34,35,36,37,38,39,40,41,42]))),
            VesselCriticalEquipmentJobPlan: i(()=>r(()=>import("./VesselCriticalEquipmentJobPlan-DGA-uhxg.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([56,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]))),
            ShippingRiskWarningList: i(()=>r(()=>import("./ShippingRiskWarningList-D9ZxeX9X.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([57,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,34,35,36,37,38,39,40,41,42]))),
            VesselTracking: i(()=>r(()=>import("./VesselTracking-H0dAeNI_.js").then(async (m)=>{
                        await m.__tla;
                        return m;
                    }), __vite__mapDeps([58,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])))
        };
        return {
            keyInformationConfig: W,
            dashboardConfig: d
        };
    }
    let Ue, Ye, et, tt, ot, at, nt, st, it;
    Ue = {
        class: "w-full flex"
    };
    Ye = {
        class: "flex-1 overflow-hidden"
    };
    et = {
        class: "font-semibold text-base"
    };
    tt = {
        class: "font-medium text-base"
    };
    ot = {
        key: 0,
        class: "w-[360px] ml-[8px]"
    };
    at = {
        class: "font-medium"
    };
    nt = {
        class: "flex-1 overflow-hidden flex items-center"
    };
    st = {
        class: "font-normal flex-1 overflow-hidden ml-[8px]"
    };
    it = he({
        name: "dashboard_workbench",
        __name: "index",
        setup (W) {
            const { t: d } = ve(), { getDarkTheme: Y } = be(), F = Qe(), R = Ee(), ee = ke(), te = xe(), [oe, $] = G(), [ae, M] = G(), V = p(""), v = p([]), y = p([]), g = p([]), m = p(!1), z = X(()=>m.value ? 5 : 6), { keyInformationConfig: k, dashboardConfig: ne } = Ze(), x = p({}), f = p(!1), C = p({}), D = p(!1), T = p(!1), Q = X(()=>e(Y)), j = p(0);
            Ce(()=>D.value, (t)=>{
                t && me();
            }, {
                immediate: !0
            });
            async function w() {
                try {
                    T.value = !0;
                    const t = await Xe();
                    v.value = t?.dashboardList || [], y.value = (t?.selectedDashboard || []).filter((a)=>+a.modelType == 1), g.value = (t?.selectedDashboard || []).filter((a)=>+a.modelType == 2), V.value = t?.viewCode, T.value = !1;
                } catch  {
                    v.value = [], T.value = !1;
                }
            }
            function se() {
                m.value = !0;
            }
            async function ie() {
                try {
                    f.value = !0, await Ke({
                        viewCode: V.value,
                        modelList: v.value?.map((t)=>t.id),
                        defaultList: [
                            ...y.value?.map((t)=>t.id),
                            ...g.value?.map((t)=>t.id)
                        ]
                    }), F.success(d("common.optionsEditSuccessText")), await w(), m.value = !1, f.value = !1;
                } catch  {
                    f.value = !1;
                }
            }
            async function re() {
                try {
                    f.value = !0, await Ge({
                        viewCode: V.value
                    }), F.success(d("common.optionsSuccessText")), await w(), m.value = !1, f.value = !1;
                } catch  {
                    f.value = !1;
                }
            }
            function le(t, a) {
                a === 1 ? y.value.push(t) : a === 2 && g.value.push(t);
            }
            function ce(t, a) {
                a === 1 ? y.value = y.value.filter((l)=>l.id !== t.id) : a === 2 && (g.value = g.value.filter((l)=>l.id !== t.id));
            }
            async function de() {
                await w(), m.value = !1;
            }
            function ue(t) {
                if (!k[t.componentName]?.routerName) return;
                const a = C.value?.shipIds?.toString()?.split(",");
                let l = "";
                a?.length === 1 && (l = a[0]), te.push({
                    name: k[t.componentName]?.routerName,
                    query: {
                        shipId: l,
                        ...k[t.componentName]?.routerQuery || {}
                    }
                });
            }
            async function me() {
                const t = await Je(C.value);
                x.value = x.value || {};
                for (const l of t || [])x.value[l.typeCode] = l.quantity;
                const a = await Ne({
                    isHandled: 0,
                    category: 2,
                    ...C.value
                });
                x.value.MyPendingTask = a?.total;
            }
            async function H() {
                D.value = !1, await je(), D.value = !0;
            }
            async function pe() {
                const t = await He();
                C.value = {
                    shipIds: t?.[0]?.id
                }, await H();
            }
            async function _e() {
                await w(), await pe();
            }
            return Se(()=>{
                _e();
            }), De(()=>{
                window.scrollTo({
                    top: j.value
                });
            }), Te((t, a, l)=>{
                j.value = document.documentElement.scrollTop || document.body.scrollTop, l();
            }), (t, a)=>{
                const l = Pe, B = Le, L = we, q = Ve, P = Re, fe = We, ye = Me, ge = ze;
                return u(), _(ge, {
                    loading: e(T)
                }, {
                    default: s(()=>[
                            n(L, {
                                bordered: !1,
                                "content-class": "pt-[8px] pb-[8px]",
                                class: "mb-[8px] ui-card-small"
                            }, {
                                default: s(()=>[
                                        n(B, {
                                            align: "center",
                                            justify: "space-between"
                                        }, {
                                            default: s(()=>[
                                                    a[3] || (a[3] = c("span", {
                                                        class: "font-semibold text-base"
                                                    }, "Dashboard", -1)),
                                                    n(B, {
                                                        align: "center"
                                                    }, {
                                                        default: s(()=>[
                                                                e(m) ? (u(), N(A, {
                                                                    key: 1
                                                                }, [
                                                                    n(l, {
                                                                        key: "cancel",
                                                                        tooltip: e(d)("common.cancelText"),
                                                                        iconSize: 22,
                                                                        type: "tertiary",
                                                                        iconType: "nIcon",
                                                                        onClick: de
                                                                    }, {
                                                                        iconSlot: s(()=>[
                                                                                n(e(Ie))
                                                                            ]),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "tooltip"
                                                                    ]),
                                                                    n(l, {
                                                                        key: "reset",
                                                                        tooltip: e(d)("dashboard.workbench.iconReset"),
                                                                        iconSize: 20,
                                                                        loading: e(f),
                                                                        iconName: "reset",
                                                                        type: "tertiary",
                                                                        onClick: re
                                                                    }, null, 8, [
                                                                        "tooltip",
                                                                        "loading"
                                                                    ]),
                                                                    n(l, {
                                                                        key: "complete",
                                                                        tooltip: e(d)("dashboard.workbench.iconComplete"),
                                                                        loading: e(f),
                                                                        iconSize: 22,
                                                                        iconName: "complete",
                                                                        onClick: a[2] || (a[2] = (o)=>ie())
                                                                    }, null, 8, [
                                                                        "tooltip",
                                                                        "loading"
                                                                    ])
                                                                ], 64)) : (u(), N(A, {
                                                                    key: 0
                                                                }, [
                                                                    n(l, {
                                                                        key: "setting",
                                                                        tooltip: e(d)("dashboard.workbench.iconSetting"),
                                                                        iconSize: 20,
                                                                        iconName: "setting",
                                                                        iconType: "lineIcon",
                                                                        class: "cursor-pointer",
                                                                        onClick: a[0] || (a[0] = (o)=>se())
                                                                    }, null, 8, [
                                                                        "tooltip"
                                                                    ]),
                                                                    n(l, {
                                                                        key: "refresh",
                                                                        tooltip: e(d)("dashboard.workbench.iconRefresh"),
                                                                        iconSize: 17,
                                                                        iconName: "refresh",
                                                                        iconType: "lineIcon",
                                                                        class: "cursor-pointer",
                                                                        onClick: a[1] || (a[1] = (o)=>H())
                                                                    }, null, 8, [
                                                                        "tooltip"
                                                                    ])
                                                                ], 64))
                                                            ]),
                                                        _: 1
                                                    })
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                _: 1
                            }),
                            c("div", Ue, [
                                c("div", Ye, [
                                    n(e(ae), null, {
                                        default: s(({ element: o, modelType: I })=>[
                                                c("div", {
                                                    style: b(`background: ${e(Q) ? "rgba(0, 0, 0, 0.9)" : "rgba(229, 231, 235, 0.9)"}`),
                                                    class: "absolute top-0 bottom-0 left-0 right-0 rounded-[10px] z-[99] flex justify-center items-center"
                                                }, [
                                                    +o.isDefault != 1 ? (u(), _(P, {
                                                        key: 0,
                                                        type: "error",
                                                        size: "tiny",
                                                        round: "",
                                                        ghost: "",
                                                        class: "absolute top-[10px] left-[10px] pl-[12px] pr-[12px]",
                                                        onClick: (J)=>ce(o, I)
                                                    }, {
                                                        default: s(()=>[
                                                                n(q, {
                                                                    component: e(Be),
                                                                    size: "18px"
                                                                }, null, 8, [
                                                                    "component"
                                                                ])
                                                            ]),
                                                        _: 2
                                                    }, 1032, [
                                                        "onClick"
                                                    ])) : S("", !0),
                                                    c("div", null, [
                                                        n(P, {
                                                            type: "primary",
                                                            size: "small",
                                                            round: ""
                                                        }, {
                                                            default: s(()=>[
                                                                    Ae(E(e(R).getLocale === "en" ? o.modelNameEn : o.modelName), 1)
                                                                ]),
                                                            _: 2
                                                        }, 1024)
                                                    ])
                                                ], 4)
                                            ]),
                                        _: 1
                                    }),
                                    n(L, {
                                        bordered: !1,
                                        "header-class": "pb-0",
                                        class: "mb-[8px] ui-card-small"
                                    }, {
                                        header: s(()=>[
                                                c("span", et, E(e(d)("dashboard.workbench.keyInformation")), 1)
                                            ]),
                                        default: s(()=>[
                                                n(e(U), {
                                                    list: e(y),
                                                    options: {
                                                        group: "keyInformation"
                                                    },
                                                    disabled: !e(m),
                                                    "item-key": "id",
                                                    class: "flex flex-wrap -ml-[8px]"
                                                }, {
                                                    item: s(({ element: o })=>[
                                                            c("div", {
                                                                style: b(`width: calc((100% - ${8 * e(z)}px) / ${e(z)}); min-height: 100px; cursor: ${e(m) ? "move" : "default"}`),
                                                                class: "mt-[8px] ml-[8px] relative"
                                                            }, [
                                                                e(m) ? (u(), _(e(M), {
                                                                    element: o,
                                                                    modelType: 1,
                                                                    key: "keyInformationMask"
                                                                }, null, 8, [
                                                                    "element"
                                                                ])) : S("", !0),
                                                                n(L, {
                                                                    bordered: !1,
                                                                    class: O([
                                                                        "ui-card-small",
                                                                        "w-full",
                                                                        "h-full",
                                                                        "rounded-[8px]",
                                                                        e(k)[o.componentName]?.routerName ? "isSkip" : "",
                                                                        e(Q) ? "card-dark" : "card-light"
                                                                    ]),
                                                                    "content-class": "flex flex-col justify-between",
                                                                    onClick: (I)=>ue(o)
                                                                }, {
                                                                    default: s(()=>[
                                                                            c("div", tt, E(e(R).getLocale === "en" ? o.modelNameEn : o.modelName), 1),
                                                                            n(B, {
                                                                                align: "center",
                                                                                justify: "space-between",
                                                                                class: "max-h-[40px]"
                                                                            }, {
                                                                                default: s(()=>[
                                                                                        c("i", {
                                                                                            class: O([
                                                                                                "iconfont",
                                                                                                "font-medium",
                                                                                                "text-[30px]",
                                                                                                `${o.iconName}`
                                                                                            ]),
                                                                                            style: b(`color: ${e(k)[o.componentName]?.iconBg}`)
                                                                                        }, null, 6),
                                                                                        c("div", {
                                                                                            style: b(`color: ${e(ee).textColor1}`),
                                                                                            class: "text-[30px] font-medium cursor-pointer font-[PingFang SC, PingFang SC] number"
                                                                                        }, E(e(x)[o.componentName] || 0), 5)
                                                                                    ]),
                                                                                _: 2
                                                                            }, 1024)
                                                                        ]),
                                                                    _: 2
                                                                }, 1032, [
                                                                    "class",
                                                                    "onClick"
                                                                ])
                                                            ], 4)
                                                        ]),
                                                    _: 1
                                                }, 8, [
                                                    "list",
                                                    "disabled"
                                                ])
                                            ]),
                                        _: 1
                                    }),
                                    n(e(U), {
                                        list: e(g),
                                        options: {
                                            group: "dashboard"
                                        },
                                        disabled: !e(m),
                                        "item-key": "id",
                                        class: "flex flex-wrap -ml-[8px]"
                                    }, {
                                        item: s(({ element: o })=>[
                                                c("div", {
                                                    style: b(`width: calc((100% - 16px) / 2); cursor: ${e(m) ? "move" : "default"}`),
                                                    class: "mb-[8px] ml-[8px] relative"
                                                }, [
                                                    e(m) ? (u(), _(e(M), {
                                                        element: o,
                                                        modelType: 2,
                                                        key: "dashboardMask"
                                                    }, null, 8, [
                                                        "element"
                                                    ])) : S("", !0),
                                                    (u(), _(Oe(e(ne)[o.componentName]), {
                                                        key: o.componentName,
                                                        componentItem: o,
                                                        searchParams: e(C),
                                                        refreshComponent: e(D),
                                                        isEditable: e(m),
                                                        useSource: "myFleet"
                                                    }, null, 8, [
                                                        "componentItem",
                                                        "searchParams",
                                                        "refreshComponent",
                                                        "isEditable"
                                                    ]))
                                                ], 4)
                                            ]),
                                        _: 1
                                    }, 8, [
                                        "list",
                                        "disabled"
                                    ])
                                ]),
                                e(m) ? (u(), N("div", ot, [
                                    n(L, {
                                        bordered: !1,
                                        segmented: {
                                            content: !0
                                        },
                                        title: e(d)("dashboard.workbench.addComponents"),
                                        class: "ui-card-small"
                                    }, {
                                        default: s(()=>[
                                                e(v)?.length ? (u(), _(fe, {
                                                    key: 0,
                                                    class: "max-h-[650px]"
                                                }, {
                                                    default: s(()=>[
                                                            n(e(oe), null, {
                                                                default: s(({ data: o, title: I, modelType: J, selectedKeys: K })=>[
                                                                        c("div", null, [
                                                                            c("div", at, E(I), 1),
                                                                            (u(!0), N(A, null, Fe(o, (h)=>(u(), N("div", {
                                                                                    key: h.id,
                                                                                    style: b(`opacity: ${K.includes(h.id) ? "0.6" : "1"}`),
                                                                                    class: "flex items-center mt-[16px] mb-[16px]"
                                                                                }, [
                                                                                    c("div", nt, [
                                                                                        n(P, {
                                                                                            type: "primary",
                                                                                            strong: "",
                                                                                            secondary: "",
                                                                                            circle: "",
                                                                                            class: "size-8"
                                                                                        }, {
                                                                                            icon: s(()=>[
                                                                                                    c("i", {
                                                                                                        class: O([
                                                                                                            "iconfont",
                                                                                                            h.iconName
                                                                                                        ])
                                                                                                    }, null, 2)
                                                                                                ]),
                                                                                            _: 2
                                                                                        }, 1024),
                                                                                        c("span", st, E(e(R).getLocale === "en" ? h.modelNameEn : h.modelName), 1)
                                                                                    ]),
                                                                                    K.includes(h.id) ? S("", !0) : (u(), _(P, {
                                                                                        key: 0,
                                                                                        type: "primary",
                                                                                        strong: "",
                                                                                        secondary: "",
                                                                                        size: "small",
                                                                                        class: "h-[22px]",
                                                                                        onClick: (rt)=>le(h, J)
                                                                                    }, {
                                                                                        default: s(()=>[
                                                                                                n(q, {
                                                                                                    component: e($e)
                                                                                                }, null, 8, [
                                                                                                    "component"
                                                                                                ])
                                                                                            ]),
                                                                                        _: 2
                                                                                    }, 1032, [
                                                                                        "onClick"
                                                                                    ]))
                                                                                ], 4))), 128))
                                                                        ])
                                                                    ]),
                                                                _: 1
                                                            }),
                                                            (u(), _(e($), Z({
                                                                data: (e(v) || []).filter((o)=>+o.modelType == 1),
                                                                title: e(d)("dashboard.workbench.keyInformation"),
                                                                modelType: 1,
                                                                selectedKeys: (e(y) || []).map((o)=>o.id)
                                                            }, {
                                                                key: e(d)("dashboard.workbench.keyInformation")
                                                            }), null, 16)),
                                                            (u(), _(e($), Z({
                                                                data: (e(v) || []).filter((o)=>+o.modelType == 2),
                                                                title: e(d)("dashboard.workbench.dashboard"),
                                                                modelType: 2,
                                                                selectedKeys: (e(g) || []).map((o)=>o.id)
                                                            }, {
                                                                key: e(d)("dashboard.workbench.dashboard")
                                                            }), null, 16))
                                                        ]),
                                                    _: 1
                                                })) : (u(), _(ye, {
                                                    key: 1,
                                                    class: "mt-[30px] mb-[30px]"
                                                }))
                                            ]),
                                        _: 1
                                    }, 8, [
                                        "title"
                                    ])
                                ])) : S("", !0)
                            ])
                        ]),
                    _: 1
                }, 8, [
                    "loading"
                ]);
            };
        }
    });
    ut = qe(it, [
        [
            "__scopeId",
            "data-v-f30429c9"
        ]
    ]);
});
export { ut as default, __tla };
