import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l, resolveComponent as u, resolveDirective as d, withCtx as f, withDirectives as p } from "vue";
//#region src/components/wt-table-actions/wt-table-actions.vue?vue&type=script&setup=true&lang.ts
var m = { class: "wt-table-actions" }, h = /*#__PURE__*/ e(/* @__PURE__ */ o({
	__name: "wt-table-actions",
	props: {
		icons: { default: () => ["refresh"] },
		isSettingsActive: {
			type: Boolean,
			default: !1
		},
		isSettingsBadge: {
			type: Boolean,
			default: !1
		}
	},
	emits: ["input"],
	setup(e) {
		let o = e, h = t(() => o.icons.indexOf("import") !== -1), g = t(() => o.icons.indexOf("export") !== -1), _ = t(() => o.icons.indexOf("filter-reset") !== -1), v = t(() => o.icons.indexOf("column-select") !== -1), y = t(() => o.icons.indexOf("refresh") !== -1), b = t(() => o.icons.indexOf("settings") !== -1);
		return (t, o) => {
			let x = u("wt-icon-btn"), S = u("wt-badge"), C = d("tooltip");
			return c(), i("aside", m, [
				l(t.$slots, "default", {}, void 0, !0),
				h.value ? p((c(), n(x, {
					key: 0,
					icon: "download",
					onClick: o[0] ||= (e) => t.$emit("input", "import")
				}, null, 512)), [[C, t.$t("reusable.import")]]) : r("", !0),
				g.value ? p((c(), n(x, {
					key: 1,
					icon: "upload",
					onClick: o[1] ||= (e) => t.$emit("input", "export")
				}, null, 512)), [[C, t.$t("reusable.export")]]) : r("", !0),
				_.value ? p((c(), n(x, {
					key: 2,
					icon: "clear",
					onClick: o[2] ||= (e) => t.$emit("input", "filterReset")
				}, null, 512)), [[C, t.$t("webitelUI.tableActions.filterReset")]]) : r("", !0),
				v.value ? p((c(), n(x, {
					key: 3,
					icon: "column-select",
					onClick: o[3] ||= (e) => t.$emit("input", "columnSelect")
				}, null, 512)), [[C, t.$t("webitelUI.tableActions.columnSelect")]]) : r("", !0),
				y.value ? p((c(), n(x, {
					key: 4,
					icon: "refresh",
					onClick: o[4] ||= (e) => t.$emit("input", "refresh")
				}, null, 512)), [[C, t.$t("webitelUI.tableActions.refreshTable")]]) : r("", !0),
				a(S, { hidden: !e.isSettingsBadge }, {
					default: f(() => [b.value ? p((c(), n(x, {
						key: 0,
						class: s({ active: e.isSettingsActive }),
						icon: "filter",
						onClick: o[5] ||= (e) => t.$emit("input", "settings")
					}, null, 8, ["class"])), [[C, t.$t("webitelUI.tableActions.expandFilters")]]) : r("", !0)], void 0, !0),
					_: 1
				}, 8, ["hidden"])
			]);
		};
	}
}), [["__scopeId", "data-v-73cf33d9"]]);
//#endregion
export { h as default };
