@konnectio/core 4.3.6 → 4.3.8
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/{ActionField-BMKZiDiJ.js → ActionField-D2RyWrS3.js} +32 -32
- package/dist/ActionField-D2RyWrS3.js.br +0 -0
- package/dist/ActionField-D2RyWrS3.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-HWz2N6k7.js → AvailabilitySkeleton-D6GPRc15.js} +83 -83
- package/dist/AvailabilitySkeleton-D6GPRc15.js.br +0 -0
- package/dist/AvailabilitySkeleton-D6GPRc15.js.gz +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-4nck4H1_.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js} +636 -636
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-CP-qPnqI.js.gz +0 -0
- package/dist/{CheckoutWindow-CygAQEhN.js → CheckoutWindow-CbJ0uhN5.js} +250 -250
- package/dist/CheckoutWindow-CbJ0uhN5.js.br +0 -0
- package/dist/CheckoutWindow-CbJ0uhN5.js.gz +0 -0
- package/dist/{ErrorMessage-CJtwhDck.js → ErrorMessage-DaV41_Mx.js} +5 -5
- package/dist/ErrorMessage-DaV41_Mx.js.br +0 -0
- package/dist/ErrorMessage-DaV41_Mx.js.gz +0 -0
- package/dist/EventAvailabilityForm-CCV_-tAo.js +119 -0
- package/dist/EventAvailabilityForm-CCV_-tAo.js.br +0 -0
- package/dist/EventAvailabilityForm-CCV_-tAo.js.gz +0 -0
- package/dist/{Field-BJWCVTGO.js → Field-CcANI2PC.js} +15 -15
- package/dist/Field-CcANI2PC.js.br +0 -0
- package/dist/Field-CcANI2PC.js.gz +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C2vcLWBx.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js} +5 -5
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js.gz +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-BKeIWAxT.js → SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js} +3698 -3669
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js.gz +0 -0
- package/dist/TermsOfService-Cuz_W6Ps.js +28 -0
- package/dist/TermsOfService-Cuz_W6Ps.js.br +0 -0
- package/dist/TermsOfService-Cuz_W6Ps.js.gz +0 -0
- package/dist/_-Dy_VcQvP.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CjRvTIZE.js → _.vue_vue_type_style_index_0_lang-CP_-w1er.js} +3 -3
- package/dist/_.vue_vue_type_style_index_0_lang-CP_-w1er.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CP_-w1er.js.gz +0 -0
- package/dist/availability.js +33 -33
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +32 -32
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/event.js +636 -636
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +48 -48
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +168 -168
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-CbjZKIJ0.js → giftCard-CdHybquX.js} +3 -3
- package/dist/giftCard-CdHybquX.js.br +0 -0
- package/dist/giftCard-CdHybquX.js.gz +0 -0
- package/dist/hotel.js +2314 -2312
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{index-BpsyN2FY.js → index-Cfpi2j0_.js} +107 -91
- package/dist/index-Cfpi2j0_.js.br +0 -0
- package/dist/index-Cfpi2j0_.js.gz +0 -0
- package/dist/{masonry.plugin-CQx4YR-L.js → masonry.plugin-BgwYAWoT.js} +961 -961
- package/dist/masonry.plugin-BgwYAWoT.js.br +0 -0
- package/dist/masonry.plugin-BgwYAWoT.js.gz +0 -0
- package/dist/{mitt-bGMsQrYA.js → mitt-478x9nh_.js} +3345 -3296
- package/dist/mitt-478x9nh_.js.br +0 -0
- package/dist/mitt-478x9nh_.js.gz +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{style-C4ivj8SO.js → style-DpAb9hNM.js} +2 -2
- package/dist/style-DpAb9hNM.js.br +0 -0
- package/dist/style-DpAb9hNM.js.gz +0 -0
- package/package.json +26 -26
- package/dist/ActionField-BMKZiDiJ.js.br +0 -0
- package/dist/ActionField-BMKZiDiJ.js.gz +0 -0
- package/dist/AvailabilitySkeleton-HWz2N6k7.js.br +0 -0
- package/dist/AvailabilitySkeleton-HWz2N6k7.js.gz +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-4nck4H1_.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-4nck4H1_.js.gz +0 -0
- package/dist/CheckoutWindow-CygAQEhN.js.br +0 -0
- package/dist/CheckoutWindow-CygAQEhN.js.gz +0 -0
- package/dist/ErrorMessage-CJtwhDck.js.br +0 -0
- package/dist/ErrorMessage-CJtwhDck.js.gz +0 -0
- package/dist/EventAvailabilityForm-2hNVmD1B.js +0 -119
- package/dist/EventAvailabilityForm-2hNVmD1B.js.br +0 -0
- package/dist/EventAvailabilityForm-2hNVmD1B.js.gz +0 -0
- package/dist/Field-BJWCVTGO.js.br +0 -0
- package/dist/Field-BJWCVTGO.js.gz +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C2vcLWBx.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-C2vcLWBx.js.gz +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BKeIWAxT.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BKeIWAxT.js.gz +0 -0
- package/dist/TermsOfService-CERWtFOo.js +0 -28
- package/dist/TermsOfService-CERWtFOo.js.br +0 -0
- package/dist/TermsOfService-CERWtFOo.js.gz +0 -0
- package/dist/_-CNvItXhQ.js +0 -5
- package/dist/_.vue_vue_type_style_index_0_lang-CjRvTIZE.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-CjRvTIZE.js.gz +0 -0
- package/dist/giftCard-CbjZKIJ0.js.br +0 -0
- package/dist/giftCard-CbjZKIJ0.js.gz +0 -0
- package/dist/index-BpsyN2FY.js.br +0 -0
- package/dist/index-BpsyN2FY.js.gz +0 -0
- package/dist/masonry.plugin-CQx4YR-L.js.br +0 -0
- package/dist/masonry.plugin-CQx4YR-L.js.gz +0 -0
- package/dist/mitt-bGMsQrYA.js.br +0 -0
- package/dist/mitt-bGMsQrYA.js.gz +0 -0
- package/dist/style-C4ivj8SO.js.br +0 -0
- package/dist/style-C4ivj8SO.js.gz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as defineComponent, F as Fragment, Q as Comment, R as Text, U as h, V as getCurrentInstance, W as resolveComponent, r as ref, c as computed$1, D as watch, o as onMounted, h as createElementBlock, b as openBlock, a as createBlock, i as createCommentVNode, w as withCtx, v as renderList, e as createBaseVNode, j as withModifiers, f as createVNode, g as unref, n as normalizeClass, u as useI18n, s as storeToRefs, X as inject, N as resolveDirective, A as createSlots, E as withDirectives, t as toDisplayString, Y as reactive, Z as onUnmounted, K as normalizeStyle, q as renderSlot, $ as nextTick, G as vShow, x as createTextVNode, a0 as mergeModels, y as useSlots, a1 as useModel, T as Transition, z as isRef, _ as _mitt } from "./mitt-
|
|
2
|
-
import { I as Icon, _ as _export_sfc, b as useHotelStore, g as useEventStore, u as useAvailabilityStore, f as useUtilityStore, T as TextField, K as convertDescription, B as BookingLayout, r as capitalized, m as daysBetweenDates, p as showPrice, s as showDate, x as InputField, J as BookingHeaderLayout, P as emitter, w as getUserLanguage, y as useApplyGiftCardStore, e as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { B as Base$1, a as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-
|
|
4
|
-
import { A as ActionField } from "./ActionField-
|
|
5
|
-
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
1
|
+
import { d as defineComponent, F as Fragment, Q as Comment, R as Text, U as h, V as getCurrentInstance, W as resolveComponent, r as ref, c as computed$1, D as watch, o as onMounted, h as createElementBlock, b as openBlock, a as createBlock, i as createCommentVNode, w as withCtx, v as renderList, e as createBaseVNode, j as withModifiers, f as createVNode, g as unref, n as normalizeClass, u as useI18n, s as storeToRefs, X as inject, N as resolveDirective, A as createSlots, E as withDirectives, t as toDisplayString, Y as reactive, Z as onUnmounted, K as normalizeStyle, q as renderSlot, $ as nextTick, G as vShow, x as createTextVNode, a0 as mergeModels, y as useSlots, a1 as useModel, T as Transition, z as isRef, _ as _mitt } from "./mitt-478x9nh_.js";
|
|
2
|
+
import { I as Icon, _ as _export_sfc, b as useHotelStore, g as useEventStore, u as useAvailabilityStore, f as useUtilityStore, T as TextField, K as convertDescription, B as BookingLayout, r as capitalized, m as daysBetweenDates, p as showPrice, s as showDate, x as InputField, J as BookingHeaderLayout, P as emitter, w as getUserLanguage, y as useApplyGiftCardStore, e as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-C1hAI3yg.js";
|
|
3
|
+
import { B as Base$1, a as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-CbJ0uhN5.js";
|
|
4
|
+
import { A as ActionField } from "./ActionField-D2RyWrS3.js";
|
|
5
|
+
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BWfzfCEe.js";
|
|
6
6
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -326,12 +326,12 @@ function getLegacyAgent(s) {
|
|
|
326
326
|
name: "unknown",
|
|
327
327
|
version: "-1",
|
|
328
328
|
majorVersion: -1
|
|
329
|
-
}, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset,
|
|
330
|
-
if (e.chromium = !!
|
|
329
|
+
}, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset, p = d.version, _ = findPreset(CHROMIUM_PRESETS, i);
|
|
330
|
+
if (e.chromium = !!_.preset, e.chromiumVersion = _.version, !e.chromium) {
|
|
331
331
|
var y = findPreset(WEBKIT_PRESETS, i);
|
|
332
332
|
e.webkit = !!y.preset, e.webkitVersion = y.version;
|
|
333
333
|
}
|
|
334
|
-
return f && (n.name = f.id, n.version =
|
|
334
|
+
return f && (n.name = f.id, n.version = p, n.majorVersion = parseInt(p, 10)), l && (e.name = l.id, e.version = u, e.webview && n.name === "ios" && e.name !== "safari" && (e.webview = !1)), e.majorVersion = parseInt(e.version, 10), {
|
|
335
335
|
browser: e,
|
|
336
336
|
os: n,
|
|
337
337
|
isMobile: t,
|
|
@@ -361,13 +361,13 @@ function getClientHintsAgent(s) {
|
|
|
361
361
|
var f = findPresetBrand(WEBKIT_PRESETS, t);
|
|
362
362
|
l.webkit = !!f.brand, l.webkitVersion = f.version || "-1";
|
|
363
363
|
}
|
|
364
|
-
var
|
|
364
|
+
var p = find$1(OS_PRESETS, function(y) {
|
|
365
365
|
return new RegExp("" + y.test, "g").exec(r);
|
|
366
366
|
});
|
|
367
|
-
u.name =
|
|
367
|
+
u.name = p ? p.id : "";
|
|
368
368
|
{
|
|
369
|
-
var
|
|
370
|
-
l.name =
|
|
369
|
+
var _ = findPresetBrand(BROWSER_PRESETS, t);
|
|
370
|
+
l.name = _.brand || l.name, l.version = _.brand && s ? s.uaFullVersion : _.version;
|
|
371
371
|
}
|
|
372
372
|
return l.webkit && (u.name = e ? "ios" : "mac"), u.name === "ios" && l.webview && (l.version = "-1"), u.version = convertVersion(u.version), l.version = convertVersion(l.version), u.majorVersion = parseInt(u.version, 10), l.majorVersion = parseInt(l.version, 10), {
|
|
373
373
|
browser: l,
|
|
@@ -761,21 +761,21 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
761
761
|
}, i.triggerChange = function(t, e, n, r) {
|
|
762
762
|
var l = this;
|
|
763
763
|
r === void 0 && (r = !1);
|
|
764
|
-
var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(),
|
|
765
|
-
pos:
|
|
766
|
-
delta:
|
|
767
|
-
bounceRatio: this._getBounceRatio(
|
|
764
|
+
var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), p = this._getRoundPos(t, e), _ = p.roundPos, y = p.roundDepa, v = d.moveTo(_, y), m = n?.event || f?.event || null, b = {
|
|
765
|
+
pos: v.pos,
|
|
766
|
+
delta: v.delta,
|
|
767
|
+
bounceRatio: this._getBounceRatio(v.pos),
|
|
768
768
|
holding: r,
|
|
769
769
|
inputEvent: m,
|
|
770
770
|
isTrusted: !!m,
|
|
771
771
|
input: n?.input || f?.input || null,
|
|
772
|
-
set: m ? this._createUserControll(
|
|
772
|
+
set: m ? this._createUserControll(v.pos) : function() {
|
|
773
773
|
}
|
|
774
774
|
// eslint-disable-line @typescript-eslint/no-empty-function
|
|
775
775
|
}, P = new ComponentEvent$1("change", b);
|
|
776
|
-
return this._axes.trigger(P), Object.keys(
|
|
777
|
-
var E =
|
|
778
|
-
getObserver(l._axes,
|
|
776
|
+
return this._axes.trigger(P), Object.keys(v.pos).forEach(function(g) {
|
|
777
|
+
var E = v.pos[g];
|
|
778
|
+
getObserver(l._axes, g, E).current = E;
|
|
779
779
|
}), m && d.set(b.set().destPos), !P.isCanceled();
|
|
780
780
|
}, i.triggerAnimationStart = function(t) {
|
|
781
781
|
var e = this._getRoundPos(t.destPos, t.depaPos), n = e.roundPos, r = e.roundDepa;
|
|
@@ -929,22 +929,22 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
929
929
|
var e, n = this.prevEvent, r = this._getCenter(t), l = n ? this._getMovement(t) : {
|
|
930
930
|
x: 0,
|
|
931
931
|
y: 0
|
|
932
|
-
}, u = n ? this._getScale(t) : 1, d = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, f = n ? n.deltaX + l.x : l.x,
|
|
933
|
-
return (!
|
|
932
|
+
}, u = n ? this._getScale(t) : 1, d = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, f = n ? n.deltaX + l.x : l.x, p = n ? n.deltaY + l.y : l.y, _ = l.x, y = l.y, v = this._latestInterval, m = Date.now(), b = v ? m - v.timestamp : 0, P = n ? n.velocityX : 0, g = n ? n.velocityY : 0;
|
|
933
|
+
return (!v || b >= VELOCITY_INTERVAL) && (v && (e = [(f - v.deltaX) / b, (p - v.deltaY) / b], P = e[0], g = e[1]), this._latestInterval = {
|
|
934
934
|
timestamp: m,
|
|
935
935
|
deltaX: f,
|
|
936
|
-
deltaY:
|
|
936
|
+
deltaY: p
|
|
937
937
|
}), {
|
|
938
938
|
srcEvent: t,
|
|
939
939
|
scale: u,
|
|
940
940
|
angle: d,
|
|
941
941
|
center: r,
|
|
942
942
|
deltaX: f,
|
|
943
|
-
deltaY:
|
|
944
|
-
offsetX:
|
|
943
|
+
deltaY: p,
|
|
944
|
+
offsetX: _,
|
|
945
945
|
offsetY: y,
|
|
946
946
|
velocityX: P,
|
|
947
|
-
velocityY:
|
|
947
|
+
velocityY: g,
|
|
948
948
|
preventSystemEvent: !0
|
|
949
949
|
};
|
|
950
950
|
}, i._getDistance = function(t, e) {
|
|
@@ -1173,24 +1173,24 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1173
1173
|
var l = e.srcEvent ? e.srcEvent : e;
|
|
1174
1174
|
if (!l.__childrenAxesAlreadyChanged) {
|
|
1175
1175
|
var u = this._moveDistance || this._axisManager.get(t.axes), d;
|
|
1176
|
-
d = map(u, function(y,
|
|
1177
|
-
return y + (n[
|
|
1178
|
-
}), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(y,
|
|
1179
|
-
var m =
|
|
1176
|
+
d = map(u, function(y, v) {
|
|
1177
|
+
return y + (n[v] || 0);
|
|
1178
|
+
}), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(y, v) {
|
|
1179
|
+
var m = v.circular, b = v.range;
|
|
1180
1180
|
return m && (m[0] || m[1]) ? getCirculatedPos(y, b, m) : y;
|
|
1181
|
-
})), this._isOutside && this._axisManager.every(u, function(y,
|
|
1182
|
-
return !isOutside(y,
|
|
1181
|
+
})), this._isOutside && this._axisManager.every(u, function(y, v) {
|
|
1182
|
+
return !isOutside(y, v.range);
|
|
1183
1183
|
}) && (this._isOutside = !1), u = this._atOutside(u), d = this._atOutside(d), (!this.options.nested || !this._isEndofAxis(n, u, d)) && (l.__childrenAxesAlreadyChanged = !0);
|
|
1184
1184
|
var f = {
|
|
1185
1185
|
input: t,
|
|
1186
1186
|
event: e
|
|
1187
1187
|
};
|
|
1188
1188
|
if (r) {
|
|
1189
|
-
var
|
|
1190
|
-
this._animationManager.animateTo(d,
|
|
1189
|
+
var p = this._animationManager.getDuration(d, u);
|
|
1190
|
+
this._animationManager.animateTo(d, p, f);
|
|
1191
1191
|
} else {
|
|
1192
|
-
var
|
|
1193
|
-
|
|
1192
|
+
var _ = !this._eventManager.triggerChange(d, u, f, !0);
|
|
1193
|
+
_ && (this._isStopped = !0, this._moveDistance = null, this._animationManager.finish(!1));
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
@@ -1200,23 +1200,23 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1200
1200
|
l.__childrenAxesAlreadyReleased && (n = n.map(function() {
|
|
1201
1201
|
return 0;
|
|
1202
1202
|
}));
|
|
1203
|
-
var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n),
|
|
1204
|
-
return E.circular && (E.circular[0] || E.circular[1]) ? u[T] +
|
|
1203
|
+
var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n), p = toAxis(t.axes, f), _ = this._axisManager.get(this._axisManager.map(p, function(g, E, T) {
|
|
1204
|
+
return E.circular && (E.circular[0] || E.circular[1]) ? u[T] + g : getInsidePosition(u[T] + g, E.range, E.circular, E.bounce);
|
|
1205
1205
|
}));
|
|
1206
1206
|
l.__childrenAxesAlreadyReleased = !0;
|
|
1207
|
-
var y = this._animationManager.getDuration(
|
|
1208
|
-
y === 0 && (
|
|
1209
|
-
var
|
|
1207
|
+
var y = this._animationManager.getDuration(_, u, r);
|
|
1208
|
+
y === 0 && (_ = __assign$3({}, d));
|
|
1209
|
+
var v = {
|
|
1210
1210
|
depaPos: d,
|
|
1211
|
-
destPos:
|
|
1211
|
+
destPos: _,
|
|
1212
1212
|
duration: y,
|
|
1213
|
-
delta: this._axisManager.getDelta(d,
|
|
1213
|
+
delta: this._axisManager.getDelta(d, _),
|
|
1214
1214
|
inputEvent: e,
|
|
1215
1215
|
input: t,
|
|
1216
1216
|
isTrusted: !0
|
|
1217
1217
|
};
|
|
1218
|
-
--this._eventManager.holdingCount, this._eventManager.triggerRelease(
|
|
1219
|
-
var m = this._animationManager.getUserControl(
|
|
1218
|
+
--this._eventManager.holdingCount, this._eventManager.triggerRelease(v), this._eventManager.holdingCount === 0 && (this._moveDistance = null);
|
|
1219
|
+
var m = this._animationManager.getUserControl(v), b = equal(m.destPos, d), P = {
|
|
1220
1220
|
input: t,
|
|
1221
1221
|
event: e
|
|
1222
1222
|
};
|
|
@@ -1301,17 +1301,17 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1301
1301
|
var r = this;
|
|
1302
1302
|
this.stopAnimation();
|
|
1303
1303
|
var l = this._createAnimationParam(t, e, n), u = __assign$3({}, l.depaPos), d = this.eventManager.triggerAnimationStart(l), f = this.getUserControl(l);
|
|
1304
|
-
if (!d && this.axisManager.every(f.destPos, function(
|
|
1305
|
-
return isCircularable(
|
|
1304
|
+
if (!d && this.axisManager.every(f.destPos, function(_, y) {
|
|
1305
|
+
return isCircularable(_, y.range, y.circular);
|
|
1306
1306
|
}) && console.warn("You can't stop the 'animation' event when 'circular' is true."), d && !equal(f.destPos, u)) {
|
|
1307
|
-
var
|
|
1307
|
+
var p = n?.event || null;
|
|
1308
1308
|
this._animateLoop({
|
|
1309
1309
|
depaPos: u,
|
|
1310
1310
|
destPos: f.destPos,
|
|
1311
1311
|
duration: f.duration,
|
|
1312
1312
|
delta: this.axisManager.getDelta(u, f.destPos),
|
|
1313
|
-
isTrusted: !!
|
|
1314
|
-
inputEvent:
|
|
1313
|
+
isTrusted: !!p,
|
|
1314
|
+
inputEvent: p,
|
|
1315
1315
|
input: n?.input || null
|
|
1316
1316
|
}, function() {
|
|
1317
1317
|
return r.animationEnd();
|
|
@@ -1327,8 +1327,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1327
1327
|
return r[d] !== u;
|
|
1328
1328
|
});
|
|
1329
1329
|
return Object.keys(l).length ? (l = this.axisManager.map(l, function(u, d) {
|
|
1330
|
-
var f = d.range,
|
|
1331
|
-
return
|
|
1330
|
+
var f = d.range, p = d.circular;
|
|
1331
|
+
return p && (p[0] || p[1]) ? u : getInsidePosition(u, f, p);
|
|
1332
1332
|
}), equal(l, r) ? this : (e > 0 ? this.animateTo(l, e) : (this.stopAnimation(), this.eventManager.triggerChange(l), this.finish(!1)), this)) : this;
|
|
1333
1333
|
}, i.setBy = function(t, e) {
|
|
1334
1334
|
return e === void 0 && (e = 0), this.setTo(map(this.axisManager.get(Object.keys(t)), function(n, r) {
|
|
@@ -1358,11 +1358,11 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1358
1358
|
return d;
|
|
1359
1359
|
}), l = this._initState(this._animateParam), u = function() {
|
|
1360
1360
|
n._raf = null;
|
|
1361
|
-
var d = n._animateParam, f = n._getNextState(l),
|
|
1361
|
+
var d = n._animateParam, f = n._getNextState(l), p = !n.eventManager.triggerChange(f.pos, l.pos);
|
|
1362
1362
|
if (l = f, f.finished) {
|
|
1363
1363
|
d.destPos = n._getFinalPos(d.destPos, r), equal(d.destPos, n.axisManager.get(Object.keys(d.destPos))) || n.eventManager.triggerChange(d.destPos, f.pos), e();
|
|
1364
1364
|
return;
|
|
1365
|
-
} else
|
|
1365
|
+
} else p ? n.finish(!1) : n._raf = requestAnimationFrame$2(u);
|
|
1366
1366
|
};
|
|
1367
1367
|
u();
|
|
1368
1368
|
} else
|
|
@@ -1371,8 +1371,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1371
1371
|
var n = this, r = 1e-6, l = map(t, function(u, d) {
|
|
1372
1372
|
if (u >= e[d] - r && u <= e[d] + r)
|
|
1373
1373
|
return e[d];
|
|
1374
|
-
var f = n._getRoundUnit(u, d),
|
|
1375
|
-
return
|
|
1374
|
+
var f = n._getRoundUnit(u, d), p = roundNumber(u, f);
|
|
1375
|
+
return p;
|
|
1376
1376
|
});
|
|
1377
1377
|
return l;
|
|
1378
1378
|
}, i._getRoundUnit = function(t, e) {
|
|
@@ -1406,8 +1406,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1406
1406
|
this._initialEasingPer = this._prevEasingPer, r.delta = this.axisManager.getDelta(f, u), r.destPos = u;
|
|
1407
1407
|
}
|
|
1408
1408
|
if (e?.duration) {
|
|
1409
|
-
var
|
|
1410
|
-
this._durationOffset =
|
|
1409
|
+
var p = (l + this._durationOffset) / r.duration;
|
|
1410
|
+
this._durationOffset = p * d - l, r.duration = d;
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
}, t._initState = function(e) {
|
|
@@ -1417,20 +1417,20 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1417
1417
|
finished: !1
|
|
1418
1418
|
};
|
|
1419
1419
|
}, t._getNextState = function(e) {
|
|
1420
|
-
var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(
|
|
1421
|
-
return
|
|
1422
|
-
}), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime,
|
|
1423
|
-
var P =
|
|
1424
|
-
if (P !==
|
|
1420
|
+
var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(v, m) {
|
|
1421
|
+
return v <= u[m] ? 1 : -1;
|
|
1422
|
+
}), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, p = (f + this._durationOffset) / r.duration, _ = this._easing(p), y = this.axisManager.map(l, function(v, m, b) {
|
|
1423
|
+
var P = p >= 1 ? u[b] : v + r.delta[b] * (_ - n._prevEasingPer) / (1 - n._initialEasingPer), g = getCirculatedPos(P, m.range, m.circular);
|
|
1424
|
+
if (P !== g) {
|
|
1425
1425
|
var E = d[b] * (m.range[1] - m.range[0]);
|
|
1426
1426
|
u[b] -= E, l[b] -= E;
|
|
1427
1427
|
}
|
|
1428
|
-
return
|
|
1428
|
+
return g;
|
|
1429
1429
|
});
|
|
1430
|
-
return this._prevEasingPer =
|
|
1430
|
+
return this._prevEasingPer = _, {
|
|
1431
1431
|
pos: y,
|
|
1432
|
-
easingPer:
|
|
1433
|
-
finished:
|
|
1432
|
+
easingPer: _,
|
|
1433
|
+
finished: _ >= 1
|
|
1434
1434
|
};
|
|
1435
1435
|
}, t._easing = function(e) {
|
|
1436
1436
|
return e > 1 ? 1 : this._options.easing(e);
|
|
@@ -1560,30 +1560,30 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1560
1560
|
this._dragged = !1, this._isOverThreshold = !1, this._observer.hold(this, d), this._atRightEdge = IS_IOS_SAFARI && d.center.x > window.innerWidth - f, this._attachWindowEvent(u), l && d.srcEvent.type !== "touchstart" && d.srcEvent.preventDefault(), u.prevEvent = d;
|
|
1561
1561
|
}
|
|
1562
1562
|
}, i._onPanmove = function(t) {
|
|
1563
|
-
var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton,
|
|
1564
|
-
if (m === 0 || u &&
|
|
1563
|
+
var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, p = n.threshold, _ = n.thresholdAngle, y = this._activeEvent, v = y.onEventMove(t, d, f), m = y.getTouches(t, f);
|
|
1564
|
+
if (m === 0 || u && v && !v.srcEvent.cancelable) {
|
|
1565
1565
|
this._onPanend(t);
|
|
1566
1566
|
return;
|
|
1567
1567
|
}
|
|
1568
|
-
if (!(!
|
|
1569
|
-
var b = getDirectionByAngle(
|
|
1568
|
+
if (!(!v || !this._enabled || m > 1)) {
|
|
1569
|
+
var b = getDirectionByAngle(v.angle, _), P = useDirection(DIRECTION_HORIZONTAL, this._direction, b), g = useDirection(DIRECTION_VERTICAL, this._direction, b);
|
|
1570
1570
|
if (y.prevEvent && IS_IOS_SAFARI) {
|
|
1571
|
-
var E =
|
|
1571
|
+
var E = v.center.x < 0;
|
|
1572
1572
|
if (E) {
|
|
1573
1573
|
this.release();
|
|
1574
1574
|
return;
|
|
1575
1575
|
} else if (this._atRightEdge) {
|
|
1576
1576
|
clearTimeout(this._rightEdgeTimer);
|
|
1577
|
-
var T =
|
|
1577
|
+
var T = v.deltaX < -r;
|
|
1578
1578
|
T ? this._atRightEdge = !1 : this._rightEdgeTimer = window.setTimeout(function() {
|
|
1579
1579
|
return e.release();
|
|
1580
1580
|
}, 100);
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
|
-
var O = this._getDistance([
|
|
1584
|
-
return
|
|
1583
|
+
var O = this._getDistance([v.deltaX, v.deltaY], [P, g]), S = this._getOffset([v.offsetX, v.offsetY], [P, g]), C = S.some(function(k) {
|
|
1584
|
+
return k !== 0;
|
|
1585
1585
|
});
|
|
1586
|
-
|
|
1586
|
+
C && (v.srcEvent.cancelable !== !1 && v.srcEvent.preventDefault(), v.srcEvent.stopPropagation()), v.preventSystemEvent = C, C && (this._isOverThreshold || O >= p) && (this._dragged = l, this._isOverThreshold = !0, this._observer.change(this, v, toAxis(this.axes, S))), y.prevEvent = v;
|
|
1587
1587
|
}
|
|
1588
1588
|
}, i._onPanend = function(t) {
|
|
1589
1589
|
var e = this.options.inputButton, n = this._activeEvent;
|
|
@@ -1835,18 +1835,18 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1835
1835
|
var f = n.getLoader(u, {
|
|
1836
1836
|
prefix: r
|
|
1837
1837
|
});
|
|
1838
|
-
return f.check(), f.on("error", function(
|
|
1839
|
-
n.onError(d,
|
|
1840
|
-
}).on("preReady", function(
|
|
1841
|
-
var
|
|
1842
|
-
|
|
1838
|
+
return f.check(), f.on("error", function(p) {
|
|
1839
|
+
n.onError(d, p.target);
|
|
1840
|
+
}).on("preReady", function(p) {
|
|
1841
|
+
var _ = n.elementInfos[d];
|
|
1842
|
+
_.hasLoading = p.hasLoading, _.isSkip = p.isSkip;
|
|
1843
1843
|
var y = n.checkPreReady(d);
|
|
1844
1844
|
n.onPreReadyElement(d), y && n.onPreReady();
|
|
1845
|
-
}).on("ready", function(
|
|
1846
|
-
var
|
|
1847
|
-
m.hasLoading = y, m.isSkip =
|
|
1848
|
-
var b =
|
|
1849
|
-
|
|
1845
|
+
}).on("ready", function(p) {
|
|
1846
|
+
var _ = p.withPreReady, y = p.hasLoading, v = p.isSkip, m = n.elementInfos[d];
|
|
1847
|
+
m.hasLoading = y, m.isSkip = v;
|
|
1848
|
+
var b = _ && n.checkPreReady(d), P = n.checkReady(d);
|
|
1849
|
+
_ && n.onPreReadyElement(d), n.onReadyElement(d), b && n.onPreReady(), P && n.onReady();
|
|
1850
1850
|
}), {
|
|
1851
1851
|
loader: f,
|
|
1852
1852
|
element: u,
|
|
@@ -1883,25 +1883,25 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1883
1883
|
var r = this, l = e.tagName.toLowerCase(), u = this.options.loaders, d = n.prefix, f = Object.keys(u);
|
|
1884
1884
|
if (u[l])
|
|
1885
1885
|
return new u[l](e, n);
|
|
1886
|
-
var
|
|
1887
|
-
|
|
1886
|
+
var p = new ElementLoader(e, n), _ = toArray$1(e.querySelectorAll(f.join(", ")));
|
|
1887
|
+
p.setHasLoading(_.some(function(m) {
|
|
1888
1888
|
return hasLoadingAttribute(m, d);
|
|
1889
1889
|
}));
|
|
1890
|
-
var y = !1,
|
|
1891
|
-
|
|
1890
|
+
var y = !1, v = this.clone().on("error", function(m) {
|
|
1891
|
+
p.onError(m.target);
|
|
1892
1892
|
}).on("ready", function() {
|
|
1893
|
-
|
|
1893
|
+
p.onReady(y);
|
|
1894
1894
|
});
|
|
1895
|
-
return
|
|
1895
|
+
return p.on("requestChildren", function() {
|
|
1896
1896
|
var m = getContentElements(e, f, r.options.prefix);
|
|
1897
|
-
|
|
1898
|
-
y = b.isReady, y ||
|
|
1897
|
+
v.check(m).on("preReady", function(b) {
|
|
1898
|
+
y = b.isReady, y || p.onPreReady();
|
|
1899
1899
|
});
|
|
1900
1900
|
}).on("reqeustReadyChildren", function() {
|
|
1901
|
-
|
|
1901
|
+
v.check(_);
|
|
1902
1902
|
}).on("requestDestroy", function() {
|
|
1903
|
-
|
|
1904
|
-
}),
|
|
1903
|
+
v.destroy();
|
|
1904
|
+
}), p;
|
|
1905
1905
|
}, t.clone = function() {
|
|
1906
1906
|
return new i(__assign$2({}, this.options));
|
|
1907
1907
|
}, t.checkPreReady = function(e) {
|
|
@@ -2038,22 +2038,22 @@ function __awaiter$1(s, i, t, e) {
|
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
2040
|
return new (t || (t = Promise))(function(r, l) {
|
|
2041
|
-
function u(
|
|
2041
|
+
function u(p) {
|
|
2042
2042
|
try {
|
|
2043
|
-
f(e.next(
|
|
2044
|
-
} catch (
|
|
2045
|
-
l(
|
|
2043
|
+
f(e.next(p));
|
|
2044
|
+
} catch (_) {
|
|
2045
|
+
l(_);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
|
-
function d(
|
|
2048
|
+
function d(p) {
|
|
2049
2049
|
try {
|
|
2050
|
-
f(e.throw(
|
|
2051
|
-
} catch (
|
|
2052
|
-
l(
|
|
2050
|
+
f(e.throw(p));
|
|
2051
|
+
} catch (_) {
|
|
2052
|
+
l(_);
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
|
-
function f(
|
|
2056
|
-
|
|
2055
|
+
function f(p) {
|
|
2056
|
+
p.done ? r(p.value) : n(p.value).then(u, d);
|
|
2057
2057
|
}
|
|
2058
2058
|
f((e = e.apply(s, [])).next());
|
|
2059
2059
|
});
|
|
@@ -2076,8 +2076,8 @@ function __generator$1(s, i) {
|
|
|
2076
2076
|
return this;
|
|
2077
2077
|
}), l;
|
|
2078
2078
|
function u(f) {
|
|
2079
|
-
return function(
|
|
2080
|
-
return d([f,
|
|
2079
|
+
return function(p) {
|
|
2080
|
+
return d([f, p]);
|
|
2081
2081
|
};
|
|
2082
2082
|
}
|
|
2083
2083
|
function d(f) {
|
|
@@ -2121,8 +2121,8 @@ function __generator$1(s, i) {
|
|
|
2121
2121
|
continue;
|
|
2122
2122
|
}
|
|
2123
2123
|
f = i.call(s, t);
|
|
2124
|
-
} catch (
|
|
2125
|
-
f = [6,
|
|
2124
|
+
} catch (p) {
|
|
2125
|
+
f = [6, p], n = 0;
|
|
2126
2126
|
} finally {
|
|
2127
2127
|
e = r = 0;
|
|
2128
2128
|
}
|
|
@@ -2427,12 +2427,12 @@ var CODE = {
|
|
|
2427
2427
|
if (d)
|
|
2428
2428
|
l = n ? u : u - f;
|
|
2429
2429
|
else {
|
|
2430
|
-
var
|
|
2431
|
-
l = n ? u +
|
|
2430
|
+
var p = t ? parseFloat(r.paddingLeft || "0") + parseFloat(r.paddingRight || "0") : parseFloat(r.paddingTop || "0") + parseFloat(r.paddingBottom || "0");
|
|
2431
|
+
l = n ? u + p + f : u + p;
|
|
2432
2432
|
}
|
|
2433
2433
|
} else {
|
|
2434
|
-
var
|
|
2435
|
-
l = n ? i["offset" +
|
|
2434
|
+
var _ = t ? "Width" : "Height";
|
|
2435
|
+
l = n ? i["offset" + _] : i["client" + _];
|
|
2436
2436
|
}
|
|
2437
2437
|
return Math.max(l, 0);
|
|
2438
2438
|
}, setPrototypeOf = Object.setPrototypeOf || function(s, i) {
|
|
@@ -2554,10 +2554,10 @@ var CODE = {
|
|
|
2554
2554
|
return y.target === r.element;
|
|
2555
2555
|
}) && n.length === 1;
|
|
2556
2556
|
if (f) {
|
|
2557
|
-
var
|
|
2557
|
+
var p = {
|
|
2558
2558
|
width: r.viewport.width,
|
|
2559
2559
|
height: r.viewport.height
|
|
2560
|
-
},
|
|
2560
|
+
}, _ = {
|
|
2561
2561
|
width: getElementSize({
|
|
2562
2562
|
el: d,
|
|
2563
2563
|
horizontal: !0,
|
|
@@ -2573,7 +2573,7 @@ var CODE = {
|
|
|
2573
2573
|
style: getStyle(d)
|
|
2574
2574
|
})
|
|
2575
2575
|
};
|
|
2576
|
-
if (
|
|
2576
|
+
if (p.height === _.height && p.width === _.width)
|
|
2577
2577
|
return;
|
|
2578
2578
|
}
|
|
2579
2579
|
l <= 0 ? r.resize() : (e._maxResizeDebounceTimer <= 0 && u > 0 && u >= l && (e._maxResizeDebounceTimer = window.setTimeout(e._doScheduledResize, u)), e._resizeTimer > 0 && (clearTimeout(e._resizeTimer), e._resizeTimer = 0), e._resizeTimer = window.setTimeout(e._doScheduledResize, l));
|
|
@@ -2858,15 +2858,15 @@ var State = /* @__PURE__ */ function() {
|
|
|
2858
2858
|
var e = t.flicking, n = t.axesEvent, r = t.transitTo, l = n.delta[POSITION_KEY];
|
|
2859
2859
|
if (l) {
|
|
2860
2860
|
this._delta += l;
|
|
2861
|
-
var u = e.camera, d = u.position, f = n.pos[POSITION_KEY],
|
|
2862
|
-
u.lookAt(
|
|
2863
|
-
var
|
|
2861
|
+
var u = e.camera, d = u.position, f = n.pos[POSITION_KEY], p = e.circularEnabled ? circulatePosition(f, u.range.min, u.range.max) : f;
|
|
2862
|
+
u.lookAt(p);
|
|
2863
|
+
var _ = new ComponentEvent$1(EVENTS.MOVE, {
|
|
2864
2864
|
isTrusted: n.isTrusted,
|
|
2865
2865
|
holding: this.holding,
|
|
2866
2866
|
direction: getDirection(0, n.delta[POSITION_KEY]),
|
|
2867
2867
|
axesEvent: n
|
|
2868
2868
|
});
|
|
2869
|
-
e.trigger(
|
|
2869
|
+
e.trigger(_), _.isCanceled() && (u.lookAt(d), r(STATE_TYPE.DISABLED));
|
|
2870
2870
|
}
|
|
2871
2871
|
}, s;
|
|
2872
2872
|
}(), IdleState = /* @__PURE__ */ function(s) {
|
|
@@ -2929,18 +2929,18 @@ var State = /* @__PURE__ */ function() {
|
|
|
2929
2929
|
}, t.onFinish = function(e) {
|
|
2930
2930
|
var n, r, l = e.flicking, u = e.transitTo;
|
|
2931
2931
|
if (u(STATE_TYPE.IDLE), !!this._releaseEvent) {
|
|
2932
|
-
var d = this._releaseEvent, f = d.inputEvent.srcEvent,
|
|
2932
|
+
var d = this._releaseEvent, f = d.inputEvent.srcEvent, p;
|
|
2933
2933
|
if (f.type === "touchend") {
|
|
2934
|
-
var
|
|
2935
|
-
|
|
2934
|
+
var _ = f, y = _.changedTouches[0];
|
|
2935
|
+
p = document.elementFromPoint(y.clientX, y.clientY);
|
|
2936
2936
|
} else
|
|
2937
|
-
|
|
2938
|
-
var
|
|
2937
|
+
p = f.target;
|
|
2938
|
+
var v = l.renderer.panels, m = null;
|
|
2939
2939
|
try {
|
|
2940
|
-
for (var b = __values(
|
|
2941
|
-
var
|
|
2942
|
-
if (
|
|
2943
|
-
m =
|
|
2940
|
+
for (var b = __values(v), P = b.next(); !P.done; P = b.next()) {
|
|
2941
|
+
var g = P.value;
|
|
2942
|
+
if (g.contains(p)) {
|
|
2943
|
+
m = g;
|
|
2944
2944
|
break;
|
|
2945
2945
|
}
|
|
2946
2946
|
}
|
|
@@ -2984,9 +2984,9 @@ var State = /* @__PURE__ */ function() {
|
|
|
2984
2984
|
return;
|
|
2985
2985
|
}
|
|
2986
2986
|
u(STATE_TYPE.ANIMATING);
|
|
2987
|
-
var d = r.control, f = l.destPos[POSITION_KEY],
|
|
2987
|
+
var d = r.control, f = l.destPos[POSITION_KEY], p = Math.max(l.duration, r.duration);
|
|
2988
2988
|
try {
|
|
2989
|
-
d.moveToPosition(f,
|
|
2989
|
+
d.moveToPosition(f, p, l);
|
|
2990
2990
|
} catch {
|
|
2991
2991
|
u(STATE_TYPE.IDLE), l.setTo((n = {}, n[POSITION_KEY] = r.camera.position, n), 0);
|
|
2992
2992
|
}
|
|
@@ -3014,8 +3014,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3014
3014
|
direction: getDirection(f.start, f.end),
|
|
3015
3015
|
axesEvent: r
|
|
3016
3016
|
}));
|
|
3017
|
-
var
|
|
3018
|
-
|
|
3017
|
+
var p = this._targetPanel;
|
|
3018
|
+
p && u.setActive(p, u.activePanel, r.isTrusted);
|
|
3019
3019
|
}, i;
|
|
3020
3020
|
}(State), DisabledState = /* @__PURE__ */ function(s) {
|
|
3021
3021
|
__extends$2(i, s);
|
|
@@ -3266,10 +3266,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
3266
3266
|
r.connect(t.horizontal ? [POSITION_KEY, ""] : ["", POSITION_KEY], this._panInput);
|
|
3267
3267
|
var l = function(d) {
|
|
3268
3268
|
var f = EVENT[d];
|
|
3269
|
-
r.on(f, function(
|
|
3269
|
+
r.on(f, function(p) {
|
|
3270
3270
|
n._stateMachine.fire(f, {
|
|
3271
3271
|
flicking: t,
|
|
3272
|
-
axesEvent:
|
|
3272
|
+
axesEvent: p
|
|
3273
3273
|
});
|
|
3274
3274
|
});
|
|
3275
3275
|
};
|
|
@@ -3314,31 +3314,31 @@ var State = /* @__PURE__ */ function() {
|
|
|
3314
3314
|
return Promise.reject(new FlickingError(MESSAGE.NOT_ATTACHED_TO_FLICKING, CODE.NOT_ATTACHED_TO_FLICKING));
|
|
3315
3315
|
var f = u.get([POSITION_KEY])[POSITION_KEY];
|
|
3316
3316
|
if (f === t) {
|
|
3317
|
-
var
|
|
3318
|
-
return
|
|
3317
|
+
var p = getFlickingAttached(this._flicking);
|
|
3318
|
+
return p.camera.lookAt(t), d.targetPanel && p.control.setActive(d.targetPanel, p.control.activePanel, (l = n?.isTrusted) !== null && l !== void 0 ? l : !1), Promise.resolve();
|
|
3319
3319
|
}
|
|
3320
3320
|
this._animatingContext = {
|
|
3321
3321
|
start: f,
|
|
3322
3322
|
end: t,
|
|
3323
3323
|
offset: 0
|
|
3324
3324
|
};
|
|
3325
|
-
var
|
|
3326
|
-
var y,
|
|
3325
|
+
var _ = function() {
|
|
3326
|
+
var y, v, m = function() {
|
|
3327
3327
|
r._animatingContext = {
|
|
3328
3328
|
start: 0,
|
|
3329
3329
|
end: 0,
|
|
3330
3330
|
offset: 0
|
|
3331
3331
|
};
|
|
3332
3332
|
};
|
|
3333
|
-
u.once(EVENT.FINISH, m), n ? n.setTo((y = {}, y[POSITION_KEY] = t, y), e) : u.setTo((
|
|
3333
|
+
u.once(EVENT.FINISH, m), n ? n.setTo((y = {}, y[POSITION_KEY] = t, y), e) : u.setTo((v = {}, v[POSITION_KEY] = t, v), e);
|
|
3334
3334
|
};
|
|
3335
|
-
return new Promise(function(y,
|
|
3335
|
+
return new Promise(function(y, v) {
|
|
3336
3336
|
var m = function() {
|
|
3337
3337
|
u.off(EVENT.HOLD, b), y();
|
|
3338
3338
|
}, b = function() {
|
|
3339
|
-
u.off(EVENT.FINISH, m),
|
|
3339
|
+
u.off(EVENT.FINISH, m), v(new FlickingError(MESSAGE.ANIMATION_INTERRUPTED, CODE.ANIMATION_INTERRUPTED));
|
|
3340
3340
|
};
|
|
3341
|
-
u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, b),
|
|
3341
|
+
u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, b), _();
|
|
3342
3342
|
});
|
|
3343
3343
|
}, i.updateDirection = function() {
|
|
3344
3344
|
var t = getFlickingAttached(this._flicking), e = this._axes, n = this._panInput;
|
|
@@ -3469,23 +3469,23 @@ var State = /* @__PURE__ */ function() {
|
|
|
3469
3469
|
}, i.copy = function(t) {
|
|
3470
3470
|
this._flicking = t._flicking, this._activePanel = t._activePanel, this._controller = t._controller;
|
|
3471
3471
|
}, i._triggerIndexChangeEvent = function(t, e, n, r) {
|
|
3472
|
-
var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera,
|
|
3472
|
+
var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera, p = this._activePanel, _ = new ComponentEvent$1(d, {
|
|
3473
3473
|
index: t.index,
|
|
3474
3474
|
panel: t,
|
|
3475
3475
|
isTrusted: n?.isTrusted || !1,
|
|
3476
|
-
direction: r ?? getDirection((l =
|
|
3476
|
+
direction: r ?? getDirection((l = p?.position) !== null && l !== void 0 ? l : f.position, e)
|
|
3477
3477
|
});
|
|
3478
|
-
if (this._nextPanel = t, u.trigger(
|
|
3478
|
+
if (this._nextPanel = t, u.trigger(_), _.isCanceled())
|
|
3479
3479
|
throw new FlickingError(MESSAGE.STOP_CALLED_BY_USER, CODE.STOP_CALLED_BY_USER);
|
|
3480
3480
|
}, i._animateToPosition = function(t) {
|
|
3481
3481
|
var e = t.position, n = t.duration, r = t.newActivePanel, l = t.axesEvent;
|
|
3482
3482
|
return __awaiter$1(this, void 0, void 0, function() {
|
|
3483
|
-
var u, d, f,
|
|
3484
|
-
return __generator$1(this, function(
|
|
3483
|
+
var u, d, f, p = this;
|
|
3484
|
+
return __generator$1(this, function(_) {
|
|
3485
3485
|
return u = getFlickingAttached(this._flicking), d = function() {
|
|
3486
|
-
return
|
|
3486
|
+
return p._controller.animateTo(e, n, l);
|
|
3487
3487
|
}, f = this._controller.state, f.targetPanel = r, n <= 0 ? [2, d()] : [2, d().then(function() {
|
|
3488
|
-
return __awaiter$1(
|
|
3488
|
+
return __awaiter$1(p, void 0, void 0, function() {
|
|
3489
3489
|
return __generator$1(this, function(y) {
|
|
3490
3490
|
switch (y.label) {
|
|
3491
3491
|
case 0:
|
|
@@ -3512,11 +3512,11 @@ var State = /* @__PURE__ */ function() {
|
|
|
3512
3512
|
if (!r.canReach(t))
|
|
3513
3513
|
l = u.position, t = u.panel;
|
|
3514
3514
|
else if (n.circularEnabled) {
|
|
3515
|
-
var d = this._controller.position, f = r.rangeDiff,
|
|
3516
|
-
return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ?
|
|
3515
|
+
var d = this._controller.position, f = r.rangeDiff, p = [l, l + f, l - f].filter(function(_) {
|
|
3516
|
+
return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ? _ <= d : _ >= d;
|
|
3517
3517
|
});
|
|
3518
|
-
l =
|
|
3519
|
-
return Math.abs(d - y) < Math.abs(d -
|
|
3518
|
+
l = p.reduce(function(_, y) {
|
|
3519
|
+
return Math.abs(d - y) < Math.abs(d - _) ? y : _;
|
|
3520
3520
|
}, 1 / 0);
|
|
3521
3521
|
}
|
|
3522
3522
|
return l;
|
|
@@ -3587,13 +3587,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
3587
3587
|
enumerable: !1,
|
|
3588
3588
|
configurable: !0
|
|
3589
3589
|
}), t.moveToPosition = function(e, n, r) {
|
|
3590
|
-
var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position),
|
|
3590
|
+
var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), p = this._controller.state;
|
|
3591
3591
|
if (!d || !f)
|
|
3592
3592
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3593
|
-
var
|
|
3594
|
-
if (m >=
|
|
3593
|
+
var _ = this._calcSnapThreshold(l.threshold, e, d), y = l.animating ? p.delta : e - u.position, v = Math.abs(y), m = r && r.delta[POSITION_KEY] !== 0 ? Math.abs(r.delta[POSITION_KEY]) : v, b;
|
|
3594
|
+
if (m >= _ && m > 0)
|
|
3595
3595
|
b = this._findSnappedAnchor(e, f);
|
|
3596
|
-
else if (
|
|
3596
|
+
else if (v >= l.threshold && v > 0)
|
|
3597
3597
|
b = this._findAdjacentAnchor(e, y, f);
|
|
3598
3598
|
else
|
|
3599
3599
|
return this.moveToPanel(f.panel, {
|
|
@@ -3607,28 +3607,28 @@ var State = /* @__PURE__ */ function() {
|
|
|
3607
3607
|
axesEvent: r
|
|
3608
3608
|
});
|
|
3609
3609
|
}, t._findSnappedAnchor = function(e, n) {
|
|
3610
|
-
var r = getFlickingAttached(this._flicking), l = r.camera, u = this._count, d = l.position, f = l.clampToReachablePosition(e),
|
|
3611
|
-
if (!n || !
|
|
3610
|
+
var r = getFlickingAttached(this._flicking), l = r.camera, u = this._count, d = l.position, f = l.clampToReachablePosition(e), p = l.findAnchorIncludePosition(f);
|
|
3611
|
+
if (!n || !p)
|
|
3612
3612
|
throw new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE);
|
|
3613
3613
|
if (!isFinite(u))
|
|
3614
|
-
return
|
|
3615
|
-
var
|
|
3616
|
-
e > d &&
|
|
3617
|
-
var m =
|
|
3614
|
+
return p;
|
|
3615
|
+
var _ = r.panelCount, y = l.anchorPoints, v = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
|
|
3616
|
+
e > d && p.index < n.index || p.position > n.position && p.index === n.index ? v += 1 : (e < d && p.index > n.index || p.position < n.position && p.index === n.index) && (v -= 1);
|
|
3617
|
+
var m = v * _, b = p.index + m;
|
|
3618
3618
|
if (Math.abs(b - n.index) <= u) {
|
|
3619
|
-
var P = y[
|
|
3619
|
+
var P = y[p.index];
|
|
3620
3620
|
return new AnchorPoint({
|
|
3621
3621
|
index: P.index,
|
|
3622
|
-
position: P.position +
|
|
3622
|
+
position: P.position + v * l.rangeDiff,
|
|
3623
3623
|
panel: P.panel
|
|
3624
3624
|
});
|
|
3625
3625
|
}
|
|
3626
3626
|
if (r.circularEnabled) {
|
|
3627
|
-
var
|
|
3628
|
-
return e > d &&
|
|
3629
|
-
index:
|
|
3630
|
-
position:
|
|
3631
|
-
panel:
|
|
3627
|
+
var g = y[circulateIndex(n.index + Math.sign(e - d) * u, _)], E = Math.floor(u / _);
|
|
3628
|
+
return e > d && g.index < n.index ? E += 1 : e < d && g.index > n.index && (E -= 1), new AnchorPoint({
|
|
3629
|
+
index: g.index,
|
|
3630
|
+
position: g.position + E * l.rangeDiff,
|
|
3631
|
+
panel: g.panel
|
|
3632
3632
|
});
|
|
3633
3633
|
} else
|
|
3634
3634
|
return y[clamp(n.index + Math.sign(e - d) * u, 0, y.length - 1)];
|
|
@@ -3639,8 +3639,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3639
3639
|
if (f && f.position !== r.position)
|
|
3640
3640
|
return f;
|
|
3641
3641
|
}
|
|
3642
|
-
var
|
|
3643
|
-
return
|
|
3642
|
+
var p = (l = n > 0 ? d.getNextAnchor(r) : d.getPrevAnchor(r)) !== null && l !== void 0 ? l : r;
|
|
3643
|
+
return p;
|
|
3644
3644
|
}, t._calcSnapThreshold = function(e, n, r) {
|
|
3645
3645
|
var l = n > r.position, u = r.panel, d = u.size, f = u.alignPosition;
|
|
3646
3646
|
return Math.max(e, l ? d - f + u.margin.next : f + u.margin.prev);
|
|
@@ -3677,11 +3677,11 @@ var State = /* @__PURE__ */ function() {
|
|
|
3677
3677
|
var l = getFlickingAttached(this._flicking), u = l.camera, d = u.clampToReachablePosition(e), f = u.findAnchorIncludePosition(d);
|
|
3678
3678
|
if (!f)
|
|
3679
3679
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3680
|
-
var
|
|
3681
|
-
return
|
|
3680
|
+
var p = f.panel;
|
|
3681
|
+
return p !== this._activePanel && this._triggerIndexChangeEvent(p, e, r), this._animateToPosition({
|
|
3682
3682
|
position: this._stopAtEdge ? d : e,
|
|
3683
3683
|
duration: n,
|
|
3684
|
-
newActivePanel:
|
|
3684
|
+
newActivePanel: p,
|
|
3685
3685
|
axesEvent: r
|
|
3686
3686
|
});
|
|
3687
3687
|
}, i;
|
|
@@ -3712,17 +3712,17 @@ var State = /* @__PURE__ */ function() {
|
|
|
3712
3712
|
}), t.destroy = function() {
|
|
3713
3713
|
s.prototype.destroy.call(this), this._resetIndexRange();
|
|
3714
3714
|
}, t.updateInput = function() {
|
|
3715
|
-
var e, n = getFlickingAttached(this._flicking), r = n.camera, l = n.renderer, u = this._controller, d = r.controlParams, f = this._count,
|
|
3716
|
-
if (!
|
|
3715
|
+
var e, n = getFlickingAttached(this._flicking), r = n.camera, l = n.renderer, u = this._controller, d = r.controlParams, f = this._count, p = u.state.animating ? (e = r.findNearestAnchor(r.position)) === null || e === void 0 ? void 0 : e.panel : this._activePanel;
|
|
3716
|
+
if (!p)
|
|
3717
3717
|
return u.update(d), this._resetIndexRange(), this;
|
|
3718
|
-
var
|
|
3718
|
+
var _ = d.range, y = p.position, v = p.index, m = l.panelCount, b = v - f, P = v + f;
|
|
3719
3719
|
b < 0 && (b = n.circularEnabled ? getMinusCompensatedIndex((b + 1) % m - 1, m) : clamp(b, 0, m - 1)), P >= m && (P = n.circularEnabled ? P % m : clamp(P, 0, m - 1));
|
|
3720
|
-
var
|
|
3720
|
+
var g = l.panels[b], E = l.panels[P], T = Math.max(g.position, _.min), O = Math.min(E.position, _.max);
|
|
3721
3721
|
return T > y && (T -= r.rangeDiff), O < y && (O += r.rangeDiff), d.range = {
|
|
3722
3722
|
min: T,
|
|
3723
3723
|
max: O
|
|
3724
3724
|
}, d.circular && (d.position < T && (d.position += r.rangeDiff), d.position > O && (d.position -= r.rangeDiff)), d.circular = !1, u.update(d), this._indexRange = {
|
|
3725
|
-
min:
|
|
3725
|
+
min: g.index,
|
|
3726
3726
|
max: E.index
|
|
3727
3727
|
}, this;
|
|
3728
3728
|
}, t.moveToPanel = function(e, n) {
|
|
@@ -3733,13 +3733,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
3733
3733
|
});
|
|
3734
3734
|
});
|
|
3735
3735
|
}, t.moveToPosition = function(e, n, r) {
|
|
3736
|
-
var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel,
|
|
3736
|
+
var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, p = this._controller.range, _ = this._indexRange, y = d.range, v = this._controller.state, m = clamp(d.clampToReachablePosition(e), p[0], p[1]), b = d.findAnchorIncludePosition(m);
|
|
3737
3737
|
if (!b || !f)
|
|
3738
3738
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3739
|
-
var P = f.position,
|
|
3740
|
-
if (
|
|
3741
|
-
var
|
|
3742
|
-
S =
|
|
3739
|
+
var P = f.position, g = u.animating ? v.delta : e - d.position, E = Math.abs(g) >= u.threshold, T = e > P ? d.getNextAnchor(b) : d.getPrevAnchor(b), O, S, C = d.anchorPoints, k = C[0], A = C[C.length - 1], R = e <= y.min && isBetween(k.panel.index, _.min, _.max), N = e >= y.max && isBetween(A.panel.index, _.min, _.max), w = T && (_.min <= _.max ? isBetween(T.index, _.min, _.max) : T.index >= _.min || T.index <= _.max);
|
|
3740
|
+
if (R || N) {
|
|
3741
|
+
var I = e < y.min ? k : A;
|
|
3742
|
+
S = I.panel, O = I.position;
|
|
3743
3743
|
} else if (E && b.position !== f.position)
|
|
3744
3744
|
S = b.panel, O = b.position;
|
|
3745
3745
|
else if (E && w)
|
|
@@ -3833,8 +3833,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3833
3833
|
var e = this._flicking, n = e.renderer, r = n.panels;
|
|
3834
3834
|
if (r.length <= 0)
|
|
3835
3835
|
return !1;
|
|
3836
|
-
var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next,
|
|
3837
|
-
return
|
|
3836
|
+
var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, p = e.camera.size, _ = f - d, y = r.every(function(v) {
|
|
3837
|
+
return _ - v.size >= p;
|
|
3838
3838
|
});
|
|
3839
3839
|
return y;
|
|
3840
3840
|
}, t.getRange = function() {
|
|
@@ -3862,14 +3862,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
3862
3862
|
var n = this._flicking.camera, r = n.anchorPoints;
|
|
3863
3863
|
if (r.length <= 0) return null;
|
|
3864
3864
|
for (var l = n.range, u = 1 / 0, d = -1, f = 0; f < r.length; f++) {
|
|
3865
|
-
var
|
|
3866
|
-
|
|
3865
|
+
var p = r[f], _ = Math.min(Math.abs(p.position - e), Math.abs(p.position - l.min + l.max - e), Math.abs(e - l.min + l.max - p.position));
|
|
3866
|
+
_ < u && (u = _, d = f);
|
|
3867
3867
|
}
|
|
3868
3868
|
return r[d];
|
|
3869
3869
|
}, t.findAnchorIncludePosition = function(e) {
|
|
3870
|
-
var n = this._flicking.camera, r = n.range, l = n.anchorPoints, u = n.rangeDiff, d = l.length, f = circulatePosition(e, r.min, r.max),
|
|
3870
|
+
var n = this._flicking.camera, r = n.range, l = n.anchorPoints, u = n.rangeDiff, d = l.length, f = circulatePosition(e, r.min, r.max), p = s.prototype.findAnchorIncludePosition.call(this, f);
|
|
3871
3871
|
if (d > 0 && (e === r.min || e === r.max)) {
|
|
3872
|
-
var
|
|
3872
|
+
var _ = [p, new AnchorPoint({
|
|
3873
3873
|
index: 0,
|
|
3874
3874
|
position: l[0].position + u,
|
|
3875
3875
|
panel: l[0].panel
|
|
@@ -3877,30 +3877,30 @@ var State = /* @__PURE__ */ function() {
|
|
|
3877
3877
|
index: d - 1,
|
|
3878
3878
|
position: l[d - 1].position - u,
|
|
3879
3879
|
panel: l[d - 1].panel
|
|
3880
|
-
})].filter(function(
|
|
3881
|
-
return !!
|
|
3880
|
+
})].filter(function(v) {
|
|
3881
|
+
return !!v;
|
|
3882
3882
|
});
|
|
3883
|
-
|
|
3884
|
-
return
|
|
3883
|
+
p = _.reduce(function(v, m) {
|
|
3884
|
+
return v && Math.abs(v.position - e) < Math.abs(m.position - e) ? v : m;
|
|
3885
3885
|
}, null);
|
|
3886
3886
|
}
|
|
3887
|
-
if (!
|
|
3887
|
+
if (!p) return null;
|
|
3888
3888
|
if (e < r.min) {
|
|
3889
3889
|
var y = -Math.floor((r.min - e) / u) - 1;
|
|
3890
3890
|
return new AnchorPoint({
|
|
3891
|
-
index:
|
|
3892
|
-
position:
|
|
3893
|
-
panel:
|
|
3891
|
+
index: p.index,
|
|
3892
|
+
position: p.position + u * y,
|
|
3893
|
+
panel: p.panel
|
|
3894
3894
|
});
|
|
3895
3895
|
} else if (e > r.max) {
|
|
3896
3896
|
var y = Math.floor((e - r.max) / u) + 1;
|
|
3897
3897
|
return new AnchorPoint({
|
|
3898
|
-
index:
|
|
3899
|
-
position:
|
|
3900
|
-
panel:
|
|
3898
|
+
index: p.index,
|
|
3899
|
+
position: p.position + u * y,
|
|
3900
|
+
panel: p.panel
|
|
3901
3901
|
});
|
|
3902
3902
|
}
|
|
3903
|
-
return
|
|
3903
|
+
return p;
|
|
3904
3904
|
}, t.getCircularOffset = function() {
|
|
3905
3905
|
var e = this._flicking, n = e.camera;
|
|
3906
3906
|
if (!n.circularEnabled) return 0;
|
|
@@ -3934,8 +3934,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3934
3934
|
var e = this._flicking, n = e.renderer, r = n.getPanel(0), l = n.getPanel(n.panelCount - 1);
|
|
3935
3935
|
if (!r || !l)
|
|
3936
3936
|
return !1;
|
|
3937
|
-
var u = e.camera.size, d = r.range.min, f = l.range.max,
|
|
3938
|
-
return
|
|
3937
|
+
var u = e.camera.size, d = r.range.min, f = l.range.max, p = f - d, _ = u < p;
|
|
3938
|
+
return _;
|
|
3939
3939
|
}, t.getRange = function() {
|
|
3940
3940
|
var e = this._flicking, n = e.renderer, r = e.camera.alignPosition, l = n.getPanel(0), u = n.getPanel(n.panelCount - 1);
|
|
3941
3941
|
if (!l || !u)
|
|
@@ -3943,16 +3943,16 @@ var State = /* @__PURE__ */ function() {
|
|
|
3943
3943
|
min: 0,
|
|
3944
3944
|
max: 0
|
|
3945
3945
|
};
|
|
3946
|
-
var d = e.camera.size, f = l.range.min,
|
|
3946
|
+
var d = e.camera.size, f = l.range.min, p = u.range.max, _ = p - f, y = d < _, v = f + r, m = p - d + r;
|
|
3947
3947
|
if (y)
|
|
3948
3948
|
return {
|
|
3949
|
-
min:
|
|
3949
|
+
min: v,
|
|
3950
3950
|
max: m
|
|
3951
3951
|
};
|
|
3952
|
-
var b = e.camera.align, P = typeof b == "object" ? b.camera : b,
|
|
3952
|
+
var b = e.camera.align, P = typeof b == "object" ? b.camera : b, g = v + parseAlign$1(P, m - v);
|
|
3953
3953
|
return {
|
|
3954
|
-
min:
|
|
3955
|
-
max:
|
|
3954
|
+
min: g,
|
|
3955
|
+
max: g
|
|
3956
3956
|
};
|
|
3957
3957
|
}, t.getAnchors = function() {
|
|
3958
3958
|
var e = this._flicking, n = e.camera, r = e.renderer.panels;
|
|
@@ -3962,28 +3962,28 @@ var State = /* @__PURE__ */ function() {
|
|
|
3962
3962
|
return n.canReach(b);
|
|
3963
3963
|
});
|
|
3964
3964
|
if (u.length > 0) {
|
|
3965
|
-
var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max,
|
|
3965
|
+
var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, p = d ? 1 : 0, _ = u.map(function(b, P) {
|
|
3966
3966
|
return new AnchorPoint({
|
|
3967
|
-
index: P +
|
|
3967
|
+
index: P + p,
|
|
3968
3968
|
position: b.position,
|
|
3969
3969
|
panel: b
|
|
3970
3970
|
});
|
|
3971
3971
|
});
|
|
3972
|
-
return d &&
|
|
3972
|
+
return d && _.splice(0, 0, new AnchorPoint({
|
|
3973
3973
|
index: 0,
|
|
3974
3974
|
position: l.min,
|
|
3975
3975
|
panel: r[u[0].index - 1]
|
|
3976
|
-
})), f &&
|
|
3977
|
-
index:
|
|
3976
|
+
})), f && _.push(new AnchorPoint({
|
|
3977
|
+
index: _.length,
|
|
3978
3978
|
position: l.max,
|
|
3979
3979
|
panel: r[u[u.length - 1].index + 1]
|
|
3980
|
-
})),
|
|
3980
|
+
})), _;
|
|
3981
3981
|
} else if (l.min !== l.max) {
|
|
3982
|
-
var y = this._findNearestPanel(l.min, r),
|
|
3982
|
+
var y = this._findNearestPanel(l.min, r), v = y.index === r.length - 1 ? y.prev() : y, m = v.next();
|
|
3983
3983
|
return [new AnchorPoint({
|
|
3984
3984
|
index: 0,
|
|
3985
3985
|
position: l.min,
|
|
3986
|
-
panel:
|
|
3986
|
+
panel: v
|
|
3987
3987
|
}), new AnchorPoint({
|
|
3988
3988
|
index: 1,
|
|
3989
3989
|
position: l.max,
|
|
@@ -4011,11 +4011,11 @@ var State = /* @__PURE__ */ function() {
|
|
|
4011
4011
|
function s(t, e) {
|
|
4012
4012
|
var n = this, r = (e === void 0 ? {} : e).align, l = r === void 0 ? ALIGN.CENTER : r;
|
|
4013
4013
|
this._lookedOffset = 0, this._checkTranslateSupport = function() {
|
|
4014
|
-
var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"],
|
|
4014
|
+
var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], p = document.documentElement.style, _ = "";
|
|
4015
4015
|
try {
|
|
4016
|
-
for (var y = __values(f),
|
|
4017
|
-
var m =
|
|
4018
|
-
m in
|
|
4016
|
+
for (var y = __values(f), v = y.next(); !v.done; v = y.next()) {
|
|
4017
|
+
var m = v.value;
|
|
4018
|
+
m in p && (_ = m);
|
|
4019
4019
|
}
|
|
4020
4020
|
} catch (b) {
|
|
4021
4021
|
u = {
|
|
@@ -4023,14 +4023,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
4023
4023
|
};
|
|
4024
4024
|
} finally {
|
|
4025
4025
|
try {
|
|
4026
|
-
|
|
4026
|
+
v && !v.done && (d = y.return) && d.call(y);
|
|
4027
4027
|
} finally {
|
|
4028
4028
|
if (u) throw u.error;
|
|
4029
4029
|
}
|
|
4030
4030
|
}
|
|
4031
|
-
if (!
|
|
4031
|
+
if (!_)
|
|
4032
4032
|
throw new FlickingError(MESSAGE.TRANSFORM_NOT_SUPPORTED, CODE.TRANSFORM_NOT_SUPPORTED);
|
|
4033
|
-
n._transform =
|
|
4033
|
+
n._transform = _;
|
|
4034
4034
|
}, this._flicking = t, this._resetInternalValues(), this._align = l;
|
|
4035
4035
|
}
|
|
4036
4036
|
var i = s.prototype;
|
|
@@ -4243,15 +4243,15 @@ var State = /* @__PURE__ */ function() {
|
|
|
4243
4243
|
var t = this._flicking, e = this._position + this._offset, n = this.findNearestAnchor(this._position);
|
|
4244
4244
|
if (!t || !n)
|
|
4245
4245
|
return NaN;
|
|
4246
|
-
var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min,
|
|
4246
|
+
var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min, p = d.max, _ = this.rangeDiff;
|
|
4247
4247
|
if (e === l)
|
|
4248
4248
|
return r.index;
|
|
4249
4249
|
if (e < l) {
|
|
4250
|
-
var y = r.prev(),
|
|
4251
|
-
return
|
|
4250
|
+
var y = r.prev(), v = y ? y.position + y.offset : f - u[0];
|
|
4251
|
+
return v > l && (v -= _), r.index - 1 + getProgress$1(e, v, l);
|
|
4252
4252
|
} else {
|
|
4253
|
-
var m = r.next(), b = m ? m.position + m.offset :
|
|
4254
|
-
return b < l && (b +=
|
|
4253
|
+
var m = r.next(), b = m ? m.position + m.offset : p + u[1];
|
|
4254
|
+
return b < l && (b += _), r.index + getProgress$1(e, l, b);
|
|
4255
4255
|
}
|
|
4256
4256
|
},
|
|
4257
4257
|
enumerable: !1,
|
|
@@ -4414,16 +4414,16 @@ var State = /* @__PURE__ */ function() {
|
|
|
4414
4414
|
})), t.next = !0);
|
|
4415
4415
|
return;
|
|
4416
4416
|
}
|
|
4417
|
-
var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos,
|
|
4417
|
+
var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, p = f + l, _ = n[0], y = n[n.length - 1];
|
|
4418
4418
|
if (!t.prev) {
|
|
4419
|
-
var
|
|
4420
|
-
(f <=
|
|
4419
|
+
var v = _.range.min;
|
|
4420
|
+
(f <= v + d || r <= u.min + d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
|
|
4421
4421
|
direction: DIRECTION.PREV
|
|
4422
4422
|
})), t.prev = !0);
|
|
4423
4423
|
}
|
|
4424
4424
|
if (!t.next) {
|
|
4425
4425
|
var m = y.range.max;
|
|
4426
|
-
(
|
|
4426
|
+
(p >= m - d || r >= u.max - d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
|
|
4427
4427
|
direction: DIRECTION.NEXT
|
|
4428
4428
|
})), t.next = !0);
|
|
4429
4429
|
}
|
|
@@ -4561,24 +4561,24 @@ var State = /* @__PURE__ */ function() {
|
|
|
4561
4561
|
}, i.batchInsertDefer = function() {
|
|
4562
4562
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4563
4563
|
e[n] = arguments[n];
|
|
4564
|
-
var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(
|
|
4565
|
-
var y,
|
|
4566
|
-
return t._createPanel(
|
|
4567
|
-
index:
|
|
4564
|
+
var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(p, _) {
|
|
4565
|
+
var y, v = getMinusCompensatedIndex(_.index, r.length), m = r.slice(v), b = _.elements.map(function(g, E) {
|
|
4566
|
+
return t._createPanel(g, {
|
|
4567
|
+
index: v + E,
|
|
4568
4568
|
align: d,
|
|
4569
4569
|
flicking: l
|
|
4570
4570
|
});
|
|
4571
4571
|
});
|
|
4572
|
-
if (r.splice.apply(r, __spread([
|
|
4572
|
+
if (r.splice.apply(r, __spread([v, 0], b)), _.hasDOMInElements && t._insertPanelElements(b, (y = m[0]) !== null && y !== void 0 ? y : null), l.panelsPerView > 0) {
|
|
4573
4573
|
var P = u || b[0].resize();
|
|
4574
4574
|
t._updatePanelSizeByGrid(P, b);
|
|
4575
4575
|
} else
|
|
4576
|
-
b.forEach(function(
|
|
4577
|
-
return
|
|
4576
|
+
b.forEach(function(g) {
|
|
4577
|
+
return g.resize();
|
|
4578
4578
|
});
|
|
4579
|
-
return m.forEach(function(
|
|
4580
|
-
|
|
4581
|
-
}), __spread(
|
|
4579
|
+
return m.forEach(function(g) {
|
|
4580
|
+
g.increaseIndex(b.length), g.updatePosition();
|
|
4581
|
+
}), __spread(p, b);
|
|
4582
4582
|
}, []);
|
|
4583
4583
|
return f;
|
|
4584
4584
|
}, i.batchRemove = function() {
|
|
@@ -4589,28 +4589,28 @@ var State = /* @__PURE__ */ function() {
|
|
|
4589
4589
|
}, i.batchRemoveDefer = function() {
|
|
4590
4590
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4591
4591
|
e[n] = arguments[n];
|
|
4592
|
-
var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(
|
|
4593
|
-
var y =
|
|
4594
|
-
return P.length <= 0 ? [] : (b.forEach(function(
|
|
4595
|
-
|
|
4596
|
-
}),
|
|
4597
|
-
return
|
|
4598
|
-
}), includes(P, d) && u.resetActive(), __spread(
|
|
4592
|
+
var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(p, _) {
|
|
4593
|
+
var y = _.index, v = _.deleteCount, m = getMinusCompensatedIndex(y, r.length), b = r.slice(m + v), P = r.splice(m, v);
|
|
4594
|
+
return P.length <= 0 ? [] : (b.forEach(function(g) {
|
|
4595
|
+
g.decreaseIndex(P.length), g.updatePosition();
|
|
4596
|
+
}), _.hasDOMInElements && t._removePanelElements(P), P.forEach(function(g) {
|
|
4597
|
+
return g.destroy();
|
|
4598
|
+
}), includes(P, d) && u.resetActive(), __spread(p, P));
|
|
4599
4599
|
}, []);
|
|
4600
4600
|
return f;
|
|
4601
4601
|
}, i.updateAfterPanelChange = function(t, e) {
|
|
4602
4602
|
var n, r = getFlickingAttached(this._flicking), l = r.camera, u = r.control, d = this._panels, f = u.activePanel;
|
|
4603
|
-
if (this._updateCameraAndControl(), r.autoResize && r.useResizeObserver && (t.forEach(function(
|
|
4604
|
-
|
|
4605
|
-
}), e.forEach(function(
|
|
4606
|
-
|
|
4603
|
+
if (this._updateCameraAndControl(), r.autoResize && r.useResizeObserver && (t.forEach(function(_) {
|
|
4604
|
+
_.element && r.autoResizer.observe(_.element);
|
|
4605
|
+
}), e.forEach(function(_) {
|
|
4606
|
+
_.element && r.autoResizer.unobserve(_.element);
|
|
4607
4607
|
})), this.render(), !r.animating)
|
|
4608
4608
|
if (!f || f.removed)
|
|
4609
4609
|
if (d.length <= 0)
|
|
4610
4610
|
l.lookAt(0);
|
|
4611
4611
|
else {
|
|
4612
|
-
var
|
|
4613
|
-
|
|
4612
|
+
var p = (n = f?.index) !== null && n !== void 0 ? n : 0;
|
|
4613
|
+
p > d.length - 1 && (p = d.length - 1), u.moveToPanel(d[p], {
|
|
4614
4614
|
duration: 0
|
|
4615
4615
|
}).catch(function() {
|
|
4616
4616
|
});
|
|
@@ -4641,10 +4641,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
4641
4641
|
d.destroy();
|
|
4642
4642
|
return;
|
|
4643
4643
|
}
|
|
4644
|
-
var
|
|
4645
|
-
|
|
4644
|
+
var p = t[f.index], _ = n.camera, y = n.control, v = y.activePanel ? _.getProgressInPanel(y.activePanel) : 0;
|
|
4645
|
+
p.loading = !1, p.resize(), l.slice(p.index + 1).forEach(function(m) {
|
|
4646
4646
|
return m.updatePosition();
|
|
4647
|
-
}), n.initialized && (
|
|
4647
|
+
}), n.initialized && (_.updateRange(), _.updateOffset(), _.updateAnchors(), y.animating || (y.updatePosition(v), y.updateInput()));
|
|
4648
4648
|
}), d.on("preReady", function(f) {
|
|
4649
4649
|
e._flicking && e.render(), f.readyCount === f.totalCount && d.destroy();
|
|
4650
4650
|
}), d.on("ready", function() {
|
|
@@ -4673,14 +4673,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
4673
4673
|
width: d
|
|
4674
4674
|
} : {
|
|
4675
4675
|
height: d
|
|
4676
|
-
},
|
|
4676
|
+
}, p = __assign$1({
|
|
4677
4677
|
size: d,
|
|
4678
4678
|
margin: t.margin
|
|
4679
4679
|
}, !n.horizontal && {
|
|
4680
4680
|
height: t.height
|
|
4681
4681
|
});
|
|
4682
|
-
n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(
|
|
4683
|
-
return
|
|
4682
|
+
n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(_) {
|
|
4683
|
+
return _.resize(p);
|
|
4684
4684
|
});
|
|
4685
4685
|
}
|
|
4686
4686
|
}, i._removeAllChildsFromCamera = function() {
|
|
@@ -5105,8 +5105,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
5105
5105
|
var t = this._flicking;
|
|
5106
5106
|
if (!t.circularEnabled)
|
|
5107
5107
|
return this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0, this._toggled = !1, this;
|
|
5108
|
-
var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u,
|
|
5109
|
-
return this._toggled = !1,
|
|
5108
|
+
var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u, p = this.includeRange(f - u, f, !1), _ = this.includeRange(d, d + u, !1);
|
|
5109
|
+
return this._toggled = !1, p ? (this._toggleDirection = DIRECTION.PREV, this._togglePosition = this.range.max + n.min - n.max + r, this.toggle(1 / 0, e.position)) : _ ? (this._toggleDirection = DIRECTION.NEXT, this._togglePosition = this.range.min + n.max - u + r, this.toggle(-1 / 0, e.position)) : (this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0), this;
|
|
5110
5110
|
}, i._updateAlignPos = function() {
|
|
5111
5111
|
this._alignPos = parseAlign$1(this._align, this._size);
|
|
5112
5112
|
}, i._resetInternalStates = function() {
|
|
@@ -5297,10 +5297,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
5297
5297
|
}(), Flicking$1 = /* @__PURE__ */ function(s) {
|
|
5298
5298
|
__extends$2(i, s);
|
|
5299
5299
|
function i(e, n) {
|
|
5300
|
-
var r = n === void 0 ? {} : n, l = r.align, u = l === void 0 ? ALIGN.CENTER : l, d = r.defaultIndex, f = d === void 0 ? 0 : d,
|
|
5300
|
+
var r = n === void 0 ? {} : n, l = r.align, u = l === void 0 ? ALIGN.CENTER : l, d = r.defaultIndex, f = d === void 0 ? 0 : d, p = r.horizontal, _ = p === void 0 ? !0 : p, y = r.circular, v = y === void 0 ? !1 : y, m = r.circularFallback, b = m === void 0 ? CIRCULAR_FALLBACK.LINEAR : m, P = r.bound, g = P === void 0 ? !1 : P, E = r.adaptive, T = E === void 0 ? !1 : E, O = r.panelsPerView, S = O === void 0 ? -1 : O, C = r.noPanelStyleOverride, k = C === void 0 ? !1 : C, A = r.resizeOnContentsReady, R = A === void 0 ? !1 : A, N = r.nested, w = N === void 0 ? !1 : N, I = r.needPanelThreshold, D = I === void 0 ? 0 : I, L = r.preventEventsBeforeInit, B = L === void 0 ? !0 : L, V = r.deceleration, de = V === void 0 ? 75e-4 : V, M = r.duration, fe = M === void 0 ? 500 : M, z = r.easing, he = z === void 0 ? function(Le) {
|
|
5301
5301
|
return 1 - Math.pow(1 - Le, 3);
|
|
5302
|
-
} : z, F = r.inputType, ve = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType,
|
|
5303
|
-
return
|
|
5302
|
+
} : z, F = r.inputType, ve = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType, ge = j === void 0 ? "snap" : j, H = r.threshold, pe = H === void 0 ? 40 : H, W = r.dragThreshold, _e = W === void 0 ? 1 : W, U = r.interruptable, me = U === void 0 ? !0 : U, G = r.bounce, Ee = G === void 0 ? "20%" : G, Y = r.iOSEdgeSwipeThreshold, ye = Y === void 0 ? 30 : Y, q = r.preventClickOnDrag, be = q === void 0 ? !0 : q, X = r.preventDefaultOnDrag, Pe = X === void 0 ? !1 : X, K = r.disableOnInit, Te = K === void 0 ? !1 : K, Z = r.changeOnHold, Oe = Z === void 0 ? !1 : Z, Q = r.renderOnlyVisible, Se = Q === void 0 ? !1 : Q, J = r.virtual, ee = J === void 0 ? null : J, te = r.autoInit, xe = te === void 0 ? !0 : te, ne = r.autoResize, Ce = ne === void 0 ? !0 : ne, ie = r.useResizeObserver, Ie = ie === void 0 ? !0 : ie, re = r.resizeDebounce, ke = re === void 0 ? 0 : re, ae = r.observePanelResize, Re = ae === void 0 ? !1 : ae, oe = r.maxResizeDebounce, Ne = oe === void 0 ? 100 : oe, se = r.useFractionalSize, we = se === void 0 ? !1 : se, le = r.externalRenderer, Ae = le === void 0 ? null : le, ue = r.renderExternal, De = ue === void 0 ? null : ue, ce = r.optimizeSizeUpdate, Be = ce === void 0 ? !1 : ce, x = s.call(this) || this;
|
|
5303
|
+
return x._initialized = !1, x._plugins = [], x._isResizing = !1, x._align = u, x._defaultIndex = f, x._horizontal = _, x._circular = v, x._circularFallback = b, x._bound = g, x._adaptive = T, x._panelsPerView = S, x._noPanelStyleOverride = k, x._resizeOnContentsReady = R, x._nested = w, x._virtual = ee, x._needPanelThreshold = D, x._preventEventsBeforeInit = B, x._deceleration = de, x._duration = fe, x._easing = he, x._inputType = ve, x._moveType = ge, x._threshold = pe, x._dragThreshold = _e, x._interruptable = me, x._bounce = Ee, x._iOSEdgeSwipeThreshold = ye, x._preventClickOnDrag = be, x._preventDefaultOnDrag = Pe, x._disableOnInit = Te, x._changeOnHold = Oe, x._renderOnlyVisible = Se, x._autoInit = xe, x._autoResize = Ce, x._useResizeObserver = Ie, x._resizeDebounce = ke, x._maxResizeDebounce = Ne, x._observePanelResize = Re, x._useFractionalSize = we, x._externalRenderer = Ae, x._renderExternal = De, x._optimizeSizeUpdate = Be, x._viewport = new Viewport(x, getElement$1(e)), x._autoResizer = new AutoResizer(x), x._renderer = x._createRenderer(), x._camera = x._createCamera(), x._control = x._createControl(), x._virtualManager = new VirtualManager(x, ee), x._autoInit && x.init(), x;
|
|
5304
5304
|
}
|
|
5305
5305
|
var t = i.prototype;
|
|
5306
5306
|
return Object.defineProperty(t, "control", {
|
|
@@ -6312,8 +6312,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
6312
6312
|
return n.init(), u.init(), r.init(this), l.init(this), f && (this.trigger = function() {
|
|
6313
6313
|
return e;
|
|
6314
6314
|
}), this._initialResize(), this._moveToInitialPanel(), this._autoResize && this._autoResizer.enable(), this._preventClickOnDrag && l.controller.addPreventClickHandler(), this._disableOnInit && this.disableInput(), r.checkPanelContentsReady(r.panels), this._initialized = !0, r.render().then(function() {
|
|
6315
|
-
e._plugins.forEach(function(
|
|
6316
|
-
return
|
|
6315
|
+
e._plugins.forEach(function(p) {
|
|
6316
|
+
return p.init(e);
|
|
6317
6317
|
}), f && (e.trigger = d), e.trigger(new ComponentEvent$1(EVENTS.READY));
|
|
6318
6318
|
});
|
|
6319
6319
|
}, t.destroy = function() {
|
|
@@ -6349,7 +6349,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6349
6349
|
}, t.disableInput = function() {
|
|
6350
6350
|
return this._control.disable(), this;
|
|
6351
6351
|
}, t.getStatus = function(e) {
|
|
6352
|
-
var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position,
|
|
6352
|
+
var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, p = f === void 0 ? !0 : f, _ = l.includePanelHTML, y = _ === void 0 ? !1 : _, v = l.visiblePanelsOnly, m = v === void 0 ? !1 : v, b = this._camera, P = m ? this.visiblePanels : this.panels, g = {
|
|
6353
6353
|
panels: P.map(function(O) {
|
|
6354
6354
|
var S = {
|
|
6355
6355
|
index: O.index
|
|
@@ -6357,23 +6357,23 @@ var State = /* @__PURE__ */ function() {
|
|
|
6357
6357
|
return y && (S.html = O.element.outerHTML), S;
|
|
6358
6358
|
})
|
|
6359
6359
|
};
|
|
6360
|
-
if (d && (
|
|
6360
|
+
if (d && (g.index = this.index), p) {
|
|
6361
6361
|
var E = b.findNearestAnchor(b.position);
|
|
6362
|
-
E && (
|
|
6362
|
+
E && (g.position = {
|
|
6363
6363
|
panel: E.panel.index,
|
|
6364
6364
|
progressInPanel: b.getProgressInPanel(E.panel)
|
|
6365
6365
|
});
|
|
6366
6366
|
}
|
|
6367
6367
|
if (m) {
|
|
6368
6368
|
var T = this.visiblePanels;
|
|
6369
|
-
|
|
6369
|
+
g.visibleOffset = (r = (n = T[0]) === null || n === void 0 ? void 0 : n.index) !== null && r !== void 0 ? r : 0;
|
|
6370
6370
|
}
|
|
6371
|
-
return
|
|
6371
|
+
return g;
|
|
6372
6372
|
}, t.setStatus = function(e) {
|
|
6373
6373
|
var n;
|
|
6374
6374
|
if (!this._initialized)
|
|
6375
6375
|
throw new FlickingError(MESSAGE.NOT_INITIALIZED, CODE.NOT_INITIALIZED);
|
|
6376
|
-
var r = e.index, l = e.position, u = e.visibleOffset, d = e.panels, f = this._renderer,
|
|
6376
|
+
var r = e.index, l = e.position, u = e.visibleOffset, d = e.panels, f = this._renderer, p = this._control;
|
|
6377
6377
|
if (!((n = d[0]) === null || n === void 0) && n.html && !this._renderExternal && (f.batchRemove({
|
|
6378
6378
|
index: 0,
|
|
6379
6379
|
deleteCount: this.panels.length,
|
|
@@ -6385,13 +6385,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
6385
6385
|
})),
|
|
6386
6386
|
hasDOMInElements: !0
|
|
6387
6387
|
})), r != null) {
|
|
6388
|
-
var
|
|
6389
|
-
this.moveTo(
|
|
6388
|
+
var _ = u ? r - u : r;
|
|
6389
|
+
this.moveTo(_, 0).catch(function() {
|
|
6390
6390
|
});
|
|
6391
6391
|
}
|
|
6392
6392
|
if (l && this._moveType === MOVE_TYPE.FREE_SCROLL) {
|
|
6393
|
-
var y = l.panel,
|
|
6394
|
-
|
|
6393
|
+
var y = l.panel, v = l.progressInPanel, _ = u ? y - u : y, m = f.panels[_].range, b = m.min + (m.max - m.min) * v;
|
|
6394
|
+
p.moveToPosition(b, 0).catch(function() {
|
|
6395
6395
|
});
|
|
6396
6396
|
}
|
|
6397
6397
|
}, t.addPlugins = function() {
|
|
@@ -6411,14 +6411,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
6411
6411
|
}), this;
|
|
6412
6412
|
}, t.resize = function() {
|
|
6413
6413
|
return __awaiter$1(this, void 0, void 0, function() {
|
|
6414
|
-
var e, n, r, l, u, d, f,
|
|
6414
|
+
var e, n, r, l, u, d, f, p, _, y, v;
|
|
6415
6415
|
return __generator$1(this, function(m) {
|
|
6416
6416
|
switch (m.label) {
|
|
6417
6417
|
case 0:
|
|
6418
6418
|
return this._isResizing ? [
|
|
6419
6419
|
2
|
|
6420
6420
|
/*return*/
|
|
6421
|
-
] : (this._isResizing = !0, e = this._viewport, n = this._renderer, r = this._camera, l = this._control, u = l.activePanel, d = e.width, f = e.height,
|
|
6421
|
+
] : (this._isResizing = !0, e = this._viewport, n = this._renderer, r = this._camera, l = this._control, u = l.activePanel, d = e.width, f = e.height, p = u ? r.getProgressInPanel(u) : 0, this.trigger(new ComponentEvent$1(EVENTS.BEFORE_RESIZE, {
|
|
6422
6422
|
width: d,
|
|
6423
6423
|
height: f,
|
|
6424
6424
|
element: e.element
|
|
@@ -6437,14 +6437,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
6437
6437
|
/*return*/
|
|
6438
6438
|
];
|
|
6439
6439
|
case 6:
|
|
6440
|
-
return m.sent(), this._initialized ? (l.animating || (l.updatePosition(
|
|
6440
|
+
return m.sent(), this._initialized ? (l.animating || (l.updatePosition(p), l.updateInput()), _ = e.width, y = e.height, v = _ !== d || y !== f, this.trigger(new ComponentEvent$1(EVENTS.AFTER_RESIZE, {
|
|
6441
6441
|
width: e.width,
|
|
6442
6442
|
height: e.height,
|
|
6443
6443
|
prev: {
|
|
6444
6444
|
width: d,
|
|
6445
6445
|
height: f
|
|
6446
6446
|
},
|
|
6447
|
-
sizeChanged:
|
|
6447
|
+
sizeChanged: v,
|
|
6448
6448
|
element: e.element
|
|
6449
6449
|
})), this._isResizing = !1, [
|
|
6450
6450
|
2
|
|
@@ -6569,25 +6569,25 @@ var State = /* @__PURE__ */ function() {
|
|
|
6569
6569
|
var e = s.renderer, n = e.panels, r = __spread(i.prevList), l = [], u = [];
|
|
6570
6570
|
if (i.removed.length > 0) {
|
|
6571
6571
|
var d = -1, f = -1;
|
|
6572
|
-
i.removed.forEach(function(
|
|
6573
|
-
d < 0 && (d =
|
|
6572
|
+
i.removed.forEach(function(v) {
|
|
6573
|
+
d < 0 && (d = v), f >= 0 && v !== f - 1 && (u.push.apply(u, __spread(batchRemove(e, f, d + 1))), d = v), f = v, r.splice(v, 1);
|
|
6574
6574
|
}), u.push.apply(u, __spread(batchRemove(e, f, d + 1)));
|
|
6575
6575
|
}
|
|
6576
|
-
if (i.ordered.forEach(function(
|
|
6577
|
-
var m = __read(
|
|
6578
|
-
n.splice(P, 0,
|
|
6579
|
-
}), i.ordered.length > 0 && (n.forEach(function(
|
|
6580
|
-
var b = m -
|
|
6581
|
-
b > 0 ?
|
|
6582
|
-
}), n.sort(function(
|
|
6583
|
-
return
|
|
6584
|
-
}), n.forEach(function(
|
|
6585
|
-
|
|
6576
|
+
if (i.ordered.forEach(function(v) {
|
|
6577
|
+
var m = __read(v, 2), b = m[0], P = m[1], g = n.splice(b, 1)[0];
|
|
6578
|
+
n.splice(P, 0, g);
|
|
6579
|
+
}), i.ordered.length > 0 && (n.forEach(function(v, m) {
|
|
6580
|
+
var b = m - v.index;
|
|
6581
|
+
b > 0 ? v.increaseIndex(b) : v.decreaseIndex(-b);
|
|
6582
|
+
}), n.sort(function(v, m) {
|
|
6583
|
+
return v.index - m.index;
|
|
6584
|
+
}), n.forEach(function(v) {
|
|
6585
|
+
v.updatePosition();
|
|
6586
6586
|
})), i.added.length > 0) {
|
|
6587
|
-
var
|
|
6588
|
-
i.added.forEach(function(
|
|
6589
|
-
|
|
6590
|
-
}),
|
|
6587
|
+
var p = -1, _ = -1, y = t.slice(r.length);
|
|
6588
|
+
i.added.forEach(function(v, m) {
|
|
6589
|
+
p < 0 && (p = m), _ >= 0 && v !== _ + 1 ? (l.push.apply(l, __spread(batchInsert(e, i, y, p, m + 1))), p = -1, _ = -1) : _ = v;
|
|
6590
|
+
}), p >= 0 && l.push.apply(l, __spread(batchInsert(e, i, y, p)));
|
|
6591
6591
|
}
|
|
6592
6592
|
(i.added.length > 0 || i.removed.length > 0) && e.updateAfterPanelChange(l, u);
|
|
6593
6593
|
}, batchInsert = function(s, i, t, e, n) {
|
|
@@ -6656,10 +6656,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
6656
6656
|
if (r) {
|
|
6657
6657
|
var d = r.visiblePanels;
|
|
6658
6658
|
d.forEach(function(f) {
|
|
6659
|
-
var
|
|
6659
|
+
var p = f.outsetProgress, _ = f.element, y = l ? _.querySelector(l) : _;
|
|
6660
6660
|
if (y) {
|
|
6661
|
-
var
|
|
6662
|
-
y.style.opacity = "" +
|
|
6661
|
+
var v = Math.min(1, Math.max(0, 1 - Math.abs(p * u)));
|
|
6662
|
+
y.style.opacity = "" + v;
|
|
6663
6663
|
}
|
|
6664
6664
|
});
|
|
6665
6665
|
}
|
|
@@ -6739,40 +6739,40 @@ var State = /* @__PURE__ */ function() {
|
|
|
6739
6739
|
return e;
|
|
6740
6740
|
}, Arrow = /* @__PURE__ */ function() {
|
|
6741
6741
|
function s(t) {
|
|
6742
|
-
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.prevElSelector, d = u === void 0 ? ARROW.PREV_SELECTOR : u, f = n.nextElSelector,
|
|
6743
|
-
this._flicking = null, this._preventInputPropagation = function(
|
|
6744
|
-
|
|
6742
|
+
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.prevElSelector, d = u === void 0 ? ARROW.PREV_SELECTOR : u, f = n.nextElSelector, p = f === void 0 ? ARROW.NEXT_SELECTOR : f, _ = n.disabledClass, y = _ === void 0 ? ARROW.DISABLED_CLASS : _, v = n.moveCount, m = v === void 0 ? 1 : v, b = n.moveByViewportSize, P = b === void 0 ? !1 : b;
|
|
6743
|
+
this._flicking = null, this._preventInputPropagation = function(g) {
|
|
6744
|
+
g.stopPropagation();
|
|
6745
6745
|
}, this._onPrevClick = function() {
|
|
6746
|
-
var
|
|
6747
|
-
if (!(
|
|
6746
|
+
var g = e._flicking, E = g.camera, T = E.anchorPoints;
|
|
6747
|
+
if (!(g.animating || T.length <= 0)) {
|
|
6748
6748
|
var O = T[0], S = e._moveCount;
|
|
6749
6749
|
if (e._moveByViewportSize)
|
|
6750
|
-
|
|
6751
|
-
else if (
|
|
6752
|
-
for (var
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
} else
|
|
6750
|
+
g.control.moveToPosition(E.position - E.size, g.duration).catch(e._onCatch);
|
|
6751
|
+
else if (g.circularEnabled) {
|
|
6752
|
+
for (var C = g.currentPanel, k = 0; k < S; k++)
|
|
6753
|
+
C = C.prev();
|
|
6754
|
+
C.focus().catch(e._onCatch);
|
|
6755
|
+
} else g.index > O.panel.index ? g.moveTo(Math.max(g.index - S, O.panel.index)).catch(e._onCatch) : E.position > E.range.min && g.moveTo(g.index).catch(e._onCatch);
|
|
6756
6756
|
}
|
|
6757
6757
|
}, this._onNextClick = function() {
|
|
6758
|
-
var
|
|
6759
|
-
if (!(
|
|
6758
|
+
var g = e._flicking, E = g.camera, T = E.anchorPoints;
|
|
6759
|
+
if (!(g.animating || T.length <= 0)) {
|
|
6760
6760
|
var O = T[T.length - 1], S = e._moveCount;
|
|
6761
6761
|
if (e._moveByViewportSize)
|
|
6762
|
-
|
|
6763
|
-
else if (
|
|
6764
|
-
for (var
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
} else
|
|
6762
|
+
g.control.moveToPosition(E.position + E.size, g.duration).catch(e._onCatch);
|
|
6763
|
+
else if (g.circularEnabled) {
|
|
6764
|
+
for (var C = g.currentPanel, k = 0; k < S; k++)
|
|
6765
|
+
C = C.next();
|
|
6766
|
+
C.focus().catch(e._onCatch);
|
|
6767
|
+
} else g.index < O.panel.index ? g.moveTo(Math.min(g.index + S, O.panel.index)).catch(e._onCatch) : E.position > E.range.min && g.moveTo(g.index).catch(e._onCatch);
|
|
6768
6768
|
}
|
|
6769
6769
|
}, this._onAnimation = function() {
|
|
6770
|
-
var
|
|
6771
|
-
|
|
6772
|
-
}, this._onCatch = function(
|
|
6773
|
-
if (!(
|
|
6774
|
-
throw
|
|
6775
|
-
}, this._parentEl = l, this._prevElSelector = d, this._nextElSelector =
|
|
6770
|
+
var g = e._flicking, E = g.camera, T = g.control.controller;
|
|
6771
|
+
g.holding ? e._updateClass(E.position) : e._updateClass(T.animatingContext.end);
|
|
6772
|
+
}, this._onCatch = function(g) {
|
|
6773
|
+
if (!(g instanceof FlickingError))
|
|
6774
|
+
throw g;
|
|
6775
|
+
}, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = p, this._disabledClass = y, this._moveCount = m, this._moveByViewportSize = P;
|
|
6776
6776
|
}
|
|
6777
6777
|
var i = s.prototype;
|
|
6778
6778
|
return Object.defineProperty(i, "prevEl", {
|
|
@@ -6952,31 +6952,31 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6952
6952
|
}), t.destroy = function() {
|
|
6953
6953
|
this._bullets = [], this._prevIndex = -1;
|
|
6954
6954
|
}, t.render = function() {
|
|
6955
|
-
var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet,
|
|
6956
|
-
addClass(l,
|
|
6957
|
-
return
|
|
6955
|
+
var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, p = r.renderActiveBullet, _ = r.classPrefix + "-" + PAGINATION.BULLET_WRAPPER_SUFFIX, y = n.camera.anchorPoints;
|
|
6956
|
+
addClass(l, _), l.innerHTML = y.map(function(m, b) {
|
|
6957
|
+
return p && m.panel.index === n.index ? p(u, b) : f(u, b);
|
|
6958
6958
|
}).join(`
|
|
6959
6959
|
`);
|
|
6960
|
-
var
|
|
6961
|
-
|
|
6960
|
+
var v = [].slice.call(l.children);
|
|
6961
|
+
v.forEach(function(m, b) {
|
|
6962
6962
|
var P = y[b];
|
|
6963
6963
|
P.panel.index === n.index && (addClass(m, d), e._prevIndex = b), e._addBulletEvents(m, b);
|
|
6964
|
-
}), this._bullets =
|
|
6964
|
+
}), this._bullets = v;
|
|
6965
6965
|
}, t.update = function(e) {
|
|
6966
|
-
var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass,
|
|
6967
|
-
if (!(
|
|
6968
|
-
var m =
|
|
6969
|
-
if (
|
|
6970
|
-
if (
|
|
6971
|
-
var P = u[
|
|
6966
|
+
var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, p = this._prevIndex, _ = n.camera.anchorPoints, y = r.renderBullet, v = r.renderActiveBullet;
|
|
6967
|
+
if (!(_.length <= 0)) {
|
|
6968
|
+
var m = _[0].panel.index, b = e - m;
|
|
6969
|
+
if (p !== b) {
|
|
6970
|
+
if (v) {
|
|
6971
|
+
var P = u[p];
|
|
6972
6972
|
if (P) {
|
|
6973
|
-
var
|
|
6974
|
-
P.parentElement.replaceChild(
|
|
6973
|
+
var g = this._createBulletFromString(y(d, p), p);
|
|
6974
|
+
P.parentElement.replaceChild(g, P), u[p] = g;
|
|
6975
6975
|
}
|
|
6976
|
-
var E = u[b], T = this._createBulletFromString(
|
|
6976
|
+
var E = u[b], T = this._createBulletFromString(v(d + " " + f, b), b);
|
|
6977
6977
|
l.replaceChild(T, E), u[b] = T;
|
|
6978
6978
|
} else {
|
|
6979
|
-
var E = u[b], P = u[
|
|
6979
|
+
var E = u[b], P = u[p];
|
|
6980
6980
|
P && removeClass(P, f), addClass(E, f);
|
|
6981
6981
|
}
|
|
6982
6982
|
this._prevIndex = b;
|
|
@@ -6998,8 +6998,8 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6998
6998
|
}, t.update = function(e) {
|
|
6999
6999
|
var n = this._flicking, r = this._wrapper, l = this._pagination, u = n.camera.anchorPoints, d = u.length > 0 ? e - u[0].panel.index + 1 : 0, f = u.length;
|
|
7000
7000
|
if (!(d === this._prevIndex && f === this._prevTotal)) {
|
|
7001
|
-
var
|
|
7002
|
-
y.innerHTML = l.fractionCurrentFormat(d),
|
|
7001
|
+
var p = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX, _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_TOTAL_SUFFIX, y = r.querySelector(p), v = r.querySelector(_);
|
|
7002
|
+
y.innerHTML = l.fractionCurrentFormat(d), v.innerHTML = l.fractionTotalFormat(f), this._prevIndex = d, this._prevTotal = f;
|
|
7003
7003
|
}
|
|
7004
7004
|
}, i;
|
|
7005
7005
|
}(Renderer), ScrollBulletRenderer = /* @__PURE__ */ function(s) {
|
|
@@ -7015,14 +7015,14 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
7015
7015
|
return t.destroy = function() {
|
|
7016
7016
|
this._bullets = [], this._bulletSize = 0, this._previousIndex = -1, this._sliderIndex = -1;
|
|
7017
7017
|
}, t.render = function() {
|
|
7018
|
-
var e = this, n = this._wrapper, r = this._flicking, l = this._pagination, u = l.renderBullet, d = r.camera.anchorPoints, f = l.classPrefix + "-" + PAGINATION.SCROLL_WRAPPER_SUFFIX,
|
|
7019
|
-
addClass(
|
|
7020
|
-
return u(
|
|
7018
|
+
var e = this, n = this._wrapper, r = this._flicking, l = this._pagination, u = l.renderBullet, d = r.camera.anchorPoints, f = l.classPrefix + "-" + PAGINATION.SCROLL_WRAPPER_SUFFIX, p = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.SCROLL_SLIDER_SUFFIX, y = l.classPrefix + "-" + PAGINATION.SCROLL_UNINIT_SUFFIX, v = document.createElement("div");
|
|
7019
|
+
addClass(v, _), addClass(n, y), addClass(n, f), n.appendChild(v), v.innerHTML = d.map(function(g, E) {
|
|
7020
|
+
return u(p, E);
|
|
7021
7021
|
}).join(`
|
|
7022
7022
|
`);
|
|
7023
|
-
var m = [].slice.call(
|
|
7024
|
-
if (m.forEach(function(
|
|
7025
|
-
e._addBulletEvents(
|
|
7023
|
+
var m = [].slice.call(v.children);
|
|
7024
|
+
if (m.forEach(function(g, E) {
|
|
7025
|
+
e._addBulletEvents(g, E);
|
|
7026
7026
|
}), !(m.length <= 0)) {
|
|
7027
7027
|
var b = getComputedStyle(m[0]), P = m[0].clientWidth + parseFloat(b.marginLeft) + parseFloat(b.marginRight);
|
|
7028
7028
|
n.style.width = P * l.bulletCount + "px", this._bullets = m, this._bulletSize = P, this._previousIndex = -1, this.update(this._flicking.index), window.requestAnimationFrame(function() {
|
|
@@ -7030,31 +7030,31 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
7030
7030
|
});
|
|
7031
7031
|
}
|
|
7032
7032
|
}, t.update = function(e) {
|
|
7033
|
-
var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet,
|
|
7034
|
-
if (!(
|
|
7035
|
-
var
|
|
7036
|
-
return "" + b + (
|
|
7037
|
-
}, E = function(
|
|
7038
|
-
return "" + P + (
|
|
7033
|
+
var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, p = r.camera.anchorPoints, _ = p[0].panel.index, y = e - _;
|
|
7034
|
+
if (!(p.length <= 0)) {
|
|
7035
|
+
var v = n.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, m = n.classPrefix + "-" + PAGINATION.BULLET_ACTIVE_SUFFIX, b = n.classPrefix + "-" + PAGINATION.SCROLL_PREV_SUFFIX, P = n.classPrefix + "-" + PAGINATION.SCROLL_NEXT_SUFFIX, g = function(R) {
|
|
7036
|
+
return "" + b + (R > 1 ? R : "");
|
|
7037
|
+
}, E = function(R) {
|
|
7038
|
+
return "" + P + (R > 1 ? R : "");
|
|
7039
7039
|
}, T = new RegExp("^" + b), O = new RegExp("^" + P);
|
|
7040
7040
|
if (f) {
|
|
7041
7041
|
var S = l[u];
|
|
7042
7042
|
if (S) {
|
|
7043
|
-
var
|
|
7044
|
-
S.parentElement.replaceChild(
|
|
7043
|
+
var C = this._createBulletFromString(d(v, u), u);
|
|
7044
|
+
S.parentElement.replaceChild(C, S), l[u] = C;
|
|
7045
7045
|
}
|
|
7046
|
-
var
|
|
7047
|
-
if (
|
|
7048
|
-
var A = this._createBulletFromString(f(
|
|
7049
|
-
|
|
7046
|
+
var k = l[y];
|
|
7047
|
+
if (k) {
|
|
7048
|
+
var A = this._createBulletFromString(f(v, y), y);
|
|
7049
|
+
k.parentElement.replaceChild(A, k), l[y] = A;
|
|
7050
7050
|
}
|
|
7051
7051
|
}
|
|
7052
|
-
l.forEach(function(
|
|
7053
|
-
for (var w = N - y,
|
|
7052
|
+
l.forEach(function(R, N) {
|
|
7053
|
+
for (var w = N - y, I = R.className.split(" "), D = 0, L = I; D < L.length; D++) {
|
|
7054
7054
|
var B = L[D];
|
|
7055
|
-
(B === m || T.test(B) || O.test(B)) && removeClass(
|
|
7055
|
+
(B === m || T.test(B) || O.test(B)) && removeClass(R, B);
|
|
7056
7056
|
}
|
|
7057
|
-
w === 0 ? addClass(
|
|
7057
|
+
w === 0 ? addClass(R, m) : w > 0 ? addClass(R, E(Math.abs(w))) : addClass(R, g(Math.abs(w)));
|
|
7058
7058
|
}), n.scrollOnChange(y, {
|
|
7059
7059
|
total: l.length,
|
|
7060
7060
|
prevIndex: u,
|
|
@@ -7067,22 +7067,22 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
7067
7067
|
}, i;
|
|
7068
7068
|
}(Renderer), Pagination = /* @__PURE__ */ function() {
|
|
7069
7069
|
function s(t) {
|
|
7070
|
-
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.selector, d = u === void 0 ? PAGINATION.SELECTOR : u, f = n.type,
|
|
7070
|
+
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.selector, d = u === void 0 ? PAGINATION.SELECTOR : u, f = n.type, p = f === void 0 ? PAGINATION.TYPE.BULLET : f, _ = n.classPrefix, y = _ === void 0 ? PAGINATION.PREFIX : _, v = n.bulletCount, m = v === void 0 ? 5 : v, b = n.renderBullet, P = b === void 0 ? function(w) {
|
|
7071
7071
|
return '<span class="' + w + '"></span>';
|
|
7072
|
-
} : b,
|
|
7073
|
-
return '<span class="' + w + '"></span>/<span class="' +
|
|
7074
|
-
} : T, S = n.fractionCurrentFormat,
|
|
7072
|
+
} : b, g = n.renderActiveBullet, E = g === void 0 ? null : g, T = n.renderFraction, O = T === void 0 ? function(w, I) {
|
|
7073
|
+
return '<span class="' + w + '"></span>/<span class="' + I + '"></span>';
|
|
7074
|
+
} : T, S = n.fractionCurrentFormat, C = S === void 0 ? function(w) {
|
|
7075
7075
|
return w.toString();
|
|
7076
|
-
} : S,
|
|
7076
|
+
} : S, k = n.fractionTotalFormat, A = k === void 0 ? function(w) {
|
|
7077
7077
|
return w.toString();
|
|
7078
|
-
} :
|
|
7079
|
-
return
|
|
7080
|
-
} :
|
|
7078
|
+
} : k, R = n.scrollOnChange, N = R === void 0 ? function(w, I) {
|
|
7079
|
+
return I.moveTo(w);
|
|
7080
|
+
} : R;
|
|
7081
7081
|
this._flicking = null, this.update = function() {
|
|
7082
7082
|
e._removeAllChilds(), e._renderer.render();
|
|
7083
7083
|
}, this._onIndexChange = function(w) {
|
|
7084
7084
|
e._renderer.update(w.index);
|
|
7085
|
-
}, this._parentEl = l, this._selector = d, this._type =
|
|
7085
|
+
}, this._parentEl = l, this._selector = d, this._type = p, this._classPrefix = y, this._bulletCount = m, this._renderBullet = P, this._renderActiveBullet = E, this._renderFraction = O, this._fractionCurrentFormat = C, this._fractionTotalFormat = A, this._scrollOnChange = N;
|
|
7086
7086
|
}
|
|
7087
7087
|
var i = s.prototype;
|
|
7088
7088
|
return Object.defineProperty(i, "parentEl", {
|
|
@@ -7265,10 +7265,10 @@ function orderChanged(s, i) {
|
|
|
7265
7265
|
var l = n[0], u = n[1];
|
|
7266
7266
|
if (l === u)
|
|
7267
7267
|
return [0, 0];
|
|
7268
|
-
var d = t[l], f = e[u - 1],
|
|
7268
|
+
var d = t[l], f = e[u - 1], p = d.getIndex();
|
|
7269
7269
|
d.disconnect(), f ? d.connect(f, f.next) : d.connect(void 0, t[0]);
|
|
7270
|
-
var
|
|
7271
|
-
return [
|
|
7270
|
+
var _ = d.getIndex();
|
|
7271
|
+
return [p, _];
|
|
7272
7272
|
});
|
|
7273
7273
|
}
|
|
7274
7274
|
var Result = /* @__PURE__ */ function() {
|
|
@@ -7291,27 +7291,27 @@ var Result = /* @__PURE__ */ function() {
|
|
|
7291
7291
|
}), i.caculateOrdered = function() {
|
|
7292
7292
|
var t = orderChanged(this.changedBeforeAdded, this.fixed), e = this.changed, n = [];
|
|
7293
7293
|
this.cacheOrdered = t.filter(function(r, l) {
|
|
7294
|
-
var u = r[0], d = r[1], f = e[l],
|
|
7294
|
+
var u = r[0], d = r[1], f = e[l], p = f[0], _ = f[1];
|
|
7295
7295
|
if (u !== d)
|
|
7296
|
-
return n.push([
|
|
7296
|
+
return n.push([p, _]), !0;
|
|
7297
7297
|
}), this.cachePureChanged = n;
|
|
7298
7298
|
}, s;
|
|
7299
7299
|
}();
|
|
7300
7300
|
function diff(s, i, t) {
|
|
7301
7301
|
var e = SUPPORT_MAP ? Map : t ? HashMap : PolyMap, n = t || function(E) {
|
|
7302
7302
|
return E;
|
|
7303
|
-
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n),
|
|
7303
|
+
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n), p = new e(), _ = new e(), y = [], v = [], m = {}, b = [], P = 0, g = 0;
|
|
7304
7304
|
return d.forEach(function(E, T) {
|
|
7305
|
-
|
|
7305
|
+
p.set(E, T);
|
|
7306
7306
|
}), f.forEach(function(E, T) {
|
|
7307
|
-
|
|
7307
|
+
_.set(E, T);
|
|
7308
7308
|
}), d.forEach(function(E, T) {
|
|
7309
|
-
var O = g.get(E);
|
|
7310
|
-
typeof O > "u" ? (++v, l.push(T)) : m[O] = v;
|
|
7311
|
-
}), f.forEach(function(E, T) {
|
|
7312
7309
|
var O = _.get(E);
|
|
7313
|
-
typeof O > "u" ? (
|
|
7314
|
-
}),
|
|
7310
|
+
typeof O > "u" ? (++g, l.push(T)) : m[O] = g;
|
|
7311
|
+
}), f.forEach(function(E, T) {
|
|
7312
|
+
var O = p.get(E);
|
|
7313
|
+
typeof O > "u" ? (r.push(T), ++P) : (u.push([O, T]), g = m[T] || 0, y.push([O - g, T - P]), v.push(T === O), O !== T && b.push([O, T]));
|
|
7314
|
+
}), l.reverse(), new Result(s, i, r, l, b, u, y, v);
|
|
7315
7315
|
}
|
|
7316
7316
|
var ListDiffer = /* @__PURE__ */ function() {
|
|
7317
7317
|
function s(t, e) {
|
|
@@ -7377,22 +7377,22 @@ function __awaiter(s, i, t, e) {
|
|
|
7377
7377
|
});
|
|
7378
7378
|
}
|
|
7379
7379
|
return new (t || (t = Promise))(function(r, l) {
|
|
7380
|
-
function u(
|
|
7380
|
+
function u(p) {
|
|
7381
7381
|
try {
|
|
7382
|
-
f(e.next(
|
|
7383
|
-
} catch (
|
|
7384
|
-
l(
|
|
7382
|
+
f(e.next(p));
|
|
7383
|
+
} catch (_) {
|
|
7384
|
+
l(_);
|
|
7385
7385
|
}
|
|
7386
7386
|
}
|
|
7387
|
-
function d(
|
|
7387
|
+
function d(p) {
|
|
7388
7388
|
try {
|
|
7389
|
-
f(e.throw(
|
|
7390
|
-
} catch (
|
|
7391
|
-
l(
|
|
7389
|
+
f(e.throw(p));
|
|
7390
|
+
} catch (_) {
|
|
7391
|
+
l(_);
|
|
7392
7392
|
}
|
|
7393
7393
|
}
|
|
7394
|
-
function f(
|
|
7395
|
-
|
|
7394
|
+
function f(p) {
|
|
7395
|
+
p.done ? r(p.value) : n(p.value).then(u, d);
|
|
7396
7396
|
}
|
|
7397
7397
|
f((e = e.apply(s, [])).next());
|
|
7398
7398
|
});
|
|
@@ -7415,8 +7415,8 @@ function __generator(s, i) {
|
|
|
7415
7415
|
return this;
|
|
7416
7416
|
}), l;
|
|
7417
7417
|
function u(f) {
|
|
7418
|
-
return function(
|
|
7419
|
-
return d([f,
|
|
7418
|
+
return function(p) {
|
|
7419
|
+
return d([f, p]);
|
|
7420
7420
|
};
|
|
7421
7421
|
}
|
|
7422
7422
|
function d(f) {
|
|
@@ -7460,8 +7460,8 @@ function __generator(s, i) {
|
|
|
7460
7460
|
continue;
|
|
7461
7461
|
}
|
|
7462
7462
|
f = i.call(s, t);
|
|
7463
|
-
} catch (
|
|
7464
|
-
f = [6,
|
|
7463
|
+
} catch (p) {
|
|
7464
|
+
f = [6, p], n = 0;
|
|
7465
7465
|
} finally {
|
|
7466
7466
|
e = r = 0;
|
|
7467
7467
|
}
|
|
@@ -7613,10 +7613,10 @@ var FlickingProps = {
|
|
|
7613
7613
|
created: function() {
|
|
7614
7614
|
var s = this;
|
|
7615
7615
|
this.vanillaFlicking = null, this.renderEmitter = new Component(), this.diffResult = null, this.getPanels = function() {
|
|
7616
|
-
var i = getCurrentInstance(), t = i?.ctx, e = s.vanillaFlicking, n = s.getSlots(), r = t?.diffResult, l = r ? getRenderingPanels(e, r) : n, u = resolveComponent("Panel"), d = l.map(function(f,
|
|
7616
|
+
var i = getCurrentInstance(), t = i?.ctx, e = s.vanillaFlicking, n = s.getSlots(), r = t?.diffResult, l = r ? getRenderingPanels(e, r) : n, u = resolveComponent("Panel"), d = l.map(function(f, p) {
|
|
7617
7617
|
return h(u, {
|
|
7618
7618
|
key: f.key,
|
|
7619
|
-
ref:
|
|
7619
|
+
ref: p.toString()
|
|
7620
7620
|
}, function() {
|
|
7621
7621
|
return f;
|
|
7622
7622
|
});
|
|
@@ -7628,13 +7628,13 @@ var FlickingProps = {
|
|
|
7628
7628
|
} : {
|
|
7629
7629
|
height: d.size
|
|
7630
7630
|
} : {};
|
|
7631
|
-
return u.map(function(
|
|
7631
|
+
return u.map(function(p) {
|
|
7632
7632
|
return h("div", {
|
|
7633
|
-
key:
|
|
7634
|
-
ref:
|
|
7633
|
+
key: p,
|
|
7634
|
+
ref: p.toString(),
|
|
7635
7635
|
class: e,
|
|
7636
7636
|
style: f,
|
|
7637
|
-
"data-element-index":
|
|
7637
|
+
"data-element-index": p
|
|
7638
7638
|
});
|
|
7639
7639
|
});
|
|
7640
7640
|
}, withFlickingMethods(this, "vanillaFlicking");
|
|
@@ -7776,20 +7776,20 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7776
7776
|
function f(m) {
|
|
7777
7777
|
t("update:idx", m);
|
|
7778
7778
|
}
|
|
7779
|
-
const
|
|
7779
|
+
const p = computed$1({
|
|
7780
7780
|
get: () => e.idx,
|
|
7781
7781
|
set: (m) => f(m)
|
|
7782
7782
|
});
|
|
7783
|
-
function
|
|
7784
|
-
|
|
7783
|
+
function _(m) {
|
|
7784
|
+
p.value = m.index;
|
|
7785
7785
|
}
|
|
7786
7786
|
function y(m) {
|
|
7787
7787
|
n.value.moveTo(m);
|
|
7788
7788
|
}
|
|
7789
|
-
function
|
|
7789
|
+
function v() {
|
|
7790
7790
|
t("opened");
|
|
7791
7791
|
}
|
|
7792
|
-
return watch(
|
|
7792
|
+
return watch(p, (m) => {
|
|
7793
7793
|
y(m);
|
|
7794
7794
|
}), onMounted(() => {
|
|
7795
7795
|
r.value = [
|
|
@@ -7812,14 +7812,14 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7812
7812
|
},
|
|
7813
7813
|
class: "konnectio-flicking-gallery",
|
|
7814
7814
|
plugins: r.value,
|
|
7815
|
-
onChanged:
|
|
7815
|
+
onChanged: _
|
|
7816
7816
|
}, {
|
|
7817
7817
|
viewport: withCtx(() => [
|
|
7818
7818
|
createBaseVNode("div", _hoisted_1$c, [
|
|
7819
|
-
|
|
7819
|
+
s.isListing ? (openBlock(), createElementBlock("div", {
|
|
7820
7820
|
key: 0,
|
|
7821
7821
|
class: "konnectio-gallery-image-overlay",
|
|
7822
|
-
onClick: withModifiers(
|
|
7822
|
+
onClick: withModifiers(v, ["prevent"])
|
|
7823
7823
|
})) : createCommentVNode("", !0),
|
|
7824
7824
|
createBaseVNode("span", _hoisted_2$9, [
|
|
7825
7825
|
createVNode(Icon, {
|
|
@@ -7839,12 +7839,12 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7839
7839
|
b[0] || (b[0] = createBaseVNode("div", { class: "flicking-pagination" }, null, -1))
|
|
7840
7840
|
]),
|
|
7841
7841
|
default: withCtx(() => [
|
|
7842
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
7842
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.gallery, ({ large: P, url: g }, E) => (openBlock(), createElementBlock("div", {
|
|
7843
7843
|
key: E,
|
|
7844
7844
|
class: "konnectio-flicking-gallery-item"
|
|
7845
7845
|
}, [
|
|
7846
7846
|
createBaseVNode("img", {
|
|
7847
|
-
src: P ||
|
|
7847
|
+
src: P || g
|
|
7848
7848
|
}, null, 8, _hoisted_4$7)
|
|
7849
7849
|
]))), 128))
|
|
7850
7850
|
]),
|
|
@@ -7853,10 +7853,10 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7853
7853
|
key: 1,
|
|
7854
7854
|
class: normalizeClass([
|
|
7855
7855
|
"konnectio-single-image",
|
|
7856
|
-
{ "has-zoom":
|
|
7856
|
+
{ "has-zoom": s.isListing }
|
|
7857
7857
|
]),
|
|
7858
|
-
src:
|
|
7859
|
-
onClick: withModifiers(
|
|
7858
|
+
src: s.gallery[0].large || s.gallery[0].url,
|
|
7859
|
+
onClick: withModifiers(v, ["prevent"])
|
|
7860
7860
|
}, null, 10, _hoisted_5$6)) : createCommentVNode("", !0)
|
|
7861
7861
|
]));
|
|
7862
7862
|
}
|
|
@@ -7888,59 +7888,59 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7888
7888
|
currentEventDate: l,
|
|
7889
7889
|
currentEventLocation: u
|
|
7890
7890
|
} = storeToRefs(useEventStore()), d = useAvailabilityStore(), f = useUtilityStore();
|
|
7891
|
-
function
|
|
7892
|
-
const E =
|
|
7893
|
-
let T =
|
|
7891
|
+
function p(g) {
|
|
7892
|
+
const E = g.getFullYear();
|
|
7893
|
+
let T = g.getMonth() + 1, O = g.getDate();
|
|
7894
7894
|
return O < 10 && (O = "0" + O), T < 10 && (T = "0" + T), `${E}-${T}-${O}`;
|
|
7895
7895
|
}
|
|
7896
|
-
const
|
|
7897
|
-
const
|
|
7898
|
-
return n.type !== "event" ? (
|
|
7896
|
+
const _ = computed$1(() => {
|
|
7897
|
+
const g = new URL(window.location.origin + window.location.pathname);
|
|
7898
|
+
return n.type !== "event" ? (g.searchParams.set("id", n.listingId.toString()), g.searchParams.set("ci", p(r.currentArrivalDate)), g.searchParams.set("co", p(r.currentDepartureDate)), f.defaultAdultAmount !== r.currentAdults && g.searchParams.set("a", r.currentAdults.toString()), f.defaultChildAmount !== r.currentChildren && g.searchParams.set("c", r.currentChildren.toString()), d.hasHotelLocations && g.searchParams.set("hid", r.currentLocation.toString()), r.guestDiscountId && g.searchParams.set("gid", r.guestDiscountId.toString())) : (g.searchParams.set("d", p(l.value)), g.searchParams.set("eid", n.listingId.toString()), d.hasEventLocations && g.searchParams.set("rid", u.value.toString())), g.href;
|
|
7899
7899
|
});
|
|
7900
|
-
function y(
|
|
7901
|
-
t("update:idx",
|
|
7900
|
+
function y(g) {
|
|
7901
|
+
t("update:idx", g);
|
|
7902
7902
|
}
|
|
7903
|
-
const
|
|
7903
|
+
const v = computed$1({
|
|
7904
7904
|
get: () => n.idx,
|
|
7905
|
-
set: (
|
|
7905
|
+
set: (g) => y(g)
|
|
7906
7906
|
}), m = ref("testVueMasonry"), b = inject("redrawVueMasonry");
|
|
7907
7907
|
function P() {
|
|
7908
7908
|
b("testVueMasonry");
|
|
7909
7909
|
}
|
|
7910
|
-
return (
|
|
7910
|
+
return (g, E) => {
|
|
7911
7911
|
const T = resolveDirective("masonry-tile"), O = resolveDirective("masonry");
|
|
7912
7912
|
return openBlock(), createBlock(Base$1, {
|
|
7913
|
-
title:
|
|
7913
|
+
title: s.title,
|
|
7914
7914
|
onOpened: P
|
|
7915
7915
|
}, createSlots({
|
|
7916
7916
|
default: withCtx(() => [
|
|
7917
|
-
|
|
7917
|
+
s.gallery ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
7918
7918
|
createVNode(Gallery, {
|
|
7919
|
-
gallery:
|
|
7920
|
-
idx:
|
|
7921
|
-
"onUpdate:idx": E[0] || (E[0] = (S) =>
|
|
7919
|
+
gallery: s.gallery,
|
|
7920
|
+
idx: v.value,
|
|
7921
|
+
"onUpdate:idx": E[0] || (E[0] = (S) => v.value = S)
|
|
7922
7922
|
}, null, 8, ["gallery", "idx"])
|
|
7923
7923
|
])) : createCommentVNode("", !0),
|
|
7924
7924
|
createBaseVNode("div", _hoisted_2$8, [
|
|
7925
|
-
|
|
7925
|
+
s.description ? (openBlock(), createElementBlock("div", {
|
|
7926
7926
|
key: 0,
|
|
7927
7927
|
class: "konnectio-listing-side-panel-description",
|
|
7928
|
-
innerHTML: unref(convertDescription)(
|
|
7928
|
+
innerHTML: unref(convertDescription)(s.description)
|
|
7929
7929
|
}, null, 8, _hoisted_3$8)) : createCommentVNode("", !0),
|
|
7930
|
-
|
|
7930
|
+
s.facilities && s.facilities.length !== 0 ? (openBlock(), createElementBlock("div", _hoisted_4$6, [
|
|
7931
7931
|
withDirectives((openBlock(), createElementBlock("ul", _hoisted_5$5, [
|
|
7932
7932
|
withDirectives(createBaseVNode("div", _hoisted_6$5, null, 512), [
|
|
7933
7933
|
[T]
|
|
7934
7934
|
]),
|
|
7935
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
7936
|
-
key:
|
|
7935
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.facilities, ({ name: S, subFacilities: C }, k) => withDirectives((openBlock(), createElementBlock("li", {
|
|
7936
|
+
key: k,
|
|
7937
7937
|
class: "konnectio-masonry-facility"
|
|
7938
7938
|
}, [
|
|
7939
7939
|
createBaseVNode("h6", null, [
|
|
7940
7940
|
createBaseVNode("span", null, toDisplayString(S), 1)
|
|
7941
7941
|
]),
|
|
7942
7942
|
createBaseVNode("ul", null, [
|
|
7943
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
7943
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(C, ({ name: A }, R) => (openBlock(), createElementBlock("li", { key: R }, [
|
|
7944
7944
|
createBaseVNode("span", null, toDisplayString(A), 1)
|
|
7945
7945
|
]))), 128))
|
|
7946
7946
|
])
|
|
@@ -7955,17 +7955,17 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7955
7955
|
]),
|
|
7956
7956
|
_: 2
|
|
7957
7957
|
}, [
|
|
7958
|
-
(
|
|
7958
|
+
(s.type === "hotel" || s.type === "event" || s.type === "template") && s.disableDeepLink === !1 ? {
|
|
7959
7959
|
name: "footer",
|
|
7960
7960
|
fn: withCtx(() => [
|
|
7961
7961
|
createBaseVNode("div", _hoisted_7$5, [
|
|
7962
7962
|
createVNode(TextField, {
|
|
7963
|
-
modelValue:
|
|
7964
|
-
"onUpdate:modelValue": E[1] || (E[1] = (S) =>
|
|
7963
|
+
modelValue: _.value,
|
|
7964
|
+
"onUpdate:modelValue": E[1] || (E[1] = (S) => _.value = S),
|
|
7965
7965
|
icon: "share-nodes",
|
|
7966
7966
|
"icon-placement": "label",
|
|
7967
7967
|
"icon-type": "fas",
|
|
7968
|
-
label:
|
|
7968
|
+
label: s.type !== "event" ? unref(e)("hotel.shareThis") : unref(e)("event.shareThis"),
|
|
7969
7969
|
readonly: "",
|
|
7970
7970
|
clipboard: ""
|
|
7971
7971
|
}, null, 8, ["modelValue", "label"])
|
|
@@ -8108,8 +8108,8 @@ function initTriggers(s) {
|
|
|
8108
8108
|
};
|
|
8109
8109
|
}
|
|
8110
8110
|
function resetTriggers(s) {
|
|
8111
|
-
var i = s.__resize_triggers__, t = i.expand, e = i.expandChild, n = i.contract, r = n.scrollWidth, l = n.scrollHeight, u = t.offsetWidth, d = t.offsetHeight, f = t.scrollWidth,
|
|
8112
|
-
n.scrollLeft = r, n.scrollTop = l, e.style.width = u + 1 + "px", e.style.height = d + 1 + "px", t.scrollLeft = f, t.scrollTop =
|
|
8111
|
+
var i = s.__resize_triggers__, t = i.expand, e = i.expandChild, n = i.contract, r = n.scrollWidth, l = n.scrollHeight, u = t.offsetWidth, d = t.offsetHeight, f = t.scrollWidth, p = t.scrollHeight;
|
|
8112
|
+
n.scrollLeft = r, n.scrollTop = l, e.style.width = u + 1 + "px", e.style.height = d + 1 + "px", t.scrollLeft = f, t.scrollTop = p;
|
|
8113
8113
|
}
|
|
8114
8114
|
const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = { key: 1 }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
8115
8115
|
__name: "TruncateContent",
|
|
@@ -8131,31 +8131,31 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8131
8131
|
}), f = computed$1(() => {
|
|
8132
8132
|
if (!d.localExpanded && e.maxHeight)
|
|
8133
8133
|
return typeof e?.maxHeight == "number" ? `${e?.maxHeight}px` : e?.maxHeight;
|
|
8134
|
-
}),
|
|
8135
|
-
u.value && (u.value.innerHTML = convertDescription(
|
|
8136
|
-
},
|
|
8137
|
-
d.localExpanded || (
|
|
8134
|
+
}), p = () => {
|
|
8135
|
+
u.value && (u.value.innerHTML = convertDescription(k.value));
|
|
8136
|
+
}, _ = () => {
|
|
8137
|
+
d.localExpanded || (p(), (m() || C.value) && P());
|
|
8138
8138
|
}, y = () => {
|
|
8139
|
-
e.text && (d.offset = e.text.length,
|
|
8140
|
-
r.value && removeListener(r.value,
|
|
8141
|
-
}),
|
|
8142
|
-
},
|
|
8139
|
+
e.text && (d.offset = e.text.length, v(), e.autoResize && r.value && (addListener(r.value, _), d.unregisterResizeCallback = () => {
|
|
8140
|
+
r.value && removeListener(r.value, _);
|
|
8141
|
+
}), _());
|
|
8142
|
+
}, v = () => {
|
|
8143
8143
|
d.unregisterResizeCallback?.();
|
|
8144
8144
|
}, m = () => !e.maxLines && !e.maxHeight || !r.value ? !1 : !!(e.maxLines && b() > e.maxLines || e.maxHeight && r.value.scrollHeight > r.value.offsetHeight), b = () => l.value ? Object.keys(
|
|
8145
|
-
Array.prototype.slice.call(l.value.getClientRects()).reduce((
|
|
8145
|
+
Array.prototype.slice.call(l.value.getClientRects()).reduce((I, { top: D, bottom: L }) => {
|
|
8146
8146
|
const B = `${D}/${L}`;
|
|
8147
|
-
return
|
|
8147
|
+
return I[B] || (I[B] = !0), I;
|
|
8148
8148
|
}, {})
|
|
8149
|
-
).length : 0, P = (...
|
|
8150
|
-
const [D = 0, L = d.offset] =
|
|
8149
|
+
).length : 0, P = (...I) => {
|
|
8150
|
+
const [D = 0, L = d.offset] = I;
|
|
8151
8151
|
if (L - D <= 3) {
|
|
8152
8152
|
E();
|
|
8153
8153
|
return;
|
|
8154
8154
|
}
|
|
8155
8155
|
const B = Math.floor((L + D) / 2);
|
|
8156
|
-
|
|
8157
|
-
},
|
|
8158
|
-
d.offset =
|
|
8156
|
+
g(B), m() ? P(D, B) : P(B, L);
|
|
8157
|
+
}, g = (I) => {
|
|
8158
|
+
d.offset = I, p();
|
|
8159
8159
|
}, E = () => {
|
|
8160
8160
|
T(), O();
|
|
8161
8161
|
}, T = () => {
|
|
@@ -8164,27 +8164,27 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8164
8164
|
}, O = () => {
|
|
8165
8165
|
for (; m() && b() > 1 && d.offset > 0; )
|
|
8166
8166
|
S(-1);
|
|
8167
|
-
}, S = (
|
|
8168
|
-
|
|
8169
|
-
},
|
|
8167
|
+
}, S = (I) => {
|
|
8168
|
+
g(d.offset + I);
|
|
8169
|
+
}, C = computed$1(() => e.text ? d.offset !== e.text.length : !1);
|
|
8170
8170
|
watch(
|
|
8171
|
-
() =>
|
|
8172
|
-
(
|
|
8171
|
+
() => C.value,
|
|
8172
|
+
(I) => {
|
|
8173
8173
|
setTimeout(() => {
|
|
8174
|
-
n("clamp-change",
|
|
8174
|
+
n("clamp-change", I);
|
|
8175
8175
|
}, 0);
|
|
8176
8176
|
},
|
|
8177
8177
|
{ immediate: !0 }
|
|
8178
8178
|
);
|
|
8179
|
-
const
|
|
8179
|
+
const k = computed$1(() => C.value ? A.value : e.text), A = computed$1(() => {
|
|
8180
8180
|
if (e.location === "start")
|
|
8181
8181
|
return e.ellipsis + (e.text.slice(-d.offset) || "").trim();
|
|
8182
8182
|
if (e.location === "middle") {
|
|
8183
|
-
const
|
|
8184
|
-
return (e.text.slice(0,
|
|
8183
|
+
const I = Math.floor(d.offset / 2);
|
|
8184
|
+
return (e.text.slice(0, I) || "").trim() + e.ellipsis + (e.text.slice(-I) || "").trim();
|
|
8185
8185
|
}
|
|
8186
8186
|
return (e.text.slice(0, d.offset) || "").trim() + e.ellipsis;
|
|
8187
|
-
}),
|
|
8187
|
+
}), R = () => {
|
|
8188
8188
|
d.localExpanded = !0;
|
|
8189
8189
|
}, N = () => {
|
|
8190
8190
|
d.localExpanded = !1;
|
|
@@ -8193,19 +8193,19 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8193
8193
|
};
|
|
8194
8194
|
return watch(
|
|
8195
8195
|
() => e.expanded,
|
|
8196
|
-
(
|
|
8197
|
-
d.localExpanded =
|
|
8196
|
+
(I) => {
|
|
8197
|
+
d.localExpanded = I;
|
|
8198
8198
|
}
|
|
8199
8199
|
), watch(
|
|
8200
8200
|
() => d.localExpanded,
|
|
8201
|
-
(
|
|
8202
|
-
|
|
8201
|
+
(I) => {
|
|
8202
|
+
I ? g(e.text.length) : _(), e.expanded !== I && n("update:expanded", I);
|
|
8203
8203
|
}
|
|
8204
8204
|
), watch(
|
|
8205
|
-
() => [e.maxLines, e.maxHeight, e.ellipsis, e.location,
|
|
8205
|
+
() => [e.maxLines, e.maxHeight, e.ellipsis, e.location, C.value].join(),
|
|
8206
8206
|
() => {
|
|
8207
8207
|
nextTick(() => {
|
|
8208
|
-
|
|
8208
|
+
_();
|
|
8209
8209
|
});
|
|
8210
8210
|
}
|
|
8211
8211
|
), watch(
|
|
@@ -8216,10 +8216,10 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8216
8216
|
});
|
|
8217
8217
|
}
|
|
8218
8218
|
), onUnmounted(() => {
|
|
8219
|
-
|
|
8219
|
+
v();
|
|
8220
8220
|
}), onMounted(() => {
|
|
8221
8221
|
y();
|
|
8222
|
-
}), (
|
|
8222
|
+
}), (I, D) => (openBlock(), createElementBlock("div", {
|
|
8223
8223
|
ref_key: "textClampRef",
|
|
8224
8224
|
ref: r,
|
|
8225
8225
|
class: "text-clamp",
|
|
@@ -8232,26 +8232,26 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8232
8232
|
ref_key: "contentRef",
|
|
8233
8233
|
ref: l
|
|
8234
8234
|
}, [
|
|
8235
|
-
renderSlot(
|
|
8236
|
-
expand:
|
|
8235
|
+
renderSlot(I.$slots, "before", {
|
|
8236
|
+
expand: R,
|
|
8237
8237
|
collapse: N,
|
|
8238
8238
|
toggle: w,
|
|
8239
|
-
clamped:
|
|
8239
|
+
clamped: C.value,
|
|
8240
8240
|
expanded: d.localExpanded
|
|
8241
8241
|
}),
|
|
8242
8242
|
createBaseVNode("span", {
|
|
8243
8243
|
ref_key: "textRef",
|
|
8244
8244
|
ref: u,
|
|
8245
|
-
"aria-label":
|
|
8245
|
+
"aria-label": s.text
|
|
8246
8246
|
}, null, 8, _hoisted_1$a),
|
|
8247
|
-
renderSlot(
|
|
8248
|
-
expand:
|
|
8247
|
+
renderSlot(I.$slots, "after", {
|
|
8248
|
+
expand: R,
|
|
8249
8249
|
collapse: N,
|
|
8250
8250
|
toggle: w,
|
|
8251
|
-
clamped:
|
|
8251
|
+
clamped: C.value,
|
|
8252
8252
|
expanded: d.localExpanded
|
|
8253
8253
|
}, () => [
|
|
8254
|
-
|
|
8254
|
+
C.value || d.localExpanded ? (openBlock(), createElementBlock("button", {
|
|
8255
8255
|
key: 0,
|
|
8256
8256
|
class: "link",
|
|
8257
8257
|
onClick: D[0] || (D[0] = withModifiers((L) => w(), ["prevent"]))
|
|
@@ -8292,30 +8292,30 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8292
8292
|
function f() {
|
|
8293
8293
|
t.value = !0;
|
|
8294
8294
|
}
|
|
8295
|
-
function _
|
|
8295
|
+
function p(_) {
|
|
8296
8296
|
let y = "";
|
|
8297
|
-
return
|
|
8298
|
-
y += `<li>${
|
|
8297
|
+
return _.forEach(({ name: v }) => {
|
|
8298
|
+
y += `<li>${v}</li>`;
|
|
8299
8299
|
}), `<ul>${y}</ul>`;
|
|
8300
8300
|
}
|
|
8301
|
-
return (
|
|
8302
|
-
const
|
|
8301
|
+
return (_, y) => {
|
|
8302
|
+
const v = resolveDirective("tooltip");
|
|
8303
8303
|
return openBlock(), createElementBlock("li", {
|
|
8304
8304
|
class: normalizeClass([
|
|
8305
8305
|
"konnectio-listing",
|
|
8306
|
-
{ "no-gallery": !
|
|
8307
|
-
{ "only-featured":
|
|
8306
|
+
{ "no-gallery": !s.gallery || s.gallery.length === 0 },
|
|
8307
|
+
{ "only-featured": s.gallery && s.gallery.length === 1 }
|
|
8308
8308
|
])
|
|
8309
8309
|
}, [
|
|
8310
|
-
|
|
8310
|
+
s.gallery ? (openBlock(), createElementBlock("div", {
|
|
8311
8311
|
key: 0,
|
|
8312
8312
|
class: normalizeClass([
|
|
8313
8313
|
"konnectio-listing-featured",
|
|
8314
|
-
{ "single-image":
|
|
8314
|
+
{ "single-image": s.gallery.length === 1 }
|
|
8315
8315
|
])
|
|
8316
8316
|
}, [
|
|
8317
8317
|
createVNode(Gallery, {
|
|
8318
|
-
gallery:
|
|
8318
|
+
gallery: s.gallery,
|
|
8319
8319
|
idx: e.value,
|
|
8320
8320
|
"onUpdate:idx": y[0] || (y[0] = (m) => e.value = m),
|
|
8321
8321
|
"is-listing": !0,
|
|
@@ -8332,11 +8332,11 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8332
8332
|
])
|
|
8333
8333
|
}, [
|
|
8334
8334
|
createBaseVNode("h3", {
|
|
8335
|
-
title: unref(capitalized)(
|
|
8336
|
-
class: normalizeClass({ "no-padding":
|
|
8335
|
+
title: unref(capitalized)(s.name),
|
|
8336
|
+
class: normalizeClass({ "no-padding": s.hideInfoButton })
|
|
8337
8337
|
}, [
|
|
8338
|
-
createBaseVNode("span", null, toDisplayString(unref(capitalized)(
|
|
8339
|
-
|
|
8338
|
+
createBaseVNode("span", null, toDisplayString(unref(capitalized)(s.name)), 1),
|
|
8339
|
+
s.hideInfoButton ? createCommentVNode("", !0) : (openBlock(), createElementBlock("button", {
|
|
8340
8340
|
key: 0,
|
|
8341
8341
|
class: "konnectio-listing-read-more",
|
|
8342
8342
|
type: "button",
|
|
@@ -8348,39 +8348,39 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8348
8348
|
})
|
|
8349
8349
|
]))
|
|
8350
8350
|
], 10, _hoisted_3$6),
|
|
8351
|
-
d.value ||
|
|
8351
|
+
d.value || s.includesBreakfast || s.fromDate && s.toDate || s.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), s.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("ul", _hoisted_4$5, [
|
|
8352
8352
|
d.value ? (openBlock(), createElementBlock("li", _hoisted_5$4, [
|
|
8353
|
-
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.pricesFrom")}: ${unref(showPrice)(
|
|
8353
|
+
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.pricesFrom")}: ${unref(showPrice)(s.pricesFrom, unref(l))}`), 1)
|
|
8354
8354
|
])) : createCommentVNode("", !0),
|
|
8355
|
-
|
|
8355
|
+
s.includesBreakfast ? (openBlock(), createElementBlock("li", _hoisted_6$4, [
|
|
8356
8356
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.breakfastIncluded")), 1),
|
|
8357
8357
|
createCommentVNode("", !0)
|
|
8358
8358
|
])) : createCommentVNode("", !0),
|
|
8359
|
-
|
|
8360
|
-
createBaseVNode("span", null, toDisplayString(`${unref(showDate)(
|
|
8361
|
-
])) :
|
|
8362
|
-
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.availableUntil")}: ${unref(showDate)(
|
|
8359
|
+
s.fromDate && s.toDate ? (openBlock(), createElementBlock("li", _hoisted_7$4, [
|
|
8360
|
+
createBaseVNode("span", null, toDisplayString(`${unref(showDate)(s.fromDate)} - ${unref(showDate)(s.toDate)}`), 1)
|
|
8361
|
+
])) : s.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), s.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("li", _hoisted_8$3, [
|
|
8362
|
+
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.availableUntil")}: ${unref(showDate)(s.toDate)}`), 1)
|
|
8363
8363
|
])) : createCommentVNode("", !0)
|
|
8364
8364
|
])) : createCommentVNode("", !0)
|
|
8365
8365
|
], 2),
|
|
8366
8366
|
createBaseVNode("div", _hoisted_9$2, [
|
|
8367
|
-
renderSlot(
|
|
8368
|
-
|
|
8367
|
+
renderSlot(_.$slots, "description", {}, () => [
|
|
8368
|
+
s.description ? (openBlock(), createBlock(_sfc_main$9, {
|
|
8369
8369
|
key: 0,
|
|
8370
|
-
text:
|
|
8370
|
+
text: s.description
|
|
8371
8371
|
}, null, 8, ["text"])) : createCommentVNode("", !0)
|
|
8372
8372
|
])
|
|
8373
8373
|
]),
|
|
8374
|
-
|
|
8375
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8374
|
+
s.facilities ? (openBlock(), createElementBlock("ul", _hoisted_10$2, [
|
|
8375
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.facilities, ({ icon: m, name: b, subFacilities: P }) => (openBlock(), createElementBlock(Fragment, null, [
|
|
8376
8376
|
m ? withDirectives((openBlock(), createElementBlock("li", { key: b }, [
|
|
8377
8377
|
createVNode(Icon, {
|
|
8378
8378
|
icon: m,
|
|
8379
8379
|
color: "header"
|
|
8380
8380
|
}, null, 8, ["icon"])
|
|
8381
8381
|
])), [
|
|
8382
|
-
[
|
|
8383
|
-
content:
|
|
8382
|
+
[v, {
|
|
8383
|
+
content: p(P),
|
|
8384
8384
|
classes: ["tooltip", "konnectio-tooltip"],
|
|
8385
8385
|
html: !0
|
|
8386
8386
|
}]
|
|
@@ -8389,21 +8389,21 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8389
8389
|
])) : createCommentVNode("", !0)
|
|
8390
8390
|
]),
|
|
8391
8391
|
createBaseVNode("div", _hoisted_11$2, [
|
|
8392
|
-
renderSlot(
|
|
8392
|
+
renderSlot(_.$slots, "action")
|
|
8393
8393
|
]),
|
|
8394
|
-
renderSlot(
|
|
8394
|
+
renderSlot(_.$slots, "default"),
|
|
8395
8395
|
createVNode(SidePanel, {
|
|
8396
8396
|
modelValue: t.value,
|
|
8397
8397
|
"onUpdate:modelValue": y[2] || (y[2] = (m) => t.value = m),
|
|
8398
|
-
"listing-id":
|
|
8399
|
-
type:
|
|
8400
|
-
title:
|
|
8401
|
-
description:
|
|
8402
|
-
gallery:
|
|
8398
|
+
"listing-id": s.listingId,
|
|
8399
|
+
type: s.type,
|
|
8400
|
+
title: s.name,
|
|
8401
|
+
description: s.description,
|
|
8402
|
+
gallery: s.gallery,
|
|
8403
8403
|
idx: e.value,
|
|
8404
8404
|
"onUpdate:idx": y[3] || (y[3] = (m) => e.value = m),
|
|
8405
|
-
facilities:
|
|
8406
|
-
"disable-deep-link":
|
|
8405
|
+
facilities: s.facilities,
|
|
8406
|
+
"disable-deep-link": s.disableDeepLink
|
|
8407
8407
|
}, null, 8, ["modelValue", "listing-id", "type", "title", "description", "gallery", "idx", "facilities", "disable-deep-link"])
|
|
8408
8408
|
])
|
|
8409
8409
|
], 2);
|
|
@@ -8429,18 +8429,18 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8429
8429
|
set: (l) => n(l)
|
|
8430
8430
|
});
|
|
8431
8431
|
return (l, u) => (openBlock(), createBlock(InputField, {
|
|
8432
|
-
label:
|
|
8432
|
+
label: s.label,
|
|
8433
8433
|
type: "multi-radio",
|
|
8434
|
-
"no-optional-label":
|
|
8434
|
+
"no-optional-label": s.noOptionalLabel
|
|
8435
8435
|
}, {
|
|
8436
8436
|
default: withCtx(() => [
|
|
8437
8437
|
createBaseVNode("ul", _hoisted_1$8, [
|
|
8438
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8438
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.checkboxes, ({ label: d, value: f }, p) => (openBlock(), createElementBlock("li", { key: p }, [
|
|
8439
8439
|
createVNode(Checkbox, {
|
|
8440
8440
|
modelValue: r.value,
|
|
8441
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
8441
|
+
"onUpdate:modelValue": u[0] || (u[0] = (_) => r.value = _),
|
|
8442
8442
|
label: d,
|
|
8443
|
-
name:
|
|
8443
|
+
name: s.name,
|
|
8444
8444
|
type: "radio",
|
|
8445
8445
|
val: f
|
|
8446
8446
|
}, null, 8, ["modelValue", "label", "name", "val"])
|
|
@@ -8460,11 +8460,11 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8460
8460
|
},
|
|
8461
8461
|
emits: ["reset"],
|
|
8462
8462
|
setup(s, { emit: i }) {
|
|
8463
|
-
const t = i, { headerHeight: e } = storeToRefs(useUtilityStore()), n = s, r = ref(0), l = ref(), u = computed$1(() => n.steps.filter((
|
|
8463
|
+
const t = i, { headerHeight: e } = storeToRefs(useUtilityStore()), n = s, r = ref(0), l = ref(), u = computed$1(() => n.steps.filter((v) => !v.hidden)), d = computed$1(() => n.steps[r.value].id), f = () => {
|
|
8464
8464
|
if (l.value) {
|
|
8465
|
-
const
|
|
8466
|
-
if (
|
|
8467
|
-
const b = l.value.getBoundingClientRect().top + window.scrollY -
|
|
8465
|
+
const v = e.value;
|
|
8466
|
+
if (v && v > 0) {
|
|
8467
|
+
const b = l.value.getBoundingClientRect().top + window.scrollY - v;
|
|
8468
8468
|
window.scrollTo({
|
|
8469
8469
|
top: b,
|
|
8470
8470
|
behavior: "smooth"
|
|
@@ -8472,10 +8472,10 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8472
8472
|
} else
|
|
8473
8473
|
l.value.scrollIntoView({ behavior: "smooth" });
|
|
8474
8474
|
}
|
|
8475
|
-
},
|
|
8476
|
-
r.value = r.value +
|
|
8477
|
-
},
|
|
8478
|
-
r.value = r.value -
|
|
8475
|
+
}, p = (v = 1) => {
|
|
8476
|
+
r.value = r.value + v, f();
|
|
8477
|
+
}, _ = (v = 1) => {
|
|
8478
|
+
r.value = r.value - v, f();
|
|
8479
8479
|
};
|
|
8480
8480
|
function y() {
|
|
8481
8481
|
r.value = 0, f();
|
|
@@ -8484,7 +8484,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8484
8484
|
f();
|
|
8485
8485
|
}), watch(r, () => {
|
|
8486
8486
|
r.value === 0 && t("reset");
|
|
8487
|
-
}), (
|
|
8487
|
+
}), (v, m) => (openBlock(), createElementBlock("div", {
|
|
8488
8488
|
id: "konnectio-multi-step-form",
|
|
8489
8489
|
ref_key: "multiStepForm",
|
|
8490
8490
|
ref: l
|
|
@@ -8493,11 +8493,11 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8493
8493
|
createBaseVNode("header", _hoisted_1$7, [
|
|
8494
8494
|
createBaseVNode("div", _hoisted_2$5, [
|
|
8495
8495
|
createBaseVNode("div", null, [
|
|
8496
|
-
|
|
8497
|
-
createBaseVNode("span", null, toDisplayString(
|
|
8496
|
+
s.title && s.layout !== unref(BookingHeaderLayout).Minimal ? (openBlock(), createElementBlock("h2", _hoisted_3$5, [
|
|
8497
|
+
createBaseVNode("span", null, toDisplayString(s.title), 1)
|
|
8498
8498
|
])) : createCommentVNode("", !0),
|
|
8499
|
-
|
|
8500
|
-
createBaseVNode("span", null, toDisplayString(
|
|
8499
|
+
s.subtitle && s.layout !== unref(BookingHeaderLayout).Minimal ? (openBlock(), createElementBlock("h5", _hoisted_4$4, [
|
|
8500
|
+
createBaseVNode("span", null, toDisplayString(s.subtitle), 1)
|
|
8501
8501
|
])) : createCommentVNode("", !0),
|
|
8502
8502
|
createBaseVNode("ul", _hoisted_5$3, [
|
|
8503
8503
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(u.value, (b, P) => (openBlock(), createElementBlock("li", {
|
|
@@ -8517,14 +8517,14 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8517
8517
|
])
|
|
8518
8518
|
]),
|
|
8519
8519
|
createBaseVNode("ul", _hoisted_7$3, [
|
|
8520
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8520
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.steps, (b) => (openBlock(), createElementBlock("li", {
|
|
8521
8521
|
key: b.id,
|
|
8522
8522
|
class: "konnectio-multi-step-form-content-tab"
|
|
8523
8523
|
}, [
|
|
8524
8524
|
withDirectives(createBaseVNode("div", null, [
|
|
8525
|
-
renderSlot(
|
|
8526
|
-
next:
|
|
8527
|
-
prev:
|
|
8525
|
+
renderSlot(v.$slots, b.id, {
|
|
8526
|
+
next: p,
|
|
8527
|
+
prev: _,
|
|
8528
8528
|
reset: y
|
|
8529
8529
|
}, void 0, !0)
|
|
8530
8530
|
], 512), [
|
|
@@ -8829,12 +8829,12 @@ const StickySidebar = /* @__PURE__ */ (() => {
|
|
|
8829
8829
|
let u = "affix." + r.toLowerCase().replace("viewport-", "") + s;
|
|
8830
8830
|
t.eventTrigger(this.sidebar, u), r === "STATIC" ? t.removeClass(this.sidebar, this.options.stickyClass) : t.addClass(this.sidebar, this.options.stickyClass);
|
|
8831
8831
|
for (let f in l.outer) {
|
|
8832
|
-
let
|
|
8833
|
-
this.sidebar.style[f] = l.outer[f] +
|
|
8832
|
+
let p = typeof l.outer[f] == "number" ? "px" : "";
|
|
8833
|
+
this.sidebar.style[f] = l.outer[f] + p;
|
|
8834
8834
|
}
|
|
8835
8835
|
for (let f in l.inner) {
|
|
8836
|
-
let
|
|
8837
|
-
this.sidebarInner.style[f] = l.inner[f] +
|
|
8836
|
+
let p = typeof l.inner[f] == "number" ? "px" : "";
|
|
8837
|
+
this.sidebarInner.style[f] = l.inner[f] + p;
|
|
8838
8838
|
}
|
|
8839
8839
|
let d = "affixed." + r.toLowerCase().replace("viewport-", "") + s;
|
|
8840
8840
|
t.eventTrigger(this.sidebar, d);
|
|
@@ -8916,10 +8916,10 @@ const StickySidebar = /* @__PURE__ */ (() => {
|
|
|
8916
8916
|
* @return {String}
|
|
8917
8917
|
*/
|
|
8918
8918
|
static supportTransform(n) {
|
|
8919
|
-
var r = !1, l = n ? "perspective" : "transform", u = l.charAt(0).toUpperCase() + l.slice(1), d = ["Webkit", "Moz", "O", "ms"], f = document.createElement("support"),
|
|
8920
|
-
return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(
|
|
8921
|
-
if (_
|
|
8922
|
-
return r =
|
|
8919
|
+
var r = !1, l = n ? "perspective" : "transform", u = l.charAt(0).toUpperCase() + l.slice(1), d = ["Webkit", "Moz", "O", "ms"], f = document.createElement("support"), p = f.style;
|
|
8920
|
+
return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(_, y) {
|
|
8921
|
+
if (p[_] !== void 0)
|
|
8922
|
+
return r = _, !1;
|
|
8923
8923
|
}), r;
|
|
8924
8924
|
}
|
|
8925
8925
|
/**
|
|
@@ -9118,11 +9118,11 @@ const _hoisted_1$3 = {
|
|
|
9118
9118
|
enableStickyHeader: u,
|
|
9119
9119
|
headerHeight: d
|
|
9120
9120
|
} = storeToRefs(useUtilityStore()), f = useHotelStore(), {
|
|
9121
|
-
amount:
|
|
9122
|
-
voucher:
|
|
9121
|
+
amount: p,
|
|
9122
|
+
voucher: _,
|
|
9123
9123
|
isLoading: y
|
|
9124
|
-
} = storeToRefs(useApplyGiftCardStore()), { apply:
|
|
9125
|
-
T.value =
|
|
9124
|
+
} = storeToRefs(useApplyGiftCardStore()), { apply: v, reset: m } = useApplyGiftCardStore(), b = useSlots(), P = useModel(s, "discountCode"), g = s, E = computed$1(() => g.basePrice - g.weekendFee - g.roomUpgrade), T = ref("discount"), O = computed$1(() => T.value === "discount"), S = computed$1(() => T.value === "gift-card"), C = computed$1(() => !t.value || !e.value), k = computed$1(() => !t.value && !e.value), A = (R) => {
|
|
9125
|
+
T.value = R;
|
|
9126
9126
|
};
|
|
9127
9127
|
return onMounted(() => {
|
|
9128
9128
|
if (e.value) {
|
|
@@ -9130,19 +9130,19 @@ const _hoisted_1$3 = {
|
|
|
9130
9130
|
return;
|
|
9131
9131
|
}
|
|
9132
9132
|
n.value && A("gift-card");
|
|
9133
|
-
}), (
|
|
9133
|
+
}), (R, N) => {
|
|
9134
9134
|
const w = resolveDirective("sticky");
|
|
9135
9135
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
9136
9136
|
createBaseVNode("div", {
|
|
9137
9137
|
id: "konnectio-reservation-layout-content",
|
|
9138
9138
|
class: normalizeClass([
|
|
9139
9139
|
{ "hide-aside-on-mobile": !unref(b).sidebar },
|
|
9140
|
-
{ "show-additional":
|
|
9140
|
+
{ "show-additional": s.notice || s.showGiftCard && C.value }
|
|
9141
9141
|
])
|
|
9142
9142
|
}, [
|
|
9143
9143
|
createBaseVNode("div", _hoisted_2$2, [
|
|
9144
9144
|
createBaseVNode("form", null, [
|
|
9145
|
-
renderSlot(
|
|
9145
|
+
renderSlot(R.$slots, "form")
|
|
9146
9146
|
])
|
|
9147
9147
|
]),
|
|
9148
9148
|
createBaseVNode("aside", {
|
|
@@ -9160,15 +9160,15 @@ const _hoisted_1$3 = {
|
|
|
9160
9160
|
default: withCtx(() => [
|
|
9161
9161
|
unref(b).sidebar ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
9162
9162
|
createBaseVNode("div", _hoisted_4$2, [
|
|
9163
|
-
renderSlot(
|
|
9163
|
+
renderSlot(R.$slots, "sidebar")
|
|
9164
9164
|
]),
|
|
9165
|
-
|
|
9165
|
+
s.notice ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
9166
9166
|
createBaseVNode("p", {
|
|
9167
|
-
innerHTML:
|
|
9167
|
+
innerHTML: s.notice,
|
|
9168
9168
|
class: "konnectio-wysiwyg"
|
|
9169
9169
|
}, null, 8, _hoisted_6$2)
|
|
9170
9170
|
])) : createCommentVNode("", !0)
|
|
9171
|
-
])) :
|
|
9171
|
+
])) : s.isSidebarLoading ? (openBlock(), createBlock(Sidebar, { key: 2 })) : (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
9172
9172
|
createBaseVNode("div", _hoisted_8$2, [
|
|
9173
9173
|
createBaseVNode("ul", _hoisted_9$1, [
|
|
9174
9174
|
unref(b)["reservation-summary"] ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
@@ -9176,7 +9176,7 @@ const _hoisted_1$3 = {
|
|
|
9176
9176
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.reservationSummary")), 1)
|
|
9177
9177
|
]),
|
|
9178
9178
|
createBaseVNode("ul", null, [
|
|
9179
|
-
renderSlot(
|
|
9179
|
+
renderSlot(R.$slots, "reservation-summary")
|
|
9180
9180
|
])
|
|
9181
9181
|
])) : createCommentVNode("", !0),
|
|
9182
9182
|
createBaseVNode("div", _hoisted_11$1, [
|
|
@@ -9184,26 +9184,26 @@ const _hoisted_1$3 = {
|
|
|
9184
9184
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.priceSummary")), 1)
|
|
9185
9185
|
]),
|
|
9186
9186
|
createBaseVNode("ul", null, [
|
|
9187
|
-
renderSlot(
|
|
9187
|
+
renderSlot(R.$slots, "price-summary"),
|
|
9188
9188
|
E.value > 0 ? (openBlock(), createElementBlock("li", _hoisted_12$1, [
|
|
9189
9189
|
createBaseVNode("span", null, toDisplayString(unref(i)("booking.availability.basePrice")), 1),
|
|
9190
9190
|
createBaseVNode("b", null, toDisplayString(unref(showPrice)(E.value, unref(l))), 1)
|
|
9191
9191
|
])) : createCommentVNode("", !0),
|
|
9192
|
-
|
|
9192
|
+
s.weekendFee > 0 ? (openBlock(), createElementBlock("li", _hoisted_13$1, [
|
|
9193
9193
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.weekendFee")), 1),
|
|
9194
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(
|
|
9194
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(s.weekendFee, unref(l))), 1)
|
|
9195
9195
|
])) : createCommentVNode("", !0),
|
|
9196
|
-
|
|
9196
|
+
s.roomUpgrade > 0 ? (openBlock(), createElementBlock("li", _hoisted_14$1, [
|
|
9197
9197
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.roomUpgrade")), 1),
|
|
9198
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(
|
|
9198
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(s.roomUpgrade, unref(l))), 1)
|
|
9199
9199
|
])) : createCommentVNode("", !0),
|
|
9200
|
-
renderSlot(
|
|
9201
|
-
unref(
|
|
9200
|
+
renderSlot(R.$slots, "expenses"),
|
|
9201
|
+
unref(p) !== 0 ? (openBlock(), createElementBlock("li", _hoisted_15$1, [
|
|
9202
9202
|
createBaseVNode("span", null, [
|
|
9203
9203
|
createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.giftCardDiscount")), 1),
|
|
9204
9204
|
createBaseVNode("a", {
|
|
9205
9205
|
class: "resume-item-remove",
|
|
9206
|
-
onClick: N[0] || (N[0] = withModifiers((
|
|
9206
|
+
onClick: N[0] || (N[0] = withModifiers((I) => unref(m)(), ["prevent"]))
|
|
9207
9207
|
}, [
|
|
9208
9208
|
createVNode(Icon, {
|
|
9209
9209
|
icon: "times",
|
|
@@ -9213,31 +9213,31 @@ const _hoisted_1$3 = {
|
|
|
9213
9213
|
])
|
|
9214
9214
|
]),
|
|
9215
9215
|
createBaseVNode("b", null, [
|
|
9216
|
-
createBaseVNode("span", null, toDisplayString(unref(showPrice)(-unref(
|
|
9216
|
+
createBaseVNode("span", null, toDisplayString(unref(showPrice)(-unref(p), unref(l))), 1)
|
|
9217
9217
|
])
|
|
9218
9218
|
])) : createCommentVNode("", !0),
|
|
9219
9219
|
createBaseVNode("li", null, [
|
|
9220
9220
|
createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.totalPrice")), 1),
|
|
9221
9221
|
createBaseVNode("b", null, [
|
|
9222
|
-
createBaseVNode("u", null, toDisplayString(unref(showPrice)(
|
|
9222
|
+
createBaseVNode("u", null, toDisplayString(unref(showPrice)(s.totalPrice, unref(l))), 1)
|
|
9223
9223
|
])
|
|
9224
9224
|
])
|
|
9225
9225
|
])
|
|
9226
9226
|
]),
|
|
9227
|
-
unref(b).actions &&
|
|
9228
|
-
renderSlot(
|
|
9229
|
-
|
|
9227
|
+
unref(b).actions && s.showTermsNotice ? renderSlot(R.$slots, "actions", { key: 1 }) : createCommentVNode("", !0),
|
|
9228
|
+
renderSlot(R.$slots, "navigation"),
|
|
9229
|
+
s.prevCallback !== void 0 ? (openBlock(), createBlock(Clickable, {
|
|
9230
9230
|
key: 2,
|
|
9231
9231
|
class: "konnectio-abort-reservation",
|
|
9232
9232
|
label: unref(i)("general.goAStepBack"),
|
|
9233
9233
|
secondary: "",
|
|
9234
|
-
onClickEvent:
|
|
9234
|
+
onClickEvent: s.prevCallback
|
|
9235
9235
|
}, null, 8, ["label", "onClickEvent"])) : createCommentVNode("", !0)
|
|
9236
9236
|
])
|
|
9237
9237
|
]),
|
|
9238
|
-
|
|
9238
|
+
s.showGiftCard && C.value ? (openBlock(), createElementBlock("div", _hoisted_16$1, [
|
|
9239
9239
|
createBaseVNode("div", _hoisted_17$1, [
|
|
9240
|
-
|
|
9240
|
+
k.value ? (openBlock(), createElementBlock("nav", {
|
|
9241
9241
|
key: 0,
|
|
9242
9242
|
class: normalizeClass([
|
|
9243
9243
|
"konnectio-reservation-discount-navigation",
|
|
@@ -9248,7 +9248,7 @@ const _hoisted_1$3 = {
|
|
|
9248
9248
|
createBaseVNode("li", null, [
|
|
9249
9249
|
createBaseVNode("button", {
|
|
9250
9250
|
class: normalizeClass({ active: O.value }),
|
|
9251
|
-
onClick: N[1] || (N[1] = withModifiers((
|
|
9251
|
+
onClick: N[1] || (N[1] = withModifiers((I) => A("discount"), ["prevent"]))
|
|
9252
9252
|
}, [
|
|
9253
9253
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.discountCode")), 1)
|
|
9254
9254
|
], 2)
|
|
@@ -9256,7 +9256,7 @@ const _hoisted_1$3 = {
|
|
|
9256
9256
|
createBaseVNode("li", null, [
|
|
9257
9257
|
createBaseVNode("button", {
|
|
9258
9258
|
class: normalizeClass({ active: S.value }),
|
|
9259
|
-
onClick: N[2] || (N[2] = withModifiers((
|
|
9259
|
+
onClick: N[2] || (N[2] = withModifiers((I) => A("gift-card"), ["prevent"]))
|
|
9260
9260
|
}, [
|
|
9261
9261
|
createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.giftCardCode")), 1)
|
|
9262
9262
|
], 2)
|
|
@@ -9275,25 +9275,25 @@ const _hoisted_1$3 = {
|
|
|
9275
9275
|
O.value ? (openBlock(), createBlock(ActionField, {
|
|
9276
9276
|
key: 0,
|
|
9277
9277
|
modelValue: P.value,
|
|
9278
|
-
"onUpdate:modelValue": N[3] || (N[3] = (
|
|
9278
|
+
"onUpdate:modelValue": N[3] || (N[3] = (I) => P.value = I),
|
|
9279
9279
|
icon: "tags",
|
|
9280
9280
|
"button-icon": "paper-plane-top",
|
|
9281
9281
|
placeholder: unref(i)("general.discountCodePlaceholder"),
|
|
9282
9282
|
action: "success",
|
|
9283
9283
|
secondary: !0,
|
|
9284
9284
|
"is-loading": unref(f).isValidatingDiscountCode,
|
|
9285
|
-
onAction: N[4] || (N[4] = (
|
|
9285
|
+
onAction: N[4] || (N[4] = (I) => s.validateDiscountCode())
|
|
9286
9286
|
}, null, 8, ["modelValue", "placeholder", "is-loading"])) : S.value ? (openBlock(), createBlock(ActionField, {
|
|
9287
9287
|
key: 1,
|
|
9288
|
-
modelValue: unref(
|
|
9289
|
-
"onUpdate:modelValue": N[5] || (N[5] = (
|
|
9288
|
+
modelValue: unref(_),
|
|
9289
|
+
"onUpdate:modelValue": N[5] || (N[5] = (I) => isRef(_) ? _.value = I : null),
|
|
9290
9290
|
icon: "gift-card",
|
|
9291
9291
|
"button-icon": "paper-plane-top",
|
|
9292
9292
|
placeholder: "XXXXXXXX",
|
|
9293
9293
|
action: "success",
|
|
9294
9294
|
secondary: !0,
|
|
9295
9295
|
"is-loading": unref(y),
|
|
9296
|
-
onAction: N[6] || (N[6] = (
|
|
9296
|
+
onAction: N[6] || (N[6] = (I) => unref(v)())
|
|
9297
9297
|
}, null, 8, ["modelValue", "is-loading"])) : createCommentVNode("", !0)
|
|
9298
9298
|
]),
|
|
9299
9299
|
_: 1
|
|
@@ -9301,9 +9301,9 @@ const _hoisted_1$3 = {
|
|
|
9301
9301
|
])
|
|
9302
9302
|
])
|
|
9303
9303
|
])) : createCommentVNode("", !0),
|
|
9304
|
-
|
|
9304
|
+
s.notice && s.notice !== "<br>" && s.notice !== "<p><br></p>" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
9305
9305
|
createBaseVNode("p", {
|
|
9306
|
-
innerHTML:
|
|
9306
|
+
innerHTML: s.notice,
|
|
9307
9307
|
class: "konnectio-wysiwyg"
|
|
9308
9308
|
}, null, 8, _hoisted_23)
|
|
9309
9309
|
])) : createCommentVNode("", !0)
|
|
@@ -9324,25 +9324,25 @@ const _hoisted_1$3 = {
|
|
|
9324
9324
|
createBaseVNode("h3", {
|
|
9325
9325
|
title: unref(i)("booking.reservation.totalPrice")
|
|
9326
9326
|
}, [
|
|
9327
|
-
createBaseVNode("u", null, toDisplayString(unref(showPrice)(
|
|
9327
|
+
createBaseVNode("u", null, toDisplayString(unref(showPrice)(s.totalPrice, unref(l))), 1)
|
|
9328
9328
|
], 8, _hoisted_30),
|
|
9329
9329
|
createBaseVNode("div", _hoisted_31, [
|
|
9330
|
-
renderSlot(
|
|
9330
|
+
renderSlot(R.$slots, "mobile-under-price")
|
|
9331
9331
|
])
|
|
9332
9332
|
]),
|
|
9333
9333
|
unref(b)["mobile-summary"] ? (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
9334
|
-
renderSlot(
|
|
9334
|
+
renderSlot(R.$slots, "mobile-summary")
|
|
9335
9335
|
])) : createCommentVNode("", !0),
|
|
9336
9336
|
unref(b).navigation ? (openBlock(), createElementBlock("div", _hoisted_33, [
|
|
9337
|
-
renderSlot(
|
|
9338
|
-
|
|
9337
|
+
renderSlot(R.$slots, "navigation"),
|
|
9338
|
+
s.prevCallback !== void 0 ? (openBlock(), createBlock(Clickable, {
|
|
9339
9339
|
key: 0,
|
|
9340
9340
|
class: "konnectio-abort-reservation",
|
|
9341
9341
|
label: unref(i)("general.goAStepBack"),
|
|
9342
9342
|
secondary: "",
|
|
9343
|
-
onClickEvent:
|
|
9343
|
+
onClickEvent: s.prevCallback
|
|
9344
9344
|
}, null, 8, ["label", "onClickEvent"])) : createCommentVNode("", !0),
|
|
9345
|
-
unref(b).actions &&
|
|
9345
|
+
unref(b).actions && s.showTermsNotice ? renderSlot(R.$slots, "actions", { key: 1 }) : createCommentVNode("", !0)
|
|
9346
9346
|
])) : createCommentVNode("", !0)
|
|
9347
9347
|
])
|
|
9348
9348
|
])
|
|
@@ -9382,10 +9382,10 @@ const _hoisted_1$3 = {
|
|
|
9382
9382
|
adults: u,
|
|
9383
9383
|
children: d,
|
|
9384
9384
|
offerDate: f,
|
|
9385
|
-
totalPrice:
|
|
9386
|
-
totalVAT:
|
|
9385
|
+
totalPrice: p,
|
|
9386
|
+
totalVAT: _,
|
|
9387
9387
|
subTotalPrice: y
|
|
9388
|
-
} = storeToRefs(usePaymentStore()), { currency:
|
|
9388
|
+
} = storeToRefs(usePaymentStore()), { currency: v } = storeToRefs(useUtilityStore()), m = useHotelStore();
|
|
9389
9389
|
return (b, P) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
9390
9390
|
createBaseVNode("div", _hoisted_2$1, [
|
|
9391
9391
|
createBaseVNode("h2", _hoisted_3$1, [
|
|
@@ -9393,7 +9393,7 @@ const _hoisted_1$3 = {
|
|
|
9393
9393
|
]),
|
|
9394
9394
|
createBaseVNode("div", {
|
|
9395
9395
|
id: "konnectio-confirmation-message",
|
|
9396
|
-
innerHTML:
|
|
9396
|
+
innerHTML: s.message
|
|
9397
9397
|
}, null, 8, _hoisted_4$1)
|
|
9398
9398
|
]),
|
|
9399
9399
|
createBaseVNode("div", _hoisted_5$1, [
|
|
@@ -9452,22 +9452,22 @@ const _hoisted_1$3 = {
|
|
|
9452
9452
|
]),
|
|
9453
9453
|
createBaseVNode("tbody", null, [
|
|
9454
9454
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(e), ({
|
|
9455
|
-
productName:
|
|
9455
|
+
productName: g,
|
|
9456
9456
|
quantity: E,
|
|
9457
9457
|
unitPrice: T,
|
|
9458
9458
|
totalPrice: O
|
|
9459
|
-
}) => (openBlock(), createElementBlock("tr", { key:
|
|
9459
|
+
}) => (openBlock(), createElementBlock("tr", { key: g }, [
|
|
9460
9460
|
createBaseVNode("td", null, [
|
|
9461
|
-
createBaseVNode("span", null, toDisplayString(
|
|
9461
|
+
createBaseVNode("span", null, toDisplayString(g), 1)
|
|
9462
9462
|
]),
|
|
9463
9463
|
createBaseVNode("td", _hoisted_17, [
|
|
9464
9464
|
createBaseVNode("span", null, toDisplayString(E), 1)
|
|
9465
9465
|
]),
|
|
9466
9466
|
createBaseVNode("td", _hoisted_18, [
|
|
9467
|
-
createBaseVNode("span", null, toDisplayString(unref(showPrice)(T, unref(
|
|
9467
|
+
createBaseVNode("span", null, toDisplayString(unref(showPrice)(T, unref(v))), 1)
|
|
9468
9468
|
]),
|
|
9469
9469
|
createBaseVNode("td", null, [
|
|
9470
|
-
createBaseVNode("span", null, toDisplayString(unref(showPrice)(O, unref(
|
|
9470
|
+
createBaseVNode("span", null, toDisplayString(unref(showPrice)(O, unref(v))), 1)
|
|
9471
9471
|
])
|
|
9472
9472
|
]))), 128))
|
|
9473
9473
|
])
|
|
@@ -9476,15 +9476,15 @@ const _hoisted_1$3 = {
|
|
|
9476
9476
|
createBaseVNode("ul", _hoisted_19, [
|
|
9477
9477
|
unref(y) ? (openBlock(), createElementBlock("li", _hoisted_20, [
|
|
9478
9478
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.subTotal")), 1),
|
|
9479
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(y), unref(
|
|
9479
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(y), unref(v))), 1)
|
|
9480
9480
|
])) : createCommentVNode("", !0),
|
|
9481
|
-
unref(
|
|
9481
|
+
unref(_) ? (openBlock(), createElementBlock("li", _hoisted_21, [
|
|
9482
9482
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.vat")), 1),
|
|
9483
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(
|
|
9483
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(_), unref(v))), 1)
|
|
9484
9484
|
])) : createCommentVNode("", !0),
|
|
9485
|
-
unref(
|
|
9485
|
+
unref(p) ? (openBlock(), createElementBlock("li", _hoisted_22, [
|
|
9486
9486
|
createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.totalPrice")), 1),
|
|
9487
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(
|
|
9487
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(p), unref(v))), 1)
|
|
9488
9488
|
])) : createCommentVNode("", !0)
|
|
9489
9489
|
])
|
|
9490
9490
|
]));
|
|
@@ -9572,7 +9572,7 @@ const _hoisted_1$3 = {
|
|
|
9572
9572
|
},
|
|
9573
9573
|
setup(s) {
|
|
9574
9574
|
return (i, t) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
9575
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
9575
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.amount, (e) => (openBlock(), createBlock(ListingSkeleton, { key: e }))), 128))
|
|
9576
9576
|
]));
|
|
9577
9577
|
}
|
|
9578
9578
|
}), Listings = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dfdb5e6b"]]);
|
|
@@ -9805,14 +9805,14 @@ function requireGetSize() {
|
|
|
9805
9805
|
(function(i, t) {
|
|
9806
9806
|
s.exports ? s.exports = t() : i.getSize = t();
|
|
9807
9807
|
})(window, function() {
|
|
9808
|
-
function t(
|
|
9809
|
-
var m = parseFloat(
|
|
9808
|
+
function t(v) {
|
|
9809
|
+
var m = parseFloat(v), b = v.indexOf("%") == -1 && !isNaN(m);
|
|
9810
9810
|
return b && m;
|
|
9811
9811
|
}
|
|
9812
9812
|
function e() {
|
|
9813
9813
|
}
|
|
9814
|
-
var n = typeof console > "u" ? e : function(
|
|
9815
|
-
console.error(
|
|
9814
|
+
var n = typeof console > "u" ? e : function(v) {
|
|
9815
|
+
console.error(v);
|
|
9816
9816
|
}, r = [
|
|
9817
9817
|
"paddingLeft",
|
|
9818
9818
|
"paddingRight",
|
|
@@ -9828,7 +9828,7 @@ function requireGetSize() {
|
|
|
9828
9828
|
"borderBottomWidth"
|
|
9829
9829
|
], l = r.length;
|
|
9830
9830
|
function u() {
|
|
9831
|
-
for (var
|
|
9831
|
+
for (var v = {
|
|
9832
9832
|
width: 0,
|
|
9833
9833
|
height: 0,
|
|
9834
9834
|
innerWidth: 0,
|
|
@@ -9837,43 +9837,43 @@ function requireGetSize() {
|
|
|
9837
9837
|
outerHeight: 0
|
|
9838
9838
|
}, m = 0; m < l; m++) {
|
|
9839
9839
|
var b = r[m];
|
|
9840
|
-
|
|
9840
|
+
v[b] = 0;
|
|
9841
9841
|
}
|
|
9842
|
-
return
|
|
9842
|
+
return v;
|
|
9843
9843
|
}
|
|
9844
|
-
function d(
|
|
9845
|
-
var m = getComputedStyle(
|
|
9844
|
+
function d(v) {
|
|
9845
|
+
var m = getComputedStyle(v);
|
|
9846
9846
|
return m || n("Style returned " + m + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), m;
|
|
9847
9847
|
}
|
|
9848
|
-
var f = !1,
|
|
9849
|
-
function
|
|
9848
|
+
var f = !1, p;
|
|
9849
|
+
function _() {
|
|
9850
9850
|
if (!f) {
|
|
9851
9851
|
f = !0;
|
|
9852
|
-
var
|
|
9853
|
-
|
|
9852
|
+
var v = document.createElement("div");
|
|
9853
|
+
v.style.width = "200px", v.style.padding = "1px 2px 3px 4px", v.style.borderStyle = "solid", v.style.borderWidth = "1px 2px 3px 4px", v.style.boxSizing = "border-box";
|
|
9854
9854
|
var m = document.body || document.documentElement;
|
|
9855
|
-
m.appendChild(
|
|
9856
|
-
var b = d(
|
|
9857
|
-
|
|
9855
|
+
m.appendChild(v);
|
|
9856
|
+
var b = d(v);
|
|
9857
|
+
p = Math.round(t(b.width)) == 200, y.isBoxSizeOuter = p, m.removeChild(v);
|
|
9858
9858
|
}
|
|
9859
9859
|
}
|
|
9860
|
-
function y(
|
|
9861
|
-
if (
|
|
9862
|
-
var m = d(
|
|
9860
|
+
function y(v) {
|
|
9861
|
+
if (_(), typeof v == "string" && (v = document.querySelector(v)), !(!v || typeof v != "object" || !v.nodeType)) {
|
|
9862
|
+
var m = d(v);
|
|
9863
9863
|
if (m.display == "none")
|
|
9864
9864
|
return u();
|
|
9865
9865
|
var b = {};
|
|
9866
|
-
b.width =
|
|
9867
|
-
for (var P = b.isBorderBox = m.boxSizing == "border-box",
|
|
9868
|
-
var E = r[
|
|
9866
|
+
b.width = v.offsetWidth, b.height = v.offsetHeight;
|
|
9867
|
+
for (var P = b.isBorderBox = m.boxSizing == "border-box", g = 0; g < l; g++) {
|
|
9868
|
+
var E = r[g], T = m[E], O = parseFloat(T);
|
|
9869
9869
|
b[E] = isNaN(O) ? 0 : O;
|
|
9870
9870
|
}
|
|
9871
|
-
var S = b.paddingLeft + b.paddingRight,
|
|
9872
|
-
|
|
9873
|
-
(w ? 0 : S +
|
|
9871
|
+
var S = b.paddingLeft + b.paddingRight, C = b.paddingTop + b.paddingBottom, k = b.marginLeft + b.marginRight, A = b.marginTop + b.marginBottom, R = b.borderLeftWidth + b.borderRightWidth, N = b.borderTopWidth + b.borderBottomWidth, w = P && p, I = t(m.width);
|
|
9872
|
+
I !== !1 && (b.width = I + // add padding and border unless it's already including it
|
|
9873
|
+
(w ? 0 : S + R));
|
|
9874
9874
|
var D = t(m.height);
|
|
9875
9875
|
return D !== !1 && (b.height = D + // add padding and border unless it's already including it
|
|
9876
|
-
(w ? 0 :
|
|
9876
|
+
(w ? 0 : C + N)), b.innerWidth = b.width - (S + R), b.innerHeight = b.height - (C + N), b.outerWidth = b.width + k, b.outerHeight = b.height + A, b;
|
|
9877
9877
|
}
|
|
9878
9878
|
}
|
|
9879
9879
|
return y;
|
|
@@ -9947,46 +9947,46 @@ function requireUtils() {
|
|
|
9947
9947
|
}, n.filterFindElements = function(u, d) {
|
|
9948
9948
|
u = n.makeArray(u);
|
|
9949
9949
|
var f = [];
|
|
9950
|
-
return u.forEach(function(
|
|
9951
|
-
if (
|
|
9950
|
+
return u.forEach(function(p) {
|
|
9951
|
+
if (p instanceof HTMLElement) {
|
|
9952
9952
|
if (!d) {
|
|
9953
|
-
f.push(
|
|
9953
|
+
f.push(p);
|
|
9954
9954
|
return;
|
|
9955
9955
|
}
|
|
9956
|
-
e(
|
|
9957
|
-
for (var
|
|
9958
|
-
f.push(
|
|
9956
|
+
e(p, d) && f.push(p);
|
|
9957
|
+
for (var _ = p.querySelectorAll(d), y = 0; y < _.length; y++)
|
|
9958
|
+
f.push(_[y]);
|
|
9959
9959
|
}
|
|
9960
9960
|
}), f;
|
|
9961
9961
|
}, n.debounceMethod = function(u, d, f) {
|
|
9962
9962
|
f = f || 100;
|
|
9963
|
-
var
|
|
9963
|
+
var p = u.prototype[d], _ = d + "Timeout";
|
|
9964
9964
|
u.prototype[d] = function() {
|
|
9965
|
-
var y = this[
|
|
9965
|
+
var y = this[_];
|
|
9966
9966
|
clearTimeout(y);
|
|
9967
|
-
var
|
|
9968
|
-
this[
|
|
9969
|
-
|
|
9967
|
+
var v = arguments, m = this;
|
|
9968
|
+
this[_] = setTimeout(function() {
|
|
9969
|
+
p.apply(m, v), delete m[_];
|
|
9970
9970
|
}, f);
|
|
9971
9971
|
};
|
|
9972
9972
|
}, n.docReady = function(u) {
|
|
9973
9973
|
var d = document.readyState;
|
|
9974
9974
|
d == "complete" || d == "interactive" ? setTimeout(u) : document.addEventListener("DOMContentLoaded", u);
|
|
9975
9975
|
}, n.toDashed = function(u) {
|
|
9976
|
-
return u.replace(/(.)([A-Z])/g, function(d, f,
|
|
9977
|
-
return f + "-" +
|
|
9976
|
+
return u.replace(/(.)([A-Z])/g, function(d, f, p) {
|
|
9977
|
+
return f + "-" + p;
|
|
9978
9978
|
}).toLowerCase();
|
|
9979
9979
|
};
|
|
9980
9980
|
var l = t.console;
|
|
9981
9981
|
return n.htmlInit = function(u, d) {
|
|
9982
9982
|
n.docReady(function() {
|
|
9983
|
-
var f = n.toDashed(d),
|
|
9984
|
-
|
|
9985
|
-
var
|
|
9983
|
+
var f = n.toDashed(d), p = "data-" + f, _ = document.querySelectorAll("[" + p + "]"), y = document.querySelectorAll(".js-" + f), v = n.makeArray(_).concat(n.makeArray(y)), m = p + "-options", b = t.jQuery;
|
|
9984
|
+
v.forEach(function(P) {
|
|
9985
|
+
var g = P.getAttribute(p) || P.getAttribute(m), E;
|
|
9986
9986
|
try {
|
|
9987
|
-
E =
|
|
9987
|
+
E = g && JSON.parse(g);
|
|
9988
9988
|
} catch (O) {
|
|
9989
|
-
l && l.error("Error parsing " +
|
|
9989
|
+
l && l.error("Error parsing " + p + " on " + P.className + ": " + O);
|
|
9990
9990
|
return;
|
|
9991
9991
|
}
|
|
9992
9992
|
var T = new u(P, E);
|
|
@@ -10010,9 +10010,9 @@ function requireItem() {
|
|
|
10010
10010
|
));
|
|
10011
10011
|
})(window, function(t, e) {
|
|
10012
10012
|
function n(P) {
|
|
10013
|
-
for (var
|
|
10013
|
+
for (var g in P)
|
|
10014
10014
|
return !1;
|
|
10015
|
-
return
|
|
10015
|
+
return g = null, !0;
|
|
10016
10016
|
}
|
|
10017
10017
|
var r = document.documentElement.style, l = typeof r.transition == "string" ? "transition" : "WebkitTransition", u = typeof r.transform == "string" ? "transform" : "WebkitTransform", d = {
|
|
10018
10018
|
WebkitTransition: "webkitTransitionEnd",
|
|
@@ -10024,14 +10024,14 @@ function requireItem() {
|
|
|
10024
10024
|
transitionProperty: l + "Property",
|
|
10025
10025
|
transitionDelay: l + "Delay"
|
|
10026
10026
|
};
|
|
10027
|
-
function
|
|
10028
|
-
P && (this.element = P, this.layout =
|
|
10027
|
+
function p(P, g) {
|
|
10028
|
+
P && (this.element = P, this.layout = g, this.position = {
|
|
10029
10029
|
x: 0,
|
|
10030
10030
|
y: 0
|
|
10031
10031
|
}, this._create());
|
|
10032
10032
|
}
|
|
10033
|
-
var
|
|
10034
|
-
|
|
10033
|
+
var _ = p.prototype = Object.create(t.prototype);
|
|
10034
|
+
_.constructor = p, _._create = function() {
|
|
10035
10035
|
this._transn = {
|
|
10036
10036
|
ingProperties: {},
|
|
10037
10037
|
clean: {},
|
|
@@ -10039,121 +10039,121 @@ function requireItem() {
|
|
|
10039
10039
|
}, this.css({
|
|
10040
10040
|
position: "absolute"
|
|
10041
10041
|
});
|
|
10042
|
-
},
|
|
10043
|
-
var
|
|
10044
|
-
this[
|
|
10045
|
-
},
|
|
10042
|
+
}, _.handleEvent = function(P) {
|
|
10043
|
+
var g = "on" + P.type;
|
|
10044
|
+
this[g] && this[g](P);
|
|
10045
|
+
}, _.getSize = function() {
|
|
10046
10046
|
this.size = e(this.element);
|
|
10047
|
-
},
|
|
10048
|
-
var
|
|
10047
|
+
}, _.css = function(P) {
|
|
10048
|
+
var g = this.element.style;
|
|
10049
10049
|
for (var E in P) {
|
|
10050
10050
|
var T = f[E] || E;
|
|
10051
|
-
|
|
10051
|
+
g[T] = P[E];
|
|
10052
10052
|
}
|
|
10053
|
-
},
|
|
10054
|
-
var P = getComputedStyle(this.element),
|
|
10055
|
-
T.indexOf("%") != -1 && (S = S / 100 *
|
|
10056
|
-
},
|
|
10057
|
-
var P = this.layout.size,
|
|
10058
|
-
|
|
10059
|
-
var A = T ? "paddingTop" : "paddingBottom",
|
|
10060
|
-
|
|
10061
|
-
},
|
|
10062
|
-
var
|
|
10063
|
-
return this.layout.options.percentPosition && !
|
|
10064
|
-
},
|
|
10065
|
-
var
|
|
10066
|
-
return this.layout.options.percentPosition &&
|
|
10067
|
-
},
|
|
10053
|
+
}, _.getPosition = function() {
|
|
10054
|
+
var P = getComputedStyle(this.element), g = this.layout._getOption("originLeft"), E = this.layout._getOption("originTop"), T = P[g ? "left" : "right"], O = P[E ? "top" : "bottom"], S = parseFloat(T), C = parseFloat(O), k = this.layout.size;
|
|
10055
|
+
T.indexOf("%") != -1 && (S = S / 100 * k.width), O.indexOf("%") != -1 && (C = C / 100 * k.height), S = isNaN(S) ? 0 : S, C = isNaN(C) ? 0 : C, S -= g ? k.paddingLeft : k.paddingRight, C -= E ? k.paddingTop : k.paddingBottom, this.position.x = S, this.position.y = C;
|
|
10056
|
+
}, _.layoutPosition = function() {
|
|
10057
|
+
var P = this.layout.size, g = {}, E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop"), O = E ? "paddingLeft" : "paddingRight", S = E ? "left" : "right", C = E ? "right" : "left", k = this.position.x + P[O];
|
|
10058
|
+
g[S] = this.getXValue(k), g[C] = "";
|
|
10059
|
+
var A = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", N = T ? "bottom" : "top", w = this.position.y + P[A];
|
|
10060
|
+
g[R] = this.getYValue(w), g[N] = "", this.css(g), this.emitEvent("layout", [this]);
|
|
10061
|
+
}, _.getXValue = function(P) {
|
|
10062
|
+
var g = this.layout._getOption("horizontal");
|
|
10063
|
+
return this.layout.options.percentPosition && !g ? P / this.layout.size.width * 100 + "%" : P + "px";
|
|
10064
|
+
}, _.getYValue = function(P) {
|
|
10065
|
+
var g = this.layout._getOption("horizontal");
|
|
10066
|
+
return this.layout.options.percentPosition && g ? P / this.layout.size.height * 100 + "%" : P + "px";
|
|
10067
|
+
}, _._transitionTo = function(P, g) {
|
|
10068
10068
|
this.getPosition();
|
|
10069
|
-
var E = this.position.x, T = this.position.y, O = P == this.position.x &&
|
|
10070
|
-
if (this.setPosition(P,
|
|
10069
|
+
var E = this.position.x, T = this.position.y, O = P == this.position.x && g == this.position.y;
|
|
10070
|
+
if (this.setPosition(P, g), O && !this.isTransitioning) {
|
|
10071
10071
|
this.layoutPosition();
|
|
10072
10072
|
return;
|
|
10073
10073
|
}
|
|
10074
|
-
var S = P - E,
|
|
10075
|
-
|
|
10076
|
-
to:
|
|
10074
|
+
var S = P - E, C = g - T, k = {};
|
|
10075
|
+
k.transform = this.getTranslate(S, C), this.transition({
|
|
10076
|
+
to: k,
|
|
10077
10077
|
onTransitionEnd: {
|
|
10078
10078
|
transform: this.layoutPosition
|
|
10079
10079
|
},
|
|
10080
10080
|
isCleaning: !0
|
|
10081
10081
|
});
|
|
10082
|
-
},
|
|
10082
|
+
}, _.getTranslate = function(P, g) {
|
|
10083
10083
|
var E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop");
|
|
10084
|
-
return P = E ? P : -P,
|
|
10085
|
-
},
|
|
10086
|
-
this.setPosition(P,
|
|
10087
|
-
},
|
|
10088
|
-
this.position.x = parseFloat(P), this.position.y = parseFloat(
|
|
10089
|
-
},
|
|
10084
|
+
return P = E ? P : -P, g = T ? g : -g, "translate3d(" + P + "px, " + g + "px, 0)";
|
|
10085
|
+
}, _.goTo = function(P, g) {
|
|
10086
|
+
this.setPosition(P, g), this.layoutPosition();
|
|
10087
|
+
}, _.moveTo = _._transitionTo, _.setPosition = function(P, g) {
|
|
10088
|
+
this.position.x = parseFloat(P), this.position.y = parseFloat(g);
|
|
10089
|
+
}, _._nonTransition = function(P) {
|
|
10090
10090
|
this.css(P.to), P.isCleaning && this._removeStyles(P.to);
|
|
10091
|
-
for (var
|
|
10092
|
-
P.onTransitionEnd[
|
|
10093
|
-
},
|
|
10091
|
+
for (var g in P.onTransitionEnd)
|
|
10092
|
+
P.onTransitionEnd[g].call(this);
|
|
10093
|
+
}, _.transition = function(P) {
|
|
10094
10094
|
if (!parseFloat(this.layout.options.transitionDuration)) {
|
|
10095
10095
|
this._nonTransition(P);
|
|
10096
10096
|
return;
|
|
10097
10097
|
}
|
|
10098
|
-
var
|
|
10098
|
+
var g = this._transn;
|
|
10099
10099
|
for (var E in P.onTransitionEnd)
|
|
10100
|
-
|
|
10100
|
+
g.onEnd[E] = P.onTransitionEnd[E];
|
|
10101
10101
|
for (E in P.to)
|
|
10102
|
-
|
|
10102
|
+
g.ingProperties[E] = !0, P.isCleaning && (g.clean[E] = !0);
|
|
10103
10103
|
P.from && (this.css(P.from), this.element.offsetHeight), this.enableTransition(P.to), this.css(P.to), this.isTransitioning = !0;
|
|
10104
10104
|
};
|
|
10105
10105
|
function y(P) {
|
|
10106
|
-
return P.replace(/([A-Z])/g, function(
|
|
10107
|
-
return "-" +
|
|
10106
|
+
return P.replace(/([A-Z])/g, function(g) {
|
|
10107
|
+
return "-" + g.toLowerCase();
|
|
10108
10108
|
});
|
|
10109
10109
|
}
|
|
10110
|
-
var
|
|
10111
|
-
|
|
10110
|
+
var v = "opacity," + y(u);
|
|
10111
|
+
_.enableTransition = function() {
|
|
10112
10112
|
if (!this.isTransitioning) {
|
|
10113
10113
|
var P = this.layout.options.transitionDuration;
|
|
10114
10114
|
P = typeof P == "number" ? P + "ms" : P, this.css({
|
|
10115
|
-
transitionProperty:
|
|
10115
|
+
transitionProperty: v,
|
|
10116
10116
|
transitionDuration: P,
|
|
10117
10117
|
transitionDelay: this.staggerDelay || 0
|
|
10118
10118
|
}), this.element.addEventListener(d, this, !1);
|
|
10119
10119
|
}
|
|
10120
|
-
},
|
|
10120
|
+
}, _.onwebkitTransitionEnd = function(P) {
|
|
10121
10121
|
this.ontransitionend(P);
|
|
10122
|
-
},
|
|
10122
|
+
}, _.onotransitionend = function(P) {
|
|
10123
10123
|
this.ontransitionend(P);
|
|
10124
10124
|
};
|
|
10125
10125
|
var m = {
|
|
10126
10126
|
"-webkit-transform": "transform"
|
|
10127
10127
|
};
|
|
10128
|
-
|
|
10128
|
+
_.ontransitionend = function(P) {
|
|
10129
10129
|
if (P.target === this.element) {
|
|
10130
|
-
var
|
|
10131
|
-
if (delete
|
|
10132
|
-
var T =
|
|
10133
|
-
T.call(this), delete
|
|
10130
|
+
var g = this._transn, E = m[P.propertyName] || P.propertyName;
|
|
10131
|
+
if (delete g.ingProperties[E], n(g.ingProperties) && this.disableTransition(), E in g.clean && (this.element.style[P.propertyName] = "", delete g.clean[E]), E in g.onEnd) {
|
|
10132
|
+
var T = g.onEnd[E];
|
|
10133
|
+
T.call(this), delete g.onEnd[E];
|
|
10134
10134
|
}
|
|
10135
10135
|
this.emitEvent("transitionEnd", [this]);
|
|
10136
10136
|
}
|
|
10137
|
-
},
|
|
10137
|
+
}, _.disableTransition = function() {
|
|
10138
10138
|
this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
|
|
10139
|
-
},
|
|
10140
|
-
var
|
|
10139
|
+
}, _._removeStyles = function(P) {
|
|
10140
|
+
var g = {};
|
|
10141
10141
|
for (var E in P)
|
|
10142
|
-
|
|
10143
|
-
this.css(
|
|
10142
|
+
g[E] = "";
|
|
10143
|
+
this.css(g);
|
|
10144
10144
|
};
|
|
10145
10145
|
var b = {
|
|
10146
10146
|
transitionProperty: "",
|
|
10147
10147
|
transitionDuration: "",
|
|
10148
10148
|
transitionDelay: ""
|
|
10149
10149
|
};
|
|
10150
|
-
return
|
|
10150
|
+
return _.removeTransitionStyles = function() {
|
|
10151
10151
|
this.css(b);
|
|
10152
|
-
},
|
|
10152
|
+
}, _.stagger = function(P) {
|
|
10153
10153
|
P = isNaN(P) ? 0 : P, this.staggerDelay = P + "ms";
|
|
10154
|
-
},
|
|
10154
|
+
}, _.removeElem = function() {
|
|
10155
10155
|
this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
|
|
10156
|
-
},
|
|
10156
|
+
}, _.remove = function() {
|
|
10157
10157
|
if (!parseFloat(this.layout.options.transitionDuration)) {
|
|
10158
10158
|
this.removeElem();
|
|
10159
10159
|
return;
|
|
@@ -10161,36 +10161,36 @@ function requireItem() {
|
|
|
10161
10161
|
this.once("transitionEnd", function() {
|
|
10162
10162
|
this.removeElem();
|
|
10163
10163
|
}), this.hide();
|
|
10164
|
-
},
|
|
10164
|
+
}, _.reveal = function() {
|
|
10165
10165
|
delete this.isHidden, this.css({ display: "" });
|
|
10166
|
-
var P = this.layout.options,
|
|
10167
|
-
|
|
10166
|
+
var P = this.layout.options, g = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
10167
|
+
g[E] = this.onRevealTransitionEnd, this.transition({
|
|
10168
10168
|
from: P.hiddenStyle,
|
|
10169
10169
|
to: P.visibleStyle,
|
|
10170
10170
|
isCleaning: !0,
|
|
10171
|
-
onTransitionEnd:
|
|
10171
|
+
onTransitionEnd: g
|
|
10172
10172
|
});
|
|
10173
|
-
},
|
|
10173
|
+
}, _.onRevealTransitionEnd = function() {
|
|
10174
10174
|
this.isHidden || this.emitEvent("reveal");
|
|
10175
|
-
},
|
|
10176
|
-
var
|
|
10177
|
-
if (
|
|
10175
|
+
}, _.getHideRevealTransitionEndProperty = function(P) {
|
|
10176
|
+
var g = this.layout.options[P];
|
|
10177
|
+
if (g.opacity)
|
|
10178
10178
|
return "opacity";
|
|
10179
|
-
for (var E in
|
|
10179
|
+
for (var E in g)
|
|
10180
10180
|
return E;
|
|
10181
|
-
},
|
|
10181
|
+
}, _.hide = function() {
|
|
10182
10182
|
this.isHidden = !0, this.css({ display: "" });
|
|
10183
|
-
var P = this.layout.options,
|
|
10184
|
-
|
|
10183
|
+
var P = this.layout.options, g = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
10184
|
+
g[E] = this.onHideTransitionEnd, this.transition({
|
|
10185
10185
|
from: P.visibleStyle,
|
|
10186
10186
|
to: P.hiddenStyle,
|
|
10187
10187
|
// keep hidden stuff hidden
|
|
10188
10188
|
isCleaning: !0,
|
|
10189
|
-
onTransitionEnd:
|
|
10189
|
+
onTransitionEnd: g
|
|
10190
10190
|
});
|
|
10191
|
-
},
|
|
10191
|
+
}, _.onHideTransitionEnd = function() {
|
|
10192
10192
|
this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
|
|
10193
|
-
},
|
|
10193
|
+
}, _.destroy = function() {
|
|
10194
10194
|
this.css({
|
|
10195
10195
|
position: "",
|
|
10196
10196
|
left: "",
|
|
@@ -10200,7 +10200,7 @@ function requireItem() {
|
|
|
10200
10200
|
transition: "",
|
|
10201
10201
|
transform: ""
|
|
10202
10202
|
});
|
|
10203
|
-
},
|
|
10203
|
+
}, p;
|
|
10204
10204
|
});
|
|
10205
10205
|
}(item)), item.exports;
|
|
10206
10206
|
}
|
|
@@ -10228,16 +10228,16 @@ function requireOutlayer() {
|
|
|
10228
10228
|
);
|
|
10229
10229
|
})(window, function(t, e, n, r, l) {
|
|
10230
10230
|
var u = t.console, d = t.jQuery, f = function() {
|
|
10231
|
-
},
|
|
10232
|
-
function y(
|
|
10233
|
-
var T = r.getQueryElement(
|
|
10231
|
+
}, p = 0, _ = {};
|
|
10232
|
+
function y(g, E) {
|
|
10233
|
+
var T = r.getQueryElement(g);
|
|
10234
10234
|
if (!T) {
|
|
10235
|
-
u && u.error("Bad element for " + this.constructor.namespace + ": " + (T ||
|
|
10235
|
+
u && u.error("Bad element for " + this.constructor.namespace + ": " + (T || g));
|
|
10236
10236
|
return;
|
|
10237
10237
|
}
|
|
10238
10238
|
this.element = T, d && (this.$element = d(this.element)), this.options = r.extend({}, this.constructor.defaults), this.option(E);
|
|
10239
|
-
var O = ++
|
|
10240
|
-
this.element.outlayerGUID = O,
|
|
10239
|
+
var O = ++p;
|
|
10240
|
+
this.element.outlayerGUID = O, _[O] = this, this._create();
|
|
10241
10241
|
var S = this._getOption("initLayout");
|
|
10242
10242
|
S && this.layout();
|
|
10243
10243
|
}
|
|
@@ -10261,12 +10261,12 @@ function requireOutlayer() {
|
|
|
10261
10261
|
transform: "scale(1)"
|
|
10262
10262
|
}
|
|
10263
10263
|
};
|
|
10264
|
-
var
|
|
10265
|
-
r.extend(
|
|
10266
|
-
r.extend(this.options,
|
|
10267
|
-
},
|
|
10268
|
-
var E = this.constructor.compatOptions[
|
|
10269
|
-
return E && this.options[E] !== void 0 ? this.options[E] : this.options[
|
|
10264
|
+
var v = y.prototype;
|
|
10265
|
+
r.extend(v, e.prototype), v.option = function(g) {
|
|
10266
|
+
r.extend(this.options, g);
|
|
10267
|
+
}, v._getOption = function(g) {
|
|
10268
|
+
var E = this.constructor.compatOptions[g];
|
|
10269
|
+
return E && this.options[E] !== void 0 ? this.options[E] : this.options[g];
|
|
10270
10270
|
}, y.compatOptions = {
|
|
10271
10271
|
// currentName: oldName
|
|
10272
10272
|
initLayout: "isInitLayout",
|
|
@@ -10276,228 +10276,228 @@ function requireOutlayer() {
|
|
|
10276
10276
|
originTop: "isOriginTop",
|
|
10277
10277
|
resize: "isResizeBound",
|
|
10278
10278
|
resizeContainer: "isResizingContainer"
|
|
10279
|
-
},
|
|
10279
|
+
}, v._create = function() {
|
|
10280
10280
|
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), r.extend(this.element.style, this.options.containerStyle);
|
|
10281
|
-
var
|
|
10282
|
-
|
|
10283
|
-
},
|
|
10281
|
+
var g = this._getOption("resize");
|
|
10282
|
+
g && this.bindResize();
|
|
10283
|
+
}, v.reloadItems = function() {
|
|
10284
10284
|
this.items = this._itemize(this.element.children);
|
|
10285
|
-
},
|
|
10286
|
-
for (var E = this._filterFindItemElements(
|
|
10287
|
-
var
|
|
10288
|
-
O.push(
|
|
10285
|
+
}, v._itemize = function(g) {
|
|
10286
|
+
for (var E = this._filterFindItemElements(g), T = this.constructor.Item, O = [], S = 0; S < E.length; S++) {
|
|
10287
|
+
var C = E[S], k = new T(C, this);
|
|
10288
|
+
O.push(k);
|
|
10289
10289
|
}
|
|
10290
10290
|
return O;
|
|
10291
|
-
},
|
|
10292
|
-
return r.filterFindElements(
|
|
10293
|
-
},
|
|
10294
|
-
return this.items.map(function(
|
|
10295
|
-
return
|
|
10291
|
+
}, v._filterFindItemElements = function(g) {
|
|
10292
|
+
return r.filterFindElements(g, this.options.itemSelector);
|
|
10293
|
+
}, v.getItemElements = function() {
|
|
10294
|
+
return this.items.map(function(g) {
|
|
10295
|
+
return g.element;
|
|
10296
10296
|
});
|
|
10297
|
-
},
|
|
10297
|
+
}, v.layout = function() {
|
|
10298
10298
|
this._resetLayout(), this._manageStamps();
|
|
10299
|
-
var
|
|
10299
|
+
var g = this._getOption("layoutInstant"), E = g !== void 0 ? g : !this._isLayoutInited;
|
|
10300
10300
|
this.layoutItems(this.items, E), this._isLayoutInited = !0;
|
|
10301
|
-
},
|
|
10301
|
+
}, v._init = v.layout, v._resetLayout = function() {
|
|
10302
10302
|
this.getSize();
|
|
10303
|
-
},
|
|
10303
|
+
}, v.getSize = function() {
|
|
10304
10304
|
this.size = n(this.element);
|
|
10305
|
-
},
|
|
10306
|
-
var T = this.options[
|
|
10307
|
-
T ? (typeof T == "string" ? O = this.element.querySelector(T) : T instanceof HTMLElement && (O = T), this[
|
|
10308
|
-
},
|
|
10309
|
-
|
|
10310
|
-
},
|
|
10311
|
-
return
|
|
10305
|
+
}, v._getMeasurement = function(g, E) {
|
|
10306
|
+
var T = this.options[g], O;
|
|
10307
|
+
T ? (typeof T == "string" ? O = this.element.querySelector(T) : T instanceof HTMLElement && (O = T), this[g] = O ? n(O)[E] : T) : this[g] = 0;
|
|
10308
|
+
}, v.layoutItems = function(g, E) {
|
|
10309
|
+
g = this._getItemsForLayout(g), this._layoutItems(g, E), this._postLayout();
|
|
10310
|
+
}, v._getItemsForLayout = function(g) {
|
|
10311
|
+
return g.filter(function(E) {
|
|
10312
10312
|
return !E.isIgnored;
|
|
10313
10313
|
});
|
|
10314
|
-
},
|
|
10315
|
-
if (this._emitCompleteOnItems("layout",
|
|
10314
|
+
}, v._layoutItems = function(g, E) {
|
|
10315
|
+
if (this._emitCompleteOnItems("layout", g), !(!g || !g.length)) {
|
|
10316
10316
|
var T = [];
|
|
10317
|
-
|
|
10317
|
+
g.forEach(function(O) {
|
|
10318
10318
|
var S = this._getItemLayoutPosition(O);
|
|
10319
10319
|
S.item = O, S.isInstant = E || O.isLayoutInstant, T.push(S);
|
|
10320
10320
|
}, this), this._processLayoutQueue(T);
|
|
10321
10321
|
}
|
|
10322
|
-
},
|
|
10322
|
+
}, v._getItemLayoutPosition = function() {
|
|
10323
10323
|
return {
|
|
10324
10324
|
x: 0,
|
|
10325
10325
|
y: 0
|
|
10326
10326
|
};
|
|
10327
|
-
},
|
|
10328
|
-
this.updateStagger(),
|
|
10327
|
+
}, v._processLayoutQueue = function(g) {
|
|
10328
|
+
this.updateStagger(), g.forEach(function(E, T) {
|
|
10329
10329
|
this._positionItem(E.item, E.x, E.y, E.isInstant, T);
|
|
10330
10330
|
}, this);
|
|
10331
|
-
},
|
|
10332
|
-
var
|
|
10333
|
-
if (
|
|
10331
|
+
}, v.updateStagger = function() {
|
|
10332
|
+
var g = this.options.stagger;
|
|
10333
|
+
if (g == null) {
|
|
10334
10334
|
this.stagger = 0;
|
|
10335
10335
|
return;
|
|
10336
10336
|
}
|
|
10337
|
-
return this.stagger = P(
|
|
10338
|
-
},
|
|
10339
|
-
O ?
|
|
10340
|
-
},
|
|
10337
|
+
return this.stagger = P(g), this.stagger;
|
|
10338
|
+
}, v._positionItem = function(g, E, T, O, S) {
|
|
10339
|
+
O ? g.goTo(E, T) : (g.stagger(S * this.stagger), g.moveTo(E, T));
|
|
10340
|
+
}, v._postLayout = function() {
|
|
10341
10341
|
this.resizeContainer();
|
|
10342
|
-
},
|
|
10343
|
-
var
|
|
10344
|
-
if (
|
|
10342
|
+
}, v.resizeContainer = function() {
|
|
10343
|
+
var g = this._getOption("resizeContainer");
|
|
10344
|
+
if (g) {
|
|
10345
10345
|
var E = this._getContainerSize();
|
|
10346
10346
|
E && (this._setContainerMeasure(E.width, !0), this._setContainerMeasure(E.height, !1));
|
|
10347
10347
|
}
|
|
10348
|
-
},
|
|
10349
|
-
if (
|
|
10348
|
+
}, v._getContainerSize = f, v._setContainerMeasure = function(g, E) {
|
|
10349
|
+
if (g !== void 0) {
|
|
10350
10350
|
var T = this.size;
|
|
10351
|
-
T.isBorderBox && (
|
|
10351
|
+
T.isBorderBox && (g += E ? T.paddingLeft + T.paddingRight + T.borderLeftWidth + T.borderRightWidth : T.paddingBottom + T.paddingTop + T.borderTopWidth + T.borderBottomWidth), g = Math.max(g, 0), this.element.style[E ? "width" : "height"] = g + "px";
|
|
10352
10352
|
}
|
|
10353
|
-
},
|
|
10353
|
+
}, v._emitCompleteOnItems = function(g, E) {
|
|
10354
10354
|
var T = this;
|
|
10355
10355
|
function O() {
|
|
10356
|
-
T.dispatchEvent(
|
|
10356
|
+
T.dispatchEvent(g + "Complete", null, [E]);
|
|
10357
10357
|
}
|
|
10358
10358
|
var S = E.length;
|
|
10359
10359
|
if (!E || !S) {
|
|
10360
10360
|
O();
|
|
10361
10361
|
return;
|
|
10362
10362
|
}
|
|
10363
|
-
var
|
|
10364
|
-
function
|
|
10365
|
-
|
|
10363
|
+
var C = 0;
|
|
10364
|
+
function k() {
|
|
10365
|
+
C++, C == S && O();
|
|
10366
10366
|
}
|
|
10367
10367
|
E.forEach(function(A) {
|
|
10368
|
-
A.once(
|
|
10368
|
+
A.once(g, k);
|
|
10369
10369
|
});
|
|
10370
|
-
},
|
|
10370
|
+
}, v.dispatchEvent = function(g, E, T) {
|
|
10371
10371
|
var O = E ? [E].concat(T) : T;
|
|
10372
|
-
if (this.emitEvent(
|
|
10372
|
+
if (this.emitEvent(g, O), d)
|
|
10373
10373
|
if (this.$element = this.$element || d(this.element), E) {
|
|
10374
10374
|
var S = d.Event(E);
|
|
10375
|
-
S.type =
|
|
10375
|
+
S.type = g, this.$element.trigger(S, T);
|
|
10376
10376
|
} else
|
|
10377
|
-
this.$element.trigger(
|
|
10378
|
-
},
|
|
10379
|
-
var E = this.getItem(
|
|
10377
|
+
this.$element.trigger(g, T);
|
|
10378
|
+
}, v.ignore = function(g) {
|
|
10379
|
+
var E = this.getItem(g);
|
|
10380
10380
|
E && (E.isIgnored = !0);
|
|
10381
|
-
},
|
|
10382
|
-
var E = this.getItem(
|
|
10381
|
+
}, v.unignore = function(g) {
|
|
10382
|
+
var E = this.getItem(g);
|
|
10383
10383
|
E && delete E.isIgnored;
|
|
10384
|
-
},
|
|
10385
|
-
|
|
10386
|
-
},
|
|
10387
|
-
|
|
10384
|
+
}, v.stamp = function(g) {
|
|
10385
|
+
g = this._find(g), g && (this.stamps = this.stamps.concat(g), g.forEach(this.ignore, this));
|
|
10386
|
+
}, v.unstamp = function(g) {
|
|
10387
|
+
g = this._find(g), g && g.forEach(function(E) {
|
|
10388
10388
|
r.removeFrom(this.stamps, E), this.unignore(E);
|
|
10389
10389
|
}, this);
|
|
10390
|
-
},
|
|
10391
|
-
if (
|
|
10392
|
-
return typeof
|
|
10393
|
-
},
|
|
10390
|
+
}, v._find = function(g) {
|
|
10391
|
+
if (g)
|
|
10392
|
+
return typeof g == "string" && (g = this.element.querySelectorAll(g)), g = r.makeArray(g), g;
|
|
10393
|
+
}, v._manageStamps = function() {
|
|
10394
10394
|
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
10395
|
-
},
|
|
10396
|
-
var
|
|
10395
|
+
}, v._getBoundingRect = function() {
|
|
10396
|
+
var g = this.element.getBoundingClientRect(), E = this.size;
|
|
10397
10397
|
this._boundingRect = {
|
|
10398
|
-
left:
|
|
10399
|
-
top:
|
|
10400
|
-
right:
|
|
10401
|
-
bottom:
|
|
10398
|
+
left: g.left + E.paddingLeft + E.borderLeftWidth,
|
|
10399
|
+
top: g.top + E.paddingTop + E.borderTopWidth,
|
|
10400
|
+
right: g.right - (E.paddingRight + E.borderRightWidth),
|
|
10401
|
+
bottom: g.bottom - (E.paddingBottom + E.borderBottomWidth)
|
|
10402
10402
|
};
|
|
10403
|
-
},
|
|
10404
|
-
var E =
|
|
10403
|
+
}, v._manageStamp = f, v._getElementOffset = function(g) {
|
|
10404
|
+
var E = g.getBoundingClientRect(), T = this._boundingRect, O = n(g), S = {
|
|
10405
10405
|
left: E.left - T.left - O.marginLeft,
|
|
10406
10406
|
top: E.top - T.top - O.marginTop,
|
|
10407
10407
|
right: T.right - E.right - O.marginRight,
|
|
10408
10408
|
bottom: T.bottom - E.bottom - O.marginBottom
|
|
10409
10409
|
};
|
|
10410
10410
|
return S;
|
|
10411
|
-
},
|
|
10411
|
+
}, v.handleEvent = r.handleEvent, v.bindResize = function() {
|
|
10412
10412
|
t.addEventListener("resize", this), this.isResizeBound = !0;
|
|
10413
|
-
},
|
|
10413
|
+
}, v.unbindResize = function() {
|
|
10414
10414
|
t.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
10415
|
-
},
|
|
10415
|
+
}, v.onresize = function() {
|
|
10416
10416
|
this.resize();
|
|
10417
|
-
}, r.debounceMethod(y, "onresize", 100),
|
|
10417
|
+
}, r.debounceMethod(y, "onresize", 100), v.resize = function() {
|
|
10418
10418
|
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
10419
|
-
},
|
|
10420
|
-
var
|
|
10421
|
-
return E &&
|
|
10422
|
-
},
|
|
10423
|
-
var E = this._itemize(
|
|
10419
|
+
}, v.needsResizeLayout = function() {
|
|
10420
|
+
var g = n(this.element), E = this.size && g;
|
|
10421
|
+
return E && g.innerWidth !== this.size.innerWidth;
|
|
10422
|
+
}, v.addItems = function(g) {
|
|
10423
|
+
var E = this._itemize(g);
|
|
10424
10424
|
return E.length && (this.items = this.items.concat(E)), E;
|
|
10425
|
-
},
|
|
10426
|
-
var E = this.addItems(
|
|
10425
|
+
}, v.appended = function(g) {
|
|
10426
|
+
var E = this.addItems(g);
|
|
10427
10427
|
E.length && (this.layoutItems(E, !0), this.reveal(E));
|
|
10428
|
-
},
|
|
10429
|
-
var E = this._itemize(
|
|
10428
|
+
}, v.prepended = function(g) {
|
|
10429
|
+
var E = this._itemize(g);
|
|
10430
10430
|
if (E.length) {
|
|
10431
10431
|
var T = this.items.slice(0);
|
|
10432
10432
|
this.items = E.concat(T), this._resetLayout(), this._manageStamps(), this.layoutItems(E, !0), this.reveal(E), this.layoutItems(T);
|
|
10433
10433
|
}
|
|
10434
|
-
},
|
|
10435
|
-
if (this._emitCompleteOnItems("reveal",
|
|
10434
|
+
}, v.reveal = function(g) {
|
|
10435
|
+
if (this._emitCompleteOnItems("reveal", g), !(!g || !g.length)) {
|
|
10436
10436
|
var E = this.updateStagger();
|
|
10437
|
-
|
|
10437
|
+
g.forEach(function(T, O) {
|
|
10438
10438
|
T.stagger(O * E), T.reveal();
|
|
10439
10439
|
});
|
|
10440
10440
|
}
|
|
10441
|
-
},
|
|
10442
|
-
if (this._emitCompleteOnItems("hide",
|
|
10441
|
+
}, v.hide = function(g) {
|
|
10442
|
+
if (this._emitCompleteOnItems("hide", g), !(!g || !g.length)) {
|
|
10443
10443
|
var E = this.updateStagger();
|
|
10444
|
-
|
|
10444
|
+
g.forEach(function(T, O) {
|
|
10445
10445
|
T.stagger(O * E), T.hide();
|
|
10446
10446
|
});
|
|
10447
10447
|
}
|
|
10448
|
-
},
|
|
10449
|
-
var E = this.getItems(
|
|
10448
|
+
}, v.revealItemElements = function(g) {
|
|
10449
|
+
var E = this.getItems(g);
|
|
10450
10450
|
this.reveal(E);
|
|
10451
|
-
},
|
|
10452
|
-
var E = this.getItems(
|
|
10451
|
+
}, v.hideItemElements = function(g) {
|
|
10452
|
+
var E = this.getItems(g);
|
|
10453
10453
|
this.hide(E);
|
|
10454
|
-
},
|
|
10454
|
+
}, v.getItem = function(g) {
|
|
10455
10455
|
for (var E = 0; E < this.items.length; E++) {
|
|
10456
10456
|
var T = this.items[E];
|
|
10457
|
-
if (T.element ==
|
|
10457
|
+
if (T.element == g)
|
|
10458
10458
|
return T;
|
|
10459
10459
|
}
|
|
10460
|
-
},
|
|
10461
|
-
|
|
10460
|
+
}, v.getItems = function(g) {
|
|
10461
|
+
g = r.makeArray(g);
|
|
10462
10462
|
var E = [];
|
|
10463
|
-
return
|
|
10463
|
+
return g.forEach(function(T) {
|
|
10464
10464
|
var O = this.getItem(T);
|
|
10465
10465
|
O && E.push(O);
|
|
10466
10466
|
}, this), E;
|
|
10467
|
-
},
|
|
10468
|
-
var E = this.getItems(
|
|
10467
|
+
}, v.remove = function(g) {
|
|
10468
|
+
var E = this.getItems(g);
|
|
10469
10469
|
this._emitCompleteOnItems("remove", E), !(!E || !E.length) && E.forEach(function(T) {
|
|
10470
10470
|
T.remove(), r.removeFrom(this.items, T);
|
|
10471
10471
|
}, this);
|
|
10472
|
-
},
|
|
10473
|
-
var
|
|
10474
|
-
|
|
10472
|
+
}, v.destroy = function() {
|
|
10473
|
+
var g = this.element.style;
|
|
10474
|
+
g.height = "", g.position = "", g.width = "", this.items.forEach(function(T) {
|
|
10475
10475
|
T.destroy();
|
|
10476
10476
|
}), this.unbindResize();
|
|
10477
10477
|
var E = this.element.outlayerGUID;
|
|
10478
|
-
delete
|
|
10479
|
-
}, y.data = function(
|
|
10480
|
-
|
|
10481
|
-
var E =
|
|
10482
|
-
return E &&
|
|
10483
|
-
}, y.create = function(
|
|
10478
|
+
delete _[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
|
|
10479
|
+
}, y.data = function(g) {
|
|
10480
|
+
g = r.getQueryElement(g);
|
|
10481
|
+
var E = g && g.outlayerGUID;
|
|
10482
|
+
return E && _[E];
|
|
10483
|
+
}, y.create = function(g, E) {
|
|
10484
10484
|
var T = m(y);
|
|
10485
|
-
return T.defaults = r.extend({}, y.defaults), r.extend(T.defaults, E), T.compatOptions = r.extend({}, y.compatOptions), T.namespace =
|
|
10485
|
+
return T.defaults = r.extend({}, y.defaults), r.extend(T.defaults, E), T.compatOptions = r.extend({}, y.compatOptions), T.namespace = g, T.data = y.data, T.Item = m(l), r.htmlInit(T, g), d && d.bridget && d.bridget(g, T), T;
|
|
10486
10486
|
};
|
|
10487
|
-
function m(
|
|
10487
|
+
function m(g) {
|
|
10488
10488
|
function E() {
|
|
10489
|
-
|
|
10489
|
+
g.apply(this, arguments);
|
|
10490
10490
|
}
|
|
10491
|
-
return E.prototype = Object.create(
|
|
10491
|
+
return E.prototype = Object.create(g.prototype), E.prototype.constructor = E, E;
|
|
10492
10492
|
}
|
|
10493
10493
|
var b = {
|
|
10494
10494
|
ms: 1,
|
|
10495
10495
|
s: 1e3
|
|
10496
10496
|
};
|
|
10497
|
-
function P(
|
|
10498
|
-
if (typeof
|
|
10499
|
-
return
|
|
10500
|
-
var E =
|
|
10497
|
+
function P(g) {
|
|
10498
|
+
if (typeof g == "number")
|
|
10499
|
+
return g;
|
|
10500
|
+
var E = g.match(/(^\d*\.?\d*)(\w*)/), T = E && E[1], O = E && E[2];
|
|
10501
10501
|
if (!T.length)
|
|
10502
10502
|
return 0;
|
|
10503
10503
|
T = parseFloat(T);
|
|
@@ -10541,8 +10541,8 @@ function requireMasonry() {
|
|
|
10541
10541
|
this.columnWidth = u && e(u).outerWidth || // if first elem has no width, default to size of container
|
|
10542
10542
|
this.containerWidth;
|
|
10543
10543
|
}
|
|
10544
|
-
var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter,
|
|
10545
|
-
|
|
10544
|
+
var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, p = f / d, _ = d - f % d, y = _ && _ < 1 ? "round" : "floor";
|
|
10545
|
+
p = Math[y](p), this.cols = Math.max(p, 1);
|
|
10546
10546
|
}, r.getContainerWidth = function() {
|
|
10547
10547
|
var l = this._getOption("fitWidth"), u = l ? this.element.parentNode : this.element, d = e(u);
|
|
10548
10548
|
this.containerWidth = d && d.innerWidth;
|
|
@@ -10550,11 +10550,11 @@ function requireMasonry() {
|
|
|
10550
10550
|
l.getSize();
|
|
10551
10551
|
var u = l.size.outerWidth % this.columnWidth, d = u && u < 1 ? "round" : "ceil", f = Math[d](l.size.outerWidth / this.columnWidth);
|
|
10552
10552
|
f = Math.min(f, this.cols);
|
|
10553
|
-
for (var
|
|
10554
|
-
x: this.columnWidth *
|
|
10555
|
-
y:
|
|
10556
|
-
},
|
|
10557
|
-
this.colYs[b] =
|
|
10553
|
+
for (var p = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", _ = this[p](f, l), y = {
|
|
10554
|
+
x: this.columnWidth * _.col,
|
|
10555
|
+
y: _.y
|
|
10556
|
+
}, v = _.y + l.size.outerHeight, m = f + _.col, b = _.col; b < m; b++)
|
|
10557
|
+
this.colYs[b] = v;
|
|
10558
10558
|
return y;
|
|
10559
10559
|
}, r._getTopColPosition = function(l) {
|
|
10560
10560
|
var u = this._getTopColGroup(l), d = Math.min.apply(Math, u);
|
|
@@ -10576,17 +10576,17 @@ function requireMasonry() {
|
|
|
10576
10576
|
}, r._getHorizontalColPosition = function(l, u) {
|
|
10577
10577
|
var d = this.horizontalColIndex % this.cols, f = l > 1 && d + l > this.cols;
|
|
10578
10578
|
d = f ? 0 : d;
|
|
10579
|
-
var
|
|
10580
|
-
return this.horizontalColIndex =
|
|
10579
|
+
var p = u.size.outerWidth && u.size.outerHeight;
|
|
10580
|
+
return this.horizontalColIndex = p ? d + l : this.horizontalColIndex, {
|
|
10581
10581
|
col: d,
|
|
10582
10582
|
y: this._getColGroupY(d, l)
|
|
10583
10583
|
};
|
|
10584
10584
|
}, r._manageStamp = function(l) {
|
|
10585
|
-
var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"),
|
|
10585
|
+
var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), p = f ? d.left : d.right, _ = p + u.outerWidth, y = Math.floor(p / this.columnWidth);
|
|
10586
10586
|
y = Math.max(0, y);
|
|
10587
|
-
var
|
|
10588
|
-
|
|
10589
|
-
for (var m = this._getOption("originTop"), b = (m ? d.top : d.bottom) + u.outerHeight, P = y; P <=
|
|
10587
|
+
var v = Math.floor(_ / this.columnWidth);
|
|
10588
|
+
v -= _ % this.columnWidth ? 0 : 1, v = Math.min(this.cols - 1, v);
|
|
10589
|
+
for (var m = this._getOption("originTop"), b = (m ? d.top : d.bottom) + u.outerHeight, P = y; P <= v; P++)
|
|
10590
10590
|
this.colYs[P] = Math.max(b, this.colYs[P]);
|
|
10591
10591
|
}, r._getContainerSize = function() {
|
|
10592
10592
|
this.maxY = Math.max.apply(Math, this.colYs);
|
|
@@ -10629,40 +10629,40 @@ function requireImagesloaded() {
|
|
|
10629
10629
|
// -------------------------- factory -------------------------- //
|
|
10630
10630
|
function(t, e) {
|
|
10631
10631
|
var n = t.jQuery, r = t.console;
|
|
10632
|
-
function l(
|
|
10632
|
+
function l(v, m) {
|
|
10633
10633
|
for (var b in m)
|
|
10634
|
-
|
|
10635
|
-
return
|
|
10634
|
+
v[b] = m[b];
|
|
10635
|
+
return v;
|
|
10636
10636
|
}
|
|
10637
10637
|
var u = Array.prototype.slice;
|
|
10638
|
-
function d(
|
|
10639
|
-
if (Array.isArray(
|
|
10640
|
-
return
|
|
10641
|
-
var m = typeof
|
|
10642
|
-
return m ? u.call(
|
|
10638
|
+
function d(v) {
|
|
10639
|
+
if (Array.isArray(v))
|
|
10640
|
+
return v;
|
|
10641
|
+
var m = typeof v == "object" && typeof v.length == "number";
|
|
10642
|
+
return m ? u.call(v) : [v];
|
|
10643
10643
|
}
|
|
10644
|
-
function f(
|
|
10644
|
+
function f(v, m, b) {
|
|
10645
10645
|
if (!(this instanceof f))
|
|
10646
|
-
return new f(
|
|
10647
|
-
var P =
|
|
10648
|
-
if (typeof
|
|
10649
|
-
r.error("Bad element for imagesLoaded " + (P ||
|
|
10646
|
+
return new f(v, m, b);
|
|
10647
|
+
var P = v;
|
|
10648
|
+
if (typeof v == "string" && (P = document.querySelectorAll(v)), !P) {
|
|
10649
|
+
r.error("Bad element for imagesLoaded " + (P || v));
|
|
10650
10650
|
return;
|
|
10651
10651
|
}
|
|
10652
10652
|
this.elements = d(P), this.options = l({}, this.options), typeof m == "function" ? b = m : l(this.options, m), b && this.on("always", b), this.getImages(), n && (this.jqDeferred = new n.Deferred()), setTimeout(this.check.bind(this));
|
|
10653
10653
|
}
|
|
10654
10654
|
f.prototype = Object.create(e.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
|
|
10655
10655
|
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
10656
|
-
}, f.prototype.addElementImages = function(
|
|
10657
|
-
|
|
10658
|
-
var m =
|
|
10659
|
-
if (!(!m || !
|
|
10660
|
-
for (var b =
|
|
10661
|
-
var
|
|
10662
|
-
this.addImage(
|
|
10656
|
+
}, f.prototype.addElementImages = function(v) {
|
|
10657
|
+
v.nodeName == "IMG" && this.addImage(v), this.options.background === !0 && this.addElementBackgroundImages(v);
|
|
10658
|
+
var m = v.nodeType;
|
|
10659
|
+
if (!(!m || !p[m])) {
|
|
10660
|
+
for (var b = v.querySelectorAll("img"), P = 0; P < b.length; P++) {
|
|
10661
|
+
var g = b[P];
|
|
10662
|
+
this.addImage(g);
|
|
10663
10663
|
}
|
|
10664
10664
|
if (typeof this.options.background == "string") {
|
|
10665
|
-
var E =
|
|
10665
|
+
var E = v.querySelectorAll(this.options.background);
|
|
10666
10666
|
for (P = 0; P < E.length; P++) {
|
|
10667
10667
|
var T = E[P];
|
|
10668
10668
|
this.addElementBackgroundImages(T);
|
|
@@ -10670,84 +10670,84 @@ function requireImagesloaded() {
|
|
|
10670
10670
|
}
|
|
10671
10671
|
}
|
|
10672
10672
|
};
|
|
10673
|
-
var
|
|
10673
|
+
var p = {
|
|
10674
10674
|
1: !0,
|
|
10675
10675
|
9: !0,
|
|
10676
10676
|
11: !0
|
|
10677
10677
|
};
|
|
10678
|
-
f.prototype.addElementBackgroundImages = function(
|
|
10679
|
-
var m = getComputedStyle(
|
|
10678
|
+
f.prototype.addElementBackgroundImages = function(v) {
|
|
10679
|
+
var m = getComputedStyle(v);
|
|
10680
10680
|
if (m)
|
|
10681
10681
|
for (var b = /url\((['"])?(.*?)\1\)/gi, P = b.exec(m.backgroundImage); P !== null; ) {
|
|
10682
|
-
var
|
|
10683
|
-
|
|
10682
|
+
var g = P && P[2];
|
|
10683
|
+
g && this.addBackground(g, v), P = b.exec(m.backgroundImage);
|
|
10684
10684
|
}
|
|
10685
|
-
}, f.prototype.addImage = function(
|
|
10686
|
-
var m = new
|
|
10685
|
+
}, f.prototype.addImage = function(v) {
|
|
10686
|
+
var m = new _(v);
|
|
10687
10687
|
this.images.push(m);
|
|
10688
|
-
}, f.prototype.addBackground = function(
|
|
10689
|
-
var b = new y(
|
|
10688
|
+
}, f.prototype.addBackground = function(v, m) {
|
|
10689
|
+
var b = new y(v, m);
|
|
10690
10690
|
this.images.push(b);
|
|
10691
10691
|
}, f.prototype.check = function() {
|
|
10692
|
-
var
|
|
10692
|
+
var v = this;
|
|
10693
10693
|
if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
|
|
10694
10694
|
this.complete();
|
|
10695
10695
|
return;
|
|
10696
10696
|
}
|
|
10697
|
-
function m(b, P,
|
|
10697
|
+
function m(b, P, g) {
|
|
10698
10698
|
setTimeout(function() {
|
|
10699
|
-
|
|
10699
|
+
v.progress(b, P, g);
|
|
10700
10700
|
});
|
|
10701
10701
|
}
|
|
10702
10702
|
this.images.forEach(function(b) {
|
|
10703
10703
|
b.once("progress", m), b.check();
|
|
10704
10704
|
});
|
|
10705
|
-
}, f.prototype.progress = function(
|
|
10706
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !
|
|
10705
|
+
}, f.prototype.progress = function(v, m, b) {
|
|
10706
|
+
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !v.isLoaded, this.emitEvent("progress", [this, v, m]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, v), this.progressedCount == this.images.length && this.complete(), this.options.debug && r && r.log("progress: " + b, v, m);
|
|
10707
10707
|
}, f.prototype.complete = function() {
|
|
10708
|
-
var
|
|
10709
|
-
if (this.isComplete = !0, this.emitEvent(
|
|
10708
|
+
var v = this.hasAnyBroken ? "fail" : "done";
|
|
10709
|
+
if (this.isComplete = !0, this.emitEvent(v, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
10710
10710
|
var m = this.hasAnyBroken ? "reject" : "resolve";
|
|
10711
10711
|
this.jqDeferred[m](this);
|
|
10712
10712
|
}
|
|
10713
10713
|
};
|
|
10714
|
-
function
|
|
10715
|
-
this.img =
|
|
10714
|
+
function _(v) {
|
|
10715
|
+
this.img = v;
|
|
10716
10716
|
}
|
|
10717
|
-
|
|
10718
|
-
var
|
|
10719
|
-
if (
|
|
10717
|
+
_.prototype = Object.create(e.prototype), _.prototype.check = function() {
|
|
10718
|
+
var v = this.getIsImageComplete();
|
|
10719
|
+
if (v) {
|
|
10720
10720
|
this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
|
|
10721
10721
|
return;
|
|
10722
10722
|
}
|
|
10723
10723
|
this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
|
|
10724
|
-
},
|
|
10724
|
+
}, _.prototype.getIsImageComplete = function() {
|
|
10725
10725
|
return this.img.complete && this.img.naturalWidth;
|
|
10726
|
-
},
|
|
10727
|
-
this.isLoaded =
|
|
10728
|
-
},
|
|
10729
|
-
var m = "on" +
|
|
10730
|
-
this[m] && this[m](
|
|
10731
|
-
},
|
|
10726
|
+
}, _.prototype.confirm = function(v, m) {
|
|
10727
|
+
this.isLoaded = v, this.emitEvent("progress", [this, this.img, m]);
|
|
10728
|
+
}, _.prototype.handleEvent = function(v) {
|
|
10729
|
+
var m = "on" + v.type;
|
|
10730
|
+
this[m] && this[m](v);
|
|
10731
|
+
}, _.prototype.onload = function() {
|
|
10732
10732
|
this.confirm(!0, "onload"), this.unbindEvents();
|
|
10733
|
-
},
|
|
10733
|
+
}, _.prototype.onerror = function() {
|
|
10734
10734
|
this.confirm(!1, "onerror"), this.unbindEvents();
|
|
10735
|
-
},
|
|
10735
|
+
}, _.prototype.unbindEvents = function() {
|
|
10736
10736
|
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10737
10737
|
};
|
|
10738
|
-
function y(
|
|
10739
|
-
this.url =
|
|
10738
|
+
function y(v, m) {
|
|
10739
|
+
this.url = v, this.element = m, this.img = new Image();
|
|
10740
10740
|
}
|
|
10741
|
-
return y.prototype = Object.create(
|
|
10741
|
+
return y.prototype = Object.create(_.prototype), y.prototype.check = function() {
|
|
10742
10742
|
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
10743
|
-
var
|
|
10744
|
-
|
|
10743
|
+
var v = this.getIsImageComplete();
|
|
10744
|
+
v && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
10745
10745
|
}, y.prototype.unbindEvents = function() {
|
|
10746
10746
|
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10747
|
-
}, y.prototype.confirm = function(
|
|
10748
|
-
this.isLoaded =
|
|
10749
|
-
}, f.makeJQueryPlugin = function(
|
|
10750
|
-
|
|
10747
|
+
}, y.prototype.confirm = function(v, m) {
|
|
10748
|
+
this.isLoaded = v, this.emitEvent("progress", [this, this.element, m]);
|
|
10749
|
+
}, f.makeJQueryPlugin = function(v) {
|
|
10750
|
+
v = v || t.jQuery, v && (n = v, n.fn.imagesLoaded = function(m, b) {
|
|
10751
10751
|
var P = new f(this, m, b);
|
|
10752
10752
|
return P.jqDeferred.promise(n(this));
|
|
10753
10753
|
});
|
|
@@ -10787,22 +10787,22 @@ VueMasonryPlugin.install = function(s, i) {
|
|
|
10787
10787
|
mounted: function(r, l) {
|
|
10788
10788
|
if (!Masonry)
|
|
10789
10789
|
throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
|
|
10790
|
-
const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e,
|
|
10790
|
+
const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e, p = u.destroyDelay ? parseInt(u.destroyDelay, 10) : void 0, _ = function() {
|
|
10791
10791
|
d.reloadItems(), d.layout();
|
|
10792
10792
|
};
|
|
10793
10793
|
nextTick(() => {
|
|
10794
|
-
|
|
10794
|
+
_();
|
|
10795
10795
|
});
|
|
10796
10796
|
const y = function(m) {
|
|
10797
|
-
|
|
10798
|
-
},
|
|
10799
|
-
t.off(`${EVENT_ADD}__${f}`, y), t.off(`${EVENT_REMOVE}__${f}`, y), t.off(`${EVENT_IMAGE_LOADED}__${f}`, y), t.off(`${EVENT_DESTROY}__${f}`,
|
|
10800
|
-
const b =
|
|
10797
|
+
_();
|
|
10798
|
+
}, v = function(m) {
|
|
10799
|
+
t.off(`${EVENT_ADD}__${f}`, y), t.off(`${EVENT_REMOVE}__${f}`, y), t.off(`${EVENT_IMAGE_LOADED}__${f}`, y), t.off(`${EVENT_DESTROY}__${f}`, v);
|
|
10800
|
+
const b = p && !Number.isNaN(p) ? p : 0;
|
|
10801
10801
|
setTimeout(function() {
|
|
10802
10802
|
d.destroy();
|
|
10803
10803
|
}, b);
|
|
10804
10804
|
};
|
|
10805
|
-
t.on(`${EVENT_ADD}__${f}`, y), t.on(`${EVENT_REMOVE}__${f}`, y), t.on(`${EVENT_IMAGE_LOADED}__${f}`, y), t.on(`${EVENT_DESTROY}__${f}`,
|
|
10805
|
+
t.on(`${EVENT_ADD}__${f}`, y), t.on(`${EVENT_REMOVE}__${f}`, y), t.on(`${EVENT_IMAGE_LOADED}__${f}`, y), t.on(`${EVENT_DESTROY}__${f}`, v);
|
|
10806
10806
|
},
|
|
10807
10807
|
unbind: function(r, l) {
|
|
10808
10808
|
const u = l.value || e;
|
|
@@ -10847,4 +10847,4 @@ export {
|
|
|
10847
10847
|
StickyPlugin as a,
|
|
10848
10848
|
ListingSkeleton as b
|
|
10849
10849
|
};
|
|
10850
|
-
//# sourceMappingURL=masonry.plugin-
|
|
10850
|
+
//# sourceMappingURL=masonry.plugin-BgwYAWoT.js.map
|