import{ay as s}from"./vendor-element-plus.js?ver=3.1.10";import{W as a,X as e,_ as o,a8 as t,a6 as r,a0 as d}from"./vendor.js?ver=3.1.10";import{_ as c}from"./fc-bits-ui.js?ver=3.1.10";const l={name:"BaseCard",props:{bodyLoading:{type:Boolean,default:!1},noBodyPadding:{type:Boolean,default:!1},body_class:{type:[String,Array,Object],default:""}},computed:{hasHeader(){return Boolean(this.$slots.title||this.$slots.header_action)}}},_={class:"fcrm_base_card"},i={key:0,class:"fcrm_base_card_header"},n={key:0,class:"fcrm_base_card_title_wrap"},f={key:1,class:"fcrm_base_card_header_actions"},y={key:1,class:"fcrm_base_card_footer"};const m=c(l,[["render",function(c,l,m,b,p,v){const u=s;return a(),e("div",_,[v.hasHeader?(a(),e("div",i,[c.$slots.title?(a(),e("div",n,[o(c.$slots,"title")])):t("",!0),c.$slots.header_action?(a(),e("div",f,[o(c.$slots,"header_action")])):t("",!0)])):t("",!0),r((a(),e("div",{class:d(["fcrm_base_card_body",[m.body_class,{fcrm_p_0:m.noBodyPadding}]])},[o(c.$slots,"body",{},()=>[o(c.$slots,"default")])],2)),[[u,m.bodyLoading]]),c.$slots.footer?(a(),e("div",y,[o(c.$slots,"footer")])):t("",!0)])}]]);export{m as B};
