@code-coaching/vuetiful 0.18.1 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, ref, computed, useAttrs, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, withCtx, withDirectives, createTextVNode, onMounted, Fragment, cloneVNode, h as h$1, inject, provide, watchEffect, onUnmounted, watch, nextTick, toRaw, createCommentVNode, reactive, readonly, toRefs, createVNode, Transition, renderList, pushScopeId, popScopeId, mergeProps, vShow, resolveComponent } from "vue";
2
- const _hoisted_1$b = ["src", "alt"];
3
- const _hoisted_2$6 = {
2
+ const _hoisted_1$e = ["src", "alt"];
3
+ const _hoisted_2$8 = {
4
4
  key: 1,
5
5
  class: "avatar-initials h-full w-full",
6
6
  viewBox: "0 0 512 512"
7
7
  };
8
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
8
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
9
9
  __name: "VAvatar",
10
10
  props: {
11
11
  initials: { type: String, default: "" },
@@ -39,7 +39,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
39
39
  src: imgSrc.value,
40
40
  alt: __props.alt,
41
41
  onError: _cache[0] || (_cache[0] = () => imgSrc.value = __props.fallback)
42
- }, null, 40, _hoisted_1$b)) : (openBlock(), createElementBlock("svg", _hoisted_2$6, [
42
+ }, null, 40, _hoisted_1$e)) : (openBlock(), createElementBlock("svg", _hoisted_2$8, [
43
43
  createElementVNode("text", {
44
44
  x: "50%",
45
45
  y: "50%",
@@ -61,17 +61,17 @@ var _export_sfc = (sfc, props) => {
61
61
  }
62
62
  return target;
63
63
  };
64
- const _sfc_main$q = {};
65
- const _hoisted_1$a = {
64
+ const _sfc_main$t = {};
65
+ const _hoisted_1$d = {
66
66
  class: /* @__PURE__ */ normalizeClass(`vuetiful-badge badge`)
67
67
  };
68
68
  function _sfc_render$3(_ctx, _cache) {
69
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
69
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
70
70
  renderSlot(_ctx.$slots, "default")
71
71
  ]);
72
72
  }
73
- var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$3]]);
74
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
73
+ var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$3]]);
74
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
75
75
  __name: "VButton",
76
76
  props: {
77
77
  icon: {
@@ -121,16 +121,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
121
121
  };
122
122
  }
123
123
  });
124
- const _sfc_main$o = {};
125
- const _hoisted_1$9 = {
124
+ const _sfc_main$r = {};
125
+ const _hoisted_1$c = {
126
126
  class: /* @__PURE__ */ normalizeClass(`vuetiful-chip chip`)
127
127
  };
128
128
  function _sfc_render$2(_ctx, _cache) {
129
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
129
+ return openBlock(), createElementBlock("div", _hoisted_1$c, [
130
130
  renderSlot(_ctx.$slots, "default")
131
131
  ]);
132
132
  }
133
- var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$2]]);
133
+ var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$2]]);
134
134
  var deepFreezeEs6 = { exports: {} };
135
135
  function deepFreeze(obj) {
136
136
  if (obj instanceof Map) {
@@ -46471,12 +46471,12 @@ const useHighlight = () => {
46471
46471
  };
46472
46472
  };
46473
46473
  var githubDark = "";
46474
- const _hoisted_1$8 = { class: "code-block max-w-full bg-neutral-900/90 text-sm text-white shadow rounded-container-token" };
46475
- const _hoisted_2$5 = {
46474
+ const _hoisted_1$b = { class: "code-block max-w-full bg-neutral-900/90 text-sm text-white shadow rounded-container-token" };
46475
+ const _hoisted_2$7 = {
46476
46476
  class: /* @__PURE__ */ normalizeClass(`code-block-language`)
46477
46477
  };
46478
- const _hoisted_3$3 = ["innerHTML"];
46479
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
46478
+ const _hoisted_3$5 = ["innerHTML"];
46479
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
46480
46480
  __name: "VCodeBlock",
46481
46481
  props: {
46482
46482
  language: {
@@ -46534,12 +46534,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
46534
46534
  emit("copy");
46535
46535
  }
46536
46536
  return (_ctx, _cache) => {
46537
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
46537
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
46538
46538
  createElementVNode("header", {
46539
46539
  class: normalizeClass(`code-block-header flex items-center justify-between p-2 pb-0 pl-4 text-xs uppercase text-white/50 ${__props.headerClass}`)
46540
46540
  }, [
46541
- createElementVNode("span", _hoisted_2$5, toDisplayString(languageFormatter(__props.language)), 1),
46542
- withDirectives((openBlock(), createBlock(unref(_sfc_main$p), {
46541
+ createElementVNode("span", _hoisted_2$7, toDisplayString(languageFormatter(__props.language)), 1),
46542
+ withDirectives((openBlock(), createBlock(unref(_sfc_main$s), {
46543
46543
  class: normalizeClass(`code-block-btn ${__props.buttonClass}`),
46544
46544
  onClick: _cache[0] || (_cache[0] = ($event) => onCopyClick())
46545
46545
  }, {
@@ -46557,13 +46557,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
46557
46557
  createElementVNode("code", {
46558
46558
  class: normalizeClass(`code-block-code language-${__props.language}`),
46559
46559
  innerHTML: unref(highlight2)(props.code, props.language)
46560
- }, null, 10, _hoisted_3$3)
46560
+ }, null, 10, _hoisted_3$5)
46561
46561
  ], 2)
46562
46562
  ]);
46563
46563
  };
46564
46564
  }
46565
46565
  });
46566
- const _sfc_main$m = defineComponent({
46566
+ const _sfc_main$p = defineComponent({
46567
46567
  props: {
46568
46568
  bgLight: {
46569
46569
  type: String,
@@ -46654,8 +46654,8 @@ const _sfc_main$m = defineComponent({
46654
46654
  };
46655
46655
  }
46656
46656
  });
46657
- const _hoisted_1$7 = ["aria-checked", "title"];
46658
- const _hoisted_2$4 = ["d"];
46657
+ const _hoisted_1$a = ["aria-checked", "title"];
46658
+ const _hoisted_2$6 = ["d"];
46659
46659
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46660
46660
  return openBlock(), createElementBlock("div", {
46661
46661
  class: normalizeClass(`lightswitch-track ${_ctx.classesTrack}`),
@@ -46680,12 +46680,12 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
46680
46680
  createElementVNode("path", {
46681
46681
  fill: "currentColor",
46682
46682
  d: _ctx.currentMode ? _ctx.svgPath.sun : _ctx.svgPath.moon
46683
- }, null, 8, _hoisted_2$4)
46683
+ }, null, 8, _hoisted_2$6)
46684
46684
  ], 2))
46685
46685
  ], 2)
46686
- ], 42, _hoisted_1$7);
46686
+ ], 42, _hoisted_1$a);
46687
46687
  }
