@bagelink/vue 1.0.33 → 1.0.41

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 (32) hide show
  1. package/dist/components/DataPreview.vue.d.ts.map +1 -1
  2. package/dist/components/DataTable/DataTable.vue.d.ts +2 -2
  3. package/dist/components/DataTable/DataTable.vue.d.ts.map +1 -1
  4. package/dist/components/DataTable/useTableData.d.ts +2 -1
  5. package/dist/components/DataTable/useTableData.d.ts.map +1 -1
  6. package/dist/components/DataTable/useTableSelection.d.ts +4 -1
  7. package/dist/components/DataTable/useTableSelection.d.ts.map +1 -1
  8. package/dist/components/DataTable/useTableVirtualization.d.ts.map +1 -1
  9. package/dist/components/form/BagelForm.vue.d.ts +17 -11
  10. package/dist/components/form/BagelForm.vue.d.ts.map +1 -1
  11. package/dist/components/form/FieldArray.vue.d.ts.map +1 -1
  12. package/dist/composables/index.d.ts +1 -1
  13. package/dist/composables/index.d.ts.map +1 -1
  14. package/dist/index.cjs +441 -307
  15. package/dist/index.mjs +442 -308
  16. package/dist/style.css +502 -83
  17. package/dist/types/BagelForm.d.ts +1 -1
  18. package/dist/types/BagelForm.d.ts.map +1 -1
  19. package/package.json +1 -1
  20. package/src/components/DataPreview.vue +30 -4
  21. package/src/components/DataTable/DataTable.vue +9 -7
  22. package/src/components/DataTable/useTableData.ts +75 -9
  23. package/src/components/DataTable/useTableSelection.ts +17 -3
  24. package/src/components/DataTable/useTableVirtualization.ts +11 -2
  25. package/src/components/Loading.vue +2 -2
  26. package/src/components/form/BagelForm.vue +138 -78
  27. package/src/components/form/FieldArray.vue +129 -54
  28. package/src/components/layout/BottomMenu.vue +1 -1
  29. package/src/composables/index.ts +14 -4
  30. package/src/styles/layout.css +240 -0
  31. package/src/styles/mobilLayout.css +240 -0
  32. package/src/types/BagelForm.ts +1 -1
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, resolveComponent, isVNode, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useModel, normalizeProps, vModelCheckbox, pushScopeId, popScopeId, guardReactiveProps, withScopeId, createApp, vModelText, vModelRadio, TransitionGroup, vModelDynamic, toRef, createSlots } from "vue";
4
+ import { defineComponent, reactive, provide, openBlock, createElementBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, unref, createVNode, createCommentVNode, toDisplayString, Transition, withCtx, isRef, Fragment, renderList, createBlock, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withModifiers, withKeys, createTextVNode, normalizeStyle, useCssVars, onMounted, Comment, Text, nextTick, onBeforeUnmount, onUnmounted, resolveComponent, isVNode, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useModel, normalizeProps, vModelCheckbox, pushScopeId, popScopeId, guardReactiveProps, withScopeId, createApp, toRef, vModelText, vModelRadio, TransitionGroup, vModelDynamic, createSlots } from "vue";
5
5
  import { RouterLink } from "vue-router";
6
6
  const _sfc_main$1n = /* @__PURE__ */ defineComponent({
7
7
  __name: "Accordion",
@@ -17,8 +17,8 @@ const _sfc_main$1n = /* @__PURE__ */ defineComponent({
17
17
  };
18
18
  }
19
19
  });
20
- const _hoisted_1$1a = ["aria-expanded", "aria-controls"];
21
- const _hoisted_2$S = { class: "accordion-label" };
20
+ const _hoisted_1$1b = ["aria-expanded", "aria-controls"];
21
+ const _hoisted_2$T = { class: "accordion-label" };
22
22
  const _hoisted_3$I = ["id", "aria-hidden"];
23
23
  const _sfc_main$1m = /* @__PURE__ */ defineComponent({
24
24
  __name: "AccordionItem",
@@ -86,7 +86,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
86
86
  createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
87
87
  ], 2)) : createCommentVNode("", true),
88
88
  renderSlot(_ctx.$slots, "head", {}, () => [
89
- createElementVNode("span", _hoisted_2$S, toDisplayString(_ctx.label), 1)
89
+ createElementVNode("span", _hoisted_2$T, toDisplayString(_ctx.label), 1)
90
90
  ], true),
91
91
  iconPosition.value === "end" ? (openBlock(), createElementBlock("span", {
92
92
  key: 1,
@@ -94,7 +94,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
94
94
  }, [
95
95
  createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
96
96
  ], 2)) : createCommentVNode("", true)
97
- ], 8, _hoisted_1$1a),
97
+ ], 8, _hoisted_1$1b),
98
98
  createVNode(Transition, { name: "expand" }, {
99
99
  default: withCtx(() => [
100
100
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -120,7 +120,7 @@ const _export_sfc = (sfc, props2) => {
120
120
  return target;
121
121
  };
122
122
  const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__scopeId", "data-v-3334f637"]]);
123
- const _hoisted_1$19 = { class: "relative" };
123
+ const _hoisted_1$1a = { class: "relative" };
124
124
  const _sfc_main$1l = /* @__PURE__ */ defineComponent({
125
125
  __name: "AddressSearch",
126
126
  emits: ["addressSelected"],
@@ -143,7 +143,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
143
143
  (_a = suggestion.value) == null ? void 0 : _a.show();
144
144
  }
145
145
  return (_ctx, _cache) => {
146
- return openBlock(), createElementBlock("div", _hoisted_1$19, [
146
+ return openBlock(), createElementBlock("div", _hoisted_1$1a, [
147
147
  createVNode(unref(_sfc_main$W), {
148
148
  ref_key: "suggestion",
149
149
  ref: suggestion,
@@ -179,7 +179,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
179
179
  };
180
180
  }
181
181
  });
182
- const _hoisted_1$18 = {
182
+ const _hoisted_1$19 = {
183
183
  key: 1,
184
184
  class: "bgl_btn-flex"
185
185
  };
@@ -249,7 +249,7 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
249
249
  key: 0,
250
250
  class: "h-100p",
251
251
  size: "15"
252
- })) : (openBlock(), createElementBlock("div", _hoisted_1$18, [
252
+ })) : (openBlock(), createElementBlock("div", _hoisted_1$19, [
253
253
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
254
254
  key: 0,
255
255
  icon: _ctx.icon,
@@ -274,8 +274,8 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
274
274
  }
275
275
  });
276
276
  const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1k, [["__scopeId", "data-v-bfc435b3"]]);
277
- const _hoisted_1$17 = ["dismissable"];
278
- const _hoisted_2$R = { class: "m-0" };
277
+ const _hoisted_1$18 = ["dismissable"];
278
+ const _hoisted_2$S = { class: "m-0" };
279
279
  const _sfc_main$1j = /* @__PURE__ */ defineComponent({
280
280
  __name: "Alert",
281
281
  props: {
@@ -304,7 +304,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
304
304
  size: 2,
305
305
  color: color2[_ctx.type]
306
306
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
307
- createElementVNode("p", _hoisted_2$R, toDisplayString(_ctx.message), 1),
307
+ createElementVNode("p", _hoisted_2$S, toDisplayString(_ctx.message), 1),
308
308
  createVNode(Btn, {
309
309
  flat: "",
310
310
  thin: "",
@@ -312,12 +312,12 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
312
312
  icon: "close",
313
313
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
314
314
  })
315
- ], 10, _hoisted_1$17)) : createCommentVNode("", true);
315
+ ], 10, _hoisted_1$18)) : createCommentVNode("", true);
316
316
  };
317
317
  }
318
318
  });
319
319
  const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-064bdd20"]]);
320
- const _hoisted_1$16 = ["src", "alt"];
320
+ const _hoisted_1$17 = ["src", "alt"];
321
321
  const _sfc_main$1i = /* @__PURE__ */ defineComponent({
322
322
  __name: "Avatar",
323
323
  props: {
@@ -336,7 +336,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
336
336
  key: 0,
337
337
  src: _ctx.src,
338
338
  alt: _ctx.name
339
- }, null, 8, _hoisted_1$16)) : (openBlock(), createElementBlock("p", {
339
+ }, null, 8, _hoisted_1$17)) : (openBlock(), createElementBlock("p", {
340
340
  key: 1,
341
341
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
342
342
  }, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -375,8 +375,8 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
375
375
  }
376
376
  });
377
377
  const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-689f051f"]]);
378
- const _hoisted_1$15 = ["src"];
379
- const _hoisted_2$Q = ["autoplay", "muted", "loop", "controls", "playsinline"];
378
+ const _hoisted_1$16 = ["src"];
379
+ const _hoisted_2$R = ["autoplay", "muted", "loop", "controls", "playsinline"];
380
380
  const _hoisted_3$H = ["src", "type"];
381
381
  const _sfc_main$1g = /* @__PURE__ */ defineComponent({
382
382
  __name: "BglVideo",
@@ -455,7 +455,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
455
455
  allowfullscreen: "",
456
456
  title: "Video",
457
457
  allow: "autoplay"
458
- }, null, 12, _hoisted_1$15)) : _ctx.src ? (openBlock(), createElementBlock("video", {
458
+ }, null, 12, _hoisted_1$16)) : _ctx.src ? (openBlock(), createElementBlock("video", {
459
459
  key: 1,
460
460
  ref_key: "video",
461
461
  ref: video,
@@ -470,7 +470,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
470
470
  src: _ctx.src,
471
471
  type: `video/${videoFormat.value}`
472
472
  }, null, 8, _hoisted_3$H)
473
- ], 12, _hoisted_2$Q)) : createCommentVNode("", true)
473
+ ], 12, _hoisted_2$R)) : createCommentVNode("", true)
474
474
  ], 2);
475
475
  };
476
476
  }
@@ -606,8 +606,8 @@ function translate(key, locale2 = "en-US") {
606
606
  const language = languageKeys[key] || {};
607
607
  return language[locale2] || key;
608
608
  }
