@wow-two-beta/fe 0.0.32 → 0.0.34

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.
Files changed (73) hide show
  1. package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js +155 -0
  2. package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js.map +1 -0
  3. package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js → BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js} +74 -31
  4. package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js.map +1 -0
  5. package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js → ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js} +70 -230
  6. package/dist/chunks/ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js.map +1 -0
  7. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js} +87 -233
  8. package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js.map +1 -0
  9. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js +216 -0
  10. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js.map +1 -0
  11. package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js → KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js} +390 -203
  12. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js.map +1 -0
  13. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -1
  14. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js → RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js} +939 -1063
  15. package/dist/chunks/RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js.map +1 -0
  16. package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js +447 -0
  17. package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js.map +1 -0
  18. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js → TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js} +313 -109
  19. package/dist/chunks/TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js.map +1 -0
  20. package/dist/foundation/device/hooks/UseBreakpointRange.d.ts +21 -0
  21. package/dist/foundation/device/index.d.ts +1 -0
  22. package/dist/foundation/device/index.js +13 -0
  23. package/dist/foundation/device/index.js.map +1 -1
  24. package/dist/foundation/http/ApiDecoderExtensions.d.ts +22 -0
  25. package/dist/foundation/http/ApiFailureExtensions.d.ts +22 -0
  26. package/dist/foundation/http/ProblemDetailsExtensions.d.ts +31 -0
  27. package/dist/foundation/http/index.d.ts +3 -0
  28. package/dist/foundation/http/index.js +93 -2
  29. package/dist/foundation/http/index.js.map +1 -1
  30. package/dist/index.js +642 -633
  31. package/dist/index.js.map +1 -1
  32. package/dist/presentation/actions/index.d.ts +1 -0
  33. package/dist/presentation/actions/index.js +12 -11
  34. package/dist/presentation/actions/refreshButton/RefreshButton.vue.d.ts +26 -0
  35. package/dist/presentation/actions/refreshButton/index.d.ts +1 -0
  36. package/dist/presentation/display/badge/Badge.variants.d.ts +77 -10
  37. package/dist/presentation/display/badge/Badge.vue.d.ts +18 -1
  38. package/dist/presentation/display/badge/index.d.ts +1 -1
  39. package/dist/presentation/display/card/CardLink.vue.d.ts +19 -0
  40. package/dist/presentation/display/card/index.d.ts +1 -0
  41. package/dist/presentation/display/index.js +63 -60
  42. package/dist/presentation/display/index.js.map +1 -1
  43. package/dist/presentation/display/listGroup/ListGroupItem.vue.d.ts +17 -0
  44. package/dist/presentation/display/sparkline/Sparkline.vue.d.ts +32 -2
  45. package/dist/presentation/display/sparkline/index.d.ts +1 -1
  46. package/dist/presentation/feedback/dataRegion/DataRegion.vue.d.ts +1 -1
  47. package/dist/presentation/feedback/index.js +43 -42
  48. package/dist/presentation/feedback/index.js.map +1 -1
  49. package/dist/presentation/forms/index.d.ts +2 -0
  50. package/dist/presentation/forms/index.js +140 -137
  51. package/dist/presentation/forms/rowsField/RowsField.vue.d.ts +56 -0
  52. package/dist/presentation/forms/rowsField/index.d.ts +1 -0
  53. package/dist/presentation/forms/tagsInput/TagsInput.vue.d.ts +1 -1
  54. package/dist/presentation/forms/typedConfirmField/TypedConfirmField.vue.d.ts +61 -0
  55. package/dist/presentation/forms/typedConfirmField/UseTypedConfirmation.d.ts +32 -0
  56. package/dist/presentation/forms/typedConfirmField/index.d.ts +2 -0
  57. package/dist/presentation/overlays/index.d.ts +1 -0
  58. package/dist/presentation/overlays/index.js +6 -5
  59. package/dist/presentation/overlays/typedConfirmModal/TypedConfirmModal.vue.d.ts +80 -0
  60. package/dist/presentation/overlays/typedConfirmModal/index.d.ts +1 -0
  61. package/dist/router/adapters/vueRouter/hooks/UseListDetailRoute.d.ts +28 -0
  62. package/dist/router/adapters/vueRouter/index.d.ts +1 -0
  63. package/dist/router/index.js +34 -0
  64. package/dist/router/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map +0 -1
  67. package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map +0 -1
  68. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map +0 -1
  69. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +0 -1
  70. package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map +0 -1
  71. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +0 -44
  72. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +0 -1
  73. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +0 -1
@@ -1,32 +1,34 @@
1
- import { defineComponent, useAttrs, useTemplateRef, watch, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, createElementVNode, useSlots, shallowRef, onScopeDispose, createVNode, toDisplayString, createTextVNode, createCommentVNode, provide, inject, ref, normalizeStyle, withModifiers, normalizeClass } from "vue";
1
+ import { defineComponent, useAttrs, useTemplateRef, watch, computed, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot, createElementBlock, createElementVNode, useSlots, shallowRef, onScopeDispose, createVNode, toDisplayString, createTextVNode, createCommentVNode, provide, inject, ref, normalizeStyle, withModifiers, normalizeClass, createSlots } from "vue";
2
2
  import { r as resolveElement } from "./ResolveElement-CyRfM82x.js";