46688
- var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$1]]);
46688
+ var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$1]]);
46689
46689
  function u$2(r2, n2, ...a2) {
46690
46690
  if (r2 in n2) {
46691
46691
  let e2 = n2[r2];
@@ -46697,7 +46697,7 @@ function u$2(r2, n2, ...a2) {
46697
46697
  var N$1 = ((o2) => (o2[o2.None = 0] = "None", o2[o2.RenderStrategy = 1] = "RenderStrategy", o2[o2.Static = 2] = "Static", o2))(N$1 || {}), S$1 = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(S$1 || {});
46698
46698
  function H$2({ visible: r2 = true, features: t2 = 0, ourProps: e2, theirProps: o2, ...i2 }) {
46699
46699
  var a2;
46700
- let n2 = j$3(o2, e2), l2 = Object.assign(i2, { props: n2 });
46700
+ let n2 = j$4(o2, e2), l2 = Object.assign(i2, { props: n2 });
46701
46701
  if (r2 || t2 & 2 && n2.static)
46702
46702
  return y$2(l2);
46703
46703
  if (t2 & 1) {
@@ -46723,11 +46723,11 @@ function y$2({ props: r2, attrs: t2, slots: e2, slot: o2, name: i2 }) {
46723
46723
  if (a2 = b$2(a2 != null ? a2 : []), Object.keys(l2).length > 0 || Object.keys(t2).length > 0) {
46724
46724
  let [u2, ...c2] = a2 != null ? a2 : [];
46725
46725
  if (!v(u2) || c2.length > 0)
46726
- throw new Error(['Passing props on "template"!', "", `The current component <${i2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(l2).concat(Object.keys(t2)).map((s2) => s2.trim()).filter((s2, g, R) => R.indexOf(s2) === g).sort((s2, g) => s2.localeCompare(g)).map((s2) => ` - ${s2}`).join(`
46726
+ throw new Error(['Passing props on "template"!', "", `The current component <${i2} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(l2).concat(Object.keys(t2)).map((s2) => s2.trim()).filter((s2, g2, R) => R.indexOf(s2) === g2).sort((s2, g2) => s2.localeCompare(g2)).map((s2) => ` - ${s2}`).join(`
46727
46727
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((s2) => ` - ${s2}`).join(`
46728
46728
  `)].join(`
46729
46729
  `));
46730
- let p2 = j$3((h2 = u2.props) != null ? h2 : {}, l2), f2 = cloneVNode(u2, p2);
46730
+ let p2 = j$4((h2 = u2.props) != null ? h2 : {}, l2), f2 = cloneVNode(u2, p2);
46731
46731
  for (let s2 in p2)
46732
46732
  s2.startsWith("on") && (f2.props || (f2.props = {}), f2.props[s2] = p2[s2]);
46733
46733
  return f2;
@@ -46739,7 +46739,7 @@ function y$2({ props: r2, attrs: t2, slots: e2, slot: o2, name: i2 }) {
46739
46739
  function b$2(r2) {
46740
46740
  return r2.flatMap((t2) => t2.type === Fragment ? b$2(t2.children) : [t2]);
46741
46741
  }
46742
- function j$3(...r2) {
46742
+ function j$4(...r2) {
46743
46743
  if (r2.length === 0)
46744
46744
  return {};
46745
46745
  if (r2.length === 1)
@@ -46788,7 +46788,7 @@ function f$2(r2) {
46788
46788
  throw new Error("Unexpected object: " + r2);
46789
46789
  }
46790
46790
  var a$2 = ((e2) => (e2[e2.First = 0] = "First", e2[e2.Previous = 1] = "Previous", e2[e2.Next = 2] = "Next", e2[e2.Last = 3] = "Last", e2[e2.Specific = 4] = "Specific", e2[e2.Nothing = 5] = "Nothing", e2))(a$2 || {});
46791
- function x(r2, n2) {
46791
+ function x$1(r2, n2) {
46792
46792
  let t2 = n2.resolveItems();
46793
46793
  if (t2.length <= 0)
46794
46794
  return null;
@@ -47082,10 +47082,96 @@ function M({ slot: t2 = ref({}), name: i2 = "Description", props: o2 = {} } = {}
47082
47082
  let E = defineComponent({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${t$1()}` } }, setup(t2, { attrs: i2, slots: o2 }) {
47083
47083
  let e2 = b();
47084
47084
  return onMounted(() => onUnmounted(e2.register(t2.id))), () => {
47085
- let { name: s2 = "Description", slot: n2 = ref({}), props: r2 = {} } = e2, { id: d2, ...l2 } = t2, c2 = { ...Object.entries(r2).reduce((f2, [a2, g]) => Object.assign(f2, { [a2]: unref(g) }), {}), id: d2 };
47085
+ let { name: s2 = "Description", slot: n2 = ref({}), props: r2 = {} } = e2, { id: d2, ...l2 } = t2, c2 = { ...Object.entries(r2).reduce((f2, [a2, g2]) => Object.assign(f2, { [a2]: unref(g2) }), {}), id: d2 };
47086
47086
  return H$2({ ourProps: c2, theirProps: l2, slot: n2.value, attrs: i2, slots: o2, name: s2 });
47087
47087
  };
47088
47088
  } });
47089
+ var j$3 = ((o2) => (o2[o2.Open = 0] = "Open", o2[o2.Closed = 1] = "Closed", o2))(j$3 || {});
47090
+ let x = Symbol("DisclosureContext");
47091
+ function g(t2) {
47092
+ let r2 = inject(x, null);
47093
+ if (r2 === null) {
47094
+ let o2 = new Error(`<${t2} /> is missing a parent <Disclosure /> component.`);
47095
+ throw Error.captureStackTrace && Error.captureStackTrace(o2, g), o2;
47096
+ }
47097
+ return r2;
47098
+ }
47099
+ let B = Symbol("DisclosurePanelContext");
47100
+ function $() {
47101
+ return inject(B, null);
47102
+ }
47103
+ let Q = defineComponent({ name: "Disclosure", props: { as: { type: [Object, String], default: "template" }, defaultOpen: { type: [Boolean], default: false } }, setup(t2, { slots: r2, attrs: o$12 }) {
47104
+ let u2 = ref(t2.defaultOpen ? 0 : 1), e2 = ref(null), i2 = ref(null), s2 = { buttonId: ref(null), panelId: ref(null), disclosureState: u2, panel: e2, button: i2, toggleDisclosure() {
47105
+ u2.value = u$2(u2.value, { [0]: 1, [1]: 0 });
47106
+ }, closeDisclosure() {
47107
+ u2.value !== 1 && (u2.value = 1);
47108
+ }, close(l2) {
47109
+ s2.closeDisclosure();
47110
+ let a2 = (() => l2 ? l2 instanceof HTMLElement ? l2 : l2.value instanceof HTMLElement ? o(l2) : o(s2.button) : o(s2.button))();
47111
+ a2 == null || a2.focus();
47112
+ } };
47113
+ return provide(x, s2), c$2(computed(() => u$2(u2.value, { [0]: l.Open, [1]: l.Closed }))), () => {
47114
+ let { defaultOpen: l2, ...a2 } = t2, c2 = { open: u2.value === 0, close: s2.close };
47115
+ return H$2({ theirProps: a2, ourProps: {}, slot: c2, slots: r2, attrs: o$12, name: "Disclosure" });
47116
+ };
47117
+ } }), V = defineComponent({ name: "DisclosureButton", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-disclosure-button-${t$1()}` } }, setup(t2, { attrs: r2, slots: o$2, expose: u2 }) {
47118
+ let e2 = g("DisclosureButton");
47119
+ onMounted(() => {
47120
+ e2.buttonId.value = t2.id;
47121
+ }), onUnmounted(() => {
47122
+ e2.buttonId.value = null;
47123
+ });
47124
+ let i2 = $(), s2 = computed(() => i2 === null ? false : i2.value === e2.panelId.value), l2 = ref(null);
47125
+ u2({ el: l2, $el: l2 }), s2.value || watchEffect(() => {
47126
+ e2.button.value = l2.value;
47127
+ });
47128
+ let a2 = b$1(computed(() => ({ as: t2.as, type: r2.type })), l2);
47129
+ function c2() {
47130
+ var n2;
47131
+ t2.disabled || (s2.value ? (e2.toggleDisclosure(), (n2 = o(e2.button)) == null || n2.focus()) : e2.toggleDisclosure());
47132
+ }
47133
+ function D(n2) {
47134
+ var S2;
47135
+ if (!t2.disabled)
47136
+ if (s2.value)
47137
+ switch (n2.key) {
47138
+ case o$1.Space:
47139
+ case o$1.Enter:
47140
+ n2.preventDefault(), n2.stopPropagation(), e2.toggleDisclosure(), (S2 = o(e2.button)) == null || S2.focus();
47141
+ break;
47142
+ }
47143
+ else
47144
+ switch (n2.key) {
47145
+ case o$1.Space:
47146
+ case o$1.Enter:
47147
+ n2.preventDefault(), n2.stopPropagation(), e2.toggleDisclosure();
47148
+ break;
47149
+ }
47150
+ }
47151
+ function T2(n2) {
47152
+ switch (n2.key) {
47153
+ case o$1.Space:
47154
+ n2.preventDefault();
47155
+ break;
47156
+ }
47157
+ }
47158
+ return () => {
47159
+ let n2 = { open: e2.disclosureState.value === 0 }, { id: S2, ...k2 } = t2, K2 = s2.value ? { ref: l2, type: a2.value, onClick: c2, onKeydown: D } : { id: S2, ref: l2, type: a2.value, "aria-expanded": t2.disabled ? void 0 : e2.disclosureState.value === 0, "aria-controls": o(e2.panel) ? e2.panelId.value : void 0, disabled: t2.disabled ? true : void 0, onClick: c2, onKeydown: D, onKeyup: T2 };
47160
+ return H$2({ ourProps: K2, theirProps: k2, slot: n2, attrs: r2, slots: o$2, name: "DisclosureButton" });
47161
+ };
47162
+ } }), X = defineComponent({ name: "DisclosurePanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-disclosure-panel-${t$1()}` } }, setup(t2, { attrs: r2, slots: o2, expose: u2 }) {
47163
+ let e2 = g("DisclosurePanel");
47164
+ onMounted(() => {
47165
+ e2.panelId.value = t2.id;
47166
+ }), onUnmounted(() => {
47167
+ e2.panelId.value = null;
47168
+ }), u2({ el: e2.panel, $el: e2.panel }), provide(B, e2.panelId);
47169
+ let i2 = p$3(), s2 = computed(() => i2 !== null ? (i2.value & l.Open) === l.Open : e2.disclosureState.value === 0);
47170
+ return () => {
47171
+ let l2 = { open: e2.disclosureState.value === 0, close: e2.close }, { id: a2, ...c2 } = t2, D = { id: a2, ref: e2.panel };
47172
+ return H$2({ ourProps: D, theirProps: c2, slot: l2, attrs: r2, slots: o2, features: N$1.RenderStrategy | N$1.Static, visible: s2.value, name: "DisclosurePanel" });
47173
+ };
47174
+ } });
47089
47175
  function de$1(t2, b2) {
47090
47176
  return t2 === b2;
47091
47177
  }
@@ -47103,7 +47189,7 @@ function j$2(t2) {
47103
47189
  return b2;
47104
47190
  }
47105
47191
  let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) => true }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], default: () => de$1 }, horizontal: { type: [Boolean], default: false }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, multiple: { type: [Boolean], default: false } }, inheritAttrs: false, setup(t2, { slots: b2, attrs: u2, emit: L }) {
47106
- let e$12 = ref(1), d2 = ref(null), m2 = ref(null), x$1 = ref(null), f2 = ref([]), o$12 = ref(""), i2 = ref(null), w$1 = ref(1);
47192
+ let e$12 = ref(1), d2 = ref(null), m2 = ref(null), x2 = ref(null), f2 = ref([]), o$12 = ref(""), i2 = ref(null), w$1 = ref(1);
47107
47193
  function R(a2 = (l2) => l2) {
47108
47194
  let l2 = i2.value !== null ? f2.value[i2.value] : null, r2 = O(a2(f2.value.slice()), (S2) => o(S2.dataRef.domRef)), s2 = l2 ? r2.indexOf(l2) : null;
47109
47195
  return s2 === -1 && (s2 = null), { options: r2, activeOptionIndex: s2 };
@@ -47114,21 +47200,21 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
47114
47200
  return (a2 == null ? void 0 : a2[r2]) === (l2 == null ? void 0 : l2[r2]);
47115
47201
  }
47116
47202
  return t2.by(a2, l2);
47117
- }, orientation: computed(() => t2.horizontal ? "horizontal" : "vertical"), labelRef: d2, buttonRef: m2, optionsRef: x$1, disabled: computed(() => t2.disabled), options: f2, searchQuery: o$12, activeOptionIndex: i2, activationTrigger: w$1, closeListbox() {
47203
+ }, orientation: computed(() => t2.horizontal ? "horizontal" : "vertical"), labelRef: d2, buttonRef: m2, optionsRef: x2, disabled: computed(() => t2.disabled), options: f2, searchQuery: o$12, activeOptionIndex: i2, activationTrigger: w$1, closeListbox() {
47118
47204
  t2.disabled || e$12.value !== 1 && (e$12.value = 1, i2.value = null);
47119
47205
  }, openListbox() {
47120
47206
  t2.disabled || e$12.value !== 0 && (e$12.value = 0);
47121
47207
  }, goToOption(a2, l2, r2) {
47122
47208
  if (t2.disabled || e$12.value === 1)
47123
47209
  return;
47124
- let s2 = R(), S2 = x(a2 === a$2.Specific ? { focus: a$2.Specific, id: l2 } : { focus: a2 }, { resolveItems: () => s2.options, resolveActiveIndex: () => s2.activeOptionIndex, resolveId: (k2) => k2.id, resolveDisabled: (k2) => k2.dataRef.disabled });
47210
+ let s2 = R(), S2 = x$1(a2 === a$2.Specific ? { focus: a$2.Specific, id: l2 } : { focus: a2 }, { resolveItems: () => s2.options, resolveActiveIndex: () => s2.activeOptionIndex, resolveId: (k2) => k2.id, resolveDisabled: (k2) => k2.dataRef.disabled });
47125
47211
  o$12.value = "", i2.value = S2, w$1.value = r2 != null ? r2 : 1, f2.value = s2.options;
47126
47212
  }, search(a2) {
47127
47213
  if (t2.disabled || e$12.value === 1)
47128
47214
  return;
47129
47215
  let r2 = o$12.value !== "" ? 0 : 1;
47130
47216
  o$12.value += a2.toLowerCase();
47131
- let S2 = (i2.value !== null ? f2.value.slice(i2.value + r2).concat(f2.value.slice(0, i2.value + r2)) : f2.value).find((V) => V.dataRef.textValue.startsWith(o$12.value) && !V.dataRef.disabled), k2 = S2 ? f2.value.indexOf(S2) : -1;
47217
+ let S2 = (i2.value !== null ? f2.value.slice(i2.value + r2).concat(f2.value.slice(0, i2.value + r2)) : f2.value).find((V2) => V2.dataRef.textValue.startsWith(o$12.value) && !V2.dataRef.disabled), k2 = S2 ? f2.value.indexOf(S2) : -1;
47132
47218
  k2 === -1 || k2 === i2.value || (i2.value = k2, w$1.value = 1);
47133
47219
  }, clearSearch() {
47134
47220
  t2.disabled || e$12.value !== 1 && o$12.value !== "" && (o$12.value = "");
@@ -47147,7 +47233,7 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
47147
47233
  return s2 === -1 ? l2.push(r2) : l2.splice(s2, 1), l2;
47148
47234
  } }));
47149
47235
  } };
47150
- y([m2, x$1], (a2, l2) => {
47236
+ y([m2, x2], (a2, l2) => {
47151
47237
  var r2;
47152
47238
  n2.closeListbox(), w(l2, h.Loose) || (a2.preventDefault(), (r2 = o(m2)) == null || r2.focus());
47153
47239
  }, computed(() => e$12.value === 0)), provide(U$1, n2), c$2(computed(() => u$2(e$12.value, { [0]: l.Open, [1]: l.Closed })));
@@ -47169,7 +47255,7 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
47169
47255
  }, { immediate: true });
47170
47256
  }), () => {
47171
47257
  let { name: a2, modelValue: l2, disabled: r2, form: s2, ...S2 } = t2, k2 = { open: e$12.value === 0, disabled: r2, value: y$12.value };
47172
- return h$1(Fragment, [...a2 != null && y$12.value != null ? e({ [a2]: y$12.value }).map(([V, $]) => h$1(f$1, K$1({ features: a$1.Hidden, key: V, as: "input", type: "hidden", hidden: true, readOnly: true, form: s2, name: V, value: $ }))) : [], H$2({ ourProps: {}, theirProps: { ...u2, ...T$2(S2, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: k2, slots: b2, attrs: u2, name: "Listbox" })]);
47258
+ return h$1(Fragment, [...a2 != null && y$12.value != null ? e({ [a2]: y$12.value }).map(([V2, $2]) => h$1(f$1, K$1({ features: a$1.Hidden, key: V2, as: "input", type: "hidden", hidden: true, readOnly: true, form: s2, name: V2, value: $2 }))) : [], H$2({ ourProps: {}, theirProps: { ...u2, ...T$2(S2, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: k2, slots: b2, attrs: u2, name: "Listbox" })]);
47173
47259
  };
47174
47260
  } }), Ae = defineComponent({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${t$1()}` } }, setup(t2, { attrs: b2, slots: u2 }) {
47175
47261
  let L = j$2("ListboxLabel");
@@ -47348,7 +47434,7 @@ function K({ slot: t2 = {}, name: n2 = "Label", props: i2 = {} } = {}) {
47348
47434
  let T = defineComponent({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${t$1()}` } }, setup(t2, { slots: n2, attrs: i2 }) {
47349
47435
  let e2 = d$1();
47350
47436
  return onMounted(() => onUnmounted(e2.register(t2.id))), () => {
47351
- let { name: l2 = "Label", slot: r2 = {}, props: o2 = {} } = e2, { id: p2, passive: c2, ...u2 } = t2, s2 = { ...Object.entries(o2).reduce((f2, [b2, g]) => Object.assign(f2, { [b2]: unref(g) }), {}), id: p2 };
47437
+ let { name: l2 = "Label", slot: r2 = {}, props: o2 = {} } = e2, { id: p2, passive: c2, ...u2 } = t2, s2 = { ...Object.entries(o2).reduce((f2, [b2, g2]) => Object.assign(f2, { [b2]: unref(g2) }), {}), id: p2 };
47352
47438
  return c2 && (delete s2.onClick, delete s2.htmlFor, delete u2.onClick), H$2({ ourProps: s2, theirProps: u2, slot: r2, attrs: i2, slots: n2, name: l2 });
47353
47439
  };
47354
47440
  } });
