@bagelink/vue 1.2.69 → 1.2.71

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
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
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";
5
5
  import { RouterLink } from "vue-router";
6
- const _sfc_main$1g = /* @__PURE__ */ defineComponent({
6
+ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
7
7
  __name: "Accordion",
8
8
  setup(__props) {
9
9
  const state2 = reactive({
@@ -17,10 +17,10 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
17
17
  };
18
18
  }
19
19
  });
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({
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({
24
24
  __name: "AccordionItem",
25
25
  props: {
26
26
  label: {},
@@ -86,7 +86,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
86
86
  createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
87
87
  ], 2)) : createCommentVNode("", true),
88
88
  renderSlot(_ctx.$slots, "head", {}, () => [
89
- createElementVNode("span", _hoisted_2$N, toDisplayString(_ctx.label), 1)
89
+ createElementVNode("span", _hoisted_2$M, toDisplayString(_ctx.label), 1)
90
90
  ], true),
91
91
  iconPosition.value === "end" ? (openBlock(), createElementBlock("span", {
92
92
  key: 1,
@@ -94,7 +94,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
94
94
  }, [
95
95
  createVNode(unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
96
96
  ], 2)) : createCommentVNode("", true)
97
- ], 8, _hoisted_1$13),
97
+ ], 8, _hoisted_1$12),
98
98
  createVNode(Transition, { name: "expand" }, {
99
99
  default: withCtx(() => [
100
100
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -104,7 +104,7 @@ const _sfc_main$1f = /* @__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$G)) : createCommentVNode("", true)
107
+ ], 8, _hoisted_3$F)) : 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$1f, [["__scopeId", "data-v-3334f637"]]);
123
- const _hoisted_1$12 = { class: "relative" };
124
- const _sfc_main$1e = /* @__PURE__ */ defineComponent({
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({
125
125
  __name: "AddressSearch",
126
126
  emits: ["addressSelected"],
127
127
  setup(__props, { emit: __emit }) {
@@ -143,7 +143,7 @@ const _sfc_main$1e = /* @__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$12, [
146
+ return openBlock(), createElementBlock("div", _hoisted_1$11, [
147
147
  createVNode(unref(_sfc_main$X), {
148
148
  ref_key: "suggestion",
149
149
  ref: suggestion,
@@ -179,11 +179,11 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
179
179
  };
180
180
  }
181
181
  });
182
- const _hoisted_1$11 = {
182
+ const _hoisted_1$10 = {
183
183
  key: 1,
184
184
  class: "bgl_btn-flex"
185
185
  };
186
- const _sfc_main$1d = /* @__PURE__ */ defineComponent({
186
+ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
187
187
  __name: "Btn",
188
188
  props: {
189
189
  disabled: { type: Boolean, default: false },
@@ -252,7 +252,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
252
252
  key: 0,
253
253
  class: "h-100p",
254
254
  size: "15"
255
- })) : (openBlock(), createElementBlock("div", _hoisted_1$11, [
255
+ })) : (openBlock(), createElementBlock("div", _hoisted_1$10, [
256
256
  _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$s), {
257
257
  key: 0,
258
258
  icon: _ctx.icon,
@@ -276,10 +276,10 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
276
276
  };
277
277
  }
278
278
  });
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({
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({
283
283
  __name: "Alert",
284
284
  props: {
285
285
  message: {},
@@ -309,7 +309,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
309
309
  size: 1.7,
310
310
  color: color2[_ctx.type]
311
311
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
312
- createElementVNode("p", _hoisted_2$M, toDisplayString(_ctx.message), 1),
312
+ createElementVNode("p", _hoisted_2$L, toDisplayString(_ctx.message), 1),
313
313
  createVNode(Btn, {
314
314
  flat: "",
315
315
  thin: "",
@@ -317,13 +317,13 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
317
317
  icon: "close",
318
318
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
319
319
  })
320
- ], 10, _hoisted_1$10)) : createCommentVNode("", true);
320
+ ], 10, _hoisted_1$$)) : createCommentVNode("", true);
321
321
  };
322
322
  }
323
323
  });
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({
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({
327
327
  __name: "Avatar",
328
328
  props: {
329
329
  fallback: {},
@@ -341,7 +341,7 @@ const _sfc_main$1b = /* @__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$1b = /* @__PURE__ */ defineComponent({
349
349
  };
350
350
  }
351
351
  });
352
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-b73b9e30"]]);
353
- const _sfc_main$1a = /* @__PURE__ */ defineComponent({
352
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__scopeId", "data-v-b73b9e30"]]);
353
+ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
354
354
  __name: "Badge",
355
355
  props: {
356
356
  color: {},
@@ -379,11 +379,11 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
379
379
  };
380
380
  }
381
381
  });
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({
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({
387
387
  __name: "BglVideo",
388
388
  props: {
389
389
  src: {},
@@ -460,7 +460,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
460
460
  allowfullscreen: "",
461
461
  title: "Video",
462
462
  allow: "autoplay"
463
- }, null, 12, _hoisted_1$_)) : _ctx.src ? (openBlock(), createElementBlock("video", {
463
+ }, null, 12, _hoisted_1$Z)) : _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$19 = /* @__PURE__ */ defineComponent({
474
474
  createElementVNode("source", {
475
475
  src: _ctx.src,
476
476
  type: `video/${videoFormat.value}`
477
- }, null, 8, _hoisted_3$F)
478
- ], 12, _hoisted_2$L)) : createCommentVNode("", true)
477
+ }, null, 8, _hoisted_3$E)
478
+ ], 12, _hoisted_2$K)) : createCommentVNode("", true)
479
479
  ], 2);
