@bagelink/vue 1.2.71 → 1.2.75

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
@@ -1,9 +1,9 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { defineComponent, reactive, provide, createElementBlock, openBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, createVNode, unref, createCommentVNode, toDisplayString, Transition, withCtx, Fragment, renderList, createBlock, isRef, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withKeys, withModifiers, createTextVNode, normalizeStyle, onMounted, onUnmounted, onBeforeUnmount, nextTick, resolveComponent, isVNode, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useCssVars, useModel, vModelCheckbox, createApp, pushScopeId, popScopeId, withScopeId, normalizeProps, guardReactiveProps, toRef, createSlots, vModelText, Comment, Text, vModelRadio, TransitionGroup, vModelDynamic } from "vue";
4
+ import { defineComponent, reactive, provide, createElementBlock, openBlock, renderSlot, ref, computed, inject, watch, normalizeClass, createElementVNode, createVNode, unref, createCommentVNode, toDisplayString, Transition, withCtx, Fragment, renderList, createBlock, isRef, useSlots, resolveDirective, withDirectives, resolveDynamicComponent, mergeProps, withKeys, withModifiers, createTextVNode, normalizeStyle, onMounted, onUnmounted, nextTick, resolveComponent, isVNode, h as h$2, getCurrentScope, onScopeDispose, toValue, getCurrentInstance, shallowRef, mergeModels, useCssVars, useModel, vModelCheckbox, createApp, pushScopeId, popScopeId, withScopeId, normalizeProps, guardReactiveProps, toRef, createSlots, vModelText, Comment, Text, vModelRadio, TransitionGroup, vModelDynamic, onBeforeUnmount } from "vue";
5
5
  import { RouterLink } from "vue-router";
6
- const _sfc_main$1f = /* @__PURE__ */ defineComponent({
6
+ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
7
7
  __name: "Accordion",
8
8
  setup(__props) {
9
9
  const state2 = reactive({
@@ -17,10 +17,10 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
17
17
  };
18
18
  }
19
19
  });
20
- const _hoisted_1$12 = ["aria-expanded", "aria-controls"];
21
- const _hoisted_2$M = { class: "accordion-label" };
22
- const _hoisted_3$F = ["id", "aria-hidden"];
23
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
20
+ const _hoisted_1$13 = ["aria-expanded", "aria-controls"];
21
+ const _hoisted_2$N = { class: "accordion-label" };
22
+ const _hoisted_3$G = ["id", "aria-hidden"];
23
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
24
24
  __name: "AccordionItem",
25
25
  props: {
26
26
  label: {},
@@ -83,18 +83,18 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
83
83
  key: 0,
84
84
  class: normalizeClass(["accordion-icon", [_ctx.iconClass, { open: unref(isOpen) && _ctx.iconType === "expand_more" }]])
85
85
  }, [
86
- createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
86
+ createVNode(unref(_sfc_main$t), { icon: computedIcon.value }, null, 8, ["icon"])
87
87
  ], 2)) : createCommentVNode("", true),
88
88
  renderSlot(_ctx.$slots, "head", {}, () => [
89
- createElementVNode("span", _hoisted_2$M, toDisplayString(_ctx.label), 1)
89
+ createElementVNode("span", _hoisted_2$N, toDisplayString(_ctx.label), 1)
90
90
  ], true),
91
91
  iconPosition.value === "end" ? (openBlock(), createElementBlock("span", {
92
92
  key: 1,
93
93
  class: normalizeClass(["accordion-icon", [_ctx.iconClass, { open: unref(isOpen) && _ctx.iconType === "expand_more" }]])
94
94
  }, [
95
- createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
95
+ createVNode(unref(_sfc_main$t), { icon: computedIcon.value }, null, 8, ["icon"])
96
96
  ], 2)) : createCommentVNode("", true)
97
- ], 8, _hoisted_1$12),
97
+ ], 8, _hoisted_1$13),
98
98
  createVNode(Transition, { name: "expand" }, {
99
99
  default: withCtx(() => [
100
100
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -104,7 +104,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
104
104
  "aria-hidden": unref(isOpen) ? "false" : "true"
105
105
  }, [
106
106
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
107
- ], 8, _hoisted_3$F)) : createCommentVNode("", true)
107
+ ], 8, _hoisted_3$G)) : createCommentVNode("", true)
108
108
  ]),
109
109
  _: 3
110
110
  })
@@ -119,9 +119,9 @@ const _export_sfc = (sfc, props2) => {
119
119
  }
120
120
  return target;
121
121
  };
122
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["__scopeId", "data-v-3334f637"]]);
123
- const _hoisted_1$11 = { class: "relative" };
124
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
122
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$1f, [["__scopeId", "data-v-3334f637"]]);
123
+ const _hoisted_1$12 = { class: "relative" };
124
+ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
125
125
  __name: "AddressSearch",
126
126
  emits: ["addressSelected"],
127
127
  setup(__props, { emit: __emit }) {
@@ -143,8 +143,8 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
143
143
  (_a = suggestion.value) == null ? void 0 : _a.show();
144
144
  }
145
145
  return (_ctx, _cache) => {
146
- return openBlock(), createElementBlock("div", _hoisted_1$11, [
147
- createVNode(unref(_sfc_main$X), {
146
+ return openBlock(), createElementBlock("div", _hoisted_1$12, [
147
+ createVNode(unref(_sfc_main$Y), {
148
148
  ref_key: "suggestion",
149
149
  ref: suggestion,
150
150
  noAutoFocus: true,
@@ -162,7 +162,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
162
162
  createVNode(unref(ListView), { class: "-mt-2 hm-300px" }, {
163
163
  default: withCtx(() => [
164
164
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(searchResults), (result2, index2) => {
165
- return openBlock(), createBlock(unref(_sfc_main$h), {
165
+ return openBlock(), createBlock(unref(_sfc_main$i), {
166
166
  key: index2,
167
167
  icon: "location_on",
168
168
  title: result2.display_name,
@@ -179,11 +179,11 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
179
179
  };
180
180
  }
181
181
  });
182
- const _hoisted_1$10 = {
182
+ const _hoisted_1$11 = {
183
183
  key: 1,
184
184
  class: "bgl_btn-flex"
185
185
  };
186
- const _sfc_main$1c = /* @__PURE__ */ defineComponent({
186
+ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
187
187
  __name: "Btn",
188
188
  props: {
189
189
  disabled: { type: Boolean, default: false },
@@ -252,8 +252,8 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
252
252
  key: 0,
253
253
  class: "h-100p",
254
254
  size: "15"
255
- })) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
256
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
255
+ })) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
256
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
257
257
  key: 0,
258
258
  icon: _ctx.icon,
259
259
  class: "transition-400"
@@ -262,7 +262,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
262
262
  !unref(slots).default && _ctx.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
263
263
  createTextVNode(toDisplayString(_ctx.value), 1)
264
264
  ], 64)) : createCommentVNode("", true),
265
- _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$s), {
265
+ _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$t), {
266
266
  key: 2,
267
267
  icon: _ctx.iconEnd,
268
268
  class: "transition-400"
@@ -276,10 +276,10 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
276
276
  };
277
277
  }
278
278
  });
279
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-99c4aa53"]]);
280
- const _hoisted_1$$ = ["dismissable"];
281
- const _hoisted_2$L = { class: "m-0" };
282
- const _sfc_main$1b = /* @__PURE__ */ defineComponent({
279
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$1d, [["__scopeId", "data-v-99c4aa53"]]);
280
+ const _hoisted_1$10 = ["dismissable"];
281
+ const _hoisted_2$M = { class: "m-0" };
282
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
283
283
  __name: "Alert",
284
284
  props: {
285
285
  message: {},
@@ -302,14 +302,14 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
302
302
  class: normalizeClass(["alert", [_ctx.type, { thin: _ctx.thin, outline: _ctx.outline }]]),
303
303
  dismissable: _ctx.dismissable
304
304
  }, [
305
- _ctx.icon !== "none" ? (openBlock(), createBlock(unref(_sfc_main$s), {
305
+ _ctx.icon !== "none" ? (openBlock(), createBlock(unref(_sfc_main$t), {
306
306
  key: 0,
307
307
  class: "alert_icon",
308
308
  icon: _ctx.icon || _ctx.type,
309
309
  size: 1.7,
310
310
  color: color2[_ctx.type]
311
311
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
312
- createElementVNode("p", _hoisted_2$L, toDisplayString(_ctx.message), 1),
312
+ createElementVNode("p", _hoisted_2$M, toDisplayString(_ctx.message), 1),
313
313
  createVNode(Btn, {
314
314
  flat: "",
315
315
  thin: "",
@@ -317,13 +317,13 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
317
317
  icon: "close",
318
318
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
319
319
  })
320
- ], 10, _hoisted_1$$)) : createCommentVNode("", true);
320
+ ], 10, _hoisted_1$10)) : createCommentVNode("", true);
321
321
  };
322
322
  }
323
323
  });
324
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-15c4ee95"]]);
325
- const _hoisted_1$_ = ["src", "alt"];
326
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
324
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1c, [["__scopeId", "data-v-15c4ee95"]]);
325
+ const _hoisted_1$$ = ["src", "alt"];
326
+ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
327
327
  __name: "Avatar",
328
328
  props: {
329
329
  fallback: {},
@@ -341,7 +341,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
341
341
  key: 0,
342
342
  src: _ctx.src,
343
343
  alt: _ctx.name
344
- }, null, 8, _hoisted_1$_)) : (openBlock(), createElementBlock("p", {
344
+ }, null, 8, _hoisted_1$$)) : (openBlock(), createElementBlock("p", {
345
345
  key: 1,
346
346
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
347
347
  }, toDisplayString((_ctx.fallback || unref(initials)(_ctx.name || "")).toUpperCase()), 5))
@@ -349,8 +349,8 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
349
349
  };
350
350
  }
351
351
  });
352
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-b73b9e30"]]);
353
- const _sfc_main$19 = /* @__PURE__ */ defineComponent({
352
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-b73b9e30"]]);
353
+ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
354
354
  __name: "Badge",
355
355
  props: {
356
356
  color: {},
@@ -364,13 +364,13 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
364
364
  return openBlock(), createElementBlock("div", {
365
365
  class: normalizeClass(["pill", [_ctx.color]])
366
366
  }, [
367
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
367
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
368
368
  key: 0,
369
369
  class: "inline",
370
370
  icon: _ctx.icon
371
371
  }, null, 8, ["icon"])) : createCommentVNode("", true),
372
372
  createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
373
- _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$s), {
373
+ _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$t), {
374
374
  key: 1,
375
375
  class: "inline",
376
376
  icon: _ctx.iconEnd
@@ -379,11 +379,11 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
379
379
  };
380
380
  }
381
381
  });
382
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-689f051f"]]);
383
- const _hoisted_1$Z = ["src"];
384
- const _hoisted_2$K = ["autoplay", "muted", "loop", "controls", "playsinline"];
385
- const _hoisted_3$E = ["src", "type"];
386
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
382
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-689f051f"]]);
383
+ const _hoisted_1$_ = ["src"];
384
+ const _hoisted_2$L = ["autoplay", "muted", "loop", "controls", "playsinline"];
385
+ const _hoisted_3$F = ["src", "type"];
386
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
387
387
  __name: "BglVideo",
388
388
  props: {
389
389
  src: {},
@@ -460,7 +460,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
460
460
  allowfullscreen: "",
461
461
  title: "Video",
462
462
  allow: "autoplay"
463
- }, null, 12, _hoisted_1$Z)) : _ctx.src ? (openBlock(), createElementBlock("video", {
463
+ }, null, 12, _hoisted_1$_)) : _ctx.src ? (openBlock(), createElementBlock("video", {
464
464
  key: 1,
465
465
  ref_key: "video",
466
466
  ref: video,
@@ -474,14 +474,14 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
474
474
  createElementVNode("source", {
475
475
  src: _ctx.src,
476
476
  type: `video/${videoFormat.value}`
477
- }, null, 8, _hoisted_3$E)
478
- ], 12, _hoisted_2$K)) : createCommentVNode("", true)
477
+ }, null, 8, _hoisted_3$F)
478
+ ], 12, _hoisted_2$L)) : createCommentVNode("", true)
479
479
  ], 2);
480
480
  };
481
481
  }
482
482
  });
483
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-006552f6"]]);
484
- const _sfc_main$17 = /* @__PURE__ */ defineComponent({
483
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-006552f6"]]);
484
+ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
485
485
  __name: "CalendarPopover",
486
486
  props: {
487
487
  event: {},
@@ -524,7 +524,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
524
524
  }
525
525
  return (_ctx, _cache) => {
526
526
  const _directive_click_outside = resolveDirective("click-outside");
527
- return _ctx.show && _ctx.event ? withDirectives((openBlock(), createBlock(unref(_sfc_main$11), {
527
+ return _ctx.show && _ctx.event ? withDirectives((openBlock(), createBlock(unref(_sfc_main$12), {
528
528
  key: 0,
529
529
  ref_key: "popoverRef",
530
530
  ref: popoverRef,
@@ -546,14 +546,14 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
546
546
  };
547
547
  }
548
548
  });
549
- const CalendarPopover = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-6f51f6b3"]]);
550
- const _hoisted_1$Y = { class: "agenda-view" };
551
- const _hoisted_2$J = ["data-date", "onClick"];
552
- const _hoisted_3$D = { class: "event-content" };
549
+ const CalendarPopover = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-6f51f6b3"]]);
550
+ const _hoisted_1$Z = { class: "agenda-view" };
551
+ const _hoisted_2$K = ["data-date", "onClick"];
552
+ const _hoisted_3$E = { class: "event-content" };
553
553
  const _hoisted_4$r = { class: "event-time" };
554
554
  const _hoisted_5$q = { class: "event-details" };
555
555
  const _hoisted_6$n = { class: "event-title" };
556
- const _sfc_main$16 = /* @__PURE__ */ defineComponent({
556
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
557
557
  __name: "AgendaView",
558
558
  props: {
559
559
  events: {},
@@ -651,7 +651,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
651
651
  }
652
652
  });
653
653
  return (_ctx, _cache) => {
654
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
654
+ return openBlock(), createElementBlock("div", _hoisted_1$Z, [
655
655
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "agenda-header" }, [
656
656
  createElementVNode("div", { class: "time-column" }, " Time "),
657
657
  createElementVNode("div", { class: "event-column" }, " Event ")
@@ -672,7 +672,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
672
672
  "data-date": event.start_time,
673
673
  onClick: withModifiers(($event) => handleEventSelection(event, $event), ["stop"])
674
674
  }, [
675
- createElementVNode("div", _hoisted_3$D, [
675
+ createElementVNode("div", _hoisted_3$E, [
676
676
  createElementVNode("div", _hoisted_4$r, toDisplayString(unref(formatDate)(event.start_time, { fmt: "HH:mm" })), 1),
677
677
  createElementVNode("div", _hoisted_5$q, [
678
678
  createElementVNode("div", _hoisted_6$n, toDisplayString(event.title), 1),
@@ -681,17 +681,17 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
681
681
  }, toDisplayString(event.dayLabel), 3)
682
682
  ])
683
683
  ])
684
- ], 12, _hoisted_2$J);
684
+ ], 12, _hoisted_2$K);
685
685
  }), 128))
686
686
  ], 512)
687
687
  ]);
688
688
  };
689
689
  }
690
690
  });
691
- const AgendaView = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-1e2b483b"]]);
692
- const _hoisted_1$X = { class: "w-100p overflow-hidden m_overflow h-100p grid" };
693
- const _hoisted_2$I = { class: "border-bottom me-1 txt-center p-05 dayGrid" };
694
- const _hoisted_3$C = { class: "overflow h-100p pe-05" };
691
+ const AgendaView = /* @__PURE__ */ _export_sfc(_sfc_main$17, [["__scopeId", "data-v-1e2b483b"]]);
692
+ const _hoisted_1$Y = { class: "w-100p overflow-hidden m_overflow h-100p grid" };
693
+ const _hoisted_2$J = { class: "border-bottom me-1 txt-center p-05 dayGrid" };
694
+ const _hoisted_3$D = { class: "overflow h-100p pe-05" };
695
695
  const _hoisted_4$q = { class: "time-column" };
696
696
  const _hoisted_5$p = { class: "events-column" };
697
697
  const _hoisted_6$m = ["onClick"];
@@ -701,7 +701,7 @@ const _hoisted_9$7 = { class: "event-time opacity-8" };
701
701
  const _hoisted_10$6 = { class: "color-primary txt-12 p-025" };
702
702
  const slotHeight$1 = 60;
703
703
  const slotDuration$1 = 60;
704
- const _sfc_main$15 = /* @__PURE__ */ defineComponent({
704
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
705
705
  __name: "DayView",
706
706
  props: {
707
707
  events: {},
@@ -835,12 +835,12 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
835
835
  }
836
836
  });
837
837
  return (_ctx, _cache) => {
838
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
839
- createElementVNode("div", _hoisted_2$I, [
838
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
839
+ createElementVNode("div", _hoisted_2$J, [
840
840
  _cache[0] || (_cache[0] = createElementVNode("div", null, null, -1)),
841
841
  createElementVNode("div", null, toDisplayString(unref(formatDate)(_ctx.startDate)), 1)
842
842
  ]),
843
- createElementVNode("div", _hoisted_3$C, [
843
+ createElementVNode("div", _hoisted_3$D, [
844
844
  createElementVNode("div", {
845
845
  class: "time-slots dayGrid border-end relative",
846
846
  onMousedown: handleMouseDown
@@ -900,10 +900,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
900
900
  };
901
901
  }
902
902
  });
903
- const DayView = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-8b1a770f"]]);
904
- const _hoisted_1$W = { class: "month-view" };
905
- const _hoisted_2$H = { class: "month-header" };
906
- const _hoisted_3$B = { class: "month-grid" };
903
+ const DayView = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-8b1a770f"]]);
904
+ const _hoisted_1$X = { class: "month-view" };
905
+ const _hoisted_2$I = { class: "month-header" };
906
+ const _hoisted_3$C = { class: "month-grid" };
907
907
  const _hoisted_4$p = { class: "day-number" };
908
908
  const _hoisted_5$o = { class: "day-events" };
909
909
  const _hoisted_6$l = {
@@ -913,7 +913,7 @@ const _hoisted_6$l = {
913
913
  const _hoisted_7$g = ["onClick"];
914
914
  const _hoisted_8$a = { class: "event-title" };
915
915
  const _hoisted_9$6 = { class: "event-time" };
916
- const _sfc_main$14 = /* @__PURE__ */ defineComponent({
916
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
917
917
  __name: "MonthView",
918
918
  props: {
919
919
  events: {},
@@ -987,8 +987,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
987
987
  }
988
988
  }
989
989
  return (_ctx, _cache) => {
990
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
991
- createElementVNode("div", _hoisted_2$H, [
990
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
991
+ createElementVNode("div", _hoisted_2$I, [
992
992
  (openBlock(true), createElementBlock(Fragment, null, renderList(weekDays.value, (day) => {
993
993
  return openBlock(), createElementBlock("div", {
994
994
  key: day,
@@ -996,7 +996,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
996
996
  }, toDisplayString(day), 1);
997
997
  }), 128))
998
998
  ]),
999
- createElementVNode("div", _hoisted_3$B, [
999
+ createElementVNode("div", _hoisted_3$C, [
1000
1000
  (openBlock(true), createElementBlock(Fragment, null, renderList(currentMonth.value, (day) => {
1001
1001
  return openBlock(), createElementBlock("div", {
1002
1002
  key: day.date.toISOString(),
@@ -1029,10 +1029,10 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1029
1029
  };
1030
1030
  }
1031
1031
  });
1032
- const MonthView = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-0b1117c4"]]);
1033
- const _hoisted_1$V = { class: "w-100p overflow-hidden m_overflow h-100p grid" };
1034
- const _hoisted_2$G = { class: "overflow h-100p pe-05" };
1035
- const _hoisted_3$A = ["onMousedown"];
1032
+ const MonthView = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-0b1117c4"]]);
1033
+ const _hoisted_1$W = { class: "w-100p overflow-hidden m_overflow h-100p grid" };
1034
+ const _hoisted_2$H = { class: "overflow h-100p pe-05" };
1035
+ const _hoisted_3$B = ["onMousedown"];
1036
1036
  const _hoisted_4$o = ["onClick"];
1037
1037
  const _hoisted_5$n = { class: "overflow-hidden color-white p-025 txt12 h-100p" };
1038
1038
  const _hoisted_6$k = { class: "white-space ellipsis-1" };
@@ -1040,7 +1040,7 @@ const _hoisted_7$f = { class: "txt10 opacity-8 user-select-none" };
1040
1040
  const _hoisted_8$9 = { class: "color-primary txt-12 p-025" };
1041
1041
  const slotHeight = 60;
1042
1042
  const slotDuration = 60;
1043
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1043
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1044
1044
  __name: "WeekView",
1045
1045
  props: {
1046
1046
  events: { default: () => [] },
@@ -1294,7 +1294,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1294
1294
  }
1295
1295
  });
1296
1296
  return (_ctx, _cache) => {
1297
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
1297
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
1298
1298
  createElementVNode("div", {
1299
1299
  ref_key: "calendarGrid",
1300
1300
  ref: calendarGrid,
@@ -1316,7 +1316,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1316
1316
  ]);
1317
1317
  }), 128))
1318
1318
  ], 512),
1319
- createElementVNode("div", _hoisted_2$G, [
1319
+ createElementVNode("div", _hoisted_2$H, [
1320
1320
  createElementVNode("div", {
1321
1321
  ref_key: "dayColumnsContainer",
1322
1322
  ref: dayColumnsContainer,
@@ -1371,7 +1371,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1371
1371
  ])
1372
1372
  ], 44, _hoisted_4$o);
1373
1373
  }), 128))
1374
- ], 40, _hoisted_3$A);
1374
+ ], 40, _hoisted_3$B);
1375
1375
  }), 128)),
1376
1376
  dragState.value.isDragging && dragState.value.start && dragState.value.end ? (openBlock(), createElementBlock("div", {
1377
1377
  key: 1,
@@ -1392,12 +1392,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1392
1392
  };
1393
1393
  }
1394
1394
  });
1395
- const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-2d5bca17"]]);
1396
- const _hoisted_1$U = { class: "calendar" };
1397
- const _hoisted_2$F = { class: "flex m_block m_pb-1" };
1398
- const _hoisted_3$z = { class: "txt-light my-0" };
1395
+ const WeekView = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-2d5bca17"]]);
1396
+ const _hoisted_1$V = { class: "calendar" };
1397
+ const _hoisted_2$G = { class: "flex m_block m_pb-1" };
1398
+ const _hoisted_3$A = { class: "txt-light my-0" };
1399
1399
  const _hoisted_4$n = { class: "ms-auto flex gap-025" };
1400
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1400
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1401
1401
  __name: "Index",
1402
1402
  props: {
1403
1403
  events: { default: () => [] },
@@ -1489,14 +1489,14 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1489
1489
  emit2("ready", state2.value);
1490
1490
  });
