@bagelink/vue 0.0.787 → 0.0.791

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$W = /* @__PURE__ */ defineComponent({
41
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
42
42
  __name: "Accordion",
43
43
  setup(__props) {
44
44
  const state2 = reactive({
@@ -52,11 +52,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
52
52
  };
53
53
  }
54
54
  });
55
- const _hoisted_1$K = { class: "accordion-item" };
56
- const _hoisted_2$v = ["aria-expanded", "aria-controls"];
57
- const _hoisted_3$l = { class: "accordion-label" };
58
- const _hoisted_4$f = ["id", "aria-hidden"];
59
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
55
+ const _hoisted_1$M = { class: "accordion-item" };
56
+ const _hoisted_2$w = ["aria-expanded", "aria-controls"];
57
+ const _hoisted_3$m = { class: "accordion-label" };
58
+ const _hoisted_4$g = ["id", "aria-hidden"];
59
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
60
60
  __name: "AccordionItem",
61
61
  props: {
62
62
  label: {},
@@ -93,7 +93,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
93
93
  else if (accordionState.openItem === id) accordionState.openItem = null;
94
94
  }
95
95
  return (_ctx, _cache) => {
96
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
96
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
97
97
  createElementVNode("button", {
98
98
  "aria-expanded": unref(isOpen) ? "true" : "false",
99
99
  class: "accordion-head",
@@ -101,14 +101,14 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
101
101
  onClick: _cache[0] || (_cache[0] = ($event) => toggle())
102
102
  }, [
103
103
  renderSlot(_ctx.$slots, "head", {}, () => [
104
- createElementVNode("span", _hoisted_3$l, toDisplayString(_ctx.label), 1)
104
+ createElementVNode("span", _hoisted_3$m, toDisplayString(_ctx.label), 1)
105
105
  ], true),
106
106
  createElementVNode("div", {
107
107
  class: normalizeClass(["accordion-icon", { open: unref(isOpen) }])
108
108
  }, [
109
109
  createVNode(unref(_sfc_main$c), { icon: "expand_more" })
110
110
  ], 2)
111
- ], 8, _hoisted_2$v),
111
+ ], 8, _hoisted_2$w),
112
112
  createVNode(Transition, { name: "expand" }, {
113
113
  default: withCtx(() => [
114
114
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -118,7 +118,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
118
118
  "aria-hidden": unref(isOpen) ? "false" : "true"
119
119
  }, [
120
120
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
121
- ], 8, _hoisted_4$f)) : createCommentVNode("", true)
121
+ ], 8, _hoisted_4$g)) : createCommentVNode("", true)
122
122
  ]),
123
123
  _: 3
124
124
  })
@@ -133,9 +133,9 @@ const _export_sfc = (sfc, props2) => {
133
133
  }
134
134
  return target;
135
135
  };
136
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-f87b579d"]]);
137
- const _hoisted_1$J = { class: "relative" };
138
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
136
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-f87b579d"]]);
137
+ const _hoisted_1$L = { class: "relative" };
138
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
139
139
  __name: "AddressSearch",
140
140
  emits: ["addressSelected"],
141
141
  setup(__props, { emit: __emit }) {
@@ -157,8 +157,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
157
157
  (_a2 = suggestion.value) == null ? void 0 : _a2.show();
158
158
  }
159
159
  return (_ctx, _cache) => {
160
- return openBlock(), createElementBlock("div", _hoisted_1$J, [
161
- createVNode(unref(_sfc_main$K), {
160
+ return openBlock(), createElementBlock("div", _hoisted_1$L, [
161
+ createVNode(unref(_sfc_main$M), {
162
162
  ref_key: "suggestion",
163
163
  ref: suggestion,
164
164
  noAutoFocus: true,
@@ -193,15 +193,15 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
193
193
  };
194
194
  }
195
195
  });
196
- const _hoisted_1$I = {
196
+ const _hoisted_1$K = {
197
197
  key: 0,
198
198
  class: "loading"
199
199
  };
200
- const _hoisted_2$u = {
200
+ const _hoisted_2$v = {
201
201
  key: 1,
202
202
  class: "bgl_btn-flex"
203
203
  };
204
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
204
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
205
205
  __name: "Btn",
206
206
  props: {
207
207
  disabled: { type: Boolean, default: false },
@@ -295,7 +295,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
295
295
  onClick: withModifiers(_ctx.onClick, ["stop"])
296
296
  }, {
297
297
  default: withCtx(() => [
298
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$I)) : (openBlock(), createElementBlock("div", _hoisted_2$u, [
298
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$K)) : (openBlock(), createElementBlock("div", _hoisted_2$v, [
299
299
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$c), {
300
300
  key: 0,
301
301
  icon: _ctx.icon
@@ -315,10 +315,10 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
315
315
  };
316
316
  }
317
317
  });
318
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-047c9778"]]);
319
- const _hoisted_1$H = ["dismissable"];
320
- const _hoisted_2$t = { class: "m-0" };
321
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
318
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-047c9778"]]);
319
+ const _hoisted_1$J = ["dismissable"];
320
+ const _hoisted_2$u = { class: "m-0" };
321
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
322
322
  __name: "Alert",
323
323
  props: {
324
324
  message: {},
@@ -346,7 +346,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
346
346
  size: 2,
347
347
  color: color2[_ctx.type]
348
348
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
349
- createElementVNode("p", _hoisted_2$t, toDisplayString(_ctx.message), 1),
349
+ createElementVNode("p", _hoisted_2$u, toDisplayString(_ctx.message), 1),
350
350
  createVNode(Btn, {
351
351
  flat: "",
352
352
  thin: "",
@@ -354,13 +354,13 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
354
354
  icon: "close",
355
355
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
356
356
  })
357
- ], 10, _hoisted_1$H)) : createCommentVNode("", true);
357
+ ], 10, _hoisted_1$J)) : createCommentVNode("", true);
358
358
  };
359
359
  }
360
360
  });
361
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-57141c32"]]);
362
- const _hoisted_1$G = ["src", "alt"];
363
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
361
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-57141c32"]]);
362
+ const _hoisted_1$I = ["src", "alt"];
363
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
364
364
  __name: "Avatar",
