@bagelink/vue 0.0.819 → 0.0.823

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.
package/dist/index.mjs CHANGED
@@ -38,7 +38,7 @@ const bagelFormUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defi
38
38
  return txtField;
39
39
  }
40
40
  }, Symbol.toStringTag, { value: "Module" }));
41
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
41
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
42
42
  __name: "Accordion",
43
43
  setup(__props) {
44
44
  const state2 = reactive({
@@ -52,10 +52,10 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
52
52
  };
53
53
  }
54
54
  });
55
- const _hoisted_1$M = ["aria-expanded", "aria-controls"];
55
+ const _hoisted_1$N = ["aria-expanded", "aria-controls"];
56
56
  const _hoisted_2$w = { class: "accordion-label" };
57
57
  const _hoisted_3$m = ["id", "aria-hidden"];
58
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
58
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
59
59
  __name: "AccordionItem",
60
60
  props: {
61
61
  label: {},
@@ -131,7 +131,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
131
131
  }, [
132
132
  createVNode(unref(_sfc_main$c), { icon: computedIcon.value }, null, 8, ["icon"])
133
133
  ], 2)) : createCommentVNode("", true)
134
- ], 8, _hoisted_1$M),
134
+ ], 8, _hoisted_1$N),
135
135
  createVNode(Transition, { name: "expand" }, {
136
136
  default: withCtx(() => [
137
137
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -156,9 +156,9 @@ const _export_sfc = (sfc, props2) => {
156
156
  }
157
157
  return target;
158
158
  };
159
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-9d8335fa"]]);
160
- const _hoisted_1$L = { class: "relative" };
161
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
159
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-9d8335fa"]]);
160
+ const _hoisted_1$M = { class: "relative" };
161
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
162
162
  __name: "AddressSearch",
163
163
  emits: ["addressSelected"],
164
164
  setup(__props, { emit: __emit }) {
@@ -180,8 +180,8 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
180
180
  (_a2 = suggestion.value) == null ? void 0 : _a2.show();
181
181
  }
182
182
  return (_ctx, _cache) => {
183
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
184
- createVNode(unref(_sfc_main$M), {
183
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
184
+ createVNode(unref(_sfc_main$N), {
185
185
  ref_key: "suggestion",
186
186
  ref: suggestion,
187
187
  noAutoFocus: true,
@@ -216,7 +216,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
216
216
  };
217
217
  }
218
218
  });
219
- const _hoisted_1$K = {
219
+ const _hoisted_1$L = {
220
220
  key: 0,
221
221
  class: "loading"
222
222
  };
@@ -224,7 +224,7 @@ const _hoisted_2$v = {
224
224
  key: 1,
225
225
  class: "bgl_btn-flex"
226
226
  };
227
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
227
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
228
228
  __name: "Btn",
229
229
  props: {
230
230
  disabled: { type: Boolean, default: false },
@@ -319,7 +319,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
319
319
  onClick: withModifiers(_ctx.onClick, ["stop"])
320
320
  }, {
321
321
  default: withCtx(() => [
322
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$K)) : (openBlock(), createElementBlock("div", _hoisted_2$v, [
322
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$L)) : (openBlock(), createElementBlock("div", _hoisted_2$v, [
323
323
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
324
324
  key: 0,
325
325
  icon: _ctx.icon
@@ -339,10 +339,10 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
339
339
  };
340
340
  }
341
341
  });
342
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-c00fb1b9"]]);
343
- const _hoisted_1$J = ["dismissable"];
342
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-c00fb1b9"]]);
343
+ const _hoisted_1$K = ["dismissable"];
344
344
  const _hoisted_2$u = { class: "m-0" };
345
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
345
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
346
346
  __name: "Alert",
347
347
  props: {
348
348
  message: {},
@@ -378,13 +378,13 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
378
378
  icon: "close",
379
379
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
380
380
  })
381
- ], 10, _hoisted_1$J)) : createCommentVNode("", true);
381
+ ], 10, _hoisted_1$K)) : createCommentVNode("", true);
382
382
  };
383
383
  }
384
384
  });
385
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-57141c32"]]);
386
- const _hoisted_1$I = ["src", "alt"];
387
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
385
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-57141c32"]]);
386
+ const _hoisted_1$J = ["src", "alt"];
387
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
388
388
  __name: "Avatar",
389
389
  props: {
390
390
  fallback: {},
@@ -402,7 +402,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
402
402
  key: 0,
403
403
  src: _ctx.src,
404
404
  alt: _ctx.name
405
- }, null, 8, _hoisted_1$I)) : (openBlock(), createElementBlock("p", {
405
+ }, null, 8, _hoisted_1$J)) : (openBlock(), createElementBlock("p", {
406
406
  key: 1,
407
407
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
408
408
  }, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -410,8 +410,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
410
410
  };
411
411
  }
412
412
  });
413
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-46ad8c25"]]);
414
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
413
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-46ad8c25"]]);
414
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
415
415
  __name: "Badge",
416
416
  props: {
417
417
  color: {},
@@ -442,10 +442,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
442
442
  };
443
443
  }
444
444
  });
445
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-1b4c8cfe"]]);
446
- const _hoisted_1$H = ["src"];
445
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-1b4c8cfe"]]);
446
+ const _hoisted_1$I = ["src"];
447
447
  const _hoisted_2$t = ["src", "autoplay", "muted", "loop", "controls"];
448
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
448
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
449
449
  __name: "BglVideo",
450
450
  props: {
451
451
  src: {},
@@ -499,7 +499,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
499
499
  allowfullscreen: "",
500
500
  title: "Video",
501
501
  allow: "autoplay"
502
- }, null, 12, _hoisted_1$H)) : _ctx.src ? (openBlock(), createElementBlock("video", {
502
+ }, null, 12, _hoisted_1$I)) : _ctx.src ? (openBlock(), createElementBlock("video", {
503
503
  key: 1,
504
504
  src: _ctx.src,
505
505
  autoplay: _ctx.autoplay,
@@ -513,12 +513,12 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
513
513
  };
514
514
  }
515
515
  });
516
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-30c80244"]]);
517
- const _hoisted_1$G = {
516
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-30c80244"]]);
517
+ const _hoisted_1$H = {
518
518
  key: 0,
519
519
  class: "card_label"
520
520
  };
521
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
521
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
522
522
  __name: "Card",
523
523
  props: {
524
524
  label: {},
@@ -546,7 +546,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
546
546
  }])
547
547
  }, {
548
548
  default: withCtx(() => [
549
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
549
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$H, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
550
550
  renderSlot(_ctx.$slots, "default")
551
551
  ]),
552
552
  _: 3
@@ -554,12 +554,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
554
554
  };
555
555
  }
556
556
  });