3
- import { O as OverlayExtensions, _ as _sfc_main$x, b as _sfc_main$y, a as _sfc_main$z } from "./PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js";
4
- import { u as useModalContext, a as _sfc_main$t, M as ModalPhoneLayout, c as _sfc_main$u, b as _sfc_main$v, _ as _sfc_main$F } from "./OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js";
3
+ import { O as OverlayExtensions, _ as _sfc_main$y, b as _sfc_main$z, a as _sfc_main$A } from "./PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js";
4
+ import { u as useModalContext, a as _sfc_main$u, M as ModalPhoneLayout, c as _sfc_main$v, b as _sfc_main$w, _ as _sfc_main$G } from "./OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js";
5
5
  import { P as Primitive } from "./Primitive-D-9ShOm7.js";
6
6
  import { c as cn } from "./Cn-C7De6POU.js";
7
- import { u as useDrawerContext, _ as _sfc_main$D, a as _sfc_main$E } from "./DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js";
8
- import { _ as _sfc_main$w } from "./OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js";
7
+ import { u as useDrawerContext, _ as _sfc_main$E, a as _sfc_main$F } from "./DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js";
8
+ import { _ as _sfc_main$x } from "./OverlayArrow.vue_vue_type_script_setup_true_lang-CLYhnI8i.js";
9
9
  import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
10
10
  import { u as useId } from "./UseId-CtgAhGrn.js";
11
11
  import { u as useControlled } from "./UseControlled-BQneb7BW.js";
12
- import { _ as _sfc_main$A } from "./Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js";
12
+ import { _ as _sfc_main$B } from "./Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js";
13
13
  import { u as useEscape } from "./UseEscape-3hj5BJus.js";
14
- import { _ as _sfc_main$B } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
15
- import { _ as _sfc_main$C } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
14
+ import { _ as _sfc_main$C } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
15
+ import { _ as _sfc_main$D } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
16
16
  import { P as Presence } from "./Presence-DDk0ZtAr.js";
17
17
  import { u as useLocale } from "./LocaleContext-B7vUZmX-.js";
18
- import { u as useOverlayChromeContext, o as overlayChromeContextKey } from "./OverlayChrome-BqRpuYX5.js";
19
18
  import { s as surfaceVariants } from "./SurfaceStyles-DUVz963_.js";
20
- import { _ as _sfc_main$H } from "./BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
21
- import { _ as _sfc_main$G } from "./ScrollLockProvider.vue_vue_type_script_setup_true_lang-C6WDtqT0.js";
22
- import { _ as _sfc_main$I } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
23
- import { _ as _sfc_main$J } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
19
+ import { _ as _sfc_main$I } from "./BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
20
+ import { u as useOverlayChromeContext, o as overlayChromeContextKey } from "./OverlayChrome-BqRpuYX5.js";
21
+ import { _ as _sfc_main$H } from "./ScrollLockProvider.vue_vue_type_script_setup_true_lang-C6WDtqT0.js";
22
+ import { _ as _sfc_main$J } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
23
+ import { _ as _sfc_main$K } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
24
24
  import { a as useHotkeys } from "./UseHotkeys-Dapfyg78.js";
25
25
  import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
26
26
  import { Search, ChevronLeft, ChevronRight } from "lucide-vue-next";
27
- import { _ as _sfc_main$K } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
28
- import { l as listboxGroupLabelVariants, a as listboxItemVariants, b as listboxEmptyVariants, c as listboxSeparatorVariants } from "./ListboxPicker.variants-hiMcl66_.js";
29
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
27
+ import { _ as _sfc_main$L } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
28
+ import { l as listboxGroupLabelVariants, f as listboxItemVariants, g as listboxEmptyVariants, h as listboxSeparatorVariants, e as _sfc_main$M } from "./TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js";
29
+ import { B as ButtonType } from "./HtmlValues-jlKY5f9C.js";
30
+ import { _ as _sfc_main$N } from "./Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js";
31
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
30
32
  ...{ name: "ModalTrigger", inheritAttrs: false },
31
33
  __name: "ModalTrigger",
32
34
  props: {
@@ -70,7 +72,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
70
72
  };
71
73
  }
72
74
  });
73
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
75
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
74
76
  ...{ name: "OverlayHeader", inheritAttrs: false },
75
77
  __name: "OverlayHeader",
76
78
  setup(__props, { expose: __expose }) {
@@ -93,7 +95,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
93
95
  }
94
96
  });
95
97
  const _hoisted_1$8 = ["id"];
96
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
98
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
97
99
  ...{ name: "OverlayDescription", inheritAttrs: false },
98
100
  __name: "OverlayDescription",
99
101
  setup(__props, { expose: __expose }) {
@@ -117,7 +119,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
117
119
  };
118
120
  }
119
121
  });
120
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
122
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
121
123
  ...{ name: "OverlayBody", inheritAttrs: false },
122
124
  __name: "OverlayBody",
123
125
  setup(__props, { expose: __expose }) {
@@ -141,7 +143,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
141
143
  };
142
144
  }
143
145
  });
144
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
146
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
145
147
  ...{ name: "OverlayFooter", inheritAttrs: false },
146
148
  __name: "OverlayFooter",
147
149
  setup(__props, { expose: __expose }) {
@@ -165,7 +167,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
165
167
  };
166
168
  }
167
169
  });
