import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
import { createElementBlock as t, createElementVNode as n, createVNode as r, normalizeClass as i, openBlock as a, renderSlot as o, resolveComponent as s } from "vue";
//#region src/components/wt-filters-panel-wrapper/wt-filters-panel-wrapper.vue
var c = {
	name: "FiltersPanelWrapper",
	props: {
		tableActionIcons: {
			type: Array,
			default: () => ["filter-reset", "settings"]
		},
		isOpened: {
			type: Boolean,
			default: !1
		}
	},
	data() {
		return {
			localIsOpened: this.isOpened,
			filtersCount: 0
		};
	},
	methods: {
		tableActionsHandler(e) {
			switch (e) {
				case "filterReset":
					this.resetFilters();
					break;
				case "settings":
					this.toggleFiltersExpansion();
					break;
				default:
			}
		},
		toggleFiltersExpansion() {
			this.localIsOpened = !this.localIsOpened;
		},
		resetFilters() {
			this.$emit("reset");
		}
	}
}, l = { class: "filters-wrap" }, u = { class: "actions-wrap" };
function d(e, c, d, f, p, m) {
	let h = s("wt-table-actions");
	return a(), t("article", { class: i([{ "filters-panel-wrapper--opened": d.isOpened }, "filters-panel-wrapper"]) }, [n("div", l, [o(e.$slots, "default", {}, void 0, !0)]), n("div", u, [r(h, {
		icons: d.tableActionIcons,
		onInput: m.tableActionsHandler
	}, null, 8, ["icons", "onInput"])])], 2);
}
var f = /*#__PURE__*/ e(c, [["render", d], ["__scopeId", "data-v-f81aca94"]]);
//#endregion
export { f as default };