557
- const _hoisted_1$F = {
557
+ const _hoisted_1$G = {
558
558
  key: 0,
559
559
  class: "blocker"
560
560
  };
561
561
  const _hoisted_2$s = { class: "Handlers" };
562
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
562
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
563
563
  __name: "Carousel",
564
564
  props: {
565
565
  autoHeight: {
@@ -588,6 +588,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
588
588
  const props2 = __props;
589
589
  const emit2 = __emit;
590
590
  const bglSlider = ref();
591
+ let itemCount = ref(props2.items);
591
592
  let activeSlideIndex = ref(0);
592
593
  let isDragging = ref(false);
593
594
  let startX = ref(0);
@@ -612,6 +613,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
612
613
  }
613
614
  function scrollEase(target, duration = 500) {
614
615
  if (!bglSlider.value) return;
616
+ if (isPressed.value) return;
615
617
  const start2 = bglSlider.value.scrollLeft;
616
618
  const change = target - start2;
617
619
  const startTime = performance.now();
@@ -652,16 +654,26 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
652
654
  emit2("update:index", activeSlideIndex.value);
653
655
  }
654
656
  );
657
+ function goToSlideScrollEnd() {
658
+ if (!bglSlider.value) return;
659
+ const isDragForward = startX.value > bglSlider.value.offsetLeft;
660
+ if (itemCount.value === 1) {
661
+ if (isDragForward) activeSlideIndex.value = Math.ceil(bglSlider.value.scrollLeft / bglSlider.value.offsetWidth);
662
+ else activeSlideIndex.value = Math.floor(bglSlider.value.scrollLeft / bglSlider.value.offsetWidth);
663
+ } else {
664
+ activeSlideIndex.value = Math.round(bglSlider.value.scrollLeft / bglSlider.value.offsetWidth);
665
+ }
666
+ startX.value = 0;
667
+ const nextSlide = Math.round(bglSlider.value.scrollLeft / bglSlider.value.offsetWidth);
668
+ goToSlide(nextSlide);
669
+ }
670
+ let timeout = null;
671
+ function scrollEnd() {
672
+ if (timeout) clearTimeout(timeout);
673
+ timeout = setTimeout(goToSlideScrollEnd, 400);
674
+ }
655
675
  function stopDragging(e) {
656
676
  isPressed.value = false;
657
- const slider = bglSlider.value;
658
- if (!slider) return;
659
- const isDragForward = startX.value > e.pageX + slider.offsetLeft;
660
- if (isDragForward)
661
- activeSlideIndex.value = Math.ceil(slider.scrollLeft / slider.offsetWidth);
662
- else activeSlideIndex.value = Math.floor(slider.scrollLeft / slider.offsetWidth);
663
- if (props2.items === 1) goToSlide(activeSlideIndex.value);
664
- startX.value = 0;
665
677
  document.removeEventListener("mousemove", move);
666
678
  document.removeEventListener("mouseup", stopDragging);
667
679
  document.removeEventListener("dragend", stopDragging);
@@ -683,7 +695,6 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
683
695
  isPressed.value = true;
684
696
  document.addEventListener("mousemove", move);
685
697
  document.addEventListener("mouseup", stopDragging);
686
- document.addEventListener("dragend", stopDragging);
687
698
  }
688
699
  function next() {
689
700
  if (!bglSlider.value) return;
@@ -700,11 +711,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
700
711
  }
701
712
  function evalWidth() {
702
713
  if (!bglSlider.value) return;
714
+ if (window.innerWidth < 600) itemCount.value = 1;
715
+ else if (window.innerWidth < 991) itemCount.value = Math.min(props2.items, 2);
716
+ else if (window.innerWidth < 1280) itemCount.value = Math.min(props2.items, 3);
717
+ else itemCount.value = props2.items;
718
+ console.log(itemCount.value, window.innerWidth);
703
719
  goToSlide(activeSlideIndex.value);
704
720
  }
705
721
  onMounted(() => {
706
722
  window.addEventListener("resize", evalWidth);
707
723
  evalHeight();
724
+ evalWidth();
708
725
  disableDrag();
709
726
  });
710
727
  onUnmounted(() => {
@@ -721,14 +738,19 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
721
738
  class: normalizeClass([{
722
739
  dragging: unref(isDragging),
723
740
  clicking: unref(isPressed),
724
- [`slides-${__props.items}`]: true,
725
- allowScroll: __props.allowScroll
741
+ allowScroll: __props.allowScroll,
742
+ odd: unref(itemCount) % 2 !== 0,
743
+ [`slides-${unref(itemCount)}`]: unref(itemCount) === 1
726
744
  }, "bgl-slider"]),
745
+ style: normalizeStyle({
746
+ "--item-count": unref(itemCount)
747
+ }),
748
+ onScroll: scrollEnd,
727
749
  onMousedown: startDragging
728
750
  }, [
729
- unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$F)) : createCommentVNode("", true),
751
+ unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$G)) : createCommentVNode("", true),
730
752
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
731
- ], 34),
753
+ ], 38),
732
754
  createElementVNode("div", _hoisted_2$s, [
733
755
  createElementVNode("span", { onClick: prev }, [
734
756
  renderSlot(_ctx.$slots, "prev", {
@@ -747,7 +769,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
747
769
  };
748
770
  }
749
771
  });
750
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-619a1cb2"]]);
772
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-e588f5a7"]]);
751
773
  function _isPlaceholder(a2) {
752
774
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
753
775
  }
@@ -6688,13 +6710,13 @@ var script = defineComponent({
6688
6710
  return { bar, canvas, direction, mouse };
6689
6711
  }
6690
6712
  });
6691
- const _hoisted_1$E = {
6713
+ const _hoisted_1$F = {
6692
6714
  key: 0,
6693
6715
  class: "layer-hover-bar"
6694
6716
  };
6695
6717
  const _hoisted_2$r = ["x", "y", "width", "height"];
6696
6718
  function render$e(_ctx, _cache, $props, $setup, $data, $options) {
6697
- return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$E, [
6719
+ return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$F, [
6698
6720
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
6699
6721
  x: _ctx.bar.x,
6700
6722
  y: _ctx.bar.y,
@@ -6706,7 +6728,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
6706
6728
  script.render = render$e;
6707
6729
  script.__file = "src/components/HoverBar/index.vue";
6708
6730
  const BRAND_COLOR = "var(--bgl-primary)";
6709
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
6731
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
6710
6732
  __name: "Lineart",
6711
6733
  props: {
6712
6734
  data: {},
@@ -6846,7 +6868,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6846
6868
  };
6847
6869
  }
6848
6870
  });
6849
- const _hoisted_1$D = {
6871
+ const _hoisted_1$E = {
6850
6872
  key: 0,
6851
6873
  class: "data"
6852
6874
  };
@@ -6867,7 +6889,7 @@ const _hoisted_9$3 = {
6867
6889
  key: 0,
6868
6890
  class: "m-0"
6869
6891
  };
6870
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
6892
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6871
6893
  __name: "DataPreview",
6872
6894
  props: /* @__PURE__ */ mergeModels({
6873
6895
  showFields: {},
@@ -6903,7 +6925,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6903
6925
  const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
6904
6926
  return (_ctx, _cache) => {
6905
6927
  var _a2;
6906
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
6928
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
6907
6929
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
6908
6930
  key: 0,
6909
6931
  label: _ctx.title
@@ -6916,7 +6938,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6916
6938
  createElementVNode("div", _hoisted_3$k, [
6917
6939
  createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6918
6940
  ]),
6919
- createVNode(unref(_sfc_main$K), {
6941
+ createVNode(unref(_sfc_main$L), {
6920
6942
  modelValue: itemData.value,
6921
6943
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
6922
6944
  label: "",
@@ -6945,7 +6967,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6945
6967
  };
6946
6968
  }
6947
6969
  });
6948
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-6c27f163"]]);
6970
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-6c27f163"]]);
6949
6971
  const sides = ["top", "right", "bottom", "left"];
6950
6972
  const alignments = ["start", "end"];
6951
6973
  const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -9487,7 +9509,7 @@ const Gt$1 = {
9487
9509
  install: Ct$1,
9488
9510
  options: h
9489
9511
  };
9490
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
9512
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
9491
9513
  __name: "Dropdown",
9492
9514
  props: {
9493
9515
  value: {},
@@ -9544,7 +9566,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9544
9566
  };
9545
9567
  }
9546
9568
  });
9547
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
9569
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9548
9570
  __name: "Flag",
9549
9571
  props: {
9550
9572
  country: {},
@@ -9574,8 +9596,8 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
9574
9596
  };
9575
9597
  }
9576
9598
  });
9577
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-f99f1900"]]);
9578
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
9599
+ const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-f99f1900"]]);
9600
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
9579
9601
  __name: "BglField",
