import { r as c, V as E, bk as j, Z as F, ae as xe, d as Re, u as Se, f as ke, e as we, b as De, co as Te, a as Pe, gW as Le, gX as Ne, gJ as Ie, aw as Ae, d9 as Be, c as C, o as x, w as n, j as p, W as $e, l as r, ds as Q, H as Ve, D as V, aI as Ee, p as N, A as k, aE as W, B as Ue, i as w, X as He, c_ as Me, v as Oe, __tla as __tla_0 } from "./index-9PRMimni.js";
import { B as ze } from "./BasicForm-dL_oCSPM.js";
import { _ as Qe } from "./TableSelect.vue_vue_type_script_setup_true_lang-BAU5mgvB.js";
import { B as We } from "./Table-0PViRYCf.js";
import { _ as Ge } from "./TableAction.vue_vue_type_script_setup_true_lang-Bj_Y4LtN.js";
import { S as Xe, T as je, r as Je, s as G, R as Ke, u as Ze, c as Ye, U as et, V as tt } from "./template-rpthWlT9.js";
import { g as ot } from "./planner-BebmniHR.js";
import { _ as st, __tla as __tla_1 } from "./Modal.vue_vue_type_script_setup_true_lang-Cbc4NktB.js";
import { f as J } from "./hook-C9rOLWu_.js";
import { _ as nt } from "./index.vue_vue_type_script_setup_true_lang-BUzew2LL.js";
import { u as it } from "./useForm-CKmgcynv.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 "./props-CLtNejQT.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 "./usePageCache-DluHn7Yy.js";
import "./Flex-CTSf12gq.js";
import { __tla as __tla_2 } from "./modalSchemas-dKMYM0AT.js";
import "./helper-Czt-QYps.js";
import "./memoize-C3Z21RQJ.js";
let so;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_2;
        } catch  {}
    })()
]).then(async ()=>{
    const at = j(), { t: s } = E(), rt = await je(), lt = await Xe();
    function ct(R = {}) {
        const d = c(!1);
        return {
            addSchemas: [
                {
                    field: "reportNum",
                    label: s("hsqe.psc.reportNumber"),
                    component: "NInput",
                    componentProps: ()=>({
                            disabled: !0,
                            placeholder: s("hsqe.auditInspection.vesselInspection.formReportNumHint")
                        })
                },
                {
                    field: "reportDate",
                    label: s("hsqe.psc.raisedOn"),
                    component: "NDatePicker",
                    componentProps: {
                        type: "date",
                        valueFormat: "yyyy-MM-dd",
                        disabled: !0
                    },
                    rules: [
                        {
                            required: !0,
                            validator: (v, e)=>e != null && e !== "",
                            message: `${s("hsqe.psc.raisedOn")} ${s("common.required")}`,
                            trigger: [
                                "blur",
                                "change"
                            ]
                        }
                    ]
                },
                {
                    field: "editDateList",
                    label: s("hsqe.psc.inspectionFrom"),
                    component: "NDatePicker",
                    componentProps: {
                        type: "daterange",
                        valueFormat: "yyyy-MM-dd",
                        disabled: d
                    },
                    rules: [
                        {
                            required: !0,
                            validator: (v, e)=>e != null && e.length > 0,
                            message: `${s("hsqe.psc.inspectionFrom")} ${s("common.required")}`,
                            trigger: [
                                "blur",
                                "change"
                            ]
                        }
                    ]
                },
                {
                    field: "state",
                    component: "NSelect",
                    label: s("hsqe.psc.state"),
                    componentProps: {
                        disabled: d,
                        placeholder: s("hsqe.auditInspection.vesselInspection.formReportStateHint"),
                        options: lt,
                        filterable: !0,
                        "value-field": "id",
                        "label-field": at.getLocale === "en" ? "nameEn" : "name"
                    },
                    rules: [
                        {
                            required: !0,
                            validator: (v, e)=>e != null && e !== "",
                            message: `${s("hsqe.psc.state")} ${s("common.required")}`,
                            trigger: [
                                "blur",
                                "change"
                            ]
                        }
                    ]
                },
                {
                    field: "port",
                    label: s("hsqe.psc.port"),
                    slot: "visitPlace",
                    rules: [
                        {
                            required: !0,
                            message: `${s("hsqe.psc.port")} ${s("common.required")}`,
                            trigger: [
                                "blur"
                            ]
                        }
                    ]
                },
                {
                    field: "mouCode",
                    component: "NSelect",
                    label: s("hsqe.psc.mou"),
                    componentProps: {
                        disabled: d,
                        placeholder: s("hsqe.auditInspection.vesselInspection.formReportMouHint"),
                        options: rt
                    },
                    rules: [
                        {
                            required: !0,
                            validator: (v, e)=>e != null && e !== "",
                            message: `${s("hsqe.psc.mou")} ${s("common.required")}`,
                            trigger: [
                                "blur",
                                "change"
                            ]
                        }
                    ]
                },
                {
                    field: "reportResultList",
                    component: "NCheckbox",
                    componentProps: ({ model: v })=>({
                            disabled: d.value,
                            max: 1,
                            options: [
                                {
                                    value: 1,
                                    label: s("hsqe.psc.nilDeficiency")
                                },
                                {
                                    value: 2,
                                    label: s("hsqe.psc.detained")
                                }
                            ],
                            onUpdateValue: (e)=>{
                                const D = Array.isArray(e) ? e.filter((I)=>!isNaN(I)) : [];
                                R.handleChangeNilDef(D, v);
                            }
                        }),
                    giProps: {
                        span: 1
                    }
                },
                {
                    field: "reportUrlName",
                    label: s("hsqe.psc.pscReport"),
                    slot: "pscReport",
                    componentProps: {
                        disabled: d
                    },
                    rules: [
                        {
                            required: !0,
                            validator: (v, e)=>e != null && e !== "",
                            message: `${s("hsqe.psc.pscReport")} ${s("common.required")}`,
                            trigger: [
                                "blur",
                                "change"
                            ]
                        }
                    ]
                },
                {
                    field: "reportUrl"
                }
            ],
            methods: {
                setReadOnly: (v)=>{
                    d.value = v;
                }
            }
        };
    }
    const X = j(), { t: l } = E();
    function ut() {
        const R = [
            {
                key: "new",
                value: l("hsqe.rs.deficiencyStatus.new"),
                color: {
                    color: "#F0FFFB",
                    textColor: "#00C1A8",
                    borderColor: "#F0FFFB"
                }
            },
            {
                key: "un_rectified",
                value: l("hsqe.rs.deficiencyStatus.unrectified"),
                color: {
                    color: "#FFF0F0",
                    textColor: "#C10003",
                    borderColor: "#FFF0F0"
                }
            },
            {
                key: "pending_master_reviewed",
                value: l("hsqe.rs.deficiencyStatus.reviewed"),
                color: {
                    color: "#FFFCF0",
                    textColor: "#C18400",
                    borderColor: "#FFFCF0"
                }
            },
            {
                key: "un_verified",
                value: l("hsqe.rs.deficiencyStatus.unverified"),
                color: {
                    color: "#FFF0F0",
                    textColor: "#C10003",
                    borderColor: "#FFF0F0"
                }
            },
            {
                key: "closed",
                value: l("hsqe.rs.deficiencyStatus.closed"),
                color: {
                    color: "#F2F0FF",
                    textColor: "#BA4E9A",
                    borderColor: "#F2F0FF"
                }
            },
            {
                key: "master_return",
                value: l("hsqe.rs.deficiencyStatus.masterReturn"),
                color: {
                    color: "#F0FFFB",
                    textColor: "#00C1A8",
                    borderColor: "#F0FFFB"
                }
            },
            {
                key: "superintendent_return",
                value: l("hsqe.rs.deficiencyStatus.superintendentReturn"),
                color: {
                    color: "#F0F5FF",
                    textColor: "#0067C1",
                    borderColor: "#F0F5FF"
                }
            }
        ];
        return {
            columns: [
                {
                    title: l("hsqe.planner.no"),
                    key: "no"
                },
                {
                    title: l("hsqe.psc.deficiencyCode"),
                    key: "defectCode"
                },
                {
                    title: l("hsqe.auditInspection.vesselInspection.deficiency.description"),
                    key: "desc"
                },
                {
                    title: l("hsqe.psc.actionCode"),
                    key: "observation"
                },
                {
                    title: l("hsqe.auditInspection.vesselInspection.deficiency.dateRectify"),
                    key: "dueDate",
                    render: (a)=>J(new Date(a.dueDate))
                },
                {
                    title: l("hsqe.auditInspection.vesselInspection.deficiency.pic"),
                    key: "owner",
                    render (a) {
                        return F("span", {}, {
                            default: ()=>X.getLocale === "en" ? a.vesselPositionNameEn : a.vesselPositionName
                        });
                    }
                },
                {
                    title: l("hsqe.auditInspection.vesselInspection.deficiency.confirmation"),
                    key: "confirmation",
                    render (a) {
                        return F("span", {}, {
                            default: ()=>X.getLocale === "en" ? a.officePositionNameEn : a.officePositionName
                        });
                    }
                },
                {
                    title: l("hsqe.cdi.status"),
                    key: "status",
                    render (a) {
                        return F(xe, {
                            bordered: !1,
                            color: R.find((u)=>u.key === a.status)?.color
                        }, {
                            default: ()=>R.find((u)=>u.key === a.status)?.value
                        });
                    }
                }
            ]
        };
    }
    let pt;
    pt = Re({
        __name: "addPSC",
        setup (R) {
            const d = Se(), a = ke(), u = we(), v = De(), { t: e } = E(), D = Me(), I = Te({
                storage: localStorage
            }), g = c(!1), { addSchemas: K, methods: Z } = ct({
                handleChangeNilDef: he
            }), { setReadOnly: Y } = Z, { columns: ee } = ut(), te = c(0), [oe, { submit: se, getFieldsValue: ne, setFieldsValue: U }] = it({
                schemas: K,
                labelWidth: "auto",
                layout: "horizontal",
                collapsed: !0,
                gridProps: {
                    cols: 5,
                    xGap: 15
                },
                showActionButtonGroup: !1
            }), ie = Pe({
                width: 180,
                title: e("common.optionsText"),
                key: "action",
                fixed: "right",
                align: "center",
                render (t) {
                    return F(Ge, {
                        style: "text",
                        actions: [
                            {
                                label: e("common.optionsViewText"),
                                labelShow: !1,
                                icon: F("i", {
                                    class: "iconfont icon-View text-[#3F7AE9] text-[20px]"
                                }),
                                onClick: ()=>{
                                    u.push({
                                        name: "Add_HSQE_AuditInspection_ReportList_VesselInspection_DeficiencyReport",
                                        query: {
                                            id: t.id,
                                            type: "view"
                                        }
                                    });
                                }
                            },
                            {
                                label: e("common.optionsEditText"),
                                labelShow: !1,
                                icon: F("i", {
                                    class: "iconfont icon-a-Frame28"
                                }),
                                onClick: ()=>{
                                    t.status === "new" ? A.value?.showModal(q.value, a.query.uuid || m.value, t) : u.push({
                                        name: "Add_HSQE_AuditInspection_ReportList_VesselInspection_DeficiencyReport",
                                        query: {
                                            id: t.id,
                                            isEdit: 1,
                                            status: t.status
                                        }
                                    });
                                },
                                ifShow: ()=>t.editable && a.query.type !== "view"
                            },
                            {
                                label: e("common.optionsDelText"),
                                labelShow: !1,
                                icon: F("i", {
                                    class: "iconfont icon-Delete red"
                                }),
                                ifShow: ()=>t.status === "new" && a.query.type !== "view",
                                onPositiveClick: ()=>{
                                    ve(t);
                                },
                                onNegativeClick: ()=>{},
                                isConfirm: !0,
                                confirmContent: e("common.delPop.contRole")
                            },
                            {
                                label: e("common.exportText"),
                                labelShow: !1,
                                icon: Le(Ne.export, "text-[20px]"),
                                onClick: ()=>{
                                    fe(t);
                                }
                            }
                        ]
                    });
                }
            }), ae = {
                gridProps: {
                    cols: "2"
                },
                labelWidth: 80,
                submitButtonText: e("common.searchText"),
                showAdvancedButton: !1,
                schemas: [
                    {
                        field: "namePrefix",
                        component: "NInput",
                        label: e("hsqe.planner.modal.planPort")
                    }
                ]
            }, re = [
                {
                    title: e("hsqe.planner.modal.port"),
                    key: "port"
                },
                {
                    title: e("hsqe.planner.modal.country"),
                    key: "country"
                }
            ], T = c({}), m = c(), le = c(I.get(Ie, "")), ce = c(), A = c(), q = c(), H = c(!1), B = c(), P = c([]), ue = c(!1), b = c(!1);
            async function $() {
                const t = await G({
                    templateCode: "pscReport",
                    uuid: m.value
                });
                q.value = t, ce.value = t.reportNum, t.reportResultList = [];
                const o = [];
                t.nil_deficiency === 1 && o.push(1), t.detained === 1 && o.push(2), o.length > 0 && (t.reportResultList = o), console.error("res.reportResultList", t.reportResultList), t.reportResultList[0] == 1 ? b.value = !1 : b.value = !0, t.startDate && t.endDate && (t.editDateList = [
                    t.startDate,
                    t.endDate
                ]), U(t), pe(t);
                const i = v.getUserInfo.id, f = await Ke(i);
                ue.value = f?.isCaptain == "1", de(t), a.query.type == "view" && (g.value = !0), Y(g.value), L();
            }
            async function pe(t) {
                t.approveStatus == 3 ? H.value = !0 : H.value = !1;
            }
            function de(t) {
                t.reportUrlName && (P.value = [
                    {
                        id: "pscReport",
                        name: t.reportUrlName || t.reportUrlName_FileName,
                        url: t.reportUrl || t.reportUrlName_url,
                        status: a.query.type == "view" ? void 0 : "finished"
                    }
                ]);
            }
            function me(t) {
                return ot({
                    ...t,
                    ...r(T)
                });
            }
            function fe(t) {
                const { href: o } = u.resolve({
                    name: "Add_HSQE_AuditInspection_ReportList_exportDeficiencyPdf",
                    query: {
                        uuid: a.query.uuid,
                        id: t.id,
                        name: "PSC"
                    }
                });
                window.open(o, "_blank");
            }
            async function ye() {
                const t = await G({
                    templateCode: "pscReport",
                    uuid: m.value
                });
                return te.value = t.deficiencyList?.length || 0, {
                    list: t.deficiencyList || [],
                    total: t.deficiencyList?.length || 0
                };
            }
            function L() {
                B.value.reload();
            }
            async function ve(t) {
                let o = {
                    id: t.id
                };
                await Je(o), L(), d.success(e("common.delPop.success"));
            }
            function he(t, o) {
                let i = B.value.getDataSource();
                t && t.includes(1) ? (b.value = !1, i.length > 0 && D.warning({
                    title: e("common.tipsText"),
                    content: e("hsqe.psc.clearDefectsTip"),
                    positiveText: e("common.okText"),
                    negativeText: e("common.cancelText"),
                    maskClosable: !1,
                    closable: !1,
                    onPositiveClick: async ()=>{
                        b.value = !1;
                        let f = i.map((h)=>h.id).join(",");
                        await tt({
                            ids: f
                        }), L();
                    },
                    onNegativeClick: ()=>{
                        b.value = !0, o.reportResultList = [];
                    }
                })) : b.value = !0;
            }
            function ge() {
                if (!q.value) {
                    d.warning(e("hsqe.sire.cantAddHint"));
                    return;
                }
                A.value?.showModal(q.value, a.query.uuid || m.value);
            }
            async function M(t = !1) {
                if (!await se()) return !1;
                const i = ne();
                let f = i.reportResultList || [];
                i.nil_deficiency = f.includes(1) ? 1 : 0, i.detained = f.includes(2) ? 1 : 0, i.editDateList && i.editDateList.length > 0 && (i.startDate = i.editDateList[0], i.endDate = i.editDateList[1]), delete i.editDateList, delete i.reportResultList;
                const h = {
                    template_code: "pscReport",
                    reportBy: le.value,
                    ...i
                };
                m.value ? (h.uuid = m.value, await Ze(h)) : (m.value = await Ye(h), await u.replace({
                    path: a.path,
                    query: {
                        uuid: m.value,
                        type: "edit"
                    }
                })), t || d.success(e("common.saveSuccessText")), $();
            }
            async function _e() {
                await M(!0), await et({
                    template_code: "pscReport",
                    uuid: m.value
                }), d.success(e("common.submitSuccessText")), u.push({
                    name: "HSQE_AuditInspection_ReportList",
                    query: {
                        asyncComponent: "psc"
                    }
                }), $();
            }
            function be() {
                if (g.value) {
                    u.push({
                        name: "HSQE_AuditInspection_ReportList",
                        query: {
                            asyncComponent: "psc"
                        }
                    });
                    return;
                }
                D.info({
                    title: e("hsqe.auditInspection.back.title"),
                    content: e("hsqe.auditInspection.back.cont"),
                    positiveText: e("common.okText"),
                    negativeText: e("common.cancelText"),
                    onPositiveClick: async ()=>{
                        u.push({
                            name: "HSQE_AuditInspection_ReportList",
                            query: {
                                asyncComponent: "psc"
                            }
                        });
                    }
                });
            }
            return Ae(async ()=>{
                m.value = a.query.uuid || null, m.value && !q.value ? $() : U({
                    reportDate: J(new Date)
                });
            }), (t, o)=>{
                const i = Ue, f = Ee, h = Ve, Fe = Qe, qe = ze, O = $e, Ce = He, z = Be("debounce");
                return x(), C(Ce, null, {
                    default: n(()=>[
                            p(O, {
                                bordered: !1,
                                class: "py-3 proCard",
                                size: "small",
                                segmented: {
                                    content: !0
                                },
                                "content-style": "padding: 20px 15px 0 15px;"
                            }, {
                                header: n(()=>[
                                        p(h, {
                                            align: "center"
                                        }, {
                                            default: n(()=>[
                                                    p(f, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: n(()=>[
                                                                p(i, {
                                                                    type: "text",
                                                                    class: "size-8",
                                                                    onClick: be
                                                                }, {
                                                                    icon: n(()=>o[2] || (o[2] = [
                                                                            w("i", {
                                                                                class: "iconfont icon-a-shangyibu2 text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        default: n(()=>[
                                                                N(" " + k(r(e)("common.backToList")), 1)
                                                            ]),
                                                        _: 1
                                                    }),
                                                    w("h1", null, k(r(e)("hsqe.basic.basicTitle")), 1)
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                "header-extra": n(()=>[
                                        p(h, {
                                            align: "center"
                                        }, {
                                            default: n(()=>[
                                                    r(g) ? V("", !0) : (x(), C(f, {
                                                        key: 0,
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: n(()=>[
                                                                W((x(), C(i, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    bordered: "",
                                                                    secondary: "",
                                                                    class: "size-7"
                                                                }, {
                                                                    icon: n(()=>o[3] || (o[3] = [
                                                                            w("i", {
                                                                                class: "iconfont icon-Save"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })), [
                                                                    [
                                                                        z,
                                                                        ()=>M(!1),
                                                                        "1000"
                                                                    ]
                                                                ])
                                                            ]),
                                                        default: n(()=>[
                                                                N(" " + k(r(e)("common.saveText")), 1)
                                                            ]),
                                                        _: 1
                                                    })),
                                                    r(g) ? V("", !0) : (x(), C(f, {
                                                        key: 1,
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: n(()=>[
                                                                W((x(), C(i, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    bordered: "",
                                                                    secondary: "",
                                                                    class: "size-7"
                                                                }, {
                                                                    icon: n(()=>o[4] || (o[4] = [
                                                                            w("i", {
                                                                                class: "iconfont icon-Send1 text-[23px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })), [
                                                                    [
                                                                        z,
                                                                        ()=>_e(),
                                                                        "1000"
                                                                    ]
                                                                ])
                                                            ]),
                                                        default: n(()=>[
                                                                N(" " + k(r(e)("common.submit")), 1)
                                                            ]),
                                                        _: 1
                                                    }))
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                default: n(()=>[
                                        p(qe, {
                                            onRegister: r(oe)
                                        }, {
                                            visitPlace: n(({ model: _, field: S })=>[
                                                    p(Fe, {
                                                        ref: "portTableSelectRef",
                                                        labelField: "port",
                                                        valueField: "id",
                                                        value: _[S],
                                                        "onUpdate:value": (y)=>_[S] = y,
                                                        formValues: r(T),
                                                        "onUpdate:formValues": o[0] || (o[0] = (y)=>Q(T) ? T.value = y : null),
                                                        multiple: !1,
                                                        formProps: ae,
                                                        disabled: r(g),
                                                        selectTitle: r(e)("hsqe.planner.modal.selectPort"),
                                                        class: "w-full",
                                                        tableProps: {
                                                            rowKey: (y)=>y.id,
                                                            request: me,
                                                            columns: re,
                                                            pagination: {}
                                                        }
                                                    }, null, 8, [
                                                        "value",
                                                        "onUpdate:value",
                                                        "formValues",
                                                        "disabled",
                                                        "selectTitle",
                                                        "tableProps"
                                                    ])
                                                ]),
                                            pscReport: n(({ model: _, field: S })=>[
                                                    p(nt, {
                                                        "file-list": r(P),
                                                        "onUpdate:fileList": o[1] || (o[1] = (y)=>Q(P) ? P.value = y : null),
                                                        disabled: r(g),
                                                        onFinish: (y)=>{
                                                            _[S] = y?.originalFileName, _.reportUrl = y?.url;
                                                        },
                                                        onRemove: (y)=>_[S] = null
                                                    }, null, 8, [
                                                        "file-list",
                                                        "disabled",
                                                        "onFinish",
                                                        "onRemove"
                                                    ])
                                                ]),
                                            _: 1
                                        }, 8, [
                                            "onRegister"
                                        ])
                                    ]),
                                _: 1
                            }),
                            p(O, {
                                bordered: !1,
                                class: "mt-3 py-3 proCard",
                                size: "small",
                                segmented: {
                                    content: !0
                                },
                                "content-style": "padding: 20px 15px 0 15px;"
                            }, {
                                default: n(()=>[
                                        p(r(We), {
                                            ref_key: "basicTableRef",
                                            ref: B,
                                            columns: r(ee),
                                            request: ye,
                                            immediate: !1,
                                            "row-key": (_)=>_.id,
                                            actionColumn: r(ie),
                                            autoScrollX: !0,
                                            canResize: !1,
                                            "virtual-scroll": "",
                                            pagination: !1
                                        }, {
                                            tableTitle: n(()=>[
                                                    p(h, null, {
                                                        default: n(()=>[
                                                                !r(g) && r(q) && r(b) ? (x(), C(f, {
                                                                    key: 0,
                                                                    trigger: "hover"
                                                                }, {
                                                                    trigger: n(()=>[
                                                                            p(i, {
                                                                                type: "primary",
                                                                                strong: "",
                                                                                bordered: "",
                                                                                secondary: "",
                                                                                class: "size-7",
                                                                                onClick: ge
                                                                            }, {
                                                                                icon: n(()=>o[5] || (o[5] = [
                                                                                        w("i", {
                                                                                            class: "iconfont icon-ADD"
                                                                                        }, null, -1)
                                                                                    ])),
                                                                                _: 1
                                                                            })
                                                                        ]),
                                                                    default: n(()=>[
                                                                            N(" " + k(r(e)("common.optionsAddText")), 1)
                                                                        ]),
                                                                    _: 1
                                                                })) : V("", !0)
                                                            ]),
                                                        _: 1
                                                    })
                                                ]),
                                            _: 1
                                        }, 8, [
                                            "columns",
                                            "row-key",
                                            "actionColumn"
                                        ])
                                    ]),
                                _: 1
                            }),
                            p(st, {
                                ref_key: "modalRef",
                                ref: A,
                                onSuccess: L
                            }, null, 512)
                        ]),
                    _: 1
                });
            };
        }
    });
    so = Oe(pt, [
        [
            "__scopeId",
            "data-v-679244ad"
        ]
    ]);
});
export { so as default, __tla };