365
365
  props: {
366
366
  fallback: {},
@@ -378,7 +378,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
378
378
  key: 0,
379
379
  src: _ctx.src,
380
380
  alt: _ctx.name
381
- }, null, 8, _hoisted_1$G)) : (openBlock(), createElementBlock("p", {
381
+ }, null, 8, _hoisted_1$I)) : (openBlock(), createElementBlock("p", {
382
382
  key: 1,
383
383
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
384
384
  }, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -386,8 +386,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
386
386
  };
387
387
  }
388
388
  });
389
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-46ad8c25"]]);
390
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
389
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-46ad8c25"]]);
390
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
391
391
  __name: "Badge",
392
392
  props: {
393
393
  color: {},
@@ -418,10 +418,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
418
418
  };
419
419
  }
420
420
  });
421
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-40a0b03a"]]);
422
- const _hoisted_1$F = ["src"];
423
- const _hoisted_2$s = ["src", "autoplay", "muted", "loop", "controls"];
424
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
421
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-40a0b03a"]]);
422
+ const _hoisted_1$H = ["src"];
423
+ const _hoisted_2$t = ["src", "autoplay", "muted", "loop", "controls"];
424
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
425
425
  __name: "BglVideo",
426
426
  props: {
427
427
  src: {},
@@ -476,7 +476,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
476
476
  allowfullscreen: "",
477
477
  title: "Video",
478
478
  allow: "autoplay"
479
- }, null, 12, _hoisted_1$F)) : _ctx.src ? (openBlock(), createElementBlock("video", {
479
+ }, null, 12, _hoisted_1$H)) : _ctx.src ? (openBlock(), createElementBlock("video", {
480
480
  key: 1,
481
481
  src: _ctx.src,
482
482
  autoplay: _ctx.autoplay,
@@ -485,17 +485,17 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
485
485
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
486
486
  controls: _ctx.controls,
487
487
  playsinline: ""
488
- }, null, 12, _hoisted_2$s)) : createCommentVNode("", true)
488
+ }, null, 12, _hoisted_2$t)) : createCommentVNode("", true)
489
489
  ], 2);
490
490
  };
491
491
  }
492
492
  });
493
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-8495afe2"]]);
494
- const _hoisted_1$E = {
493
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-8495afe2"]]);
494
+ const _hoisted_1$G = {
495
495
  key: 0,
496
496
  class: "card_label"
497
497
  };
498
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
498
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
499
499
  __name: "Card",
500
500
  props: {
501
501
  label: {},
@@ -523,7 +523,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
523
523
  }])
524
524
  }, {
525
525
  default: withCtx(() => [
526
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$E, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
526
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$G, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
527
527
  renderSlot(_ctx.$slots, "default")
528
528
  ]),
529
529
  _: 3
@@ -531,12 +531,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
531
531
  };
532
532
  }
533
533
  });
534
- const _hoisted_1$D = {
534
+ const _hoisted_1$F = {
535
535
  key: 0,
536
536
  class: "blocker"
537
537
  };
538
- const _hoisted_2$r = { class: "Handlers" };
539
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
538
+ const _hoisted_2$s = { class: "Handlers" };
539
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
540
540
  __name: "Carousel",
541
541
  props: {
542
542
  autoHeight: {
@@ -684,10 +684,10 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
684
684
  onScrollend: scrollEnd,
685
685
  onMousedown: startDragging
686
686
  }, [
687
- unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$D)) : createCommentVNode("", true),
687
+ unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$F)) : createCommentVNode("", true),
688
688
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
689
689
  ], 34),
690
- createElementVNode("div", _hoisted_2$r, [
690
+ createElementVNode("div", _hoisted_2$s, [
691
691
  createElementVNode("span", { onClick: prev }, [
692
692
  renderSlot(_ctx.$slots, "prev", {
693
693
  prev,
@@ -705,7 +705,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
705
705
  };
706
706
  }
707
707
  });
708
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-1f9c6644"]]);
708
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-1f9c6644"]]);
709
709
  function _isPlaceholder(a2) {
710
710
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
711
711
  }
@@ -6536,8 +6536,8 @@ const _hoisted_1$1$1 = {
6536
6536
  style: { display: "flex", position: "relative" }
6537
6537
  };
6538
6538
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
6539
- const _hoisted_3$k = { class: "layer-rectangles" };
6540
- const _hoisted_4$e = ["transform", "onMouseover"];
6539
+ const _hoisted_3$l = { class: "layer-rectangles" };
6540
+ const _hoisted_4$f = ["transform", "onMouseover"];
6541
6541
  const _hoisted_5$d = ["width", "height"];
6542
6542
  const _hoisted_6$a = {
6543
6543
  x: 0 + 10,
@@ -6554,7 +6554,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
6554
6554
  viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
6555
6555
  ref: "el"
6556
6556
  }, [
6557
- createElementVNode("g", _hoisted_3$k, [
6557
+ createElementVNode("g", _hoisted_3$l, [
6558
6558
  (openBlock(true), createElementBlock(
6559
6559
  Fragment$1,
6560
6560
  null,
@@ -6589,7 +6589,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
6589
6589
  )
6590
6590
  ])
6591
6591
  ])
6592
- ], 42, _hoisted_4$e);
6592
+ ], 42, _hoisted_4$f);
6593
6593
  }),
6594
6594
  128
6595
6595
  /* KEYED_FRAGMENT */
@@ -6646,25 +6646,25 @@ var script = defineComponent({
6646
6646
  return { bar, canvas, direction, mouse };
6647
6647
  }
6648
6648
  });
6649
- const _hoisted_1$C = {
6649
+ const _hoisted_1$E = {
6650
6650
  key: 0,
6651
6651
  class: "layer-hover-bar"
6652
6652
  };
6653
- const _hoisted_2$q = ["x", "y", "width", "height"];
6653
+ const _hoisted_2$r = ["x", "y", "width", "height"];
6654
6654
  function render$e(_ctx, _cache, $props, $setup, $data, $options) {
6655
- return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$C, [
6655
+ return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$E, [
6656
6656
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
6657
6657
  x: _ctx.bar.x,
6658
6658
  y: _ctx.bar.y,
6659
6659
  width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
6660
6660
  height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
6661
- }), null, 16, _hoisted_2$q)
6661
+ }), null, 16, _hoisted_2$r)
6662
6662
  ])) : createCommentVNode("v-if", true);
