@bagelink/vue 0.0.789 → 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$X = /* @__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$X = /* @__PURE__ */ defineComponent({
52
52
  };
53
53
  }
54
54
  });
55
- const _hoisted_1$L = { class: "accordion-item" };
55
+ const _hoisted_1$M = { class: "accordion-item" };
56
56
  const _hoisted_2$w = ["aria-expanded", "aria-controls"];
57
57
  const _hoisted_3$m = { class: "accordion-label" };
58
58
  const _hoisted_4$g = ["id", "aria-hidden"];
59
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
59
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
60
60
  __name: "AccordionItem",
61
61
  props: {
62
62
  label: {},
@@ -93,7 +93,7 @@ const _sfc_main$W = /* @__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$L, [
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",
@@ -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$W, [["__scopeId", "data-v-f87b579d"]]);
137
- const _hoisted_1$K = { class: "relative" };
138
- const _sfc_main$V = /* @__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$V = /* @__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$K, [
161
- createVNode(unref(_sfc_main$L), {
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,7 +193,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
193
193
  };
194
194
  }
195
195
  });
196
- const _hoisted_1$J = {
196
+ const _hoisted_1$K = {
197
197
  key: 0,
198
198
  class: "loading"
199
199
  };
@@ -201,7 +201,7 @@ const _hoisted_2$v = {
201
201
  key: 1,
202
202
  class: "bgl_btn-flex"
203
203
  };
204
- const _sfc_main$U = /* @__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$U = /* @__PURE__ */ defineComponent({
295
295
  onClick: withModifiers(_ctx.onClick, ["stop"])
296
296
  }, {
297
297
  default: withCtx(() => [
298
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$J)) : (openBlock(), createElementBlock("div", _hoisted_2$v, [
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$U = /* @__PURE__ */ defineComponent({
315
315
  };
316
316
  }
317
317
  });
318
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-047c9778"]]);
319
- const _hoisted_1$I = ["dismissable"];
318
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-047c9778"]]);
319
+ const _hoisted_1$J = ["dismissable"];
320
320
  const _hoisted_2$u = { class: "m-0" };
321
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
321
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
322
322
  __name: "Alert",
323
323
  props: {
324
324
  message: {},
@@ -354,13 +354,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
354
354
  icon: "close",
355
355
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
356
356
  })
357
- ], 10, _hoisted_1$I)) : createCommentVNode("", true);
357
+ ], 10, _hoisted_1$J)) : createCommentVNode("", true);
358
358
  };
359
359
  }
360
360
  });
361
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-57141c32"]]);
362
- const _hoisted_1$H = ["src", "alt"];
363
- const _sfc_main$S = /* @__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$S = /* @__PURE__ */ defineComponent({
378
378
  key: 0,
379
379
  src: _ctx.src,
380
380
  alt: _ctx.name
381
- }, null, 8, _hoisted_1$H)) : (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$S = /* @__PURE__ */ defineComponent({
386
386
  };
387
387
  }
388
388
  });
389
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-46ad8c25"]]);
390
- const _sfc_main$R = /* @__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$R = /* @__PURE__ */ defineComponent({
418
418
  };
419
419
  }
420
420
  });
421
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-40a0b03a"]]);
422
- const _hoisted_1$G = ["src"];
421
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-40a0b03a"]]);
422
+ const _hoisted_1$H = ["src"];
423
423
  const _hoisted_2$t = ["src", "autoplay", "muted", "loop", "controls"];
424
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
424
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
425
425
  __name: "BglVideo",
426
426
  props: {
427
427
  src: {},
@@ -476,7 +476,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
476
476
  allowfullscreen: "",
477
477
  title: "Video",
478
478
  allow: "autoplay"
479
- }, null, 12, _hoisted_1$G)) : _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,
@@ -490,12 +490,12 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
490
490
  };
491
491
  }
492
492
  });
493
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-8495afe2"]]);
494
- const _hoisted_1$F = {
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$P = /* @__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$P = /* @__PURE__ */ defineComponent({
523
523
  }])