168
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
170
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
169
171
  ...{ name: "AlertModal", inheritAttrs: false },
170
172
  __name: "AlertModal",
171
173
  props: {
@@ -183,7 +185,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
183
185
  emit("update:open", open);
184
186
  }
185
187
  return (_ctx, _cache) => {
186
- return openBlock(), createBlock(_sfc_main$t, {
188
+ return openBlock(), createBlock(_sfc_main$u, {
187
189
  open: props.open,
188
190
  "default-open": props.defaultOpen,
189
191
  "dismiss-on-escape": props.dismissOnEscape,
@@ -199,7 +201,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
199
201
  };
200
202
  }
201
203
  });
202
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
204
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
203
205
  ...{ name: "AlertModalContent", inheritAttrs: false },
204
206
  __name: "AlertModalContent",
205
207
  props: {
@@ -223,7 +225,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
223
225
  const el = computed(() => resolveElement(inner.value));
224
226
  __expose({ el });
225
227
  return (_ctx, _cache) => {
226
- return openBlock(), createBlock(_sfc_main$u, mergeProps({
228
+ return openBlock(), createBlock(_sfc_main$v, mergeProps({
227
229
  ref_key: "inner",
228
230
  ref: inner
229
231
  }, forwarded.value), {
@@ -235,7 +237,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
235
237
  };
236
238
  }
237
239
  });
238
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
240
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
239
241
  ...{ name: "AlertModalAction", inheritAttrs: false },
240
242
  __name: "AlertModalAction",
241
243
  emits: ["action"],
@@ -260,7 +262,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
260
262
  const el = computed(() => resolveElement(inner.value));
261
263
  __expose({ el });
262
264
  return (_ctx, _cache) => {
263
- return openBlock(), createBlock(_sfc_main$v, {
265
+ return openBlock(), createBlock(_sfc_main$w, {
264
266
  ref_key: "inner",
265
267
  ref: inner,
266
268
  "as-child": ""
@@ -279,7 +281,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
279
281
  };
280
282
  }
281
283
  });
282
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
284
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
283
285
  ...{ name: "AlertModalCancel", inheritAttrs: false },
284
286
  __name: "AlertModalCancel",
285
287
  setup(__props, { expose: __expose }) {
@@ -298,7 +300,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
298
300
  const el = computed(() => resolveElement(inner.value));
299
301
  __expose({ el });
300
302
  return (_ctx, _cache) => {
301
- return openBlock(), createBlock(_sfc_main$v, {
303
+ return openBlock(), createBlock(_sfc_main$w, {
302
304
  ref_key: "inner",
303
305
  ref: inner,
304
306
  "as-child": ""
@@ -316,7 +318,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
316
318
  };
317
319
  }
318
320
  });
319
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
321
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
320
322
  ...{ name: "DrawerTrigger", inheritAttrs: false },
321
323
  __name: "DrawerTrigger",
322
324
  props: {
@@ -360,7 +362,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
360
362
  };
361
363
  }
362
364
  });
363
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
365
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
364
366
  ...{ name: "PopoverArrow", inheritAttrs: false },
365
367
  __name: "PopoverArrow",
366
368
  props: {
@@ -376,7 +378,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
376
378
  return others;
377
379
  });
378
380
  return (_ctx, _cache) => {
379
- return openBlock(), createBlock(unref(_sfc_main$w), mergeProps({
381
+ return openBlock(), createBlock(unref(_sfc_main$x), mergeProps({
380
382
  width: props.width,
381
383
  height: props.height
382
384
  }, rest.value, { class: classes.value }), null, 16, ["width", "height", "class"]);
@@ -388,10 +390,10 @@ const _hoisted_2$5 = { class: "space-y-1" };
388
390
  const _hoisted_3$1 = ["id"];
389
391
  const _hoisted_4$1 = ["id"];
390
392
  const _hoisted_5$1 = { class: "flex justify-end gap-2" };
391
- function isThenable(value) {
393
+ function isThenable$1(value) {
392
394
  return (typeof value === "object" || typeof value === "function") && value !== null && typeof value.then === "function";
393
395
  }
394
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
396
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
395
397
  ...{ name: "ConfirmPopover", inheritAttrs: false },
396
398
  __name: "ConfirmPopover",
397
399
  props: {
@@ -447,7 +449,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
447
449
  emit("error", error);
448
450
  return;
449
451
  }
450
- if (isThenable(outcome)) {
452
+ if (isThenable$1(outcome)) {
451
453
  isPending.value = true;
452
454
  try {
453
455
  await outcome;
@@ -463,7 +465,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
463
465
  controlled.setValue(false);
464
466
  }
465
467
  return (_ctx, _cache) => {
466
- return openBlock(), createBlock(_sfc_main$x, {
468
+ return openBlock(), createBlock(_sfc_main$y, {
467
469
  open: unref(isOpen),
468
470
  placement: unref(props).placement,
469
471
  offset: unref(props).offset,
@@ -472,7 +474,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
472
474
  "onUpdate:open": requestOpen
473
475
  }, {
474
476
  default: withCtx(() => [
475
- createVNode(_sfc_main$y, {
477
+ createVNode(_sfc_main$z, {
476
478
  "as-child": "",
477
479
  "aria-disabled": unref(props).isDisabled || void 0
478
480
  }, {
@@ -481,7 +483,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
481
483
  ]),
482
484
  _: 3
483
485
  }, 8, ["aria-disabled"]),
484
- createVNode(_sfc_main$z, mergeProps({
486
+ createVNode(_sfc_main$A, mergeProps({
485
487
  "aria-labelledby": unref(titleId),
486
488
  "aria-describedby": hasDescription.value ? unref(descriptionId) : void 0,
487
489
  "aria-busy": isPending.value || void 0
@@ -504,7 +506,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
504
506
  ], 8, _hoisted_4$1)) : createCommentVNode("", true)
505
507
  ]),
506
508
  createElementVNode("div", _hoisted_5$1, [
507
- createVNode(_sfc_main$A, {
509
+ createVNode(_sfc_main$B, {
508
510
  variant: "ghost",
509
511
  size: "sm",
510
512
  "is-disabled": isPending.value,
@@ -515,7 +517,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
515
517
  ]),
516
518
  _: 1
517
519
  }, 8, ["is-disabled"]),
518
- createVNode(_sfc_main$A, {
520
+ createVNode(_sfc_main$B, {
519
521
  variant: "solid",
520
522
  size: "sm",
521
523
  tone: unref(props).tone,
@@ -544,7 +546,7 @@ function useHoverCardContext() {
544
546
  if (!context) throw new Error("HoverCard.* must be used inside <HoverCard>");
545
547
  return context;
546
548
  }
547
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
549
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
548
550
  ...{ name: "HoverCard", inheritAttrs: false },
549
551
  __name: "HoverCard",
550
552
  props: {
@@ -612,7 +614,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
612
614
  };
613
615
  }
614
616
  });
615
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
617
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
616
618
  ...{ name: "HoverCardTrigger", inheritAttrs: false },
617
619
  __name: "HoverCardTrigger",
618
620
  props: {
@@ -658,7 +660,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
658
660
  };
659
661
  }
660
662
  });
661
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
663
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
662
664
  ...{ name: "HoverCardContent", inheritAttrs: false },
663
665
  __name: "HoverCardContent",
664
666
  setup(__props, { expose: __expose }) {
@@ -682,9 +684,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
682
684
  });
683
685
  __expose({ el });
684
686
  return (_ctx, _cache) => {
685
- return openBlock(), createBlock(unref(_sfc_main$B), null, {
687
+ return openBlock(), createBlock(unref(_sfc_main$C), null, {
686
688
  default: withCtx(() => [
687
- createVNode(unref(_sfc_main$C), {
689
+ createVNode(unref(_sfc_main$D), {
688
690
  anchor: anchor.value,
689
691
  placement: unref(placement),
690
692
  offset: unref(offset),
@@ -715,7 +717,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
715
717
  };
716
718
  }
717
719
  });
718
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
720
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
719
721
  ...{ name: "HoverCardArrow", inheritAttrs: false },
720
722
  __name: "HoverCardArrow",
721
723
  props: {
@@ -731,7 +733,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
731
733
  return others;
732
734
  });
733
735
  return (_ctx, _cache) => {
734
- return openBlock(), createBlock(unref(_sfc_main$w), mergeProps({
736
+ return openBlock(), createBlock(unref(_sfc_main$x), mergeProps({
735
737
  width: props.width,
736
738
  height: props.height
737
739
  }, rest.value, { class: classes.value }), null, 16, ["width", "height", "class"]);
@@ -749,7 +751,7 @@ function useActionSheetContext() {
749
751
  if (!context) throw new Error("ActionSheet.* must be used inside <ActionSheet>");
750
752
  return context;
751
753
  }
752
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
754
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
753
755
  ...{ name: "ActionSheet", inheritAttrs: false },
754
756
  __name: "ActionSheet",
755
757
  props: {
@@ -783,16 +785,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
783
785
  return others;
784
786
  });
785
787
  return (_ctx, _cache) => {
786
- return openBlock(), createBlock(_sfc_main$D, {
788
+ return openBlock(), createBlock(_sfc_main$E, {
787
789
  open: unref(resolvedOpen),
788
790
  side: "bottom",
789
791
  "onUpdate:open": unref(controlled).setValue
790
792
  }, {
791
793
  default: withCtx(() => [
792
- createVNode(_sfc_main$E, mergeProps(rest.value, { class: classes.value }), {
794
+ createVNode(_sfc_main$F, mergeProps(rest.value, { class: classes.value }), {
793
795
  default: withCtx(() => [
794
796
  hasTitle.value || hasDescription.value ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
795
- hasTitle.value ? (openBlock(), createBlock(_sfc_main$F, {
797
+ hasTitle.value ? (openBlock(), createBlock(_sfc_main$G, {
796
798
  key: 0,
797
799
  class: "text-sm font-medium text-muted-foreground"
798
800
  }, {
@@ -803,7 +805,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
803
805
  ]),
804
806
  _: 3
805
807
  })) : createCommentVNode("", true),
806
- hasDescription.value ? (openBlock(), createBlock(_sfc_main$q, {
808
+ hasDescription.value ? (openBlock(), createBlock(_sfc_main$r, {
807
809
  key: 1,
808
810
  class: "mt-1 text-xs text-muted-foreground"
809
811
  }, {
@@ -827,7 +829,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
827
829
  };
828
830
  }
829
831
  });
830
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
832
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
831
833
  ...{ name: "ActionSheetAction", inheritAttrs: false },
832
834
  __name: "ActionSheetAction",
833
835
  props: {
@@ -871,7 +873,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
871
873
  };
872
874
  }
873
875
  });
874
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
876
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
875
877
  ...{ name: "ActionSheetCancel", inheritAttrs: false },
876
878
  __name: "ActionSheetCancel",
877
879
  setup(__props, { expose: __expose }) {
@@ -927,7 +929,7 @@ function resolveSnapPx(point, viewport) {
927
929
  const n = parseFloat(trimmed);
928
930
  return Number.isFinite(n) ? n : 0;
929
931
  }
930
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
932
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
931
933
  ...{ name: "BottomSheet", inheritAttrs: false },
932
934
  __name: "BottomSheet",
933
935
  props: {
@@ -1104,11 +1106,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1104
1106
  const el = computed(() => panelEl());
1105
1107
  __expose({ el });
1106
1108
  return (_ctx, _cache) => {
1107
- return openBlock(), createBlock(unref(_sfc_main$B), null, {
1109
+ return openBlock(), createBlock(unref(_sfc_main$C), null, {
1108
1110
  default: withCtx(() => [
1109
- createVNode(unref(_sfc_main$G), { "is-enabled": unref(resolvedOpen) }, {
1111
+ createVNode(unref(_sfc_main$H), { "is-enabled": unref(resolvedOpen) }, {
1110
1112
  default: withCtx(() => [
1111
- createVNode(_sfc_main$H, {
1113
+ createVNode(_sfc_main$I, {
1112
1114
  "is-inline": "",
1113
1115
  "is-open": unref(resolvedOpen)
1114
1116
  }, null, 8, ["is-open"]),
@@ -1119,7 +1121,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1119
1121
  }, [
1120
1122
  createVNode(unref(Presence), { "is-present": unref(resolvedOpen) }, {
1121
1123
  default: withCtx(() => [
1122
- createVNode(unref(_sfc_main$I), {
1124
+ createVNode(unref(_sfc_main$J), {
1123
1125
  "as-child": "",
1124
1126
  "is-trapped": "",
1125
1127
  "can-loop": "",
@@ -1127,7 +1129,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1127
1129
  "on-mount-auto-focus": handleMountAutoFocus
1128
1130
  }, {
1129
1131
  default: withCtx(() => [
1130
- createVNode(unref(_sfc_main$J), mergeProps({
1132
+ createVNode(unref(_sfc_main$K), mergeProps({
1131
1133
  ref_key: "panel",
1132
1134
  ref: panel,
1133
1135
  "is-escape-disabled": !dismissesOnEscape.value,
@@ -1192,7 +1194,7 @@ function useCommandPaletteContext() {
1192
1194
  return context;
1193
1195
  }
1194
1196
  const defaultFilter = (searchText, search) => searchText.toLowerCase().includes(search.toLowerCase());
1195
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1197
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1196
1198
  ...{ name: "CommandPaletteModal", inheritAttrs: false },
1197
1199
  __name: "CommandPaletteModal",
1198
1200
  props: {
@@ -1273,7 +1275,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1273
1275
  });
1274
1276
  const resolvedOpen = openState.value;
1275
1277
  return (_ctx, _cache) => {
1276
- return openBlock(), createBlock(unref(_sfc_main$t), {
1278
+ return openBlock(), createBlock(unref(_sfc_main$u), {
1277
1279
  open: unref(resolvedOpen),
1278
1280
  "onUpdate:open": unref(openState).setValue
1279
1281
  }, {
@@ -1285,7 +1287,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1285
1287
  };
1286
1288
  }
1287
1289
  });
1288
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1290
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1289
1291
  ...{ name: "CommandPaletteModalContent", inheritAttrs: false },
1290
1292
  __name: "CommandPaletteModalContent",
1291
1293
  setup(__props) {
@@ -1296,7 +1298,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1296
1298
  return others;
1297
1299
  });
1298
1300
  return (_ctx, _cache) => {
1299
- return openBlock(), createBlock(unref(_sfc_main$u), mergeProps(rest.value, { class: classes.value }), {
1301
+ return openBlock(), createBlock(unref(_sfc_main$v), mergeProps(rest.value, { class: classes.value }), {
1300
1302
  default: withCtx(() => [
1301
1303
  renderSlot(_ctx.$slots, "default")
1302
1304
  ]),
@@ -1308,7 +1310,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1308
1310
  const _hoisted_1$4 = { class: "flex items-center gap-2 border-b border-border px-3" };
1309
1311
  const _hoisted_2$2 = ["id", "aria-controls", "aria-activedescendant", "placeholder", "value"];
1310
1312
  const DefaultPlaceholder = "Type a command…";
1311
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1313
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1312
1314
  ...{ name: "CommandPaletteModalInput", inheritAttrs: false },
1313
1315
  __name: "CommandPaletteModalInput",
1314
1316
  setup(__props, { expose: __expose }) {
@@ -1415,7 +1417,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1415
1417
  __expose({ el });
1416
1418
  return (_ctx, _cache) => {
1417
1419
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
1418
- createVNode(unref(_sfc_main$K), {
1420
+ createVNode(unref(_sfc_main$L), {
1419
1421
  icon: unref(Search),
1420
1422
  size: 16,
1421
1423
  class: "text-muted-foreground"
@@ -1440,7 +1442,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1440
1442
  }
1441
1443
  });
1442
1444
  const _hoisted_1$3 = ["id", "aria-labelledby"];
1443
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1445
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1444
1446
  ...{ name: "CommandPaletteModalList", inheritAttrs: false },
1445
1447
  __name: "CommandPaletteModalList",
1446
1448
  setup(__props, { expose: __expose }) {
@@ -1468,7 +1470,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1468
1470
  });
1469
1471
  const _hoisted_1$2 = ["aria-labelledby"];
1470
1472
  const _hoisted_2$1 = ["id"];
1471
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1473
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1472
1474
  ...{ name: "CommandPaletteModalGroup", inheritAttrs: false },
1473
1475
  __name: "CommandPaletteModalGroup",
1474
1476
  props: {
@@ -1504,7 +1506,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1504
1506
  }
1505
1507
  });
1506
1508
  const _hoisted_1$1 = ["id", "aria-selected", "aria-disabled", "data-active"];
1507
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1509
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1508
1510
  ...{ name: "CommandPaletteModalItem", inheritAttrs: false },
1509
1511
  __name: "CommandPaletteModalItem",
1510
1512
  props: {
@@ -1582,7 +1584,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1582
1584
  };
1583
1585
  }
1584
1586
  });
1585
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1587
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1586
1588
  ...{ name: "CommandPaletteModalEmpty", inheritAttrs: false },
1587
1589
  __name: "CommandPaletteModalEmpty",
1588
1590
  setup(__props, { expose: __expose }) {
@@ -1611,7 +1613,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1611
1613
  };
1612
1614
  }
1613
1615
  });
1614
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1616
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1615
1617
  ...{ name: "CommandPaletteModalSeparator", inheritAttrs: false },
1616
1618
  __name: "CommandPaletteModalSeparator",
1617
1619
  setup(__props, { expose: __expose }) {
@@ -1651,7 +1653,7 @@ const _hoisted_7 = {
1651
1653
  };
1652
1654
  const SwipeDistance = 48;
1653
1655
  const StepButtonClass = "absolute top-1/2 grid size-10 -translate-y-1/2 place-items-center rounded-full bg-black/50 text-white transition-colors hover:bg-black/70 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-white disabled:pointer-events-none disabled:opacity-30";
1654
- const _sfc_main = /* @__PURE__ */ defineComponent({
1656
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1655
1657
  ...{ name: "LightboxModal", inheritAttrs: false },
1656
1658
  __name: "LightboxModal",
1657
1659
  props: {
@@ -1759,19 +1761,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1759
1761
  )
1760
1762
  );
1761
1763
  return (_ctx, _cache) => {
1762
- return openBlock(), createBlock(unref(_sfc_main$t), {
1764
+ return openBlock(), createBlock(unref(_sfc_main$u), {
1763
1765
  open: unref(isOpen),
1764
1766
  "onUpdate:open": setOpen
1765
1767
  }, {
1766
1768
  default: withCtx(() => [
1767
1769
  renderSlot(_ctx.$slots, "default", { openAt }),
1768
- createVNode(unref(_sfc_main$u), mergeProps(rest.value, {
1770
+ createVNode(unref(_sfc_main$v), mergeProps(rest.value, {
1769
1771
  "is-blurred": "",
1770
1772
  class: contentClass.value,
1771
1773
  onKeydown
1772
1774
  }), {
1773
1775
  default: withCtx(() => [
1774
- createVNode(unref(_sfc_main$F), { class: "sr-only" }, {
1776
+ createVNode(unref(_sfc_main$G), { class: "sr-only" }, {
1775
1777
  default: withCtx(() => [
1776
1778
  createTextVNode(toDisplayString(unref(props).label), 1)
1777
1779
  ]),
@@ -1779,7 +1781,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1779
1781
  }),
1780
1782
  createElementVNode("div", _hoisted_1, [
1781
1783
  hasMany.value ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(counterText.value), 1)) : createCommentVNode("", true),
1782
- createVNode(unref(_sfc_main$v), { class: "ms-auto text-white hover:bg-white/10" })
1784
+ createVNode(unref(_sfc_main$w), { class: "ms-auto text-white hover:bg-white/10" })
1783
1785
  ]),
1784
1786
  createElementVNode("figure", {
1785
1787
  class: "relative flex min-h-0 flex-1 touch-pan-y touch-pinch-zoom flex-col items-center justify-center gap-2",
@@ -1827,39 +1829,241 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1827
1829
  };
1828
1830
  }
1829
1831
  });
1832
+ function isThenable(value) {
1833
+ return (typeof value === "object" || typeof value === "function") && value !== null && typeof value.then === "function";
1834
+ }
1835
+ function isFailedResult(value) {
1836
+ return typeof value === "object" && value !== null && value.ok === false && "failure" in value;
1837
+ }
1838
+ const _sfc_main = /* @__PURE__ */ defineComponent({
1839
+ ...{ name: "TypedConfirmModal", inheritAttrs: false },
1840
+ __name: "TypedConfirmModal",
1841
+ props: {
1842
+ open: { type: Boolean, default: void 0 },
1843
+ defaultOpen: { type: Boolean, default: false },
1844
+ title: {},
1845
+ description: { default: void 0 },
1846
+ expected: { default: void 0 },
1847
+ canConfirm: { type: Boolean, default: true },
1848
+ label: { default: void 0 },
1849
+ helper: { default: void 0 },
1850
+ error: { default: void 0 },
1851
+ confirmLabel: {},
1852
+ cancelLabel: {},
1853
+ tone: { default: "danger" },
1854
+ onConfirm: { type: Function, default: void 0 }
1855
+ },
1856
+ emits: ["update:open", "cancel", "error"],
1857
+ setup(__props, { emit: __emit }) {
1858
+ const componentProps = __props;
1859
+ const props = useLocaleDefaults(componentProps, "TypedConfirmModal", {
1860
+ confirmLabel: "Confirm",
1861
+ cancelLabel: "Cancel"
1862
+ });
1863
+ const emit = __emit;
1864
+ const attrs = useAttrs();
1865
+ const slots = useSlots();
1866
+ const controlled = useControlled({
1867
+ controlled: () => props.open,
1868
+ default: () => props.defaultOpen,
1869
+ onChange: (value) => {
1870
+ emit("update:open", value);
1871
+ }
1872
+ });
1873
+ const isOpen = controlled.value;
1874
+ const typed = shallowRef("");
1875
+ const isPending = shallowRef(false);
1876
+ let attempt = 0;
1877
+ const isTyped = computed(() => props.expected !== void 0);
1878
+ const isConfirmed = computed(
1879
+ () => props.canConfirm && (!isTyped.value || props.expected.length > 0 && typed.value === props.expected)
1880
+ );
1881
+ const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
1882
+ watch(isOpen, (open) => {
1883
+ if (!open) return;
1884
+ typed.value = "";
1885
+ });
1886
+ watch(
1887
+ () => props.expected,
1888
+ () => {
1889
+ typed.value = "";
1890
+ }
1891
+ );
1892
+ onScopeDispose(() => {
1893
+ attempt += 1;
1894
+ });
1895
+ function requestOpen(next) {
1896
+ if (!next && isPending.value) return;
1897
+ const wasOpen = isOpen.value;
1898
+ controlled.setValue(next);
1899
+ if (wasOpen && !next) emit("cancel");
1900
+ }
1901
+ async function confirm() {
1902
+ if (!isConfirmed.value || isPending.value) return;
1903
+ const current = ++attempt;
1904
+ let outcome;
1905
+ try {
1906
+ outcome = props.onConfirm?.(typed.value);
1907
+ } catch (error) {
1908
+ emit("error", error);
1909
+ return;
1910
+ }
1911
+ if (isThenable(outcome)) {
1912
+ isPending.value = true;
1913
+ try {
1914
+ outcome = await outcome;
1915
+ } catch (error) {
1916
+ if (current !== attempt) return;
1917
+ isPending.value = false;
1918
+ emit("error", error);
1919
+ return;
1920
+ }
1921
+ if (current !== attempt) return;
1922
+ isPending.value = false;
1923
+ }
1924
+ if (isFailedResult(outcome)) {
1925
+ emit("error", outcome.failure);
1926
+ return;
1927
+ }
1928
+ controlled.setValue(false);
1929
+ }
1930
+ return (_ctx, _cache) => {
1931
+ return openBlock(), createBlock(_sfc_main$o, {
1932
+ open: unref(isOpen),
1933
+ "dismiss-on-escape": !isPending.value,
1934
+ "onUpdate:open": requestOpen
1935
+ }, {
1936
+ default: withCtx(() => [
1937
+ createVNode(_sfc_main$n, mergeProps(unref(attrs), {
1938
+ "aria-busy": isPending.value || void 0
1939
+ }), {
1940
+ default: withCtx(() => [
1941
+ createElementVNode("form", {
1942
+ class: "flex min-h-0 flex-1 flex-col",
1943
+ novalidate: "",
1944
+ onSubmit: withModifiers(confirm, ["prevent"])
1945
+ }, [
1946
+ createVNode(_sfc_main$s, null, {
1947
+ default: withCtx(() => [
1948
+ createVNode(_sfc_main$G, null, {
1949
+ default: withCtx(() => [
1950
+ createTextVNode(toDisplayString(unref(props).title), 1)
1951
+ ]),
1952
+ _: 1
1953
+ }),
1954
+ hasDescription.value ? (openBlock(), createBlock(_sfc_main$r, { key: 0 }, {
1955
+ default: withCtx(() => [
1956
+ renderSlot(_ctx.$slots, "description", {}, () => [
1957
+ createTextVNode(toDisplayString(unref(props).description), 1)
1958
+ ])
1959
+ ]),
1960
+ _: 3
1961
+ })) : createCommentVNode("", true)
1962
+ ]),
1963
+ _: 3
1964
+ }),
1965
+ createVNode(_sfc_main$q, { class: "flex flex-col gap-4" }, {
1966
+ default: withCtx(() => [
1967
+ renderSlot(_ctx.$slots, "default"),
1968
+ isTyped.value ? (openBlock(), createBlock(_sfc_main$M, {
1969
+ key: 0,
1970
+ modelValue: typed.value,
1971
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => typed.value = $event),
1972
+ expected: unref(props).expected ?? "",
1973
+ label: unref(props).label,
1974
+ helper: unref(props).helper,
1975
+ "is-read-only": isPending.value
1976
+ }, null, 8, ["modelValue", "expected", "label", "helper", "is-read-only"])) : createCommentVNode("", true),
1977
+ unref(props).error ? (openBlock(), createBlock(_sfc_main$N, {
1978
+ key: 1,
1979
+ role: "alert",
1980
+ severity: "danger",
1981
+ description: unref(props).error
1982
+ }, null, 8, ["description"])) : createCommentVNode("", true)
1983
+ ]),
1984
+ _: 3
1985
+ }),
1986
+ createVNode(_sfc_main$p, null, {
1987
+ default: withCtx(() => [
1988
+ createVNode(_sfc_main$B, {
1989
+ type: unref(ButtonType).Button,
1990
+ variant: "outline",
1991
+ tone: "neutral",
1992
+ "is-disabled": isPending.value,
1993
+ onClick: _cache[1] || (_cache[1] = ($event) => requestOpen(false))
1994
+ }, {
1995
+ default: withCtx(() => [
1996
+ createTextVNode(toDisplayString(unref(props).cancelLabel), 1)
1997
+ ]),
1998
+ _: 1
1999
+ }, 8, ["type", "is-disabled"]),
2000
+ createVNode(_sfc_main$B, {
2001
+ type: unref(ButtonType).Submit,
2002
+ variant: "solid",
2003
+ tone: unref(props).tone,
2004
+ "is-disabled": !isConfirmed.value,
2005
+ "is-loading": isPending.value
2006
+ }, createSlots({
2007
+ default: withCtx(() => [
2008
+ createTextVNode(" " + toDisplayString(unref(props).confirmLabel), 1)
2009
+ ]),
2010
+ _: 2
2011
+ }, [
2012
+ unref(slots)["confirm-icon"] ? {
2013
+ name: "leading",
2014
+ fn: withCtx(() => [
2015
+ renderSlot(_ctx.$slots, "confirm-icon")
2016
+ ]),
2017
+ key: "0"
2018
+ } : void 0
2019
+ ]), 1032, ["type", "tone", "is-disabled", "is-loading"])
2020
+ ]),
2021
+ _: 3
2022
+ })
2023
+ ], 32)
2024
+ ]),
2025
+ _: 3
2026
+ }, 16, ["aria-busy"])
2027
+ ]),
2028
+ _: 3
2029
+ }, 8, ["open", "dismiss-on-escape"]);
2030
+ };
2031
+ }
2032
+ });
1830
2033
  export {
1831
- _sfc_main as A,
1832
- _sfc_main$i as B,
1833
- commandPaletteContextKey as C,
1834
- defaultFilter as D,
1835
- useBottomSheet as E,
1836
- useCommandPaletteContext as F,
1837
- _sfc_main$c as _,
1838
- _sfc_main$b as a,
1839
- _sfc_main$a as b,
1840
- _sfc_main$n as c,
1841
- _sfc_main$l as d,
1842
- _sfc_main$k as e,
1843
- _sfc_main$m as f,
1844
- _sfc_main$9 as g,
1845
- _sfc_main$q as h,
1846
- _sfc_main$8 as i,
1847
- _sfc_main$7 as j,
1848
- _sfc_main$2 as k,
1849
- _sfc_main$4 as l,
1850
- _sfc_main$6 as m,
1851
- _sfc_main$3 as n,
1852
- _sfc_main$5 as o,
1853
- _sfc_main$1 as p,
1854
- _sfc_main$h as q,
1855
- _sfc_main$p as r,
1856
- _sfc_main$o as s,
1857
- _sfc_main$r as t,
1858
- _sfc_main$s as u,
1859
- _sfc_main$j as v,
1860
- _sfc_main$g as w,
1861
- _sfc_main$d as x,
1862
- _sfc_main$e as y,
1863
- _sfc_main$f as z
2034
+ _sfc_main$1 as A,
2035
+ _sfc_main$j as B,
2036
+ _sfc_main as C,
2037
+ commandPaletteContextKey as D,
2038
+ defaultFilter as E,
2039
+ useBottomSheet as F,
2040
+ useCommandPaletteContext as G,
2041
+ _sfc_main$d as _,
2042
+ _sfc_main$c as a,
2043
+ _sfc_main$b as b,
2044
+ _sfc_main$o as c,
2045
+ _sfc_main$m as d,
2046
+ _sfc_main$l as e,
2047
+ _sfc_main$n as f,
2048
+ _sfc_main$a as g,
2049
+ _sfc_main$r as h,
2050
+ _sfc_main$9 as i,
2051
+ _sfc_main$8 as j,
2052
+ _sfc_main$3 as k,
2053
+ _sfc_main$5 as l,
2054
+ _sfc_main$7 as m,
2055
+ _sfc_main$4 as n,
2056
+ _sfc_main$6 as o,
2057
+ _sfc_main$2 as p,
2058
+ _sfc_main$i as q,
2059
+ _sfc_main$q as r,
2060
+ _sfc_main$p as s,
2061
+ _sfc_main$s as t,
2062
+ _sfc_main$t as u,
2063
+ _sfc_main$k as v,
2064
+ _sfc_main$h as w,
2065
+ _sfc_main$e as x,
2066
+ _sfc_main$f as y,
2067
+ _sfc_main$g as z
1864
2068
  };
1865
- //# sourceMappingURL=LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map
2069
+ //# sourceMappingURL=TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js.map