9580
9602
  props: {
9581
9603
  field: {},
@@ -9595,9 +9617,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
9595
9617
  if (props2.field.$el === "select") return SelectInput;
9596
9618
  if (props2.field.$el === "toggle") return ToggleInput;
9597
9619
  if (props2.field.$el === "check") return CheckInput;
9598
- if (props2.field.$el === "richtext") return _sfc_main$v;
9620
+ if (props2.field.$el === "richtext") return _sfc_main$w;
9599
9621
  if (props2.field.$el === "file") return $el;
9600
- if (props2.field.$el === "date") return _sfc_main$E;
9622
+ if (props2.field.$el === "date") return _sfc_main$F;
9601
9623
  return props2.field.$el ?? "div";
9602
9624
  });
9603
9625
  const formData = computed({
@@ -9682,7 +9704,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
9682
9704
  };
9683
9705
  }
9684
9706
  });
9685
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
9707
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
9686
9708
  __name: "BglForm",
9687
9709
  props: {
9688
9710
  label: {},
@@ -9780,7 +9802,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
9780
9802
  label: _ctx.label
9781
9803
  }, null, 8, ["label"])) : createCommentVNode("", true),
9782
9804
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field, i2) => {
9783
- return openBlock(), createBlock(unref(_sfc_main$K), {
9805
+ return openBlock(), createBlock(unref(_sfc_main$L), {
9784
9806
  key: field.id || `${i2}p`,
9785
9807
  modelValue: unref(data2),
9786
9808
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -9804,7 +9826,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
9804
9826
  label: _ctx.label
9805
9827
  }, null, 8, ["label"])) : createCommentVNode("", true),
9806
9828
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field, i2) => {
9807
- return openBlock(), createBlock(unref(_sfc_main$K), {
9829
+ return openBlock(), createBlock(unref(_sfc_main$L), {
9808
9830
  key: field.id || `${i2}p`,
9809
9831
  modelValue: unref(data2),
9810
9832
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -9823,8 +9845,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
9823
9845
  };
9824
9846
  }
9825
9847
  });
9826
- const _hoisted_1$C = { key: 0 };
9827
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
9848
+ const _hoisted_1$D = { key: 0 };
9849
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
9828
9850
  __name: "BglMultiStepForm",
9829
9851
  props: /* @__PURE__ */ mergeModels({
9830
9852
  bagelFormProps: { default: () => ({}) },
@@ -9891,8 +9913,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
9891
9913
  mode: "out-in"
9892
9914
  }, {
9893
9915
  default: withCtx(() => [
9894
- !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
9895
- createVNode(unref(_sfc_main$J), mergeProps({
9916
+ !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
9917
+ createVNode(unref(_sfc_main$K), mergeProps({
9896
9918
  ref_key: "formRef",
9897
9919
  ref: formRef,
9898
9920
  modelValue: formData.value,
@@ -9931,8 +9953,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
9931
9953
  };
9932
9954
  }
9933
9955
  });
9934
- const _hoisted_1$B = { class: "primary-checkbox" };
9935
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
9956
+ const _hoisted_1$C = { class: "primary-checkbox" };
9957
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
9936
9958
  __name: "Checkbox",
9937
9959
  props: {
9938
9960
  "modelValue": { type: Boolean, ...{ default: false } },
@@ -9942,7 +9964,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9942
9964
  setup(__props) {
9943
9965
  const val = useModel(__props, "modelValue");
9944
9966
  return (_ctx, _cache) => {
9945
- return openBlock(), createElementBlock("label", _hoisted_1$B, [
9967
+ return openBlock(), createElementBlock("label", _hoisted_1$C, [
9946
9968
  renderSlot(_ctx.$slots, "label", {}, void 0, true),
9947
9969
  withDirectives(createElementVNode("input", {
9948
9970
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
@@ -9954,11 +9976,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9954
9976
  };
9955
9977
  }
9956
9978
  });
9957
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-73f1d9ad"]]);
9958
- const _hoisted_1$A = ["title"];
9979
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-73f1d9ad"]]);
9980
+ const _hoisted_1$B = ["title"];
9959
9981
  const _hoisted_2$p = ["id", "value", "required"];
9960
9982
  const _hoisted_3$j = ["for"];
9961
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
9983
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9962
9984
  __name: "CheckInput",
9963
9985
  props: /* @__PURE__ */ mergeModels({
9964
9986
  label: {},
@@ -10000,14 +10022,14 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
10000
10022
  createTextVNode(toDisplayString(_ctx.label), 1)
10001
10023
  ], true)
10002
10024
  ], 8, _hoisted_3$j)
10003
- ], 10, _hoisted_1$A);
10025
+ ], 10, _hoisted_1$B);
10004
10026
  };
10005
10027
  }
10006
10028
  });
10007
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-03ed2982"]]);
10008
- const _hoisted_1$z = ["title"];
10029
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-03ed2982"]]);
10030
+ const _hoisted_1$A = ["title"];
10009
10031
  const _hoisted_2$o = ["id", "placeholder", "required"];
10010
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
10032
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
10011
10033
  __name: "ColorPicker",
10012
10034
  props: {
10013
10035
  label: {},
@@ -10049,7 +10071,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
10049
10071
  [vModelText, inputVal.value]
10050
10072
  ])
10051
10073
  ])
10052
- ], 10, _hoisted_1$z)) : createCommentVNode("", true);
10074
+ ], 10, _hoisted_1$A)) : createCommentVNode("", true);
10053
10075
  };
10054
10076
  }
10055
10077
  });
@@ -18492,9 +18514,9 @@ const eo = ({
18492
18514
  Object.entries(go).forEach(([e, t]) => {
18493
18515
  e !== "default" && (Hn[e] = t);
18494
18516
  });
18495
- const _hoisted_1$y = ["title"];
18517
+ const _hoisted_1$z = ["title"];
18496
18518
  const _hoisted_2$n = { key: 0 };
18497
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
18519
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
18498
18520
  __name: "DateInput",
18499
18521
  props: {
18500
18522
  required: { type: Boolean },
@@ -18552,11 +18574,11 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
18552
18574
  "minutes-grid-increment": _ctx.minutesGridIncrement,
18553
18575
  "start-time": { hours: 8, minutes: 0 }
18554
18576
  }), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
18555
- ], 10, _hoisted_1$y);
18577
+ ], 10, _hoisted_1$z);
18556
18578
  };
18557
18579
  }
18558
18580
  });
18559
- const _hoisted_1$x = { class: "datetime-wrap" };
18581
+ const _hoisted_1$y = { class: "datetime-wrap" };
18560
18582
  const _hoisted_2$m = { class: "date-wrap" };
18561
18583
  const _hoisted_3$i = {
18562
18584
  key: 0,
@@ -18564,7 +18586,7 @@ const _hoisted_3$i = {
18564
18586
  };
18565
18587
  const _hoisted_4$d = ["id", "name", "value"];
18566
18588
  const _hoisted_5$b = ["for"];
18567
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
18589
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
18568
18590
  __name: "DatePicker",
18569
18591
  props: {
18570
18592
  label: {},
@@ -18592,7 +18614,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18592
18614
  return `${hour}:${minute}`;
18593
18615
  });