524
524
  }, {
525
525
  default: withCtx(() => [
526
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$F, 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$P = /* @__PURE__ */ defineComponent({
531
531
  };
532
532
  }
533
533
  });
534
- const _hoisted_1$E = {
534
+ const _hoisted_1$F = {
535
535
  key: 0,
536
536
  class: "blocker"
537
537
  };
538
538
  const _hoisted_2$s = { class: "Handlers" };
539
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
539
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
540
540
  __name: "Carousel",
541
541
  props: {
542
542
  autoHeight: {
@@ -684,7 +684,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
684
684
  onScrollend: scrollEnd,
685
685
  onMousedown: startDragging
686
686
  }, [
687
- unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$E)) : 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
690
  createElementVNode("div", _hoisted_2$s, [
@@ -705,7 +705,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
705
705
  };
706
706
  }
707
707
  });
708
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__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
  }
@@ -6646,13 +6646,13 @@ var script = defineComponent({
6646
6646
  return { bar, canvas, direction, mouse };
6647
6647
  }
6648
6648
  });
6649
- const _hoisted_1$D = {
6649
+ const _hoisted_1$E = {
6650
6650
  key: 0,
6651
6651
  class: "layer-hover-bar"
6652
6652
  };
6653
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$D, [
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,
@@ -6664,7 +6664,7 @@ function render$e(_ctx, _cache, $props, $setup, $data, $options) {
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$N = /* @__PURE__ */ defineComponent({
6667
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
6668
6668
  __name: "Lineart",
6669
6669
  props: {
6670
6670
  data: {},
@@ -6804,7 +6804,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
6804
6804
  };
6805
6805
  }
6806
6806
  });
6807
- const _hoisted_1$C = {
6807
+ const _hoisted_1$D = {
6808
6808
  key: 0,
6809
6809
  class: "data"
6810
6810
  };
@@ -6825,7 +6825,7 @@ const _hoisted_9$3 = {
6825
6825
  key: 0,
6826
6826
  class: "m-0"
6827
6827
  };
6828
- const _sfc_main$M = /* @__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$M = /* @__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$C, [
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
@@ -6874,7 +6874,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
6874
6874
  createElementVNode("div", _hoisted_3$k, [
6875
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$J), {
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$M = /* @__PURE__ */ defineComponent({
6903
6903
  };
6904
6904
  }
6905
6905
  });
6906
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__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$L = /* @__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$L = /* @__PURE__ */ defineComponent({
9502
9502
  };
9503
9503
  }
9504
9504
  });
9505
- const _sfc_main$K = /* @__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$K = /* @__PURE__ */ defineComponent({
9532
9532
  };
9533
9533
  }
9534
9534
  });
9535
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-f99f1900"]]);
9536
- const _sfc_main$J = /* @__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$J = /* @__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$D;
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$J = /* @__PURE__ */ defineComponent({
9633
9633
  };
9634
9634
  }
9635
9635
  });
9636
- const _sfc_main$I = /* @__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$I = /* @__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$J), {
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$I = /* @__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$J), {
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$I = /* @__PURE__ */ defineComponent({
9774
9774
  };
9775
9775
  }
9776
9776
  });