@@ -47489,7 +47575,7 @@ let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", prop
47489
47575
  function s2() {
47490
47576
  r2(!i2.value);
47491
47577
  }
47492
- let w2 = ref(null), u2 = t2 === null ? w2 : t2.switchRef, g = b$1(computed(() => ({ as: l2.as, type: a2.type })), u2);
47578
+ let w2 = ref(null), u2 = t2 === null ? w2 : t2.switchRef, g2 = b$1(computed(() => ({ as: l2.as, type: a2.type })), u2);
47493
47579
  f2({ el: u2, $el: u2 });
47494
47580
  function k2(e2) {
47495
47581
  e2.preventDefault(), s2();
@@ -47517,7 +47603,7 @@ let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", prop
47517
47603
  };
47518
47604
  }, { immediate: true });
47519
47605
  }), () => {
47520
- let { id: e2, name: n2, value: L, form: D, ...R } = l2, K2 = { checked: i2.value }, x2 = { id: e2, ref: u2, role: "switch", type: g.value, tabIndex: 0, "aria-checked": i2.value, "aria-labelledby": t2 == null ? void 0 : t2.labelledby.value, "aria-describedby": t2 == null ? void 0 : t2.describedby.value, onClick: k2, onKeyup: C, onKeypress: E2 };
47606
+ let { id: e2, name: n2, value: L, form: D, ...R } = l2, K2 = { checked: i2.value }, x2 = { id: e2, ref: u2, role: "switch", type: g2.value, tabIndex: 0, "aria-checked": i2.value, "aria-labelledby": t2 == null ? void 0 : t2.labelledby.value, "aria-describedby": t2 == null ? void 0 : t2.describedby.value, onClick: k2, onKeyup: C, onKeypress: E2 };
47521
47607
  return h$1(Fragment, [n2 != null && i2.value != null ? h$1(f$1, K$1({ features: a$1.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: i2.value, form: D, name: n2, value: L })) : null, H$2({ ourProps: x2, theirProps: { ...a2, ...T$2(R, ["modelValue", "defaultChecked"]) }, slot: K2, attrs: a2, slots: o$2, name: "Switch" })]);
47522
47608
  };