18594
18616
  return (_ctx, _cache) => {
18595
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
18617
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
18596
18618
  createElementVNode("div", _hoisted_2$m, [
18597
18619
  createVNode(unref(Hn), mergeProps({
18598
18620
  modelValue: selectedDate.value,
@@ -18633,7 +18655,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18633
18655
  };
18634
18656
  }
18635
18657
  });
18636
- const _hoisted_1$w = { class: "bagel-input" };
18658
+ const _hoisted_1$x = { class: "bagel-input" };
18637
18659
  const _hoisted_2$l = {
18638
18660
  key: 0,
18639
18661
  class: "bgl-multi-preview"
@@ -18650,14 +18672,19 @@ const _hoisted_8$3 = {
18650
18672
  key: 1,
18651
18673
  class: "bgl-single-preview"
18652
18674
  };
18653
- const _hoisted_9$2 = ["src"];
18654
- const _hoisted_10$2 = {
18675
+ const _hoisted_9$2 = {
18676
+ key: 0,
18677
+ class: "h-100"
18678
+ };
18679
+ const _hoisted_10$2 = ["src"];
18680
+ const _hoisted_11$1 = { class: "position-start m-05 gap-025 flex" };
18681
+ const _hoisted_12 = {
18655
18682
  key: 0,
18656
18683
  class: "progress"
18657
18684
  };
18658
- const _hoisted_11$1 = ["src"];
18659
- const _hoisted_12 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
18660
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
18685
+ const _hoisted_13 = ["src"];
18686
+ const _hoisted_14 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
18687
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18661
18688
  __name: "FileUpload",
18662
18689
  props: {
18663
18690
  label: {},
@@ -18812,7 +18839,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18812
18839
  }
18813
18840
  return (_ctx, _cache) => {
18814
18841
  const _directive_lightbox = resolveDirective("lightbox");
18815
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
18842
+ const _directive_tooltip = resolveDirective("tooltip");
18843
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
18816
18844
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
18817
18845
  createElementVNode("div", {
18818
18846
  class: normalizeClass(["fileUploadWrap", {
@@ -18896,14 +18924,33 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18896
18924
  key: file.id,
18897
18925
  class: normalizeClass(["single-image-item-preview", { "bgl_fill-image": _ctx.fill }])
18898
18926
  }, [
18899
- isImage(file.extension || file.url) ? withDirectives((openBlock(), createElementBlock("img", {
18900
- key: 0,
18901
- class: "single-preview",
18902
- src: file.url,
18903
- alt: ""
18904
- }, null, 8, _hoisted_9$2)), [
18905
- [_directive_lightbox]
18906
- ]) : (openBlock(), createBlock(unref(_sfc_main$c), {
18927
+ isImage(file.extension || file.url) ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
18928
+ withDirectives(createElementVNode("img", {
18929
+ class: "single-preview",
18930
+ src: file.url,
18931
+ alt: ""
18932
+ }, null, 8, _hoisted_10$2), [
18933
+ [_directive_lightbox]
18934
+ ]),
18935
+ createElementVNode("div", _hoisted_11$1, [
18936
+ withDirectives(createVNode(unref(Btn), {
18937
+ color: "gray",
18938
+ thin: "",
18939
+ icon: "delete",
18940
+ onClick: withModifiers(($event) => removeFile(file), ["stop"])
18941
+ }, null, 8, ["onClick"]), [
18942
+ [_directive_tooltip, "Delete"]
18943
+ ]),
18944
+ withDirectives(createVNode(unref(Btn), {
18945
+ color: "gray",
18946
+ thin: "",
18947
+ icon: "autorenew",
18948
+ onClick: browse
18949
+ }, null, 512), [
18950
+ [_directive_tooltip, "Replace"]
18951
+ ])
18952
+ ])
18953
+ ])) : (openBlock(), createBlock(unref(_sfc_main$c), {
18907
18954
  key: 1,
18908
18955
  size: 4,
18909
18956
  weight: "2",
@@ -18921,7 +18968,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18921
18968
  class: normalizeClass(["pie", { complete: fileQ.progress === 100 }]),
18922
18969
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
18923
18970
  }, [
18924
- fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_10$2, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
18971
+ fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
18925
18972
  createVNode(unref(_sfc_main$c), {
18926
18973
  class: "success",
18927
18974
  icon: "check"
@@ -18932,7 +18979,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18932
18979
  class: "single-preview",
18933
18980
  src: fileToUrl(fileQ.file),
18934
18981
  alt: ""
18935
- }, null, 8, _hoisted_11$1)) : createCommentVNode("", true)
18982
+ }, null, 8, _hoisted_13)) : createCommentVNode("", true)
18936
18983
  ], 2);
18937
18984
  }), 128))
18938
18985
  ])) : createCommentVNode("", true)
@@ -18943,7 +18990,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18943
18990
  fileQueue: fileQueue.value,
18944
18991
  browse
18945
18992
  }, () => [
18946
- createElementVNode("p", _hoisted_12, [
18993
+ createElementVNode("p", _hoisted_14, [
18947
18994
  createVNode(unref(_sfc_main$c), { icon: "upload_2" }),
18948
18995
  _cache[0] || (_cache[0] = createTextVNode(" Drop files here or click to upload "))
18949
18996
  ])
@@ -18953,11 +19000,11 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18953
19000
  };
18954
19001
  }
18955
19002
  });
18956
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-1db5afa3"]]);
18957
- const _hoisted_1$v = ["title"];
19003
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-bfb0bd63"]]);
19004
+ const _hoisted_1$w = ["title"];
18958
19005
  const _hoisted_2$k = { key: 0 };
18959
19006
  const _hoisted_3$g = ["value", "placeholder"];
18960
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
19007
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18961
19008
  __name: "JSONInput",
18962
19009
  props: {
18963
19010
  description: { default: "" },
@@ -18989,13 +19036,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18989
19036
  placeholder: _ctx.placeholder,
18990
19037
  onInput: handleInput
18991
19038
  }, null, 42, _hoisted_3$g)
18992
- ], 10, _hoisted_1$v);
19039
+ ], 10, _hoisted_1$w);
18993
19040
  };
18994
19041
  }
18995
19042
  });
18996
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-1cbaeab2"]]);
18997
- const _hoisted_1$u = ["value", "autofocus", "onKeydown", "onPaste"];
18998
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
19043
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-1cbaeab2"]]);
19044
+ const _hoisted_1$v = ["value", "autofocus", "onKeydown", "onPaste"];
19045
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18999
19046
  __name: "OTP",
19000
19047
  props: {
19001
19048
  digitCount: {},
@@ -19093,15 +19140,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19093
19140
  oninput: "this.value = this.value.slice(0, 1);",
19094
19141
  onKeydown: ($event) => handleKeyDown2($event, ind),
19095
19142
  onPaste: ($event) => handlePaste2($event, ind)
19096
- }, null, 40, _hoisted_1$u);
19143
+ }, null, 40, _hoisted_1$v);
19097
19144
  }), 128))
19098
19145
  ], 512);
19099
19146
  };
19100
19147
  }
19101
19148
  });
19102
- const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-5c22c199"]]);
19103
- const _hoisted_1$t = { class: "relative" };
19104
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
19149
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-5c22c199"]]);
19150
+ const _hoisted_1$u = { class: "relative" };
19151
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19105
19152
  __name: "PasswordInput",
19106
19153
  props: /* @__PURE__ */ mergeModels({
19107
19154
  id: {},
@@ -19141,7 +19188,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19141
19188
  );
19142
19189
  const inputType = computed(() => showPwd.value ? "text" : "password");
19143
19190
  return (_ctx, _cache) => {
19144
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
19191
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
19145
19192
  createVNode(unref(TextInput), mergeProps({
19146
19193
  modelValue: password.value,
19147
19194
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
@@ -19161,7 +19208,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19161
19208
  };
19162
19209
  }
19163
19210
  });
19164
- const _hoisted_1$s = ["for"];
19211
+ const _hoisted_1$t = ["for"];
19165
19212
  const _hoisted_2$j = ["id", "name", "value"];
19166
19213
  const _hoisted_3$f = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
19167
19214
  const _hoisted_4$b = ["src", "alt"];
@@ -19174,7 +19221,7 @@ const _hoisted_7$4 = {
19174
19221
  key: 1,
19175
19222
  class: "txt-gray txt-12 m-0"
19176
19223
  };
19177
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
19224
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19178
19225
  __name: "RadioGroup",
19179
19226
  props: /* @__PURE__ */ mergeModels({
19180
19227
  groupName: {},
@@ -19227,19 +19274,19 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19227
19274
  icon: "delete",
19228
19275
  onClick: ($event) => _ctx.$emit("delete", opt)
19229
19276
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
19230
- ], 8, _hoisted_1$s);
19277
+ ], 8, _hoisted_1$t);
19231
19278
  }), 128))
