@leshi/silicon 0.0.17 → 0.0.18-test.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/PreCashier/TwoMonthDialog.d.ts +17 -0
- package/dist/components/PreCashier/component.d.ts +2 -0
- package/dist/components/index.cjs.js +4 -4
- package/dist/components/index.esm.js +1055 -952
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.esm.js +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { isApp as e, jsonp as t, startPolling as n } from "../utils/index.esm.js";
|
|
2
2
|
import * as r from "vue";
|
|
3
|
-
import { Comment as i, Fragment as a, Teleport as o, camelize as s, cloneVNode as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, customRef as g, defineComponent as _, effectScope as v, getCurrentInstance as y, getCurrentScope as b, guardReactiveProps as x, h as S, inject as C, isRef as w, markRaw as T, mergeDefaults as E, mergeModels as D, mergeProps as O, nextTick as k, normalizeClass as A, normalizeProps as j, normalizeStyle as M, onBeforeMount as N, onBeforeUnmount as
|
|
4
|
-
import
|
|
3
|
+
import { Comment as i, Fragment as a, Teleport as o, camelize as s, cloneVNode as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, customRef as g, defineComponent as _, effectScope as v, getCurrentInstance as y, getCurrentScope as b, guardReactiveProps as x, h as S, inject as C, isRef as w, markRaw as T, mergeDefaults as E, mergeModels as D, mergeProps as O, nextTick as k, normalizeClass as A, normalizeProps as j, normalizeStyle as M, onBeforeMount as N, onBeforeUnmount as P, onBeforeUpdate as ee, onMounted as F, onScopeDispose as te, onUnmounted as ne, onUpdated as re, openBlock as I, provide as ie, reactive as ae, readonly as oe, ref as L, render as se, renderList as ce, renderSlot as R, resolveDynamicComponent as le, shallowReadonly as ue, shallowRef as de, toDisplayString as z, toHandlerKey as fe, toRef as pe, toRefs as me, toValue as B, triggerRef as he, unref as V, useModel as ge, vShow as _e, watch as H, watchEffect as U, watchPostEffect as ve, withCtx as W, withDirectives as ye, withMemo as be, withModifiers as xe } from "vue";
|
|
4
|
+
import Se from "axios";
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
|
-
var
|
|
6
|
+
var Ce = Object.create, we = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, Ee = Object.getOwnPropertyNames, De = Object.getPrototypeOf, Oe = Object.prototype.hasOwnProperty, G = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ke = (e, t) => {
|
|
7
7
|
let n = {};
|
|
8
|
-
for (var r in e)
|
|
8
|
+
for (var r in e) we(n, r, {
|
|
9
9
|
get: e[r],
|
|
10
10
|
enumerable: !0
|
|
11
11
|
});
|
|
12
|
-
return t ||
|
|
13
|
-
},
|
|
14
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
12
|
+
return t || we(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
13
|
+
}, Ae = (e, t, n, r) => {
|
|
14
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = Ee(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !Oe.call(e, s) && s !== n && we(e, s, {
|
|
15
15
|
get: ((e) => t[e]).bind(null, s),
|
|
16
|
-
enumerable: !(r =
|
|
16
|
+
enumerable: !(r = Te(t, s)) || r.enumerable
|
|
17
17
|
});
|
|
18
18
|
return e;
|
|
19
|
-
},
|
|
19
|
+
}, je = (e, t, n) => (Ae(e, t, "default"), n && Ae(n, t, "default")), Me = (e, t, n) => (n = e == null ? {} : Ce(De(e)), Ae(t || !e || !e.__esModule ? we(n, "default", {
|
|
20
20
|
value: e,
|
|
21
21
|
enumerable: !0
|
|
22
|
-
}) : n, e)),
|
|
22
|
+
}) : n, e)), Ne = ["onClick"], Pe = /*@__PURE__*/ _({
|
|
23
23
|
__name: "ActivitySwitcher",
|
|
24
24
|
props: {
|
|
25
25
|
title: {},
|
|
@@ -30,7 +30,7 @@ var we = Object.create, Te = Object.defineProperty, Ee = Object.getOwnPropertyDe
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
setup(n) {
|
|
33
|
-
let r = n, i =
|
|
33
|
+
let r = n, i = L(!1), o = L([]), s = L("transparent"), c = L(""), l = async () => {
|
|
34
34
|
let n = [];
|
|
35
35
|
n = r.dataList ? r.dataList : (await t("https://static-api.letv.com/blockNew/get?id=2005992")).data.blockContent;
|
|
36
36
|
let a = [...n.filter((e) => e.playPlatform[420024])], l = !r.isSSR && e;
|
|
@@ -44,32 +44,32 @@ var we = Object.create, Te = Object.defineProperty, Ee = Object.getOwnPropertyDe
|
|
|
44
44
|
}, u = (e) => {
|
|
45
45
|
window.location.href = e;
|
|
46
46
|
};
|
|
47
|
-
return r.isSSR && r.dataList && r.dataList.length > 0 && l(),
|
|
47
|
+
return r.isSSR && r.dataList && r.dataList.length > 0 && l(), F(() => {
|
|
48
48
|
r.isSSR || l();
|
|
49
|
-
}), (e, t) => i.value ? (
|
|
49
|
+
}), (e, t) => i.value ? (I(), f("div", {
|
|
50
50
|
key: 0,
|
|
51
51
|
class: "activitySwitcher",
|
|
52
52
|
style: M({
|
|
53
53
|
backgroundColor: s.value,
|
|
54
54
|
color: c.value
|
|
55
55
|
})
|
|
56
|
-
}, [(
|
|
56
|
+
}, [(I(!0), f(a, null, ce(o.value, (e) => (I(), f("div", {
|
|
57
57
|
class: A(e.title === r.title ? "active" : ""),
|
|
58
58
|
key: e.id,
|
|
59
59
|
onClick: (t) => u(e.url)
|
|
60
|
-
},
|
|
60
|
+
}, z(e.title), 11, Ne))), 128))], 4)) : d("", !0);
|
|
61
61
|
}
|
|
62
|
-
}),
|
|
62
|
+
}), Fe = (e, t) => {
|
|
63
63
|
let n = e.__vccOpts || e;
|
|
64
64
|
for (let [e, r] of t) n[e] = r;
|
|
65
65
|
return n;
|
|
66
|
-
},
|
|
66
|
+
}, Ie = /*#__PURE__*/ Fe(Pe, [["__scopeId", "data-v-feae0210"]]);
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region node_modules/swiper/shared/utils.mjs
|
|
69
|
-
function
|
|
69
|
+
function Le(e = "") {
|
|
70
70
|
return e.trim().split(" ").filter((e) => !!e.trim());
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Re(e) {
|
|
73
73
|
Object.keys(e).forEach((t) => {
|
|
74
74
|
try {
|
|
75
75
|
e[t] = null;
|
|
@@ -79,50 +79,50 @@ function ze(e) {
|
|
|
79
79
|
} catch {}
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ze(e, t = 0) {
|
|
83
83
|
return setTimeout(e, t);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Be() {
|
|
86
86
|
return Date.now();
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Ve(e) {
|
|
89
89
|
return window.getComputedStyle(e, null);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
let n =
|
|
91
|
+
function He(e, t = "x") {
|
|
92
|
+
let n = Ve(e), r = n.transform || n.webkitTransform;
|
|
93
93
|
if (!r || r === "none") return 0;
|
|
94
94
|
let i = new DOMMatrixReadOnly(r);
|
|
95
95
|
return t === "x" ? i.m41 : i.m42;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Ue(e) {
|
|
98
98
|
return typeof e == "object" && !!e && e.constructor === Object && Object.prototype.toString.call(e).slice(8, -1) === "Object";
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function We(e) {
|
|
101
101
|
return typeof HTMLElement < "u" && e instanceof HTMLElement || !!e && typeof e == "object" && (e.nodeType === 1 || e.nodeType === 11);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function K(e, ...t) {
|
|
104
104
|
let n = Object(e);
|
|
105
105
|
for (let e = 0; e < t.length; e += 1) {
|
|
106
106
|
let r = t[e];
|
|
107
|
-
if (r == null ||
|
|
107
|
+
if (r == null || We(r)) continue;
|
|
108
108
|
let i = r, a = Object.keys(Object(i)).filter((e) => e !== "__proto__" && e !== "constructor" && e !== "prototype");
|
|
109
109
|
for (let e of a) {
|
|
110
110
|
let t = Object.getOwnPropertyDescriptor(i, e);
|
|
111
111
|
if (!t || !t.enumerable) continue;
|
|
112
112
|
let r = i[e];
|
|
113
|
-
|
|
113
|
+
Ue(n[e]) && Ue(r) ? r.__swiper__ ? n[e] = r : K(n[e], r) : !Ue(n[e]) && Ue(r) ? (n[e] = {}, r.__swiper__ ? n[e] = r : K(n[e], r)) : n[e] = r;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
return n;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Ge(e, t, n) {
|
|
119
119
|
e.style.setProperty(t, n);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Ke(e, t = "") {
|
|
122
122
|
let n = [...e.children];
|
|
123
123
|
return e instanceof HTMLSlotElement && n.push(...e.assignedElements()), t ? n.filter((e) => e.matches(t)) : n;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function qe(e, t) {
|
|
126
126
|
let n = [t];
|
|
127
127
|
for (; n.length > 0;) {
|
|
128
128
|
let t = n.shift();
|
|
@@ -131,62 +131,62 @@ function Je(e, t) {
|
|
|
131
131
|
}
|
|
132
132
|
return !1;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Je(e, t) {
|
|
135
135
|
let n = t.contains(e);
|
|
136
|
-
return !n && t instanceof HTMLSlotElement && (n = [...t.assignedElements()].includes(e), n ||=
|
|
136
|
+
return !n && t instanceof HTMLSlotElement && (n = [...t.assignedElements()].includes(e), n ||= qe(e, t)), n;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Ye(e) {
|
|
139
139
|
try {
|
|
140
140
|
console.warn(e);
|
|
141
141
|
} catch {}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Xe(e, t = []) {
|
|
144
144
|
let n = document.createElement(e);
|
|
145
|
-
return n.classList.add(...Array.isArray(t) ? t :
|
|
145
|
+
return n.classList.add(...Array.isArray(t) ? t : Le(t)), n;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ze(e, t) {
|
|
148
148
|
let n = [], r = e.previousElementSibling;
|
|
149
149
|
for (; r;) (!t || r.matches(t)) && n.push(r), r = r.previousElementSibling;
|
|
150
150
|
return n;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Qe(e, t) {
|
|
153
153
|
let n = [], r = e.nextElementSibling;
|
|
154
154
|
for (; r;) (!t || r.matches(t)) && n.push(r), r = r.nextElementSibling;
|
|
155
155
|
return n;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function $e(e, t) {
|
|
158
158
|
return window.getComputedStyle(e, null).getPropertyValue(t);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function et(e) {
|
|
161
161
|
if (!(!e || !e.parentNode)) return [...e.parentNode.children].indexOf(e);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function tt(e, t) {
|
|
164
164
|
let n = [], r = e.parentElement;
|
|
165
165
|
for (; r;) (!t || r.matches(t)) && n.push(r), r = r.parentElement;
|
|
166
166
|
return n;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function nt(e, t, n) {
|
|
169
169
|
{
|
|
170
170
|
let n = window.getComputedStyle(e, null);
|
|
171
171
|
return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(n.getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(n.getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function rt(e) {
|
|
175
175
|
return (Array.isArray(e) ? e : [e]).filter((e) => !!e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function it(e, t = "") {
|
|
178
178
|
let n = globalThis.trustedTypes;
|
|
179
179
|
n === void 0 ? e.innerHTML = t : e.innerHTML = n.createPolicy("html", { createHTML: (e) => e }).createHTML(t);
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region node_modules/swiper/shared/update-swiper.mjs
|
|
183
|
-
var
|
|
184
|
-
function
|
|
183
|
+
var at = /* @__PURE__ */ "eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.swiperElementNodeName.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._snapToSlideEdge._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control".split(".");
|
|
184
|
+
function q(e) {
|
|
185
185
|
if (typeof e != "object" || !e) return !1;
|
|
186
186
|
let t = e;
|
|
187
187
|
return !!t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function ot(e, t) {
|
|
190
190
|
let n = [
|
|
191
191
|
"__proto__",
|
|
192
192
|
"constructor",
|
|
@@ -194,58 +194,58 @@ function st(e, t) {
|
|
|
194
194
|
], r = e, i = t;
|
|
195
195
|
return Object.keys(i).filter((e) => n.indexOf(e) < 0).forEach((e) => {
|
|
196
196
|
let t = i[e], n = r[e];
|
|
197
|
-
n === void 0 ? r[e] = t :
|
|
197
|
+
n === void 0 ? r[e] = t : q(t) && q(n) && Object.keys(t).length > 0 ? t.__swiper__ ? r[e] = t : ot(n, t) : r[e] = t;
|
|
198
198
|
}), e;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function st(e = {}) {
|
|
201
201
|
let t = e.navigation;
|
|
202
202
|
return t ? t === !0 || t.nextEl === void 0 && t.prevEl === void 0 : !1;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function ct(e = {}) {
|
|
205
205
|
let t = e.pagination;
|
|
206
206
|
return t ? t === !0 || t.el === void 0 : !1;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function lt(e = {}) {
|
|
209
209
|
let t = e.scrollbar;
|
|
210
210
|
return t ? t === !0 || t.el === void 0 : !1;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function ut(e = "") {
|
|
213
213
|
let t = e.split(" ").map((e) => e.trim()).filter((e) => !!e), n = [];
|
|
214
214
|
return t.forEach((e) => {
|
|
215
215
|
n.indexOf(e) < 0 && n.push(e);
|
|
216
216
|
}), n.join(" ");
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function dt(e = "") {
|
|
219
219
|
return e ? e.includes("swiper-wrapper") ? e : `swiper-wrapper ${e}` : "swiper-wrapper";
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ft(e) {
|
|
222
222
|
let { nextEl: t, prevEl: n, scrollbarEl: r, paginationEl: i } = e, { swiper: a, slides: o, passedParams: s, changedParams: c } = e, l = c.filter((e) => e !== "children" && e !== "direction" && e !== "wrapperClass"), { params: u, pagination: d, navigation: f, scrollbar: p, virtual: m, thumbs: h } = a, g = s, _ = u, v, y, b, x, S, C, w, T, E = g.thumbs, D = _.thumbs;
|
|
223
|
-
c.includes("thumbs") &&
|
|
223
|
+
c.includes("thumbs") && q(E) && E.swiper && !E.swiper.destroyed && q(D) && (!D.swiper || D.swiper.destroyed) && (v = !0);
|
|
224
224
|
let O = g.controller, k = _.controller;
|
|
225
|
-
c.includes("controller") &&
|
|
225
|
+
c.includes("controller") && q(O) && O.control && q(k) && !k.control && (y = !0);
|
|
226
226
|
let A = g.pagination;
|
|
227
|
-
c.includes("pagination") &&
|
|
227
|
+
c.includes("pagination") && q(A) && (A.el || i) && (_.pagination || _.pagination === !1) && d && !d.el && (b = !0);
|
|
228
228
|
let j = g.scrollbar;
|
|
229
|
-
c.includes("scrollbar") &&
|
|
229
|
+
c.includes("scrollbar") && q(j) && (j.el || r) && (_.scrollbar || _.scrollbar === !1) && p && !p.el && (x = !0);
|
|
230
230
|
let M = g.navigation;
|
|
231
|
-
c.includes("navigation") &&
|
|
231
|
+
c.includes("navigation") && q(M) && (M.prevEl || n) && (M.nextEl || t) && (_.navigation || _.navigation === !1) && f && !f.prevEl && !f.nextEl && (S = !0);
|
|
232
232
|
let N = (e) => {
|
|
233
233
|
let t = a[e];
|
|
234
234
|
if (!t) return;
|
|
235
235
|
t.destroy();
|
|
236
|
-
let n = _[e], r =
|
|
236
|
+
let n = _[e], r = q(n) ? n : void 0;
|
|
237
237
|
e === "navigation" ? (a.isElement && (t.prevEl?.remove(), t.nextEl?.remove()), r && (r.prevEl = void 0, r.nextEl = void 0), t.prevEl = void 0, t.nextEl = void 0) : (a.isElement && t.el?.remove(), r && (r.el = void 0), t.el = void 0);
|
|
238
238
|
};
|
|
239
239
|
if (c.includes("loop") && a.isElement && (u.loop && !s.loop ? C = !0 : !u.loop && s.loop ? w = !0 : T = !0), l.forEach((e) => {
|
|
240
240
|
let t = _[e], n = g[e];
|
|
241
|
-
|
|
242
|
-
}), l.includes("controller") && !y && a.controller && a.controller.control &&
|
|
241
|
+
q(t) && q(n) ? (Object.assign(t, n), (e === "navigation" || e === "pagination" || e === "scrollbar") && "enabled" in n && !n.enabled && N(e)) : (n === !0 || n === !1) && (e === "navigation" || e === "pagination" || e === "scrollbar") ? n === !1 && N(e) : _[e] = n;
|
|
242
|
+
}), l.includes("controller") && !y && a.controller && a.controller.control && q(k) && k.control && (a.controller.control = k.control), c.includes("children") && o && m && u.virtual?.enabled ? (m.slides = o, m.update(!0)) : c.includes("virtual") && m && u.virtual?.enabled && (o && (m.slides = o), m.update(!0)), c.includes("children") && o && u.loop && (T = !0), v && h && h.init() && h.update(!0), y && a.controller && q(k) && (a.controller.control = k.control), b && d) {
|
|
243
243
|
if (a.isElement && (!i || typeof i == "string")) {
|
|
244
244
|
let e = document.createElement("div");
|
|
245
245
|
e.classList.add("swiper-pagination"), e.part.add("pagination"), a.el.appendChild(e), i = e;
|
|
246
246
|
}
|
|
247
247
|
let e = _.pagination;
|
|
248
|
-
i &&
|
|
248
|
+
i && q(e) && (e.el = i), d.init(), d.render(), d.update();
|
|
249
249
|
}
|
|
250
250
|
if (x && p) {
|
|
251
251
|
if (a.isElement && (!r || typeof r == "string")) {
|
|
@@ -253,66 +253,66 @@ function pt(e) {
|
|
|
253
253
|
e.classList.add("swiper-scrollbar"), e.part.add("scrollbar"), a.el.appendChild(e), r = e;
|
|
254
254
|
}
|
|
255
255
|
let e = _.scrollbar;
|
|
256
|
-
r &&
|
|
256
|
+
r && q(e) && (e.el = r), p.init(), p.updateSize(), p.setTranslate();
|
|
257
257
|
}
|
|
258
258
|
if (S && f) {
|
|
259
259
|
if (a.isElement) {
|
|
260
260
|
if (!t || typeof t == "string") {
|
|
261
261
|
let e = document.createElement("div");
|
|
262
|
-
e.classList.add("swiper-button-next"),
|
|
262
|
+
e.classList.add("swiper-button-next"), it(e, f.arrowSvg), e.part.add("button-next"), a.el.appendChild(e), t = e;
|
|
263
263
|
}
|
|
264
264
|
if (!n || typeof n == "string") {
|
|
265
265
|
let e = document.createElement("div");
|
|
266
|
-
e.classList.add("swiper-button-prev"),
|
|
266
|
+
e.classList.add("swiper-button-prev"), it(e, f.arrowSvg), e.part.add("button-prev"), a.el.appendChild(e), n = e;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
let e = _.navigation;
|
|
270
|
-
t &&
|
|
270
|
+
t && q(e) && (e.nextEl = t), n && q(e) && (e.prevEl = n), f.init(), f.update();
|
|
271
271
|
}
|
|
272
272
|
c.includes("allowSlideNext") && (a.allowSlideNext = g.allowSlideNext), c.includes("allowSlidePrev") && (a.allowSlidePrev = g.allowSlidePrev), c.includes("direction") && a.changeDirection(g.direction, !1), (C || T) && a.loopDestroy(), (w || T) && a.loopCreate(), a.update();
|
|
273
273
|
}
|
|
274
274
|
//#endregion
|
|
275
275
|
//#region node_modules/swiper/shared/swiper-core.mjs
|
|
276
|
-
var
|
|
277
|
-
function
|
|
276
|
+
var pt;
|
|
277
|
+
function mt() {
|
|
278
278
|
return typeof window > "u" ? { touch: !1 } : { touch: "ontouchstart" in window || navigator.maxTouchPoints > 0 };
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function ht() {
|
|
281
|
+
return pt ||= mt(), pt;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
function
|
|
283
|
+
var gt;
|
|
284
|
+
function _t({ userAgent: e } = {}) {
|
|
285
285
|
if (typeof window > "u") return {
|
|
286
286
|
ios: !1,
|
|
287
287
|
android: !1
|
|
288
288
|
};
|
|
289
|
-
let t =
|
|
289
|
+
let t = ht(), n = navigator.platform, r = e || navigator.userAgent, i = {
|
|
290
290
|
ios: !1,
|
|
291
291
|
android: !1
|
|
292
292
|
}, a = /(Android);?[\s/]+([\d.]+)?/.test(r), o = /(iPhone\sOS|iOS|iPod)/.test(r), s = /iPad/.test(r), c = n === "MacIntel" && t.touch && navigator.maxTouchPoints > 1, l = s || c;
|
|
293
293
|
return a && n !== "Win32" && (i.os = "android", i.android = !0), (l || o) && (i.os = "ios", i.ios = !0), i;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
return
|
|
295
|
+
function vt(e = {}) {
|
|
296
|
+
return gt ||= _t(e), gt;
|
|
297
297
|
}
|
|
298
|
-
var
|
|
299
|
-
function
|
|
298
|
+
var yt;
|
|
299
|
+
function bt() {
|
|
300
300
|
if (typeof window > "u") return {
|
|
301
301
|
isSafari: !1,
|
|
302
302
|
isWebView: !1,
|
|
303
303
|
need3dFix: !1
|
|
304
304
|
};
|
|
305
|
-
let e =
|
|
305
|
+
let e = vt(), t = navigator.userAgent, n = t.toLowerCase(), r = n.includes("safari") && !n.includes("chrome") && !n.includes("android"), i = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);
|
|
306
306
|
return {
|
|
307
307
|
isSafari: r,
|
|
308
308
|
isWebView: i,
|
|
309
309
|
need3dFix: r || i && e.ios
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
return
|
|
312
|
+
function xt() {
|
|
313
|
+
return yt ||= bt(), yt;
|
|
314
314
|
}
|
|
315
|
-
var
|
|
315
|
+
var St = (e, t) => {
|
|
316
316
|
if (!e || e.destroyed || !e.params) return;
|
|
317
317
|
let n = t.closest(e.isElement ? "swiper-slide" : `.${e.params.slideClass}`);
|
|
318
318
|
if (n) {
|
|
@@ -324,11 +324,11 @@ var Ct = (e, t) => {
|
|
|
324
324
|
}
|
|
325
325
|
})), t && !t.lazyPreloaderManaged && t.remove();
|
|
326
326
|
}
|
|
327
|
-
},
|
|
327
|
+
}, Ct = (e, t) => {
|
|
328
328
|
if (!e.slides[t]) return;
|
|
329
329
|
let n = e.slides[t].querySelector("[loading=\"lazy\"]");
|
|
330
330
|
n && n.removeAttribute("loading");
|
|
331
|
-
},
|
|
331
|
+
}, wt = (e) => {
|
|
332
332
|
if (!e || e.destroyed || !e.params) return;
|
|
333
333
|
let t = e.params.lazyPreloadPrevNext, n = e.slides.length;
|
|
334
334
|
if (!n || !t || t < 0) return;
|
|
@@ -337,18 +337,18 @@ var Ct = (e, t) => {
|
|
|
337
337
|
if (e.params.grid && (e.params.grid.rows ?? 1) > 1) {
|
|
338
338
|
let n = i, a = [n - t];
|
|
339
339
|
a.push(...Array.from({ length: t }).map((e, t) => n + r + t)), e.slides.forEach((t, n) => {
|
|
340
|
-
t.column !== void 0 && a.includes(t.column) &&
|
|
340
|
+
t.column !== void 0 && a.includes(t.column) && Ct(e, n);
|
|
341
341
|
});
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
344
|
let a = i + r - 1;
|
|
345
345
|
if (e.params.rewind || e.params.loop) for (let r = i - t; r <= a + t; r += 1) {
|
|
346
346
|
let t = (r % n + n) % n;
|
|
347
|
-
(t < i || t > a) &&
|
|
347
|
+
(t < i || t > a) && Ct(e, t);
|
|
348
348
|
}
|
|
349
|
-
else for (let r = Math.max(i - t, 0); r <= Math.min(a + t, n - 1); r += 1) r !== i && (r > a || r < i) &&
|
|
349
|
+
else for (let r = Math.max(i - t, 0); r <= Math.min(a + t, n - 1); r += 1) r !== i && (r > a || r < i) && Ct(e, r);
|
|
350
350
|
};
|
|
351
|
-
function
|
|
351
|
+
function Tt(e, t = "window", n) {
|
|
352
352
|
if (!e || t === "container" && !n) return;
|
|
353
353
|
let r = !1, i = t === "window" ? window.innerHeight : n.clientHeight, a = Object.keys(e).map((e) => {
|
|
354
354
|
if (typeof e == "string" && e.indexOf("@") === 0) {
|
|
@@ -370,13 +370,13 @@ function Et(e, t = "window", n) {
|
|
|
370
370
|
}
|
|
371
371
|
return r || "max";
|
|
372
372
|
}
|
|
373
|
-
var
|
|
374
|
-
function
|
|
373
|
+
var Et = (e, t) => !!(e.grid && t.grid && t.grid.rows > 1);
|
|
374
|
+
function Dt() {
|
|
375
375
|
let e = this, { realIndex: t, initialized: n, params: r, el: i } = e, a = r.breakpoints;
|
|
376
376
|
if (!a || a && Object.keys(a).length === 0) return;
|
|
377
377
|
let o = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", s = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? e.el : document.querySelector(r.breakpointsBase), c = e.getBreakpoint(a, o, s);
|
|
378
378
|
if (!c || e.currentBreakpoint === c) return;
|
|
379
|
-
let l = a, u = (c in l ? l[c] : void 0) || e.originalParams, d =
|
|
379
|
+
let l = a, u = (c in l ? l[c] : void 0) || e.originalParams, d = Et(e, r), f = Et(e, u), p = e.params.grabCursor, m = u.grabCursor, h = r.enabled;
|
|
380
380
|
d && !f ? (i.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), e.emitContainerClasses()) : !d && f && (i.classList.add(`${r.containerModifierClass}grid`), (u.grid.fill && u.grid.fill === "column" || !u.grid.fill && r.grid.fill === "column") && i.classList.add(`${r.containerModifierClass}grid-column`), e.emitContainerClasses()), p && !m ? e.unsetGrabCursor() : !p && m && e.setGrabCursor();
|
|
381
381
|
let g = (e, t) => e[t];
|
|
382
382
|
[
|
|
@@ -390,7 +390,7 @@ function Ot() {
|
|
|
390
390
|
a && !o && s?.disable?.(), !a && o && s?.enable?.();
|
|
391
391
|
});
|
|
392
392
|
let _ = u.direction && u.direction !== r.direction, v = r.loop && (u.slidesPerView !== r.slidesPerView || _), y = r.loop;
|
|
393
|
-
_ && n && e.changeDirection(),
|
|
393
|
+
_ && n && e.changeDirection(), K(e.params, u);
|
|
394
394
|
let b = e.params.enabled, x = e.params.loop;
|
|
395
395
|
Object.assign(e, {
|
|
396
396
|
allowTouchMove: e.params.allowTouchMove,
|
|
@@ -398,11 +398,11 @@ function Ot() {
|
|
|
398
398
|
allowSlidePrev: e.params.allowSlidePrev
|
|
399
399
|
}), h && !b ? e.disable() : !h && b && e.enable(), e.currentBreakpoint = c, e.emit("_beforeBreakpoint", u), n && (v ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !y && x ? (e.loopCreate(t), e.updateSlides()) : y && !x && e.loopDestroy()), e.emit("breakpoint", u);
|
|
400
400
|
}
|
|
401
|
-
var
|
|
402
|
-
setBreakpoint:
|
|
403
|
-
getBreakpoint:
|
|
401
|
+
var Ot = {
|
|
402
|
+
setBreakpoint: Dt,
|
|
403
|
+
getBreakpoint: Tt
|
|
404
404
|
};
|
|
405
|
-
function
|
|
405
|
+
function kt() {
|
|
406
406
|
let e = this, { isLocked: t, params: n } = e, { slidesOffsetBefore: r } = n;
|
|
407
407
|
if (r) {
|
|
408
408
|
let t = e.slides.length - 1, n = e.slidesGrid[t] + e.slidesSizesGrid[t] + r * 2;
|
|
@@ -410,8 +410,8 @@ function At() {
|
|
|
410
410
|
} else e.isLocked = e.snapGrid.length === 1;
|
|
411
411
|
n.allowSlideNext === !0 && (e.allowSlideNext = !e.isLocked), n.allowSlidePrev === !0 && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock");
|
|
412
412
|
}
|
|
413
|
-
var
|
|
414
|
-
function
|
|
413
|
+
var At = { checkOverflow: kt };
|
|
414
|
+
function jt(e, t) {
|
|
415
415
|
let n = [];
|
|
416
416
|
return e.forEach((e) => {
|
|
417
417
|
typeof e == "object" ? Object.keys(e).forEach((r) => {
|
|
@@ -419,8 +419,8 @@ function Mt(e, t) {
|
|
|
419
419
|
}) : typeof e == "string" && n.push(t + e);
|
|
420
420
|
}), n;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
let e = this, { classNames: t, params: n, rtl: r, el: i, device: a } = e, o =
|
|
422
|
+
function Mt() {
|
|
423
|
+
let e = this, { classNames: t, params: n, rtl: r, el: i, device: a } = e, o = jt([
|
|
424
424
|
"initialized",
|
|
425
425
|
n.direction,
|
|
426
426
|
{ "free-mode": e.params.freeMode && n.freeMode.enabled },
|
|
@@ -436,14 +436,14 @@ function Nt() {
|
|
|
436
436
|
], n.containerModifierClass);
|
|
437
437
|
t.push(...o), i.classList.add(...t), e.emitContainerClasses();
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Nt() {
|
|
440
440
|
let e = this, { el: t, classNames: n } = e;
|
|
441
441
|
!t || typeof t == "string" || (t.classList.remove(...n), e.emitContainerClasses());
|
|
442
442
|
}
|
|
443
|
-
var
|
|
444
|
-
addClasses:
|
|
445
|
-
removeClasses:
|
|
446
|
-
},
|
|
443
|
+
var Pt = {
|
|
444
|
+
addClasses: Mt,
|
|
445
|
+
removeClasses: Nt
|
|
446
|
+
}, Ft = {
|
|
447
447
|
init: !0,
|
|
448
448
|
direction: "horizontal",
|
|
449
449
|
oneWayMovement: !1,
|
|
@@ -534,7 +534,7 @@ var Ft = {
|
|
|
534
534
|
lazyPreloadPrevNext: 0,
|
|
535
535
|
runCallbacksOnInit: !0,
|
|
536
536
|
_emitClasses: !1
|
|
537
|
-
},
|
|
537
|
+
}, It = {
|
|
538
538
|
on(e, t, n) {
|
|
539
539
|
let r = this;
|
|
540
540
|
if (!r.eventsListeners || r.destroyed || typeof t != "function") return r;
|
|
@@ -589,19 +589,19 @@ var Ft = {
|
|
|
589
589
|
}), t;
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
|
-
function
|
|
592
|
+
function Lt(e) {
|
|
593
593
|
let t = this;
|
|
594
594
|
t.destroyed || t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation())));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Rt() {
|
|
597
597
|
let e = this;
|
|
598
598
|
e.destroyed || e.documentTouchHandlerProceeded || (e.documentTouchHandlerProceeded = !0, e.params.touchReleaseOnEdges && (e.el.style.touchAction = "auto"));
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function zt(e) {
|
|
601
601
|
let t = this;
|
|
602
|
-
t.destroyed || (
|
|
602
|
+
t.destroyed || (St(t, e.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update());
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Bt() {
|
|
605
605
|
let e = this, { params: t, el: n } = e;
|
|
606
606
|
if (n && n.offsetWidth === 0) return;
|
|
607
607
|
t.breakpoints && e.setBreakpoint();
|
|
@@ -620,7 +620,7 @@ function Vt() {
|
|
|
620
620
|
}
|
|
621
621
|
e.allowSlidePrev = i, e.allowSlideNext = r, e.params.watchOverflow && a !== e.snapGrid && e.checkOverflow();
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function Vt() {
|
|
624
624
|
let e = this;
|
|
625
625
|
if (e.destroyed) return;
|
|
626
626
|
let { wrapperEl: t, rtlTranslate: n, enabled: r } = e;
|
|
@@ -629,7 +629,7 @@ function Ht() {
|
|
|
629
629
|
let i, a = e.maxTranslate() - e.minTranslate();
|
|
630
630
|
i = a === 0 ? 0 : (e.translate - e.minTranslate()) / a, i !== e.progress && e.updateProgress(n ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1);
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Ht(e) {
|
|
633
633
|
let t = this;
|
|
634
634
|
if (t.destroyed) return;
|
|
635
635
|
let n = t.touchEventsData, r = e.originalEvent ?? e;
|
|
@@ -651,12 +651,12 @@ function Ut(e) {
|
|
|
651
651
|
return;
|
|
652
652
|
}
|
|
653
653
|
i.grabCursor && n.isMoved && n.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
|
|
654
|
-
let l =
|
|
654
|
+
let l = Be(), u = l - n.touchStartTime;
|
|
655
655
|
if (t.allowClick) {
|
|
656
656
|
let e = r.path ?? (r.composedPath && r.composedPath());
|
|
657
657
|
t.updateClickedSlide(e && e[0], e), t.emit("tap click", r), u < 300 && l - n.lastClickTime < 300 && t.emit("doubleTap doubleClick", r);
|
|
658
658
|
}
|
|
659
|
-
if (n.lastClickTime =
|
|
659
|
+
if (n.lastClickTime = Be(), ze(() => {
|
|
660
660
|
t.destroyed || (t.allowClick = !0);
|
|
661
661
|
}), !n.isTouched || !n.isMoved || !t.swipeDirection || a.diff === 0 && !n.loopSwapReset || n.currentTranslate === n.startTranslate && !n.loopSwapReset) {
|
|
662
662
|
n.isTouched = !1, n.isMoved = !1, n.startMoving = !1;
|
|
@@ -691,7 +691,7 @@ function Ut(e) {
|
|
|
691
691
|
t.navigation && (r.target === t.navigation.nextEl || r.target === t.navigation.prevEl) ? r.target === t.navigation.nextEl ? t.slideTo(p + v) : t.slideTo(p) : (t.swipeDirection === "next" && t.slideTo(h === null ? p + v : h), t.swipeDirection === "prev" && t.slideTo(g === null ? p : g));
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function Ut(e) {
|
|
695
695
|
let t = this;
|
|
696
696
|
if (t.destroyed) return;
|
|
697
697
|
let n = t.touchEventsData, { params: r, touches: i, rtlTranslate: a, enabled: o } = t;
|
|
@@ -719,7 +719,7 @@ function Wt(e) {
|
|
|
719
719
|
startY: d,
|
|
720
720
|
currentX: u,
|
|
721
721
|
currentY: d
|
|
722
|
-
}), n.touchStartTime =
|
|
722
|
+
}), n.touchStartTime = Be());
|
|
723
723
|
return;
|
|
724
724
|
}
|
|
725
725
|
if (r.touchReleaseOnEdges && !r.loop) {
|
|
@@ -797,7 +797,7 @@ function Wt(e) {
|
|
|
797
797
|
}
|
|
798
798
|
!r.followFinger || r.cssMode || ((r.freeMode && r.freeMode.enabled && t.freeMode || r.watchSlidesProgress) && (t.updateActiveIndex(), t.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && t.freeMode && t.freeMode.onTouchMove(), t.updateProgress(n.currentTranslate), t.setTranslate(n.currentTranslate ?? 0));
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Wt(e, t) {
|
|
801
801
|
function n(t) {
|
|
802
802
|
if (!t || t === document || t === window) return null;
|
|
803
803
|
let r = t;
|
|
@@ -809,11 +809,11 @@ function Gt(e, t) {
|
|
|
809
809
|
}
|
|
810
810
|
return n(t);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Gt(e, t, n) {
|
|
813
813
|
let { params: r } = e, i = r.edgeSwipeDetection, a = r.edgeSwipeThreshold;
|
|
814
814
|
return i && (n <= a || n >= window.innerWidth - a) ? i === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Kt(e) {
|
|
817
817
|
let t = this;
|
|
818
818
|
if (t.destroyed) return;
|
|
819
819
|
let n = e.originalEvent ?? e, r = t.touchEventsData;
|
|
@@ -823,20 +823,20 @@ function qt(e) {
|
|
|
823
823
|
r.pointerId = e.pointerId;
|
|
824
824
|
} else n.type === "touchstart" && n.targetTouches.length === 1 && (r.touchId = n.targetTouches[0].identifier);
|
|
825
825
|
if (n.type === "touchstart") {
|
|
826
|
-
|
|
826
|
+
Gt(t, n, n.targetTouches[0].pageX);
|
|
827
827
|
return;
|
|
828
828
|
}
|
|
829
829
|
let { params: i, touches: a, enabled: o } = t;
|
|
830
830
|
if (!o || !i.simulateTouch && n.pointerType === "mouse" || t.animating && i.preventInteractionOnTransition) return;
|
|
831
831
|
!t.animating && i.cssMode && i.loop && t.loopFix();
|
|
832
832
|
let s = n.target;
|
|
833
|
-
if (i.touchEventsTarget === "wrapper" && !
|
|
833
|
+
if (i.touchEventsTarget === "wrapper" && !Je(s, t.wrapperEl)) return;
|
|
834
834
|
let c = n;
|
|
835
835
|
if (typeof c.which == "number" && c.which === 3 || typeof c.button == "number" && c.button > 0 || r.isTouched && r.isMoved) return;
|
|
836
836
|
let l = !!i.noSwipingClass && i.noSwipingClass !== "", u = n.composedPath ? n.composedPath() : n.path;
|
|
837
837
|
l && n.target && n.target.shadowRoot && u && (s = u[0]);
|
|
838
838
|
let d = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(n.target && n.target.shadowRoot);
|
|
839
|
-
if (i.noSwiping && (f ?
|
|
839
|
+
if (i.noSwiping && (f ? Wt(d, s) : s.closest(d))) {
|
|
840
840
|
t.allowClick = !0;
|
|
841
841
|
return;
|
|
842
842
|
}
|
|
@@ -844,20 +844,20 @@ function qt(e) {
|
|
|
844
844
|
let p = n;
|
|
845
845
|
a.currentX = p.pageX, a.currentY = p.pageY;
|
|
846
846
|
let m = a.currentX, h = a.currentY;
|
|
847
|
-
if (!
|
|
847
|
+
if (!Gt(t, n, m)) return;
|
|
848
848
|
Object.assign(r, {
|
|
849
849
|
isTouched: !0,
|
|
850
850
|
isMoved: !1,
|
|
851
851
|
allowTouchCallbacks: !0,
|
|
852
852
|
isScrolling: void 0,
|
|
853
853
|
startMoving: void 0
|
|
854
|
-
}), a.startX = m, a.startY = h, r.touchStartTime =
|
|
854
|
+
}), a.startX = m, a.startY = h, r.touchStartTime = Be(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, i.threshold > 0 && (r.allowThresholdMove = !1);
|
|
855
855
|
let g = !0;
|
|
856
856
|
s.matches(r.focusableElements) && (g = !1, s.nodeName === "SELECT" && (r.isTouched = !1)), document.activeElement && document.activeElement.matches(r.focusableElements) && document.activeElement !== s && (p.pointerType === "mouse" || p.pointerType !== "mouse" && !s.matches(r.focusableElements)) && document.activeElement.blur();
|
|
857
857
|
let _ = g && t.allowTouchMove && i.touchStartPreventDefault;
|
|
858
858
|
(i.touchStartForcePreventDefault || _) && !s.isContentEditable && n.preventDefault(), i.freeMode && i.freeMode.enabled && t.freeMode && t.animating && !i.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", n);
|
|
859
859
|
}
|
|
860
|
-
var
|
|
860
|
+
var qt = (e, t) => {
|
|
861
861
|
let { params: n, el: r, wrapperEl: i, device: a } = e, o = !!n.nested, s = t === "on" ? "addEventListener" : "removeEventListener", c = t;
|
|
862
862
|
if (!r || typeof r == "string") return;
|
|
863
863
|
document[s]("touchstart", e.onDocumentTouchStart, {
|
|
@@ -871,22 +871,22 @@ var Jt = (e, t) => {
|
|
|
871
871
|
capture: o
|
|
872
872
|
}), document[s]("touchend", e.onTouchEnd, { passive: !0 }), document[s]("pointerup", e.onTouchEnd, { passive: !0 }), document[s]("pointercancel", e.onTouchEnd, { passive: !0 }), document[s]("touchcancel", e.onTouchEnd, { passive: !0 }), document[s]("pointerout", e.onTouchEnd, { passive: !0 }), document[s]("pointerleave", e.onTouchEnd, { passive: !0 }), document[s]("contextmenu", e.onTouchEnd, { passive: !0 }), (n.preventClicks || n.preventClicksPropagation) && r[s]("click", e.onClick, !0), n.cssMode && i[s]("scroll", e.onScroll);
|
|
873
873
|
let l = (t) => {
|
|
874
|
-
e[c](t,
|
|
874
|
+
e[c](t, Bt, !0);
|
|
875
875
|
};
|
|
876
876
|
n.updateOnWindowResize ? l(a.ios || a.android ? "resize orientationchange observerUpdate" : "resize observerUpdate") : l("observerUpdate"), r[s]("load", e.onLoad, { capture: !0 });
|
|
877
877
|
};
|
|
878
|
-
function
|
|
878
|
+
function Jt() {
|
|
879
879
|
let e = this, { params: t } = e;
|
|
880
|
-
e.onTouchStart =
|
|
880
|
+
e.onTouchStart = Kt.bind(e), e.onTouchMove = Ut.bind(e), e.onTouchEnd = Ht.bind(e), e.onDocumentTouchStart = Rt.bind(e), t.cssMode && (e.onScroll = Vt.bind(e)), e.onClick = Lt.bind(e), e.onLoad = zt.bind(e), qt(e, "on");
|
|
881
881
|
}
|
|
882
|
-
function
|
|
883
|
-
|
|
882
|
+
function Yt() {
|
|
883
|
+
qt(this, "off");
|
|
884
884
|
}
|
|
885
|
-
var
|
|
886
|
-
attachEvents:
|
|
887
|
-
detachEvents:
|
|
885
|
+
var Xt = {
|
|
886
|
+
attachEvents: Jt,
|
|
887
|
+
detachEvents: Yt
|
|
888
888
|
};
|
|
889
|
-
function
|
|
889
|
+
function Zt(e) {
|
|
890
890
|
let t = this;
|
|
891
891
|
if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
|
|
892
892
|
let n = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
|
|
@@ -894,25 +894,25 @@ function Qt(e) {
|
|
|
894
894
|
t.__preventObserver__ = !1;
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
|
-
function
|
|
897
|
+
function Qt() {
|
|
898
898
|
let e = this;
|
|
899
899
|
e.params.watchOverflow && e.isLocked || e.params.cssMode || (e.isElement && (e.__preventObserver__ = !0), e[e.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", e.isElement && requestAnimationFrame(() => {
|
|
900
900
|
e.__preventObserver__ = !1;
|
|
901
901
|
}));
|
|
902
902
|
}
|
|
903
|
-
var
|
|
904
|
-
setGrabCursor:
|
|
905
|
-
unsetGrabCursor:
|
|
903
|
+
var $t = {
|
|
904
|
+
setGrabCursor: Zt,
|
|
905
|
+
unsetGrabCursor: Qt
|
|
906
906
|
};
|
|
907
|
-
function
|
|
907
|
+
function en(e, t) {
|
|
908
908
|
let n = this, { params: r, slidesEl: i } = n;
|
|
909
909
|
if (!r.loop || n.virtual && n.params.virtual?.enabled) return;
|
|
910
910
|
let a = () => {
|
|
911
|
-
|
|
911
|
+
Ke(i, `.${r.slideClass}, swiper-slide`).forEach((e, t) => {
|
|
912
912
|
e.setAttribute("data-swiper-slide-index", String(t));
|
|
913
913
|
});
|
|
914
914
|
}, o = () => {
|
|
915
|
-
let e =
|
|
915
|
+
let e = Ke(i, `.${r.slideBlankClass}`);
|
|
916
916
|
e.forEach((e) => {
|
|
917
917
|
e.remove();
|
|
918
918
|
}), e.length > 0 && (n.recalcSlides(), n.updateSlides());
|
|
@@ -920,11 +920,11 @@ function tn(e, t) {
|
|
|
920
920
|
r.loopAddBlankSlides && (r.slidesPerGroup > 1 || s) && o();
|
|
921
921
|
let c = r.slidesPerGroup * (s ? r.grid.rows : 1), l = n.slides.length % c !== 0, u = s && n.slides.length % r.grid.rows !== 0, d = (e) => {
|
|
922
922
|
for (let t = 0; t < e; t += 1) {
|
|
923
|
-
let e = n.isElement ?
|
|
923
|
+
let e = n.isElement ? Xe("swiper-slide", [r.slideBlankClass]) : Xe("div", [r.slideClass, r.slideBlankClass]);
|
|
924
924
|
n.slidesEl.append(e);
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
-
l ? (r.loopAddBlankSlides ? (d(c - n.slides.length % c), n.recalcSlides(), n.updateSlides()) :
|
|
927
|
+
l ? (r.loopAddBlankSlides ? (d(c - n.slides.length % c), n.recalcSlides(), n.updateSlides()) : Ye("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"), a()) : (u && (r.loopAddBlankSlides ? (d(r.grid.rows - n.slides.length % r.grid.rows), n.recalcSlides(), n.updateSlides()) : Ye("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)")), a());
|
|
928
928
|
let f = r.centeredSlides || !!r.slidesOffsetBefore || !!r.slidesOffsetAfter;
|
|
929
929
|
n.loopFix({
|
|
930
930
|
slideRealIndex: e,
|
|
@@ -932,7 +932,7 @@ function tn(e, t) {
|
|
|
932
932
|
initial: t
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function tn() {
|
|
936
936
|
let e = this, { params: t, slidesEl: n } = e;
|
|
937
937
|
if (!t.loop || !n || e.virtual && e.params.virtual?.enabled) return;
|
|
938
938
|
e.recalcSlides();
|
|
@@ -946,7 +946,7 @@ function nn() {
|
|
|
946
946
|
n.append(e);
|
|
947
947
|
}), e.recalcSlides(), e.slideTo(e.realIndex, 0);
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function nn(e = {}) {
|
|
950
950
|
let { slideRealIndex: t, slideTo: n = !0, direction: r, setTranslate: i, activeSlideIndex: a, initial: o, byController: s, byMousewheel: c } = e, l = a, u = this;
|
|
951
951
|
if (!u.params.loop) return;
|
|
952
952
|
u.emit("beforeLoopFix");
|
|
@@ -964,21 +964,21 @@ function rn(e = {}) {
|
|
|
964
964
|
let S = h.slidesPerGroupAuto ? x : h.slidesPerGroup, C = b ? Math.max(S, Math.ceil(x / 2)) : S;
|
|
965
965
|
C % S !== 0 && (C += S - C % S), C += h.loopAdditionalSlides, u.loopedSlides = C;
|
|
966
966
|
let w = u.grid && h.grid && h.grid.rows > 1;
|
|
967
|
-
d.length < x + C || u.params.effect === "cards" && d.length < x + C * 2 ?
|
|
967
|
+
d.length < x + C || u.params.effect === "cards" && d.length < x + C * 2 ? Ye("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") : w && h.grid.fill === "row" && Ye("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
968
968
|
let T = [], E = [], D = w ? Math.ceil(d.length / h.grid.rows) : d.length, O = o && D - y < x && !b, k = O ? y : u.activeIndex;
|
|
969
969
|
l === void 0 ? l = u.getSlideIndex(d.find((e) => e.classList.contains(h.slideActiveClass))) : k = l;
|
|
970
|
-
let A = r === "next" || !r, j = r === "prev" || !r, M = 0, N = 0,
|
|
971
|
-
if (
|
|
972
|
-
M = Math.max(C -
|
|
973
|
-
for (let e = 0; e < C -
|
|
970
|
+
let A = r === "next" || !r, j = r === "prev" || !r, M = 0, N = 0, P = (w ? d[l].column ?? 0 : l) + (b && i === void 0 ? -x / 2 + .5 : 0);
|
|
971
|
+
if (P < C) {
|
|
972
|
+
M = Math.max(C - P, S);
|
|
973
|
+
for (let e = 0; e < C - P; e += 1) {
|
|
974
974
|
let t = e - Math.floor(e / D) * D;
|
|
975
975
|
if (w) {
|
|
976
976
|
let e = D - t - 1;
|
|
977
977
|
for (let t = d.length - 1; t >= 0; --t) d[t].column === e && T.push(t);
|
|
978
978
|
} else T.push(D - t - 1);
|
|
979
979
|
}
|
|
980
|
-
} else if (
|
|
981
|
-
N = Math.max(
|
|
980
|
+
} else if (P + x > D - C) {
|
|
981
|
+
N = Math.max(P - (D - C * 2), S), O && (N = Math.max(N, x - D + y + 1));
|
|
982
982
|
for (let e = 0; e < N; e += 1) {
|
|
983
983
|
let t = e - Math.floor(e / D) * D;
|
|
984
984
|
w ? d.forEach((e, n) => {
|
|
@@ -1014,8 +1014,8 @@ function rn(e = {}) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
1016
1016
|
u.allowSlidePrev = f, u.allowSlideNext = p;
|
|
1017
|
-
let
|
|
1018
|
-
if (
|
|
1017
|
+
let ee = u.controller?.control;
|
|
1018
|
+
if (ee && !s) {
|
|
1019
1019
|
let e = {
|
|
1020
1020
|
slideRealIndex: t,
|
|
1021
1021
|
direction: r,
|
|
@@ -1023,38 +1023,38 @@ function rn(e = {}) {
|
|
|
1023
1023
|
activeSlideIndex: l,
|
|
1024
1024
|
byController: !0
|
|
1025
1025
|
};
|
|
1026
|
-
Array.isArray(
|
|
1026
|
+
Array.isArray(ee) ? ee.forEach((t) => {
|
|
1027
1027
|
!t.destroyed && t.params.loop && t.loopFix({
|
|
1028
1028
|
...e,
|
|
1029
1029
|
slideTo: t.params.slidesPerView === h.slidesPerView && n
|
|
1030
1030
|
});
|
|
1031
|
-
}) :
|
|
1031
|
+
}) : ee instanceof u.constructor && ee.params.loop && ee.loopFix({
|
|
1032
1032
|
...e,
|
|
1033
|
-
slideTo:
|
|
1033
|
+
slideTo: ee.params.slidesPerView === h.slidesPerView && n
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
u.emit("loopFix");
|
|
1037
1037
|
}
|
|
1038
|
-
var
|
|
1039
|
-
loopCreate:
|
|
1040
|
-
loopFix:
|
|
1041
|
-
loopDestroy:
|
|
1038
|
+
var rn = {
|
|
1039
|
+
loopCreate: en,
|
|
1040
|
+
loopFix: nn,
|
|
1041
|
+
loopDestroy: tn
|
|
1042
1042
|
};
|
|
1043
|
-
function
|
|
1043
|
+
function an(e, t) {
|
|
1044
1044
|
return function(n = {}) {
|
|
1045
1045
|
let r = Object.keys(n)[0], i = n[r];
|
|
1046
1046
|
if (typeof i != "object" || !i) {
|
|
1047
|
-
|
|
1047
|
+
K(t, n);
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
1050
|
if (e[r] === !0 && (e[r] = { enabled: !0 }), r === "navigation" && e[r] && e[r].enabled && !e[r].prevEl && !e[r].nextEl && (e[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && e[r] && e[r].enabled && !e[r].el && (e[r].auto = !0), !(r in e && "enabled" in i)) {
|
|
1051
|
-
|
|
1051
|
+
K(t, n);
|
|
1052
1052
|
return;
|
|
1053
1053
|
}
|
|
1054
|
-
typeof e[r] == "object" && !("enabled" in e[r]) && (e[r].enabled = !0), e[r] || (e[r] = { enabled: !1 }),
|
|
1054
|
+
typeof e[r] == "object" && !("enabled" in e[r]) && (e[r].enabled = !0), e[r] || (e[r] = { enabled: !1 }), K(t, n);
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
|
-
var
|
|
1057
|
+
var on = ({ swiper: e, extendParams: t, on: n }) => {
|
|
1058
1058
|
let r = [], i = (t, n = {}) => {
|
|
1059
1059
|
let i = window.MutationObserver || window.WebkitMutationObserver;
|
|
1060
1060
|
if (!i) return;
|
|
@@ -1082,7 +1082,7 @@ var sn = ({ swiper: e, extendParams: t, on: n }) => {
|
|
|
1082
1082
|
}), n("init", () => {
|
|
1083
1083
|
if (e.params.observer) {
|
|
1084
1084
|
if (e.params.observeParents) {
|
|
1085
|
-
let t =
|
|
1085
|
+
let t = tt(e.hostEl);
|
|
1086
1086
|
for (let e = 0; e < t.length; e += 1) i(t[e]);
|
|
1087
1087
|
}
|
|
1088
1088
|
i(e.hostEl, { childList: e.params.observeSlideChildren }), i(e.wrapperEl, { attributes: !1 });
|
|
@@ -1092,7 +1092,7 @@ var sn = ({ swiper: e, extendParams: t, on: n }) => {
|
|
|
1092
1092
|
e.disconnect();
|
|
1093
1093
|
}), r.splice(0, r.length);
|
|
1094
1094
|
});
|
|
1095
|
-
},
|
|
1095
|
+
}, sn = ({ swiper: e, on: t, emit: n }) => {
|
|
1096
1096
|
let r = null, i = null, a = () => {
|
|
1097
1097
|
!e || e.destroyed || !e.initialized || (n("beforeResize"), n("resize"));
|
|
1098
1098
|
}, o = () => {
|
|
@@ -1121,7 +1121,7 @@ var sn = ({ swiper: e, extendParams: t, on: n }) => {
|
|
|
1121
1121
|
s(), window.removeEventListener("resize", a), window.removeEventListener("orientationchange", c);
|
|
1122
1122
|
});
|
|
1123
1123
|
};
|
|
1124
|
-
function
|
|
1124
|
+
function cn(e, t = !0, n) {
|
|
1125
1125
|
let r = this, { enabled: i, params: a, animating: o } = r;
|
|
1126
1126
|
if (!i || r.destroyed) return r;
|
|
1127
1127
|
e === void 0 && (e = r.params.speed);
|
|
@@ -1136,7 +1136,7 @@ function ln(e, t = !0, n) {
|
|
|
1136
1136
|
}
|
|
1137
1137
|
return a.rewind && r.isEnd ? r.slideTo(0, e, t, n) : r.slideTo(r.activeIndex + c, e, t, n);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function ln(e, t = !0, n) {
|
|
1140
1140
|
let r = this, { params: i, snapGrid: a, slidesGrid: o, rtlTranslate: s, enabled: c, animating: l } = r;
|
|
1141
1141
|
if (!c || r.destroyed) return r;
|
|
1142
1142
|
e === void 0 && (e = r.params.speed);
|
|
@@ -1165,11 +1165,11 @@ function un(e, t = !0, n) {
|
|
|
1165
1165
|
}), !0;
|
|
1166
1166
|
return r.slideTo(_, e, t, n);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function un(e, t = !0, n) {
|
|
1169
1169
|
let r = this;
|
|
1170
1170
|
if (!r.destroyed) return e === void 0 && (e = r.params.speed), r.slideTo(r.activeIndex, e, t, n);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function dn(e = 0, t, n = !0, r, i) {
|
|
1173
1173
|
typeof e == "string" && (e = parseInt(e, 10));
|
|
1174
1174
|
let a = this, o = e;
|
|
1175
1175
|
o < 0 && (o = 0);
|
|
@@ -1200,12 +1200,12 @@ function fn(e = 0, t, n = !0, r, i) {
|
|
|
1200
1200
|
behavior: "smooth"
|
|
1201
1201
|
}), !0;
|
|
1202
1202
|
}
|
|
1203
|
-
let b =
|
|
1203
|
+
let b = xt().isSafari;
|
|
1204
1204
|
return y && !i && b && a.isElement && a.virtual.update(!1, !1, o), a.setTransition(t), a.setTranslate(_), a.updateActiveIndex(o), a.updateSlidesClasses(), a.emit("beforeTransitionStart", t, r), a.transitionStart(n, v), t === 0 ? a.transitionEnd(n, v) : a.animating || (a.animating = !0, a.onSlideToWrapperTransitionEnd ||= function(e) {
|
|
1205
1205
|
!a || a.destroyed || e.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onSlideToWrapperTransitionEnd), a.onSlideToWrapperTransitionEnd = null, delete a.onSlideToWrapperTransitionEnd, a.transitionEnd(n, v));
|
|
1206
1206
|
}, a.wrapperEl.addEventListener("transitionend", a.onSlideToWrapperTransitionEnd)), !0;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function fn() {
|
|
1209
1209
|
let e = this;
|
|
1210
1210
|
if (e.destroyed) return;
|
|
1211
1211
|
let { params: t, slidesEl: n, clickedSlide: r, clickedIndex: i } = e;
|
|
@@ -1213,12 +1213,12 @@ function pn() {
|
|
|
1213
1213
|
let a = t.slidesPerView === "auto" ? e.slidesPerViewDynamic() : t.slidesPerView, o = e.getSlideIndexWhenGrid(i), s, c = e.isElement ? "swiper-slide" : `.${t.slideClass}`, l = e.grid && e.params.grid && e.params.grid.rows > 1;
|
|
1214
1214
|
if (t.loop) {
|
|
1215
1215
|
if (e.animating) return;
|
|
1216
|
-
s = parseInt(r.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? e.slideToLoop(s) : o > (l ? (e.slides.length - a) / 2 - (e.params.grid.rows - 1) : e.slides.length - a) ? (e.loopFix(), o = e.getSlideIndex(
|
|
1216
|
+
s = parseInt(r.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? e.slideToLoop(s) : o > (l ? (e.slides.length - a) / 2 - (e.params.grid.rows - 1) : e.slides.length - a) ? (e.loopFix(), o = e.getSlideIndex(Ke(n, `${c}[data-swiper-slide-index="${s}"]`)[0]), ze(() => {
|
|
1217
1217
|
e.slideTo(o);
|
|
1218
1218
|
})) : e.slideTo(o);
|
|
1219
1219
|
} else e.slideTo(o);
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function pn(e, t = !0, n, r = .5) {
|
|
1222
1222
|
let i = this;
|
|
1223
1223
|
if (i.destroyed) return;
|
|
1224
1224
|
e === void 0 && (e = i.params.speed);
|
|
@@ -1232,7 +1232,7 @@ function mn(e, t = !0, n, r = .5) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
return a = Math.max(a, 0), a = Math.min(a, i.slidesGrid.length - 1), i.slideTo(a, e, t, n);
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function mn(e = 0, t, n = !0, r) {
|
|
1236
1236
|
typeof e == "string" && (e = parseInt(e, 10));
|
|
1237
1237
|
let i = this;
|
|
1238
1238
|
if (i.destroyed) return;
|
|
@@ -1266,66 +1266,66 @@ function hn(e = 0, t, n = !0, r) {
|
|
|
1266
1266
|
i.slideTo(o, t, n, r);
|
|
1267
1267
|
}), i;
|
|
1268
1268
|
}
|
|
1269
|
-
var
|
|
1270
|
-
slideTo:
|
|
1271
|
-
slideToLoop:
|
|
1272
|
-
slideNext:
|
|
1273
|
-
slidePrev:
|
|
1274
|
-
slideReset:
|
|
1275
|
-
slideToClosest:
|
|
1276
|
-
slideToClickedSlide:
|
|
1269
|
+
var hn = {
|
|
1270
|
+
slideTo: dn,
|
|
1271
|
+
slideToLoop: mn,
|
|
1272
|
+
slideNext: cn,
|
|
1273
|
+
slidePrev: ln,
|
|
1274
|
+
slideReset: un,
|
|
1275
|
+
slideToClosest: pn,
|
|
1276
|
+
slideToClickedSlide: fn
|
|
1277
1277
|
};
|
|
1278
|
-
function
|
|
1278
|
+
function gn(e, t) {
|
|
1279
1279
|
let n = this;
|
|
1280
1280
|
n.params.cssMode || (n.wrapperEl.style.transitionDuration = `${e}ms`, n.wrapperEl.style.transitionDelay = e === 0 ? "0ms" : ""), n.emit("setTransition", e, t);
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function _n({ swiper: e, runCallbacks: t, direction: n, step: r }) {
|
|
1283
1283
|
let { activeIndex: i, previousIndex: a } = e, o = n;
|
|
1284
1284
|
o ||= i > a ? "next" : i < a ? "prev" : "reset", e.emit(`transition${r}`), t && o === "reset" ? e.emit(`slideResetTransition${r}`) : t && i !== a && (e.emit(`slideChangeTransition${r}`), o === "next" ? e.emit(`slideNextTransition${r}`) : e.emit(`slidePrevTransition${r}`));
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function vn(e = !0, t) {
|
|
1287
1287
|
let n = this, { params: r } = n;
|
|
1288
|
-
n.animating = !1, !r.cssMode && (n.setTransition(0),
|
|
1288
|
+
n.animating = !1, !r.cssMode && (n.setTransition(0), _n({
|
|
1289
1289
|
swiper: n,
|
|
1290
1290
|
runCallbacks: e,
|
|
1291
1291
|
direction: t,
|
|
1292
1292
|
step: "End"
|
|
1293
1293
|
}));
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function yn(e = !0, t) {
|
|
1296
1296
|
let n = this, { params: r } = n;
|
|
1297
|
-
r.cssMode || (r.autoHeight && n.updateAutoHeight(),
|
|
1297
|
+
r.cssMode || (r.autoHeight && n.updateAutoHeight(), _n({
|
|
1298
1298
|
swiper: n,
|
|
1299
1299
|
runCallbacks: e,
|
|
1300
1300
|
direction: t,
|
|
1301
1301
|
step: "Start"
|
|
1302
1302
|
}));
|
|
1303
1303
|
}
|
|
1304
|
-
var
|
|
1305
|
-
setTransition:
|
|
1306
|
-
transitionStart:
|
|
1307
|
-
transitionEnd:
|
|
1304
|
+
var bn = {
|
|
1305
|
+
setTransition: gn,
|
|
1306
|
+
transitionStart: yn,
|
|
1307
|
+
transitionEnd: vn
|
|
1308
1308
|
};
|
|
1309
|
-
function
|
|
1309
|
+
function xn(e = this.isHorizontal() ? "x" : "y") {
|
|
1310
1310
|
let t = this, { params: n, rtlTranslate: r, translate: i, wrapperEl: a } = t;
|
|
1311
1311
|
if (n.virtualTranslate) return r ? -i : i;
|
|
1312
1312
|
if (n.cssMode) return i;
|
|
1313
|
-
let o =
|
|
1313
|
+
let o = He(a, e);
|
|
1314
1314
|
return o += t.cssOverflowAdjustment(), r && (o = -o), o || 0;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function Sn() {
|
|
1317
1317
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Cn() {
|
|
1320
1320
|
return -this.snapGrid[0];
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function wn(e, t) {
|
|
1323
1323
|
let n = this, { rtlTranslate: r, params: i, wrapperEl: a, progress: o } = n, s = 0, c = 0;
|
|
1324
1324
|
n.isHorizontal() ? s = r ? -e : e : c = e, i.roundLengths && (s = Math.floor(s), c = Math.floor(c)), n.previousTranslate = n.translate, n.translate = n.isHorizontal() ? s : c, i.cssMode ? a[n.isHorizontal() ? "scrollLeft" : "scrollTop"] = n.isHorizontal() ? -s : -c : i.virtualTranslate || (n.isHorizontal() ? s -= n.cssOverflowAdjustment() : c -= n.cssOverflowAdjustment(), a.style.transform = `translate3d(${s}px, ${c}px, 0px)`);
|
|
1325
1325
|
let l, u = n.maxTranslate() - n.minTranslate();
|
|
1326
1326
|
l = u === 0 ? 0 : (e - n.minTranslate()) / u, l !== o && n.updateProgress(e), n.emit("setTranslate", n.translate, t);
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Tn(e = 0, t = this.params.speed, n = !0, r = !0, i) {
|
|
1329
1329
|
let a = this, { params: o, wrapperEl: s } = a;
|
|
1330
1330
|
if (a.animating && o.preventInteractionOnTransition) return !1;
|
|
1331
1331
|
let c = a.minTranslate(), l = a.maxTranslate(), u;
|
|
@@ -1340,24 +1340,24 @@ function En(e = 0, t = this.params.speed, n = !0, r = !0, i) {
|
|
|
1340
1340
|
!a || a.destroyed || e.target === this && (a.wrapperEl.removeEventListener("transitionend", a.onTranslateToWrapperTransitionEnd), a.onTranslateToWrapperTransitionEnd = null, delete a.onTranslateToWrapperTransitionEnd, a.animating = !1, n && a.emit("transitionEnd"));
|
|
1341
1341
|
}, a.wrapperEl.addEventListener("transitionend", a.onTranslateToWrapperTransitionEnd))), !0;
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1344
|
-
getTranslate:
|
|
1345
|
-
setTranslate:
|
|
1346
|
-
minTranslate:
|
|
1347
|
-
maxTranslate:
|
|
1348
|
-
translateTo:
|
|
1343
|
+
var En = {
|
|
1344
|
+
getTranslate: xn,
|
|
1345
|
+
setTranslate: wn,
|
|
1346
|
+
minTranslate: Cn,
|
|
1347
|
+
maxTranslate: Sn,
|
|
1348
|
+
translateTo: Tn
|
|
1349
1349
|
};
|
|
1350
|
-
function
|
|
1350
|
+
function Dn(e) {
|
|
1351
1351
|
let { slidesGrid: t, params: n } = e, r = e.rtlTranslate ? e.translate : -e.translate, i;
|
|
1352
1352
|
for (let e = 0; e < t.length; e += 1) t[e + 1] === void 0 ? r >= t[e] && (i = e) : r >= t[e] && r < t[e + 1] - (t[e + 1] - t[e]) / 2 ? i = e : r >= t[e] && r < t[e + 1] && (i = e + 1);
|
|
1353
1353
|
return n.normalizeSlideIndex && (i < 0 || i === void 0) && (i = 0), i;
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function On(e) {
|
|
1356
1356
|
let t = this, n = t.rtlTranslate ? t.translate : -t.translate, { snapGrid: r, params: i, activeIndex: a, realIndex: o, snapIndex: s } = t, c = e, l, u = (e) => {
|
|
1357
1357
|
let n = t.virtual.slides, r = e - (t.virtual.slidesBefore ?? 0);
|
|
1358
1358
|
return r < 0 && (r = n.length + r), r >= n.length && (r -= n.length), r;
|
|
1359
1359
|
};
|
|
1360
|
-
if (c === void 0 && (c =
|
|
1360
|
+
if (c === void 0 && (c = Dn(t)), r.indexOf(n) >= 0) l = r.indexOf(n);
|
|
1361
1361
|
else {
|
|
1362
1362
|
let e = Math.min(i.slidesPerGroupSkip, c);
|
|
1363
1363
|
l = e + Math.floor((c - e) / i.slidesPerGroup);
|
|
@@ -1386,9 +1386,9 @@ function kn(e) {
|
|
|
1386
1386
|
realIndex: f,
|
|
1387
1387
|
previousIndex: a,
|
|
1388
1388
|
activeIndex: c
|
|
1389
|
-
}), t.initialized &&
|
|
1389
|
+
}), t.initialized && wt(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (o !== f && t.emit("realIndexChange"), t.emit("slideChange"));
|
|
1390
1390
|
}
|
|
1391
|
-
function
|
|
1391
|
+
function kn(e) {
|
|
1392
1392
|
let t = this, n = [], r = t.virtual && t.params.virtual?.enabled, i = 0, a;
|
|
1393
1393
|
typeof e == "number" ? t.setTransition(e) : e === !0 && t.setTransition(t.params.speed);
|
|
1394
1394
|
let o = (e) => r ? t.slides[t.getSlideIndexByData(e)] : t.slides[e];
|
|
@@ -1411,7 +1411,7 @@ function An(e) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
(i || i === 0) && (t.wrapperEl.style.height = `${i}px`);
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function An(e, t) {
|
|
1415
1415
|
let n = this, r = n.params, i = e.closest(`.${r.slideClass}, swiper-slide`);
|
|
1416
1416
|
!i && n.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEach((e) => {
|
|
1417
1417
|
!i && e.matches && e.matches(`.${r.slideClass}, swiper-slide`) && (i = e);
|
|
@@ -1430,7 +1430,7 @@ function jn(e, t) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
r.slideToClickedSlide && n.clickedIndex !== void 0 && n.clickedIndex !== n.activeIndex && n.slideToClickedSlide();
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function jn(e) {
|
|
1434
1434
|
let t = this;
|
|
1435
1435
|
if (e === void 0) {
|
|
1436
1436
|
let n = t.rtlTranslate ? -1 : 1;
|
|
@@ -1454,36 +1454,36 @@ function Mn(e) {
|
|
|
1454
1454
|
isEnd: o
|
|
1455
1455
|
}), (n.watchSlidesProgress || n.centeredSlides && n.autoHeight) && t.updateSlidesProgress(e), a && !c && t.emit("reachBeginning toEdge"), o && !l && t.emit("reachEnd toEdge"), (c && !a || l && !o) && t.emit("fromEdge"), t.emit("progress", i);
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Mn() {
|
|
1458
1458
|
let e = this, t, n, r = e.el;
|
|
1459
|
-
t = e.params.width !== void 0 && e.params.width !== null ? e.params.width : r.clientWidth, n = e.params.height !== void 0 && e.params.height !== null ? e.params.height : r.clientHeight, !(t === 0 && e.isHorizontal() || n === 0 && e.isVertical()) && (t = t - parseInt(
|
|
1459
|
+
t = e.params.width !== void 0 && e.params.width !== null ? e.params.width : r.clientWidth, n = e.params.height !== void 0 && e.params.height !== null ? e.params.height : r.clientHeight, !(t === 0 && e.isHorizontal() || n === 0 && e.isVertical()) && (t = t - parseInt($e(r, "padding-left") || "0", 10) - parseInt($e(r, "padding-right") || "0", 10), n = n - parseInt($e(r, "padding-top") || "0", 10) - parseInt($e(r, "padding-bottom") || "0", 10), Number.isNaN(t) && (t = 0), Number.isNaN(n) && (n = 0), Object.assign(e, {
|
|
1460
1460
|
width: t,
|
|
1461
1461
|
height: n,
|
|
1462
1462
|
size: e.isHorizontal() ? t : n
|
|
1463
1463
|
}));
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function Nn() {
|
|
1466
1466
|
let e = this;
|
|
1467
1467
|
function t(t, n) {
|
|
1468
1468
|
return parseFloat(t.getPropertyValue(e.getDirectionLabel(n)) || "0");
|
|
1469
1469
|
}
|
|
1470
|
-
let n = e.params, { wrapperEl: r, slidesEl: i, rtlTranslate: a, wrongRTL: o } = e, s = !!(e.virtual && n.virtual?.enabled), c = s ? e.virtual.slides.length : e.slides.length, l =
|
|
1470
|
+
let n = e.params, { wrapperEl: r, slidesEl: i, rtlTranslate: a, wrongRTL: o } = e, s = !!(e.virtual && n.virtual?.enabled), c = s ? e.virtual.slides.length : e.slides.length, l = Ke(i, `.${e.params.slideClass}, swiper-slide`), u = s ? e.virtual.slides.length : l.length, d = [], f = [], p = [], m = (t) => typeof t == "function" ? t.call(e) : t, h = m(n.slidesOffsetBefore), g = m(n.slidesOffsetAfter), _ = e.snapGrid.length, v = e.slidesGrid.length, y = e.size - h - g, b = n.spaceBetween, x = -h, S = 0, C = 0;
|
|
1471
1471
|
if (y === void 0) return;
|
|
1472
1472
|
typeof b == "string" && b.indexOf("%") >= 0 ? b = parseFloat(b.replace("%", "")) / 100 * y : typeof b == "string" && (b = parseFloat(b)), e.virtualSize = -b - h - g, l.forEach((e) => {
|
|
1473
1473
|
a ? e.style.marginLeft = "" : e.style.marginRight = "", e.style.marginBottom = "", e.style.marginTop = "";
|
|
1474
|
-
}), n.centeredSlides && n.cssMode && (
|
|
1474
|
+
}), n.centeredSlides && n.cssMode && (Ge(r, "--swiper-centered-offset-before", ""), Ge(r, "--swiper-centered-offset-after", "")), n.cssMode && (Ge(r, "--swiper-slides-offset-before", `${h}px`), Ge(r, "--swiper-slides-offset-after", `${g}px`));
|
|
1475
1475
|
let w = n.grid && n.grid.rows > 1 && e.grid;
|
|
1476
1476
|
w ? e.grid.initSlides(l) : e.grid && e.grid.unsetSlides();
|
|
1477
1477
|
let T = 0, E = n.slidesPerView === "auto" && n.breakpoints && Object.keys(n.breakpoints).filter((e) => n.breakpoints[e]?.slidesPerView !== void 0).length > 0;
|
|
1478
1478
|
for (let r = 0; r < u; r += 1) {
|
|
1479
1479
|
T = 0;
|
|
1480
1480
|
let i = l[r];
|
|
1481
|
-
if (!(i && (w && e.grid.updateSlide(r, i, l),
|
|
1481
|
+
if (!(i && (w && e.grid.updateSlide(r, i, l), $e(i, "display") === "none"))) {
|
|
1482
1482
|
if (s && n.slidesPerView === "auto") n.virtual?.slidesPerViewAutoSlideSize && (T = n.virtual.slidesPerViewAutoSlideSize), T && i && (n.roundLengths && (T = Math.floor(T)), i.style[e.getDirectionLabel("width")] = `${T}px`);
|
|
1483
1483
|
else if (n.slidesPerView === "auto") {
|
|
1484
1484
|
E && (i.style[e.getDirectionLabel("width")] = "");
|
|
1485
1485
|
let r = getComputedStyle(i), a = i.style.transform, o = i.style.webkitTransform;
|
|
1486
|
-
if (a && (i.style.transform = "none"), o && (i.style.webkitTransform = "none"), n.roundLengths) T = e.isHorizontal() ?
|
|
1486
|
+
if (a && (i.style.transform = "none"), o && (i.style.webkitTransform = "none"), n.roundLengths) T = e.isHorizontal() ? nt(i, "width") : nt(i, "height");
|
|
1487
1487
|
else {
|
|
1488
1488
|
let e = t(r, "width"), n = t(r, "padding-left"), a = t(r, "padding-right"), o = t(r, "margin-left"), s = t(r, "margin-right"), c = r.getPropertyValue("box-sizing");
|
|
1489
1489
|
if (c && c === "border-box") T = e + o + s;
|
|
@@ -1556,7 +1556,7 @@ function Pn() {
|
|
|
1556
1556
|
slidesGrid: f,
|
|
1557
1557
|
slidesSizesGrid: p
|
|
1558
1558
|
}), n.centeredSlides && n.cssMode && !n.centeredSlidesBounds) {
|
|
1559
|
-
|
|
1559
|
+
Ge(r, "--swiper-centered-offset-before", `${-d[0]}px`), Ge(r, "--swiper-centered-offset-after", `${e.size / 2 - p[p.length - 1] / 2}px`);
|
|
1560
1560
|
let t = -e.snapGrid[0], n = -e.slidesGrid[0];
|
|
1561
1561
|
e.snapGrid = e.snapGrid.map((e) => e + t), e.slidesGrid = e.slidesGrid.map((e) => e + n);
|
|
1562
1562
|
}
|
|
@@ -1565,28 +1565,28 @@ function Pn() {
|
|
|
1565
1565
|
u <= n.maxBackfaceHiddenSlides ? r || e.el.classList.add(t) : r && e.el.classList.remove(t);
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
|
-
var
|
|
1568
|
+
var Pn = (e, t, n) => {
|
|
1569
1569
|
t && !e.classList.contains(n) ? e.classList.add(n) : !t && e.classList.contains(n) && e.classList.remove(n);
|
|
1570
1570
|
};
|
|
1571
|
-
function
|
|
1572
|
-
let e = this, { slides: t, params: n, slidesEl: r, activeIndex: i } = e, a = !!(e.virtual && n.virtual?.enabled), o = e.grid && n.grid && n.grid.rows > 1, s = (e) =>
|
|
1571
|
+
function Fn() {
|
|
1572
|
+
let e = this, { slides: t, params: n, slidesEl: r, activeIndex: i } = e, a = !!(e.virtual && n.virtual?.enabled), o = e.grid && n.grid && n.grid.rows > 1, s = (e) => Ke(r, `.${n.slideClass}${e}, swiper-slide${e}`)[0], c, l, u;
|
|
1573
1573
|
if (a) if (n.loop) {
|
|
1574
1574
|
let t = e.virtual.slides, n = i - (e.virtual.slidesBefore ?? 0);
|
|
1575
1575
|
n < 0 && (n = t.length + n), n >= t.length && (n -= t.length), c = s(`[data-swiper-slide-index="${n}"]`);
|
|
1576
1576
|
} else c = s(`[data-swiper-slide-index="${i}"]`);
|
|
1577
1577
|
else o ? (c = t.find((e) => e.column === i), u = t.find((e) => e.column === i + 1), l = t.find((e) => e.column === i - 1)) : c = t[i];
|
|
1578
|
-
c && (o || (u =
|
|
1579
|
-
|
|
1578
|
+
c && (o || (u = Qe(c, `.${n.slideClass}, swiper-slide`)[0], n.loop && !u && (u = t[0]), l = Ze(c, `.${n.slideClass}, swiper-slide`)[0], n.loop)), t.forEach((e) => {
|
|
1579
|
+
Pn(e, e === c, n.slideActiveClass), Pn(e, e === u, n.slideNextClass), Pn(e, e === l, n.slidePrevClass);
|
|
1580
1580
|
}), e.emitSlidesClasses();
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1582
|
+
function In() {
|
|
1583
1583
|
let e = this, t = e.slides, n = e.isElement ? e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop : 0;
|
|
1584
1584
|
for (let r = 0; r < t.length; r += 1) t[r].swiperSlideOffset = (e.isHorizontal() ? t[r].offsetLeft : t[r].offsetTop) - n - e.cssOverflowAdjustment();
|
|
1585
1585
|
}
|
|
1586
|
-
var
|
|
1586
|
+
var Ln = (e, t, n) => {
|
|
1587
1587
|
t && !e.classList.contains(n) ? e.classList.add(n) : !t && e.classList.contains(n) && e.classList.remove(n);
|
|
1588
1588
|
};
|
|
1589
|
-
function
|
|
1589
|
+
function Rn(e = this && this.translate || 0) {
|
|
1590
1590
|
let t = this, n = t.params, { slides: r, rtlTranslate: i, snapGrid: a } = t;
|
|
1591
1591
|
if (r.length === 0) return;
|
|
1592
1592
|
r[0].swiperSlideOffset === void 0 && t.updateSlidesOffset();
|
|
@@ -1598,45 +1598,45 @@ function zn(e = this && this.translate || 0) {
|
|
|
1598
1598
|
let c = r[e], l = c.swiperSlideOffset ?? 0;
|
|
1599
1599
|
n.cssMode && n.centeredSlides && (l -= r[0].swiperSlideOffset ?? 0);
|
|
1600
1600
|
let u = c.swiperSlideSize ?? 0, d = (o + (n.centeredSlides ? t.minTranslate() : 0) - l) / (u + s), f = (o - a[0] + (n.centeredSlides ? t.minTranslate() : 0) - l) / (u + s), p = -(o - l), m = p + t.slidesSizesGrid[e], h = p >= 0 && p <= t.size - t.slidesSizesGrid[e], g = p >= 0 && p < t.size - 1 || m > 1 && m <= t.size || p <= 0 && m >= t.size;
|
|
1601
|
-
g && (t.visibleSlides.push(c), t.visibleSlidesIndexes.push(e)),
|
|
1601
|
+
g && (t.visibleSlides.push(c), t.visibleSlidesIndexes.push(e)), Ln(c, g, n.slideVisibleClass), Ln(c, h, n.slideFullyVisibleClass), c.progress = i ? -d : d, c.originalProgress = i ? -f : f;
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
|
-
var
|
|
1605
|
-
eventsEmitter:
|
|
1604
|
+
var zn = {
|
|
1605
|
+
eventsEmitter: It,
|
|
1606
1606
|
update: {
|
|
1607
|
-
updateSize:
|
|
1608
|
-
updateSlides:
|
|
1609
|
-
updateAutoHeight:
|
|
1610
|
-
updateSlidesOffset:
|
|
1611
|
-
updateSlidesProgress:
|
|
1612
|
-
updateProgress:
|
|
1613
|
-
updateSlidesClasses:
|
|
1614
|
-
updateActiveIndex:
|
|
1615
|
-
updateClickedSlide:
|
|
1607
|
+
updateSize: Mn,
|
|
1608
|
+
updateSlides: Nn,
|
|
1609
|
+
updateAutoHeight: kn,
|
|
1610
|
+
updateSlidesOffset: In,
|
|
1611
|
+
updateSlidesProgress: Rn,
|
|
1612
|
+
updateProgress: jn,
|
|
1613
|
+
updateSlidesClasses: Fn,
|
|
1614
|
+
updateActiveIndex: On,
|
|
1615
|
+
updateClickedSlide: An
|
|
1616
1616
|
},
|
|
1617
|
-
translate:
|
|
1618
|
-
transition:
|
|
1619
|
-
slide:
|
|
1620
|
-
loop:
|
|
1621
|
-
grabCursor:
|
|
1622
|
-
events:
|
|
1623
|
-
breakpoints:
|
|
1624
|
-
checkOverflow:
|
|
1625
|
-
classes:
|
|
1626
|
-
},
|
|
1617
|
+
translate: En,
|
|
1618
|
+
transition: bn,
|
|
1619
|
+
slide: hn,
|
|
1620
|
+
loop: rn,
|
|
1621
|
+
grabCursor: $t,
|
|
1622
|
+
events: Xt,
|
|
1623
|
+
breakpoints: Ot,
|
|
1624
|
+
checkOverflow: At,
|
|
1625
|
+
classes: Pt
|
|
1626
|
+
}, Bn = {}, Vn = class e {
|
|
1627
1627
|
static extendedDefaults;
|
|
1628
1628
|
static defaults;
|
|
1629
1629
|
constructor(...t) {
|
|
1630
1630
|
let n, r;
|
|
1631
|
-
if (t.length === 1 && t[0] !== null && typeof t[0] == "object" && Object.prototype.toString.call(t[0]).slice(8, -1) === "Object" ? r = t[0] : [n, r] = t, r ||= {}, r =
|
|
1631
|
+
if (t.length === 1 && t[0] !== null && typeof t[0] == "object" && Object.prototype.toString.call(t[0]).slice(8, -1) === "Object" ? r = t[0] : [n, r] = t, r ||= {}, r = K({}, r), n && !r.el && (r.el = n), r.el && typeof r.el == "string" && typeof document < "u" && document.querySelectorAll(r.el).length > 1) {
|
|
1632
1632
|
let t = [];
|
|
1633
1633
|
return document.querySelectorAll(r.el).forEach((n) => {
|
|
1634
|
-
let i =
|
|
1634
|
+
let i = K({}, r, { el: n });
|
|
1635
1635
|
t.push(new e(i));
|
|
1636
1636
|
}), t;
|
|
1637
1637
|
}
|
|
1638
1638
|
let i = this;
|
|
1639
|
-
i.__swiper__ = !0, i.support =
|
|
1639
|
+
i.__swiper__ = !0, i.support = ht(), i.device = vt({ userAgent: r.userAgent ?? void 0 }), i.browser = xt(), i.eventsListeners = {}, i.eventsAnyListeners = [], i.modules = [...i.__modules__ || []], r.modules && Array.isArray(r.modules) && r.modules.forEach((e) => {
|
|
1640
1640
|
let t = e;
|
|
1641
1641
|
typeof t == "function" && i.modules.indexOf(t) < 0 && i.modules.push(t);
|
|
1642
1642
|
});
|
|
@@ -1645,13 +1645,13 @@ var Bn = {
|
|
|
1645
1645
|
e({
|
|
1646
1646
|
params: r,
|
|
1647
1647
|
swiper: i,
|
|
1648
|
-
extendParams:
|
|
1648
|
+
extendParams: an(r, a),
|
|
1649
1649
|
on: i.on.bind(i),
|
|
1650
1650
|
once: i.once.bind(i),
|
|
1651
1651
|
off: i.off.bind(i),
|
|
1652
1652
|
emit: i.emit.bind(i)
|
|
1653
1653
|
});
|
|
1654
|
-
}), i.params =
|
|
1654
|
+
}), i.params = K({}, K({}, Ft, a), Bn, r), i.originalParams = K({}, i.params), i.passedParams = K({}, r), i.params && i.params.on) {
|
|
1655
1655
|
let e = i.params.on;
|
|
1656
1656
|
Object.keys(e).forEach((t) => {
|
|
1657
1657
|
let n = e[t];
|
|
@@ -1739,8 +1739,8 @@ var Bn = {
|
|
|
1739
1739
|
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
1740
1740
|
}
|
|
1741
1741
|
getSlideIndex(e) {
|
|
1742
|
-
let { slidesEl: t, params: n } = this, r =
|
|
1743
|
-
return
|
|
1742
|
+
let { slidesEl: t, params: n } = this, r = et(Ke(t, `.${n.slideClass}, swiper-slide`)[0]);
|
|
1743
|
+
return et(e) - (r ?? 0);
|
|
1744
1744
|
}
|
|
1745
1745
|
getSlideIndexByData(e) {
|
|
1746
1746
|
return this.getSlideIndex(this.slides.find((t) => Number(t.getAttribute("data-swiper-slide-index")) === e));
|
|
@@ -1750,7 +1750,7 @@ var Bn = {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
recalcSlides() {
|
|
1752
1752
|
let { slidesEl: e, params: t } = this;
|
|
1753
|
-
this.slides =
|
|
1753
|
+
this.slides = Ke(e, `.${t.slideClass}, swiper-slide`);
|
|
1754
1754
|
}
|
|
1755
1755
|
enable() {
|
|
1756
1756
|
this.enabled || (this.enabled = !0, this.params.grabCursor && this.setGrabCursor(), this.emit("enable"));
|
|
@@ -1799,7 +1799,7 @@ var Bn = {
|
|
|
1799
1799
|
if (!e || e.destroyed) return;
|
|
1800
1800
|
let { snapGrid: t, params: n } = e;
|
|
1801
1801
|
n.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll("[loading=\"lazy\"]")].forEach((t) => {
|
|
1802
|
-
t.complete &&
|
|
1802
|
+
t.complete && St(e, t);
|
|
1803
1803
|
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
1804
1804
|
function r() {
|
|
1805
1805
|
let t = e.rtlTranslate ? e.translate * -1 : e.translate, n = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate());
|
|
@@ -1835,8 +1835,8 @@ var Bn = {
|
|
|
1835
1835
|
r.swiper = t;
|
|
1836
1836
|
let i = r.parentNode;
|
|
1837
1837
|
i && i.host && i.host.nodeName === t.params.swiperElementNodeName.toUpperCase() && (t.isElement = !0);
|
|
1838
|
-
let a = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`, o = r && r.shadowRoot ? r.shadowRoot.querySelector(a()) :
|
|
1839
|
-
!o && t.params.createElements && (o =
|
|
1838
|
+
let a = () => `.${(t.params.wrapperClass || "").trim().split(" ").join(".")}`, o = r && r.shadowRoot ? r.shadowRoot.querySelector(a()) : Ke(r, a())[0];
|
|
1839
|
+
!o && t.params.createElements && (o = Xe("div", t.params.wrapperClass), r.append(o), Ke(r, `.${t.params.slideClass}`).forEach((e) => {
|
|
1840
1840
|
o.append(e);
|
|
1841
1841
|
}));
|
|
1842
1842
|
let s = t.isElement ? r.parentNode.host : null;
|
|
@@ -1846,9 +1846,9 @@ var Bn = {
|
|
|
1846
1846
|
slidesEl: t.isElement && !s.slideSlots ? s : o,
|
|
1847
1847
|
hostEl: t.isElement ? s : r,
|
|
1848
1848
|
mounted: !0,
|
|
1849
|
-
rtl: r.dir.toLowerCase() === "rtl" ||
|
|
1850
|
-
rtlTranslate: t.params.direction === "horizontal" && (r.dir.toLowerCase() === "rtl" ||
|
|
1851
|
-
wrongRTL:
|
|
1849
|
+
rtl: r.dir.toLowerCase() === "rtl" || $e(r, "direction") === "rtl",
|
|
1850
|
+
rtlTranslate: t.params.direction === "horizontal" && (r.dir.toLowerCase() === "rtl" || $e(r, "direction") === "rtl"),
|
|
1851
|
+
wrongRTL: $e(o, "display") === "-webkit-box"
|
|
1852
1852
|
}), !0;
|
|
1853
1853
|
}
|
|
1854
1854
|
init(e) {
|
|
@@ -1857,10 +1857,10 @@ var Bn = {
|
|
|
1857
1857
|
t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.loop && t.virtual && t.params.virtual?.enabled ? t.slideTo((t.params.initialSlide ?? 0) + (t.virtual.slidesBefore ?? 0), 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.params.loop && t.loopCreate(void 0, !0), t.attachEvents();
|
|
1858
1858
|
let n = [...t.el.querySelectorAll("[loading=\"lazy\"]")];
|
|
1859
1859
|
return t.isElement && n.push(...t.hostEl.querySelectorAll("[loading=\"lazy\"]")), n.forEach((e) => {
|
|
1860
|
-
e.complete ?
|
|
1861
|
-
|
|
1860
|
+
e.complete ? St(t, e) : e.addEventListener("load", (e) => {
|
|
1861
|
+
St(t, e.target);
|
|
1862
1862
|
});
|
|
1863
|
-
}),
|
|
1863
|
+
}), wt(t), t.initialized = !0, wt(t), t.emit("init"), t.emit("afterInit"), t;
|
|
1864
1864
|
}
|
|
1865
1865
|
destroy(e = !0, t = !0) {
|
|
1866
1866
|
let n = this, { params: r, el: i, wrapperEl: a, slides: o } = n;
|
|
@@ -1868,10 +1868,10 @@ var Bn = {
|
|
|
1868
1868
|
e.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), e.removeAttribute("style"), e.removeAttribute("data-swiper-slide-index");
|
|
1869
1869
|
})), n.emit("destroy"), Object.keys(n.eventsListeners).forEach((e) => {
|
|
1870
1870
|
n.off(e);
|
|
1871
|
-
}), e !== !1 && (n.el && typeof n.el != "string" && (n.el.swiper = null),
|
|
1871
|
+
}), e !== !1 && (n.el && typeof n.el != "string" && (n.el.swiper = null), Re(n)), n.destroyed = !0, null);
|
|
1872
1872
|
}
|
|
1873
1873
|
static extendDefaults(e) {
|
|
1874
|
-
|
|
1874
|
+
K(Bn, e);
|
|
1875
1875
|
}
|
|
1876
1876
|
static installModule(t) {
|
|
1877
1877
|
e.prototype.__modules__ || (e.prototype.__modules__ = []);
|
|
@@ -1882,21 +1882,21 @@ var Bn = {
|
|
|
1882
1882
|
return Array.isArray(t) ? (t.forEach((t) => e.installModule(t)), e) : (e.installModule(t), e);
|
|
1883
1883
|
}
|
|
1884
1884
|
};
|
|
1885
|
-
Object.defineProperty(
|
|
1886
|
-
return
|
|
1887
|
-
} }), Object.defineProperty(
|
|
1888
|
-
return
|
|
1885
|
+
Object.defineProperty(Vn, "extendedDefaults", { get() {
|
|
1886
|
+
return Bn;
|
|
1887
|
+
} }), Object.defineProperty(Vn, "defaults", { get() {
|
|
1888
|
+
return Ft;
|
|
1889
1889
|
} });
|
|
1890
|
-
var
|
|
1891
|
-
Object.keys(
|
|
1892
|
-
let t =
|
|
1890
|
+
var Hn = zn, Un = Vn.prototype;
|
|
1891
|
+
Object.keys(Hn).forEach((e) => {
|
|
1892
|
+
let t = Hn[e];
|
|
1893
1893
|
Object.keys(t).forEach((e) => {
|
|
1894
|
-
|
|
1894
|
+
Un[e] = t[e];
|
|
1895
1895
|
});
|
|
1896
|
-
}),
|
|
1896
|
+
}), Vn.use([sn, on]);
|
|
1897
1897
|
//#endregion
|
|
1898
1898
|
//#region node_modules/swiper/shared/update-on-virtual-data.mjs
|
|
1899
|
-
function
|
|
1899
|
+
function Wn(e, t, n, r, i) {
|
|
1900
1900
|
let a = [];
|
|
1901
1901
|
if (!t) return a;
|
|
1902
1902
|
let o = (e) => {
|
|
@@ -1906,10 +1906,10 @@ function Gn(e, t, n, r, i) {
|
|
|
1906
1906
|
let e = r.map(i), t = n.map(i);
|
|
1907
1907
|
e.join("") !== t.join("") && o("children"), r.length !== n.length && o("children");
|
|
1908
1908
|
}
|
|
1909
|
-
return
|
|
1909
|
+
return at.filter((e) => e[0] === "_").map((e) => e.replace(/_/, "")).forEach((n) => {
|
|
1910
1910
|
if (n in e && n in t) {
|
|
1911
1911
|
let r = e[n], i = t[n];
|
|
1912
|
-
if (
|
|
1912
|
+
if (q(r) && q(i)) {
|
|
1913
1913
|
let e = Object.keys(r), t = Object.keys(i);
|
|
1914
1914
|
e.length === t.length ? (e.forEach((e) => {
|
|
1915
1915
|
r[e] !== i[e] && o(n);
|
|
@@ -1920,13 +1920,13 @@ function Gn(e, t, n, r, i) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
}), a;
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function Gn(e = {}, t = !0) {
|
|
1924
1924
|
let n = { on: {} }, r = {}, i = {};
|
|
1925
|
-
|
|
1926
|
-
let a = {}, o =
|
|
1925
|
+
ot(n, Ft), n._emitClasses = !0, n.init = !1;
|
|
1926
|
+
let a = {}, o = at.map((e) => e.replace(/_/, "")), s = { ...e };
|
|
1927
1927
|
return Object.keys(s).forEach((s) => {
|
|
1928
1928
|
let c = e[s];
|
|
1929
|
-
if (c !== void 0) if (o.indexOf(s) >= 0)
|
|
1929
|
+
if (c !== void 0) if (o.indexOf(s) >= 0) q(c) ? (n[s] = {}, i[s] = {}, ot(n[s], c), ot(i[s], c)) : (n[s] = c, i[s] = c);
|
|
1930
1930
|
else if (s.search(/on[A-Z]/) === 0 && typeof c == "function") {
|
|
1931
1931
|
let e = `${s[2].toLowerCase()}${s.substring(3)}`, i = c;
|
|
1932
1932
|
t ? r[e] = i : n.on[e] = i;
|
|
@@ -1944,20 +1944,20 @@ function Kn(e = {}, t = !0) {
|
|
|
1944
1944
|
events: r
|
|
1945
1945
|
};
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Kn(e, t) {
|
|
1948
1948
|
let { el: n, nextEl: r, prevEl: i, paginationEl: a, scrollbarEl: o, swiper: s } = e;
|
|
1949
|
-
if (
|
|
1949
|
+
if (st(t) && r && i) {
|
|
1950
1950
|
let e = s.params.navigation, t = s.originalParams.navigation;
|
|
1951
1951
|
e.nextEl = r, t.nextEl = r, e.prevEl = i, t.prevEl = i;
|
|
1952
1952
|
}
|
|
1953
|
-
|
|
1953
|
+
ct(t) && a && (s.params.pagination.el = a, s.originalParams.pagination.el = a), lt(t) && o && (s.params.scrollbar.el = o, s.originalParams.scrollbar.el = o), s.init(n);
|
|
1954
1954
|
}
|
|
1955
|
-
var
|
|
1955
|
+
var qn = (e) => {
|
|
1956
1956
|
!e || e.destroyed || !e.params.virtual || e.params.virtual && !e.params.virtual.enabled || (e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.emit("_virtualUpdated"), e.parallax && e.params.parallax && e.params.parallax.enabled && e.parallax.setTranslate?.());
|
|
1957
1957
|
};
|
|
1958
1958
|
//#endregion
|
|
1959
1959
|
//#region node_modules/swiper/swiper-vue.mjs
|
|
1960
|
-
function
|
|
1960
|
+
function Jn(e = {}, t, n) {
|
|
1961
1961
|
let r = [], i = {
|
|
1962
1962
|
"container-start": [],
|
|
1963
1963
|
"container-end": [],
|
|
@@ -1985,7 +1985,7 @@ function Yn(e = {}, t, n) {
|
|
|
1985
1985
|
slots: i
|
|
1986
1986
|
};
|
|
1987
1987
|
}
|
|
1988
|
-
function
|
|
1988
|
+
function Yn(e, t, n) {
|
|
1989
1989
|
if (!n) return null;
|
|
1990
1990
|
let r = e.value;
|
|
1991
1991
|
if (!r) return null;
|
|
@@ -2003,7 +2003,7 @@ function Xn(e, t, n) {
|
|
|
2003
2003
|
if (t.componentOptions) return S(t.componentOptions.Ctor, { ...n }, t.componentOptions.children);
|
|
2004
2004
|
});
|
|
2005
2005
|
}
|
|
2006
|
-
var
|
|
2006
|
+
var Xn = _({
|
|
2007
2007
|
name: "Swiper",
|
|
2008
2008
|
props: {
|
|
2009
2009
|
tag: {
|
|
@@ -2469,19 +2469,19 @@ var Zn = _({
|
|
|
2469
2469
|
},
|
|
2470
2470
|
emits: /* @__PURE__ */ "_beforeBreakpoint._containerClasses._slideClass._slideClasses._swiper._freeModeNoMomentumRelease._virtualUpdated.activeIndexChange.afterInit.autoplay.autoplayStart.autoplayStop.autoplayPause.autoplayResume.autoplayTimeLeft.beforeDestroy.beforeInit.beforeLoopFix.beforeResize.beforeSlideChangeStart.beforeTransitionStart.breakpoint.changeDirection.click.disable.doubleTap.doubleClick.destroy.enable.fromEdge.hashChange.hashSet.init.keyPress.lock.loopFix.momentumBounce.navigationHide.navigationShow.navigationPrev.navigationNext.observerUpdate.orientationchange.paginationHide.paginationRender.paginationShow.paginationUpdate.progress.reachBeginning.reachEnd.realIndexChange.resize.scroll.scrollbarDragEnd.scrollbarDragMove.scrollbarDragStart.setTransition.setTranslate.slidesUpdated.slideChange.slideChangeTransitionEnd.slideChangeTransitionStart.slideNextTransitionEnd.slideNextTransitionStart.slidePrevTransitionEnd.slidePrevTransitionStart.slideResetTransitionStart.slideResetTransitionEnd.sliderMove.sliderFirstMove.slidesLengthChange.slidesGridLengthChange.snapGridLengthChange.snapIndexChange.swiper.tap.toEdge.touchEnd.touchMove.touchMoveOpposite.touchStart.transitionEnd.transitionStart.unlock.update.virtualUpdate.zoomChange".split("."),
|
|
2471
2471
|
setup(e, { slots: t, emit: n }) {
|
|
2472
|
-
let { tag: r, wrapperTag: i } = e, a =
|
|
2473
|
-
|
|
2472
|
+
let { tag: r, wrapperTag: i } = e, a = L("swiper"), o = L(null), s = L(!1), c = L(!1), l = L(null), u = de(null), d = L(null), f = { value: [] }, p = { value: [] }, m = L(null), h = L(null), g = L(null), _ = L(null), { params: v, passedParams: y } = Gn(e, !1);
|
|
2473
|
+
Jn(t, f, p), d.value = y, p.value = f.value, v.onAny = (e, ...t) => {
|
|
2474
2474
|
n(e, ...t);
|
|
2475
2475
|
}, Object.assign(v.on, {
|
|
2476
2476
|
_beforeBreakpoint: () => {
|
|
2477
|
-
|
|
2477
|
+
Jn(t, f, p), s.value = !0;
|
|
2478
2478
|
},
|
|
2479
2479
|
_containerClasses(e, t) {
|
|
2480
2480
|
a.value = t;
|
|
2481
2481
|
}
|
|
2482
2482
|
});
|
|
2483
2483
|
let b = { ...v };
|
|
2484
|
-
delete b.wrapperClass, u.value = new
|
|
2484
|
+
delete b.wrapperClass, u.value = new Vn(b);
|
|
2485
2485
|
let x = u.value;
|
|
2486
2486
|
if (x && x.virtual && x.params.virtual?.enabled) {
|
|
2487
2487
|
x.virtual.slides = f.value;
|
|
@@ -2493,12 +2493,12 @@ var Zn = _({
|
|
|
2493
2493
|
},
|
|
2494
2494
|
renderExternalUpdate: !1
|
|
2495
2495
|
};
|
|
2496
|
-
|
|
2496
|
+
ot(x.params.virtual, e), x.originalParams.virtual && ot(x.originalParams.virtual, e);
|
|
2497
2497
|
}
|
|
2498
|
-
|
|
2498
|
+
re(() => {
|
|
2499
2499
|
!c.value && u.value && (u.value.emitSlidesClasses(), c.value = !0);
|
|
2500
|
-
let { passedParams: t } =
|
|
2501
|
-
d.value = t, (n.length || s.value) && u.value && !u.value.destroyed &&
|
|
2500
|
+
let { passedParams: t } = Gn(e, !1), n = Wn(t, d.value, f.value, p.value, (e) => e.props ? e.props.key : void 0);
|
|
2501
|
+
d.value = t, (n.length || s.value) && u.value && !u.value.destroyed && ft({
|
|
2502
2502
|
swiper: u.value,
|
|
2503
2503
|
slides: f.value,
|
|
2504
2504
|
passedParams: t,
|
|
@@ -2508,12 +2508,12 @@ var Zn = _({
|
|
|
2508
2508
|
scrollbarEl: _.value,
|
|
2509
2509
|
paginationEl: g.value
|
|
2510
2510
|
}), s.value = !1;
|
|
2511
|
-
}),
|
|
2511
|
+
}), ie("swiper", u), H(o, () => {
|
|
2512
2512
|
k(() => {
|
|
2513
|
-
|
|
2513
|
+
qn(u.value);
|
|
2514
2514
|
});
|
|
2515
|
-
}),
|
|
2516
|
-
!l.value || !u.value || (
|
|
2515
|
+
}), F(() => {
|
|
2516
|
+
!l.value || !u.value || (Kn({
|
|
2517
2517
|
el: l.value,
|
|
2518
2518
|
nextEl: m.value,
|
|
2519
2519
|
prevEl: h.value,
|
|
@@ -2521,39 +2521,39 @@ var Zn = _({
|
|
|
2521
2521
|
scrollbarEl: _.value,
|
|
2522
2522
|
swiper: u.value
|
|
2523
2523
|
}, v), n("swiper", u.value));
|
|
2524
|
-
}),
|
|
2524
|
+
}), P(() => {
|
|
2525
2525
|
u.value && !u.value.destroyed && u.value.destroy(!0, !1);
|
|
2526
2526
|
});
|
|
2527
2527
|
function C(e) {
|
|
2528
|
-
return v.virtual ?
|
|
2528
|
+
return v.virtual ? Yn(u, e, o.value) : (e.forEach((e, t) => {
|
|
2529
2529
|
let n = e.props ?? {};
|
|
2530
2530
|
n.swiperRef = u, n.swiperSlideIndex = t, e.props = n;
|
|
2531
2531
|
}), e);
|
|
2532
2532
|
}
|
|
2533
2533
|
return () => {
|
|
2534
|
-
let { slides: n, slots: o } =
|
|
2534
|
+
let { slides: n, slots: o } = Jn(t, f, p);
|
|
2535
2535
|
return S(r, {
|
|
2536
2536
|
ref: l,
|
|
2537
|
-
class:
|
|
2537
|
+
class: ut(a.value)
|
|
2538
2538
|
}, [
|
|
2539
2539
|
o["container-start"],
|
|
2540
|
-
S(i, { class:
|
|
2540
|
+
S(i, { class: dt(v.wrapperClass) }, [
|
|
2541
2541
|
o["wrapper-start"],
|
|
2542
2542
|
C(n),
|
|
2543
2543
|
o["wrapper-end"]
|
|
2544
2544
|
]),
|
|
2545
|
-
|
|
2545
|
+
st(e) && [S("div", {
|
|
2546
2546
|
ref: h,
|
|
2547
2547
|
class: "swiper-button-prev"
|
|
2548
2548
|
}), S("div", {
|
|
2549
2549
|
ref: m,
|
|
2550
2550
|
class: "swiper-button-next"
|
|
2551
2551
|
})],
|
|
2552
|
-
|
|
2552
|
+
lt(e) && S("div", {
|
|
2553
2553
|
ref: _,
|
|
2554
2554
|
class: "swiper-scrollbar"
|
|
2555
2555
|
}),
|
|
2556
|
-
|
|
2556
|
+
ct(e) && S("div", {
|
|
2557
2557
|
ref: g,
|
|
2558
2558
|
class: "swiper-pagination"
|
|
2559
2559
|
}),
|
|
@@ -2561,7 +2561,7 @@ var Zn = _({
|
|
|
2561
2561
|
]);
|
|
2562
2562
|
};
|
|
2563
2563
|
}
|
|
2564
|
-
}),
|
|
2564
|
+
}), Zn = _({
|
|
2565
2565
|
name: "SwiperSlide",
|
|
2566
2566
|
props: {
|
|
2567
2567
|
tag: {
|
|
@@ -2593,17 +2593,17 @@ var Zn = _({
|
|
|
2593
2593
|
}
|
|
2594
2594
|
},
|
|
2595
2595
|
setup(e, { slots: t }) {
|
|
2596
|
-
let n = !1, { swiperRef: r } = e, i =
|
|
2596
|
+
let n = !1, { swiperRef: r } = e, i = L(null), a = L("swiper-slide"), o = L(!1);
|
|
2597
2597
|
function s(e, t, n) {
|
|
2598
2598
|
t === i.value && (a.value = n);
|
|
2599
2599
|
}
|
|
2600
|
-
|
|
2600
|
+
F(() => {
|
|
2601
2601
|
!r || !r.value || (r.value.on("_slideClass", s), n = !0);
|
|
2602
|
-
}),
|
|
2602
|
+
}), ee(() => {
|
|
2603
2603
|
n || !r || !r.value || (r.value.on("_slideClass", s), n = !0);
|
|
2604
|
-
}),
|
|
2604
|
+
}), re(() => {
|
|
2605
2605
|
!i.value || !r || !r.value || (e.swiperSlideIndex !== void 0 && (i.value.swiperSlideIndex = e.swiperSlideIndex), r.value.destroyed && a.value !== "swiper-slide" && (a.value = "swiper-slide"));
|
|
2606
|
-
}),
|
|
2606
|
+
}), P(() => {
|
|
2607
2607
|
!r || !r.value || r.value.off("_slideClass", s);
|
|
2608
2608
|
});
|
|
2609
2609
|
let c = l(() => ({
|
|
@@ -2612,7 +2612,7 @@ var Zn = _({
|
|
|
2612
2612
|
isPrev: a.value.indexOf("swiper-slide-prev") >= 0,
|
|
2613
2613
|
isNext: a.value.indexOf("swiper-slide-next") >= 0
|
|
2614
2614
|
}));
|
|
2615
|
-
|
|
2615
|
+
ie("swiperSlide", c);
|
|
2616
2616
|
let u = () => {
|
|
2617
2617
|
o.value = !0;
|
|
2618
2618
|
}, d = (e) => {
|
|
@@ -2620,7 +2620,7 @@ var Zn = _({
|
|
|
2620
2620
|
t && (t.lazyPreloaderManaged = !0);
|
|
2621
2621
|
};
|
|
2622
2622
|
return () => S(e.tag, {
|
|
2623
|
-
class:
|
|
2623
|
+
class: ut(`${a.value}`),
|
|
2624
2624
|
ref: i,
|
|
2625
2625
|
"data-swiper-slide-index": e.virtualIndex === void 0 && r && r.value && r.value.params.loop ? e.swiperSlideIndex : e.virtualIndex,
|
|
2626
2626
|
onLoadCapture: u
|
|
@@ -2638,18 +2638,18 @@ var Zn = _({
|
|
|
2638
2638
|
});
|
|
2639
2639
|
//#endregion
|
|
2640
2640
|
//#region node_modules/swiper/shared/create-element-if-not-defined.mjs
|
|
2641
|
-
function
|
|
2641
|
+
function Qn(e, t, n, r) {
|
|
2642
2642
|
let i = n ?? {}, a = t ?? {};
|
|
2643
2643
|
return e.params.createElements && Object.keys(r).forEach((t) => {
|
|
2644
2644
|
if (!i[t] && i.auto === !0) {
|
|
2645
|
-
let n =
|
|
2646
|
-
n || (n =
|
|
2645
|
+
let n = Ke(e.el, `.${r[t]}`)[0];
|
|
2646
|
+
n || (n = Xe("div", r[t]), n.className = r[t], e.el.append(n)), i[t] = n, a[t] = n;
|
|
2647
2647
|
}
|
|
2648
2648
|
}), i;
|
|
2649
2649
|
}
|
|
2650
2650
|
//#endregion
|
|
2651
2651
|
//#region node_modules/swiper/modules/navigation.mjs
|
|
2652
|
-
var
|
|
2652
|
+
var $n = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewBox=\"0 0 11 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z\" fill=\"currentColor\"/></svg>", er = ({ swiper: e, extendParams: t, on: n, emit: r }) => {
|
|
2653
2653
|
t({ navigation: {
|
|
2654
2654
|
nextEl: null,
|
|
2655
2655
|
prevEl: null,
|
|
@@ -2662,7 +2662,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2662
2662
|
} }), e.navigation = {
|
|
2663
2663
|
nextEl: null,
|
|
2664
2664
|
prevEl: null,
|
|
2665
|
-
arrowSvg:
|
|
2665
|
+
arrowSvg: $n
|
|
2666
2666
|
};
|
|
2667
2667
|
function i() {
|
|
2668
2668
|
return e.params.navigation;
|
|
@@ -2673,7 +2673,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2673
2673
|
}
|
|
2674
2674
|
function o(t, n) {
|
|
2675
2675
|
let r = i();
|
|
2676
|
-
|
|
2676
|
+
rt(t).forEach((t) => {
|
|
2677
2677
|
t && (t.classList[n ? "add" : "remove"](...r.disabledClass.split(" ")), t.tagName === "BUTTON" && (t.disabled = n), e.params.watchOverflow && e.enabled && t.classList[e.isLocked ? "add" : "remove"](r.lockClass));
|
|
2678
2678
|
});
|
|
2679
2679
|
}
|
|
@@ -2692,7 +2692,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2692
2692
|
t.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), r("navigationNext"));
|
|
2693
2693
|
}
|
|
2694
2694
|
function u() {
|
|
2695
|
-
e.params.navigation =
|
|
2695
|
+
e.params.navigation = Qn(e, e.originalParams.navigation, e.params.navigation, {
|
|
2696
2696
|
nextEl: "swiper-button-next",
|
|
2697
2697
|
prevEl: "swiper-button-prev"
|
|
2698
2698
|
});
|
|
@@ -2703,11 +2703,11 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2703
2703
|
nextEl: n,
|
|
2704
2704
|
prevEl: r
|
|
2705
2705
|
});
|
|
2706
|
-
let o =
|
|
2706
|
+
let o = rt(n), s = rt(r), u = (n, r) => {
|
|
2707
2707
|
if (n) {
|
|
2708
2708
|
if (t.addIcons && n.matches(".swiper-button-next,.swiper-button-prev") && !n.querySelector("svg")) {
|
|
2709
2709
|
let e = document.createElement("div");
|
|
2710
|
-
|
|
2710
|
+
it(e, $n);
|
|
2711
2711
|
let t = e.querySelector("svg");
|
|
2712
2712
|
t && n.appendChild(t), e.remove();
|
|
2713
2713
|
}
|
|
@@ -2718,7 +2718,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2718
2718
|
o.forEach((e) => u(e, "next")), s.forEach((e) => u(e, "prev"));
|
|
2719
2719
|
}
|
|
2720
2720
|
function d() {
|
|
2721
|
-
let t = i(), { nextEl: n, prevEl: r } = e.navigation, a =
|
|
2721
|
+
let t = i(), { nextEl: n, prevEl: r } = e.navigation, a = rt(n), o = rt(r), s = (e, n) => {
|
|
2722
2722
|
e.removeEventListener("click", n === "next" ? l : c), e.classList.remove(...t.disabledClass.split(" "));
|
|
2723
2723
|
};
|
|
2724
2724
|
a.forEach((e) => s(e, "next")), o.forEach((e) => s(e, "prev"));
|
|
@@ -2730,14 +2730,14 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2730
2730
|
}), n("destroy", () => {
|
|
2731
2731
|
d();
|
|
2732
2732
|
}), n("enable disable", () => {
|
|
2733
|
-
let t = i(), { nextEl: n, prevEl: r } = e.navigation, a =
|
|
2733
|
+
let t = i(), { nextEl: n, prevEl: r } = e.navigation, a = rt(n), o = rt(r);
|
|
2734
2734
|
if (e.enabled) {
|
|
2735
2735
|
s();
|
|
2736
2736
|
return;
|
|
2737
2737
|
}
|
|
2738
2738
|
[...a, ...o].filter((e) => !!e).forEach((e) => e.classList.add(t.lockClass));
|
|
2739
2739
|
}), n("click", (t, n) => {
|
|
2740
|
-
let a = i(), { nextEl: o, prevEl: s } = e.navigation, c =
|
|
2740
|
+
let a = i(), { nextEl: o, prevEl: s } = e.navigation, c = rt(o), l = rt(s), u = n.target, d = l.includes(u) || c.includes(u);
|
|
2741
2741
|
if (e.isElement && !d) {
|
|
2742
2742
|
let e = n.composedPath ? n.composedPath() : [];
|
|
2743
2743
|
e.length && (d = e.find((e) => c.includes(e) || l.includes(e)));
|
|
@@ -2762,11 +2762,11 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2762
2762
|
init: u,
|
|
2763
2763
|
destroy: d
|
|
2764
2764
|
});
|
|
2765
|
-
},
|
|
2765
|
+
}, tr = /* @__PURE__ */ G(((e, t) => {
|
|
2766
2766
|
t.exports = function() {
|
|
2767
2767
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
2768
2768
|
};
|
|
2769
|
-
})),
|
|
2769
|
+
})), nr = /* @__PURE__ */ G(((e) => {
|
|
2770
2770
|
var t, n = [
|
|
2771
2771
|
0,
|
|
2772
2772
|
26,
|
|
@@ -2828,7 +2828,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2828
2828
|
}, e.toSJIS = function(e) {
|
|
2829
2829
|
return t(e);
|
|
2830
2830
|
};
|
|
2831
|
-
})),
|
|
2831
|
+
})), rr = /* @__PURE__ */ G(((e) => {
|
|
2832
2832
|
e.L = { bit: 1 }, e.M = { bit: 0 }, e.Q = { bit: 3 }, e.H = { bit: 2 };
|
|
2833
2833
|
function t(t) {
|
|
2834
2834
|
if (typeof t != "string") throw Error("Param is not a string");
|
|
@@ -2854,7 +2854,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2854
2854
|
return r;
|
|
2855
2855
|
}
|
|
2856
2856
|
};
|
|
2857
|
-
})),
|
|
2857
|
+
})), ir = /* @__PURE__ */ G(((e, t) => {
|
|
2858
2858
|
function n() {
|
|
2859
2859
|
this.buffer = [], this.length = 0;
|
|
2860
2860
|
}
|
|
@@ -2874,7 +2874,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2874
2874
|
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
2875
2875
|
}
|
|
2876
2876
|
}, t.exports = n;
|
|
2877
|
-
})),
|
|
2877
|
+
})), ar = /* @__PURE__ */ G(((e, t) => {
|
|
2878
2878
|
function n(e) {
|
|
2879
2879
|
if (!e || e < 1) throw Error("BitMatrix size must be defined and greater than 0");
|
|
2880
2880
|
this.size = e, this.data = new Uint8Array(e * e), this.reservedBit = new Uint8Array(e * e);
|
|
@@ -2889,8 +2889,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2889
2889
|
}, n.prototype.isReserved = function(e, t) {
|
|
2890
2890
|
return this.reservedBit[e * this.size + t];
|
|
2891
2891
|
}, t.exports = n;
|
|
2892
|
-
})),
|
|
2893
|
-
var t =
|
|
2892
|
+
})), or = /* @__PURE__ */ G(((e) => {
|
|
2893
|
+
var t = nr().getSymbolSize;
|
|
2894
2894
|
e.getRowColCoords = function(e) {
|
|
2895
2895
|
if (e === 1) return [];
|
|
2896
2896
|
let n = Math.floor(e / 7) + 2, r = t(e), i = r === 145 ? 26 : Math.ceil((r - 13) / (2 * n - 2)) * 2, a = [r - 7];
|
|
@@ -2901,8 +2901,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2901
2901
|
for (let e = 0; e < i; e++) for (let t = 0; t < i; t++) e === 0 && t === 0 || e === 0 && t === i - 1 || e === i - 1 && t === 0 || n.push([r[e], r[t]]);
|
|
2902
2902
|
return n;
|
|
2903
2903
|
};
|
|
2904
|
-
})),
|
|
2905
|
-
var t =
|
|
2904
|
+
})), sr = /* @__PURE__ */ G(((e) => {
|
|
2905
|
+
var t = nr().getSymbolSize, n = 7;
|
|
2906
2906
|
e.getPositions = function(e) {
|
|
2907
2907
|
let r = t(e);
|
|
2908
2908
|
return [
|
|
@@ -2911,7 +2911,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2911
2911
|
[0, r - n]
|
|
2912
2912
|
];
|
|
2913
2913
|
};
|
|
2914
|
-
})),
|
|
2914
|
+
})), cr = /* @__PURE__ */ G(((e) => {
|
|
2915
2915
|
e.Patterns = {
|
|
2916
2916
|
PATTERN000: 0,
|
|
2917
2917
|
PATTERN001: 1,
|
|
@@ -2987,8 +2987,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
2987
2987
|
}
|
|
2988
2988
|
return i;
|
|
2989
2989
|
};
|
|
2990
|
-
})),
|
|
2991
|
-
var t =
|
|
2990
|
+
})), lr = /* @__PURE__ */ G(((e) => {
|
|
2991
|
+
var t = rr(), n = [
|
|
2992
2992
|
1,
|
|
2993
2993
|
1,
|
|
2994
2994
|
1,
|
|
@@ -3328,7 +3328,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3328
3328
|
default: return;
|
|
3329
3329
|
}
|
|
3330
3330
|
};
|
|
3331
|
-
})),
|
|
3331
|
+
})), ur = /* @__PURE__ */ G(((e) => {
|
|
3332
3332
|
var t = /* @__PURE__ */ new Uint8Array(512), n = /* @__PURE__ */ new Uint8Array(256);
|
|
3333
3333
|
(function() {
|
|
3334
3334
|
let e = 1;
|
|
@@ -3342,8 +3342,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3342
3342
|
}, e.mul = function(e, r) {
|
|
3343
3343
|
return e === 0 || r === 0 ? 0 : t[n[e] + n[r]];
|
|
3344
3344
|
};
|
|
3345
|
-
})),
|
|
3346
|
-
var t =
|
|
3345
|
+
})), dr = /* @__PURE__ */ G(((e) => {
|
|
3346
|
+
var t = ur();
|
|
3347
3347
|
e.mul = function(e, n) {
|
|
3348
3348
|
let r = new Uint8Array(e.length + n.length - 1);
|
|
3349
3349
|
for (let i = 0; i < e.length; i++) for (let a = 0; a < n.length; a++) r[i + a] ^= t.mul(e[i], n[a]);
|
|
@@ -3363,8 +3363,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3363
3363
|
for (let i = 0; i < n; i++) r = e.mul(r, new Uint8Array([1, t.exp(i)]));
|
|
3364
3364
|
return r;
|
|
3365
3365
|
};
|
|
3366
|
-
})),
|
|
3367
|
-
var n =
|
|
3366
|
+
})), fr = /* @__PURE__ */ G(((e, t) => {
|
|
3367
|
+
var n = dr();
|
|
3368
3368
|
function r(e) {
|
|
3369
3369
|
this.genPoly = void 0, this.degree = e, this.degree && this.initialize(this.degree);
|
|
3370
3370
|
}
|
|
@@ -3381,11 +3381,11 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3381
3381
|
}
|
|
3382
3382
|
return r;
|
|
3383
3383
|
}, t.exports = r;
|
|
3384
|
-
})),
|
|
3384
|
+
})), pr = /* @__PURE__ */ G(((e) => {
|
|
3385
3385
|
e.isValid = function(e) {
|
|
3386
3386
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
3387
3387
|
};
|
|
3388
|
-
})),
|
|
3388
|
+
})), mr = /* @__PURE__ */ G(((e) => {
|
|
3389
3389
|
var t = "[0-9]+", n = "[A-Z $%*+\\-./:]+", r = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
3390
3390
|
r = r.replace(/u/g, "\\u");
|
|
3391
3391
|
var i = "(?:(?![A-Z0-9 $%*+\\-./:]|" + r + ")(?:.|[\r\n]))+";
|
|
@@ -3398,8 +3398,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3398
3398
|
}, e.testAlphanumeric = function(e) {
|
|
3399
3399
|
return s.test(e);
|
|
3400
3400
|
};
|
|
3401
|
-
})),
|
|
3402
|
-
var t =
|
|
3401
|
+
})), hr = /* @__PURE__ */ G(((e) => {
|
|
3402
|
+
var t = pr(), n = mr();
|
|
3403
3403
|
e.NUMERIC = {
|
|
3404
3404
|
id: "Numeric",
|
|
3405
3405
|
bit: 1,
|
|
@@ -3462,8 +3462,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3462
3462
|
return n;
|
|
3463
3463
|
}
|
|
3464
3464
|
};
|
|
3465
|
-
})),
|
|
3466
|
-
var t =
|
|
3465
|
+
})), gr = /* @__PURE__ */ G(((e) => {
|
|
3466
|
+
var t = nr(), n = lr(), r = rr(), i = hr(), a = pr(), o = 7973, s = t.getBCHDigit(o);
|
|
3467
3467
|
function c(t, n, r) {
|
|
3468
3468
|
for (let i = 1; i <= 40; i++) if (n <= e.getCapacity(i, r, t)) return i;
|
|
3469
3469
|
}
|
|
@@ -3509,15 +3509,15 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3509
3509
|
for (; t.getBCHDigit(n) - s >= 0;) n ^= o << t.getBCHDigit(n) - s;
|
|
3510
3510
|
return e << 12 | n;
|
|
3511
3511
|
};
|
|
3512
|
-
})),
|
|
3513
|
-
var t =
|
|
3512
|
+
})), _r = /* @__PURE__ */ G(((e) => {
|
|
3513
|
+
var t = nr(), n = 1335, r = 21522, i = t.getBCHDigit(n);
|
|
3514
3514
|
e.getEncodedBits = function(e, a) {
|
|
3515
3515
|
let o = e.bit << 3 | a, s = o << 10;
|
|
3516
3516
|
for (; t.getBCHDigit(s) - i >= 0;) s ^= n << t.getBCHDigit(s) - i;
|
|
3517
3517
|
return (o << 10 | s) ^ r;
|
|
3518
3518
|
};
|
|
3519
|
-
})),
|
|
3520
|
-
var n =
|
|
3519
|
+
})), vr = /* @__PURE__ */ G(((e, t) => {
|
|
3520
|
+
var n = hr();
|
|
3521
3521
|
function r(e) {
|
|
3522
3522
|
this.mode = n.NUMERIC, this.data = e.toString();
|
|
3523
3523
|
}
|
|
@@ -3533,8 +3533,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3533
3533
|
let i = this.data.length - t;
|
|
3534
3534
|
i > 0 && (n = this.data.substr(t), r = parseInt(n, 10), e.put(r, i * 3 + 1));
|
|
3535
3535
|
}, t.exports = r;
|
|
3536
|
-
})),
|
|
3537
|
-
var n =
|
|
3536
|
+
})), yr = /* @__PURE__ */ G(((e, t) => {
|
|
3537
|
+
var n = hr(), r = /* @__PURE__ */ "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".split("");
|
|
3538
3538
|
function i(e) {
|
|
3539
3539
|
this.mode = n.ALPHANUMERIC, this.data = e;
|
|
3540
3540
|
}
|
|
@@ -3552,8 +3552,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3552
3552
|
}
|
|
3553
3553
|
this.data.length % 2 && e.put(r.indexOf(this.data[t]), 6);
|
|
3554
3554
|
}, t.exports = i;
|
|
3555
|
-
})),
|
|
3556
|
-
var n =
|
|
3555
|
+
})), br = /* @__PURE__ */ G(((e, t) => {
|
|
3556
|
+
var n = hr();
|
|
3557
3557
|
function r(e) {
|
|
3558
3558
|
this.mode = n.BYTE, typeof e == "string" ? this.data = new TextEncoder().encode(e) : this.data = new Uint8Array(e);
|
|
3559
3559
|
}
|
|
@@ -3566,8 +3566,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3566
3566
|
}, r.prototype.write = function(e) {
|
|
3567
3567
|
for (let t = 0, n = this.data.length; t < n; t++) e.put(this.data[t], 8);
|
|
3568
3568
|
}, t.exports = r;
|
|
3569
|
-
})),
|
|
3570
|
-
var n =
|
|
3569
|
+
})), xr = /* @__PURE__ */ G(((e, t) => {
|
|
3570
|
+
var n = hr(), r = nr();
|
|
3571
3571
|
function i(e) {
|
|
3572
3572
|
this.mode = n.KANJI, this.data = e;
|
|
3573
3573
|
}
|
|
@@ -3587,7 +3587,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3587
3587
|
n = (n >>> 8 & 255) * 192 + (n & 255), e.put(n, 13);
|
|
3588
3588
|
}
|
|
3589
3589
|
}, t.exports = i;
|
|
3590
|
-
})),
|
|
3590
|
+
})), Sr = /* @__PURE__ */ G(((e, t) => {
|
|
3591
3591
|
var n = {
|
|
3592
3592
|
single_source_shortest_paths: function(e, t, r) {
|
|
3593
3593
|
var i = {}, a = {};
|
|
@@ -3640,8 +3640,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3640
3640
|
}
|
|
3641
3641
|
};
|
|
3642
3642
|
t !== void 0 && (t.exports = n);
|
|
3643
|
-
})),
|
|
3644
|
-
var t =
|
|
3643
|
+
})), Cr = /* @__PURE__ */ G(((e) => {
|
|
3644
|
+
var t = hr(), n = vr(), r = yr(), i = br(), a = xr(), o = mr(), s = nr(), c = Sr();
|
|
3645
3645
|
function l(e) {
|
|
3646
3646
|
return unescape(encodeURIComponent(e)).length;
|
|
3647
3647
|
}
|
|
@@ -3768,8 +3768,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3768
3768
|
}, e.rawSplit = function(t) {
|
|
3769
3769
|
return e.fromArray(d(t, s.isKanjiModeEnabled()));
|
|
3770
3770
|
};
|
|
3771
|
-
})),
|
|
3772
|
-
var t =
|
|
3771
|
+
})), wr = /* @__PURE__ */ G(((e) => {
|
|
3772
|
+
var t = nr(), n = rr(), r = ir(), i = ar(), a = or(), o = sr(), s = cr(), c = lr(), l = fr(), u = gr(), d = _r(), f = hr(), p = Cr();
|
|
3773
3773
|
function m(e, t) {
|
|
3774
3774
|
let n = e.size, r = o.getPositions(t);
|
|
3775
3775
|
for (let t = 0; t < r.length; t++) {
|
|
@@ -3864,7 +3864,7 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3864
3864
|
let i = n.M, a, o;
|
|
3865
3865
|
return r !== void 0 && (i = n.from(r.errorCorrectionLevel, n.M), a = u.from(r.version), o = s.from(r.maskPattern), r.toSJISFunc && t.setToSJISFunction(r.toSJISFunc)), S(e, a, i, o);
|
|
3866
3866
|
};
|
|
3867
|
-
})),
|
|
3867
|
+
})), Tr = /* @__PURE__ */ G(((e) => {
|
|
3868
3868
|
function t(e) {
|
|
3869
3869
|
if (typeof e == "number" && (e = e.toString()), typeof e != "string") throw Error("Color should be defined as hex string");
|
|
3870
3870
|
let t = e.slice().replace("#", "").split("");
|
|
@@ -3911,8 +3911,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3911
3911
|
t[u++] = d.r, t[u++] = d.g, t[u++] = d.b, t[u] = d.a;
|
|
3912
3912
|
}
|
|
3913
3913
|
};
|
|
3914
|
-
})),
|
|
3915
|
-
var t =
|
|
3914
|
+
})), Er = /* @__PURE__ */ G(((e) => {
|
|
3915
|
+
var t = Tr();
|
|
3916
3916
|
function n(e, t, n) {
|
|
3917
3917
|
e.clearRect(0, 0, t.width, t.height), t.style ||= {}, t.height = n, t.width = n, t.style.height = n + "px", t.style.width = n + "px";
|
|
3918
3918
|
}
|
|
@@ -3934,8 +3934,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3934
3934
|
let a = e.render(t, n, i), o = i.type || "image/png", s = i.rendererOpts || {};
|
|
3935
3935
|
return a.toDataURL(o, s.quality);
|
|
3936
3936
|
};
|
|
3937
|
-
})),
|
|
3938
|
-
var t =
|
|
3937
|
+
})), Dr = /* @__PURE__ */ G(((e) => {
|
|
3938
|
+
var t = Tr();
|
|
3939
3939
|
function n(e, t) {
|
|
3940
3940
|
let n = e.a / 255, r = t + "=\"" + e.hex + "\"";
|
|
3941
3941
|
return n < 1 ? r + " " + t + "-opacity=\"" + n.toFixed(2).slice(1) + "\"" : r;
|
|
@@ -3956,8 +3956,8 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3956
3956
|
let o = t.getOptions(r), s = e.modules.size, c = e.modules.data, l = s + o.margin * 2, u = o.color.light.a ? "<path " + n(o.color.light, "fill") + " d=\"M0 0h" + l + "v" + l + "H0z\"/>" : "", d = "<path " + n(o.color.dark, "stroke") + " d=\"" + i(c, s, o.margin) + "\"/>", f = "viewBox=\"0 0 " + l + " " + l + "\"", p = "<svg xmlns=\"http://www.w3.org/2000/svg\" " + (o.width ? "width=\"" + o.width + "\" height=\"" + o.width + "\" " : "") + f + " shape-rendering=\"crispEdges\">" + u + d + "</svg>\n";
|
|
3957
3957
|
return typeof a == "function" && a(null, p), p;
|
|
3958
3958
|
};
|
|
3959
|
-
})),
|
|
3960
|
-
var t =
|
|
3959
|
+
})), Or = /* @__PURE__ */ G(((e) => {
|
|
3960
|
+
var t = tr(), n = wr(), r = Er(), i = Dr();
|
|
3961
3961
|
function a(e, r, i, a, o) {
|
|
3962
3962
|
let s = [].slice.call(arguments, 1), c = s.length, l = typeof s[c - 1] == "function";
|
|
3963
3963
|
if (!l && !t()) throw Error("Callback required as last argument");
|
|
@@ -3987,17 +3987,17 @@ var er = "<svg class=\"swiper-navigation-icon\" width=\"11\" height=\"20\" viewB
|
|
|
3987
3987
|
}));
|
|
3988
3988
|
//#endregion
|
|
3989
3989
|
//#region node_modules/reka-ui/dist/shared/createContext.js
|
|
3990
|
-
function
|
|
3990
|
+
function kr(e, t) {
|
|
3991
3991
|
let n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
|
|
3992
3992
|
return [(t) => {
|
|
3993
3993
|
let n = C(r, t);
|
|
3994
3994
|
if (n || n === null) return n;
|
|
3995
3995
|
throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e) ? `one of the following components: ${e.join(", ")}` : `\`${e}\``}`);
|
|
3996
|
-
}, (e) => (
|
|
3996
|
+
}, (e) => (ie(r, e), e)];
|
|
3997
3997
|
}
|
|
3998
3998
|
//#endregion
|
|
3999
3999
|
//#region node_modules/reka-ui/dist/shared/getActiveElement.js
|
|
4000
|
-
function
|
|
4000
|
+
function Ar() {
|
|
4001
4001
|
let e = document.activeElement;
|
|
4002
4002
|
if (e == null) return null;
|
|
4003
4003
|
for (; e != null && e.shadowRoot != null && e.shadowRoot.activeElement != null;) e = e.shadowRoot.activeElement;
|
|
@@ -4021,7 +4021,7 @@ function Mr(e) {
|
|
|
4021
4021
|
//#endregion
|
|
4022
4022
|
//#region node_modules/@vueuse/shared/dist/index.js
|
|
4023
4023
|
function Nr(e, t) {
|
|
4024
|
-
return b() ? (
|
|
4024
|
+
return b() ? (te(e, t), !0) : !1;
|
|
4025
4025
|
}
|
|
4026
4026
|
function Pr() {
|
|
4027
4027
|
let e = /* @__PURE__ */ new Set(), t = (t) => {
|
|
@@ -4052,12 +4052,12 @@ function Vr() {
|
|
|
4052
4052
|
return J && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
4053
4053
|
}
|
|
4054
4054
|
function Hr(...e) {
|
|
4055
|
-
if (e.length !== 1) return
|
|
4055
|
+
if (e.length !== 1) return pe(...e);
|
|
4056
4056
|
let t = e[0];
|
|
4057
|
-
return typeof t == "function" ?
|
|
4057
|
+
return typeof t == "function" ? oe(g(() => ({
|
|
4058
4058
|
get: t,
|
|
4059
4059
|
set: zr
|
|
4060
|
-
}))) :
|
|
4060
|
+
}))) : L(t);
|
|
4061
4061
|
}
|
|
4062
4062
|
function Ur(e, t) {
|
|
4063
4063
|
function n(...n) {
|
|
@@ -4085,7 +4085,7 @@ function Gr(e = Wr, t = {}) {
|
|
|
4085
4085
|
r.value = !0;
|
|
4086
4086
|
}
|
|
4087
4087
|
return {
|
|
4088
|
-
isActive:
|
|
4088
|
+
isActive: ue(r),
|
|
4089
4089
|
pause: i,
|
|
4090
4090
|
resume: a,
|
|
4091
4091
|
eventFilter: (...t) => {
|
|
@@ -4107,9 +4107,9 @@ function Jr(e) {
|
|
|
4107
4107
|
return ((...a) => (t += 1, r || (r = v(!0), n = r.run(() => e(...a))), Nr(i), n));
|
|
4108
4108
|
}
|
|
4109
4109
|
function Yr(e) {
|
|
4110
|
-
return w(e) ?
|
|
4110
|
+
return w(e) ? ae(new Proxy({}, {
|
|
4111
4111
|
get(t, n, r) {
|
|
4112
|
-
return
|
|
4112
|
+
return V(Reflect.get(e.value, n, r));
|
|
4113
4113
|
},
|
|
4114
4114
|
set(t, n, r) {
|
|
4115
4115
|
return w(e.value[n]) && !w(r) ? e.value[n].value = r : e.value[n] = r, !0;
|
|
@@ -4129,20 +4129,20 @@ function Yr(e) {
|
|
|
4129
4129
|
configurable: !0
|
|
4130
4130
|
};
|
|
4131
4131
|
}
|
|
4132
|
-
})) :
|
|
4132
|
+
})) : ae(e);
|
|
4133
4133
|
}
|
|
4134
4134
|
function Xr(e) {
|
|
4135
4135
|
return Yr(l(e));
|
|
4136
4136
|
}
|
|
4137
4137
|
function Zr(e, ...t) {
|
|
4138
4138
|
let n = t.flat(), r = n[0];
|
|
4139
|
-
return Xr(() => Object.fromEntries(typeof r == "function" ? Object.entries(
|
|
4139
|
+
return Xr(() => Object.fromEntries(typeof r == "function" ? Object.entries(me(e)).filter(([e, t]) => !r(B(t), e)) : Object.entries(me(e)).filter((e) => !n.includes(e[0]))));
|
|
4140
4140
|
}
|
|
4141
4141
|
function Qr(e, t = 1e4) {
|
|
4142
4142
|
return g((n, r) => {
|
|
4143
|
-
let i =
|
|
4144
|
-
i =
|
|
4145
|
-
},
|
|
4143
|
+
let i = B(e), a, o = () => setTimeout(() => {
|
|
4144
|
+
i = B(e), r();
|
|
4145
|
+
}, B(t));
|
|
4146
4146
|
return Nr(() => {
|
|
4147
4147
|
clearTimeout(a);
|
|
4148
4148
|
}), {
|
|
@@ -4157,7 +4157,7 @@ function Qr(e, t = 1e4) {
|
|
|
4157
4157
|
}
|
|
4158
4158
|
function $r(e, t, n = {}) {
|
|
4159
4159
|
let { eventFilter: r = Wr, ...i } = n;
|
|
4160
|
-
return
|
|
4160
|
+
return H(e, Ur(r, t), i);
|
|
4161
4161
|
}
|
|
4162
4162
|
function ei(e, t, n = {}) {
|
|
4163
4163
|
let { eventFilter: r, initialState: i = "active", ...a } = n, { eventFilter: o, pause: s, resume: c, isActive: l } = Gr(r, { initialState: i });
|
|
@@ -4190,10 +4190,10 @@ function ti(e, t, ...[n]) {
|
|
|
4190
4190
|
};
|
|
4191
4191
|
}
|
|
4192
4192
|
function ni(e, t) {
|
|
4193
|
-
qr(t) &&
|
|
4193
|
+
qr(t) && P(e, t);
|
|
4194
4194
|
}
|
|
4195
4195
|
function ri(e, t, n = {}) {
|
|
4196
|
-
let { immediate: r = !0, immediateCallback: i = !1 } = n, a =
|
|
4196
|
+
let { immediate: r = !0, immediateCallback: i = !1 } = n, a = de(!1), o;
|
|
4197
4197
|
function s() {
|
|
4198
4198
|
o &&= (clearTimeout(o), void 0);
|
|
4199
4199
|
}
|
|
@@ -4203,10 +4203,10 @@ function ri(e, t, n = {}) {
|
|
|
4203
4203
|
function l(...n) {
|
|
4204
4204
|
i && e(), s(), a.value = !0, o = setTimeout(() => {
|
|
4205
4205
|
a.value = !1, o = void 0, e(...n);
|
|
4206
|
-
},
|
|
4206
|
+
}, B(t));
|
|
4207
4207
|
}
|
|
4208
4208
|
return r && (a.value = !0, J && l()), Nr(c), {
|
|
4209
|
-
isPending:
|
|
4209
|
+
isPending: ue(a),
|
|
4210
4210
|
start: l,
|
|
4211
4211
|
stop: c
|
|
4212
4212
|
};
|
|
@@ -4219,7 +4219,7 @@ function ii(e = 1e3, t = {}) {
|
|
|
4219
4219
|
} : a;
|
|
4220
4220
|
}
|
|
4221
4221
|
function ai(e, t, n) {
|
|
4222
|
-
return
|
|
4222
|
+
return H(e, t, {
|
|
4223
4223
|
...n,
|
|
4224
4224
|
immediate: !0
|
|
4225
4225
|
});
|
|
@@ -4229,19 +4229,19 @@ function ai(e, t, n) {
|
|
|
4229
4229
|
var oi = J ? window : void 0;
|
|
4230
4230
|
J && window.document, J && window.navigator, J && window.location;
|
|
4231
4231
|
function si(e) {
|
|
4232
|
-
let t =
|
|
4232
|
+
let t = B(e);
|
|
4233
4233
|
return t?.$el ?? t;
|
|
4234
4234
|
}
|
|
4235
4235
|
function ci(...e) {
|
|
4236
4236
|
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = l(() => {
|
|
4237
|
-
let t = Kr(
|
|
4237
|
+
let t = Kr(B(e[0])).filter((e) => e != null);
|
|
4238
4238
|
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
4239
4239
|
});
|
|
4240
4240
|
return ai(() => [
|
|
4241
4241
|
n.value?.map((e) => si(e)) ?? [oi].filter((e) => e != null),
|
|
4242
|
-
Kr(
|
|
4243
|
-
Kr(
|
|
4244
|
-
|
|
4242
|
+
Kr(B(n.value ? e[1] : e[0])),
|
|
4243
|
+
Kr(V(n.value ? e[2] : e[1])),
|
|
4244
|
+
B(n.value ? e[3] : e[2])
|
|
4245
4245
|
], ([e, n, r, i], a, o) => {
|
|
4246
4246
|
if (!e?.length || !n?.length || !r?.length) return;
|
|
4247
4247
|
let s = Rr(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
@@ -4251,8 +4251,8 @@ function ci(...e) {
|
|
|
4251
4251
|
}, { flush: "post" });
|
|
4252
4252
|
}
|
|
4253
4253
|
function li() {
|
|
4254
|
-
let e =
|
|
4255
|
-
return t &&
|
|
4254
|
+
let e = de(!1), t = y();
|
|
4255
|
+
return t && F(() => {
|
|
4256
4256
|
e.value = !0;
|
|
4257
4257
|
}, t), e;
|
|
4258
4258
|
}
|
|
@@ -4264,12 +4264,12 @@ function di(...e) {
|
|
|
4264
4264
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
4265
4265
|
let { target: i = oi, eventName: a = "keydown", passive: o = !1, dedupe: s = !1 } = r, c = ui(t);
|
|
4266
4266
|
return ci(i, a, (e) => {
|
|
4267
|
-
e.repeat &&
|
|
4267
|
+
e.repeat && B(s) || c(e) && n(e);
|
|
4268
4268
|
}, o);
|
|
4269
4269
|
}
|
|
4270
4270
|
function fi(e, t = {}) {
|
|
4271
|
-
let { immediate: n = !0, fpsLimit: r = null, window: i = oi, once: a = !1 } = t, o =
|
|
4272
|
-
let e =
|
|
4271
|
+
let { immediate: n = !0, fpsLimit: r = null, window: i = oi, once: a = !1 } = t, o = de(!1), s = l(() => {
|
|
4272
|
+
let e = B(r);
|
|
4273
4273
|
return e ? 1e3 / e : null;
|
|
4274
4274
|
}), c = 0, u = null;
|
|
4275
4275
|
function d(t) {
|
|
@@ -4296,7 +4296,7 @@ function fi(e, t = {}) {
|
|
|
4296
4296
|
o.value = !1, u != null && i && (i.cancelAnimationFrame(u), u = null);
|
|
4297
4297
|
}
|
|
4298
4298
|
return n && f(), Nr(p), {
|
|
4299
|
-
isActive:
|
|
4299
|
+
isActive: ue(o),
|
|
4300
4300
|
pause: p,
|
|
4301
4301
|
resume: f
|
|
4302
4302
|
};
|
|
@@ -4312,10 +4312,10 @@ function mi(e, t, n, r = {}) {
|
|
|
4312
4312
|
f ? f(e) && m(h, e) : m(h, e);
|
|
4313
4313
|
};
|
|
4314
4314
|
if (s) {
|
|
4315
|
-
let n =
|
|
4316
|
-
return
|
|
4315
|
+
let n = L(_()), r = !1;
|
|
4316
|
+
return H(() => e[t], (e) => {
|
|
4317
4317
|
r || (r = !0, n.value = g(e), k(() => r = !1));
|
|
4318
|
-
}),
|
|
4318
|
+
}), H(n, (n) => {
|
|
4319
4319
|
!r && (n !== e[t] || u) && v(n);
|
|
4320
4320
|
}, { deep: u }), n;
|
|
4321
4321
|
} else return l({
|
|
@@ -4334,7 +4334,7 @@ function hi(e) {
|
|
|
4334
4334
|
}
|
|
4335
4335
|
//#endregion
|
|
4336
4336
|
//#region node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js
|
|
4337
|
-
var [gi, _i] = /*#__PURE__*/
|
|
4337
|
+
var [gi, _i] = /*#__PURE__*/ kr("ConfigProvider");
|
|
4338
4338
|
//#endregion
|
|
4339
4339
|
//#region node_modules/defu/dist/defu.mjs
|
|
4340
4340
|
function vi(e) {
|
|
@@ -4356,13 +4356,13 @@ function bi(e) {
|
|
|
4356
4356
|
return (...t) => t.reduce((t, n) => yi(t, n, "", e), {});
|
|
4357
4357
|
}
|
|
4358
4358
|
var xi = bi(), Si = Jr(() => {
|
|
4359
|
-
let e =
|
|
4359
|
+
let e = L(/* @__PURE__ */ new Map()), t = L(), n = l(() => {
|
|
4360
4360
|
for (let t of e.value.values()) if (t) return !0;
|
|
4361
4361
|
return !1;
|
|
4362
|
-
}), r = gi({ scrollBody:
|
|
4362
|
+
}), r = gi({ scrollBody: L(!0) }), i = null, a = () => {
|
|
4363
4363
|
document.body.style.paddingRight = "", document.body.style.marginRight = "", document.body.style.pointerEvents = "", document.documentElement.style.removeProperty("--scrollbar-width"), document.body.style.overflow = t.value ?? "", Br && i?.(), t.value = void 0;
|
|
4364
4364
|
};
|
|
4365
|
-
return
|
|
4365
|
+
return H(n, (e, o) => {
|
|
4366
4366
|
if (!J) return;
|
|
4367
4367
|
if (!e) {
|
|
4368
4368
|
o && a();
|
|
@@ -4413,7 +4413,7 @@ function Ti(e) {
|
|
|
4413
4413
|
//#endregion
|
|
4414
4414
|
//#region node_modules/reka-ui/dist/shared/useDirection.js
|
|
4415
4415
|
function Ei(e) {
|
|
4416
|
-
let t = gi({ dir:
|
|
4416
|
+
let t = gi({ dir: L("ltr") });
|
|
4417
4417
|
return l(() => e?.value || t.dir?.value || "ltr");
|
|
4418
4418
|
}
|
|
4419
4419
|
//#endregion
|
|
@@ -4421,14 +4421,14 @@ function Ei(e) {
|
|
|
4421
4421
|
function Di(e) {
|
|
4422
4422
|
let t = y(), n = t?.type.emits, r = {};
|
|
4423
4423
|
return n?.length || console.warn(`No emitted event found. Please check component: ${t?.type.__name}`), n?.forEach((t) => {
|
|
4424
|
-
r[
|
|
4424
|
+
r[fe(s(t))] = (...n) => e(t, ...n);
|
|
4425
4425
|
}), r;
|
|
4426
4426
|
}
|
|
4427
4427
|
//#endregion
|
|
4428
4428
|
//#region node_modules/reka-ui/dist/shared/useFocusGuards.js
|
|
4429
4429
|
var Oi = 0;
|
|
4430
4430
|
function ki() {
|
|
4431
|
-
|
|
4431
|
+
U((e) => {
|
|
4432
4432
|
if (!J) return;
|
|
4433
4433
|
let t = document.querySelectorAll("[data-reka-focus-guard]");
|
|
4434
4434
|
document.body.insertAdjacentElement("afterbegin", t[0] ?? Ai()), document.body.insertAdjacentElement("beforeend", t[1] ?? Ai()), Oi++, e(() => {
|
|
@@ -4443,9 +4443,9 @@ function Ai() {
|
|
|
4443
4443
|
//#endregion
|
|
4444
4444
|
//#region node_modules/reka-ui/dist/shared/useForwardExpose.js
|
|
4445
4445
|
function Y() {
|
|
4446
|
-
let e = y(), t =
|
|
4447
|
-
|
|
4448
|
-
n.value !== r() &&
|
|
4446
|
+
let e = y(), t = L(), n = l(() => r());
|
|
4447
|
+
re(() => {
|
|
4448
|
+
n.value !== r() && he(t);
|
|
4449
4449
|
});
|
|
4450
4450
|
function r() {
|
|
4451
4451
|
return t.value && "$el" in t.value && ["#text", "#comment"].includes(t.value.$el.nodeName) ? t.value.$el.nextElementSibling : si(t);
|
|
@@ -4493,7 +4493,7 @@ function ji(e) {
|
|
|
4493
4493
|
let t = y(), n = Object.keys(t?.type.props ?? {}).reduce((e, n) => {
|
|
4494
4494
|
let r = (t?.type.props[n]).default;
|
|
4495
4495
|
return r !== void 0 && (e[n] = r), e;
|
|
4496
|
-
}, {}), r =
|
|
4496
|
+
}, {}), r = pe(e);
|
|
4497
4497
|
return l(() => {
|
|
4498
4498
|
let e = {}, i = t?.vnode.props ?? {};
|
|
4499
4499
|
return Object.keys(i).forEach((t) => {
|
|
@@ -4520,7 +4520,7 @@ function Ni(e, t) {
|
|
|
4520
4520
|
Nr(() => {
|
|
4521
4521
|
n.value = !1;
|
|
4522
4522
|
});
|
|
4523
|
-
let r =
|
|
4523
|
+
let r = L(null), i = Pr();
|
|
4524
4524
|
function a() {
|
|
4525
4525
|
r.value = null, n.value = !1;
|
|
4526
4526
|
}
|
|
@@ -4532,14 +4532,14 @@ function Ni(e, t) {
|
|
|
4532
4532
|
}, o = Fi(a, Pi(a, i.getBoundingClientRect()), 1), s = Ii(t.getBoundingClientRect()), c = Ri([...o, ...s]);
|
|
4533
4533
|
r.value = c, n.value = !0;
|
|
4534
4534
|
}
|
|
4535
|
-
return
|
|
4535
|
+
return U((n) => {
|
|
4536
4536
|
if (e.value && t.value) {
|
|
4537
4537
|
let r = (e) => o(e, t.value), i = (t) => o(t, e.value);
|
|
4538
4538
|
e.value.addEventListener("pointerleave", r), t.value.addEventListener("pointerleave", i), n(() => {
|
|
4539
4539
|
e.value?.removeEventListener("pointerleave", r), t.value?.removeEventListener("pointerleave", i);
|
|
4540
4540
|
});
|
|
4541
4541
|
}
|
|
4542
|
-
}),
|
|
4542
|
+
}), U((n) => {
|
|
4543
4543
|
if (r.value) {
|
|
4544
4544
|
let o = (n) => {
|
|
4545
4545
|
if (!r.value || !(n.target instanceof Element)) return;
|
|
@@ -4715,13 +4715,13 @@ var Bi = function(e) {
|
|
|
4715
4715
|
//#region node_modules/reka-ui/dist/shared/useHideOthers.js
|
|
4716
4716
|
function Yi(e) {
|
|
4717
4717
|
let t;
|
|
4718
|
-
|
|
4718
|
+
H(() => si(e), (e) => {
|
|
4719
4719
|
let n = !1;
|
|
4720
4720
|
try {
|
|
4721
4721
|
n = !!e?.closest("[popover]:not(:popover-open)");
|
|
4722
4722
|
} catch {}
|
|
4723
4723
|
e && !n ? t = Ji(e) : t && t();
|
|
4724
|
-
}),
|
|
4724
|
+
}), ne(() => {
|
|
4725
4725
|
t && t();
|
|
4726
4726
|
});
|
|
4727
4727
|
}
|
|
@@ -4736,8 +4736,8 @@ function Zi(e, t = "reka") {
|
|
|
4736
4736
|
//#endregion
|
|
4737
4737
|
//#region node_modules/reka-ui/dist/shared/useSize.js
|
|
4738
4738
|
function Qi(e) {
|
|
4739
|
-
let t =
|
|
4740
|
-
return
|
|
4739
|
+
let t = L(), n = l(() => t.value?.width ?? 0), r = l(() => t.value?.height ?? 0), i;
|
|
4740
|
+
return F(() => {
|
|
4741
4741
|
let n = si(e);
|
|
4742
4742
|
n ? (t.value = {
|
|
4743
4743
|
width: n.offsetWidth,
|
|
@@ -4754,7 +4754,7 @@ function Qi(e) {
|
|
|
4754
4754
|
height: a
|
|
4755
4755
|
};
|
|
4756
4756
|
}), i.observe(n, { box: "border-box" })) : t.value = void 0;
|
|
4757
|
-
}),
|
|
4757
|
+
}), ne(() => {
|
|
4758
4758
|
i?.disconnect(), i = void 0;
|
|
4759
4759
|
}), {
|
|
4760
4760
|
width: n,
|
|
@@ -4764,7 +4764,7 @@ function Qi(e) {
|
|
|
4764
4764
|
//#endregion
|
|
4765
4765
|
//#region node_modules/reka-ui/dist/shared/useStateMachine.js
|
|
4766
4766
|
function $i(e, t) {
|
|
4767
|
-
let n =
|
|
4767
|
+
let n = L(e);
|
|
4768
4768
|
function r(e) {
|
|
4769
4769
|
return t[n.value][e] ?? n.value;
|
|
4770
4770
|
}
|
|
@@ -4778,7 +4778,7 @@ function $i(e, t) {
|
|
|
4778
4778
|
//#endregion
|
|
4779
4779
|
//#region node_modules/reka-ui/dist/Presence/usePresence.js
|
|
4780
4780
|
function ea(e, t) {
|
|
4781
|
-
let n =
|
|
4781
|
+
let n = L({}), r = L("none"), i = L(e), a = e.value ? "mounted" : "unmounted", o, s = t.value?.ownerDocument.defaultView ?? oi, { state: c, dispatch: u } = $i(a, {
|
|
4782
4782
|
mounted: {
|
|
4783
4783
|
UNMOUNT: "unmounted",
|
|
4784
4784
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -4797,7 +4797,7 @@ function ea(e, t) {
|
|
|
4797
4797
|
t.value?.dispatchEvent(n);
|
|
4798
4798
|
}
|
|
4799
4799
|
};
|
|
4800
|
-
|
|
4800
|
+
H(e, async (e, i) => {
|
|
4801
4801
|
let a = i !== e;
|
|
4802
4802
|
if (await k(), a) {
|
|
4803
4803
|
let a = r.value, o = ta(t.value);
|
|
@@ -4815,13 +4815,13 @@ function ea(e, t) {
|
|
|
4815
4815
|
e.target === t.value && n === "none" && u("ANIMATION_END");
|
|
4816
4816
|
}, p = (e) => {
|
|
4817
4817
|
e.target === t.value && (r.value = ta(t.value));
|
|
4818
|
-
}, m =
|
|
4818
|
+
}, m = H(t, (e, t) => {
|
|
4819
4819
|
e ? (n.value = getComputedStyle(e), e.addEventListener("animationstart", p), e.addEventListener("animationcancel", f), e.addEventListener("animationend", f)) : (u("ANIMATION_END"), o !== void 0 && s?.clearTimeout(o), t?.removeEventListener("animationstart", p), t?.removeEventListener("animationcancel", f), t?.removeEventListener("animationend", f));
|
|
4820
|
-
}, { immediate: !0 }), h =
|
|
4820
|
+
}, { immediate: !0 }), h = H(c, () => {
|
|
4821
4821
|
let e = ta(t.value);
|
|
4822
4822
|
r.value = c.value === "mounted" ? e : "none";
|
|
4823
4823
|
});
|
|
4824
|
-
return
|
|
4824
|
+
return ne(() => {
|
|
4825
4825
|
m(), h(), t.value && (t.value.removeEventListener("animationstart", p), t.value.removeEventListener("animationcancel", f), t.value.removeEventListener("animationend", f)), o !== void 0 && s?.clearTimeout(o);
|
|
4826
4826
|
}), { isPresent: l(() => ["mounted", "unmountSuspended"].includes(c.value)) };
|
|
4827
4827
|
}
|
|
@@ -4841,7 +4841,7 @@ var na = /*#__PURE__*/ _({
|
|
|
4841
4841
|
},
|
|
4842
4842
|
slots: {},
|
|
4843
4843
|
setup(e, { slots: t, expose: n }) {
|
|
4844
|
-
let { present: r, forceMount: i } =
|
|
4844
|
+
let { present: r, forceMount: i } = me(e), a = L(), { isPresent: o } = ea(r, a);
|
|
4845
4845
|
n({ present: o });
|
|
4846
4846
|
let s = t.default({ present: o.value });
|
|
4847
4847
|
s = hi(s || []);
|
|
@@ -4903,7 +4903,7 @@ var na = /*#__PURE__*/ _({
|
|
|
4903
4903
|
//#endregion
|
|
4904
4904
|
//#region node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js
|
|
4905
4905
|
function aa() {
|
|
4906
|
-
let e =
|
|
4906
|
+
let e = L();
|
|
4907
4907
|
return {
|
|
4908
4908
|
primitiveElement: e,
|
|
4909
4909
|
currentElement: l(() => ["#text", "#comment"].includes(e.value?.$el.nodeName) ? e.value?.$el.nextElementSibling : si(e))
|
|
@@ -4911,7 +4911,7 @@ function aa() {
|
|
|
4911
4911
|
}
|
|
4912
4912
|
//#endregion
|
|
4913
4913
|
//#region node_modules/reka-ui/dist/Dialog/DialogRoot.js
|
|
4914
|
-
var [oa, sa] = /*#__PURE__*/
|
|
4914
|
+
var [oa, sa] = /*#__PURE__*/ kr("DialogRoot"), ca = /* @__PURE__ */ _({
|
|
4915
4915
|
inheritAttrs: !1,
|
|
4916
4916
|
__name: "DialogRoot",
|
|
4917
4917
|
props: {
|
|
@@ -4941,7 +4941,7 @@ var [oa, sa] = /*#__PURE__*/ Ar("DialogRoot"), ca = /* @__PURE__ */ _({
|
|
|
4941
4941
|
let n = e, r = mi(n, "open", t, {
|
|
4942
4942
|
defaultValue: n.defaultOpen,
|
|
4943
4943
|
passive: n.open === void 0
|
|
4944
|
-
}), i =
|
|
4944
|
+
}), i = L(), a = L(), { modal: o, unmountOnHide: s } = me(n);
|
|
4945
4945
|
return sa({
|
|
4946
4946
|
open: r,
|
|
4947
4947
|
modal: o,
|
|
@@ -4960,8 +4960,8 @@ var [oa, sa] = /*#__PURE__*/ Ar("DialogRoot"), ca = /* @__PURE__ */ _({
|
|
|
4960
4960
|
descriptionId: "",
|
|
4961
4961
|
triggerElement: i,
|
|
4962
4962
|
contentElement: a
|
|
4963
|
-
}), (e, t) =>
|
|
4964
|
-
open:
|
|
4963
|
+
}), (e, t) => R(e.$slots, "default", {
|
|
4964
|
+
open: V(r),
|
|
4965
4965
|
close: () => r.value = !1
|
|
4966
4966
|
});
|
|
4967
4967
|
}
|
|
@@ -4972,9 +4972,9 @@ function da(e, t) {
|
|
|
4972
4972
|
return !!(n && (r === n || i.indexOf(r) < i.indexOf(n)));
|
|
4973
4973
|
}
|
|
4974
4974
|
function fa(e, t, n = !0) {
|
|
4975
|
-
let r = t?.value?.ownerDocument ?? globalThis?.document, i =
|
|
4976
|
-
return
|
|
4977
|
-
if (!J || !
|
|
4975
|
+
let r = t?.value?.ownerDocument ?? globalThis?.document, i = L(!1), a = L(() => {});
|
|
4976
|
+
return U((o) => {
|
|
4977
|
+
if (!J || !B(n)) return;
|
|
4978
4978
|
let s = async (n) => {
|
|
4979
4979
|
let o = n.target;
|
|
4980
4980
|
if (!(!t?.value || !o)) {
|
|
@@ -4998,13 +4998,13 @@ function fa(e, t, n = !0) {
|
|
|
4998
4998
|
window.clearTimeout(c), r.removeEventListener("pointerdown", s), r.removeEventListener("click", a.value);
|
|
4999
4999
|
});
|
|
5000
5000
|
}), { onPointerDownCapture: () => {
|
|
5001
|
-
|
|
5001
|
+
B(n) && (i.value = !0);
|
|
5002
5002
|
} };
|
|
5003
5003
|
}
|
|
5004
5004
|
function pa(e, t, n = !0) {
|
|
5005
|
-
let r = t?.value?.ownerDocument ?? globalThis?.document, i =
|
|
5006
|
-
return
|
|
5007
|
-
if (!J || !
|
|
5005
|
+
let r = t?.value?.ownerDocument ?? globalThis?.document, i = L(!1);
|
|
5006
|
+
return U((a) => {
|
|
5007
|
+
if (!J || !B(n)) return;
|
|
5008
5008
|
let o = async (n) => {
|
|
5009
5009
|
if (!t?.value) return;
|
|
5010
5010
|
await k(), await k();
|
|
@@ -5014,16 +5014,16 @@ function pa(e, t, n = !0) {
|
|
|
5014
5014
|
r.addEventListener("focusin", o), a(() => r.removeEventListener("focusin", o));
|
|
5015
5015
|
}), {
|
|
5016
5016
|
onFocusCapture: () => {
|
|
5017
|
-
|
|
5017
|
+
B(n) && (i.value = !0);
|
|
5018
5018
|
},
|
|
5019
5019
|
onBlurCapture: () => {
|
|
5020
|
-
|
|
5020
|
+
B(n) && (i.value = !1);
|
|
5021
5021
|
}
|
|
5022
5022
|
};
|
|
5023
5023
|
}
|
|
5024
5024
|
//#endregion
|
|
5025
5025
|
//#region node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js
|
|
5026
|
-
var Z = /*#__PURE__*/
|
|
5026
|
+
var Z = /*#__PURE__*/ ae({
|
|
5027
5027
|
layersRoot: /* @__PURE__ */ new Set(),
|
|
5028
5028
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5029
5029
|
originalBodyPointerEvents: void 0,
|
|
@@ -5070,7 +5070,7 @@ var Z = /*#__PURE__*/ oe({
|
|
|
5070
5070
|
}, a);
|
|
5071
5071
|
return di("Escape", (e) => {
|
|
5072
5072
|
n.present && c.value === s.value.size - 1 && (r("escapeKeyDown", e), e.defaultPrevented || r("dismiss"));
|
|
5073
|
-
}),
|
|
5073
|
+
}), H([
|
|
5074
5074
|
a,
|
|
5075
5075
|
() => n.disableOutsidePointerEvents,
|
|
5076
5076
|
() => n.present
|
|
@@ -5078,25 +5078,25 @@ var Z = /*#__PURE__*/ oe({
|
|
|
5078
5078
|
!e || !n || t && (Z.layersWithOutsidePointerEventsDisabled.size === 0 && (Z.originalBodyPointerEvents = o.value.body.style.pointerEvents, o.value.body.style.pointerEvents = "none"), Z.layersWithOutsidePointerEventsDisabled.add(e), i(() => {
|
|
5079
5079
|
Z.layersWithOutsidePointerEventsDisabled.delete(e), Z.layersWithOutsidePointerEventsDisabled.size === 0 && !Mr(Z.originalBodyPointerEvents) && (o.value.body.style.pointerEvents = Z.originalBodyPointerEvents);
|
|
5080
5080
|
}));
|
|
5081
|
-
}, { immediate: !0 }),
|
|
5081
|
+
}, { immediate: !0 }), H([a, () => n.present], ([e, t], n, r) => {
|
|
5082
5082
|
!e || !t || (s.value.add(e), r(() => {
|
|
5083
5083
|
s.value.delete(e);
|
|
5084
5084
|
}));
|
|
5085
|
-
}, { immediate: !0 }),
|
|
5085
|
+
}, { immediate: !0 }), U((e) => {
|
|
5086
5086
|
e(() => {
|
|
5087
5087
|
a.value && (s.value.delete(a.value), Z.layersWithOutsidePointerEventsDisabled.delete(a.value));
|
|
5088
5088
|
});
|
|
5089
|
-
}), (e, t) => (
|
|
5090
|
-
ref:
|
|
5089
|
+
}), (e, t) => (I(), u(V(X), {
|
|
5090
|
+
ref: V(i),
|
|
5091
5091
|
"as-child": e.asChild,
|
|
5092
5092
|
as: e.as,
|
|
5093
5093
|
"data-dismissable-layer": "",
|
|
5094
5094
|
style: M({ pointerEvents: d.value ? f.value ? "auto" : "none" : void 0 }),
|
|
5095
|
-
onFocusCapture:
|
|
5096
|
-
onBlurCapture:
|
|
5097
|
-
onPointerdownCapture:
|
|
5095
|
+
onFocusCapture: V(m).onFocusCapture,
|
|
5096
|
+
onBlurCapture: V(m).onBlurCapture,
|
|
5097
|
+
onPointerdownCapture: V(p).onPointerDownCapture
|
|
5098
5098
|
}, {
|
|
5099
|
-
default:
|
|
5099
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5100
5100
|
_: 3
|
|
5101
5101
|
}, 8, [
|
|
5102
5102
|
"as-child",
|
|
@@ -5121,16 +5121,16 @@ var Z = /*#__PURE__*/ oe({
|
|
|
5121
5121
|
},
|
|
5122
5122
|
setup(e) {
|
|
5123
5123
|
let t = e, { forwardRef: n, currentElement: r } = Y();
|
|
5124
|
-
return
|
|
5124
|
+
return F(() => {
|
|
5125
5125
|
Z.branches.add(r.value);
|
|
5126
|
-
}),
|
|
5126
|
+
}), ne(() => {
|
|
5127
5127
|
Z.branches.delete(r.value);
|
|
5128
|
-
}), (e, r) => (
|
|
5129
|
-
default:
|
|
5128
|
+
}), (e, r) => (I(), u(V(X), O({ ref: V(n) }, t), {
|
|
5129
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5130
5130
|
_: 3
|
|
5131
5131
|
}, 16));
|
|
5132
5132
|
}
|
|
5133
|
-
}), ga = Fr(() =>
|
|
5133
|
+
}), ga = Fr(() => L([]));
|
|
5134
5134
|
function _a() {
|
|
5135
5135
|
let e = ga();
|
|
5136
5136
|
return {
|
|
@@ -5154,8 +5154,8 @@ var ya = "focusScope.autoFocusOnMount", ba = "focusScope.autoFocusOnUnmount", xa
|
|
|
5154
5154
|
cancelable: !0
|
|
5155
5155
|
};
|
|
5156
5156
|
function Sa(e, { select: t = !1 } = {}) {
|
|
5157
|
-
let n =
|
|
5158
|
-
for (let r of e) if (Oa(r, { select: t }),
|
|
5157
|
+
let n = Ar();
|
|
5158
|
+
for (let r of e) if (Oa(r, { select: t }), Ar() !== n) return !0;
|
|
5159
5159
|
}
|
|
5160
5160
|
function Ca(e) {
|
|
5161
5161
|
let t = wa(e);
|
|
@@ -5186,7 +5186,7 @@ function Da(e) {
|
|
|
5186
5186
|
}
|
|
5187
5187
|
function Oa(e, { select: t = !1 } = {}) {
|
|
5188
5188
|
if (e && e.focus) {
|
|
5189
|
-
let n =
|
|
5189
|
+
let n = Ar();
|
|
5190
5190
|
e.focus({ preventScroll: !0 }), e !== n && Da(e) && t && e.select();
|
|
5191
5191
|
}
|
|
5192
5192
|
}
|
|
@@ -5221,7 +5221,7 @@ var ka = /* @__PURE__ */ _({
|
|
|
5221
5221
|
},
|
|
5222
5222
|
emits: ["mountAutoFocus", "unmountAutoFocus"],
|
|
5223
5223
|
setup(e, { emit: t }) {
|
|
5224
|
-
let n = e, r = t, { currentRef: i, currentElement: a } = Y(), o =
|
|
5224
|
+
let n = e, r = t, { currentRef: i, currentElement: a } = Y(), o = L(null), s = _a(), c = /*#__PURE__*/ ae({
|
|
5225
5225
|
paused: !1,
|
|
5226
5226
|
pause() {
|
|
5227
5227
|
this.paused = !0;
|
|
@@ -5230,7 +5230,7 @@ var ka = /* @__PURE__ */ _({
|
|
|
5230
5230
|
this.paused = !1;
|
|
5231
5231
|
}
|
|
5232
5232
|
});
|
|
5233
|
-
|
|
5233
|
+
U((e) => {
|
|
5234
5234
|
if (!J) return;
|
|
5235
5235
|
let t = a.value;
|
|
5236
5236
|
if (!n.trapped) return;
|
|
@@ -5259,13 +5259,13 @@ var ka = /* @__PURE__ */ _({
|
|
|
5259
5259
|
});
|
|
5260
5260
|
function l(e, t) {
|
|
5261
5261
|
let n = new CustomEvent(ya, xa), i = (e) => r("mountAutoFocus", e);
|
|
5262
|
-
e.addEventListener(ya, i), e.dispatchEvent(n), e.removeEventListener(ya, i), n.defaultPrevented || (Sa(wa(e), { select: !0 }),
|
|
5262
|
+
e.addEventListener(ya, i), e.dispatchEvent(n), e.removeEventListener(ya, i), n.defaultPrevented || (Sa(wa(e), { select: !0 }), Ar() === t && Oa(e));
|
|
5263
5263
|
}
|
|
5264
|
-
|
|
5264
|
+
U(async (e) => {
|
|
5265
5265
|
let t = a.value;
|
|
5266
5266
|
if (await k(), !t) return;
|
|
5267
5267
|
n.present !== !1 && s.add(c);
|
|
5268
|
-
let i =
|
|
5268
|
+
let i = Ar();
|
|
5269
5269
|
!t.contains(i) && n.present !== !1 && l(t, i), e(() => {
|
|
5270
5270
|
let e = new CustomEvent(ba, xa), n = (e) => {
|
|
5271
5271
|
r("unmountAutoFocus", e);
|
|
@@ -5274,7 +5274,7 @@ var ka = /* @__PURE__ */ _({
|
|
|
5274
5274
|
e.defaultPrevented || Oa(i ?? document.body, { select: !0 }), t.removeEventListener(ba, n), s.remove(c), t.removeAttribute("data-focus-scope-unmounting");
|
|
5275
5275
|
}, 0);
|
|
5276
5276
|
});
|
|
5277
|
-
}),
|
|
5277
|
+
}), H(() => n.present, async (e, t) => {
|
|
5278
5278
|
if (!J) return;
|
|
5279
5279
|
if (e === !1 && t === !0) {
|
|
5280
5280
|
s.remove(c);
|
|
@@ -5284,18 +5284,18 @@ var ka = /* @__PURE__ */ _({
|
|
|
5284
5284
|
s.add(c), await k();
|
|
5285
5285
|
let n = a.value;
|
|
5286
5286
|
if (!n) return;
|
|
5287
|
-
let r =
|
|
5287
|
+
let r = Ar();
|
|
5288
5288
|
n.contains(r) || l(n, r);
|
|
5289
5289
|
});
|
|
5290
5290
|
function d(e) {
|
|
5291
5291
|
if (!n.loop && !n.trapped || c.paused) return;
|
|
5292
|
-
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r =
|
|
5292
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, r = Ar();
|
|
5293
5293
|
if (t && r) {
|
|
5294
5294
|
let t = e.currentTarget, [i, a] = Ca(t);
|
|
5295
5295
|
i && a ? !e.shiftKey && r === a ? (e.preventDefault(), n.loop && Oa(i, { select: !0 })) : e.shiftKey && r === i && (e.preventDefault(), n.loop && Oa(a, { select: !0 })) : r === t && e.preventDefault();
|
|
5296
5296
|
}
|
|
5297
5297
|
}
|
|
5298
|
-
return (e, t) => (
|
|
5298
|
+
return (e, t) => (I(), u(V(X), {
|
|
5299
5299
|
ref_key: "currentRef",
|
|
5300
5300
|
ref: i,
|
|
5301
5301
|
tabindex: "-1",
|
|
@@ -5303,7 +5303,7 @@ var ka = /* @__PURE__ */ _({
|
|
|
5303
5303
|
as: e.as,
|
|
5304
5304
|
onKeydown: d
|
|
5305
5305
|
}, {
|
|
5306
|
-
default:
|
|
5306
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5307
5307
|
_: 3
|
|
5308
5308
|
}, 8, ["as-child", "as"]));
|
|
5309
5309
|
}
|
|
@@ -5329,7 +5329,7 @@ function Ia({ titleName: e = Pa, contentName: t = Fa, componentLink: n = "dialog
|
|
|
5329
5329
|
If you want to hide the \`${e}\`, you can wrap it with our VisuallyHidden component.
|
|
5330
5330
|
|
|
5331
5331
|
For more information, see https://www.reka-ui.com/docs/components/${n}`, s = `Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${t}.`;
|
|
5332
|
-
|
|
5332
|
+
F(() => {
|
|
5333
5333
|
document.getElementById(r) || console.warn(o);
|
|
5334
5334
|
let e = a.value?.getAttribute("aria-describedby");
|
|
5335
5335
|
i && e && (document.getElementById(i) || console.warn(s));
|
|
@@ -5375,8 +5375,8 @@ var La = /* @__PURE__ */ _({
|
|
|
5375
5375
|
],
|
|
5376
5376
|
setup(e, { emit: t }) {
|
|
5377
5377
|
let n = e, r = t, i = oa(), { forwardRef: a, currentElement: o } = Y();
|
|
5378
|
-
return i.titleId ||= Zi(void 0, "reka-dialog-title"), i.descriptionId ||= Zi(void 0, "reka-dialog-description"),
|
|
5379
|
-
i.contentElement = o,
|
|
5378
|
+
return i.titleId ||= Zi(void 0, "reka-dialog-title"), i.descriptionId ||= Zi(void 0, "reka-dialog-description"), F(() => {
|
|
5379
|
+
i.contentElement = o, Ar() !== document.body && (i.triggerElement.value = Ar());
|
|
5380
5380
|
}), process.env.NODE_ENV !== "production" && Ia({
|
|
5381
5381
|
titleName: "DialogTitle",
|
|
5382
5382
|
contentName: "DialogContent",
|
|
@@ -5384,7 +5384,7 @@ var La = /* @__PURE__ */ _({
|
|
|
5384
5384
|
titleId: i.titleId,
|
|
5385
5385
|
descriptionId: i.descriptionId,
|
|
5386
5386
|
contentElement: o
|
|
5387
|
-
}), (e, t) => (
|
|
5387
|
+
}), (e, t) => (I(), u(V(ka), {
|
|
5388
5388
|
"as-child": "",
|
|
5389
5389
|
loop: "",
|
|
5390
5390
|
trapped: n.trapFocus,
|
|
@@ -5392,25 +5392,25 @@ var La = /* @__PURE__ */ _({
|
|
|
5392
5392
|
onMountAutoFocus: t[5] ||= (e) => r("openAutoFocus", e),
|
|
5393
5393
|
onUnmountAutoFocus: t[6] ||= (e) => r("closeAutoFocus", e)
|
|
5394
5394
|
}, {
|
|
5395
|
-
default:
|
|
5396
|
-
id:
|
|
5397
|
-
ref:
|
|
5395
|
+
default: W(() => [h(V(ma), O({
|
|
5396
|
+
id: V(i).contentId,
|
|
5397
|
+
ref: V(a),
|
|
5398
5398
|
as: e.as,
|
|
5399
5399
|
"as-child": e.asChild,
|
|
5400
5400
|
present: n.present,
|
|
5401
5401
|
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
5402
5402
|
role: "dialog",
|
|
5403
|
-
"aria-describedby":
|
|
5404
|
-
"aria-labelledby":
|
|
5405
|
-
"data-state":
|
|
5403
|
+
"aria-describedby": V(i).descriptionId,
|
|
5404
|
+
"aria-labelledby": V(i).titleId,
|
|
5405
|
+
"data-state": V(Na)(V(i).open.value)
|
|
5406
5406
|
}, e.$attrs, {
|
|
5407
|
-
onDismiss: t[0] ||= (e) =>
|
|
5407
|
+
onDismiss: t[0] ||= (e) => V(i).onOpenChange(!1),
|
|
5408
5408
|
onEscapeKeyDown: t[1] ||= (e) => r("escapeKeyDown", e),
|
|
5409
5409
|
onFocusOutside: t[2] ||= (e) => r("focusOutside", e),
|
|
5410
5410
|
onInteractOutside: t[3] ||= (e) => r("interactOutside", e),
|
|
5411
5411
|
onPointerDownOutside: t[4] ||= (e) => r("pointerDownOutside", e)
|
|
5412
5412
|
}), {
|
|
5413
|
-
default:
|
|
5413
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5414
5414
|
_: 3
|
|
5415
5415
|
}, 16, [
|
|
5416
5416
|
"id",
|
|
@@ -5469,18 +5469,18 @@ var La = /* @__PURE__ */ _({
|
|
|
5469
5469
|
let { present: e, ...t } = n;
|
|
5470
5470
|
return t;
|
|
5471
5471
|
});
|
|
5472
|
-
return
|
|
5472
|
+
return H(() => n.present, (e, t) => {
|
|
5473
5473
|
!e && t && i.triggerElement.value?.focus();
|
|
5474
|
-
}), (e, t) => (
|
|
5474
|
+
}), (e, t) => (I(), u(La, O({
|
|
5475
5475
|
...c.value,
|
|
5476
|
-
...
|
|
5476
|
+
...V(a)
|
|
5477
5477
|
}, {
|
|
5478
|
-
ref:
|
|
5478
|
+
ref: V(o),
|
|
5479
5479
|
present: e.present,
|
|
5480
|
-
"trap-focus":
|
|
5480
|
+
"trap-focus": V(i).open.value,
|
|
5481
5481
|
"disable-outside-pointer-events": n.disableOutsidePointerEvents,
|
|
5482
5482
|
onCloseAutoFocus: t[0] ||= (e) => {
|
|
5483
|
-
e.defaultPrevented || (e.preventDefault(),
|
|
5483
|
+
e.defaultPrevented || (e.preventDefault(), V(i).triggerElement.value?.focus());
|
|
5484
5484
|
},
|
|
5485
5485
|
onPointerDownOutside: t[1] ||= (e) => {
|
|
5486
5486
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
@@ -5490,7 +5490,7 @@ var La = /* @__PURE__ */ _({
|
|
|
5490
5490
|
e.preventDefault();
|
|
5491
5491
|
}
|
|
5492
5492
|
}), {
|
|
5493
|
-
default:
|
|
5493
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5494
5494
|
_: 3
|
|
5495
5495
|
}, 16, [
|
|
5496
5496
|
"present",
|
|
@@ -5537,29 +5537,29 @@ var La = /* @__PURE__ */ _({
|
|
|
5537
5537
|
setup(e, { emit: t }) {
|
|
5538
5538
|
let n = e, r = Di(t);
|
|
5539
5539
|
Y();
|
|
5540
|
-
let i = oa(), a =
|
|
5540
|
+
let i = oa(), a = L(!1), o = L(!1), s = l(() => {
|
|
5541
5541
|
let { present: e, ...t } = n;
|
|
5542
5542
|
return t;
|
|
5543
5543
|
});
|
|
5544
|
-
return
|
|
5544
|
+
return H(() => n.present, (e, t) => {
|
|
5545
5545
|
!e && t && (a.value || i.triggerElement.value?.focus(), a.value = !1, o.value = !1);
|
|
5546
|
-
}), (e, t) => (
|
|
5546
|
+
}), (e, t) => (I(), u(La, O({
|
|
5547
5547
|
...s.value,
|
|
5548
|
-
...
|
|
5548
|
+
...V(r)
|
|
5549
5549
|
}, {
|
|
5550
5550
|
present: e.present,
|
|
5551
5551
|
"trap-focus": !1,
|
|
5552
5552
|
"disable-outside-pointer-events": !1,
|
|
5553
5553
|
onCloseAutoFocus: t[0] ||= (e) => {
|
|
5554
|
-
e.defaultPrevented || (a.value ||
|
|
5554
|
+
e.defaultPrevented || (a.value || V(i).triggerElement.value?.focus(), e.preventDefault()), a.value = !1, o.value = !1;
|
|
5555
5555
|
},
|
|
5556
5556
|
onInteractOutside: t[1] ||= (e) => {
|
|
5557
5557
|
e.defaultPrevented || (a.value = !0, e.detail.originalEvent.type === "pointerdown" && (o.value = !0));
|
|
5558
5558
|
let t = e.target;
|
|
5559
|
-
|
|
5559
|
+
V(i).triggerElement.value?.contains(t) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && o.value && e.preventDefault();
|
|
5560
5560
|
}
|
|
5561
5561
|
}), {
|
|
5562
|
-
default:
|
|
5562
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5563
5563
|
_: 3
|
|
5564
5564
|
}, 16, ["present"]));
|
|
5565
5565
|
}
|
|
@@ -5594,33 +5594,33 @@ var La = /* @__PURE__ */ _({
|
|
|
5594
5594
|
],
|
|
5595
5595
|
setup(e, { emit: t }) {
|
|
5596
5596
|
let n = e, r = t, i = oa(), a = Di(r), { forwardRef: o } = Y();
|
|
5597
|
-
return (e, t) => (
|
|
5598
|
-
present: e.forceMount ||
|
|
5599
|
-
"force-mount": e.forceMount || !
|
|
5597
|
+
return (e, t) => (I(), u(V(na), {
|
|
5598
|
+
present: e.forceMount || V(i).open.value,
|
|
5599
|
+
"force-mount": e.forceMount || !V(i).unmountOnHide.value
|
|
5600
5600
|
}, {
|
|
5601
|
-
default:
|
|
5601
|
+
default: W(({ present: t }) => [V(i).modal.value ? ye((I(), u(Ra, O({
|
|
5602
5602
|
key: 0,
|
|
5603
|
-
ref:
|
|
5604
|
-
present:
|
|
5603
|
+
ref: V(o),
|
|
5604
|
+
present: V(i).unmountOnHide.value || t
|
|
5605
5605
|
}, {
|
|
5606
5606
|
...n,
|
|
5607
|
-
...
|
|
5607
|
+
...V(a),
|
|
5608
5608
|
...e.$attrs
|
|
5609
5609
|
}), {
|
|
5610
|
-
default:
|
|
5610
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5611
5611
|
_: 2
|
|
5612
|
-
}, 1040, ["present"])), [[
|
|
5612
|
+
}, 1040, ["present"])), [[_e, V(i).unmountOnHide.value || t]]) : ye((I(), u(za, O({
|
|
5613
5613
|
key: 1,
|
|
5614
|
-
ref:
|
|
5615
|
-
present:
|
|
5614
|
+
ref: V(o),
|
|
5615
|
+
present: V(i).unmountOnHide.value || t
|
|
5616
5616
|
}, {
|
|
5617
5617
|
...n,
|
|
5618
|
-
...
|
|
5618
|
+
...V(a),
|
|
5619
5619
|
...e.$attrs
|
|
5620
5620
|
}), {
|
|
5621
|
-
default:
|
|
5621
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5622
5622
|
_: 2
|
|
5623
|
-
}, 1040, ["present"])), [[
|
|
5623
|
+
}, 1040, ["present"])), [[_e, V(i).unmountOnHide.value || t]])]),
|
|
5624
5624
|
_: 3
|
|
5625
5625
|
}, 8, ["present", "force-mount"]));
|
|
5626
5626
|
}
|
|
@@ -5641,8 +5641,8 @@ var La = /* @__PURE__ */ _({
|
|
|
5641
5641
|
let t = e;
|
|
5642
5642
|
Y();
|
|
5643
5643
|
let n = oa();
|
|
5644
|
-
return (e, r) => (
|
|
5645
|
-
default:
|
|
5644
|
+
return (e, r) => (I(), u(V(X), O(t, { id: V(n).descriptionId }), {
|
|
5645
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5646
5646
|
_: 3
|
|
5647
5647
|
}, 16, ["id"]));
|
|
5648
5648
|
}
|
|
@@ -5665,18 +5665,18 @@ var La = /* @__PURE__ */ _({
|
|
|
5665
5665
|
},
|
|
5666
5666
|
setup(e) {
|
|
5667
5667
|
let t = e, n = oa(), r = Ci(t.present);
|
|
5668
|
-
return
|
|
5668
|
+
return H(() => t.present, (e) => r.value = e), Y(), (e, t) => (I(), u(V(X), {
|
|
5669
5669
|
as: e.as,
|
|
5670
5670
|
"as-child": e.asChild,
|
|
5671
|
-
"data-state":
|
|
5671
|
+
"data-state": V(n).open.value ? "open" : "closed",
|
|
5672
5672
|
style: { "pointer-events": "auto" },
|
|
5673
|
-
onPointerdown: t[0] ||=
|
|
5673
|
+
onPointerdown: t[0] ||= xe(() => {}, [
|
|
5674
5674
|
"left",
|
|
5675
5675
|
"self",
|
|
5676
5676
|
"prevent"
|
|
5677
5677
|
])
|
|
5678
5678
|
}, {
|
|
5679
|
-
default:
|
|
5679
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5680
5680
|
_: 3
|
|
5681
5681
|
}, 8, [
|
|
5682
5682
|
"as",
|
|
@@ -5702,24 +5702,24 @@ var La = /* @__PURE__ */ _({
|
|
|
5702
5702
|
},
|
|
5703
5703
|
setup(e) {
|
|
5704
5704
|
let t = oa(), { forwardRef: n } = Y();
|
|
5705
|
-
return (e, r) =>
|
|
5705
|
+
return (e, r) => V(t)?.modal.value ? (I(), u(V(na), {
|
|
5706
5706
|
key: 0,
|
|
5707
|
-
present: e.forceMount ||
|
|
5708
|
-
"force-mount": e.forceMount || !
|
|
5707
|
+
present: e.forceMount || V(t).open.value,
|
|
5708
|
+
"force-mount": e.forceMount || !V(t).unmountOnHide.value
|
|
5709
5709
|
}, {
|
|
5710
|
-
default:
|
|
5711
|
-
ref:
|
|
5710
|
+
default: W(({ present: r }) => [ye(h(Ha, O(e.$attrs, {
|
|
5711
|
+
ref: V(n),
|
|
5712
5712
|
as: e.as,
|
|
5713
5713
|
"as-child": e.asChild,
|
|
5714
|
-
present:
|
|
5714
|
+
present: V(t).unmountOnHide.value || r
|
|
5715
5715
|
}), {
|
|
5716
|
-
default:
|
|
5716
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5717
5717
|
_: 2
|
|
5718
5718
|
}, 1040, [
|
|
5719
5719
|
"as",
|
|
5720
5720
|
"as-child",
|
|
5721
5721
|
"present"
|
|
5722
|
-
]), [[
|
|
5722
|
+
]), [[_e, V(t).unmountOnHide.value || r]])]),
|
|
5723
5723
|
_: 3
|
|
5724
5724
|
}, 8, ["present", "force-mount"])) : d("v-if", !0);
|
|
5725
5725
|
}
|
|
@@ -5745,12 +5745,12 @@ var La = /* @__PURE__ */ _({
|
|
|
5745
5745
|
},
|
|
5746
5746
|
setup(e) {
|
|
5747
5747
|
let t = e, n = gi({}), r = l(() => t.to ?? n.teleportTo?.value ?? "body"), i = li();
|
|
5748
|
-
return (e, t) =>
|
|
5748
|
+
return (e, t) => V(i) || e.forceMount ? (I(), u(o, {
|
|
5749
5749
|
key: 0,
|
|
5750
5750
|
to: r.value,
|
|
5751
5751
|
disabled: e.disabled,
|
|
5752
5752
|
defer: e.defer
|
|
5753
|
-
}, [
|
|
5753
|
+
}, [R(e.$slots, "default")], 8, [
|
|
5754
5754
|
"to",
|
|
5755
5755
|
"disabled",
|
|
5756
5756
|
"defer"
|
|
@@ -5760,11 +5760,11 @@ var La = /* @__PURE__ */ _({
|
|
|
5760
5760
|
function Ka(e = {}) {
|
|
5761
5761
|
let { key: t = "", isProvider: n = !1 } = e, r = `${t}CollectionProvider`, i;
|
|
5762
5762
|
if (n) {
|
|
5763
|
-
let e =
|
|
5763
|
+
let e = L(/* @__PURE__ */ new Map());
|
|
5764
5764
|
i = {
|
|
5765
|
-
collectionRef:
|
|
5765
|
+
collectionRef: L(),
|
|
5766
5766
|
itemMap: e
|
|
5767
|
-
},
|
|
5767
|
+
}, ie(r, i);
|
|
5768
5768
|
} else i = C(r);
|
|
5769
5769
|
let a = (e = !1) => {
|
|
5770
5770
|
let t = i.collectionRef.value;
|
|
@@ -5776,7 +5776,7 @@ function Ka(e = {}) {
|
|
|
5776
5776
|
inheritAttrs: !1,
|
|
5777
5777
|
setup(e, { slots: t, attrs: n }) {
|
|
5778
5778
|
let { primitiveElement: r, currentElement: a } = aa();
|
|
5779
|
-
return
|
|
5779
|
+
return H(a, () => {
|
|
5780
5780
|
i.collectionRef.value = a.value;
|
|
5781
5781
|
}), () => S(ra, {
|
|
5782
5782
|
ref: r,
|
|
@@ -5789,7 +5789,7 @@ function Ka(e = {}) {
|
|
|
5789
5789
|
props: { value: { validator: () => !0 } },
|
|
5790
5790
|
setup(e, { slots: t, attrs: n }) {
|
|
5791
5791
|
let { primitiveElement: r, currentElement: a } = aa();
|
|
5792
|
-
return
|
|
5792
|
+
return U((t) => {
|
|
5793
5793
|
if (a.value) {
|
|
5794
5794
|
let n = T(a.value);
|
|
5795
5795
|
i.itemMap.value.set(n, {
|
|
@@ -5833,7 +5833,7 @@ var qa = /* @__PURE__ */ _({
|
|
|
5833
5833
|
}
|
|
5834
5834
|
},
|
|
5835
5835
|
setup(e) {
|
|
5836
|
-
return (e, t) => (
|
|
5836
|
+
return (e, t) => (I(), u(V(X), {
|
|
5837
5837
|
as: e.as,
|
|
5838
5838
|
"as-child": e.asChild,
|
|
5839
5839
|
"aria-hidden": e.feature === "focusable" || e.feature === "fully-hidden" ? "true" : void 0,
|
|
@@ -5855,7 +5855,7 @@ var qa = /* @__PURE__ */ _({
|
|
|
5855
5855
|
left: "-1px"
|
|
5856
5856
|
}
|
|
5857
5857
|
}, {
|
|
5858
|
-
default:
|
|
5858
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5859
5859
|
_: 3
|
|
5860
5860
|
}, 8, [
|
|
5861
5861
|
"as",
|
|
@@ -5865,15 +5865,15 @@ var qa = /* @__PURE__ */ _({
|
|
|
5865
5865
|
"tabindex"
|
|
5866
5866
|
]));
|
|
5867
5867
|
}
|
|
5868
|
-
}), [Ja, Ya] = /*#__PURE__*/
|
|
5868
|
+
}), [Ja, Ya] = /*#__PURE__*/ kr("PopperRoot"), Xa = /* @__PURE__ */ _({
|
|
5869
5869
|
inheritAttrs: !1,
|
|
5870
5870
|
__name: "PopperRoot",
|
|
5871
5871
|
setup(e) {
|
|
5872
|
-
let t =
|
|
5872
|
+
let t = L();
|
|
5873
5873
|
return Ya({
|
|
5874
5874
|
anchor: t,
|
|
5875
5875
|
onAnchorChange: (e) => t.value = e
|
|
5876
|
-
}), (e, t) =>
|
|
5876
|
+
}), (e, t) => R(e.$slots, "default");
|
|
5877
5877
|
}
|
|
5878
5878
|
}), Za = /* @__PURE__ */ _({
|
|
5879
5879
|
__name: "PopperAnchor",
|
|
@@ -5893,14 +5893,14 @@ var qa = /* @__PURE__ */ _({
|
|
|
5893
5893
|
},
|
|
5894
5894
|
setup(e) {
|
|
5895
5895
|
let t = e, { forwardRef: n, currentElement: r } = Y(), i = Ja();
|
|
5896
|
-
return
|
|
5896
|
+
return ve(() => {
|
|
5897
5897
|
i.onAnchorChange(t.reference ?? r.value);
|
|
5898
|
-
}), (e, t) => (
|
|
5899
|
-
ref:
|
|
5898
|
+
}), (e, t) => (I(), u(V(X), {
|
|
5899
|
+
ref: V(n),
|
|
5900
5900
|
as: e.as,
|
|
5901
5901
|
"as-child": e.asChild
|
|
5902
5902
|
}, {
|
|
5903
|
-
default:
|
|
5903
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
5904
5904
|
_: 3
|
|
5905
5905
|
}, 8, ["as", "as-child"]));
|
|
5906
5906
|
}
|
|
@@ -5939,13 +5939,13 @@ var qa = /* @__PURE__ */ _({
|
|
|
5939
5939
|
},
|
|
5940
5940
|
setup(e) {
|
|
5941
5941
|
let t = e;
|
|
5942
|
-
return Y(), (e, n) => (
|
|
5942
|
+
return Y(), (e, n) => (I(), u(V(X), O(t, {
|
|
5943
5943
|
width: e.width,
|
|
5944
5944
|
height: e.height,
|
|
5945
5945
|
viewBox: e.asChild ? void 0 : "0 0 12 6",
|
|
5946
5946
|
preserveAspectRatio: e.asChild ? void 0 : "none"
|
|
5947
5947
|
}), {
|
|
5948
|
-
default:
|
|
5948
|
+
default: W(() => [R(e.$slots, "default", {}, () => [e.rounded ? (I(), f("path", $a)) : (I(), f("path", Qa))])]),
|
|
5949
5949
|
_: 3
|
|
5950
5950
|
}, 16, [
|
|
5951
5951
|
"width",
|
|
@@ -6839,7 +6839,7 @@ var qs = Wo, Js = Go, Ys = Ro, Xs = qo, Zs = Vo, Qs = Lo, $s = Ko, ec = (e, t, n
|
|
|
6839
6839
|
...i,
|
|
6840
6840
|
platform: a
|
|
6841
6841
|
});
|
|
6842
|
-
}, $ = /* @__PURE__ */
|
|
6842
|
+
}, $ = /* @__PURE__ */ ke({
|
|
6843
6843
|
Vue: () => r,
|
|
6844
6844
|
Vue2: () => void 0,
|
|
6845
6845
|
del: () => ic,
|
|
@@ -6849,7 +6849,7 @@ var qs = Wo, Js = Go, Ys = Ro, Xs = qo, Zs = Vo, Qs = Lo, $s = Ko, ec = (e, t, n
|
|
|
6849
6849
|
set: () => rc
|
|
6850
6850
|
});
|
|
6851
6851
|
import * as tc from "vue";
|
|
6852
|
-
|
|
6852
|
+
je($, tc);
|
|
6853
6853
|
function nc() {}
|
|
6854
6854
|
function rc(e, t, n) {
|
|
6855
6855
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
@@ -6978,7 +6978,7 @@ var fc = ["dir"], pc = {
|
|
|
6978
6978
|
positionStrategy: "fixed",
|
|
6979
6979
|
updatePositionStrategy: "optimized",
|
|
6980
6980
|
prioritizePosition: !1
|
|
6981
|
-
}, [mc, hc] = /*#__PURE__*/
|
|
6981
|
+
}, [mc, hc] = /*#__PURE__*/ kr("PopperContent"), gc = /* @__PURE__ */ _({
|
|
6982
6982
|
inheritAttrs: !1,
|
|
6983
6983
|
__name: "PopperContent",
|
|
6984
6984
|
props: /* @__PURE__ */ E({
|
|
@@ -7073,7 +7073,7 @@ var fc = ["dir"], pc = {
|
|
|
7073
7073
|
}, { ...pc }),
|
|
7074
7074
|
emits: ["placed"],
|
|
7075
7075
|
setup(e, { emit: t }) {
|
|
7076
|
-
let n = e, r = t, i = Ja(), { forwardRef: a, currentElement: o } = Y(), s = Ei(l(() => n.dir)), c =
|
|
7076
|
+
let n = e, r = t, i = Ja(), { forwardRef: a, currentElement: o } = Y(), s = Ei(l(() => n.dir)), c = L(), d = L(), { width: p, height: m } = Qi(d), h = l(() => n.side + (n.align === "center" ? "" : `-${n.align}`)), g = l(() => typeof n.collisionPadding == "number" ? n.collisionPadding : {
|
|
7077
7077
|
top: 0,
|
|
7078
7078
|
right: 0,
|
|
7079
7079
|
bottom: 0,
|
|
@@ -7134,14 +7134,14 @@ var fc = ["dir"], pc = {
|
|
|
7134
7134
|
}),
|
|
7135
7135
|
middleware: b
|
|
7136
7136
|
}), E = l(() => ro(S.value)[0]), D = l(() => ro(S.value)[1]);
|
|
7137
|
-
|
|
7137
|
+
ve(() => {
|
|
7138
7138
|
C.value && r("placed");
|
|
7139
7139
|
});
|
|
7140
7140
|
let k = l(() => {
|
|
7141
7141
|
let e = w.value.arrow?.centerOffset !== 0;
|
|
7142
7142
|
return n.hideShiftedArrow && e;
|
|
7143
|
-
}), A =
|
|
7144
|
-
return
|
|
7143
|
+
}), A = L("");
|
|
7144
|
+
return U(() => {
|
|
7145
7145
|
o.value && (A.value = window.getComputedStyle(o.value).zIndex);
|
|
7146
7146
|
}), hc({
|
|
7147
7147
|
placedSide: E,
|
|
@@ -7149,41 +7149,41 @@ var fc = ["dir"], pc = {
|
|
|
7149
7149
|
arrowX: l(() => w.value.arrow?.x ?? 0),
|
|
7150
7150
|
arrowY: l(() => w.value.arrow?.y ?? 0),
|
|
7151
7151
|
shouldHideArrow: k
|
|
7152
|
-
}), (e, t) => (
|
|
7152
|
+
}), (e, t) => (I(), f("div", {
|
|
7153
7153
|
ref_key: "floatingRef",
|
|
7154
7154
|
ref: c,
|
|
7155
7155
|
"data-reka-popper-content-wrapper": "",
|
|
7156
|
-
dir:
|
|
7156
|
+
dir: V(s),
|
|
7157
7157
|
style: M({
|
|
7158
|
-
...
|
|
7159
|
-
transform:
|
|
7158
|
+
...V(x),
|
|
7159
|
+
transform: V(C) ? V(x).transform : "translate(0, -200%)",
|
|
7160
7160
|
minWidth: "max-content",
|
|
7161
7161
|
zIndex: A.value,
|
|
7162
|
-
"--reka-popper-transform-origin": [
|
|
7163
|
-
...
|
|
7162
|
+
"--reka-popper-transform-origin": [V(w).transformOrigin?.x, V(w).transformOrigin?.y].join(" "),
|
|
7163
|
+
...V(w).hide?.referenceHidden && {
|
|
7164
7164
|
visibility: "hidden",
|
|
7165
7165
|
pointerEvents: "none"
|
|
7166
7166
|
}
|
|
7167
7167
|
})
|
|
7168
|
-
}, [n.memoDependencies ?
|
|
7168
|
+
}, [n.memoDependencies ? be([
|
|
7169
7169
|
n.asChild,
|
|
7170
7170
|
n.as,
|
|
7171
7171
|
E.value,
|
|
7172
7172
|
D.value,
|
|
7173
|
-
|
|
7173
|
+
V(C),
|
|
7174
7174
|
...Object.values(e.$attrs),
|
|
7175
7175
|
...n.memoDependencies
|
|
7176
|
-
], () => (
|
|
7176
|
+
], () => (I(), u(V(X), O({
|
|
7177
7177
|
key: 0,
|
|
7178
|
-
ref:
|
|
7178
|
+
ref: V(a)
|
|
7179
7179
|
}, e.$attrs, {
|
|
7180
7180
|
"as-child": n.asChild,
|
|
7181
7181
|
as: n.as,
|
|
7182
7182
|
"data-side": E.value,
|
|
7183
7183
|
"data-align": D.value,
|
|
7184
|
-
style: { animation:
|
|
7184
|
+
style: { animation: V(C) ? void 0 : "none" }
|
|
7185
7185
|
}), {
|
|
7186
|
-
default:
|
|
7186
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7187
7187
|
_: 3
|
|
7188
7188
|
}, 16, [
|
|
7189
7189
|
"as-child",
|
|
@@ -7191,18 +7191,18 @@ var fc = ["dir"], pc = {
|
|
|
7191
7191
|
"data-side",
|
|
7192
7192
|
"data-align",
|
|
7193
7193
|
"style"
|
|
7194
|
-
])), t, 0) : (
|
|
7194
|
+
])), t, 0) : (I(), u(V(X), O({
|
|
7195
7195
|
key: 1,
|
|
7196
|
-
ref:
|
|
7196
|
+
ref: V(a)
|
|
7197
7197
|
}, e.$attrs, {
|
|
7198
7198
|
"as-child": n.asChild,
|
|
7199
7199
|
as: n.as,
|
|
7200
7200
|
"data-side": E.value,
|
|
7201
7201
|
"data-align": D.value,
|
|
7202
|
-
dir:
|
|
7203
|
-
style: { animation:
|
|
7202
|
+
dir: V(s),
|
|
7203
|
+
style: { animation: V(C) ? void 0 : "none" }
|
|
7204
7204
|
}), {
|
|
7205
|
-
default:
|
|
7205
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7206
7206
|
_: 3
|
|
7207
7207
|
}, 16, [
|
|
7208
7208
|
"as-child",
|
|
@@ -7246,31 +7246,31 @@ var fc = ["dir"], pc = {
|
|
|
7246
7246
|
},
|
|
7247
7247
|
setup(e) {
|
|
7248
7248
|
let { forwardRef: t } = Y(), n = mc(), r = l(() => _c[n.placedSide.value]);
|
|
7249
|
-
return (e, i) => (
|
|
7249
|
+
return (e, i) => (I(), f("span", {
|
|
7250
7250
|
ref: (e) => {
|
|
7251
|
-
|
|
7251
|
+
V(n).onArrowChange(e ?? void 0);
|
|
7252
7252
|
},
|
|
7253
7253
|
style: M({
|
|
7254
7254
|
position: "absolute",
|
|
7255
|
-
left:
|
|
7256
|
-
top:
|
|
7255
|
+
left: V(n).arrowX?.value ? `${V(n).arrowX?.value}px` : void 0,
|
|
7256
|
+
top: V(n).arrowY?.value ? `${V(n).arrowY?.value}px` : void 0,
|
|
7257
7257
|
[r.value]: 0,
|
|
7258
7258
|
transformOrigin: {
|
|
7259
7259
|
top: "",
|
|
7260
7260
|
right: "0 0",
|
|
7261
7261
|
bottom: "center 0",
|
|
7262
7262
|
left: "100% 0"
|
|
7263
|
-
}[
|
|
7263
|
+
}[V(n).placedSide.value],
|
|
7264
7264
|
transform: {
|
|
7265
7265
|
top: "translateY(100%)",
|
|
7266
7266
|
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
7267
7267
|
bottom: "rotate(180deg)",
|
|
7268
7268
|
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
7269
|
-
}[
|
|
7270
|
-
visibility:
|
|
7269
|
+
}[V(n).placedSide.value],
|
|
7270
|
+
visibility: V(n).shouldHideArrow.value ? "hidden" : void 0
|
|
7271
7271
|
})
|
|
7272
7272
|
}, [h(eo, O(e.$attrs, {
|
|
7273
|
-
ref:
|
|
7273
|
+
ref: V(t),
|
|
7274
7274
|
style: { display: "block" },
|
|
7275
7275
|
as: e.as,
|
|
7276
7276
|
"as-child": e.asChild,
|
|
@@ -7278,7 +7278,7 @@ var fc = ["dir"], pc = {
|
|
|
7278
7278
|
width: e.width,
|
|
7279
7279
|
height: e.height
|
|
7280
7280
|
}), {
|
|
7281
|
-
default:
|
|
7281
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7282
7282
|
_: 3
|
|
7283
7283
|
}, 16, [
|
|
7284
7284
|
"as",
|
|
@@ -7288,7 +7288,7 @@ var fc = ["dir"], pc = {
|
|
|
7288
7288
|
"height"
|
|
7289
7289
|
])], 4));
|
|
7290
7290
|
}
|
|
7291
|
-
}), [yc, bc] = /*#__PURE__*/
|
|
7291
|
+
}), [yc, bc] = /*#__PURE__*/ kr("PopoverRoot"), xc = /* @__PURE__ */ _({
|
|
7292
7292
|
__name: "PopoverRoot",
|
|
7293
7293
|
props: {
|
|
7294
7294
|
defaultOpen: {
|
|
@@ -7309,7 +7309,7 @@ var fc = ["dir"], pc = {
|
|
|
7309
7309
|
},
|
|
7310
7310
|
emits: ["update:open"],
|
|
7311
7311
|
setup(e, { emit: t }) {
|
|
7312
|
-
let n = e, r = t, { modal: i } =
|
|
7312
|
+
let n = e, r = t, { modal: i } = me(n), a = mi(n, "open", r, {
|
|
7313
7313
|
defaultValue: n.defaultOpen,
|
|
7314
7314
|
passive: n.open === void 0
|
|
7315
7315
|
});
|
|
@@ -7324,11 +7324,11 @@ var fc = ["dir"], pc = {
|
|
|
7324
7324
|
onOpenToggle: () => {
|
|
7325
7325
|
a.value = !a.value;
|
|
7326
7326
|
},
|
|
7327
|
-
triggerElement:
|
|
7328
|
-
hasCustomAnchor:
|
|
7329
|
-
}), (e, t) => (
|
|
7330
|
-
default:
|
|
7331
|
-
open:
|
|
7327
|
+
triggerElement: L(),
|
|
7328
|
+
hasCustomAnchor: L(!1)
|
|
7329
|
+
}), (e, t) => (I(), u(V(Xa), null, {
|
|
7330
|
+
default: W(() => [R(e.$slots, "default", {
|
|
7331
|
+
open: V(a),
|
|
7332
7332
|
close: () => a.value = !1
|
|
7333
7333
|
})]),
|
|
7334
7334
|
_: 3
|
|
@@ -7356,10 +7356,10 @@ var fc = ["dir"], pc = {
|
|
|
7356
7356
|
let n = yc();
|
|
7357
7357
|
return N(() => {
|
|
7358
7358
|
n.hasCustomAnchor.value = !0;
|
|
7359
|
-
}),
|
|
7359
|
+
}), ne(() => {
|
|
7360
7360
|
n.hasCustomAnchor.value = !1;
|
|
7361
|
-
}), (e, n) => (
|
|
7362
|
-
default:
|
|
7361
|
+
}), (e, n) => (I(), u(V(Za), j(x(t)), {
|
|
7362
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7363
7363
|
_: 3
|
|
7364
7364
|
}, 16));
|
|
7365
7365
|
}
|
|
@@ -7473,27 +7473,27 @@ var fc = ["dir"], pc = {
|
|
|
7473
7473
|
],
|
|
7474
7474
|
setup(e, { emit: t }) {
|
|
7475
7475
|
let n = e, r = t, i = ji(Zr(n, "trapFocus", "disableOutsidePointerEvents")), { forwardRef: a } = Y(), o = yc();
|
|
7476
|
-
return ki(), (e, t) => (
|
|
7476
|
+
return ki(), (e, t) => (I(), u(V(ka), {
|
|
7477
7477
|
"as-child": "",
|
|
7478
7478
|
loop: "",
|
|
7479
7479
|
trapped: e.trapFocus,
|
|
7480
7480
|
onMountAutoFocus: t[5] ||= (e) => r("openAutoFocus", e),
|
|
7481
7481
|
onUnmountAutoFocus: t[6] ||= (e) => r("closeAutoFocus", e)
|
|
7482
7482
|
}, {
|
|
7483
|
-
default:
|
|
7483
|
+
default: W(() => [h(V(ma), {
|
|
7484
7484
|
"as-child": "",
|
|
7485
7485
|
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
7486
7486
|
onPointerDownOutside: t[0] ||= (e) => r("pointerDownOutside", e),
|
|
7487
7487
|
onInteractOutside: t[1] ||= (e) => r("interactOutside", e),
|
|
7488
7488
|
onEscapeKeyDown: t[2] ||= (e) => r("escapeKeyDown", e),
|
|
7489
7489
|
onFocusOutside: t[3] ||= (e) => r("focusOutside", e),
|
|
7490
|
-
onDismiss: t[4] ||= (e) =>
|
|
7490
|
+
onDismiss: t[4] ||= (e) => V(o).onOpenChange(!1)
|
|
7491
7491
|
}, {
|
|
7492
|
-
default:
|
|
7493
|
-
id:
|
|
7494
|
-
ref:
|
|
7495
|
-
"data-state":
|
|
7496
|
-
"aria-labelledby":
|
|
7492
|
+
default: W(() => [h(V(gc), O(V(i), {
|
|
7493
|
+
id: V(o).contentId,
|
|
7494
|
+
ref: V(a),
|
|
7495
|
+
"data-state": V(o).open.value ? "open" : "closed",
|
|
7496
|
+
"aria-labelledby": V(o).triggerId,
|
|
7497
7497
|
style: {
|
|
7498
7498
|
"--reka-popover-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
7499
7499
|
"--reka-popover-content-available-width": "var(--reka-popper-available-width)",
|
|
@@ -7503,7 +7503,7 @@ var fc = ["dir"], pc = {
|
|
|
7503
7503
|
},
|
|
7504
7504
|
role: "dialog"
|
|
7505
7505
|
}), {
|
|
7506
|
-
default:
|
|
7506
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7507
7507
|
_: 3
|
|
7508
7508
|
}, 16, [
|
|
7509
7509
|
"id",
|
|
@@ -7620,24 +7620,24 @@ var fc = ["dir"], pc = {
|
|
|
7620
7620
|
"closeAutoFocus"
|
|
7621
7621
|
],
|
|
7622
7622
|
setup(e, { emit: t }) {
|
|
7623
|
-
let n = e, r = t, i = yc(), a =
|
|
7623
|
+
let n = e, r = t, i = yc(), a = L(!1);
|
|
7624
7624
|
Ci(!0);
|
|
7625
7625
|
let o = Mi(n, r), { forwardRef: s, currentElement: c } = Y();
|
|
7626
|
-
return Yi(c), (e, t) => (
|
|
7627
|
-
ref:
|
|
7628
|
-
"trap-focus":
|
|
7626
|
+
return Yi(c), (e, t) => (I(), u(Cc, O(V(o), {
|
|
7627
|
+
ref: V(s),
|
|
7628
|
+
"trap-focus": V(i).open.value,
|
|
7629
7629
|
"disable-outside-pointer-events": "",
|
|
7630
|
-
onCloseAutoFocus: t[0] ||=
|
|
7631
|
-
r("closeAutoFocus", e), a.value ||
|
|
7630
|
+
onCloseAutoFocus: t[0] ||= xe((e) => {
|
|
7631
|
+
r("closeAutoFocus", e), a.value || V(i).triggerElement.value?.focus();
|
|
7632
7632
|
}, ["prevent"]),
|
|
7633
7633
|
onPointerDownOutside: t[1] ||= (e) => {
|
|
7634
7634
|
r("pointerDownOutside", e);
|
|
7635
7635
|
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, i = t.button === 2 || n;
|
|
7636
7636
|
a.value = i;
|
|
7637
7637
|
},
|
|
7638
|
-
onFocusOutside: t[2] ||=
|
|
7638
|
+
onFocusOutside: t[2] ||= xe(() => {}, ["prevent"])
|
|
7639
7639
|
}), {
|
|
7640
|
-
default:
|
|
7640
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7641
7641
|
_: 3
|
|
7642
7642
|
}, 16, ["trap-focus"]));
|
|
7643
7643
|
}
|
|
@@ -7746,20 +7746,20 @@ var fc = ["dir"], pc = {
|
|
|
7746
7746
|
"closeAutoFocus"
|
|
7747
7747
|
],
|
|
7748
7748
|
setup(e, { emit: t }) {
|
|
7749
|
-
let n = e, r = t, i = yc(), a =
|
|
7750
|
-
return (e, t) => (
|
|
7749
|
+
let n = e, r = t, i = yc(), a = L(!1), o = L(!1), s = Mi(n, r);
|
|
7750
|
+
return (e, t) => (I(), u(Cc, O(V(s), {
|
|
7751
7751
|
"trap-focus": !1,
|
|
7752
7752
|
"disable-outside-pointer-events": !1,
|
|
7753
7753
|
onCloseAutoFocus: t[0] ||= (e) => {
|
|
7754
|
-
r("closeAutoFocus", e), e.defaultPrevented || (a.value ||
|
|
7754
|
+
r("closeAutoFocus", e), e.defaultPrevented || (a.value || V(i).triggerElement.value?.focus(), e.preventDefault()), a.value = !1, o.value = !1;
|
|
7755
7755
|
},
|
|
7756
7756
|
onInteractOutside: t[1] ||= async (e) => {
|
|
7757
7757
|
r("interactOutside", e), e.defaultPrevented || (a.value = !0, e.detail.originalEvent.type === "pointerdown" && (o.value = !0));
|
|
7758
7758
|
let t = e.target;
|
|
7759
|
-
|
|
7759
|
+
V(i).triggerElement.value?.contains(t) && e.preventDefault(), e.detail.originalEvent.type === "focusin" && o.value && e.preventDefault();
|
|
7760
7760
|
}
|
|
7761
7761
|
}), {
|
|
7762
|
-
default:
|
|
7762
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7763
7763
|
_: 3
|
|
7764
7764
|
}, 16));
|
|
7765
7765
|
}
|
|
@@ -7873,12 +7873,12 @@ var fc = ["dir"], pc = {
|
|
|
7873
7873
|
],
|
|
7874
7874
|
setup(e, { emit: t }) {
|
|
7875
7875
|
let n = e, r = t, i = yc(), a = Mi(n, r), { forwardRef: o } = Y();
|
|
7876
|
-
return i.contentId ||= Zi(void 0, "reka-popover-content"), (e, t) => (
|
|
7877
|
-
default:
|
|
7878
|
-
default:
|
|
7876
|
+
return i.contentId ||= Zi(void 0, "reka-popover-content"), (e, t) => (I(), u(V(na), { present: e.forceMount || V(i).open.value }, {
|
|
7877
|
+
default: W(() => [V(i).modal.value ? (I(), u(wc, O({ key: 0 }, V(a), { ref: V(o) }), {
|
|
7878
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7879
7879
|
_: 3
|
|
7880
|
-
}, 16)) : (
|
|
7881
|
-
default:
|
|
7880
|
+
}, 16)) : (I(), u(Tc, O({ key: 1 }, V(a), { ref: V(o) }), {
|
|
7881
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7882
7882
|
_: 3
|
|
7883
7883
|
}, 16))]),
|
|
7884
7884
|
_: 3
|
|
@@ -7906,8 +7906,8 @@ var fc = ["dir"], pc = {
|
|
|
7906
7906
|
},
|
|
7907
7907
|
setup(e) {
|
|
7908
7908
|
let t = e;
|
|
7909
|
-
return (e, n) => (
|
|
7910
|
-
default:
|
|
7909
|
+
return (e, n) => (I(), u(V(Wa), j(x(t)), {
|
|
7910
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7911
7911
|
_: 3
|
|
7912
7912
|
}, 16));
|
|
7913
7913
|
}
|
|
@@ -7926,22 +7926,22 @@ var fc = ["dir"], pc = {
|
|
|
7926
7926
|
},
|
|
7927
7927
|
setup(e) {
|
|
7928
7928
|
let t = e, n = yc(), { forwardRef: r, currentElement: i } = Y();
|
|
7929
|
-
return n.triggerId ||= Zi(void 0, "reka-popover-trigger"),
|
|
7929
|
+
return n.triggerId ||= Zi(void 0, "reka-popover-trigger"), F(() => {
|
|
7930
7930
|
n.triggerElement.value = i.value;
|
|
7931
|
-
}), (e, i) => (
|
|
7932
|
-
default:
|
|
7933
|
-
id:
|
|
7934
|
-
ref:
|
|
7931
|
+
}), (e, i) => (I(), u(le(V(n).hasCustomAnchor.value ? V(X) : V(Za)), { "as-child": "" }, {
|
|
7932
|
+
default: W(() => [h(V(X), {
|
|
7933
|
+
id: V(n).triggerId,
|
|
7934
|
+
ref: V(r),
|
|
7935
7935
|
type: e.as === "button" ? "button" : void 0,
|
|
7936
7936
|
"aria-haspopup": "dialog",
|
|
7937
|
-
"aria-expanded":
|
|
7938
|
-
"aria-controls":
|
|
7939
|
-
"data-state":
|
|
7937
|
+
"aria-expanded": V(n).open.value,
|
|
7938
|
+
"aria-controls": V(n).contentId,
|
|
7939
|
+
"data-state": V(n).open.value ? "open" : "closed",
|
|
7940
7940
|
as: e.as,
|
|
7941
7941
|
"as-child": t.asChild,
|
|
7942
|
-
onClick:
|
|
7942
|
+
onClick: V(n).onOpenToggle
|
|
7943
7943
|
}, {
|
|
7944
|
-
default:
|
|
7944
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7945
7945
|
_: 3
|
|
7946
7946
|
}, 8, [
|
|
7947
7947
|
"id",
|
|
@@ -7985,12 +7985,12 @@ var fc = ["dir"], pc = {
|
|
|
7985
7985
|
},
|
|
7986
7986
|
setup(e) {
|
|
7987
7987
|
let t = e;
|
|
7988
|
-
return Y(), (e, n) => (
|
|
7989
|
-
default:
|
|
7988
|
+
return Y(), (e, n) => (I(), u(V(vc), j(x(t)), {
|
|
7989
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
7990
7990
|
_: 3
|
|
7991
7991
|
}, 16));
|
|
7992
7992
|
}
|
|
7993
|
-
}), [Ac, jc] = /*#__PURE__*/
|
|
7993
|
+
}), [Ac, jc] = /*#__PURE__*/ kr("HoverCardRoot"), Mc = /* @__PURE__ */ _({
|
|
7994
7994
|
__name: "HoverCardRoot",
|
|
7995
7995
|
props: {
|
|
7996
7996
|
defaultOpen: {
|
|
@@ -8021,12 +8021,12 @@ var fc = ["dir"], pc = {
|
|
|
8021
8021
|
},
|
|
8022
8022
|
emits: ["update:open"],
|
|
8023
8023
|
setup(e, { emit: t }) {
|
|
8024
|
-
let n = e, r = t, { openDelay: i, closeDelay: a, enableTouch: o } =
|
|
8024
|
+
let n = e, r = t, { openDelay: i, closeDelay: a, enableTouch: o } = me(n);
|
|
8025
8025
|
Y();
|
|
8026
8026
|
let s = mi(n, "open", r, {
|
|
8027
8027
|
defaultValue: n.defaultOpen,
|
|
8028
8028
|
passive: n.open === void 0
|
|
8029
|
-
}), c =
|
|
8029
|
+
}), c = L(0), l = L(0), d = L(!1), f = L(!1), p = L(!1), m = L();
|
|
8030
8030
|
function h() {
|
|
8031
8031
|
clearTimeout(l.value), c.value = window.setTimeout(() => s.value = !0, i.value);
|
|
8032
8032
|
}
|
|
@@ -8049,8 +8049,8 @@ var fc = ["dir"], pc = {
|
|
|
8049
8049
|
isPointerInTransitRef: p,
|
|
8050
8050
|
triggerElement: m,
|
|
8051
8051
|
enableTouch: o
|
|
8052
|
-
}), (e, t) => (
|
|
8053
|
-
default:
|
|
8052
|
+
}), (e, t) => (I(), u(V(Xa), null, {
|
|
8053
|
+
default: W(() => [R(e.$slots, "default", { open: V(s) })]),
|
|
8054
8054
|
_: 3
|
|
8055
8055
|
}));
|
|
8056
8056
|
}
|
|
@@ -8170,8 +8170,8 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8170
8170
|
ti(s.isPointerInTransitRef, c, { direction: "rtl" }), l(() => {
|
|
8171
8171
|
s.onClose();
|
|
8172
8172
|
});
|
|
8173
|
-
let d =
|
|
8174
|
-
|
|
8173
|
+
let d = L(!1), f;
|
|
8174
|
+
U((e) => {
|
|
8175
8175
|
if (d.value) {
|
|
8176
8176
|
let t = document.body;
|
|
8177
8177
|
f = t.style.userSelect || t.style.webkitUserSelect, t.style.userSelect = "none", t.style.webkitUserSelect = "none", e(() => {
|
|
@@ -8184,26 +8184,26 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8184
8184
|
document.getSelection()?.toString() !== "" && (s.hasSelectionRef.value = !0);
|
|
8185
8185
|
});
|
|
8186
8186
|
}
|
|
8187
|
-
return
|
|
8187
|
+
return F(() => {
|
|
8188
8188
|
o.value && (document.addEventListener("pointerup", p), Pc(o.value).forEach((e) => e.setAttribute("tabindex", "-1"))), ci(window, "scroll", (e) => {
|
|
8189
8189
|
e.target?.contains(s.triggerElement.value) && s.onDismiss();
|
|
8190
8190
|
}, { capture: !0 });
|
|
8191
|
-
}),
|
|
8191
|
+
}), ne(() => {
|
|
8192
8192
|
document.removeEventListener("pointerup", p), s.hasSelectionRef.value = !1, s.isPointerDownOnContentRef.value = !1;
|
|
8193
|
-
}), (e, t) => (
|
|
8193
|
+
}), (e, t) => (I(), u(V(ma), {
|
|
8194
8194
|
"as-child": "",
|
|
8195
8195
|
"disable-outside-pointer-events": !1,
|
|
8196
8196
|
onEscapeKeyDown: t[1] ||= (e) => r("escapeKeyDown", e),
|
|
8197
8197
|
onPointerDownOutside: t[2] ||= (e) => r("pointerDownOutside", e),
|
|
8198
|
-
onFocusOutside: t[3] ||=
|
|
8199
|
-
onDismiss:
|
|
8198
|
+
onFocusOutside: t[3] ||= xe((e) => r("focusOutside", e), ["prevent"]),
|
|
8199
|
+
onDismiss: V(s).onDismiss
|
|
8200
8200
|
}, {
|
|
8201
|
-
default:
|
|
8202
|
-
...
|
|
8201
|
+
default: W(() => [h(V(gc), O({
|
|
8202
|
+
...V(i),
|
|
8203
8203
|
...e.$attrs
|
|
8204
8204
|
}, {
|
|
8205
|
-
ref:
|
|
8206
|
-
"data-state":
|
|
8205
|
+
ref: V(a),
|
|
8206
|
+
"data-state": V(s).open.value ? "open" : "closed",
|
|
8207
8207
|
style: {
|
|
8208
8208
|
userSelect: d.value ? "text" : void 0,
|
|
8209
8209
|
WebkitUserSelect: d.value ? "text" : void 0,
|
|
@@ -8214,10 +8214,10 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8214
8214
|
"--reka-hover-card-trigger-height": "var(--reka-popper-anchor-height)"
|
|
8215
8215
|
},
|
|
8216
8216
|
onPointerdown: t[0] ||= (e) => {
|
|
8217
|
-
e.currentTarget.contains(e.target) && (d.value = !0),
|
|
8217
|
+
e.currentTarget.contains(e.target) && (d.value = !0), V(s).hasSelectionRef.value = !1, V(s).isPointerDownOnContentRef.value = !0;
|
|
8218
8218
|
}
|
|
8219
8219
|
}), {
|
|
8220
|
-
default:
|
|
8220
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8221
8221
|
_: 3
|
|
8222
8222
|
}, 16, ["data-state", "style"])]),
|
|
8223
8223
|
_: 3
|
|
@@ -8327,12 +8327,12 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8327
8327
|
],
|
|
8328
8328
|
setup(e, { emit: t }) {
|
|
8329
8329
|
let n = Mi(e, t), { forwardRef: r } = Y(), i = Ac();
|
|
8330
|
-
return (e, t) => (
|
|
8331
|
-
default:
|
|
8332
|
-
ref:
|
|
8333
|
-
onPointerenter: t[0] ||= (e) =>
|
|
8330
|
+
return (e, t) => (I(), u(V(na), { present: e.forceMount || V(i).open.value }, {
|
|
8331
|
+
default: W(() => [h(Fc, O(V(n), {
|
|
8332
|
+
ref: V(r),
|
|
8333
|
+
onPointerenter: t[0] ||= (e) => V(Nc)(V(i).onOpen)(e)
|
|
8334
8334
|
}), {
|
|
8335
|
-
default:
|
|
8335
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8336
8336
|
_: 3
|
|
8337
8337
|
}, 16)]),
|
|
8338
8338
|
_: 3
|
|
@@ -8360,8 +8360,8 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8360
8360
|
},
|
|
8361
8361
|
setup(e) {
|
|
8362
8362
|
let t = e;
|
|
8363
|
-
return (e, n) => (
|
|
8364
|
-
default:
|
|
8363
|
+
return (e, n) => (I(), u(V(Wa), j(x(t)), {
|
|
8364
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8365
8365
|
_: 3
|
|
8366
8366
|
}, 16));
|
|
8367
8367
|
}
|
|
@@ -8393,23 +8393,23 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8393
8393
|
function a(e) {
|
|
8394
8394
|
!r.enableTouch.value || e.pointerType !== "touch" || (r.open.value ? r.onDismiss() : r.onOpenChange(!0));
|
|
8395
8395
|
}
|
|
8396
|
-
return (e, n) => (
|
|
8396
|
+
return (e, n) => (I(), u(V(Za), {
|
|
8397
8397
|
"as-child": "",
|
|
8398
8398
|
reference: e.reference
|
|
8399
8399
|
}, {
|
|
8400
|
-
default:
|
|
8401
|
-
ref:
|
|
8400
|
+
default: W(() => [h(V(X), {
|
|
8401
|
+
ref: V(t),
|
|
8402
8402
|
"as-child": e.asChild,
|
|
8403
8403
|
as: e.as,
|
|
8404
|
-
"data-state":
|
|
8404
|
+
"data-state": V(r).open.value ? "open" : "closed",
|
|
8405
8405
|
"data-grace-area-trigger": "",
|
|
8406
|
-
onPointerenter: n[0] ||= (e) =>
|
|
8407
|
-
onPointerleave: n[1] ||= (e) =>
|
|
8406
|
+
onPointerenter: n[0] ||= (e) => V(Nc)(V(r).onOpen)(e),
|
|
8407
|
+
onPointerleave: n[1] ||= (e) => V(Nc)(i)(e),
|
|
8408
8408
|
onPointerup: a,
|
|
8409
|
-
onFocus: n[2] ||= (e) =>
|
|
8410
|
-
onBlur: n[3] ||= (e) =>
|
|
8409
|
+
onFocus: n[2] ||= (e) => V(r).onOpen(),
|
|
8410
|
+
onBlur: n[3] ||= (e) => V(r).onClose()
|
|
8411
8411
|
}, {
|
|
8412
|
-
default:
|
|
8412
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8413
8413
|
_: 3
|
|
8414
8414
|
}, 8, [
|
|
8415
8415
|
"as-child",
|
|
@@ -8419,7 +8419,7 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8419
8419
|
_: 3
|
|
8420
8420
|
}, 8, ["reference"]));
|
|
8421
8421
|
}
|
|
8422
|
-
}), [zc, Bc] = /*#__PURE__*/
|
|
8422
|
+
}), [zc, Bc] = /*#__PURE__*/ kr("ToastProvider"), Vc = /* @__PURE__ */ _({
|
|
8423
8423
|
inheritAttrs: !1,
|
|
8424
8424
|
__name: "ToastProvider",
|
|
8425
8425
|
props: {
|
|
@@ -8449,9 +8449,9 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8449
8449
|
}
|
|
8450
8450
|
},
|
|
8451
8451
|
setup(e) {
|
|
8452
|
-
let t = e, { label: n, duration: r, disableSwipe: i, swipeDirection: a, swipeThreshold: o } =
|
|
8452
|
+
let t = e, { label: n, duration: r, disableSwipe: i, swipeDirection: a, swipeThreshold: o } = me(t);
|
|
8453
8453
|
Ka({ isProvider: !0 });
|
|
8454
|
-
let s =
|
|
8454
|
+
let s = L(), c = L(0), l = L(!1), u = L(!1);
|
|
8455
8455
|
if (t.label && typeof t.label == "string" && !t.label.trim()) throw Error("Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.");
|
|
8456
8456
|
return Bc({
|
|
8457
8457
|
label: n,
|
|
@@ -8472,23 +8472,23 @@ var Fc = /* @__PURE__ */ _({
|
|
|
8472
8472
|
},
|
|
8473
8473
|
isFocusedToastEscapeKeyDownRef: l,
|
|
8474
8474
|
isClosePausedRef: u
|
|
8475
|
-
}), (e, t) =>
|
|
8475
|
+
}), (e, t) => R(e.$slots, "default");
|
|
8476
8476
|
}
|
|
8477
8477
|
}), Hc = /* @__PURE__ */ _({
|
|
8478
8478
|
__name: "ToastAnnounce",
|
|
8479
8479
|
setup(e) {
|
|
8480
|
-
let t = zc(), n = ii(1e3), r =
|
|
8480
|
+
let t = zc(), n = ii(1e3), r = L(!1), i = 0, a = 0;
|
|
8481
8481
|
return J && (i = requestAnimationFrame(() => {
|
|
8482
8482
|
a = requestAnimationFrame(() => {
|
|
8483
8483
|
r.value = !0;
|
|
8484
8484
|
});
|
|
8485
|
-
}),
|
|
8485
|
+
}), te(() => {
|
|
8486
8486
|
cancelAnimationFrame(i), cancelAnimationFrame(a);
|
|
8487
|
-
})), (e, i) =>
|
|
8487
|
+
})), (e, i) => V(n) || r.value ? (I(), u(V(qa), {
|
|
8488
8488
|
key: 0,
|
|
8489
8489
|
feature: "fully-hidden"
|
|
8490
8490
|
}, {
|
|
8491
|
-
default:
|
|
8491
|
+
default: W(() => [m(z(V(t).label.value) + " ", 1), R(e.$slots, "default")]),
|
|
8492
8492
|
_: 3
|
|
8493
8493
|
})) : d("v-if", !0);
|
|
8494
8494
|
}
|
|
@@ -8522,7 +8522,7 @@ function Jc(e) {
|
|
|
8522
8522
|
}
|
|
8523
8523
|
//#endregion
|
|
8524
8524
|
//#region node_modules/reka-ui/dist/Toast/ToastRootImpl.js
|
|
8525
|
-
var [Yc, Xc] = /*#__PURE__*/
|
|
8525
|
+
var [Yc, Xc] = /*#__PURE__*/ kr("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
8526
8526
|
inheritAttrs: !1,
|
|
8527
8527
|
__name: "ToastRootImpl",
|
|
8528
8528
|
props: {
|
|
@@ -8560,7 +8560,7 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8560
8560
|
"swipeEnd"
|
|
8561
8561
|
],
|
|
8562
8562
|
setup(e, { emit: t }) {
|
|
8563
|
-
let n = e, r = t, { forwardRef: i, currentElement: s } = Y(), { CollectionItem: c } = Ka(), p = zc(), g =
|
|
8563
|
+
let n = e, r = t, { forwardRef: i, currentElement: s } = Y(), { CollectionItem: c } = Ka(), p = zc(), g = L(null), _ = L(null), v = l(() => typeof n.duration == "number" ? n.duration : p.duration.value), y = L(0), b = L(v.value), x = L(0), S = L(v.value), C = fi(() => {
|
|
8564
8564
|
let e = Date.now() - y.value;
|
|
8565
8565
|
S.value = Math.max(b.value - e, 0);
|
|
8566
8566
|
}, { fpsLimit: 60 });
|
|
@@ -8569,11 +8569,11 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8569
8569
|
}
|
|
8570
8570
|
function T(e) {
|
|
8571
8571
|
let t = e?.pointerType === "";
|
|
8572
|
-
s.value?.contains(
|
|
8572
|
+
s.value?.contains(Ar()) && t && p.viewport.value?.focus(), t && (p.isClosePausedRef.value = !1), r("close");
|
|
8573
8573
|
}
|
|
8574
8574
|
let E = l(() => s.value ? Jc(s.value) : null);
|
|
8575
8575
|
if (n.type && !["foreground", "background"].includes(n.type)) throw Error("Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.");
|
|
8576
|
-
return
|
|
8576
|
+
return U((e) => {
|
|
8577
8577
|
let t = p.viewport.value;
|
|
8578
8578
|
if (t) {
|
|
8579
8579
|
let e = () => {
|
|
@@ -8586,67 +8586,67 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8586
8586
|
t.removeEventListener(Uc, n), t.removeEventListener(Wc, e);
|
|
8587
8587
|
};
|
|
8588
8588
|
}
|
|
8589
|
-
}),
|
|
8589
|
+
}), H(() => [n.open, v.value], () => {
|
|
8590
8590
|
b.value = v.value, n.open && !p.isClosePausedRef.value && w(v.value);
|
|
8591
8591
|
}, { immediate: !0 }), di("Escape", (e) => {
|
|
8592
8592
|
r("escapeKeyDown", e), e.defaultPrevented || (p.isFocusedToastEscapeKeyDownRef.value = !0, T());
|
|
8593
|
-
}),
|
|
8593
|
+
}), F(() => {
|
|
8594
8594
|
p.onToastAdd();
|
|
8595
|
-
}),
|
|
8595
|
+
}), ne(() => {
|
|
8596
8596
|
p.onToastRemove();
|
|
8597
|
-
}), Xc({ onClose: T }), (e, t) => (
|
|
8597
|
+
}), Xc({ onClose: T }), (e, t) => (I(), f(a, null, [E.value ? (I(), u(Hc, {
|
|
8598
8598
|
key: 0,
|
|
8599
8599
|
role: "alert",
|
|
8600
8600
|
"aria-live": e.type === "foreground" ? "assertive" : "polite"
|
|
8601
8601
|
}, {
|
|
8602
|
-
default:
|
|
8602
|
+
default: W(() => [d("\n Render each chunk as its own text node so screen readers get the\n natural pause break between nodes (see comment in utils.ts).\n Interpolating the array directly with `{{ announceTextContent }}`\n would route through Vue's `toDisplayString`, which JSON-stringifies\n arrays — the live region would then announce literal `[`, quotes\n and commas instead of the toast title and description.\n "), (I(!0), f(a, null, ce(E.value, (e, t) => (I(), f(a, { key: t }, [m(z(e), 1)], 64))), 128))]),
|
|
8603
8603
|
_: 1
|
|
8604
|
-
}, 8, ["aria-live"])) : d("v-if", !0),
|
|
8604
|
+
}, 8, ["aria-live"])) : d("v-if", !0), V(p).viewport.value ? (I(), u(o, {
|
|
8605
8605
|
key: 1,
|
|
8606
|
-
to:
|
|
8607
|
-
}, [h(
|
|
8608
|
-
default:
|
|
8609
|
-
ref:
|
|
8606
|
+
to: V(p).viewport.value
|
|
8607
|
+
}, [h(V(c), null, {
|
|
8608
|
+
default: W(() => [h(V(X), O({
|
|
8609
|
+
ref: V(i),
|
|
8610
8610
|
tabindex: "0"
|
|
8611
8611
|
}, e.$attrs, {
|
|
8612
8612
|
as: e.as,
|
|
8613
8613
|
"as-child": e.asChild,
|
|
8614
8614
|
"data-state": e.open ? "open" : "closed",
|
|
8615
|
-
"data-swipe-direction":
|
|
8616
|
-
style:
|
|
8615
|
+
"data-swipe-direction": V(p).swipeDirection.value,
|
|
8616
|
+
style: V(p).disableSwipe.value ? void 0 : {
|
|
8617
8617
|
userSelect: "none",
|
|
8618
8618
|
touchAction: "none"
|
|
8619
8619
|
},
|
|
8620
|
-
onPointerdown: t[0] ||=
|
|
8621
|
-
|
|
8620
|
+
onPointerdown: t[0] ||= xe((e) => {
|
|
8621
|
+
V(p).disableSwipe.value || (g.value = {
|
|
8622
8622
|
x: e.clientX,
|
|
8623
8623
|
y: e.clientY
|
|
8624
8624
|
});
|
|
8625
8625
|
}, ["left"]),
|
|
8626
8626
|
onPointermove: t[1] ||= (e) => {
|
|
8627
|
-
if (
|
|
8628
|
-
let t = e.clientX - g.value.x, n = e.clientY - g.value.y, i = !!_.value, a = ["left", "right"].includes(
|
|
8627
|
+
if (V(p).disableSwipe.value || !g.value) return;
|
|
8628
|
+
let t = e.clientX - g.value.x, n = e.clientY - g.value.y, i = !!_.value, a = ["left", "right"].includes(V(p).swipeDirection.value), o = ["left", "up"].includes(V(p).swipeDirection.value) ? Math.min : Math.max, s = a ? o(0, t) : 0, c = a ? 0 : o(0, n), l = e.pointerType === "touch" ? 10 : 2, u = {
|
|
8629
8629
|
x: s,
|
|
8630
8630
|
y: c
|
|
8631
8631
|
}, d = {
|
|
8632
8632
|
originalEvent: e,
|
|
8633
8633
|
delta: u
|
|
8634
8634
|
};
|
|
8635
|
-
i ? (_.value = u,
|
|
8635
|
+
i ? (_.value = u, V(Gc)(V("toast.swipeMove"), (e) => r("swipeMove", e), d)) : V(Kc)(u, V(p).swipeDirection.value, l) ? (_.value = u, V(Gc)(V("toast.swipeStart"), (e) => r("swipeStart", e), d), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > l || Math.abs(n) > l) && (g.value = null);
|
|
8636
8636
|
},
|
|
8637
8637
|
onPointerup: t[2] ||= (e) => {
|
|
8638
|
-
if (
|
|
8638
|
+
if (V(p).disableSwipe.value) return;
|
|
8639
8639
|
let t = _.value, n = e.target;
|
|
8640
8640
|
if (n.hasPointerCapture(e.pointerId) && n.releasePointerCapture(e.pointerId), _.value = null, g.value = null, t) {
|
|
8641
8641
|
let n = e.currentTarget, i = {
|
|
8642
8642
|
originalEvent: e,
|
|
8643
8643
|
delta: t
|
|
8644
8644
|
};
|
|
8645
|
-
|
|
8645
|
+
V(Kc)(t, V(p).swipeDirection.value, V(p).swipeThreshold.value) ? V(Gc)(V("toast.swipeEnd"), (e) => r("swipeEnd", e), i) : V(Gc)(V("toast.swipeCancel"), (e) => r("swipeCancel", e), i), n?.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
|
|
8646
8646
|
}
|
|
8647
8647
|
}
|
|
8648
8648
|
}), {
|
|
8649
|
-
default:
|
|
8649
|
+
default: W(() => [R(e.$slots, "default", {
|
|
8650
8650
|
remaining: S.value,
|
|
8651
8651
|
duration: v.value
|
|
8652
8652
|
})]),
|
|
@@ -8675,8 +8675,8 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8675
8675
|
},
|
|
8676
8676
|
setup(e) {
|
|
8677
8677
|
let t = e;
|
|
8678
|
-
return Y(), (e, n) => (
|
|
8679
|
-
default:
|
|
8678
|
+
return Y(), (e, n) => (I(), u(V(X), j(x(t)), {
|
|
8679
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8680
8680
|
_: 3
|
|
8681
8681
|
}, 16));
|
|
8682
8682
|
}
|
|
@@ -8731,10 +8731,10 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8731
8731
|
defaultValue: n.defaultOpen,
|
|
8732
8732
|
passive: n.open === void 0
|
|
8733
8733
|
});
|
|
8734
|
-
return (e, t) => (
|
|
8735
|
-
default:
|
|
8736
|
-
ref:
|
|
8737
|
-
open:
|
|
8734
|
+
return (e, t) => (I(), u(V(na), { present: e.forceMount || V(a) }, {
|
|
8735
|
+
default: W(() => [h(Zc, O({
|
|
8736
|
+
ref: V(i),
|
|
8737
|
+
open: V(a),
|
|
8738
8738
|
type: e.type,
|
|
8739
8739
|
as: e.as,
|
|
8740
8740
|
"as-child": e.asChild,
|
|
@@ -8766,10 +8766,10 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8766
8766
|
}
|
|
8767
8767
|
}
|
|
8768
8768
|
}), {
|
|
8769
|
-
default:
|
|
8769
|
+
default: W(({ remaining: t, duration: n }) => [R(e.$slots, "default", {
|
|
8770
8770
|
remaining: t,
|
|
8771
8771
|
duration: n,
|
|
8772
|
-
open:
|
|
8772
|
+
open: V(a)
|
|
8773
8773
|
})]),
|
|
8774
8774
|
_: 3
|
|
8775
8775
|
}, 16, [
|
|
@@ -8796,8 +8796,8 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8796
8796
|
},
|
|
8797
8797
|
setup(e) {
|
|
8798
8798
|
let t = e;
|
|
8799
|
-
return Y(), (e, n) => (
|
|
8800
|
-
default:
|
|
8799
|
+
return Y(), (e, n) => (I(), u(V(X), j(x(t)), {
|
|
8800
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8801
8801
|
_: 3
|
|
8802
8802
|
}, 16));
|
|
8803
8803
|
}
|
|
@@ -8806,15 +8806,15 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8806
8806
|
emits: ["focusFromOutsideViewport"],
|
|
8807
8807
|
setup(e, { emit: t }) {
|
|
8808
8808
|
let n = t, r = zc();
|
|
8809
|
-
return (e, t) => (
|
|
8809
|
+
return (e, t) => (I(), u(V(qa), {
|
|
8810
8810
|
tabindex: "0",
|
|
8811
8811
|
style: { position: "fixed" },
|
|
8812
8812
|
onFocus: t[0] ||= (e) => {
|
|
8813
8813
|
let t = e.relatedTarget;
|
|
8814
|
-
|
|
8814
|
+
V(r).viewport.value?.contains(t) || n("focusFromOutsideViewport");
|
|
8815
8815
|
}
|
|
8816
8816
|
}, {
|
|
8817
|
-
default:
|
|
8817
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8818
8818
|
_: 3
|
|
8819
8819
|
}));
|
|
8820
8820
|
}
|
|
@@ -8843,12 +8843,12 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8843
8843
|
}
|
|
8844
8844
|
},
|
|
8845
8845
|
setup(e) {
|
|
8846
|
-
let { hotkey: t, label: n } =
|
|
8846
|
+
let { hotkey: t, label: n } = me(e), { forwardRef: r, currentElement: i } = Y(), { CollectionSlot: a, getItems: o } = Ka(), s = zc(), c = l(() => s.toastCount.value > 0), f = L(), p = L(), m = /Key/g, g = /Digit/g, _ = l(() => t.value.join("+").replace(m, "").replace(g, ""));
|
|
8847
8847
|
di(t.value, () => {
|
|
8848
8848
|
i.value.focus();
|
|
8849
|
-
}),
|
|
8849
|
+
}), F(() => {
|
|
8850
8850
|
s.onViewportChange(i.value);
|
|
8851
|
-
}),
|
|
8851
|
+
}), U((e) => {
|
|
8852
8852
|
let t = i.value;
|
|
8853
8853
|
if (c.value && t) {
|
|
8854
8854
|
let n = () => {
|
|
@@ -8864,11 +8864,11 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8864
8864
|
}, i = (e) => {
|
|
8865
8865
|
t.contains(e.relatedTarget) || r();
|
|
8866
8866
|
}, a = () => {
|
|
8867
|
-
t.contains(
|
|
8867
|
+
t.contains(Ar()) || r();
|
|
8868
8868
|
}, o = (e) => {
|
|
8869
8869
|
let n = e.altKey || e.ctrlKey || e.metaKey;
|
|
8870
8870
|
if (e.key === "Tab" && !n) {
|
|
8871
|
-
let n =
|
|
8871
|
+
let n = Ar(), r = e.shiftKey;
|
|
8872
8872
|
if (e.target === t && r) {
|
|
8873
8873
|
f.value?.focus();
|
|
8874
8874
|
return;
|
|
@@ -8889,50 +8889,50 @@ var [Yc, Xc] = /*#__PURE__*/ Ar("ToastRoot"), Zc = /* @__PURE__ */ _({
|
|
|
8889
8889
|
});
|
|
8890
8890
|
return (e === "forwards" ? t.reverse() : t).flat();
|
|
8891
8891
|
}
|
|
8892
|
-
return (e, t) => (
|
|
8892
|
+
return (e, t) => (I(), u(V(ha), {
|
|
8893
8893
|
role: "region",
|
|
8894
|
-
"aria-label": typeof
|
|
8894
|
+
"aria-label": typeof V(n) == "string" ? V(n).replace("{hotkey}", _.value) : V(n)(_.value),
|
|
8895
8895
|
tabindex: "-1",
|
|
8896
8896
|
style: M({ pointerEvents: c.value ? void 0 : "none" })
|
|
8897
8897
|
}, {
|
|
8898
|
-
default:
|
|
8899
|
-
c.value ? (
|
|
8898
|
+
default: W(() => [
|
|
8899
|
+
c.value ? (I(), u(tl, {
|
|
8900
8900
|
key: 0,
|
|
8901
8901
|
ref: (e) => {
|
|
8902
|
-
e && (f.value =
|
|
8902
|
+
e && (f.value = V(si)(e));
|
|
8903
8903
|
},
|
|
8904
8904
|
onFocusFromOutsideViewport: t[0] ||= () => {
|
|
8905
8905
|
let e = v({ tabbingDirection: "forwards" });
|
|
8906
|
-
|
|
8906
|
+
V(Sa)(e);
|
|
8907
8907
|
}
|
|
8908
8908
|
}, null, 512)) : d("v-if", !0),
|
|
8909
|
-
h(
|
|
8910
|
-
default:
|
|
8911
|
-
ref:
|
|
8909
|
+
h(V(a), null, {
|
|
8910
|
+
default: W(() => [h(V(X), O({
|
|
8911
|
+
ref: V(r),
|
|
8912
8912
|
tabindex: "-1",
|
|
8913
8913
|
as: e.as,
|
|
8914
8914
|
"as-child": e.asChild
|
|
8915
8915
|
}, e.$attrs), {
|
|
8916
|
-
default:
|
|
8916
|
+
default: W(() => [R(e.$slots, "default")]),
|
|
8917
8917
|
_: 3
|
|
8918
8918
|
}, 16, ["as", "as-child"])]),
|
|
8919
8919
|
_: 3
|
|
8920
8920
|
}),
|
|
8921
|
-
c.value ? (
|
|
8921
|
+
c.value ? (I(), u(tl, {
|
|
8922
8922
|
key: 1,
|
|
8923
8923
|
ref: (e) => {
|
|
8924
|
-
e && (p.value =
|
|
8924
|
+
e && (p.value = V(si)(e));
|
|
8925
8925
|
},
|
|
8926
8926
|
onFocusFromOutsideViewport: t[1] ||= () => {
|
|
8927
8927
|
let e = v({ tabbingDirection: "backwards" });
|
|
8928
|
-
|
|
8928
|
+
V(Sa)(e);
|
|
8929
8929
|
}
|
|
8930
8930
|
}, null, 512)) : d("v-if", !0)
|
|
8931
8931
|
]),
|
|
8932
8932
|
_: 3
|
|
8933
8933
|
}, 8, ["aria-label", "style"]));
|
|
8934
8934
|
}
|
|
8935
|
-
}), rl = /* @__PURE__ */
|
|
8935
|
+
}), rl = /* @__PURE__ */ Me(Or(), 1);
|
|
8936
8936
|
String.raw;
|
|
8937
8937
|
var il = String.raw, al = (() => {
|
|
8938
8938
|
try {
|
|
@@ -9377,16 +9377,16 @@ var Vl = "round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)"
|
|
|
9377
9377
|
__name: "NumberFlowGroup",
|
|
9378
9378
|
setup(e) {
|
|
9379
9379
|
let t = /* @__PURE__ */ new Set(), n = !1;
|
|
9380
|
-
return
|
|
9381
|
-
t.add(e),
|
|
9380
|
+
return ie(Xl, (e, r) => {
|
|
9381
|
+
t.add(e), H(r, async () => {
|
|
9382
9382
|
n ||= (n = !0, t.forEach(async (e) => {
|
|
9383
9383
|
var t;
|
|
9384
9384
|
!e.value || !e.value.created || (e.value.willUpdate(), await k(), (t = e.value) == null || t.didUpdate());
|
|
9385
9385
|
}), await k(), !1);
|
|
9386
|
-
}),
|
|
9386
|
+
}), ne(() => {
|
|
9387
9387
|
t.delete(e);
|
|
9388
9388
|
});
|
|
9389
|
-
}), (e, t) =>
|
|
9389
|
+
}), (e, t) => R(e.$slots, "default");
|
|
9390
9390
|
}
|
|
9391
9391
|
}), Ql = [
|
|
9392
9392
|
"batched",
|
|
@@ -9436,14 +9436,14 @@ var Vl = "round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)"
|
|
|
9436
9436
|
},
|
|
9437
9437
|
emits: ["animationsstart", "animationsfinish"],
|
|
9438
9438
|
setup(e, { expose: t, emit: n }) {
|
|
9439
|
-
let r =
|
|
9439
|
+
let r = L();
|
|
9440
9440
|
t({ el: r });
|
|
9441
9441
|
let i = n, a = l(() => new Intl.NumberFormat(e.locales, e.format)), o = l(() => Tl(e.value, a.value, e.prefix, e.suffix)), s = C(Xl, void 0);
|
|
9442
|
-
return s?.(r, o), (e, t) => (
|
|
9442
|
+
return s?.(r, o), (e, t) => (I(), f("number-flow-vue", O({
|
|
9443
9443
|
ref_key: "el",
|
|
9444
9444
|
ref: r
|
|
9445
9445
|
}, e.$attrs, {
|
|
9446
|
-
batched: !!
|
|
9446
|
+
batched: !!V(s),
|
|
9447
9447
|
trend: e.trend,
|
|
9448
9448
|
plugins: e.plugins,
|
|
9449
9449
|
animated: e.animated,
|
|
@@ -9454,7 +9454,7 @@ var Vl = "round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)"
|
|
|
9454
9454
|
nonce: e.nonce,
|
|
9455
9455
|
"data-will-change": e.willChange ? "" : void 0,
|
|
9456
9456
|
digits: e.digits,
|
|
9457
|
-
innerHTML:
|
|
9457
|
+
innerHTML: V(void 0),
|
|
9458
9458
|
"data-allow-mismatch": "",
|
|
9459
9459
|
onAnimationsstart: t[0] ||= (e) => i("animationsstart"),
|
|
9460
9460
|
onAnimationsfinish: t[1] ||= (e) => i("animationsfinish"),
|
|
@@ -9468,12 +9468,12 @@ Yl("-vue"), Cl("number-flow-vue", Dl);
|
|
|
9468
9468
|
var eu = {
|
|
9469
9469
|
key: 0,
|
|
9470
9470
|
class: "countDown"
|
|
9471
|
-
}, tu = 1800, nu = /*#__PURE__*/
|
|
9471
|
+
}, tu = 1800, nu = /*#__PURE__*/ Fe(/* @__PURE__ */ _({
|
|
9472
9472
|
__name: "CountDown",
|
|
9473
9473
|
props: { countDownName: {} },
|
|
9474
9474
|
emits: ["refresh"],
|
|
9475
9475
|
setup(e, { emit: t }) {
|
|
9476
|
-
let n = e, r = t, i =
|
|
9476
|
+
let n = e, r = t, i = L((() => {
|
|
9477
9477
|
let e = Number(localStorage.getItem(n.countDownName)), t = Date.now();
|
|
9478
9478
|
if (!e || e <= t) {
|
|
9479
9479
|
let e = t + tu * 1e3;
|
|
@@ -9483,29 +9483,29 @@ var eu = {
|
|
|
9483
9483
|
})()), a = () => {
|
|
9484
9484
|
let e = Math.floor((i.value - Date.now()) / 1e3);
|
|
9485
9485
|
return Math.max(0, e);
|
|
9486
|
-
}, o =
|
|
9487
|
-
return
|
|
9486
|
+
}, o = L(a()), s = null, c = l(() => Math.floor(o.value / 3600)), u = l(() => Math.floor(o.value % 3600 / 60)), g = l(() => o.value % 60);
|
|
9487
|
+
return F(() => {
|
|
9488
9488
|
s = setInterval(() => {
|
|
9489
9489
|
let e = a();
|
|
9490
9490
|
o.value = e, e <= 0 && s && (clearInterval(s), s = null, r("refresh"));
|
|
9491
9491
|
}, 1e3);
|
|
9492
|
-
}),
|
|
9492
|
+
}), P(() => {
|
|
9493
9493
|
s &&= (clearInterval(s), null);
|
|
9494
|
-
}), (e, t) => o.value > 0 ? (
|
|
9495
|
-
default:
|
|
9496
|
-
h(
|
|
9494
|
+
}), (e, t) => o.value > 0 ? (I(), f("div", eu, [h(V(Zl), null, {
|
|
9495
|
+
default: W(() => [
|
|
9496
|
+
h(V($l), {
|
|
9497
9497
|
value: c.value,
|
|
9498
9498
|
format: { minimumIntegerDigits: 2 },
|
|
9499
9499
|
trend: -1
|
|
9500
9500
|
}, null, 8, ["value"]),
|
|
9501
9501
|
t[0] ||= p("span", { class: "separator" }, ":", -1),
|
|
9502
|
-
h(
|
|
9502
|
+
h(V($l), {
|
|
9503
9503
|
value: u.value,
|
|
9504
9504
|
format: { minimumIntegerDigits: 2 },
|
|
9505
9505
|
trend: -1
|
|
9506
9506
|
}, null, 8, ["value"]),
|
|
9507
9507
|
t[1] ||= p("span", { class: "separator" }, ":", -1),
|
|
9508
|
-
h(
|
|
9508
|
+
h(V($l), {
|
|
9509
9509
|
value: g.value,
|
|
9510
9510
|
format: { minimumIntegerDigits: 2 },
|
|
9511
9511
|
trend: -1
|
|
@@ -9521,7 +9521,7 @@ var eu = {
|
|
|
9521
9521
|
}, au = { class: "textPart" }, ou = { class: "price" }, su = { class: "desc" }, cu = {
|
|
9522
9522
|
key: 1,
|
|
9523
9523
|
class: "multiMealWp"
|
|
9524
|
-
}, lu = { class: "price" }, uu = { class: "text" }, du = { class: "three" }, fu = /*#__PURE__*/
|
|
9524
|
+
}, lu = { class: "price" }, uu = { class: "text" }, du = { class: "three" }, fu = /*#__PURE__*/ Fe(/* @__PURE__ */ _({
|
|
9525
9525
|
__name: "RedPackageDialog",
|
|
9526
9526
|
props: /*@__PURE__*/ D({ redPackages: {} }, {
|
|
9527
9527
|
open: { type: Boolean },
|
|
@@ -9529,21 +9529,21 @@ var eu = {
|
|
|
9529
9529
|
}),
|
|
9530
9530
|
emits: ["update:open"],
|
|
9531
9531
|
setup(e) {
|
|
9532
|
-
let t = e, n =
|
|
9533
|
-
return
|
|
9532
|
+
let t = e, n = ge(e, "open"), r = L(3), i = L(!1), o = null;
|
|
9533
|
+
return U(() => {
|
|
9534
9534
|
t.redPackages && (i.value = t.redPackages.length === 1);
|
|
9535
|
-
}),
|
|
9535
|
+
}), H(() => n.value, (e) => {
|
|
9536
9536
|
e ? o = setInterval(() => {
|
|
9537
9537
|
r.value--, r.value === 0 && (n.value = !1);
|
|
9538
9538
|
}, 1e3) : o &&= (r.value = 3, clearInterval(o), null);
|
|
9539
|
-
}, { immediate: !0 }), (t, o) => (
|
|
9539
|
+
}, { immediate: !0 }), (t, o) => (I(), u(V(ca), {
|
|
9540
9540
|
open: n.value,
|
|
9541
9541
|
class: "root"
|
|
9542
9542
|
}, {
|
|
9543
|
-
default:
|
|
9544
|
-
default:
|
|
9545
|
-
default:
|
|
9546
|
-
(
|
|
9543
|
+
default: W(() => [h(V(Ua), { class: "overlay" }), h(V(Ba), { class: "contentWp" }, {
|
|
9544
|
+
default: W(() => [h(V(Va), null, {
|
|
9545
|
+
default: W(() => [p("div", ru, [
|
|
9546
|
+
(I(), f("svg", {
|
|
9547
9547
|
onClick: o[0] ||= (e) => n.value = !1,
|
|
9548
9548
|
class: "close",
|
|
9549
9549
|
width: "30",
|
|
@@ -9566,27 +9566,27 @@ var eu = {
|
|
|
9566
9566
|
}, null, -1)
|
|
9567
9567
|
]])),
|
|
9568
9568
|
o[6] ||= p("div", { class: "title" }, "恭喜获得随机红包", -1),
|
|
9569
|
-
i.value ? (
|
|
9569
|
+
i.value ? (I(), f("div", iu, [p("div", au, [p("div", ou, [o[3] ||= p("span", null, "¥", -1), m(z(e.redPackages[0].originalPrice - e.redPackages[0].price), 1)]), p("div", su, z(e.redPackages[0].packageName) + "套餐可用", 1)]), o[4] ||= p("img", {
|
|
9570
9570
|
class: "imgPart",
|
|
9571
9571
|
src: "https://i1.letvimg.com/lc20_phone/202609/04/15/18/1788506312234694.png",
|
|
9572
9572
|
alt: ""
|
|
9573
|
-
}, null, -1)])) : (
|
|
9573
|
+
}, null, -1)])) : (I(), f("div", cu, [(I(!0), f(a, null, ce(e.redPackages, (e) => (I(), f("div", {
|
|
9574
9574
|
class: "singleMeal",
|
|
9575
9575
|
key: e.packageId
|
|
9576
9576
|
}, [
|
|
9577
9577
|
o[5] ||= p("div", { class: "sign" }, "¥", -1),
|
|
9578
|
-
p("div", lu,
|
|
9579
|
-
p("div", uu,
|
|
9578
|
+
p("div", lu, z(e.originalPrice - e.price), 1),
|
|
9579
|
+
p("div", uu, z(e.packageName) + "套餐可用", 1)
|
|
9580
9580
|
]))), 128))])),
|
|
9581
9581
|
p("div", {
|
|
9582
9582
|
class: "btn",
|
|
9583
9583
|
onClick: o[1] ||= (e) => n.value = !1
|
|
9584
9584
|
}, "立即使用"),
|
|
9585
|
-
e.redPackages[0] ? (
|
|
9585
|
+
e.redPackages[0] ? (I(), u(nu, {
|
|
9586
9586
|
key: 2,
|
|
9587
9587
|
"count-down-name": `package_${e.redPackages.map((e) => e.packageId).join("_")}`
|
|
9588
9588
|
}, null, 8, ["count-down-name"])) : d("", !0),
|
|
9589
|
-
p("div", du,
|
|
9589
|
+
p("div", du, z(r.value) + "s后自动到账", 1)
|
|
9590
9590
|
])]),
|
|
9591
9591
|
_: 1
|
|
9592
9592
|
})]),
|
|
@@ -9595,7 +9595,69 @@ var eu = {
|
|
|
9595
9595
|
_: 1
|
|
9596
9596
|
}, 8, ["open"]));
|
|
9597
9597
|
}
|
|
9598
|
-
}), [["__scopeId", "data-v-acb66878"]]), pu =
|
|
9598
|
+
}), [["__scopeId", "data-v-acb66878"]]), pu = { class: "twoMonths" }, mu = { class: "qrcodeWp" }, hu = ["src"], gu = /*#__PURE__*/ Fe(/* @__PURE__ */ _({
|
|
9599
|
+
__name: "TwoMonthDialog",
|
|
9600
|
+
props: /*@__PURE__*/ D({
|
|
9601
|
+
twoMonthPackages: {},
|
|
9602
|
+
orderSource: {}
|
|
9603
|
+
}, {
|
|
9604
|
+
open: { type: Boolean },
|
|
9605
|
+
openModifiers: {}
|
|
9606
|
+
}),
|
|
9607
|
+
emits: /*@__PURE__*/ D(["onTwoMonthSuccess"], ["update:open"]),
|
|
9608
|
+
setup(e, { emit: t }) {
|
|
9609
|
+
let r = e, i = ge(e, "open"), a = t, o = L(), s = L(""), c = L(null), l = L(null), d = async () => {
|
|
9610
|
+
let e = await Se.get("https://d-api-m.le.com/website/orders/preorder", {
|
|
9611
|
+
params: {
|
|
9612
|
+
platform: "pc",
|
|
9613
|
+
packageId: o.value?.packageId,
|
|
9614
|
+
packageGroupId: o.value?.group_id,
|
|
9615
|
+
packageType: o.value?.packageType,
|
|
9616
|
+
couponCode: l.value?.code,
|
|
9617
|
+
ref: r.orderSource || ""
|
|
9618
|
+
},
|
|
9619
|
+
withCredentials: !0
|
|
9620
|
+
});
|
|
9621
|
+
s.value = await rl.toDataURL(`https://d-api-m.le.com${e.data.data.createOrderUrl}`, { margin: 2 }), c.value?.stop(), c.value = n(async (t) => {
|
|
9622
|
+
let n = await Se.get("https://d-api-m.le.com/website/orders/query", {
|
|
9623
|
+
params: { orderNo: e.data.data.orderNo },
|
|
9624
|
+
withCredentials: !0
|
|
9625
|
+
});
|
|
9626
|
+
n.data.data.status === 1 && (t(), f(n.data.data));
|
|
9627
|
+
}, 2e3);
|
|
9628
|
+
}, f = (e) => {
|
|
9629
|
+
a("onTwoMonthSuccess", e);
|
|
9630
|
+
};
|
|
9631
|
+
return H(() => r.twoMonthPackages, (e, t) => {
|
|
9632
|
+
console.log("父传过来的数据更新了", e), o.value = e[0], d();
|
|
9633
|
+
}, { deep: !0 }), (t, n) => (I(), u(V(ca), {
|
|
9634
|
+
open: i.value,
|
|
9635
|
+
class: "root"
|
|
9636
|
+
}, {
|
|
9637
|
+
default: W(() => [h(V(Ua), { class: "overlay" }), h(V(Ba), {
|
|
9638
|
+
class: "contentWp",
|
|
9639
|
+
style: M(`background:url(${e.twoMonthPackages[0]?.pc_pic}) no-repeat;background-size: 100%;`)
|
|
9640
|
+
}, {
|
|
9641
|
+
default: W(() => [h(V(Va), null, {
|
|
9642
|
+
default: W(() => [p("div", pu, [p("div", {
|
|
9643
|
+
class: "btnClose",
|
|
9644
|
+
onClick: n[0] ||= (e) => i.value = !1
|
|
9645
|
+
}), p("div", mu, [p("img", {
|
|
9646
|
+
class: "qrcode",
|
|
9647
|
+
src: s.value || ""
|
|
9648
|
+
}, null, 8, hu), n[1] ||= p("img", {
|
|
9649
|
+
class: "icon",
|
|
9650
|
+
src: "https://i1.letvimg.com/lc18_img/202502/07/17/14/zhifubao.png",
|
|
9651
|
+
alt: ""
|
|
9652
|
+
}, null, -1)])])]),
|
|
9653
|
+
_: 1
|
|
9654
|
+
})]),
|
|
9655
|
+
_: 1
|
|
9656
|
+
}, 8, ["style"])]),
|
|
9657
|
+
_: 1
|
|
9658
|
+
}, 8, ["open"]));
|
|
9659
|
+
}
|
|
9660
|
+
}), [["__scopeId", "data-v-15f1b275"]]), _u = /* @__PURE__ */ Me((/* @__PURE__ */ G(((e, t) => {
|
|
9599
9661
|
(function(n, r) {
|
|
9600
9662
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
9601
9663
|
})(e, (function() {
|
|
@@ -9889,33 +9951,33 @@ var eu = {
|
|
|
9889
9951
|
return w(1e3 * e);
|
|
9890
9952
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
9891
9953
|
}));
|
|
9892
|
-
})))(), 1),
|
|
9954
|
+
})))(), 1), vu = { class: "payLayerFrame" }, yu = { class: "payLeft" }, bu = { class: "userBox" }, xu = { class: "userInfo" }, Su = { class: "userAvatar" }, Cu = ["src"], wu = { class: "userLogin" }, Tu = { class: "userState" }, Eu = { class: "userLoginName" }, Du = {
|
|
9893
9955
|
key: 0,
|
|
9894
9956
|
class: "userPay",
|
|
9895
9957
|
href: "https://www.le.com/user/vip",
|
|
9896
9958
|
target: "_blank"
|
|
9897
|
-
},
|
|
9959
|
+
}, Ou = { class: "userTip" }, ku = { class: "payPackage" }, Au = { class: "packageTabContainer" }, ju = { class: "payTime" }, Mu = { class: "payPrice flow" }, Nu = { class: "payPrice" }, Pu = {
|
|
9898
9960
|
key: 0,
|
|
9899
9961
|
class: "payOldPrice"
|
|
9900
|
-
},
|
|
9962
|
+
}, Fu = {
|
|
9901
9963
|
key: 2,
|
|
9902
9964
|
class: "payIcon"
|
|
9903
|
-
},
|
|
9965
|
+
}, Iu = {
|
|
9904
9966
|
key: 3,
|
|
9905
9967
|
class: "payPoint"
|
|
9906
|
-
},
|
|
9968
|
+
}, Lu = { class: "countdown" }, Ru = {
|
|
9907
9969
|
key: 0,
|
|
9908
9970
|
class: "payGoodsDetailIntro"
|
|
9909
|
-
},
|
|
9971
|
+
}, zu = {
|
|
9910
9972
|
key: 1,
|
|
9911
9973
|
class: "payGoodsDetailIntro2"
|
|
9912
|
-
},
|
|
9974
|
+
}, Bu = { key: 0 }, Vu = { key: 1 }, Hu = { class: "payRight" }, Uu = { class: "payDetail" }, Wu = { class: "priceBox" }, Gu = { class: "price" }, Ku = { class: "priceTipContent" }, qu = { class: "detail" }, Ju = { class: "o" }, Yu = { class: "c" }, Xu = {
|
|
9913
9975
|
key: 0,
|
|
9914
9976
|
class: "detail"
|
|
9915
|
-
},
|
|
9977
|
+
}, Zu = {
|
|
9916
9978
|
class: "o",
|
|
9917
9979
|
style: { "text-decoration": "none" }
|
|
9918
|
-
},
|
|
9980
|
+
}, Qu = { class: "couponWp" }, $u = {
|
|
9919
9981
|
key: 0,
|
|
9920
9982
|
t: "1787640783271",
|
|
9921
9983
|
class: "icon",
|
|
@@ -9925,21 +9987,21 @@ var eu = {
|
|
|
9925
9987
|
"p-id": "2508",
|
|
9926
9988
|
width: "200",
|
|
9927
9989
|
height: "200"
|
|
9928
|
-
},
|
|
9990
|
+
}, ed = { class: "couponContent" }, td = ["onClick"], nd = { class: "expire" }, rd = ["onClick"], id = { key: 1 }, ad = { class: "qrcodeWp" }, od = ["src"], sd = {
|
|
9929
9991
|
key: 0,
|
|
9930
9992
|
class: "mask"
|
|
9931
|
-
},
|
|
9993
|
+
}, cd = { class: "wxalibox" }, ld = {
|
|
9932
9994
|
key: 0,
|
|
9933
9995
|
class: "payAli"
|
|
9934
|
-
},
|
|
9996
|
+
}, ud = {
|
|
9935
9997
|
key: 1,
|
|
9936
9998
|
class: "payWechat"
|
|
9937
|
-
},
|
|
9999
|
+
}, dd = { class: "explainBoxR" }, fd = {
|
|
9938
10000
|
key: 1,
|
|
9939
10001
|
href: "https://minisite.letv.com/msite/leVipAgreement/index.shtml",
|
|
9940
10002
|
target: "_blank",
|
|
9941
10003
|
class: "dapingvipXY"
|
|
9942
|
-
},
|
|
10004
|
+
}, pd = { class: "tip" }, md = { class: "tip" }, hd = "red_packet_popup_daily", gd = "guide_count", _d = /*#__PURE__*/ Fe(/* @__PURE__ */ _({
|
|
9943
10005
|
__name: "component",
|
|
9944
10006
|
props: {
|
|
9945
10007
|
smallPackageList: {},
|
|
@@ -9951,112 +10013,135 @@ var eu = {
|
|
|
9951
10013
|
orderSource: {},
|
|
9952
10014
|
onSuccess: { type: Function }
|
|
9953
10015
|
},
|
|
9954
|
-
emits: ["close"],
|
|
10016
|
+
emits: ["close", "refreshPackages"],
|
|
9955
10017
|
setup(e, { emit: r }) {
|
|
9956
10018
|
let i = e, o = () => {
|
|
9957
|
-
let [e, t] = localStorage.getItem(
|
|
9958
|
-
return e === (0,
|
|
9959
|
-
}, s =
|
|
10019
|
+
let [e, t] = localStorage.getItem(hd)?.split("#") ?? [];
|
|
10020
|
+
return e === (0, _u.default)().format("YYYY-MM-DD") && Number(t) || 0;
|
|
10021
|
+
}, s = (e) => {
|
|
10022
|
+
let t = gd + e, [n, r] = localStorage.getItem(t)?.split("#") ?? [];
|
|
10023
|
+
return n === (0, _u.default)().format("YYYY-MM-DD") && Number(r) || 0;
|
|
10024
|
+
}, c = L(i.outUserInfo), g = L({}), _ = L(null), v = L([]), y = L(i.vipType || 1), b = L(null), x = L(null), S = L(""), C = L(null), w = L(!1), T = L(!1), E = L([]), D = L([]), O = L([]), k = L(null), j = L(!1), M = L({}), N = L(!1), P = L(!1), ee = L(o() < 3);
|
|
10025
|
+
L(!1);
|
|
10026
|
+
let te = r, ne = l(() => !!c.value?.uid), re = l(() => _.value?.isvip ? _.value.vipType : 0), ie = l(() => y.value === 1 ? i.smallPackageList : i.bigPackageList), ae = () => {
|
|
9960
10027
|
window.LEPassNew.openLoginDialog();
|
|
9961
|
-
},
|
|
9962
|
-
|
|
9963
|
-
},
|
|
9964
|
-
|
|
10028
|
+
}, oe = (e, t) => {
|
|
10029
|
+
x.value = e, t();
|
|
10030
|
+
}, se = () => {
|
|
10031
|
+
N.value = !1;
|
|
9965
10032
|
let e = o();
|
|
9966
10033
|
e < 3 && setTimeout(() => {
|
|
9967
|
-
|
|
10034
|
+
w.value = !0, localStorage.setItem(hd, `${(0, _u.default)().format("YYYY-MM-DD")}#${e + 1}`);
|
|
9968
10035
|
}, 1e3);
|
|
9969
|
-
},
|
|
10036
|
+
}, R = async () => {
|
|
9970
10037
|
let e = await t("https://d-api-m.le.com/yuanxian/member?platform=pc");
|
|
9971
|
-
|
|
9972
|
-
},
|
|
9973
|
-
let e = await
|
|
10038
|
+
g.value = e.data, e.data[1] && e.data[9] ? _.value = e.data[1] : _.value = Object.values(e.data)[0];
|
|
10039
|
+
}, le = async () => {
|
|
10040
|
+
let e = await Se.get("https://d-api-m.le.com/website/coupons?platform=pc", {
|
|
9974
10041
|
params: {
|
|
9975
10042
|
platform: "pc",
|
|
9976
10043
|
status: 2,
|
|
9977
|
-
packageId:
|
|
10044
|
+
packageId: b.value?.packageId
|
|
9978
10045
|
},
|
|
9979
10046
|
withCredentials: !0
|
|
9980
10047
|
});
|
|
9981
|
-
e.data.data?.length > 0 ? (
|
|
9982
|
-
},
|
|
9983
|
-
if (!
|
|
9984
|
-
|
|
10048
|
+
e.data.data?.length > 0 ? (v.value = e.data.data, x.value = e.data.data[0]) : (v.value = [], x.value = null);
|
|
10049
|
+
}, ue = async () => {
|
|
10050
|
+
if (!ne.value) {
|
|
10051
|
+
S.value = await rl.toDataURL("https://www.le.com", { margin: 2 });
|
|
9985
10052
|
return;
|
|
9986
10053
|
}
|
|
9987
|
-
let e = await
|
|
10054
|
+
let e = await Se.get("https://d-api-m.le.com/website/orders/preorder", {
|
|
9988
10055
|
params: {
|
|
9989
10056
|
platform: "pc",
|
|
9990
|
-
packageId:
|
|
9991
|
-
packageGroupId:
|
|
9992
|
-
packageType:
|
|
9993
|
-
couponCode:
|
|
10057
|
+
packageId: b.value?.packageId,
|
|
10058
|
+
packageGroupId: b.value?.group_id,
|
|
10059
|
+
packageType: b.value?.packageType,
|
|
10060
|
+
couponCode: x.value?.code,
|
|
9994
10061
|
ref: i.orderSource || ""
|
|
9995
10062
|
},
|
|
9996
10063
|
withCredentials: !0
|
|
9997
10064
|
});
|
|
9998
|
-
|
|
9999
|
-
let n = await
|
|
10065
|
+
S.value = await rl.toDataURL(`https://d-api-m.le.com${e.data.data.createOrderUrl}`, { margin: 2 }), k.value?.stop(), k.value = n(async (t) => {
|
|
10066
|
+
let n = await Se.get("https://d-api-m.le.com/website/orders/query", {
|
|
10000
10067
|
params: { orderNo: e.data.data.orderNo },
|
|
10001
10068
|
withCredentials: !0
|
|
10002
10069
|
});
|
|
10003
|
-
n.data.data.status === 1 && (t(),
|
|
10070
|
+
n.data.data.status === 1 && (t(), M.value = n.data.data, j.value = !0, i.onSuccess?.());
|
|
10004
10071
|
}, 2e3);
|
|
10005
|
-
},
|
|
10006
|
-
|
|
10007
|
-
}
|
|
10008
|
-
return P(async () => {
|
|
10009
|
-
x.value = await rl.toDataURL("https://www.le.com", { margin: 2 });
|
|
10072
|
+
}, de = () => {
|
|
10073
|
+
k.value?.stop(), te("close");
|
|
10074
|
+
}, fe = () => {
|
|
10010
10075
|
let e = i.smallPackageList?.find((e) => e.packageId === i.selectPkgId), t = !e && i.bigPackageList?.find((e) => e.packageId === i.selectPkgId);
|
|
10011
|
-
e ? (
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
let
|
|
10015
|
-
if (
|
|
10016
|
-
|
|
10076
|
+
e ? (b.value = e, y.value = 1, C.value?.slideTo(i.smallPackageList?.findIndex((e) => e.packageId === i.selectPkgId))) : t ? (b.value = t, y.value = 9, C.value?.slideTo(i.bigPackageList?.findIndex((e) => e.packageId === i.selectPkgId))) : b.value = ie.value[0];
|
|
10077
|
+
}, pe = () => {
|
|
10078
|
+
console.log("isGuid:", b.value?.packageId, D.value[0]?.packageId);
|
|
10079
|
+
let e = b.value?.packageId;
|
|
10080
|
+
if (e == D.value[0]?.packageId) {
|
|
10081
|
+
let t = Number(i.activityTwoMonthsData[e].popup_package_id);
|
|
10082
|
+
console.log("pkg对照关系:", e, t), O.value = i.smallPackageList.concat(i.bigPackageList).filter((e) => e.packageId == t), O.value[0].pc_pic = i.activityTwoMonthsData[e]?.pc_pic;
|
|
10083
|
+
let n = Number(D.value[0].customFields.guide_count), r = s(e);
|
|
10084
|
+
if (r >= n) T.value = !1;
|
|
10085
|
+
else {
|
|
10086
|
+
let t = r + 1;
|
|
10087
|
+
localStorage.setItem(gd + e, `${(0, _u.default)().format("YYYY-MM-DD")}#${t}`), T.value = !0;
|
|
10088
|
+
}
|
|
10089
|
+
}
|
|
10090
|
+
}, me = (e) => {
|
|
10091
|
+
console.log("父收到子传的数组:", e), M.value = e, j.value = !0, i.onSuccess?.();
|
|
10092
|
+
};
|
|
10093
|
+
return F(async () => {
|
|
10094
|
+
S.value = await rl.toDataURL("https://www.le.com", { margin: 2 }), fe(), window.LEPass.onStatusChange(async (e) => {
|
|
10095
|
+
e === "signIn" && (c.value = window.LEPass.getUserInfo(), await R(), te("refreshPackages"));
|
|
10096
|
+
}), D.value = i.smallPackageList.concat(i.bigPackageList).filter((e) => e.customFields.guide_count > 1), console.log("guidePackages.value", D.value, D.value[0].customFields.guide_count), pe(), E.value = i.smallPackageList.concat(i.bigPackageList).filter((e) => e.customFields.redpackage === "1");
|
|
10097
|
+
let e = o();
|
|
10098
|
+
if (e >= 3) {
|
|
10099
|
+
ee.value = !1;
|
|
10017
10100
|
return;
|
|
10018
10101
|
} else {
|
|
10019
|
-
let
|
|
10020
|
-
localStorage.setItem(
|
|
10102
|
+
let t = e + 1;
|
|
10103
|
+
localStorage.setItem(hd, `${(0, _u.default)().format("YYYY-MM-DD")}#${t}`), ee.value = !0, w.value = E.value.length > 0;
|
|
10021
10104
|
}
|
|
10022
|
-
}),
|
|
10023
|
-
e === 1 ?
|
|
10024
|
-
}),
|
|
10025
|
-
await
|
|
10026
|
-
}),
|
|
10105
|
+
}), H(() => y.value, (e) => {
|
|
10106
|
+
e === 1 ? b.value = i.smallPackageList[0] : b.value = i.bigPackageList[0], C.value?.slideTo(1);
|
|
10107
|
+
}), H(() => b.value, async () => {
|
|
10108
|
+
await le(), ue(), pe();
|
|
10109
|
+
}), H(() => w.value, (e) => {
|
|
10027
10110
|
e || setTimeout(() => {
|
|
10028
|
-
|
|
10029
|
-
|
|
10111
|
+
N.value = !0, P.value = !0, setTimeout(() => {
|
|
10112
|
+
P.value = !1;
|
|
10030
10113
|
}, 900);
|
|
10031
10114
|
}, 400);
|
|
10032
|
-
}), (
|
|
10033
|
-
|
|
10115
|
+
}), H([() => i.smallPackageList, () => i.bigPackageList], () => {
|
|
10116
|
+
E.value = i.smallPackageList.concat(i.bigPackageList).filter((e) => e.customFields?.redpackage === "1"), fe();
|
|
10117
|
+
}), (t, n) => (I(), u(V(Vc), { duration: 3e3 }, {
|
|
10118
|
+
default: W(() => [p("div", null, [n[30] ||= p("div", { class: "payLayerMask" }, null, -1), p("div", vu, [
|
|
10034
10119
|
p("div", {
|
|
10035
10120
|
class: "payLayerClose",
|
|
10036
|
-
onClick:
|
|
10121
|
+
onClick: n[0] ||= (e) => de()
|
|
10037
10122
|
}),
|
|
10038
|
-
|
|
10123
|
+
n[29] ||= p("div", { class: "exchange" }, [p("a", {
|
|
10039
10124
|
href: "https://ibuy.le.com/v2/exchange/index.html",
|
|
10040
10125
|
target: "_blank"
|
|
10041
10126
|
}, "兑换会员")], -1),
|
|
10042
|
-
p("div",
|
|
10043
|
-
src:
|
|
10127
|
+
p("div", yu, [p("div", bu, [p("div", xu, [p("span", Su, [p("img", {
|
|
10128
|
+
src: c.value?.headicon_200 || "https://i2.letvimg.com/lc05_img/202305/11/10/24/1023/icon7.png",
|
|
10044
10129
|
alt: ""
|
|
10045
|
-
}, null, 8,
|
|
10130
|
+
}, null, 8, Cu), p("i", { class: A(["iconUserVip", re.value ? "vip" : _.value?.endtime ? "expire" : ""]) }, null, 2)]), p("div", wu, [p("div", Tu, [p("span", Eu, z(c.value?.nickname || "注册/登录"), 1), _.value?.isSubscribe === 2 ? (I(), f("a", Du, "续费管理")) : d("", !0)]), p("span", Ou, z(ne.value ? re.value ? `${_.value?.packageName} ${_.value?.endtime.split(" ")[0]}到期` : _.value?.endtime ? "视频会员服务已过期,续费立享会员权益" : "开通视频会员享会员权益,大片热剧免费看" : "请登录后购买,享受会员权益"), 1)])]), p("span", {
|
|
10046
10131
|
class: "userChange",
|
|
10047
10132
|
"data-bk": "change",
|
|
10048
|
-
onClick:
|
|
10049
|
-
},
|
|
10133
|
+
onClick: ae
|
|
10134
|
+
}, z(ne.value ? "切换账号" : "立即登录"), 1)]), p("div", ku, [p("div", { class: A(`packageTabTitle ${y.value === 9 ? "reverse" : ""}`) }, [p("div", {
|
|
10050
10135
|
class: "tab tab1 tabcur",
|
|
10051
10136
|
"data-viptype": "1",
|
|
10052
|
-
onClick:
|
|
10053
|
-
}, [...
|
|
10137
|
+
onClick: n[1] ||= (e) => y.value = 1
|
|
10138
|
+
}, [...n[8] ||= [p("span", null, "乐视视频会员", -1), p("i", null, "电脑,iPad ,手机均可使用", -1)]]), p("div", {
|
|
10054
10139
|
class: "tab tab1",
|
|
10055
10140
|
"data-viptype": "9",
|
|
10056
|
-
onClick:
|
|
10057
|
-
}, [...
|
|
10058
|
-
h(
|
|
10059
|
-
modules: [
|
|
10141
|
+
onClick: n[2] ||= (e) => y.value = 9
|
|
10142
|
+
}, [...n[9] ||= [p("span", null, "乐视频会员(电视端)", -1), p("i", null, "电脑,iPad ,手机,电视端均可使用", -1)]])], 2), p("div", Au, [
|
|
10143
|
+
h(V(Xn), {
|
|
10144
|
+
modules: [V(er)],
|
|
10060
10145
|
"slides-per-view": 3,
|
|
10061
10146
|
"slides-per-group": 3,
|
|
10062
10147
|
"space-between": 12,
|
|
@@ -10065,52 +10150,52 @@ var eu = {
|
|
|
10065
10150
|
prevEl: "#precashier_prev",
|
|
10066
10151
|
nextEl: "#precashier_next"
|
|
10067
10152
|
},
|
|
10068
|
-
onSwiper:
|
|
10153
|
+
onSwiper: n[3] ||= (e) => C.value = e
|
|
10069
10154
|
}, {
|
|
10070
|
-
default:
|
|
10071
|
-
default:
|
|
10072
|
-
p("div",
|
|
10073
|
-
|
|
10155
|
+
default: W(() => [(I(!0), f(a, null, ce(ie.value, (e) => (I(), u(V(Zn), { onClick: (t) => b.value = e }, {
|
|
10156
|
+
default: W(() => [p("div", { class: A(`packItem ${b.value?.packageId === e.packageId ? "active" : ""} ${e.giftLedou ? "withledou" : ""}`) }, [
|
|
10157
|
+
p("div", ju, z(e.packageName), 1),
|
|
10158
|
+
E.value.find((t) => t.packageId === e.packageId) && ee.value ? (I(), f(a, { key: 0 }, [p("div", Mu, [n[10] ||= p("span", null, "¥", -1), h(V($l), { value: N.value ? e.price : e.originalPrice }, null, 8, ["value"])]), ye(p("img", {
|
|
10074
10159
|
ref_for: !0,
|
|
10075
10160
|
ref: "rainGifRef",
|
|
10076
10161
|
class: "raingif",
|
|
10077
10162
|
src: "https://i0.letvimg.com/lc20_phone/202609/04/16/50/1788511847441967.gif",
|
|
10078
10163
|
alt: ""
|
|
10079
|
-
}, null, 512), [[
|
|
10080
|
-
e.customFields.iconlong ? (
|
|
10081
|
-
e.customFields.point ? (
|
|
10082
|
-
p("div",
|
|
10164
|
+
}, null, 512), [[_e, N.value && P.value]])], 64)) : (I(), f(a, { key: 1 }, [p("div", Nu, [n[11] ||= p("span", null, "¥", -1), m(z(e.price), 1)]), e.originalPrice ? (I(), f("div", Pu, "¥" + z(e.originalPrice), 1)) : d("", !0)], 64)),
|
|
10165
|
+
e.customFields.iconlong ? (I(), f("div", Fu, z(e.customFields.iconlong), 1)) : d("", !0),
|
|
10166
|
+
e.customFields.point ? (I(), f("div", Iu, z(e.customFields.point), 1)) : d("", !0),
|
|
10167
|
+
p("div", Lu, [N.value && E.value.find((t) => t.packageId === e.packageId) ? (I(), u(nu, {
|
|
10083
10168
|
key: 0,
|
|
10084
|
-
"count-down-name": `package_${
|
|
10085
|
-
onRefresh:
|
|
10169
|
+
"count-down-name": `package_${E.value.length === 1 ? e.packageId : E.value.map((e) => e.packageId).join("_")}`,
|
|
10170
|
+
onRefresh: se
|
|
10086
10171
|
}, null, 8, ["count-down-name"])) : d("", !0)])
|
|
10087
10172
|
], 2)]),
|
|
10088
10173
|
_: 2
|
|
10089
10174
|
}, 1032, ["onClick"]))), 256))]),
|
|
10090
10175
|
_: 1
|
|
10091
10176
|
}, 8, ["modules"]),
|
|
10092
|
-
|
|
10177
|
+
n[14] ||= p("div", {
|
|
10093
10178
|
class: "navigation",
|
|
10094
10179
|
id: "precashier_prev"
|
|
10095
10180
|
}, null, -1),
|
|
10096
|
-
|
|
10181
|
+
n[15] ||= p("div", {
|
|
10097
10182
|
class: "navigation next",
|
|
10098
10183
|
id: "precashier_next"
|
|
10099
10184
|
}, null, -1),
|
|
10100
|
-
|
|
10185
|
+
b.value?.giftLedou ? (I(), f("div", Ru, [n[13] ||= p("img", {
|
|
10101
10186
|
src: "//i2.letvimg.com/lc05_img/202305/11/10/24/1023/icon1.png",
|
|
10102
10187
|
width: "14",
|
|
10103
10188
|
height: "14"
|
|
10104
|
-
}, null, -1), p("span", null, [m(" 送 " +
|
|
10105
|
-
default:
|
|
10189
|
+
}, null, -1), p("span", null, [m(" 送 " + z(b.value.giftLedou) + " 乐豆 ", 1), h(V(Mc), { openDelay: 0 }, {
|
|
10190
|
+
default: W(() => [h(V(Rc), {
|
|
10106
10191
|
as: "img",
|
|
10107
10192
|
src: "https://static.letvcdn.com/lc06_lemf/202310/25/11/14/icon_wenhao.svg"
|
|
10108
|
-
}), h(
|
|
10109
|
-
default:
|
|
10193
|
+
}), h(V(Lc), null, {
|
|
10194
|
+
default: W(() => [h(V(Ic), {
|
|
10110
10195
|
sideOffset: 8,
|
|
10111
10196
|
class: "highZContent"
|
|
10112
10197
|
}, {
|
|
10113
|
-
default:
|
|
10198
|
+
default: W(() => [h(V(kc), { class: "arrow priceTipArrow" }), n[12] ||= p("div", { class: "ledouTipContent" }, [p("div", { class: "title" }, "乐豆说明"), p("div", { class: "content" }, [
|
|
10114
10199
|
m("乐豆可直接用于支付乐视视频中点播内容,乐豆可通过"),
|
|
10115
10200
|
p("span", null, "购买会员"),
|
|
10116
10201
|
m("赠送获得或"),
|
|
@@ -10123,32 +10208,32 @@ var eu = {
|
|
|
10123
10208
|
})]),
|
|
10124
10209
|
_: 1
|
|
10125
10210
|
})])])) : d("", !0),
|
|
10126
|
-
|
|
10127
|
-
|
|
10211
|
+
b.value?.customFields.remark1 || b.value?.customFields.remark2 ? (I(), f("div", zu, [b.value?.customFields.remark1 ? (I(), f("div", Bu, z(b.value?.customFields.remark1), 1)) : d("", !0), b.value?.customFields.remark2 ? (I(), f("div", Vu, z(b.value?.customFields.remark2), 1)) : d("", !0)])) : d("", !0),
|
|
10212
|
+
n[16] ||= p("div", { class: "explainBox" }, [p("div", null, "本页展示的套餐价为新用户专享价或刊例价,划线价为建议零售价"), p("div", null, "如有问题可以联系在线客服:微信公众号“乐视影视会员”【9点-18点】")], -1)
|
|
10128
10213
|
])])]),
|
|
10129
|
-
p("div",
|
|
10130
|
-
p("div",
|
|
10131
|
-
p("div",
|
|
10132
|
-
|
|
10214
|
+
p("div", Hu, [
|
|
10215
|
+
p("div", Uu, [p("div", Wu, [
|
|
10216
|
+
p("div", Gu, [n[17] ||= m(" ¥ ", -1), h(V($l), { value: (b.value?.price || 0) - (x.value?.amount || 0) || 0 }, null, 8, ["value"])]),
|
|
10217
|
+
b.value?.originalPrice && b.value?.price && b.value?.price !== b.value?.originalPrice || x.value?.amount ? (I(), u(V(Mc), {
|
|
10133
10218
|
key: 0,
|
|
10134
10219
|
openDelay: 0
|
|
10135
10220
|
}, {
|
|
10136
|
-
default:
|
|
10221
|
+
default: W(() => [h(V(Rc), {
|
|
10137
10222
|
as: "div",
|
|
10138
10223
|
class: "priceTip"
|
|
10139
10224
|
}, {
|
|
10140
|
-
default:
|
|
10225
|
+
default: W(() => [n[19] ||= p("span", null, "已优惠", -1), p("div", null, [p("span", null, " ¥ " + z(b.value?.originalPrice ? b.value?.originalPrice - b.value?.price + (x.value?.amount || 0) : x.value?.amount || 0), 1), n[18] ||= p("i", { class: "priceTipIcon" }, null, -1)])]),
|
|
10141
10226
|
_: 1
|
|
10142
|
-
}), h(
|
|
10143
|
-
default:
|
|
10227
|
+
}), h(V(Lc), null, {
|
|
10228
|
+
default: W(() => [h(V(Ic), {
|
|
10144
10229
|
sideOffset: 4,
|
|
10145
10230
|
class: "highZContent"
|
|
10146
10231
|
}, {
|
|
10147
|
-
default:
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
p("div",
|
|
10151
|
-
|
|
10232
|
+
default: W(() => [h(V(kc), { class: "arrow priceTipArrow" }), p("div", Ku, [
|
|
10233
|
+
n[20] ||= p("div", { class: "tipTitle1" }, "支付明细", -1),
|
|
10234
|
+
n[21] ||= p("div", { class: "tipTitle2" }, "会员套餐", -1),
|
|
10235
|
+
p("div", qu, [p("div", null, z(b.value?.name) + " " + z(b.value?.packageName), 1), p("div", null, [p("span", Ju, "¥" + z(b.value?.originalPrice), 1), p("span", Yu, "¥" + z(b.value?.price), 1)])]),
|
|
10236
|
+
x.value ? (I(), f("div", Xu, [p("div", null, z(x.value.name), 1), p("div", null, [p("span", Zu, "-¥" + z(x.value.amount), 1)])])) : d("", !0)
|
|
10152
10237
|
])]),
|
|
10153
10238
|
_: 1
|
|
10154
10239
|
})]),
|
|
@@ -10156,54 +10241,54 @@ var eu = {
|
|
|
10156
10241
|
})]),
|
|
10157
10242
|
_: 1
|
|
10158
10243
|
})) : d("", !0),
|
|
10159
|
-
p("div",
|
|
10160
|
-
default:
|
|
10161
|
-
h(
|
|
10162
|
-
disabled:
|
|
10244
|
+
p("div", Qu, [n[23] ||= p("div", null, "代金券", -1), v.value.length > 0 ? (I(), u(V(xc), { key: 0 }, {
|
|
10245
|
+
default: W(({ open: e, close: t }) => [
|
|
10246
|
+
h(V(Oc), {
|
|
10247
|
+
disabled: v.value.length < 1,
|
|
10163
10248
|
as: "div",
|
|
10164
10249
|
class: A(["currentCoupon", e ? "reverse" : ""])
|
|
10165
10250
|
}, {
|
|
10166
|
-
default:
|
|
10251
|
+
default: W(() => [m(z(x.value?.name || "不使用代金券") + " ", 1), v.value.length > 0 ? (I(), f("svg", $u, [...n[22] ||= [p("path", {
|
|
10167
10252
|
d: "M512.146286 619.52L245.296762 352.792381 193.584762 404.48l318.585905 318.415238 318.268952-318.415238-51.736381-51.687619z",
|
|
10168
10253
|
"p-id": "2509"
|
|
10169
10254
|
}, null, -1)]])) : d("", !0)]),
|
|
10170
10255
|
_: 1
|
|
10171
10256
|
}, 8, ["disabled", "class"]),
|
|
10172
|
-
h(
|
|
10173
|
-
h(
|
|
10174
|
-
default:
|
|
10257
|
+
h(V(Sc)),
|
|
10258
|
+
h(V(Dc), null, {
|
|
10259
|
+
default: W(() => [h(V(Ec), {
|
|
10175
10260
|
sideOffset: 18,
|
|
10176
10261
|
align: "end",
|
|
10177
10262
|
class: "highZContent"
|
|
10178
10263
|
}, {
|
|
10179
|
-
default:
|
|
10180
|
-
class: A(["couponItem", e.code ===
|
|
10264
|
+
default: W(() => [p("div", ed, [(I(!0), f(a, null, ce(v.value, (e) => (I(), f("div", {
|
|
10265
|
+
class: A(["couponItem", e.code === x.value?.code ? "active" : ""]),
|
|
10181
10266
|
key: e.code,
|
|
10182
|
-
onClick: (
|
|
10183
|
-
}, [p("div", null,
|
|
10184
|
-
class: A(["couponItem", !
|
|
10267
|
+
onClick: (n) => oe(e, t)
|
|
10268
|
+
}, [p("div", null, z(e.name), 1), p("div", nd, z(e.validEndTime.slice(0, 10)) + "前", 1)], 10, td))), 128)), p("div", {
|
|
10269
|
+
class: A(["couponItem", !x.value && "active"]),
|
|
10185
10270
|
style: { "justify-content": "center" },
|
|
10186
|
-
onClick: (e) =>
|
|
10187
|
-
}, "不使用代金券", 10,
|
|
10271
|
+
onClick: (e) => oe(null, t)
|
|
10272
|
+
}, "不使用代金券", 10, rd)])]),
|
|
10188
10273
|
_: 2
|
|
10189
10274
|
}, 1024)]),
|
|
10190
10275
|
_: 2
|
|
10191
10276
|
}, 1024)
|
|
10192
10277
|
]),
|
|
10193
10278
|
_: 1
|
|
10194
|
-
})) : (
|
|
10279
|
+
})) : (I(), f("div", id, "无可用代金券"))])
|
|
10195
10280
|
])]),
|
|
10196
|
-
p("div",
|
|
10281
|
+
p("div", ad, [
|
|
10197
10282
|
p("img", {
|
|
10198
10283
|
class: "qrcode",
|
|
10199
|
-
src:
|
|
10200
|
-
}, null, 8,
|
|
10201
|
-
|
|
10284
|
+
src: S.value || ""
|
|
10285
|
+
}, null, 8, od),
|
|
10286
|
+
n[25] ||= p("img", {
|
|
10202
10287
|
class: "icon",
|
|
10203
10288
|
src: "https://i1.letvimg.com/lc18_img/202502/07/17/14/zhifubao.png",
|
|
10204
10289
|
alt: ""
|
|
10205
10290
|
}, null, -1),
|
|
10206
|
-
|
|
10291
|
+
ne.value ? d("", !0) : (I(), f("div", sd, [...n[24] ||= [p("svg", {
|
|
10207
10292
|
viewBox: "0 0 1024 1024",
|
|
10208
10293
|
version: "1.1",
|
|
10209
10294
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10216,80 +10301,98 @@ var eu = {
|
|
|
10216
10301
|
"p-id": "5070"
|
|
10217
10302
|
})], -1), p("span", null, "请先登录", -1)]]))
|
|
10218
10303
|
]),
|
|
10219
|
-
p("div",
|
|
10220
|
-
!
|
|
10221
|
-
!
|
|
10222
|
-
m(" " +
|
|
10304
|
+
p("div", cd, [
|
|
10305
|
+
!b.value?.payChannel || b.value?.payChannel?.includes("1") ? (I(), f("i", ld)) : d("", !0),
|
|
10306
|
+
!b.value?.payChannel || b.value?.payChannel?.includes("2") ? (I(), f("i", ud)) : d("", !0),
|
|
10307
|
+
m(" " + z(b.value?.customFields.QRtext || "请扫码完成支付"), 1)
|
|
10223
10308
|
]),
|
|
10224
|
-
p("div",
|
|
10309
|
+
p("div", dd, [y.value === 1 ? (I(), f(a, { key: 0 }, [n[26] ||= p("a", {
|
|
10225
10310
|
href: "https://aboutus.le.com/user/vip.html",
|
|
10226
10311
|
target: "_blank",
|
|
10227
10312
|
class: "vipXY"
|
|
10228
|
-
}, "《会员服务协议》", -1),
|
|
10313
|
+
}, "《会员服务协议》", -1), n[27] ||= p("a", {
|
|
10229
10314
|
href: "https://aboutus.le.com/user/auto.html",
|
|
10230
10315
|
target: "_blank",
|
|
10231
10316
|
class: "xufeiXY"
|
|
10232
|
-
}, "《自动续费服务协议》", -1)], 64)) : d("", !0),
|
|
10317
|
+
}, "《自动续费服务协议》", -1)], 64)) : d("", !0), y.value === 9 ? (I(), f("a", fd, "《乐视频会员服务协议》")) : d("", !0)])
|
|
10233
10318
|
]),
|
|
10234
10319
|
h(fu, {
|
|
10235
|
-
open:
|
|
10236
|
-
"onUpdate:open":
|
|
10237
|
-
redPackages:
|
|
10238
|
-
onClose: ce
|
|
10320
|
+
open: w.value,
|
|
10321
|
+
"onUpdate:open": n[4] ||= (e) => w.value = e,
|
|
10322
|
+
redPackages: E.value
|
|
10239
10323
|
}, null, 8, ["open", "redPackages"]),
|
|
10240
|
-
h(
|
|
10324
|
+
h(gu, {
|
|
10325
|
+
open: T.value,
|
|
10326
|
+
"onUpdate:open": n[5] ||= (e) => T.value = e,
|
|
10327
|
+
twoMonthPackages: O.value,
|
|
10328
|
+
"order-source": e.orderSource,
|
|
10329
|
+
onOnTwoMonthSuccess: me
|
|
10330
|
+
}, null, 8, [
|
|
10331
|
+
"open",
|
|
10332
|
+
"twoMonthPackages",
|
|
10333
|
+
"order-source"
|
|
10334
|
+
]),
|
|
10335
|
+
h(V($c), {
|
|
10241
10336
|
class: "paySuccessToast",
|
|
10242
|
-
open:
|
|
10243
|
-
"onUpdate:open": [
|
|
10337
|
+
open: j.value,
|
|
10338
|
+
"onUpdate:open": [n[6] ||= (e) => j.value = e, n[7] ||= (e) => j.value = e],
|
|
10244
10339
|
"data-xx": "123",
|
|
10245
10340
|
as: "span"
|
|
10246
10341
|
}, {
|
|
10247
|
-
default:
|
|
10248
|
-
default:
|
|
10342
|
+
default: W(() => [h(V(el), { class: "paySuccessTitle" }, {
|
|
10343
|
+
default: W(() => [...n[28] ||= [m("购买成功", -1)]]),
|
|
10249
10344
|
_: 1
|
|
10250
|
-
}), h(
|
|
10251
|
-
default:
|
|
10345
|
+
}), h(V(Qc), null, {
|
|
10346
|
+
default: W(() => [p("div", pd, "购买套餐:" + z(M.value.productName), 1), p("div", md, "支付金额:" + z(M.value.payable), 1)]),
|
|
10252
10347
|
_: 1
|
|
10253
10348
|
})]),
|
|
10254
10349
|
_: 1
|
|
10255
10350
|
}, 8, ["open"]),
|
|
10256
|
-
h(
|
|
10351
|
+
h(V(nl))
|
|
10257
10352
|
])])]),
|
|
10258
10353
|
_: 1
|
|
10259
10354
|
}));
|
|
10260
10355
|
}
|
|
10261
|
-
}), [["__scopeId", "data-v-
|
|
10262
|
-
if (
|
|
10263
|
-
|
|
10356
|
+
}), [["__scopeId", "data-v-9f9d6463"]]), vd = !1, yd = async (e) => {
|
|
10357
|
+
if (vd) return;
|
|
10358
|
+
vd = !0;
|
|
10264
10359
|
let t = document.createElement("div");
|
|
10265
10360
|
document.body.appendChild(t);
|
|
10266
|
-
let n = [], r = [], i =
|
|
10267
|
-
|
|
10268
|
-
},
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10361
|
+
let n = [], r = [], i = {}, a = null, o = () => {
|
|
10362
|
+
se(null, t), t.remove(), vd = !1;
|
|
10363
|
+
}, s = async () => {
|
|
10364
|
+
let [e, t, o] = await Promise.all([
|
|
10365
|
+
Se.get("https://d-api-m.le.com/website/packages", {
|
|
10366
|
+
params: {
|
|
10367
|
+
platform: "pc",
|
|
10368
|
+
member_pos: ""
|
|
10369
|
+
},
|
|
10370
|
+
withCredentials: !0
|
|
10371
|
+
}),
|
|
10372
|
+
Se.get("https://d-api-m.le.com/website/packages", {
|
|
10373
|
+
params: {
|
|
10374
|
+
platform: "pc",
|
|
10375
|
+
member_pos: "vip9_page"
|
|
10376
|
+
},
|
|
10377
|
+
withCredentials: !0
|
|
10378
|
+
}),
|
|
10379
|
+
Se.get("https://d-api-m.le.com/cashier/popupLongvipRenew", { withCredentials: !0 })
|
|
10380
|
+
]);
|
|
10381
|
+
n = e.data.data.packages, r = t.data.data.packages, i = o.data.body.data, a = window.LEPass.getUserInfo();
|
|
10382
|
+
}, c = () => {
|
|
10383
|
+
se(S(_d, {
|
|
10384
|
+
...e,
|
|
10385
|
+
smallPackageList: n,
|
|
10386
|
+
bigPackageList: r,
|
|
10387
|
+
activityTwoMonthsData: i,
|
|
10388
|
+
outUserInfo: a,
|
|
10389
|
+
onClose: o,
|
|
10390
|
+
onRefreshPackages: async () => {
|
|
10391
|
+
await s(), c();
|
|
10392
|
+
}
|
|
10393
|
+
}), t);
|
|
10394
|
+
};
|
|
10395
|
+
await s(), c();
|
|
10293
10396
|
};
|
|
10294
10397
|
//#endregion
|
|
10295
|
-
export {
|
|
10398
|
+
export { Ie as ActivitySwitcher, yd as openCashier };
|