47523
47609
  } }), de = T, ce = E;
@@ -47567,8 +47653,8 @@ let j = Symbol("TabsSSRContext"), xe = defineComponent({ name: "TabGroup", emits
47567
47653
  let p2 = e2.slice(0, t2), G = [...e2.slice(t2), ...p2].find((W) => f2.includes(W));
47568
47654
  if (!G)
47569
47655
  return;
47570
- let B = (S2 = e2.indexOf(G)) != null ? S2 : r2.selectedIndex.value;
47571
- B === -1 && (B = r2.selectedIndex.value), l2.value = B, r2.tabs.value = e2, r2.panels.value = u2;
47656
+ let B2 = (S2 = e2.indexOf(G)) != null ? S2 : r2.selectedIndex.value;
47657
+ B2 === -1 && (B2 = r2.selectedIndex.value), l2.value = B2, r2.tabs.value = e2, r2.panels.value = u2;
47572
47658
  }
47573
47659
  }
47574
47660
  let r2 = { selectedIndex: computed(() => {
@@ -47710,7 +47796,7 @@ let j = Symbol("TabsSSRContext"), xe = defineComponent({ name: "TabGroup", emits
47710
47796
  return !m2.value && a2.unmount && !a2.static ? h$1(f$1, { as: "span", ...h2 }) : H$2({ ourProps: h2, theirProps: w2, slot: r2, attrs: v2, slots: i2, features: N$1.Static | N$1.RenderStrategy, visible: m2.value, name: "TabPanel" });
47711
47797
  };
47712
47798
  } });
47713
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
47799
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
47714
47800
  __name: "VRadioDescription",
47715
47801
  props: {
47716
47802
  as: {
@@ -47729,7 +47815,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
47729
47815
  };
47730
47816
  }
47731
47817
  });
47732
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
47818
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
47733
47819
  __name: "VRadioGroup",
47734
47820
  props: {
47735
47821
  as: {
@@ -47797,7 +47883,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
47797
47883
  };
47798
47884
  }
47799
47885
  });
47800
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
47886
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
47801
47887
  __name: "VRadioItem",
47802
47888
  props: {
47803
47889
  value: {
@@ -47823,7 +47909,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
47823
47909
  };
47824
47910
  }
47825
47911
  });
47826
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
47912
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
47827
47913
  __name: "VRadioLabel",
47828
47914
  props: {
47829
47915
  as: {
@@ -47842,11 +47928,11 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
47842
47928
  };
47843
47929
  }
47844
47930
  });
47845
- const _hoisted_1$6 = {
47931
+ const _hoisted_1$9 = {
47846
47932
  key: 0,
47847
47933
  class: "sr-only"
47848
47934
  };
47849
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
47935
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
47850
47936
  __name: "VSwitch",
47851
47937
  props: {
47852
47938
  modelValue: {
@@ -47922,7 +48008,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
47922
48008
  createElementVNode("div", {
47923
48009
  class: normalizeClass(`slide-toggle-track flex transition-all duration-[150ms] border-token rounded-token ${unref(trackSize)} ${__props.disabled ? "cursor-not-allowed" : "cursor-pointer"} ${__props.switchClass}`)
47924
48010
  }, [
47925
- _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$6, [
48011
+ _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_1$9, [
47926
48012
  renderSlot(_ctx.$slots, "default")
47927
48013
  ])) : createCommentVNode("", true),
47928
48014
  createElementVNode("div", {
@@ -47935,7 +48021,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
47935
48021
  };
47936
48022
  }
47937
48023
  });
47938
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
48024
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
47939
48025
  __name: "VSwitchDescription",
47940
48026
  props: {
47941
48027
  as: {
@@ -47954,7 +48040,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
47954
48040
  };
47955
48041
  }
47956
48042
  });
47957
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
48043
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
47958
48044
  __name: "VSwitchGroup",
47959
48045
  props: {
47960
48046
  as: {
@@ -47973,7 +48059,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
47973
48059
  };
47974
48060
  }
47975
48061
  });
47976
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
48062
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
47977
48063
  __name: "VSwitchLabel",
47978
48064
  props: {
47979
48065
  as: {
@@ -48118,8 +48204,8 @@ const useDarkMode = () => {
48118
48204
  MODE
48119
48205
  };
48120
48206
  };
48121
- const _hoisted_1$5 = ["aria-labelledby", "aria-describedby"];
48122
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
48207
+ const _hoisted_1$8 = ["aria-labelledby", "aria-describedby"];
48208
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
48123
48209
  __name: "VDrawer",
48124
48210
  props: {
48125
48211
  regionBackdrop: {
@@ -48183,7 +48269,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
48183
48269
  "aria-describedby": unref(describedby)
48184
48270
  }, [
48185
48271
  renderSlot(_ctx.$slots, "default")
48186
- ], 10, _hoisted_1$5)) : createCommentVNode("", true)
48272
+ ], 10, _hoisted_1$8)) : createCommentVNode("", true)
48187
48273
  ]),
48188
48274
  _: 3
48189
48275
  }, 8, ["name"]),
@@ -48207,59 +48293,59 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
48207
48293
  }
48208
48294
  });
48209
48295
  var VPreview_vue_vue_type_style_index_0_scoped_true_lang = "";
48210
- const _withScopeId$1 = (n2) => (pushScopeId("data-v-0d055d3d"), n2 = n2(), popScopeId(), n2);
48211
- const _hoisted_1$4 = { class: "vuetiful-previewer overflow-hidden shadow-2xl shadow-surface-500/10 rounded-container-token dark:shadow-black/10" };
48212
- const _hoisted_2$3 = { class: "flex items-center gap-2" };
48213
- const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
48296
+ const _withScopeId$3 = (n2) => (pushScopeId("data-v-0d055d3d"), n2 = n2(), popScopeId(), n2);
48297
+ const _hoisted_1$7 = { class: "vuetiful-previewer overflow-hidden shadow-2xl shadow-surface-500/10 rounded-container-token dark:shadow-black/10" };
48298
+ const _hoisted_2$5 = { class: "flex items-center gap-2" };
48299
+ const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
48214
48300
  class: "icon",