19232
19279
  ]);
19233
19280
  };
19234
19281
  }
19235
19282
  });
19236
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-3e9e030f"]]);
19237
- const _hoisted_1$r = { class: "bagel-input" };
19283
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-3e9e030f"]]);
19284
+ const _hoisted_1$s = { class: "bagel-input" };
19238
19285
  const _hoisted_2$i = { class: "pb-025" };
19239
19286
  const _hoisted_3$e = { class: "flex gap-05 flex-wrap" };
19240
19287
  const _hoisted_4$a = ["id", "name", "value", "checked"];
19241
19288
  const _hoisted_5$8 = ["for"];
19242
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
19289
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19243
19290
  __name: "RadioPillsInput",
19244
19291
  props: {
19245
19292
  options: {},
@@ -19280,7 +19327,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19280
19327
  selectedValue.value = props2.modelValue;
19281
19328
  });
19282
19329
  return (_ctx, _cache) => {
19283
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
19330
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
19284
19331
  createElementVNode("label", _hoisted_2$i, toDisplayString(_ctx.label), 1),
19285
19332
  createElementVNode("div", _hoisted_3$e, [
19286
19333
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (option2, index2) => {
@@ -19306,12 +19353,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19306
19353
  };
19307
19354
  }
19308
19355
  });
19309
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-cf892d71"]]);
19310
- const _hoisted_1$q = { class: "flex gap-1 align-center range-slide" };
19356
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-cf892d71"]]);
19357
+ const _hoisted_1$r = { class: "flex gap-1 align-center range-slide" };
19311
19358
  const _hoisted_2$h = { key: 0 };
19312
19359
  const _hoisted_3$d = ["max", "min", "step"];
19313
19360
  const _hoisted_4$9 = { key: 1 };
19314
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
19361
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19315
19362
  __name: "RangeInput",
19316
19363
  props: /* @__PURE__ */ mergeModels({
19317
19364
  min: {},
@@ -19331,7 +19378,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19331
19378
  return `linear-gradient(to right, var(--bgl-primary) ${percentage}%, var(--input-bg) ${percentage}%)`;
19332
19379
  });
19333
19380
  return (_ctx, _cache) => {
19334
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
19381
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
19335
19382
  _ctx.min !== void 0 ? (openBlock(), createElementBlock("p", _hoisted_2$h, toDisplayString(_ctx.min), 1)) : createCommentVNode("", true),
19336
19383
  withDirectives(createElementVNode("input", {
19337
19384
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
@@ -19348,7 +19395,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19348
19395
  };
19349
19396
  }
19350
19397
  });
19351
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-d653c76a"]]);
19398
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-d653c76a"]]);
19352
19399
  function OrderedMap(content) {
19353
19400
  this.content = content;
19354
19401
  }
@@ -43226,12 +43273,12 @@ defineComponent({
43226
43273
  }, (_b = (_a2 = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a2));
43227
43274
  }
43228
43275
  });
43229
- const _hoisted_1$p = { class: "RichText" };
43276
+ const _hoisted_1$q = { class: "RichText" };
43230
43277
  const _hoisted_2$g = {
43231
43278
  key: 0,
43232
43279
  class: "RichText-tools"
43233
43280
  };
43234
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
43281
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
43235
43282
  __name: "RichText",
43236
43283
  props: {
43237
43284
  modelValue: {}
@@ -43456,7 +43503,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
43456
43503
  });
43457
43504
  return (_ctx, _cache) => {
43458
43505
  const _directive_tooltip = resolveDirective("tooltip");
43459
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
43506
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
43460
43507
  unref(editor) ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
43461
43508
  (openBlock(), createElementBlock(Fragment$1, null, renderList(config, (item) => {
43462
43509
  var _a2;
@@ -43650,7 +43697,7 @@ function createTable() {
43650
43697
  }
43651
43698
  }
43652
43699
  }
43653
- const _hoisted_1$o = { class: "flex gap-05" };
43700
+ const _hoisted_1$p = { class: "flex gap-05" };
43654
43701
  const _hoisted_2$f = ["disabled"];
43655
43702
  const _hoisted_3$c = { key: 1 };
43656
43703
  const _hoisted_4$8 = {
@@ -43660,7 +43707,7 @@ const _hoisted_4$8 = {
43660
43707
  const _hoisted_5$7 = ["value"];
43661
43708
  const _hoisted_6$6 = ["aria-selected", "onClick", "onKeydown"];
43662
43709
  const _hoisted_7$3 = { class: "block" };
43663
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
43710
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
43664
43711
  __name: "SelectInput",
43665
43712
  props: {
43666
43713
  options: {},
@@ -43808,7 +43855,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43808
43855
  }
43809
43856
  });
43810
43857
  return (_ctx, _cache) => {
43811
- return openBlock(), createBlock(unref(_sfc_main$M), {
43858
+ return openBlock(), createBlock(unref(_sfc_main$N), {
43812
43859
  ref_key: "dropdown",
43813
43860
  ref: dropdown,
43814
43861
  placement: "bottom-start",
@@ -43818,7 +43865,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43818
43865
  trigger: withCtx(() => [
43819
43866
  createElementVNode("label", null, [
43820
43867
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
43821
- createElementVNode("div", _hoisted_1$o, [
43868
+ createElementVNode("div", _hoisted_1$p, [
43822
43869
  _ctx.searchable && unref(open) ? (openBlock(), createBlock(unref(TextInput), {
43823
43870
  key: 0,
43824
43871
  ref_key: "searchInput",
@@ -43872,7 +43919,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43872
43919
  ])
43873
43920
  ]),
43874
43921
  default: withCtx(() => [
43875
- createVNode(unref(_sfc_main$Q), {
43922
+ createVNode(unref(_sfc_main$R), {
43876
43923
  class: "p-05",
43877
43924
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
43878
43925
  }, {
@@ -43917,12 +43964,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43917
43964
  };
43918
43965
  }
43919
43966
  });
43920
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-94b45d29"]]);
43921
- const _hoisted_1$n = {
43967
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-94b45d29"]]);
43968
+ const _hoisted_1$o = {
43922
43969
  class: "toolbar flex gap-025 pb-05 flex-wrap",
43923
43970
  role: "toolbar"
43924
43971
  };
43925
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
43972
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43926
43973
  __name: "Toolbar",
43927
43974
  props: {
43928
43975
  config: {}
@@ -43952,7 +43999,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
43952
43999
  }
43953
44000
  return (_ctx, _cache) => {
43954
44001
  const _directive_tooltip = resolveDirective("tooltip");
43955
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
44002
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
43956
44003
  createVNode(SelectInput, {
43957
44004
  class: "m-0 w150",
43958
44005
  options: ["Text", "Heading 1", "Heading 2", "Heading 3", "Heading 4", "Heading 5", "Heading 6", "Blockquote", "Code"],
@@ -43981,14 +44028,14 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
43981
44028
  };
43982
44029
  }
43983
44030
  });
43984
- const _hoisted_1$m = { class: "rich-text-editor rounded pt-05 px-1 pb-1" };
44031
+ const _hoisted_1$n = { class: "rich-text-editor rounded pt-05 px-1 pb-1" };
43985
44032
  const _hoisted_2$e = { class: "editor-container flex flex-stretch gap-1 m_column" };
43986
44033
  const _hoisted_3$b = { class: "content-area radius-05 p-1 shadow-light w-100 grid" };
43987
44034
  const _hoisted_4$7 = {
43988
44035
  key: 0,
43989
44036
  class: "preview-area w-100 radius-05 p-1"
43990
44037
  };
43991
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
44038
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
43992
44039
  __name: "index",
43993
44040
  props: {
43994
44041
  modelValue: {},
@@ -44115,8 +44162,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
44115
44162
  }
44116
44163
  }
44117
44164
  return (_ctx, _cache) => {
44118
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
44119
- createVNode(_sfc_main$t, {
44165
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
44166
+ createVNode(_sfc_main$u, {
44120
44167
  config: config.value,
44121
44168
  onAction: handleToolbarAction
44122
44169
  }, null, 8, ["config"]),
@@ -44147,7 +44194,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
44147
44194
  };
44148
44195
  }
44149
44196
  });
44150
- const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-8f1898f5"]]);
44197
+ const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-8f1898f5"]]);
44151
44198
  /*!
44152
44199
  * Signature Pad v5.0.3 | https://github.com/szimek/signature_pad
44153
44200
  * (c) 2024 Szymon Nowak | Released under the MIT license
@@ -44741,7 +44788,7 @@ class SignaturePad extends SignatureEventTarget {
44741
44788
  return svg.outerHTML;
44742
44789
  }
44743
44790
  }
44744
- const _hoisted_1$l = ["disabled"];
44791
+ const _hoisted_1$m = ["disabled"];
44745
44792
  const _hoisted_2$d = {
44746
44793
  key: 1,
44747
44794
  placeholder: "required",
@@ -44749,7 +44796,7 @@ const _hoisted_2$d = {
44749
44796
  required: "",
44750
44797
  class: "pixel"
44751
44798
  };
44752
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
44799
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
44753
44800
  __name: "SignaturePad",
44754
44801
  props: /* @__PURE__ */ mergeModels({
44755
44802
  sigOption: {},
@@ -44902,7 +44949,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
44902
44949
  ref: vCanvas,
44903
44950
  class: "canvas",
44904
44951
  disabled: _ctx.disabled
44905
- }, null, 8, _hoisted_1$l),
44952
+ }, null, 8, _hoisted_1$m),
44906
44953
  _ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$d)) : createCommentVNode("", true)
44907
44954
  ], 34);
44908
44955
  };
@@ -47387,13 +47434,13 @@ const VueDraggableNext = defineComponent({
47387
47434
  }
47388
47435
  }
47389
47436
  });
47390
- const _hoisted_1$k = ["title"];
47437
+ const _hoisted_1$l = ["title"];
47391
47438
  const _hoisted_2$c = { class: "bagel-input" };
47392
47439
  const _hoisted_3$a = { class: "table-side-scroll" };
47393
47440
  const _hoisted_4$6 = { class: "table-header" };
47394
47441
  const _hoisted_5$6 = { class: "table-reorder" };
47395
47442
  const _hoisted_6$5 = { class: "table-action" };
47396
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
47443
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
47397
47444
  __name: "TableField",
47398
47445
  props: {
47399
47446
  description: { default: "" },
@@ -47533,11 +47580,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
47533
47580
  ])),
47534
47581
  _: 1
47535
47582
  })
47536
- ], 8, _hoisted_1$k);
47583
+ ], 8, _hoisted_1$l);
47537
47584
  };