1491
1491
  return (_ctx, _cache) => {
1492
- return openBlock(), createElementBlock("div", _hoisted_1$U, [
1493
- createElementVNode("div", _hoisted_2$F, [
1494
- createElementVNode("h3", _hoisted_3$z, [
1492
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
1493
+ createElementVNode("div", _hoisted_2$G, [
1494
+ createElementVNode("h3", _hoisted_3$A, [
1495
1495
  createElementVNode("b", null, toDisplayString(unref(fmtDate)(currentDate.value, { fmt: "MMMM" })), 1),
1496
1496
  createTextVNode(" " + toDisplayString(unref(fmtDate)(currentDate.value, { fmt: "YYYY" })), 1)
1497
1497
  ]),
1498
1498
  createElementVNode("div", _hoisted_4$n, [
1499
- createVNode(unref(_sfc_main$X), {
1499
+ createVNode(unref(_sfc_main$Y), {
1500
1500
  thin: "",
1501
1501
  value: currentView.value,
1502
1502
  iconEnd: "keyboard_arrow_down",
@@ -1504,7 +1504,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1504
1504
  }, {
1505
1505
  default: withCtx(() => [
1506
1506
  (openBlock(), createElementBlock(Fragment, null, renderList(views, (_2, key) => {
1507
- return createVNode(unref(_sfc_main$h), {
1507
+ return createVNode(unref(_sfc_main$i), {
1508
1508
  key,
1509
1509
  title: key,
1510
1510
  onClick: ($event) => handleViewChange(key)
@@ -1567,12 +1567,12 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1567
1567
  };
1568
1568
  }
1569
1569
  });
1570
- const Index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-840b6594"]]);
1571
- const _hoisted_1$T = {
1570
+ const Index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-840b6594"]]);
1571
+ const _hoisted_1$U = {
1572
1572
  key: 0,
1573
1573
  class: "card_label"
1574
1574
  };
1575
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1575
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1576
1576
  __name: "Card",
1577
1577
  props: {
1578
1578
  label: {},
@@ -1601,7 +1601,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1601
1601
  }])
1602
1602
  }, {
1603
1603
  default: withCtx(() => [
1604
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$T, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
1604
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$U, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
1605
1605
  renderSlot(_ctx.$slots, "default")
1606
1606
  ]),
1607
1607
  _: 3
@@ -1611,773 +1611,581 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1611
1611
  };
1612
1612
  }
1613
1613
  });
1614
- const _hoisted_1$S = { class: "carousel-wrapper" };
1615
- const _hoisted_2$E = {
1614
+ const _hoisted_1$T = ["dir"];
1615
+ const _hoisted_2$F = {
1616
1616
  key: 0,
1617
- class: "carousel-dots"
1617
+ class: "dots"
1618
1618
  };
1619
- const _hoisted_3$y = ["aria-label", "onClick"];
1620
- const dragThreshold = 10;
1621
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
1622
- __name: "Carousel2",
1619
+ const _hoisted_3$z = ["onClick"];
1620
+ const GAP_PERCENT = 1;
1621
+ const VELOCITY_SAMPLE_DURATION = 100;
1622
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1623
+ __name: "Carousel",
1623
1624
  props: {
1624
- duration: { default: 200 },
1625
- easing: { default: "ease-out" },
1626
- perPage: {},
1627
- startIndex: { default: 0 },
1628
- draggable: { type: Boolean, default: true },
1629
- multipleDrag: { type: Boolean, default: true },
1630
- threshold: { default: 20 },
1631
- loop: { type: Boolean, default: true },
1625
+ autoHeight: { type: Boolean, default: false },
1626
+ allowScroll: { type: Boolean, default: true },
1627
+ freeDrag: { type: Boolean, default: true },
1628
+ items: { type: Number, default: 4 },
1629
+ index: { type: Number, default: 0 },
1632
1630
  rtl: { type: Boolean, default: false },
1633
- autoplay: { type: [Boolean, String], default: "disabled" },
1634
- autoplayInterval: { default: 3e3 },
1635
- autoplaySpeed: { default: 50 },
1636
- pauseOnHover: { type: Boolean, default: true },
1637
- dots: { type: Boolean, default: false },
1638
- slideWidth: { default: 300 },
1639
- onInit: {},
1640
- onChange: {}
1631
+ autoplay: { type: Boolean, default: false },
1632
+ autoPlaySpeed: { type: Number, default: 4e3 },
1633
+ dots: { type: Boolean, default: false }
1641
1634
  },
1642
- emits: ["init", "change"],
1635
+ emits: ["update:index"],
1643
1636
  setup(__props, { expose: __expose, emit: __emit }) {
1644
1637
  const props2 = __props;
1645
1638
  const emit2 = __emit;
1646
- const carouselRef = ref(null);
1647
- const sliderFrame = ref(null);
1648
- const innerElements = ref([]);
1649
- const currentSlide = ref(0);
1650
- const selectorWidth = ref(0);
1651
- const { innerWidth } = useDevice();
1652
- const transformProperty = ref("transform");
1653
- const pointerDown = ref(false);
1654
- const drag = ref({
1655
- startX: 0,
1656
- endX: 0,
1657
- startY: 0,
1658
- letItGo: null,
1659
- preventClick: false
1660
- });
1661
- const isDragging = ref(false);
1662
- const autoplayTimer = ref(null);
1663
- const linearAnimationFrame = ref(null);
1664
- const isHovering = ref(false);
1665
- const linearOffset = ref(0);
1666
- const perPage = computed(() => {
1667
- if (typeof props2.perPage === "number") {
1668
- return props2.perPage;
1669
- }
1670
- if (typeof props2.perPage === "object") {
1671
- return Object.entries(props2.perPage).reduce((acc, [viewport, value]) => innerWidth.value >= Number(viewport) ? value : acc, 1);
1672
- }
1673
- return Math.max(1, Math.ceil(selectorWidth.value / props2.slideWidth));
1674
- });
1675
- const config = computed(() => {
1676
- let autoplayMode = "disabled";
1677
- if (typeof props2.autoplay === "boolean") {
1678
- autoplayMode = props2.autoplay ? "standard" : "disabled";
1679
- } else {
1680
- autoplayMode = props2.autoplay;
1681
- }
1682
- const calculatedPerPage = perPage.value;
1683
- return {
1684
- duration: props2.duration,
1685
- easing: props2.easing,
1686
- perPage: calculatedPerPage,
1687
- startIndex: props2.startIndex,
1688
- draggable: props2.draggable,
1689
- multipleDrag: props2.multipleDrag,
1690
- threshold: props2.threshold,
1691
- loop: props2.loop,
1692
- rtl: props2.rtl,
1693
- autoplay: autoplayMode,
1694
- autoplayInterval: props2.autoplayInterval,
1695
- autoplaySpeed: props2.autoplaySpeed,
1696
- pauseOnHover: props2.pauseOnHover,
1697
- dots: props2.dots,
1698
- slideWidth: props2.slideWidth,
1699
- onInit: () => {
1700
- emit2("init");
1701
- },
1702
- onChange: () => {
1703
- emit2("change");
1704
- }
1705
- };
1706
- });
1707
- const totalDots = computed(() => {
1708
- if (!innerElements.value.length) return 0;
1709
- return config.value.loop ? innerElements.value.length : Math.ceil(innerElements.value.length - perPage.value + 1);
1710
- });
1711
- onMounted(() => init());
1712
- onBeforeUnmount(() => {
1713
- stopAutoplay();
1714
- detachEvents();
1715
- });
1716
- watch(() => props2, () => {
1717
- resizeHandler();
1718
- }, { deep: true });
1719
- function webkitOrNot() {
1720
- const { style } = document.documentElement;
1721
- if (typeof style.transform === "string") {
1722
- return "transform";
1723
- }
1724
- return "WebkitTransform";
1639
+ const ANIMATION_TIMINGS = {
1640
+ TOUCH: 150,
1641
+ MOBILE: 420,
1642
+ DESKTOP: 840,
1643
+ MAX_DURATION: 300,
1644
+ BASE_DURATION: 150,
1645
+ DURATION_PER_PANEL: 50
1646
+ };
1647
+ const THRESHOLDS = {
1648
+ DRAG: 20,
1649
+ TOUCH: 5,
1650
+ SWIPE_PERCENT: 0.1,
1651
+ VELOCITY: 0.15,
1652
+ WHEEL_PERCENT: 0.3
1653
+ };
1654
+ const bglSlider = ref();
1655
+ const isSliderAvailable = computed(() => !!bglSlider.value);
1656
+ let itemCount = ref(props2.items);
1657
+ let activeSlideIndex = ref(props2.index);
1658
+ let slideCount = ref(0);
1659
+ let yHeight = ref("auto");
1660
+ let isDragging = ref(false);
1661
+ let isPressed = ref(false);
1662
+ let startX = ref(0);
1663
+ let startY = ref(0);
1664
+ let translateX2 = ref(0);
1665
+ let lastX = ref(0);
1666
+ let lastTime = ref(0);
1667
+ let accumulatedDeltaX = ref(0);
1668
+ let wheelTimeout;
1669
+ let autoPlayInterval;
1670
+ let velocityTracker = ref([]);
1671
+ function getAverageVelocity() {
1672
+ if (velocityTracker.value.length < 2) return 0;
1673
+ const now = Date.now();
1674
+ const recentSamples = velocityTracker.value.filter((sample) => now - sample.time < VELOCITY_SAMPLE_DURATION);
1675
+ if (recentSamples.length < 2) return 0;
1676
+ const first = recentSamples[0];
1677
+ const last = recentSamples[recentSamples.length - 1];
1678
+ const timeDelta2 = last.time - first.time;
1679
+ if (timeDelta2 === 0) return 0;
1680
+ return (last.position - first.position) / timeDelta2;
1681
+ }
1682
+ function getCurrentTransform() {
1683
+ if (!bglSlider.value) return 0;
1684
+ const { transform } = bglSlider.value.style;
1685
+ const value = transform ? Number.parseInt(transform.replace(/[^-\d.]/g, "")) : 0;
1686
+ return props2.rtl ? -value : value;
1687
+ }
1688
+ function setTransform(value) {
1689
+ if (!bglSlider.value) return;
1690
+ const rtlValue = props2.rtl ? -value : value;
1691
+ bglSlider.value.style.transform = `translateX(${rtlValue}px)`;
1692
+ }
1693
+ function easeInOutQuad(t) {
1694
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
1695
+ }
1696
+ function animateTransform(start, end, duration) {
1697
+ const startTime = performance.now();
1698
+ function animate(currentTime) {
1699
+ if (!isSliderAvailable.value) return;
1700
+ const timeElapsed = currentTime - startTime;
1701
+ const progress = Math.min(timeElapsed / duration, 1);
1702
+ const currentTransform = start + (end - start) * easeInOutQuad(progress);
1703
+ setTransform(currentTransform);
1704
+ if (progress < 1) requestAnimationFrame(animate);
1705
+ }
1706
+ requestAnimationFrame(animate);
1707
+ }
1708
+ function goToSlide(index2, isTouchNav = false) {
1709
+ countSlides();
1710
+ if (!isSliderAvailable.value || !bglSlider.value || index2 < 0 || index2 >= slideCount.value) return;
1711
+ const containerWidth = bglSlider.value.offsetWidth;
1712
+ const gapWidth = containerWidth * GAP_PERCENT / 100;
1713
+ const totalGapWidth = (itemCount.value - 1) * gapWidth;
1714
+ const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
1715
+ const gapsBeforeSlide = index2 * gapWidth;
1716
+ const targetTransform = -(singleItemWidth * index2 + gapsBeforeSlide);
1717
+ const currentTransform = getCurrentTransform();
1718
+ const duration = isTouchNav ? ANIMATION_TIMINGS.TOUCH : window.innerWidth < 600 ? ANIMATION_TIMINGS.MOBILE : ANIMATION_TIMINGS.DESKTOP;
1719
+ animateTransform(currentTransform, targetTransform, duration);
1720
+ activeSlideIndex.value = index2;
1721
+ updateHeight();
1725
1722
  }
1726
- function attachEvents() {
1727
- window.addEventListener("resize", resizeHandler);
1728
- if (config.value.draggable && carouselRef.value) {
1729
- const eventOptions = { passive: true };
1730
- const touchMoveOptions = { passive: false };
1731
- const mouseMoveOptions = { passive: false };
1732
- const mouseDownOptions = { passive: false };
1733
- carouselRef.value.addEventListener("touchstart", touchstartHandler, eventOptions);
1734
- carouselRef.value.addEventListener("touchend", touchendHandler, eventOptions);
1735
- carouselRef.value.addEventListener("touchmove", touchmoveHandler, touchMoveOptions);
1736
- carouselRef.value.addEventListener("mousedown", mousedownHandler, mouseDownOptions);
1737
- carouselRef.value.addEventListener("mouseup", mouseupHandler, eventOptions);
1738
- carouselRef.value.addEventListener("mouseleave", mouseleaveHandler, eventOptions);
1739
- carouselRef.value.addEventListener("mousemove", mousemoveHandler, mouseMoveOptions);
1740
- carouselRef.value.addEventListener("dragstart", dragstartHandler);
1741
- carouselRef.value.addEventListener("click", clickHandler2);
1742
- }
1743
- if (config.value.autoplay !== "disabled" && config.value.pauseOnHover && carouselRef.value) {
1744
- carouselRef.value.addEventListener("mouseenter", mouseenterHandler);
1745
- carouselRef.value.addEventListener("mouseleave", mouseleaveAutoplayHandler);
1746
- }
1723
+ function next() {
1724
+ if (!isSliderAvailable.value) return;
1725
+ countSlides();
1726
+ const nextIndex = props2.rtl ? (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value : (activeSlideIndex.value + 1) % slideCount.value;
1727
+ goToSlide(nextIndex);
1747
1728
  }
1748
- function detachEvents() {
1749
- window.removeEventListener("resize", resizeHandler);
1750
- if (carouselRef.value) {
1751
- carouselRef.value.removeEventListener("touchstart", touchstartHandler);
1752
- carouselRef.value.removeEventListener("touchend", touchendHandler);
1753
- carouselRef.value.removeEventListener("touchmove", touchmoveHandler);
1754
- carouselRef.value.removeEventListener("mousedown", mousedownHandler);
1755
- carouselRef.value.removeEventListener("mouseup", mouseupHandler);
1756
- carouselRef.value.removeEventListener("mouseleave", mouseleaveHandler);
1757
- carouselRef.value.removeEventListener("mousemove", mousemoveHandler);
1758
- carouselRef.value.removeEventListener("dragstart", dragstartHandler);
1759
- carouselRef.value.removeEventListener("click", clickHandler2);
1760
- carouselRef.value.removeEventListener("mouseenter", mouseenterHandler);
1761
- carouselRef.value.removeEventListener("mouseleave", mouseleaveAutoplayHandler);
1762
- }
1729
+ function prev() {
1730
+ if (!isSliderAvailable.value) return;
1731
+ countSlides();
1732
+ const prevIndex = props2.rtl ? (activeSlideIndex.value + 1) % slideCount.value : (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value;
1733
+ goToSlide(prevIndex);
1763
1734
  }
1764
- async function init() {
1765
- if (!carouselRef.value) return;
1766
- transformProperty.value = webkitOrNot();
1767
- await sleep(10);
1768
- innerElements.value = Array.from(carouselRef.value.children);
1769
- if (!innerElements.value.length) {
1770
- console.warn("No carousel items found during initialization");
1771
- return;
1772
- }
1773
- selectorWidth.value = carouselRef.value.offsetWidth;
1774
- currentSlide.value = config.value.loop ? config.value.startIndex % innerElements.value.length : Math.max(0, Math.min(config.value.startIndex, innerElements.value.length - perPage.value));
1775
- carouselRef.value.style.overflow = "hidden";
1776
- carouselRef.value.style.direction = config.value.rtl ? "rtl" : "ltr";
1777
- attachEvents();
1778
- await nextTick();
1779
- buildSliderFrame();
1780
- if (config.value.autoplay !== "disabled") {
1781
- startAutoplay();
1735
+ function calcHeight() {
1736
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1737
+ try {
1738
+ const activeSlide = bglSlider.value.children[activeSlideIndex.value];
1739
+ if (!activeSlide) return;
1740
+ const children2 = Array.from(activeSlide.children);
1741
+ const totalHeight = children2.reduce((sum, el) => sum + el.clientHeight, 0);
1742
+ yHeight.value = `${totalHeight}px`;
1743
+ } catch (error) {
1744
+ console.error("Error calculating height:", error);
1782
1745
  }
1783
- config.value.onInit();
1784
1746
  }
1785
- function buildSliderFrame() {
1786
- if (!carouselRef.value) return;
1787
- if (!innerElements.value.length) {
1788
- console.warn("No carousel items found");
1789
- return;
1790
- }
1791
- const widthItem = selectorWidth.value / perPage.value;
1792
- const itemsToBuild = config.value.loop ? innerElements.value.length + 2 * perPage.value : innerElements.value.length;
1793
- if (!sliderFrame.value) {
1794
- sliderFrame.value = document.createElement("div");
1795
- }
1796
- sliderFrame.value.style.width = `${widthItem * itemsToBuild}px`;
1797
- enableTransition();
1798
- if (config.value.draggable && carouselRef.value) {
1799
- carouselRef.value.style.cursor = "-webkit-grab";
1800
- }
1801
- const docFragment = document.createDocumentFragment();
1802
- if (config.value.loop && innerElements.value.length > 0) {
1803
- for (let i2 = innerElements.value.length - perPage.value; i2 < innerElements.value.length; i2++) {
1804
- if (i2 >= 0 && i2 < innerElements.value.length) {
1805
- const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
1806
- docFragment.appendChild(element);
1807
- }
1808
- }
1809
- }
1810
- for (let i2 = 0; i2 < innerElements.value.length; i2++) {
1811
- const element = buildSliderFrameItem(innerElements.value[i2]);
1812
- docFragment.appendChild(element);
1813
- }
1814
- if (config.value.loop && innerElements.value.length > 0) {
1815
- for (let i2 = 0; i2 < perPage.value; i2++) {
1816
- if (i2 >= 0 && i2 < innerElements.value.length) {
1817
- const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
1818
- docFragment.appendChild(element);
1819
- }
1820
- }
1747
+ function updateHeight() {
1748
+ if (!props2.autoHeight) return;
1749
+ setTimeout(calcHeight, 200);
1750
+ }
1751
+ function countSlides() {
1752
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1753
+ slideCount.value = bglSlider.value.children.length;
1754
+ }
1755
+ function handleSlideChange() {
1756
+ if (props2.index !== activeSlideIndex.value) {
1757
+ emit2("update:index", activeSlideIndex.value);
1821
1758
  }
1822
- if (sliderFrame.value) {
1823
- sliderFrame.value.innerHTML = "";
1824
- sliderFrame.value.appendChild(docFragment);
1825
- if (carouselRef.value) {
1826
- carouselRef.value.innerHTML = "";
1827
- carouselRef.value.appendChild(sliderFrame.value);
1828
- }
1759
+ }
1760
+ function handleResize() {
1761
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1762
+ itemCount.value = window.innerWidth < 600 ? 1 : window.innerWidth < 991 ? Math.min(props2.items, 2) : props2.items;
1763
+ const containerWidth = bglSlider.value.offsetWidth;
1764
+ const gapWidth = containerWidth * GAP_PERCENT / 100;
1765
+ const totalGapWidth = (itemCount.value - 1) * gapWidth;
1766
+ const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
1767
+ const gapsBeforeSlide = activeSlideIndex.value * gapWidth;
1768
+ const targetTransform = -(singleItemWidth * activeSlideIndex.value + gapsBeforeSlide);
1769
+ setTransform(targetTransform);
1770
+ updateHeight();
1771
+ }
1772
+ function clearAutoplay() {
1773
+ if (autoPlayInterval) clearInterval(autoPlayInterval);
1774
+ }
1775
+ function preventDefaultClick(e) {
1776
+ if (isDragging.value) {
1777
+ e.preventDefault();
1778
+ e.stopPropagation();
1829
1779
  }
1830
- slideToCurrent();
1831
1780
  }
1832
- function buildSliderFrameItem(elm) {
1833
- const elementContainer = document.createElement("div");
1834
- elementContainer.style.cssFloat = config.value.rtl ? "right" : "left";
1835
- elementContainer.style.float = config.value.rtl ? "right" : "left";
1836
- const percentage = config.value.loop ? 100 / (innerElements.value.length + perPage.value * 2) : 100 / innerElements.value.length;
1837
- elementContainer.style.width = `${percentage}%`;
1838
- elementContainer.appendChild(elm);
1839
- return elementContainer;
1781
+ async function disableDrag() {
1782
+ await nextTick();
1783
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1784
+ const elements = Array.from(bglSlider.value.querySelectorAll("img, a"));
1785
+ elements.forEach((el) => {
1786
+ el.setAttribute("draggable", "false");
1787
+ el.removeEventListener("click", preventDefaultClick, true);
1788
+ el.addEventListener("click", preventDefaultClick, true);
1789
+ });
1790
+ const slides = Array.from(bglSlider.value.children);
1791
+ slides.forEach((slide) => {
1792
+ const element = slide;
1793
+ element.setAttribute("draggable", "false");
1794
+ element.removeEventListener("click", preventDefaultClick, true);
1795
+ element.addEventListener("click", preventDefaultClick, true);
1796
+ });
1840
1797
  }
1841
- function slideToCurrent(enableTransitionFlag) {
1842
- const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
1843
- const offset2 = (config.value.rtl ? 1 : -1) * currentSlideValue * (selectorWidth.value / perPage.value);
1844
- if (enableTransitionFlag && sliderFrame.value) {
1845
- requestAnimationFrame(() => {
1846
- requestAnimationFrame(() => {
1847
- enableTransition();
1848
- if (sliderFrame.value) {
1849
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
1850
- }
1851
- });
1852
- });
1853
- } else if (sliderFrame.value) {
1854
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
1798
+ function startDrag(e) {
1799
+ e.stopPropagation();
1800
+ if (e.button !== 0 || !props2.freeDrag || !isSliderAvailable.value) return;
1801
+ clearAutoplay();
1802
+ startX.value = e.pageX;
1803
+ translateX2.value = getCurrentTransform();
1804
+ isPressed.value = true;
1805
+ isDragging.value = false;
1806
+ document.addEventListener("mousemove", onDrag);
1807
+ document.addEventListener("mouseup", endDrag);
1808
+ }
1809
+ function onDrag(e) {
1810
+ if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value) return;
1811
+ const x2 = e.pageX;
1812
+ const distance = x2 - startX.value;
1813
+ if (Math.abs(distance) > THRESHOLDS.DRAG) isDragging.value = true;
1814
+ if (isDragging.value) {
1815
+ const newTranslate = translateX2.value + (props2.rtl ? -distance : distance);
1816
+ const maxTranslate = 0;
1817
+ const containerWidth = bglSlider.value.offsetWidth;
1818
+ const gapWidth = containerWidth * GAP_PERCENT / 100;
1819
+ const totalGapWidth = (itemCount.value - 1) * gapWidth;
1820
+ const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
1821
+ const minTranslate = -(singleItemWidth * (slideCount.value - 1) + gapWidth * (slideCount.value - 1));
1822
+ const boundedTranslate = Math.max(minTranslate, Math.min(maxTranslate, newTranslate));
1823
+ setTransform(boundedTranslate);
1824
+ }
1825
+ }
1826
+ function endDrag() {
1827
+ isPressed.value = false;
1828
+ document.removeEventListener("mousemove", onDrag);
1829
+ document.removeEventListener("mouseup", endDrag);
1830
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1831
+ const currentTransform = getCurrentTransform();
1832
+ const singleItemWidth = bglSlider.value.offsetWidth / itemCount.value;
1833
+ const currentPanel = -currentTransform / singleItemWidth;
1834
+ const totalDragDistance = currentTransform - translateX2.value;
1835
+ const dragPercentage = Math.abs(totalDragDistance) / singleItemWidth;
1836
+ let targetPanel = currentPanel;
1837
+ if (dragPercentage > THRESHOLDS.SWIPE_PERCENT) {
1838
+ const distnace = totalDragDistance > 0 ? -1 : 1;
1839
+ targetPanel = Math.floor(currentPanel) + (distnace < 0 ? 0 : 1);
1840
+ } else {
1841
+ targetPanel = Math.round(currentPanel);
1855
1842
  }
1856
- }
1857
- function prev(howManySlides = 1) {
1858
- if (innerElements.value.length <= perPage.value) {
1859
- return;
1843
+ targetPanel = Math.max(0, Math.min(targetPanel, slideCount.value - 1));
1844
+ goToSlide(targetPanel, true);
1845
+ if (isDragging.value) {
1846
+ setTimeout(() => {
1847
+ isDragging.value = false;
1848
+ }, 10);
1860
1849
  }
1861
- const beforeChange = currentSlide.value;
1862
- if (config.value.loop) {
1863
- const isNewIndexClone = currentSlide.value - howManySlides < 0;
1864
- if (isNewIndexClone) {
1865
- disableTransition();
1866
- const mirrorSlideIndex = currentSlide.value + innerElements.value.length;
1867
- const mirrorSlideIndexOffset = perPage.value;
1868
- const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
1869
- const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
1870
- const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
1871
- if (sliderFrame.value) {
1872
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
1850
+ }
1851
+ let hasScrollDirectionLock = ref(false);
1852
+ let isHorizontalScroll = ref(false);
1853
+ function onTouchStart(e) {
1854
+ if (!props2.freeDrag || !isSliderAvailable.value) return;
1855
+ const target = e.target;
1856
+ const isInteractive = target.matches('button, a, input, select, textarea, [role="button"]') || target.closest('button, a, input, select, textarea, [role="button"]');
1857
+ if (!isInteractive) {
1858
+ clearAutoplay();
1859
+ const touch = e.touches[0];
1860
+ startX.value = touch.pageX;
1861
+ startY.value = touch.pageY;
1862
+ lastX.value = touch.pageX;
1863
+ lastTime.value = Date.now();
1864
+ translateX2.value = getCurrentTransform();
1865
+ velocityTracker.value = [{ time: lastTime.value, position: lastX.value }];
1866
+ isPressed.value = true;
1867
+ hasScrollDirectionLock.value = false;
1868
+ if (bglSlider.value) {
1869
+ bglSlider.value.style.transition = "none";
1870
+ }
1871
+ }
1872
+ }
1873
+ function onTouchMove(e) {
1874
+ if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value) return;
1875
+ const touch = e.touches[0];
1876
+ const x2 = touch.pageX;
1877
+ const y2 = touch.pageY;
1878
+ const deltaX = x2 - startX.value;
1879
+ const deltaY = y2 - startY.value;
1880
+ if (!hasScrollDirectionLock.value) {
1881
+ if (Math.abs(deltaX) > 5 || Math.abs(deltaY) > 5) {
1882
+ isHorizontalScroll.value = Math.abs(deltaX) > Math.abs(deltaY);
1883
+ hasScrollDirectionLock.value = true;
1884
+ if (!isHorizontalScroll.value) {
1885
+ isPressed.value = false;
1886
+ return;
1873
1887
  }
1874
- currentSlide.value = mirrorSlideIndex - howManySlides;
1875
- } else {
1876
- currentSlide.value = currentSlide.value - howManySlides;
1877
1888
  }
1878
- } else {
1879
- currentSlide.value = Math.max(currentSlide.value - howManySlides, 0);
1889
+ return;
1880
1890
  }
1881
- if (beforeChange !== currentSlide.value) {
1882
- slideToCurrent(config.value.loop);
1883
- config.value.onChange();
1891
+ if (!isHorizontalScroll.value) return;
1892
+ const now = Date.now();
1893
+ velocityTracker.value.push({ time: now, position: x2 });
1894
+ lastX.value = x2;
1895
+ const cutoffTime = now - VELOCITY_SAMPLE_DURATION;
1896
+ velocityTracker.value = velocityTracker.value.filter((sample) => sample.time >= cutoffTime);
1897
+ if (Math.abs(deltaX) > THRESHOLDS.TOUCH) {
1898
+ isDragging.value = true;
1899
+ e.preventDefault();
1884
1900
  }
1885
- }
1886
- function next(howManySlides = 1) {
1887
- if (innerElements.value.length <= perPage.value) {
1901
+ if (isDragging.value) {
1902
+ const containerWidth = bglSlider.value.offsetWidth;
1903
+ const gapWidth = containerWidth * GAP_PERCENT / 100;
1904
+ const totalGapWidth = (itemCount.value - 1) * gapWidth;
1905
+ const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
1906
+ const totalWidth = singleItemWidth * slideCount.value + gapWidth * (slideCount.value - 1);
1907
+ let newTranslate = translateX2.value + (props2.rtl ? -deltaX : deltaX);
1908
+ if (newTranslate > 0) {
1909
+ newTranslate = newTranslate * 0.5;
1910
+ } else if (newTranslate < -totalWidth + containerWidth) {
1911
+ const overDrag = -totalWidth + containerWidth - newTranslate;
1912
+ newTranslate = -totalWidth + containerWidth - overDrag * 0.5;
1913
+ }
1914
+ setTransform(newTranslate);
1915
+ }
1916
+ }
1917
+ function onTouchEnd() {
1918
+ if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value || !isHorizontalScroll.value) {
1919
+ isPressed.value = false;
1920
+ hasScrollDirectionLock.value = false;
1888
1921
  return;
1889
1922
  }
1890
- const beforeChange = currentSlide.value;
1891
- if (config.value.loop) {
1892
- const isNewIndexClone = currentSlide.value + howManySlides > innerElements.value.length - perPage.value;
1893
- if (isNewIndexClone) {
1894
- disableTransition();
1895
- const mirrorSlideIndex = currentSlide.value - innerElements.value.length;
1896
- const mirrorSlideIndexOffset = perPage.value;
1897
- const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
1898
- const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
1899
- const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
1900
- if (sliderFrame.value) {
1901
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
1902
- }
1903
- currentSlide.value = mirrorSlideIndex + howManySlides;
1923
+ const containerWidth = bglSlider.value.offsetWidth;
1924
+ const gapWidth = containerWidth * GAP_PERCENT / 100;
1925
+ const totalGapWidth = (itemCount.value - 1) * gapWidth;
1926
+ const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
1927
+ const totalSlideWidth = singleItemWidth + gapWidth;
1928
+ const currentTransform = getCurrentTransform();
1929
+ let normalizedTransform = currentTransform;
1930
+ if (currentTransform > 0) {
1931
+ normalizedTransform = 0;
1932
+ } else {
1933
+ const minTransform = -(singleItemWidth * (slideCount.value - 1) + gapWidth * (slideCount.value - 1));
1934
+ if (currentTransform < minTransform) {
1935
+ normalizedTransform = minTransform;
1936
+ }
1937
+ }
1938
+ const currentPanel = Math.abs(normalizedTransform / totalSlideWidth);
1939
+ const totalSwipeDistance = lastX.value - startX.value;
1940
+ const swipePercentage = Math.abs(totalSwipeDistance) / totalSlideWidth;
1941
+ const finalVelocity = getAverageVelocity();
1942
+ let targetPanel = currentPanel;
1943
+ let velocityDirection = 0;
1944
+ if (Math.abs(finalVelocity) > THRESHOLDS.VELOCITY) {
1945
+ velocityDirection = finalVelocity < 0 ? 1 : -1;
1946
+ }
1947
+ const isMobile = window.innerWidth < 600;
1948
+ if (swipePercentage > THRESHOLDS.SWIPE_PERCENT || Math.abs(finalVelocity) > THRESHOLDS.VELOCITY) {
1949
+ const direction = swipePercentage > THRESHOLDS.SWIPE_PERCENT ? totalSwipeDistance > 0 ? -1 : 1 : velocityDirection;
1950
+ const rtlDirection = props2.rtl ? -direction : direction;
1951
+ if (isMobile) {
1952
+ targetPanel = activeSlideIndex.value + rtlDirection;
1904
1953
  } else {
1905
- currentSlide.value = currentSlide.value + howManySlides;
1954
+ targetPanel = Math.round(currentPanel) + rtlDirection;
1906
1955
  }
1907
1956
  } else {
1908
- currentSlide.value = Math.min(currentSlide.value + howManySlides, innerElements.value.length - perPage.value);
1909
- }
1910
- if (beforeChange !== currentSlide.value) {
1911
- slideToCurrent(config.value.loop);
1912
- config.value.onChange();
1957
+ targetPanel = isMobile ? activeSlideIndex.value : Math.round(currentPanel);
1958
+ }
1959
+ targetPanel = Math.max(0, Math.min(targetPanel, slideCount.value - 1));
1960
+ activeSlideIndex.value = targetPanel;
1961
+ const distance = Math.abs(targetPanel - currentPanel);
1962
+ const velocityFactor = Math.min(Math.abs(finalVelocity) * 1e3, 1);
1963
+ const duration = Math.min(
1964
+ ANIMATION_TIMINGS.BASE_DURATION * (1 - velocityFactor * 0.5) + distance * ANIMATION_TIMINGS.DURATION_PER_PANEL,
1965
+ ANIMATION_TIMINGS.MAX_DURATION
1966
+ );
1967
+ bglSlider.value.style.transition = `transform ${duration}ms cubic-bezier(0.4, 0, 0.2, 1)`;
1968
+ const gapsBeforeSlide = targetPanel * gapWidth;
1969
+ const targetTransform = -(singleItemWidth * targetPanel + gapsBeforeSlide);
1970
+ setTransform(targetTransform);
1971
+ setTimeout(() => {
1972
+ if (bglSlider.value) bglSlider.value.style.transition = "none";
1973
+ }, duration);
1974
+ velocityTracker.value = [];
1975
+ isDragging.value = false;
1976
+ hasScrollDirectionLock.value = false;
1977
+ }
1978
+ function onWheel(e) {
1979
+ if (!props2.allowScroll || !isSliderAvailable.value || !bglSlider.value || isPressed.value || isDragging.value) return;
1980
+ const isHorizontal = Math.abs(e.deltaX) > Math.abs(e.deltaY);
1981
+ if (!isHorizontal) return;
1982
+ clearAutoplay();
1983
+ if (wheelTimeout) clearTimeout(wheelTimeout);
1984
+ accumulatedDeltaX.value += props2.rtl ? -e.deltaX : e.deltaX;
1985
+ wheelTimeout = setTimeout(() => {
1986
+ accumulatedDeltaX.value = 0;
1987
+ }, 50);
1988
+ const singleItemWidth = bglSlider.value.offsetWidth / itemCount.value;
1989
+ const moveThreshold = singleItemWidth * THRESHOLDS.WHEEL_PERCENT;
1990
+ if (Math.abs(accumulatedDeltaX.value) > moveThreshold) {
1991
+ const direction = accumulatedDeltaX.value > 0 ? 1 : -1;
1992
+ const nextPanel = Math.max(0, Math.min(activeSlideIndex.value + direction, slideCount.value - 1));
1993
+ if (nextPanel !== activeSlideIndex.value) {
1994
+ goToSlide(nextPanel, true);
1995
+ accumulatedDeltaX.value = 0;
1996
+ }
1913
1997
  }
1914
1998
  }
1915
- function goTo(index2) {
1916
- if (innerElements.value.length <= perPage.value) {
1917
- return;
1918
- }
1919
- const beforeChange = currentSlide.value;
1920
- currentSlide.value = config.value.loop ? index2 % innerElements.value.length : Math.min(Math.max(index2, 0), innerElements.value.length - perPage.value);
1921
- if (beforeChange !== currentSlide.value) {
1922
- slideToCurrent();
1923
- config.value.onChange();
1999
+ onMounted(() => {
2000
+ window.addEventListener("resize", handleResize);
2001
+ updateHeight();
2002
+ handleResize();
2003
+ countSlides();
2004
+ disableDrag();
2005
+ if (bglSlider.value) {
2006
+ slideCount.value = bglSlider.value.children.length;
1924
2007
  }
1925
- }
1926
- function disableTransition() {
1927
- if (sliderFrame.value) {
1928
- sliderFrame.value.style.webkitTransition = `all 0ms ${config.value.easing}`;
1929
- sliderFrame.value.style.transition = `all 0ms ${config.value.easing}`;
2008
+ if (props2.autoplay) {
2009
+ autoPlayInterval = setInterval(next, props2.autoPlaySpeed);
1930
2010
  }
1931
- }
1932
- function enableTransition() {
1933
- if (sliderFrame.value) {
1934
- sliderFrame.value.style.webkitTransition = `all ${config.value.duration}ms ${config.value.easing}`;
1935
- sliderFrame.value.style.transition = `all ${config.value.duration}ms ${config.value.easing}`;
2011
+ });
2012
+ onUnmounted(() => {
2013
+ if (isSliderAvailable.value && bglSlider.value) {
2014
+ Array.from(bglSlider.value.children).forEach((child) => {
2015
+ const element = child;
2016
+ element.removeEventListener("click", preventDefaultClick);
2017
+ });
1936
2018
  }
2019
+ window.removeEventListener("resize", handleResize);
2020
+ document.removeEventListener("mousemove", onDrag);
2021
+ document.removeEventListener("mouseup", endDrag);
2022
+ clearAutoplay();
2023
+ if (wheelTimeout) clearTimeout(wheelTimeout);
2024
+ });
2025
+ watch(() => props2.index, (newIndex2) => {
2026
+ goToSlide(newIndex2);
2027
+ });
2028
+ watch(() => activeSlideIndex.value, handleSlideChange);
2029
+ __expose({
2030
+ goToSlide,
2031
+ next,
2032
+ prev,
2033
+ countSlides,
2034
+ clearAutoplay
2035
+ });
2036
+ return (_ctx, _cache) => {
2037
+ return openBlock(), createElementBlock("div", {
2038
+ class: "BglCarousel",
2039
+ dir: __props.rtl ? "rtl" : "ltr"
2040
+ }, [
2041
+ createElementVNode("div", {
2042
+ ref_key: "bglSlider",
2043
+ ref: bglSlider,
2044
+ class: normalizeClass(["bgl-slider", { dragging: unref(isDragging), clicking: unref(isPressed), [`slides-${unref(itemCount)}`]: true, grab: __props.freeDrag && unref(slideCount) > 1, autoHeight: __props.autoHeight }]),
2045
+ style: normalizeStyle({ "--item-count": unref(itemCount), "height": unref(yHeight) }),
2046
+ onMousedown: startDrag,
2047
+ onMouseover: clearAutoplay,
2048
+ onFocusin: clearAutoplay,
2049
+ onTouchstart: onTouchStart,
2050
+ onTouchmove: onTouchMove,
2051
+ onTouchend: onTouchEnd,
2052
+ onWheel
2053
+ }, [
2054
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
2055
+ ], 38),
2056
+ props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
2057
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(slideCount), (i2) => {
2058
+ return openBlock(), createElementBlock("span", {
2059
+ key: i2,
2060
+ class: normalizeClass(["dot", { current: unref(activeSlideIndex) === i2 - 1 }]),
2061
+ onClick: ($event) => goToSlide(i2 - 1)
2062
+ }, null, 10, _hoisted_3$z);
2063
+ }), 128))
2064
+ ])) : createCommentVNode("", true),
2065
+ createElementVNode("div", {
2066
+ class: normalizeClass(["navigation-buttons", { rtl: __props.rtl }])
2067
+ }, [
2068
+ createElementVNode("span", {
2069
+ class: "prev",
2070
+ onClick: prev
2071
+ }, [
2072
+ renderSlot(_ctx.$slots, "prev", {
2073
+ index: unref(activeSlideIndex),
2074
+ prev
2075
+ }, void 0, true)
2076
+ ]),
2077
+ createElementVNode("span", {
2078
+ class: "next",
2079
+ onClick: next
2080
+ }, [
2081
+ renderSlot(_ctx.$slots, "next", {
2082
+ index: unref(activeSlideIndex),
2083
+ next
2084
+ }, void 0, true)
2085
+ ])
2086
+ ], 2)
2087
+ ], 8, _hoisted_1$T);
2088
+ };
2089
+ }
2090
+ });
2091
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-406c405d"]]);
2092
+ function _isPlaceholder(a2) {
2093
+ return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
2094
+ }
2095
+ function _curry1(fn) {
2096
+ return function f1(a2) {
2097
+ if (arguments.length === 0 || _isPlaceholder(a2)) {
2098
+ return f1;
2099
+ } else {
2100
+ return fn.apply(this, arguments);
1937
2101
  }
1938
- function updateAfterDrag() {
1939
- const movement = (config.value.rtl ? -1 : 1) * (drag.value.endX - drag.value.startX);
1940
- const movementDistance = Math.abs(movement);
1941
- const howManySliderToSlide = config.value.multipleDrag ? Math.ceil(movementDistance / (selectorWidth.value / perPage.value)) : 1;
1942
- const slideToNegativeClone = movement > 0 && currentSlide.value - howManySliderToSlide < 0;
1943
- const slideToPositiveClone = movement < 0 && currentSlide.value + howManySliderToSlide > innerElements.value.length - perPage.value;
1944
- if (movement > 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
1945
- prev(howManySliderToSlide);
1946
- } else if (movement < 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
1947
- next(howManySliderToSlide);
1948
- }
1949
- slideToCurrent(slideToNegativeClone || slideToPositiveClone);
2102
+ };
2103
+ }
2104
+ function _curry2(fn) {
2105
+ return function f2(a2, b2) {
2106
+ switch (arguments.length) {
2107
+ case 0:
2108
+ return f2;
2109
+ case 1:
2110
+ return _isPlaceholder(a2) ? f2 : _curry1(function(_b) {
2111
+ return fn(a2, _b);
2112
+ });
2113
+ default:
2114
+ return _isPlaceholder(a2) && _isPlaceholder(b2) ? f2 : _isPlaceholder(a2) ? _curry1(function(_a) {
2115
+ return fn(_a, b2);
2116
+ }) : _isPlaceholder(b2) ? _curry1(function(_b) {
2117
+ return fn(a2, _b);
2118
+ }) : fn(a2, b2);
1950
2119
  }
1951
- function resizeHandler() {
1952
- if (currentSlide.value + perPage.value > innerElements.value.length) {
1953
- currentSlide.value = innerElements.value.length <= perPage.value ? 0 : innerElements.value.length - perPage.value;
2120
+ };
2121
+ }
2122
+ function _arity(n2, fn) {
2123
+ switch (n2) {
2124
+ case 0:
2125
+ return function() {
2126
+ return fn.apply(this, arguments);
2127
+ };
2128
+ case 1:
2129
+ return function(a0) {
2130
+ return fn.apply(this, arguments);
2131
+ };
2132
+ case 2:
2133
+ return function(a0, a1) {
2134
+ return fn.apply(this, arguments);
2135
+ };
2136
+ case 3:
2137
+ return function(a0, a1, a2) {
2138
+ return fn.apply(this, arguments);
2139
+ };
2140
+ case 4:
2141
+ return function(a0, a1, a2, a3) {
2142
+ return fn.apply(this, arguments);
2143
+ };
2144
+ case 5:
2145
+ return function(a0, a1, a2, a3, a4) {
2146
+ return fn.apply(this, arguments);
2147
+ };
2148
+ case 6:
2149
+ return function(a0, a1, a2, a3, a4, a5) {
2150
+ return fn.apply(this, arguments);
2151
+ };
2152
+ case 7:
2153
+ return function(a0, a1, a2, a3, a4, a5, a6) {
2154
+ return fn.apply(this, arguments);
2155
+ };
2156
+ case 8:
2157
+ return function(a0, a1, a2, a3, a4, a5, a6, a7) {
2158
+ return fn.apply(this, arguments);
2159
+ };
2160
+ case 9:
2161
+ return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) {
2162
+ return fn.apply(this, arguments);
2163
+ };
2164
+ case 10:
2165
+ return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
2166
+ return fn.apply(this, arguments);
2167
+ };
2168
+ default:
2169
+ throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
2170
+ }
2171
+ }
2172
+ function _curryN(length, received, fn) {
2173
+ return function() {
2174
+ var combined = [];
2175
+ var argsIdx = 0;
2176
+ var left2 = length;
2177
+ var combinedIdx = 0;
2178
+ while (combinedIdx < received.length || argsIdx < arguments.length) {
2179
+ var result2;
2180
+ if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {
2181
+ result2 = received[combinedIdx];
2182
+ } else {
2183
+ result2 = arguments[argsIdx];
2184
+ argsIdx += 1;
1954
2185
  }
1955
- if (carouselRef.value) {
1956
- selectorWidth.value = carouselRef.value.offsetWidth;
1957
- }
1958
- buildSliderFrame();
1959
- }
1960
- function clearDrag() {
1961
- drag.value = {
1962
- startX: 0,
1963
- endX: 0,
1964
- startY: 0,
1965
- letItGo: null,
1966
- preventClick: drag.value.preventClick
1967
- };
1968
- }
1969
- function touchstartHandler(e) {
1970
- const target = e.target;
1971
- const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
1972
- if (ignoreTags) {
1973
- return;
1974
- }
1975
- stopAutoplay();
1976
- e.stopPropagation();
1977
- pointerDown.value = true;
1978
- isDragging.value = false;
1979
- drag.value.startX = e.touches[0].pageX;
1980
- drag.value.startY = e.touches[0].pageY;
1981
- const isLink = target.tagName === "A" || target.closest("a");
1982
- const isImage = target.tagName === "IMG";
1983
- if (isLink || isImage) {
1984
- drag.value.preventClick = false;
1985
- }
1986
- }
1987
- function touchendHandler(e) {
1988
- e.stopPropagation();
1989
- if (isDragging.value) {
1990
- document.addEventListener("click", function preventClickAfterDrag(event) {
1991
- event.preventDefault();
1992
- event.stopPropagation();
1993
- event.stopImmediatePropagation();
1994
- document.removeEventListener("click", preventClickAfterDrag, true);
1995
- }, { capture: true, once: true });
1996
- }
1997
- pointerDown.value = false;
1998
- isDragging.value = false;
1999
- enableTransition();
2000
- if (drag.value.endX) {
2001
- updateAfterDrag();
2002
- }
2003
- clearDrag();
2004
- if (config.value.autoplay !== "disabled") {
2005
- startAutoplay();
2006
- }
2007
- }
2008
- function touchmoveHandler(e) {
2009
- e.stopPropagation();
2010
- if (drag.value.letItGo === null) {
2011
- drag.value.letItGo = Math.abs(drag.value.startY - e.touches[0].pageY) < Math.abs(drag.value.startX - e.touches[0].pageX);
2012
- }
2013
- if (pointerDown.value && drag.value.letItGo) {
2014
- e.preventDefault();
2015
- drag.value.endX = e.touches[0].pageX;
2016
- const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
2017
- if (dragDistance > dragThreshold) {
2018
- isDragging.value = true;
2019
- drag.value.preventClick = true;
2020
- }
2021
- if (sliderFrame.value) {
2022
- disableTransition();
2023
- const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
2024
- const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
2025
- const dragOffset = drag.value.endX - drag.value.startX;
2026
- const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
2027
- sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
2028
- }
2029
- }
2030
- }
2031
- function mousedownHandler(e) {
2032
- const target = e.target;
2033
- const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
2034
- if (ignoreTags) return;
2035
- stopAutoplay();
2036
- e.preventDefault();
2037
- e.stopPropagation();
2038
- pointerDown.value = true;
2039
- isDragging.value = false;
2040
- drag.value.startX = e.pageX;
2041
- const isLink = target.tagName === "A" || target.closest("a");
2042
- const isImage = target.tagName === "IMG";
2043
- if (isLink || isImage) {
2044
- drag.value.preventClick = false;
2045
- }
2046
- }
2047
- function mouseupHandler(e) {
2048
- e.stopPropagation();
2049
- if (isDragging.value) {
2050
- document.addEventListener("click", function preventClickAfterDrag(event) {
2051
- event.preventDefault();
2052
- event.stopPropagation();
2053
- event.stopImmediatePropagation();
2054
- document.removeEventListener("click", preventClickAfterDrag, true);
2055
- }, { capture: true, once: true });
2056
- }
2057
- pointerDown.value = false;
2058
- isDragging.value = false;
2059
- if (carouselRef.value) {
2060
- carouselRef.value.style.cursor = "-webkit-grab";
2061
- }
2062
- enableTransition();
2063
- if (drag.value.endX) {
2064
- updateAfterDrag();
2065
- }
2066
- clearDrag();
2067
- if (config.value.autoplay !== "disabled" && !isHovering.value) {
2068
- startAutoplay();
2069
- }
2070
- }
2071
- function mousemoveHandler(e) {
2072
- e.preventDefault();
2073
- if (pointerDown.value) {
2074
- drag.value.endX = e.pageX;
2075
- const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
2076
- if (dragDistance > dragThreshold) {
2077
- isDragging.value = true;
2078
- drag.value.preventClick = true;
2079
- }
2080
- if (carouselRef.value) {
2081
- carouselRef.value.style.cursor = "-webkit-grabbing";
2082
- }
2083
- if (sliderFrame.value) {
2084
- disableTransition();
2085
- const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
2086
- const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
2087
- const dragOffset = drag.value.endX - drag.value.startX;
2088
- const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
2089
- sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
2090
- }
2091
- }
2092
- }
2093
- function mouseleaveHandler(e) {
2094
- if (pointerDown.value) {
2095
- pointerDown.value = false;
2096
- if (carouselRef.value) {
2097
- carouselRef.value.style.cursor = "-webkit-grab";
2098
- }
2099
- drag.value.endX = e.pageX;
2100
- drag.value.preventClick = false;
2101
- enableTransition();
2102
- updateAfterDrag();
2103
- clearDrag();
2104
- }
2105
- }
2106
- function clickHandler2(e) {
2107
- if (drag.value.preventClick || isDragging.value) {
2108
- e.preventDefault();
2109
- e.stopPropagation();
2110
- e.stopImmediatePropagation();
2111
- drag.value.preventClick = false;
2112
- }
2113
- drag.value.preventClick = false;
2114
- }
2115
- function dragstartHandler(e) {
2116
- var _a;
2117
- if (config.value.draggable) {
2118
- const target = e.target;
2119
- const isDraggableElement = target.tagName === "IMG" || target.tagName === "A" || ((_a = target.parentElement) == null ? void 0 : _a.tagName) === "A";
2120
- if (isDraggableElement) {
2121
- e.preventDefault();
2122
- }
2123
- }
2124
- }
2125
- function remove2(index2) {
2126
- if (index2 < 0 || index2 >= innerElements.value.length) {
2127
- throw new Error("Item to remove doesn't exist 😭");
2128
- }
2129
- const lowerIndex = index2 < currentSlide.value;
2130
- const lastItem = currentSlide.value + perPage.value - 1 === index2;
2131
- if (lowerIndex || lastItem) {
2132
- currentSlide.value--;
2133
- }
2134
- innerElements.value.splice(index2, 1);
2135
- buildSliderFrame();
2136
- }
2137
- function insert(item, index2) {
2138
- if (index2 < 0 || index2 > innerElements.value.length + 1) {
2139
- throw new Error("Unable to insert at this index 😭");
2140
- }
2141
- if (innerElements.value.includes(item)) {
2142
- throw new Error("The same item in a carousel? Really? Nope 😭");
2143
- }
2144
- const shouldItShift = index2 <= currentSlide.value && innerElements.value.length > 0;
2145
- if (shouldItShift) {
2146
- currentSlide.value++;
2147
- }
2148
- innerElements.value.splice(index2, 0, item);
2149
- buildSliderFrame();
2150
- }
2151
- function prepend(item) {
2152
- insert(item, 0);
2153
- }
2154
- function append3(item) {
2155
- insert(item, innerElements.value.length);
2156
- }
2157
- function destroy2(restoreMarkup = false) {
2158
- detachEvents();
2159
- if (carouselRef.value) {
2160
- carouselRef.value.style.cursor = "auto";
2161
- if (restoreMarkup) {
2162
- const slides = document.createDocumentFragment();
2163
- for (let i2 = 0; i2 < innerElements.value.length; i2++) {
2164
- slides.appendChild(innerElements.value[i2]);
2165
- }
2166
- carouselRef.value.innerHTML = "";
2167
- carouselRef.value.appendChild(slides);
2168
- carouselRef.value.removeAttribute("style");
2169
- }
2170
- }
2171
- }
2172
- async function startAutoplay() {
2173
- stopAutoplay();
2174
- if (config.value.autoplay === "standard") {
2175
- autoplayTimer.value = window.setInterval(() => {
2176
- if (!isHovering.value) {
2177
- next();
2178
- }
2179
- }, config.value.autoplayInterval);
2180
- } else if (config.value.autoplay === "linear") {
2181
- startLinearAutoplay();
2182
- }
2183
- }
2184
- function stopAutoplay() {
2185
- if (autoplayTimer.value !== null) {
2186
- clearInterval(autoplayTimer.value);
2187
- autoplayTimer.value = null;
2188
- }
2189
- if (linearAnimationFrame.value !== null) {
2190
- cancelAnimationFrame(linearAnimationFrame.value);
2191
- linearAnimationFrame.value = null;
2192
- }
2193
- }
2194
- function startLinearAutoplay() {
2195
- linearOffset.value = 0;
2196
- let lastTimestamp = 0;
2197
- const animate = (timestamp2) => {
2198
- if (!lastTimestamp) lastTimestamp = timestamp2;
2199
- const elapsed = timestamp2 - lastTimestamp;
2200
- lastTimestamp = timestamp2;
2201
- if (isHovering.value) {
2202
- linearAnimationFrame.value = requestAnimationFrame(animate);
2203
- return;
2204
- }
2205
- const pixelsToMove = elapsed / 1e3 * config.value.autoplaySpeed;
2206
- linearOffset.value += pixelsToMove;
2207
- const itemWidth = selectorWidth.value / perPage.value;
2208
- const totalWidth = itemWidth * innerElements.value.length;
2209
- if (linearOffset.value >= totalWidth) {
2210
- if (config.value.loop) {
2211
- linearOffset.value = 0;
2212
- } else {
2213
- linearOffset.value = totalWidth - itemWidth;
2214
- stopAutoplay();
2215
- return;
2216
- }
2217
- }
2218
- if (sliderFrame.value) {
2219
- const direction = config.value.rtl ? 1 : -1;
2220
- sliderFrame.value.style.transition = "none";
2221
- sliderFrame.value.style[transformProperty.value] = `translate3d(${direction * linearOffset.value}px, 0, 0)`;
2222
- }
2223
- const newSlide = Math.floor(linearOffset.value / itemWidth) % innerElements.value.length;
2224
- if (newSlide !== currentSlide.value) {
2225
- currentSlide.value = newSlide;
2226
- config.value.onChange();
2227
- }
2228
- linearAnimationFrame.value = requestAnimationFrame(animate);
2229
- };
2230
- linearAnimationFrame.value = requestAnimationFrame(animate);
2231
- }
2232
- function mouseenterHandler() {
2233
- isHovering.value = true;
2234
- }
2235
- function mouseleaveAutoplayHandler() {
2236
- isHovering.value = false;
2237
- }
2238
- function pauseAutoplay() {
2239
- stopAutoplay();
2240
- }
2241
- function resumeAutoplay() {
2242
- if (config.value.autoplay !== "disabled") {
2243
- startAutoplay();
2244
- }
2245
- }
2246
- __expose({
2247
- prev,
2248
- next,
2249
- goTo,
2250
- remove: remove2,
2251
- insert,
2252
- prepend,
2253
- append: append3,
2254
- destroy: destroy2,
2255
- currentSlide,
2256
- pauseAutoplay,
2257
- resumeAutoplay
2258
- });
2259
- return (_ctx, _cache) => {
2260
- return openBlock(), createElementBlock("div", _hoisted_1$S, [
2261
- createElementVNode("div", {
2262
- ref_key: "carouselRef",
2263
- ref: carouselRef,
2264
- class: "carousel-container"
2265
- }, [
2266
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
2267
- ], 512),
2268
- props2.dots && totalDots.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
2269
- (openBlock(true), createElementBlock(Fragment, null, renderList(totalDots.value, (i2) => {
2270
- return openBlock(), createElementBlock("button", {
2271
- key: i2,
2272
- type: "button",
2273
- class: normalizeClass(["carousel-dot", [{ active: i2 - 1 === currentSlide.value }]]),
2274
- "aria-label": `Go to slide ${i2}`,
2275
- onClick: ($event) => goTo(i2 - 1)
2276
- }, null, 10, _hoisted_3$y);
2277
- }), 128))
2278
- ])) : createCommentVNode("", true)
2279
- ]);
2280
- };
2281
- }
2282
- });
2283
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-6de4176c"]]);
2284
- function _isPlaceholder(a2) {
2285
- return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
2286
- }
2287
- function _curry1(fn) {
2288
- return function f1(a2) {
2289
- if (arguments.length === 0 || _isPlaceholder(a2)) {
2290
- return f1;
2291
- } else {
2292
- return fn.apply(this, arguments);
2293
- }
2294
- };
2295
- }
2296
- function _curry2(fn) {
2297
- return function f2(a2, b2) {
2298
- switch (arguments.length) {
2299
- case 0:
2300
- return f2;
2301
- case 1:
2302
- return _isPlaceholder(a2) ? f2 : _curry1(function(_b) {
2303
- return fn(a2, _b);
2304
- });
2305
- default:
2306
- return _isPlaceholder(a2) && _isPlaceholder(b2) ? f2 : _isPlaceholder(a2) ? _curry1(function(_a) {
2307
- return fn(_a, b2);
2308
- }) : _isPlaceholder(b2) ? _curry1(function(_b) {
2309
- return fn(a2, _b);
2310
- }) : fn(a2, b2);
2311
- }
2312
- };
2313
- }
2314
- function _arity(n2, fn) {
2315
- switch (n2) {
2316
- case 0:
2317
- return function() {
2318
- return fn.apply(this, arguments);
2319
- };
2320
- case 1:
2321
- return function(a0) {
2322
- return fn.apply(this, arguments);
2323
- };
2324
- case 2:
2325
- return function(a0, a1) {
2326
- return fn.apply(this, arguments);
2327
- };
2328
- case 3:
2329
- return function(a0, a1, a2) {
2330
- return fn.apply(this, arguments);
2331
- };
2332
- case 4:
2333
- return function(a0, a1, a2, a3) {
2334
- return fn.apply(this, arguments);
2335
- };
2336
- case 5:
2337
- return function(a0, a1, a2, a3, a4) {
2338
- return fn.apply(this, arguments);
2339
- };
2340
- case 6:
2341
- return function(a0, a1, a2, a3, a4, a5) {
2342
- return fn.apply(this, arguments);
2343
- };
2344
- case 7:
2345
- return function(a0, a1, a2, a3, a4, a5, a6) {
2346
- return fn.apply(this, arguments);
2347
- };
2348
- case 8:
2349
- return function(a0, a1, a2, a3, a4, a5, a6, a7) {
2350
- return fn.apply(this, arguments);
2351
- };
2352
- case 9:
2353
- return function(a0, a1, a2, a3, a4, a5, a6, a7, a8) {
2354
- return fn.apply(this, arguments);
2355
- };
2356
- case 10:
2357
- return function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
2358
- return fn.apply(this, arguments);
2359
- };
2360
- default:
2361
- throw new Error("First argument to _arity must be a non-negative integer no greater than ten");
2362
- }
2363
- }
2364
- function _curryN(length, received, fn) {
2365
- return function() {
2366
- var combined = [];
2367
- var argsIdx = 0;
2368
- var left2 = length;
2369
- var combinedIdx = 0;
2370
- while (combinedIdx < received.length || argsIdx < arguments.length) {
2371
- var result2;
2372
- if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {
2373
- result2 = received[combinedIdx];
2374
- } else {
2375
- result2 = arguments[argsIdx];
2376
- argsIdx += 1;
2377
- }
2378
- combined[combinedIdx] = result2;
2379
- if (!_isPlaceholder(result2)) {
2380
- left2 -= 1;
2186
+ combined[combinedIdx] = result2;
2187
+ if (!_isPlaceholder(result2)) {
2188
+ left2 -= 1;
2381
2189
  }
2382
2190
  combinedIdx += 1;
2383
2191
  }
@@ -8114,7 +7922,7 @@ const _hoisted_1$1$1 = {
8114
7922
  style: { display: "flex", position: "relative" }
8115
7923
  };
8116
7924
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
8117
- const _hoisted_3$x = { class: "layer-rectangles" };
7925
+ const _hoisted_3$y = { class: "layer-rectangles" };
8118
7926
  const _hoisted_4$m = ["transform", "onMouseover"];
8119
7927
  const _hoisted_5$m = ["width", "height"];
8120
7928
  const _hoisted_6$j = {
@@ -8132,7 +7940,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
8132
7940
  viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
8133
7941
  ref: "el"
8134
7942
  }, [
8135
- createElementVNode("g", _hoisted_3$x, [
7943
+ createElementVNode("g", _hoisted_3$y, [
8136
7944
  (openBlock(true), createElementBlock(
8137
7945
  Fragment,
8138
7946
  null,
@@ -8224,25 +8032,25 @@ var script = defineComponent({
8224
8032
  return { bar, canvas, direction, mouse };
8225
8033
  }
8226
8034
  });
8227
- const _hoisted_1$R = {
8035
+ const _hoisted_1$S = {
8228
8036
  key: 0,
8229
8037
  class: "layer-hover-bar"
8230
8038
  };
8231
- const _hoisted_2$D = ["x", "y", "width", "height"];
8039
+ const _hoisted_2$E = ["x", "y", "width", "height"];
8232
8040
  function render(_ctx, _cache, $props, $setup, $data, $options) {
8233
- return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$R, [
8041
+ return _ctx.mouse.hover ? (openBlock(), createElementBlock("g", _hoisted_1$S, [
8234
8042
  createElementVNode("rect", mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
8235
8043
  x: _ctx.bar.x,
8236
8044
  y: _ctx.bar.y,
8237
8045
  width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
8238
8046
  height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
8239
- }), null, 16, _hoisted_2$D)
8047
+ }), null, 16, _hoisted_2$E)
8240
8048
  ])) : createCommentVNode("v-if", true);
8241
8049
  }
8242
8050
  script.render = render;
8243
8051
  script.__file = "src/components/HoverBar/index.vue";
8244
8052
  const BRAND_COLOR = "var(--bgl-primary)";
8245
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8053
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
8246
8054
  __name: "Lineart",
8247
8055
  props: {
8248
8056
  data: {},
@@ -8410,8 +8218,8 @@ ${indent}}`;
8410
8218
  text: TextInput,
8411
8219
  textarea: TextInput,
8412
8220
  number: NumberInput,
8413
- array: _sfc_main$S,
8414
- color: _sfc_main$O,
8221
+ array: _sfc_main$T,
8222
+ color: _sfc_main$P,
8415
8223
  tel: TelInput,
8416
8224
  select: SelectInput,
8417
8225
  toggle: ToggleInput,
@@ -8419,9 +8227,9 @@ ${indent}}`;
8419
8227
  richtext: RichText,
8420
8228
  upload: UploadInput,
8421
8229
  file: UploadInput,
8422
- date: _sfc_main$M,
8230
+ date: _sfc_main$N,
8423
8231
  tabs: TabsNav,
8424
- form: _sfc_main$U,
8232
+ form: _sfc_main$V,
8425
8233
  range: RangeInput,
8426
8234
  email: EmailInput
8427
8235
  };
@@ -8718,12 +8526,12 @@ function useTableData(options) {
8718
8526
  schemaState: computed(() => schemaState.value)
8719
8527
  };
8720
8528
  }
8721
- const _hoisted_1$Q = { class: "data-preview" };
8722
- const _hoisted_2$C = {
8529
+ const _hoisted_1$R = { class: "data-preview" };
8530
+ const _hoisted_2$D = {
8723
8531
  key: 1,
8724
8532
  class: "empty-preview"
8725
8533
  };
8726
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8534
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8727
8535
  __name: "DataPreview",
8728
8536
  props: {
8729
8537
  schema: { type: Function },
@@ -8765,17 +8573,17 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
8765
8573
  onUpdateModelValue: void 0
8766
8574
  });
8767
8575
  return (_ctx, _cache) => {
8768
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
8576
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
8769
8577
  unref(computedSchema) && unref(computedSchema).length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(computedSchema), (field) => {
8770
8578
  return openBlock(), createBlock(resolveDynamicComponent(unref(renderField)(field, unref(slots))), {
8771
8579
  key: field.id
8772
8580
  });
8773
- }), 128)) : (openBlock(), createElementBlock("div", _hoisted_2$C, " No data to display "))
8581
+ }), 128)) : (openBlock(), createElementBlock("div", _hoisted_2$D, " No data to display "))
8774
8582
  ]);
8775
8583
  };
8776
8584
  }
8777
8585
  });
8778
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-430b1998"]]);
8586
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-430b1998"]]);
8779
8587
  function useTableSelection(options) {
8780
8588
  const allSelectorEl = ref();
8781
8589
  const computedSelectedItems = computed(() => options.selectedItems.value);
@@ -9712,15 +9520,15 @@ function useTableVirtualization(options) {
9712
9520
  registerLastItemObserver
9713
9521
  };
9714
9522
  }
9715
- const _hoisted_1$P = {
9523
+ const _hoisted_1$Q = {
9716
9524
  key: 0,
9717
9525
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
9718
9526
  };
9719
- const _hoisted_2$B = {
9527
+ const _hoisted_2$C = {
9720
9528
  key: 1,
9721
9529
  class: "flex-center h-300px txt-red"
9722
9530
  };
9723
- const _hoisted_3$w = { class: "infinite-wrapper" };
9531
+ const _hoisted_3$x = { class: "infinite-wrapper" };
9724
9532
  const _hoisted_4$l = { class: "row first-row" };
9725
9533
  const _hoisted_5$l = { key: 0 };
9726
9534
  const _hoisted_6$i = ["onClick"];
@@ -9729,7 +9537,7 @@ const _hoisted_8$8 = ["onClick"];
9729
9537
  const _hoisted_9$5 = { key: 0 };
9730
9538
  const _hoisted_10$5 = ["value"];
9731
9539
  const _hoisted_11$5 = { key: 1 };
9732
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9540
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
9733
9541
  __name: "DataTable",
9734
9542
  props: /* @__PURE__ */ mergeModels({
9735
9543
  data: {},
@@ -9850,13 +9658,13 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9850
9658
  return openBlock(), createElementBlock("div", mergeProps({ class: "table-list-wrap h-100" }, unref(containerProps), {
9851
9659
  class: { "loading-table": showLoading.value }
9852
9660
  }), [
9853
- showLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1$P, _cache[4] || (_cache[4] = [
9661
+ showLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1$Q, _cache[4] || (_cache[4] = [
9854
9662
  createElementVNode("div", { class: "loading-table-animation fixed oval top-7" }, null, -1)
9855
- ]))) : unref(schemaState) === "error" ? (openBlock(), createElementBlock("div", _hoisted_2$B, " Error loading table schema ")) : createCommentVNode("", true),
9663
+ ]))) : unref(schemaState) === "error" ? (openBlock(), createElementBlock("div", _hoisted_2$C, " Error loading table schema ")) : createCommentVNode("", true),
9856
9664
  createElementVNode("div", mergeProps(unref(wrapperProps), {
9857
9665
  class: { "pointer-events-none": showLoading.value }
9858
9666
  }), [
9859
- createElementVNode("table", _hoisted_3$w, [
9667
+ createElementVNode("table", _hoisted_3$x, [
9860
9668
  createElementVNode("thead", _hoisted_4$l, [
9861
9669
  unref(isSelectable) ? (openBlock(), createElementBlock("th", _hoisted_5$l, [
9862
9670
  createElementVNode("input", {
@@ -9879,7 +9687,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9879
9687
  createElementVNode("div", {
9880
9688
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === (field == null ? void 0 : field.id) }])
9881
9689
  }, [
9882
- createVNode(unref(_sfc_main$s), {
9690
+ createVNode(unref(_sfc_main$t), {
9883
9691
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
9884
9692
  icon: "keyboard_arrow_up"
9885
9693
  }, null, 8, ["class"])
@@ -9938,7 +9746,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
9938
9746
  };
9939
9747
  }
9940
9748
  });
9941
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-382d1c94"]]);
9749
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-382d1c94"]]);
9942
9750
  function useDraggable(options = {}) {
9943
9751
  const isDragging = ref(false);
9944
9752
  const dragElement = ref(null);
@@ -10413,7 +10221,7 @@ function useDraggable(options = {}) {
10413
10221
  initDraggableContainer
10414
10222
  };
10415
10223
  }
10416
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
10224
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
10417
10225
  __name: "Draggable",
10418
10226
  props: {
10419
10227
  modelValue: {},
@@ -13033,7 +12841,7 @@ const Gt = {
13033
12841
  install: Ct,
13034
12842
  options: h
13035
12843
  };
13036
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
12844
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
13037
12845
  __name: "Dropdown",
13038
12846
  props: /* @__PURE__ */ mergeModels({
13039
12847
  value: {},
@@ -13127,9 +12935,9 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
13127
12935
  };
13128
12936
  }
13129
12937
  });
13130
- const _hoisted_1$O = { class: "px-1 pt-025 pb-1" };
13131
- const _hoisted_2$A = { class: "ms-1" };
13132
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
12938
+ const _hoisted_1$P = { class: "px-1 pt-025 pb-1" };
12939
+ const _hoisted_2$B = { class: "ms-1" };
12940
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
13133
12941
  __name: "FieldSetVue",
13134
12942
  props: {
13135
12943
  label: {},
@@ -13137,15 +12945,15 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
13137
12945
  },
13138
12946
  setup(__props) {
13139
12947
  return (_ctx, _cache) => {
13140
- return openBlock(), createElementBlock("fieldset", _hoisted_1$O, [
13141
- createElementVNode("legend", _hoisted_2$A, toDisplayString(_ctx.legend || _ctx.label), 1),
12948
+ return openBlock(), createElementBlock("fieldset", _hoisted_1$P, [
12949
+ createElementVNode("legend", _hoisted_2$B, toDisplayString(_ctx.legend || _ctx.label), 1),
13142
12950
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
13143
12951
  ]);
13144
12952
  };
13145
12953
  }
13146
12954
  });
13147
- const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f7e758e5"]]);
13148
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
12955
+ const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-f7e758e5"]]);
12956
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
13149
12957
  __name: "Flag",
13150
12958
  props: {
13151
12959
  country: {},
@@ -13175,7 +12983,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
13175
12983
  };
13176
12984
  }
13177
12985
  });
13178
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-f99f1900"]]);
12986
+ const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f99f1900"]]);
13179
12987
  function getBaseField(id, labelOrRest = {}, rest = {}) {
13180
12988
  if (typeof labelOrRest === "object") return { id, ...labelOrRest };
13181
12989
  return { id, label: labelOrRest, ...rest };
@@ -13656,8 +13464,8 @@ function getNestedValue(obj, path, defaultValue = void 0) {
13656
13464
  }
13657
13465
  return current ?? defaultValue;
13658
13466
  }
13659
- const _hoisted_1$N = { class: "flex-center h-300px" };
13660
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
13467
+ const _hoisted_1$O = { class: "flex-center h-300px" };
13468
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
13661
13469
  __name: "BagelForm",
13662
13470
  props: {
13663
13471
  modelValue: { default: void 0 },
@@ -13791,7 +13599,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
13791
13599
  onInput: handleSlotInputChange
13792
13600
  }, [
13793
13601
  schemaState.value === "loading" ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
13794
- createElementVNode("div", _hoisted_1$N, [
13602
+ createElementVNode("div", _hoisted_1$O, [
13795
13603
  createVNode(unref(Loading))
13796
13604
  ])
13797
13605
  ]) : schemaState.value === "error" ? renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
@@ -13830,12 +13638,12 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
13830
13638
  };
13831
13639
  }
13832
13640
  });
13833
- const _hoisted_1$M = { class: "bgl-multi-step-form" };
13834
- const _hoisted_2$z = {
13641
+ const _hoisted_1$N = { class: "bgl-multi-step-form" };
13642
+ const _hoisted_2$A = {
13835
13643
  key: 0,
13836
13644
  class: "bgl-step-progress"
13837
13645
  };
13838
- const _hoisted_3$v = { class: "bgl-steps-indicator" };
13646
+ const _hoisted_3$w = { class: "bgl-steps-indicator" };
13839
13647
  const _hoisted_4$k = ["onClick"];
13840
13648
  const _hoisted_5$k = {
13841
13649
  key: 0,
@@ -13843,7 +13651,7 @@ const _hoisted_5$k = {
13843
13651
  };
13844
13652
  const _hoisted_6$h = { class: "bgl-form-wrapper" };
13845
13653
  const _hoisted_7$c = { class: "bgl-step-controls" };
13846
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
13654
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
13847
13655
  __name: "BglMultiStepForm",
13848
13656
  props: /* @__PURE__ */ mergeModels({
13849
13657
  bagelFormProps: { default: () => ({}) },
@@ -13999,8 +13807,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
13999
13807
  prevStep
14000
13808
  });
14001
13809
  return (_ctx, _cache) => {
14002
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
14003
- _ctx.showProgress ? (openBlock(), createElementBlock("div", _hoisted_2$z, [
13810
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
13811
+ _ctx.showProgress ? (openBlock(), createElementBlock("div", _hoisted_2$A, [
14004
13812
  renderSlot(_ctx.$slots, "progress", normalizeProps(guardReactiveProps({
14005
13813
  currentStep: currentStep.value,
14006
13814
  totalSteps: numberOfSteps.value,
@@ -14009,7 +13817,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14009
13817
  allowStepNavigation: props2.allowStepNavigation,
14010
13818
  isStepValidated: isStepValidated.value
14011
13819
  })), () => [
14012
- createElementVNode("div", _hoisted_3$v, [
13820
+ createElementVNode("div", _hoisted_3$w, [
14013
13821
  (openBlock(true), createElementBlock(Fragment, null, renderList(numberOfSteps.value, (_2, index2) => {
14014
13822
  return openBlock(), createElementBlock("div", {
14015
13823
  key: index2,
@@ -14039,7 +13847,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14039
13847
  ref: formContainer,
14040
13848
  class: "bgl-form-container"
14041
13849
  }, [
14042
- createVNode(unref(_sfc_main$U), mergeProps({
13850
+ createVNode(unref(_sfc_main$V), mergeProps({
14043
13851
  ref_key: "formRef",
14044
13852
  ref: formRef,
14045
13853
  modelValue: formData.value,
@@ -14096,13 +13904,13 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14096
13904
  };
14097
13905
  }
14098
13906
  });
14099
- const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-53bb3be3"]]);
14100
- const _hoisted_1$L = {
13907
+ const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-53bb3be3"]]);
13908
+ const _hoisted_1$M = {
14101
13909
  key: 0,
14102
13910
  class: "label mb-05"
14103
13911
  };
14104
- const _hoisted_2$y = { class: "ps-025 border-start mb-05" };
14105
- const _hoisted_3$u = {
13912
+ const _hoisted_2$z = { class: "ps-025 border-start mb-05" };
13913
+ const _hoisted_3$v = {
14106
13914
  key: 0,
14107
13915
  class: "flex-center h-300px"
14108
13916
  };
@@ -14115,7 +13923,7 @@ const _hoisted_5$j = {
14115
13923
  class: "minimizedText txt14 p-025 opacity-7"
14116
13924
  };
14117
13925
  const _hoisted_6$g = { class: "bg-gray-80 -my-05 px-025 pt-065 pb-05 txt-center space-between flex column" };
14118
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
13926
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14119
13927
  __name: "FieldArray",
14120
13928
  props: {
14121
13929
  el: { default: "div" },
@@ -14224,10 +14032,10 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14224
14032
  return openBlock(), createElementBlock("div", {
14225
14033
  class: normalizeClass(props2.class)
14226
14034
  }, [
14227
- _ctx.label ? (openBlock(), createElementBlock("p", _hoisted_1$L, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
14228
- createElementVNode("div", _hoisted_2$y, [
14229
- schemaState.value !== "loaded" ? (openBlock(), createElementBlock("div", _hoisted_3$u, [
14230
- schemaState.value === "loading" ? (openBlock(), createBlock(unref(Loading), { key: 0 })) : schemaState.value === "error" ? (openBlock(), createBlock(unref(_sfc_main$s), {
14035
+ _ctx.label ? (openBlock(), createElementBlock("p", _hoisted_1$M, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
14036
+ createElementVNode("div", _hoisted_2$z, [
14037
+ schemaState.value !== "loaded" ? (openBlock(), createElementBlock("div", _hoisted_3$v, [
14038
+ schemaState.value === "loading" ? (openBlock(), createBlock(unref(Loading), { key: 0 })) : schemaState.value === "error" ? (openBlock(), createBlock(unref(_sfc_main$t), {
14231
14039
  key: 1,
14232
14040
  icon: "error",
14233
14041
  color: "red"
@@ -14242,7 +14050,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14242
14050
  thin: "",
14243
14051
  class: normalizeClass(["mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden", { minimized: minimizedItems.value[i2] }])
14244
14052
  }, [
14245
- minimizedItems.value[i2] ? (openBlock(), createElementBlock("p", _hoisted_5$j, toDisplayString(_ctx.label) + " " + toDisplayString(i2 + 1), 1)) : (openBlock(), createBlock(unref(_sfc_main$U), {
14053
+ minimizedItems.value[i2] ? (openBlock(), createElementBlock("p", _hoisted_5$j, toDisplayString(_ctx.label) + " " + toDisplayString(i2 + 1), 1)) : (openBlock(), createBlock(unref(_sfc_main$V), {
14246
14054
  key: 1,
14247
14055
  "model-value": isPrimitiveType.value ? { value: item } : item,
14248
14056
  schema: resolvedSchemaData.value,
@@ -14287,8 +14095,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14287
14095
  };
14288
14096
  }
14289
14097
  });
14290
- const _hoisted_1$K = { class: "primary-checkbox" };
14291
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
14098
+ const _hoisted_1$L = { class: "primary-checkbox" };
14099
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14292
14100
  __name: "Checkbox",
14293
14101
  props: {
14294
14102
  "modelValue": { type: Boolean, ...{ default: false } },
@@ -14298,7 +14106,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
14298
14106
  setup(__props) {
14299
14107
  const val = useModel(__props, "modelValue");
14300
14108
  return (_ctx, _cache) => {
14301
- return openBlock(), createElementBlock("label", _hoisted_1$K, [
14109
+ return openBlock(), createElementBlock("label", _hoisted_1$L, [
14302
14110
  renderSlot(_ctx.$slots, "label", {}, void 0, true),
14303
14111
  withDirectives(createElementVNode("input", {
14304
14112
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
@@ -14310,11 +14118,11 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
14310
14118
  };
14311
14119
  }
14312
14120
  });
14313
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-73f1d9ad"]]);
14314
- const _hoisted_1$J = ["title"];
14315
- const _hoisted_2$x = ["id", "value", "required"];
14316
- const _hoisted_3$t = ["for"];
14317
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14121
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-73f1d9ad"]]);
14122
+ const _hoisted_1$K = ["title"];
14123
+ const _hoisted_2$y = ["id", "value", "required"];
14124
+ const _hoisted_3$u = ["for"];
14125
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
14318
14126
  __name: "CheckInput",
14319
14127
  props: /* @__PURE__ */ mergeModels({
14320
14128
  label: {},
@@ -14347,7 +14155,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14347
14155
  required: _ctx.required,
14348
14156
  type: "checkbox",
14349
14157
  class: "me-05"
14350
- }, null, 8, _hoisted_2$x), [
14158
+ }, null, 8, _hoisted_2$y), [
14351
14159
  [vModelCheckbox, checked.value]
14352
14160
  ]),
14353
14161
  createElementVNode("label", {
@@ -14356,25 +14164,25 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14356
14164
  renderSlot(_ctx.$slots, "label", {}, () => [
14357
14165
  createTextVNode(toDisplayString(_ctx.label), 1)
14358
14166
  ], true)
14359
- ], 8, _hoisted_3$t)
14360
- ], 10, _hoisted_1$J);
14167
+ ], 8, _hoisted_3$u)
14168
+ ], 10, _hoisted_1$K);
14361
14169
  };
14362
14170
  }
14363
14171
  });
14364
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-722373de"]]);
14365
- const _hoisted_1$I = { class: "mb-05" };
14366
- const _hoisted_2$w = {
14172
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-722373de"]]);
14173
+ const _hoisted_1$J = { class: "mb-05" };
14174
+ const _hoisted_2$x = {
14367
14175
  key: 0,
14368
14176
  class: "label txt-start"
14369
14177
  };
14370
- const _hoisted_3$s = {
14178
+ const _hoisted_3$t = {
14371
14179
  key: 1,
14372
14180
  class: "code-editor-wrap grid rounded p-1 overflow hm-300px ltr txt-start relative h-100p"
14373
14181
  };
14374
14182
  const _hoisted_4$i = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
14375
14183
  const _hoisted_5$i = ["innerHTML"];
14376
14184
  const _hoisted_6$f = ["onKeydown"];
14377
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
14185
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14378
14186
  __name: "Index",
14379
14187
  props: {
14380
14188
  language: {},
@@ -14456,9 +14264,9 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
14456
14264
  }
14457
14265
  }, { immediate: true });
14458
14266
  return (_ctx, _cache) => {
14459
- return openBlock(), createElementBlock("div", _hoisted_1$I, [
14460
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$w, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
14461
- unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_3$s, [
14267
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
14268
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$x, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
14269
+ unref(loaded) ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
14462
14270
  createElementVNode("div", {
14463
14271
  class: "relative block h-100",
14464
14272
  style: normalizeStyle({ height: `calc(${unref(elHeight)} - 2rem)` })
@@ -14492,11 +14300,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
14492
14300
  };
14493
14301
  }
14494
14302
  });
14495
- const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-13335b34"]]);
14496
- const _hoisted_1$H = ["title"];
14497
- const _hoisted_2$v = { class: "flex bg-input rounded px-025 colorInputPickWrap" };
14498
- const _hoisted_3$r = ["id", "placeholder", "required"];
14499
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
14303
+ const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-13335b34"]]);
14304
+ const _hoisted_1$I = ["title"];
14305
+ const _hoisted_2$w = { class: "flex bg-input rounded px-025 colorInputPickWrap" };
14306
+ const _hoisted_3$s = ["id", "placeholder", "required"];
14307
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
14500
14308
  __name: "ColorInput",
14501
14309
  props: {
14502
14310
  label: {},
@@ -14526,7 +14334,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14526
14334
  }, [
14527
14335
  createElementVNode("label", null, [
14528
14336
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
14529
- createElementVNode("div", _hoisted_2$v, [
14337
+ createElementVNode("div", _hoisted_2$w, [
14530
14338
  withDirectives(createElementVNode("input", mergeProps({
14531
14339
  id: _ctx.id,
14532
14340
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
@@ -14534,7 +14342,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14534
14342
  type: "color",
14535
14343
  placeholder: _ctx.placeholder || _ctx.label,
14536
14344
  required: _ctx.required
14537
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$r), [
14345
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$s), [
14538
14346
  [vModelText, inputVal.value]
14539
14347
  ]),
14540
14348
  withDirectives(createElementVNode("input", {
@@ -14556,7 +14364,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14556
14364
  }, null, 8, ["class"])
14557
14365
  ])
14558
14366
  ])
14559
- ], 10, _hoisted_1$H);
14367
+ ], 10, _hoisted_1$I);
14560
14368
  };
14561
14369
  }
14562
14370
  });
@@ -15077,9 +14885,9 @@ class Time {
15077
14885
  return number2 < 10 ? `0${number2}` : String(number2);
15078
14886
  }
15079
14887
  }
15080
- const _hoisted_1$G = { class: "ltr flex gap-075 m_flex-wrap calendar-container justify-content-center h-100p" };
15081
- const _hoisted_2$u = { class: "calendar-section m_border-none pe-05 m_p-0" };
15082
- const _hoisted_3$q = { class: "flex space-between pb-1" };
14888
+ const _hoisted_1$H = { class: "ltr flex gap-075 m_flex-wrap calendar-container justify-content-center h-100p" };
14889
+ const _hoisted_2$v = { class: "calendar-section m_border-none pe-05 m_p-0" };
14890
+ const _hoisted_3$r = { class: "flex space-between pb-1" };
15083
14891
  const _hoisted_4$h = { class: "flex gap-05" };
15084
14892
  const _hoisted_5$h = { class: "month-year" };
15085
14893
  const _hoisted_6$e = {
@@ -15100,7 +14908,7 @@ const _hoisted_10$4 = {
15100
14908
  class: "time-picker border-start flex column gap-1 w-120px px-025"
15101
14909
  };
15102
14910
  const _hoisted_11$4 = { class: "flex gap-025" };
15103
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
14911
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
15104
14912
  __name: "DatePicker",
15105
14913
  props: {
15106
14914
  modelValue: {},
@@ -15310,9 +15118,9 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
15310
15118
  }
15311
15119
  }
15312
15120
  return (_ctx, _cache) => {
15313
- return openBlock(), createElementBlock("div", _hoisted_1$G, [
15314
- createElementVNode("div", _hoisted_2$u, [
15315
- createElementVNode("div", _hoisted_3$q, [
15121
+ return openBlock(), createElementBlock("div", _hoisted_1$H, [
15122
+ createElementVNode("div", _hoisted_2$v, [
15123
+ createElementVNode("div", _hoisted_3$r, [
15316
15124
  currentView.value === "days" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
15317
15125
  createVNode(unref(Btn), {
15318
15126
  flat: "",
@@ -15440,14 +15248,14 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
15440
15248
  };
15441
15249
  }
15442
15250
  });
15443
- const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-8b7bd9b8"]]);
15444
- const _hoisted_1$F = ["title"];
15445
- const _hoisted_2$t = { key: 0 };
15446
- const _hoisted_3$p = {
15251
+ const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-8b7bd9b8"]]);
15252
+ const _hoisted_1$G = ["title"];
15253
+ const _hoisted_2$u = { key: 0 };
15254
+ const _hoisted_3$q = {
15447
15255
  key: 0,
15448
15256
  class: "required"
15449
15257
  };
15450
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
15258
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
15451
15259
  __name: "DateInput",
15452
15260
  props: /* @__PURE__ */ mergeModels({
15453
15261
  required: { type: Boolean },
@@ -15563,11 +15371,11 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
15563
15371
  onFocusin: _cache[4] || (_cache[4] = //@ts-ignore
15564
15372
  (...args) => unref(handleFocus) && unref(handleFocus)(...args))
15565
15373
  }, [
15566
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$t, [
15374
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$u, [
15567
15375
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
15568
- _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_3$p, "*")) : createCommentVNode("", true)
15376
+ _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_3$q, "*")) : createCommentVNode("", true)
15569
15377
  ])) : createCommentVNode("", true),
15570
- createVNode(unref(_sfc_main$X), {
15378
+ createVNode(unref(_sfc_main$Y), {
15571
15379
  shown: isOpen.value,
15572
15380
  placement: "bottom-start",
15573
15381
  autoHide: false,
@@ -15622,7 +15430,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
15622
15430
  ]),
15623
15431
  _: 1
15624
15432
  }, 8, ["shown"])
15625
- ], 42, _hoisted_1$F);
15433
+ ], 42, _hoisted_1$G);
15626
15434
  };
15627
15435
  }
15628
15436
  });
@@ -15631,9 +15439,9 @@ const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
15631
15439
  const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
15632
15440
  const VIDEO_FORMATS_REGEXP = new RegExp(`(${VIDEO_FORMATS.join("|")})$`, "i");
15633
15441
  const EMAIL_REGEX = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-z\-0-9]+\.)+[a-z]{2,}))$/i;
15634
- const _hoisted_1$E = ["title"];
15635
- const _hoisted_2$s = ["for"];
15636
- const _hoisted_3$o = { class: "flex" };
15442
+ const _hoisted_1$F = ["title"];
15443
+ const _hoisted_2$t = ["for"];
15444
+ const _hoisted_3$p = { class: "flex" };
15637
15445
  const _hoisted_4$g = { key: 0 };
15638
15446
  const _hoisted_5$g = {
15639
15447
  key: 1,
@@ -15644,7 +15452,7 @@ const _hoisted_6$d = {
15644
15452
  class: "validating"
15645
15453
  };
15646
15454
  const _hoisted_7$a = ["id", "name", "title", "placeholder", "disabled", "required"];
15647
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
15455
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
15648
15456
  __name: "EmailInput",
15649
15457
  props: {
15650
15458
  id: {},
@@ -15908,7 +15716,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
15908
15716
  title: _ctx.title
15909
15717
  }, [
15910
15718
  createElementVNode("label", { for: _ctx.id }, [
15911
- createElementVNode("div", _hoisted_3$o, [
15719
+ createElementVNode("div", _hoisted_3$p, [
15912
15720
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
15913
15721
  _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_4$g, "*")) : createCommentVNode("", true),
15914
15722
  _ctx.helptext ? (openBlock(), createElementBlock("span", _hoisted_5$g, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
@@ -15941,30 +15749,30 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
15941
15749
  [vModelText, unref(inputVal)],
15942
15750
  [_directive_pattern, void 0, "lower"]
15943
15751
  ]),
15944
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$s), {
15752
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$t), {
15945
15753
  key: 0,
15946
15754
  class: "iconStart",
15947
15755
  icon: _ctx.iconStart
15948
15756
  }, null, 8, ["icon"])) : createCommentVNode("", true),
15949
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
15757
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
15950
15758
  key: 1,
15951
15759
  icon: _ctx.icon
15952
15760
  }, null, 8, ["icon"])) : createCommentVNode("", true)
15953
- ], 8, _hoisted_2$s)
15954
- ], 10, _hoisted_1$E);
15761
+ ], 8, _hoisted_2$t)
15762
+ ], 10, _hoisted_1$F);
15955
15763
  };
15956
15764
  }
15957
15765
  });
15958
- const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-e3d13caa"]]);
15959
- const _hoisted_1$D = { class: "bagel-input" };
15960
- const _hoisted_2$r = {
15766
+ const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-e3d13caa"]]);
15767
+ const _hoisted_1$E = { class: "bagel-input" };
15768
+ const _hoisted_2$s = {
15961
15769
  key: 0,
15962
15770
  placeholder: "required",
15963
15771
  type: "text",
15964
15772
  required: "",
15965
15773
  class: "pixel"
15966
15774
  };
15967
- const _hoisted_3$n = { class: "m-05 flex opacity-7 z-99" };
15775
+ const _hoisted_3$o = { class: "m-05 flex opacity-7 z-99" };
15968
15776
  const _hoisted_4$f = { class: "ellipsis-1 word-break-all h-20 m-0 color-black" };
15969
15777
  const _hoisted_5$f = { class: "flex gap-025 rounded pe-1 ps-05 py-025 bg-gray-80 -my-1" };
15970
15778
  const _hoisted_6$c = { class: "ellipsis-1 word-break-all h-20 m-0 color-black txt16" };
@@ -15997,7 +15805,7 @@ const _hoisted_15$1 = {
15997
15805
  };
15998
15806
  const _hoisted_16$1 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
15999
15807
  const _hoisted_17$1 = { class: "pretty balance" };
16000
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
15808
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
16001
15809
  __name: "FileUpload",
16002
15810
  props: /* @__PURE__ */ mergeModels({
16003
15811
  label: {},
@@ -16172,10 +15980,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16172
15980
  return (_ctx, _cache) => {
16173
15981
  const _directive_tooltip = resolveDirective("tooltip");
16174
15982
  const _directive_lightbox = resolveDirective("lightbox");
16175
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
15983
+ return openBlock(), createElementBlock("div", _hoisted_1$E, [
16176
15984
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
16177
- _ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$r)) : createCommentVNode("", true),
16178
- _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$11), {
15985
+ _ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$s)) : createCommentVNode("", true),
15986
+ _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$12), {
16179
15987
  key: 1,
16180
15988
  outline: "",
16181
15989
  class: "flex p-05 gap-1",
@@ -16196,7 +16004,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16196
16004
  key: file.id,
16197
16005
  class: "txt-gray txt-12 flex"
16198
16006
  }, [
16199
- createElementVNode("div", _hoisted_3$n, [
16007
+ createElementVNode("div", _hoisted_3$o, [
16200
16008
  withDirectives(createVNode(unref(Btn), {
16201
16009
  color: "gray",
16202
16010
  thin: "",
@@ -16231,7 +16039,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16231
16039
  [_directive_lightbox, { src: file.url, download: true }]
16232
16040
  ]),
16233
16041
  createElementVNode("div", _hoisted_5$f, [
16234
- createVNode(unref(_sfc_main$s), {
16042
+ createVNode(unref(_sfc_main$t), {
16235
16043
  icon: "draft",
16236
16044
  size: 1.5
16237
16045
  }),
@@ -16282,7 +16090,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16282
16090
  class: "multi-preview",
16283
16091
  src: file.url,
16284
16092
  alt: ""
16285
- }, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
16093
+ }, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$t), {
16286
16094
  key: 1,
16287
16095
  icon: "draft",
16288
16096
  class: "multi-preview"
@@ -16312,7 +16120,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16312
16120
  src: fileToUrl(fileQ.file),
16313
16121
  alt: ""
16314
16122
  }, null, 8, ["width", "src"])) : createCommentVNode("", true)
16315
- ], 64)) : (openBlock(), createBlock(unref(_sfc_main$s), {
16123
+ ], 64)) : (openBlock(), createBlock(unref(_sfc_main$t), {
16316
16124
  key: 1,
16317
16125
  icon: "draft",
16318
16126
  class: "multi-preview"
@@ -16323,7 +16131,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16323
16131
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
16324
16132
  }, [
16325
16133
  fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_11$3, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
16326
- createVNode(unref(_sfc_main$s), {
16134
+ createVNode(unref(_sfc_main$t), {
16327
16135
  class: "success",
16328
16136
  icon: "check"
16329
16137
  })
@@ -16375,7 +16183,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16375
16183
  }, null, 8, ["src"]), [
16376
16184
  [_directive_lightbox, { src: file.url, download: true }]
16377
16185
  ])
16378
- ])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$s), {
16186
+ ])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$t), {
16379
16187
  key: 1,
16380
16188
  size: 4,
16381
16189
  weight: "2",
@@ -16396,7 +16204,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16396
16204
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
16397
16205
  }, [
16398
16206
  fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_15$1, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
16399
- createVNode(unref(_sfc_main$s), {
16207
+ createVNode(unref(_sfc_main$t), {
16400
16208
  class: "success",
16401
16209
  icon: "check"
16402
16210
  })
@@ -16420,7 +16228,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16420
16228
  browse
16421
16229
  }, () => [
16422
16230
  createElementVNode("p", _hoisted_16$1, [
16423
- createVNode(unref(_sfc_main$s), { icon: "upload_2" }),
16231
+ createVNode(unref(_sfc_main$t), { icon: "upload_2" }),
16424
16232
  createElementVNode("span", _hoisted_17$1, toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
16425
16233
  ])
16426
16234
  ], true) : createCommentVNode("", true)
@@ -16429,11 +16237,11 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16429
16237
  };
16430
16238
  }
16431
16239
  });
16432
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-50fd0597"]]);
16433
- const _hoisted_1$C = ["title"];
16434
- const _hoisted_2$q = { key: 0 };
16435
- const _hoisted_3$m = ["value", "placeholder"];
16436
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
16240
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-50fd0597"]]);
16241
+ const _hoisted_1$D = ["title"];
16242
+ const _hoisted_2$r = { key: 0 };
16243
+ const _hoisted_3$n = ["value", "placeholder"];
16244
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16437
16245
  __name: "JSONInput",
16438
16246
  props: {
16439
16247
  description: { default: "" },
@@ -16456,7 +16264,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
16456
16264
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
16457
16265
  title: _ctx.description
16458
16266
  }, [
16459
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$q, [
16267
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$r, [
16460
16268
  createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
16461
16269
  ])) : createCommentVNode("", true),
16462
16270
  createElementVNode("textarea", {
@@ -16464,18 +16272,18 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
16464
16272
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
16465
16273
  placeholder: _ctx.placeholder,
16466
16274
  onInput: handleInput
16467
- }, null, 42, _hoisted_3$m)
16468
- ], 10, _hoisted_1$C);
16275
+ }, null, 42, _hoisted_3$n)
16276
+ ], 10, _hoisted_1$D);
16469
16277
  };
16470
16278
  }
16471
16279
  });
16472
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-1cbaeab2"]]);
16473
- const _hoisted_1$B = ["for"];
16474
- const _hoisted_2$p = {
16280
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-1cbaeab2"]]);
16281
+ const _hoisted_1$C = ["for"];
16282
+ const _hoisted_2$q = {
16475
16283
  key: 0,
16476
16284
  class: "block"
16477
16285
  };
16478
- const _hoisted_3$l = ["id", "placeholder", "disabled", "required", "readonly", "pattern", "onKeydown"];
16286
+ const _hoisted_3$m = ["id", "placeholder", "disabled", "required", "readonly", "pattern", "onKeydown"];
16479
16287
  const _hoisted_4$e = {
16480
16288
  key: 1,
16481
16289
  class: "opacity-7 light"
@@ -16484,7 +16292,7 @@ const _hoisted_5$e = {
16484
16292
  key: 5,
16485
16293
  class: "flex column spinner"
16486
16294
  };
16487
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
16295
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
16488
16296
  __name: "NumberInput",
16489
16297
  props: {
16490
16298
  modelValue: {},
@@ -16589,7 +16397,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
16589
16397
  }])
16590
16398
  }, [
16591
16399
  createElementVNode("div", { for: _ctx.id }, [
16592
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$p, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
16400
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$q, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
16593
16401
  createElementVNode("div", {
16594
16402
  class: normalizeClass(["gap-025", { "column flex": _ctx.layout === "vertical", "flex": _ctx.layout === "horizontal" }])
16595
16403
  }, [
@@ -16624,7 +16432,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
16624
16432
  withKeys(withModifiers(increment, ["prevent"]), ["up"]),
16625
16433
  withKeys(withModifiers(decrement, ["prevent"]), ["down"])
16626
16434
  ]
16627
- }, null, 42, _hoisted_3$l), [
16435
+ }, null, 42, _hoisted_3$m), [
16628
16436
  [
16629
16437
  vModelText,
16630
16438
  unref(formattedValue),
@@ -16639,12 +16447,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
16639
16447
  ]
16640
16448
  ]),
16641
16449
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_4$e, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
16642
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$s), {
16450
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$t), {
16643
16451
  key: 2,
16644
16452
  class: "iconStart",
16645
16453
  icon: _ctx.iconStart
16646
16454
  }, null, 8, ["icon"])) : createCommentVNode("", true),
16647
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
16455
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
16648
16456
  key: 3,
16649
16457
  icon: _ctx.icon
16650
16458
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -16677,14 +16485,14 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
16677
16485
  }, null, 8, ["disabled"])
16678
16486
  ])) : createCommentVNode("", true)
16679
16487
  ], 2)
16680
- ], 8, _hoisted_1$B)
16488
+ ], 8, _hoisted_1$C)
16681
16489
  ], 2);
16682
16490
  };
16683
16491
  }
16684
16492
  });
16685
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-78609eff"]]);
16686
- const _hoisted_1$A = ["value", "autofocus", "onKeydown", "onPaste"];
16687
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
16493
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-78609eff"]]);
16494
+ const _hoisted_1$B = ["value", "autofocus", "onKeydown", "onPaste"];
16495
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
16688
16496
  __name: "OTP",
16689
16497
  props: {
16690
16498
  digitCount: {},
@@ -16788,16 +16596,16 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
16788
16596
  onPaste: ($event) => handlePaste($event, ind),
16789
16597
  onKeyup: _cache[0] || (_cache[0] = withModifiers(() => {
16790
16598
  }, ["prevent"]))
16791
- }, null, 40, _hoisted_1$A);
16599
+ }, null, 40, _hoisted_1$B);
16792
16600
  }), 128))
16793
16601
  ], 512);
16794
16602
  };
16795
16603
  }
16796
16604
  });
16797
- const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ab0a46bf"]]);
16798
- const _hoisted_1$z = { class: "relative passwordInput" };
16799
- const _hoisted_2$o = { class: "m-password position-bottom-end flex column justify-content-center" };
16800
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
16605
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-ab0a46bf"]]);
16606
+ const _hoisted_1$A = { class: "relative passwordInput" };
16607
+ const _hoisted_2$p = { class: "m-password position-bottom-end flex column justify-content-center" };
16608
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
16801
16609
  __name: "PasswordInput",
16802
16610
  props: /* @__PURE__ */ mergeModels({
16803
16611
  id: {},
@@ -16837,7 +16645,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
16837
16645
  const toggleShowPwdIcon = computed(() => showPwd.value ? "visibility_off" : "visibility");
16838
16646
  const inputType = computed(() => showPwd.value ? "text" : "password");
16839
16647
  return (_ctx, _cache) => {
16840
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
16648
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
16841
16649
  createVNode(unref(TextInput), mergeProps({
16842
16650
  modelValue: password.value,
16843
16651
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
@@ -16846,7 +16654,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
16846
16654
  class: "mb-0",
16847
16655
  name: props2.name
16848
16656
  }), null, 16, ["modelValue", "type", "name"]),
16849
- createElementVNode("div", _hoisted_2$o, [
16657
+ createElementVNode("div", _hoisted_2$p, [
16850
16658
  createVNode(unref(Btn), {
16851
16659
  flat: "",
16852
16660
  thin: "",
@@ -16859,9 +16667,9 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
16859
16667
  };
16860
16668
  }
16861
16669
  });
16862
- const _hoisted_1$y = ["for"];
16863
- const _hoisted_2$n = ["id", "disabled", "name", "value", "required"];
16864
- const _hoisted_3$k = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
16670
+ const _hoisted_1$z = ["for"];
16671
+ const _hoisted_2$o = ["id", "disabled", "name", "value", "required"];
16672
+ const _hoisted_3$l = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
16865
16673
  const _hoisted_4$d = ["src", "alt"];
16866
16674
  const _hoisted_5$d = { class: "" };
16867
16675
  const _hoisted_6$b = {
@@ -16872,7 +16680,7 @@ const _hoisted_7$8 = {
16872
16680
  key: 1,
16873
16681
  class: "txt-gray txt-12 m-0"
16874
16682
  };
16875
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
16683
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
16876
16684
  __name: "RadioGroup",
16877
16685
  props: /* @__PURE__ */ mergeModels({
16878
16686
  groupName: {},
@@ -16930,10 +16738,10 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
16930
16738
  onFocus: handleFocus,
16931
16739
  onBlur: handleBlur,
16932
16740
  onChange: handleChange
16933
- }, null, 40, _hoisted_2$n), [
16741
+ }, null, 40, _hoisted_2$o), [
16934
16742
  [vModelRadio, selectedOption.value]
16935
16743
  ]),
16936
- createElementVNode("div", _hoisted_3$k, [
16744
+ createElementVNode("div", _hoisted_3$l, [
16937
16745
  opt.imgSrc ? (openBlock(), createElementBlock("img", {
16938
16746
  key: 0,
16939
16747
  class: "bg-popup shadow-light py-025 radius-05 m_w40",
@@ -16955,19 +16763,19 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
16955
16763
  icon: "delete",
16956
16764
  onClick: ($event) => _ctx.$emit("delete", opt)
16957
16765
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
16958
- ], 8, _hoisted_1$y);
16766
+ ], 8, _hoisted_1$z);
16959
16767
  }), 128))
16960
16768
  ], 2);
16961
16769
  };
16962
16770
  }
16963
16771
  });
16964
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-29cff93d"]]);
16965
- const _hoisted_1$x = { class: "bagel-input" };
16966
- const _hoisted_2$m = { class: "pb-025" };
16967
- const _hoisted_3$j = { class: "flex gap-05 flex-wrap" };
16772
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-29cff93d"]]);
16773
+ const _hoisted_1$y = { class: "bagel-input" };
16774
+ const _hoisted_2$n = { class: "pb-025" };
16775
+ const _hoisted_3$k = { class: "flex gap-05 flex-wrap" };
16968
16776
  const _hoisted_4$c = ["id", "name", "value", "checked"];
16969
16777
  const _hoisted_5$c = ["for"];
16970
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
16778
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
16971
16779
  __name: "RadioPillsInput",
16972
16780
  props: {
16973
16781
  options: {},
@@ -17010,9 +16818,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
17010
16818
  selectedValue.value = props2.modelValue;
17011
16819
  });
17012
16820
  return (_ctx, _cache) => {
17013
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
17014
- createElementVNode("label", _hoisted_2$m, toDisplayString(_ctx.label), 1),
17015
- createElementVNode("div", _hoisted_3$j, [
16821
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
16822
+ createElementVNode("label", _hoisted_2$n, toDisplayString(_ctx.label), 1),
16823
+ createElementVNode("div", _hoisted_3$k, [
17016
16824
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option2, index2) => {
17017
16825
  return openBlock(), createElementBlock("div", {
17018
16826
  key: index2,
@@ -17036,18 +16844,18 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
17036
16844
  };
17037
16845
  }
17038
16846
  });
17039
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-68b4cdd0"]]);
17040
- const _hoisted_1$w = ["dir"];
17041
- const _hoisted_2$l = {
16847
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-68b4cdd0"]]);
16848
+ const _hoisted_1$x = ["dir"];
16849
+ const _hoisted_2$m = {
17042
16850
  key: 0,
17043
16851
  class: "label"
17044
16852
  };
17045
- const _hoisted_3$i = { class: "range-slider relative w-100" };
16853
+ const _hoisted_3$j = { class: "range-slider relative w-100" };
17046
16854
  const _hoisted_4$b = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
17047
16855
  const _hoisted_5$b = ["value", "min", "max", "step", "required", "disabled"];
17048
16856
  const _hoisted_6$a = { class: "track absolute pointer-events-none overflow-hidden round" };
17049
16857
  const _hoisted_7$7 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
17050
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
16858
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
17051
16859
  __name: "RangeInput",
17052
16860
  props: {
17053
16861
  modelValue: {},
@@ -17111,8 +16919,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17111
16919
  return openBlock(), createElementBlock("div", {
17112
16920
  dir: _ctx.rtl ? "rtl" : "ltr"
17113
16921
  }, [
17114
- props2.label ? (openBlock(), createElementBlock("label", _hoisted_2$l, toDisplayString(props2.label), 1)) : createCommentVNode("", true),
17115
- createElementVNode("div", _hoisted_3$i, [
16922
+ props2.label ? (openBlock(), createElementBlock("label", _hoisted_2$m, toDisplayString(props2.label), 1)) : createCommentVNode("", true),
16923
+ createElementVNode("div", _hoisted_3$j, [
17116
16924
  createElementVNode("input", {
17117
16925
  id: _ctx.id,
17118
16926
  value: validFrom.value,
@@ -17203,11 +17011,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17203
17011
  createElementVNode("span", null, toDisplayString(unref(formatValue)(unref(max2))), 1)
17204
17012
  ], true)
17205
17013
  ])
17206
- ], 8, _hoisted_1$w);
17014
+ ], 8, _hoisted_1$x);
17207
17015
  };
17208
17016
  }
17209
17017
  });
17210
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-46e22f3e"]]);
17018
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-46e22f3e"]]);
17211
17019
  const basicToolbarConfig = [
17212
17020
  "h2",
17213
17021
  "h3",
@@ -17273,11 +17081,11 @@ const toolbarOptions = [
17273
17081
  { name: "separator" },
17274
17082
  { name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
17275
17083
  ];
17276
- const _hoisted_1$v = { class: "grid grid-wrap p-05" };
17277
- const _hoisted_2$k = ["onMousemove", "onClick"];
17278
- const _hoisted_3$h = { class: "txt-center txt-12 color-gray" };
17084
+ const _hoisted_1$w = { class: "grid grid-wrap p-05" };
17085
+ const _hoisted_2$l = ["onMousemove", "onClick"];
17086
+ const _hoisted_3$i = { class: "txt-center txt-12 color-gray" };
17279
17087
  const fb = 1;
17280
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
17088
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
17281
17089
  __name: "gridBox",
17282
17090
  props: {
17283
17091
  gridSize: {}
@@ -17298,7 +17106,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17298
17106
  return hoveredCol.value > base - 1 ? enlarge : base;
17299
17107
  });
17300
17108
  return (_ctx, _cache) => {
17301
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
17109
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
17302
17110
  (openBlock(true), createElementBlock(Fragment, null, renderList(rowSize.value, (row) => {
17303
17111
  return openBlock(), createElementBlock("div", {
17304
17112
  key: `row-${row}`,
@@ -17325,21 +17133,21 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17325
17133
  hoveredCol.value = col;
17326
17134
  },
17327
17135
  onClick: ($event) => emit2("select", `${row}x${col}`)
17328
- }, null, 42, _hoisted_2$k);
17136
+ }, null, 42, _hoisted_2$l);
17329
17137
  }), 128))
17330
17138
  ], 32);