48215
48301
  xmlns: "http://www.w3.org/2000/svg",
48216
48302
  viewBox: "0 0 576 512"
48217
48303
  }, [
48218
48304
  /* @__PURE__ */ createElementVNode("path", { d: "M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z" })
48219
48305
  ], -1));
48220
- const _hoisted_4$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
48306
+ const _hoisted_4$2 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
48221
48307
  class: "icon",
48222
48308
  xmlns: "http://www.w3.org/2000/svg",
48223
48309
  viewBox: "0 0 640 512"
48224
48310
  }, [
48225
48311
  /* @__PURE__ */ createElementVNode("path", { d: "M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z" })
48226
48312
  ], -1));
48227
- const _hoisted_5$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
48313
+ const _hoisted_5$2 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
48228
48314
  class: "icon",
48229
48315
  xmlns: "http://www.w3.org/2000/svg",
48230
48316
  viewBox: "0 0 384 512"
48231
48317
  }, [
48232
48318
  /* @__PURE__ */ createElementVNode("path", { d: "M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM144 448c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16s-7.2-16-16-16H160c-8.8 0-16 7.2-16 16zM304 64H80V384H304V64z" })
48233
48319
  ], -1));
48234
- const _hoisted_6$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
48320
+ const _hoisted_6$2 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
48235
48321
  class: "icon",
48236
48322
  xmlns: "http://www.w3.org/2000/svg",
48237
48323
  viewBox: "0 0 576 512"
48238
48324
  }, [
48239
48325
  /* @__PURE__ */ createElementVNode("path", { d: "M64 0C28.7 0 0 28.7 0 64V352c0 35.3 28.7 64 64 64H240l-10.7 32H160c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H346.7L336 416H512c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM512 64V352H64V64H512z" })
48240
48326
  ], -1));
48241
- const _hoisted_7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
48327
+ const _hoisted_7$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
48242
48328
  class: "icon",
48243
48329
  xmlns: "http://www.w3.org/2000/svg",
48244
48330
  viewBox: "0 0 512 512"
48245
48331
  }, [
48246
48332
  /* @__PURE__ */ createElementVNode("path", { d: "M0 32C0 14.3 14.3 0 32 0H160c17.7 0 32 14.3 32 32V416c0 53-43 96-96 96s-96-43-96-96V32zM223.6 425.9c.3-3.3 .4-6.6 .4-9.9V154l75.4-75.4c12.5-12.5 32.8-12.5 45.3 0l90.5 90.5c12.5 12.5 12.5 32.8 0 45.3L223.6 425.9zM182.8 512l192-192H480c17.7 0 32 14.3 32 32V480c0 17.7-14.3 32-32 32H182.8zM128 64H64v64h64V64zM64 192v64h64V192H64zM96 440a24 24 0 1 0 0-48 24 24 0 1 0 0 48z" })
48247
48333
  ], -1));
48248
- const _hoisted_8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
48334
+ const _hoisted_8$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
48249
48335
  class: "icon",
48250
48336
  xmlns: "http://www.w3.org/2000/svg",
48251
48337
  viewBox: "0 0 512 512"