6663
6663
  }
6664
6664
  script.render = render$e;
6665
6665
  script.__file = "src/components/HoverBar/index.vue";
6666
6666
  const BRAND_COLOR = "var(--bgl-primary)";
6667
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
6667
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6668
6668
  __name: "Lineart",
6669
6669
  props: {
6670
6670
  data: {},
@@ -6804,16 +6804,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
6804
6804
  };
6805
6805
  }
6806
6806
  });
6807
- const _hoisted_1$B = {
6807
+ const _hoisted_1$D = {
6808
6808
  key: 0,
6809
6809
  class: "data"
6810
6810
  };
6811
- const _hoisted_2$p = {
6811
+ const _hoisted_2$q = {
6812
6812
  key: 0,
6813
6813
  class: "data-row m_py-05"
6814
6814
  };
6815
- const _hoisted_3$j = { class: "key" };
6816
- const _hoisted_4$d = { class: "m-0" };
6815
+ const _hoisted_3$k = { class: "key" };
6816
+ const _hoisted_4$e = { class: "m-0" };
6817
6817
  const _hoisted_5$c = { key: 1 };
6818
6818
  const _hoisted_6$9 = {
6819
6819
  key: 0,
@@ -6825,7 +6825,7 @@ const _hoisted_9$3 = {
6825
6825
  key: 0,
6826
6826
  class: "m-0"
6827
6827
  };
6828
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
6828
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6829
6829
  __name: "DataPreview",
6830
6830
  props: /* @__PURE__ */ mergeModels({
6831
6831
  showFields: {},
@@ -6861,7 +6861,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6861
6861
  const computedSchema = computed(() => getFallbackSchema([itemData.value], props2.showFields));
6862
6862
  return (_ctx, _cache) => {
6863
6863
  var _a2;
6864
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
6864
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$D, [
6865
6865
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
6866
6866
  key: 0,
6867
6867
  label: _ctx.title
@@ -6870,11 +6870,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6870
6870
  return openBlock(), createElementBlock(Fragment$1, {
6871
6871
  key: field.id
6872
6872
  }, [
6873
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$p, [
6874
- createElementVNode("div", _hoisted_3$j, [
6875
- createElementVNode("p", _hoisted_4$d, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6873
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$q, [
6874
+ createElementVNode("div", _hoisted_3$k, [
6875
+ createElementVNode("p", _hoisted_4$e, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1)
6876
6876
  ]),
6877
- createVNode(unref(_sfc_main$I), {
6877
+ createVNode(unref(_sfc_main$K), {
6878
6878
  modelValue: itemData.value,
6879
6879
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
6880
6880
  label: "",
@@ -6903,7 +6903,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
6903
6903
  };
6904
6904
  }
6905
6905
  });
6906
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-5f91f598"]]);
6906
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-5f91f598"]]);
6907
6907
  const sides = ["top", "right", "bottom", "left"];
6908
6908
  const alignments = ["start", "end"];
6909
6909
  const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
@@ -9445,7 +9445,7 @@ const Gt$1 = {
9445
9445
  install: Ct$1,
9446
9446
  options: h
9447
9447
  };
9448
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
9448
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
9449
9449
  __name: "Dropdown",
9450
9450
  props: {
9451
9451
  value: {},
@@ -9502,7 +9502,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
9502
9502
  };
9503
9503
  }
9504
9504
  });
9505
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
9505
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
9506
9506
  __name: "Flag",
9507
9507
  props: {
9508
9508
  country: {},
@@ -9532,8 +9532,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
9532
9532
  };
9533
9533
  }
9534
9534
  });
9535
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-f99f1900"]]);
9536
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
9535
+ const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-f99f1900"]]);
9536
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
9537
9537
  __name: "BglField",
9538
9538
  props: {
9539
9539
  field: {},
@@ -9549,7 +9549,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
9549
9549
  if (props2.field.$el === "toggle") return ToggleInput;
9550
9550
  if (props2.field.$el === "check") return CheckInput;
9551
9551
  if (props2.field.$el === "richtext") return _sfc_main$v;
9552
- if (props2.field.$el === "date") return _sfc_main$C;
9552
+ if (props2.field.$el === "date") return _sfc_main$E;
9553
9553
  return props2.field.$el ?? "div";
9554
9554
  });
9555
9555
  const formData = computed({
@@ -9633,7 +9633,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
9633
9633
  };
9634
9634
  }
9635
9635
  });
9636
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
9636
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
9637
9637
  __name: "BglForm",
9638
9638
  props: {
9639
9639
  label: {},
@@ -9731,7 +9731,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9731
9731
  label: _ctx.label
9732
9732
  }, null, 8, ["label"])) : createCommentVNode("", true),
9733
9733
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field, i2) => {
9734
- return openBlock(), createBlock(unref(_sfc_main$I), {
9734
+ return openBlock(), createBlock(unref(_sfc_main$K), {
9735
9735
  key: field.id || `${i2}p`,
9736
9736
  modelValue: unref(data2),
9737
9737
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -9755,7 +9755,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9755
9755
  label: _ctx.label
9756
9756
  }, null, 8, ["label"])) : createCommentVNode("", true),
9757
9757
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field, i2) => {
9758
- return openBlock(), createBlock(unref(_sfc_main$I), {
9758
+ return openBlock(), createBlock(unref(_sfc_main$K), {
9759
9759
  key: field.id || `${i2}p`,
9760
9760
  modelValue: unref(data2),
9761
9761
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -9774,8 +9774,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9774
9774
  };
9775
9775
  }
9776
9776
  });
9777
- const _hoisted_1$A = { key: 0 };
9778
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
9777
+ const _hoisted_1$C = { key: 0 };
9778
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
9779
9779
  __name: "BglMultiStepForm",
9780
9780
  props: /* @__PURE__ */ mergeModels({
9781
9781
  bagelFormProps: { default: () => ({}) },
@@ -9842,8 +9842,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9842
9842
  mode: "out-in"
9843
9843
  }, {
9844
9844
  default: withCtx(() => [
9845
- !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
9846
- createVNode(unref(_sfc_main$H), mergeProps({
9845
+ !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
9846
+ createVNode(unref(_sfc_main$J), mergeProps({
9847
9847
  ref_key: "formRef",
9848
9848
  ref: formRef,
9849
9849
  modelValue: formData.value,
@@ -9882,8 +9882,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9882
9882
  };
9883
9883
  }
9884
9884
  });
9885
- const _hoisted_1$z = { class: "primary-checkbox" };
9886
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
9885
+ const _hoisted_1$B = { class: "primary-checkbox" };
9886
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9887
9887
  __name: "Checkbox",
9888
9888
  props: {
9889
9889
  "modelValue": { type: Boolean, ...{ default: false } },
@@ -9893,7 +9893,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9893
9893
  setup(__props) {
9894
9894
  const val = useModel(__props, "modelValue");
9895
9895
  return (_ctx, _cache) => {
9896
- return openBlock(), createElementBlock("label", _hoisted_1$z, [
9896
+ return openBlock(), createElementBlock("label", _hoisted_1$B, [
9897
9897
  renderSlot(_ctx.$slots, "label", {}, void 0, true),
9898
9898
  withDirectives(createElementVNode("input", {
9899
9899
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
@@ -9905,11 +9905,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9905
9905
  };
9906
9906
  }
9907
9907
  });
9908
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-73f1d9ad"]]);
9909
- const _hoisted_1$y = ["title"];
9910
- const _hoisted_2$o = ["id", "value", "required"];
9911
- const _hoisted_3$i = ["for"];
9912
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
9908
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-73f1d9ad"]]);
9909
+ const _hoisted_1$A = ["title"];
9910
+ const _hoisted_2$p = ["id", "value", "required"];
9911
+ const _hoisted_3$j = ["for"];
9912
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9913
9913
  __name: "CheckInput",
9914
9914
  props: /* @__PURE__ */ mergeModels({
9915
9915
  label: {},
@@ -9943,22 +9943,22 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
9943
9943
  required: _ctx.required,
9944
9944
  type: "checkbox",
9945
9945
  class: "me-05"
9946
- }, null, 8, _hoisted_2$o), [
9946
+ }, null, 8, _hoisted_2$p), [
9947
9947
  [vModelCheckbox, checked.value]
9948
9948
  ]),
9949
9949
  createElementVNode("label", { for: inputId.value }, [
9950
9950
  renderSlot(_ctx.$slots, "label", {}, () => [
9951
9951
  createTextVNode(toDisplayString(_ctx.label), 1)
9952
9952
  ], true)
9953
- ], 8, _hoisted_3$i)
9954
- ], 10, _hoisted_1$y);
9953
+ ], 8, _hoisted_3$j)
9954
+ ], 10, _hoisted_1$A);
9955
9955
  };
9956
9956
  }
9957
9957
  });
9958
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-1b4d18c6"]]);
9959
- const _hoisted_1$x = ["title"];
9960
- const _hoisted_2$n = ["id", "placeholder", "required"];
9961
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
9958
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-1b4d18c6"]]);
9959
+ const _hoisted_1$z = ["title"];
9960
+ const _hoisted_2$o = ["id", "placeholder", "required"];
9961
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9962
9962
  __name: "ColorPicker",
9963
9963
  props: {
9964
9964
  label: {},
@@ -9996,11 +9996,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
9996
9996
  placeholder: _ctx.placeholder || _ctx.label,
9997
9997
  class: { "no-edit": !_ctx.editMode },
9998
9998
  required: _ctx.required
9999
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$n), [
9999
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$o), [
10000
10000
  [vModelText, inputVal.value]
10001
10001
  ])
10002
10002
  ])
10003
- ], 10, _hoisted_1$x)) : createCommentVNode("", true);
10003
+ ], 10, _hoisted_1$z)) : createCommentVNode("", true);
10004
10004
  };