17331
17139
  }), 128)),
17332
- createElementVNode("p", _hoisted_3$h, toDisplayString(hoveredRow.value) + "x" + toDisplayString(hoveredCol.value), 1)
17140
+ createElementVNode("p", _hoisted_3$i, toDisplayString(hoveredRow.value) + "x" + toDisplayString(hoveredCol.value), 1)
17333
17141
  ]);
17334
17142
  };
17335
17143
  }
17336
17144
  });
17337
- const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-2f424c9c"]]);
17338
- const _hoisted_1$u = {
17145
+ const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-2f424c9c"]]);
17146
+ const _hoisted_1$v = {
17339
17147
  class: "toolbar flex gap-025 pb-05 flex-wrap",
17340
17148
  role: "toolbar"
17341
17149
  };
17342
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
17150
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
17343
17151
  __name: "EditorToolbar",
17344
17152
  props: {
17345
17153
  config: { default: basicToolbarConfig },
@@ -17354,10 +17162,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17354
17162
  }
17355
17163
  return (_ctx, _cache) => {
17356
17164
  const _directive_tooltip = resolveDirective("tooltip");
17357
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
17165
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
17358
17166
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
17359
17167
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
17360
- action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$X), {
17168
+ action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$Y), {
17361
17169
  key: 0,
17362
17170
  placement: "bottom-start",
17363
17171
  thin: "",
@@ -17395,7 +17203,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
17395
17203
  };
17396
17204
  }