48252
48338
  }, [
48253
48339
  /* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z" })
48254
48340
  ], -1));
48255
- const _hoisted_9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
48341
+ const _hoisted_9$1 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("svg", {
48256
48342
  class: "icon",
48257
48343
  xmlns: "http://www.w3.org/2000/svg",
48258
48344
  viewBox: "0 0 512 512"
48259
48345
  }, [
48260
48346
  /* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })
48261
48347
  ], -1));
48262
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
48348
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
48263
48349
  __name: "VPreview",
48264
48350
  props: {
48265
48351
  hideMobileToggle: {
@@ -48315,36 +48401,36 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
48315
48401
  const swatches = ref(false);
48316
48402
  const toggleSwatches = () => swatches.value = !swatches.value;
48317
48403
  return (_ctx, _cache) => {
48318
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
48404
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
48319
48405
  createElementVNode("header", {
48320
48406
  class: normalizeClass(`vuetiful-previewer-header flex items-center justify-between gap-4 p-4 bg-surface-200-700-token ${__props.regionHeader}`)
48321
48407
  }, [
48322
- createElementVNode("div", _hoisted_2$3, [
48323
- createVNode(unref(_sfc_main$k), {
48408
+ createElementVNode("div", _hoisted_2$5, [
48409
+ createVNode(unref(_sfc_main$n), {
48324
48410
  modelValue: tabView.value,
48325
48411
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tabView.value = $event)
48326
48412
  }, {
48327
48413
  default: withCtx(() => [
48328
- createVNode(unref(_sfc_main$j), {
48414
+ createVNode(unref(_sfc_main$m), {
48329
48415
  "data-test": "radio-item-preview",
48330
48416
  value: "preview",
48331
48417
  title: "Preview"
48332
48418
  }, {
48333
48419
  default: withCtx(() => [
48334
48420
  renderSlot(_ctx.$slots, "preview-item", {}, () => [
48335
- _hoisted_3$2
48421
+ _hoisted_3$4
48336
48422
  ], true)
48337
48423
  ]),
48338
48424
  _: 3
48339
48425
  }),
48340
- createVNode(unref(_sfc_main$j), {
48426
+ createVNode(unref(_sfc_main$m), {
48341
48427
  "data-test": "radio-item-code",
48342
48428
  value: "code",
48343
48429
  title: "Code"
48344
48430
  }, {
48345
48431
  default: withCtx(() => [
48346
48432
  renderSlot(_ctx.$slots, "code-item", {}, () => [
48347
- _hoisted_4$1
48433
+ _hoisted_4$2
48348
48434
  ], true)
48349
48435
  ]),
48350
48436
  _: 3
@@ -48352,28 +48438,28 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
48352
48438
  ]),
48353
48439
  _: 3
48354
48440
  }, 8, ["modelValue"]),
48355
- !__props.hideMobileToggle && tabView.value === "preview" ? (openBlock(), createBlock(unref(_sfc_main$k), {
48441
+ !__props.hideMobileToggle && tabView.value === "preview" ? (openBlock(), createBlock(unref(_sfc_main$n), {
48356
48442
  key: 0,
48357
48443
  class: "hidden sm:!inline-flex",
48358
48444
  modelValue: radioSize.value,
48359
48445
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => radioSize.value = $event)
48360
48446
  }, {
48361
48447
  default: withCtx(() => [
48362
- createVNode(unref(_sfc_main$j), {
48448
+ createVNode(unref(_sfc_main$m), {
48363
48449
  "data-test": "radio-item-mobile",
48364
48450
  value: "mobile"
48365
48451
  }, {
48366
48452
  default: withCtx(() => [
48367
48453
  renderSlot(_ctx.$slots, "mobile-item", {}, () => [
48368
- _hoisted_5$1
48454
+ _hoisted_5$2
48369
48455
  ], true)
48370
48456
  ]),
48371
48457
  _: 3
48372
48458
  }),
48373
- createVNode(unref(_sfc_main$j), { value: "full" }, {
48459
+ createVNode(unref(_sfc_main$m), { value: "full" }, {
48374
48460
  default: withCtx(() => [
48375
48461
  renderSlot(_ctx.$slots, "desktop-item", {}, () => [
48376
- _hoisted_6$1
48462
+ _hoisted_6$2
48377
48463
  ], true)
48378
48464
  ]),
48379
48465
  _: 3
@@ -48382,7 +48468,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
48382
48468
  _: 3
48383
48469
  }, 8, ["modelValue"])) : createCommentVNode("", true)
48384
48470
  ]),
48385
- !__props.hideSwatches ? (openBlock(), createBlock(unref(_sfc_main$p), {
48471
+ !__props.hideSwatches ? (openBlock(), createBlock(unref(_sfc_main$s), {
48386
48472
  key: 0,
48387
48473
  "data-test": "swatch-button",
48388
48474
  class: normalizeClass(`${swatches.value ? "variant-filled" : "variant-ghost"} px-4 py-1 border-token border-surface-400-500-token`),
@@ -48391,13 +48477,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
48391
48477
  }, {
48392
48478
  default: withCtx(() => [
48393
48479
  renderSlot(_ctx.$slots, "swatchbook-item", {}, () => [
48394
- _hoisted_7
48480
+ _hoisted_7$1
48395
48481
  ], true)
48396
48482
  ]),
48397
48483
  _: 3
48398
48484
  }, 8, ["class"])) : createCommentVNode("", true)
48399
48485
  ], 2),
48400
- swatches.value ? (openBlock(), createBlock(unref(_sfc_main$k), {
48486
+ swatches.value ? (openBlock(), createBlock(unref(_sfc_main$n), {
48401
48487
  key: 0,
48402
48488
  "data-test": "swatches",
48403
48489
  class: normalizeClass(`vuetiful-previewer-swatches variant-soft grid grid-cols-6 gap-2 !rounded-none p-4 sm:grid-cols-12`),
@@ -48408,7 +48494,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
48408
48494
  }, {
48409
48495
  default: withCtx(() => [
48410
48496
  (openBlock(true), createElementBlock(Fragment, null, renderList(Object.entries(backgrounds), ([key, value], index2) => {
48411
- return openBlock(), createBlock(unref(_sfc_main$j), {
48497
+ return openBlock(), createBlock(unref(_sfc_main$m), {
48412
48498
  value: key,
48413
48499
  key: index2,
48414
48500
  class: normalizeClass(`${value} flex aspect-square cursor-pointer items-center justify-center rounded ring-[1px] ring-surface-500/50`),
@@ -48416,10 +48502,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
48416
48502
  }, {
48417
48503
  default: withCtx(() => [
48418
48504
  index2 === 0 && chosenBackground.value !== key ? renderSlot(_ctx.$slots, "cancel-item", { key: 0 }, () => [
48419
- _hoisted_8
48505
+ _hoisted_8$1
48420
48506
  ], true) : createCommentVNode("", true),
48421
48507
  chosenBackground.value === key ? renderSlot(_ctx.$slots, "selected-item", { key: 1 }, () => [
48422
- _hoisted_9
48508
+ _hoisted_9$1
48423
48509
  ], true) : createCommentVNode("", true)
48424
48510
  ]),
48425
48511
  _: 2
@@ -48461,9 +48547,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
48461
48547
  };
48462
48548
  }
48463
48549
  });
48464
- var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-0d055d3d"]]);
48465
- const _hoisted_1$3 = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
48466
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
48550
+ var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-0d055d3d"]]);
48551
+ const _hoisted_1$6 = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
48552
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
48467
48553
  __name: "VRail",
48468
48554
  props: {
48469
48555
  active: {
@@ -48492,7 +48578,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
48492
48578
  provide("active", props.active);
48493
48579
  provide("hover", props.hover);
48494
48580
  return (_ctx, _cache) => {
48495
- return openBlock(), createElementBlock("div", _hoisted_1$3, [
48581
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
48496
48582
  createElementVNode("div", {
48497
48583
  class: normalizeClass(["v-bar-lead", __props.regionLead])
48498
48584
  }, [
@@ -48512,7 +48598,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
48512
48598
  };
48513
48599
  }
48514
48600
  });
48515
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
48601
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
48516
48602
  __name: "VRailTile",
48517
48603
  props: {
48518
48604
  value: {
@@ -48588,9 +48674,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
48588
48674
  };
48589
48675
  }
48590
48676
  });
48591
- const _hoisted_1$2 = { class: "vuetiful-shell flex h-full w-full flex-col overflow-hidden" };
48592
- const _hoisted_2$2 = { class: "vuetiful-shell-content flex h-full w-full flex-auto overflow-hidden" };
48593
- const _sfc_main$9 = defineComponent({
48677
+ const _hoisted_1$5 = { class: "vuetiful-shell flex h-full w-full flex-col overflow-hidden" };
48678
+ const _hoisted_2$4 = { class: "vuetiful-shell-content flex h-full w-full flex-auto overflow-hidden" };
48679
+ const _sfc_main$c = defineComponent({
48594
48680
  __name: "VShell",
48595
48681
  props: {
48596
48682
  regionPage: { type: String, default: "" },
@@ -48605,14 +48691,14 @@ const _sfc_main$9 = defineComponent({
48605
48691
  setup(__props) {
48606
48692
  return (_ctx, _cache) => {
48607
48693
  var _a;
48608
- return openBlock(), createElementBlock("div", _hoisted_1$2, [
48694
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
48609
48695
  _ctx.$slots.fixedHeader ? (openBlock(), createElementBlock("header", {
48610
48696
  key: 0,
48611
48697
  class: normalizeClass(`vuetiful-fixed-header ${__props.slotFixedHeader}`)
48612
48698
  }, [
48613
48699
  renderSlot(_ctx.$slots, "fixedHeader")
48614
48700
  ], 2)) : createCommentVNode("", true),
48615
- createElementVNode("div", _hoisted_2$2, [
48701
+ createElementVNode("div", _hoisted_2$4, [
48616
48702
  _ctx.$slots.sidebarLeft ? (openBlock(), createElementBlock("aside", {
48617
48703
  key: 0,
48618
48704
  class: normalizeClass(`vuetiful-sidebar-left overflow-y-auto overflow-x-hidden ${__props.slotSidebarLeft}`)
@@ -48659,23 +48745,23 @@ const _sfc_main$9 = defineComponent({
48659
48745
  }
48660
48746
  });
48661
48747
  var VListboxButton_vue_vue_type_style_index_0_scoped_true_lang = "";
48662
- const _withScopeId = (n2) => (pushScopeId("data-v-85546624"), n2 = n2(), popScopeId(), n2);
48663
- const _hoisted_1$1 = { key: 0 };
48664
- const _hoisted_2$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
48748
+ const _withScopeId$2 = (n2) => (pushScopeId("data-v-85546624"), n2 = n2(), popScopeId(), n2);
48749
+ const _hoisted_1$4 = { key: 0 };
48750
+ const _hoisted_2$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
48665
48751
  class: "icon",
48666
48752
  xmlns: "http://www.w3.org/2000/svg",
48667
48753
  viewBox: "0 0 512 512"
48668
48754
  }, [
48669
48755
  /* @__PURE__ */ createElementVNode("path", { d: "M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z" })
48670
48756
  ], -1));
48671
- const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("svg", {
48757
+ const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("svg", {
48672
48758
  class: "icon",
48673
48759
  xmlns: "http://www.w3.org/2000/svg",
48674
48760
  viewBox: "0 0 512 512"
48675
48761
  }, [
48676
48762
  /* @__PURE__ */ createElementVNode("path", { d: "M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z" })
48677
48763
  ], -1));
48678
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
48764
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
48679
48765
  __name: "VListboxButton",
48680
48766
  props: {
48681
48767
  as: {
@@ -48695,12 +48781,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
48695
48781
  }, {
48696
48782
  default: withCtx(({ open }) => [
48697
48783
  renderSlot(_ctx.$slots, "default", {}, void 0, true),
48698
- !__props.hideIcon ? (openBlock(), createElementBlock("span", _hoisted_1$1, [
48784
+ !__props.hideIcon ? (openBlock(), createElementBlock("span", _hoisted_1$4, [
48699
48785
  !open ? renderSlot(_ctx.$slots, "open-icon", { key: 0 }, () => [
48700
- _hoisted_2$1
48786
+ _hoisted_2$3
48701
48787
  ], true) : createCommentVNode("", true),
48702
48788
  open ? renderSlot(_ctx.$slots, "close-icon", { key: 1 }, () => [
48703
- _hoisted_3$1
48789
+ _hoisted_3$3
48704
48790
  ], true) : createCommentVNode("", true)
48705
48791
  ])) : createCommentVNode("", true)
48706
48792
  ]),
@@ -48709,8 +48795,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
48709
48795
  };
48710
48796
  }
48711
48797
  });
48712
- var VListboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-85546624"]]);
48713
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
48798
+ var VListboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-85546624"]]);
48799
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
48714
48800
  __name: "VListboxItems",
48715
48801
  props: {
48716
48802
  as: {
@@ -48745,7 +48831,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
48745
48831
  };
48746
48832
  }
48747
48833
  });
48748
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
48834
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
48749
48835
  __name: "VListboxLabel",
48750
48836
  props: {
48751
48837
  as: {
@@ -48764,7 +48850,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
48764
48850
  };
48765
48851
  }
48766
48852
  });
48767
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
48853
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
48768
48854
  __name: "VListbox",