480
480
  };
481
481
  }
482
482
  });
483
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["__scopeId", "data-v-006552f6"]]);
484
- const _sfc_main$18 = /* @__PURE__ */ defineComponent({
483
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["__scopeId", "data-v-006552f6"]]);
484
+ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
485
485
  __name: "CalendarPopover",
486
486
  props: {
487
487
  event: {},
@@ -524,7 +524,7 @@ const _sfc_main$18 = /* @__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$12), {
527
+ return _ctx.show && _ctx.event ? withDirectives((openBlock(), createBlock(unref(_sfc_main$11), {
528
528
  key: 0,
529
529
  ref_key: "popoverRef",
530
530
  ref: popoverRef,
@@ -546,14 +546,14 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
546
546
  };
547
547
  }
548
548
  });
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" };
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" };
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$17 = /* @__PURE__ */ defineComponent({
556
+ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
557
557
  __name: "AgendaView",
558
558
  props: {
559
559
  events: {},
@@ -651,7 +651,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
651
651
  }
652
652
  });
653
653
  return (_ctx, _cache) => {
654
- return openBlock(), createElementBlock("div", _hoisted_1$Z, [
654
+ return openBlock(), createElementBlock("div", _hoisted_1$Y, [
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$17 = /* @__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$E, [
675
+ createElementVNode("div", _hoisted_3$D, [
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$17 = /* @__PURE__ */ defineComponent({
681
681
  }, toDisplayString(event.dayLabel), 3)
682
682
  ])
683
683
  ])
684
- ], 12, _hoisted_2$K);
684
+ ], 12, _hoisted_2$J);
685
685
  }), 128))
686
686
  ], 512)
687
687
  ]);
688
688
  };
689
689
  }
690
690
  });
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" };
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" };
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$16 = /* @__PURE__ */ defineComponent({
704
+ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
705
705
  __name: "DayView",
706
706
  props: {
707
707
  events: {},
@@ -835,12 +835,12 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
835
835
  }
836
836
  });