17397
17205
  });
17398
- const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7e9466dc"]]);
17206
+ const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-7e9466dc"]]);
17399
17207
  function isStyleActive(style, doc) {
17400
17208
  const selection = doc.getSelection();
17401
17209
  if (!selection || !selection.rangeCount) return false;
@@ -18962,13 +18770,13 @@ function isNodeEmpty(node) {
18962
18770
  if (brElements.length === 0) return true;
18963
18771
  return brElements.length === 1 && node.childNodes.length <= 2;
18964
18772
  }
18965
- const _hoisted_1$t = { class: "bagel-input" };
18966
- const _hoisted_2$j = { class: "content-area radius-05" };
18967
- const _hoisted_3$g = {
18773
+ const _hoisted_1$u = { class: "bagel-input" };
18774
+ const _hoisted_2$k = { class: "content-area radius-05" };
18775
+ const _hoisted_3$h = {
18968
18776
  key: 1,
18969
18777
  class: "flex"
18970
18778
  };
18971
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
18779
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
18972
18780
  __name: "index",
18973
18781
  props: {
18974
18782
  modelValue: {},
@@ -19085,7 +18893,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19085
18893
  });
19086
18894
  return (_ctx, _cache) => {
19087
18895
  var _a, _b;
19088
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
18896
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
19089
18897
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
19090
18898
  createElementVNode("div", {
19091
18899
  class: normalizeClass(["rich-text-editor rounded pt-05 px-05 pb-075", { "fullscreen-mode": unref(editor).state.isFullscreen }])
@@ -19099,7 +18907,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19099
18907
  createElementVNode("div", {
19100
18908
  class: normalizeClass(["editor-container", { "split-view": unref(editor).state.isSplitView }])
19101
18909
  }, [
19102
- createElementVNode("div", _hoisted_2$j, [
18910
+ createElementVNode("div", _hoisted_2$k, [
19103
18911
  createElementVNode("iframe", {
19104
18912
  id: "rich-text-iframe",
19105
18913
  ref_key: "iframe",
@@ -19122,7 +18930,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19122
18930
  class: "code-editor"
19123
18931
  }, null, 8, ["modelValue"])) : createCommentVNode("", true)
19124
18932
  ], 2),
19125
- _ctx.debug ? (openBlock(), createElementBlock("div", _hoisted_3$g, [
18933
+ _ctx.debug ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
19126
18934
  _cache[6] || (_cache[6] = createElementVNode("p", { class: "text12 txt-gray mb-0 p-0" }, " Debug ", -1)),
19127
18935
  createVNode(unref(Btn), {
19128
18936
  thin: "",
@@ -19166,10 +18974,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19166
18974
  };
19167
18975
  }
19168
18976
  });
19169
- const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-30bcda4c"]]);
19170
- const _hoisted_1$s = { key: 0 };
19171
- const _hoisted_2$i = { class: "flex gap-05" };
19172
- const _hoisted_3$f = ["disabled"];
18977
+ const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-30bcda4c"]]);
18978
+ const _hoisted_1$t = { key: 0 };
18979
+ const _hoisted_2$j = { class: "flex gap-05" };
18980
+ const _hoisted_3$g = ["disabled"];
19173
18981
  const _hoisted_4$a = { key: 1 };
19174
18982
  const _hoisted_5$a = {
19175
18983
  key: 2,
@@ -19178,7 +18986,7 @@ const _hoisted_5$a = {
19178
18986
  const _hoisted_6$9 = ["value"];
19179
18987
  const _hoisted_7$6 = ["aria-selected", "onClick", "onKeydown"];
19180
18988
  const _hoisted_8$5 = { class: "block" };
19181
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
18989
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19182
18990
  __name: "SelectInput",
19183
18991
  props: {
19184
18992
  options: {},
@@ -19338,7 +19146,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19338
19146
  }
19339
19147
  });
19340
19148
  return (_ctx, _cache) => {
19341
- return openBlock(), createBlock(unref(_sfc_main$X), {
19149
+ return openBlock(), createBlock(unref(_sfc_main$Y), {
19342
19150
  ref_key: "dropdown",
19343
19151
  ref: dropdown,
19344
19152
  shown: unref(open),
@@ -19352,8 +19160,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19352
19160
  trigger: withCtx(() => [
19353
19161
  createElementVNode("label", null, [
19354
19162
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
19355
- _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_1$s, "*")) : createCommentVNode("", true),
19356
- createElementVNode("div", _hoisted_2$i, [
19163
+ _ctx.required ? (openBlock(), createElementBlock("span", _hoisted_1$t, "*")) : createCommentVNode("", true),
19164
+ createElementVNode("div", _hoisted_2$j, [
19357
19165
  _ctx.searchable && unref(open) ? (openBlock(), createBlock(unref(TextInput), {
19358
19166
  key: 0,
19359
19167
  ref_key: "searchInput",
@@ -19379,7 +19187,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19379
19187
  _cache[6] || (_cache[6] = withKeys(withModifiers(($event) => navigate("up"), ["prevent"]), ["up"]))
19380
19188
  ]
19381
19189
  }, [
19382
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
19190
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
19383
19191
  key: 0,
19384
19192
  icon: _ctx.icon
19385
19193
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -19396,11 +19204,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19396
19204
  })
19397
19205
  })
19398
19206
  ])) : createCommentVNode("", true),
19399
- !_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$s), mergeProps({
19207
+ !_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$t), mergeProps({
19400
19208
  key: 3,
19401
19209
  thin: ""
19402
19210
  }, { icon: unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : createCommentVNode("", true)
19403
- ], 42, _hoisted_3$f)),
19211
+ ], 42, _hoisted_3$g)),
19404
19212
  _ctx.required ? (openBlock(), createElementBlock("input", {
19405
19213
  key: 2,
19406
19214
  tabindex: "-1",
@@ -19419,7 +19227,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19419
19227
  height: "25px",
19420
19228
  class: "mx-1 my-1"
19421
19229
  })) : createCommentVNode("", true),
19422
- createVNode(unref(_sfc_main$11), {
19230
+ createVNode(unref(_sfc_main$12), {
19423
19231
  class: "p-05",
19424
19232
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" }),
19425
19233
  onClick: _cache[9] || (_cache[9] = withModifiers(() => {
@@ -19446,12 +19254,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19446
19254
  ]
19447
19255
  }, [
19448
19256
  _ctx.multiselect ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19449
- isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$s), {
19257
+ isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$t), {
19450
19258
  key: 0,
19451
19259
  size: 1.1,
19452
19260
  icon: "select_check_box"
19453
19261
  })) : createCommentVNode("", true),
19454
- !isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$s), {
19262
+ !isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$t), {
19455
19263
  key: 1,
19456
19264
  class: "opacity-3",
19457
19265
  icon: "check_box_outline_blank",
@@ -19472,7 +19280,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19472
19280
  };
19473
19281
  }
19474
19282
  });
19475
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-c16650b4"]]);
19283
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c16650b4"]]);
19476
19284
  /*!
19477
19285
  * Signature Pad v5.0.7 | https://github.com/szimek/signature_pad
19478
19286
  * (c) 2025 Szymon Nowak | Released under the MIT license
@@ -20069,15 +19877,15 @@ class SignaturePad extends SignatureEventTarget {
20069
19877
  return svg.outerHTML;
20070
19878
  }
20071
19879
  }
20072
- const _hoisted_1$r = ["disabled"];
20073
- const _hoisted_2$h = {
19880
+ const _hoisted_1$s = ["disabled"];
19881
+ const _hoisted_2$i = {
20074
19882
  key: 1,
20075
19883
  placeholder: "required",
20076
19884
  type: "text",
20077
19885
  required: "",
20078
19886
  class: "pixel opacity-0"
20079
19887
  };
20080
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
19888
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
20081
19889
  __name: "SignaturePad",
20082
19890
  props: /* @__PURE__ */ mergeModels({
20083
19891
  sigOption: {},
@@ -20273,8 +20081,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
20273
20081
  ref: vCanvas,
20274
20082
  class: "canvas",
20275
20083
  disabled: _ctx.disabled
20276
- }, null, 8, _hoisted_1$r),
20277
- _ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$h)) : createCommentVNode("", true)
20084
+ }, null, 8, _hoisted_1$s),
20085
+ _ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$i)) : createCommentVNode("", true)
20278
20086
  ], 34);
20279
20087
  };