9777
- const _hoisted_1$B = { key: 0 };
9778
- const _sfc_main$H = /* @__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$H = /* @__PURE__ */ defineComponent({
9842
9842
  mode: "out-in"
9843
9843
  }, {
9844
9844
  default: withCtx(() => [
9845
- !unref(isStepping) ? (openBlock(), createElementBlock("div", _hoisted_1$B, [
9846
- createVNode(unref(_sfc_main$I), 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$H = /* @__PURE__ */ defineComponent({
9882
9882
  };
9883
9883
  }
9884
9884
  });
9885
- const _hoisted_1$A = { class: "primary-checkbox" };
9886
- const _sfc_main$G = /* @__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$G = /* @__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$A, [
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$G = /* @__PURE__ */ defineComponent({
9905
9905
  };
9906
9906
  }
9907
9907
  });
9908
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-73f1d9ad"]]);
9909
- const _hoisted_1$z = ["title"];
9908
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-73f1d9ad"]]);
9909
+ const _hoisted_1$A = ["title"];
9910
9910
  const _hoisted_2$p = ["id", "value", "required"];
9911
9911
  const _hoisted_3$j = ["for"];
9912
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
9912
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9913
9913
  __name: "CheckInput",
9914
9914
  props: /* @__PURE__ */ mergeModels({
9915
9915
  label: {},
@@ -9951,14 +9951,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9951
9951
  createTextVNode(toDisplayString(_ctx.label), 1)
9952
9952
  ], true)
9953
9953
  ], 8, _hoisted_3$j)
9954
- ], 10, _hoisted_1$z);
9954
+ ], 10, _hoisted_1$A);
9955
9955
  };
9956
9956
  }
9957
9957
  });
9958
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-1b4d18c6"]]);
9959
- const _hoisted_1$y = ["title"];
9958
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-1b4d18c6"]]);
9959
+ const _hoisted_1$z = ["title"];
9960
9960
  const _hoisted_2$o = ["id", "placeholder", "required"];
9961
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
9961
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9962
9962
  __name: "ColorPicker",
9963
9963
  props: {
9964
9964
  label: {},
@@ -10000,7 +10000,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10000
10000
  [vModelText, inputVal.value]
10001
10001
  ])
10002
10002
  ])
10003
- ], 10, _hoisted_1$y)) : 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$x = ["title"];
18446
+ const _hoisted_1$y = ["title"];
18447
18447
  const _hoisted_2$n = { key: 0 };
18448
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
18448
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
18449
18449
  __name: "DateInput",
18450
18450
  props: {
18451
18451
  required: { type: Boolean },
@@ -18503,11 +18503,11 @@ const _sfc_main$D = /* @__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$x);
18506
+ ], 10, _hoisted_1$y);
18507
18507
  };
18508
18508
  }
18509
18509
  });
18510
- const _hoisted_1$w = { class: "datetime-wrap" };
18510
+ const _hoisted_1$x = { class: "datetime-wrap" };
18511
18511
  const _hoisted_2$m = { class: "date-wrap" };
18512
18512
  const _hoisted_3$i = {
18513
18513
  key: 0,
@@ -18515,7 +18515,7 @@ const _hoisted_3$i = {
18515
18515
  };
18516
18516
  const _hoisted_4$d = ["id", "name", "value"];
18517
18517
  const _hoisted_5$b = ["for"];
18518
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
18518
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
18519
18519
  __name: "DatePicker",
18520
18520
  props: {
18521
18521
  label: {},
@@ -18543,7 +18543,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18543
18543
  return `${hour}:${minute}`;
18544
18544
  });
18545
18545
  return (_ctx, _cache) => {
18546
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
18546
+ return openBlock(), createElementBlock("div", _hoisted_1$x, [
18547
18547
  createElementVNode("div", _hoisted_2$m, [
18548
18548
  createVNode(unref(Hn), mergeProps({
18549
18549
  modelValue: selectedDate.value,
@@ -18584,7 +18584,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
18584
18584
  };
18585
18585
  }
18586
18586
  });
18587
- const _hoisted_1$v = { class: "bagel-input" };
18587
+ const _hoisted_1$w = { class: "bagel-input" };
18588
18588
  const _hoisted_2$l = {
18589
18589
  key: 0,
18590
18590
  class: "bgl-multi-preview"
@@ -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$B = /* @__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$B = /* @__PURE__ */ defineComponent({
18757
18757
  }
18758
18758
  return (_ctx, _cache) => {
18759
18759
  const _directive_lightbox = resolveDirective("lightbox");
18760
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
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", {
@@ -18898,11 +18898,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18898
18898
  };
18899
18899
  }
18900
18900
  });