10005
10005
  }
10006
10006
  });
@@ -18443,9 +18443,9 @@ const eo = ({
18443
18443
  Object.entries(go).forEach(([e, t]) => {
18444
18444
  e !== "default" && (Hn[e] = t);
18445
18445
  });
18446
- const _hoisted_1$w = ["title"];
18447
- const _hoisted_2$m = { key: 0 };
18448
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
18446
+ const _hoisted_1$y = ["title"];
18447
+ const _hoisted_2$n = { key: 0 };
18448
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
18449
18449
  __name: "DateInput",
18450
18450
  props: {
18451
18451
  required: { type: Boolean },
@@ -18487,7 +18487,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18487
18487
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
18488
18488
  title: _ctx.label
18489
18489
  }, [
18490
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$m, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
18490
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$n, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
18491
18491
  createVNode(unref(Hn), mergeProps({
18492
18492
  ref_key: "datePicker",
18493
18493
  ref: datePicker,
@@ -18503,19 +18503,19 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18503
18503
  "minutes-grid-increment": _ctx.minutesGridIncrement,
18504
18504
  "start-time": { hours: 8, minutes: 0 }
18505
18505
  }), null, 16, ["modelValue", "required", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
18506
- ], 10, _hoisted_1$w);
18506
+ ], 10, _hoisted_1$y);
18507
18507
  };
18508
18508
  }
18509
18509
  });
18510
- const _hoisted_1$v = { class: "datetime-wrap" };
18511
- const _hoisted_2$l = { class: "date-wrap" };
18512
- const _hoisted_3$h = {
18510
+ const _hoisted_1$x = { class: "datetime-wrap" };
18511
+ const _hoisted_2$m = { class: "date-wrap" };
18512
+ const _hoisted_3$i = {
18513
18513
  key: 0,
18514
18514
  class: "time-wrap"
18515
18515
  };
18516
- const _hoisted_4$c = ["id", "name", "value"];
18516
+ const _hoisted_4$d = ["id", "name", "value"];
18517
18517
  const _hoisted_5$b = ["for"];
18518
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
18518
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18519
18519
  __name: "DatePicker",
18520
18520
  props: {
18521
18521
  label: {},
@@ -18543,8 +18543,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18543
18543
  return `${hour}:${minute}`;
18544
18544
  });
