import { d as k, aS as g, h as n, o as a, a9 as c, j as _, D as B, w as i, F as l, c as u, ap as h, aa as d, ab as w, ca as C, p, A as f, ao as V, i as N, v as j, __tla as __tla_0 } from "./index-9PRMimni.js";
import { __tla as __tla_1 } from "./index.vue_vue_type_style_index_0_scoped_b974e5ec_lang-_0QwzFKM.js";
let A;
let __tla = Promise.all([
    (()=>{
        try {
            return __tla_0;
        } catch  {}
    })(),
    (()=>{
        try {
            return __tla_1;
        } catch  {}
    })()
]).then(async ()=>{
    let D, F;
    D = {
        key: 0,
        class: "w-full flex justify-center"
    };
    F = k({
        __name: "index",
        props: {
            descriptions: {
                type: Array,
                default: ()=>[]
            },
            dataSource: {
                type: Object,
                default: ()=>({})
            },
            divider: {
                type: Boolean,
                default: !0
            },
            titleFontSize: {
                type: String,
                default: "18px"
            }
        },
        setup (t, { expose: y }) {
            g((o)=>({
                    "38ce0830": t.titleFontSize
                }));
            const m = t, S = (o)=>o && typeof o == "object" && ("__v_isVNode" in o || o.hasOwnProperty("type"));
            return y({
                props: m
            }), (o, r)=>{
                const b = h, x = V;
                return a(!0), n(l, null, c(t.descriptions, (s, v)=>(a(), n("div", null, [
                        _(x, d({
                            class: s.class,
                            "label-placement": "top",
                            column: s.column ? s.column : 3,
                            title: s.title,
                            "label-class": "font-bold",
                            "content-class": "text-gray-500 w-[150px]",
                            ref_for: !0
                        }, s.componentProps), {
                            default: i(()=>[
                                    (a(!0), n(l, null, c(s.descriptions, (e)=>(a(), u(b, d({
                                            span: e.span ? e.span : 1,
                                            label: e.label,
                                            ref_for: !0
                                        }, e.componentProps), {
                                            default: i(()=>[
                                                    e.slot ? w(o.$slots, e.slot, {
                                                        key: 0,
                                                        model: t.dataSource,
                                                        field: e.field,
                                                        value: t.dataSource[e.field],
                                                        schema: e
                                                    }, void 0, !0) : e.customRender ? (a(), n(l, {
                                                        key: 1
                                                    }, [
                                                        S(e.customRender(t.dataSource)) ? (a(), u(C(e.customRender(t.dataSource)), {
                                                            key: 0
                                                        })) : (a(), n(l, {
                                                            key: 1
                                                        }, [
                                                            p(f(t.dataSource ? e.customRender(t.dataSource) : ""), 1)
                                                        ], 64))
                                                    ], 64)) : (a(), n(l, {
                                                        key: 2
                                                    }, [
                                                        p(f(t.dataSource[e.field] ? t.dataSource[e.field] : ""), 1)
                                                    ], 64))
                                                ]),
                                            _: 2
                                        }, 1040, [
                                            "span",
                                            "label"
                                        ]))), 256))
                                ]),
                            _: 2
                        }, 1040, [
                            "class",
                            "column",
                            "title"
                        ]),
                        v !== t.descriptions.length - 1 && t.divider ? (a(), n("div", D, r[0] || (r[0] = [
                            N("div", {
                                class: "w-[95%] h-[2px] py-0 px-2 mb-0 mt-2 bg-black"
                            }, null, -1)
                        ]))) : B("", !0)
                    ]))), 256);
            };
        }
    });
    A = j(F, [
        [
            "__scopeId",
            "data-v-b974e5ec"
        ]
    ]);
});
export { A as B, __tla };
