import{ay as s}from"./vendor-element-plus.js?ver=3.1.0";import{c as a,o as e,L as o,K as t,F as r,n as d}from"./vendor.js?ver=3.1.0";import{_ as c}from"./fc-bits-ui.js?ver=3.1.0";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)}}},i={class:"fcrm_base_card"},n={key:0,class:"fcrm_base_card_header"},_={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 e(),a("div",i,[v.hasHeader?(e(),a("div",n,[c.$slots.title?(e(),a("div",_,[r(c.$slots,"title")])):o("",!0),c.$slots.header_action?(e(),a("div",f,[r(c.$slots,"header_action")])):o("",!0)])):o("",!0),t((e(),a("div",{class:d(["fcrm_base_card_body",[m.body_class,{fcrm_p_0:m.noBodyPadding}]])},[r(c.$slots,"body",{},()=>[r(c.$slots,"default")])],2)),[[u,m.bodyLoading]]),c.$slots.footer?(e(),a("div",y,[r(c.$slots,"footer")])):o("",!0)])}]]);export{m as B};
