import{c as e,E as l,k as t}from"./vendor-element-plus.js?ver=3.1.0";import{r as s,c as a,L as o,o as c,F as n,b as i,d,a as r,w as u,P as f,O as m,n as _}from"./vendor.js?ver=3.1.0";import{_ as y}from"./fc-bits-ui.js?ver=3.1.0";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"),O=l,P=t;return b.visible?(c(),a("div",{key:0,class:_(["fcrm_fixed_bulk_actions_to_bottom",$.containerClass])},[b.customLayout?n(e.$slots,"default",{key:0}):(c(),a("div",p,[i("div",k,[d(P,{link:"","aria-label":b.deselectLabel,onClick:y[0]||(y[0]=l=>e.$emit("deselect"))},{default:u(()=>[d(O,null,{default:u(()=>[d(A)],void 0,!0),_:1})],void 0),_:1},8,["aria-label"]),i("div",v,[n(e.$slots,"count",{},()=>[i("span",g,f(b.selectedCount),1),i("span",h,f(b.selectedLabel),1)])]),b.showSelectAll||b.showSelectOnlyPage?(c(),a("div",S)):o("",!0),b.showSelectAll?(c(),r(P,{key:1,link:"",onClick:y[1]||(y[1]=l=>e.$emit("select-all"))},{default:u(()=>[m(f(b.selectAllLabel),1)],void 0),_:1})):o("",!0),b.showSelectOnlyPage?(c(),r(P,{key:2,link:"",onClick:y[2]||(y[2]=l=>e.$emit("select-only-page"))},{default:u(()=>[m(f(b.selectOnlyPageLabel),1)],void 0),_:1})):o("",!0),e.$slots.actions?(c(),a("div",L)):o("",!0),n(e.$slots,"actions")])]))],2)):o("",!0)}]]);export{C as F};