18901
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-be593d04"]]);
18902
- const _hoisted_1$u = ["title"];
18901
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-be593d04"]]);
18902
+ const _hoisted_1$v = ["title"];
18903
18903
  const _hoisted_2$k = { key: 0 };
18904
18904
  const _hoisted_3$g = ["value", "placeholder"];
18905
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
18905
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18906
18906
  __name: "JSONInput",
18907
18907
  props: {
18908
18908
  description: { default: "" },
@@ -18934,11 +18934,117 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
18934
18934
  placeholder: _ctx.placeholder,
18935
18935
  onInput: handleInput
18936
18936
  }, null, 42, _hoisted_3$g)
18937
- ], 10, _hoisted_1$u);
18937
+ ], 10, _hoisted_1$v);
18938
+ };
18939
+ }
18940
+ });
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);
18938
19044
  };
18939
19045
  }
18940
19046
  });
18941
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-1cbaeab2"]]);
19047
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-539a9fdb"]]);
18942
19048
  const _hoisted_1$t = { class: "relative" };
18943
19049
  const _sfc_main$z = /* @__PURE__ */ defineComponent({
18944
19050
  __name: "PasswordInput",
@@ -43579,7 +43685,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43579
43685
  }
43580
43686
  });
43581
43687
  return (_ctx, _cache) => {
43582
- return openBlock(), createBlock(unref(_sfc_main$L), {
43688
+ return openBlock(), createBlock(unref(_sfc_main$M), {
43583
43689
  ref_key: "dropdown",
43584
43690
  ref: dropdown,
43585
43691
  placement: "bottom-start",
@@ -43631,7 +43737,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
43631
43737
  ])
43632
43738
  ]),
43633
43739
  default: withCtx(() => [
43634
- createVNode(unref(_sfc_main$P), {
43740
+ createVNode(unref(_sfc_main$Q), {
43635
43741
  class: "p-05",
43636
43742
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
43637
43743
  }, {
@@ -52040,7 +52146,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
52040
52146
  withKeys(reset, ["tab"])
52041
52147
  ]
52042
52148
  }, [
52043
- !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$L), {
52149
+ !computedDropDownOptions.value.hide ? (openBlock(), createBlock(unref(_sfc_main$M), {
52044
52150
  key: 0,
52045
52151
  ref_key: "phoneDropdown",
52046
52152
  ref: phoneDropdown,
@@ -52274,7 +52380,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
52274
52380
  };
52275
52381
  }
52276
52382
  });
52277
- 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"]]);
52278
52384
  const _hoisted_1$h = ["title"];
52279
52385
  const _hoisted_2$9 = ["id", "required"];
52280
52386
  const _hoisted_3$7 = ["for"];
@@ -52335,7 +52441,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
52335
52441
  },
52336
52442
  setup(__props) {
52337
52443
  return (_ctx, _cache) => {
52338
- return openBlock(), createBlock(unref(_sfc_main$P), { 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" }, {
52339
52445
  default: withCtx(() => [
52340
52446
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
52341
52447
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.navLinks, (nav2, i2) => {
@@ -52435,7 +52541,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
52435
52541
  icon: "keyboard_arrow_right",
52436
52542
  onClick: toggleMenu
52437
52543
  }),
52438
- createVNode(unref(_sfc_main$P), { 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" }, {
52439
52545
  default: withCtx(() => [
52440
52546
  !unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
52441
52547
  unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
@@ -52942,7 +53048,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
52942
53048
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
52943
53049
  onKeydown: withKeys(closeModal, ["esc"])
52944
53050
  }, [
52945
- createVNode(unref(_sfc_main$P), {
53051
+ createVNode(unref(_sfc_main$Q), {
52946
53052
  class: "modal",
52947
53053
  style: normalizeStyle({ ...maxWidth.value }),
52948
53054
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
@@ -53110,7 +53216,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
53110
53216
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
53111
53217
  }, createSlots({
53112
53218
  default: withCtx(() => [
53113
- createVNode(unref(_sfc_main$I), {
53219
+ createVNode(unref(_sfc_main$J), {
53114
53220
  ref_key: "form",
53115
53221
  ref: form,
53116
53222
  modelValue: formData.value,
@@ -53960,7 +54066,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
53960
54066
  row,
53961
54067
  field
53962
54068
  }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
53963
- createVNode(unref(_sfc_main$J), {
54069
+ createVNode(unref(_sfc_main$K), {
53964
54070
  class: "embedded-field",
53965
54071
  field,
53966
54072
  modelValue: row,
@@ -55111,7 +55217,7 @@ function frmRow(...children2) {
55111
55217
  function bglForm(idOrField, ...schema) {
55112
55218
  if (typeof idOrField === "string") {
55113
55219
  return {
55114
- $el: markRaw(_sfc_main$I),
55220
+ $el: markRaw(_sfc_main$J),
55115
55221
  id: idOrField,
55116
55222
  attrs: {
55117
55223
  schema: [idOrField, ...schema]
@@ -55119,7 +55225,7 @@ function bglForm(idOrField, ...schema) {
55119
55225
  };
55120
55226
  }
55121
55227
  return {
55122
- $el: markRaw(_sfc_main$I),
55228
+ $el: markRaw(_sfc_main$J),
55123
55229
  attrs: {
55124
55230
  schema: [idOrField, ...schema]
55125
55231
  }
@@ -55721,29 +55827,29 @@ const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
55721
55827
  const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
55722
55828
  const VIDEO_FORMATS_REGEXP = new RegExp(`(${VIDEO_FORMATS.join("|")})$`, "i");
55723
55829
  export {
55724
- _sfc_main$X as Accordion,
55830
+ _sfc_main$Y as Accordion,
55725
55831
  AccordionItem,
55726
- _sfc_main$V as AddressSearch,
55832
+ _sfc_main$W as AddressSearch,
55727
55833
  Alert,
55728
55834
  Avatar,
55729
55835
  Badge,
55730
- _sfc_main$I as BagelForm,
55836
+ _sfc_main$J as BagelForm,
55731
55837
  BagelVue,
55732
- _sfc_main$J as BglField,
55733
- _sfc_main$I as BglForm,
55734
- _sfc_main$H as BglMultiStepForm,
55838
+ _sfc_main$K as BglField,
55839
+ _sfc_main$J as BglForm,
55840
+ _sfc_main$I as BglMultiStepForm,
55735
55841
  BglVideo,
55736
55842
  BottomMenu,
55737
55843
  Btn,
55738
- _sfc_main$P as Card,
55844
+ _sfc_main$Q as Card,
55739
55845
  Carousel,
55740
55846
  CheckInput,
55741
55847
  Checkbox,
55742
- _sfc_main$E as ColorPicker,
55848
+ _sfc_main$F as ColorPicker,
55743
55849
  DataPreview,
55744
- _sfc_main$D as DateInput,
55745
- _sfc_main$C as DatePicker,
55746
- _sfc_main$L as Dropdown,
55850
+ _sfc_main$E as DateInput,
55851
+ _sfc_main$D as DatePicker,
55852
+ _sfc_main$M as Dropdown,
55747
55853
  $el as FileUpload,
55748
55854
  Flag,
55749
55855
  IMAGE_FORMATS,
@@ -55751,7 +55857,7 @@ export {
55751
55857
  _sfc_main$c as Icon,
55752
55858
  JSONInput,
55753
55859
  Layout,
55754
- _sfc_main$N as Lineart,
55860
+ _sfc_main$O as Lineart,
55755
55861
  _sfc_main$f as ListItem,
55756
55862
  ListView,
55757
55863
  _sfc_main$d as MapEmbed,
@@ -55761,6 +55867,7 @@ export {
55761
55867
  ModalForm,
55762
55868
  ModalPlugin,
55763
55869
  NavBar,
55870
+ OTP,
55764
55871
  _sfc_main$7 as PageTitle,
55765
55872
  _sfc_main$z as PasswordInput,
55766
55873
  Pill,