47538
47585
  }
47539
47586
  });
47540
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-a65c658c"]]);
47587
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-a65c658c"]]);
47541
47588
  function bind(fn3, thisArg) {
47542
47589
  return function wrap2() {
47543
47590
  return fn3.apply(thisArg, arguments);
@@ -52004,13 +52051,13 @@ function parsePhoneNumber$1() {
52004
52051
  function parsePhoneNumber() {
52005
52052
  return withMetadataArgument(parsePhoneNumber$1, arguments);
52006
52053
  }
52007
- const _hoisted_1$j = ["aria-expanded"];
52054
+ const _hoisted_1$k = ["aria-expanded"];
52008
52055
  const _hoisted_2$b = { class: "p-075 tel-countryp-dropdown" };
52009
52056
  const _hoisted_3$9 = ["aria-selected", "onClick", "onMousemove"];
52010
52057
  const _hoisted_4$5 = { class: "tel-country" };
52011
52058
  const _hoisted_5$5 = { key: 1 };
52012
52059
  const _hoisted_6$4 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
52013
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
52060
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
52014
52061
  __name: "TelInput",
52015
52062
  props: /* @__PURE__ */ mergeModels({
52016
52063
  label: {},
@@ -52271,7 +52318,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
52271
52318
  withKeys(reset, ["tab"])
52272
52319
  ]
52273
52320
  }, [
52274
- !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$M), {
52321
+ !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$N), {
52275
52322
  key: 0,
52276
52323
  ref_key: "phoneDropdown",
52277
52324
  ref: phoneDropdown,
@@ -52358,19 +52405,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
52358
52405
  }, null, 44, _hoisted_6$4), [
52359
52406
  [vModelText, phone.value]
52360
52407
  ])
52361
- ], 40, _hoisted_1$j)
52408
+ ], 40, _hoisted_1$k)
52362
52409
  ])
52363
52410
  ], 2);
52364
52411
  };
52365
52412
  }
52366
52413
  });
52367
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-627af458"]]);
52368
- const _hoisted_1$i = ["title"];
52414
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-627af458"]]);
52415
+ const _hoisted_1$j = ["title"];
52369
52416
  const _hoisted_2$a = ["for"];
52370
52417
  const _hoisted_3$8 = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
52371
52418
  const _hoisted_4$4 = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
52372
52419
  const _hoisted_5$4 = { key: 2 };
52373
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
52420
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
52374
52421
  __name: "TextInput",
52375
52422
  props: {
52376
52423
  id: {},
@@ -52501,15 +52548,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
52501
52548
  key: 1,
52502
52549
  icon: _ctx.icon
52503
52550
  }, null, 8, ["icon"])) : createCommentVNode("", true)
52504
- ], 10, _hoisted_1$i);
52551
+ ], 10, _hoisted_1$j);
52505
52552
  };
52506
52553
  }
52507
52554
  });
52508
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-e5ae4283"]]);
52509
- const _hoisted_1$h = ["title"];
52555
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-e5ae4283"]]);
52556
+ const _hoisted_1$i = ["title"];
52510
52557
  const _hoisted_2$9 = ["id", "required"];
52511
52558
  const _hoisted_3$7 = ["for"];
52512
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
52559
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
52513
52560
  __name: "ToggleInput",
52514
52561
  props: /* @__PURE__ */ mergeModels({
52515
52562
  label: {},
@@ -52553,20 +52600,20 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
52553
52600
  createTextVNode(toDisplayString(_ctx.label), 1)
52554
52601
  ], true)
52555
52602
  ], 8, _hoisted_3$7)
52556
- ], 10, _hoisted_1$h);
52603
+ ], 10, _hoisted_1$i);
52557
52604
  };
52558
52605
  }
52559
52606
  });
52560
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-486451e5"]]);
52561
- const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1" };
52562
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
52607
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-486451e5"]]);
52608
+ const _hoisted_1$h = { class: "m-0 pb-025 txt14 line-height-1" };
52609
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
52563
52610
  __name: "BottomMenu",
52564
52611
  props: {
52565
52612
  navLinks: {}
52566
52613
  },
52567
52614
  setup(__props) {
52568
52615
  return (_ctx, _cache) => {
52569
- return openBlock(), createBlock(unref(_sfc_main$Q), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
52616
+ return openBlock(), createBlock(unref(_sfc_main$R), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
52570
52617
  default: withCtx(() => [
52571
52618
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
52572
52619
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.navLinks, (nav2, i2) => {
@@ -52582,7 +52629,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
52582
52629
  size: 1.4,
52583
52630
  class: "m-0 line-height-14"
52584
52631
  }, null, 8, ["icon"]),
52585
- createElementVNode("p", _hoisted_1$g, toDisplayString(nav2.label), 1)
52632
+ createElementVNode("p", _hoisted_1$h, toDisplayString(nav2.label), 1)
52586
52633
  ]),
52587
52634
  _: 2
52588
52635
  }, 1032, ["to", "onClick"]);
@@ -52593,8 +52640,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
52593
52640
  };
