@visitscotland/component-library 5.84.0 → 5.85.0

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.
@@ -1,6 +1,6 @@
1
1
  import { openBlock, createElementBlock, renderSlot, inject, computed as computed$1, toValue, watch, ref, onMounted, nextTick as nextTick$1, getCurrentInstance, readonly, onBeforeUnmount, onUnmounted, defineComponent, unref, h, Teleport, getCurrentScope, onScopeDispose, toRef, useId, shallowRef, useSlots, useModel, useTemplateRef, createBlock, withCtx, Transition, mergeProps, withDirectives, createElementVNode, withModifiers, normalizeClass, normalizeProps, guardReactiveProps, resolveDynamicComponent, createTextVNode, toDisplayString, Fragment, createCommentVNode, createVNode, vShow, normalizeStyle, mergeModels, provide, onActivated, renderList, shallowReadonly, useAttrs, render as render$e, vModelSelect, withKeys, resolveComponent, resolveDirective, createSlots, reactive, onBeforeMount, isRef, isReactive, isReadonly, onUpdated, onBeforeUpdate, isVNode, markRaw, toHandlers, vModelText, watchEffect, Suspense } from "vue";
2
- import { _ as _export_sfc, b as breadcrumbGlobalIndexKey, a as breadcrumbRegistryKey, u as useEventListener, s as showHideRegistryKey, c as useThrottleFn, d as useDefaults, g as getSafeDocument, e as createSharedComposable, f as useScrollLock$1, h as useMutationObserver, i as getSafeWindow, j as useId$1, o as onKeyStroke, k as isEmptySlot, l as useColorVariantClasses, m as getModalZIndex, B as BButton_default, n as unrefElement$1, t as tryOnScopeDispose$1, p as modalManagerKey, q as getSSRHandler, r as progressInjectionKey, v as useToNumber, w as formGroupKey, x as useAriaInvalid, y as useStateClass, z as useFocus, A as inputGroupKey, C as get$1, D as useBLinkHelper, E as BLink_default, F as ConditionalWrapper_default, G as pick, H as omit$2, I as BImg_default, J as onClickOutside, K as warn, L as useMouse$2, M as buttonGroupKey, N as dropdownInjectionKey, O as collapseInjectionKey, P as navbarInjectionKey, Q as formSelectKey, R as isVisible, S as useBreakpoints, T as breakpointsBootstrapV5, U as tabsInjectionKey, V as sortSlotElementsByPosition, W as defaultsKey, X as error, Y as VsButton, Z as dataLayerMixin, $ as VsHeading, a0 as VsIcon, a1 as lodashExports, a2 as VsBody, a3 as VsContainer, a4 as VsRow, a5 as VsCol, a6 as dmoUrls, a7 as VsImg, a8 as axios, a9 as designTokens, aa as BFormRadio_default, ab as BFormRadioGroup_default, ac as BFormGroup_default, ad as VsWarning, ae as BFormCheckbox_default, af as getDefaultExportFromCjs, ag as VsLoading, ah as products, ai as paths, aj as monthsEnglish, ak as useDataLayerStore, al as checkVendorLibrary, am as siteSearchCloseTemplate, an as siteSearchClickTemplate, ao as siteSearchUsageTemplate, ap as siteSearchOpenTemplate, aq as googleMapInteractionTemplate, ar as googleMapTimeToFirstInteractionTemplate, as as googleMapFilterInteractionTemplate, at as googleMapSearchTemplate } from "./LoadingSpinner-B7A8ynvA.mjs";
3
- import { au as De } from "./LoadingSpinner-B7A8ynvA.mjs";
2
+ import { _ as _export_sfc, b as breadcrumbGlobalIndexKey, a as breadcrumbRegistryKey, u as useEventListener, s as showHideRegistryKey, c as useThrottleFn, d as useDefaults, g as getSafeDocument, e as createSharedComposable, f as useScrollLock$1, h as useMutationObserver, i as getSafeWindow, j as useId$1, o as onKeyStroke, k as isEmptySlot, l as useColorVariantClasses, m as getModalZIndex, B as BButton_default, n as unrefElement$1, t as tryOnScopeDispose$1, p as modalManagerKey, q as getSSRHandler, r as progressInjectionKey, v as useToNumber, w as formGroupKey, x as useAriaInvalid, y as useStateClass, z as useFocus, A as inputGroupKey, C as get$1, D as useBLinkHelper, E as BLink_default, F as ConditionalWrapper_default, G as pick, H as omit$2, I as BImg_default, J as onClickOutside, K as warn, L as useMouse$2, M as buttonGroupKey, N as dropdownInjectionKey, O as collapseInjectionKey, P as navbarInjectionKey, Q as formSelectKey, R as isVisible, S as useBreakpoints, T as breakpointsBootstrapV5, U as tabsInjectionKey, V as sortSlotElementsByPosition, W as defaultsKey, X as error, Y as VsButton, Z as dataLayerMixin, $ as VsHeading, a0 as VsIcon, a1 as lodashExports, a2 as VsBody, a3 as VsContainer, a4 as VsRow, a5 as VsCol, a6 as dmoUrls, a7 as VsImg, a8 as axios, a9 as designTokens, aa as BFormRadio_default, ab as BFormRadioGroup_default, ac as BFormGroup_default, ad as VsWarning, ae as BFormCheckbox_default, af as getDefaultExportFromCjs, ag as VsLoading, ah as products, ai as paths, aj as monthsEnglish, ak as useDataLayerStore, al as checkVendorLibrary, am as siteSearchCloseTemplate, an as siteSearchClickTemplate, ao as siteSearchUsageTemplate, ap as siteSearchOpenTemplate, aq as googleMapInteractionTemplate, ar as googleMapTimeToFirstInteractionTemplate, as as googleMapFilterInteractionTemplate, at as googleMapSearchTemplate } from "./LoadingSpinner-AGGAD1A5.mjs";
3
+ import { au as De } from "./LoadingSpinner-AGGAD1A5.mjs";
4
4
  import { defineStore, storeToRefs } from "pinia";
5
5
  const _sfc_main$2G = {
6
6
  name: "VsAccordion",
@@ -35,7 +35,7 @@ function _sfc_render$2l(e, t, n, a, o, r) {
35
35
  ]);
36
36
  }
37
37
  const VsAccordion = /* @__PURE__ */ _export_sfc(_sfc_main$2G, [["render", _sfc_render$2l]]);