18545
18545
  return (_ctx, _cache) => {
18546
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
18547
- createElementVNode("div", _hoisted_2$l, [
18546
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
18547
+ createElementVNode("div", _hoisted_2$m, [
18548
18548
  createVNode(unref(Hn), mergeProps({
18549
18549
  modelValue: selectedDate.value,
18550
18550
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedDate.value = $event),
@@ -18562,7 +18562,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18562
18562
  _: 1
18563
18563
  }, 16, ["modelValue", "allowed-dates", "disabled-dates"])
18564
18564
  ]),
18565
- _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
18565
+ _ctx.showTimeWrap ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
18566
18566
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(hours), (hr2) => {
18567
18567
  return openBlock(), createElementBlock(Fragment$1, { key: hr2 }, [
18568
18568
  withDirectives(createElementVNode("input", {
@@ -18571,7 +18571,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18571
18571
  type: "radio",
18572
18572
  name: _ctx.label,
18573
18573
  value: hr2
18574
- }, null, 8, _hoisted_4$c), [
18574
+ }, null, 8, _hoisted_4$d), [
18575
18575
  [vModelRadio, selectedHour.value]
18576
18576
  ]),
18577
18577
  createElementVNode("label", {
@@ -18584,13 +18584,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18584
18584
  };
18585
18585
  }
18586
18586
  });
18587
- const _hoisted_1$u = { class: "bagel-input" };
18588
- const _hoisted_2$k = {
18587
+ const _hoisted_1$w = { class: "bagel-input" };
18588
+ const _hoisted_2$l = {
18589
18589
  key: 0,
18590
18590
  class: "bgl-multi-preview"
18591
18591
  };
18592
- const _hoisted_3$g = ["src"];
18593
- const _hoisted_4$b = { class: "m-0" };
18592
+ const _hoisted_3$h = ["src"];
18593
+ const _hoisted_4$c = { class: "m-0" };
18594
18594
  const _hoisted_5$a = ["width", "src"];
18595
18595
  const _hoisted_6$8 = { class: "no-margin multi-preview-txt" };
18596
18596
  const _hoisted_7$5 = {
@@ -18608,7 +18608,7 @@ const _hoisted_10$2 = {
18608
18608
  };
18609
18609
  const _hoisted_11$1 = ["src"];
18610
18610
  const _hoisted_12 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
18611
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
18611
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18612
18612
  __name: "FileUpload",
18613
18613
  props: {
18614
18614
  label: {},
@@ -18757,7 +18757,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18757
18757
  }
18758
18758
  return (_ctx, _cache) => {
18759
18759
  const _directive_lightbox = resolveDirective("lightbox");
18760
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
18760
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
18761
18761
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
18762
18762
  createElementVNode("div", {
18763
18763
  class: normalizeClass(["fileUploadWrap", {
@@ -18775,7 +18775,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18775
18775
  files: storageFiles.value,
18776
18776
  fileQueue: fileQueue.value
18777
18777
  }, () => [
18778
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
18778
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
18779
18779
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(storageFiles.value, (file) => {
18780
18780
  return openBlock(), createElementBlock("div", {
18781
18781
  key: file.id,
@@ -18786,14 +18786,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18786
18786
  class: "multi-preview",
18787
18787
  src: file.url,
18788
18788
  alt: ""
18789
- }, null, 8, _hoisted_3$g)), [
18789
+ }, null, 8, _hoisted_3$h)), [
18790
18790
  [_directive_lightbox]
18791
18791
  ]) : (openBlock(), createBlock(unref(_sfc_main$c), {
18792
18792
  key: 1,
18793
18793
  icon: "draft",
18794
18794
  class: "multi-preview"
18795
18795
  })),
18796
- createElementVNode("p", _hoisted_4$b, toDisplayString(file.name), 1),
18796
+ createElementVNode("p", _hoisted_4$c, toDisplayString(file.name), 1),
18797
18797
  createVNode(unref(Btn), {
18798
18798
  thin: "",
18799
18799
  flat: "",
@@ -18898,11 +18898,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18898
18898
  };
18899
18899
  }
18900
18900
  });
18901
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-be593d04"]]);
18902
- const _hoisted_1$t = ["title"];
18903
- const _hoisted_2$j = { key: 0 };
18904
- const _hoisted_3$f = ["value", "placeholder"];
18905
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
18901
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-be593d04"]]);
18902
+ const _hoisted_1$v = ["title"];
18903
+ const _hoisted_2$k = { key: 0 };
18904
+ const _hoisted_3$g = ["value", "placeholder"];
18905
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18906
18906
  __name: "JSONInput",
18907
18907
  props: {
18908
18908
  description: { default: "" },
@@ -18925,7 +18925,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
18925
18925
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
18926
18926
  title: _ctx.description
18927
18927
  }, [
18928
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$j, [
18928
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, [
18929
18929
  createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18930
18930
  ])) : createCommentVNode("", true),
18931
18931
  createElementVNode("textarea", {
@@ -18933,14 +18933,120 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
18933
18933
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
18934
18934
  placeholder: _ctx.placeholder,
18935
18935
  onInput: handleInput
18936
- }, null, 42, _hoisted_3$f)
18937
- ], 10, _hoisted_1$t);
18936
+ }, null, 42, _hoisted_3$g)
18937
+ ], 10, _hoisted_1$v);
18938
18938
  };
18939
18939
  }
18940
18940
  });
