import { d as Le, V as Ae, bk as Ee, r as d, aj as J, a4 as K, a as $e, c as x, o as p, X as qe, w as a, j as t, ao as He, h as y, a9 as A, ap as Be, p as v, A as m, l as n, F as h, W as ze, t as Oe, U as We, D as w, k as Ve, cb as je, c8 as Ge, H as Xe, c9 as Ze, aE as Je, aF as Qe, aH as Ye, hr as ea, i as _, N as aa, i6 as la, S as ta, ak as oa, B as sa, aI as na, ac as Q, cZ as ra, __tla as __tla_0 } from "./index-9PRMimni.js";
import { _ as ua, __tla as __tla_1 } from "./SelectDataModal.vue_vue_type_script_setup_true_lang-Cjrrh7uO.js";
import { _ as ia } from "./LuckySheet.vue_vue_type_style_index_0_lang-C6fooT_k.js";
import { u as Y } from "./account-C850CBTF.js";
import { e as ca, h as da, s as pa, i as ma } from "./workpermit-ycq2YJDA.js";
import { h as va } from "./smsFormsTemplate-Dsea_L5v.js";
import { c as _a, __tla as __tla_2 } from "./schemas-DEsCEng-.js";
import { N as fa, A as ya, z as ga } from "./template-rpthWlT9.js";
import { _ as ha } from "./rejectModal.vue_vue_type_script_setup_true_lang-KCtZZHCu.js";
import "./basicModal.vue_vue_type_style_index_0_lang-8QZP7ApW.js";
import "./ImageUpload.vue_vue_type_style_index_0_scoped_cb086928_lang-D-28kXvw.js";
import "./vuedraggable.umd-Co2xEC3p.js";
import "./BasicUpload.vue_vue_type_style_index_0_scoped_a4d0e930_lang-DxRbtP01.js";
import "./BasicForm.vue_vue_type_style_index_0_scoped_b9e995ec_lang-CEvcLwxD.js";
import "./BasicSelect.vue_vue_type_style_index_0_scoped_772d51cc_lang-Brp6PjEU.js";
import "./index-DkvzUEqh.js";
import { __tla as __tla_3 } from "./index.vue_vue_type_style_index_0_scoped_b974e5ec_lang-_0QwzFKM.js";
import "./Table.vue_vue_type_style_index_0_scoped_7b9e6ece_lang-BoW2DV_e.js";
import "./print-CT_2hrjP.js";
import { H as wa, __tla as __tla_4 } from "./index-8tHZJCCW.js";
import "./schemas-BmKi-UM9.js";
import "./props-CLtNejQT.js";
import { _ as ba } from "./FormItemGridItem-CDUF0EA0.js";
let Ga;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_2;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_3;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_4;
        } catch  {}
    })()
]).then(async ()=>{
    let ka, Ta, Ra;
    ka = [
        "href"
    ];
    Ta = {
        style: {
            "margin-bottom": "12px"
        }
    };
    Ra = [
        "href"
    ];
    Ga = Le({
        __name: "OnlineFormPage",
        props: {
            selectedTreeItem: {},
            treeData: {},
            userId: {}
        },
        emits: [
            "success",
            "back"
        ],
        setup (ee, { expose: ae, emit: le }) {
            const M = ee, b = le, { t: u } = Ae(), k = ra(), D = Ee(), U = d(), E = d(), N = d(), $ = d(), q = d(), L = d(), C = d(!1), c = d(!1), H = d(""), B = {
                id: null,
                shipId: null,
                documentUrl: "",
                documentUrlFile: "",
                uploadUrl: "",
                validateTimeStart: "",
                validateTimeEnd: "",
                isPermitIssued: null,
                permitIssuedId: "",
                permitIssuedReason: "",
                isSafetyMeeting: null,
                safetyMeetingId: "",
                safetyMeetingReason: "",
                isRiskAssessment: null,
                riskAssessmentId: "",
                riskAssessmentReason: "",
                _validateTime_: null
            }, e = d(J(B)), s = d(), te = {
                _validateTime_: {
                    required: !0,
                    type: "array",
                    message: `${u("common.chooseText")} ${u("hsqe.workpermit.validateTime")}`,
                    trigger: [
                        "change"
                    ]
                }
            }, oe = K(()=>s.value?.examineFlag), T = K(()=>[
                    0,
                    2
                ].includes(Number(s.value?.workPermitsStatus)));
            K(()=>[
                    3
                ].includes(Number(s.value?.workPermitsStatus)) && (s.value?.uploadUrlFile || s.value?.documentUrlFile));
            const se = K(()=>[
                    3
                ].includes(Number(s.value?.workPermitsStatus)) && M.userId === s.value?.createBy), { descriptionsList: ne, businessKeyMap: z, yesOrNoOptions: re } = _a();
            console.log(z, "map");
            const g = d(), R = K(()=>M.selectedTreeItem?.businessKey && z[M.selectedTreeItem?.businessKey]), ue = $e([
                {
                    type: "permit",
                    show: R.value?.isRelatePermit,
                    label: R.value?.permitSelectLabel,
                    showKey: "isPermitIssued",
                    selectedKey: "permitIssuedId",
                    reasonKey: "permitIssuedReason",
                    viewLabel: u("hsqe.workpermit.viewPermit"),
                    params: {
                        workPermitsType: M.selectedTreeItem?.businessKey
                    }
                },
                {
                    type: "meetingReport",
                    show: R.value?.isRelateSafetyReport,
                    label: R.value?.safetyReportSelectLabel,
                    showKey: "isSafetyMeeting",
                    selectedKey: "safetyMeetingId",
                    reasonKey: "safetyMeetingReason",
                    viewLabel: u("hsqe.workpermit.viewReport")
                },
                {
                    type: "raReport",
                    show: R.value?.isRelateRAReport,
                    label: R.value?.raReportSelectLabel,
                    showKey: "isRiskAssessment",
                    selectedKey: "riskAssessmentId",
                    reasonKey: "riskAssessmentReason",
                    viewLabel: u("hsqe.workpermit.viewReport")
                }
            ]);
            async function ie(o) {
                await Q(), await O(o, !0);
            }
            async function O(o, l) {
                try {
                    C.value = !0, s.value = await ca(o.id), H.value = D.getLocale === "en" ? s.value?.permitsTypeNameEn : s.value?.permitsTypeName, console.log(s.value), L.value = s.value?.documentUrlFile;
                    for(const i in e.value)e.value[i] = s.value[i];
                    e.value._validateTime_ = e.value?.validateTimeStart && e.value?.validateTimeEnd ? [
                        e.value?.validateTimeStart,
                        e.value?.validateTimeEnd
                    ] : null, e.value.documentUrlFile || await pe(), l && N.value?.handleTransformExcelToLuckyByUrl(e.value.documentUrlFile), C.value = !1;
                } catch (i) {
                    e.value = J(B), C.value = !1, console.log(i);
                }
            }
            function ce({ file: o }) {
                return o.name?.split(".")?.pop()?.toLowerCase() !== "pdf" ? (k.error(`${u("common.file.uploadFormat")} .pdf`), !1) : !0;
            }
            async function de(o) {
                const l = new FormData;
                l.append("file", o.file?.file);
                try {
                    const i = await Y(l);
                    e.value.uploadUrl = i.name, o.onFinish(), await da(e.value), await O(s.value, !1), k.success(u("common.optionsSuccessText")), b("success");
                } catch  {
                    o.onError(), W();
                }
            }
            function W() {
                e.value.uploadUrl = "";
            }
            async function pe() {
                try {
                    e.value.documentUrlFile = await va(M.selectedTreeItem?.businessKey);
                } catch (o) {
                    console.log(o);
                }
            }
            async function V() {
                c.value = !0, await E.value?.validate();
                const o = new FormData, l = await N.value.handleGetExcelFile();
                o.append("file", l);
                const i = await Y(o);
                e.value.documentUrl = i.name || "", e.value.validateTimeStart = e.value._validateTime_?.[0], e.value.validateTimeEnd = e.value._validateTime_?.[1], await ma(e.value);
            }
            const j = d(), G = d();
            function me() {
                G.value = {
                    shipId: e.value?.shipId,
                    busId: e.value.id,
                    moduleCode: "workPermit",
                    subModuleCode: s.value?.subModuleCode
                }, j.value.handleOpenModal(G.value);
            }
            async function ve() {
                try {
                    await V(), c.value = !1, k.success(u("common.optionsSuccessText")), b("success");
                } catch  {
                    c.value = !1;
                }
            }
            async function _e() {
                try {
                    await V(), s.value?.isSubmit == 0 ? await pa({
                        id: e.value.id
                    }) : await fa({
                        shipId: e.value?.shipId,
                        busId: e.value.id,
                        moduleCode: "workPermit",
                        subModuleCode: s.value?.subModuleCode
                    }), c.value = !1, k.success(u("common.optionsSuccessText")), b("success"), P();
                } catch (o) {
                    console.log(o), c.value = !1;
                }
            }
            async function fe() {
                U.value?.setTitle(u("hsqe.workpermit.return")), U.value?.showModal();
            }
            async function ye(o) {
                try {
                    c.value = !0, await ya({
                        shipId: e.value?.shipId,
                        busId: e.value.id,
                        moduleCode: "workPermit",
                        subModuleCode: s.value?.subModuleCode,
                        ...o
                    }), b("success"), k.success(u("common.submitRejectText")), c.value = !1, U.value?.closeModal(), P();
                } catch (l) {
                    console.log(l), c.value = !1;
                }
            }
            async function ge() {
                try {
                    c.value = !0, await ga({
                        shipId: e.value?.shipId,
                        busId: e.value.id,
                        moduleCode: "workPermit",
                        subModuleCode: s.value?.subModuleCode
                    }), k.success(u("common.submitApproveText")), c.value = !1, P(), b("success");
                } catch (o) {
                    console.log(o), c.value = !1;
                }
            }
            function he(o, l) {
                l.type === "permit" && (g.value = l, Q(()=>{
                    +o == 0 ? ($.value.handleOpenModal(), e.value[l.reasonKey] = "") : e.value[l.selectedKey] = null;
                }));
            }
            function we(o) {
                o.selectedId ? (e.value[n(g)?.selectedKey] = o.selectedId, e.value[n(g)?.showKey] = 0, L.value = o?.documentUrlFile) : (e.value[n(g)?.selectedKey] = null, e.value[n(g)?.showKey] = null);
            }
            function P() {
                b("back");
            }
            const be = (o)=>{
                if (T.value) {
                    const l = new Date;
                    if (l.setHours(0, 0, 0, 0), o < l) return !0;
                }
                return !1;
            };
            return ae({
                handleOpenModal: ie
            }), (o, l)=>{
                const i = sa, S = na, I = Xe, ke = Be, Te = He, X = Ve, F = ba, Re = je, Se = Ze, xe = Ge, Me = aa, Ie = ta, Fe = oa, Ke = ea, Ue = Ye, Ce = We, Pe = Oe, Z = ze, De = qe;
                return p(), x(De, {
                    loading: C.value
                }, {
                    default: a(()=>[
                            t(Z, {
                                segmented: {
                                    content: !0
                                },
                                size: "small",
                                class: "proCard"
                            }, {
                                header: a(()=>[
                                        t(I, null, {
                                            default: a(()=>[
                                                    t(S, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: a(()=>[
                                                                t(i, {
                                                                    border: !1,
                                                                    type: "text",
                                                                    class: "size-8",
                                                                    onClick: P
                                                                }, {
                                                                    icon: a(()=>l[3] || (l[3] = [
                                                                            _("i", {
                                                                                class: "iconfont icon-a-shangyibu2 text-[16px]"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        default: a(()=>[
                                                                v(" " + m(n(u)("common.backText")), 1)
                                                            ]),
                                                        _: 1
                                                    }),
                                                    _("h1", null, m(H.value), 1)
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                "header-extra": a(()=>[
                                        t(I, null, {
                                            default: a(()=>[
                                                    n(T) ? (p(), y(h, {
                                                        key: 0
                                                    }, [
                                                        t(S, {
                                                            trigger: "hover"
                                                        }, {
                                                            trigger: a(()=>[
                                                                    t(i, {
                                                                        loading: c.value,
                                                                        type: "primary",
                                                                        strong: "",
                                                                        bordered: "",
                                                                        secondary: "",
                                                                        class: "size-7",
                                                                        onClick: _e
                                                                    }, {
                                                                        icon: a(()=>l[4] || (l[4] = [
                                                                                _("i", {
                                                                                    class: "iconfont icon-Submit"
                                                                                }, null, -1)
                                                                            ])),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "loading"
                                                                    ])
                                                                ]),
                                                            default: a(()=>[
                                                                    v(" " + m(n(u)("common.optionsSubmitText")), 1)
                                                                ]),
                                                            _: 1
                                                        }),
                                                        t(S, {
                                                            trigger: "hover"
                                                        }, {
                                                            trigger: a(()=>[
                                                                    t(i, {
                                                                        loading: c.value,
                                                                        type: "primary",
                                                                        strong: "",
                                                                        bordered: "",
                                                                        secondary: "",
                                                                        class: "size-7",
                                                                        onClick: l[0] || (l[0] = (r)=>ve())
                                                                    }, {
                                                                        icon: a(()=>l[5] || (l[5] = [
                                                                                _("i", {
                                                                                    class: "iconfont icon-Save"
                                                                                }, null, -1)
                                                                            ])),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "loading"
                                                                    ])
                                                                ]),
                                                            default: a(()=>[
                                                                    v(" " + m(n(u)("common.saveText")), 1)
                                                                ]),
                                                            _: 1
                                                        })
                                                    ], 64)) : w("", !0),
                                                    t(S, {
                                                        trigger: "hover"
                                                    }, {
                                                        trigger: a(()=>[
                                                                t(i, {
                                                                    type: "primary",
                                                                    strong: "",
                                                                    bordered: "",
                                                                    secondary: "",
                                                                    class: "size-7",
                                                                    onClick: me
                                                                }, {
                                                                    icon: a(()=>l[6] || (l[6] = [
                                                                            _("i", {
                                                                                class: "iconfont icon-Log"
                                                                            }, null, -1)
                                                                        ])),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        default: a(()=>[
                                                                v(m(n(u)("common.reviewHistory")), 1)
                                                            ]),
                                                        _: 1
                                                    }),
                                                    n(oe) ? (p(), y(h, {
                                                        key: 1
                                                    }, [
                                                        t(S, {
                                                            trigger: "hover"
                                                        }, {
                                                            trigger: a(()=>[
                                                                    t(i, {
                                                                        loading: c.value,
                                                                        type: "primary",
                                                                        strong: "",
                                                                        bordered: "",
                                                                        secondary: "",
                                                                        class: "size-7",
                                                                        onClick: ge
                                                                    }, {
                                                                        icon: a(()=>l[7] || (l[7] = [
                                                                                _("i", {
                                                                                    class: "iconfont icon-Approve"
                                                                                }, null, -1)
                                                                            ])),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "loading"
                                                                    ])
                                                                ]),
                                                            default: a(()=>[
                                                                    v(" " + m(n(u)("hsqe.workpermit.approve")), 1)
                                                                ]),
                                                            _: 1
                                                        }),
                                                        t(S, {
                                                            trigger: "hover"
                                                        }, {
                                                            trigger: a(()=>[
                                                                    t(i, {
                                                                        loading: c.value,
                                                                        type: "primary",
                                                                        strong: "",
                                                                        bordered: "",
                                                                        secondary: "",
                                                                        class: "size-7",
                                                                        onClick: fe
                                                                    }, {
                                                                        icon: a(()=>l[8] || (l[8] = [
                                                                                _("i", {
                                                                                    class: "iconfont icon-Returned"
                                                                                }, null, -1)
                                                                            ])),
                                                                        _: 1
                                                                    }, 8, [
                                                                        "loading"
                                                                    ])
                                                                ]),
                                                            default: a(()=>[
                                                                    v(" " + m(n(u)("hsqe.workpermit.return")), 1)
                                                                ]),
                                                            _: 1
                                                        })
                                                    ], 64)) : w("", !0)
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                default: a(()=>[
                                        t(Te, {
                                            column: 6,
                                            "label-placement": "left",
                                            class: "mb-3 w-[80%]",
                                            "label-class": "font-medium"
                                        }, {
                                            default: a(()=>[
                                                    (p(!0), y(h, null, A(n(ne), (r)=>(p(), x(ke, {
                                                            key: r.key,
                                                            label: r.title
                                                        }, {
                                                            default: a(()=>[
                                                                    v(m(r.viewFunc ? r.viewFunc(s.value) || "--" : s.value?.[r.key] || "--"), 1)
                                                                ]),
                                                            _: 2
                                                        }, 1032, [
                                                            "label"
                                                        ]))), 128))
                                                ]),
                                            _: 1
                                        }),
                                        t(Z, null, {
                                            default: a(()=>[
                                                    t(Pe, {
                                                        ref_key: "formRef",
                                                        ref: E,
                                                        model: e.value,
                                                        rules: te,
                                                        "label-placement": "left",
                                                        "label-width": "auto"
                                                    }, {
                                                        default: a(()=>[
                                                                t(Ce, {
                                                                    cols: 6,
                                                                    responsive: "screen",
                                                                    "x-gap": "16px"
                                                                }, {
                                                                    default: a(()=>[
                                                                            t(F, {
                                                                                label: n(u)("hsqe.workpermit.vessel"),
                                                                                "label-width": "180",
                                                                                path: "shipName",
                                                                                span: "2"
                                                                            }, {
                                                                                default: a(()=>[
                                                                                        t(X, {
                                                                                            value: n(D).getLocale === "en" ? s.value?.shipNameEn : s.value?.shipName,
                                                                                            disabled: ""
                                                                                        }, null, 8, [
                                                                                            "value"
                                                                                        ])
                                                                                    ]),
                                                                                _: 1
                                                                            }, 8, [
                                                                                "label"
                                                                            ]),
                                                                            t(F, {
                                                                                label: n(u)("hsqe.workpermit.validateTime"),
                                                                                "label-width": "180",
                                                                                path: "_validateTime_",
                                                                                span: "3 m:3 l:3 xl:3 2xl:2"
                                                                            }, {
                                                                                default: a(()=>[
                                                                                        t(Re, {
                                                                                            "formatted-value": e.value._validateTime_,
                                                                                            "onUpdate:formattedValue": l[1] || (l[1] = (r)=>e.value._validateTime_ = r),
                                                                                            timePickerProps: {
                                                                                                format: "HH:00"
                                                                                            },
                                                                                            disabled: !n(T),
                                                                                            type: "datetimerange",
                                                                                            format: "yyyy-MM-dd HH:00",
                                                                                            valueFormat: "yyyy-MM-dd HH:00:00",
                                                                                            clearable: "",
                                                                                            "is-date-disabled": be
                                                                                        }, null, 8, [
                                                                                            "formatted-value",
                                                                                            "disabled"
                                                                                        ])
                                                                                    ]),
                                                                                _: 1
                                                                            }, 8, [
                                                                                "label"
                                                                            ]),
                                                                            (p(!0), y(h, null, A(n(ue), (r)=>(p(), y(h, {
                                                                                    key: r.type
                                                                                }, [
                                                                                    r.show ? (p(), x(F, {
                                                                                        key: 0,
                                                                                        label: r.label,
                                                                                        span: "6"
                                                                                    }, {
                                                                                        default: a(()=>[
                                                                                                t(xe, {
                                                                                                    value: e.value[r.showKey],
                                                                                                    "onUpdate:value": [
                                                                                                        (f)=>e.value[r.showKey] = f,
                                                                                                        (f)=>he(f, r)
                                                                                                    ],
                                                                                                    disabled: !n(T)
                                                                                                }, {
                                                                                                    default: a(()=>[
                                                                                                            t(I, null, {
                                                                                                                default: a(()=>[
                                                                                                                        (p(!0), y(h, null, A(n(re), (f)=>(p(), y(h, {
                                                                                                                                key: f.value
                                                                                                                            }, [
                                                                                                                                t(Se, {
                                                                                                                                    value: f.value
                                                                                                                                }, {
                                                                                                                                    default: a(()=>[
                                                                                                                                            v(m(f.label), 1)
                                                                                                                                        ]),
                                                                                                                                    _: 2
                                                                                                                                }, 1032, [
                                                                                                                                    "value"
                                                                                                                                ]),
                                                                                                                                f.value === e.value[r.showKey] && e.value[r.showKey] === 1 ? (p(), x(X, {
                                                                                                                                    key: 0,
                                                                                                                                    value: e.value[r.reasonKey],
                                                                                                                                    "onUpdate:value": (Ne)=>e.value[r.reasonKey] = Ne,
                                                                                                                                    disabled: !n(T),
                                                                                                                                    class: "w-[300px]"
                                                                                                                                }, null, 8, [
                                                                                                                                    "value",
                                                                                                                                    "onUpdate:value",
                                                                                                                                    "disabled"
                                                                                                                                ])) : w("", !0),
                                                                                                                                e.value[r.selectedKey] && f.value === e.value[r.showKey] && e.value[r.showKey] === 0 ? (p(), y("a", {
                                                                                                                                    key: 1,
                                                                                                                                    rel: "noopener noreferrer",
                                                                                                                                    target: "_blank",
                                                                                                                                    href: L.value
                                                                                                                                }, m(r.viewLabel), 9, ka)) : w("", !0)
                                                                                                                            ], 64))), 128))
                                                                                                                    ]),
                                                                                                                _: 2
                                                                                                            }, 1024)
                                                                                                        ]),
                                                                                                    _: 2
                                                                                                }, 1032, [
                                                                                                    "value",
                                                                                                    "onUpdate:value",
                                                                                                    "disabled"
                                                                                                ])
                                                                                            ]),
                                                                                        _: 2
                                                                                    }, 1032, [
                                                                                        "label"
                                                                                    ])) : w("", !0)
                                                                                ], 64))), 128)),
                                                                            t(F, {
                                                                                span: "6"
                                                                            }, {
                                                                                default: a(()=>[
                                                                                        t(n(ia), {
                                                                                            ref_key: "luckySheetRef",
                                                                                            ref: N,
                                                                                            isShowExport: !0,
                                                                                            sheetOptions: {
                                                                                                allowEdit: n(T)
                                                                                            },
                                                                                            fileName: n(D).getLocale === "en" ? s.value?.permitsTypeNameEn : s.value?.permitsTypeName || "file"
                                                                                        }, null, 8, [
                                                                                            "sheetOptions",
                                                                                            "fileName"
                                                                                        ])
                                                                                    ]),
                                                                                _: 1
                                                                            }),
                                                                            n(se) ? (p(), x(F, {
                                                                                key: 0,
                                                                                span: "6",
                                                                                path: "uploadUrl"
                                                                            }, {
                                                                                default: a(()=>[
                                                                                        t(I, {
                                                                                            vertical: "",
                                                                                            class: "w-full"
                                                                                        }, {
                                                                                            default: a(()=>[
                                                                                                    Je(t(Ue, {
                                                                                                        ref_key: "uploadRef",
                                                                                                        ref: q,
                                                                                                        "directory-dnd": "",
                                                                                                        accept: ".pdf",
                                                                                                        "custom-request": de,
                                                                                                        "show-file-list": !1,
                                                                                                        onBeforeUpload: ce,
                                                                                                        onRemove: W
                                                                                                    }, {
                                                                                                        default: a(()=>[
                                                                                                                t(Ke, null, {
                                                                                                                    default: a(()=>[
                                                                                                                            _("div", Ta, [
                                                                                                                                t(Me, {
                                                                                                                                    size: "48",
                                                                                                                                    depth: 3,
                                                                                                                                    component: n(la)
                                                                                                                                }, null, 8, [
                                                                                                                                    "component"
                                                                                                                                ])
                                                                                                                            ]),
                                                                                                                            t(Ie, {
                                                                                                                                style: {
                                                                                                                                    "font-size": "16px"
                                                                                                                                }
                                                                                                                            }, {
                                                                                                                                default: a(()=>[
                                                                                                                                        v(m(n(u)("hsqe.workpermit.uploadBtn")), 1)
                                                                                                                                    ]),
                                                                                                                                _: 1
                                                                                                                            }),
                                                                                                                            t(Fe, {
                                                                                                                                depth: "3",
                                                                                                                                style: {
                                                                                                                                    margin: "8px 0 0 0"
                                                                                                                                }
                                                                                                                            }, {
                                                                                                                                default: a(()=>[
                                                                                                                                        v(m(n(u)("hsqe.workpermit.uploadTips")), 1)
                                                                                                                                    ]),
                                                                                                                                _: 1
                                                                                                                            })
                                                                                                                        ]),
                                                                                                                    _: 1
                                                                                                                })
                                                                                                            ]),
                                                                                                        _: 1
                                                                                                    }, 512), [
                                                                                                        [
                                                                                                            Qe,
                                                                                                            !s.value?.uploadUrlFile
                                                                                                        ]
                                                                                                    ]),
                                                                                                    t(I, {
                                                                                                        align: "center"
                                                                                                    }, {
                                                                                                        default: a(()=>[
                                                                                                                _("a", {
                                                                                                                    href: s.value?.uploadUrlFile
                                                                                                                }, m(s.value?.uploadUrlName), 9, Ra),
                                                                                                                s.value?.uploadUrlFile ? (p(), x(i, {
                                                                                                                    key: 0,
                                                                                                                    onClick: l[2] || (l[2] = (r)=>q.value?.openOpenFileDialog()),
                                                                                                                    type: "text"
                                                                                                                }, {
                                                                                                                    icon: a(()=>l[9] || (l[9] = [
                                                                                                                            _("i", {
                                                                                                                                class: "iconfont icon-a-Frame28 text-[#0EC06A]"
                                                                                                                            }, null, -1)
                                                                                                                        ])),
                                                                                                                    _: 1
                                                                                                                })) : w("", !0)
                                                                                                            ]),
                                                                                                        _: 1
                                                                                                    })
                                                                                                ]),
                                                                                            _: 1
                                                                                        })
                                                                                    ]),
                                                                                _: 1
                                                                            })) : w("", !0)
                                                                        ]),
                                                                    _: 1
                                                                })
                                                            ]),
                                                        _: 1
                                                    }, 8, [
                                                        "model"
                                                    ])
                                                ]),
                                            _: 1
                                        })
                                    ]),
                                _: 1
                            }),
                            t(ua, {
                                ref_key: "selectModalRef",
                                ref: $,
                                type: g.value?.type,
                                params: g.value?.params,
                                treeData: o.treeData,
                                onSuccess: we
                            }, null, 8, [
                                "type",
                                "params",
                                "treeData"
                            ]),
                            t(ha, {
                                ref_key: "rejectModalRef",
                                ref: U,
                                onSuccess: ye,
                                type: "return"
                            }, null, 512),
                            t(n(wa), {
                                ref_key: "approvalHistoryModalRef",
                                ref: j
                            }, null, 512)
                        ]),
                    _: 1
                }, 8, [
                    "loading"
                ]);
            };
        }
    });
});
export { Ga as _, __tla };
