import{c as e,E as l,k as t}from"./vendor-element-plus.js?ver=3.1.10";import{aQ as s,W as a,X as o,_ as c,Z as n,ab as i,a5 as d,aa as r,a8 as u,Y as f,a9 as m,a0 as _}from"./vendor.js?ver=3.1.10";import{_ as y}from"./fc-bits-ui.js?ver=3.1.10";const b={name:"FloatingBulkActionShell",components:{Close:e},emits:["select-all","select-only-page","deselect"],props:{visible:{type:Boolean,default:!1},customLayout:{type:Boolean,default:!1},themeMode:{type:String,default:"light"},selectedCount:{type:Number,default:0},selectedLabel:{type:String,default:"selected"},showSelectAll:{type:Boolean,default:!1},showSelectOnlyPage:{type:Boolean,default:!1},selectAllLabel:{type:String,default:""},selectOnlyPageLabel:{type:String,default:""},deselectLabel:{type:String,default:"Deselect"}},computed:{containerClass(){return{"fcrm-dark":"light"===this.themeMode,"fcrm-force-light":"dark"===this.themeMode}}}},p={key:1,class:"fcrm_bulk_action_bar"},k={class:"fcrm_bulk_action_left"},v={class:"fcrm_selection_count"},g={class:"fcrm_selection_count_number"},h={class:"fcrm_selection_count_text"},S={key:0,class:"fcrm_bulk_divider"},L={key:3,class:"fcrm_bulk_divider"};const C=y(b,[["render",function(e,y,b,C,$,w){const A=s("Close"),B=l,O=t;return b.visible?(a(),o("div",{key:0,class:_(["fcrm_fixed_bulk_actions_to_bottom",w.containerClass])},[b.customLayout?c(e.$slots,"default",{key:0}):(a(),o("div",p,[n("div",k,[i(O,{link:"","aria-label":b.deselectLabel,onClick:y[0]||(y[0]=l=>e.$emit("deselect"))},{default:d(()=>[i(B,null,{default:d(()=>[i(A)],void 0,!0),_:1})],void 0),_:1},8,["aria-label"]),n("div",v,[c(e.$slots,"count",{},()=>[n("span",g,r(b.selectedCount),1),n("span",h,r(b.selectedLabel),1)])]),b.showSelectAll||b.showSelectOnlyPage?(a(),o("div",S)):u("",!0),b.showSelectAll?(a(),f(O,{key:1,link:"",onClick:y[1]||(y[1]=l=>e.$emit("select-all"))},{default:d(()=>[m(r(b.selectAllLabel),1)],void 0),_:1})):u("",!0),b.showSelectOnlyPage?(a(),f(O,{key:2,link:"",onClick:y[2]||(y[2]=l=>e.$emit("select-only-page"))},{default:d(()=>[m(r(b.selectOnlyPageLabel),1)],void 0),_:1})):u("",!0),e.$slots.actions?(a(),o("div",L)):u("",!0),c(e.$slots,"actions")])]))],2)):u("",!0)}]]);export{C as F};