609
- const _hoisted_1$14 = { class: "flex gap-05 space-between pb-1 datePick" };
610
- const _hoisted_2$P = { class: "flex gap-1 m_gap-025" };
609
+ const _hoisted_1$15 = { class: "flex gap-05 space-between pb-1 datePick" };
610
+ const _hoisted_2$Q = { class: "flex gap-1 m_gap-025" };
611
611
  const _sfc_main$1f = /* @__PURE__ */ defineComponent({
612
612
  __name: "Header",
613
613
  props: {
@@ -686,8 +686,8 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
686
686
  emit2("updatedPeriod", currentPeriod.value);
687
687
  }
688
688
  return (_ctx, _cache) => {
689
- return openBlock(), createElementBlock("div", _hoisted_1$14, [
690
- createElementVNode("div", _hoisted_2$P, [
689
+ return openBlock(), createElementBlock("div", _hoisted_1$15, [
690
+ createElementVNode("div", _hoisted_2$Q, [
691
691
  createVNode(unref(Btn), {
692
692
  flat: "",
693
693
  icon: "chevron_left",
@@ -737,18 +737,18 @@ const EVENT_COLORS = {
737
737
  };
738
738
  const DATE_TIME_STRING_PATTERN = /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/;
739
739
  const DATE_TIME_STRING_FULL_DAY_PATTERN = /^\d{4}-\d{2}-\d{2}$/;
740
- const _hoisted_1$13 = ["id"];
741
- const _hoisted_2$O = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
740
+ const _hoisted_1$14 = ["id"];
741
+ const _hoisted_2$P = { class: "flex txt14 flex column align-items-start gap-025 opacity-6" };
742
742
  const _hoisted_3$G = {
743
743
  key: 0,
744
744
  class: "agenda__event-time flex gap-025"
745
745
  };
746
- const _hoisted_4$t = {
746
+ const _hoisted_4$u = {
747
747
  key: 1,
748
748
  class: "agenda__event-location flex gap-025"
749
749
  };
750
- const _hoisted_5$p = { class: "agenda__event-title" };
751
- const _hoisted_6$l = {
750
+ const _hoisted_5$q = { class: "agenda__event-title" };
751
+ const _hoisted_6$m = {
752
752
  key: 0,
753
753
  class: "agenda__event-with txt14 opacity-6"
754
754
  };
@@ -827,7 +827,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
827
827
  class: "agenda__event is-event rounded mb-05 pointer user-select-none p-1 grid gap-1",
828
828
  onClick: withModifiers(handleClickOnEvent, ["prevent"])
829
829
  }, [
830
- createElementVNode("div", _hoisted_2$O, [
830
+ createElementVNode("div", _hoisted_2$P, [
831
831
  eventTime.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_3$G, [
832
832
  createVNode(unref(_sfc_main$s), {
833
833
  icon: icons.clock,
@@ -835,7 +835,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
835
835
  }, null, 8, ["icon"]),
836
836
  createTextVNode(" " + toDisplayString(eventTime.value), 1)
837
837
  ])) : createCommentVNode("", true),
838
- __props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$t, [
838
+ __props.calendarEvent.location ? (openBlock(), createElementBlock("span", _hoisted_4$u, [
839
839
  createVNode(unref(_sfc_main$s), {
840
840
  icon: icons.location,
841
841
  size: 1
@@ -844,25 +844,25 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
844
844
  ])) : createCommentVNode("", true)
845
845
  ]),
846
846
  createElementVNode("div", null, [
847
- createElementVNode("div", _hoisted_5$p, toDisplayString(__props.calendarEvent.title), 1),
848
- __props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$l, [
847
+ createElementVNode("div", _hoisted_5$q, toDisplayString(__props.calendarEvent.title), 1),
848
+ __props.calendarEvent.with ? (openBlock(), createElementBlock("div", _hoisted_6$m, [
849
849
  createVNode(unref(_sfc_main$s), {
850
850
  icon: icons.user
851
851
  }, null, 8, ["icon"]),
852
852
  createTextVNode(" " + toDisplayString(__props.calendarEvent.with), 1)
853
853
  ])) : createCommentVNode("", true)
854
854
  ])
855
- ], 8, _hoisted_1$13);
855
+ ], 8, _hoisted_1$14);
856
856
  };
857
857
  }
858
858
  });
859
859
  const AgendaEventTile = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-5740437b"]]);
860
- const _hoisted_1$12 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
861
- const _hoisted_2$N = { class: "m_sticky" };
860
+ const _hoisted_1$13 = { class: "agenda__wrapper grid align-items-start gap-1 h-100p" };
861
+ const _hoisted_2$O = { class: "m_sticky" };
862
862
  const _hoisted_3$F = { class: "agenda__header-day-name txt-center" };
863
- const _hoisted_4$s = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
864
- const _hoisted_5$o = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
865
- const _hoisted_6$k = {
863
+ const _hoisted_4$t = { class: "agenda__header-date flex justify-content-center rounded p-025 txt24 line-height-04" };
864
+ const _hoisted_5$p = { class: "agenda__content flex column w-100p h-100p min-h-100px pt-05 border-start ps-1 m_pt-0 min-h-50px" };
865
+ const _hoisted_6$l = {
866
866
  key: 0,
867
867
  class: "align-items-center flex justify-content-center h-100p opacity-6"
868
868
  };
@@ -890,13 +890,13 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
890
890
  setup(__props, { emit: __emit }) {
891
891
  const emit2 = __emit;
892
892
  return (_ctx, _cache) => {
893
- return openBlock(), createElementBlock("div", _hoisted_1$12, [
894
- createElementVNode("header", _hoisted_2$N, [
893
+ return openBlock(), createElementBlock("div", _hoisted_1$13, [
894
+ createElementVNode("header", _hoisted_2$O, [
895
895
  createElementVNode("div", _hoisted_3$F, toDisplayString(__props.day.dayName.slice(0, 3)), 1),
896
- createElementVNode("div", _hoisted_4$s, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
896
+ createElementVNode("div", _hoisted_4$t, toDisplayString(__props.day.dateTimeString.substring(8, 10)), 1)
897
897
  ]),
898
- createElementVNode("div", _hoisted_5$o, [
899
- __props.day.events.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$k, toDisplayString(unref(getLanguage)(unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$g, [
898
+ createElementVNode("div", _hoisted_5$p, [
899
+ __props.day.events.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$l, toDisplayString(unref(getLanguage)(unref(languageKeys).noEvent, __props.time.CALENDAR_LOCALE)), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$g, [
900
900
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.day.events, (dayEvent) => {
901
901
  return openBlock(), createBlock(AgendaEventTile, {
902
902
  key: `agenda_event_${dayEvent.id}`,
@@ -1592,21 +1592,21 @@ class EventFlyoutPosition {
1592
1592
  return { top: eventElementDOMRect.top, left: null };
1593
1593
  }
1594
1594
  }
1595
- const _hoisted_1$11 = {
1595
+ const _hoisted_1$12 = {
1596
1596
  key: 0,
1597
1597
  class: "event-flyout__relative-wrapper"
1598
1598
  };
1599
- const _hoisted_2$M = { class: "event-flyout__menu" };
1599
+ const _hoisted_2$N = { class: "event-flyout__menu" };
1600
1600
  const _hoisted_3$E = {
1601
1601
  key: 0,
1602
1602
  class: "event-flyout__menu-editable"
1603
1603
  };
1604
- const _hoisted_4$r = { class: "event-flyout__menu-close" };
1605
- const _hoisted_5$n = {
1604
+ const _hoisted_4$s = { class: "event-flyout__menu-close" };
1605
+ const _hoisted_5$o = {
1606
1606
  key: 0,
1607
1607
  class: "event-flyout__info-wrapper"
1608
1608
  };
1609
- const _hoisted_6$j = {
1609
+ const _hoisted_6$k = {
1610
1610
  key: 0,
1611
1611
  class: "event-flyout__row is-title"
1612
1612
  };
@@ -1804,8 +1804,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
1804
1804
  class: normalizeClass(["event-flyout p-05 bg-white", { "is-visible": isVisible.value, "is-not-editable": !isEditable.value }]),
1805
1805
  style: normalizeStyle(eventFlyoutInlineStyles.value)
1806
1806
  }, [
1807
- !__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (openBlock(), createElementBlock("div", _hoisted_1$11, [
1808
- createElementVNode("div", _hoisted_2$M, [
1807
+ !__props.config.eventDialog || !__props.config.eventDialog.isCustom ? (openBlock(), createElementBlock("div", _hoisted_1$12, [
1808
+ createElementVNode("div", _hoisted_2$N, [
1809
1809
  isEditable.value ? (openBlock(), createElementBlock("span", _hoisted_3$E, [
1810
1810
  createVNode(unref(_sfc_main$s), {
1811
1811
  class: "event-flyout__menu-item is-edit-icon",
@@ -1818,7 +1818,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
1818
1818
  onClick: deleteEvent
1819
1819
  }, null, 8, ["icon"])
1820
1820
  ])) : createCommentVNode("", true),
1821
- createElementVNode("span", _hoisted_4$r, [
1821
+ createElementVNode("span", _hoisted_4$s, [
1822
1822
  createVNode(unref(_sfc_main$s), {
1823
1823
  class: "event-flyout__menu-item is-times-icon",
1824
1824
  icon: icons.times,
@@ -1826,8 +1826,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
1826
1826
  }, null, 8, ["icon"])
1827
1827
  ])
1828
1828
  ]),
1829
- calendarEvent.value ? (openBlock(), createElementBlock("div", _hoisted_5$n, [
1830
- calendarEvent.value.title ? (openBlock(), createElementBlock("div", _hoisted_6$j, [
1829
+ calendarEvent.value ? (openBlock(), createElementBlock("div", _hoisted_5$o, [
1830
+ calendarEvent.value.title ? (openBlock(), createElementBlock("div", _hoisted_6$k, [
1831
1831
  createElementVNode("div", {
1832
1832
  class: "event-flyout__color-icon",
1833
1833
  style: normalizeStyle({ backgroundColor: eventBackgroundColor.value })
@@ -1871,17 +1871,17 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
1871
1871
  };
1872
1872
  }
1873
1873
  });
1874
- const _hoisted_1$10 = {
1874
+ const _hoisted_1$11 = {
1875
1875
  key: 0,
1876
1876
  class: "calendar-month__event"
1877
1877
  };
1878
- const _hoisted_2$L = ["id", "draggable"];
1878
+ const _hoisted_2$M = ["id", "draggable"];
1879
1879
  const _hoisted_3$D = ["id", "draggable"];
1880
- const _hoisted_4$q = {
1880
+ const _hoisted_4$r = {
1881
1881
  key: 0,
1882
1882
  class: "calendar-month__event-time opacity-6 flex-shrink-0"
1883
1883
  };
1884
- const _hoisted_5$m = { class: "calendar-month__event-title1 white-space ellipsis" };
1884
+ const _hoisted_5$n = { class: "calendar-month__event-title1 white-space ellipsis" };
1885
1885
  const eventIdPrefix = "calendar-month__event-";
1886
1886
  const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1887
1887
  __name: "Event",
@@ -1963,7 +1963,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1963
1963
  setColors();
1964
1964
  });
1965
1965
  return (_ctx, _cache) => {
1966
- return __props.config.isSmall ? (openBlock(), createElementBlock("div", _hoisted_1$10)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1966
+ return __props.config.isSmall ? (openBlock(), createElementBlock("div", _hoisted_1$11)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1967
1967
  isCustomEvent.value ? (openBlock(), createElementBlock("div", {
1968
1968
  key: 0,
1969
1969
  id: elementId.value,
@@ -1974,7 +1974,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1974
1974
  onClick: handleClickOnEvent
1975
1975
  }, [
1976
1976
  renderSlot(_ctx.$slots, "monthEvent", { eventData: __props.calendarEvent }, void 0, true)
1977
- ], 42, _hoisted_2$L)) : (openBlock(), createElementBlock("div", {
1977
+ ], 42, _hoisted_2$M)) : (openBlock(), createElementBlock("div", {
1978
1978
  key: 1,
1979
1979
  id: elementId.value,
1980
1980
  "data-ref": "default-event",
@@ -1984,18 +1984,18 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
1984
1984
  onClick: handleClickOnEvent
1985
1985
  }, [
1986
1986
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "calendar-month__event-color round flex-shrink-0" }, null, -1)),
1987
- eventTimeStart.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_4$q, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
1988
- createElementVNode("span", _hoisted_5$m, toDisplayString(__props.calendarEvent.title), 1)
1987
+ eventTimeStart.value && !__props.calendarEvent.originalEvent ? (openBlock(), createElementBlock("span", _hoisted_4$r, toDisplayString(eventTimeStart.value), 1)) : createCommentVNode("", true),
1988
+ createElementVNode("span", _hoisted_5$n, toDisplayString(__props.calendarEvent.title), 1)
1989
1989
  ], 42, _hoisted_3$D))
1990
1990
  ], 64));
1991
1991
  };
1992
1992
  }
1993
1993
  });
1994
1994
  const Event = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-3c4101df"]]);
1995
- const _hoisted_1$$ = ["id"];
1996
- const _hoisted_2$K = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
1995
+ const _hoisted_1$10 = ["id"];
1996
+ const _hoisted_2$L = { class: "w-100p flex justify-content-end txt14 p-025 m_h-100p" };
1997
1997
  const _hoisted_3$C = { class: "calendar-month_events" };
1998
- const _hoisted_4$p = {
1998
+ const _hoisted_4$q = {
1999
1999
  key: 1,
2000
2000
  class: "space-reserver"
2001
2001
  };
@@ -2096,7 +2096,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
2096
2096
  onDragend: handleDragEnd
2097
2097
  }, [
2098
2098
  renderSlot(_ctx.$slots, "dayCell", { dayData: __props.day }, () => [
2099
- createElementVNode("div", _hoisted_2$K, [
2099
+ createElementVNode("div", _hoisted_2$L, [
2100
2100
  createElementVNode("p", {
2101
2101
  class: "calendar-month__day-date ms-auto flex aspect-ratio-1 w-30px h-30px justify-content-center m_mx-auto",
2102
2102
  onClick: emitDayWasClicked
@@ -2129,12 +2129,12 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
2129
2129
  }, toDisplayString(unref(getLanguage)(unref(languageKeys).moreEvents, __props.time.CALENDAR_LOCALE)), 1)) : createCommentVNode("", true)
2130
2130
  ])
2131
2131
  ], true)
2132
- ], 42, _hoisted_1$$)) : (openBlock(), createElementBlock("div", _hoisted_4$p));
2132
+ ], 42, _hoisted_1$10)) : (openBlock(), createElementBlock("div", _hoisted_4$q));
2133
2133
  };
2134
2134
  }
2135
2135
  });
2136
2136
  const Day$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-c1dfa100"]]);
2137
- const _hoisted_1$_ = { class: "txt12 normal block color-black pb-025" };
2137
+ const _hoisted_1$$ = { class: "txt12 normal block color-black pb-025" };
2138
2138
  const _sfc_main$19 = /* @__PURE__ */ defineComponent({
2139
2139
  __name: "WeekDay",
2140
2140
  props: {
@@ -2142,14 +2142,14 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
2142
2142
  },
2143
2143
  setup(__props) {
2144
2144
  return (_ctx, _cache) => {
2145
- return openBlock(), createElementBlock("span", _hoisted_1$_, toDisplayString(_ctx.day.dayName), 1);
2145
+ return openBlock(), createElementBlock("span", _hoisted_1$$, toDisplayString(_ctx.day.dayName), 1);
2146
2146
  };
2147
2147
  }
2148
2148
  });
2149
- const _hoisted_1$Z = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
2150
- const _hoisted_2$J = { class: "flex space-between" };
2149
+ const _hoisted_1$_ = { class: "calendar-month relative column w-100p h-100p overflow-y flex flex-stretch" };
2150
+ const _hoisted_2$K = { class: "flex space-between" };
2151
2151
  const _hoisted_3$B = { class: "calendar-month__weeks h-100p flex-grow flex flex-stretch column space-between" };
2152
- const _hoisted_4$o = {
2152
+ const _hoisted_4$p = {
2153
2153
  key: 0,
2154
2154
  class: "calendar-month__day_events w-100p pt-1 m_pb-1"
2155
2155
  };
@@ -2255,8 +2255,8 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
2255
2255
  });
2256
2256
  return (_ctx, _cache) => {
2257
2257
  var _a;
2258
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
2259
- createElementVNode("div", _hoisted_2$J, [
2258
+ return openBlock(), createElementBlock("div", _hoisted_1$_, [
2259
+ createElementVNode("div", _hoisted_2$K, [
2260
2260
  (openBlock(true), createElementBlock(Fragment, null, renderList(month.value[0], (day, dayIndex) => {
2261
2261
  return openBlock(), createBlock(_sfc_main$19, {
2262
2262
  key: dayIndex,
@@ -2298,7 +2298,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
2298
2298
  ]);
2299
2299
  }), 128))
2300
2300
  ]),
2301
- !(((_a = __props.config.month) == null ? void 0 : _a.showEventsOnMobileView) === false) ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
2301
+ !(((_a = __props.config.month) == null ? void 0 : _a.showEventsOnMobileView) === false) ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
2302
2302
  selectedDay.value ? (openBlock(), createBlock(AgendaEvents, {
2303
2303
  key: 0,
2304
2304
  config: __props.config,
@@ -2532,18 +2532,18 @@ class EventChange {
2532
2532
  this.dayEnd = `${endHourString}:00`;
2533
2533
  }
2534
2534
  }
2535
- const _hoisted_1$Y = ["data-ref"];
2536
- const _hoisted_2$I = { class: "calendar-week__event-row is-title" };
2535
+ const _hoisted_1$Z = ["data-ref"];
2536
+ const _hoisted_2$J = { class: "calendar-week__event-row is-title" };
2537
2537
  const _hoisted_3$A = { class: "calendar-week__event-row is-time flex" };
2538
- const _hoisted_4$n = {
2538
+ const _hoisted_4$o = {
2539
2539
  key: 0,
2540
2540
  class: "calendar-week__event-row is-location"
2541
2541
  };
2542
- const _hoisted_5$l = {
2542
+ const _hoisted_5$m = {
2543
2543
  key: 1,
2544
2544
  class: "calendar-week__event-row is-with"
2545
2545
  };
2546
- const _hoisted_6$i = {
2546
+ const _hoisted_6$j = {
2547
2547
  key: 2,
2548
2548
  class: "calendar-week__event-row is-topic"
2549
2549
  };
@@ -2894,7 +2894,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
2894
2894
  backgroundColor: eventBackgroundColor.value
2895
2895
  })
2896
2896
  }, [
2897
- createElementVNode("div", _hoisted_2$I, toDisplayString(event.value.title), 1),
2897
+ createElementVNode("div", _hoisted_2$J, toDisplayString(event.value.title), 1),
2898
2898
  createElementVNode("div", _hoisted_3$A, [
2899
2899
  createVNode(unref(_sfc_main$s), {
2900
2900
  icon: icons.value.clock,
@@ -2902,21 +2902,21 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
2902
2902
  }, null, 8, ["icon"]),
2903
2903
  createElementVNode("span", null, toDisplayString(getEventTime.value), 1)
2904
2904
  ]),
2905
- event.value.location ? (openBlock(), createElementBlock("div", _hoisted_4$n, [
2905
+ event.value.location ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
2906
2906
  createVNode(unref(_sfc_main$s), {
2907
2907
  icon: icons.value.location,
2908
2908
  class: "calendar-week__event-icon"
2909
2909
  }, null, 8, ["icon"]),
2910
2910
  createElementVNode("span", null, toDisplayString(event.value.location), 1)
2911
2911
  ])) : createCommentVNode("", true),
2912
- event.value.with ? (openBlock(), createElementBlock("div", _hoisted_5$l, [
2912
+ event.value.with ? (openBlock(), createElementBlock("div", _hoisted_5$m, [
2913
2913
  createVNode(unref(_sfc_main$s), {
2914
2914
  icon: icons.value.user,
2915
2915
  class: "calendar-week__event-icon"
2916
2916
  }, null, 8, ["icon"]),
2917
2917
  createElementVNode("span", null, toDisplayString(event.value.with), 1)
2918
2918
  ])) : createCommentVNode("", true),
2919
- event.value.topic ? (openBlock(), createElementBlock("div", _hoisted_6$i, [
2919
+ event.value.topic ? (openBlock(), createElementBlock("div", _hoisted_6$j, [
2920
2920
  createVNode(unref(_sfc_main$s), {
2921
2921
  icon: icons.value.topic,
2922
2922
  class: "calendar-week__event-icon"
@@ -2953,12 +2953,12 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
2953
2953
  class: "calendar-week__event-resize calendar-week__event-resize-down",
2954
2954
  onMousedown: _cache[1] || (_cache[1] = ($event) => resizeEvent("down"))
2955
2955
  }, null, 32)) : createCommentVNode("", true)
2956
- ], 46, _hoisted_1$Y);
2956
+ ], 46, _hoisted_1$Z);
2957
2957
  };
2958
2958
  }
2959
2959
  });
2960
2960
  const DayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-c512b81d"]]);
2961
- const _hoisted_1$X = ["id", "onClick"];
2961
+ const _hoisted_1$Y = ["id", "onClick"];
2962
2962
  const _sfc_main$16 = /* @__PURE__ */ defineComponent({
2963
2963
  __name: "Day",
2964
2964
  props: {
@@ -3096,15 +3096,15 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
3096
3096
  class: normalizeClass(["calendar-week__day-interval", { "has-border": interval.hasBorder }]),
3097
3097
  style: normalizeStyle(intervalStyles.value),
3098
3098
  onClick: ($event) => handleClickOnInterval(interval)
3099
- }, toDisplayString(__props.time.getLocalizedTime(interval.intervalStart)), 15, _hoisted_1$X);
3099
+ }, toDisplayString(__props.time.getLocalizedTime(interval.intervalStart)), 15, _hoisted_1$Y);
3100
3100
  }), 128)) : createCommentVNode("", true)
3101
3101
  ]);
3102
3102
  };
3103
3103
  }
3104
3104
  });
3105
3105
  const Day = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-87669cec"]]);
3106
- const _hoisted_1$W = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
3107
- const _hoisted_2$H = { class: "day-timeline__hour-text line-height-0" };
3106
+ const _hoisted_1$X = { class: "day-timeline absolute top-0 start-0 space-evenly column display-flex" };
3107
+ const _hoisted_2$I = { class: "day-timeline__hour-text line-height-0" };
3108
3108
  const _sfc_main$15 = /* @__PURE__ */ defineComponent({
3109
3109
  __name: "DayTimeline",
3110
3110
  props: {
@@ -3131,13 +3131,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
3131
3131
  return props2.time.getLocalizedHour(new Date(2100, 1, 1, hour));
3132
3132
  }
3133
3133
  return (_ctx, _cache) => {
3134
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
3134
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
3135
3135
  (openBlock(true), createElementBlock(Fragment, null, renderList(timelineHours.value, (hour) => {
3136
3136
  return openBlock(), createElementBlock("div", {
3137
3137
  key: hour,
3138
3138
  class: "day-timeline__hour display-flex column ustify-content-start h-100p ps-05"
3139
3139
  }, [
3140
- createElementVNode("span", _hoisted_2$H, toDisplayString(getLocaleTimeString(hour)), 1)
3140
+ createElementVNode("span", _hoisted_2$I, toDisplayString(getLocaleTimeString(hour)), 1)
3141
3141
  ]);
3142
3142
  }), 128))
3143
3143
  ]);
@@ -3145,8 +3145,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
3145
3145
  }
3146
3146
  });
3147
3147
  const DayTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-0b3de5c5"]]);
3148
- const _hoisted_1$V = ["id"];
3149
- const _hoisted_2$G = {
3148
+ const _hoisted_1$W = ["id"];
3149
+ const _hoisted_2$H = {
3150
3150
  key: 1,
3151
3151
  class: "week-timeline__event"
3152
3152
  };
@@ -3217,20 +3217,20 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3217
3217
  zIndex: 1
3218
3218
  }),
3219
3219
  onClick: handleClickOnEvent
3220
- }, toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$V)) : (openBlock(), createElementBlock("div", _hoisted_2$G));
3220
+ }, toDisplayString(__props.scheduleEvent.title), 13, _hoisted_1$W)) : (openBlock(), createElementBlock("div", _hoisted_2$H));
3221
3221
  };
3222
3222
  }
3223
3223
  });
3224
3224
  const FullDayEvent = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-8bd51337"]]);
3225
- const _hoisted_1$U = {
3225
+ const _hoisted_1$V = {
3226
3226
  class: "week-timeline flex space-between border-bottom ms-3-5",
3227
3227
  style: { "margin-inline-end": "0.5em" }
3228
3228
  };
3229
- const _hoisted_2$F = ["onClick"];
3229
+ const _hoisted_2$G = ["onClick"];
3230
3230
  const _hoisted_3$z = { class: "flex justify-content-center gap-025 txt12 pb-025" };
3231
- const _hoisted_4$m = { class: "" };
3232
- const _hoisted_5$k = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
3233
- const _hoisted_6$h = { class: "week-timeline__events" };
3231
+ const _hoisted_4$n = { class: "" };
3232
+ const _hoisted_5$l = { class: "week-timeline__date txt14 round inline-flex justify-content-center" };
3233
+ const _hoisted_6$i = { class: "week-timeline__events" };
3234
3234
  const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3235
3235
  __name: "WeekTimeline",
3236
3236
  props: {
@@ -3252,7 +3252,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3252
3252
  return date2;
3253
3253
  }
3254
3254
  return (_ctx, _cache) => {
3255
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
3255
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
3256
3256
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.days, (day, dayIndex) => {
3257
3257
  return openBlock(), createElementBlock("div", {
3258
3258
  key: dayIndex,
@@ -3262,10 +3262,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3262
3262
  onClick: ($event) => emit2("dayWasClicked", _ctx.time.dateStringFrom(day.dateTimeString))
3263
3263
  }, [
3264
3264
  createElementVNode("div", _hoisted_3$z, [
3265
- createElementVNode("div", _hoisted_4$m, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
3266
- createElementVNode("div", _hoisted_5$k, toDisplayString(getDaysDate(day)), 1)
3265
+ createElementVNode("div", _hoisted_4$n, toDisplayString(day.dayName.charAt(0).toUpperCase() + day.dayName.slice(1, 3).toLowerCase()), 1),
3266
+ createElementVNode("div", _hoisted_5$l, toDisplayString(getDaysDate(day)), 1)
3267
3267
  ]),
3268
- createElementVNode("div", _hoisted_6$h, [
3268
+ createElementVNode("div", _hoisted_6$i, [
3269
3269
  (openBlock(true), createElementBlock(Fragment, null, renderList(day.fullDayEvents, (event, key) => {
3270
3270
  return openBlock(), createElementBlock(Fragment, { key }, [
3271
3271
  key !== "date" ? (openBlock(), createBlock(FullDayEvent, {
@@ -3278,15 +3278,15 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
3278
3278
  ], 64);
3279
3279
  }), 128))
3280
3280
  ])
3281
- ], 10, _hoisted_2$F);
3281
+ ], 10, _hoisted_2$G);
3282
3282
  }), 128))
3283
3283
  ]);
3284
3284
  };
3285
3285
  }
3286
3286
  });
3287
3287
  const WeekTimeline = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-18ecf6c3"]]);
3288
- const _hoisted_1$T = { class: "calendar-week__wrapper relative ps-3-5" };
3289
- const _hoisted_2$E = { class: "calendar-week" };
3288
+ const _hoisted_1$U = { class: "calendar-week__wrapper relative ps-3-5" };
3289
+ const _hoisted_2$F = { class: "calendar-week" };
3290
3290
  const _hoisted_3$y = { class: "calendar-week__events" };
3291
3291
  const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3292
3292
  __name: "Week",
@@ -3514,7 +3514,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3514
3514
  onEventWasClicked: handleClickOnEvent,
3515
3515
  onDayWasClicked: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("dayWasClicked", $event))
3516
3516
  }, null, 8, ["days", "time", "full-day-events", "config", "mode"]),
3517
- createElementVNode("div", _hoisted_1$T, [
3517
+ createElementVNode("div", _hoisted_1$U, [
3518
3518
  !__props.config.eventDialog || !__props.config.eventDialog.isDisabled ? (openBlock(), createBlock(_sfc_main$1c, {
3519
3519
  key: 0,
3520
3520
  "calendar-event-prop": selectedEvent.value,
@@ -3533,7 +3533,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
3533
3533
  ]),
3534
3534
  _: 3
3535
3535
  }, 8, ["calendar-event-prop", "event-element", "time", "config"])) : createCommentVNode("", true),
3536
- createElementVNode("section", _hoisted_2$E, [
3536
+ createElementVNode("section", _hoisted_2$F, [
3537
3537
  hasCustomCurrentTimeSlot.value && showCurrentTime.value ? (openBlock(), createElementBlock("div", {
3538
3538
  key: 0,
3539
3539
  class: "custom-current-time",
@@ -3635,8 +3635,8 @@ ${_Errors.SUFFIX}`);
3635
3635
  __publicField(_Errors, "MISSING_TIME_END_WARNING", `${_Errors.PREFIX} required event property 'time.end' is missing
3636
3636
  ${_Errors.SUFFIX}`);
3637
3637
  let Errors = _Errors;
3638
- const _hoisted_1$S = { class: "calendar-root-wrapper txt16" };
3639
- const _hoisted_2$D = ["data-lang"];
3638
+ const _hoisted_1$T = { class: "calendar-root-wrapper txt16" };
3639
+ const _hoisted_2$E = ["data-lang"];
3640
3640
  const _hoisted_3$x = {
3641
3641
  key: 0,
3642
3642
  class: "top-bar-loader"
@@ -3815,7 +3815,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3815
3815
  }
3816
3816
  return (_ctx, _cache) => {
3817
3817
  var _a2, _b2;
3818
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
3818
+ return openBlock(), createElementBlock("div", _hoisted_1$T, [
3819
3819
  createElementVNode("div", {
3820
3820
  ref_key: "calendarRoot",
3821
3821
  ref: calendarRoot,
@@ -3914,12 +3914,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
3914
3914
  ]),
3915
3915
  _: 3
3916
3916
  }, 8, ["events-prop", "time", "config", "period"])) : createCommentVNode("", true)
3917
- ], 10, _hoisted_2$D)
3917
+ ], 10, _hoisted_2$E)
3918
3918
  ]);
3919
3919
  };
3920
3920
  }
3921
3921
  });
3922
- const _hoisted_1$R = {
3922
+ const _hoisted_1$S = {
3923
3923
  key: 0,
3924
3924
  class: "card_label"
3925
3925
  };
@@ -3952,7 +3952,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
3952
3952
  }])
3953
3953
  }, {
3954
3954
  default: withCtx(() => [
3955
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$R, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
3955
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$S, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
3956
3956
  renderSlot(_ctx.$slots, "default")
3957
3957
  ]),
3958
3958
  _: 3
@@ -3962,13 +3962,13 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
3962
3962
  };
3963
3963
  }
3964
3964
  });
3965
- const _hoisted_1$Q = ["dir"];
3966
- const _hoisted_2$C = {
3965
+ const _hoisted_1$R = ["dir"];
3966
+ const _hoisted_2$D = {
3967
3967
  key: 0,
3968
3968
  class: "dots"
3969
3969
  };
3970
3970
  const _hoisted_3$w = ["onClick"];
3971
- const _hoisted_4$l = { class: "Handlers" };
3971
+ const _hoisted_4$m = { class: "Handlers" };
3972
3972
  const GAP_PERCENT = 1;
3973
3973
  const VELOCITY_SAMPLE_DURATION = 100;
3974
3974
  const _sfc_main$$ = /* @__PURE__ */ defineComponent({
@@ -4397,7 +4397,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
4397
4397
  }, [
4398
4398
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
4399
4399
  ], 38),
4400
- props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$C, [
4400
+ props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$D, [
4401
4401
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(slideCount), (i2) => {
4402
4402
  return openBlock(), createElementBlock("span", {
4403
4403
  key: i2,
@@ -4406,7 +4406,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
4406
4406
  }, null, 10, _hoisted_3$w);
4407
4407
  }), 128))
4408
4408
  ])) : createCommentVNode("", true),
4409
- createElementVNode("div", _hoisted_4$l, [
4409
+ createElementVNode("div", _hoisted_4$m, [
4410
4410
  createElementVNode("span", { onClick: prev }, [
4411
4411
  renderSlot(_ctx.$slots, "prev", {
4412
4412
  index: unref(activeSlideIndex),
@@ -4420,7 +4420,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
4420
4420
  }, void 0, true)
4421
4421
  ])
4422
4422
  ])
4423
- ], 14, _hoisted_1$Q);
4423
+ ], 14, _hoisted_1$R);
4424
4424
  };
4425
4425
  }
4426
4426
  });
@@ -10259,9 +10259,9 @@ const _hoisted_1$1$1 = {
10259
10259
  };
10260
10260
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
10261
10261
  const _hoisted_3$v = { class: "layer-rectangles" };
10262
- const _hoisted_4$k = ["transform", "onMouseover"];
10263
- const _hoisted_5$j = ["width", "height"];
10264
- const _hoisted_6$g = {
10262
+ const _hoisted_4$l = ["transform", "onMouseover"];
10263
+ const _hoisted_5$k = ["width", "height"];
10264
+ const _hoisted_6$h = {
10265
10265
  x: 0 + 10,
10266
10266
  y: 0 + 20,
10267
10267
  "font-size": `15px`,
@@ -10297,21 +10297,21 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
10297
10297
  y: 0,
10298
10298
  width: r2.width,
10299
10299
  height: r2.height
10300
- }), null, 16, _hoisted_5$j),
10300
+ }), null, 16, _hoisted_5$k),
10301
10301
  renderSlot(_ctx.$slots, "text", {
10302
10302
  r: r2,
10303
10303
  selected: _ctx.selected === i2
10304
10304
  }, () => [
10305
10305
  createElementVNode(
10306
10306
  "text",
10307
- _hoisted_6$g,
10307
+ _hoisted_6$h,
10308
10308
  toDisplayString(r2.data.name),
10309
10309
  1
10310
10310
  /* TEXT */
10311
10311
  )
10312
10312
  ])
10313
10313
  ])
10314
- ], 42, _hoisted_4$k);
10314
+ ], 42, _hoisted_4$l);
10315
10315
  }),
10316
10316
  128
10317
10317
  /* KEYED_FRAGMENT */
@@ -10368,19 +10368,19 @@ var script = defineComponent({
10368
10368
  return { bar, canvas, direction, mouse };
10369
10369
  }
10370
10370
  });
10371
- const _hoisted_1$P = {
10371
+ const _hoisted_1$Q = {
10372
10372
  key: 0,
10373
10373
  class: "layer-hover-bar"
10374
10374
  };
10375
- const _hoisted_2$B = ["x", "y", "width", "height"];
10375
+ const _hoisted_2$C = ["x", "y", "width", "height"];
10376
10376
  function render(_ctx, _cache, $props, $setup, $data, $options) {
10377
- return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$P, [
10377
+ return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$Q, [
10378
10378
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
10379
10379
  x: _ctx.bar.x,
10380
10380
  y: _ctx.bar.y,
10381
10381
  width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
10382
10382
  height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
10383
- }), null, 16, _hoisted_2$B)
10383
+ }), null, 16, _hoisted_2$C)
10384
10384
  ])) : createCommentVNode("v-if", true);
10385
10385
  }
10386
10386
  script.render = render;
@@ -10687,14 +10687,43 @@ function useTableData(options) {
10687
10687
  const sortField = ref("");
10688
10688
  const sortDirection = ref("ASC");
10689
10689
  function getValue(value) {
10690
- return value.value !== void 0 ? value.value : value;
10690
+ if (value === void 0 || value === null) {
10691
+ return void 0;
10692
+ }
10693
+ try {
10694
+ if (value && typeof value === "object" && "value" in value) {
10695
+ return value.value;
10696
+ }
10697
+ return value;
10698
+ } catch (error) {
10699
+ console.error("Error in getValue:", error);
10700
+ return void 0;
10701
+ }
10691
10702
  }
10692
10703
  const computedSchema = computed(() => {
10693
- return useBglSchema({
10704
+ const dataValue = options.data.value || [];
10705
+ const schema = useBglSchema({
10694
10706
  schema: getValue(options.schema),
10695
10707
  columns: getValue(options.columns),
10696
- data: options.data.value
10697
- });
10708
+ data: dataValue
10709
+ });
10710
+ if (Array.isArray(schema) && schema.length > 0) {
10711
+ return schema.filter((field) => field && field.id);
10712
+ }
10713
+ if (Array.isArray(dataValue) && dataValue.length > 0) {
10714
+ const firstItem = dataValue[0];
10715
+ return Object.keys(firstItem || {}).filter((key) => key !== "id" && !key.startsWith("_")).map((key) => ({
10716
+ id: key,
10717
+ label: keyToLabel(key),
10718
+ $el: "div",
10719
+ transform: (val) => {
10720
+ const dateFields = ["created_at", "updated_at"];
10721
+ if (dateFields.includes(key)) return val ? new Date(val).toLocaleString() : val;
10722
+ return val;
10723
+ }
10724
+ }));
10725
+ }
10726
+ return [];
10698
10727
  });
10699
10728
  function transform(rowData) {
10700
10729
  const transformed = { ...rowData };
@@ -10720,9 +10749,21 @@ function useTableData(options) {
10720
10749
  }
10721
10750
  return transformed;
10722
10751
  }
10752
+ function cleanTransformedData(data2) {
10753
+ const cleanData = { ...data2 };
10754
+ Object.keys(cleanData).forEach((key) => {
10755
+ if (key.startsWith("_")) {
10756
+ delete cleanData[key];
10757
+ }
10758
+ });
10759
+ return cleanData;
10760
+ }
10723
10761
  const computedSortField = computed(() => sortField.value ? `_transformed_${sortField.value}` : "");
10724
10762
  const computedData = computed(() => {
10725
- const currentData = options.data.value;
10763
+ const currentData = options.data.value || [];
10764
+ if (!Array.isArray(currentData) || currentData.length === 0) {
10765
+ return [];
10766
+ }
10726
10767
  const useServerSortValue = getValue(options.useServerSort);
10727
10768
  if (!sortField.value || useServerSortValue === true) {
10728
10769
  return currentData.map(transform);
@@ -10764,10 +10805,15 @@ function useTableData(options) {
10764
10805
  transform,
10765
10806
  sortField: computed(() => sortField.value),
10766
10807
  sortDirection: computed(() => sortDirection.value),
10767
- toggleSort
10808
+ toggleSort,
10809
+ cleanTransformedData
10768
10810
  };
10769
10811
  }
10770
- const _hoisted_1$O = { class: "data-preview" };
10812
+ const _hoisted_1$P = { class: "data-preview" };
10813
+ const _hoisted_2$B = {
10814
+ key: 1,
10815
+ class: "empty-preview"
10816
+ };
10771
10817
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10772
10818
  __name: "DataPreview",
10773
10819
  props: {
@@ -10782,7 +10828,12 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10782
10828
  setup(__props) {
10783
10829
  const props2 = __props;
10784
10830
  const slots = useSlots();
10785
- const data2 = computed(() => Array.isArray(props2.modelValue) ? props2.modelValue : [props2.modelValue]);
10831
+ const data2 = computed(() => {
10832
+ if (!props2.modelValue) {
10833
+ return [];
10834
+ }
10835
+ return Array.isArray(props2.modelValue) ? props2.modelValue : [props2.modelValue];
10836
+ });
10786
10837
  const {
10787
10838
  computedSchema,
10788
10839
  computedData
@@ -10792,24 +10843,29 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10792
10843
  columns: props2.columns,
10793
10844
  useServerSort: false
10794
10845
  });
10795
- const firstItem = computed(() => computedData.value[0] || {});
10846
+ const firstItem = computed(() => {
10847
+ if (!computedData.value || computedData.value.length === 0) {
10848
+ return {};
10849
+ }
10850
+ return computedData.value[0] || {};
10851
+ });
10796
10852
  const { renderField } = useSchemaField({
10797
10853
  mode: "preview",
10798
10854
  getRowData: () => firstItem.value,
10799
10855
  includeUnset: props2.includeUnset
10800
10856
  });
10801
10857
  return (_ctx, _cache) => {
10802
- return openBlock(), createElementBlock("div", _hoisted_1$O, [
10803
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(computedSchema), (field) => {
10858
+ return openBlock(), createElementBlock("div", _hoisted_1$P, [
10859
+ unref(computedSchema) && unref(computedSchema).length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(computedSchema), (field) => {
10804
10860
  return openBlock(), createBlock(resolveDynamicComponent(unref(renderField)(field, unref(slots))), {
10805
10861
  key: field.id
10806
10862
  });
10807
- }), 128))
10863
+ }), 128)) : (openBlock(), createElementBlock("div", _hoisted_2$B, " No data to display "))
10808
10864
  ]);
10809
10865
  };
10810
10866
  }
10811
10867
  });
10812
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-88ed9d8d"]]);
10868
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-4cd3d931"]]);
10813
10869
  function useTableSelection(options) {
10814
10870
  const allSelectorEl = ref();
10815
10871
  const computedSelectedItems = computed(() => options.selectedItems.value);
@@ -10822,8 +10878,14 @@ function useTableSelection(options) {
10822
10878
  }
10823
10879
  function toggleSelectItem(item) {
10824
10880
  if (computedSelectedItems.value.length === 0) {
10825
- const cleanItem = { ...item };
10826
- Object.keys(cleanItem).forEach((key) => key.startsWith("_transformed_") && delete cleanItem[key]);
10881
+ const cleanItem = options.cleanData ? options.cleanData(item) : { ...item };
10882
+ if (!options.cleanData) {
10883
+ Object.keys(cleanItem).forEach((key) => {
10884
+ if (key.startsWith("_")) {
10885
+ delete cleanItem[key];
10886
+ }
10887
+ });
10888
+ }
10827
10889
  options.onSelect(cleanItem);
10828
10890
  return;
10829
10891
  }
@@ -11424,7 +11486,13 @@ function useTableVirtualization(options) {
11424
11486
  await until(() => lastItemEl.value).toBeTruthy();
11425
11487
  useIntersectionObserver(lastItemEl, ([entry]) => {
11426
11488
  var _a;
11427
- if (entry.isIntersecting && options.data.value.length) {
11489
+ let dataLength = 0;
11490
+ if (isRef(options.data) && options.data.value) {
11491
+ dataLength = Array.isArray(options.data.value) ? options.data.value.length : 0;
11492
+ } else if (Array.isArray(options.data)) {
11493
+ dataLength = options.data.length;
11494
+ }
11495
+ if (entry.isIntersecting && dataLength > 0) {
11428
11496
  (_a = options.onLastItemVisible) == null ? void 0 : _a.call(options);
11429
11497
  }
11430
11498
  });
@@ -11438,15 +11506,15 @@ function useTableVirtualization(options) {
11438
11506
  registerLastItemObserver
11439
11507
  };
11440
11508
  }
11441
- const _hoisted_1$N = {
11509
+ const _hoisted_1$O = {
11442
11510
  key: 0,
11443
11511
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
11444
11512
  };
11445
11513
  const _hoisted_2$A = { class: "infinite-wrapper" };
11446
11514
  const _hoisted_3$u = { class: "row first-row" };
11447
- const _hoisted_4$j = { key: 0 };
11448
- const _hoisted_5$i = ["onClick"];
11449
- const _hoisted_6$f = { class: "flex" };
11515
+ const _hoisted_4$k = { key: 0 };
11516
+ const _hoisted_5$j = ["onClick"];
11517
+ const _hoisted_6$g = { class: "flex" };
11450
11518
  const _hoisted_7$c = ["onClick"];
11451
11519
  const _hoisted_8$7 = { key: 0 };
11452
11520
  const _hoisted_9$6 = ["value"];
@@ -11471,7 +11539,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11471
11539
  emits: /* @__PURE__ */ mergeModels(["orderBy", "select", "lastItemVisible"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
11472
11540
  setup(__props, { emit: __emit }) {
11473
11541
  useCssVars((_ctx) => ({
11474
- "97de67d4": unref(computedItemHeight)
11542
+ "31aad8d2": unref(computedItemHeight)
11475
11543
  }));
11476
11544
  const props2 = __props;
11477
11545
  const emit2 = __emit;
@@ -11488,7 +11556,8 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11488
11556
  computedData,
11489
11557
  sortField,
11490
11558
  sortDirection,
11491
- toggleSort
11559
+ toggleSort,
11560
+ cleanTransformedData
11492
11561
  } = useTableData({ data: data2, schema, columns, useServerSort, onSort: (field, direction) => {
11493
11562
  emit2("orderBy", `${field} ${direction}`.trim());
11494
11563
  } });
@@ -11502,6 +11571,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11502
11571
  } = useTableSelection({
11503
11572
  selectable: props2.selectable,
11504
11573
  selectedItems,
11574
+ cleanData: cleanTransformedData,
11505
11575
  onSelect: (item) => {
11506
11576
  emit2("select", item);
11507
11577
  }
@@ -11560,12 +11630,12 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11560
11630
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
11561
11631
  class: { "loading-table": loading.value }
11562
11632
  }), [
11563
- loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$N, _cache[4] || (_cache[4] = [
11633
+ loading.value ? (openBlock(), createElementBlock("div", _hoisted_1$O, _cache[4] || (_cache[4] = [
11564
11634
  createElementVNode("div", { class: "loading-table-animation absolute oval" }, null, -1)
11565
11635
  ]))) : (openBlock(), createElementBlock("div", normalizeProps(mergeProps({ key: 1 }, unref(wrapperProps))), [
11566
11636
  createElementVNode("table", _hoisted_2$A, [
11567
11637
  createElementVNode("thead", _hoisted_3$u, [
11568
- unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$j, [
11638
+ unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_4$k, [
11569
11639
  createElementVNode("input", {
11570
11640
  ref_key: "allSelectorEl",
11571
11641
  ref: allSelectorEl,
@@ -11582,10 +11652,10 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11582
11652
  class: "col",
11583
11653
  onClick: ($event) => unref(toggleSort)((field == null ? void 0 : field.id) || "")
11584
11654
  }, [
11585
- createElementVNode("div", _hoisted_6$f, [
11586
- createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field.id)) + " ", 1),
11655
+ createElementVNode("div", _hoisted_6$g, [
11656
+ createTextVNode(toDisplayString(field.label || unref(keyToLabel)(field == null ? void 0 : field.id)) + " ", 1),
11587
11657
  createElementVNode("div", {
11588
- class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
11658
+ class: normalizeClass(["list-arrows", { sorted: unref(sortField) === (field == null ? void 0 : field.id) }])
11589
11659
  }, [
11590
11660
  createVNode(unref(_sfc_main$s), {
11591
11661
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
@@ -11593,14 +11663,14 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11593
11663
  }, null, 8, ["class"])
11594
11664
  ], 2)
11595
11665
  ])
11596
- ], 8, _hoisted_5$i);
11666
+ ], 8, _hoisted_5$j);
11597
11667
  }), 128))
11598
11668
  ]),
11599
11669
  createElementVNode("tbody", null, [
11600
11670
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), ({ data: row }) => {
11601
11671
  return openBlock(), createElementBlock("tr", {
11602
- key: row.id,
11603
- class: normalizeClass(["row row-item position-relative", { selected: unref(computedSelectedItems).includes(row.id ?? "") }]),
11672
+ key: (row == null ? void 0 : row.id) || `row-${Math.random()}`,
11673
+ class: normalizeClass(["row row-item position-relative", { selected: (row == null ? void 0 : row.id) && unref(computedSelectedItems).includes(row.id) }]),
11604
11674
  onClick: ($event) => unref(toggleSelectItem)(row)
11605
11675
  }, [
11606
11676
  unref(isSelectable) ? (openBlock(), createElementBlock("td", _hoisted_8$7, [
@@ -11611,7 +11681,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11611
11681
  withDirectives(createElementVNode("input", {
11612
11682
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => selectedItems.value = $event),
11613
11683
  type: "checkbox",
11614
- value: row.id
11684
+ value: (row == null ? void 0 : row.id) || ""
11615
11685
  }, null, 8, _hoisted_9$6), [
11616
11686
  [vModelCheckbox, selectedItems.value]
11617
11687
  ])
@@ -11619,7 +11689,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11619
11689
  ])) : createCommentVNode("", true),
11620
11690
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(computedSchema), (field) => {
11621
11691
  return openBlock(), createElementBlock("td", {
11622
- key: `${field.id}-${row.id}`,
11692
+ key: `${field.id}-${(row == null ? void 0 : row.id) || Math.random()}`,
11623
11693
  class: "col"
11624
11694
  }, [
11625
11695
  field.id && unref(slots)[field.id] ? renderSlot(_ctx.$slots, field.id, {
@@ -11646,7 +11716,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
11646
11716
  };
11647
11717
  }
11648
11718
  });
11649
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-5e7cca10"]]);
11719
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-43f28baa"]]);
11650
11720
  function useDraggable(options = {}) {
11651
11721
  const isDragging = ref(false);
11652
11722
  const dragElement = ref(null);
@@ -14826,7 +14896,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
14826
14896
  };
14827
14897
  }
14828
14898
  });
14829
- const _hoisted_1$M = { class: "px-1 pt-025 pb-1" };
14899
+ const _hoisted_1$N = { class: "px-1 pt-025 pb-1" };
14830
14900
  const _hoisted_2$z = { class: "ms-1" };
14831
14901
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
14832
14902
  __name: "FieldSetVue",
@@ -14836,7 +14906,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
14836
14906
  },
14837
14907
  setup(__props) {
14838
14908
  return (_ctx, _cache) => {
14839
- return openBlock(), createElementBlock("fieldset", _hoisted_1$M, [
14909
+ return openBlock(), createElementBlock("fieldset", _hoisted_1$N, [
14840
14910
  createElementVNode("legend", _hoisted_2$z, toDisplayString(_ctx.legend || _ctx.label), 1),
14841
14911
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
14842
14912
  ]);
@@ -15284,6 +15354,7 @@ function getNestedValue(obj, path, defaultValue = void 0) {
15284
15354
  }
15285
15355
  return current ?? defaultValue;
15286
15356
  }
15357
+ const _hoisted_1$M = { class: "flex-center h-300px" };
15287
15358
  const _sfc_main$T = /* @__PURE__ */ defineComponent({
15288
15359
  __name: "BagelForm",
15289
15360
  props: {
@@ -15297,52 +15368,65 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
15297
15368
  setup(__props, { expose: __expose, emit: __emit }) {
15298
15369
  const props2 = __props;
15299
15370
  const emit2 = __emit;
15300
- function safeClone2(obj) {
15301
- if (!obj) return obj;
15302
- try {
15303
- return JSON.parse(JSON.stringify(obj));
15304
- } catch (e) {
15305
- console.warn("Failed to clone object:", e);
15306
- return obj;
15307
- }
15308
- }
15371
+ const clone2 = (obj) => !obj ? obj : JSON.parse(JSON.stringify(obj));
15309
15372
  const form = ref();
15310
- const formData = ref(safeClone2(props2.modelValue ?? {}));
15311
- const initialFormData = ref(safeClone2(props2.modelValue ?? {}));
15312
- onMounted(() => {
15313
- if (props2.modelValue) {
15314
- initialFormData.value = safeClone2(props2.modelValue);
15315
- }
15316
- });
15373
+ const formData = ref(clone2(props2.modelValue ?? {}));
15374
+ const initialFormData = ref(clone2(props2.modelValue ?? {}));
15317
15375
  const formState = ref("idle");
15318
- watch(() => props2.modelValue, (newValue) => {
15319
- if (newValue !== void 0) {
15320
- formData.value = safeClone2(newValue);
15321
- }
15322
- }, { immediate: true, deep: true });
15323
- const resolvedSchema = computed(() => {
15324
- if (!props2.schema) return void 0;
15325
- return typeof props2.schema === "function" ? props2.schema() : props2.schema;
15326
- });
15376
+ const schemaState = ref("loaded");
15377
+ const resolvedSchemaData = ref();
15378
+ const schemaRef = toRef(props2, "schema");
15379
+ const resolvedSchema = computed(() => resolvedSchemaData.value);
15327
15380
  const isDirty = computed(() => {
15328
15381
  try {
15329
- const current = JSON.stringify(formData.value);
15330
- const initial = JSON.stringify(initialFormData.value);
15331
- return current !== initial;
15332
- } catch (e) {
15333
- console.warn("Failed to compare form data:", e);
15382
+ return JSON.stringify(formData.value) !== JSON.stringify(initialFormData.value);
15383
+ } catch {
15334
15384
  return false;
15335
15385
  }
15336
15386
  });
15387
+ onMounted(() => {
15388
+ if (props2.modelValue) initialFormData.value = clone2(props2.modelValue);
15389
+ refreshSchema();
15390
+ });
15391
+ watch(() => props2.modelValue, (val) => {
15392
+ if (val !== void 0) formData.value = clone2(val);
15393
+ }, { immediate: true, deep: true });
15394
+ async function resolveSchema(schema) {
15395
+ if (!schema) {
15396
+ resolvedSchemaData.value = void 0;
15397
+ schemaState.value = "loaded";
15398
+ return;
15399
+ }
15400
+ try {
15401
+ schemaState.value = "loading";
15402
+ const isPromise = (obj) => obj && typeof obj.then === "function";
15403
+ let result2;
15404
+ if (typeof schema === "function") {
15405
+ result2 = schema();
15406
+ result2 = isPromise(result2) ? await result2 : result2;
15407
+ } else {
15408
+ result2 = isPromise(schema) ? await schema : schema;
15409
+ }
15410
+ resolvedSchemaData.value = result2;
15411
+ schemaState.value = "loaded";
15412
+ } catch (error) {
15413
+ console.error("Schema error:", error);
15414
+ schemaState.value = "error";
15415
+ resolvedSchemaData.value = void 0;
15416
+ }
15417
+ }
15418
+ async function refreshSchema() {
15419
+ await resolveSchema(props2.schema);
15420
+ return resolvedSchemaData.value;
15421
+ }
15422
+ watch(schemaRef, resolveSchema, { immediate: true, deep: true });
15337
15423
  function updateFormData(fieldId, value) {
15338
15424
  const keys4 = fieldId.split(".");
15339
- const newData = safeClone2(formData.value);
15425
+ const newData = clone2(formData.value);
15340
15426
  let current = newData;
15341
15427
  for (let i2 = 0; i2 < keys4.length - 1; i2++) {
15342
15428
  const key = keys4[i2];
15343
- if (!current[key] || typeof current[key] !== "object") {
15344
- current[key] = {};
15345
- }
15429
+ if (!current[key] || typeof current[key] !== "object") current[key] = {};
15346
15430
  current = current[key];
15347
15431
  }
15348
15432
  current[keys4[keys4.length - 1]] = value;
@@ -15355,38 +15439,34 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
15355
15439
  if (formState.value === "submitting") return;
15356
15440
  formState.value = "submitting";
15357
15441
  await ((_a = props2.onSubmit) == null ? void 0 : _a.call(props2, formData.value));
15358
- initialFormData.value = safeClone2(formData.value);
15442
+ initialFormData.value = clone2(formData.value);
15359
15443
  formState.value = "success";
15360
15444
  window.parent.postMessage({ type: "BAGEL_FORM_SUCCESS", data: JSON.stringify(formData.value) }, "*");
15361
15445
  } catch (error) {
15362
- console.error("Form submission error:", error);
15446
+ console.error("Submit error:", error);
15363
15447
  formState.value = "error";
15364
15448
  }
15365
15449
  }
15366
- function validateForm() {
15367
- if (!form.value) return false;
15368
- return form.value.reportValidity();
15369
- }
15450
+ const validateForm = () => {
15451
+ var _a;
15452
+ return ((_a = form.value) == null ? void 0 : _a.reportValidity()) ?? false;
15453
+ };
15370
15454
  const { renderField } = useSchemaField({
15371
15455
  mode: "form",
15372
- getRowData: () => {
15373
- return {
15374
- ...formData.value,
15375
- // Add a special getter to handle nested paths
15376
- get: (path) => getNestedValue(formData.value, path, "")
15377
- };
15378
- },
15456
+ getRowData: () => ({
15457
+ ...formData.value,
15458
+ get: (path) => getNestedValue(formData.value, path, "")
15459
+ }),
15379
15460
  onUpdate: (field, value) => {
15380
15461
  var _a;
15381
- if (!field.id) return;
15382
- updateFormData(field.id, value);
15383
- (_a = field.onUpdate) == null ? void 0 : _a.call(field, value, formData.value);
15462
+ if (field.id) {
15463
+ updateFormData(field.id, value);
15464
+ (_a = field.onUpdate) == null ? void 0 : _a.call(field, value, formData.value);
15465
+ }
15384
15466
  }
15385
15467
  });
15386
- function renderSchemaField(field) {
15387
- return renderField(field);
15388
- }
15389
- __expose({ form, isDirty: isDirty.value, validateForm });
15468
+ const renderSchemaField = (field) => renderField(field);
15469
+ __expose({ form, isDirty, validateForm, resolveSchema, refreshSchema });
15390
15470
  return (_ctx, _cache) => {
15391
15471
  return openBlock(), createElementBlock(Fragment, null, [
15392
15472
  formState.value !== "success" || !_ctx.$slots.success ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -15397,23 +15477,36 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
15397
15477
  class: normalizeClass(props2.class),
15398
15478
  onSubmit: withModifiers(handleSubmit, ["prevent"])
15399
15479
  }, [
15400
- resolvedSchema.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(resolvedSchema.value, (field) => {
15480
+ schemaState.value === "loading" ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
15481
+ createElementVNode("div", _hoisted_1$M, [
15482
+ createVNode(unref(Loading))
15483
+ ])
15484
+ ]) : schemaState.value === "error" ? renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
15485
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "flex-center h-300px txt-red" }, " Error loading form ", -1))
15486
+ ]) : resolvedSchema.value ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(resolvedSchema.value, (field) => {
15401
15487
  return openBlock(), createBlock(resolveDynamicComponent(renderSchemaField(field)), {
15402
15488
  key: field.id
15403
15489
  });
15404
- }), 128)) : renderSlot(_ctx.$slots, "default", { key: 1 }),
15490
+ }), 128)) : renderSlot(_ctx.$slots, "default", { key: 3 }),
15405
15491
  renderSlot(_ctx.$slots, "submit", {
15406
15492
  submit: handleSubmit,
15407
15493
  isDirty: isDirty.value,
15408
15494
  validateForm,
15409
- formState: formState.value
15495
+ formState: formState.value,
15496
+ schemaState: schemaState.value
15410
15497
  })
15411
- ], 34)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(resolvedSchema.value, (field) => {
15412
- return openBlock(), createBlock(resolveDynamicComponent(renderSchemaField(field)), {
15413
- key: field.id,
15414
- class: normalizeClass(props2.class)
15415
- }, null, 8, ["class"]);
15416
- }), 128))
15498
+ ], 34)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
15499
+ schemaState.value === "loading" ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
15500
+ createVNode(unref(Loading))
15501
+ ]) : schemaState.value === "error" ? renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
15502
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "flex-center h-300px txt-red" }, " Error loading form ", -1))
15503
+ ]) : resolvedSchema.value ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(resolvedSchema.value, (field) => {
15504
+ return openBlock(), createBlock(resolveDynamicComponent(renderSchemaField(field)), {
15505
+ key: field.id,
15506
+ class: normalizeClass(props2.class)
15507
+ }, null, 8, ["class"]);
15508
+ }), 128)) : createCommentVNode("", true)
15509
+ ], 64))
15417
15510
  ], 64)) : createCommentVNode("", true),
15418
15511
  formState.value === "success" ? renderSlot(_ctx.$slots, "success", { key: 1 }) : createCommentVNode("", true),
15419
15512
  formState.value === "error" ? renderSlot(_ctx.$slots, "error", { key: 2 }) : createCommentVNode("", true)
@@ -15426,7 +15519,19 @@ const _hoisted_2$y = {
15426
15519
  key: 0,
15427
15520
  class: "ps-025 border-start mb-05"
15428
15521
  };
15429
- const _hoisted_3$t = { class: "bg-gray-80 -my-05 px-025 pt-065 txt-center" };
15522
+ const _hoisted_3$t = {
15523
+ key: 0,
15524
+ class: "flex-center h-300px"
15525
+ };
15526
+ const _hoisted_4$j = {
15527
+ key: 1,
15528
+ class: "flex-center h-300px txt-red"
15529
+ };
15530
+ const _hoisted_5$i = {
15531
+ key: 0,
15532
+ class: "minimizedText txt14 p-025 opacity-7"
15533
+ };
15534
+ const _hoisted_6$f = { class: "bg-gray-80 -my-05 px-025 pt-065 pb-05 txt-center space-between flex column" };
15430
15535
  const _sfc_main$S = /* @__PURE__ */ defineComponent({
15431
15536
  __name: "FieldArray",
15432
15537
  props: {
@@ -15452,93 +15557,115 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
15452
15557
  setup(__props, { emit: __emit }) {
15453
15558
  const props2 = __props;
15454
15559
  const emit2 = __emit;
15455
- const data2 = ref(props2.modelValue || []);
15560
+ const minimizedItems = ref([]);
15561
+ const internalData = ref(props2.modelValue || []);
15562
+ const schemaState = ref("loaded");
15563
+ const resolvedSchemaData = ref([]);
15564
+ async function resolveSchema() {
15565
+ if (!props2.schema) {
15566
+ resolvedSchemaData.value = [];
15567
+ schemaState.value = "loaded";
15568
+ return;
15569
+ }
15570
+ try {
15571
+ schemaState.value = "loading";
15572
+ const isPromise = (obj) => obj && typeof obj.then === "function";
15573
+ let result2;
15574
+ if (typeof props2.schema === "function") {
15575
+ result2 = props2.schema();
15576
+ result2 = isPromise(result2) ? await result2 : result2;
15577
+ } else {
15578
+ result2 = isPromise(props2.schema) ? await props2.schema : props2.schema;
15579
+ }
15580
+ resolvedSchemaData.value = result2;
15581
+ schemaState.value = "loaded";
15582
+ } catch (error) {
15583
+ console.error("Schema error:", error);
15584
+ schemaState.value = "error";
15585
+ resolvedSchemaData.value = [];
15586
+ }
15587
+ }
15588
+ onMounted(() => {
15589
+ resolveSchema();
15590
+ });
15456
15591
  function emitValue() {
15457
- emit2("update:modelValue", data2.value);
15592
+ emit2("update:modelValue", internalData.value);
15458
15593
  }
15459
15594
  function deleteItem(i2) {
15460
- data2.value.splice(i2, 1);
15595
+ internalData.value.splice(i2, 1);
15461
15596
  emitValue();
15462
15597
  }
15463
15598
  function addItem() {
15464
- data2.value.push({});
15599
+ internalData.value.push({});
15600
+ emitValue();
15601
+ }
15602
+ function toggleMinimized(index2) {
15603
+ minimizedItems.value[index2] = !minimizedItems.value[index2];
15604
+ }
15605
+ function updateItem(index2, value) {
15606
+ internalData.value[index2] = value;
15465
15607
  emitValue();
15466
15608
  }
15467
- const computedField = computed(
15468
- () => ({
15469
- label: props2.label,
15470
- placeholder: props2.placeholder,
15471
- children: props2.children,
15472
- // class: props.class,
15473
- attrs: props2.attrs,
15474
- required: props2.required,
15475
- disabled: props2.disabled,
15476
- helptext: props2.helptext,
15477
- options: props2.options,
15478
- defaultValue: props2.defaultValue,
15479
- transform: props2.transform,
15480
- $el: props2.el
15481
- })
15482
- );
15483
- const { renderField } = useSchemaField({
15484
- mode: "form",
15485
- getRowData: () => data2.value,
15486
- onUpdate: (field, value) => {
15487
- if (!field.id) return;
15488
- const index2 = Number.parseInt(field.id);
15489
- if (Number.isNaN(index2)) return;
15490
- data2.value[index2] = value;
15491
- emitValue();
15492
- }
15493
- });
15494
15609
  return (_ctx, _cache) => {
15495
15610
  return openBlock(), createElementBlock("div", {
15496
15611
  class: normalizeClass(props2.class)
15497
15612
  }, [
15498
15613
  createElementVNode("p", _hoisted_1$L, toDisplayString(_ctx.label), 1),
15499
- _ctx.schema ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
15500
- (openBlock(true), createElementBlock(Fragment, null, renderList(data2.value, (_2, i2) => {
15501
- return openBlock(), createElementBlock("div", {
15502
- key: i2,
15503
- outline: "",
15614
+ resolvedSchemaData.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$y, [
15615
+ schemaState.value === "loading" ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
15616
+ createVNode(unref(Loading))
15617
+ ])) : schemaState.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_4$j, " Error ")) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
15618
+ (openBlock(true), createElementBlock(Fragment, null, renderList(internalData.value, (item, i2) => {
15619
+ return openBlock(), createElementBlock("div", {
15620
+ key: i2,
15621
+ outline: "",
15622
+ thin: "",
15623
+ class: normalizeClass(["mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden", { minimized: minimizedItems.value[i2] }])
15624
+ }, [
15625
+ minimizedItems.value[i2] ? (openBlock(), createElementBlock("p", _hoisted_5$i, toDisplayString(_ctx.label) + " " + toDisplayString(i2 + 1), 1)) : (openBlock(), createBlock(unref(_sfc_main$T), {
15626
+ key: 1,
15627
+ "model-value": item,
15628
+ schema: resolvedSchemaData.value,
15629
+ "onUpdate:modelValue": (val) => updateItem(i2, val)
15630
+ }, null, 8, ["model-value", "schema", "onUpdate:modelValue"])),
15631
+ createElementVNode("div", _hoisted_6$f, [
15632
+ resolvedSchemaData.value.length > 4 ? (openBlock(), createBlock(unref(Btn), {
15633
+ key: 0,
15634
+ class: "block rotate-180 txt10 opacity-7 p-025",
15635
+ flat: "",
15636
+ thin: "",
15637
+ icon: "keyboard_arrow_down",
15638
+ onClick: ($event) => toggleMinimized(i2)
15639
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
15640
+ props2.delete ? (openBlock(), createBlock(unref(Btn), {
15641
+ key: 1,
15642
+ icon: "delete",
15643
+ class: "txt10 opacity-7",
15644
+ thin: "",
15645
+ flat: "",
15646
+ onClick: ($event) => deleteItem(i2)
15647
+ }, null, 8, ["onClick"])) : createCommentVNode("", true)
15648
+ ])
15649
+ ], 2);
15650
+ }), 128)),
15651
+ _ctx.add ? (openBlock(), createBlock(unref(Btn), {
15652
+ key: 0,
15504
15653
  thin: "",
15505
- class: "mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden"
15506
- }, [
15507
- createVNode(unref(_sfc_main$T), {
15508
- modelValue: data2.value[i2],
15509
- "onUpdate:modelValue": [($event) => data2.value[i2] = $event, emitValue],
15510
- schema: _ctx.schema
15511
- }, null, 8, ["modelValue", "onUpdate:modelValue", "schema"]),
15512
- createElementVNode("div", _hoisted_3$t, [
15513
- props2.delete ? (openBlock(), createBlock(unref(Btn), {
15514
- key: 0,
15515
- icon: "delete",
15516
- class: "txt10 opacity-7",
15517
- thin: "",
15518
- flat: "",
15519
- onClick: ($event) => deleteItem(i2)
15520
- }, null, 8, ["onClick"])) : createCommentVNode("", true)
15521
- ])
15522
- ]);
15523
- }), 128)),
15524
- _ctx.add ? (openBlock(), createBlock(unref(Btn), {
15525
- key: 0,
15526
- thin: "",
15527
- icon: "add",
15528
- color: "gray",
15529
- class: "txt12",
15530
- onClick: addItem
15531
- }, {
15532
- default: withCtx(() => [
15533
- createElementVNode("p", null, toDisplayString(_ctx.label), 1)
15534
- ]),
15535
- _: 1
15536
- })) : createCommentVNode("", true)
15537
- ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(data2.value, (_2, i2) => {
15538
- return openBlock(), createBlock(resolveDynamicComponent(unref(renderField)({ ...computedField.value, id: String(i2) })), {
15539
- key: i2,
15540
- "onUpdate:modelValue": emitValue
15541
- });
15654
+ icon: "add",
15655
+ color: "gray",
15656
+ class: "txt12",
15657
+ onClick: addItem
15658
+ }, {
15659
+ default: withCtx(() => [
15660
+ createElementVNode("p", null, toDisplayString(_ctx.label), 1)
15661
+ ]),
15662
+ _: 1
15663
+ })) : createCommentVNode("", true)
15664
+ ], 64))
15665
+ ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(internalData.value, (_2, i2) => {
15666
+ return openBlock(), createElementBlock("div", { key: i2 }, _cache[0] || (_cache[0] = [
15667
+ createElementVNode("p", null, "No schema available", -1)
15668
+ ]));
15542
15669
  }), 128))
15543
15670
  ], 2);
15544
15671
  };
@@ -33535,7 +33662,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
33535
33662
  }
33536
33663
  });
33537
33664
  const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2f5e271c"]]);
33538
- const _hoisted_1$j = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
33665
+ const _hoisted_1$j = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
33539
33666
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
33540
33667
  __name: "BottomMenu",
33541
33668
  props: {
@@ -33571,7 +33698,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
33571
33698
  };
33572
33699
  }
33573
33700
  });
33574
- const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-fe3a895e"]]);
33701
+ const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2227f9cc"]]);
33575
33702
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
33576
33703
  __name: "Layout",
33577
33704
  props: {
@@ -34033,7 +34160,7 @@ const _hoisted_1$c = { class: "flex-center" };
34033
34160
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
34034
34161
  __name: "Loading",
34035
34162
  props: {
34036
- size: { default: 64 },
34163
+ size: { default: 50 },
34037
34164
  thickness: {},
34038
34165
  duration: { default: 1.2 },
34039
34166
  type: { default: "ring" },
@@ -34048,7 +34175,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
34048
34175
  const computedSize = computed(() => standardSize(__props.size));
34049
34176
  const animationDuration = computed(() => `${__props.duration}s`);
34050
34177
  const computedBorder = computed(() => {
34051
- const borderValue = __props.thickness ?? Number.parseInt(computedSize.value) / 7;
34178
+ const borderValue = __props.thickness ?? Math.max(Number.parseInt(computedSize.value) / 9, 2);
34052
34179
  return standardSize(borderValue);
34053
34180
  });
34054
34181
  return (_ctx, _cache) => {
@@ -34094,7 +34221,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
34094
34221
  };
34095
34222
  }
34096
34223
  });
34097
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-2e27b3c1"]]);
34224
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-221a3053"]]);
34098
34225
  const _hoisted_1$b = ["id"];
34099
34226
  const defaultMarkerSVG = '<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>';
34100
34227
  const leafletScriptUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
@@ -36127,10 +36254,17 @@ function useBagelFormState() {
36127
36254
  if (!state2) throw new Error("BagelFormState must be provided");
36128
36255
  return state2;
36129
36256
  }
36130
- function useBglSchema({ schema, columns, data: data2 } = {}) {
36257
+ async function useBglSchema({ schema, columns, data: data2 } = {}) {
36131
36258
  let _schema = schema;
36132
36259
  if (typeof _schema === "function") {
36133
- _schema = _schema();
36260
+ const result2 = _schema();
36261
+ if (result2 instanceof Promise) {
36262
+ _schema = await result2;
36263
+ } else {
36264
+ _schema = result2;
36265
+ }
36266
+ } else if (_schema instanceof Promise) {
36267
+ _schema = await _schema;
36134
36268
  }
36135
36269
  if (_schema) {
36136
36270
  return columns && columns.length > 0 ? _schema.filter((f2) => columns.includes(f2.id)) : _schema;