837
837
  return (_ctx, _cache) => {
838
- return openBlock(), createElementBlock("div", _hoisted_1$Y, [
839
- createElementVNode("div", _hoisted_2$J, [
838
+ return openBlock(), createElementBlock("div", _hoisted_1$X, [
839
+ createElementVNode("div", _hoisted_2$I, [
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$D, [
843
+ createElementVNode("div", _hoisted_3$C, [
844
844
  createElementVNode("div", {
845
845
  class: "time-slots dayGrid border-end relative",
846
846
  onMousedown: handleMouseDown
@@ -900,10 +900,10 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
900
900
  };
901
901
  }
902
902
  });
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" };
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" };
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$15 = /* @__PURE__ */ defineComponent({
916
+ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
917
917
  __name: "MonthView",
918
918
  props: {
919
919
  events: {},
@@ -987,8 +987,8 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
987
987
  }
988
988
  }
989
989
  return (_ctx, _cache) => {
990
- return openBlock(), createElementBlock("div", _hoisted_1$X, [
991
- createElementVNode("div", _hoisted_2$I, [
990
+ return openBlock(), createElementBlock("div", _hoisted_1$W, [
991
+ createElementVNode("div", _hoisted_2$H, [
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$15 = /* @__PURE__ */ defineComponent({
996
996
  }, toDisplayString(day), 1);
997
997
  }), 128))
998
998
  ]),
999
- createElementVNode("div", _hoisted_3$C, [
999
+ createElementVNode("div", _hoisted_3$B, [
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$15 = /* @__PURE__ */ defineComponent({
1029
1029
  };
1030
1030
  }
1031
1031
  });
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"];
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"];
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$14 = /* @__PURE__ */ defineComponent({
1043
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1044
1044
  __name: "WeekView",
1045
1045
  props: {
1046
1046
  events: { default: () => [] },
@@ -1294,7 +1294,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1294
1294
  }
1295
1295
  });
1296
1296
  return (_ctx, _cache) => {
1297
- return openBlock(), createElementBlock("div", _hoisted_1$W, [
1297
+ return openBlock(), createElementBlock("div", _hoisted_1$V, [
1298
1298
  createElementVNode("div", {
1299
1299
  ref_key: "calendarGrid",
1300
1300
  ref: calendarGrid,
@@ -1316,7 +1316,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1316
1316
  ]);
1317
1317
  }), 128))
1318
1318
  ], 512),
1319
- createElementVNode("div", _hoisted_2$H, [
1319
+ createElementVNode("div", _hoisted_2$G, [
1320
1320
  createElementVNode("div", {
1321
1321
  ref_key: "dayColumnsContainer",
1322
1322
  ref: dayColumnsContainer,
@@ -1371,7 +1371,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
1371
1371
  ])
1372
1372
  ], 44, _hoisted_4$o);
1373
1373
  }), 128))
1374
- ], 40, _hoisted_3$B);
1374
+ ], 40, _hoisted_3$A);
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$14 = /* @__PURE__ */ defineComponent({
1392
1392
  };
1393
1393
  }
1394
1394
  });
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" };
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" };
1399
1399
  const _hoisted_4$n = { class: "ms-auto flex gap-025" };
1400
- const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1400
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1401
1401
  __name: "Index",
1402
1402
  props: {
1403
1403
  events: { default: () => [] },
@@ -1489,9 +1489,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1489
1489
  emit2("ready", state2.value);
1490
1490
  });
1491
1491
  return (_ctx, _cache) => {
1492
- return openBlock(), createElementBlock("div", _hoisted_1$V, [
1493
- createElementVNode("div", _hoisted_2$G, [
1494
- createElementVNode("h3", _hoisted_3$A, [
1492
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
1493
+ createElementVNode("div", _hoisted_2$F, [
1494
+ createElementVNode("h3", _hoisted_3$z, [
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
  ]),
@@ -1567,12 +1567,12 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1567
1567
  };
1568
1568
  }
1569
1569
  });
1570
- const Index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-840b6594"]]);
1571
- const _hoisted_1$U = {
1570
+ const Index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["__scopeId", "data-v-840b6594"]]);
1571
+ const _hoisted_1$T = {
1572
1572
  key: 0,
1573
1573
  class: "card_label"
1574
1574
  };
1575
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1575
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1576
1576
  __name: "Card",
1577
1577
  props: {
1578
1578
  label: {},
@@ -1601,7 +1601,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1601
1601
  }])
1602
1602
  }, {
1603
1603
  default: withCtx(() => [
1604
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$U, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
1604
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$T, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
1605
1605
  renderSlot(_ctx.$slots, "default")
1606
1606
  ]),
1607
1607
  _: 3
@@ -1611,14 +1611,14 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
1611
1611
  };
1612
1612
  }
1613
1613
  });
1614
- const _hoisted_1$T = { class: "carousel-wrapper" };
1615
- const _hoisted_2$F = {
1614
+ const _hoisted_1$S = { class: "carousel-wrapper" };
1615
+ const _hoisted_2$E = {
1616
1616
  key: 0,
1617
1617
  class: "carousel-dots"
1618
1618
  };
1619
- const _hoisted_3$z = ["aria-label", "onClick"];
1619
+ const _hoisted_3$y = ["aria-label", "onClick"];
1620
1620
  const dragThreshold = 10;
1621
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
1621
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
1622
1622
  __name: "Carousel2",
1623
1623
  props: {
1624
1624
  duration: { default: 200 },
@@ -2257,7 +2257,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
2257
2257
  resumeAutoplay
2258
2258
  });
2259
2259
  return (_ctx, _cache) => {
2260
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
2260
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
2261
2261
  createElementVNode("div", {
2262
2262
  ref_key: "carouselRef",
2263
2263
  ref: carouselRef,
@@ -2265,7 +2265,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
2265
2265
  }, [
2266
2266
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
2267
2267
  ], 512),
2268
- props2.dots && totalDots.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$F, [
2268
+ props2.dots && totalDots.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
2269
2269
  (openBlock(true), createElementBlock(Fragment, null, renderList(totalDots.value, (i2) => {
2270
2270
  return openBlock(), createElementBlock("button", {
2271
2271
  key: i2,
@@ -2273,492 +2273,14 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
2273
2273
  class: normalizeClass(["carousel-dot", [{ active: i2 - 1 === currentSlide.value }]]),
2274
2274
  "aria-label": `Go to slide ${i2}`,
2275
2275
  onClick: ($event) => goTo(i2 - 1)
2276
- }, null, 10, _hoisted_3$z);
2276
+ }, null, 10, _hoisted_3$y);
2277
2277
  }), 128))
2278
2278
  ])) : createCommentVNode("", true)
2279
2279
  ]);
2280
2280
  };
2281
2281
  }
2282
2282
  });