20280
20088
  }
@@ -22758,13 +22566,13 @@ const VueDraggableNext = defineComponent({
22758
22566
  }
22759
22567
  }
22760
22568
  });
22761
- const _hoisted_1$q = ["title"];
22762
- const _hoisted_2$g = { class: "bagel-input" };
22763
- const _hoisted_3$e = { class: "table-side-scroll" };
22569
+ const _hoisted_1$r = ["title"];
22570
+ const _hoisted_2$h = { class: "bagel-input" };
22571
+ const _hoisted_3$f = { class: "table-side-scroll" };
22764
22572
  const _hoisted_4$9 = { class: "table-header" };
22765
22573
  const _hoisted_5$9 = { class: "table-reorder" };
22766
22574
  const _hoisted_6$8 = { class: "table-action" };
22767
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
22575
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
22768
22576
  __name: "TableField",
22769
22577
  props: {
22770
22578
  description: { default: "" },
@@ -22829,10 +22637,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22829
22637
  class: "table-field-wrap",
22830
22638
  title: _ctx.description
22831
22639
  }, [
22832
- createElementVNode("div", _hoisted_2$g, [
22640
+ createElementVNode("div", _hoisted_2$h, [
22833
22641
  createElementVNode("label", null, toDisplayString((_a = unref(fieldMeta)) == null ? void 0 : _a.label), 1)
22834
22642
  ]),
22835
- createElementVNode("div", _hoisted_3$e, [
22643
+ createElementVNode("div", _hoisted_3$f, [
22836
22644
  createElementVNode("div", _hoisted_4$9, [
22837
22645
  (openBlock(true), createElementBlock(Fragment, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
22838
22646
  return openBlock(), createElementBlock("div", {
@@ -22861,7 +22669,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22861
22669
  class: "flex table-row"
22862
22670
  }, [
22863
22671
  createElementVNode("div", _hoisted_5$9, [
22864
- createVNode(unref(_sfc_main$s), { icon: "more_vert" })
22672
+ createVNode(unref(_sfc_main$t), { icon: "more_vert" })
22865
22673
  ]),
22866
22674
  (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = unref(entityMeta)) == null ? void 0 : _a2.fields, (field) => {
22867
22675
  return openBlock(), createElementBlock("div", {
@@ -22878,7 +22686,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22878
22686
  ], 2);
22879
22687
  }), 128)),
22880
22688
  createElementVNode("div", _hoisted_6$8, [
22881
- createVNode(unref(_sfc_main$s), {
22689
+ createVNode(unref(_sfc_main$t), {
22882
22690
  icon: "delete",
22883
22691
  onClick: ($event) => removeRow(index2)
22884
22692
  }, null, 8, ["onClick"])
@@ -22904,11 +22712,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22904
22712
  ])),
22905
22713
  _: 1
22906
22714
  })
22907
- ], 8, _hoisted_1$q);
22715
+ ], 8, _hoisted_1$r);
22908
22716
  };
22909
22717
  }
22910
22718
  });
22911
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-e9632f79"]]);
22719
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e9632f79"]]);
22912
22720
  function bind(fn, thisArg) {
22913
22721
  return function wrap() {
22914
22722
  return fn.apply(thisArg, arguments);
@@ -27382,9 +27190,9 @@ function parsePhoneNumber$1() {
27382
27190
  function parsePhoneNumber() {
27383
27191
  return withMetadataArgument(parsePhoneNumber$1, arguments);
27384
27192
  }
27385
- const _hoisted_1$p = { key: 0 };
27386
- const _hoisted_2$f = ["aria-expanded"];
27387
- const _hoisted_3$d = { class: "flex gap-05 country-code-display" };
27193
+ const _hoisted_1$q = { key: 0 };
27194
+ const _hoisted_2$g = ["aria-expanded"];
27195
+ const _hoisted_3$e = { class: "flex gap-05 country-code-display" };
27388
27196
  const _hoisted_4$8 = { class: "p-075 tel-countryp-dropdown" };
27389
27197
  const _hoisted_5$8 = {
27390
27198
  class: "overflow-y p-0 max-h-300px",
@@ -27393,7 +27201,7 @@ const _hoisted_5$8 = {
27393
27201
  const _hoisted_6$7 = ["aria-selected", "onClick"];
27394
27202
  const _hoisted_7$5 = { class: "tel-country" };
27395
27203
  const _hoisted_8$4 = ["id", "required", "placeholder", "disabled", "name"];
27396
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
27204
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
27397
27205
  __name: "TelInput",
27398
27206
  props: {
27399
27207
  id: {},
@@ -27563,7 +27371,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
27563
27371
  }, [
27564
27372
  createElementVNode("label", null, [
27565
27373
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
27566
- _ctx.required && _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$p, "*")) : createCommentVNode("", true),
27374
+ _ctx.required && _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$q, "*")) : createCommentVNode("", true),
27567
27375
  createElementVNode("div", {
27568
27376
  dir: "ltr",
27569
27377
  class: "flex gap-05 tel-input",
@@ -27572,7 +27380,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
27572
27380
  "aria-haspopup": "listbox",
27573
27381
  "aria-expanded": unref(open)
27574
27382
  }, [
27575
- createVNode(unref(_sfc_main$X), {
27383
+ createVNode(unref(_sfc_main$Y), {
27576
27384
  shown: unref(open),
27577
27385
  "onUpdate:shown": _cache[1] || (_cache[1] = ($event) => isRef(open) ? open.value = $event : open = $event),
27578
27386
  placement: "bottom-start",
@@ -27580,8 +27388,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
27580
27388
  onShow: focusSearchInput
27581
27389
  }, {
27582
27390
  trigger: withCtx(() => [
27583
- createElementVNode("span", _hoisted_3$d, [
27584
- !disableDropdown.value ? (openBlock(), createBlock(unref(_sfc_main$s), {
27391
+ createElementVNode("span", _hoisted_3$e, [
27392
+ !disableDropdown.value ? (openBlock(), createBlock(unref(_sfc_main$t), {
27585
27393
  key: 0,
27586
27394
  icon: unref(open) ? "collapse_all" : "expand_all"
27587
27395
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -27652,23 +27460,23 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
27652
27460
  { tel: true }
27653
27461
  ]
27654
27462
  ])
27655
- ], 8, _hoisted_2$f)
27463
+ ], 8, _hoisted_2$g)
27656
27464
  ])
27657
27465
  ], 2);
27658
27466
  };
27659
27467
  }
27660
27468
  });
27661
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-24f599bf"]]);
27662
- const _hoisted_1$o = ["title"];
27663
- const _hoisted_2$e = ["for"];
27664
- const _hoisted_3$c = { key: 0 };
27469
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-24f599bf"]]);
27470
+ const _hoisted_1$p = ["title"];
27471
+ const _hoisted_2$f = ["for"];
27472
+ const _hoisted_3$d = { key: 0 };
27665
27473
  const _hoisted_4$7 = ["id", "name", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
27666
27474
  const _hoisted_5$7 = ["id", "name", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
27667
27475
  const _hoisted_6$6 = {
27668
27476
  key: 3,
27669
27477
  class: "opacity-7 light"
27670
27478
  };
27671
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
27479
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
27672
27480
  __name: "TextInput",
27673
27481
  props: {
27674
27482
  id: {},
@@ -27760,7 +27568,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
27760
27568
  }, [
27761
27569
  createElementVNode("label", { for: _ctx.id }, [
27762
27570
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
27763
- _ctx.required && _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$c, "*")) : createCommentVNode("", true),
27571
+ _ctx.required && _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_3$d, "*")) : createCommentVNode("", true),
27764
27572
  !_ctx.multiline && !_ctx.autoheight && !_ctx.code && inputRows.value < 2 ? withDirectives((openBlock(), createElementBlock("input", mergeProps({
27765
27573
  key: 1,
27766
27574
  id: _ctx.id,
@@ -27811,25 +27619,25 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
27811
27619
  [vModelText, unref(inputVal)]
27812
27620
  ]),
27813
27621
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_6$6, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
27814
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$s), {
27622
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$t), {
27815
27623
  key: 4,
27816
27624
  class: "iconStart",
27817
27625
  icon: _ctx.iconStart
27818
27626
  }, null, 8, ["icon"])) : createCommentVNode("", true),
27819
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
27627
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
27820
27628
  key: 5,
27821
27629
  icon: _ctx.icon
27822
27630
  }, null, 8, ["icon"])) : createCommentVNode("", true)
27823
- ], 8, _hoisted_2$e)
27824
- ], 10, _hoisted_1$o);
27631
+ ], 8, _hoisted_2$f)
27632
+ ], 10, _hoisted_1$p);
27825
27633
  };