18941
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-1cbaeab2"]]);
18942
- const _hoisted_1$s = { class: "relative" };
18943
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
18941
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-1cbaeab2"]]);
18942
+ const _hoisted_1$u = ["value", "autofocus", "onKeydown", "onPaste"];
18943
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18944
+ __name: "OTP",
18945
+ props: {
18946
+ digitCount: {},
18947
+ default: {},
18948
+ modelValue: {}
18949
+ },
18950
+ emits: ["update:modelValue", "complete"],
18951
+ setup(__props, { emit: __emit }) {
18952
+ const props2 = __props;
18953
+ const emit2 = __emit;
18954
+ const digits = reactive([]);
18955
+ const otpCont = ref();
18956
+ function handlePaste2(event, index2) {
18957
+ event.preventDefault();
18958
+ const { clipboardData } = event;
18959
+ const pastedText = clipboardData == null ? void 0 : clipboardData.getData("text").replace(/\D/g, "");
18960
+ const pastedDigits = pastedText == null ? void 0 : pastedText.split("");
18961
+ if (!pastedDigits) return;
18962
+ for (let i2 = 0; i2 < pastedDigits.length; i2++) {
18963
+ const digit = pastedDigits[i2];
18964
+ if (index2 + i2 < digits.length) {
18965
+ digits[index2 + i2] = digit;
18966
+ }
18967
+ }
18968
+ emitUpdate();
18969
+ }
18970
+ function emitUpdate() {
18971
+ if (isDigitsFull()) {
18972
+ emit2("complete", digits.join(""));
18973
+ } else {
18974
+ emit2("update:modelValue", digits.join(""));
18975
+ }
18976
+ }
18977
+ function handleKeyDown2(event, index2) {
18978
+ var _a2;
18979
+ const noPreventKeys = ["Tab", "ArrowRight", "ArrowLeft", "Control", "Shift", "Alt", "Meta"];
18980
+ if (noPreventKeys.includes(event.key)) {
18981
+ return;
18982
+ }
18983
+ if (event.key === "Backspace") {
18984
+ digits[index2] = null;
18985
+ if (index2 !== 0) {
18986
+ const prevDigit = (_a2 = otpCont.value) == null ? void 0 : _a2.children[index2 - 1];
18987
+ prevDigit.focus();
18988
+ }
18989
+ emitUpdate();
18990
+ return;
18991
+ }
18992
+ const numberRegex = /^\d$/;
18993
+ if (numberRegex.test(event.key)) {
18994
+ digits[index2] = event.key;
18995
+ if (index2 !== props2.digitCount - 1) {
18996
+ setTimeout(() => {
18997
+ var _a3;
18998
+ const nextDigit = (_a3 = otpCont.value) == null ? void 0 : _a3.children[index2 + 1];
18999
+ nextDigit.focus();
19000
+ }, 10);
19001
+ }
19002
+ emitUpdate();
19003
+ }
19004
+ }
19005
+ if (props2.default && props2.default.length === props2.digitCount) {
19006
+ for (let i2 = 0; i2 < props2.digitCount; i2++) {
19007
+ digits[i2] = props2.default.charAt(i2);
19008
+ }
19009
+ } else {
19010
+ for (let i2 = 0; i2 < props2.digitCount; i2++) {
19011
+ digits[i2] = null;
19012
+ }
19013
+ }
19014
+ function isDigitsFull() {
19015
+ for (const elem of digits) {
19016
+ if (elem == null || elem == void 0) {
19017
+ return false;
19018
+ }
19019
+ }
19020
+ return true;
19021
+ }
19022
+ return (_ctx, _cache) => {
19023
+ return openBlock(), createElementBlock("div", {
19024
+ ref_key: "otpCont",
19025
+ ref: otpCont,
19026
+ class: "otp_wrap"
19027
+ }, [
19028
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(digits, (el, ind) => {
19029
+ return openBlock(), createElementBlock("input", {
19030
+ key: ind,
19031
+ value: digits[ind] || "",
19032
+ type: "number",
19033
+ inputmode: "numeric",
19034
+ class: "digit-box",
19035
+ autofocus: ind === 0,
19036
+ maxlength: "1",
19037
+ pattern: "[0-9]*",
19038
+ oninput: "this.value = this.value.slice(0, 1);",
19039
+ onKeydown: ($event) => handleKeyDown2($event, ind),
19040
+ onPaste: ($event) => handlePaste2($event, ind)
19041
+ }, null, 40, _hoisted_1$u);
19042
+ }), 128))
19043
+ ], 512);
19044
+ };
19045
+ }
19046
+ });
19047
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-539a9fdb"]]);
19048
+ const _hoisted_1$t = { class: "relative" };
19049
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
18944
19050
  __name: "PasswordInput",
18945
19051
  props: /* @__PURE__ */ mergeModels({
18946
19052
  id: {},
@@ -18980,7 +19086,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
18980
19086
  );
18981
19087
  const inputType = computed(() => showPwd.value ? "text" : "password");
18982
19088
  return (_ctx, _cache) => {
18983
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
19089
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
18984
19090
  createVNode(unref(TextInput), mergeProps({
18985
19091
  modelValue: password.value,
18986
19092
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
@@ -19000,10 +19106,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19000
19106
  };
19001
19107
  }
19002
19108
  });
19003
- const _hoisted_1$r = ["for"];
19004
- const _hoisted_2$i = ["id", "name", "value"];
19005
- const _hoisted_3$e = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
19006
- const _hoisted_4$a = ["src", "alt"];
19109
+ const _hoisted_1$s = ["for"];
19110
+ const _hoisted_2$j = ["id", "name", "value"];
19111
+ const _hoisted_3$f = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
19112
+ const _hoisted_4$b = ["src", "alt"];
19007
19113
  const _hoisted_5$9 = { class: "" };
19008
19114
  const _hoisted_6$7 = {
19009
19115
  key: 0,
@@ -19013,7 +19119,7 @@ const _hoisted_7$4 = {
19013
19119
  key: 1,
19014
19120
  class: "txt-gray txt-12 m-0"
19015
19121
  };
19016
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
19122
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19017
19123
  __name: "RadioGroup",
19018
19124
  props: /* @__PURE__ */ mergeModels({
19019
19125
  groupName: {},
@@ -19041,17 +19147,17 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19041
19147
  type: "radio",
19042
19148
  name: _ctx.groupName,
19043
19149
  value: opt.value
19044
- }, null, 8, _hoisted_2$i), [
19150
+ }, null, 8, _hoisted_2$j), [
19045
19151
  [vModelRadio, selectedOption.value]
19046
19152
  ]),
