import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
import { l as t } from "./enums-De8CDKZ1.js";
import { t as n } from "./useExpansion-DVdIpoOn.js";
import { t as r } from "./wt-expand-transition-C2p9bR4j.js";
import { createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, guardReactiveProps as c, normalizeClass as l, normalizeProps as u, openBlock as d, renderSlot as f, resolveComponent as p, toRef as m, unref as h, vShow as g, withCtx as _, withDirectives as v, withKeys as y } from "vue";
//#region src/components/wt-expansion-panel/wt-expansion-panel.vue?vue&type=script&setup=true&lang.ts
var b = { class: "wt-expansion-panel-actions" }, x = { class: "wt-expansion-panel-body" }, S = /*#__PURE__*/ e(/* @__PURE__ */ s({
	__name: "wt-expansion-panel",
	props: {
		size: { default: t.MD },
		collapsed: {
			type: Boolean,
			default: !1
		}
	},
	emits: ["opened", "closed"],
	setup(e, { emit: t }) {
		let s = e, S = t, { opened: C, open: w, toggle: T } = n(m(s, "collapsed"), S);
		return (e, t) => {
			let n = p("wt-icon");
			return d(), i("div", { class: l([[`wt-expansion-panel--${s.size}`], "wt-expansion-panel"]) }, [a("div", {
				class: l([[s.size === "sm" ? "typo-subtitle-2" : "typo-subtitle-1"], "wt-expansion-panel-header"]),
				tabindex: "0",
				onClick: t[0] ||= (...e) => h(T) && h(T)(...e),
				onKeypress: t[1] ||= y((...e) => h(T) && h(T)(...e), ["enter"])
			}, [f(e.$slots, "title", {}, void 0, !0), a("div", b, [f(e.$slots, "actions", u(c({
				open: h(w),
				opened: h(C)
			})), void 0, !0), o(n, {
				class: l([{ "wt-expansion-panel-arrow--opened": h(C) }, "wt-expansion-panel-arrow"]),
				icon: "arrow-right"
			}, null, 8, ["class"])])], 34), v(o(r, null, {
				default: _(() => [a("div", x, [f(e.$slots, "default", {}, void 0, !0)])], void 0, !0),
				_: 3
			}, 512), [[g, h(C)]])], 2);
		};
	}
}), [["__scopeId", "data-v-a0c6afd9"]]);
//#endregion
export { S as default };