52594
52641
  }
52595
52642
  });
52596
- const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-557bcad0"]]);
52597
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
52643
+ const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-557bcad0"]]);
52644
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
52598
52645
  __name: "Layout",
52599
52646
  props: {
52600
52647
  gap: { default: 1 },
@@ -52635,9 +52682,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
52635
52682
  };
52636
52683
  }
52637
52684
  });
52638
- const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-1814129a"]]);
52639
- const _hoisted_1$f = { key: 0 };
52640
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
52685
+ const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-1814129a"]]);
52686
+ const _hoisted_1$g = { key: 0 };
52687
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
52641
52688
  __name: "SidebarMenu",
52642
52689
  props: {
52643
52690
  navLinks: {},
@@ -52666,7 +52713,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
52666
52713
  icon: "keyboard_arrow_right",
52667
52714
  onClick: toggleMenu
52668
52715
  }),
52669
- createVNode(unref(_sfc_main$Q), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
52716
+ createVNode(unref(_sfc_main$R), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
52670
52717
  default: withCtx(() => [
52671
52718
  !unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
52672
52719
  unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
@@ -52684,7 +52731,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
52684
52731
  }, null, 8, ["icon"]),
52685
52732
  createVNode(Transition, { name: "showP" }, {
52686
52733
  default: withCtx(() => [
52687
- _ctx.open ? (openBlock(), createElementBlock("p", _hoisted_1$f, toDisplayString(nav2.label), 1)) : createCommentVNode("", true)
52734
+ _ctx.open ? (openBlock(), createElementBlock("p", _hoisted_1$g, toDisplayString(nav2.label), 1)) : createCommentVNode("", true)
52688
52735
  ]),
52689
52736
  _: 2
52690
52737
  }, 1024)
@@ -52712,7 +52759,37 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
52712
52759
  };
52713
52760
  }
52714
52761
  });
52715
- const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-51cedd11"]]);
52762
+ const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-51cedd11"]]);
52763
+ const _hoisted_1$f = {
52764
+ key: 0,
52765
+ class: "skeleton-wrap"
52766
+ };
52767
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
52768
+ __name: "Skeleton",
52769
+ props: {
52770
+ count: { default: 1 },
52771
+ height: { default: "50px" },
52772
+ width: { default: "auto" },
52773
+ borderRadius: { default: "var(--skeleton-radius)" }
52774
+ },
52775
+ setup(__props) {
52776
+ const slots = useSlots();
52777
+ return (_ctx, _cache) => {
52778
+ return openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.count, (i2) => {
52779
+ return openBlock(), createElementBlock(Fragment$1, { key: i2 }, [
52780
+ unref(slots).default ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
52781
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
52782
+ ])) : (openBlock(), createElementBlock("div", {
52783
+ key: 1,
52784
+ class: "skeleton",
52785
+ style: normalizeStyle({ height: _ctx.height, width: _ctx.width, borderRadius: _ctx.borderRadius })
52786
+ }, null, 4))
52787
+ ], 64);
52788
+ }), 128);
52789
+ };
52790
+ }
52791
+ });
52792
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a06bec19"]]);
52716
52793
  const _hoisted_1$e = { class: "bgl_card tabs-top" };
52717
52794
  const _hoisted_2$8 = { class: "tabs grid auto-flow-columns fit-content" };
52718
52795
  const _hoisted_3$6 = ["onClick"];
@@ -53171,7 +53248,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
53171
53248
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
53172
53249
  onKeydown: withKeys(closeModal, ["esc"])
53173
53250
  }, [
53174
- createVNode(unref(_sfc_main$Q), {
53251
+ createVNode(unref(_sfc_main$R), {
53175
53252
  class: "modal",
53176
53253
  style: normalizeStyle({ ...maxWidth.value }),
53177
53254
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
@@ -53347,7 +53424,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
53347
53424
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
53348
53425
  }, createSlots({
53349
53426
  default: withCtx(() => [
53350
- createVNode(unref(_sfc_main$J), {
53427
+ createVNode(unref(_sfc_main$K), {
53351
53428
  ref_key: "form",
53352
53429
  ref: form,
53353
53430
  modelValue: formData.value,
@@ -53547,8 +53624,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
53547
53624
  },
53548
53625
  setup(__props) {
53549
53626
  useCssVars((_ctx) => ({
53550
- "4779ddec": computedBackgroundColor.value,
53551
- "04aaf136": cumputedTextColor.value
53627
+ "64b28dae": computedBackgroundColor.value,
53628
+ "e70b1a78": cumputedTextColor.value
53552
53629
  }));
53553
53630
  const props2 = __props;
53554
53631
  const slots = useSlots();
@@ -53639,7 +53716,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
53639
53716
  };
53640
53717
  }
53641
53718
  });
53642
- const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-8c7388de"]]);
53719
+ const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-40a0a2e2"]]);
53643
53720
  const _sfc_main$5 = {};
53644
53721
  function _sfc_render$1(_ctx, _cache) {
53645
53722
  const _component_router_view = resolveComponent("router-view");
@@ -53997,7 +54074,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
53997
54074
  schema: {},
53998
54075
  showFields: {},
53999
54076
  useServerSort: { type: Boolean, default: false },
54000
- selectable: { type: Boolean, default: false }
54077
+ selectable: { type: Boolean, default: false },
54078
+ onLastItemVisible: {}
54001
54079
  }, {
54002
54080
  "loading": { default: false },
54003
54081
  "loadingModifiers": {},
@@ -54011,7 +54089,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54011
54089
  emits: /* @__PURE__ */ mergeModels(["update:selectedItems", "orderBy", "select"], ["update:loading", "update:itemHeight", "update:selectedItems"]),
54012
54090
  setup(__props, { emit: __emit }) {
54013
54091
  useCssVars((_ctx) => ({
54014
- "dd90c516": unref(computedItemHiehgt)
54092
+ "ced4aeb8": unref(computedItemHiehgt)
54015
54093
  }));
54016
54094
  const emit2 = __emit;
54017
54095
  const slots = useSlots();
@@ -54096,7 +54174,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54096
54174
  watch(
54097
54175
  () => computedData.value.length,
54098
54176
  (newLength, oldLength) => {
54099
- if (newLength === oldLength) return;
54177
+ if (newLength === oldLength || __props.onLastItemVisible !== void 0) return;
54100
54178
  scrollTo(0);
54101
54179
  }
54102
54180
  );
@@ -54128,6 +54206,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54128
54206
  const value = event.target.checked;
54129
54207
  selectedItems.value = value ? computedData.value.map((d2) => d2.id) : [];
54130
54208
  }
54209
+ const lastItem = ref();
54210
+ let observer;
54211
+ onMounted(() => {
54212
+ if (__props.onLastItemVisible === void 0) return;
54213
+ observer = new IntersectionObserver(([entry]) => {
54214
+ if (entry.isIntersecting && computedData.value.length) __props.onLastItemVisible();
54215
+ });
54216
+ if (lastItem.value) observer.observe(lastItem.value);
54217
+ });
54218
+ onUnmounted(() => {
54219
+ observer == null ? void 0 : observer.disconnect();
54220
+ });
54131
54221
  return (_ctx, _cache) => {
54132
54222
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
54133
54223
  class: { "loading-table": loading.value }
@@ -54198,7 +54288,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54198
54288
  row,
54199
54289
  field
54200
54290
  }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
54201
- createVNode(unref(_sfc_main$K), {
54291
+ createVNode(unref(_sfc_main$L), {
54202
54292
  class: "embedded-field",
54203
54293
  field,
54204
54294
  modelValue: row,
@@ -54208,7 +54298,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54208
54298
  ]);
54209
54299
  }), 128))
54210
54300
  ], 10, _hoisted_7$1);
54211
- }), 128))
54301
+ }), 128)),
54302
+ _ctx.onLastItemVisible !== void 0 ? (openBlock(), createElementBlock("tr", {
54303
+ key: 0,
54304
+ ref_key: "lastItem",
54305
+ ref: lastItem
54306
+ }, null, 512)) : createCommentVNode("", true)
54212
54307
  ])