2283
- const Carousel2 = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-6de4176c"]]);
2284
- const _hoisted_1$S = ["dir"];
2285
- const _hoisted_2$E = {
2286
- key: 0,
2287
- class: "dots"
2288
- };
2289
- const _hoisted_3$y = ["onClick"];
2290
- const GAP_PERCENT = 1;
2291
- const VELOCITY_SAMPLE_DURATION = 100;
2292
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
2293
- __name: "Carousel",
2294
- props: {
2295
- autoHeight: { type: Boolean, default: false },
2296
- allowScroll: { type: Boolean, default: true },
2297
- freeDrag: { type: Boolean, default: true },
2298
- items: { type: Number, default: 4 },
2299
- index: { type: Number, default: 0 },
2300
- rtl: { type: Boolean, default: false },
2301
- autoplay: { type: Boolean, default: false },
2302
- autoPlaySpeed: { type: Number, default: 4e3 },
2303
- dots: { type: Boolean, default: false }
2304
- },
2305
- emits: ["update:index"],
2306
- setup(__props, { expose: __expose, emit: __emit }) {
2307
- const props2 = __props;
2308
- const emit2 = __emit;
2309
- const ANIMATION_TIMINGS = {
2310
- TOUCH: 150,
2311
- MOBILE: 420,
2312
- DESKTOP: 840,
2313
- MAX_DURATION: 300,
2314
- BASE_DURATION: 150,
2315
- DURATION_PER_PANEL: 50
2316
- };
2317
- const THRESHOLDS = {
2318
- DRAG: 20,
2319
- TOUCH: 5,
2320
- SWIPE_PERCENT: 0.1,
2321
- VELOCITY: 0.15,
2322
- WHEEL_PERCENT: 0.3
2323
- };
2324
- const bglSlider = ref();
2325
- const isSliderAvailable = computed(() => !!bglSlider.value);
2326
- let itemCount = ref(props2.items);
2327
- let activeSlideIndex = ref(props2.index);
2328
- let slideCount = ref(0);
2329
- let yHeight = ref("auto");
2330
- let isDragging = ref(false);
2331
- let isPressed = ref(false);
2332
- let startX = ref(0);
2333
- let startY = ref(0);
2334
- let translateX2 = ref(0);
2335
- let lastX = ref(0);
2336
- let lastTime = ref(0);
2337
- let accumulatedDeltaX = ref(0);
2338
- let wheelTimeout;
2339
- let autoPlayInterval;
2340
- let velocityTracker = ref([]);
2341
- function getAverageVelocity() {
2342
- if (velocityTracker.value.length < 2) return 0;
2343
- const now = Date.now();
2344
- const recentSamples = velocityTracker.value.filter((sample) => now - sample.time < VELOCITY_SAMPLE_DURATION);
2345
- if (recentSamples.length < 2) return 0;
2346
- const first = recentSamples[0];
2347
- const last = recentSamples[recentSamples.length - 1];
2348
- const timeDelta2 = last.time - first.time;
2349
- if (timeDelta2 === 0) return 0;
2350
- return (last.position - first.position) / timeDelta2;
2351
- }
2352
- function getCurrentTransform() {
2353
- if (!bglSlider.value) return 0;
2354
- const { transform } = bglSlider.value.style;
2355
- const value = transform ? Number.parseInt(transform.replace(/[^-\d.]/g, "")) : 0;
2356
- return props2.rtl ? -value : value;
2357
- }
2358
- function setTransform(value) {
2359
- if (!bglSlider.value) return;
2360
- const rtlValue = props2.rtl ? -value : value;
2361
- bglSlider.value.style.transform = `translateX(${rtlValue}px)`;
2362
- }
2363
- function easeInOutQuad(t) {
2364
- return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
2365
- }
2366
- function animateTransform(start, end, duration) {
2367
- const startTime = performance.now();
2368
- function animate(currentTime) {
2369
- if (!isSliderAvailable.value) return;
2370
- const timeElapsed = currentTime - startTime;
2371
- const progress = Math.min(timeElapsed / duration, 1);
2372
- const currentTransform = start + (end - start) * easeInOutQuad(progress);
2373
- setTransform(currentTransform);
2374
- if (progress < 1) requestAnimationFrame(animate);
2375
- }
2376
- requestAnimationFrame(animate);
2377
- }
2378
- function goToSlide(index2, isTouchNav = false) {
2379
- countSlides();
2380
- if (!isSliderAvailable.value || !bglSlider.value || index2 < 0 || index2 >= slideCount.value) return;
2381
- const containerWidth = bglSlider.value.offsetWidth;
2382
- const gapWidth = containerWidth * GAP_PERCENT / 100;
2383
- const totalGapWidth = (itemCount.value - 1) * gapWidth;
2384
- const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
2385
- const gapsBeforeSlide = index2 * gapWidth;
2386
- const targetTransform = -(singleItemWidth * index2 + gapsBeforeSlide);
2387
- const currentTransform = getCurrentTransform();
2388
- const duration = isTouchNav ? ANIMATION_TIMINGS.TOUCH : window.innerWidth < 600 ? ANIMATION_TIMINGS.MOBILE : ANIMATION_TIMINGS.DESKTOP;
2389
- animateTransform(currentTransform, targetTransform, duration);
2390
- activeSlideIndex.value = index2;
2391
- updateHeight();
2392
- }
2393
- function next() {
2394
- if (!isSliderAvailable.value) return;
2395
- countSlides();
2396
- const nextIndex = props2.rtl ? (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value : (activeSlideIndex.value + 1) % slideCount.value;
2397
- goToSlide(nextIndex);
2398
- }
2399
- function prev() {
2400
- if (!isSliderAvailable.value) return;
2401
- countSlides();
2402
- const prevIndex = props2.rtl ? (activeSlideIndex.value + 1) % slideCount.value : (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value;
2403
- goToSlide(prevIndex);
2404
- }
2405
- function calcHeight() {
2406
- if (!isSliderAvailable.value || !bglSlider.value) return;
2407
- try {
2408
- const activeSlide = bglSlider.value.children[activeSlideIndex.value];
2409
- if (!activeSlide) return;
2410
- const children2 = Array.from(activeSlide.children);
2411
- const totalHeight = children2.reduce((sum, el) => sum + el.clientHeight, 0);
2412
- yHeight.value = `${totalHeight}px`;
2413
- } catch (error) {
2414
- console.error("Error calculating height:", error);
2415
- }
2416
- }
2417
- function updateHeight() {
2418
- if (!props2.autoHeight) return;
2419
- setTimeout(calcHeight, 200);
2420
- }
2421
- function countSlides() {
2422
- if (!isSliderAvailable.value || !bglSlider.value) return;
2423
- slideCount.value = bglSlider.value.children.length;
2424
- }
2425
- function handleSlideChange() {
2426
- if (props2.index !== activeSlideIndex.value) {
2427
- emit2("update:index", activeSlideIndex.value);
2428
- }
2429
- }
2430
- function handleResize() {
2431
- if (!isSliderAvailable.value || !bglSlider.value) return;
2432
- itemCount.value = window.innerWidth < 600 ? 1 : window.innerWidth < 991 ? Math.min(props2.items, 2) : props2.items;
2433
- const containerWidth = bglSlider.value.offsetWidth;
2434
- const gapWidth = containerWidth * GAP_PERCENT / 100;
2435
- const totalGapWidth = (itemCount.value - 1) * gapWidth;
2436
- const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
2437
- const gapsBeforeSlide = activeSlideIndex.value * gapWidth;
2438
- const targetTransform = -(singleItemWidth * activeSlideIndex.value + gapsBeforeSlide);
2439
- setTransform(targetTransform);
2440
- updateHeight();
2441
- }
2442
- function clearAutoplay() {
2443
- if (autoPlayInterval) clearInterval(autoPlayInterval);
2444
- }
2445
- function preventDefaultClick(e) {
2446
- if (isDragging.value) {
2447
- e.preventDefault();
2448
- e.stopPropagation();
2449
- }
2450
- }
2451
- async function disableDrag() {
2452
- await nextTick();
2453
- if (!isSliderAvailable.value || !bglSlider.value) return;
2454
- const elements = Array.from(bglSlider.value.querySelectorAll("img, a"));
2455
- elements.forEach((el) => {
2456
- el.setAttribute("draggable", "false");
2457
- el.removeEventListener("click", preventDefaultClick, true);
2458
- el.addEventListener("click", preventDefaultClick, true);
2459
- });
2460
- const slides = Array.from(bglSlider.value.children);
2461
- slides.forEach((slide) => {
2462
- const element = slide;
2463
- element.setAttribute("draggable", "false");
2464
- element.removeEventListener("click", preventDefaultClick, true);
2465
- element.addEventListener("click", preventDefaultClick, true);
2466
- });
2467
- }
2468
- function startDrag(e) {
2469
- e.stopPropagation();
2470
- if (e.button !== 0 || !props2.freeDrag || !isSliderAvailable.value) return;
2471
- clearAutoplay();
2472
- startX.value = e.pageX;
2473
- translateX2.value = getCurrentTransform();
2474
- isPressed.value = true;
2475
- isDragging.value = false;
2476
- document.addEventListener("mousemove", onDrag);
2477
- document.addEventListener("mouseup", endDrag);
2478
- }
2479
- function onDrag(e) {
2480
- if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value) return;
2481
- const x2 = e.pageX;
2482
- const distance = x2 - startX.value;
2483
- if (Math.abs(distance) > THRESHOLDS.DRAG) isDragging.value = true;
2484
- if (isDragging.value) {
2485
- const newTranslate = translateX2.value + (props2.rtl ? -distance : distance);
2486
- const maxTranslate = 0;
2487
- const containerWidth = bglSlider.value.offsetWidth;
2488
- const gapWidth = containerWidth * GAP_PERCENT / 100;
2489
- const totalGapWidth = (itemCount.value - 1) * gapWidth;
2490
- const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
2491
- const minTranslate = -(singleItemWidth * (slideCount.value - 1) + gapWidth * (slideCount.value - 1));
2492
- const boundedTranslate = Math.max(minTranslate, Math.min(maxTranslate, newTranslate));
2493
- setTransform(boundedTranslate);
2494
- }
2495
- }
2496
- function endDrag() {
2497
- isPressed.value = false;
2498
- document.removeEventListener("mousemove", onDrag);
2499
- document.removeEventListener("mouseup", endDrag);
2500
- if (!isSliderAvailable.value || !bglSlider.value) return;
2501
- const currentTransform = getCurrentTransform();
2502
- const singleItemWidth = bglSlider.value.offsetWidth / itemCount.value;
2503
- const currentPanel = -currentTransform / singleItemWidth;
2504
- const totalDragDistance = currentTransform - translateX2.value;
2505
- const dragPercentage = Math.abs(totalDragDistance) / singleItemWidth;
2506
- let targetPanel = currentPanel;
2507
- if (dragPercentage > THRESHOLDS.SWIPE_PERCENT) {
2508
- const distnace = totalDragDistance > 0 ? -1 : 1;
2509
- targetPanel = Math.floor(currentPanel) + (distnace < 0 ? 0 : 1);
2510
- } else {
2511
- targetPanel = Math.round(currentPanel);
2512
- }
2513
- targetPanel = Math.max(0, Math.min(targetPanel, slideCount.value - 1));
2514
- goToSlide(targetPanel, true);
2515
- if (isDragging.value) {
2516
- setTimeout(() => {
2517
- isDragging.value = false;
2518
- }, 10);
2519
- }
2520
- }
2521
- let hasScrollDirectionLock = ref(false);
2522
- let isHorizontalScroll = ref(false);
2523
- function onTouchStart(e) {
2524
- if (!props2.freeDrag || !isSliderAvailable.value) return;
2525
- const target = e.target;
2526
- const isInteractive = target.matches('button, a, input, select, textarea, [role="button"]') || target.closest('button, a, input, select, textarea, [role="button"]');
2527
- if (!isInteractive) {
2528
- clearAutoplay();
2529
- const touch = e.touches[0];
2530
- startX.value = touch.pageX;
2531
- startY.value = touch.pageY;
2532
- lastX.value = touch.pageX;
2533
- lastTime.value = Date.now();
2534
- translateX2.value = getCurrentTransform();
2535
- velocityTracker.value = [{ time: lastTime.value, position: lastX.value }];
2536
- isPressed.value = true;
2537
- hasScrollDirectionLock.value = false;
2538
- if (bglSlider.value) {
2539
- bglSlider.value.style.transition = "none";
2540
- }
2541
- }
2542
- }
2543
- function onTouchMove(e) {
2544
- if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value) return;
2545
- const touch = e.touches[0];
2546
- const x2 = touch.pageX;
2547
- const y2 = touch.pageY;
2548
- const deltaX = x2 - startX.value;
2549
- const deltaY = y2 - startY.value;
2550
- if (!hasScrollDirectionLock.value) {
2551
- if (Math.abs(deltaX) > 5 || Math.abs(deltaY) > 5) {
2552
- isHorizontalScroll.value = Math.abs(deltaX) > Math.abs(deltaY);
2553
- hasScrollDirectionLock.value = true;
2554
- if (!isHorizontalScroll.value) {
2555
- isPressed.value = false;
2556
- return;
2557
- }
2558
- }
2559
- return;
2560
- }
2561
- if (!isHorizontalScroll.value) return;
2562
- const now = Date.now();
2563
- velocityTracker.value.push({ time: now, position: x2 });
2564
- lastX.value = x2;
2565
- const cutoffTime = now - VELOCITY_SAMPLE_DURATION;
2566
- velocityTracker.value = velocityTracker.value.filter((sample) => sample.time >= cutoffTime);
2567
- if (Math.abs(deltaX) > THRESHOLDS.TOUCH) {
2568
- isDragging.value = true;
2569
- e.preventDefault();
2570
- }
2571
- if (isDragging.value) {
2572
- const containerWidth = bglSlider.value.offsetWidth;
2573
- const gapWidth = containerWidth * GAP_PERCENT / 100;
2574
- const totalGapWidth = (itemCount.value - 1) * gapWidth;
2575
- const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
2576
- const totalWidth = singleItemWidth * slideCount.value + gapWidth * (slideCount.value - 1);
2577
- let newTranslate = translateX2.value + (props2.rtl ? -deltaX : deltaX);
2578
- if (newTranslate > 0) {
2579
- newTranslate = newTranslate * 0.5;
2580
- } else if (newTranslate < -totalWidth + containerWidth) {
2581
- const overDrag = -totalWidth + containerWidth - newTranslate;
2582
- newTranslate = -totalWidth + containerWidth - overDrag * 0.5;
2583
- }
2584
- setTransform(newTranslate);
2585
- }
2586
- }
2587
- function onTouchEnd() {
2588
- if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value || !isHorizontalScroll.value) {
2589
- isPressed.value = false;
2590
- hasScrollDirectionLock.value = false;
2591
- return;
2592
- }
2593
- const containerWidth = bglSlider.value.offsetWidth;
2594
- const gapWidth = containerWidth * GAP_PERCENT / 100;
2595
- const totalGapWidth = (itemCount.value - 1) * gapWidth;
2596
- const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
2597
- const totalSlideWidth = singleItemWidth + gapWidth;
2598
- const currentTransform = getCurrentTransform();
2599
- let normalizedTransform = currentTransform;
2600
- if (currentTransform > 0) {
2601
- normalizedTransform = 0;
2602
- } else {
2603
- const minTransform = -(singleItemWidth * (slideCount.value - 1) + gapWidth * (slideCount.value - 1));
2604
- if (currentTransform < minTransform) {
2605
- normalizedTransform = minTransform;
2606
- }
2607
- }
2608
- const currentPanel = Math.abs(normalizedTransform / totalSlideWidth);
2609
- const totalSwipeDistance = lastX.value - startX.value;
2610
- const swipePercentage = Math.abs(totalSwipeDistance) / totalSlideWidth;
2611
- const finalVelocity = getAverageVelocity();
2612
- let targetPanel = currentPanel;
2613
- let velocityDirection = 0;
2614
- if (Math.abs(finalVelocity) > THRESHOLDS.VELOCITY) {
2615
- velocityDirection = finalVelocity < 0 ? 1 : -1;
2616
- }
2617
- const isMobile = window.innerWidth < 600;
2618
- if (swipePercentage > THRESHOLDS.SWIPE_PERCENT || Math.abs(finalVelocity) > THRESHOLDS.VELOCITY) {
2619
- const direction = swipePercentage > THRESHOLDS.SWIPE_PERCENT ? totalSwipeDistance > 0 ? -1 : 1 : velocityDirection;
2620
- const rtlDirection = props2.rtl ? -direction : direction;
2621
- if (isMobile) {
2622
- targetPanel = activeSlideIndex.value + rtlDirection;
2623
- } else {
2624
- targetPanel = Math.round(currentPanel) + rtlDirection;
2625
- }
2626
- } else {
2627
- targetPanel = isMobile ? activeSlideIndex.value : Math.round(currentPanel);
2628
- }
2629
- targetPanel = Math.max(0, Math.min(targetPanel, slideCount.value - 1));
2630
- activeSlideIndex.value = targetPanel;
2631
- const distance = Math.abs(targetPanel - currentPanel);
2632
- const velocityFactor = Math.min(Math.abs(finalVelocity) * 1e3, 1);
2633
- const duration = Math.min(
2634
- ANIMATION_TIMINGS.BASE_DURATION * (1 - velocityFactor * 0.5) + distance * ANIMATION_TIMINGS.DURATION_PER_PANEL,
2635
- ANIMATION_TIMINGS.MAX_DURATION
2636
- );
2637
- bglSlider.value.style.transition = `transform ${duration}ms cubic-bezier(0.4, 0, 0.2, 1)`;
2638
- const gapsBeforeSlide = targetPanel * gapWidth;
2639
- const targetTransform = -(singleItemWidth * targetPanel + gapsBeforeSlide);
2640
- setTransform(targetTransform);
2641
- setTimeout(() => {
2642
- if (bglSlider.value) bglSlider.value.style.transition = "none";
2643
- }, duration);
2644
- velocityTracker.value = [];
2645
- isDragging.value = false;
2646
- hasScrollDirectionLock.value = false;
2647
- }
2648
- function onWheel(e) {
2649
- if (!props2.allowScroll || !isSliderAvailable.value || !bglSlider.value || isPressed.value || isDragging.value) return;
2650
- const isHorizontal = Math.abs(e.deltaX) > Math.abs(e.deltaY);
2651
- if (!isHorizontal) return;
2652
- clearAutoplay();
2653
- if (wheelTimeout) clearTimeout(wheelTimeout);
2654
- accumulatedDeltaX.value += props2.rtl ? -e.deltaX : e.deltaX;
2655
- wheelTimeout = setTimeout(() => {
2656
- accumulatedDeltaX.value = 0;
2657
- }, 50);
2658
- const singleItemWidth = bglSlider.value.offsetWidth / itemCount.value;
2659
- const moveThreshold = singleItemWidth * THRESHOLDS.WHEEL_PERCENT;
2660
- if (Math.abs(accumulatedDeltaX.value) > moveThreshold) {
2661
- const direction = accumulatedDeltaX.value > 0 ? 1 : -1;
2662
- const nextPanel = Math.max(0, Math.min(activeSlideIndex.value + direction, slideCount.value - 1));
2663
- if (nextPanel !== activeSlideIndex.value) {
2664
- goToSlide(nextPanel, true);
2665
- accumulatedDeltaX.value = 0;
2666
- }
2667
- }
2668
- }
2669
- onMounted(() => {
2670
- window.addEventListener("resize", handleResize);
2671
- updateHeight();
2672
- handleResize();
2673
- countSlides();
2674
- disableDrag();
2675
- if (bglSlider.value) {
2676
- slideCount.value = bglSlider.value.children.length;
2677
- }
2678
- if (props2.autoplay) {
2679
- autoPlayInterval = setInterval(next, props2.autoPlaySpeed);
2680
- }
2681
- });
2682
- onUnmounted(() => {
2683
- if (isSliderAvailable.value && bglSlider.value) {
2684
- Array.from(bglSlider.value.children).forEach((child) => {
2685
- const element = child;
2686
- element.removeEventListener("click", preventDefaultClick);
2687
- });
2688
- }
2689
- window.removeEventListener("resize", handleResize);
2690
- document.removeEventListener("mousemove", onDrag);
2691
- document.removeEventListener("mouseup", endDrag);
2692
- clearAutoplay();
2693
- if (wheelTimeout) clearTimeout(wheelTimeout);
2694
- });
2695
- watch(() => props2.index, (newIndex2) => {
2696
- goToSlide(newIndex2);
2697
- });
2698
- watch(() => activeSlideIndex.value, handleSlideChange);
2699
- __expose({
2700
- goToSlide,
2701
- next,
2702
- prev,
2703
- countSlides,
2704
- clearAutoplay
2705
- });
2706
- return (_ctx, _cache) => {
2707
- return openBlock(), createElementBlock("div", {
2708
- class: "BglCarousel",
2709
- dir: __props.rtl ? "rtl" : "ltr"
2710
- }, [
2711
- createElementVNode("div", {
2712
- ref_key: "bglSlider",
2713
- ref: bglSlider,
2714
- class: normalizeClass(["bgl-slider", { dragging: unref(isDragging), clicking: unref(isPressed), [`slides-${unref(itemCount)}`]: true, grab: __props.freeDrag && unref(slideCount) > 1, autoHeight: __props.autoHeight }]),
2715
- style: normalizeStyle({ "--item-count": unref(itemCount), "height": unref(yHeight) }),
2716
- onMousedown: startDrag,
2717
- onMouseover: clearAutoplay,
2718
- onFocusin: clearAutoplay,
2719
- onTouchstart: onTouchStart,
2720
- onTouchmove: onTouchMove,
2721
- onTouchend: onTouchEnd,
2722
- onWheel
2723
- }, [
2724
- renderSlot(_ctx.$slots, "default", {}, void 0, true)
2725
- ], 38),
2726
- props2.dots && unref(slideCount) > 1 ? (openBlock(), createElementBlock("div", _hoisted_2$E, [
2727
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(slideCount), (i2) => {
2728
- return openBlock(), createElementBlock("span", {
2729
- key: i2,
2730
- class: normalizeClass(["dot", { current: unref(activeSlideIndex) === i2 - 1 }]),
2731
- onClick: ($event) => goToSlide(i2 - 1)
2732
- }, null, 10, _hoisted_3$y);
2733
- }), 128))
2734
- ])) : createCommentVNode("", true),
2735
- createElementVNode("div", {
2736
- class: normalizeClass(["navigation-buttons", { rtl: __props.rtl }])
2737
- }, [
2738
- createElementVNode("span", {
2739
- class: "prev",
2740
- onClick: prev
2741
- }, [
2742
- renderSlot(_ctx.$slots, "prev", {
2743
- index: unref(activeSlideIndex),
2744
- prev
2745
- }, void 0, true)
2746
- ]),
2747
- createElementVNode("span", {
2748
- class: "next",
2749
- onClick: next
2750
- }, [
2751
- renderSlot(_ctx.$slots, "next", {
2752
- index: unref(activeSlideIndex),
2753
- next
2754
- }, void 0, true)
2755
- ])
2756
- ], 2)
2757
- ], 8, _hoisted_1$S);
2758
- };
2759
- }
2760
- });
2761
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-406c405d"]]);
2283
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-6de4176c"]]);
2762
2284
  function _isPlaceholder(a2) {
2763
2285
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
2764
2286
  }