38
- var BvEvent = class Se {
38
+ var BvEvent = class xe {
39
39
  cancelable = !0;
40
40
  componentId = null;
41
41
  _defaultPrevented = !1;
@@ -58,7 +58,7 @@ var BvEvent = class Se {
58
58
  }
59
59
  constructor(t, n = {}) {
60
60
  if (!t) throw new TypeError(`Failed to construct '${this.constructor.name}'. 1 argument required, ${arguments.length} given.`);
61
- Object.assign(this, Se.Defaults, n, { eventType: t }), this._preventDefault = function() {
61
+ Object.assign(this, xe.Defaults, n, { eventType: t }), this._preventDefault = function() {
62
62
  this.cancelable && (this.defaultPrevented = !0);
63
63
  };
64
64
  }
@@ -75,6 +75,15 @@ var BvEvent = class Se {
75
75
  }, BvTriggerableEvent = class extends BvEvent {
76
76
  trigger = null;
77
77
  ok = void 0;
78
+ /**
79
+ * On show and hide request events (`show`, `hide`, `ok`, `cancel`, `close`, and the `-prevented`
80
+ * events): aborted once the component commits to its next show or hide, or unmounts. Pass it to
81
+ * async work started from a listener that prevents the event (for example validating in `ok`), so
82
+ * that work stops if the component is closed or reopened another way in the meantime.
83
+ * If the listener does not prevent the event, the component commits right after it, and the signal
84
+ * is already aborted. `null` on other events
85
+ */
86
+ signal = null;
78
87
  constructor(e, t = {}) {
79
88
  super(e, t), Object.assign(this, BvEvent.Defaults, t, { eventType: e });
80
89
  }
@@ -82,7 +91,8 @@ var BvEvent = class Se {
82
91
  return {
83
92
  ...super.Defaults,
84
93
  trigger: null,
85
- ok: void 0
94
+ ok: void 0,
95
+ signal: null
86
96
  };
87
97
  }
88
98
  }, useBreadcrumb = (e = breadcrumbGlobalIndexKey) => {
@@ -131,228 +141,285 @@ var BvEvent = class Se {
131
141
  s = !1;
132
142
  return;
133
143
  }
134
- e.value ? M() : V("modelValue", !0);
144
+ e.value ? P() : E("modelValue", !0);
135
145
  });
136
146
  const f = ref(i), p = ref(!1), m = computed$1(() => n.noAnimation || n.noFade || f.value || !1);
137
147
  let g = !1;
138
148
  onMounted(() => {
139
149
  if (g = !0, !n.show && i) {
140
- const j = b("show", { cancelable: !0 });
141
- if (a("show", j), j.defaultPrevented) {
142
- a("show-prevented", b("show-prevented"));
150
+ const H = V(), ee = b("show", {
151
+ cancelable: !0,
152
+ signal: H
153
+ });
154
+ if (a("show", ee), ee.defaultPrevented) {
155
+ a("show-prevented", b("show-prevented", { signal: H }));
143
156
  return;
144
157
  }
145
- f.value = !0, e.value || (s = !0, e.value = !0), c.value = !0, d.value = !0, z.value = !0, ue.value = !0, fe.value = !0, l.value = !0, r.showFn?.();
146
- } else (n.show || e.value && n.initialAnimation) && M();
147
- }), watch(() => n.visible, (j) => {
158
+ D(), f.value = !0, e.value || (s = !0, e.value = !0), c.value = !0, d.value = !0, ae.value = !0, J.value = !0, Y.value = !0, l.value = !0, r.showFn?.();
159
+ } else (n.show || e.value && n.initialAnimation) && P();
160
+ }), watch(() => n.visible, (H) => {
148
161
  f.value = !0, nextTick$1(() => {
149
- j && (z.value = !0), j ? M() : V("visible-prop", !0);
162
+ H && (ae.value = !0), H ? P() : E("visible-prop", !0);
150
163
  });
151
- }), watch(() => n.show, (j) => {
152
- j ? M() : V("show-prop", !0);
164
+ }), watch(() => n.show, (H) => {
165
+ H ? P() : E("show-prop", !0);
153
166
  }), useEventListener(t, "bv-toggle", () => {
154
167
  e.value = !e.value;
155
168
  }, { passive: !0 });
156
- const b = (j, te = {}) => new BvTriggerableEvent(j, {
169
+ const b = (H, ee = {}) => new BvTriggerableEvent(H, {
157
170
  cancelable: !1,
158
171
  target: t?.value || null,
159
172
  relatedTarget: null,
160
173
  trigger: null,
161
- ...te,
174
+ ...ee,
162
175
  componentId: o?.value
163
176
  });
164
- let _, v, C, k, B;
165
- const M = (j = !1) => {
177
+ let _, v, C, k, B, M, I;
178
+ const V = () => (I ??= new AbortController()).signal, D = () => {
179
+ I?.abort(), I = void 0;
180
+ }, O = (H) => {
181
+ D(), M?.controller.abort();
182
+ const ee = new AbortController();
183
+ return M = {
184
+ type: H,
185
+ controller: ee
186
+ }, ee.signal;
187
+ }, N = (H, ee) => {
188
+ const be = requestAnimationFrame(() => {
189
+ H.aborted || ee();
190
+ });
191
+ H.addEventListener("abort", () => cancelAnimationFrame(be), { once: !0 });
192
+ }, P = (H = !1) => {
166
193
  if (l.value && !v && !k) return Promise.resolve(!0);
167
- if (B = j, l.value && !v && k) return k;
168
- k = new Promise((pe) => {
169
- C = pe;
194
+ if (B = H, l.value && !v && k) return k;
195
+ k = new Promise((q) => {
196
+ C = q;
170
197
  });
171
- const te = b("show", { cancelable: !0 });
172
- return a("show", te), te.defaultPrevented ? (a("show-prevented", b("show-prevented")), z.value && (z.value = !1), e.value && !u && (s = !0, nextTick$1(() => {
173
- e.value = !1;
174
- })), C?.("show-prevented"), k) : (v && (clearTimeout(v), v = void 0), c.value = !0, d.value = !0, requestAnimationFrame(() => {
198
+ const ee = V(), be = b("show", {
199
+ cancelable: !0,
200
+ signal: ee
201
+ });
202
+ if (a("show", be), be.defaultPrevented)
203
+ return a("show-prevented", b("show-prevented", { signal: ee })), ae.value && (ae.value = !1), e.value && !u && (s = !0, nextTick$1(() => {
204
+ e.value = !1;
205
+ })), C?.("show-prevented"), k;
206
+ const ge = O("show");
207
+ c.value = !0, d.value = !0;
208
+ const U = () => {
209
+ g && (_ = void 0, l.value = !0, r.showFn?.(), e.value || (s = !0, nextTick$1(() => {
210
+ e.value = !0;
211
+ })));
212
+ };
213
+ return N(ge, () => {
175
214
  if (f.value || n.delay === void 0) {
176
- if (!g) return;
177
- _ = void 0, l.value = !0, r.showFn?.(), e.value || (s = !0, nextTick$1(() => {
178
- e.value = !0;
179
- }));
215
+ U();
180
216
  return;
181
217
  }
182
- _ = setTimeout(() => {
183
- g && (_ = void 0, l.value = !0, r.showFn?.(), e.value || (s = !0, nextTick$1(() => {
184
- e.value = !0;
185
- })));
186
- }, typeof n.delay == "number" ? n.delay : n.delay?.show || 0);
187
- }), k);
218
+ _ = setTimeout(U, typeof n.delay == "number" ? n.delay : n.delay?.show || 0), ge.addEventListener("abort", () => {
219
+ clearTimeout(_), _ = void 0;
220
+ }, { once: !0 });
221
+ }), k;
188
222
  };
189
- let I;
190
- const V = (j, te) => {
223
+ let w;
224
+ const E = (H, ee) => {
225
+ if (M?.type === "hide") return k ?? Promise.resolve("");
191
226
  if (!l.value && !_ && !c.value) return Promise.resolve("");
192
- k || (k = new Promise((U) => {
193
- C = U;
194
- })), typeof j != "string" && (j = void 0), I = j;
195
- const pe = b("hide", {
227
+ const be = !k;
228
+ k || (k = new Promise((pe) => {
229
+ C = pe;
230
+ }));
231
+ const ge = k;
232
+ typeof H != "string" && (H = void 0);
233
+ const U = M, q = V(), Q = () => {
234
+ if (a("hide-prevented", b("hide-prevented", {
235
+ trigger: H,
236
+ signal: q
237
+ })), !be) return Promise.resolve("hide-prevented");
238
+ const pe = k;
239
+ return C?.("hide-prevented"), k = void 0, C = void 0, pe;
240
+ }, te = b("hide", {
196
241
  cancelable: !0,
197
- trigger: j
198
- }), J = b(j || "ignore", {
242
+ trigger: H,
243
+ signal: q
244
+ }), se = b(H || "ignore", {
199
245
  cancelable: !0,
200
- trigger: j
246
+ trigger: H,
247
+ signal: q
201
248
  });
202
- return j === "backdrop" && n.noCloseOnBackdrop || j === "esc" && n.noCloseOnEsc ? (a("hide-prevented", b("hide-prevented", { trigger: j })), C?.("hide-prevented"), k) : (_ && (clearTimeout(_), _ = void 0), j && !te && a(j, J), a("hide", pe), pe.defaultPrevented || J.defaultPrevented ? (a("hide-prevented", b("hide-prevented", { trigger: j })), e.value || nextTick$1(() => {
203
- s = !0, e.value = !0;
204
- }), C?.("hide-prevented"), k) : (ie.value = !1, _ && (clearTimeout(_), _ = void 0, p.value || (c.value = !1), d.value = !1), v = setTimeout(() => {
205
- g && (v = void 0, P.value = !0, l.value = !1, r.hideFn?.(), e.value && (s = !0, e.value = u ? 0 : !1));
206
- }, f.value ? 0 : typeof n.delay == "number" ? n.delay : n.delay?.hide || 0), k));
207
- }, L = useThrottleFn((j) => V(j), 500), A = useThrottleFn(() => M(), 500), N = (j = !1) => {
208
- const te = b("toggle", { cancelable: !0 });
209
- return a("toggle", te), te.defaultPrevented ? (a("toggle-prevented", b("toggle-prevented")), Promise.resolve("toggle-prevented")) : l.value ? V("toggle-function", !0) : M(j);
210
- }, O = () => {
211
- const j = b("toggle", { cancelable: !0 });
212
- if (a("toggle", j), j.defaultPrevented) {
249
+ if (H === "backdrop" && n.noCloseOnBackdrop || H === "esc" && n.noCloseOnEsc) return Q();
250
+ const oe = () => M !== U;
251
+ if (H && !ee && (a(H, se), oe()) || (a("hide", te), oe())) return ge;
252
+ if (te.defaultPrevented || se.defaultPrevented)
253
+ return e.value || nextTick$1(() => {
254
+ s = !0, e.value = !0;
255
+ }), Q();
256
+ const le = M?.type === "show" && !l.value, ve = le && G.value;
257
+ fe.value = !1;
258
+ const ue = O("hide");
259
+ if (le && e.value && (s = !0, e.value = u ? 0 : !1), ve)
260
+ return w = H, ge;
261
+ if (le) {
262
+ p.value || (c.value = !1), d.value = !1;
263
+ const pe = C;
264
+ return k = void 0, C = void 0, a("hidden", b("hidden", {
265
+ trigger: H,
266
+ cancelable: !1
267
+ })), pe?.(H || ""), ge;
268
+ }
269
+ return w = H, v = setTimeout(() => {
270
+ g && (v = void 0, G.value = !0, l.value = !1, r.hideFn?.(), e.value && (s = !0, e.value = u ? 0 : !1));
271
+ }, f.value ? 0 : typeof n.delay == "number" ? n.delay : n.delay?.hide || 0), ue.addEventListener("abort", () => {
272
+ clearTimeout(v), v = void 0;
273
+ }, { once: !0 }), k;
274
+ }, R = useThrottleFn((H) => E(H), 500), $ = useThrottleFn(() => P(), 500), T = (H = !1) => {
275
+ const ee = b("toggle", { cancelable: !0 });
276
+ return a("toggle", ee), ee.defaultPrevented ? (a("toggle-prevented", b("toggle-prevented")), Promise.resolve("toggle-prevented")) : l.value ? E("toggle-function", !0) : P(H);
277
+ }, S = () => {
278
+ const H = b("toggle", { cancelable: !0 });
279
+ if (a("toggle", H), H.defaultPrevented) {
213
280
  a("toggle-prevented", b("toggle-prevented"));
214
281
  return;
215
282
  }
216
- l.value ? V("toggle-trigger", !0) : M();
217
- }, w = [], T = (j, te) => {
218
- w.push({
219
- trigger: j,
220
- el: te
221
- }), te.addEventListener(j, O), E(te);
222
- }, R = (j, te, pe = !0) => {
223
- const J = w.findIndex((U) => U?.trigger === j && U.el === te);
224
- J > -1 && (w.splice(J, 1), te.removeEventListener(j, O), pe && (te.removeAttribute("aria-expanded"), te.classList.remove("collapsed"), te.classList.remove("not-collapsed")));
225
- }, $ = inject(showHideRegistryKey, null)?.register({
283
+ l.value ? E("toggle-trigger", !0) : P();
284
+ }, L = [], A = (H, ee) => {
285
+ L.push({
286
+ trigger: H,
287
+ el: ee
288
+ }), ee.addEventListener(H, S), W(ee);
289
+ }, F = (H, ee, be = !0) => {
290
+ const ge = L.findIndex((U) => U?.trigger === H && U.el === ee);
291
+ ge > -1 && (L.splice(ge, 1), ee.removeEventListener(H, S), be && (ee.removeAttribute("aria-expanded"), ee.classList.remove("collapsed"), ee.classList.remove("not-collapsed")));
292
+ }, z = inject(showHideRegistryKey, null)?.register({
226
293
  id: o.value,
227
- toggle: N,
228
- show: M,
229
- hide: V,
294
+ toggle: T,
295
+ show: P,
296
+ hide: E,
230
297
  value: readonly(l),
231
- registerTrigger: T,
232
- unregisterTrigger: R,
298
+ registerTrigger: A,
299
+ unregisterTrigger: F,
233
300
  component: getCurrentInstance()
234
- }), E = (j) => {
235
- j.setAttribute("aria-expanded", e.value ? "true" : "false"), j.classList.toggle("collapsed", !e.value), j.classList.toggle("not-collapsed", !!e.value);
301
+ }), W = (H) => {
302
+ H.setAttribute("aria-expanded", e.value ? "true" : "false"), H.classList.toggle("collapsed", !e.value), H.classList.toggle("not-collapsed", !!e.value);
236
303
  };
237
304
  watch(e, () => {
238
- w.forEach((j) => {
239
- E(j.el);
305
+ L.forEach((H) => {
306
+ W(H.el);
240
307
  });
241
- }), watch(o, (j, te) => {
242
- $?.updateId(j, te);
308
+ }), watch(o, (H, ee) => {
309
+ z?.updateId(H, ee);
243
310
  }), onBeforeUnmount(() => {
244
- $?.unregister(), w.forEach((j) => {
245
- j.el.removeEventListener(j.trigger, O);
311
+ z?.unregister(), L.forEach((H) => {
312
+ H.el.removeEventListener(H.trigger, S);
246
313
  });
247
314
  }), onUnmounted(() => {
248
- g = !1, clearTimeout(_), clearTimeout(v), _ = void 0, v = void 0;
315
+ g = !1, M?.controller.abort(), D();
249
316
  });
250
- const S = ref(!1), D = () => {
251
- n.lazy === !0 && (S.value = !0);
252
- }, P = ref(!1), F = ref(i), z = ref(i), W = [...[r.transitionProps?.onBeforeEnter ?? noop, n.transitionProps?.onBeforeEnter ?? noop].flat(), () => {
253
- F.value = !0;
254
- }], q = [() => {
317
+ const j = ref(!1), X = () => {
318
+ n.lazy === !0 && (j.value = !0);
319
+ }, G = ref(!1), ne = ref(i), ae = ref(i), ie = [...[r.transitionProps?.onBeforeEnter ?? noop, n.transitionProps?.onBeforeEnter ?? noop].flat(), () => {
320
+ ne.value = !0;
321
+ }], ce = [() => {
255
322
  requestAnimationFrame(() => {
256
323
  requestAnimationFrame(() => {
257
- z.value = !0;
324
+ ae.value = !0;
258
325
  });
259
326
  });
260
- }, ...[r.transitionProps?.onEnter ?? noop, n.transitionProps?.onEnter ?? noop].flat()], G = [
261
- D,
327
+ }, ...[r.transitionProps?.onEnter ?? noop, n.transitionProps?.onEnter ?? noop].flat()], de = [
328
+ X,
262
329
  ...[r.transitionProps?.onAfterEnter ?? noop, n.transitionProps?.onAfterEnter ?? noop].flat(),
263
330
  () => {
264
331
  f.value && requestAnimationFrame(() => {
265
332
  f.value = !1;
266
333
  }), p.value && (p.value = !1), requestAnimationFrame(() => {
267
- ie.value = !0, nextTick$1(() => {
334
+ fe.value = !0, nextTick$1(() => {
268
335
  a("shown", b("shown", { cancelable: !1 }));
269
336
  });
270
337
  }), B || (C?.(!0), k = void 0, C = void 0);
271
338
  }
272
- ], Y = [
339
+ ], me = [
273
340
  () => {
274
- P.value || (P.value = !0);
341
+ G.value || (G.value = !0);
275
342
  },
276
343
  ...[r.transitionProps?.onBeforeLeave ?? noop, n.transitionProps?.onBeforeLeave ?? noop].flat(),
277
344
  () => {
278
- ie.value = !1;
345
+ fe.value = !1;
279
346
  }
280
- ], ne = [() => {
281
- z.value = !1;
282
- }, ...[r.transitionProps?.onLeave ?? noop, n.transitionProps?.onLeave ?? noop].flat()], le = [
347
+ ], he = [() => {
348
+ ae.value = !1;
349
+ }, ...[r.transitionProps?.onLeave ?? noop, n.transitionProps?.onLeave ?? noop].flat()], _e = [
283
350
  () => {
284
351
  a("hidden", b("hidden", {
285
- trigger: I,
352
+ trigger: w,
286
353
  cancelable: !1
287
354
  }));
288
355
  },
289
356
  ...[r.transitionProps?.onAfterLeave ?? noop, n.transitionProps?.onAfterLeave ?? noop].flat(),
290
357
  () => {
291
- P.value = !1, F.value = !1, f.value && requestAnimationFrame(() => {
358
+ G.value = !1, ne.value = !1, f.value && requestAnimationFrame(() => {
292
359
  f.value = !1;
293
360
  }), requestAnimationFrame(() => {
294
361
  p.value || (c.value = !1);
295
- }), C?.(I || ""), k = void 0, C = void 0, I = void 0;
362
+ }), C?.(w || ""), k = void 0, C = void 0, w = void 0;
296
363
  }
297
- ], se = computed$1(() => p.value === !0 || F.value === !0 || n.lazy === !1 || n.lazy === !0 && S.value === !0 && n.unmountLazy === !1), ie = ref(!1), ue = ref(!1), fe = ref(!1), he = {
364
+ ], ye = computed$1(() => p.value === !0 || ne.value === !0 || n.lazy === !1 || n.lazy === !0 && j.value === !0 && n.unmountLazy === !1), fe = ref(!1), J = ref(!1), Y = ref(!1), Z = {
298
365
  ...r.transitionProps,
299
- onBeforeEnter: W,
300
- onEnter: q,
301
- onAfterEnter: G,
302
- onBeforeLeave: Y,
303
- onLeave: ne,
304
- onAfterLeave: le
366
+ onBeforeEnter: ie,
367
+ onEnter: ce,
368
+ onAfterEnter: de,
369
+ onBeforeLeave: me,
370
+ onLeave: he,
371
+ onAfterLeave: _e
305
372
  };
306
373
  return {
307
374
  showRef: readonly(l),
308
375
  renderRef: readonly(c),
309
376
  renderBackdropRef: readonly(d),
310
- isVisible: readonly(z),
311
- isActive: readonly(F),
312
- trapActive: readonly(ie),
313
- show: M,
314
- hide: V,
315
- toggle: N,
316
- throttleHide: L,
317
- throttleShow: A,
377
+ isVisible: readonly(ae),
378
+ isActive: readonly(ne),
379
+ trapActive: readonly(fe),
380
+ show: P,
381
+ hide: E,
382
+ toggle: T,
383
+ throttleHide: R,
384
+ throttleShow: $,
318
385
  buildTriggerableEvent: b,
319
386
  computedNoAnimation: m,
320
387
  localNoAnimation: readonly(f),
321
- setLocalNoAnimation: (j) => {
322
- f.value = j;
388
+ setLocalNoAnimation: (H) => {
389
+ f.value = H;
323
390
  },
324
391
  localTemporaryHide: readonly(p),
325
- setLocalTemporaryHide: (j) => {
326
- p.value = j;
392
+ setLocalTemporaryHide: (H) => {
393
+ p.value = H;
327
394
  },
328
- isLeaving: readonly(P),
395
+ isLeaving: readonly(G),
329
396
  transitionProps: {
330
397
  ...fadeBaseTransitionProps,
331
398
  ...n.transitionProps,
332
- ...he
399
+ ...Z
333
400
  },
334
- lazyLoadCompleted: readonly(S),
335
- markLazyLoadCompleted: D,
336
- contentShowing: se,
337
- backdropReady: readonly(fe),
338
- backdropVisible: readonly(ue),
401
+ lazyLoadCompleted: readonly(j),
402
+ markLazyLoadCompleted: X,
403
+ contentShowing: ye,
404
+ backdropReady: readonly(Y),
405
+ backdropVisible: readonly(J),
339
406
  backdropTransitionProps: {
340
407
  ...fadeBaseTransitionProps,
341
408
  onBeforeEnter: () => {
342
409
  requestAnimationFrame(() => {
343
410
  requestAnimationFrame(() => {
344
- ue.value = !0;
411
+ J.value = !0;
345
412
  });
346
- }), fe.value = !1;
413
+ }), Y.value = !1;
347
414
  },
348
415
  onAfterEnter: () => {
349
- fe.value = !0;
416
+ Y.value = !0;
350
417
  },
351
418
  onBeforeLeave: () => {
352
- ue.value = !1;
419
+ J.value = !1;
353
420
  },
354
421
  onAfterLeave: () => {
355
- fe.value = !1, requestAnimationFrame(() => {
422
+ Y.value = !1, requestAnimationFrame(() => {
356
423
  d.value = !1;
357
424
  });
358
425
  }
@@ -798,42 +865,42 @@ var activeFocusTraps = {
798
865
  manuallyPaused: !1,
799
866
  delayInitialFocusTimer: void 0,
800
867
  recentNavEvent: void 0
801
- }, i, l = function(w, T, R) {
802
- return w && w[T] !== void 0 ? w[T] : r[R || T];
803
- }, c = function(w, T) {
804
- var R = typeof T?.composedPath == "function" ? T.composedPath() : void 0;
868
+ }, i, l = function(w, E, R) {
869
+ return w && w[E] !== void 0 ? w[E] : r[R || E];
870
+ }, c = function(w, E) {
871
+ var R = typeof E?.composedPath == "function" ? E.composedPath() : void 0;
805
872
  return s.containerGroups.findIndex(function($) {
806
- var E = $.container, S = $.tabbableNodes;
807
- return E.contains(w) || R?.includes(E) || S.find(function(D) {
808
- return D === w;
873
+ var T = $.container, S = $.tabbableNodes;
874
+ return T.contains(w) || R?.includes(T) || S.find(function(L) {
875
+ return L === w;
809
876
  });
810
877
  });
811
878
  }, d = function(w) {
812
- var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = T.hasFallback, $ = R === void 0 ? !1 : R, E = T.params, S = E === void 0 ? [] : E, D = r[w];
813
- if (typeof D == "function" && (D = D.apply(void 0, _toConsumableArray(S))), D === !0 && (D = void 0), !D) {
814
- if (D === void 0 || D === !1) return D;
879
+ var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, R = E.hasFallback, $ = R === void 0 ? !1 : R, T = E.params, S = T === void 0 ? [] : T, L = r[w];
880
+ if (typeof L == "function" && (L = L.apply(void 0, _toConsumableArray(S))), L === !0 && (L = void 0), !L) {
881
+ if (L === void 0 || L === !1) return L;
815
882
  throw new Error("`".concat(w, "` was specified but was not a node, or did not return a node"));
816
883
  }
817
- var P = D;
818
- if (typeof D == "string") {
884
+ var A = L;
885
+ if (typeof L == "string") {
819
886
  try {
820
- P = a.querySelector(D);
887
+ A = a.querySelector(L);
821
888
  } catch (F) {
822
889
  throw new Error("`".concat(w, '` appears to be an invalid selector; error="').concat(F.message, '"'));
823
890
  }
824
- if (!P && !$)
891
+ if (!A && !$)
825
892
  throw new Error("`".concat(w, "` as selector refers to no known node"));
826
893
  }
827
- return P;
894
+ return A;
828
895
  }, u = function(w) {
829
- var T = w.activeElement;
830
- return T ? T.shadowRoot && T.shadowRoot.activeElement !== null ? u(T.shadowRoot) : T : null;
896
+ var E = w.activeElement;
897
+ return E ? E.shadowRoot && E.shadowRoot.activeElement !== null ? u(E.shadowRoot) : E : null;
831
898
  }, f = function() {
832
899
  var w = d("initialFocus", { hasFallback: !0 });
833
900
  if (w === !1) return !1;
834
901
  if (w === void 0 || w && !isFocusable(w, r.tabbableOptions)) {
835
- var T = u(a);
836
- if (c(T) >= 0) w = T;
902
+ var E = u(a);
903
+ if (c(E) >= 0) w = E;
837
904
  else {
838
905
  var R = s.tabbableGroups[0];
839
906
  w = R && R.firstTabbableNode || d("fallbackFocus");
@@ -843,27 +910,27 @@ var activeFocusTraps = {
843
910
  return w;
844
911
  }, p = function() {
845
912
  if (s.containerGroups = s.containers.map(function(w) {
846
- var T = tabbable(w, r.tabbableOptions), R = focusable(w, r.tabbableOptions), $ = T.length > 0 ? T[0] : void 0, E = T.length > 0 ? T[T.length - 1] : void 0, S = R.find(function(P) {
847
- return isTabbable(P);
848
- }), D = R.slice().reverse().find(function(P) {
849
- return isTabbable(P);
913
+ var E = tabbable(w, r.tabbableOptions), R = focusable(w, r.tabbableOptions), $ = E.length > 0 ? E[0] : void 0, T = E.length > 0 ? E[E.length - 1] : void 0, S = R.find(function(A) {
914
+ return isTabbable(A);
915
+ }), L = R.slice().reverse().find(function(A) {
916
+ return isTabbable(A);
850
917
  });
851
918
  return {
852
919
  container: w,
853
- tabbableNodes: T,
920
+ tabbableNodes: E,
854
921
  focusableNodes: R,
855
922
  /** True if at least one node with positive `tabindex` was found in this container. */
856
- posTabIndexesFound: !!T.find(function(P) {
857
- return getTabIndex(P) > 0;
923
+ posTabIndexesFound: !!E.find(function(A) {
924
+ return getTabIndex(A) > 0;
858
925
  }),
859
926
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
860
927
  firstTabbableNode: $,
861
928
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
862
- lastTabbableNode: E,
929
+ lastTabbableNode: T,
863
930
  /** First tabbable node in container, __DOM__ order; `undefined` if none. */
864
931
  firstDomTabbableNode: S,
865
932
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
866
- lastDomTabbableNode: D,
933
+ lastDomTabbableNode: L,
867
934
  /**
868
935
  * Finds the __tabbable__ node that follows the given node in the specified direction,
869
936
  * in this container, if any.
@@ -873,12 +940,12 @@ var activeFocusTraps = {
873
940
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
874
941
  */
875
942
  nextTabbableNode: function(F) {
876
- var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, W = T.indexOf(F);
877
- return W < 0 ? z ? R.slice(R.indexOf(F) + 1).find(function(q) {
878
- return isTabbable(q);
879
- }) : R.slice(0, R.indexOf(F)).reverse().find(function(q) {
880
- return isTabbable(q);
881
- }) : T[W + (z ? 1 : -1)];
943
+ var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, W = E.indexOf(F);
944
+ return W < 0 ? z ? R.slice(R.indexOf(F) + 1).find(function(j) {
945
+ return isTabbable(j);
946
+ }) : R.slice(0, R.indexOf(F)).reverse().find(function(j) {
947
+ return isTabbable(j);
948
+ }) : E[W + (z ? 1 : -1)];
882
949
  }
883
950
  };
884
951
  }), s.tabbableGroups = s.containerGroups.filter(function(w) {
@@ -896,34 +963,34 @@ var activeFocusTraps = {
896
963
  w.focus({ preventScroll: !!r.preventScroll }), s.mostRecentlyFocusedNode = w, isSelectableInput(w) && w.select();
897
964
  }
898
965
  }, g = function(w) {
899
- var T = d("setReturnFocus", { params: [w] });
900
- return T || (T === !1 ? !1 : w);
966
+ var E = d("setReturnFocus", { params: [w] });
967
+ return E || (E === !1 ? !1 : w);
901
968
  }, b = function(w) {
902
- var T = w.target, R = w.event, $ = w.isBackward, E = $ === void 0 ? !1 : $;
903
- T = T || getActualTarget(R), p();
969
+ var E = w.target, R = w.event, $ = w.isBackward, T = $ === void 0 ? !1 : $;
970
+ E = E || getActualTarget(R), p();
904
971
  var S = null;
905
972
  if (s.tabbableGroups.length > 0) {
906
- var D = c(T, R), P = D >= 0 ? s.containerGroups[D] : void 0;
907
- if (D < 0)
908
- E ? S = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : S = s.tabbableGroups[0].firstTabbableNode;
909
- else if (E) {
973
+ var L = c(E, R), A = L >= 0 ? s.containerGroups[L] : void 0;
974
+ if (L < 0)
975
+ T ? S = s.tabbableGroups[s.tabbableGroups.length - 1].lastTabbableNode : S = s.tabbableGroups[0].firstTabbableNode;
976
+ else if (T) {
910
977
  var F = s.tabbableGroups.findIndex(function(ne) {
911
- var le = ne.firstTabbableNode;
912
- return T === le;
978
+ var ae = ne.firstTabbableNode;
979
+ return E === ae;
913
980
  });
914
- if (F < 0 && (P.container === T || isFocusable(T, r.tabbableOptions) && !isTabbable(T, r.tabbableOptions) && !P.nextTabbableNode(T, !1)) && (F = D), F >= 0) {
981
+ if (F < 0 && (A.container === E || isFocusable(E, r.tabbableOptions) && !isTabbable(E, r.tabbableOptions) && !A.nextTabbableNode(E, !1)) && (F = L), F >= 0) {
915
982
  var z = F === 0 ? s.tabbableGroups.length - 1 : F - 1, W = s.tabbableGroups[z];
916
- S = getTabIndex(T) >= 0 ? W.lastTabbableNode : W.lastDomTabbableNode;
917
- } else isTabEvent(R) || (S = P.nextTabbableNode(T, !1));
983
+ S = getTabIndex(E) >= 0 ? W.lastTabbableNode : W.lastDomTabbableNode;
984
+ } else isTabEvent(R) || (S = A.nextTabbableNode(E, !1));
918
985
  } else {
919
- var q = s.tabbableGroups.findIndex(function(ne) {
920
- var le = ne.lastTabbableNode;
921
- return T === le;
986
+ var j = s.tabbableGroups.findIndex(function(ne) {
987
+ var ae = ne.lastTabbableNode;
988
+ return E === ae;
922
989
  });
923
- if (q < 0 && (P.container === T || isFocusable(T, r.tabbableOptions) && !isTabbable(T, r.tabbableOptions) && !P.nextTabbableNode(T)) && (q = D), q >= 0) {
924
- var G = q === s.tabbableGroups.length - 1 ? 0 : q + 1, Y = s.tabbableGroups[G];
925
- S = getTabIndex(T) >= 0 ? Y.firstTabbableNode : Y.firstDomTabbableNode;
926
- } else isTabEvent(R) || (S = P.nextTabbableNode(T));
990
+ if (j < 0 && (A.container === E || isFocusable(E, r.tabbableOptions) && !isTabbable(E, r.tabbableOptions) && !A.nextTabbableNode(E)) && (j = L), j >= 0) {
991
+ var X = j === s.tabbableGroups.length - 1 ? 0 : j + 1, G = s.tabbableGroups[X];
992
+ S = getTabIndex(E) >= 0 ? G.firstTabbableNode : G.firstDomTabbableNode;
993
+ } else isTabEvent(R) || (S = A.nextTabbableNode(E));
927
994
  }
928
995
  } else S = d("fallbackFocus");
929
996
  return S;
@@ -936,39 +1003,39 @@ var activeFocusTraps = {
936
1003
  valueOrHandler(r.allowOutsideClick, w) || w.preventDefault();
937
1004
  }
938
1005
  }, v = function(w) {
939
- var T = getActualTarget(w), R = c(T, w) >= 0;
940
- if (R || T instanceof Document)
941
- R && (s.mostRecentlyFocusedNode = T);
1006
+ var E = getActualTarget(w), R = c(E, w) >= 0;
1007
+ if (R || E instanceof Document)
1008
+ R && (s.mostRecentlyFocusedNode = E);
942
1009
  else {
943
1010
  w.stopImmediatePropagation();
944
- var $, E = !0;
1011
+ var $, T = !0;
945
1012
  if (s.mostRecentlyFocusedNode)
946
1013
  if (getTabIndex(s.mostRecentlyFocusedNode) > 0) {
947
- var S = c(s.mostRecentlyFocusedNode), D = s.containerGroups[S].tabbableNodes;
948
- if (D.length > 0) {
949
- var P = D.findIndex(function(F) {
1014
+ var S = c(s.mostRecentlyFocusedNode), L = s.containerGroups[S].tabbableNodes;
1015
+ if (L.length > 0) {
1016
+ var A = L.findIndex(function(F) {
950
1017
  return F === s.mostRecentlyFocusedNode;
951
1018
  });
952
- P >= 0 && (r.isKeyForward(s.recentNavEvent) ? P + 1 < D.length && ($ = D[P + 1], E = !1) : P - 1 >= 0 && ($ = D[P - 1], E = !1));
1019
+ A >= 0 && (r.isKeyForward(s.recentNavEvent) ? A + 1 < L.length && ($ = L[A + 1], T = !1) : A - 1 >= 0 && ($ = L[A - 1], T = !1));
953
1020
  }
954
1021
  } else s.containerGroups.some(function(F) {
955
1022
  return F.tabbableNodes.some(function(z) {
956
1023
  return getTabIndex(z) > 0;
957
1024
  });
958
- }) || (E = !1);
959
- else E = !1;
960
- E && ($ = b({
1025
+ }) || (T = !1);
1026
+ else T = !1;
1027
+ T && ($ = b({
961
1028
  target: s.mostRecentlyFocusedNode,
962
1029
  isBackward: r.isKeyBackward(s.recentNavEvent)
963
1030
  })), m($ || s.mostRecentlyFocusedNode || f());
964
1031
  }
965
1032
  s.recentNavEvent = void 0;
966
1033
  }, C = function(w) {
967
- var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1034
+ var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
968
1035
  s.recentNavEvent = w;
969
1036
  var R = b({
970
1037
  event: w,
971
- isBackward: T
1038
+ isBackward: E
972
1039
  });
973
1040
  R && (isTabEvent(w) && w.preventDefault(), m(R));
974
1041
  }, k = function(w) {
@@ -981,9 +1048,9 @@ var activeFocusTraps = {
981
1048
  if (s.active) {
982
1049
  activeFocusTraps.activateTrap(o, i);
983
1050
  var w;
984
- return r.delayInitialFocus ? w = new Promise(function(T) {
1051
+ return r.delayInitialFocus ? w = new Promise(function(E) {
985
1052
  s.delayInitialFocusTimer = delay(function() {
986
- m(f()), T();
1053
+ m(f()), E();
987
1054
  });
988
1055
  }) : m(f()), a.addEventListener("focusin", v, !0), a.addEventListener("mousedown", _, {
989
1056
  capture: !0,
@@ -1001,52 +1068,52 @@ var activeFocusTraps = {
1001
1068
  }
1002
1069
  }, V = function(w) {
1003
1070
  s.active && !s.paused && i._setSubtreeIsolation(!1), s.adjacentElements.clear(), s.alreadySilent.clear();
1004
- var T = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Set(), $ = _createForOfIteratorHelper(w), E;
1071
+ var E = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Set(), $ = _createForOfIteratorHelper(w), T;
1005
1072
  try {
1006
- for ($.s(); !(E = $.n()).done; ) {
1007
- var S = E.value;
1008
- T.add(S);
1009
- for (var D = typeof ShadowRoot < "u" && S.getRootNode() instanceof ShadowRoot, P = S; P; ) {
1010
- T.add(P);
1011
- var F = P.parentElement, z = [];
1012
- F ? z = F.children : !F && D && (z = P.getRootNode().children, F = P.getRootNode().host, D = typeof ShadowRoot < "u" && F.getRootNode() instanceof ShadowRoot);
1013
- var W = _createForOfIteratorHelper(z), q;
1073
+ for ($.s(); !(T = $.n()).done; ) {
1074
+ var S = T.value;
1075
+ E.add(S);
1076
+ for (var L = typeof ShadowRoot < "u" && S.getRootNode() instanceof ShadowRoot, A = S; A; ) {
1077
+ E.add(A);
1078
+ var F = A.parentElement, z = [];
1079
+ F ? z = F.children : !F && L && (z = A.getRootNode().children, F = A.getRootNode().host, L = typeof ShadowRoot < "u" && F.getRootNode() instanceof ShadowRoot);
1080
+ var W = _createForOfIteratorHelper(z), j;
1014
1081
  try {
1015
- for (W.s(); !(q = W.n()).done; ) {
1016
- var G = q.value;
1017
- R.add(G);
1082
+ for (W.s(); !(j = W.n()).done; ) {
1083
+ var X = j.value;
1084
+ R.add(X);
1018
1085
  }
1019
- } catch (Y) {
1020
- W.e(Y);
1086
+ } catch (G) {
1087
+ W.e(G);
1021
1088
  } finally {
1022
1089
  W.f();
1023
1090
  }
1024
- P = F;
1091
+ A = F;
1025
1092
  }
1026
1093
  }
1027
- } catch (Y) {
1028
- $.e(Y);
1094
+ } catch (G) {
1095
+ $.e(G);
1029
1096
  } finally {
1030
1097
  $.f();
1031
1098
  }
1032
- T.forEach(function(Y) {
1033
- R.delete(Y);
1099
+ E.forEach(function(G) {
1100
+ R.delete(G);
1034
1101
  }), s.adjacentElements = R;
1035
- }, L = function() {
1102
+ }, D = function() {
1036
1103
  if (s.active)
1037
1104
  return a.removeEventListener("focusin", v, !0), a.removeEventListener("mousedown", _, !0), a.removeEventListener("touchstart", _, !0), a.removeEventListener("click", M, !0), a.removeEventListener("keydown", k, !0), a.removeEventListener("keydown", B), i;
1038
- }, A = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(function(w) {
1039
- var T = s.mostRecentlyFocusedNode;
1040
- T && w.some(function(R) {
1105
+ }, O = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(function(w) {
1106
+ var E = s.mostRecentlyFocusedNode;
1107
+ E && w.some(function(R) {
1041
1108
  return Array.from(R.removedNodes).some(function($) {
1042
- return $ === T || typeof $.contains == "function" && $.contains(T);
1109
+ return $ === E || typeof $.contains == "function" && $.contains(E);
1043
1110
  });
1044
1111
  }) && s.containers.some(function(R) {
1045
1112
  return R?.isConnected;
1046
1113
  }) && (p(), m(f()));
1047
1114
  }) : void 0, N = function() {
1048
- A && (A.disconnect(), s.active && !s.paused && s.containers.map(function(w) {
1049
- A.observe(w, {
1115
+ O && (O.disconnect(), s.active && !s.paused && s.containers.map(function(w) {
1116
+ O.observe(w, {
1050
1117
  subtree: !0,
1051
1118
  childList: !0
1052
1119
  });
@@ -1061,27 +1128,27 @@ var activeFocusTraps = {
1061
1128
  },
1062
1129
  activate: function(w) {
1063
1130
  if (s.active) return this;
1064
- var T = l(w, "onActivate"), R = l(w, "onPostActivate"), $ = l(w, "checkCanFocusTrap"), E = activeFocusTraps.getActiveTrap(o), S = !1;
1065
- if (E && !E.paused) {
1066
- var D;
1067
- (D = E._setSubtreeIsolation) === null || D === void 0 || D.call(E, !1), S = !0;
1131
+ var E = l(w, "onActivate"), R = l(w, "onPostActivate"), $ = l(w, "checkCanFocusTrap"), T = activeFocusTraps.getActiveTrap(o), S = !1;
1132
+ if (T && !T.paused) {
1133
+ var L;
1134
+ (L = T._setSubtreeIsolation) === null || L === void 0 || L.call(T, !1), S = !0;
1068
1135
  }
1069
1136
  try {
1070
- $ || p(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = u(a), T?.({ trap: i });
1071
- var P = function() {
1137
+ $ || p(), s.active = !0, s.paused = !1, s.nodeFocusedBeforeActivation = u(a), E?.({ trap: i });
1138
+ var A = function() {
1072
1139
  $ && p();
1073
1140
  var W = function() {
1074
1141
  i._setSubtreeIsolation(!0), N(), R?.({ trap: i });
1075
- }, q = I();
1076
- q ? q.then(W) : W();
1142
+ }, j = I();
1143
+ j ? j.then(W) : W();
1077
1144
  };
1078
1145
  if ($)
1079
- return $(s.containers.concat()).then(P, P), this;
1080
- P();
1146
+ return $(s.containers.concat()).then(A, A), this;
1147
+ A();
1081
1148
  } catch (z) {
1082
- if (E === activeFocusTraps.getActiveTrap(o) && S) {
1149
+ if (T === activeFocusTraps.getActiveTrap(o) && S) {
1083
1150
  var F;
1084
- (F = E._setSubtreeIsolation) === null || F === void 0 || F.call(E, !0);
1151
+ (F = T._setSubtreeIsolation) === null || F === void 0 || F.call(T, !0);
1085
1152
  }
1086
1153
  throw z;
1087
1154
  }
@@ -1089,20 +1156,20 @@ var activeFocusTraps = {
1089
1156
  },
1090
1157
  deactivate: function(w) {
1091
1158
  if (!s.active) return this;
1092
- var T = _objectSpread2$2({
1159
+ var E = _objectSpread2$2({
1093
1160
  onDeactivate: r.onDeactivate,
1094
1161
  onPostDeactivate: r.onPostDeactivate,
1095
1162
  checkCanReturnFocus: r.checkCanReturnFocus
1096
1163
  }, w);
1097
- clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, s.paused || i._setSubtreeIsolation(!1), s.alreadySilent.clear(), L(), s.active = !1, s.paused = !1, N(), activeFocusTraps.deactivateTrap(o, i);
1098
- var R = l(T, "onDeactivate"), $ = l(T, "onPostDeactivate"), E = l(T, "checkCanReturnFocus"), S = l(T, "delayReturnFocus"), D = l(T, "returnFocus", "returnFocusOnDeactivate");
1164
+ clearTimeout(s.delayInitialFocusTimer), s.delayInitialFocusTimer = void 0, s.paused || i._setSubtreeIsolation(!1), s.alreadySilent.clear(), D(), s.active = !1, s.paused = !1, N(), activeFocusTraps.deactivateTrap(o, i);
1165
+ var R = l(E, "onDeactivate"), $ = l(E, "onPostDeactivate"), T = l(E, "checkCanReturnFocus"), S = l(E, "delayReturnFocus"), L = l(E, "returnFocus", "returnFocusOnDeactivate");
1099
1166
  R?.({ trap: i });
1100
- var P = function() {
1101
- D && m(g(s.nodeFocusedBeforeActivation)), $?.({ trap: i });
1167
+ var A = function() {
1168
+ L && m(g(s.nodeFocusedBeforeActivation)), $?.({ trap: i });
1102
1169
  }, F = function() {
1103
- S && D ? delay(P) : P();
1170
+ S && L ? delay(A) : A();
1104
1171
  };
1105
- return D && E ? (E(g(s.nodeFocusedBeforeActivation)).then(F, F), this) : (F(), this);
1172
+ return L && T ? (T(g(s.nodeFocusedBeforeActivation)).then(F, F), this) : (F(), this);
1106
1173
  },
1107
1174
  pause: function(w) {
1108
1175
  return s.active ? (s.manuallyPaused = !0, this._setPausedState(!0, w)) : this;
@@ -1111,35 +1178,35 @@ var activeFocusTraps = {
1111
1178
  return s.active ? (s.manuallyPaused = !1, o[o.length - 1] !== this ? this : this._setPausedState(!1, w)) : this;
1112
1179
  },
1113
1180
  updateContainerElements: function(w) {
1114
- return s.containers = [].concat(w).filter(Boolean).map(function(T) {
1115
- return typeof T == "string" ? a.querySelector(T) : T;
1181
+ return s.containers = [].concat(w).filter(Boolean).map(function(E) {
1182
+ return typeof E == "string" ? a.querySelector(E) : E;
1116
1183
  }), r.isolateSubtrees && V(s.containers), s.active && (p(), s.paused || i._setSubtreeIsolation(!0)), N(), this;
1117
1184
  }
1118
1185
  }, Object.defineProperties(i, {
1119
1186
  _isManuallyPaused: { value: function() {
1120
1187
  return s.manuallyPaused;
1121
1188
  } },
1122
- _setPausedState: { value: function(w, T) {
1189
+ _setPausedState: { value: function(w, E) {
1123
1190
  if (s.paused === w) return this;
1124
1191
  if (s.paused = w, w) {
1125
- var R = l(T, "onPause"), $ = l(T, "onPostPause");
1126
- R?.({ trap: i }), L(), i._setSubtreeIsolation(!1), N(), $?.({ trap: i });
1192
+ var R = l(E, "onPause"), $ = l(E, "onPostPause");
1193
+ R?.({ trap: i }), D(), i._setSubtreeIsolation(!1), N(), $?.({ trap: i });
1127
1194
  } else {
1128
- var E = l(T, "onUnpause"), S = l(T, "onPostUnpause");
1129
- E?.({ trap: i }), (function() {
1195
+ var T = l(E, "onUnpause"), S = l(E, "onPostUnpause");
1196
+ T?.({ trap: i }), (function() {
1130
1197
  p();
1131
- var P = function() {
1198
+ var A = function() {
1132
1199
  i._setSubtreeIsolation(!0), N(), S?.({ trap: i });
1133
1200
  }, F = I();
1134
- F ? F.then(P) : P();
1201
+ F ? F.then(A) : A();
1135
1202
  })();
1136
1203
  }
1137
1204
  return this;
1138
1205
  } },
1139
1206
  _setSubtreeIsolation: { value: function(w) {
1140
- r.isolateSubtrees && s.adjacentElements.forEach(function(T) {
1207
+ r.isolateSubtrees && s.adjacentElements.forEach(function(E) {
1141
1208
  var R;
1142
- w ? r.isolateSubtrees === "aria-hidden" ? ((T.ariaHidden === "true" || ((R = T.getAttribute("aria-hidden")) === null || R === void 0 ? void 0 : R.toLowerCase()) === "true") && s.alreadySilent.add(T), T.setAttribute("aria-hidden", "true")) : ((T.inert || T.hasAttribute("inert")) && s.alreadySilent.add(T), T.setAttribute("inert", !0)) : s.alreadySilent.has(T) || (r.isolateSubtrees === "aria-hidden" ? T.removeAttribute("aria-hidden") : T.removeAttribute("inert"));
1209
+ w ? r.isolateSubtrees === "aria-hidden" ? ((E.ariaHidden === "true" || ((R = E.getAttribute("aria-hidden")) === null || R === void 0 ? void 0 : R.toLowerCase()) === "true") && s.alreadySilent.add(E), E.setAttribute("aria-hidden", "true")) : ((E.inert || E.hasAttribute("inert")) && s.alreadySilent.add(E), E.setAttribute("inert", !0)) : s.alreadySilent.has(E) || (r.isolateSubtrees === "aria-hidden" ? E.removeAttribute("aria-hidden") : E.removeAttribute("inert"));
1143
1210
  });
1144
1211
  } }
1145
1212
  }), i.updateContainerElements(t), i;
@@ -1423,16 +1490,16 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1423
1490
  const a = useDefaults(e, "BModal"), o = n, r = useSlots(), s = useId$1(() => a.id, "modal"), i = useModel(e, "modelValue"), l = useTemplateRef("_element"), c = useTemplateRef("_fallbackFocusElement"), d = useTemplateRef("_okButton"), u = useTemplateRef("_cancelButton"), f = useTemplateRef("_closeButton"), p = () => a.focus && typeof a.focus != "boolean" ? a.focus === "ok" ? d : a.focus === "close" ? f : a.focus === "cancel" ? u : getElement(a.focus, l.value ?? void 0) ?? l.value : l;
1424
1491
  let m = null;
1425
1492
  const g = () => {
1426
- const U = getSafeDocument();
1427
- if (a.noTrap && a.focus !== !1 && U) {
1428
- m = U.activeElement, m === l.value && (m = null);
1493
+ const Y = getSafeDocument();
1494
+ if (a.noTrap && a.focus !== !1 && Y) {
1495
+ m = Y.activeElement, m === l.value && (m = null);
1429
1496
  const Z = unrefElement$1(p());
1430
1497
  if (!Z) return;
1431
1498
  Z?.focus(), Z.tagName && Z.tagName.toLowerCase() === "input" && typeof Z.select == "function" && Z.select();
1432
1499
  }
1433
1500
  }, b = () => {
1434
1501
  a.noTrap && a.focus !== !1 && m && (m?.focus(), m = null);
1435
- }, { showRef: _, renderRef: v, renderBackdropRef: C, hide: k, show: B, toggle: M, computedNoAnimation: I, transitionProps: V, backdropTransitionProps: L, isLeaving: A, isVisible: N, trapActive: O, contentShowing: w, backdropReady: T, backdropVisible: R } = useShowHide({
1502
+ }, { showRef: _, renderRef: v, renderBackdropRef: C, hide: k, show: B, toggle: M, computedNoAnimation: I, transitionProps: V, backdropTransitionProps: D, isLeaving: O, isVisible: N, trapActive: P, contentShowing: w, backdropReady: E, backdropVisible: R } = useShowHide({
1436
1503
  modelValue: i,
1437
1504
  props: a,
1438
1505
  emit: o,
@@ -1443,7 +1510,7 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1443
1510
  onAfterLeave: b
1444
1511
  } }), { needsFallback: $ } = useActivatedFocusTrap({
1445
1512
  element: l,
1446
- isActive: O,
1513
+ isActive: P,
1447
1514
  noTrap: () => a.noTrap,
1448
1515
  fallbackFocus: {
1449
1516
  ref: c,
@@ -1457,54 +1524,54 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1457
1524
  target: l,
1458
1525
  passive: !0
1459
1526
  }), useSafeScrollLock(_, () => a.bodyScrolling);
1460
- const E = computed$1(() => !isEmptySlot(r["header-close"])), S = computed$1(() => [a.dialogClass, {
1527
+ const T = computed$1(() => !isEmptySlot(r["header-close"])), S = computed$1(() => [a.dialogClass, {
1461
1528
  "modal-fullscreen": a.fullscreen === !0,
1462
1529
  [`modal-fullscreen-${a.fullscreen}-down`]: typeof a.fullscreen == "string",
1463
1530
  [`modal-${a.size}`]: a.size !== void 0,
1464
1531
  "modal-dialog-centered": a.centered,
1465
1532
  "modal-dialog-scrollable": a.scrollable
1466
- }]), D = useColorVariantClasses(() => ({
1533
+ }]), L = useColorVariantClasses(() => ({
1467
1534
  bgVariant: a.bodyBgVariant,
1468
1535
  textVariant: a.bodyTextVariant,
1469
1536
  variant: a.bodyVariant
1470
- })), P = computed$1(() => [a.bodyClass, D.value]), F = useColorVariantClasses(() => ({
1537
+ })), A = computed$1(() => [a.bodyClass, L.value]), F = useColorVariantClasses(() => ({
1471
1538
  bgVariant: a.headerBgVariant,
1472
1539
  textVariant: a.headerTextVariant,
1473
1540
  variant: a.headerVariant,
1474
1541
  borderVariant: a.headerBorderVariant
1475
1542
  })), z = computed$1(() => [a.headerClass, F.value]), W = computed$1(() => ({
1476
- variant: E.value ? a.headerCloseVariant : void 0,
1543
+ variant: T.value ? a.headerCloseVariant : void 0,
1477
1544
  class: a.headerCloseClass
1478
- })), q = useColorVariantClasses(() => ({
1545
+ })), j = useColorVariantClasses(() => ({
1479
1546
  bgVariant: a.footerBgVariant,
1480
1547
  textVariant: a.footerTextVariant,
1481
1548
  variant: a.footerVariant,
1482
1549
  borderVariant: a.footerBorderVariant
1483
- })), G = computed$1(() => [a.footerClass, q.value]), Y = computed$1(() => [a.titleClass, { "visually-hidden": a.titleVisuallyHidden }]), ne = computed$1(() => a.cancelDisabled || a.busy), le = computed$1(() => a.okDisabled || a.busy), { activePosition: se, activeModalCount: ie, stackWithoutSelf: ue } = useModalManager(_, i.value), fe = computed$1(() => ({
1484
- [`stack-position-${se?.value ?? 0}`]: !0,
1485
- [`stack-inverse-position-${(ie?.value ?? 1) - 1 - (se?.value ?? 0)}`]: !0
1550
+ })), X = computed$1(() => [a.footerClass, j.value]), G = computed$1(() => [a.titleClass, { "visually-hidden": a.titleVisuallyHidden }]), ne = computed$1(() => a.cancelDisabled || a.busy), ae = computed$1(() => a.okDisabled || a.busy), { activePosition: ie, activeModalCount: ce, stackWithoutSelf: de } = useModalManager(_, i.value), me = computed$1(() => ({
1551
+ [`stack-position-${ie?.value ?? 0}`]: !0,
1552
+ [`stack-inverse-position-${(ce?.value ?? 1) - 1 - (ie?.value ?? 0)}`]: !0
1486
1553
  }));
1487
- watch(ue, (U, Z) => {
1488
- U.length > Z.length && _.value === !0 && a.noStacking && k();
1554
+ watch(de, (Y, Z) => {
1555
+ Y.length > Z.length && _.value === !0 && a.noStacking && k();
1489
1556
  });
1490
1557
  const he = ref(getModalZIndex(l.value ?? getSafeDocument()?.body));
1491
1558
  onMounted(() => {
1492
- watch(v, (U) => {
1493
- U && nextTick$1(() => {
1559
+ watch(v, (Y) => {
1560
+ Y && nextTick$1(() => {
1494
1561
  l.value && (he.value = getModalZIndex(l.value));
1495
1562
  });
1496
1563
  }, { immediate: !0 });
1497
1564
  });
1498
- const j = computed$1(() => _.value || A.value ? he.value - ((ie?.value ?? 0) * 2 - (se?.value ?? 0) * 2) : he.value), te = computed$1(() => ({
1499
- "z-index": j.value,
1500
- "--b-position": se?.value ?? 0,
1501
- "--b-inverse-position": (ie?.value ?? 1) - 1 - (se?.value ?? 0),
1502
- "--b-count": ie?.value ?? 0
1503
- })), pe = computed$1(() => ({
1504
- "z-index": j.value - 1,
1505
- "--b-position": se?.value ?? 0,
1506
- "--b-inverse-position": (ie?.value ?? 1) - 1 - (se?.value ?? 0),
1507
- "--b-count": ie?.value ?? 0
1565
+ const _e = computed$1(() => _.value || O.value ? he.value - ((ce?.value ?? 0) * 2 - (ie?.value ?? 0) * 2) : he.value), ye = computed$1(() => ({
1566
+ "z-index": _e.value,
1567
+ "--b-position": ie?.value ?? 0,
1568
+ "--b-inverse-position": (ce?.value ?? 1) - 1 - (ie?.value ?? 0),
1569
+ "--b-count": ce?.value ?? 0
1570
+ })), fe = computed$1(() => ({
1571
+ "z-index": _e.value - 1,
1572
+ "--b-position": ie?.value ?? 0,
1573
+ "--b-inverse-position": (ce?.value ?? 1) - 1 - (ie?.value ?? 0),
1574
+ "--b-count": ce?.value ?? 0
1508
1575
  })), J = computed$1(() => ({
1509
1576
  id: s.value,
1510
1577
  cancel: () => {
@@ -1528,7 +1595,7 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1528
1595
  show: B,
1529
1596
  toggle: M,
1530
1597
  visible: _
1531
- }), (U, Z) => (openBlock(), createBlock(ConditionalTeleport_default, {
1598
+ }), (Y, Z) => (openBlock(), createBlock(ConditionalTeleport_default, {
1532
1599
  to: unref(a).teleportTo,
1533
1600
  disabled: unref(a).teleportDisabled
1534
1601
  }, {
@@ -1539,15 +1606,15 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1539
1606
  class: ["modal", [unref(a).modalClass, {
1540
1607
  fade: !unref(I),
1541
1608
  show: unref(N),
1542
- ...fe.value
1609
+ ...me.value
1543
1610
  }]],
1544
1611
  role: "dialog",
1545
1612
  "aria-labelledby": unref(a).noHeader ? void 0 : `${unref(s)}-label`,
1546
1613
  "aria-describedby": `${unref(s)}-body`,
1547
1614
  tabindex: "-1"
1548
- }, U.$attrs, {
1549
- style: [te.value, { display: "block" }],
1550
- onMousedown: Z[4] || (Z[4] = withModifiers((ce) => unref(k)("backdrop"), ["left", "self"]))
1615
+ }, Y.$attrs, {
1616
+ style: [ye.value, { display: "block" }],
1617
+ onMousedown: Z[4] || (Z[4] = withModifiers((H) => unref(k)("backdrop"), ["left", "self"]))
1551
1618
  }), [createElementVNode("div", { class: normalizeClass(["modal-dialog", S.value]) }, [unref(w) ? (openBlock(), createElementBlock("div", {
1552
1619
  key: 0,
1553
1620
  class: normalizeClass(["modal-content", unref(a).contentClass])
@@ -1555,38 +1622,38 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1555
1622
  unref(a).noHeader ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", mergeProps({
1556
1623
  key: 0,
1557
1624
  class: ["modal-header", z.value]
1558
- }, unref(a).headerAttrs), [renderSlot(U.$slots, "header", normalizeProps(guardReactiveProps(J.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(unref(a).titleTag), {
1625
+ }, unref(a).headerAttrs), [renderSlot(Y.$slots, "header", normalizeProps(guardReactiveProps(J.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(unref(a).titleTag), {
1559
1626
  id: `${unref(s)}-label`,
1560
- class: normalizeClass(["modal-title", Y.value])
1627
+ class: normalizeClass(["modal-title", G.value])
1561
1628
  }, {
1562
- default: withCtx(() => [renderSlot(U.$slots, "title", normalizeProps(guardReactiveProps(J.value)), () => [createTextVNode(toDisplayString(unref(a).title), 1)])]),
1629
+ default: withCtx(() => [renderSlot(Y.$slots, "title", normalizeProps(guardReactiveProps(J.value)), () => [createTextVNode(toDisplayString(unref(a).title), 1)])]),
1563
1630
  _: 3
1564
- }, 8, ["id", "class"])), unref(a).noHeaderClose ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [E.value ? (openBlock(), createBlock(BButton_default, mergeProps({
1631
+ }, 8, ["id", "class"])), unref(a).noHeaderClose ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [T.value ? (openBlock(), createBlock(BButton_default, mergeProps({
1565
1632
  key: 0,
1566
1633
  ref: "_closeButton"
1567
- }, W.value, { onClick: Z[0] || (Z[0] = (ce) => unref(k)("close")) }), {
1568
- default: withCtx(() => [renderSlot(U.$slots, "header-close", normalizeProps(guardReactiveProps(J.value)))]),
1634
+ }, W.value, { onClick: Z[0] || (Z[0] = (H) => unref(k)("close")) }), {
1635
+ default: withCtx(() => [renderSlot(Y.$slots, "header-close", normalizeProps(guardReactiveProps(J.value)))]),
1569
1636
  _: 3
1570
1637
  }, 16)) : (openBlock(), createBlock(BCloseButton_default, mergeProps({
1571
1638
  key: 1,
1572
1639
  ref: "_closeButton",
1573
1640
  "aria-label": unref(a).headerCloseLabel
1574
- }, W.value, { onClick: Z[1] || (Z[1] = (ce) => unref(k)("close")) }), null, 16, ["aria-label"]))], 64))])], 16)),
1641
+ }, W.value, { onClick: Z[1] || (Z[1] = (H) => unref(k)("close")) }), null, 16, ["aria-label"]))], 64))])], 16)),
1575
1642
  createElementVNode("div", mergeProps({
1576
1643
  id: `${unref(s)}-body`,
1577
- class: ["modal-body", P.value]
1578
- }, unref(a).bodyAttrs), [renderSlot(U.$slots, "default", normalizeProps(guardReactiveProps(J.value)), () => [createTextVNode(toDisplayString(unref(a).body), 1)])], 16, _hoisted_2$1y),
1644
+ class: ["modal-body", A.value]
1645
+ }, unref(a).bodyAttrs), [renderSlot(Y.$slots, "default", normalizeProps(guardReactiveProps(J.value)), () => [createTextVNode(toDisplayString(unref(a).body), 1)])], 16, _hoisted_2$1y),
1579
1646
  unref(a).noFooter ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", {
1580
1647
  key: 1,
1581
- class: normalizeClass(["modal-footer", G.value])
1582
- }, [renderSlot(U.$slots, "footer", normalizeProps(guardReactiveProps(J.value)), () => [renderSlot(U.$slots, "cancel", normalizeProps(guardReactiveProps(J.value)), () => [unref(a).okOnly ? createCommentVNode("", !0) : (openBlock(), createBlock(BButton_default, {
1648
+ class: normalizeClass(["modal-footer", X.value])
1649
+ }, [renderSlot(Y.$slots, "footer", normalizeProps(guardReactiveProps(J.value)), () => [renderSlot(Y.$slots, "cancel", normalizeProps(guardReactiveProps(J.value)), () => [unref(a).okOnly ? createCommentVNode("", !0) : (openBlock(), createBlock(BButton_default, {
1583
1650
  key: 0,
1584
1651
  ref: "_cancelButton",
1585
1652
  disabled: ne.value,
1586
1653
  size: unref(a).buttonSize,
1587
1654
  variant: unref(a).cancelVariant,
1588
1655
  class: normalizeClass(unref(a).cancelClass),
1589
- onClick: Z[2] || (Z[2] = (ce) => unref(k)("cancel"))
1656
+ onClick: Z[2] || (Z[2] = (H) => unref(k)("cancel"))
1590
1657
  }, {
1591
1658
  default: withCtx(() => [createTextVNode(toDisplayString(unref(a).cancelTitle), 1)]),
1592
1659
  _: 1
@@ -1595,13 +1662,13 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1595
1662
  "size",
1596
1663
  "variant",
1597
1664
  "class"
1598
- ]))]), renderSlot(U.$slots, "ok", normalizeProps(guardReactiveProps(J.value)), () => [createVNode(BButton_default, {
1665
+ ]))]), renderSlot(Y.$slots, "ok", normalizeProps(guardReactiveProps(J.value)), () => [createVNode(BButton_default, {
1599
1666
  ref: "_okButton",
1600
- disabled: le.value,
1667
+ disabled: ae.value,
1601
1668
  size: unref(a).buttonSize,
1602
1669
  variant: unref(a).okVariant,
1603
1670
  class: normalizeClass(unref(a).okClass),
1604
- onClick: Z[3] || (Z[3] = (ce) => unref(k)("ok"))
1671
+ onClick: Z[3] || (Z[3] = (H) => unref(k)("ok"))
1605
1672
  }, {
1606
1673
  default: withCtx(() => [createTextVNode(toDisplayString(unref(a).okTitle), 1)]),
1607
1674
  _: 1
@@ -1621,18 +1688,18 @@ var useActivatedFocusTrap = ({ element: e, isActive: t, noTrap: n, fallbackFocus
1621
1688
  height: "0",
1622
1689
  overflow: "hidden"
1623
1690
  }
1624
- }, null, 512)) : createCommentVNode("", !0)], 16, _hoisted_1$2g), [[vShow, unref(_) && (unref(T) && unref(a).backdropFirst || !unref(a).backdropFirst)]])]),
1691
+ }, null, 512)) : createCommentVNode("", !0)], 16, _hoisted_1$2g), [[vShow, unref(_) && (unref(E) && unref(a).backdropFirst || !unref(a).backdropFirst)]])]),
1625
1692
  _: 3
1626
- }, 16, ["appear"])) : createCommentVNode("", !0), unref(a).noBackdrop ? createCommentVNode("", !0) : renderSlot(U.$slots, "backdrop", normalizeProps(guardReactiveProps(J.value)), () => [unref(C) ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, unref(L))), {
1693
+ }, 16, ["appear"])) : createCommentVNode("", !0), unref(a).noBackdrop ? createCommentVNode("", !0) : renderSlot(Y.$slots, "backdrop", normalizeProps(guardReactiveProps(J.value)), () => [unref(C) ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, unref(D))), {
1627
1694
  default: withCtx(() => [withDirectives(createElementVNode("div", {
1628
1695
  class: normalizeClass(["modal-backdrop", {
1629
1696
  fade: !unref(I),
1630
1697
  show: unref(R) || unref(I),
1631
- ...fe.value
1698
+ ...me.value
1632
1699
  }]),
1633
- style: normalizeStyle(pe.value),
1634
- onClick: Z[5] || (Z[5] = (ce) => unref(k)("backdrop"))
1635
- }, null, 6), [[vShow, unref(_) || unref(A) && unref(a).backdropFirst && !unref(I)]])]),
1700
+ style: normalizeStyle(fe.value),
1701
+ onClick: Z[5] || (Z[5] = (H) => unref(k)("backdrop"))
1702
+ }, null, 6), [[vShow, unref(_) || unref(O) && unref(a).backdropFirst && !unref(I)]])]),
1636
1703
  _: 1
1637
1704
  }, 16)) : createCommentVNode("", !0)], void 0, 1)]),
1638
1705
  _: 3
@@ -1976,12 +2043,12 @@ var MAX_RESET_COUNT$1 = 50, computePosition$1$1 = async (e, t, n) => {
1976
2043
  }, p = getAlignmentAxis$1(o), m = getAxisLength$1(p), g = await s.getDimensions(c), b = p === "y", _ = b ? "top" : "left", v = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", k = r.reference[m] + r.reference[p] - f[p] - r.floating[m], B = f[p] - r.reference[p], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
1977
2044
  let I = M ? M[C] : 0;
1978
2045
  (!I || !await (s.isElement == null ? void 0 : s.isElement(M))) && (I = i.floating[C] || r.floating[m]);
1979
- const V = k / 2 - B / 2, L = I / 2 - g[m] / 2 - 1, A = min$3(u[_], L), N = min$3(u[v], L), O = I - g[m] - N, w = I / 2 - g[m] / 2 + V, T = clamp$1(A, w, O), R = !l.arrow && getAlignment$1(o) != null && w !== T && r.reference[m] / 2 - (w < A ? A : N) - g[m] / 2 < 0, $ = R ? w < A ? w - A : w - O : 0;
2046
+ const V = k / 2 - B / 2, D = I / 2 - g[m] / 2 - 1, O = min$3(u[_], D), N = min$3(u[v], D), P = I - g[m] - N, w = I / 2 - g[m] / 2 + V, E = clamp$1(O, w, P), R = !l.arrow && getAlignment$1(o) != null && w !== E && r.reference[m] / 2 - (w < O ? O : N) - g[m] / 2 < 0, $ = R ? w < O ? w - O : w - P : 0;
1980
2047
  return {
1981
2048
  [p]: f[p] + $,
1982
2049
  data: {
1983
- [p]: T,
1984
- centerOffset: w - T - $,
2050
+ [p]: E,
2051
+ centerOffset: w - E - $,
1985
2052
  ...R && { alignmentOffset: $ }
1986
2053
  },
1987
2054
  reset: R
@@ -2015,14 +2082,14 @@ var autoPlacement$1 = function(e) {
2015
2082
  },
2016
2083
  reset: { placement: M }
2017
2084
  };
2018
- const I = B.map((L) => {
2019
- const A = getAlignment$1(L.placement);
2085
+ const I = B.map((D) => {
2086
+ const O = getAlignment$1(D.placement);
2020
2087
  return [
2021
- L.placement,
2022
- A && d ? L.overflows.slice(0, 2).reduce((N, O) => N + O, 0) : L.overflows[0],
2023
- L.overflows
2088
+ D.placement,
2089
+ O && d ? D.overflows.slice(0, 2).reduce((N, P) => N + P, 0) : D.overflows[0],
2090
+ D.overflows
2024
2091
  ];
2025
- }).sort((L, A) => L[1] - A[1]), V = ((o = I.filter((L) => L[2].slice(0, getAlignment$1(L[0]) ? 2 : 3).every((A) => A <= 0))[0]) == null ? void 0 : o[0]) || I[0][0];
2092
+ }).sort((D, O) => D[1] - O[1]), V = ((o = I.filter((D) => D[2].slice(0, getAlignment$1(D[0]) ? 2 : 3).every((O) => O <= 0))[0]) == null ? void 0 : o[0]) || I[0][0];
2026
2093
  return V !== i ? {
2027
2094
  data: {
2028
2095
  index: b + 1,
@@ -2042,38 +2109,38 @@ var autoPlacement$1 = function(e) {
2042
2109
  if ((n = r.arrow) != null && n.alignmentOffset) return {};
2043
2110
  const _ = getSide$1(o), v = getSideAxis$1(i), C = getSide$1(i) === i, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), B = f || (C || !g ? [getOppositePlacement$1(i)] : getExpandedPlacements$1(i)), M = m !== "none";
2044
2111
  !f && M && B.push(...getOppositeAxisPlacements$1(i, g, m, k));
2045
- const I = [i, ...B], V = await l.detectOverflow(t, b), L = [];
2046
- let A = ((a = r.flip) == null ? void 0 : a.overflows) || [];
2047
- if (d && L.push(V[_]), u) {
2048
- const T = getAlignmentSides$1(o, s, k);
2049
- L.push(V[T[0]], V[T[1]]);
2112
+ const I = [i, ...B], V = await l.detectOverflow(t, b), D = [];
2113
+ let O = ((a = r.flip) == null ? void 0 : a.overflows) || [];
2114
+ if (d && D.push(V[_]), u) {
2115
+ const E = getAlignmentSides$1(o, s, k);
2116
+ D.push(V[E[0]], V[E[1]]);
2050
2117
  }
2051
- if (A = [...A, {
2118
+ if (O = [...O, {
2052
2119
  placement: o,
2053
- overflows: L
2054
- }], !L.every((T) => T <= 0)) {
2055
- var N, O;
2056
- const T = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, R = I[T];
2057
- if (R && (!(u === "alignment" && v !== getSideAxis$1(R)) || A.every((E) => getSideAxis$1(E.placement) === v ? E.overflows[0] > 0 : !0)))
2120
+ overflows: D
2121
+ }], !D.every((E) => E <= 0)) {
2122
+ var N, P;
2123
+ const E = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, R = I[E];
2124
+ if (R && (!(u === "alignment" && v !== getSideAxis$1(R)) || O.every((T) => getSideAxis$1(T.placement) === v ? T.overflows[0] > 0 : !0)))
2058
2125
  return {
2059
2126
  data: {
2060
- index: T,
2061
- overflows: A
2127
+ index: E,
2128
+ overflows: O
2062
2129
  },
2063
2130
  reset: { placement: R }
2064
2131
  };
2065
- let $ = (O = A.filter((E) => E.overflows[0] <= 0).sort((E, S) => E.overflows[1] - S.overflows[1])[0]) == null ? void 0 : O.placement;
2132
+ let $ = (P = O.filter((T) => T.overflows[0] <= 0).sort((T, S) => T.overflows[1] - S.overflows[1])[0]) == null ? void 0 : P.placement;
2066
2133
  if (!$) switch (p) {
2067
2134
  case "bestFit": {
2068
2135
  var w;
2069
- const E = (w = A.filter((S) => {
2136
+ const T = (w = O.filter((S) => {
2070
2137
  if (M) {
2071
- const D = getSideAxis$1(S.placement);
2072
- return D === v || D === "y";
2138
+ const L = getSideAxis$1(S.placement);
2139
+ return L === v || L === "y";
2073
2140
  }
2074
2141
  return !0;
2075
- }).map((S) => [S.placement, S.overflows.filter((D) => D > 0).reduce((D, P) => D + P, 0)]).sort((S, D) => S[1] - D[1])[0]) == null ? void 0 : w[0];
2076
- E && ($ = E);
2142
+ }).map((S) => [S.placement, S.overflows.filter((L) => L > 0).reduce((L, A) => L + A, 0)]).sort((S, L) => S[1] - L[1])[0]) == null ? void 0 : w[0];
2143
+ T && ($ = T);
2077
2144
  break;
2078
2145
  }
2079
2146
  case "initialPlacement":
@@ -2159,12 +2226,12 @@ var inline$1 = function(e) {
2159
2226
  if (u.length === 2 && (u[0].left > u[1].right || u[1].left > u[0].right) && l != null && c != null) return u.find((b) => l > b.left - p.left && l < b.right + p.right && c > b.top - p.top && c < b.bottom + p.bottom) || f;
2160
2227
  if (u.length >= 2) {
2161
2228
  if (getSideAxis$1(n) === "y") {
2162
- const M = u[0], I = u[u.length - 1], V = getSide$1(n) === "top", L = M.top, A = I.bottom, N = V ? M.left : I.left;
2229
+ const M = u[0], I = u[u.length - 1], V = getSide$1(n) === "top", D = M.top, O = I.bottom, N = V ? M.left : I.left;
2163
2230
  return rectToClientRect$1({
2164
2231
  x: N,
2165
- y: L,
2232
+ y: D,
2166
2233
  width: (V ? M.right : I.right) - N,
2167
- height: A - L
2234
+ height: O - D
2168
2235
  });
2169
2236
  }
2170
2237
  const b = getSide$1(n) === "left", _ = max$3(...u.map((M) => M.right)), v = min$3(...u.map((M) => M.left)), C = u.filter((M) => b ? M.left === v : M.right === _), k = C[0].top, B = C[C.length - 1].bottom;
@@ -2648,11 +2715,11 @@ function observeMove$1(e, t, n) {
2648
2715
  };
2649
2716
  let M = !0;
2650
2717
  function I(V) {
2651
- const L = V[0].intersectionRatio;
2718
+ const D = V[0].intersectionRatio;
2652
2719
  if (!rectsAreEqual$1(f, e.getBoundingClientRect())) return i();
2653
- if (L !== u) {
2720
+ if (D !== u) {
2654
2721
  if (!M) return i();
2655
- L ? i(!1, L) : o = setTimeout(() => {
2722
+ D ? i(!1, D) : o = setTimeout(() => {
2656
2723
  i(!1, 1e-7);
2657
2724
  }, 1e3);
2658
2725
  }
@@ -2760,13 +2827,13 @@ var normalizeInput = (e, t) => {
2760
2827
  i?.track(o);
2761
2828
  const l = computed$1(() => e.state !== void 0 ? e.state : i?.state.value ?? null), c = computed$1(() => e.disabled || (i?.disabled.value ?? !1)), d = useAriaInvalid(() => e.ariaInvalid, l), u = useStateClass(l), f = ref(null), p = useDebounceFn((V) => {
2762
2829
  n.value = V, f.value = null;
2763
- }, () => a.lazy === !0 ? 0 : r.value, { maxWait: () => a.lazy === !0 ? NaN : s.value }), m = (V, L = !1, A = !1) => {
2764
- a.lazy === !0 && L === !1 || (A ? (f.value = null, n.value = V) : (f.value = V, p(V)));
2830
+ }, () => a.lazy === !0 ? 0 : r.value, { maxWait: () => a.lazy === !0 ? NaN : s.value }), m = (V, D = !1, O = !1) => {
2831
+ a.lazy === !0 && D === !1 || (O ? (f.value = null, n.value = V) : (f.value = V, p(V)));
2765
2832
  };
2766
2833
  watch(n, () => {
2767
2834
  p.cancel(), f.value = null;
2768
2835
  });
2769
- const g = computed$1(() => f.value ?? n.value ?? void 0), { focused: b } = useFocus(t, { initialValue: e.autofocus }), _ = (V, L, A = !1) => e.formatter !== void 0 && (!e.lazyFormatter || A) ? e.formatter(V, L) : V;
2836
+ const g = computed$1(() => f.value ?? n.value ?? void 0), { focused: b } = useFocus(t, { initialValue: e.autofocus }), _ = (V, D, O = !1) => e.formatter !== void 0 && (!e.lazyFormatter || O) ? e.formatter(V, D) : V;
2770
2837
  onMounted(() => {
2771
2838
  t.value && (t.value.value = n.value?.toString() ?? "");
2772
2839
  }), onActivated(() => {
@@ -2783,26 +2850,26 @@ var normalizeInput = (e, t) => {
2783
2850
  computedAriaInvalid: d,
2784
2851
  computedValue: g,
2785
2852
  onInput: (V) => {
2786
- const { value: L } = V.target, A = _(L, V);
2853
+ const { value: D } = V.target, O = _(D, V);
2787
2854
  if (V.defaultPrevented) {
2788
2855
  V.preventDefault();
2789
2856
  return;
2790
2857
  }
2791
- m(A), A !== L && v(A);
2858
+ m(O), O !== D && v(O);
2792
2859
  },
2793
2860
  onChange: (V) => {
2794
- const { value: L } = V.target, A = _(L, V);
2861
+ const { value: D } = V.target, O = _(D, V);
2795
2862
  if (V.defaultPrevented) {
2796
2863
  V.preventDefault();
2797
2864
  return;
2798
2865
  }
2799
- const N = A;
2800
- n.value !== N && m(A, !0);
2866
+ const N = O;
2867
+ n.value !== N && m(O, !0);
2801
2868
  },
2802
2869
  onBlur: (V) => {
2803
2870
  if (!a.lazy && !e.lazyFormatter && !a.trim && r.value <= 0) return;
2804
- const { value: L } = V.target, A = _(L, V, !0), N = a.trim ? A.trim() : A;
2805
- p.cancel(), f.value = null, n.value !== N && m(N, !0, !0), N !== L && v(N);
2871
+ const { value: D } = V.target, O = _(D, V, !0), N = a.trim ? O.trim() : O;
2872
+ p.cancel(), f.value = null, n.value !== N && m(N, !0, !0), N !== D && v(N);
2806
2873
  },
2807
2874
  focus: () => {
2808
2875
  c.value || (b.value = !0);
@@ -3592,15 +3659,15 @@ function useFloating(e, t, n) {
3592
3659
  top: "0"
3593
3660
  };
3594
3661
  if (!d.value) return I;
3595
- const V = roundByDPR(d.value, u.value), L = roundByDPR(d.value, f.value);
3662
+ const V = roundByDPR(d.value, u.value), D = roundByDPR(d.value, f.value);
3596
3663
  return l.value ? {
3597
3664
  ...I,
3598
- transform: "translate(" + V + "px, " + L + "px)",
3665
+ transform: "translate(" + V + "px, " + D + "px)",
3599
3666
  ...getDPR(d.value) >= 1.5 && { willChange: "transform" }
3600
3667
  } : {
3601
3668
  position: p.value,
3602
3669
  left: V + "px",
3603
- top: L + "px"
3670
+ top: D + "px"
3604
3671
  };
3605
3672
  });
3606
3673
  let v;
@@ -3797,45 +3864,45 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
3797
3864
  setup(e, { expose: t, emit: n }) {
3798
3865
  const a = useDefaults(e, "BPopover"), o = n, r = useSlots(), s = useAttrs(), i = useModel(e, "modelValue"), l = useId$1(() => a.id, "popover"), c = ref(!1), d = useTemplateRef("_element"), u = useTemplateRef("_content"), f = useTemplateRef("_arrow"), p = useTemplateRef("_placeholder"), m = ref(null), g = ref(null), b = computed$1(() => a.placement.startsWith("auto")), _ = useToNumber(() => a.offset ?? NaN), v = computed$1(() => isBoundary(a.boundary) ? a.boundary : void 0), C = computed$1(() => isRootBoundary(a.boundary) ? a.boundary : void 0), k = ref({}), B = computed$1(() => {
3799
3866
  if (a.floatingMiddleware !== void 0) return a.floatingMiddleware;
3800
- const J = a.offset !== null ? _.value : a.tooltip ? 6 : 8, U = [offset$2(J)];
3801
- return !a.noFlip && !b.value && U.push(flip$2({
3867
+ const J = a.offset !== null ? _.value : a.tooltip ? 6 : 8, Y = [offset$2(J)];
3868
+ return !a.noFlip && !b.value && Y.push(flip$2({
3802
3869
  boundary: v.value,
3803
3870
  rootBoundary: C.value,
3804
3871
  padding: a.boundaryPadding
3805
- })), b.value && U.push(autoPlacement({
3872
+ })), b.value && Y.push(autoPlacement({
3806
3873
  alignment: a.placement.split("-")[1] || void 0,
3807
3874
  boundary: v.value,
3808
3875
  rootBoundary: C.value,
3809
3876
  padding: a.boundaryPadding
3810
- })), a.noShift || U.push(shift$2({
3877
+ })), a.noShift || Y.push(shift$2({
3811
3878
  boundary: v.value,
3812
3879
  rootBoundary: C.value,
3813
3880
  padding: a.boundaryPadding
3814
- })), a.noHide || U.push(hide({
3881
+ })), a.noHide || Y.push(hide({
3815
3882
  boundary: v.value,
3816
3883
  rootBoundary: C.value,
3817
3884
  padding: a.boundaryPadding
3818
- })), a.inline && U.push(inline()), U.push(arrow$2({
3885
+ })), a.inline && Y.push(inline()), Y.push(arrow$2({
3819
3886
  element: f,
3820
3887
  padding: 10
3821
- })), a.noSize || U.push(size({
3888
+ })), a.noSize || Y.push(size({
3822
3889
  boundary: v.value,
3823
3890
  rootBoundary: C.value,
3824
3891
  padding: a.boundaryPadding,
3825
- apply({ availableWidth: Z, availableHeight: ce }) {
3892
+ apply({ availableWidth: Z, availableHeight: H }) {
3826
3893
  k.value = {
3827
- "--bv-floating-max-height": ce >= (u.value?.scrollHeight ?? 0) ? void 0 : ce ? `${Math.max(0, ce)}px` : void 0,
3894
+ "--bv-floating-max-height": H >= (u.value?.scrollHeight ?? 0) ? void 0 : H ? `${Math.max(0, H)}px` : void 0,
3828
3895
  "--bv-floating-max-width": Z >= (u.value?.scrollWidth ?? 0) ? void 0 : Z ? `${Math.max(0, Z)}px` : void 0
3829
3896
  };
3830
3897
  }
3831
- })), U;
3832
- }), { floatingStyles: M, middlewareData: I, placement: V, update: L } = useFloating(m, d, {
3898
+ })), Y;
3899
+ }), { floatingStyles: M, middlewareData: I, placement: V, update: D } = useFloating(m, d, {
3833
3900
  placement: computed$1(() => b.value ? void 0 : a.placement),
3834
3901
  middleware: B,
3835
3902
  strategy: () => a.strategy
3836
- }), A = ref({ position: "absolute" });
3903
+ }), O = ref({ position: "absolute" });
3837
3904
  let N;
3838
- const { showRef: O, hide: w, show: T, toggle: R, throttleHide: $, computedNoAnimation: E, transitionProps: S, contentShowing: D, isVisible: P, isActive: F, renderRef: z, localTemporaryHide: W, setLocalTemporaryHide: q } = useShowHide({
3905
+ const { showRef: P, hide: w, show: E, toggle: R, throttleHide: $, computedNoAnimation: T, transitionProps: S, contentShowing: L, isVisible: A, isActive: F, renderRef: z, localTemporaryHide: W, setLocalTemporaryHide: j } = useShowHide({
3839
3906
  modelValue: i,
3840
3907
  props: a,
3841
3908
  emit: o,
@@ -3843,8 +3910,8 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
3843
3910
  id: l
3844
3911
  }, {
3845
3912
  showFn: () => {
3846
- L(), nextTick$1(() => {
3847
- N = autoUpdate$1(m.value, d.value, L, { animationFrame: a.realtime });
3913
+ D(), nextTick$1(() => {
3914
+ N = autoUpdate$1(m.value, d.value, D, { animationFrame: a.realtime });
3848
3915
  });
3849
3916
  },
3850
3917
  hideFn: () => {
@@ -3852,51 +3919,51 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
3852
3919
  }
3853
3920
  });
3854
3921
  watch(I, (J) => {
3855
- if (a.noHide || (J.hide?.referenceHidden && !c.value && O.value ? a.closeOnHide && !a.noAutoClose && !a.manual ? $("close-on-hide") : (q(!0), c.value = !0) : W.value && !J.hide?.referenceHidden && (q(!1), c.value = !1)), J.arrow) {
3856
- const { x: U, y: Z } = J.arrow;
3857
- A.value = {
3922
+ if (a.noHide || (J.hide?.referenceHidden && !c.value && P.value ? a.closeOnHide && !a.noAutoClose && !a.manual ? $("close-on-hide") : (j(!0), c.value = !0) : W.value && !J.hide?.referenceHidden && (j(!1), c.value = !1)), J.arrow) {
3923
+ const { x: Y, y: Z } = J.arrow;
3924
+ O.value = {
3858
3925
  position: "absolute",
3859
3926
  top: Z ? `${Z}px` : "",
3860
- left: U ? `${U}px` : ""
3927
+ left: Y ? `${Y}px` : ""
3861
3928
  };
3862
3929
  }
3863
3930
  });
3864
- const G = computed$1(() => {
3931
+ const X = computed$1(() => {
3865
3932
  const J = a.tooltip ? "tooltip" : "popover";
3866
3933
  return [
3867
3934
  J,
3868
3935
  `b-${J}`,
3869
3936
  {
3870
- show: P.value && !c.value,
3871
- fade: !E.value,
3937
+ show: A.value && !c.value,
3938
+ fade: !T.value,
3872
3939
  [`bs-${J}-${resolveBootstrapPlacement(V.value)}`]: V.value !== void 0
3873
3940
  }
3874
3941
  ];
3875
- }), { x: Y, y: ne } = useMouse$1(), le = () => {
3876
- const J = g.value?.getBoundingClientRect(), U = d.value?.getBoundingClientRect(), Z = Number.parseInt(a.hideMargin, 10) || 0, ce = getSafeWindow()?.scrollX || 0, _e = getSafeWindow()?.scrollY || 0;
3942
+ }), { x: G, y: ne } = useMouse$1(), ae = () => {
3943
+ const J = g.value?.getBoundingClientRect(), Y = d.value?.getBoundingClientRect(), Z = Number.parseInt(a.hideMargin, 10) || 0, H = getSafeWindow()?.scrollX || 0, ee = getSafeWindow()?.scrollY || 0;
3877
3944
  return {
3878
- triggerIsOutside: !J || Y.value < J.left + ce - Z || Y.value > J.right + ce + Z || ne.value < J.top + _e - Z || ne.value > J.bottom + _e + Z,
3879
- isOutside: !U || Y.value < U.left + ce - Z || Y.value > U.right + ce + Z || ne.value < U.top + _e - Z || ne.value > U.bottom + _e + Z
3945
+ triggerIsOutside: !J || G.value < J.left + H - Z || G.value > J.right + H + Z || ne.value < J.top + ee - Z || ne.value > J.bottom + ee + Z,
3946
+ isOutside: !Y || G.value < Y.left + H - Z || G.value > Y.right + H + Z || ne.value < Y.top + ee - Z || ne.value > Y.bottom + ee + Z
3880
3947
  };
3881
3948
  };
3882
- let se;
3883
- const ie = (J) => {
3884
- const { triggerIsOutside: U, isOutside: Z } = le(), ce = getSafeDocument();
3885
- !a.noninteractive && Z && U && ce && !d.value?.contains(ce.activeElement) && (!he.value.focus || !g.value?.contains(ce.activeElement)) || a.noninteractive && U ? w(J?.type) : (se && clearTimeout(se), se = setTimeout(() => {
3886
- ie(J);
3949
+ let ie;
3950
+ const ce = (J) => {
3951
+ const { triggerIsOutside: Y, isOutside: Z } = ae(), H = getSafeDocument();
3952
+ !a.noninteractive && Z && Y && H && !d.value?.contains(H.activeElement) && (!he.value.focus || !g.value?.contains(H.activeElement)) || a.noninteractive && Y ? w(J?.type) : (ie && clearTimeout(ie), ie = setTimeout(() => {
3953
+ ce(J);
3887
3954
  }, 50));
3888
3955
  };
3889
- watch(P, () => {
3890
- L();
3956
+ watch(A, () => {
3957
+ D();
3891
3958
  }), t({
3892
3959
  hide: w,
3893
- show: T,
3960
+ show: E,
3894
3961
  toggle: R
3895
3962
  });
3896
- const ue = (J) => {
3897
- O.value ? w(J.type === "click" ? "click" : "toggle") : T();
3898
- }, fe = () => {
3899
- T();
3963
+ const de = (J) => {
3964
+ P.value ? w(J.type === "click" ? "click" : "toggle") : E();
3965
+ }, me = () => {
3966
+ E();
3900
3967
  }, he = computed$1(() => a.manual ? {
3901
3968
  hover: !1,
3902
3969
  focus: !1,
@@ -3909,23 +3976,23 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
3909
3976
  hover: !0,
3910
3977
  focus: !0,
3911
3978
  click: !1
3912
- }), j = () => {
3979
+ }), _e = () => {
3913
3980
  if (a.target) {
3914
- const U = getElement(toValue(a.target));
3915
- U ? g.value = U : warn("BPopover", "Target element not found", a.target);
3981
+ const Y = getElement(toValue(a.target));
3982
+ Y ? g.value = Y : warn("BPopover", "Target element not found", a.target);
3916
3983
  } else g.value = p.value?.nextElementSibling;
3917
3984
  if (a.reference) {
3918
- const U = getElement(toValue(a.reference));
3919
- U ? m.value = U : warn("BPopover", "Reference element not found", a.reference);
3985
+ const Y = getElement(toValue(a.reference));
3986
+ Y ? m.value = Y : warn("BPopover", "Reference element not found", a.reference);
3920
3987
  } else m.value = g.value;
3921
3988
  if (!g.value || a.manual) return;
3922
3989
  const J = he.value;
3923
- J.click && g.value.addEventListener("click", ue), J.hover && (g.value.addEventListener("pointerenter", fe), g.value.addEventListener("pointerleave", ie)), J.focus && (g.value.addEventListener("focus", fe), g.value.addEventListener("blur", ie));
3924
- }, te = () => {
3925
- g.value && (g.value.removeEventListener("click", ue), g.value.removeEventListener("pointerenter", fe), g.value.removeEventListener("pointerleave", ie), g.value.removeEventListener("focus", fe), g.value.removeEventListener("blur", ie));
3990
+ J.click && g.value.addEventListener("click", de), J.hover && (g.value.addEventListener("pointerenter", me), g.value.addEventListener("pointerleave", ce)), J.focus && (g.value.addEventListener("focus", me), g.value.addEventListener("blur", ce));
3991
+ }, ye = () => {
3992
+ g.value && (g.value.removeEventListener("click", de), g.value.removeEventListener("pointerenter", me), g.value.removeEventListener("pointerleave", ce), g.value.removeEventListener("focus", me), g.value.removeEventListener("blur", ce));
3926
3993
  };
3927
3994
  onClickOutside(d, () => {
3928
- O.value && he.value.click && !a.noAutoClose && !a.manual && w("click-outside");
3995
+ P.value && he.value.click && !a.noAutoClose && !a.manual && w("click-outside");
3929
3996
  }, { ignore: [g] }), watch([
3930
3997
  () => a.click,
3931
3998
  () => a.hover,
@@ -3934,42 +4001,42 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
3934
4001
  () => a.target,
3935
4002
  () => a.reference
3936
4003
  ], () => {
3937
- te(), j();
4004
+ ye(), _e();
3938
4005
  });
3939
- const pe = computed$1(() => ({
4006
+ const fe = computed$1(() => ({
3940
4007
  toggle: R,
3941
- show: T,
4008
+ show: E,
3942
4009
  hide: w,
3943
4010
  id: l.value,
3944
- visible: P.value,
4011
+ visible: A.value,
3945
4012
  active: F.value
3946
4013
  }));
3947
4014
  return onMounted(() => {
3948
- j(), nextTick$1(() => {
3949
- L();
4015
+ _e(), nextTick$1(() => {
4016
+ D();
3950
4017
  });
3951
- }), onBeforeUnmount(te), (J, U) => (openBlock(), createElementBlock(Fragment, null, [
4018
+ }), onBeforeUnmount(ye), (J, Y) => (openBlock(), createElementBlock(Fragment, null, [
3952
4019
  createElementVNode("span", {
3953
4020
  id: unref(l) + "_placeholder",
3954
4021
  ref: "_placeholder",
3955
4022
  style: { display: "none" }
3956
4023
  }, null, 8, _hoisted_1$2c),
3957
- renderSlot(J.$slots, "target", normalizeProps(guardReactiveProps(pe.value))),
4024
+ renderSlot(J.$slots, "target", normalizeProps(guardReactiveProps(fe.value))),
3958
4025
  createVNode(ConditionalTeleport_default, {
3959
4026
  to: unref(a).teleportTo,
3960
4027
  disabled: !unref(a).teleportTo || unref(a).teleportDisabled
3961
4028
  }, {
3962
- default: withCtx(() => [unref(z) || unref(D) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(S), { appear: i.value || unref(a).visible }), {
4029
+ default: withCtx(() => [unref(z) || unref(L) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(S), { appear: i.value || unref(a).visible }), {
3963
4030
  default: withCtx(() => [withDirectives(createElementVNode("div", mergeProps({ id: unref(l) }, unref(s), {
3964
4031
  ref: "_element",
3965
- class: G.value,
4032
+ class: X.value,
3966
4033
  role: "tooltip",
3967
4034
  tabindex: "-1",
3968
4035
  style: unref(M)
3969
4036
  }), [createElementVNode("div", {
3970
4037
  ref: "_arrow",
3971
4038
  class: normalizeClass(`${unref(a).tooltip ? "tooltip" : "popover"}-arrow`),
3972
- style: normalizeStyle(A.value),
4039
+ style: normalizeStyle(O.value),
3973
4040
  "data-popper-arrow": ""
3974
4041
  }, null, 6), createElementVNode("div", {
3975
4042
  ref: "_content",
@@ -3978,10 +4045,10 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
3978
4045
  }, [unref(a).title || r.title ? (openBlock(), createElementBlock("div", {
3979
4046
  key: 0,
3980
4047
  class: normalizeClass(["position-sticky top-0", [unref(a).tooltip ? "tooltip-inner" : "popover-header", unref(a).titleClass]])
3981
- }, [renderSlot(J.$slots, "title", normalizeProps(guardReactiveProps(pe.value)), () => [createTextVNode(toDisplayString(unref(a).title), 1)])], 2)) : createCommentVNode("", !0), unref(a).tooltip && !r.title && !unref(a).title || !unref(a).tooltip ? (openBlock(), createElementBlock("div", {
4048
+ }, [renderSlot(J.$slots, "title", normalizeProps(guardReactiveProps(fe.value)), () => [createTextVNode(toDisplayString(unref(a).title), 1)])], 2)) : createCommentVNode("", !0), unref(a).tooltip && !r.title && !unref(a).title || !unref(a).tooltip ? (openBlock(), createElementBlock("div", {
3982
4049
  key: 1,
3983
4050
  class: normalizeClass([unref(a).tooltip ? "tooltip-inner" : "popover-body", unref(a).bodyClass])
3984
- }, [renderSlot(J.$slots, "default", normalizeProps(guardReactiveProps(pe.value)), () => [createTextVNode(toDisplayString(unref(a).body) + toDisplayString(unref(s).content), 1)])], 2)) : createCommentVNode("", !0)], 4)], 16, _hoisted_2$1x), [[vShow, unref(O) && !c.value]])]),
4051
+ }, [renderSlot(J.$slots, "default", normalizeProps(guardReactiveProps(fe.value)), () => [createTextVNode(toDisplayString(unref(a).body) + toDisplayString(unref(s).content), 1)])], 2)) : createCommentVNode("", !0)], 4)], 16, _hoisted_2$1x), [[vShow, unref(P) && !c.value]])]),
3985
4052
  _: 3
3986
4053
  }, 16, ["appear"])) : createCommentVNode("", !0)]),
3987
4054
  _: 3
@@ -4191,7 +4258,7 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4191
4258
  setup(e, { expose: t, emit: n }) {
4192
4259
  const a = useDefaults(e, "BDropdown"), o = n, r = useId$1(() => a.id, "dropdown"), s = useModel(e, "modelValue"), i = inject(inputGroupKey, !1), l = inject(buttonGroupKey, !1), c = computed$1(() => typeof a.offset == "string" || typeof a.offset == "number" ? a.offset : NaN), d = useToNumber(c), u = useTemplateRef("_floating"), f = useTemplateRef("_button"), p = useTemplateRef("_splitButton"), m = computed$1(() => isBoundary(a.boundary) ? a.boundary : void 0), g = computed$1(() => isRootBoundary(a.boundary) ? a.boundary : void 0), b = computed$1(() => a.split ? f.value : p.value);
4193
4260
  let _;
4194
- const { showRef: v, renderRef: C, hide: k, show: B, toggle: M, computedNoAnimation: I, transitionProps: V, contentShowing: L, isVisible: A, isActive: N } = useShowHide({
4261
+ const { showRef: v, renderRef: C, hide: k, show: B, toggle: M, computedNoAnimation: I, transitionProps: V, contentShowing: D, isVisible: O, isActive: N } = useShowHide({
4195
4262
  modelValue: s,
4196
4263
  props: a,
4197
4264
  emit: o,
@@ -4206,8 +4273,8 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4206
4273
  hideFn: () => {
4207
4274
  _ && (_(), _ = void 0);
4208
4275
  }
4209
- }), O = computed$1(() => [{
4210
- show: A.value,
4276
+ }), P = computed$1(() => [{
4277
+ show: O.value,
4211
4278
  fade: !I.value
4212
4279
  }]);
4213
4280
  onKeyStroke("Escape", () => {
@@ -4218,53 +4285,53 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4218
4285
  target: u,
4219
4286
  passive: !0
4220
4287
  });
4221
- const w = (q, G) => {
4222
- if (u.value?.contains(q.target?.closest("form")) || /input|select|option|textarea|form/i.test(q.target?.tagName)) return;
4223
- if (q.preventDefault(), !v.value) {
4288
+ const w = (j, X) => {
4289
+ if (u.value?.contains(j.target?.closest("form")) || /input|select|option|textarea|form/i.test(j.target?.tagName)) return;
4290
+ if (j.preventDefault(), !v.value) {
4224
4291
  B();
4225
- const le = setInterval(() => {
4226
- A.value && (clearInterval(le), nextTick$1(() => w(q, G)));
4292
+ const ae = setInterval(() => {
4293
+ O.value && (clearInterval(ae), nextTick$1(() => w(j, X)));
4227
4294
  }, 16);
4228
4295
  return;
4229
4296
  }
4230
- const Y = u.value?.querySelectorAll(".dropdown-item:not(.disabled):not(:disabled)"), ne = getSafeDocument();
4231
- if (!(!Y || !ne))
4297
+ const G = u.value?.querySelectorAll(".dropdown-item:not(.disabled):not(:disabled)"), ne = getSafeDocument();
4298
+ if (!(!G || !ne))
4232
4299
  if (u.value?.contains(ne.activeElement)) {
4233
- const le = u.value.querySelector(".dropdown-item:focus"), se = Array.prototype.indexOf.call(Y, le) + G;
4234
- se >= 0 && se < Y?.length && Y[se]?.focus();
4235
- } else Y[G === -1 ? Y.length - 1 : 0]?.focus();
4300
+ const ae = u.value.querySelector(".dropdown-item:focus"), ie = Array.prototype.indexOf.call(G, ae) + X;
4301
+ ie >= 0 && ie < G?.length && G[ie]?.focus();
4302
+ } else G[X === -1 ? G.length - 1 : 0]?.focus();
4236
4303
  };
4237
- onKeyStroke("ArrowUp", (q) => w(q, -1), { target: b }), onKeyStroke("ArrowDown", (q) => w(q, 1), { target: b }), onKeyStroke("ArrowUp", (q) => w(q, -1), { target: u }), onKeyStroke("ArrowDown", (q) => w(q, 1), { target: u });
4238
- const T = ref({}), R = computed$1(() => {
4304
+ onKeyStroke("ArrowUp", (j) => w(j, -1), { target: b }), onKeyStroke("ArrowDown", (j) => w(j, 1), { target: b }), onKeyStroke("ArrowUp", (j) => w(j, -1), { target: u }), onKeyStroke("ArrowDown", (j) => w(j, 1), { target: u });
4305
+ const E = ref({}), R = computed$1(() => {
4239
4306
  if (a.floatingMiddleware !== void 0) return a.floatingMiddleware;
4240
- const q = typeof a.offset == "string" || typeof a.offset == "number" ? d.value : a.offset, G = [offset$2(q)];
4241
- return a.noFlip || G.push(flip$2({
4307
+ const j = typeof a.offset == "string" || typeof a.offset == "number" ? d.value : a.offset, X = [offset$2(j)];
4308
+ return a.noFlip || X.push(flip$2({
4242
4309
  boundary: m.value,
4243
4310
  rootBoundary: g.value,
4244
4311
  padding: a.boundaryPadding
4245
- })), a.noShift || G.push(shift$2({
4312
+ })), a.noShift || X.push(shift$2({
4246
4313
  boundary: m.value,
4247
4314
  rootBoundary: g.value,
4248
4315
  padding: a.boundaryPadding
4249
- })), a.noSize || G.push(size({
4316
+ })), a.noSize || X.push(size({
4250
4317
  boundary: m.value,
4251
4318
  rootBoundary: g.value,
4252
4319
  padding: a.boundaryPadding,
4253
- apply({ availableWidth: Y, availableHeight: ne }) {
4254
- T.value = {
4320
+ apply({ availableWidth: G, availableHeight: ne }) {
4321
+ E.value = {
4255
4322
  "--bv-floating-max-height": ne >= (u.value?.scrollHeight ?? 0) ? void 0 : ne ? `${Math.max(0, ne)}px` : void 0,
4256
- "--bv-floating-max-width": Y >= (u.value?.scrollWidth ?? 0) ? void 0 : Y ? `${Math.max(0, Y)}px` : void 0
4323
+ "--bv-floating-max-width": G >= (u.value?.scrollWidth ?? 0) ? void 0 : G ? `${Math.max(0, G)}px` : void 0
4257
4324
  };
4258
4325
  }
4259
- })), G;
4260
- }), { update: $, floatingStyles: E } = useFloating(b, u, {
4326
+ })), X;
4327
+ }), { update: $, floatingStyles: T } = useFloating(b, u, {
4261
4328
  placement: () => a.placement,
4262
4329
  middleware: R,
4263
4330
  strategy: () => a.strategy
4264
4331
  }), S = l ? {
4265
4332
  class: "btn-group",
4266
4333
  role: "group"
4267
- } : void 0, D = computed$1(() => [
4334
+ } : void 0, L = computed$1(() => [
4268
4335
  S?.class,
4269
4336
  a.wrapperClass,
4270
4337
  {
@@ -4272,16 +4339,16 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4272
4339
  [`drop${resolveBootstrapCaret(a.placement)}`]: !a.wrapperClass,
4273
4340
  "position-static": a.boundary !== "clippingAncestors" && !a.isNav
4274
4341
  }
4275
- ]), P = computed$1(() => [a.split ? a.splitClass : a.toggleClass, {
4342
+ ]), A = computed$1(() => [a.split ? a.splitClass : a.toggleClass, {
4276
4343
  "nav-link": a.isNav,
4277
4344
  "dropdown-toggle": !a.split,
4278
4345
  "dropdown-toggle-no-caret": a.noCaret && !a.split,
4279
4346
  show: a.split ? void 0 : v.value
4280
4347
  }]), F = () => {
4281
4348
  M();
4282
- }, z = (q) => {
4349
+ }, z = (j) => {
4283
4350
  if (a.split) {
4284
- o("split-click", q);
4351
+ o("split-click", j);
4285
4352
  return;
4286
4353
  }
4287
4354
  F();
@@ -4292,7 +4359,7 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4292
4359
  const W = () => {
4293
4360
  v.value && (a.autoClose === !0 || a.autoClose === "inside") && k();
4294
4361
  };
4295
- return watch(A, () => {
4362
+ return watch(O, () => {
4296
4363
  $();
4297
4364
  }), t({
4298
4365
  hide: k,
@@ -4305,9 +4372,9 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4305
4372
  toggle: M,
4306
4373
  visible: readonly(v),
4307
4374
  isNav: toRef(() => a.isNav)
4308
- }), (q, G) => (openBlock(), createBlock(ConditionalWrapper_default, {
4375
+ }), (j, X) => (openBlock(), createBlock(ConditionalWrapper_default, {
4309
4376
  skip: unref(i) || unref(a).noWrapper,
4310
- class: normalizeClass(D.value),
4377
+ class: normalizeClass(L.value),
4311
4378
  role: unref(S)?.role
4312
4379
  }, {
4313
4380
  default: withCtx(() => [
@@ -4316,7 +4383,7 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4316
4383
  ref: "_splitButton",
4317
4384
  variant: unref(a).splitVariant || unref(a).variant,
4318
4385
  size: unref(a).size,
4319
- class: P.value,
4386
+ class: A.value,
4320
4387
  disabled: unref(a).splitDisabled || unref(a).disabled,
4321
4388
  type: unref(a).splitButtonType,
4322
4389
  "aria-label": unref(a).ariaLabel,
@@ -4326,7 +4393,7 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4326
4393
  icon: unref(a).icon,
4327
4394
  to: unref(a).split && unref(a).splitTo ? unref(a).splitTo : void 0
4328
4395
  }, unref(a).split ? void 0 : unref(a).toggleAttrs, { onClick: z }), {
4329
- default: withCtx(() => [renderSlot(q.$slots, "button-content", {}, () => [createTextVNode(toDisplayString(unref(a).text), 1)])]),
4396
+ default: withCtx(() => [renderSlot(j.$slots, "button-content", {}, () => [createTextVNode(toDisplayString(unref(a).text), 1)])]),
4330
4397
  _: 3
4331
4398
  }, 16, [
4332
4399
  "id",
@@ -4353,7 +4420,7 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4353
4420
  "aria-expanded": unref(v),
4354
4421
  "aria-haspopup": "menu"
4355
4422
  }, unref(a).toggleAttrs, { onClick: F }), {
4356
- default: withCtx(() => [createElementVNode("span", _hoisted_1$2b, [renderSlot(q.$slots, "toggle-text", {}, () => [createTextVNode(toDisplayString(unref(a).toggleText), 1)])])]),
4423
+ default: withCtx(() => [createElementVNode("span", _hoisted_1$2b, [renderSlot(j.$slots, "toggle-text", {}, () => [createTextVNode(toDisplayString(unref(a).toggleText), 1)])])]),
4357
4424
  _: 3
4358
4425
  }, 16, [
4359
4426
  "id",
@@ -4367,20 +4434,20 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
4367
4434
  to: unref(a).teleportTo,
4368
4435
  disabled: !unref(a).teleportTo || unref(a).teleportDisabled
4369
4436
  }, {
4370
- default: withCtx(() => [unref(C) || unref(L) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(V), { appear: s.value || unref(a).visible }), {
4437
+ default: withCtx(() => [unref(C) || unref(D) ? (openBlock(), createBlock(Transition, mergeProps({ key: 0 }, unref(V), { appear: s.value || unref(a).visible }), {
4371
4438
  default: withCtx(() => [withDirectives(createElementVNode("ul", {
4372
4439
  id: unref(r) + "-menu",
4373
4440
  ref: "_floating",
4374
4441
  style: normalizeStyle([
4375
- unref(E),
4376
- T.value,
4442
+ unref(T),
4443
+ E.value,
4377
4444
  { display: unref(v) || unref(N) ? "block" : "none" }
4378
4445
  ]),
4379
- class: normalizeClass(["dropdown-menu overflow-auto b-floating-size", [unref(a).menuClass, O.value]]),
4446
+ class: normalizeClass(["dropdown-menu overflow-auto b-floating-size", [unref(a).menuClass, P.value]]),
4380
4447
  "aria-labelledby": unref(r),
4381
4448
  role: unref(a).role,
4382
4449
  onClick: W
4383
- }, [unref(L) ? renderSlot(q.$slots, "default", {
4450
+ }, [unref(D) ? renderSlot(j.$slots, "default", {
4384
4451
  id: unref(r),
4385
4452
  hide: unref(k),
4386
4453
  show: unref(B),
@@ -5037,7 +5104,7 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
5037
5104
  nextTick$1(() => {
5038
5105
  a.focus !== !1 && !R.value && a.noTrap && unrefElement$1(u())?.focus();
5039
5106
  });
5040
- }, { showRef: p, renderRef: m, renderBackdropRef: g, hide: b, show: _, toggle: v, computedNoAnimation: C, contentShowing: k, transitionProps: B, backdropReady: M, backdropTransitionProps: I, backdropVisible: V, isVisible: L, buildTriggerableEvent: A, isLeaving: N, trapActive: O, setLocalNoAnimation: w } = useShowHide({
5107
+ }, { showRef: p, renderRef: m, renderBackdropRef: g, hide: b, show: _, toggle: v, computedNoAnimation: C, contentShowing: k, transitionProps: B, backdropReady: M, backdropTransitionProps: I, backdropVisible: V, isVisible: D, buildTriggerableEvent: O, isLeaving: N, trapActive: P, setLocalNoAnimation: w } = useShowHide({
5041
5108
  modelValue: s,
5042
5109
  props: a,
5043
5110
  emit: o,
@@ -5051,9 +5118,9 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
5051
5118
  leaveActiveClass: "",
5052
5119
  enterFromClass: "",
5053
5120
  leaveFromClass: ""
5054
- } }), T = useBreakpoints(breakpointsBootstrapV5).smaller(() => a.responsive ?? "xs"), R = ref(!1);
5121
+ } }), E = useBreakpoints(breakpointsBootstrapV5).smaller(() => a.responsive ?? "xs"), R = ref(!1);
5055
5122
  onMounted(() => {
5056
- a.responsive !== void 0 && (R.value = !T.value, o("breakpoint", A("breakpoint"), R.value));
5123
+ a.responsive !== void 0 && (R.value = !E.value, o("breakpoint", O("breakpoint"), R.value));
5057
5124
  }), useSafeScrollLock(p, () => a.bodyScrolling || R.value), onKeyStroke("Escape", () => {
5058
5125
  b("esc");
5059
5126
  }, {
@@ -5062,55 +5129,55 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
5062
5129
  });
5063
5130
  const { needsFallback: $ } = useActivatedFocusTrap({
5064
5131
  element: l,
5065
- isActive: O,
5132
+ isActive: P,
5066
5133
  noTrap: () => a.noTrap || R.value,
5067
5134
  fallbackFocus: {
5068
5135
  classSelector: fallbackClassSelector,
5069
5136
  ref: c
5070
5137
  },
5071
5138
  focus: () => a.focus === !1 || R.value ? !1 : unrefElement$1(u()) ?? void 0
5072
- }), E = computed$1(() => (a.responsive === void 0 || !R.value) && !a.noBackdrop && (p.value === !0 || N.value && a.backdropFirst && !C.value)), S = computed$1(() => !isEmptySlot(r["header-close"])), D = computed$1(() => [{ "text-reset": !S.value }, a.headerCloseClass]), P = computed$1(() => ({
5139
+ }), T = computed$1(() => (a.responsive === void 0 || !R.value) && !a.noBackdrop && (p.value === !0 || N.value && a.backdropFirst && !C.value)), S = computed$1(() => !isEmptySlot(r["header-close"])), L = computed$1(() => [{ "text-reset": !S.value }, a.headerCloseClass]), A = computed$1(() => ({
5073
5140
  variant: S.value ? a.headerCloseVariant : void 0,
5074
- class: D.value
5141
+ class: L.value
5075
5142
  })), F = computed$1(() => !isEmptySlot(r.footer)), z = computed$1(() => [
5076
5143
  a.responsive === void 0 ? "offcanvas" : `offcanvas-${a.responsive}`,
5077
5144
  `offcanvas-${a.placement}`,
5078
5145
  {
5079
- show: L.value,
5080
- hiding: N.value && !L.value,
5146
+ show: D.value,
5147
+ hiding: N.value && !D.value,
5081
5148
  [`shadow-${a.shadow}`]: !!a.shadow,
5082
5149
  "no-transition": C.value
5083
5150
  }
5084
- ]), W = computed$1(() => ({ width: a.width })), q = computed$1(() => ({
5085
- visible: L.value,
5151
+ ]), W = computed$1(() => ({ width: a.width })), j = computed$1(() => ({
5152
+ visible: D.value,
5086
5153
  placement: a.placement,
5087
5154
  hide: b,
5088
5155
  show: _,
5089
5156
  toggle: v,
5090
5157
  id: i.value,
5091
- active: O.value
5158
+ active: P.value
5092
5159
  }));
5093
- return watch(T, (G) => {
5094
- a.responsive !== void 0 && (G === !0 ? (w(!0), requestAnimationFrame(() => {
5160
+ return watch(E, (X) => {
5161
+ a.responsive !== void 0 && (X === !0 ? (w(!0), requestAnimationFrame(() => {
5095
5162
  R.value = !1;
5096
- }), o("breakpoint", A("breakpoint"), !1), o("hide", A("hide"))) : (w(!0), requestAnimationFrame(() => {
5163
+ }), o("breakpoint", O("breakpoint"), !1), o("hide", O("hide"))) : (w(!0), requestAnimationFrame(() => {
5097
5164
  R.value = !0;
5098
- }), o("breakpoint", A("breakpoint"), !0), o("show", A("show"))));
5099
- }), watch(() => a.responsive, (G) => {
5100
- if (G === void 0) {
5165
+ }), o("breakpoint", O("breakpoint"), !0), o("show", O("show"))));
5166
+ }), watch(() => a.responsive, (X) => {
5167
+ if (X === void 0) {
5101
5168
  R.value = !1;
5102
5169
  return;
5103
5170
  }
5104
- const Y = !T.value;
5105
- Y !== R.value && (w(!0), requestAnimationFrame(() => {
5106
- R.value = Y;
5107
- }), o("breakpoint", A("breakpoint"), Y), Y ? o("show", A("show")) : o("hide", A("hide")));
5171
+ const G = !E.value;
5172
+ G !== R.value && (w(!0), requestAnimationFrame(() => {
5173
+ R.value = G;
5174
+ }), o("breakpoint", O("breakpoint"), G), G ? o("show", O("show")) : o("hide", O("hide")));
5108
5175
  }), t({
5109
5176
  hide: b,
5110
5177
  show: _,
5111
5178
  toggle: v,
5112
5179
  isOpenByBreakpoint: R
5113
- }), (G, Y) => (openBlock(), createBlock(ConditionalTeleport_default, {
5180
+ }), (X, G) => (openBlock(), createBlock(ConditionalTeleport_default, {
5114
5181
  to: unref(a).teleportTo,
5115
5182
  disabled: unref(a).teleportDisabled || R.value
5116
5183
  }, {
@@ -5125,29 +5192,29 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
5125
5192
  tabindex: "-1",
5126
5193
  "aria-labelledby": `${unref(i)}-offcanvas-label`,
5127
5194
  "data-bs-backdrop": "false"
5128
- }, G.$attrs), [unref(k) || R.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5195
+ }, X.$attrs), [unref(k) || R.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5129
5196
  unref(a).noHeader ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", mergeProps({
5130
5197
  key: 0,
5131
5198
  class: ["offcanvas-header", unref(a).headerClass]
5132
- }, unref(a).headerAttrs), [renderSlot(G.$slots, "header", normalizeProps(guardReactiveProps(q.value)), () => [createElementVNode("h5", {
5199
+ }, unref(a).headerAttrs), [renderSlot(X.$slots, "header", normalizeProps(guardReactiveProps(j.value)), () => [createElementVNode("h5", {
5133
5200
  id: `${unref(i)}-offcanvas-label`,
5134
5201
  class: "offcanvas-title"
5135
- }, [renderSlot(G.$slots, "title", normalizeProps(guardReactiveProps(q.value)), () => [createTextVNode(toDisplayString(unref(a).title), 1)])], 8, _hoisted_2$1v), unref(a).noHeaderClose ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [S.value ? (openBlock(), createBlock(BButton_default, mergeProps({
5202
+ }, [renderSlot(X.$slots, "title", normalizeProps(guardReactiveProps(j.value)), () => [createTextVNode(toDisplayString(unref(a).title), 1)])], 8, _hoisted_2$1v), unref(a).noHeaderClose ? createCommentVNode("", !0) : (openBlock(), createElementBlock(Fragment, { key: 0 }, [S.value ? (openBlock(), createBlock(BButton_default, mergeProps({
5136
5203
  key: 0,
5137
5204
  ref: "_close"
5138
- }, P.value, { onClick: Y[0] || (Y[0] = (ne) => unref(b)("close")) }), {
5139
- default: withCtx(() => [renderSlot(G.$slots, "header-close", normalizeProps(guardReactiveProps(q.value)))]),
5205
+ }, A.value, { onClick: G[0] || (G[0] = (ne) => unref(b)("close")) }), {
5206
+ default: withCtx(() => [renderSlot(X.$slots, "header-close", normalizeProps(guardReactiveProps(j.value)))]),
5140
5207
  _: 3
5141
5208
  }, 16)) : (openBlock(), createBlock(BCloseButton_default, mergeProps({
5142
5209
  key: 1,
5143
5210
  ref: "_close",
5144
5211
  "aria-label": unref(a).headerCloseLabel
5145
- }, P.value, { onClick: Y[1] || (Y[1] = (ne) => unref(b)("close")) }), null, 16, ["aria-label"]))], 64))])], 16)),
5146
- createElementVNode("div", mergeProps({ class: ["offcanvas-body", unref(a).bodyClass] }, unref(a).bodyAttrs), [renderSlot(G.$slots, "default", normalizeProps(guardReactiveProps(q.value)))], 16),
5212
+ }, A.value, { onClick: G[1] || (G[1] = (ne) => unref(b)("close")) }), null, 16, ["aria-label"]))], 64))])], 16)),
5213
+ createElementVNode("div", mergeProps({ class: ["offcanvas-body", unref(a).bodyClass] }, unref(a).bodyAttrs), [renderSlot(X.$slots, "default", normalizeProps(guardReactiveProps(j.value)))], 16),
5147
5214
  F.value ? (openBlock(), createElementBlock("div", {
5148
5215
  key: 1,
5149
5216
  class: normalizeClass(unref(a).footerClass)
5150
- }, [renderSlot(G.$slots, "footer", normalizeProps(guardReactiveProps(q.value)))], 2)) : createCommentVNode("", !0)
5217
+ }, [renderSlot(X.$slots, "footer", normalizeProps(guardReactiveProps(j.value)))], 2)) : createCommentVNode("", !0)
5151
5218
  ], 64)) : createCommentVNode("", !0), unref($) ? (openBlock(), createElementBlock("div", {
5152
5219
  key: 1,
5153
5220
  ref: "_fallbackFocusElement",
@@ -5160,14 +5227,14 @@ var useMouse$1 = createSharedComposable(useMouse$2), _hoisted_1$2c = ["id"], _ho
5160
5227
  }
5161
5228
  }, null, 512)) : createCommentVNode("", !0)], 16, _hoisted_1$27), [[vShow, unref(p) && (unref(M) && unref(a).backdropFirst || !unref(a).backdropFirst) || R.value]])]),
5162
5229
  _: 3
5163
- }, 16, ["appear"])) : createCommentVNode("", !0), unref(a).noBackdrop ? createCommentVNode("", !0) : renderSlot(G.$slots, "backdrop", normalizeProps(guardReactiveProps(q.value)), () => [unref(g) ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, unref(I))), {
5230
+ }, 16, ["appear"])) : createCommentVNode("", !0), unref(a).noBackdrop ? createCommentVNode("", !0) : renderSlot(X.$slots, "backdrop", normalizeProps(guardReactiveProps(j.value)), () => [unref(g) ? (openBlock(), createBlock(Transition, normalizeProps(mergeProps({ key: 0 }, unref(I))), {
5164
5231
  default: withCtx(() => [withDirectives(createElementVNode("div", {
5165
5232
  class: normalizeClass(["offcanvas-backdrop", {
5166
5233
  fade: !unref(C),
5167
5234
  show: unref(V) || unref(C)
5168
5235
  }]),
5169
- onClick: Y[2] || (Y[2] = (ne) => unref(b)("backdrop"))
5170
- }, null, 2), [[vShow, E.value]])]),
5236
+ onClick: G[2] || (G[2] = (ne) => unref(b)("backdrop"))
5237
+ }, null, 2), [[vShow, T.value]])]),
5171
5238
  _: 1
5172
5239
  }, 16)) : createCommentVNode("", !0)], void 0, 1)]),
5173
5240
  _: 3
@@ -5627,50 +5694,50 @@ var BTab_default = /* @__PURE__ */ defineComponent({
5627
5694
  setup(e, { emit: t }) {
5628
5695
  const n = useDefaults(e, "BTabs"), a = t, o = useSlots(), r = useModel(e, "index"), s = useModel(e, "modelValue"), i = ref([]), l = ref([]), c = ref(!1), d = ref([]), u = ref(!1), f = () => {
5629
5696
  const $ = flattenFragments(o.default?.({}) ?? []);
5630
- l.value = (Array.isArray($) ? $ : [$]).filter((E) => E.type === BTab_default), d.value.length === 0 && (d.value = l.value.map((E) => unref(useId$1(() => E.props?.id, "tabpane"))), u.value = r.value > -1 && l.value[r.value]?.props?.id !== void 0), c.value = l.value.some((E) => E.props?.active !== void 0 && E.props?.active !== !1);
5697
+ l.value = (Array.isArray($) ? $ : [$]).filter((T) => T.type === BTab_default), d.value.length === 0 && (d.value = l.value.map((T) => unref(useId$1(() => T.props?.id, "tabpane"))), u.value = r.value > -1 && l.value[r.value]?.props?.id !== void 0), c.value = l.value.some((T) => T.props?.active !== void 0 && T.props?.active !== !1);
5631
5698
  };
5632
5699
  f(), watch(() => o.default?.({}), () => {
5633
5700
  f(), nextTick$1(() => {
5634
- T();
5701
+ E();
5635
5702
  });
5636
5703
  });
5637
5704
  const p = computed$1(() => {
5638
5705
  if (i.value.length === 0) {
5639
- const $ = l.value.findIndex((E) => E.props?.active !== void 0 && (E.props.disabled === !1 || E.props.disabled === void 0) || s.value && E.props?.id === s.value);
5640
- return l.value.map((E, S) => {
5641
- const D = $ !== -1 ? S === $ : r.value > -1 ? S === r.value : S === 0;
5706
+ const $ = l.value.findIndex((T) => T.props?.active !== void 0 && (T.props.disabled === !1 || T.props.disabled === void 0) || s.value && T.props?.id === s.value);
5707
+ return l.value.map((T, S) => {
5708
+ const L = $ !== -1 ? S === $ : r.value > -1 ? S === r.value : S === 0;
5642
5709
  return {
5643
- id: E.props?.id ?? d.value[S],
5710
+ id: T.props?.id ?? d.value[S],
5644
5711
  internalId: `premount-${S}`,
5645
- buttonId: E.props?.buttonId,
5646
- disabled: E.props?.disabled,
5647
- title: E.props?.title,
5648
- titleComponent: E.children?.title,
5649
- titleItemClass: E.props?.titleItemClass,
5650
- titleLinkAttrs: E.props?.titleLinkAttrs,
5651
- titleLinkClass: E.props?.titleLinkClass,
5652
- onClick: E.props?.onClick,
5653
- active: D,
5712
+ buttonId: T.props?.buttonId,
5713
+ disabled: T.props?.disabled,
5714
+ title: T.props?.title,
5715
+ titleComponent: T.children?.title,
5716
+ titleItemClass: T.props?.titleItemClass,
5717
+ titleLinkAttrs: T.props?.titleLinkAttrs,
5718
+ titleLinkClass: T.props?.titleLinkClass,
5719
+ onClick: T.props?.onClick,
5720
+ active: L,
5654
5721
  navItemClasses: [
5655
5722
  {
5656
- active: D,
5657
- disabled: !(E.props?.disabled === !1 || E.props?.disabled === void 0)
5723
+ active: L,
5724
+ disabled: !(T.props?.disabled === !1 || T.props?.disabled === void 0)
5658
5725
  },
5659
- D ? n.activeNavItemClass : n.inactiveNavItemClass,
5726
+ L ? n.activeNavItemClass : n.inactiveNavItemClass,
5660
5727
  n.navItemClass
5661
5728
  ]
5662
5729
  };
5663
5730
  });
5664
5731
  }
5665
5732
  return i.value.map(($) => {
5666
- const E = unref($), S = E.id === s.value;
5733
+ const T = unref($), S = T.id === s.value;
5667
5734
  return {
5668
- ...E,
5735
+ ...T,
5669
5736
  active: S,
5670
5737
  navItemClasses: [
5671
5738
  {
5672
5739
  active: S,
5673
- disabled: E.disabled
5740
+ disabled: T.disabled
5674
5741
  },
5675
5742
  S ? n.activeNavItemClass : n.inactiveNavItemClass,
5676
5743
  n.navItemClass
@@ -5682,7 +5749,7 @@ var BTab_default = /* @__PURE__ */ defineComponent({
5682
5749
  r.value > -1 && !s.value && !u.value && l.value.length > 0 ? (_ = !0, b = !0) : r.value === -1 && s.value ? p.value.findIndex(($) => $.id === s.value) !== -1 ? r.value = p.value.findIndex(($) => $.id === s.value) : g = !0 : r.value > -1 && !s.value ? p.value[r.value]?.id ? s.value = p.value[r.value]?.id : b = !0 : r.value === -1 && !s.value && !c.value ? (r.value = p.value.findIndex(($) => $.disabled === void 0 || $.disabled === !1), s.value = p.value[r.value]?.id) : r.value === -1 && !s.value && c.value && (r.value = p.value.findIndex(($) => $.active !== void 0 && $.active !== !1 && ($.disabled === void 0 || $.disabled === !1)), s.value = p.value[r.value]?.id);
5683
5750
  function v() {
5684
5751
  if (g) {
5685
- const $ = p.value.findIndex((E) => E.id === s.value);
5752
+ const $ = p.value.findIndex((T) => T.id === s.value);
5686
5753
  $ !== -1 && nextTick$1(() => {
5687
5754
  r.value = $, g = !1;
5688
5755
  });
@@ -5713,61 +5780,61 @@ var BTab_default = /* @__PURE__ */ defineComponent({
5713
5780
  "nav-justified": n.justified,
5714
5781
  "nav-tabs": !n.noNavStyle && !n.pills && !n.underline,
5715
5782
  small: n.small
5716
- })), V = ($, E) => {
5717
- if (E >= 0 && !p.value[E]?.disabled && p.value[E]?.onClick && typeof p.value[E].onClick == "function" && (p.value[E].onClick?.($), $.defaultPrevented)) {
5718
- getSafeDocument()?.getElementById(p.value[E].buttonId)?.blur();
5783
+ })), V = ($, T) => {
5784
+ if (T >= 0 && !p.value[T]?.disabled && p.value[T]?.onClick && typeof p.value[T].onClick == "function" && (p.value[T].onClick?.($), $.defaultPrevented)) {
5785
+ getSafeDocument()?.getElementById(p.value[T].buttonId)?.blur();
5719
5786
  return;
5720
5787
  }
5721
- r.value = E;
5722
- }, L = ($, E) => {
5723
- p.value.length <= 0 || n.noKeyNav || ($.preventDefault(), $.stopPropagation(), r.value = A(r.value + E, E), nextTick$1(() => {
5788
+ r.value = T;
5789
+ }, D = ($, T) => {
5790
+ p.value.length <= 0 || n.noKeyNav || ($.preventDefault(), $.stopPropagation(), r.value = O(r.value + T, T), nextTick$1(() => {
5724
5791
  r.value >= 0 && getSafeDocument()?.getElementById(p.value[r.value]?.buttonId)?.focus();
5725
5792
  }));
5726
- }, A = ($, E) => {
5727
- let S = $, D = -1, P = -1;
5728
- for (let F = 0; F < p.value.length; F++) p.value[F]?.disabled || (D === -1 && (D = F), P = F);
5729
- for (; S >= D && S <= P && p.value[S]?.disabled; ) S += E;
5730
- return S < D && (S = D), S > P && (S = P), S;
5793
+ }, O = ($, T) => {
5794
+ let S = $, L = -1, A = -1;
5795
+ for (let F = 0; F < p.value.length; F++) p.value[F]?.disabled || (L === -1 && (L = F), A = F);
5796
+ for (; S >= L && S <= A && p.value[S]?.disabled; ) S += T;
5797
+ return S < L && (S = L), S > A && (S = A), S;
5731
5798
  };
5732
- let N, O = !1;
5733
- watch(r, ($, E) => {
5734
- if (p.value.length <= 0 || p.value.filter((P) => !P.disabled).length <= 0) return;
5735
- if (O) {
5736
- O = !1;
5799
+ let N, P = !1;
5800
+ watch(r, ($, T) => {
5801
+ if (p.value.length <= 0 || p.value.filter((A) => !A.disabled).length <= 0) return;
5802
+ if (P) {
5803
+ P = !1;
5737
5804
  return;
5738
5805
  }
5739
- const S = A($, $ > E ? 1 : -1);
5806
+ const S = O($, $ > T ? 1 : -1);
5740
5807
  if (S !== $) {
5741
- N = E, r.value = S;
5808
+ N = T, r.value = S;
5742
5809
  return;
5743
5810
  }
5744
- const D = new BvEvent("activate-tab", { cancelable: !0 });
5811
+ const L = new BvEvent("activate-tab", { cancelable: !0 });
5745
5812
  if (a("activate-tab", {
5746
5813
  newTabId: p.value[S]?.id,
5747
- prevTabId: p.value[N ?? E]?.id,
5814
+ prevTabId: p.value[N ?? T]?.id,
5748
5815
  newTabIndex: S,
5749
- prevTabIndex: N ?? E,
5750
- event: D
5751
- }), D.defaultPrevented) {
5752
- O = !0;
5753
- const P = N ?? E ?? A(0, 1);
5754
- N = void 0, s.value !== p.value[P]?.id && (s.value = p.value[P]?.id), nextTick$1(() => {
5755
- P >= 0 && getSafeDocument()?.getElementById(p.value[P]?.buttonId)?.focus();
5816
+ prevTabIndex: N ?? T,
5817
+ event: L
5818
+ }), L.defaultPrevented) {
5819
+ P = !0;
5820
+ const A = N ?? T ?? O(0, 1);
5821
+ N = void 0, s.value !== p.value[A]?.id && (s.value = p.value[A]?.id), nextTick$1(() => {
5822
+ A >= 0 && getSafeDocument()?.getElementById(p.value[A]?.buttonId)?.focus();
5756
5823
  });
5757
5824
  return;
5758
5825
  }
5759
5826
  s.value !== p.value[S]?.id && (s.value = p.value[S]?.id), N = void 0;
5760
- }), watch(s, ($, E) => {
5761
- if (p.value.length <= 0 || p.value.filter((P) => !P.disabled).length <= 0) return;
5762
- const S = p.value.findIndex((P) => P.id === $);
5827
+ }), watch(s, ($, T) => {
5828
+ if (p.value.length <= 0 || p.value.filter((A) => !A.disabled).length <= 0) return;
5829
+ const S = p.value.findIndex((A) => A.id === $);
5763
5830
  if (S === r.value) return;
5764
- const D = p.value.findIndex((P) => P.id === E);
5831
+ const L = p.value.findIndex((A) => A.id === T);
5765
5832
  if (p.value[S]?.disabled) {
5766
- r.value = A(S, S > D ? 1 : -1);
5833
+ r.value = O(S, S > L ? 1 : -1);
5767
5834
  return;
5768
5835
  }
5769
5836
  if (S === -1) {
5770
- r.value = A(0, 1), nextTick$1(() => {
5837
+ r.value = O(0, 1), nextTick$1(() => {
5771
5838
  s.value = p.value[r.value]?.id;
5772
5839
  });
5773
5840
  return;
@@ -5775,22 +5842,22 @@ var BTab_default = /* @__PURE__ */ defineComponent({
5775
5842
  r.value = S;
5776
5843
  });
5777
5844
  const w = ($) => {
5778
- const E = i.value.findIndex((D) => D.value.internalId === $.value.internalId);
5779
- E === -1 ? (i.value.push($), m ? nextTick$1(() => {
5780
- T();
5845
+ const T = i.value.findIndex((L) => L.value.internalId === $.value.internalId);
5846
+ T === -1 ? (i.value.push($), m ? nextTick$1(() => {
5847
+ E();
5781
5848
  }) : _ && nextTick$1(() => {
5782
5849
  v();
5783
- })) : (i.value[E] = $, m && T());
5784
- const S = i.value.findIndex((D) => D.value.internalId === $.value.internalId);
5850
+ })) : (i.value[T] = $, m && E());
5851
+ const S = i.value.findIndex((L) => L.value.internalId === $.value.internalId);
5785
5852
  return $.value.id ?? (m ? $.value.internalId : d.value[S]);
5786
5853
  };
5787
5854
  onMounted(() => {
5788
- v(), T(), m = !0;
5855
+ v(), E(), m = !0;
5789
5856
  });
5790
- const T = () => {
5791
- i.value.sort(($, E) => sortSlotElementsByPosition($.value.el.value, E.value.el.value)), s.value && r.value !== p.value.findIndex(($) => $.id === s.value) && (r.value = p.value.findIndex(($) => $.id === s.value));
5857
+ const E = () => {
5858
+ i.value.sort(($, T) => sortSlotElementsByPosition($.value.el.value, T.value.el.value)), s.value && r.value !== p.value.findIndex(($) => $.id === s.value) && (r.value = p.value.findIndex(($) => $.id === s.value));
5792
5859
  }, R = ($) => {
5793
- i.value = i.value.filter((E) => E.value.internalId !== $);
5860
+ i.value = i.value.filter((T) => T.value.internalId !== $);
5794
5861
  };
5795
5862
  return provide(tabsInjectionKey, {
5796
5863
  lazy: toRef(() => n.lazy),
@@ -5803,14 +5870,14 @@ var BTab_default = /* @__PURE__ */ defineComponent({
5803
5870
  unregisterTab: R,
5804
5871
  activeId: s,
5805
5872
  activateTab: ($) => {
5806
- const E = p.value.findIndex((S) => S.internalId === $);
5807
- if ($ === void 0 || E === -1) {
5808
- r.value = A(0, 1);
5873
+ const T = p.value.findIndex((S) => S.internalId === $);
5874
+ if ($ === void 0 || T === -1) {
5875
+ r.value = O(0, 1);
5809
5876
  return;
5810
5877
  }
5811
- r.value = E;
5878
+ r.value = T;
5812
5879
  }
5813
- }), ($, E) => (openBlock(), createBlock(resolveDynamicComponent(unref(n).tag), {
5880
+ }), ($, T) => (openBlock(), createBlock(resolveDynamicComponent(unref(n).tag), {
5814
5881
  id: unref(n).id,
5815
5882
  class: normalizeClass(["tabs", B.value])
5816
5883
  }, {
@@ -5829,7 +5896,7 @@ var BTab_default = /* @__PURE__ */ defineComponent({
5829
5896
  "aria-orientation": unref(n).vertical ? "vertical" : "horizontal"
5830
5897
  }, [
5831
5898
  renderSlot($.$slots, "tabs-start"),
5832
- (openBlock(!0), createElementBlock(Fragment, null, renderList(p.value, (S, D) => (openBlock(), createElementBlock("li", {
5899
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(p.value, (S, L) => (openBlock(), createElementBlock("li", {
5833
5900
  key: S.id ?? S.internalId,
5834
5901
  class: normalizeClass(["nav-item", S.titleItemClass]),
5835
5902
  role: "presentation"
@@ -5848,20 +5915,20 @@ var BTab_default = /* @__PURE__ */ defineComponent({
5848
5915
  type: "button"
5849
5916
  }, { ref_for: !0 }, S.titleLinkAttrs, {
5850
5917
  onKeydown: [
5851
- E[0] || (E[0] = withKeys(withModifiers((P) => !unref(n).vertical && L(P, -1), ["exact"]), ["left"])),
5852
- E[1] || (E[1] = withKeys(withModifiers((P) => !unref(n).vertical && L(P, -999), ["shift"]), ["left"])),
5853
- E[2] || (E[2] = withKeys(withModifiers((P) => unref(n).vertical && L(P, -1), ["exact"]), ["up"])),
5854
- E[3] || (E[3] = withKeys(withModifiers((P) => unref(n).vertical && L(P, -999), ["shift"]), ["up"])),
5855
- E[4] || (E[4] = withKeys(withModifiers((P) => !unref(n).vertical && L(P, 1), ["exact"]), ["right"])),
5856
- E[5] || (E[5] = withKeys(withModifiers((P) => !unref(n).vertical && L(P, 999), ["shift"]), ["right"])),
5857
- E[6] || (E[6] = withKeys(withModifiers((P) => unref(n).vertical && L(P, 1), ["exact"]), ["down"])),
5858
- E[7] || (E[7] = withKeys(withModifiers((P) => unref(n).vertical && L(P, 999), ["shift"]), ["down"])),
5859
- E[8] || (E[8] = withKeys((P) => L(P, -999), ["page-up"])),
5860
- E[9] || (E[9] = withKeys((P) => L(P, 999), ["page-down"])),
5861
- E[10] || (E[10] = withKeys((P) => L(P, -999), ["home"])),
5862
- E[11] || (E[11] = withKeys((P) => L(P, 999), ["end"]))
5918
+ T[0] || (T[0] = withKeys(withModifiers((A) => !unref(n).vertical && D(A, -1), ["exact"]), ["left"])),
5919
+ T[1] || (T[1] = withKeys(withModifiers((A) => !unref(n).vertical && D(A, -999), ["shift"]), ["left"])),
5920
+ T[2] || (T[2] = withKeys(withModifiers((A) => unref(n).vertical && D(A, -1), ["exact"]), ["up"])),
5921
+ T[3] || (T[3] = withKeys(withModifiers((A) => unref(n).vertical && D(A, -999), ["shift"]), ["up"])),
5922
+ T[4] || (T[4] = withKeys(withModifiers((A) => !unref(n).vertical && D(A, 1), ["exact"]), ["right"])),
5923
+ T[5] || (T[5] = withKeys(withModifiers((A) => !unref(n).vertical && D(A, 999), ["shift"]), ["right"])),
5924
+ T[6] || (T[6] = withKeys(withModifiers((A) => unref(n).vertical && D(A, 1), ["exact"]), ["down"])),
5925
+ T[7] || (T[7] = withKeys(withModifiers((A) => unref(n).vertical && D(A, 999), ["shift"]), ["down"])),
5926
+ T[8] || (T[8] = withKeys((A) => D(A, -999), ["page-up"])),
5927
+ T[9] || (T[9] = withKeys((A) => D(A, 999), ["page-down"])),
5928
+ T[10] || (T[10] = withKeys((A) => D(A, -999), ["home"])),
5929
+ T[11] || (T[11] = withKeys((A) => D(A, 999), ["end"]))
5863
5930
  ],
5864
- onClick: withModifiers((P) => V(P, D), ["stop"])
5931
+ onClick: withModifiers((A) => V(A, L), ["stop"])
5865
5932
  }), [S.titleComponent ? (openBlock(), createBlock(resolveDynamicComponent(S.titleComponent), { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(S.title), 1)], 64))], 16, _hoisted_2$1u)], 2))), 128)),
5866
5933
  renderSlot($.$slots, "tabs-end")
5867
5934
  ], 10, _hoisted_1$26)], 2),
@@ -7624,12 +7691,12 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
7624
7691
  }, p = getAlignmentAxis(o), m = getAxisLength(p), g = await s.getDimensions(c), b = p === "y", _ = b ? "top" : "left", v = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", k = r.reference[m] + r.reference[p] - f[p] - r.floating[m], B = f[p] - r.reference[p], M = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
7625
7692
  let I = M ? M[C] : 0;
7626
7693
  (!I || !await (s.isElement == null ? void 0 : s.isElement(M))) && (I = i.floating[C] || r.floating[m]);
7627
- const V = k / 2 - B / 2, L = I / 2 - g[m] / 2 - 1, A = min$2(u[_], L), N = min$2(u[v], L), O = I - g[m] - N, w = I / 2 - g[m] / 2 + V, T = clamp(A, w, O), R = !l.arrow && getAlignment(o) != null && w !== T && r.reference[m] / 2 - (w < A ? A : N) - g[m] / 2 < 0, $ = R ? w < A ? w - A : w - O : 0;
7694
+ const V = k / 2 - B / 2, D = I / 2 - g[m] / 2 - 1, O = min$2(u[_], D), N = min$2(u[v], D), P = I - g[m] - N, w = I / 2 - g[m] / 2 + V, E = clamp(O, w, P), R = !l.arrow && getAlignment(o) != null && w !== E && r.reference[m] / 2 - (w < O ? O : N) - g[m] / 2 < 0, $ = R ? w < O ? w - O : w - P : 0;
7628
7695
  return {
7629
7696
  [p]: f[p] + $,
7630
7697
  data: {
7631
- [p]: T,
7632
- centerOffset: w - T - $,
7698
+ [p]: E,
7699
+ centerOffset: w - E - $,
7633
7700
  ...R && {
7634
7701
  alignmentOffset: $
7635
7702
  }
@@ -7663,45 +7730,45 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, t, n) => {
7663
7730
  return {};
7664
7731
  const _ = getSide(o), v = getSideAxis(i), C = getSide(i) === i, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), B = f || (C || !g ? [getOppositePlacement(i)] : getExpandedPlacements(i)), M = m !== "none";
7665
7732
  !f && M && B.push(...getOppositeAxisPlacements(i, g, m, k));
7666
- const I = [i, ...B], V = await l.detectOverflow(t, b), L = [];
7667
- let A = ((a = r.flip) == null ? void 0 : a.overflows) || [];
7668
- if (d && L.push(V[_]), u) {
7669
- const T = getAlignmentSides(o, s, k);
7670
- L.push(V[T[0]], V[T[1]]);
7733
+ const I = [i, ...B], V = await l.detectOverflow(t, b), D = [];
7734
+ let O = ((a = r.flip) == null ? void 0 : a.overflows) || [];
7735
+ if (d && D.push(V[_]), u) {
7736
+ const E = getAlignmentSides(o, s, k);
7737
+ D.push(V[E[0]], V[E[1]]);
7671
7738
  }
7672
- if (A = [...A, {
7739
+ if (O = [...O, {
7673
7740
  placement: o,
7674
- overflows: L
7675
- }], !L.every((T) => T <= 0)) {
7676
- var N, O;
7677
- const T = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, R = I[T];
7741
+ overflows: D
7742
+ }], !D.every((E) => E <= 0)) {
7743
+ var N, P;
7744
+ const E = (((N = r.flip) == null ? void 0 : N.index) || 0) + 1, R = I[E];
7678
7745
  if (R && (!(u === "alignment" ? v !== getSideAxis(R) : !1) || // We leave the current main axis only if every placement on that axis
7679
7746
  // overflows the main axis.
7680
- A.every((S) => getSideAxis(S.placement) === v ? S.overflows[0] > 0 : !0)))
7747
+ O.every((S) => getSideAxis(S.placement) === v ? S.overflows[0] > 0 : !0)))
7681
7748
  return {
7682
7749
  data: {
7683
- index: T,
7684
- overflows: A
7750
+ index: E,
7751
+ overflows: O
7685
7752
  },
7686
7753
  reset: {
7687
7754
  placement: R
7688
7755
  }
7689
7756
  };
7690
- let $ = (O = A.filter((E) => E.overflows[0] <= 0).sort((E, S) => E.overflows[1] - S.overflows[1])[0]) == null ? void 0 : O.placement;
7757
+ let $ = (P = O.filter((T) => T.overflows[0] <= 0).sort((T, S) => T.overflows[1] - S.overflows[1])[0]) == null ? void 0 : P.placement;
7691
7758
  if (!$)
7692
7759
  switch (p) {
7693
7760
  case "bestFit": {
7694
7761
  var w;
7695
- const E = (w = A.filter((S) => {
7762
+ const T = (w = O.filter((S) => {
7696
7763
  if (M) {
7697
- const D = getSideAxis(S.placement);
7698
- return D === v || // Create a bias to the `y` side axis due to horizontal
7764
+ const L = getSideAxis(S.placement);
7765
+ return L === v || // Create a bias to the `y` side axis due to horizontal
7699
7766
  // reading directions favoring greater width.
7700
- D === "y";
7767
+ L === "y";
7701
7768
  }
7702
7769
  return !0;
7703
- }).map((S) => [S.placement, S.overflows.filter((D) => D > 0).reduce((D, P) => D + P, 0)]).sort((S, D) => S[1] - D[1])[0]) == null ? void 0 : w[0];
7704
- E && ($ = E);
7770
+ }).map((S) => [S.placement, S.overflows.filter((L) => L > 0).reduce((L, A) => L + A, 0)]).sort((S, L) => S[1] - L[1])[0]) == null ? void 0 : w[0];
7771
+ T && ($ = T);
7705
7772
  break;
7706
7773
  }
7707
7774
  case "initialPlacement":
@@ -8239,14 +8306,14 @@ function observeMove(e, t, n) {
8239
8306
  threshold: max$2(0, min$2(1, u)) || 1
8240
8307
  };
8241
8308
  let I = !0;
8242
- function V(L) {
8243
- const A = L[0].intersectionRatio;
8309
+ function V(D) {
8310
+ const O = D[0].intersectionRatio;
8244
8311
  if (!rectsAreEqual(f, e.getBoundingClientRect()))
8245
8312
  return i();
8246
- if (A !== u) {
8313
+ if (O !== u) {
8247
8314
  if (!I)
8248
8315
  return i();
8249
- A ? i(!1, A) : o = setTimeout(() => {
8316
+ O ? i(!1, O) : o = setTimeout(() => {
8250
8317
  i(!1, 1e-7);
8251
8318
  }, 1e3);
8252
8319
  }
@@ -9692,9 +9759,9 @@ function _sfc_render$1T(e, t, n, a, o, r) {
9692
9759
  renderSlot(e.$slots, "vs-canned-search-of")
9693
9760
  ]),
9694
9761
  default: withCtx(() => [
9695
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.products, (V, L) => (openBlock(), createBlock(B, {
9696
- key: L,
9697
- "slide-index": `${L}`,
9762
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(o.products, (V, D) => (openBlock(), createBlock(B, {
9763
+ key: D,
9764
+ "slide-index": `${D}`,
9698
9765
  "img-src": V.images ? V.images[0].mediaUrl : "",
9699
9766
  title: V.name,
9700
9767
  "detail-link": {
@@ -12152,44 +12219,44 @@ function formatLocale(e) {
12152
12219
  u = formatSpecifier(u);
12153
12220
  var f = u.fill, p = u.align, m = u.sign, g = u.symbol, b = u.zero, _ = u.width, v = u.comma, C = u.precision, k = u.trim, B = u.type;
12154
12221
  B === "n" ? (v = !0, B = "g") : formatTypes[B] || (C === void 0 && (C = 12), k = !0, B = "g"), (b || f === "0" && p === "=") && (b = !0, f = "0", p = "=");
12155
- var M = g === "$" ? n : g === "#" && /[boxX]/.test(B) ? "0" + B.toLowerCase() : "", I = g === "$" ? a : /[%p]/.test(B) ? s : "", V = formatTypes[B], L = /[defgprs%]/.test(B);
12222
+ var M = g === "$" ? n : g === "#" && /[boxX]/.test(B) ? "0" + B.toLowerCase() : "", I = g === "$" ? a : /[%p]/.test(B) ? s : "", V = formatTypes[B], D = /[defgprs%]/.test(B);
12156
12223
  C = C === void 0 ? 6 : /[gprs]/.test(B) ? Math.max(1, Math.min(21, C)) : Math.max(0, Math.min(20, C));
12157
- function A(N) {
12158
- var O = M, w = I, T, R, $;
12224
+ function O(N) {
12225
+ var P = M, w = I, E, R, $;
12159
12226
  if (B === "c")
12160
12227
  w = V(N) + w, N = "";
12161
12228
  else {
12162
12229
  N = +N;
12163
- var E = N < 0 || 1 / N < 0;
12164
- if (N = isNaN(N) ? l : V(Math.abs(N), C), k && (N = formatTrim(N)), E && +N == 0 && m !== "+" && (E = !1), O = (E ? m === "(" ? m : i : m === "-" || m === "(" ? "" : m) + O, w = (B === "s" ? prefixes[8 + prefixExponent / 3] : "") + w + (E && m === "(" ? ")" : ""), L) {
12165
- for (T = -1, R = N.length; ++T < R; )
12166
- if ($ = N.charCodeAt(T), 48 > $ || $ > 57) {
12167
- w = ($ === 46 ? o + N.slice(T + 1) : N.slice(T)) + w, N = N.slice(0, T);
12230
+ var T = N < 0 || 1 / N < 0;
12231
+ if (N = isNaN(N) ? l : V(Math.abs(N), C), k && (N = formatTrim(N)), T && +N == 0 && m !== "+" && (T = !1), P = (T ? m === "(" ? m : i : m === "-" || m === "(" ? "" : m) + P, w = (B === "s" ? prefixes[8 + prefixExponent / 3] : "") + w + (T && m === "(" ? ")" : ""), D) {
12232
+ for (E = -1, R = N.length; ++E < R; )
12233
+ if ($ = N.charCodeAt(E), 48 > $ || $ > 57) {
12234
+ w = ($ === 46 ? o + N.slice(E + 1) : N.slice(E)) + w, N = N.slice(0, E);
12168
12235
  break;
12169
12236
  }
12170
12237
  }
12171
12238
  }
12172
12239
  v && !b && (N = t(N, 1 / 0));
12173
- var S = O.length + N.length + w.length, D = S < _ ? new Array(_ - S + 1).join(f) : "";
12174
- switch (v && b && (N = t(D + N, D.length ? _ - w.length : 1 / 0), D = ""), p) {
12240
+ var S = P.length + N.length + w.length, L = S < _ ? new Array(_ - S + 1).join(f) : "";
12241
+ switch (v && b && (N = t(L + N, L.length ? _ - w.length : 1 / 0), L = ""), p) {
12175
12242
  case "<":
12176
- N = O + N + w + D;
12243
+ N = P + N + w + L;
12177
12244
  break;
12178
12245
  case "=":
12179
- N = O + D + N + w;
12246
+ N = P + L + N + w;
12180
12247
  break;
12181
12248
  case "^":
12182
- N = D.slice(0, S = D.length >> 1) + O + N + w + D.slice(S);
12249
+ N = L.slice(0, S = L.length >> 1) + P + N + w + L.slice(S);
12183
12250
  break;
12184
12251
  default:
12185
- N = D + O + N + w;
12252
+ N = L + P + N + w;
12186
12253
  break;
12187
12254
  }
12188
12255
  return r(N);
12189
12256
  }
12190
- return A.toString = function() {
12257
+ return O.toString = function() {
12191
12258
  return u + "";
12192
- }, A;
12259
+ }, O;
12193
12260
  }
12194
12261
  function d(u, f) {
12195
12262
  var p = c((u = formatSpecifier(u), u.type = "f", u)), m = Math.max(-8, Math.min(8, Math.floor(exponent(f) / 3))) * 3, g = Math.pow(10, -m), b = prefixes[8 + m / 3];
@@ -12485,14 +12552,14 @@ function intersect(e, t, n, a, o, r, s, i) {
12485
12552
  return f = (d * (t - r) - u * (e - o)) / f, [e + f * l, t + f * c];
12486
12553
  }
12487
12554
  function cornerTangents(e, t, n, a, o, r, s) {
12488
- var i = e - n, l = t - a, c = (s ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, p = t + u, m = n + d, g = a + u, b = (f + m) / 2, _ = (p + g) / 2, v = m - f, C = g - p, k = v * v + C * C, B = o - r, M = f * g - m * p, I = (C < 0 ? -1 : 1) * sqrt(max(0, B * B * k - M * M)), V = (M * C - v * I) / k, L = (-M * v - C * I) / k, A = (M * C + v * I) / k, N = (-M * v + C * I) / k, O = V - b, w = L - _, T = A - b, R = N - _;
12489
- return O * O + w * w > T * T + R * R && (V = A, L = N), {
12555
+ var i = e - n, l = t - a, c = (s ? r : -r) / sqrt(i * i + l * l), d = c * l, u = -c * i, f = e + d, p = t + u, m = n + d, g = a + u, b = (f + m) / 2, _ = (p + g) / 2, v = m - f, C = g - p, k = v * v + C * C, B = o - r, M = f * g - m * p, I = (C < 0 ? -1 : 1) * sqrt(max(0, B * B * k - M * M)), V = (M * C - v * I) / k, D = (-M * v - C * I) / k, O = (M * C + v * I) / k, N = (-M * v + C * I) / k, P = V - b, w = D - _, E = O - b, R = N - _;
12556
+ return P * P + w * w > E * E + R * R && (V = O, D = N), {
12490
12557
  cx: V,
12491
- cy: L,
12558
+ cy: D,
12492
12559
  x01: -d,
12493
12560
  y01: -u,
12494
12561
  x11: V * (o / B - 1),
12495
- y11: L * (o / B - 1)
12562
+ y11: D * (o / B - 1)
12496
12563
  };
12497
12564
  }
12498
12565
  function arc() {
@@ -12503,22 +12570,22 @@ function arc() {
12503
12570
  else if (b > tau$1 - epsilon$2)
12504
12571
  i.moveTo(p * cos(m), p * sin(m)), i.arc(0, 0, p, m, g, !_), f > epsilon$2 && (i.moveTo(f * cos(g), f * sin(g)), i.arc(0, 0, f, g, m, _));
12505
12572
  else {
12506
- var v = m, C = g, k = m, B = g, M = b, I = b, V = s.apply(this, arguments) / 2, L = V > epsilon$2 && (a ? +a.apply(this, arguments) : sqrt(f * f + p * p)), A = min(abs(p - f) / 2, +n.apply(this, arguments)), N = A, O = A, w, T;
12507
- if (L > epsilon$2) {
12508
- var R = asin(L / f * sin(V)), $ = asin(L / p * sin(V));
12573
+ var v = m, C = g, k = m, B = g, M = b, I = b, V = s.apply(this, arguments) / 2, D = V > epsilon$2 && (a ? +a.apply(this, arguments) : sqrt(f * f + p * p)), O = min(abs(p - f) / 2, +n.apply(this, arguments)), N = O, P = O, w, E;
12574
+ if (D > epsilon$2) {
12575
+ var R = asin(D / f * sin(V)), $ = asin(D / p * sin(V));
12509
12576
  (M -= R * 2) > epsilon$2 ? (R *= _ ? 1 : -1, k += R, B -= R) : (M = 0, k = B = (m + g) / 2), (I -= $ * 2) > epsilon$2 ? ($ *= _ ? 1 : -1, v += $, C -= $) : (I = 0, v = C = (m + g) / 2);
12510
12577
  }
12511
- var E = p * cos(v), S = p * sin(v), D = f * cos(B), P = f * sin(B);
12512
- if (A > epsilon$2) {
12513
- var F = p * cos(C), z = p * sin(C), W = f * cos(k), q = f * sin(k), G;
12578
+ var T = p * cos(v), S = p * sin(v), L = f * cos(B), A = f * sin(B);
12579
+ if (O > epsilon$2) {
12580
+ var F = p * cos(C), z = p * sin(C), W = f * cos(k), j = f * sin(k), X;
12514
12581
  if (b < pi$1)
12515
- if (G = intersect(E, S, W, q, F, z, D, P)) {
12516
- var Y = E - G[0], ne = S - G[1], le = F - G[0], se = z - G[1], ie = 1 / sin(acos((Y * le + ne * se) / (sqrt(Y * Y + ne * ne) * sqrt(le * le + se * se))) / 2), ue = sqrt(G[0] * G[0] + G[1] * G[1]);
12517
- N = min(A, (f - ue) / (ie - 1)), O = min(A, (p - ue) / (ie + 1));
12582
+ if (X = intersect(T, S, W, j, F, z, L, A)) {
12583
+ var G = T - X[0], ne = S - X[1], ae = F - X[0], ie = z - X[1], ce = 1 / sin(acos((G * ae + ne * ie) / (sqrt(G * G + ne * ne) * sqrt(ae * ae + ie * ie))) / 2), de = sqrt(X[0] * X[0] + X[1] * X[1]);
12584
+ N = min(O, (f - de) / (ce - 1)), P = min(O, (p - de) / (ce + 1));
12518
12585
  } else
12519
- N = O = 0;
12586
+ N = P = 0;
12520
12587
  }
12521
- I > epsilon$2 ? O > epsilon$2 ? (w = cornerTangents(W, q, E, S, p, O, _), T = cornerTangents(F, z, D, P, p, O, _), i.moveTo(w.cx + w.x01, w.cy + w.y01), O < A ? i.arc(w.cx, w.cy, O, atan2(w.y01, w.x01), atan2(T.y01, T.x01), !_) : (i.arc(w.cx, w.cy, O, atan2(w.y01, w.x01), atan2(w.y11, w.x11), !_), i.arc(0, 0, p, atan2(w.cy + w.y11, w.cx + w.x11), atan2(T.cy + T.y11, T.cx + T.x11), !_), i.arc(T.cx, T.cy, O, atan2(T.y11, T.x11), atan2(T.y01, T.x01), !_))) : (i.moveTo(E, S), i.arc(0, 0, p, v, C, !_)) : i.moveTo(E, S), !(f > epsilon$2) || !(M > epsilon$2) ? i.lineTo(D, P) : N > epsilon$2 ? (w = cornerTangents(D, P, F, z, f, -N, _), T = cornerTangents(E, S, W, q, f, -N, _), i.lineTo(w.cx + w.x01, w.cy + w.y01), N < A ? i.arc(w.cx, w.cy, N, atan2(w.y01, w.x01), atan2(T.y01, T.x01), !_) : (i.arc(w.cx, w.cy, N, atan2(w.y01, w.x01), atan2(w.y11, w.x11), !_), i.arc(0, 0, f, atan2(w.cy + w.y11, w.cx + w.x11), atan2(T.cy + T.y11, T.cx + T.x11), _), i.arc(T.cx, T.cy, N, atan2(T.y11, T.x11), atan2(T.y01, T.x01), !_))) : i.arc(0, 0, f, B, k, _);
12588
+ I > epsilon$2 ? P > epsilon$2 ? (w = cornerTangents(W, j, T, S, p, P, _), E = cornerTangents(F, z, L, A, p, P, _), i.moveTo(w.cx + w.x01, w.cy + w.y01), P < O ? i.arc(w.cx, w.cy, P, atan2(w.y01, w.x01), atan2(E.y01, E.x01), !_) : (i.arc(w.cx, w.cy, P, atan2(w.y01, w.x01), atan2(w.y11, w.x11), !_), i.arc(0, 0, p, atan2(w.cy + w.y11, w.cx + w.x11), atan2(E.cy + E.y11, E.cx + E.x11), !_), i.arc(E.cx, E.cy, P, atan2(E.y11, E.x11), atan2(E.y01, E.x01), !_))) : (i.moveTo(T, S), i.arc(0, 0, p, v, C, !_)) : i.moveTo(T, S), !(f > epsilon$2) || !(M > epsilon$2) ? i.lineTo(L, A) : N > epsilon$2 ? (w = cornerTangents(L, A, F, z, f, -N, _), E = cornerTangents(T, S, W, j, f, -N, _), i.lineTo(w.cx + w.x01, w.cy + w.y01), N < O ? i.arc(w.cx, w.cy, N, atan2(w.y01, w.x01), atan2(E.y01, E.x01), !_) : (i.arc(w.cx, w.cy, N, atan2(w.y01, w.x01), atan2(w.y11, w.x11), !_), i.arc(0, 0, f, atan2(w.cy + w.y11, w.cx + w.x11), atan2(E.cy + E.y11, E.cx + E.x11), _), i.arc(E.cx, E.cy, N, atan2(E.y11, E.x11), atan2(E.y01, E.x01), !_))) : i.arc(0, 0, f, B, k, _);
12522
12589
  }
12523
12590
  if (i.closePath(), d) return i = null, d + "" || null;
12524
12591
  }
@@ -13587,15 +13654,15 @@ function entering() {
13587
13654
  function axis(e, t) {
13588
13655
  var n = [], a = null, o = null, r = 6, s = 6, i = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === top || e === left ? -1 : 1, d = e === left || e === right ? "x" : "y", u = e === top || e === bottom ? translateX : translateY;
13589
13656
  function f(p) {
13590
- var m = a ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = o ?? (t.tickFormat ? t.tickFormat.apply(t, n) : identity), b = Math.max(r, 0) + i, _ = t.range(), v = +_[0] + l, C = +_[_.length - 1] + l, k = (t.bandwidth ? center : number)(t.copy(), l), B = p.selection ? p.selection() : p, M = B.selectAll(".domain").data([null]), I = B.selectAll(".tick").data(m, t).order(), V = I.exit(), L = I.enter().append("g").attr("class", "tick"), A = I.select("line"), N = I.select("text");
13591
- M = M.merge(M.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(L), A = A.merge(L.append("line").attr("stroke", "currentColor").attr(d + "2", c * r)), N = N.merge(L.append("text").attr("fill", "currentColor").attr(d, c * b).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), p !== B && (M = M.transition(p), I = I.transition(p), A = A.transition(p), N = N.transition(p), V = V.transition(p).attr("opacity", epsilon).attr("transform", function(O) {
13592
- return isFinite(O = k(O)) ? u(O + l) : this.getAttribute("transform");
13593
- }), L.attr("opacity", epsilon).attr("transform", function(O) {
13657
+ var m = a ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = o ?? (t.tickFormat ? t.tickFormat.apply(t, n) : identity), b = Math.max(r, 0) + i, _ = t.range(), v = +_[0] + l, C = +_[_.length - 1] + l, k = (t.bandwidth ? center : number)(t.copy(), l), B = p.selection ? p.selection() : p, M = B.selectAll(".domain").data([null]), I = B.selectAll(".tick").data(m, t).order(), V = I.exit(), D = I.enter().append("g").attr("class", "tick"), O = I.select("line"), N = I.select("text");
13658
+ M = M.merge(M.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(D), O = O.merge(D.append("line").attr("stroke", "currentColor").attr(d + "2", c * r)), N = N.merge(D.append("text").attr("fill", "currentColor").attr(d, c * b).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), p !== B && (M = M.transition(p), I = I.transition(p), O = O.transition(p), N = N.transition(p), V = V.transition(p).attr("opacity", epsilon).attr("transform", function(P) {
13659
+ return isFinite(P = k(P)) ? u(P + l) : this.getAttribute("transform");
13660
+ }), D.attr("opacity", epsilon).attr("transform", function(P) {
13594
13661
  var w = this.parentNode.__axis;
13595
- return u((w && isFinite(w = w(O)) ? w : k(O)) + l);
13596
- })), V.remove(), M.attr("d", e === left || e === right ? s ? "M" + c * s + "," + v + "H" + l + "V" + C + "H" + c * s : "M" + l + "," + v + "V" + C : s ? "M" + v + "," + c * s + "V" + l + "H" + C + "V" + c * s : "M" + v + "," + l + "H" + C), I.attr("opacity", 1).attr("transform", function(O) {
13597
- return u(k(O) + l);
13598
- }), A.attr(d + "2", c * r), N.attr(d, c * b).text(g), B.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), B.each(function() {
13662
+ return u((w && isFinite(w = w(P)) ? w : k(P)) + l);
13663
+ })), V.remove(), M.attr("d", e === left || e === right ? s ? "M" + c * s + "," + v + "H" + l + "V" + C + "H" + c * s : "M" + l + "," + v + "V" + C : s ? "M" + v + "," + c * s + "V" + l + "H" + C + "V" + c * s : "M" + v + "," + l + "H" + C), I.attr("opacity", 1).attr("transform", function(P) {
13664
+ return u(k(P) + l);
13665
+ }), O.attr(d + "2", c * r), N.attr(d, c * b).text(g), B.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), B.each(function() {
13599
13666
  this.__axis = k;
13600
13667
  });
13601
13668
  }
@@ -15932,14 +15999,14 @@ function setValidations(e) {
15932
15999
  config: p,
15933
16000
  validationGroups: m
15934
16001
  } = sortValidations(t), g = _objectSpread2$1(_objectSpread2$1({}, i), p), b = a ? computed$1(() => {
15935
- const P = unref(n);
15936
- return P ? unref(P[a]) : void 0;
16002
+ const A = unref(n);
16003
+ return A ? unref(A[a]) : void 0;
15937
16004
  }) : n, _ = _objectSpread2$1({}, unref(c) || {}), v = computed$1(() => {
15938
- const P = unref(c);
15939
- return a ? P ? unref(P[a]) : void 0 : P;
16005
+ const A = unref(c);
16006
+ return a ? A ? unref(A[a]) : void 0 : A;
15940
16007
  }), C = createValidationResults(u, b, a, s, d, g, l, v, n), k = collectNestedValidationResults(f, b, d, s, g, l, v), B = {};
15941
- m && Object.entries(m).forEach((P) => {
15942
- let [F, z] = P;
16008
+ m && Object.entries(m).forEach((A) => {
16009
+ let [F, z] = A;
15943
16010
  B[F] = {
15944
16011
  $invalid: gatherBooleanGroupProperties(z, k, "$invalid"),
15945
16012
  $error: gatherBooleanGroupProperties(z, k, "$error"),
@@ -15952,61 +16019,61 @@ function setValidations(e) {
15952
16019
  $dirty: M,
15953
16020
  $errors: I,
15954
16021
  $invalid: V,
15955
- $anyDirty: L,
15956
- $error: A,
16022
+ $anyDirty: D,
16023
+ $error: O,
15957
16024
  $pending: N,
15958
- $touch: O,
16025
+ $touch: P,
15959
16026
  $reset: w,
15960
- $silentErrors: T,
16027
+ $silentErrors: E,
15961
16028
  $commit: R
15962
16029
  } = createMetaFields(C, k, r), $ = a ? computed$1({
15963
16030
  get: () => unref(b),
15964
- set: (P) => {
16031
+ set: (A) => {
15965
16032
  M.value = !0;
15966
16033
  const F = unref(n), z = unref(c);
15967
- z && (z[a] = _[a]), isRef(F[a]) ? F[a].value = P : F[a] = P;
16034
+ z && (z[a] = _[a]), isRef(F[a]) ? F[a].value = A : F[a] = A;
15968
16035
  }
15969
16036
  }) : null;
15970
16037
  a && g.$autoDirty && watch(b, () => {
15971
- M.value || O();
15972
- const P = unref(c);
15973
- P && (P[a] = _[a]);
16038
+ M.value || P();
16039
+ const A = unref(c);
16040
+ A && (A[a] = _[a]);
15974
16041
  }, {
15975
16042
  flush: "sync"
15976
16043
  });
15977
- async function E() {
15978
- return O(), g.$rewardEarly && (R(), await nextTick$1()), await nextTick$1(), new Promise((P) => {
15979
- if (!N.value) return P(!V.value);
16044
+ async function T() {
16045
+ return P(), g.$rewardEarly && (R(), await nextTick$1()), await nextTick$1(), new Promise((A) => {
16046
+ if (!N.value) return A(!V.value);
15980
16047
  const F = watch(N, () => {
15981
- P(!V.value), F();
16048
+ A(!V.value), F();
15982
16049
  });
15983
16050
  });
15984
16051
  }
15985
- function S(P) {
15986
- return (r.value || {})[P];
16052
+ function S(A) {
16053
+ return (r.value || {})[A];
15987
16054
  }
15988
- function D() {
15989
- isRef(c) ? c.value = _ : Object.keys(_).length === 0 ? Object.keys(c).forEach((P) => {
15990
- delete c[P];
16055
+ function L() {
16056
+ isRef(c) ? c.value = _ : Object.keys(_).length === 0 ? Object.keys(c).forEach((A) => {
16057
+ delete c[A];
15991
16058
  }) : Object.assign(c, _);
15992
16059
  }
15993
16060
  return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, C), {}, {
15994
16061
  $model: $,
15995
16062
  $dirty: M,
15996
- $error: A,
16063
+ $error: O,
15997
16064
  $errors: I,
15998
16065
  $invalid: V,
15999
- $anyDirty: L,
16066
+ $anyDirty: D,
16000
16067
  $pending: N,
16001
- $touch: O,
16068
+ $touch: P,
16002
16069
  $reset: w,
16003
16070
  $path: d || ROOT_PATH,
16004
- $silentErrors: T,
16005
- $validate: E,
16071
+ $silentErrors: E,
16072
+ $validate: T,
16006
16073
  $commit: R
16007
16074
  }, r && {
16008
16075
  $getResultsForChild: S,
16009
- $clearExternalResults: D,
16076
+ $clearExternalResults: L,
16010
16077
  $validationGroups: B
16011
16078
  }), k));
16012
16079
  }
@@ -18882,40 +18949,40 @@ function wrapperClass(e = "") {
18882
18949
  function updateSwiper(e) {
18883
18950
  let { nextEl: t, prevEl: n, scrollbarEl: a, paginationEl: o } = e;
18884
18951
  const { swiper: r, slides: s, passedParams: i, changedParams: l } = e, c = l.filter((S) => S !== "children" && S !== "direction" && S !== "wrapperClass"), { params: d, pagination: u, navigation: f, scrollbar: p, virtual: m, thumbs: g } = r, b = i, _ = d;
18885
- let v, C, k, B, M, I, V, L;
18886
- const A = b.thumbs, N = _.thumbs;
18887
- l.includes("thumbs") && isObject$1(A) && A.swiper && !A.swiper.destroyed && isObject$1(N) && (!N.swiper || N.swiper.destroyed) && (v = !0);
18888
- const O = b.controller, w = _.controller;
18889
- l.includes("controller") && isObject$1(O) && O.control && isObject$1(w) && !w.control && (C = !0);
18890
- const T = b.pagination;
18891
- l.includes("pagination") && isObject$1(T) && (T.el || o) && (_.pagination || _.pagination === !1) && u && !u.el && (k = !0);
18952
+ let v, C, k, B, M, I, V, D;
18953
+ const O = b.thumbs, N = _.thumbs;
18954
+ l.includes("thumbs") && isObject$1(O) && O.swiper && !O.swiper.destroyed && isObject$1(N) && (!N.swiper || N.swiper.destroyed) && (v = !0);
18955
+ const P = b.controller, w = _.controller;
18956
+ l.includes("controller") && isObject$1(P) && P.control && isObject$1(w) && !w.control && (C = !0);
18957
+ const E = b.pagination;
18958
+ l.includes("pagination") && isObject$1(E) && (E.el || o) && (_.pagination || _.pagination === !1) && u && !u.el && (k = !0);
18892
18959
  const R = b.scrollbar;
18893
18960
  l.includes("scrollbar") && isObject$1(R) && (R.el || a) && (_.scrollbar || _.scrollbar === !1) && p && !p.el && (B = !0);
18894
18961
  const $ = b.navigation;
18895
18962
  l.includes("navigation") && isObject$1($) && ($.prevEl || n) && ($.nextEl || t) && (_.navigation || _.navigation === !1) && f && !f.prevEl && !f.nextEl && (M = !0);
18896
- const E = (S) => {
18897
- const D = r[S];
18898
- if (!D)
18963
+ const T = (S) => {
18964
+ const L = r[S];
18965
+ if (!L)
18899
18966
  return;
18900
- D.destroy();
18901
- const P = _[S], F = isObject$1(P) ? P : void 0;
18902
- S === "navigation" ? (r.isElement && (D.prevEl?.remove(), D.nextEl?.remove()), F && (F.prevEl = void 0, F.nextEl = void 0), D.prevEl = void 0, D.nextEl = void 0) : (r.isElement && D.el?.remove(), F && (F.el = void 0), D.el = void 0);
18967
+ L.destroy();
18968
+ const A = _[S], F = isObject$1(A) ? A : void 0;
18969
+ S === "navigation" ? (r.isElement && (L.prevEl?.remove(), L.nextEl?.remove()), F && (F.prevEl = void 0, F.nextEl = void 0), L.prevEl = void 0, L.nextEl = void 0) : (r.isElement && L.el?.remove(), F && (F.el = void 0), L.el = void 0);
18903
18970
  };
18904
- if (l.includes("loop") && r.isElement && (d.loop && !i.loop ? I = !0 : !d.loop && i.loop ? V = !0 : L = !0), c.forEach((S) => {
18905
- const D = _[S], P = b[S];
18906
- isObject$1(D) && isObject$1(P) ? (Object.assign(D, P), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in P && !P.enabled && E(S)) : (P === !0 || P === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? P === !1 && E(S) : _[S] = P;
18907
- }), c.includes("controller") && !C && r.controller && r.controller.control && isObject$1(w) && w.control && (r.controller.control = w.control), l.includes("children") && s && m && d.virtual?.enabled ? (m.slides = s, m.update(!0)) : l.includes("virtual") && m && d.virtual?.enabled && (s && (m.slides = s), m.update(!0)), l.includes("children") && s && d.loop && (L = !0), v && g && g.init() && g.update(!0), C && r.controller && isObject$1(w) && (r.controller.control = w.control), k && u) {
18971
+ if (l.includes("loop") && r.isElement && (d.loop && !i.loop ? I = !0 : !d.loop && i.loop ? V = !0 : D = !0), c.forEach((S) => {
18972
+ const L = _[S], A = b[S];
18973
+ isObject$1(L) && isObject$1(A) ? (Object.assign(L, A), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in A && !A.enabled && T(S)) : (A === !0 || A === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? A === !1 && T(S) : _[S] = A;
18974
+ }), c.includes("controller") && !C && r.controller && r.controller.control && isObject$1(w) && w.control && (r.controller.control = w.control), l.includes("children") && s && m && d.virtual?.enabled ? (m.slides = s, m.update(!0)) : l.includes("virtual") && m && d.virtual?.enabled && (s && (m.slides = s), m.update(!0)), l.includes("children") && s && d.loop && (D = !0), v && g && g.init() && g.update(!0), C && r.controller && isObject$1(w) && (r.controller.control = w.control), k && u) {
18908
18975
  if (r.isElement && (!o || typeof o == "string")) {
18909
- const D = document.createElement("div");
18910
- D.classList.add("swiper-pagination"), D.part.add("pagination"), r.el.appendChild(D), o = D;
18976
+ const L = document.createElement("div");
18977
+ L.classList.add("swiper-pagination"), L.part.add("pagination"), r.el.appendChild(L), o = L;
18911
18978
  }
18912
18979
  const S = _.pagination;
18913
18980
  o && isObject$1(S) && (S.el = o), u.init(), u.render(), u.update();
18914
18981
  }
18915
18982
  if (B && p) {
18916
18983
  if (r.isElement && (!a || typeof a == "string")) {
18917
- const D = document.createElement("div");
18918
- D.classList.add("swiper-scrollbar"), D.part.add("scrollbar"), r.el.appendChild(D), a = D;
18984
+ const L = document.createElement("div");
18985
+ L.classList.add("swiper-scrollbar"), L.part.add("scrollbar"), r.el.appendChild(L), a = L;
18919
18986
  }
18920
18987
  const S = _.scrollbar;
18921
18988
  a && isObject$1(S) && (S.el = a), p.init(), p.updateSize(), p.setTranslate();
@@ -18923,18 +18990,18 @@ function updateSwiper(e) {
18923
18990
  if (M && f) {
18924
18991
  if (r.isElement) {
18925
18992
  if (!t || typeof t == "string") {
18926
- const D = document.createElement("div");
18927
- D.classList.add("swiper-button-next"), setInnerHTML(D, f.arrowSvg), D.part.add("button-next"), r.el.appendChild(D), t = D;
18993
+ const L = document.createElement("div");
18994
+ L.classList.add("swiper-button-next"), setInnerHTML(L, f.arrowSvg), L.part.add("button-next"), r.el.appendChild(L), t = L;
18928
18995
  }
18929
18996
  if (!n || typeof n == "string") {
18930
- const D = document.createElement("div");
18931
- D.classList.add("swiper-button-prev"), setInnerHTML(D, f.arrowSvg), D.part.add("button-prev"), r.el.appendChild(D), n = D;
18997
+ const L = document.createElement("div");
18998
+ L.classList.add("swiper-button-prev"), setInnerHTML(L, f.arrowSvg), L.part.add("button-prev"), r.el.appendChild(L), n = L;
18932
18999
  }
18933
19000
  }
18934
19001
  const S = _.navigation;
18935
19002
  t && isObject$1(S) && (S.nextEl = t), n && isObject$1(S) && (S.prevEl = n), f.init(), f.update();
18936
19003
  }
18937
- l.includes("allowSlideNext") && (r.allowSlideNext = b.allowSlideNext), l.includes("allowSlidePrev") && (r.allowSlidePrev = b.allowSlidePrev), l.includes("direction") && r.changeDirection(b.direction, !1), (I || L) && r.loopDestroy(), (V || L) && r.loopCreate(), r.update();
19004
+ l.includes("allowSlideNext") && (r.allowSlideNext = b.allowSlideNext), l.includes("allowSlidePrev") && (r.allowSlidePrev = b.allowSlidePrev), l.includes("direction") && r.changeDirection(b.direction, !1), (I || D) && r.loopDestroy(), (V || D) && r.loopCreate(), r.update();
18938
19005
  }
18939
19006
  let supportCached;
18940
19007
  function calcSupport() {
@@ -19042,8 +19109,8 @@ function setBreakpoint() {
19042
19109
  const V = _(u, I);
19043
19110
  if (typeof V > "u")
19044
19111
  return;
19045
- const L = _(a, I), A = typeof L == "object" && L !== null && L.enabled, N = typeof V == "object" && V !== null && V.enabled, O = e[I];
19046
- A && !N && O?.disable?.(), !A && N && O?.enable?.();
19112
+ const D = _(a, I), O = typeof D == "object" && D !== null && D.enabled, N = typeof V == "object" && V !== null && V.enabled, P = e[I];
19113
+ O && !N && P?.disable?.(), !O && N && P?.enable?.();
19047
19114
  });
19048
19115
  const v = u.direction && u.direction !== a.direction, C = a.loop && (u.slidesPerView !== a.slidesPerView || v), k = a.loop;
19049
19116
  v && n && e.changeDirection(), extend$1(e.params, u);
@@ -19698,63 +19765,63 @@ function loopFix(e = {}) {
19698
19765
  I % M !== 0 && (I += M - I % M), I += g.loopAdditionalSlides, d.loopedSlides = I;
19699
19766
  const V = d.grid && g.grid && g.grid.rows > 1;
19700
19767
  u.length < B + I || d.params.effect === "cards" && u.length < B + I * 2 ? showWarning("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : V && g.grid.fill === "row" && showWarning("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
19701
- const L = [], A = [], N = V ? Math.ceil(u.length / g.grid.rows) : u.length, O = s && N - C < B && !k;
19702
- let w = O ? C : d.activeIndex;
19768
+ const D = [], O = [], N = V ? Math.ceil(u.length / g.grid.rows) : u.length, P = s && N - C < B && !k;
19769
+ let w = P ? C : d.activeIndex;
19703
19770
  typeof c > "u" ? c = d.getSlideIndex(u.find((F) => F.classList.contains(g.slideActiveClass))) : w = c;
19704
- const T = a === "next" || !a, R = a === "prev" || !a;
19705
- let $ = 0, E = 0;
19706
- const D = (V ? u[c].column ?? 0 : c) + (k && typeof o > "u" ? -B / 2 + 0.5 : 0);
19707
- if (D < I) {
19708
- $ = Math.max(I - D, M);
19709
- for (let F = 0; F < I - D; F += 1) {
19771
+ const E = a === "next" || !a, R = a === "prev" || !a;
19772
+ let $ = 0, T = 0;
19773
+ const L = (V ? u[c].column ?? 0 : c) + (k && typeof o > "u" ? -B / 2 + 0.5 : 0);
19774
+ if (L < I) {
19775
+ $ = Math.max(I - L, M);
19776
+ for (let F = 0; F < I - L; F += 1) {
19710
19777
  const z = F - Math.floor(F / N) * N;
19711
19778
  if (V) {
19712
19779
  const W = N - z - 1;
19713
- for (let q = u.length - 1; q >= 0; q -= 1)
19714
- u[q].column === W && L.push(q);
19780
+ for (let j = u.length - 1; j >= 0; j -= 1)
19781
+ u[j].column === W && D.push(j);
19715
19782
  } else
19716
- L.push(N - z - 1);
19783
+ D.push(N - z - 1);
19717
19784
  }
19718
- } else if (D + B > N - I) {
19719
- E = Math.max(D - (N - I * 2), M), O && (E = Math.max(E, B - N + C + 1));
19720
- for (let F = 0; F < E; F += 1) {
19785
+ } else if (L + B > N - I) {
19786
+ T = Math.max(L - (N - I * 2), M), P && (T = Math.max(T, B - N + C + 1));
19787
+ for (let F = 0; F < T; F += 1) {
19721
19788
  const z = F - Math.floor(F / N) * N;
19722
- V ? u.forEach((W, q) => {
19723
- W.column === z && A.push(q);
19724
- }) : A.push(z);
19789
+ V ? u.forEach((W, j) => {
19790
+ W.column === z && O.push(j);
19791
+ }) : O.push(z);
19725
19792
  }
19726
19793
  }
19727
19794
  if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
19728
19795
  d.__preventObserver__ = !1;
19729
- }), d.params.effect === "cards" && u.length < B + I * 2 && (A.includes(c) && A.splice(A.indexOf(c), 1), L.includes(c) && L.splice(L.indexOf(c), 1)), R && L.forEach((F) => {
19796
+ }), d.params.effect === "cards" && u.length < B + I * 2 && (O.includes(c) && O.splice(O.indexOf(c), 1), D.includes(c) && D.splice(D.indexOf(c), 1)), R && D.forEach((F) => {
19730
19797
  const z = u[F];
19731
19798
  z.swiperLoopMoveDOM = !0, m.prepend(z), z.swiperLoopMoveDOM = !1;
19732
- }), T && A.forEach((F) => {
19799
+ }), E && O.forEach((F) => {
19733
19800
  const z = u[F];
19734
19801
  z.swiperLoopMoveDOM = !0, m.append(z), z.swiperLoopMoveDOM = !1;
19735
- }), d.recalcSlides(), g.slidesPerView === "auto" ? d.updateSlides() : V && (L.length > 0 && R || A.length > 0 && T) && d.slides.forEach((F, z) => {
19802
+ }), d.recalcSlides(), g.slidesPerView === "auto" ? d.updateSlides() : V && (D.length > 0 && R || O.length > 0 && E) && d.slides.forEach((F, z) => {
19736
19803
  d.grid.updateSlide(z, F, d.slides);
19737
19804
  }), g.watchSlidesProgress && d.updateSlidesOffset(), n) {
19738
- if (L.length > 0 && R) {
19805
+ if (D.length > 0 && R) {
19739
19806
  if (typeof t > "u") {
19740
19807
  const F = d.slidesGrid[w], W = d.slidesGrid[w + $] - F;
19741
19808
  l ? d.setTranslate(d.translate - W) : (d.slideTo(w + Math.ceil($), 0, !1, !0), o && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - W, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - W));
19742
19809
  } else if (o) {
19743
- const F = V ? L.length / g.grid.rows : L.length;
19810
+ const F = V ? D.length / g.grid.rows : D.length;
19744
19811
  d.slideTo(d.activeIndex + F, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
19745
19812
  }
19746
- } else if (A.length > 0 && T)
19813
+ } else if (O.length > 0 && E)
19747
19814
  if (typeof t > "u") {
19748
- const F = d.slidesGrid[w], W = d.slidesGrid[w - E] - F;
19749
- l ? d.setTranslate(d.translate - W) : (d.slideTo(w - E, 0, !1, !0), o && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - W, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - W));
19815
+ const F = d.slidesGrid[w], W = d.slidesGrid[w - T] - F;
19816
+ l ? d.setTranslate(d.translate - W) : (d.slideTo(w - T, 0, !1, !0), o && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - W, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - W));
19750
19817
  } else {
19751
- const F = V ? A.length / g.grid.rows : A.length;
19818
+ const F = V ? O.length / g.grid.rows : O.length;
19752
19819
  d.slideTo(d.activeIndex - F, 0, !1, !0);
19753
19820
  }
19754
19821
  }
19755
19822
  d.allowSlidePrev = f, d.allowSlideNext = p;
19756
- const P = d.controller?.control;
19757
- if (P && !i) {
19823
+ const A = d.controller?.control;
19824
+ if (A && !i) {
19758
19825
  const F = {
19759
19826
  slideRealIndex: t,
19760
19827
  direction: a,
@@ -19762,14 +19829,14 @@ function loopFix(e = {}) {
19762
19829
  activeSlideIndex: c,
19763
19830
  byController: !0
19764
19831
  };
19765
- Array.isArray(P) ? P.forEach((z) => {
19832
+ Array.isArray(A) ? A.forEach((z) => {
19766
19833
  !z.destroyed && z.params.loop && z.loopFix({
19767
19834
  ...F,
19768
19835
  slideTo: z.params.slidesPerView === g.slidesPerView ? n : !1
19769
19836
  });
19770
- }) : P instanceof d.constructor && P.params.loop && P.loopFix({
19837
+ }) : A instanceof d.constructor && A.params.loop && A.loopFix({
19771
19838
  ...F,
19772
- slideTo: P.params.slidesPerView === g.slidesPerView ? n : !1
19839
+ slideTo: A.params.slidesPerView === g.slidesPerView ? n : !1
19773
19840
  });
19774
19841
  }
19775
19842
  d.emit("loopFix");
@@ -19939,8 +20006,8 @@ function slideTo(e = 0, t, n = !0, a, o) {
19939
20006
  const _ = -l[b];
19940
20007
  if (i.normalizeSlideIndex)
19941
20008
  for (let I = 0; I < c.length; I += 1) {
19942
- const V = -Math.floor(_ * 100), L = Math.floor(c[I] * 100), A = Math.floor(c[I + 1] * 100);
19943
- typeof c[I + 1] < "u" ? V >= L && V < A - (A - L) / 2 ? s = I : V >= L && V < A && (s = I + 1) : V >= L && (s = I);
20009
+ const V = -Math.floor(_ * 100), D = Math.floor(c[I] * 100), O = Math.floor(c[I + 1] * 100);
20010
+ typeof c[I + 1] < "u" ? V >= D && V < O - (O - D) / 2 ? s = I : V >= D && V < O && (s = I + 1) : V >= D && (s = I);
19944
20011
  }
19945
20012
  if (r.initialized && s !== u && (!r.allowSlideNext && (f ? _ > r.translate && _ > r.minTranslate() : _ < r.translate && _ < r.minTranslate()) || !r.allowSlidePrev && _ > r.translate && _ > r.maxTranslate() && (u || 0) !== s))
19946
20013
  return !1;
@@ -20262,8 +20329,8 @@ function updateSize() {
20262
20329
  }
20263
20330
  function updateSlides() {
20264
20331
  const e = this;
20265
- function t(N, O) {
20266
- return parseFloat(N.getPropertyValue(e.getDirectionLabel(O)) || "0");
20332
+ function t(N, P) {
20333
+ return parseFloat(N.getPropertyValue(e.getDirectionLabel(P)) || "0");
20267
20334
  }
20268
20335
  const n = e.params, { wrapperEl: a, slidesEl: o, rtlTranslate: r, wrongRTL: s } = e, i = !!(e.virtual && n.virtual?.enabled), l = i ? e.virtual.slides.length : e.slides.length, c = elementChildren(o, `.${e.params.slideClass}, swiper-slide`), d = i ? e.virtual.slides.length : c.length;
20269
20336
  let u = [];
@@ -20276,69 +20343,69 @@ function updateSlides() {
20276
20343
  }), n.centeredSlides && n.cssMode && (setCSSProperty(a, "--swiper-centered-offset-before", ""), setCSSProperty(a, "--swiper-centered-offset-after", "")), n.cssMode && (setCSSProperty(a, "--swiper-slides-offset-before", `${g}px`), setCSSProperty(a, "--swiper-slides-offset-after", `${b}px`));
20277
20344
  const V = n.grid && n.grid.rows > 1 && e.grid;
20278
20345
  V ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
20279
- let L = 0;
20280
- const A = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((N) => typeof n.breakpoints[N]?.slidesPerView < "u").length > 0;
20346
+ let D = 0;
20347
+ const O = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((N) => typeof n.breakpoints[N]?.slidesPerView < "u").length > 0;
20281
20348
  for (let N = 0; N < d; N += 1) {
20282
- L = 0;
20283
- const O = c[N];
20284
- if (!(O && (V && e.grid.updateSlide(N, O, c), elementStyle(O, "display") === "none"))) {
20349
+ D = 0;
20350
+ const P = c[N];
20351
+ if (!(P && (V && e.grid.updateSlide(N, P, c), elementStyle(P, "display") === "none"))) {
20285
20352
  if (i && n.slidesPerView === "auto")
20286
- n.virtual?.slidesPerViewAutoSlideSize && (L = n.virtual.slidesPerViewAutoSlideSize), L && O && (n.roundLengths && (L = Math.floor(L)), O.style[e.getDirectionLabel("width")] = `${L}px`);
20353
+ n.virtual?.slidesPerViewAutoSlideSize && (D = n.virtual.slidesPerViewAutoSlideSize), D && P && (n.roundLengths && (D = Math.floor(D)), P.style[e.getDirectionLabel("width")] = `${D}px`);
20287
20354
  else if (n.slidesPerView === "auto") {
20288
- A && (O.style[e.getDirectionLabel("width")] = "");
20289
- const w = getComputedStyle(O), T = O.style.transform, R = O.style.webkitTransform;
20290
- if (T && (O.style.transform = "none"), R && (O.style.webkitTransform = "none"), n.roundLengths)
20291
- L = e.isHorizontal() ? elementOuterSize(O, "width") : elementOuterSize(O, "height");
20355
+ O && (P.style[e.getDirectionLabel("width")] = "");
20356
+ const w = getComputedStyle(P), E = P.style.transform, R = P.style.webkitTransform;
20357
+ if (E && (P.style.transform = "none"), R && (P.style.webkitTransform = "none"), n.roundLengths)
20358
+ D = e.isHorizontal() ? elementOuterSize(P, "width") : elementOuterSize(P, "height");
20292
20359
  else {
20293
- const $ = t(w, "width"), E = t(w, "padding-left"), S = t(w, "padding-right"), D = t(w, "margin-left"), P = t(w, "margin-right"), F = w.getPropertyValue("box-sizing");
20360
+ const $ = t(w, "width"), T = t(w, "padding-left"), S = t(w, "padding-right"), L = t(w, "margin-left"), A = t(w, "margin-right"), F = w.getPropertyValue("box-sizing");
20294
20361
  if (F && F === "border-box")
20295
- L = $ + D + P;
20362
+ D = $ + L + A;
20296
20363
  else {
20297
- const { clientWidth: z, offsetWidth: W } = O;
20298
- L = $ + E + S + D + P + (W - z);
20364
+ const { clientWidth: z, offsetWidth: W } = P;
20365
+ D = $ + T + S + L + A + (W - z);
20299
20366
  }
20300
20367
  }
20301
- T && (O.style.transform = T), R && (O.style.webkitTransform = R), n.roundLengths && (L = Math.floor(L));
20368
+ E && (P.style.transform = E), R && (P.style.webkitTransform = R), n.roundLengths && (D = Math.floor(D));
20302
20369
  } else
20303
- L = (C - (n.slidesPerView - 1) * k) / n.slidesPerView, n.roundLengths && (L = Math.floor(L)), O && (O.style[e.getDirectionLabel("width")] = `${L}px`);
20304
- O && (O.swiperSlideSize = L), p.push(L), n.centeredSlides ? (B = B + L / 2 + M / 2 + k, M === 0 && N !== 0 && (B = B - C / 2 - k), N === 0 && (B = B - C / 2 - k), Math.abs(B) < 1 / 1e3 && (B = 0), n.roundLengths && (B = Math.floor(B)), I % n.slidesPerGroup === 0 && u.push(B), f.push(B)) : (n.roundLengths && (B = Math.floor(B)), (I - Math.min(e.params.slidesPerGroupSkip, I)) % e.params.slidesPerGroup === 0 && u.push(B), f.push(B), B = B + L + k), e.virtualSize += L + k, M = L, I += 1;
20370
+ D = (C - (n.slidesPerView - 1) * k) / n.slidesPerView, n.roundLengths && (D = Math.floor(D)), P && (P.style[e.getDirectionLabel("width")] = `${D}px`);
20371
+ P && (P.swiperSlideSize = D), p.push(D), n.centeredSlides ? (B = B + D / 2 + M / 2 + k, M === 0 && N !== 0 && (B = B - C / 2 - k), N === 0 && (B = B - C / 2 - k), Math.abs(B) < 1 / 1e3 && (B = 0), n.roundLengths && (B = Math.floor(B)), I % n.slidesPerGroup === 0 && u.push(B), f.push(B)) : (n.roundLengths && (B = Math.floor(B)), (I - Math.min(e.params.slidesPerGroupSkip, I)) % e.params.slidesPerGroup === 0 && u.push(B), f.push(B), B = B + D + k), e.virtualSize += D + k, M = D, I += 1;
20305
20372
  }
20306
20373
  }
20307
- if (e.virtualSize = Math.max(e.virtualSize, C) + b, r && s && (n.effect === "slide" || n.effect === "coverflow") && (a.style.width = `${e.virtualSize + k}px`), n.setWrapperSize && (a.style[e.getDirectionLabel("width")] = `${e.virtualSize + k}px`), V && e.grid.updateWrapperSize(L, u), !n.centeredSlides) {
20308
- const N = n.slidesPerView !== "auto" && n.slidesPerView % 1 !== 0, O = n.snapToSlideEdge && !n.loop && (n.slidesPerView === "auto" || N);
20374
+ if (e.virtualSize = Math.max(e.virtualSize, C) + b, r && s && (n.effect === "slide" || n.effect === "coverflow") && (a.style.width = `${e.virtualSize + k}px`), n.setWrapperSize && (a.style[e.getDirectionLabel("width")] = `${e.virtualSize + k}px`), V && e.grid.updateWrapperSize(D, u), !n.centeredSlides) {
20375
+ const N = n.slidesPerView !== "auto" && n.slidesPerView % 1 !== 0, P = n.snapToSlideEdge && !n.loop && (n.slidesPerView === "auto" || N);
20309
20376
  let w = u.length;
20310
- if (O) {
20377
+ if (P) {
20311
20378
  let R;
20312
20379
  if (n.slidesPerView === "auto") {
20313
20380
  R = 1;
20314
20381
  let $ = 0;
20315
- for (let E = p.length - 1; E >= 0 && ($ += p[E] + (E < p.length - 1 ? k : 0), $ <= C); E -= 1)
20316
- R = p.length - E;
20382
+ for (let T = p.length - 1; T >= 0 && ($ += p[T] + (T < p.length - 1 ? k : 0), $ <= C); T -= 1)
20383
+ R = p.length - T;
20317
20384
  } else
20318
20385
  R = Math.floor(n.slidesPerView);
20319
20386
  w = Math.max(d - R, 0);
20320
20387
  }
20321
- const T = [];
20388
+ const E = [];
20322
20389
  for (let R = 0; R < u.length; R += 1) {
20323
20390
  let $ = u[R];
20324
- n.roundLengths && ($ = Math.floor($)), O ? R <= w && T.push($) : u[R] <= e.virtualSize - C && T.push($);
20391
+ n.roundLengths && ($ = Math.floor($)), P ? R <= w && E.push($) : u[R] <= e.virtualSize - C && E.push($);
20325
20392
  }
20326
- u = T, Math.floor(e.virtualSize - C) - Math.floor(u[u.length - 1]) > 1 && (O || u.push(e.virtualSize - C));
20393
+ u = E, Math.floor(e.virtualSize - C) - Math.floor(u[u.length - 1]) > 1 && (P || u.push(e.virtualSize - C));
20327
20394
  }
20328
20395
  if (i && n.loop) {
20329
- const N = p[0] + k, O = e.virtual.slidesBefore ?? 0, w = e.virtual.slidesAfter ?? 0, T = O + w;
20396
+ const N = p[0] + k, P = e.virtual.slidesBefore ?? 0, w = e.virtual.slidesAfter ?? 0, E = P + w;
20330
20397
  if (n.slidesPerGroup > 1) {
20331
- const R = Math.ceil(T / n.slidesPerGroup), $ = N * n.slidesPerGroup;
20332
- for (let E = 0; E < R; E += 1)
20398
+ const R = Math.ceil(E / n.slidesPerGroup), $ = N * n.slidesPerGroup;
20399
+ for (let T = 0; T < R; T += 1)
20333
20400
  u.push(u[u.length - 1] + $);
20334
20401
  }
20335
- for (let R = 0; R < T; R += 1)
20402
+ for (let R = 0; R < E; R += 1)
20336
20403
  n.slidesPerGroup === 1 && u.push(u[u.length - 1] + N), f.push(f[f.length - 1] + N), e.virtualSize += N;
20337
20404
  }
20338
20405
  if (u.length === 0 && (u = [0]), k !== 0) {
20339
20406
  const N = e.isHorizontal() && r ? "marginLeft" : e.getDirectionLabel("marginRight");
20340
- c.filter((O, w) => !n.cssMode || n.loop ? !0 : w !== c.length - 1).forEach((O) => {
20341
- O.style[N] = `${k}px`;
20407
+ c.filter((P, w) => !n.cssMode || n.loop ? !0 : w !== c.length - 1).forEach((P) => {
20408
+ P.style[N] = `${k}px`;
20342
20409
  });
20343
20410
  }
20344
20411
  if (n.centeredSlides && n.centeredSlidesBounds) {
@@ -20346,19 +20413,19 @@ function updateSlides() {
20346
20413
  p.forEach((w) => {
20347
20414
  N += w + (k || 0);
20348
20415
  }), N -= k;
20349
- const O = N > C ? N - C : 0;
20350
- u = u.map((w) => w <= 0 ? -g : w > O ? O + b : w);
20416
+ const P = N > C ? N - C : 0;
20417
+ u = u.map((w) => w <= 0 ? -g : w > P ? P + b : w);
20351
20418
  }
20352
20419
  if (n.centerInsufficientSlides) {
20353
20420
  let N = 0;
20354
- if (p.forEach((O) => {
20355
- N += O + (k || 0);
20421
+ if (p.forEach((P) => {
20422
+ N += P + (k || 0);
20356
20423
  }), N -= k, N < C) {
20357
- const O = (C - N) / 2;
20358
- u.forEach((w, T) => {
20359
- u[T] = w - O;
20360
- }), f.forEach((w, T) => {
20361
- f[T] = w + O;
20424
+ const P = (C - N) / 2;
20425
+ u.forEach((w, E) => {
20426
+ u[E] = w - P;
20427
+ }), f.forEach((w, E) => {
20428
+ f[E] = w + P;
20362
20429
  });
20363
20430
  }
20364
20431
  }
@@ -20369,12 +20436,12 @@ function updateSlides() {
20369
20436
  slidesSizesGrid: p
20370
20437
  }), n.centeredSlides && n.cssMode && !n.centeredSlidesBounds) {
20371
20438
  setCSSProperty(a, "--swiper-centered-offset-before", `${-u[0]}px`), setCSSProperty(a, "--swiper-centered-offset-after", `${e.size / 2 - p[p.length - 1] / 2}px`);
20372
- const N = -e.snapGrid[0], O = -e.slidesGrid[0];
20373
- e.snapGrid = e.snapGrid.map((w) => w + N), e.slidesGrid = e.slidesGrid.map((w) => w + O);
20439
+ const N = -e.snapGrid[0], P = -e.slidesGrid[0];
20440
+ e.snapGrid = e.snapGrid.map((w) => w + N), e.slidesGrid = e.slidesGrid.map((w) => w + P);
20374
20441
  }
20375
20442
  if (d !== l && e.emit("slidesLengthChange"), u.length !== _ && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), f.length !== v && e.emit("slidesGridLengthChange"), n.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !i && !n.cssMode && (n.effect === "slide" || n.effect === "fade")) {
20376
- const N = `${n.containerModifierClass}backface-hidden`, O = e.el.classList.contains(N);
20377
- d <= n.maxBackfaceHiddenSlides ? O || e.el.classList.add(N) : O && e.el.classList.remove(N);
20443
+ const N = `${n.containerModifierClass}backface-hidden`, P = e.el.classList.contains(N);
20444
+ d <= n.maxBackfaceHiddenSlides ? P || e.el.classList.add(N) : P && e.el.classList.remove(N);
20378
20445
  }
20379
20446
  }
20380
20447
  const toggleSlideClasses$1 = (e, t, n) => {
@@ -20444,7 +20511,7 @@ const prototypes = {
20444
20511
  checkOverflow: checkOverflow$1,
20445
20512
  classes
20446
20513
  }, extendedDefaults = {};
20447
- let Swiper$1 = class ve {
20514
+ let Swiper$1 = class Ce {
20448
20515
  static extendedDefaults;
20449
20516
  static defaults;
20450
20517
  constructor(...t) {
@@ -20453,7 +20520,7 @@ let Swiper$1 = class ve {
20453
20520
  const i = [];
20454
20521
  return document.querySelectorAll(a.el).forEach((l) => {
20455
20522
  const c = extend$1({}, a, { el: l });
20456
- i.push(new ve(c));
20523
+ i.push(new Ce(c));
20457
20524
  }), i;
20458
20525
  }
20459
20526
  const o = this;
@@ -20775,12 +20842,12 @@ let Swiper$1 = class ve {
20775
20842
  extend$1(extendedDefaults, t);
20776
20843
  }
20777
20844
  static installModule(t) {
20778
- ve.prototype.__modules__ || (ve.prototype.__modules__ = []);
20779
- const n = ve.prototype.__modules__;
20845
+ Ce.prototype.__modules__ || (Ce.prototype.__modules__ = []);
20846
+ const n = Ce.prototype.__modules__;
20780
20847
  typeof t == "function" && n.indexOf(t) < 0 && n.push(t);
20781
20848
  }
20782
20849
  static use(t) {
20783
- return Array.isArray(t) ? (t.forEach((n) => ve.installModule(n)), ve) : (ve.installModule(t), ve);
20850
+ return Array.isArray(t) ? (t.forEach((n) => Ce.installModule(n)), Ce) : (Ce.installModule(t), Ce);
20784
20851
  }
20785
20852
  };
20786
20853
  Object.defineProperty(Swiper$1, "extendedDefaults", {
@@ -21182,12 +21249,12 @@ const SWIPER_EVENTS = [
21182
21249
  const k = () => {
21183
21250
  getChildren(t, f, p), i.value = !0;
21184
21251
  };
21185
- v.onAny = (V, ...L) => {
21186
- n(V, ...L);
21252
+ v.onAny = (V, ...D) => {
21253
+ n(V, ...D);
21187
21254
  }, Object.assign(v.on, {
21188
21255
  _beforeBreakpoint: k,
21189
- _containerClasses(V, L) {
21190
- r.value = L;
21256
+ _containerClasses(V, D) {
21257
+ r.value = D;
21191
21258
  }
21192
21259
  });
21193
21260
  const B = { ...v };
@@ -21198,8 +21265,8 @@ const SWIPER_EVENTS = [
21198
21265
  const V = {
21199
21266
  cache: !1,
21200
21267
  slides: f.value,
21201
- renderExternal: (L) => {
21202
- s.value = L;
21268
+ renderExternal: (D) => {
21269
+ s.value = D;
21203
21270
  },
21204
21271
  renderExternalUpdate: !1
21205
21272
  };
@@ -21207,12 +21274,12 @@ const SWIPER_EVENTS = [
21207
21274
  }
21208
21275
  onUpdated(() => {
21209
21276
  !l.value && d.value && (d.value.emitSlidesClasses(), l.value = !0);
21210
- const { passedParams: V } = getParams(e, !1), L = getChangedParams(V, u.value, f.value, p.value, (A) => A.props ? A.props.key : void 0);
21211
- u.value = V, (L.length || i.value) && d.value && !d.value.destroyed && updateSwiper({
21277
+ const { passedParams: V } = getParams(e, !1), D = getChangedParams(V, u.value, f.value, p.value, (O) => O.props ? O.props.key : void 0);
21278
+ u.value = V, (D.length || i.value) && d.value && !d.value.destroyed && updateSwiper({
21212
21279
  swiper: d.value,
21213
21280
  slides: f.value,
21214
21281
  passedParams: V,
21215
- changedParams: L,
21282
+ changedParams: D,
21216
21283
  nextEl: m.value,
21217
21284
  prevEl: g.value,
21218
21285
  scrollbarEl: _.value,
@@ -21235,22 +21302,22 @@ const SWIPER_EVENTS = [
21235
21302
  d.value && !d.value.destroyed && d.value.destroy(!0, !1);
21236
21303
  });
21237
21304
  function I(V) {
21238
- return v.virtual ? renderVirtual(d, V, s.value) : (V.forEach((L, A) => {
21239
- const N = L.props ?? {};
21240
- N.swiperRef = d, N.swiperSlideIndex = A, L.props = N;
21305
+ return v.virtual ? renderVirtual(d, V, s.value) : (V.forEach((D, O) => {
21306
+ const N = D.props ?? {};
21307
+ N.swiperRef = d, N.swiperSlideIndex = O, D.props = N;
21241
21308
  }), V);
21242
21309
  }
21243
21310
  return () => {
21244
- const { slides: V, slots: L } = getChildren(t, f, p);
21311
+ const { slides: V, slots: D } = getChildren(t, f, p);
21245
21312
  return h(a, {
21246
21313
  ref: c,
21247
21314
  class: uniqueClasses(r.value)
21248
21315
  }, [
21249
- L["container-start"],
21316
+ D["container-start"],
21250
21317
  h(o, { class: wrapperClass(v.wrapperClass) }, [
21251
- L["wrapper-start"],
21318
+ D["wrapper-start"],
21252
21319
  I(V),
21253
- L["wrapper-end"]
21320
+ D["wrapper-end"]
21254
21321
  ]),
21255
21322
  needsNavigation(e) && [
21256
21323
  h("div", { ref: g, class: "swiper-button-prev" }),
@@ -21258,7 +21325,7 @@ const SWIPER_EVENTS = [
21258
21325
  ],
21259
21326
  needsScrollbar(e) && h("div", { ref: _, class: "swiper-scrollbar" }),
21260
21327
  needsPagination(e) && h("div", { ref: b, class: "swiper-pagination" }),
21261
- L["container-end"]
21328
+ D["container-end"]
21262
21329
  ]);
21263
21330
  };
21264
21331
  }
@@ -21490,9 +21557,9 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21490
21557
  const N = u();
21491
21558
  if (!N.el || !e.scrollbar.el)
21492
21559
  return;
21493
- const { scrollbar: O, rtlTranslate: w } = e, { dragEl: T, el: R } = O, $ = e.params.loop ? e.progressLoop ?? 0 : e.progress;
21494
- let E = l, S = (c - l) * $;
21495
- w ? (S = -S, S > 0 ? (E = l - S, S = 0) : -S + l > c && (E = c + S)) : S < 0 ? (E = l + S, S = 0) : S + l > c && (E = c - S), e.isHorizontal() ? (T.style.transform = `translate3d(${S}px, 0, 0)`, T.style.width = `${E}px`) : (T.style.transform = `translate3d(0px, ${S}px, 0)`, T.style.height = `${E}px`), N.hide && (r && clearTimeout(r), R.style.opacity = "1", r = setTimeout(() => {
21560
+ const { scrollbar: P, rtlTranslate: w } = e, { dragEl: E, el: R } = P, $ = e.params.loop ? e.progressLoop ?? 0 : e.progress;
21561
+ let T = l, S = (c - l) * $;
21562
+ w ? (S = -S, S > 0 ? (T = l - S, S = 0) : -S + l > c && (T = c + S)) : S < 0 ? (T = l + S, S = 0) : S + l > c && (T = c - S), e.isHorizontal() ? (E.style.transform = `translate3d(${S}px, 0, 0)`, E.style.width = `${T}px`) : (E.style.transform = `translate3d(0px, ${S}px, 0)`, E.style.height = `${T}px`), N.hide && (r && clearTimeout(r), R.style.opacity = "1", r = setTimeout(() => {
21496
21563
  R.style.opacity = "0", R.style.transitionDuration = "400ms";
21497
21564
  }, 1e3));
21498
21565
  }
@@ -21503,39 +21570,39 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21503
21570
  const N = u();
21504
21571
  if (!N.el || !e.scrollbar.el)
21505
21572
  return;
21506
- const { scrollbar: O } = e, { dragEl: w, el: T } = O;
21507
- w.style.width = "", w.style.height = "", c = e.isHorizontal() ? T.offsetWidth : T.offsetHeight, d = e.size / (e.virtualSize + (e.params.slidesOffsetBefore ?? 0) - (e.params.centeredSlides ? e.snapGrid[0] : 0)), N.dragSize === "auto" ? l = c * d : l = parseInt(String(N.dragSize), 10), e.isHorizontal() ? w.style.width = `${l}px` : w.style.height = `${l}px`, d >= 1 ? T.style.display = "none" : T.style.display = "", N.hide && (T.style.opacity = "0"), e.params.watchOverflow && e.enabled && O.el.classList[e.isLocked ? "add" : "remove"](N.lockClass);
21573
+ const { scrollbar: P } = e, { dragEl: w, el: E } = P;
21574
+ w.style.width = "", w.style.height = "", c = e.isHorizontal() ? E.offsetWidth : E.offsetHeight, d = e.size / (e.virtualSize + (e.params.slidesOffsetBefore ?? 0) - (e.params.centeredSlides ? e.snapGrid[0] : 0)), N.dragSize === "auto" ? l = c * d : l = parseInt(String(N.dragSize), 10), e.isHorizontal() ? w.style.width = `${l}px` : w.style.height = `${l}px`, d >= 1 ? E.style.display = "none" : E.style.display = "", N.hide && (E.style.opacity = "0"), e.params.watchOverflow && e.enabled && P.el.classList[e.isLocked ? "add" : "remove"](N.lockClass);
21508
21575
  }
21509
21576
  function g(N) {
21510
21577
  return e.isHorizontal() ? N.clientX ?? N.touches?.[0]?.clientX ?? 0 : N.clientY ?? N.touches?.[0]?.clientY ?? 0;
21511
21578
  }
21512
21579
  function b(N) {
21513
- const { scrollbar: O, rtlTranslate: w } = e, { el: T } = O;
21580
+ const { scrollbar: P, rtlTranslate: w } = e, { el: E } = P;
21514
21581
  let R;
21515
- R = (g(N) - elementOffset(T)[e.isHorizontal() ? "left" : "top"] - (i !== null ? i : l / 2)) / (c - l), R = Math.max(Math.min(R, 1), 0), w && (R = 1 - R);
21582
+ R = (g(N) - elementOffset(E)[e.isHorizontal() ? "left" : "top"] - (i !== null ? i : l / 2)) / (c - l), R = Math.max(Math.min(R, 1), 0), w && (R = 1 - R);
21516
21583
  const $ = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * R;
21517
21584
  e.updateProgress($), e.setTranslate($), e.updateActiveIndex(), e.updateSlidesClasses();
21518
21585
  }
21519
21586
  function _(N) {
21520
- const O = u(), { scrollbar: w, wrapperEl: T } = e, { el: R, dragEl: $ } = w;
21521
- o = !0, i = N.target === $ ? g(N) - N.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, N.preventDefault(), N.stopPropagation(), T.style.transitionDuration = "100ms", $.style.transitionDuration = "100ms", b(N), s && clearTimeout(s), R.style.transitionDuration = "0ms", O.hide && (R.style.opacity = "1"), e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "none"), a("scrollbarDragStart", N);
21587
+ const P = u(), { scrollbar: w, wrapperEl: E } = e, { el: R, dragEl: $ } = w;
21588
+ o = !0, i = N.target === $ ? g(N) - N.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, N.preventDefault(), N.stopPropagation(), E.style.transitionDuration = "100ms", $.style.transitionDuration = "100ms", b(N), s && clearTimeout(s), R.style.transitionDuration = "0ms", P.hide && (R.style.opacity = "1"), e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "none"), a("scrollbarDragStart", N);
21522
21589
  }
21523
21590
  function v(N) {
21524
- const { scrollbar: O, wrapperEl: w } = e, { el: T, dragEl: R } = O;
21525
- o && (N.cancelable && N.preventDefault(), b(N), w.style.transitionDuration = "0ms", T.style.transitionDuration = "0ms", R.style.transitionDuration = "0ms", a("scrollbarDragMove", N));
21591
+ const { scrollbar: P, wrapperEl: w } = e, { el: E, dragEl: R } = P;
21592
+ o && (N.cancelable && N.preventDefault(), b(N), w.style.transitionDuration = "0ms", E.style.transitionDuration = "0ms", R.style.transitionDuration = "0ms", a("scrollbarDragMove", N));
21526
21593
  }
21527
21594
  function C(N) {
21528
- const O = u(), { scrollbar: w, wrapperEl: T } = e, { el: R } = w;
21529
- o && (o = !1, e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "", T.style.transitionDuration = ""), O.hide && (s && clearTimeout(s), s = nextTick(() => {
21595
+ const P = u(), { scrollbar: w, wrapperEl: E } = e, { el: R } = w;
21596
+ o && (o = !1, e.params.cssMode && (e.wrapperEl.style.scrollSnapType = "", E.style.transitionDuration = ""), P.hide && (s && clearTimeout(s), s = nextTick(() => {
21530
21597
  R.style.opacity = "0", R.style.transitionDuration = "400ms";
21531
- }, 1e3)), a("scrollbarDragEnd", N), O.snapOnRelease && e.slideToClosest());
21598
+ }, 1e3)), a("scrollbarDragEnd", N), P.snapOnRelease && e.slideToClosest());
21532
21599
  }
21533
21600
  function k(N) {
21534
- const { scrollbar: O, params: w } = e, T = O.el;
21535
- if (!T)
21601
+ const { scrollbar: P, params: w } = e, E = P.el;
21602
+ if (!E)
21536
21603
  return;
21537
- const R = w.passiveListeners ? { passive: !1, capture: !1 } : !1, $ = w.passiveListeners ? { passive: !0, capture: !1 } : !1, E = N === "on" ? "addEventListener" : "removeEventListener";
21538
- T[E]("pointerdown", _, R), document[E]("pointermove", v, R), document[E]("pointerup", C, $);
21604
+ const R = w.passiveListeners ? { passive: !1, capture: !1 } : !1, $ = w.passiveListeners ? { passive: !0, capture: !1 } : !1, T = N === "on" ? "addEventListener" : "removeEventListener";
21605
+ E[T]("pointerdown", _, R), document[T]("pointermove", v, R), document[T]("pointerup", C, $);
21539
21606
  }
21540
21607
  function B() {
21541
21608
  !u().el || !e.scrollbar.el || k("on");
@@ -21544,18 +21611,18 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21544
21611
  !u().el || !e.scrollbar.el || k("off");
21545
21612
  }
21546
21613
  function I() {
21547
- const { scrollbar: N, el: O } = e;
21614
+ const { scrollbar: N, el: P } = e;
21548
21615
  e.params.scrollbar = createElementIfNotDefined(e, e.originalParams.scrollbar, e.params.scrollbar, { el: "swiper-scrollbar" });
21549
21616
  const w = u();
21550
21617
  if (!w.el)
21551
21618
  return;
21552
- let T;
21553
- if (typeof w.el == "string" && e.isElement && (T = e.el.querySelector(w.el)), !T && typeof w.el == "string") {
21554
- if (T = document.querySelectorAll(w.el), !T.length)
21619
+ let E;
21620
+ if (typeof w.el == "string" && e.isElement && (E = e.el.querySelector(w.el)), !E && typeof w.el == "string") {
21621
+ if (E = document.querySelectorAll(w.el), !E.length)
21555
21622
  return;
21556
- } else T || (T = w.el);
21557
- e.params.uniqueNavElements && typeof w.el == "string" && T.length > 1 && O.querySelectorAll(w.el).length === 1 && (T = O.querySelector(w.el)), T.length > 0 && (T = T[0]);
21558
- const R = T;
21623
+ } else E || (E = w.el);
21624
+ e.params.uniqueNavElements && typeof w.el == "string" && E.length > 1 && P.querySelectorAll(w.el).length === 1 && (E = P.querySelector(w.el)), E.length > 0 && (E = E[0]);
21625
+ const R = E;
21559
21626
  R.classList.add(e.isHorizontal() ? w.horizontalClass : w.verticalClass);
21560
21627
  let $ = null;
21561
21628
  R && ($ = R.querySelector(classesToSelector(w.dragClass)), $ || ($ = createElement("div", w.dragClass), R.append($))), Object.assign(N, {
@@ -21564,8 +21631,8 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21564
21631
  }), w.draggable && B(), R && R.classList[e.enabled ? "remove" : "add"](...classesToTokens(w.lockClass));
21565
21632
  }
21566
21633
  function V() {
21567
- const N = u(), O = e.scrollbar.el;
21568
- O && O.classList.remove(...classesToTokens(e.isHorizontal() ? N.horizontalClass : N.verticalClass)), M();
21634
+ const N = u(), P = e.scrollbar.el;
21635
+ P && P.classList.remove(...classesToTokens(e.isHorizontal() ? N.horizontalClass : N.verticalClass)), M();
21569
21636
  }
21570
21637
  n("changeDirection", () => {
21571
21638
  if (!e.scrollbar || !e.scrollbar.el)
@@ -21575,29 +21642,29 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21575
21642
  w.classList.remove(N.horizontalClass, N.verticalClass), w.classList.add(e.isHorizontal() ? N.horizontalClass : N.verticalClass);
21576
21643
  });
21577
21644
  }), n("init", () => {
21578
- u().enabled === !1 ? A() : (I(), m(), f());
21645
+ u().enabled === !1 ? O() : (I(), m(), f());
21579
21646
  }), n("update resize observerUpdate lock unlock changeDirection", () => {
21580
21647
  m();
21581
21648
  }), n("setTranslate", () => {
21582
21649
  f();
21583
- }), n("setTransition", (N, O) => {
21584
- p(O);
21650
+ }), n("setTransition", (N, P) => {
21651
+ p(P);
21585
21652
  }), n("enable disable", () => {
21586
21653
  const { el: N } = e.scrollbar;
21587
21654
  N && N.classList[e.enabled ? "remove" : "add"](...classesToTokens(u().lockClass));
21588
21655
  }), n("destroy", () => {
21589
21656
  V();
21590
21657
  });
21591
- const L = () => {
21658
+ const D = () => {
21592
21659
  const N = u();
21593
21660
  e.el.classList.remove(...classesToTokens(N.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.remove(...classesToTokens(N.scrollbarDisabledClass)), I(), m(), f();
21594
- }, A = () => {
21661
+ }, O = () => {
21595
21662
  const N = u();
21596
21663
  e.el.classList.add(...classesToTokens(N.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.add(...classesToTokens(N.scrollbarDisabledClass)), V();
21597
21664
  };
21598
21665
  Object.assign(e.scrollbar, {
21599
- enable: L,
21600
- disable: A,
21666
+ enable: D,
21667
+ disable: O,
21601
21668
  updateSize: m,
21602
21669
  setTranslate: f,
21603
21670
  init: I,
@@ -21631,12 +21698,12 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21631
21698
  return e.params.a11y;
21632
21699
  }
21633
21700
  function l($) {
21634
- const E = a;
21635
- !E || !$ || setInnerHTML(E, $);
21701
+ const T = a;
21702
+ !T || !$ || setInnerHTML(T, $);
21636
21703
  }
21637
21704
  function c($ = 16) {
21638
- const E = () => Math.round(16 * Math.random()).toString(16);
21639
- return "x".repeat($).replace(/x/g, E);
21705
+ const T = () => Math.round(16 * Math.random()).toString(16);
21706
+ return "x".repeat($).replace(/x/g, T);
21640
21707
  }
21641
21708
  function d($) {
21642
21709
  makeElementsArray($).forEach((S) => {
@@ -21648,29 +21715,29 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21648
21715
  S.setAttribute("tabIndex", "-1");
21649
21716
  });
21650
21717
  }
21651
- function f($, E) {
21652
- makeElementsArray($).forEach((D) => {
21653
- D.setAttribute("role", E);
21718
+ function f($, T) {
21719
+ makeElementsArray($).forEach((L) => {
21720
+ L.setAttribute("role", T);
21654
21721
  });
21655
21722
  }
21656
- function p($, E) {
21657
- makeElementsArray($).forEach((D) => {
21658
- D.setAttribute("aria-roledescription", E);
21723
+ function p($, T) {
21724
+ makeElementsArray($).forEach((L) => {
21725
+ L.setAttribute("aria-roledescription", T);
21659
21726
  });
21660
21727
  }
21661
- function m($, E) {
21662
- makeElementsArray($).forEach((D) => {
21663
- D.setAttribute("aria-label", E);
21728
+ function m($, T) {
21729
+ makeElementsArray($).forEach((L) => {
21730
+ L.setAttribute("aria-label", T);
21664
21731
  });
21665
21732
  }
21666
- function g($, E) {
21667
- makeElementsArray($).forEach((D) => {
21668
- D.setAttribute("id", E);
21733
+ function g($, T) {
21734
+ makeElementsArray($).forEach((L) => {
21735
+ L.setAttribute("id", T);
21669
21736
  });
21670
21737
  }
21671
- function b($, E) {
21672
- makeElementsArray($).forEach((D) => {
21673
- D.setAttribute("aria-live", E);
21738
+ function b($, T) {
21739
+ makeElementsArray($).forEach((L) => {
21740
+ L.setAttribute("aria-live", T);
21674
21741
  });
21675
21742
  }
21676
21743
  function _($) {
@@ -21686,20 +21753,20 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21686
21753
  function C($) {
21687
21754
  if ($.keyCode !== 13 && $.keyCode !== 32)
21688
21755
  return;
21689
- const E = i(), S = e.params.pagination, D = $.target;
21690
- if (!(e.pagination && e.pagination.el && (D === e.pagination.el || e.pagination.el.contains(D)) && !D.matches(classesToSelector(S?.bulletClass)))) {
21756
+ const T = i(), S = e.params.pagination, L = $.target;
21757
+ if (!(e.pagination && e.pagination.el && (L === e.pagination.el || e.pagination.el.contains(L)) && !L.matches(classesToSelector(S?.bulletClass)))) {
21691
21758
  if (e.navigation && e.navigation.prevEl && e.navigation.nextEl) {
21692
- const P = makeElementsArray(e.navigation.prevEl);
21693
- makeElementsArray(e.navigation.nextEl).includes(D) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? l(E.lastSlideMessage) : l(E.nextSlideMessage)), P.includes(D) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? l(E.firstSlideMessage) : l(E.prevSlideMessage));
21759
+ const A = makeElementsArray(e.navigation.prevEl);
21760
+ makeElementsArray(e.navigation.nextEl).includes(L) && (e.isEnd && !e.params.loop || e.slideNext(), e.isEnd ? l(T.lastSlideMessage) : l(T.nextSlideMessage)), A.includes(L) && (e.isBeginning && !e.params.loop || e.slidePrev(), e.isBeginning ? l(T.firstSlideMessage) : l(T.prevSlideMessage));
21694
21761
  }
21695
- e.pagination && D.matches(classesToSelector(S?.bulletClass)) && D.click();
21762
+ e.pagination && L.matches(classesToSelector(S?.bulletClass)) && L.click();
21696
21763
  }
21697
21764
  }
21698
21765
  function k() {
21699
21766
  if (e.params.loop || e.params.rewind || !e.navigation)
21700
21767
  return;
21701
- const { nextEl: $, prevEl: E } = e.navigation;
21702
- E && (e.isBeginning ? (_(E), u(E)) : (v(E), d(E))), $ && (e.isEnd ? (_($), u($)) : (v($), d($)));
21768
+ const { nextEl: $, prevEl: T } = e.navigation;
21769
+ T && (e.isBeginning ? (_(T), u(T)) : (v(T), d(T))), $ && (e.isEnd ? (_($), u($)) : (v($), d($)));
21703
21770
  }
21704
21771
  function B() {
21705
21772
  return !!(e.pagination && e.pagination.bullets && e.pagination.bullets.length);
@@ -21712,16 +21779,16 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21712
21779
  const $ = i();
21713
21780
  if (!B())
21714
21781
  return;
21715
- const E = e.params.pagination;
21782
+ const T = e.params.pagination;
21716
21783
  e.pagination.bullets.forEach((S) => {
21717
- E.clickable && (d(S), E.renderBullet || (f(S, "button"), m(S, $.paginationBulletMessage.replace(/\{\{index\}\}/, String((elementIndex(S) ?? 0) + 1))))), S.matches(classesToSelector(E.bulletActiveClass)) ? S.setAttribute("aria-current", "true") : S.removeAttribute("aria-current");
21784
+ T.clickable && (d(S), T.renderBullet || (f(S, "button"), m(S, $.paginationBulletMessage.replace(/\{\{index\}\}/, String((elementIndex(S) ?? 0) + 1))))), S.matches(classesToSelector(T.bulletActiveClass)) ? S.setAttribute("aria-current", "true") : S.removeAttribute("aria-current");
21718
21785
  });
21719
21786
  }
21720
- const V = ($, E, S) => {
21787
+ const V = ($, T, S) => {
21721
21788
  d($), $.tagName !== "BUTTON" && (f($, "button"), $.addEventListener("keydown", C)), m($, S);
21722
- }, L = ($) => {
21789
+ }, D = ($) => {
21723
21790
  r && r !== $.target && !r.contains($.target) && (o = !0), e.a11y.clicked = !0;
21724
- }, A = () => {
21791
+ }, O = () => {
21725
21792
  o = !1, requestAnimationFrame(() => {
21726
21793
  requestAnimationFrame(() => {
21727
21794
  e.destroyed || (e.a11y.clicked = !1);
@@ -21729,56 +21796,56 @@ const Scrollbar = ({ swiper: e, extendParams: t, on: n, emit: a }) => {
21729
21796
  });
21730
21797
  }, N = ($) => {
21731
21798
  s = (/* @__PURE__ */ new Date()).getTime();
21732
- }, O = ($) => {
21733
- const E = i();
21734
- if (e.a11y.clicked || !E.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - s < 100)
21799
+ }, P = ($) => {
21800
+ const T = i();
21801
+ if (e.a11y.clicked || !T.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - s < 100)
21735
21802
  return;
21736
- const D = $.target.closest(`.${e.params.slideClass}, swiper-slide`);
21737
- if (!D || !e.slides.includes(D))
21803
+ const L = $.target.closest(`.${e.params.slideClass}, swiper-slide`);
21804
+ if (!L || !e.slides.includes(L))
21738
21805
  return;
21739
- r = D;
21740
- const P = isVirtualEnabled(e), F = (P ? parseInt(D.getAttribute("data-swiper-slide-index") || "0", 10) : e.slides.indexOf(D)) === e.activeIndex, z = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(D);
21806
+ r = L;
21807
+ const A = isVirtualEnabled(e), F = (A ? parseInt(L.getAttribute("data-swiper-slide-index") || "0", 10) : e.slides.indexOf(L)) === e.activeIndex, z = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(L);
21741
21808
  if (F || z)
21742
21809
  return;
21743
21810
  const W = $.sourceCapabilities;
21744
21811
  W && W.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
21745
- o || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index") || "0", 10)), 0) : P ? e.slideTo(e.getSlideIndexWhenGrid(parseInt(D.getAttribute("data-swiper-slide-index") || "0", 10)), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(D)), 0), o = !1);
21812
+ o || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(L.getAttribute("data-swiper-slide-index") || "0", 10)), 0) : A ? e.slideTo(e.getSlideIndexWhenGrid(parseInt(L.getAttribute("data-swiper-slide-index") || "0", 10)), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(L)), 0), o = !1);
21746
21813
  }));
21747
21814
  }, w = () => {
21748
21815
  const $ = i();
21749
21816
  $.itemRoleDescriptionMessage && p(e.slides, $.itemRoleDescriptionMessage), $.slideRole && f(e.slides, $.slideRole);
21750
- const E = e.slides.length, S = $.slideLabelMessage;
21751
- S && e.slides.forEach((D, P) => {
21752
- const F = e.params.loop ? parseInt(D.getAttribute("data-swiper-slide-index") || "0", 10) : P, z = S.replace(/\{\{index\}\}/, String(F + 1)).replace(/\{\{slidesLength\}\}/, String(E));
21753
- m(D, z);
21817
+ const T = e.slides.length, S = $.slideLabelMessage;
21818
+ S && e.slides.forEach((L, A) => {
21819
+ const F = e.params.loop ? parseInt(L.getAttribute("data-swiper-slide-index") || "0", 10) : A, z = S.replace(/\{\{index\}\}/, String(F + 1)).replace(/\{\{slidesLength\}\}/, String(T));
21820
+ m(L, z);
21754
21821
  });
21755
- }, T = () => {
21822
+ }, E = () => {
21756
21823
  const $ = i();
21757
21824
  a && e.el.append(a);
21758
- const E = e.el;
21759
- $.containerRoleDescriptionMessage && p(E, $.containerRoleDescriptionMessage), $.containerMessage && m(E, $.containerMessage), $.containerRole && f(E, $.containerRole);
21760
- const S = e.wrapperEl, D = String($.id || S.getAttribute("id") || `swiper-wrapper-${c(16)}`);
21761
- if (g(S, D), $.wrapperLiveRegion) {
21762
- const W = e.params.autoplay, q = e.params.autoplay && W?.enabled ? "off" : "polite";
21763
- b(S, q);
21825
+ const T = e.el;
21826
+ $.containerRoleDescriptionMessage && p(T, $.containerRoleDescriptionMessage), $.containerMessage && m(T, $.containerMessage), $.containerRole && f(T, $.containerRole);
21827
+ const S = e.wrapperEl, L = String($.id || S.getAttribute("id") || `swiper-wrapper-${c(16)}`);
21828
+ if (g(S, L), $.wrapperLiveRegion) {
21829
+ const W = e.params.autoplay, j = e.params.autoplay && W?.enabled ? "off" : "polite";
21830
+ b(S, j);
21764
21831
  }
21765
21832
  w();
21766
- const P = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, F = makeElementsArray(P.nextEl), z = makeElementsArray(P.prevEl);
21767
- F && F.forEach((W) => V(W, D, $.nextSlideMessage)), z && z.forEach((W) => V(W, D, $.prevSlideMessage)), M() && makeElementsArray(e.pagination.el).forEach((q) => {
21768
- q.addEventListener("keydown", C);
21769
- }), document.addEventListener("visibilitychange", N), e.el.addEventListener("focus", O, !0), e.el.addEventListener("pointerdown", L, !0), e.el.addEventListener("pointerup", A, !0);
21833
+ const A = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, F = makeElementsArray(A.nextEl), z = makeElementsArray(A.prevEl);
21834
+ F && F.forEach((W) => V(W, L, $.nextSlideMessage)), z && z.forEach((W) => V(W, L, $.prevSlideMessage)), M() && makeElementsArray(e.pagination.el).forEach((j) => {
21835
+ j.addEventListener("keydown", C);
21836
+ }), document.addEventListener("visibilitychange", N), e.el.addEventListener("focus", P, !0), e.el.addEventListener("pointerdown", D, !0), e.el.addEventListener("pointerup", O, !0);
21770
21837
  };
21771
21838
  function R() {
21772
21839
  a && a.remove();
21773
- const $ = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, E = makeElementsArray($.nextEl), S = makeElementsArray($.prevEl);
21774
- E && E.forEach((D) => D.removeEventListener("keydown", C)), S && S.forEach((D) => D.removeEventListener("keydown", C)), M() && makeElementsArray(e.pagination.el).forEach((P) => {
21775
- P.removeEventListener("keydown", C);
21776
- }), document.removeEventListener("visibilitychange", N), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", O, !0), e.el.removeEventListener("pointerdown", L, !0), e.el.removeEventListener("pointerup", A, !0));
21840
+ const $ = e.navigation ? e.navigation : { nextEl: void 0, prevEl: void 0 }, T = makeElementsArray($.nextEl), S = makeElementsArray($.prevEl);
21841
+ T && T.forEach((L) => L.removeEventListener("keydown", C)), S && S.forEach((L) => L.removeEventListener("keydown", C)), M() && makeElementsArray(e.pagination.el).forEach((A) => {
21842
+ A.removeEventListener("keydown", C);
21843
+ }), document.removeEventListener("visibilitychange", N), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", P, !0), e.el.removeEventListener("pointerdown", D, !0), e.el.removeEventListener("pointerup", O, !0));
21777
21844
  }
21778
21845
  n("beforeInit", () => {
21779
21846
  a = createElement("span", i().notificationClass), a.setAttribute("aria-live", "assertive"), a.setAttribute("aria-atomic", "true");
21780
21847
  }), n("afterInit", () => {
21781
- i().enabled && T();
21848
+ i().enabled && E();
21782
21849
  }), n("slidesLengthChange snapGridLengthChange slidesGridLengthChange", () => {
21783
21850
  i().enabled && w();
21784
21851
  }), n("fromEdge toEdge afterInit lock unlock", () => {
@@ -24795,10 +24862,10 @@ function requireCommon() {
24795
24862
  if (I === "%%")
24796
24863
  return "%";
24797
24864
  B++;
24798
- const L = a.formatters[V];
24799
- if (typeof L == "function") {
24800
- const A = _[B];
24801
- I = L.call(v, A), _.splice(B, 1), B--;
24865
+ const D = a.formatters[V];
24866
+ if (typeof D == "function") {
24867
+ const O = _[B];
24868
+ I = D.call(v, O), _.splice(B, 1), B--;
24802
24869
  }
24803
24870
  return I;
24804
24871
  }), a.formatArgs.call(v, _), (v.log || a.log).apply(v, _);
@@ -25093,10 +25160,10 @@ function requireYouTubePlayer() {
25093
25160
  Array.isArray(C.acceptableStates) && !C.acceptableStates.includes(k) ? new Promise((M) => {
25094
25161
  const I = () => {
25095
25162
  const V = v.getPlayerState();
25096
- let L;
25097
- typeof C.timeout == "number" && (L = setTimeout(() => {
25163
+ let D;
25164
+ typeof C.timeout == "number" && (D = setTimeout(() => {
25098
25165
  v.removeEventListener("onStateChange", I), M();
25099
- }, C.timeout)), Array.isArray(C.acceptableStates) && C.acceptableStates.includes(V) && (v.removeEventListener("onStateChange", I), clearTimeout(L), M());
25166
+ }, C.timeout)), Array.isArray(C.acceptableStates) && C.acceptableStates.includes(V) && (v.removeEventListener("onStateChange", I), clearTimeout(D), M());
25100
25167
  };
25101
25168
  v.addEventListener("onStateChange", I);
25102
25169
  }).then(() => B) : B;
@@ -33436,10 +33503,10 @@ const _hoisted_1$t = {
33436
33503
  size: "sm"
33437
33504
  }),
33438
33505
  withDirectives(createElementVNode("ul", mergeProps(v(), toHandlers(C(), !0), { class: "vs-autocomplete__list" }), [
33439
- (openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (V, L) => (openBlock(), createElementBlock("li", mergeProps({
33506
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.value, (V, D) => (openBlock(), createElementBlock("li", mergeProps({
33440
33507
  key: V.id
33441
- }, { ref_for: !0 }, k({ item: V, index: L }), toHandlers(B({ item: V, index: L }), !0), {
33442
- class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": b === L }]
33508
+ }, { ref_for: !0 }, k({ item: V, index: D }), toHandlers(B({ item: V, index: D }), !0), {
33509
+ class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": b === D }]
33443
33510
  }), toDisplayString(V[c.value]), 17))), 128))
33444
33511
  ], 16), [
33445
33512
  [vShow, _]
@@ -33711,28 +33778,28 @@ const _hoisted_1$t = {
33711
33778
  }
33712
33779
  return "https://www.visitscotland.com";
33713
33780
  }), p = computed$1(() => `${f.value}${u.value ? "/" + u.value : ""}${l.value}/search-results`), g = "https://www.visitscotland.com/data/locations" + `?locale=${u.value}`, b = ref([]), _ = "https://www.visitscotland.com/tms-api/v1/attractions", v = ref([]), C = "https://www.visitscotland.com/tms-api/v1/origins?active=1", k = ref([]), B = ref([]), M = () => {
33714
- const S = getProductTypes(), D = [];
33715
- S.forEach((P) => {
33716
- D.push(P);
33717
- }), B.value = D;
33718
- }, I = computed$1(() => n.value ? [] : B.value.map((D) => ({
33719
- ...D,
33720
- text: getProductName(D.value, D.text)
33781
+ const S = getProductTypes(), L = [];
33782
+ S.forEach((A) => {
33783
+ L.push(A);
33784
+ }), B.value = L;
33785
+ }, I = computed$1(() => n.value ? [] : B.value.map((L) => ({
33786
+ ...L,
33787
+ text: getProductName(L.value, L.text)
33721
33788
  }))), V = async () => {
33722
33789
  const S = await getData(g);
33723
33790
  S && (b.value = S.data);
33724
- }, L = async () => {
33791
+ }, D = async () => {
33725
33792
  const S = await getData(C);
33726
33793
  S && (k.value = S.data);
33727
- }, A = async () => {
33794
+ }, O = async () => {
33728
33795
  const S = await getData(_);
33729
33796
  S && (v.value = S.data);
33730
- }, N = (S, D) => {
33731
- D === "key" ? r.value = b.value.find((P) => P.key === S) : D === "id" ? r.value = b.value.find((P) => P.id === S) : r.value = b.value.find((P) => P.name === S.trim());
33732
- }, O = (S) => {
33733
- const D = S.value;
33734
- a.value = D, D === "tour" && (L(), A());
33735
- }, w = () => d[t.defaultLocale] || "", T = () => {
33797
+ }, N = (S, L) => {
33798
+ L === "key" ? r.value = b.value.find((A) => A.key === S) : L === "id" ? r.value = b.value.find((A) => A.id === S) : r.value = b.value.find((A) => A.name === S.trim());
33799
+ }, P = (S) => {
33800
+ const L = S.value;
33801
+ a.value = L, L === "tour" && (D(), O());
33802
+ }, w = () => d[t.defaultLocale] || "", E = () => {
33736
33803
  n.value = !0, nextTick$1(() => {
33737
33804
  n.value = !1, t.defaultLocation !== "" && c && N(t.defaultLocation, "id");
33738
33805
  });
@@ -33740,27 +33807,27 @@ const _hoisted_1$t = {
33740
33807
  onBeforeMount(async () => {
33741
33808
  window.VS = {};
33742
33809
  const S = document.createElement("script");
33743
- S.async = !1, S.onload = T, S.setAttribute("src", `https://www.visitscotland.com/${w().localeUrl}/data/template/search.js`), document.head.appendChild(S);
33810
+ S.async = !1, S.onload = E, S.setAttribute("src", `https://www.visitscotland.com/${w().localeUrl}/data/template/search.js`), document.head.appendChild(S);
33744
33811
  }), onMounted(async () => {
33745
- V(), c.value = !0, a.value = t.defaultProd, a.value === "tour" && (L(), A()), M();
33812
+ V(), c.value = !0, a.value = t.defaultProd, a.value === "tour" && (D(), O()), M();
33746
33813
  });
33747
33814
  const $ = (S) => {
33748
33815
  s.value = S ? "on" : "off";
33749
- }, E = (S) => {
33816
+ }, T = (S) => {
33750
33817
  i.value = !0;
33751
- const D = S.currentTarget;
33818
+ const L = S.currentTarget;
33752
33819
  setTimeout(function() {
33753
- D.submit();
33820
+ L.submit();
33754
33821
  }, 500);
33755
33822
  };
33756
- return (S, D) => (openBlock(), createElementBlock("div", _hoisted_1$q, [
33823
+ return (S, L) => (openBlock(), createElementBlock("div", _hoisted_1$q, [
33757
33824
  n.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_2$i, [
33758
33825
  createElementVNode("div", _hoisted_3$b, [
33759
33826
  createElementVNode("div", _hoisted_4$a, [
33760
33827
  unref(c) ? (openBlock(), createElementBlock("form", {
33761
33828
  key: 0,
33762
33829
  action: p.value,
33763
- onSubmit: withModifiers(E, ["prevent"]),
33830
+ onSubmit: withModifiers(T, ["prevent"]),
33764
33831
  "accept-charset": "UTF-8",
33765
33832
  "data-test": "psw-form"
33766
33833
  }, [
@@ -33772,7 +33839,7 @@ const _hoisted_1$t = {
33772
33839
  createVNode(VsSelect, {
33773
33840
  options: I.value,
33774
33841
  value: e.defaultProd,
33775
- onUpdated: D[0] || (D[0] = (P) => O(P)),
33842
+ onUpdated: L[0] || (L[0] = (A) => P(A)),
33776
33843
  "field-name": "prodtypes"
33777
33844
  }, null, 8, ["options", "value"]),
33778
33845
  createElementVNode("div", _hoisted_8$6, toDisplayString(unref(getLabelText)("in", "in")), 1)
@@ -33788,7 +33855,7 @@ const _hoisted_1$t = {
33788
33855
  options: b.value,
33789
33856
  placeholder: unref(getLabelText)("location_placeholder", "Enter a location"),
33790
33857
  "track-by": "name",
33791
- onChangeValue: D[1] || (D[1] = (P) => N(P)),
33858
+ onChangeValue: L[1] || (L[1] = (A) => N(A)),
33792
33859
  "default-val": unref(r),
33793
33860
  "data-chromatic": "ignore"
33794
33861
  }, null, 8, ["label", "options", "placeholder", "default-val"])) : createCommentVNode("", !0),
@@ -33817,7 +33884,7 @@ const _hoisted_1$t = {
33817
33884
  createVNode(_sfc_main$B, {
33818
33885
  "start-label": unref(getLabelText)("startdate", "Start Date", "dates"),
33819
33886
  "end-label": unref(getLabelText)("enddate", "End Date", "dates"),
33820
- onDateUpdated: D[2] || (D[2] = (P) => $(P)),
33887
+ onDateUpdated: L[2] || (L[2] = (A) => $(A)),
33821
33888
  "default-dates": i.value,
33822
33889
  "selected-prod": a.value
33823
33890
  }, null, 8, ["start-label", "end-label", "default-dates", "selected-prod"]),
@@ -33830,7 +33897,7 @@ const _hoisted_1$t = {
33830
33897
  }, null, 8, ["placeholder"])
33831
33898
  ])) : createCommentVNode("", !0)
33832
33899
  ])) : createCommentVNode("", !0),
33833
- a.value === "acco" ? (openBlock(), createElementBlock("div", _hoisted_17$2, [...D[4] || (D[4] = [
33900
+ a.value === "acco" ? (openBlock(), createElementBlock("div", _hoisted_17$2, [...L[4] || (L[4] = [
33834
33901
  createElementVNode("input", {
33835
33902
  hidden: "true",
33836
33903
  name: "avail",
@@ -33849,10 +33916,10 @@ const _hoisted_1$t = {
33849
33916
  "track-by": "name",
33850
33917
  "is-tour-location": !0
33851
33918
  }, null, 8, ["label", "options", "placeholder"]),
33852
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.value, (P) => (openBlock(), createElementBlock("input", {
33919
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(o.value, (A) => (openBlock(), createElementBlock("input", {
33853
33920
  type: "hidden",
33854
33921
  name: "attractions[]",
33855
- value: P
33922
+ value: A
33856
33923
  }, null, 8, _hoisted_19))), 256)),
33857
33924
  createVNode(_sfc_main$D, {
33858
33925
  id: "tour-month",
@@ -33868,7 +33935,7 @@ const _hoisted_1$t = {
33868
33935
  class: "mt-150",
33869
33936
  "data-test": "psw-submit",
33870
33937
  type: "submit",
33871
- onClick: D[3] || (D[3] = (P) => S.trackSubmit(a.value, typeof unref(r) > "u" ? "" : unref(r)))
33938
+ onClick: L[3] || (L[3] = (A) => S.trackSubmit(a.value, typeof unref(r) > "u" ? "" : unref(r)))
33872
33939
  }, {
33873
33940
  default: withCtx(() => [
33874
33941
  createTextVNode(toDisplayString(unref(getLabelText)("search", "Search")), 1)
@@ -37682,16 +37749,16 @@ async function cludoAutocomplete(e, t) {
37682
37749
  }
37683
37750
  }
37684
37751
  const useFederatedSearchStore = defineStore("federatedSearch", () => {
37685
- const e = ref(null), t = ref(void 0), n = ref(!1), a = ref(1), o = ref(void 0), r = ref(!1), s = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), p = ref(void 0), m = ref(void 0), g = ref(void 0), b = ref(!1), _ = ref(""), v = ref(""), C = ref(void 0), k = ref(void 0), B = ref(void 0), M = ref(-1), I = ref(""), V = ref(""), L = ref(""), A = ref(0), N = ref(""), O = ref("or");
37752
+ const e = ref(null), t = ref(void 0), n = ref(!1), a = ref(1), o = ref(void 0), r = ref(!1), s = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), f = ref([]), p = ref(void 0), m = ref(void 0), g = ref(void 0), b = ref(!1), _ = ref(""), v = ref(""), C = ref(void 0), k = ref(void 0), B = ref(void 0), M = ref(-1), I = ref(""), V = ref(""), D = ref(""), O = ref(0), N = ref(""), P = ref("or");
37686
37753
  async function w($ = !1) {
37687
37754
  s.value = !0, $ || (M.value += 1);
37688
- const E = await cludoSearch(
37755
+ const T = await cludoSearch(
37689
37756
  l.value,
37690
37757
  t.value,
37691
37758
  a.value,
37692
37759
  c.value,
37693
37760
  d.value,
37694
- O.value
37761
+ P.value
37695
37762
  ), S = await eventSearch(
37696
37763
  o.value,
37697
37764
  l.value,
@@ -37703,22 +37770,22 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
37703
37770
  C.value,
37704
37771
  B.value,
37705
37772
  V.value,
37706
- L.value,
37707
- A.value,
37773
+ D.value,
37774
+ O.value,
37708
37775
  N.value
37709
37776
  );
37710
- i.value = [...E.results, ...S.results], m.value = E.totalResults, g.value = S.totalResults, p.value = E.totalResults + S.totalResults, s.value = !1;
37777
+ i.value = [...T.results, ...S.results], m.value = T.totalResults, g.value = S.totalResults, p.value = T.totalResults + S.totalResults, s.value = !1;
37711
37778
  }
37712
- async function T() {
37779
+ async function E() {
37713
37780
  return cludoAutocomplete(l.value, t.value);
37714
37781
  }
37715
- async function R($, E) {
37782
+ async function R($, T) {
37716
37783
  const S = new URL(window.location.href);
37717
- if (E ? I.value = "Autosuggestion" : I.value = "User input", l.value ? S.searchParams.set("search-term", l.value) : S.searchParams.delete("search-term"), d.value ? S.searchParams.set("category", encodeURIComponent(d.value)) : S.searchParams.delete("category"), f.value.length > 0 ? S.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : S.searchParams.delete("sub-category"), $ ? (a.value = 1, S.searchParams.set("page", a.value.toString())) : a.value && a.value > 1 ? S.searchParams.set("page", a.value.toString()) : S.searchParams.delete("page"), _.value ? S.searchParams.set("start-date", _.value) : S.searchParams.delete("start-date"), v.value ? S.searchParams.set("end-date", v.value) : S.searchParams.delete("end-date"), C.value ? S.searchParams.set("sort-by", C.value) : S.searchParams.delete("sort-by"), !b.value)
37784
+ if (T ? I.value = "Autosuggestion" : I.value = "User input", l.value ? S.searchParams.set("search-term", l.value) : S.searchParams.delete("search-term"), d.value ? S.searchParams.set("category", encodeURIComponent(d.value)) : S.searchParams.delete("category"), f.value.length > 0 ? S.searchParams.set("sub-category", encodeURIComponent(f.value.join(","))) : S.searchParams.delete("sub-category"), $ ? (a.value = 1, S.searchParams.set("page", a.value.toString())) : a.value && a.value > 1 ? S.searchParams.set("page", a.value.toString()) : S.searchParams.delete("page"), _.value ? S.searchParams.set("start-date", _.value) : S.searchParams.delete("start-date"), v.value ? S.searchParams.set("end-date", v.value) : S.searchParams.delete("end-date"), C.value ? S.searchParams.set("sort-by", C.value) : S.searchParams.delete("sort-by"), !b.value)
37718
37785
  window.history.pushState({}, "", S), await w();
37719
37786
  else {
37720
- const D = `${k.value}/${S.search}`;
37721
- window.location.href = D;
37787
+ const L = `${k.value}/${S.search}`;
37788
+ window.location.href = L;
37722
37789
  }
37723
37790
  }
37724
37791
  return {
@@ -37728,7 +37795,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
37728
37795
  cludoError: n,
37729
37796
  eventsApi: o,
37730
37797
  eventsApiError: r,
37731
- getAutoComplete: T,
37798
+ getAutoComplete: E,
37732
37799
  getSearchResults: w,
37733
37800
  isLoading: s,
37734
37801
  results: i,
@@ -37750,10 +37817,10 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
37750
37817
  searchInSessionCount: M,
37751
37818
  queryInput: I,
37752
37819
  postcode: V,
37753
- location: L,
37754
- radius: A,
37820
+ location: D,
37821
+ radius: O,
37755
37822
  postcodeareas: N,
37756
- cludoApiOperator: O
37823
+ cludoApiOperator: P
37757
37824
  };
37758
37825
  }), _hoisted_1$7 = { class: "vs-fed-filter" }, _hoisted_2$6 = { class: "vs-fed-filter__scroll-container" }, _hoisted_3$4 = ["id"], _sfc_main$7 = /* @__PURE__ */ Object.assign({
37759
37826
  status: "deprecated"
@@ -39627,18 +39694,18 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39627
39694
  }
39628
39695
  },
39629
39696
  setup(e) {
39630
- const t = dataLayerComposable(), n = e, a = ref(!1), o = ref(!1), r = n.categoryLabels.find((X) => X.id === "destinations"), s = r ? r.subCategory : null, i = computed$1(() => n.featuredPlaces.filter((X) => X.properties.category.id === L.selectedDestinationType));
39631
- provide("onFeaturedLocationClick", ce);
39697
+ const t = dataLayerComposable(), n = e, a = ref(!1), o = ref(!1), r = n.categoryLabels.find((U) => U.id === "destinations"), s = r ? r.subCategory : null, i = computed$1(() => n.featuredPlaces.filter((U) => U.properties.category.id === D.selectedDestinationType));
39698
+ provide("onFeaturedLocationClick", H);
39632
39699
  let l, c, d, u, f, p, m, g, b, _ = {}, v;
39633
- const C = ref(n.zoom), k = ref(!1), B = ref(), M = ref(), I = ref(void 0), V = ref(!1), L = useGoogleMapStore(), A = useMapCategoryStore(), N = ref(void 0);
39634
- let O;
39635
- const w = ref(void 0), T = {
39700
+ const C = ref(n.zoom), k = ref(!1), B = ref(), M = ref(), I = ref(void 0), V = ref(!1), D = useGoogleMapStore(), O = useMapCategoryStore(), N = ref(void 0);
39701
+ let P;
39702
+ const w = ref(void 0), E = {
39636
39703
  north: 61.3,
39637
39704
  south: 54.6,
39638
39705
  west: -8.7,
39639
39706
  east: 2
39640
39707
  };
39641
- L.categoryLabelData = n.categoryLabels;
39708
+ D.categoryLabelData = n.categoryLabels;
39642
39709
  let R = 0;
39643
39710
  const $ = {
39644
39711
  headerLabel: n.labels.heading,
@@ -39653,30 +39720,30 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39653
39720
  openSidebarButtonLabel: n.labels.openSidebarButton,
39654
39721
  locationSelectLabel: n.labels.locationSelect
39655
39722
  }, {
39656
- getViewport: E,
39723
+ getViewport: T,
39657
39724
  hasViewportChanged: S,
39658
- isProgrammaticMove: D,
39659
- isUserMove: P,
39725
+ isProgrammaticMove: L,
39726
+ isUserMove: A,
39660
39727
  lastSearchViewport: F,
39661
39728
  runProgrammaticMove: z,
39662
39729
  showSearchAreaButton: W
39663
39730
  } = useViewportController(), {
39664
- getSearchParams: q,
39665
- updateSearchParams: G
39731
+ getSearchParams: j,
39732
+ updateSearchParams: X
39666
39733
  } = useUpdateSearchParams();
39667
39734
  onBeforeMount(() => {
39668
- const X = cookieCheckerComposable();
39669
- X.requiredCookies.value = cookieValues$5.google_maps, O = computed$1(() => !X.cookiesAllowed.value && X.cookiesLoaded.value === !0 || !X.cookiesLoaded.value ? (w.value = "noCookie", !0) : !1);
39735
+ const U = cookieCheckerComposable();
39736
+ U.requiredCookies.value = cookieValues$5.google_maps, P = computed$1(() => !U.cookiesAllowed.value && U.cookiesLoaded.value === !0 || !U.cookiesLoaded.value ? (w.value = "noCookie", !0) : !1);
39670
39737
  }), onMounted(async () => {
39671
- if (n.categoriesLocation && await axios.get(n.categoriesLocation).then((H) => {
39672
- L.categoryData = H.data, I.value = H.data.accommodation.keywords, A.subcategoryMap = Object.values(L.categoryData).flatMap(
39673
- (Q) => (Q.subCategory ?? []).map((ee) => ({
39674
- ...ee,
39738
+ if (n.categoriesLocation && await axios.get(n.categoriesLocation).then((q) => {
39739
+ D.categoryData = q.data, I.value = q.data.accommodation.keywords, O.subcategoryMap = Object.values(D.categoryData).flatMap(
39740
+ (Q) => (Q.subCategory ?? []).map((te) => ({
39741
+ ...te,
39675
39742
  categoryId: Q.id
39676
39743
  }))
39677
- ).reduce((Q, ee) => (Q[ee.id] = ee, Q), {});
39744
+ ).reduce((Q, te) => (Q[te.id] = te, Q), {});
39678
39745
  }).catch(() => {
39679
- }), O.value === !1) {
39746
+ }), P.value === !1) {
39680
39747
  setOptions({
39681
39748
  key: n.apiKey,
39682
39749
  v: "quarterly",
@@ -39691,9 +39758,9 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39691
39758
  }
39692
39759
  }
39693
39760
  c = document.getElementById("vs-map"), d = document.getElementById("nearbySearch"), u = document.getElementById("textSearch"), f = document.querySelector("gmp-place-text-search-request"), p = document.querySelector("gmp-place-nearby-search-request"), m = document.querySelector("gmp-place-details"), g = document.getElementById("placeRequest"), b = document.getElementById("vs-map-search-input");
39694
- async function X() {
39761
+ async function U() {
39695
39762
  try {
39696
- const H = {
39763
+ const q = {
39697
39764
  center: {
39698
39765
  lat: n.center.lat,
39699
39766
  lng: n.center.lng
@@ -39703,7 +39770,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39703
39770
  isFractionalZoomEnabled: !0,
39704
39771
  mapId: n.mapId,
39705
39772
  restriction: {
39706
- latLngBounds: T
39773
+ latLngBounds: E
39707
39774
  },
39708
39775
  zoomControl: !0,
39709
39776
  fullscreenControl: !1,
@@ -39713,17 +39780,17 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39713
39780
  gestureHandling: "greedy"
39714
39781
  };
39715
39782
  if (c)
39716
- l = new google.maps.Map(c, H), z(() => l.fitBounds(T));
39783
+ l = new google.maps.Map(c, q), z(() => l.fitBounds(E));
39717
39784
  else
39718
39785
  throw new Error("Init error, mapContainer undefined");
39719
- } catch (H) {
39720
- console.error("Maps init error", H.message);
39786
+ } catch (q) {
39787
+ console.error("Maps init error", q.message);
39721
39788
  }
39722
- Y(), l.addListener("zoom_changed", () => {
39723
- V.value && (C.value = l.getZoom(), C.value < CATEGORY_VISIBLE_ZOOM ? Y() : Y(!0), P.value = !D.value, C.value > 7 && !D.value && P.value && (W.value = !0), P.value && G(
39789
+ G(), l.addListener("zoom_changed", () => {
39790
+ V.value && (C.value = l.getZoom(), C.value < CATEGORY_VISIBLE_ZOOM ? G() : G(!0), A.value = !L.value, C.value > 7 && !L.value && A.value && (W.value = !0), A.value && X(
39724
39791
  {
39725
- category: A.selectedCategory ?? null,
39726
- subcategories: A.selectedSubcategories.join(",") ?? null,
39792
+ category: O.selectedCategory ?? null,
39793
+ subcategories: O.selectedSubcategories.join(",") ?? null,
39727
39794
  location: null,
39728
39795
  coords: l.getCenter().toUrlValue(2),
39729
39796
  zoom: l.getZoom().toFixed(2)
@@ -39731,48 +39798,48 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39731
39798
  !0
39732
39799
  ));
39733
39800
  }), l.addListener("dragstart", () => {
39734
- P.value = !0;
39801
+ A.value = !0;
39735
39802
  }), l.addListener("tilesloaded", () => {
39736
39803
  if (V.value) return;
39737
39804
  V.value = !0;
39738
39805
  const {
39739
- category: H,
39806
+ category: q,
39740
39807
  coords: Q,
39741
- location: ee,
39742
- searchTerm: oe,
39743
- subcategories: ae,
39744
- zoom: de
39745
- } = q(), ge = (me, ye) => {
39746
- if (!ye) return;
39747
- const be = ye.split(",").filter((Ce) => {
39748
- const ke = A.subcategoryMap[Ce];
39749
- return ke && ke.categoryId === me;
39808
+ location: te,
39809
+ searchTerm: se,
39810
+ subcategories: oe,
39811
+ zoom: le
39812
+ } = j(), ve = (ue, pe) => {
39813
+ if (!pe) return;
39814
+ const ke = pe.split(",").filter((we) => {
39815
+ const Se = O.subcategoryMap[we];
39816
+ return Se && Se.categoryId === ue;
39750
39817
  });
39751
- be.includes("self-catering") ? (A.selfCateringClicked = !0, A.selectedSubcategories = ["self-catering"]) : A.selectedSubcategories = be;
39818
+ ke.includes("self-catering") ? (O.selfCateringClicked = !0, O.selectedSubcategories = ["self-catering"]) : O.selectedSubcategories = ke;
39752
39819
  };
39753
- if (ee) {
39754
- const me = n.featuredPlaces.find((ye) => ye.properties.title.toLowerCase() === ee.toLowerCase());
39755
- if (me) {
39756
- ce(me, H), ge(H, ae);
39820
+ if (te) {
39821
+ const ue = n.featuredPlaces.find((pe) => pe.properties.title.toLowerCase() === te.toLowerCase());
39822
+ if (ue) {
39823
+ H(ue, q), ve(q, oe);
39757
39824
  return;
39758
39825
  }
39759
39826
  }
39760
- if (Q && de) {
39761
- L.showDestinations = !1, z(() => l.setZoom(de)), z(() => l.setCenter(
39827
+ if (Q && le) {
39828
+ D.showDestinations = !1, z(() => l.setZoom(le)), z(() => l.setCenter(
39762
39829
  new google.maps.LatLng(
39763
39830
  Q[0],
39764
39831
  Q[1]
39765
39832
  )
39766
- )), H && ae && ge(H, ae);
39767
- const me = H in L.categoryData;
39768
- A.selectedCategory = me ? H : "things-to-do";
39833
+ )), q && oe && ve(q, oe);
39834
+ const ue = q in D.categoryData;
39835
+ O.selectedCategory = ue ? q : "things-to-do";
39769
39836
  return;
39770
39837
  }
39771
- if (oe) {
39772
- B.value = oe, b.value = oe, le();
39838
+ if (se) {
39839
+ B.value = se, b.value = se, ae();
39773
39840
  return;
39774
39841
  }
39775
- ie(), G(
39842
+ ce(), X(
39776
39843
  {
39777
39844
  category: null,
39778
39845
  location: null,
@@ -39784,7 +39851,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39784
39851
  !1
39785
39852
  );
39786
39853
  }), l.addListener("idle", () => {
39787
- v = U(), !D.value && V.value && P.value && S(E(l)) && (W.value = !0, L.selectedDestinationType = s[0].id, Z.value = "", P.value = !1, G(
39854
+ v = Y(), !L.value && V.value && A.value && S(T(l)) && (W.value = !0, D.selectedDestinationType = s[0].id, Z.value = "", A.value = !1, X(
39788
39855
  {
39789
39856
  "search-term": null,
39790
39857
  location: null,
@@ -39793,16 +39860,16 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39793
39860
  },
39794
39861
  !0
39795
39862
  ));
39796
- }), d.addEventListener("gmp-select", ({ place: H }) => {
39797
- _[H.id] && te(H, _[H.id]);
39798
- }), u.addEventListener("gmp-select", ({ place: H }) => {
39799
- _[H.id] && te(H, _[H.id]);
39863
+ }), d.addEventListener("gmp-select", ({ place: q }) => {
39864
+ _[q.id] && ye(q, _[q.id]);
39865
+ }), u.addEventListener("gmp-select", ({ place: q }) => {
39866
+ _[q.id] && ye(q, _[q.id]);
39800
39867
  });
39801
39868
  }
39802
- L.firstInteraction = !1, L.searchesCount = 0, L.filterUsesCount = 0, O.value === !1 && await X();
39869
+ D.firstInteraction = !1, D.searchesCount = 0, D.filterUsesCount = 0, P.value === !1 && await U();
39803
39870
  });
39804
- function Y(X) {
39805
- const H = {
39871
+ function G(U) {
39872
+ const q = {
39806
39873
  strokeColor: "#A3A3CC",
39807
39874
  strokeOpacity: 1,
39808
39875
  strokeWeight: 1,
@@ -39857,7 +39924,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39857
39924
  // Archipelago, Åland
39858
39925
  "ChIJRyEhyrlFlUcR75LTAvZg22Q"
39859
39926
  // Luxembourg
39860
- ], ee = [
39927
+ ], te = [
39861
39928
  "ChIJ39UebIqp0EcRqI4tMyWV4fQ",
39862
39929
  // England
39863
39930
  "ChIJdZmmmcoQXkgR2OO3bu8o5fc",
@@ -39866,141 +39933,141 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
39866
39933
  // Republic of Ireland
39867
39934
  "ChIJ6_ktdpMVvEgRJBv3ZEgxsD8"
39868
39935
  // Faroe Islands
39869
- ], oe = l.getFeatureLayer(google.maps.FeatureType.COUNTRY), ae = l.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);
39870
- X ? (oe.style = null, ae.style = null, oe.style = (de) => {
39871
- if (ee.includes(de.feature.placeId))
39872
- return H;
39873
- }, ae.style = (de) => {
39874
- if (ee.includes(de.feature.placeId))
39875
- return H;
39876
- }) : (oe.style = (de) => {
39877
- if (Q.includes(de.feature.placeId))
39878
- return H;
39879
- }, ae.style = (de) => {
39880
- if (Q.includes(de.feature.placeId))
39881
- return H;
39936
+ ], se = l.getFeatureLayer(google.maps.FeatureType.COUNTRY), oe = l.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);
39937
+ U ? (se.style = null, oe.style = null, se.style = (le) => {
39938
+ if (te.includes(le.feature.placeId))
39939
+ return q;
39940
+ }, oe.style = (le) => {
39941
+ if (te.includes(le.feature.placeId))
39942
+ return q;
39943
+ }) : (se.style = (le) => {
39944
+ if (Q.includes(le.feature.placeId))
39945
+ return q;
39946
+ }, oe.style = (le) => {
39947
+ if (Q.includes(le.feature.placeId))
39948
+ return q;
39882
39949
  });
39883
39950
  }
39884
39951
  async function ne() {
39885
- const X = A.selectedSubcategories.length > 0 ? A.selectedSubcategoryTypes : A.selectedCategoryTypes, H = A.selectedSubcategories.length > 0 ? A.selectedSubcategoryLabels : A.selectedCategoryLabel;
39886
- ue(), A.selfCateringClicked || fe(), B.value = `${H} ${Z.value}` ?? "", B.value = B.value.trim(), b.value = B.value, L.showCategories = !0, a.value = !0, R += 1;
39952
+ const U = O.selectedSubcategories.length > 0 ? O.selectedSubcategoryTypes : O.selectedCategoryTypes, q = O.selectedSubcategories.length > 0 ? O.selectedSubcategoryLabels : O.selectedCategoryLabel;
39953
+ de(), O.selfCateringClicked || me(), B.value = `${q} ${Z.value}` ?? "", B.value = B.value.trim(), b.value = B.value, D.showCategories = !0, a.value = !0, R += 1;
39887
39954
  const Q = R;
39888
- L.filterUsesCount += 1, M.value = "nearby";
39889
- const ee = l.getBounds(), oe = ee.getNorthEast(), ae = ee.getSouthWest(), de = google.maps.geometry.spherical.computeDistanceBetween(oe, ae);
39890
- let ge = 25e3;
39891
- (L.selectedDestinationType === "regions" && Z.value !== "Fife" || L.selectedDestinationType === "islands" && Z.value === "Shetland" || L.selectedDestinationType === "islands" && Z.value === "Orkney") && (ge = 5e4);
39892
- const me = Math.min(de / 2, ge);
39893
- p.includedTypes = [...X.included], p.excludedTypes = [...X.excluded], p.maxResultCount = NUMBER_OF_RESULTS, p.locationRestriction = {
39955
+ D.filterUsesCount += 1, M.value = "nearby";
39956
+ const te = l.getBounds(), se = te.getNorthEast(), oe = te.getSouthWest(), le = google.maps.geometry.spherical.computeDistanceBetween(se, oe);
39957
+ let ve = 25e3;
39958
+ (D.selectedDestinationType === "regions" && Z.value !== "Fife" || D.selectedDestinationType === "islands" && Z.value === "Shetland" || D.selectedDestinationType === "islands" && Z.value === "Orkney") && (ve = 5e4);
39959
+ const ue = Math.min(le / 2, ve);
39960
+ p.includedTypes = [...U.included], p.excludedTypes = [...U.excluded], p.maxResultCount = NUMBER_OF_RESULTS, p.locationRestriction = {
39894
39961
  center: l.getCenter(),
39895
- radius: me
39962
+ radius: ue
39896
39963
  }, d.style.display = "block", d.addEventListener("gmp-load", () => {
39897
39964
  if (Q !== R) return;
39898
- se(Q);
39899
- let ke = "main", we = A.selectedCategory;
39900
- A.selectedSubcategories.length > 0 && (ke = "sub", we = [...A.selectedSubcategories].join(", ")), t.createDataLayerObject("googleMapFilterEvent", {
39901
- filter_type: ke,
39965
+ ie(Q);
39966
+ let Se = "main", Ve = O.selectedCategory;
39967
+ O.selectedSubcategories.length > 0 && (Se = "sub", Ve = [...O.selectedSubcategories].join(", ")), t.createDataLayerObject("googleMapFilterEvent", {
39968
+ filter_type: Se,
39902
39969
  search_map_location: l.getCenter().toString(),
39903
- filter_selection: we,
39970
+ filter_selection: Ve,
39904
39971
  results_count: d.places.length,
39905
- filter_usage_index: L.filterUsesCount
39972
+ filter_usage_index: D.filterUsesCount
39906
39973
  }), J("map_filter");
39907
39974
  }, {
39908
39975
  once: !0
39909
39976
  });
39910
- let ye, be, Ce;
39911
- Z.value ? (ye = Z.value.toLowerCase(), be = null, Ce = null) : (ye = null, be = l.getCenter().toUrlValue(2), Ce = l.getZoom().toFixed(2)), G(
39977
+ let pe, ke, we;
39978
+ Z.value ? (pe = Z.value.toLowerCase(), ke = null, we = null) : (pe = null, ke = l.getCenter().toUrlValue(2), we = l.getZoom().toFixed(2)), X(
39912
39979
  {
39913
39980
  "search-term": null,
39914
- location: ye,
39915
- category: A.selectedCategory,
39916
- subcategories: A.selectedSubcategories.join(","),
39917
- coords: be,
39918
- zoom: Ce
39981
+ location: pe,
39982
+ category: O.selectedCategory,
39983
+ subcategories: O.selectedSubcategories.join(","),
39984
+ coords: ke,
39985
+ zoom: we
39919
39986
  },
39920
39987
  !1
39921
39988
  );
39922
39989
  }
39923
- async function le(X = !1) {
39924
- ue(), A.selfCateringClicked || he(), Z.value = "", a.value = !0, R += 1;
39925
- const H = R;
39926
- if (L.searchesCount += 1, M.value = "text", B.value = b.value.trim(), !B.value) return;
39927
- A.selfCateringClicked || X ? (f.locationBias = null, f.locationRestriction = l.getBounds()) : (f.locationRestriction = null, f.locationBias = l.getCenter()), f.includedType = I.value.some(
39928
- (ge) => B.value.toLowerCase().includes(ge)
39929
- ) ? "lodging" : null, A.selfCateringClicked ? f.textQuery = "self catering in Scotland" : f.textQuery = `${B.value} in Scotland`, f.maxResultCount = NUMBER_OF_RESULTS, u.style.display = "block";
39930
- let Q, ee, oe, ae, de;
39931
- A.selfCateringClicked ? (Q = "accommodation", ee = "self-catering", ae = null, oe = l.getCenter().toUrlValue(2), de = l.getZoom().toFixed(2)) : (Q = null, ee = null, ae = B.value, oe = null, de = null), G(
39990
+ async function ae(U = !1) {
39991
+ de(), O.selfCateringClicked || he(), Z.value = "", a.value = !0, R += 1;
39992
+ const q = R;
39993
+ if (D.searchesCount += 1, M.value = "text", B.value = b.value.trim(), !B.value) return;
39994
+ O.selfCateringClicked || U ? (f.locationBias = null, f.locationRestriction = l.getBounds()) : (f.locationRestriction = null, f.locationBias = l.getCenter()), f.includedType = I.value.some(
39995
+ (ve) => B.value.toLowerCase().includes(ve)
39996
+ ) ? "lodging" : null, O.selfCateringClicked ? f.textQuery = "self catering in Scotland" : f.textQuery = `${B.value} in Scotland`, f.maxResultCount = NUMBER_OF_RESULTS, u.style.display = "block";
39997
+ let Q, te, se, oe, le;
39998
+ O.selfCateringClicked ? (Q = "accommodation", te = "self-catering", oe = null, se = l.getCenter().toUrlValue(2), le = l.getZoom().toFixed(2)) : (Q = null, te = null, oe = B.value, se = null, le = null), X(
39932
39999
  {
39933
- "search-term": ae,
40000
+ "search-term": oe,
39934
40001
  location: null,
39935
40002
  category: Q,
39936
- subcategories: ee,
39937
- coords: oe,
39938
- zoom: de
40003
+ subcategories: te,
40004
+ coords: se,
40005
+ zoom: le
39939
40006
  },
39940
40007
  !1
39941
40008
  ), u.addEventListener("gmp-load", () => {
39942
- H === R && (se(H), A.selfCateringClicked = !1, t.createDataLayerObject("googleMapSearchEvent", {
40009
+ q === R && (ie(q), O.selfCateringClicked = !1, t.createDataLayerObject("googleMapSearchEvent", {
39943
40010
  search_query: B.value,
39944
40011
  search_map_location: l.getCenter().toString(),
39945
40012
  search_results_count: u.places.length,
39946
- search_usage_index: L.searchesCount
40013
+ search_usage_index: D.searchesCount
39947
40014
  }), J("map_search"));
39948
40015
  }, {
39949
40016
  once: !0
39950
- }), L.showDestinations = !1, L.showCategories = !0;
39951
- }
39952
- async function se(X) {
39953
- const { AdvancedMarkerElement: H } = await importLibrary("marker"), { LatLngBounds: Q } = await importLibrary("core");
39954
- if (X !== R) return;
39955
- const ee = ref();
39956
- M.value === "nearby" ? ee.value = d : M.value === "text" ? ee.value = u : console.error("Unrecognised Search type"), ee.value.places.length === 0 ? (N.value = !0, ee.value.style.display = "none") : (N.value = !1, ee.value.style.display = "block");
39957
- const oe = new Q();
39958
- ee.value.places && (ee.value.places.forEach((ae) => {
39959
- const de = document.createElement("div");
39960
- de.classList.add("vs-map-marker");
39961
- const ge = document.createElement("i");
39962
- ge.classList.add("fa-solid", "fa-location-dot"), de.appendChild(ge);
39963
- const me = new H({
40017
+ }), D.showDestinations = !1, D.showCategories = !0;
40018
+ }
40019
+ async function ie(U) {
40020
+ const { AdvancedMarkerElement: q } = await importLibrary("marker"), { LatLngBounds: Q } = await importLibrary("core");
40021
+ if (U !== R) return;
40022
+ const te = ref();
40023
+ M.value === "nearby" ? te.value = d : M.value === "text" ? te.value = u : console.error("Unrecognised Search type"), te.value.places.length === 0 ? (N.value = !0, te.value.style.display = "none") : (N.value = !1, te.value.style.display = "block");
40024
+ const se = new Q();
40025
+ te.value.places && (te.value.places.forEach((oe) => {
40026
+ const le = document.createElement("div");
40027
+ le.classList.add("vs-map-marker");
40028
+ const ve = document.createElement("i");
40029
+ ve.classList.add("fa-solid", "fa-location-dot"), le.appendChild(ve);
40030
+ const ue = new q({
39964
40031
  map: l,
39965
- position: ae.location,
39966
- content: de,
40032
+ position: oe.location,
40033
+ content: le,
39967
40034
  title: "Map pin"
39968
40035
  });
39969
- me.addEventListener("gmp-placeclick", () => {
39970
- te(ae);
39971
- }), me.addListener("click", () => {
39972
- te(ae);
39973
- }), me.metadata = {
39974
- id: ae.id
39975
- }, _[ae.id] = me, oe.extend(ae.location), ee.value.places.length === 1 ? (z(() => l.setCenter(
40036
+ ue.addEventListener("gmp-placeclick", () => {
40037
+ ye(oe);
40038
+ }), ue.addListener("click", () => {
40039
+ ye(oe);
40040
+ }), ue.metadata = {
40041
+ id: oe.id
40042
+ }, _[oe.id] = ue, se.extend(oe.location), te.value.places.length === 1 ? (z(() => l.setCenter(
39976
40043
  {
39977
- lat: ae.location.lat(),
39978
- lng: ae.location.lng()
40044
+ lat: oe.location.lat(),
40045
+ lng: oe.location.lng()
39979
40046
  }
39980
- )), z(() => l.setZoom(14)), z(() => l.fitBounds(ae.viewport))) : (z(() => l.setCenter(oe.getCenter())), z(() => l.fitBounds(oe)));
39981
- }), F.value = E(l));
40047
+ )), z(() => l.setZoom(14)), z(() => l.fitBounds(oe.viewport))) : (z(() => l.setCenter(se.getCenter())), z(() => l.fitBounds(se)));
40048
+ }), F.value = T(l));
39982
40049
  }
39983
- async function ie() {
39984
- const { AdvancedMarkerElement: X } = await importLibrary("marker");
39985
- j(), i.value.forEach((H) => {
40050
+ async function ce() {
40051
+ const { AdvancedMarkerElement: U } = await importLibrary("marker");
40052
+ _e(), i.value.forEach((q) => {
39986
40053
  const Q = document.createElement("div");
39987
40054
  Q.classList.add("vs-map-marker");
39988
- const ee = document.createElement("i");
39989
- ee.classList.add("fa-solid", "fa-location-dot"), Q.appendChild(ee);
39990
- const oe = new X({
40055
+ const te = document.createElement("i");
40056
+ te.classList.add("fa-solid", "fa-location-dot"), Q.appendChild(te);
40057
+ const se = new U({
39991
40058
  map: l,
39992
40059
  position: {
39993
- lat: H.properties.locationCentre.latitude,
39994
- lng: H.properties.locationCentre.longitude
40060
+ lat: q.properties.locationCentre.latitude,
40061
+ lng: q.properties.locationCentre.longitude
39995
40062
  },
39996
40063
  content: Q,
39997
- title: H.properties.title
40064
+ title: q.properties.title
39998
40065
  });
39999
- oe.addListener("gmp-click", () => ce(H)), _[H.properties.title] = oe;
40066
+ se.addListener("gmp-click", () => H(q)), _[q.properties.title] = se;
40000
40067
  });
40001
40068
  }
40002
- function ue(X, H) {
40003
- L.showCategories = !1, j(), M.value = "", p.includedTypes = null, p.excludedTypes = null, p.locationRestriction = null, d.style.display = "none", f.includedType = null, f.locationRestriction = null, f.locationBias = null, f.textQuery = null, u.style.display = "none", k.value = !1, N.value = void 0, X && (fe(), he(), pe("clear_all"), ie(), L.showDestinations = !0), H && (z(() => l.setCenter(n.center)), z(() => l.setZoom(n.zoom)), z(() => l.fitBounds(T)), pe("reset_map")), (X || H) && G(
40069
+ function de(U, q) {
40070
+ D.showCategories = !1, _e(), M.value = "", p.includedTypes = null, p.excludedTypes = null, p.locationRestriction = null, d.style.display = "none", f.includedType = null, f.locationRestriction = null, f.locationBias = null, f.textQuery = null, u.style.display = "none", k.value = !1, N.value = void 0, U && (me(), he(), fe("clear_all"), ce(), D.showDestinations = !0), q && (z(() => l.setCenter(n.center)), z(() => l.setZoom(n.zoom)), z(() => l.fitBounds(E)), fe("reset_map")), (U || q) && X(
40004
40071
  {
40005
40072
  "search-term": null,
40006
40073
  location: null,
@@ -40012,122 +40079,122 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
40012
40079
  !1
40013
40080
  );
40014
40081
  }
40015
- function fe() {
40082
+ function me() {
40016
40083
  B.value = null, b.value = "";
40017
40084
  }
40018
40085
  function he() {
40019
- A.clearSubcategories(), A.selectedCategory = "";
40086
+ O.clearSubcategories(), O.selectedCategory = "";
40020
40087
  }
40021
- function j() {
40022
- for (const X in _)
40023
- _[X] && (_[X].map = null);
40088
+ function _e() {
40089
+ for (const U in _)
40090
+ _[U] && (_[U].map = null);
40024
40091
  _ = {};
40025
40092
  }
40026
- function te(X) {
40027
- g.place = X, m.style.display = "block", a.value = !0, o.value = !0, google.maps.event.addListenerOnce(l, "idle", () => {
40028
- l.getZoom() > MAX_ZOOM && z(() => l.setZoom(MAX_ZOOM)), pe("card_open", X);
40029
- }), z(() => l.setCenter(X.location));
40093
+ function ye(U) {
40094
+ g.place = U, m.style.display = "block", a.value = !0, o.value = !0, google.maps.event.addListenerOnce(l, "idle", () => {
40095
+ l.getZoom() > MAX_ZOOM && z(() => l.setZoom(MAX_ZOOM)), fe("card_open", U);
40096
+ }), z(() => l.setCenter(U.location));
40030
40097
  }
40031
- async function pe(X, H) {
40032
- let Q = "", ee = "", oe = "", ae = "";
40033
- H && (await H.fetchFields({
40098
+ async function fe(U, q) {
40099
+ let Q = "", te = "", se = "", oe = "";
40100
+ q && (await q.fetchFields({
40034
40101
  fields: [
40035
40102
  "displayName",
40036
40103
  "primaryType",
40037
40104
  "rating",
40038
40105
  "websiteURI"
40039
40106
  ]
40040
- }), Q = H.displayName, ee = H.rating, oe = H.websiteURI, ae = H.primaryType), t.createDataLayerObject("googleMapInteractionEvent", {
40041
- interaction_type: X,
40107
+ }), Q = q.displayName, te = q.rating, se = q.websiteURI, oe = q.primaryType), t.createDataLayerObject("googleMapInteractionEvent", {
40108
+ interaction_type: U,
40042
40109
  search_query: b.value.trim(),
40043
40110
  map_location: l.getCenter().toString(),
40044
40111
  visible_attractions_count: v,
40045
40112
  card_attraction_name: Q,
40046
- card_attraction_category: ae,
40047
- card_attraction_rating: ee,
40048
- card_attraction_url: oe,
40113
+ card_attraction_category: oe,
40114
+ card_attraction_rating: te,
40115
+ card_attraction_url: se,
40049
40116
  interaction_timestamp_ms: Date.now()
40050
- }), J(X);
40117
+ }), J(U);
40051
40118
  }
40052
- function J(X) {
40053
- if (!L.firstInteraction) {
40054
- const Q = Date.now() - L.timeMounted;
40119
+ function J(U) {
40120
+ if (!D.firstInteraction) {
40121
+ const Q = Date.now() - D.timeMounted;
40055
40122
  t.createDataLayerObject("googleMapTimeToFirstInteractionEvent", {
40056
40123
  time_to_first_interaction_ms: Q,
40057
- first_interaction_type: X
40058
- }), L.firstInteraction = !0;
40124
+ first_interaction_type: U
40125
+ }), D.firstInteraction = !0;
40059
40126
  }
40060
40127
  }
40061
- function U() {
40062
- const X = l.getBounds();
40063
- if (!X) return 0;
40064
- let H = 0;
40128
+ function Y() {
40129
+ const U = l.getBounds();
40130
+ if (!U) return 0;
40131
+ let q = 0;
40065
40132
  for (let Q = 0; Q < Object.keys(_).length; Q++) {
40066
- const oe = _[Object.keys(_)[Q]].position;
40067
- X.contains(oe) && (H += 1);
40133
+ const se = _[Object.keys(_)[Q]].position;
40134
+ U.contains(se) && (q += 1);
40068
40135
  }
40069
- return H;
40136
+ return q;
40070
40137
  }
40071
40138
  const Z = ref("");
40072
- function ce(X, H) {
40073
- L.showDestinations = !1, Z.value = X.properties.title, z(() => l.fitBounds(
40139
+ function H(U, q) {
40140
+ D.showDestinations = !1, Z.value = U.properties.title, z(() => l.fitBounds(
40074
40141
  new google.maps.LatLngBounds(
40075
40142
  new google.maps.LatLng(
40076
- X.properties.viewport.low.latitude,
40077
- X.properties.viewport.low.longitude
40143
+ U.properties.viewport.low.latitude,
40144
+ U.properties.viewport.low.longitude
40078
40145
  ),
40079
40146
  new google.maps.LatLng(
40080
- X.properties.viewport.high.latitude,
40081
- X.properties.viewport.high.longitude
40147
+ U.properties.viewport.high.latitude,
40148
+ U.properties.viewport.high.longitude
40082
40149
  )
40083
40150
  )
40084
40151
  )), z(() => l.setCenter(
40085
40152
  new google.maps.LatLng(
40086
- X.properties.locationCentre.latitude,
40087
- X.properties.locationCentre.longitude
40153
+ U.properties.locationCentre.latitude,
40154
+ U.properties.locationCentre.longitude
40088
40155
  )
40089
- )), G(
40156
+ )), X(
40090
40157
  {
40091
40158
  "search-term": null,
40092
- location: X.properties.title.toLowerCase(),
40159
+ location: U.properties.title.toLowerCase(),
40093
40160
  coords: null,
40094
40161
  zoom: null
40095
40162
  },
40096
40163
  !1
40097
40164
  );
40098
- const Q = H in L.categoryData;
40099
- A.selectedCategory = Q ? H : "things-to-do", a.value = !0;
40165
+ const Q = q in D.categoryData;
40166
+ O.selectedCategory = Q ? q : "things-to-do", a.value = !0;
40100
40167
  }
40101
- function _e() {
40102
- L.showDestinations = !1, L.sidebarOpen = !0, Z.value = "", W.value = !1, A.selectedSubcategories.includes("self-catering") ? (B.value = A.getSubcategoryLabel("self-catering"), b.value = B.value, A.selfCateringClicked = !0, le()) : A.selectedCategory || A.selectedSubcategories.length > 0 ? ne() : b.value ? le(!0) : A.selectedCategory = "things-to-do";
40168
+ function ee() {
40169
+ D.showDestinations = !1, D.sidebarOpen = !0, Z.value = "", W.value = !1, O.selectedSubcategories.includes("self-catering") ? (B.value = O.getSubcategoryLabel("self-catering"), b.value = B.value, O.selfCateringClicked = !0, ae()) : O.selectedCategory || O.selectedSubcategories.length > 0 ? ne() : b.value ? ae(!0) : O.selectedCategory = "things-to-do";
40103
40170
  }
40104
- function Ve() {
40105
- A.selectedSubcategories.includes("self-catering") ? (B.value = A.getSubcategoryLabel("self-catering"), b.value = B.value, le()) : (A.selectedCategory || A.selectedSubcategories.length > 0) && ne();
40171
+ function be() {
40172
+ O.selectedSubcategories.includes("self-catering") ? (B.value = O.getSubcategoryLabel("self-catering"), b.value = B.value, ae()) : (O.selectedCategory || O.selectedSubcategories.length > 0) && ne();
40106
40173
  }
40107
- const xe = computed$1(() => [
40108
- A.selectedCategory ?? "",
40109
- [...A.selectedSubcategories].sort().join(",")
40174
+ const ge = computed$1(() => [
40175
+ O.selectedCategory ?? "",
40176
+ [...O.selectedSubcategories].sort().join(",")
40110
40177
  ].join("|"));
40111
- return watch(xe, Ve), (X, H) => (openBlock(), createElementBlock("div", _hoisted_1, [
40178
+ return watch(ge, be), (U, q) => (openBlock(), createElementBlock("div", _hoisted_1, [
40112
40179
  createElementVNode("div", {
40113
- class: normalizeClass(["vs-map__container", unref(O) ? "d-none" : ""])
40180
+ class: normalizeClass(["vs-map__container", unref(P) ? "d-none" : ""])
40114
40181
  }, [
40115
40182
  createVNode(_sfc_main$1, {
40116
40183
  "is-open": a.value,
40117
- "onUpdate:isOpen": H[1] || (H[1] = (Q) => a.value = Q),
40184
+ "onUpdate:isOpen": q[1] || (q[1] = (Q) => a.value = Q),
40118
40185
  "is-results-open": o.value,
40119
- "onUpdate:isResultsOpen": H[2] || (H[2] = (Q) => o.value = Q),
40120
- categories: unref(L).categoryLabelData,
40121
- "category-data": unref(L).categoryData,
40186
+ "onUpdate:isResultsOpen": q[2] || (q[2] = (Q) => o.value = Q),
40187
+ categories: unref(D).categoryLabelData,
40188
+ "category-data": unref(D).categoryData,
40122
40189
  "destination-categories": unref(s),
40123
40190
  destinations: i.value,
40124
40191
  "map-loaded": V.value,
40125
40192
  query: B.value,
40126
40193
  "sidebar-labels": $,
40127
- onDestinationTypeSelected: ie,
40128
- onResetMap: H[3] || (H[3] = (Q) => ue(!0)),
40129
- onResetLocation: H[4] || (H[4] = (Q) => ue(!0, !0)),
40130
- onSearchInputChanged: le
40194
+ onDestinationTypeSelected: ce,
40195
+ onResetMap: q[3] || (q[3] = (Q) => de(!0)),
40196
+ onResetLocation: q[4] || (q[4] = (Q) => de(!0, !0)),
40197
+ onSearchInputChanged: ae
40131
40198
  }, {
40132
40199
  "vs-map-sidebar-search-results": withCtx(() => [
40133
40200
  N.value || n.alertText && N.value === !1 ? (openBlock(), createElementBlock("div", _hoisted_2, [
@@ -40141,7 +40208,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
40141
40208
  createTextVNode(toDisplayString(e.noResultsMessage) + " ", 1),
40142
40209
  createElementVNode("a", {
40143
40210
  href: "#",
40144
- onClick: H[0] || (H[0] = withModifiers((Q) => ue(!0, !0), ["prevent"]))
40211
+ onClick: q[0] || (q[0] = withModifiers((Q) => de(!0, !0), ["prevent"]))
40145
40212
  }, toDisplayString(e.resetMapNoResultsMessage), 1)
40146
40213
  ])
40147
40214
  ]),
@@ -40161,7 +40228,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
40161
40228
  }))
40162
40229
  ])) : createCommentVNode("", !0),
40163
40230
  (openBlock(), createBlock(Suspense, null, {
40164
- default: withCtx(() => [...H[5] || (H[5] = [
40231
+ default: withCtx(() => [...q[5] || (q[5] = [
40165
40232
  createElementVNode("div", { id: "search-container" }, [
40166
40233
  createElementVNode("gmp-place-search", {
40167
40234
  id: "nearbySearch",
@@ -40218,7 +40285,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
40218
40285
  createVNode(unref(VsButton), {
40219
40286
  icon: "vs-icon-control-search",
40220
40287
  variant: "secondary",
40221
- onClick: _e
40288
+ onClick: ee
40222
40289
  }, {
40223
40290
  default: withCtx(() => [
40224
40291
  createTextVNode(toDisplayString(n.labels.searchAreaButton), 1)
@@ -40228,10 +40295,10 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = {
40228
40295
  ])) : createCommentVNode("", !0)
40229
40296
  ])
40230
40297
  ], 2),
40231
- unref(O) && w.value === "noCookie" ? (openBlock(), createBlock(unref(VsWarning), {
40298
+ unref(P) && w.value === "noCookie" ? (openBlock(), createBlock(unref(VsWarning), {
40232
40299
  key: 0,
40233
40300
  type: "cookie",
40234
- class: normalizeClass(["vs-map__error vs-map__error--no-cookies", unref(O) ? "d-block" : "d-none"]),
40301
+ class: normalizeClass(["vs-map__error vs-map__error--no-cookies", unref(P) ? "d-block" : "d-none"]),
40235
40302
  "data-test": "vs-map__warning--no-cookies"
40236
40303
  }, {
40237
40304
  "button-text": withCtx(() => [