48769
48855
  props: {
48770
48856
  by: {
@@ -48857,7 +48943,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
48857
48943
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => parentModelValue.value = $event)
48858
48944
  }, {
48859
48945
  default: withCtx(() => [
48860
- __props.labelText ? (openBlock(), createBlock(_sfc_main$6, {
48946
+ __props.labelText ? (openBlock(), createBlock(_sfc_main$9, {
48861
48947
  key: 0,
48862
48948
  class: normalizeClass(__props.labelClasses)
48863
48949
  }, {
@@ -48884,7 +48970,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
48884
48970
  "leave-to-class": "opacity-0"
48885
48971
  }, {
48886
48972
  default: withCtx(() => [
48887
- createVNode(_sfc_main$7, { class: "absolute mt-1 min-w-full" }, {
48973
+ createVNode(_sfc_main$a, { class: "absolute mt-1 min-w-full" }, {
48888
48974
  default: withCtx(() => [
48889
48975
  renderSlot(_ctx.$slots, "default")
48890
48976
  ]),
@@ -48899,7 +48985,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
48899
48985
  };
48900
48986
  }
48901
48987
  });
48902
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
48988
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
48903
48989
  __name: "VListboxItem",
48904
48990
  props: {
48905
48991
  value: {
@@ -48925,7 +49011,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
48925
49011
  };
48926
49012
  }
48927
49013
  });
48928
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
49014
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
48929
49015
  __name: "VTab",
48930
49016
  props: {
48931
49017
  disabled: {
@@ -48965,7 +49051,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
48965
49051
  };
48966
49052
  }
48967
49053
  });
48968
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
49054
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
48969
49055
  __name: "VTabPanel",
48970
49056
  setup(__props) {
48971
49057
  return (_ctx, _cache) => {
@@ -48978,7 +49064,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
48978
49064
  };
48979
49065
  }
48980
49066
  });
48981
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
49067
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
48982
49068
  __name: "VTabs",
48983
49069
  props: {
48984
49070
  hideSeparator: {
@@ -49062,43 +49148,261 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
49062
49148
  };
49063
49149
  }
49064
49150
  });
49151
+ const _hoisted_1$3 = { class: "vuetiful-accordion flex w-full flex-col gap-1" };
49152
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
49153
+ __name: "VAccordion",
49154
+ props: {
49155
+ hover: {
49156
+ type: String,
49157
+ default: "hover:variant-soft"
49158
+ },
49159
+ background: {
49160
+ type: String,
49161
+ default: "bg-surface-200-700-token"
49162
+ }
49163
+ },
49164
+ setup(__props) {
49165
+ const props = __props;
49166
+ provide("hover", props.hover);
49167
+ provide("background", props.background);
49168
+ return (_ctx, _cache) => {
49169
+ return openBlock(), createElementBlock("div", _hoisted_1$3, [
49170
+ renderSlot(_ctx.$slots, "default")
49171
+ ]);
49172
+ };
49173
+ }
49174
+ });
49175
+ var VAccordionItem_vue_vue_type_style_index_0_scoped_true_lang = "";
49176
+ const _withScopeId$1 = (n2) => (pushScopeId("data-v-75f8b8b4"), n2 = n2(), popScopeId(), n2);
49177
+ const _hoisted_1$2 = { class: "vuetiful-accordion-title" };
49178
+ const _hoisted_2$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
49179
+ class: "icon",
49180
+ xmlns: "http://www.w3.org/2000/svg",
49181
+ viewBox: "0 0 448 512"
49182
+ }, [
49183
+ /* @__PURE__ */ createElementVNode("path", { d: "M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z" })
49184
+ ], -1));
49185
+ const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
49186
+ class: "icon",
49187
+ xmlns: "http://www.w3.org/2000/svg",
49188
+ viewBox: "0 0 448 512"
49189
+ }, [
49190
+ /* @__PURE__ */ createElementVNode("path", { d: "M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z" })
49191
+ ], -1));
49192
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
49193
+ __name: "VAccordionItem",
49194
+ props: {
49195
+ title: {
49196
+ type: String,
49197
+ required: true
49198
+ }
49199
+ },
49200
+ setup(__props) {
49201
+ const hover = inject("hover");
49202
+ const background = inject("background");
49203
+ return (_ctx, _cache) => {
49204
+ return openBlock(), createBlock(unref(Q), {
49205
+ class: "vuetiful-accordion-item",
49206
+ as: "div"
49207
+ }, {
49208
+ default: withCtx(({ open }) => [
49209
+ createVNode(unref(V), {
49210
+ class: normalizeClass([`${unref(background)} ${unref(hover)} ${open ? "!rounded-bl-none !rounded-br-none" : ""}`, "vuetiful-accordion-item-button w-full rounded-container-token"])
49211
+ }, {
49212
+ default: withCtx(() => [
49213
+ createElementVNode("div", {
49214
+ class: normalizeClass(["flex items-center justify-between p-4 rounded-container-token hover:cursor-pointer", `${unref(background)} ${unref(hover)} ${open ? "!rounded-bl-none !rounded-br-none" : ""}`])
49215
+ }, [
49216
+ createElementVNode("span", _hoisted_1$2, toDisplayString(__props.title), 1),
49217
+ !open ? renderSlot(_ctx.$slots, "open-item", { key: 0 }, () => [
49218
+ _hoisted_2$2
49219
+ ], true) : createCommentVNode("", true),
49220
+ open ? renderSlot(_ctx.$slots, "close-item", { key: 1 }, () => [
49221
+ _hoisted_3$2
49222
+ ], true) : createCommentVNode("", true)
49223
+ ], 2)
49224
+ ]),
49225
+ _: 2
49226
+ }, 1032, ["class"]),
49227
+ createVNode(unref(X), {
49228
+ class: normalizeClass(["vuetiful-accordion-item-panel p-4 pt-0 rounded-container-token", `${open ? `${unref(background)} !rounded-tl-none !rounded-tr-none` : ""}`])
49229
+ }, {
49230
+ default: withCtx(() => [
49231
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
49232
+ ]),
49233
+ _: 2
49234
+ }, 1032, ["class"])
49235
+ ]),
49236
+ _: 3
49237
+ });
49238
+ };
49239
+ }
49240
+ });
49241
+ var VAccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-75f8b8b4"]]);
49242
+ var VAlert_vue_vue_type_style_index_0_scoped_true_lang = "";
49243
+ const _withScopeId = (n2) => (pushScopeId("data-v-5669e826"), n2 = n2(), popScopeId(), n2);
49244
+ const _hoisted_1$1 = { key: 0 };
49245
+ const _hoisted_2$1 = {
49246
+ key: 0,
49247
+ class: "icon",
49248
+ xmlns: "http://www.w3.org/2000/svg",
49249
+ viewBox: "0 0 512 512"
49250
+ };
49251
+ const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z" }, null, -1));
49252
+ const _hoisted_4$1 = [
49253
+ _hoisted_3$1
49254
+ ];
49255
+ const _hoisted_5$1 = {
49256
+ key: 1,
49257
+ class: "icon",
49258
+ xmlns: "http://www.w3.org/2000/svg",
49259
+ viewBox: "0 0 512 512"
49260
+ };
49261
+ const _hoisted_6$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }, null, -1));
49262
+ const _hoisted_7 = [
49263
+ _hoisted_6$1
49264
+ ];
49265
+ const _hoisted_8 = {
49266
+ key: 2,
49267
+ class: "icon",
49268
+ xmlns: "http://www.w3.org/2000/svg",
49269
+ viewBox: "0 0 512 512"
49270
+ };
49271
+ const _hoisted_9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" }, null, -1));
49272
+ const _hoisted_10 = [
49273
+ _hoisted_9
49274
+ ];
49275
+ const _hoisted_11 = {
49276
+ key: 3,
49277
+ class: "icon",
49278
+ xmlns: "http://www.w3.org/2000/svg",
49279
+ viewBox: "0 0 512 512"
49280
+ };
49281
+ const _hoisted_12 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("path", { d: "M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z" }, null, -1));
49282
+ const _hoisted_13 = [
49283
+ _hoisted_12
49284
+ ];
49285
+ const _hoisted_14 = { class: "vuetiful-alert-message flex-auto" };
49286
+ const _hoisted_15 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1));
49287
+ const _hoisted_16 = [
49288
+ _hoisted_15
49289
+ ];
49290
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
49291
+ __name: "VAlert",
49292
+ props: {
49293
+ hideIcon: {
49294
+ type: Boolean,
49295
+ default: false
49296
+ },
49297
+ hideClose: {
49298
+ type: Boolean,
49299
+ default: false
49300
+ },
49301
+ show: {
49302
+ type: Boolean,
49303
+ default: true
49304
+ },
49305
+ type: {
49306
+ type: String,
49307
+ default: ""
49308
+ }
49309
+ },
49310
+ emits: ["close"],
49311
+ setup(__props, { emit }) {
49312
+ const props = __props;
49313
+ const typeBackground = computed(() => {
49314
+ switch (props.type) {
49315
+ case "info":
49316
+ return "variant-filled";
49317
+ case "success":
49318
+ return "variant-filled-success";
49319
+ case "warning":
49320
+ return "variant-filled-warning";
49321
+ case "error":
49322
+ return "variant-filled-error";
49323
+ default:
49324
+ return "variant-filled-primary";
49325
+ }
49326
+ });
49327
+ const close = () => emit("close");
49328
+ const handleKeydown = (event) => {
49329
+ if (event.key === "Enter" || event.key === " ") {
49330
+ close();
49331
+ }
49332
+ };
49333
+ return (_ctx, _cache) => {
49334
+ return __props.show ? (openBlock(), createElementBlock("aside", {
49335
+ key: 0,
49336
+ class: normalizeClass(`vuetiful-alert flex w-full flex-row items-center gap-4 p-4 border-token rounded-container-token ${unref(typeBackground)}`)
49337
+ }, [
49338
+ !__props.hideIcon ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
49339
+ _ctx.$slots.pre ? renderSlot(_ctx.$slots, "pre", { key: 0 }, void 0, true) : createCommentVNode("", true),
49340
+ !_ctx.$slots.pre ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
49341
+ __props.type === "info" ? (openBlock(), createElementBlock("svg", _hoisted_2$1, _hoisted_4$1)) : createCommentVNode("", true),
49342
+ __props.type === "success" ? (openBlock(), createElementBlock("svg", _hoisted_5$1, _hoisted_7)) : createCommentVNode("", true),
49343
+ __props.type === "warning" ? (openBlock(), createElementBlock("svg", _hoisted_8, _hoisted_10)) : createCommentVNode("", true),
49344
+ __props.type === "error" ? (openBlock(), createElementBlock("svg", _hoisted_11, _hoisted_13)) : createCommentVNode("", true)
49345
+ ], 64)) : createCommentVNode("", true)
49346
+ ])) : createCommentVNode("", true),
49347
+ createElementVNode("div", _hoisted_14, [
49348
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
49349
+ ]),
49350
+ renderSlot(_ctx.$slots, "actions", {}, void 0, true),
49351
+ !__props.hideClose ? (openBlock(), createElementBlock("svg", {
49352
+ key: 1,
49353
+ "data-test": "close",
49354
+ tabindex: "0",
49355
+ onKeydown: handleKeydown,
49356
+ onClick: close,
49357
+ class: "icon hover:cursor-pointer",
49358
+ xmlns: "http://www.w3.org/2000/svg",
49359
+ viewBox: "0 0 384 512"
49360
+ }, _hoisted_16, 32)) : createCommentVNode("", true)
49361
+ ], 2)) : createCommentVNode("", true);
49362
+ };
49363
+ }
49364
+ });
49365
+ var VAlert = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5669e826"]]);
49065
49366
  var components = /* @__PURE__ */ Object.freeze({
49066
49367
  __proto__: null,
49067
49368
  [Symbol.toStringTag]: "Module",
49068
- VAvatar: _sfc_main$r,
49069
- VButton: _sfc_main$p,
49369
+ VAvatar: _sfc_main$u,
49370
+ VButton: _sfc_main$s,
49070
49371
  VBadge,
49071
49372
  VChip,
49072
- VCodeBlock: _sfc_main$n,
49373
+ VCodeBlock: _sfc_main$q,
49073
49374
  VLightSwitch,
49074
- VRadioGroup: _sfc_main$k,
49075
- VRadioItem: _sfc_main$j,
49076
- VRadioLabel: _sfc_main$i,
49077
- VRadioDescription: _sfc_main$l,
49078
- VSwitchGroup: _sfc_main$f,
49079
- VSwitchLabel: _sfc_main$e,
49080
- VSwitchDescription: _sfc_main$g,
49081
- VSwitch: _sfc_main$h,
49082
- VDrawer: _sfc_main$d,
49083
- VListbox: _sfc_main$5,
49375
+ VRadioGroup: _sfc_main$n,
49376
+ VRadioItem: _sfc_main$m,
49377
+ VRadioLabel: _sfc_main$l,
49378
+ VRadioDescription: _sfc_main$o,
49379
+ VSwitchGroup: _sfc_main$i,
49380
+ VSwitchLabel: _sfc_main$h,
49381
+ VSwitchDescription: _sfc_main$j,
49382
+ VSwitch: _sfc_main$k,
49383
+ VAccordion: _sfc_main$3,
49384
+ VAccordionItem,
49385
+ VAlert,
49386
+ VDrawer: _sfc_main$g,
49387
+ VListbox: _sfc_main$8,
49084
49388
  VListboxButton,
49085
- VListboxItem: _sfc_main$4,
49086
- VListboxItems: _sfc_main$7,
49087
- VListboxLabel: _sfc_main$6,
49389
+ VListboxItem: _sfc_main$7,
49390
+ VListboxItems: _sfc_main$a,
49391
+ VListboxLabel: _sfc_main$9,
49088
49392
  VPreview,
49089
- VRail: _sfc_main$b,
49090
- VRailTile: _sfc_main$a,
49091
- VShell: _sfc_main$9,
49092
- VTab: _sfc_main$3,
49093
- VTabPanel: _sfc_main$2,
49094
- VTabs: _sfc_main$1
49393
+ VRail: _sfc_main$e,
49394
+ VRailTile: _sfc_main$d,
49395
+ VShell: _sfc_main$c,
49396
+ VTab: _sfc_main$6,
49397
+ VTabPanel: _sfc_main$5,
49398
+ VTabs: _sfc_main$4
49095
49399
  });