@@ -16653,7 +16175,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
16653
16175
  return openBlock(), createElementBlock("div", _hoisted_1$D, [
16654
16176
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
16655
16177
  _ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$r)) : createCommentVNode("", true),
16656
- _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$12), {
16178
+ _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$11), {
16657
16179
  key: 1,
16658
16180
  outline: "",
16659
16181
  class: "flex p-05 gap-1",
@@ -19897,7 +19419,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19897
19419
  height: "25px",
19898
19420
  class: "mx-1 my-1"
19899
19421
  })) : createCommentVNode("", true),
19900
- createVNode(unref(_sfc_main$12), {
19422
+ createVNode(unref(_sfc_main$11), {
19901
19423
  class: "p-05",
19902
19424
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" }),
19903
19425
  onClick: _cache[9] || (_cache[9] = withModifiers(() => {
@@ -28537,7 +28059,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
28537
28059
  return openBlock(), createElementBlock("div", _hoisted_1$m, [
28538
28060
  _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$c, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
28539
28061
  _ctx.required && !pathKeys.value.length ? (openBlock(), createElementBlock("input", _hoisted_3$a)) : createCommentVNode("", true),
28540
- _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$12), {
28062
+ _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$11), {
28541
28063
  key: 2,
28542
28064
  outline: "",
28543
28065
  class: "flex p-05 gap-1",
@@ -33414,7 +32936,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
33414
32936
  },
33415
32937
  setup(__props) {
33416
32938
  return (_ctx, _cache) => {
33417
- 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" }, {
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" }, {
33418
32940
  default: withCtx(() => [
33419
32941
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
33420
32942
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navLinks, (nav, i2) => {
@@ -33515,7 +33037,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
33515
33037
  icon: "keyboard_arrow_right",
33516
33038
  onClick: unref(toggleMenu)
33517
33039
  }, null, 8, ["onClick"]),
33518
- createVNode(unref(_sfc_main$12), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
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" }, {
33519
33041
  default: withCtx(() => [
33520
33042
  !unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
33521
33043
  unref(isOpen) ? renderSlot(_ctx.$slots, "brand-open", { key: 1 }, void 0, true) : createCommentVNode("", true),
@@ -34199,7 +33721,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
34199
33721
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
34200
33722
  onKeydown: withKeys(closeModal, ["esc"])
34201
33723
  }, [
34202
- createVNode(unref(_sfc_main$12), {
33724
+ createVNode(unref(_sfc_main$11), {
34203
33725
  class: "modal",
34204
33726
  style: normalizeStyle({ ...maxWidth.value }),
34205
33727
  thin: _ctx.thin,
@@ -37855,9 +37377,9 @@ function useSearch(params) {
37855
37377
  };
37856
37378
  }
37857
37379
  export {
37858
- _sfc_main$1g as Accordion,
37380
+ _sfc_main$1f as Accordion,
37859
37381
  AccordionItem,
37860
- _sfc_main$1e as AddressSearch,
37382
+ _sfc_main$1d as AddressSearch,
37861
37383
  Alert,
37862
37384
  Avatar,
37863
37385
  Badge,
@@ -37869,9 +37391,8 @@ export {
37869
37391
  BottomMenu,
37870
37392
  Btn,
37871
37393
  Index$1 as Calendar,
37872
- _sfc_main$12 as Card,
37394
+ _sfc_main$11 as Card,
37873
37395
  Carousel,
37874
- Carousel2,
37875
37396
  CheckInput,
37876
37397
  Checkbox,
37877
37398
  CodeEditor,