54213
54308
  ])
54214
54309
  ], 16))
@@ -54216,7 +54311,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54216
54311
  };
54217
54312
  }
54218
54313
  });
54219
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-692391a3"]]);
54314
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-54f3c477"]]);
54220
54315
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
54221
54316
  __name: "Title",
54222
54317
  props: {
@@ -55346,7 +55441,7 @@ function frmRow(...children2) {
55346
55441
  function bglForm(idOrField, ...schema) {
55347
55442
  if (typeof idOrField === "string") {
55348
55443
  return {
55349
- $el: markRaw(_sfc_main$J),
55444
+ $el: markRaw(_sfc_main$K),
55350
55445
  id: idOrField,
55351
55446
  attrs: {
55352
55447
  schema: [idOrField, ...schema]
@@ -55354,7 +55449,7 @@ function bglForm(idOrField, ...schema) {
55354
55449
  };
55355
55450
  }
55356
55451
  return {
55357
- $el: markRaw(_sfc_main$J),
55452
+ $el: markRaw(_sfc_main$K),
55358
55453
  attrs: {
55359
55454
  schema: [idOrField, ...schema]
55360
55455
  }
@@ -55430,15 +55525,17 @@ function formatString(str, format2) {
55430
55525
  }
55431
55526
  return str;
55432
55527
  }
55433
- function debounce(func, wait) {
55434
- let timeoutId;
55528
+ function debounce(callback, wait, immediate) {
55529
+ let timeout;
55435
55530
  return function(...args) {
55436
- if (timeoutId) {
55437
- clearTimeout(timeoutId);
55438
- }
55439
- timeoutId = setTimeout(() => {
55440
- func(...args);
55441
- }, wait);
55531
+ const later = () => {
55532
+ timeout = void 0;
55533
+ if (!immediate) callback.apply(this, args);
55534
+ };
55535
+ const callNow = immediate && timeout === void 0;
55536
+ clearTimeout(timeout);
55537
+ timeout = setTimeout(later, wait);
55538
+ if (callNow) callback.apply(this, args);
55442
55539
  };
55443
55540
  }
55444
55541
  function keyToLabel(key) {
@@ -55479,7 +55576,8 @@ function iffer(field, itemData) {
55479
55576
  if (field["v-if"] === void 0) return true;
55480
55577
  if (typeof field["v-if"] === "boolean") return field["v-if"];
55481
55578
  if (typeof field["v-if"] === "string") return true;
55482
- if (typeof field["v-if"] === "function") return (_a2 = field["v-if"]) == null ? void 0 : _a2.call(field, itemData == null ? void 0 : itemData[field.id], itemData);
55579
+ if (typeof field["v-if"] === "function")
55580
+ return (_a2 = field["v-if"]) == null ? void 0 : _a2.call(field, itemData == null ? void 0 : itemData[field.id], itemData);
55483
55581
  return true;
55484
55582
  }
55485
55583
  function denullify(itemData, fieldID) {
@@ -55489,15 +55587,15 @@ function denullify(itemData, fieldID) {
55489
55587
  const isDate = (dateToTest) => !Number.isNaN(Date.parse(dateToTest));
55490
55588
  function getFallbackSchema(data2, showFields) {
55491
55589
  const keys4 = Array.from(new Set((data2 ?? []).flatMap(Object.keys)));
55492
- const schema = keys4.map(
55493
- (id) => ({
55494
- id,
55495
- label: keyToLabel(id)
55496
- })
55497
- );
55590
+ const schema = keys4.map((id) => ({
55591
+ id,
55592
+ label: keyToLabel(id)
55593
+ }));
55498
55594
  return showFields ? schema.filter((f2) => showFields.includes(f2.id) || !f2.id) : schema;
55499
55595
  }
55500
- const sleep = (ms = 100) => new Promise((resolve) => setTimeout(resolve, ms));
55596
+ function sleep(ms = 100) {
55597
+ return new Promise((resolve) => setTimeout(resolve, ms));
55598
+ }
55501
55599
  function appendScript(src) {
55502
55600
  return new Promise((resolve, reject3) => {
55503
55601
  if (document.querySelector(`script[src="${src}"]`)) {
@@ -55956,29 +56054,29 @@ const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
55956
56054
  const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
55957
56055
  const VIDEO_FORMATS_REGEXP = new RegExp(`(${VIDEO_FORMATS.join("|")})$`, "i");
55958
56056
  export {
55959
- _sfc_main$Y as Accordion,
56057
+ _sfc_main$Z as Accordion,
55960
56058
  AccordionItem,
55961
- _sfc_main$W as AddressSearch,
56059
+ _sfc_main$X as AddressSearch,
55962
56060
  Alert,
55963
56061
  Avatar,
55964
56062
  Badge,
55965
- _sfc_main$J as BagelForm,
56063
+ _sfc_main$K as BagelForm,
55966
56064
  BagelVue,
55967
- _sfc_main$K as BglField,
55968
- _sfc_main$J as BglForm,
55969
- _sfc_main$I as BglMultiStepForm,
56065
+ _sfc_main$L as BglField,
56066
+ _sfc_main$K as BglForm,
56067
+ _sfc_main$J as BglMultiStepForm,
55970
56068
  BglVideo,
55971
56069
  BottomMenu,
55972
56070
  Btn,
55973
- _sfc_main$Q as Card,
56071
+ _sfc_main$R as Card,
55974
56072
  Carousel,
55975
56073
  CheckInput,
55976
56074
  Checkbox,
55977
- _sfc_main$F as ColorPicker,
56075
+ _sfc_main$G as ColorPicker,
55978
56076
  DataPreview,
55979
- _sfc_main$E as DateInput,
55980
- _sfc_main$D as DatePicker,
55981
- _sfc_main$M as Dropdown,
56077
+ _sfc_main$F as DateInput,
56078
+ _sfc_main$E as DatePicker,
56079
+ _sfc_main$N as Dropdown,
55982
56080
  $el as FileUpload,
55983
56081
  Flag,
55984
56082
  IMAGE_FORMATS,
@@ -55986,7 +56084,7 @@ export {
55986
56084
  _sfc_main$c as Icon,
55987
56085
  JSONInput,
55988
56086
  Layout,
55989
- _sfc_main$O as Lineart,
56087
+ _sfc_main$P as Lineart,
55990
56088
  _sfc_main$f as ListItem,
55991
56089
  ListView,
55992
56090
  _sfc_main$d as MapEmbed,
@@ -55998,17 +56096,18 @@ export {
55998
56096
  NavBar,
55999
56097
  OTP,
56000
56098
  _sfc_main$7 as PageTitle,
56001
- _sfc_main$z as PasswordInput,
56099
+ _sfc_main$A as PasswordInput,
56002
56100
  Pill,
56003
56101
  RadioGroup,
56004
56102
  RadioPillsInput,
56005
56103
  RangeInput,
56006
- _sfc_main$v as RichText,
56104
+ _sfc_main$w as RichText,
56007
56105
  index$1 as RichText2,
56008
56106
  RouterWrapper,
56009
56107
  SelectInput,
56010
56108
  SidebarMenu,
56011
- _sfc_main$r as SignaturePad,
56109
+ _sfc_main$s as SignaturePad,
56110
+ Skeleton,
56012
56111
  TabbedLayout,
56013
56112
  TableField,
56014
56113
  TableSchema,