27826
27634
  }
27827
27635
  });
27828
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-84ff4b81"]]);
27829
- const _hoisted_1$n = ["title"];
27830
- const _hoisted_2$d = ["id", "required"];
27831
- const _hoisted_3$b = ["for"];
27832
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
27636
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-84ff4b81"]]);
27637
+ const _hoisted_1$o = ["title"];
27638
+ const _hoisted_2$e = ["id", "required"];
27639
+ const _hoisted_3$c = ["for"];
27640
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
27833
27641
  __name: "ToggleInput",
27834
27642
  props: /* @__PURE__ */ mergeModels({
27835
27643
  label: {},
@@ -27865,19 +27673,19 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
27865
27673
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
27866
27674
  type: "checkbox",
27867
27675
  required: _ctx.required
27868
- }, null, 8, _hoisted_2$d), [
27676
+ }, null, 8, _hoisted_2$e), [
27869
27677
  [vModelCheckbox, checked.value]
27870
27678
  ]),
27871
27679
  createElementVNode("label", { for: inputId.value }, [
27872
27680
  renderSlot(_ctx.$slots, "label", {}, () => [
27873
27681
  createTextVNode(toDisplayString(_ctx.label), 1)
27874
27682
  ], true)
27875
- ], 8, _hoisted_3$b)
27876
- ], 10, _hoisted_1$n);
27683
+ ], 8, _hoisted_3$c)
27684
+ ], 10, _hoisted_1$o);
27877
27685
  };
27878
27686
  }
27879
27687
  });
27880
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-c5e45931"]]);
27688
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-c5e45931"]]);
27881
27689
  const files = {
27882
27690
  setBaseUrl: (baseUrl) => {
27883
27691
  if (!baseUrl) return;
@@ -27906,9 +27714,9 @@ const files = {
27906
27714
  return axios$1.get("/files_v2/list", { params: { dir_path: dirPath } });
27907
27715
  }
27908
27716
  };
27909
- const _hoisted_1$m = { class: "bagel-input" };
27910
- const _hoisted_2$c = { key: 0 };
27911
- const _hoisted_3$a = {
27717
+ const _hoisted_1$n = { class: "bagel-input" };
27718
+ const _hoisted_2$d = { key: 0 };
27719
+ const _hoisted_3$b = {
27912
27720
  key: 1,
27913
27721
  placeholder: "required",
27914
27722
  type: "text",
@@ -27947,7 +27755,7 @@ const _hoisted_15 = {
27947
27755
  };
27948
27756
  const _hoisted_16 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
27949
27757
  const _hoisted_17 = { class: "pretty balance" };
27950
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
27758
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
27951
27759
  __name: "UploadInput",
27952
27760
  props: {
27953
27761
  label: {},
@@ -28056,10 +27864,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28056
27864
  return (_ctx, _cache) => {
28057
27865
  const _directive_tooltip = resolveDirective("tooltip");
28058
27866
  const _directive_lightbox = resolveDirective("lightbox");
28059
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
28060
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$c, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
28061
- _ctx.required && !pathKeys.value.length ? (openBlock(), createElementBlock("input", _hoisted_3$a)) : createCommentVNode("", true),
28062
- _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$11), {
27867
+ return openBlock(), createElementBlock("div", _hoisted_1$n, [
27868
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$d, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
27869
+ _ctx.required && !pathKeys.value.length ? (openBlock(), createElementBlock("input", _hoisted_3$b)) : createCommentVNode("", true),
27870
+ _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$12), {
28063
27871
  key: 2,
28064
27872
  outline: "",
28065
27873
  class: "flex p-05 gap-1",
@@ -28105,7 +27913,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28105
27913
  download: path_key.split("/").pop()
28106
27914
  }, null, 8, ["href", "download"]),
28107
27915
  createElementVNode("div", _hoisted_5$6, [
28108
- createVNode(unref(_sfc_main$s), {
27916
+ createVNode(unref(_sfc_main$t), {
28109
27917
  icon: "draft",
28110
27918
  size: 1.5
28111
27919
  }),
@@ -28148,7 +27956,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28148
27956
  key: 0,
28149
27957
  pathKey: path_key,
28150
27958
  class: "multi-preview"
28151
- }, null, 8, ["pathKey"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
27959
+ }, null, 8, ["pathKey"])) : (openBlock(), createBlock(unref(_sfc_main$t), {
28152
27960
  key: 1,
28153
27961
  icon: "description",
28154
27962
  class: "multi-preview"
@@ -28175,7 +27983,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28175
27983
  class: "multi-preview",
28176
27984
  src: fileToUrl(file.file),
28177
27985
  alt: ""
28178
- }, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
27986
+ }, null, 8, ["src"])) : (openBlock(), createBlock(unref(_sfc_main$t), {
28179
27987
  key: 1,
28180
27988
  icon: "description",
28181
27989
  class: "multi-preview"
@@ -28186,7 +27994,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28186
27994
  style: normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
28187
27995
  }, [
28188
27996
  file.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_11$2, toDisplayString(file.progress.toFixed(0)), 1)) : createCommentVNode("", true),
28189
- createVNode(unref(_sfc_main$s), {
27997
+ createVNode(unref(_sfc_main$t), {
28190
27998
  class: "success",
28191
27999
  icon: "check_circle"
28192
28000
  })
@@ -28234,7 +28042,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28234
28042
  }, null, 8, ["pathKey"]), [
28235
28043
  [_directive_lightbox, { src: unref(pathKeyToURL)(path_key), download: true }]
28236
28044
  ])
28237
- ])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$s), {
28045
+ ])) : withDirectives((openBlock(), createBlock(unref(_sfc_main$t), {
28238
28046
  key: 1,
28239
28047
  size: 4,
28240
28048
  weight: "2",
@@ -28255,7 +28063,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28255
28063
  style: normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
28256
28064
  }, [
28257
28065
  file.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(file.progress.toFixed(0)), 1)) : createCommentVNode("", true),
28258
- createVNode(unref(_sfc_main$s), {
28066
+ createVNode(unref(_sfc_main$t), {
28259
28067
  class: "success",
28260
28068
  icon: "check_circle"
28261
28069
  })
@@ -28279,7 +28087,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28279
28087
  browse
28280
28088
  }, () => [
28281
28089
  createElementVNode("p", _hoisted_16, [
28282
- createVNode(unref(_sfc_main$s), { icon: "upload_2" }),
28090
+ createVNode(unref(_sfc_main$t), { icon: "upload_2" }),
28283
28091
  createElementVNode("span", _hoisted_17, toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
28284
28092
  ])
28285
28093
  ], true) : createCommentVNode("", true)
@@ -28288,7 +28096,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28288
28096
  };
28289
28097
  }
28290
28098
  });
28291
- const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d8f3ff01"]]);
28099
+ const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-d8f3ff01"]]);
28292
28100
  const FONT_AWESOME_ICONS = [
28293
28101
  "trash-can",
28294
28102
  "message",
@@ -32714,7 +32522,7 @@ const MATERIAL_ICONS = [
32714
32522
  "zoom_out",
32715
32523
  "zoom_out_map"
32716
32524
  ];
32717
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
32525
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
32718
32526
  __name: "Icon",
32719
32527
  props: {
32720
32528
  icon: {},
@@ -32745,8 +32553,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
32745
32553
  };
32746
32554
  }
32747
32555
  });
32748
- const _hoisted_1$l = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
32749
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
32556
+ const _hoisted_1$m = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
32557
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
32750
32558
  __name: "IframeVue",
32751
32559
  props: {
32752
32560
  src: {},
@@ -32805,14 +32613,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
32805
32613
  scrolling: _ctx.scrolling,
32806
32614
  srcset: _ctx.srcset,
32807
32615
  onLoad: _cache[0] || (_cache[0] = ($event) => emit2("load", $event))
32808
- }, null, 40, _hoisted_1$l);
32616
+ }, null, 40, _hoisted_1$m);
32809
32617
  };
32810
32618
  }
32811
32619
  });
32812
- const _hoisted_1$k = { key: 0 };
32813
- const _hoisted_2$b = ["src", "alt", "width", "height"];
32814
- const _hoisted_3$9 = ["src", "alt", "width", "height"];
32815
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
32620
+ const _hoisted_1$l = { key: 0 };
32621
+ const _hoisted_2$c = ["src", "alt", "width", "height"];
32622
+ const _hoisted_3$a = ["src", "alt", "width", "height"];
32623
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
32816
32624
  __name: "Image",
32817
32625
  props: {
32818
32626
  src: {},
@@ -32888,7 +32696,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
32888
32696
  }
32889
32697
  watch(() => [props2.src, props2.pathKey], loadImage, { immediate: true });
32890
32698
  return (_ctx, _cache) => {
32891
- return _ctx.caption ? (openBlock(), createElementBlock("figcaption", _hoisted_1$k, [
32699
+ return _ctx.caption ? (openBlock(), createElementBlock("figcaption", _hoisted_1$l, [
32892
32700
  unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
32893
32701
  key: 0,
32894
32702
  src: unref(imageSrc)
@@ -32896,7 +32704,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
32896
32704
  alt: _ctx.alt,
32897
32705
  width: unref(normalizeDimension)(_ctx.width),
32898
32706
  height: unref(normalizeDimension)(_ctx.height)
32899
- }), null, 16, _hoisted_2$b)) : (openBlock(), createBlock(unref(Skeleton), {
32707
+ }), null, 16, _hoisted_2$c)) : (openBlock(), createBlock(unref(Skeleton), {
32900
32708
  key: 1,
32901
32709
  class: "img-web-kit",
32902
32710
  width: unref(normalizeDimension)(_ctx.width),
@@ -32909,7 +32717,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
32909
32717
  alt: _ctx.alt,
32910
32718
  width: unref(normalizeDimension)(_ctx.width),
32911
32719
  height: unref(normalizeDimension)(_ctx.height)
32912
- }), null, 16, _hoisted_3$9)) : unref(loadingError) ? (openBlock(), createElementBlock("div", {
32720
+ }), null, 16, _hoisted_3$a)) : unref(loadingError) ? (openBlock(), createElementBlock("div", {
32913
32721
  key: 2,
32914
32722
  class: "flex-center error-image",
32915
32723
  style: normalizeStyle({
@@ -32917,7 +32725,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
32917
32725
  height: unref(normalizeDimension)(_ctx.height)
32918
32726
  })
32919
32727
  }, [
32920
- createVNode(unref(_sfc_main$s), { name: "broken_image" })
32728
+ createVNode(unref(_sfc_main$t), { name: "broken_image" })
32921
32729
  ], 4)) : (openBlock(), createBlock(unref(Skeleton), {
32922
32730
  key: 3,
32923
32731
  class: "img-web-kit",
@@ -32927,16 +32735,16 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
32927
32735
  };
32928
32736
  }
32929
32737
  });
32930
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2f5e271c"]]);
32931
- const _hoisted_1$j = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
32932
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
32738
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-2f5e271c"]]);
32739
+ const _hoisted_1$k = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
32740
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
32933
32741
  __name: "BottomMenu",
32934
32742
  props: {
32935
32743
  navLinks: {}
32936
32744
  },
32937
32745
  setup(__props) {
32938
32746
  return (_ctx, _cache) => {
32939
- return openBlock(), createBlock(unref(_sfc_main$11), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
32747
+ return openBlock(), createBlock(unref(_sfc_main$12), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
32940
32748
  default: withCtx(() => [
32941
32749
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
32942
32750
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navLinks, (nav, i2) => {
@@ -32947,12 +32755,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
32947
32755
  onClick: nav.onClick
32948
32756
  }, {
32949
32757
  default: withCtx(() => [
32950
- createVNode(unref(_sfc_main$s), {
32758
+ createVNode(unref(_sfc_main$t), {
32951
32759
  icon: nav.icon,
32952
32760
  size: 1.4,
32953
32761
  class: "m-0 line-height-14"
32954
32762
  }, null, 8, ["icon"]),
32955
- createElementVNode("p", _hoisted_1$j, toDisplayString(nav.label), 1)
32763
+ createElementVNode("p", _hoisted_1$k, toDisplayString(nav.label), 1)
32956
32764
  ]),
32957
32765
  _: 2
32958
32766
  }, 1032, ["to", "onClick"]);
@@ -32964,8 +32772,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
32964
32772
  };
32965
32773
  }
32966
32774
  });
32967
- const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2227f9cc"]]);
32968
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
32775
+ const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2227f9cc"]]);
32776
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
32969
32777
  __name: "Layout",
32970
32778
  props: {
32971
32779
  gap: { default: 1 },
@@ -33006,9 +32814,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
33006
32814
  };
33007
32815
  }
33008
32816
  });
33009
- const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-1814129a"]]);
33010
- const _hoisted_1$i = { key: 0 };
33011
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
32817
+ const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1814129a"]]);
32818
+ const _hoisted_1$j = { key: 0 };
32819
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
33012
32820
  __name: "SidebarMenu",
33013
32821
  props: {
33014
32822
  navLinks: {},
@@ -33037,7 +32845,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
33037
32845
  icon: "keyboard_arrow_right",
33038
32846
  onClick: unref(toggleMenu)
33039
32847
  }, null, 8, ["onClick"]),
33040
- createVNode(unref(_sfc_main$11), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
32848
+ createVNode(unref(_sfc_main$12), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
33041
32849
  default: withCtx(() => [
33042
32850
  !unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
33043
32851
  unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
@@ -33052,13 +32860,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
33052
32860
  ...nav.onClick && { onClick: nav.onClick }
33053
32861
  }, { class: "nav-button px-075 me-auto w-100" }), {
33054
32862
  default: withCtx(() => [
33055
- createVNode(unref(_sfc_main$s), {
32863
+ createVNode(unref(_sfc_main$t), {
33056
32864
  icon: nav.icon,
33057
32865
  size: 1.4
33058
32866
  }, null, 8, ["icon"]),
33059
32867
  createVNode(Transition, { name: "showP" }, {
33060
32868
  default: withCtx(() => [
33061
- _ctx.open ? (openBlock(), createElementBlock("p", _hoisted_1$i, toDisplayString(nav.label), 1)) : createCommentVNode("", true)
32869
+ _ctx.open ? (openBlock(), createElementBlock("p", _hoisted_1$j, toDisplayString(nav.label), 1)) : createCommentVNode("", true)
33062
32870
  ]),
33063
32871
  _: 2
33064
32872
  }, 1024)
@@ -33085,8 +32893,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
33085
32893
  };
33086
32894
  }
33087
32895
  });
33088
- const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-43939d5b"]]);
33089
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
32896
+ const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-43939d5b"]]);
32897
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
33090
32898
  __name: "Skeleton",
33091
32899
  props: {
33092
32900
  count: { default: 1 },
@@ -33117,11 +32925,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
33117
32925
  };
33118
32926
  }
33119
32927
  });
33120
- const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8788ed73"]]);
33121
- const _hoisted_1$h = { class: "bgl_card tabs-top" };
33122
- const _hoisted_2$a = { class: "tabs grid auto-flow-columns fit-content" };
33123
- const _hoisted_3$8 = ["onClick"];
33124
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
32928
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-8788ed73"]]);
32929
+ const _hoisted_1$i = { class: "bgl_card tabs-top" };
32930
+ const _hoisted_2$b = { class: "tabs grid auto-flow-columns fit-content" };
32931
+ const _hoisted_3$9 = ["onClick"];
32932
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
33125
32933
  __name: "TabbedLayout",
33126
32934
  props: {
33127
32935
  title: {},
@@ -33154,9 +32962,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
33154
32962
  return openBlock(), createElementBlock("div", {
33155
32963
  class: normalizeClass(["h-100 grid list-view gap-1", { "side-tabs": _ctx.sideTabs }])
33156
32964
  }, [
33157
- createElementVNode("div", _hoisted_1$h, [
32965
+ createElementVNode("div", _hoisted_1$i, [
33158
32966
  renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
33159
- createElementVNode("div", _hoisted_2$a, [
32967
+ createElementVNode("div", _hoisted_2$b, [
33160
32968
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabs, (tab) => {
33161
32969
  var _a;
33162
32970
  return openBlock(), createElementBlock("div", {
@@ -33165,7 +32973,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
33165
32973
  active: tab === unref(activeTab) || tab === ((_a = _ctx.router) == null ? void 0 : _a.currentRoute.value.path.split("/").slice(-1)[0])
33166
32974
  }, "tab"]),
33167
32975
  onClick: ($event) => changeTab(tab)
33168
- }, toDisplayString(tab), 11, _hoisted_3$8);
32976
+ }, toDisplayString(tab), 11, _hoisted_3$9);
33169
32977
  }), 128))
33170
32978
  ])
33171
32979
  ]),
@@ -33181,7 +32989,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
33181
32989
  };
33182
32990
  }
33183
32991
  });
33184
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-915732c1"]]);
32992
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-915732c1"]]);
33185
32993
  const state = reactive(/* @__PURE__ */ new Map());
33186
32994
  function useTabs(group) {
33187
32995
  if (!state.has(group)) {
@@ -33195,8 +33003,8 @@ function useTabs(group) {
33195
33003
  });
33196
33004
  return { currentTab };
33197
33005
  }
33198
- const _hoisted_1$g = { key: 0 };
33199
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
33006
+ const _hoisted_1$h = { key: 0 };
33007
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
33200
33008
  __name: "Tabs",
33201
33009
  props: {
33202
33010
  tabs: {},
@@ -33238,14 +33046,14 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
33238
33046
  group: unref(group),
33239
33047
  class: "mb-05"
33240
33048
  }, null, 8, ["modelValue", "flat", "tabs", "group"]),
33241
- unref(currentTab) ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
33049
+ unref(currentTab) ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
33242
33050
  unref(slots)[unref(currentTab)] ? renderSlot(_ctx.$slots, unref(currentTab), { key: 0 }) : unref(currentTab) ? (openBlock(), createBlock(resolveDynamicComponent(unref(tabComponent)), { key: 1 })) : createCommentVNode("", true)
33243
33051
  ])) : createCommentVNode("", true)
33244
33052
  ], 64);
33245
33053
  };
33246
33054
  }
33247
33055
  });
33248
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
33056
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
33249
33057
  __name: "TabsBody",
33250
33058
  props: {
33251
33059
  group: {}
@@ -33258,8 +33066,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
33258
33066
  };
33259
33067
  }
33260
33068
  });
33261
- const _hoisted_1$f = ["onClick"];
33262
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
33069
+ const _hoisted_1$g = ["onClick"];
33070
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
33263
33071
  __name: "TabsNav",
33264
33072
  props: {
33265
33073
  title: {},
@@ -33346,31 +33154,31 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
33346
33154
  class: normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
33347
33155
  onClick: ($event) => selectTab(tab)
33348
33156
  }, [
33349
- typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
33157
+ typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
33350
33158
  key: 0,
33351
33159
  icon: tab.icon
33352
33160
  }, null, 8, ["icon"])) : createCommentVNode("", true),
33353
33161
  createTextVNode(" " + toDisplayString(tabLabel(tab)), 1)
33354
- ], 10, _hoisted_1$f);
33162
+ ], 10, _hoisted_1$g);
33355
33163
  }), 128))
33356
33164
  ], true)
33357
33165
  ], 2);
33358
33166
  };
33359
33167
  }
33360
33168
  });