49096
49400
  var main = "";
49097
49401
  var tailwind = "";
49098
49402
  const _sfc_main = defineComponent({
49099
49403
  components: {
49100
49404
  VLightSwitch,
49101
- VButton: _sfc_main$p
49405
+ VButton: _sfc_main$s
49102
49406
  },
49103
49407
  props: {
49104
49408
  bgLight: {
@@ -49338,4 +49642,4 @@ function install(app) {
49338
49642
  }
49339
49643
  }
49340
49644
  var index = { install };
49341
- export { themeSwitcher as ThemeSwitcher, _sfc_main$r as VAvatar, VBadge, _sfc_main$p as VButton, VChip, _sfc_main$n as VCodeBlock, _sfc_main$d as VDrawer, VLightSwitch, _sfc_main$5 as VListbox, VListboxButton, _sfc_main$4 as VListboxItem, _sfc_main$7 as VListboxItems, _sfc_main$6 as VListboxLabel, VPreview, _sfc_main$l as VRadioDescription, _sfc_main$k as VRadioGroup, _sfc_main$j as VRadioItem, _sfc_main$i as VRadioLabel, _sfc_main$b as VRail, _sfc_main$a as VRailTile, _sfc_main$9 as VShell, _sfc_main$h as VSwitch, _sfc_main$g as VSwitchDescription, _sfc_main$f as VSwitchGroup, _sfc_main$e as VSwitchLabel, _sfc_main$3 as VTab, _sfc_main$2 as VTabPanel, _sfc_main$1 as VTabs, index as default, useDarkMode, useDrawer, useHighlight, useRail, useTheme, clipboard as vClipboard };
49645
+ export { themeSwitcher as ThemeSwitcher, _sfc_main$3 as VAccordion, VAccordionItem, VAlert, _sfc_main$u as VAvatar, VBadge, _sfc_main$s as VButton, VChip, _sfc_main$q as VCodeBlock, _sfc_main$g as VDrawer, VLightSwitch, _sfc_main$8 as VListbox, VListboxButton, _sfc_main$7 as VListboxItem, _sfc_main$a as VListboxItems, _sfc_main$9 as VListboxLabel, VPreview, _sfc_main$o as VRadioDescription, _sfc_main$n as VRadioGroup, _sfc_main$m as VRadioItem, _sfc_main$l as VRadioLabel, _sfc_main$e as VRail, _sfc_main$d as VRailTile, _sfc_main$c as VShell, _sfc_main$k as VSwitch, _sfc_main$j as VSwitchDescription, _sfc_main$i as VSwitchGroup, _sfc_main$h as VSwitchLabel, _sfc_main$6 as VTab, _sfc_main$5 as VTabPanel, _sfc_main$4 as VTabs, index as default, useDarkMode, useDrawer, useHighlight, useRail, useTheme, clipboard as vClipboard };