/*!
Copyright (c) 2026 Lenovo SSG BASD. All rights reserved.
@license Proprietary

This software is the confidential and proprietary property of Lenovo SSG BASD.
You shall not disclose such Confidential Information and shall use it only in
accordance with the terms of the license agreement.

--- Build Info ---
Version: 1.1.1
Build Time: 2026/2/26 17:21:00
Build Commit: 81e556ed827e2f043668506dae6fae8dbb9ef395
*/
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require('./ActionBar.css');const e=require("vue"),t=require("../../../hooks/useLocale.js"),r=require("../../../Button/index.js");;/* empty css                */const o=require("../../../_virtual/_plugin-vue_export-helper.js"),a={class:"flex items-center justify-between"},i={class:"flex items-center gap-2"},n={class:"flex items-center gap-2"},l={__name:"ActionBar",props:{loading:{type:Boolean,default:!1},leftActions:{type:Array,default:()=>[]},rightActions:{type:Array,default:()=>[]}},emits:["export","info","action"],setup(o,{emit:l}){const c=o,s=l,{t:d}=t.useLocale(),u=e.computed(()=>{const e=Array.isArray(c.leftActions)?c.leftActions:[];return e.length?e:[{key:"export",text:d("gsc.grid.actionBar.export"),variant:"primary"},{key:"info",text:d("gsc.grid.actionBar.info"),variant:"default"}]}),p=e.computed(()=>Array.isArray(c.rightActions)?c.rightActions:[]);function f(e){const t=e?.key;s("action",{key:t,action:e}),"export"===t&&s("export"),"info"===t&&s("info");try{e?.onClick?.()}catch{}}return(t,l)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",i,[e.renderSlot(t.$slots,"left",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>(e.openBlock(),e.createBlock(e.unref(r.GscButton),{key:t.key,variant:t.variant||"default",disabled:o.loading||!!t.disabled,onClick:e=>f(t)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:2},1032,["variant","disabled","onClick"]))),128))],!0)]),e.createElementVNode("div",n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,t=>(e.openBlock(),e.createBlock(e.unref(r.GscButton),{key:t.key,variant:t.variant||"default",disabled:o.loading||!!t.disabled,onClick:e=>f(t)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:2},1032,["variant","disabled","onClick"]))),128)),e.renderSlot(t.$slots,"right",{},void 0,!0)])]))}},c=o.default(l,[["__scopeId","data-v-cc57d7a0"]]);exports.default=c;