33361
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6ece2018"]]);
33362
- const _hoisted_1$e = { class: "txt-start" };
33363
- const _hoisted_2$9 = {
33169
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6ece2018"]]);
33170
+ const _hoisted_1$f = { class: "txt-start" };
33171
+ const _hoisted_2$a = {
33364
33172
  key: 0,
33365
33173
  class: "txt10 m-0 p-0 txt-gray ellipsis"
33366
33174
  };
33367
- const _hoisted_3$7 = { class: "m-0 p-0 ellipsis-1 line-height-14 pb-025" };
33175
+ const _hoisted_3$8 = { class: "m-0 p-0 ellipsis-1 line-height-14 pb-025" };
33368
33176
  const _hoisted_4$5 = {
33369
33177
  key: 1,
33370
33178
  class: "txt12 m-0 p-0 opacity-7 ellipsis-1"
33371
33179
  };
33372
33180
  const _hoisted_5$5 = ["textContent"];
33373
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
33181
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
33374
33182
  __name: "ListItem",
33375
33183
  props: {
33376
33184
  src: {},
@@ -33432,18 +33240,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
33432
33240
  src: _ctx.src,
33433
33241
  size: 40
33434
33242
  }, null, 8, ["name", "src"])) : createCommentVNode("", true),
33435
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
33243
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
33436
33244
  key: 1,
33437
33245
  size: "1.2",
33438
33246
  class: "color-primary",
33439
33247
  icon: _ctx.icon
33440
33248
  }, null, 8, ["icon"])) : createCommentVNode("", true),
33441
- createElementVNode("div", _hoisted_1$e, [
33442
- _ctx.lead ? (openBlock(), createElementBlock("p", _hoisted_2$9, [
33249
+ createElementVNode("div", _hoisted_1$f, [
33250
+ _ctx.lead ? (openBlock(), createElementBlock("p", _hoisted_2$a, [
33443
33251
  createTextVNode(toDisplayString(_ctx.lead) + " ", 1),
33444
33252
  renderSlot(_ctx.$slots, "lead")
33445
33253
  ])) : createCommentVNode("", true),
33446
- createElementVNode("p", _hoisted_3$7, [
33254
+ createElementVNode("p", _hoisted_3$8, [
33447
33255
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
33448
33256
  renderSlot(_ctx.$slots, "default")
33449
33257
  ]),
@@ -33454,7 +33262,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
33454
33262
  ]),
33455
33263
  _cache[0] || (_cache[0] = createElementVNode("div", { class: "flex-grow-1" }, null, -1)),
33456
33264
  renderSlot(_ctx.$slots, "end", {}, () => [
33457
- _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$s), {
33265
+ _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$t), {
33458
33266
  key: 0,
33459
33267
  icon: _ctx.iconEnd,
33460
33268
  class: "transition-400"
@@ -33473,23 +33281,23 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
33473
33281
  };
33474
33282
  }
33475
33283
  });
33476
- const _sfc_main$g = {};
33477
- const _hoisted_1$d = { class: "list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0" };
33478
- const _hoisted_2$8 = { class: "p-0" };
33479
- const _hoisted_3$6 = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
33284
+ const _sfc_main$h = {};
33285
+ const _hoisted_1$e = { class: "list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0" };
33286
+ const _hoisted_2$9 = { class: "p-0" };
33287
+ const _hoisted_3$7 = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
33480
33288
  function _sfc_render$3(_ctx, _cache) {
33481
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
33482
- createElementVNode("div", _hoisted_2$8, [
33289
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
33290
+ createElementVNode("div", _hoisted_2$9, [
33483
33291
  renderSlot(_ctx.$slots, "header")
33484
33292
  ]),
33485
- createElementVNode("div", _hoisted_3$6, [
33293
+ createElementVNode("div", _hoisted_3$7, [
33486
33294
  renderSlot(_ctx.$slots, "default")
33487
33295
  ])
33488
33296
  ]);
33489
33297
  }
33490
- const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$3]]);
33491
- const _hoisted_1$c = { class: "flex-center" };
33492
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
33298
+ const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$3]]);
33299
+ const _hoisted_1$d = { class: "flex-center" };
33300
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
33493
33301
  __name: "Loading",
33494
33302
  props: {
33495
33303
  size: { default: 50 },
@@ -33511,7 +33319,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
33511
33319
  return standardSize(borderValue);
33512
33320
  });
33513
33321
  return (_ctx, _cache) => {
33514
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
33322
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
33515
33323
  theme.value === "bar" ? (openBlock(), createElementBlock("div", {
33516
33324
  key: 0,
33517
33325
  class: "lds-bar",
@@ -33553,11 +33361,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
33553
33361
  };
33554
33362
  }
33555
33363
  });
33556
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-2d349a92"]]);
33557
- const _hoisted_1$b = ["id"];
33364
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-2d349a92"]]);
33365
+ const _hoisted_1$c = ["id"];
33558
33366
  const defaultMarkerSVG = '<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>';
33559
33367
  const leafletScriptUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
33560
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
33368
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
33561
33369
  __name: "Index",
33562
33370
  props: {
33563
33371
  center: { default: () => [31.7683, 35.2137] },
@@ -33648,23 +33456,23 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
33648
33456
  class: "leaflet-map",
33649
33457
  style: normalizeStyle({ height: `${props2.height || 400}px` }),
33650
33458
  dir: "ltr"
33651
- }, null, 12, _hoisted_1$b);
33459
+ }, null, 12, _hoisted_1$c);
33652
33460
  };
33653
33461
  }
33654
33462
  });