19047
- createElementVNode("div", _hoisted_3$e, [
19153
+ createElementVNode("div", _hoisted_3$f, [
19048
19154
  opt.imgSrc ? (openBlock(), createElementBlock("img", {
19049
19155
  key: 0,
19050
19156
  class: "bg-popup shadow-light py-025 radius-05 m_w40",
19051
19157
  width: "60",
19052
19158
  src: opt.imgSrc,
19053
19159
  alt: opt.imgAlt
19054
- }, null, 8, _hoisted_4$a)) : createCommentVNode("", true),
19160
+ }, null, 8, _hoisted_4$b)) : createCommentVNode("", true),
19055
19161
  createElementVNode("div", _hoisted_5$9, [
19056
19162
  opt.label ? (openBlock(), createElementBlock("p", _hoisted_6$7, toDisplayString(opt.label), 1)) : createCommentVNode("", true),
19057
19163
  opt.subLabel ? (openBlock(), createElementBlock("p", _hoisted_7$4, toDisplayString(opt.subLabel), 1)) : createCommentVNode("", true)
@@ -19066,19 +19172,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19066
19172
  icon: "delete",
19067
19173
  onClick: ($event) => _ctx.$emit("delete", opt)
19068
19174
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
19069
- ], 8, _hoisted_1$r);
19175
+ ], 8, _hoisted_1$s);
19070
19176
  }), 128))
19071
19177
  ]);
19072
19178
  };
19073
19179
  }
19074
19180
  });
19075
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-3e9e030f"]]);
19076
- const _hoisted_1$q = { class: "bagel-input" };
19077
- const _hoisted_2$h = { class: "pb-025" };
19078
- const _hoisted_3$d = { class: "flex gap-05 flex-wrap" };
19079
- const _hoisted_4$9 = ["id", "name", "value", "checked"];
19181
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-3e9e030f"]]);
19182
+ const _hoisted_1$r = { class: "bagel-input" };
19183
+ const _hoisted_2$i = { class: "pb-025" };
19184
+ const _hoisted_3$e = { class: "flex gap-05 flex-wrap" };
19185
+ const _hoisted_4$a = ["id", "name", "value", "checked"];
19080
19186
  const _hoisted_5$8 = ["for"];
19081
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
19187
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19082
19188
  __name: "RadioPillsInput",
19083
19189
  props: {
19084
19190
  options: {},
@@ -19119,9 +19225,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19119
19225
  selectedValue.value = props2.modelValue;
19120
19226
  });
19121
19227
  return (_ctx, _cache) => {
19122
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
19123
- createElementVNode("label", _hoisted_2$h, toDisplayString(_ctx.label), 1),
19124
- createElementVNode("div", _hoisted_3$d, [
19228
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
19229
+ createElementVNode("label", _hoisted_2$i, toDisplayString(_ctx.label), 1),
19230
+ createElementVNode("div", _hoisted_3$e, [
19125
19231
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (option2, index2) => {
19126
19232
  return openBlock(), createElementBlock("div", {
19127
19233
  key: index2,
@@ -19134,7 +19240,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19134
19240
  value: getValue(option2),
19135
19241
  checked: unref(selectedValue) === getValue(option2),
19136
19242
  onChange: handleSelect
19137
- }, null, 40, _hoisted_4$9),
19243
+ }, null, 40, _hoisted_4$a),
19138
19244
  createElementVNode("label", {
19139
19245
  for: `${_ctx.id}-${getValue(option2)}`
19140
19246
  }, toDisplayString(getLabel(option2)), 9, _hoisted_5$8)
@@ -19145,7 +19251,49 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19145
19251
  };
19146
19252
  }
19147
19253
  });
19148
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-f2912ed8"]]);
19254
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-f2912ed8"]]);
19255
+ const _hoisted_1$q = { class: "flex gap-1 align-center range-slide" };
19256
+ const _hoisted_2$h = { key: 0 };
19257
+ const _hoisted_3$d = ["max", "min", "step"];
19258
+ const _hoisted_4$9 = { key: 1 };
19259
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19260
+ __name: "RangeInput",
19261
+ props: /* @__PURE__ */ mergeModels({
19262
+ min: {},
19263
+ max: {},
19264
+ step: {}
19265
+ }, {
19266
+ "modelValue": { default: 0 },
19267
+ "modelModifiers": {}
19268
+ }),
19269
+ emits: ["update:modelValue"],
19270
+ setup(__props) {
19271
+ const val = useModel(__props, "modelValue");
19272
+ const background = computed(() => {
19273
+ const minVal = __props.min ?? 0;
19274
+ const maxVal = __props.max ?? 100;
19275
+ const percentage = (val.value - minVal) / (maxVal - minVal) * 100;
19276
+ return `linear-gradient(to right, var(--bgl-primary) ${percentage}%, var(--input-bg) ${percentage}%)`;
19277
+ });
19278
+ return (_ctx, _cache) => {
19279
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
19280
+ _ctx.min !== void 0 ? (openBlock(), createElementBlock("p", _hoisted_2$h, toDisplayString(_ctx.min), 1)) : createCommentVNode("", true),
19281
+ withDirectives(createElementVNode("input", {
19282
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
19283
+ style: normalizeStyle({ background: background.value }),
19284
+ max: _ctx.max,
19285
+ min: _ctx.min,
19286
+ step: _ctx.step,
19287
+ type: "range"
19288
+ }, null, 12, _hoisted_3$d), [
19289
+ [vModelText, val.value]
19290
+ ]),
19291
+ _ctx.max !== void 0 ? (openBlock(), createElementBlock("p", _hoisted_4$9, toDisplayString(_ctx.max), 1)) : createCommentVNode("", true)
19292
+ ]);
19293
+ };
19294
+ }
19295
+ });
19296
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-d653c76a"]]);
19149
19297
  function OrderedMap(content) {
19150
19298
  this.content = content;
19151
19299
  }
@@ -43537,7 +43685,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43537
43685
  }
43538
43686
  });