33655
- const _hoisted_1$a = {
33463
+ const _hoisted_1$b = {
33656
33464
  key: 0,
33657
33465
  class: "tool-bar"
33658
33466
  };
33659
- const _hoisted_2$7 = {
33467
+ const _hoisted_2$8 = {
33660
33468
  key: 1,
33661
33469
  class: "sticky z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
33662
33470
  };
33663
- const _hoisted_3$5 = {
33471
+ const _hoisted_3$6 = {
33664
33472
  key: 2,
33665
33473
  class: "modal-footer mt-1"
33666
33474
  };
33667
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
33475
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
33668
33476
  __name: "Modal",
33669
33477
  props: {
33670
33478
  thin: { type: Boolean },
@@ -33721,7 +33529,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33721
33529
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
33722
33530
  onKeydown: withKeys(closeModal, ["esc"])
33723
33531
  }, [
33724
- createVNode(unref(_sfc_main$11), {
33532
+ createVNode(unref(_sfc_main$12), {
33725
33533
  class: "modal",
33726
33534
  style: normalizeStyle({ ...maxWidth.value }),
33727
33535
  thin: _ctx.thin,
@@ -33731,7 +33539,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33731
33539
  default: withCtx(() => {
33732
33540
  var _a;
33733
33541
  return [
33734
- unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$a, [
33542
+ unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$b, [
33735
33543
  renderSlot(_ctx.$slots, "toolbar"),
33736
33544
  createVNode(unref(Btn), {
33737
33545
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -33746,7 +33554,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33746
33554
  tag: "h3",
33747
33555
  label: _ctx.title
33748
33556
  }, null, 8, ["label"])) : createCommentVNode("", true)
33749
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$7, [
33557
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$8, [
33750
33558
  createVNode(unref(Btn), {
33751
33559
  class: "position-start",
33752
33560
  icon: "close",
@@ -33757,7 +33565,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33757
33565
  })
33758
33566
  ])),
33759
33567
  renderSlot(_ctx.$slots, "default"),
33760
- unref(slots).footer || ((_a = _ctx.actions) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("footer", _hoisted_3$5, [
33568
+ unref(slots).footer || ((_a = _ctx.actions) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("footer", _hoisted_3$6, [
33761
33569
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.actions, (action, i2) => {
33762
33570
  return openBlock(), createBlock(unref(Btn), mergeProps({
33763
33571
  key: i2,
@@ -33775,8 +33583,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33775
33583
  };
33776
33584
  }
33777
33585
  });
33778
- const _hoisted_1$9 = { class: "pb-05 pretty" };
33779
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
33586
+ const _hoisted_1$a = { class: "pb-05 pretty" };
33587
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
33780
33588
  __name: "ModalConfirm",
33781
33589
  props: {
33782
33590
  title: {},
@@ -33802,7 +33610,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
33802
33610
  const confirmBtnColor = props2.confirmBtnColor || "green";
33803
33611
  const cancelBtnColor = props2.cancelBtnColor || "gray";
33804
33612
  return (_ctx, _cache) => {
33805
- return openBlock(), createBlock(unref(_sfc_main$d), {
33613
+ return openBlock(), createBlock(unref(_sfc_main$e), {
33806
33614
  title: unref(title),
33807
33615
  width: "380px",
33808
33616
  dismissable: false,
@@ -33821,16 +33629,16 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
33821
33629
  }, null, 8, ["color", "value"])
33822
33630
  ]),
33823
33631
  default: withCtx(() => [
33824
- createElementVNode("p", _hoisted_1$9, toDisplayString(unref(message)), 1)
33632
+ createElementVNode("p", _hoisted_1$a, toDisplayString(unref(message)), 1)
33825
33633
  ]),
33826
33634
  _: 1
33827
33635
  }, 8, ["title"]);
33828
33636
  };
33829
33637
  }
33830
33638
  });
33831
- const _hoisted_1$8 = { class: "flex gap-0" };
33832
- const _hoisted_2$6 = { class: "flex gap-05" };
33833
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
33639
+ const _hoisted_1$9 = { class: "flex gap-0" };
33640
+ const _hoisted_2$7 = { class: "flex gap-05" };
33641
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
33834
33642
  __name: "ModalForm",
33835
33643
  props: /* @__PURE__ */ mergeModels({
33836
33644
  schema: {},
@@ -33894,7 +33702,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
33894
33702
  }
33895
33703
  __expose({ setFormValues });
33896
33704
  return (_ctx, _cache) => {
33897
- return openBlock(), createBlock(unref(_sfc_main$d), {
33705
+ return openBlock(), createBlock(unref(_sfc_main$e), {
33898
33706
  ref_key: "modal",
33899
33707
  ref: modal,
33900
33708
  side: _ctx.side,
@@ -33905,7 +33713,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
33905
33713
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => emit2("update:visible", $event))
33906
33714
  }, createSlots({
33907
33715
  default: withCtx(() => [
33908
- _ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$U), {
33716
+ _ctx.visible ? (openBlock(), createBlock(unref(_sfc_main$V), {
33909
33717
  key: 0,
33910
33718
  ref_key: "form",
33911
33719
  ref: form,
@@ -33923,7 +33731,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
33923
33731
  _ctx.onDelete || _ctx.onSubmit ? {
33924
33732
  name: "footer",
33925
33733
  fn: withCtx(() => [
33926
- createElementVNode("div", _hoisted_1$8, [
33734
+ createElementVNode("div", _hoisted_1$9, [
33927
33735
  createVNode(unref(Btn), {
33928
33736
  thin: "",
33929
33737
  flat: "",
@@ -33940,7 +33748,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
33940
33748
  onClick: runDelete
33941
33749
  }, null, 8, ["value"])) : createCommentVNode("", true)
33942
33750
  ]),
33943
- createElementVNode("div", _hoisted_2$6, [
33751
+ createElementVNode("div", _hoisted_2$7, [
33944
33752
  _ctx.onDuplicate ? (openBlock(), createBlock(unref(Btn), {
33945
33753
  key: 0,
33946
33754
  outline: "",
@@ -33966,14 +33774,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
33966
33774
  };
33967
33775
  }
33968
33776
  });
33969
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1c0f6894"]]);
33970
- const _hoisted_1$7 = { class: "full-nav" };
33971
- const _hoisted_2$5 = { class: "nav-scroll" };
33972
- const _hoisted_3$4 = { class: "nav-links-wrapper" };
33777
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-1c0f6894"]]);
33778
+ const _hoisted_1$8 = { class: "full-nav" };
33779
+ const _hoisted_2$6 = { class: "nav-scroll" };
33780
+ const _hoisted_3$5 = { class: "nav-links-wrapper" };
33973
33781
  const _hoisted_4$4 = { class: "tooltip" };
33974
33782
  const _hoisted_5$4 = { class: "bot-buttons-wrapper" };
33975
33783
  const _hoisted_6$4 = { class: "tooltip" };
33976
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
33784
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
33977
33785
  __name: "NavBar",
33978
33786
  props: {
33979
33787
  footerLinks: { default: () => [] },
@@ -34007,14 +33815,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
34007
33815
  onClick: toggleMenu,
34008
33816
  onKeypress: withKeys(toggleMenu, ["enter"])
34009
33817
  }, [
34010
- createVNode(unref(_sfc_main$s), {
33818
+ createVNode(unref(_sfc_main$t), {
34011
33819
  icon: "chevron_right",
34012
33820
  class: "top-arrow"
34013
33821
  })
34014
33822
  ], 32),
34015
- createElementVNode("div", _hoisted_1$7, [
34016
- createElementVNode("div", _hoisted_2$5, [
34017
- createElementVNode("div", _hoisted_3$4, [
33823
+ createElementVNode("div", _hoisted_1$8, [
33824
+ createElementVNode("div", _hoisted_2$6, [
33825
+ createElementVNode("div", _hoisted_3$5, [
34018
33826
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.links, (link) => {
34019
33827
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
34020
33828
  key: link.label,
@@ -34026,7 +33834,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
34026
33834
  }
34027
33835
  }, {
34028
33836
  default: withCtx(() => [
34029
- createVNode(unref(_sfc_main$s), {
33837
+ createVNode(unref(_sfc_main$t), {
34030
33838
  icon: link.icon
34031
33839
  }, null, 8, ["icon"]),
34032
33840
  createElementVNode("div", _hoisted_4$4, toDisplayString(link.label), 1)
@@ -34048,7 +33856,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
34048
33856
  }
34049
33857
  }, {
34050
33858
  default: withCtx(() => [
34051
- createVNode(unref(_sfc_main$s), {
33859
+ createVNode(unref(_sfc_main$t), {
34052
33860
  icon: link.icon
34053
33861
  }, null, 8, ["icon"]),
34054
33862
  createElementVNode("div", _hoisted_6$4, toDisplayString(link.label), 1)
@@ -34063,10 +33871,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
34063
33871
  };
34064
33872
  }
34065
33873
  });
34066
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-f3df1ee7"]]);
34067
- const _hoisted_1$6 = { class: "page-top" };
34068
- const _hoisted_2$4 = { class: "top-title m-0" };
34069
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
33874
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-f3df1ee7"]]);
33875
+ const _hoisted_1$7 = { class: "page-top" };
33876
+ const _hoisted_2$5 = { class: "top-title m-0" };
33877
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
34070
33878
  __name: "PageTitle",
34071
33879
  props: {
34072
33880
  value: {
@@ -34076,8 +33884,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
34076
33884
  },
34077
33885
  setup(__props) {
34078
33886
  return (_ctx, _cache) => {
34079
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
34080
- createElementVNode("h1", _hoisted_2$4, [
33887
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
33888
+ createElementVNode("h1", _hoisted_2$5, [
34081
33889
  renderSlot(_ctx.$slots, "default"),
34082
33890
  createTextVNode(" " + toDisplayString(__props.value), 1)
34083
33891
  ])
@@ -34085,9 +33893,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
34085
33893
  };
34086
33894
  }
34087
33895
  });
34088
- const _hoisted_1$5 = ["disabled"];
34089
- const _hoisted_2$3 = { class: "bgl_pill-flex" };
34090
- const _hoisted_3$3 = {
33896
+ const _hoisted_1$6 = ["disabled"];
33897
+ const _hoisted_2$4 = { class: "bgl_pill-flex" };
33898
+ const _hoisted_3$4 = {
34091
33899
  key: 0,
34092
33900
  class: "loading"
34093
33901
  };
@@ -34105,7 +33913,7 @@ const _hoisted_8$2 = {
34105
33913
  key: 0,
34106
33914
  class: "flex h-100"
34107
33915
  };
34108
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
33916
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
34109
33917
  __name: "Pill",
34110
33918
  props: {
34111
33919
  disabled: { type: Boolean },
@@ -34183,8 +33991,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
34183
33991
  "bgl_pill-border": _ctx.border || _ctx.outline
34184
33992
  })
34185
33993
  }, [
34186
- createElementVNode("div", _hoisted_2$3, [
34187
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_3$3)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
33994
+ createElementVNode("div", _hoisted_2$4, [
33995
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_3$4)) : (openBlock(), createElementBlock("div", _hoisted_4$3, [
34188
33996
  _ctx.btn ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
34189
33997
  createVNode(unref(Btn), mergeProps({
34190
33998
  class: "bgl_pill-btn",
@@ -34193,7 +34001,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
34193
34001
  }, _ctx.btn), null, 16)
34194
34002
  ])) : createCommentVNode("", true)
34195
34003
  ])),
34196
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
34004
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$t), {
34197
34005
  key: 2,
34198
34006
  icon: _ctx.icon
34199
34007
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -34201,7 +34009,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
34201
34009
  !unref(slots).default ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
34202
34010
  createTextVNode(toDisplayString(_ctx.value || _ctx.modelValue), 1)
34203
34011
  ], 64)) : createCommentVNode("", true),
34204
- _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$s), {
34012
+ _ctx.iconEnd ? (openBlock(), createBlock(unref(_sfc_main$t), {
34205
34013
  key: 4,
34206
34014
  icon: _ctx.iconEnd
34207
34015
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -34215,12 +34023,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
34215
34023
  ])) : createCommentVNode("", true)
34216
34024
  ]))
34217
34025
  ])
34218
- ], 10, _hoisted_1$5);
34026
+ ], 10, _hoisted_1$6);
34219
34027
  };
34220
34028
  }
34221
34029
  });
34222
- const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-764b6b8b"]]);
34223
- const _sfc_main$7 = {};
34030
+ const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-764b6b8b"]]);
34031
+ const _sfc_main$8 = {};
34224
34032
  function _sfc_render$2(_ctx, _cache) {
34225
34033
  const _component_router_view = resolveComponent("router-view");
34226
34034
  return openBlock(), createBlock(_component_router_view, null, {
@@ -34242,7 +34050,677 @@ function _sfc_render$2(_ctx, _cache) {
34242
34050
  _: 1
34243
34051
  });
34244
34052
  }
34245
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$2]]);
34053
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2]]);
34054
+ const _hoisted_1$5 = { class: "carousel-wrapper" };
34055
+ const _hoisted_2$3 = {
34056
+ key: 0,
34057
+ class: "carousel-dots"
34058
+ };
34059
+ const _hoisted_3$3 = ["aria-label", "onClick"];
34060
+ const dragThreshold = 10;
34061
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
34062
+ __name: "Slider",
34063
+ props: {
34064
+ duration: { default: 200 },
34065
+ easing: { default: "ease-out" },
34066
+ perPage: {},
34067
+ startIndex: { default: 0 },
34068
+ draggable: { type: Boolean, default: true },
34069
+ multipleDrag: { type: Boolean, default: true },
34070
+ threshold: { default: 20 },
34071
+ loop: { type: Boolean, default: true },
34072
+ rtl: { type: Boolean, default: false },
34073
+ autoplay: { type: [Boolean, String], default: "disabled" },
34074
+ autoplayInterval: { default: 3e3 },
34075
+ autoplaySpeed: { default: 50 },
34076
+ pauseOnHover: { type: Boolean, default: true },
34077
+ dots: { type: Boolean, default: false },
34078
+ slideWidth: { default: 300 },
34079
+ onInit: {},
34080
+ onChange: {}
34081
+ },
34082
+ emits: ["init", "change"],
34083
+ setup(__props, { expose: __expose, emit: __emit }) {
34084
+ const props2 = __props;
34085
+ const emit2 = __emit;
34086
+ const carouselRef = ref(null);
34087
+ const sliderFrame = ref(null);
34088
+ const innerElements = ref([]);
34089
+ const currentSlide = ref(0);
34090
+ const selectorWidth = ref(0);
34091
+ const { innerWidth } = useDevice();
34092
+ const transformProperty = ref("transform");
34093
+ const pointerDown = ref(false);
34094
+ const drag = ref({
34095
+ startX: 0,
34096
+ endX: 0,
34097
+ startY: 0,
34098
+ letItGo: null,
34099
+ preventClick: false
34100
+ });
34101
+ const isDragging = ref(false);
34102
+ const autoplayTimer = ref(null);
34103
+ const linearAnimationFrame = ref(null);
34104
+ const isHovering = ref(false);
34105
+ const linearOffset = ref(0);
34106
+ const perPage = computed(() => {
34107
+ if (typeof props2.perPage === "number") {
34108
+ return props2.perPage;
34109
+ }
34110
+ if (typeof props2.perPage === "object") {
34111
+ return Object.entries(props2.perPage).reduce((acc, [viewport, value]) => innerWidth.value >= Number(viewport) ? value : acc, 1);
34112
+ }
34113
+ return Math.max(1, Math.ceil(selectorWidth.value / props2.slideWidth));
34114
+ });
34115
+ const config = computed(() => {
34116
+ let autoplayMode = "disabled";
34117
+ if (typeof props2.autoplay === "boolean") {
34118
+ autoplayMode = props2.autoplay ? "standard" : "disabled";
34119
+ } else {
34120
+ autoplayMode = props2.autoplay;
34121
+ }
34122
+ const calculatedPerPage = perPage.value;
34123
+ return {
34124
+ duration: props2.duration,
34125
+ easing: props2.easing,
34126
+ perPage: calculatedPerPage,
34127
+ startIndex: props2.startIndex,
34128
+ draggable: props2.draggable,
34129
+ multipleDrag: props2.multipleDrag,
34130
+ threshold: props2.threshold,
34131
+ loop: props2.loop,
34132
+ rtl: props2.rtl,
34133
+ autoplay: autoplayMode,
34134
+ autoplayInterval: props2.autoplayInterval,
34135
+ autoplaySpeed: props2.autoplaySpeed,
34136
+ pauseOnHover: props2.pauseOnHover,
34137
+ dots: props2.dots,
34138
+ slideWidth: props2.slideWidth,
34139
+ onInit: () => {
34140
+ emit2("init");
34141
+ },
34142
+ onChange: () => {
34143
+ emit2("change");
34144
+ }
34145
+ };
34146
+ });
34147
+ const totalDots = computed(() => {
34148
+ if (!innerElements.value.length) return 0;
34149
+ return config.value.loop ? innerElements.value.length : Math.ceil(innerElements.value.length - perPage.value + 1);
34150
+ });
34151
+ onMounted(() => init());
34152
+ onBeforeUnmount(() => {
34153
+ stopAutoplay();
34154
+ detachEvents();
34155
+ });
34156
+ watch(() => props2, () => {
34157
+ resizeHandler();
34158
+ }, { deep: true });
34159
+ function webkitOrNot() {
34160
+ const { style } = document.documentElement;
34161
+ if (typeof style.transform === "string") {
34162
+ return "transform";
34163
+ }
34164
+ return "WebkitTransform";
34165
+ }
34166
+ function attachEvents() {
34167
+ window.addEventListener("resize", resizeHandler);
34168
+ if (config.value.draggable && carouselRef.value) {
34169
+ const eventOptions = { passive: true };
34170
+ const touchMoveOptions = { passive: false };
34171
+ const mouseMoveOptions = { passive: false };
34172
+ const mouseDownOptions = { passive: false };
34173
+ carouselRef.value.addEventListener("touchstart", touchstartHandler, eventOptions);
34174
+ carouselRef.value.addEventListener("touchend", touchendHandler, eventOptions);
34175
+ carouselRef.value.addEventListener("touchmove", touchmoveHandler, touchMoveOptions);
34176
+ carouselRef.value.addEventListener("mousedown", mousedownHandler, mouseDownOptions);
34177
+ carouselRef.value.addEventListener("mouseup", mouseupHandler, eventOptions);
34178
+ carouselRef.value.addEventListener("mouseleave", mouseleaveHandler, eventOptions);
34179
+ carouselRef.value.addEventListener("mousemove", mousemoveHandler, mouseMoveOptions);
34180
+ carouselRef.value.addEventListener("dragstart", dragstartHandler);
34181
+ carouselRef.value.addEventListener("click", clickHandler2);
34182
+ }
34183
+ if (config.value.autoplay !== "disabled" && config.value.pauseOnHover && carouselRef.value) {
34184
+ carouselRef.value.addEventListener("mouseenter", mouseenterHandler);
34185
+ carouselRef.value.addEventListener("mouseleave", mouseleaveAutoplayHandler);
34186
+ }
34187
+ }
34188
+ function detachEvents() {
34189
+ window.removeEventListener("resize", resizeHandler);
34190
+ if (carouselRef.value) {
34191
+ carouselRef.value.removeEventListener("touchstart", touchstartHandler);
34192
+ carouselRef.value.removeEventListener("touchend", touchendHandler);
34193
+ carouselRef.value.removeEventListener("touchmove", touchmoveHandler);
34194
+ carouselRef.value.removeEventListener("mousedown", mousedownHandler);
34195
+ carouselRef.value.removeEventListener("mouseup", mouseupHandler);
34196
+ carouselRef.value.removeEventListener("mouseleave", mouseleaveHandler);
34197
+ carouselRef.value.removeEventListener("mousemove", mousemoveHandler);
34198
+ carouselRef.value.removeEventListener("dragstart", dragstartHandler);
34199
+ carouselRef.value.removeEventListener("click", clickHandler2);
34200
+ carouselRef.value.removeEventListener("mouseenter", mouseenterHandler);
34201
+ carouselRef.value.removeEventListener("mouseleave", mouseleaveAutoplayHandler);
34202
+ }
34203
+ }
34204
+ async function init() {
34205
+ if (!carouselRef.value) return;
34206
+ transformProperty.value = webkitOrNot();
34207
+ await sleep(10);
34208
+ innerElements.value = Array.from(carouselRef.value.children);
34209
+ if (!innerElements.value.length) {
34210
+ console.warn("No carousel items found during initialization");
34211
+ return;
34212
+ }
34213
+ selectorWidth.value = carouselRef.value.offsetWidth;
34214
+ currentSlide.value = config.value.loop ? config.value.startIndex % innerElements.value.length : Math.max(0, Math.min(config.value.startIndex, innerElements.value.length - perPage.value));
34215
+ carouselRef.value.style.overflow = "hidden";
34216
+ carouselRef.value.style.direction = config.value.rtl ? "rtl" : "ltr";
34217
+ attachEvents();
34218
+ await nextTick();
34219
+ buildSliderFrame();
34220
+ if (config.value.autoplay !== "disabled") {
34221
+ startAutoplay();
34222
+ }
34223
+ config.value.onInit();
34224
+ }
34225
+ function buildSliderFrame() {
34226
+ if (!carouselRef.value) return;
34227
+ if (!innerElements.value.length) {
34228
+ console.warn("No carousel items found");
34229
+ return;
34230
+ }
34231
+ const widthItem = selectorWidth.value / perPage.value;
34232
+ const itemsToBuild = config.value.loop ? innerElements.value.length + 2 * perPage.value : innerElements.value.length;
34233
+ if (!sliderFrame.value) {
34234
+ sliderFrame.value = document.createElement("div");
34235
+ }
34236
+ sliderFrame.value.style.width = `${widthItem * itemsToBuild}px`;
34237
+ enableTransition();
34238
+ if (config.value.draggable && carouselRef.value) {
34239
+ carouselRef.value.style.cursor = "-webkit-grab";
34240
+ }
34241
+ const docFragment = document.createDocumentFragment();
34242
+ if (config.value.loop && innerElements.value.length > 0) {
34243
+ for (let i2 = innerElements.value.length - perPage.value; i2 < innerElements.value.length; i2++) {
34244
+ if (i2 >= 0 && i2 < innerElements.value.length) {
34245
+ const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
34246
+ docFragment.appendChild(element);
34247
+ }
34248
+ }
34249
+ }
34250
+ for (let i2 = 0; i2 < innerElements.value.length; i2++) {
34251
+ const element = buildSliderFrameItem(innerElements.value[i2]);
34252
+ docFragment.appendChild(element);
34253
+ }
34254
+ if (config.value.loop && innerElements.value.length > 0) {
34255
+ for (let i2 = 0; i2 < perPage.value; i2++) {
34256
+ if (i2 >= 0 && i2 < innerElements.value.length) {
34257
+ const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
34258
+ docFragment.appendChild(element);
34259
+ }
34260
+ }
34261
+ }
34262
+ if (sliderFrame.value) {
34263
+ sliderFrame.value.innerHTML = "";
34264
+ sliderFrame.value.appendChild(docFragment);
34265
+ if (carouselRef.value) {
34266
+ carouselRef.value.innerHTML = "";
34267
+ carouselRef.value.appendChild(sliderFrame.value);
34268
+ }
34269
+ }
34270
+ slideToCurrent();
34271
+ }
34272
+ function buildSliderFrameItem(elm) {
34273
+ const elementContainer = document.createElement("div");
34274
+ elementContainer.style.cssFloat = config.value.rtl ? "right" : "left";
34275
+ elementContainer.style.float = config.value.rtl ? "right" : "left";
34276
+ const percentage = config.value.loop ? 100 / (innerElements.value.length + perPage.value * 2) : 100 / innerElements.value.length;
34277
+ elementContainer.style.width = `${percentage}%`;
34278
+ elementContainer.appendChild(elm);
34279
+ return elementContainer;
34280
+ }
34281
+ function slideToCurrent(enableTransitionFlag) {
34282
+ const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
34283
+ const offset2 = (config.value.rtl ? 1 : -1) * currentSlideValue * (selectorWidth.value / perPage.value);
34284
+ if (enableTransitionFlag && sliderFrame.value) {
34285
+ requestAnimationFrame(() => {
34286
+ requestAnimationFrame(() => {
34287
+ enableTransition();
34288
+ if (sliderFrame.value) {
34289
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
34290
+ }
34291
+ });
34292
+ });
34293
+ } else if (sliderFrame.value) {
34294
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
34295
+ }
34296
+ }
34297
+ function prev(howManySlides = 1) {
34298
+ const beforeChange = currentSlide.value;
34299
+ if (config.value.loop) {
34300
+ const isNewIndexClone = currentSlide.value - howManySlides < 0;
34301
+ if (isNewIndexClone) {
34302
+ disableTransition();
34303
+ const mirrorSlideIndex = currentSlide.value + innerElements.value.length;
34304
+ const mirrorSlideIndexOffset = perPage.value;
34305
+ const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
34306
+ const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
34307
+ const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
34308
+ if (sliderFrame.value) {
34309
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
34310
+ }
34311
+ currentSlide.value = mirrorSlideIndex - howManySlides;
34312
+ } else {
34313
+ currentSlide.value = currentSlide.value - howManySlides;
34314
+ }
34315
+ } else {
34316
+ currentSlide.value = Math.max(currentSlide.value - howManySlides, 0);
34317
+ }
34318
+ if (beforeChange !== currentSlide.value) {
34319
+ slideToCurrent(config.value.loop);
34320
+ config.value.onChange();
34321
+ }
34322
+ if (config.value.autoplay !== "disabled") {
34323
+ startAutoplay();
34324
+ }
34325
+ }
34326
+ function next(howManySlides = 1) {
34327
+ const beforeChange = currentSlide.value;
34328
+ if (config.value.loop) {
34329
+ const isNewIndexClone = currentSlide.value + howManySlides > innerElements.value.length - perPage.value;
34330
+ if (isNewIndexClone) {
34331
+ disableTransition();
34332
+ const mirrorSlideIndex = currentSlide.value - innerElements.value.length;
34333
+ const mirrorSlideIndexOffset = perPage.value;
34334
+ const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
34335
+ const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
34336
+ const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
34337
+ if (sliderFrame.value) {
34338
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
34339
+ }
34340
+ currentSlide.value = mirrorSlideIndex + howManySlides;
34341
+ } else {
34342
+ currentSlide.value = currentSlide.value + howManySlides;
34343
+ }
34344
+ } else {
34345
+ currentSlide.value = Math.min(currentSlide.value + howManySlides, innerElements.value.length - perPage.value);
34346
+ }
34347
+ if (beforeChange !== currentSlide.value) {
34348
+ slideToCurrent(config.value.loop);
34349
+ config.value.onChange();
34350
+ }
34351
+ if (config.value.autoplay !== "disabled") {
34352
+ startAutoplay();
34353
+ }
34354
+ }
34355
+ function goTo(index2) {
34356
+ if (innerElements.value.length <= perPage.value) {
34357
+ return;
34358
+ }
34359
+ const beforeChange = currentSlide.value;
34360
+ currentSlide.value = config.value.loop ? index2 % innerElements.value.length : Math.min(Math.max(index2, 0), innerElements.value.length - perPage.value);
34361
+ if (beforeChange !== currentSlide.value) {
34362
+ slideToCurrent();
34363
+ config.value.onChange();
34364
+ }
34365
+ }
34366
+ function disableTransition() {
34367
+ if (sliderFrame.value) {
34368
+ sliderFrame.value.style.webkitTransition = `all 0ms ${config.value.easing}`;
34369
+ sliderFrame.value.style.transition = `all 0ms ${config.value.easing}`;
34370
+ }
34371
+ }
34372
+ function enableTransition() {
34373
+ if (sliderFrame.value) {
34374
+ sliderFrame.value.style.webkitTransition = `all ${config.value.duration}ms ${config.value.easing}`;
34375
+ sliderFrame.value.style.transition = `all ${config.value.duration}ms ${config.value.easing}`;
34376
+ }
34377
+ }
34378
+ function updateAfterDrag() {
34379
+ const movement = (config.value.rtl ? -1 : 1) * (drag.value.endX - drag.value.startX);
34380
+ const movementDistance = Math.abs(movement);
34381
+ const howManySliderToSlide = config.value.multipleDrag ? Math.ceil(movementDistance / (selectorWidth.value / perPage.value)) : 1;
34382
+ const slideToNegativeClone = movement > 0 && currentSlide.value - howManySliderToSlide < 0;
34383
+ const slideToPositiveClone = movement < 0 && currentSlide.value + howManySliderToSlide > innerElements.value.length - perPage.value;
34384
+ if (movement > 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
34385
+ prev(howManySliderToSlide);
34386
+ } else if (movement < 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
34387
+ next(howManySliderToSlide);
34388
+ }
34389
+ slideToCurrent(slideToNegativeClone || slideToPositiveClone);
34390
+ }
34391
+ function resizeHandler() {
34392
+ if (currentSlide.value + perPage.value > innerElements.value.length) {
34393
+ currentSlide.value = innerElements.value.length <= perPage.value ? 0 : innerElements.value.length - perPage.value;
34394
+ }
34395
+ if (carouselRef.value) {
34396
+ selectorWidth.value = carouselRef.value.offsetWidth;
34397
+ }
34398
+ buildSliderFrame();
34399
+ }
34400
+ function clearDrag() {
34401
+ drag.value = {
34402
+ startX: 0,
34403
+ endX: 0,
34404
+ startY: 0,
34405
+ letItGo: null,
34406
+ preventClick: drag.value.preventClick
34407
+ };
34408
+ }
34409
+ function touchstartHandler(e) {
34410
+ const target = e.target;
34411
+ const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
34412
+ if (ignoreTags) {
34413
+ return;
34414
+ }
34415
+ stopAutoplay();
34416
+ e.stopPropagation();
34417
+ pointerDown.value = true;
34418
+ isDragging.value = false;
34419
+ drag.value.startX = e.touches[0].pageX;
34420
+ drag.value.startY = e.touches[0].pageY;
34421
+ const isLink = target.tagName === "A" || target.closest("a");
34422
+ const isImage = target.tagName === "IMG";
34423
+ if (isLink || isImage) {
34424
+ drag.value.preventClick = false;
34425
+ }
34426
+ }
34427
+ function touchendHandler(e) {
34428
+ e.stopPropagation();
34429
+ if (isDragging.value) {
34430
+ document.addEventListener("click", function preventClickAfterDrag(event) {
34431
+ event.preventDefault();
34432
+ event.stopPropagation();
34433
+ event.stopImmediatePropagation();
34434
+ document.removeEventListener("click", preventClickAfterDrag, true);
34435
+ }, { capture: true, once: true });
34436
+ }
34437
+ pointerDown.value = false;
34438
+ isDragging.value = false;
34439
+ enableTransition();
34440
+ if (drag.value.endX) {
34441
+ updateAfterDrag();
34442
+ }
34443
+ clearDrag();
34444
+ if (config.value.autoplay !== "disabled") {
34445
+ startAutoplay();
34446
+ }
34447
+ }
34448
+ function touchmoveHandler(e) {
34449
+ e.stopPropagation();
34450
+ if (drag.value.letItGo === null) {
34451
+ drag.value.letItGo = Math.abs(drag.value.startY - e.touches[0].pageY) < Math.abs(drag.value.startX - e.touches[0].pageX);
34452
+ }
34453
+ if (pointerDown.value && drag.value.letItGo) {
34454
+ e.preventDefault();
34455
+ drag.value.endX = e.touches[0].pageX;
34456
+ const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
34457
+ if (dragDistance > dragThreshold) {
34458
+ isDragging.value = true;
34459
+ drag.value.preventClick = true;
34460
+ }
34461
+ if (sliderFrame.value) {
34462
+ disableTransition();
34463
+ const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
34464
+ const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
34465
+ const dragOffset = drag.value.endX - drag.value.startX;
34466
+ const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
34467
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
34468
+ }
34469
+ }
34470
+ }
34471
+ function mousedownHandler(e) {
34472
+ const target = e.target;
34473
+ const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
34474
+ if (ignoreTags) return;
34475
+ stopAutoplay();
34476
+ e.preventDefault();
34477
+ e.stopPropagation();
34478
+ pointerDown.value = true;
34479
+ isDragging.value = false;
34480
+ drag.value.startX = e.pageX;
34481
+ const isLink = target.tagName === "A" || target.closest("a");
34482
+ const isImage = target.tagName === "IMG";
34483
+ if (isLink || isImage) {
34484
+ drag.value.preventClick = false;
34485
+ }
34486
+ }
34487
+ function mouseupHandler(e) {
34488
+ e.stopPropagation();
34489
+ if (isDragging.value) {
34490
+ document.addEventListener("click", function preventClickAfterDrag(event) {
34491
+ event.preventDefault();
34492
+ event.stopPropagation();
34493
+ event.stopImmediatePropagation();
34494
+ document.removeEventListener("click", preventClickAfterDrag, true);
34495
+ }, { capture: true, once: true });
34496
+ }
34497
+ pointerDown.value = false;
34498
+ isDragging.value = false;
34499
+ if (carouselRef.value) {
34500
+ carouselRef.value.style.cursor = "-webkit-grab";
34501
+ }
34502
+ enableTransition();
34503
+ if (drag.value.endX) {
34504
+ updateAfterDrag();
34505
+ }
34506
+ clearDrag();
34507
+ if (config.value.autoplay !== "disabled" && !isHovering.value) {
34508
+ startAutoplay();
34509
+ }
34510
+ }
34511
+ function mousemoveHandler(e) {
34512
+ e.preventDefault();
34513
+ if (pointerDown.value) {
34514
+ drag.value.endX = e.pageX;
34515
+ const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
34516
+ if (dragDistance > dragThreshold) {
34517
+ isDragging.value = true;
34518
+ drag.value.preventClick = true;
34519
+ }
34520
+ if (carouselRef.value) {
34521
+ carouselRef.value.style.cursor = "-webkit-grabbing";
34522
+ }
34523
+ if (sliderFrame.value) {
34524
+ disableTransition();
34525
+ const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
34526
+ const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
34527
+ const dragOffset = drag.value.endX - drag.value.startX;
34528
+ const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
34529
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
34530
+ }
34531
+ }
34532
+ }
34533
+ function mouseleaveHandler(e) {
34534
+ if (pointerDown.value) {
34535
+ pointerDown.value = false;
34536
+ if (carouselRef.value) {
34537
+ carouselRef.value.style.cursor = "-webkit-grab";
34538
+ }
34539
+ drag.value.endX = e.pageX;
34540
+ drag.value.preventClick = false;
34541
+ enableTransition();
34542
+ updateAfterDrag();
34543
+ clearDrag();
34544
+ }
34545
+ }
34546
+ function clickHandler2(e) {
34547
+ if (drag.value.preventClick || isDragging.value) {
34548
+ e.preventDefault();
34549
+ e.stopPropagation();
34550
+ e.stopImmediatePropagation();
34551
+ drag.value.preventClick = false;
34552
+ }
34553
+ drag.value.preventClick = false;
34554
+ }
34555
+ function dragstartHandler(e) {
34556
+ var _a;
34557
+ if (config.value.draggable) {
34558
+ const target = e.target;
34559
+ const isDraggableElement = target.tagName === "IMG" || target.tagName === "A" || ((_a = target.parentElement) == null ? void 0 : _a.tagName) === "A";
34560
+ if (isDraggableElement) {
34561
+ e.preventDefault();
34562
+ }
34563
+ }
34564
+ }
34565
+ function remove2(index2) {
34566
+ if (index2 < 0 || index2 >= innerElements.value.length) {
34567
+ throw new Error("Item to remove doesn't exist 😭");
34568
+ }
34569
+ const lowerIndex = index2 < currentSlide.value;
34570
+ const lastItem = currentSlide.value + perPage.value - 1 === index2;
34571
+ if (lowerIndex || lastItem) {
34572
+ currentSlide.value--;
34573
+ }
34574
+ innerElements.value.splice(index2, 1);
34575
+ buildSliderFrame();
34576
+ }
34577
+ function insert(item, index2) {
34578
+ if (index2 < 0 || index2 > innerElements.value.length + 1) {
34579
+ throw new Error("Unable to insert at this index 😭");
34580
+ }
34581
+ if (innerElements.value.includes(item)) {
34582
+ throw new Error("The same item in a carousel? Really? Nope 😭");
34583
+ }
34584
+ const shouldItShift = index2 <= currentSlide.value && innerElements.value.length > 0;
34585
+ if (shouldItShift) {
34586
+ currentSlide.value++;
34587
+ }
34588
+ innerElements.value.splice(index2, 0, item);
34589
+ buildSliderFrame();
34590
+ }
34591
+ function prepend(item) {
34592
+ insert(item, 0);
34593
+ }
34594
+ function append3(item) {
34595
+ insert(item, innerElements.value.length);
34596
+ }
34597
+ function destroy2(restoreMarkup = false) {
34598
+ detachEvents();
34599
+ if (carouselRef.value) {
34600
+ carouselRef.value.style.cursor = "auto";
34601
+ if (restoreMarkup) {
34602
+ const slides = document.createDocumentFragment();
34603
+ for (let i2 = 0; i2 < innerElements.value.length; i2++) {
34604
+ slides.appendChild(innerElements.value[i2]);
34605
+ }
34606
+ carouselRef.value.innerHTML = "";
34607
+ carouselRef.value.appendChild(slides);
34608
+ carouselRef.value.removeAttribute("style");
34609
+ }
34610
+ }
34611
+ }
34612
+ async function startAutoplay() {
34613
+ stopAutoplay();
34614
+ if (config.value.autoplay === "standard") {
34615
+ autoplayTimer.value = window.setInterval(() => {
34616
+ if (!isHovering.value) {
34617
+ next();
34618
+ }
34619
+ }, config.value.autoplayInterval);
34620
+ } else if (config.value.autoplay === "linear") {
34621
+ startLinearAutoplay();
34622
+ }
34623
+ }
34624
+ function stopAutoplay() {
34625
+ if (autoplayTimer.value !== null) {
34626
+ clearInterval(autoplayTimer.value);
34627
+ autoplayTimer.value = null;
34628
+ }
34629
+ if (linearAnimationFrame.value !== null) {
34630
+ cancelAnimationFrame(linearAnimationFrame.value);
34631
+ linearAnimationFrame.value = null;
34632
+ }
34633
+ }
34634
+ function startLinearAutoplay() {
34635
+ linearOffset.value = 0;
34636
+ let lastTimestamp = 0;
34637
+ const animate = (timestamp2) => {
34638
+ if (!lastTimestamp) lastTimestamp = timestamp2;
34639
+ const elapsed = timestamp2 - lastTimestamp;
34640
+ lastTimestamp = timestamp2;
34641
+ if (isHovering.value) {
34642
+ linearAnimationFrame.value = requestAnimationFrame(animate);
34643
+ return;
34644
+ }
34645
+ const pixelsToMove = elapsed / 1e3 * config.value.autoplaySpeed;
34646
+ linearOffset.value += pixelsToMove;
34647
+ const itemWidth = selectorWidth.value / perPage.value;
34648
+ const totalWidth = itemWidth * innerElements.value.length;
34649
+ if (linearOffset.value >= totalWidth) {
34650
+ if (config.value.loop) {
34651
+ linearOffset.value = 0;
34652
+ } else {
34653
+ linearOffset.value = totalWidth - itemWidth;
34654
+ stopAutoplay();
34655
+ return;
34656
+ }
34657
+ }
34658
+ if (sliderFrame.value) {
34659
+ const direction = config.value.rtl ? 1 : -1;
34660
+ sliderFrame.value.style.transition = "none";
34661
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${direction * linearOffset.value}px, 0, 0)`;
34662
+ }
34663
+ const newSlide = Math.floor(linearOffset.value / itemWidth) % innerElements.value.length;
34664
+ if (newSlide !== currentSlide.value) {
34665
+ currentSlide.value = newSlide;
34666
+ config.value.onChange();
34667
+ }
34668
+ linearAnimationFrame.value = requestAnimationFrame(animate);
34669
+ };
34670
+ linearAnimationFrame.value = requestAnimationFrame(animate);
34671
+ }
34672
+ function mouseenterHandler() {
34673
+ isHovering.value = true;
34674
+ }
34675
+ function mouseleaveAutoplayHandler() {
34676
+ isHovering.value = false;
34677
+ }
34678
+ function pauseAutoplay() {
34679
+ stopAutoplay();
34680
+ }
34681
+ function resumeAutoplay() {
34682
+ if (config.value.autoplay !== "disabled") {
34683
+ startAutoplay();
34684
+ }
34685
+ }
34686
+ __expose({
34687
+ prev,
34688
+ next,
34689
+ goTo,
34690
+ remove: remove2,
34691
+ insert,
34692
+ prepend,
34693
+ append: append3,
34694
+ destroy: destroy2,
34695
+ currentSlide,
34696
+ pauseAutoplay,
34697
+ resumeAutoplay
34698
+ });
34699
+ return (_ctx, _cache) => {
34700
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
34701
+ createElementVNode("div", {
34702
+ ref_key: "carouselRef",
34703
+ ref: carouselRef,
34704
+ class: "carousel-container"
34705
+ }, [
34706
+ renderSlot(_ctx.$slots, "default", {}, void 0, true)
34707
+ ], 512),
34708
+ props2.dots && totalDots.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
34709
+ (openBlock(true), createElementBlock(Fragment, null, renderList(totalDots.value, (i2) => {
34710
+ return openBlock(), createElementBlock("button", {
34711
+ key: i2,
34712
+ type: "button",
34713
+ class: normalizeClass(["carousel-dot", [{ active: i2 - 1 === currentSlide.value }]]),
34714
+ "aria-label": `Go to slide ${i2}`,
34715
+ onClick: ($event) => goTo(i2 - 1)
34716
+ }, null, 10, _hoisted_3$3);
34717
+ }), 128))
34718
+ ])) : createCommentVNode("", true)
34719
+ ]);
34720
+ };
34721
+ }
34722
+ });
34723
+ const Slider = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-705b9c93"]]);
34246
34724
  const _hoisted_1$4 = { class: "stickyTop" };
34247
34725
  const _hoisted_2$2 = {
34248
34726
  key: 0,
@@ -34345,7 +34823,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
34345
34823
  createElementVNode("span", {
34346
34824
  onClick: ($event) => col.sortable && _ctx.$emit("sortColumn", col.key)
34347
34825
  }, toDisplayString(col.label || col.key), 9, _hoisted_4$2),
34348
- _ctx.sortColumn === col.key ? (openBlock(), createBlock(unref(_sfc_main$s), {
34826
+ _ctx.sortColumn === col.key ? (openBlock(), createBlock(unref(_sfc_main$t), {
34349
34827
  key: 0,
34350
34828
  class: normalizeClass(["line-height-0 transition-400", { "rotate-180": _ctx.sortDirection === "desc" }]),
34351
34829
  name: "keyboard_arrow_down"
@@ -34922,29 +35400,29 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34922
35400
  placeholder: "Search",
34923
35401
  class: "m-0 max-w200px"
34924
35402
  }, null, 8, ["modelValue"]),
34925
- createVNode(unref(_sfc_main$X), {
35403
+ createVNode(unref(_sfc_main$Y), {
34926
35404
  flat: "",
34927
35405
  thin: "",
34928
35406
  icon: "more_vert"
34929
35407
  }, {
34930
35408
  default: withCtx(() => [
34931
- createVNode(unref(_sfc_main$h), {
35409
+ createVNode(unref(_sfc_main$i), {
34932
35410
  title: "Paste",
34933
35411
  icon: "paste",
34934
35412
  onClick: pasteSelection
34935
35413
  }),
34936
- createVNode(unref(_sfc_main$h), {
35414
+ createVNode(unref(_sfc_main$i), {
34937
35415
  title: "copy",
34938
35416
  icon: "copy",
34939
35417
  onClick: copySelection
34940
35418
  }),
34941
- createVNode(unref(_sfc_main$h), {
35419
+ createVNode(unref(_sfc_main$i), {
34942
35420
  title: "Undo",
34943
35421
  icon: "undo",
34944
35422
  disabled: !canUndo.value,
34945
35423
  onClick: undo
34946
35424
  }, null, 8, ["disabled"]),
34947
- createVNode(unref(_sfc_main$h), {
35425
+ createVNode(unref(_sfc_main$i), {
34948
35426
  title: "Redo",
34949
35427
  icon: "redo",
34950
35428
  disabled: !canRedo.value,
@@ -34955,9 +35433,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
34955
35433
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(wrapText) ? wrapText.value = $event : null),
34956
35434
  label: "Wrap Text"
34957
35435
  }, null, 8, ["modelValue"]),
34958
- createVNode(unref(_sfc_main$X), { placement: "auto-end" }, {
35436
+ createVNode(unref(_sfc_main$Y), { placement: "auto-end" }, {
34959
35437
  trigger: withCtx(({ show }) => [
34960
- createVNode(unref(_sfc_main$h), {
35438
+ createVNode(unref(_sfc_main$i), {
34961
35439
  title: "Column Visibility",
34962
35440
  icon: "view_column",
34963
35441
  onClick: ($event) => show()
@@ -36175,13 +36653,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36175
36653
  title: item == null ? void 0 : item.name,
36176
36654
  class: "vw90"
36177
36655
  }, null, 8, _hoisted_5)) : (openBlock(), createElementBlock("div", _hoisted_6, [
36178
- createVNode(unref(_sfc_main$s), {
36656
+ createVNode(unref(_sfc_main$t), {
36179
36657
  class: "m-0 m_none",
36180
36658
  icon: "draft",
36181
36659
  size: 10,
36182
36660
  weight: "12"
36183
36661
  }),
36184
- createVNode(unref(_sfc_main$s), {
36662
+ createVNode(unref(_sfc_main$t), {
36185
36663
  class: "m-0 none m_block m_-mb-1",
36186
36664
  icon: "draft",
36187
36665
  size: 4,
@@ -36220,7 +36698,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36220
36698
  src: item.src,
36221
36699
  alt: "",
36222
36700
  onClick: ($event) => selectItem(index2)
36223
- }, null, 8, ["src", "class", "onClick"])) : (openBlock(), createBlock(unref(_sfc_main$s), {
36701
+ }, null, 8, ["src", "class", "onClick"])) : (openBlock(), createBlock(unref(_sfc_main$t), {
36224
36702
  key: 1,
36225
36703
  class: normalizeClass(["thumbnail object-fit-cover hover opacity-5 ed flex bg-popup justify-content-center align-items-center flex-shrink-0", { active: unref(currentIndex) === index2 }]),
36226
36704
  icon: "description",
@@ -36601,9 +37079,9 @@ const ModalPlugin = {
36601
37079
  case "modalForm":
36602
37080
  return h$2(ModalForm, props2, modal.componentSlots);
36603
37081
  case "confirmModal":
36604
- return h$2(_sfc_main$c, props2, {});
37082
+ return h$2(_sfc_main$d, props2, {});
36605
37083
  default:
36606
- return h$2(_sfc_main$d, props2, modal.componentSlots);
37084
+ return h$2(_sfc_main$e, props2, modal.componentSlots);
36607
37085
  }
36608
37086
  });
36609
37087
  }
@@ -37377,60 +37855,60 @@ function useSearch(params) {
37377
37855
  };
37378
37856
  }
37379
37857
  export {
37380
- _sfc_main$1f as Accordion,
37858
+ _sfc_main$1g as Accordion,
37381
37859
  AccordionItem,
37382
- _sfc_main$1d as AddressSearch,
37860
+ _sfc_main$1e as AddressSearch,
37383
37861
  Alert,
37384
37862
  Avatar,
37385
37863
  Badge,
37386
- _sfc_main$U as BagelForm,
37864
+ _sfc_main$V as BagelForm,
37387
37865
  BglMultiStepForm as BagelMultiStepForm,
37388
37866
  BagelVue,
37389
- _sfc_main$U as BglForm,
37867
+ _sfc_main$V as BglForm,
37390
37868
  BglVideo,
37391
37869
  BottomMenu,
37392
37870
  Btn,
37393
37871
  Index$1 as Calendar,
37394
- _sfc_main$11 as Card,
37872
+ _sfc_main$12 as Card,
37395
37873
  Carousel,
37396
37874
  CheckInput,
37397
37875
  Checkbox,
37398
37876
  CodeEditor,
37399
- _sfc_main$O as ColorInput,
37877
+ _sfc_main$P as ColorInput,
37400
37878
  DataPreview,
37401
37879
  DataTable,
37402
- _sfc_main$M as DateInput,
37880
+ _sfc_main$N as DateInput,
37403
37881
  DatePicker,
37404
- _sfc_main$Y as Draggable,
37405
- _sfc_main$X as Dropdown,
37882
+ _sfc_main$Z as Draggable,
37883
+ _sfc_main$Y as Dropdown,
37406
37884
  EMAIL_REGEX,
37407
37885
  EmailInput,
37408
37886
  FORM_STATE_KEY,
37409
- _sfc_main$S as FieldArray,
37887
+ _sfc_main$T as FieldArray,
37410
37888
  FieldSetVue,
37411
37889
  FileUpload,
37412
37890
  Flag,
37413
37891
  IMAGE_FORMATS,
37414
37892
  IMAGE_FORMATS_REGEXP,
37415
- _sfc_main$s as Icon,
37416
- _sfc_main$r as IframeVue,
37893
+ _sfc_main$t as Icon,
37894
+ _sfc_main$s as IframeVue,
37417
37895
  Image$1 as Image,
37418
37896
  JSONInput,
37419
37897
  Layout,
37420
- _sfc_main$$ as Lineart,
37421
- _sfc_main$h as ListItem,
37898
+ _sfc_main$10 as Lineart,
37899
+ _sfc_main$i as ListItem,
37422
37900
  ListView,
37423
37901
  Loading,
37424
- _sfc_main$e as MapEmbed,
37425
- _sfc_main$d as Modal,
37426
- _sfc_main$c as ModalConfirm,
37902
+ _sfc_main$f as MapEmbed,
37903
+ _sfc_main$e as Modal,
37904
+ _sfc_main$d as ModalConfirm,
37427
37905
  ModalForm,
37428
37906
  ModalPlugin,
37429
37907
  NavBar,
37430
37908
  NumberInput,
37431
37909
  OTP,
37432
- _sfc_main$9 as PageTitle,
37433
- _sfc_main$G as PasswordInput,
37910
+ _sfc_main$a as PageTitle,
37911
+ _sfc_main$H as PasswordInput,
37434
37912
  Pill,
37435
37913
  RadioGroup,
37436
37914
  RadioPillsInput,
@@ -37439,14 +37917,15 @@ export {
37439
37917
  RouterWrapper,
37440
37918
  SelectInput,
37441
37919
  SidebarMenu,
37442
- _sfc_main$y as SignaturePad,
37920
+ _sfc_main$z as SignaturePad,
37443
37921
  Skeleton,
37922
+ Slider,
37444
37923
  Index as Spreadsheet,
37445
37924
  TabbedLayout,
37446
37925
  TableField,
37447
37926
  DataTable as TableSchema,
37448
- _sfc_main$k as Tabs,
37449
- _sfc_main$j as TabsBody,
37927
+ _sfc_main$l as Tabs,
37928
+ _sfc_main$k as TabsBody,
37450
37929
  TabsNav,
37451
37930
  TelInput,
37452
37931
  TextInput,