43539
43687
  return (_ctx, _cache) => {
43540
- return openBlock(), createBlock(unref(_sfc_main$K), {
43688
+ return openBlock(), createBlock(unref(_sfc_main$M), {
43541
43689
  ref_key: "dropdown",
43542
43690
  ref: dropdown,
43543
43691
  placement: "bottom-start",
@@ -43589,7 +43737,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43589
43737
  ])
43590
43738
  ]),
43591
43739
  default: withCtx(() => [
43592
- createVNode(unref(_sfc_main$O), {
43740
+ createVNode(unref(_sfc_main$Q), {
43593
43741
  class: "p-05",
43594
43742
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
43595
43743
  }, {
@@ -51998,7 +52146,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
51998
52146
  withKeys(reset, ["tab"])
51999
52147
  ]
52000
52148
  }, [
52001
- !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$K), {
52149
+ !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$M), {
52002
52150
  key: 0,
52003
52151
  ref_key: "phoneDropdown",
52004
52152
  ref: phoneDropdown,
@@ -52232,7 +52380,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
52232
52380
  };
52233
52381
  }
52234
52382
  });
52235
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-739e3acb"]]);
52383
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-194260fc"]]);
52236
52384
  const _hoisted_1$h = ["title"];
52237
52385
  const _hoisted_2$9 = ["id", "required"];
52238
52386
  const _hoisted_3$7 = ["for"];
@@ -52293,7 +52441,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
52293
52441
  },
52294
52442
  setup(__props) {
52295
52443
  return (_ctx, _cache) => {
52296
- return openBlock(), createBlock(unref(_sfc_main$O), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
52444
+ 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" }, {
52297
52445
  default: withCtx(() => [
52298
52446
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
52299
52447
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.navLinks, (nav2, i2) => {
@@ -52393,7 +52541,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
52393
52541
  icon: "keyboard_arrow_right",
52394
52542
  onClick: toggleMenu
52395
52543
  }),
52396
- createVNode(unref(_sfc_main$O), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
52544
+ createVNode(unref(_sfc_main$Q), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
52397
52545
  default: withCtx(() => [
52398
52546
  !unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
52399
52547
  unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
@@ -52900,7 +53048,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
52900
53048
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
52901
53049
  onKeydown: withKeys(closeModal, ["esc"])
52902
53050
  }, [
52903
- createVNode(unref(_sfc_main$O), {
53051
+ createVNode(unref(_sfc_main$Q), {
52904
53052
  class: "modal",
52905
53053
  style: normalizeStyle({ ...maxWidth.value }),
52906
53054
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
@@ -53068,7 +53216,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
53068
53216
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
53069
53217
  }, createSlots({
53070
53218
  default: withCtx(() => [
53071
- createVNode(unref(_sfc_main$H), {
53219
+ createVNode(unref(_sfc_main$J), {
53072
53220
  ref_key: "form",
53073
53221
  ref: form,
53074
53222
  modelValue: formData.value,
@@ -53918,7 +54066,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
53918
54066
  row,
53919
54067
  field
53920
54068
  }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
53921
- createVNode(unref(_sfc_main$I), {
54069
+ createVNode(unref(_sfc_main$K), {
53922
54070
  class: "embedded-field",
53923
54071
  field,
53924
54072
  modelValue: row,
@@ -55069,7 +55217,7 @@ function frmRow(...children2) {
55069
55217
  function bglForm(idOrField, ...schema) {
55070
55218
  if (typeof idOrField === "string") {
55071
55219
  return {
55072
- $el: markRaw(_sfc_main$H),
55220
+ $el: markRaw(_sfc_main$J),
55073
55221
  id: idOrField,
55074
55222
  attrs: {
55075
55223
  schema: [idOrField, ...schema]
@@ -55077,7 +55225,7 @@ function bglForm(idOrField, ...schema) {
55077
55225
  };
55078
55226
  }
55079
55227
  return {
55080
- $el: markRaw(_sfc_main$H),
55228
+ $el: markRaw(_sfc_main$J),
55081
55229
  attrs: {
55082
55230
  schema: [idOrField, ...schema]
55083
55231
  }
@@ -55679,29 +55827,29 @@ const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
55679
55827
  const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
55680
55828
  const VIDEO_FORMATS_REGEXP = new RegExp(`(${VIDEO_FORMATS.join("|")})$`, "i");
55681
55829
  export {
55682
- _sfc_main$W as Accordion,
55830
+ _sfc_main$Y as Accordion,
55683
55831
  AccordionItem,
55684
- _sfc_main$U as AddressSearch,
55832
+ _sfc_main$W as AddressSearch,
55685
55833
  Alert,
55686
55834
  Avatar,
55687
55835
  Badge,
55688
- _sfc_main$H as BagelForm,
55836
+ _sfc_main$J as BagelForm,
55689
55837
  BagelVue,
55690
- _sfc_main$I as BglField,
55691
- _sfc_main$H as BglForm,
55692
- _sfc_main$G as BglMultiStepForm,
55838
+ _sfc_main$K as BglField,
55839
+ _sfc_main$J as BglForm,
55840
+ _sfc_main$I as BglMultiStepForm,
55693
55841
  BglVideo,
55694
55842
  BottomMenu,
55695
55843
  Btn,
55696
- _sfc_main$O as Card,
55844
+ _sfc_main$Q as Card,
55697
55845
  Carousel,
55698
55846
  CheckInput,
55699
55847
  Checkbox,
55700
- _sfc_main$D as ColorPicker,
55848
+ _sfc_main$F as ColorPicker,
55701
55849
  DataPreview,
55702
- _sfc_main$C as DateInput,
55703
- _sfc_main$B as DatePicker,
55704
- _sfc_main$K as Dropdown,
55850
+ _sfc_main$E as DateInput,
55851
+ _sfc_main$D as DatePicker,
55852
+ _sfc_main$M as Dropdown,
55705
55853
  $el as FileUpload,
55706
55854
  Flag,
55707
55855
  IMAGE_FORMATS,
@@ -55709,7 +55857,7 @@ export {
55709
55857
  _sfc_main$c as Icon,
55710
55858
  JSONInput,
55711
55859
  Layout,
55712
- _sfc_main$M as Lineart,
55860
+ _sfc_main$O as Lineart,
55713
55861
  _sfc_main$f as ListItem,
55714
55862
  ListView,
55715
55863
  _sfc_main$d as MapEmbed,
@@ -55719,11 +55867,13 @@ export {
55719
55867
  ModalForm,
55720
55868
  ModalPlugin,
55721
55869
  NavBar,
55870
+ OTP,
55722
55871
  _sfc_main$7 as PageTitle,
55723
- _sfc_main$y as PasswordInput,
55872
+ _sfc_main$z as PasswordInput,
55724
55873
  Pill,
55725
55874
  RadioGroup,
55726
55875
  RadioPillsInput,
55876
+ RangeInput,
55727
55877
  _sfc_main$v as RichText,
55728
55878
  index$1 as RichText2,
55729
55879
  RouterWrapper,