@konnectio/core 4.0.72 → 4.0.74
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-WA78u-qt.js → ActionField-D8W3NqRF.js} +3 -3
- package/dist/ActionField-D8W3NqRF.js.br +0 -0
- package/dist/{AvailabilitySkeleton-DWAAfDci.js → AvailabilitySkeleton-BBDi4x8U.js} +8 -8
- package/dist/AvailabilitySkeleton-BBDi4x8U.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-oR5hDpPN.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.js} +700 -707
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.js.br +0 -0
- package/dist/{CheckoutWindow-m-KS7D5O.js → CheckoutWindow-DUjpjYxC.js} +4 -4
- package/dist/CheckoutWindow-DUjpjYxC.js.br +0 -0
- package/dist/{ErrorMessage-D8EUNIrV.js → ErrorMessage-hjNJgwrs.js} +3 -3
- package/dist/ErrorMessage-hjNJgwrs.js.br +0 -0
- package/dist/{EventAvailabilityForm-BqQq-RE9.js → EventAvailabilityForm-DUjmm91K.js} +33 -32
- package/dist/EventAvailabilityForm-DUjmm91K.js.br +0 -0
- package/dist/{Field-D81BL1WK.js → Field-BQPBt3Yl.js} +3 -3
- package/dist/Field-BQPBt3Yl.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Cl6k9WH_.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B04XBO4v.js} +6 -6
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B04XBO4v.js.br +0 -0
- package/dist/{TermsOfService-CdBX8DQJ.js → TermsOfService-D6RUoOUV.js} +5 -5
- package/dist/TermsOfService-D6RUoOUV.js.br +0 -0
- package/dist/{_-hcYFpJ0N.js → _-Dshgs9--.js} +2 -2
- package/dist/{_.vue_vue_type_style_index_0_lang-H94VV8Ci.js → _.vue_vue_type_style_index_0_lang-CGVeBj5b.js} +3 -3
- package/dist/_.vue_vue_type_style_index_0_lang-CGVeBj5b.js.br +0 -0
- package/dist/{_commonjsHelpers-pT8Rih2H.js → _commonjsHelpers-B-6sA32f.js} +2 -2
- package/dist/_commonjsHelpers-B-6sA32f.js.br +0 -0
- package/dist/{_sentry-release-injection-file-ClTbPGwX.js → _sentry-release-injection-file-CYoJrL75.js} +3 -3
- package/dist/_sentry-release-injection-file-CYoJrL75.js.br +0 -0
- package/dist/availability.js +8 -8
- package/dist/availability.js.br +0 -0
- package/dist/deep-link.js +2 -2
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +57 -56
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +10 -10
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +11 -11
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-BN6OrFR7.js → giftCard-Cia2eO-w.js} +4 -4
- package/dist/giftCard-Cia2eO-w.js.br +0 -0
- package/dist/hotel.js +297 -297
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-CeLRNyLX.js → masonry.plugin-CgYuuVsX.js} +400 -397
- package/dist/masonry.plugin-CgYuuVsX.js.br +0 -0
- package/dist/{mitt-CMZ4E8_p.js → mitt-BOKsNQma.js} +2 -2
- package/dist/mitt-BOKsNQma.js.br +0 -0
- package/dist/polyfill.js +101 -101
- package/dist/polyfill.js.br +0 -0
- package/dist/{sentry-DJAGqRxj.js → sentry-bc_bi4Og.js} +2 -2
- package/dist/{style-CG3D6NF3.js → style-BMdCLRVb.js} +2 -2
- package/dist/style-BMdCLRVb.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-WA78u-qt.js.br +0 -0
- package/dist/AvailabilitySkeleton-DWAAfDci.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-oR5hDpPN.js.br +0 -0
- package/dist/CheckoutWindow-m-KS7D5O.js.br +0 -0
- package/dist/ErrorMessage-D8EUNIrV.js.br +0 -0
- package/dist/EventAvailabilityForm-BqQq-RE9.js.br +0 -0
- package/dist/Field-D81BL1WK.js.br +0 -0
- package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Cl6k9WH_.js.br +0 -0
- package/dist/TermsOfService-CdBX8DQJ.js.br +0 -0
- package/dist/_.vue_vue_type_style_index_0_lang-H94VV8Ci.js.br +0 -0
- package/dist/_commonjsHelpers-pT8Rih2H.js.br +0 -0
- package/dist/_sentry-release-injection-file-ClTbPGwX.js.br +0 -0
- package/dist/giftCard-BN6OrFR7.js.br +0 -0
- package/dist/masonry.plugin-CeLRNyLX.js.br +0 -0
- package/dist/mitt-CMZ4E8_p.js.br +0 -0
- package/dist/style-CG3D6NF3.js.br +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { d as defineComponent, I as getCurrentInstance, J as resolveComponent, K as h, L as Comment, M as Text, F as Fragment, r as ref, c as computed$1, z as watch, o as onMounted, a as openBlock, g as createElementBlock, b as createBlock, w as withCtx, e as createBaseVNode, h as withModifiers, i as createCommentVNode, f as createVNode, s as renderList, u as unref, n as normalizeClass, p as pushScopeId, j as popScopeId, H as inject, C as resolveDirective, q as createSlots, A as withDirectives, t as toDisplayString, N as reactive, O as onUnmounted, l as renderSlot, P as normalizeStyle, E as nextTick, B as vShow, x as createTextVNode, Q as mergeModels, m as useSlots, R as useModel, T as Transition, v as isRef } from "./_sentry-release-injection-file-
|
|
2
|
-
import { I as Icon, _ as _export_sfc, x as useHotelStore, T as TextField, F as convertDescription, B as BookingLayout, d as useUtilityStore, i as capitalized, y as daysBetweenDates, g as showPrice, s as showDate, p as InputField, D as BookingHeaderLayout, E as Element$1, q as useApplyGiftCardStore, r as usePaymentStore } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-
|
|
3
|
-
import { u as useI18n, s as storeToRefs, m as mitt } from "./mitt-
|
|
4
|
-
import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-
|
|
5
|
-
import { u as useEventStore } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-
|
|
6
|
-
import { A as ActionField } from "./ActionField-
|
|
7
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-
|
|
1
|
+
import { d as defineComponent, I as getCurrentInstance, J as resolveComponent, K as h, L as Comment, M as Text, F as Fragment, r as ref, c as computed$1, z as watch, o as onMounted, a as openBlock, g as createElementBlock, b as createBlock, w as withCtx, e as createBaseVNode, h as withModifiers, i as createCommentVNode, f as createVNode, s as renderList, u as unref, n as normalizeClass, p as pushScopeId, j as popScopeId, H as inject, C as resolveDirective, q as createSlots, A as withDirectives, t as toDisplayString, N as reactive, O as onUnmounted, l as renderSlot, P as normalizeStyle, E as nextTick, B as vShow, x as createTextVNode, Q as mergeModels, m as useSlots, R as useModel, T as Transition, v as isRef } from "./_sentry-release-injection-file-CYoJrL75.js";
|
|
2
|
+
import { I as Icon, _ as _export_sfc, x as useHotelStore, T as TextField, F as convertDescription, B as BookingLayout, d as useUtilityStore, i as capitalized, y as daysBetweenDates, g as showPrice, s as showDate, p as InputField, D as BookingHeaderLayout, E as Element$1, q as useApplyGiftCardStore, r as usePaymentStore } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B04XBO4v.js";
|
|
3
|
+
import { u as useI18n, s as storeToRefs, m as mitt } from "./mitt-BOKsNQma.js";
|
|
4
|
+
import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-DUjpjYxC.js";
|
|
5
|
+
import { u as useEventStore } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CIEzLxoU.js";
|
|
6
|
+
import { A as ActionField } from "./ActionField-D8W3NqRF.js";
|
|
7
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-B-6sA32f.js";
|
|
8
8
|
(function() {
|
|
9
9
|
try {
|
|
10
10
|
var s = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, i = new Error().stack;
|
|
11
|
-
i && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[i] = "
|
|
11
|
+
i && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[i] = "1330dd2f-d2f7-4c39-9b0f-9bc0eadbdfee", s._sentryDebugIdIdentifier = "sentry-dbid-1330dd2f-d2f7-4c39-9b0f-9bc0eadbdfee");
|
|
12
12
|
} catch {
|
|
13
13
|
}
|
|
14
14
|
})();
|
|
@@ -386,16 +386,16 @@ function getClientHintsAgent(s) {
|
|
|
386
386
|
version: "-1",
|
|
387
387
|
majorVersion: -1
|
|
388
388
|
};
|
|
389
|
-
u.webkit = !u.chromium && some(WEBKIT_PRESETS, function(
|
|
390
|
-
return findBrand(t,
|
|
389
|
+
u.webkit = !u.chromium && some(WEBKIT_PRESETS, function(m) {
|
|
390
|
+
return findBrand(t, m);
|
|
391
391
|
});
|
|
392
392
|
var f = findPresetBrand(CHROMIUM_PRESETS, t);
|
|
393
393
|
if (u.chromium = !!f.brand, u.chromiumVersion = f.version, !u.chromium) {
|
|
394
394
|
var p = findPresetBrand(WEBKIT_PRESETS, t);
|
|
395
395
|
u.webkit = !!p.brand, u.webkitVersion = p.version;
|
|
396
396
|
}
|
|
397
|
-
var _ = find$1(OS_PRESETS, function(
|
|
398
|
-
return new RegExp("" +
|
|
397
|
+
var _ = find$1(OS_PRESETS, function(m) {
|
|
398
|
+
return new RegExp("" + m.test, "g").exec(l);
|
|
399
399
|
});
|
|
400
400
|
if (d.name = _ ? _.id : "", s && (d.version = s.platformVersion), e && e.length) {
|
|
401
401
|
var y = findPresetBrand(BROWSER_PRESETS, e);
|
|
@@ -796,22 +796,22 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
796
796
|
}, i.triggerChange = function(t, e, n, r) {
|
|
797
797
|
var l = this;
|
|
798
798
|
r === void 0 && (r = !1);
|
|
799
|
-
var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), p = this._getRoundPos(t, e), _ = p.roundPos, y = p.roundDepa, v = d.moveTo(_, y),
|
|
799
|
+
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 = {
|
|
800
800
|
pos: v.pos,
|
|
801
801
|
delta: v.delta,
|
|
802
802
|
bounceRatio: this._getBounceRatio(v.pos),
|
|
803
803
|
holding: r,
|
|
804
|
-
inputEvent:
|
|
805
|
-
isTrusted: !!
|
|
804
|
+
inputEvent: m,
|
|
805
|
+
isTrusted: !!m,
|
|
806
806
|
input: n?.input || f?.input || null,
|
|
807
|
-
set:
|
|
807
|
+
set: m ? this._createUserControll(v.pos) : function() {
|
|
808
808
|
}
|
|
809
809
|
// eslint-disable-line @typescript-eslint/no-empty-function
|
|
810
810
|
}, P = new ComponentEvent$1("change", b);
|
|
811
811
|
return this._axes.trigger(P), Object.keys(v.pos).forEach(function(g) {
|
|
812
|
-
var
|
|
813
|
-
getObserver(l._axes, g,
|
|
814
|
-
}),
|
|
812
|
+
var E = v.pos[g];
|
|
813
|
+
getObserver(l._axes, g, E).current = E;
|
|
814
|
+
}), m && d.set(b.set().destPos), !P.isCanceled();
|
|
815
815
|
}, i.triggerAnimationStart = function(t) {
|
|
816
816
|
var e = this._getRoundPos(t.destPos, t.depaPos), n = e.roundPos, r = e.roundDepa;
|
|
817
817
|
t.destPos = n, t.depaPos = r, t.setTo = this._createUserControll(t.destPos, t.duration);
|
|
@@ -964,9 +964,9 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
964
964
|
var e, n = this.prevEvent, r = this._getCenter(t), l = n ? this._getMovement(t) : {
|
|
965
965
|
x: 0,
|
|
966
966
|
y: 0
|
|
967
|
-
}, 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,
|
|
967
|
+
}, 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;
|
|
968
968
|
return (!v || b >= VELOCITY_INTERVAL) && (v && (e = [(f - v.deltaX) / b, (p - v.deltaY) / b], P = e[0], g = e[1]), this._latestInterval = {
|
|
969
|
-
timestamp:
|
|
969
|
+
timestamp: m,
|
|
970
970
|
deltaX: f,
|
|
971
971
|
deltaY: p
|
|
972
972
|
}), {
|
|
@@ -1211,8 +1211,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1211
1211
|
d = map(u, function(y, v) {
|
|
1212
1212
|
return y + (n[v] || 0);
|
|
1213
1213
|
}), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(y, v) {
|
|
1214
|
-
var
|
|
1215
|
-
return
|
|
1214
|
+
var m = v.circular, b = v.range;
|
|
1215
|
+
return m && (m[0] || m[1]) ? getCirculatedPos(y, b, m) : y;
|
|
1216
1216
|
})), this._isOutside && this._axisManager.every(u, function(y, v) {
|
|
1217
1217
|
return !isOutside(y, v.range);
|
|
1218
1218
|
}) && (this._isOutside = !1), u = this._atOutside(u), d = this._atOutside(d), (!this.options.nested || !this._isEndofAxis(n, u, d)) && (l.__childrenAxesAlreadyChanged = !0);
|
|
@@ -1235,8 +1235,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1235
1235
|
l.__childrenAxesAlreadyReleased && (n = n.map(function() {
|
|
1236
1236
|
return 0;
|
|
1237
1237
|
}));
|
|
1238
|
-
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,
|
|
1239
|
-
return
|
|
1238
|
+
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) {
|
|
1239
|
+
return E.circular && (E.circular[0] || E.circular[1]) ? u[T] + g : getInsidePosition(u[T] + g, E.range, E.circular, E.bounce);
|
|
1240
1240
|
}));
|
|
1241
1241
|
l.__childrenAxesAlreadyReleased = !0;
|
|
1242
1242
|
var y = this._animationManager.getDuration(_, u, r);
|
|
@@ -1251,11 +1251,11 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1251
1251
|
isTrusted: !0
|
|
1252
1252
|
};
|
|
1253
1253
|
--this._eventManager.holdingCount, this._eventManager.triggerRelease(v), this._eventManager.holdingCount === 0 && (this._moveDistance = null);
|
|
1254
|
-
var
|
|
1254
|
+
var m = this._animationManager.getUserControl(v), b = equal(m.destPos, d), P = {
|
|
1255
1255
|
input: t,
|
|
1256
1256
|
event: e
|
|
1257
1257
|
};
|
|
1258
|
-
b ||
|
|
1258
|
+
b || m.duration === 0 ? (b || this._eventManager.triggerChange(m.destPos, d, P, !0), this._interruptManager.setInterrupt(!1), this._axisManager.isOutside() ? this._animationManager.restore(P) : this._eventManager.triggerFinish(!0)) : this._animationManager.animateTo(m.destPos, m.duration, P);
|
|
1259
1259
|
}
|
|
1260
1260
|
}, i._atOutside = function(t) {
|
|
1261
1261
|
var e = this;
|
|
@@ -1452,13 +1452,13 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1452
1452
|
finished: !1
|
|
1453
1453
|
};
|
|
1454
1454
|
}, t._getNextState = function(e) {
|
|
1455
|
-
var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(v,
|
|
1456
|
-
return v <= u[
|
|
1457
|
-
}), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, p = (f + this._durationOffset) / r.duration, _ = this._easing(p), y = this.axisManager.map(l, function(v,
|
|
1458
|
-
var P = p >= 1 ? u[b] : v + r.delta[b] * (_ - n._prevEasingPer) / (1 - n._initialEasingPer), g = getCirculatedPos(P,
|
|
1455
|
+
var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(v, m) {
|
|
1456
|
+
return v <= u[m] ? 1 : -1;
|
|
1457
|
+
}), 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) {
|
|
1458
|
+
var P = p >= 1 ? u[b] : v + r.delta[b] * (_ - n._prevEasingPer) / (1 - n._initialEasingPer), g = getCirculatedPos(P, m.range, m.circular);
|
|
1459
1459
|
if (P !== g) {
|
|
1460
|
-
var
|
|
1461
|
-
u[b] -=
|
|
1460
|
+
var E = d[b] * (m.range[1] - m.range[0]);
|
|
1461
|
+
u[b] -= E, l[b] -= E;
|
|
1462
1462
|
}
|
|
1463
1463
|
return g;
|
|
1464
1464
|
});
|
|
@@ -1595,16 +1595,16 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1595
1595
|
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;
|
|
1596
1596
|
}
|
|
1597
1597
|
}, i._onPanmove = function(t) {
|
|
1598
|
-
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),
|
|
1599
|
-
if (
|
|
1598
|
+
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);
|
|
1599
|
+
if (m === 0 || u && v && !v.srcEvent.cancelable) {
|
|
1600
1600
|
this._onPanend(t);
|
|
1601
1601
|
return;
|
|
1602
1602
|
}
|
|
1603
|
-
if (!(!v || !this._enabled ||
|
|
1603
|
+
if (!(!v || !this._enabled || m > 1)) {
|
|
1604
1604
|
var b = getDirectionByAngle(v.angle, _), P = useDirection(DIRECTION_HORIZONTAL, this._direction, b), g = useDirection(DIRECTION_VERTICAL, this._direction, b);
|
|
1605
1605
|
if (y.prevEvent && IS_IOS_SAFARI) {
|
|
1606
|
-
var
|
|
1607
|
-
if (
|
|
1606
|
+
var E = v.center.x < 0;
|
|
1607
|
+
if (E) {
|
|
1608
1608
|
this.release();
|
|
1609
1609
|
return;
|
|
1610
1610
|
} else if (this._atRightEdge) {
|
|
@@ -1880,8 +1880,8 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1880
1880
|
var y = n.checkPreReady(d);
|
|
1881
1881
|
n.onPreReadyElement(d), y && n.onPreReady();
|
|
1882
1882
|
}).on("ready", function(p) {
|
|
1883
|
-
var _ = p.withPreReady, y = p.hasLoading, v = p.isSkip,
|
|
1884
|
-
|
|
1883
|
+
var _ = p.withPreReady, y = p.hasLoading, v = p.isSkip, m = n.elementInfos[d];
|
|
1884
|
+
m.hasLoading = y, m.isSkip = v;
|
|
1885
1885
|
var b = _ && n.checkPreReady(d), P = n.checkReady(d);
|
|
1886
1886
|
_ && n.onPreReadyElement(d), n.onReadyElement(d), b && n.onPreReady(), P && n.onReady();
|
|
1887
1887
|
}), {
|
|
@@ -1921,17 +1921,17 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1921
1921
|
if (u[l])
|
|
1922
1922
|
return new u[l](e, n);
|
|
1923
1923
|
var p = new ElementLoader(e, n), _ = toArray$1(e.querySelectorAll(f.join(", ")));
|
|
1924
|
-
p.setHasLoading(_.some(function(
|
|
1925
|
-
return hasLoadingAttribute(
|
|
1924
|
+
p.setHasLoading(_.some(function(m) {
|
|
1925
|
+
return hasLoadingAttribute(m, d);
|
|
1926
1926
|
}));
|
|
1927
|
-
var y = !1, v = this.clone().on("error", function(
|
|
1928
|
-
p.onError(
|
|
1927
|
+
var y = !1, v = this.clone().on("error", function(m) {
|
|
1928
|
+
p.onError(m.target);
|
|
1929
1929
|
}).on("ready", function() {
|
|
1930
1930
|
p.onReady(y);
|
|
1931
1931
|
});
|
|
1932
1932
|
return p.on("requestChildren", function() {
|
|
1933
|
-
var
|
|
1934
|
-
v.check(
|
|
1933
|
+
var m = getContentElements(e, f, r.options.prefix);
|
|
1934
|
+
v.check(m).on("preReady", function(b) {
|
|
1935
1935
|
y = b.isReady, y || p.onPreReady();
|
|
1936
1936
|
});
|
|
1937
1937
|
}).on("reqeustReadyChildren", function() {
|
|
@@ -2930,12 +2930,12 @@ var State = /* @__PURE__ */ function() {
|
|
|
2930
2930
|
p = document.elementFromPoint(y.clientX, y.clientY);
|
|
2931
2931
|
} else
|
|
2932
2932
|
p = f.target;
|
|
2933
|
-
var v = l.renderer.panels,
|
|
2933
|
+
var v = l.renderer.panels, m = null;
|
|
2934
2934
|
try {
|
|
2935
2935
|
for (var b = __values(v), P = b.next(); !P.done; P = b.next()) {
|
|
2936
2936
|
var g = P.value;
|
|
2937
2937
|
if (g.contains(p)) {
|
|
2938
|
-
|
|
2938
|
+
m = g;
|
|
2939
2939
|
break;
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
@@ -2950,13 +2950,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
2950
2950
|
if (n) throw n.error;
|
|
2951
2951
|
}
|
|
2952
2952
|
}
|
|
2953
|
-
if (
|
|
2954
|
-
var
|
|
2953
|
+
if (m) {
|
|
2954
|
+
var E = l.camera.position, T = m.position;
|
|
2955
2955
|
l.trigger(new ComponentEvent$1(EVENTS.SELECT, {
|
|
2956
|
-
index:
|
|
2957
|
-
panel:
|
|
2956
|
+
index: m.index,
|
|
2957
|
+
panel: m,
|
|
2958
2958
|
// Direction to the clicked panel
|
|
2959
|
-
direction: getDirection(
|
|
2959
|
+
direction: getDirection(E, T)
|
|
2960
2960
|
}));
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
@@ -3318,22 +3318,22 @@ var State = /* @__PURE__ */ function() {
|
|
|
3318
3318
|
offset: 0
|
|
3319
3319
|
};
|
|
3320
3320
|
var _ = function() {
|
|
3321
|
-
var y, v,
|
|
3321
|
+
var y, v, m = function() {
|
|
3322
3322
|
r._animatingContext = {
|
|
3323
3323
|
start: 0,
|
|
3324
3324
|
end: 0,
|
|
3325
3325
|
offset: 0
|
|
3326
3326
|
};
|
|
3327
3327
|
};
|
|
3328
|
-
u.once(EVENT.FINISH,
|
|
3328
|
+
u.once(EVENT.FINISH, m), n ? n.setTo((y = {}, y[POSITION_KEY] = t, y), e) : u.setTo((v = {}, v[POSITION_KEY] = t, v), e);
|
|
3329
3329
|
};
|
|
3330
3330
|
return new Promise(function(y, v) {
|
|
3331
|
-
var
|
|
3331
|
+
var m = function() {
|
|
3332
3332
|
u.off(EVENT.HOLD, b), y();
|
|
3333
3333
|
}, b = function() {
|
|
3334
|
-
u.off(EVENT.FINISH,
|
|
3334
|
+
u.off(EVENT.FINISH, m), v(new FlickingError(MESSAGE.ANIMATION_INTERRUPTED, CODE.ANIMATION_INTERRUPTED));
|
|
3335
3335
|
};
|
|
3336
|
-
u.once(EVENT.FINISH,
|
|
3336
|
+
u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, b), _();
|
|
3337
3337
|
});
|
|
3338
3338
|
}, i.updateDirection = function() {
|
|
3339
3339
|
var t = getFlickingAttached(this._flicking), e = this._axes, n = this._panInput;
|
|
@@ -3585,8 +3585,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3585
3585
|
var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), p = this._controller.state;
|
|
3586
3586
|
if (!d || !f)
|
|
3587
3587
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3588
|
-
var _ = this._calcSnapThreshold(l.threshold, e, d), y = l.animating ? p.delta : e - u.position, v = Math.abs(y),
|
|
3589
|
-
if (
|
|
3588
|
+
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;
|
|
3589
|
+
if (m >= _ && m > 0)
|
|
3590
3590
|
b = this._findSnappedAnchor(e, f);
|
|
3591
3591
|
else if (v >= l.threshold && v > 0)
|
|
3592
3592
|
b = this._findAdjacentAnchor(e, y, f);
|
|
@@ -3609,7 +3609,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
3609
3609
|
return p;
|
|
3610
3610
|
var _ = r.panelCount, y = l.anchorPoints, v = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
|
|
3611
3611
|
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);
|
|
3612
|
-
var
|
|
3612
|
+
var m = v * _, b = p.index + m;
|
|
3613
3613
|
if (Math.abs(b - n.index) <= u) {
|
|
3614
3614
|
var P = y[p.index];
|
|
3615
3615
|
return new AnchorPoint({
|
|
@@ -3619,10 +3619,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
3619
3619
|
});
|
|
3620
3620
|
}
|
|
3621
3621
|
if (r.circularEnabled) {
|
|
3622
|
-
var g = y[circulateIndex(n.index + Math.sign(e - d) * u, _)],
|
|
3623
|
-
return e > d && g.index < n.index ?
|
|
3622
|
+
var g = y[circulateIndex(n.index + Math.sign(e - d) * u, _)], E = Math.floor(u / _);
|
|
3623
|
+
return e > d && g.index < n.index ? E += 1 : e < d && g.index > n.index && (E -= 1), new AnchorPoint({
|
|
3624
3624
|
index: g.index,
|
|
3625
|
-
position: g.position +
|
|
3625
|
+
position: g.position + E * l.rangeDiff,
|
|
3626
3626
|
panel: g.panel
|
|
3627
3627
|
});
|
|
3628
3628
|
} else
|
|
@@ -3710,15 +3710,15 @@ var State = /* @__PURE__ */ function() {
|
|
|
3710
3710
|
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;
|
|
3711
3711
|
if (!p)
|
|
3712
3712
|
return u.update(d), this._resetIndexRange(), this;
|
|
3713
|
-
var _ = d.range, y = p.position, v = p.index,
|
|
3714
|
-
b < 0 && (b = n.circularEnabled ? getMinusCompensatedIndex((b + 1) %
|
|
3715
|
-
var g = l.panels[b],
|
|
3713
|
+
var _ = d.range, y = p.position, v = p.index, m = l.panelCount, b = v - f, P = v + f;
|
|
3714
|
+
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));
|
|
3715
|
+
var g = l.panels[b], E = l.panels[P], T = Math.max(g.position, _.min), O = Math.min(E.position, _.max);
|
|
3716
3716
|
return T > y && (T -= r.rangeDiff), O < y && (O += r.rangeDiff), d.range = {
|
|
3717
3717
|
min: T,
|
|
3718
3718
|
max: O
|
|
3719
3719
|
}, d.circular && (d.position < T && (d.position += r.rangeDiff), d.position > O && (d.position -= r.rangeDiff)), d.circular = !1, u.update(d), this._indexRange = {
|
|
3720
3720
|
min: g.index,
|
|
3721
|
-
max:
|
|
3721
|
+
max: E.index
|
|
3722
3722
|
}, this;
|
|
3723
3723
|
}, t.moveToPanel = function(e, n) {
|
|
3724
3724
|
return __awaiter$1(this, void 0, void 0, function() {
|
|
@@ -3728,16 +3728,16 @@ var State = /* @__PURE__ */ function() {
|
|
|
3728
3728
|
});
|
|
3729
3729
|
});
|
|
3730
3730
|
}, t.moveToPosition = function(e, n, r) {
|
|
3731
|
-
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,
|
|
3731
|
+
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);
|
|
3732
3732
|
if (!b || !f)
|
|
3733
3733
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3734
|
-
var P = f.position, g = u.animating ? v.delta : e - d.position,
|
|
3734
|
+
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, I = d.anchorPoints, k = I[0], C = I[I.length - 1], R = e <= y.min && isBetween(k.panel.index, _.min, _.max), A = e >= y.max && isBetween(C.panel.index, _.min, _.max), N = T && (_.min <= _.max ? isBetween(T.index, _.min, _.max) : T.index >= _.min || T.index <= _.max);
|
|
3735
3735
|
if (R || A) {
|
|
3736
3736
|
var w = e < y.min ? k : C;
|
|
3737
3737
|
S = w.panel, O = w.position;
|
|
3738
|
-
} else if (
|
|
3738
|
+
} else if (E && b.position !== f.position)
|
|
3739
3739
|
S = b.panel, O = b.position;
|
|
3740
|
-
else if (
|
|
3740
|
+
else if (E && N)
|
|
3741
3741
|
S = T.panel, O = T.position;
|
|
3742
3742
|
else {
|
|
3743
3743
|
var D = d.findNearestAnchor(d.position);
|
|
@@ -3875,8 +3875,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3875
3875
|
})].filter(function(v) {
|
|
3876
3876
|
return !!v;
|
|
3877
3877
|
});
|
|
3878
|
-
p = _.reduce(function(v,
|
|
3879
|
-
return v && Math.abs(v.position - e) < Math.abs(
|
|
3878
|
+
p = _.reduce(function(v, m) {
|
|
3879
|
+
return v && Math.abs(v.position - e) < Math.abs(m.position - e) ? v : m;
|
|
3880
3880
|
}, null);
|
|
3881
3881
|
}
|
|
3882
3882
|
if (!p) return null;
|
|
@@ -3938,13 +3938,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
3938
3938
|
min: 0,
|
|
3939
3939
|
max: 0
|
|
3940
3940
|
};
|
|
3941
|
-
var d = e.camera.size, f = l.range.min, p = u.range.max, _ = p - f, y = d < _, v = f + r,
|
|
3941
|
+
var d = e.camera.size, f = l.range.min, p = u.range.max, _ = p - f, y = d < _, v = f + r, m = p - d + r;
|
|
3942
3942
|
if (y)
|
|
3943
3943
|
return {
|
|
3944
3944
|
min: v,
|
|
3945
|
-
max:
|
|
3945
|
+
max: m
|
|
3946
3946
|
};
|
|
3947
|
-
var b = e.camera.align, P = typeof b == "object" ? b.camera : b, g = v + parseAlign$1(P,
|
|
3947
|
+
var b = e.camera.align, P = typeof b == "object" ? b.camera : b, g = v + parseAlign$1(P, m - v);
|
|
3948
3948
|
return {
|
|
3949
3949
|
min: g,
|
|
3950
3950
|
max: g
|
|
@@ -3974,7 +3974,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
3974
3974
|
panel: r[u[u.length - 1].index + 1]
|
|
3975
3975
|
})), _;
|
|
3976
3976
|
} else if (l.min !== l.max) {
|
|
3977
|
-
var y = this._findNearestPanel(l.min, r), v = y.index === r.length - 1 ? y.prev() : y,
|
|
3977
|
+
var y = this._findNearestPanel(l.min, r), v = y.index === r.length - 1 ? y.prev() : y, m = v.next();
|
|
3978
3978
|
return [new AnchorPoint({
|
|
3979
3979
|
index: 0,
|
|
3980
3980
|
position: l.min,
|
|
@@ -3982,7 +3982,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
3982
3982
|
}), new AnchorPoint({
|
|
3983
3983
|
index: 1,
|
|
3984
3984
|
position: l.max,
|
|
3985
|
-
panel:
|
|
3985
|
+
panel: m
|
|
3986
3986
|
})];
|
|
3987
3987
|
} else
|
|
3988
3988
|
return [new AnchorPoint({
|
|
@@ -4009,8 +4009,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
4009
4009
|
var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], p = document.documentElement.style, _ = "";
|
|
4010
4010
|
try {
|
|
4011
4011
|
for (var y = __values(f), v = y.next(); !v.done; v = y.next()) {
|
|
4012
|
-
var
|
|
4013
|
-
|
|
4012
|
+
var m = v.value;
|
|
4013
|
+
m in p && (_ = m);
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch (b) {
|
|
4016
4016
|
u = {
|
|
@@ -4245,7 +4245,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
4245
4245
|
var y = r.prev(), v = y ? y.position + y.offset : f - u[0];
|
|
4246
4246
|
return v > l && (v -= _), r.index - 1 + getProgress(e, v, l);
|
|
4247
4247
|
} else {
|
|
4248
|
-
var
|
|
4248
|
+
var m = r.next(), b = m ? m.position + m.offset : p + u[1];
|
|
4249
4249
|
return b < l && (b += _), r.index + getProgress(e, l, b);
|
|
4250
4250
|
}
|
|
4251
4251
|
},
|
|
@@ -4412,8 +4412,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
4412
4412
|
})), t.prev = !0);
|
|
4413
4413
|
}
|
|
4414
4414
|
if (!t.next) {
|
|
4415
|
-
var
|
|
4416
|
-
(p >=
|
|
4415
|
+
var m = y.range.max;
|
|
4416
|
+
(p >= m - d || r >= u.max - d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
|
|
4417
4417
|
direction: DIRECTION.NEXT
|
|
4418
4418
|
})), t.next = !0);
|
|
4419
4419
|
}
|
|
@@ -4552,21 +4552,21 @@ var State = /* @__PURE__ */ function() {
|
|
|
4552
4552
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4553
4553
|
e[n] = arguments[n];
|
|
4554
4554
|
var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(p, _) {
|
|
4555
|
-
var y, v = getMinusCompensatedIndex(_.index, r.length),
|
|
4555
|
+
var y, v = getMinusCompensatedIndex(_.index, r.length), m = r.slice(v), b = _.elements.map(function(g, E) {
|
|
4556
4556
|
return t._createPanel(g, {
|
|
4557
|
-
index: v +
|
|
4557
|
+
index: v + E,
|
|
4558
4558
|
align: d,
|
|
4559
4559
|
flicking: l
|
|
4560
4560
|
});
|
|
4561
4561
|
});
|
|
4562
|
-
if (r.splice.apply(r, __spread([v, 0], b)), _.hasDOMInElements && t._insertPanelElements(b, (y =
|
|
4562
|
+
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) {
|
|
4563
4563
|
var P = u || b[0].resize();
|
|
4564
4564
|
t._updatePanelSizeByGrid(P, b);
|
|
4565
4565
|
} else
|
|
4566
4566
|
b.forEach(function(g) {
|
|
4567
4567
|
return g.resize();
|
|
4568
4568
|
});
|
|
4569
|
-
return
|
|
4569
|
+
return m.forEach(function(g) {
|
|
4570
4570
|
g.increaseIndex(b.length), g.updatePosition();
|
|
4571
4571
|
}), __spread(p, b);
|
|
4572
4572
|
}, []);
|
|
@@ -4580,7 +4580,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
4580
4580
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4581
4581
|
e[n] = arguments[n];
|
|
4582
4582
|
var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(p, _) {
|
|
4583
|
-
var y = _.index, v = _.deleteCount,
|
|
4583
|
+
var y = _.index, v = _.deleteCount, m = getMinusCompensatedIndex(y, r.length), b = r.slice(m + v), P = r.splice(m, v);
|
|
4584
4584
|
return P.length <= 0 ? [] : (b.forEach(function(g) {
|
|
4585
4585
|
g.decreaseIndex(P.length), g.updatePosition();
|
|
4586
4586
|
}), _.hasDOMInElements && t._removePanelElements(P), P.forEach(function(g) {
|
|
@@ -4628,8 +4628,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
4628
4628
|
return;
|
|
4629
4629
|
}
|
|
4630
4630
|
var p = t[f.index], _ = n.camera, y = n.control, v = y.activePanel ? _.getProgressInPanel(y.activePanel) : 0;
|
|
4631
|
-
p.loading = !1, p.resize(), l.slice(p.index + 1).forEach(function(
|
|
4632
|
-
return
|
|
4631
|
+
p.loading = !1, p.resize(), l.slice(p.index + 1).forEach(function(m) {
|
|
4632
|
+
return m.updatePosition();
|
|
4633
4633
|
}), n.initialized && (_.updateRange(), _.updateOffset(), _.updateAnchors(), y.animating || (y.updatePosition(v), y.updateInput()));
|
|
4634
4634
|
}), d.on("preReady", function(f) {
|
|
4635
4635
|
e._flicking && e.render(), f.readyCount === f.totalCount && d.destroy();
|
|
@@ -5281,7 +5281,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
5281
5281
|
}(), Flicking$1 = /* @__PURE__ */ function(s) {
|
|
5282
5282
|
__extends$2(i, s);
|
|
5283
5283
|
function i(e, n) {
|
|
5284
|
-
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,
|
|
5284
|
+
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, I = r.noPanelStyleOverride, k = I === void 0 ? !1 : I, C = r.resizeOnContentsReady, R = C === void 0 ? !1 : C, A = r.nested, N = A === void 0 ? !1 : A, w = r.needPanelThreshold, D = w === void 0 ? 0 : w, L = r.preventEventsBeforeInit, B = L === void 0 ? !0 : L, M = r.deceleration, le = M === void 0 ? 75e-4 : M, V = r.duration, ue = V === void 0 ? 500 : V, z = r.easing, ce = z === void 0 ? function(Re) {
|
|
5285
5285
|
return 1 - Math.pow(1 - Re, 3);
|
|
5286
5286
|
} : z, F = r.inputType, de = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType, fe = j === void 0 ? "snap" : j, H = r.threshold, he = H === void 0 ? 40 : H, W = r.interruptable, ve = W === void 0 ? !0 : W, U = r.bounce, pe = U === void 0 ? "20%" : U, G = r.iOSEdgeSwipeThreshold, ge = G === void 0 ? 30 : G, Y = r.preventClickOnDrag, _e = Y === void 0 ? !0 : Y, q = r.preventDefaultOnDrag, me = q === void 0 ? !1 : q, X = r.disableOnInit, Ee = X === void 0 ? !1 : X, K = r.changeOnHold, ye = K === void 0 ? !1 : K, Z = r.renderOnlyVisible, be = Z === void 0 ? !1 : Z, Q = r.virtual, J = Q === void 0 ? null : Q, ee = r.autoInit, Pe = ee === void 0 ? !0 : ee, te = r.autoResize, Te = te === void 0 ? !0 : te, ne = r.useResizeObserver, Oe = ne === void 0 ? !0 : ne, ie = r.resizeDebounce, Se = ie === void 0 ? 0 : ie, re = r.maxResizeDebounce, Ie = re === void 0 ? 100 : re, ae = r.useFractionalSize, Ce = ae === void 0 ? !1 : ae, oe = r.externalRenderer, xe = oe === void 0 ? null : oe, se = r.renderExternal, ke = se === void 0 ? null : se, x = s.call(this) || this;
|
|
5287
5287
|
return x._initialized = !1, x._plugins = [], 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 = N, x._virtual = J, x._needPanelThreshold = D, x._preventEventsBeforeInit = B, x._deceleration = le, x._duration = ue, x._easing = ce, x._inputType = de, x._moveType = fe, x._threshold = he, x._interruptable = ve, x._bounce = pe, x._iOSEdgeSwipeThreshold = ge, x._preventClickOnDrag = _e, x._preventDefaultOnDrag = me, x._disableOnInit = Ee, x._changeOnHold = ye, x._renderOnlyVisible = be, x._autoInit = Pe, x._autoResize = Te, x._useResizeObserver = Oe, x._resizeDebounce = Se, x._maxResizeDebounce = Ie, x._useFractionalSize = Ce, x._externalRenderer = xe, x._renderExternal = ke, 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, J), x._autoInit && x.init(), x;
|
|
@@ -6263,7 +6263,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6263
6263
|
}, t.disableInput = function() {
|
|
6264
6264
|
return this._control.disable(), this;
|
|
6265
6265
|
}, t.getStatus = function(e) {
|
|
6266
|
-
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,
|
|
6266
|
+
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 = {
|
|
6267
6267
|
panels: P.map(function(O) {
|
|
6268
6268
|
var S = {
|
|
6269
6269
|
index: O.index
|
|
@@ -6272,13 +6272,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
6272
6272
|
})
|
|
6273
6273
|
};
|
|
6274
6274
|
if (d && (g.index = this.index), p) {
|
|
6275
|
-
var
|
|
6276
|
-
|
|
6277
|
-
panel:
|
|
6278
|
-
progressInPanel: b.getProgressInPanel(
|
|
6275
|
+
var E = b.findNearestAnchor(b.position);
|
|
6276
|
+
E && (g.position = {
|
|
6277
|
+
panel: E.panel.index,
|
|
6278
|
+
progressInPanel: b.getProgressInPanel(E.panel)
|
|
6279
6279
|
});
|
|
6280
6280
|
}
|
|
6281
|
-
if (
|
|
6281
|
+
if (m) {
|
|
6282
6282
|
var T = this.visiblePanels;
|
|
6283
6283
|
g.visibleOffset = (r = (n = T[0]) === null || n === void 0 ? void 0 : n.index) !== null && r !== void 0 ? r : 0;
|
|
6284
6284
|
}
|
|
@@ -6304,7 +6304,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6304
6304
|
});
|
|
6305
6305
|
}
|
|
6306
6306
|
if (l && this._moveType === MOVE_TYPE.FREE_SCROLL) {
|
|
6307
|
-
var y = l.panel, v = l.progressInPanel, _ = u ? y - u : y,
|
|
6307
|
+
var y = l.panel, v = l.progressInPanel, _ = u ? y - u : y, m = f.panels[_].range, b = m.min + (m.max - m.min) * v;
|
|
6308
6308
|
p.moveToPosition(b, 0).catch(function() {
|
|
6309
6309
|
});
|
|
6310
6310
|
}
|
|
@@ -6326,8 +6326,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
6326
6326
|
}, t.resize = function() {
|
|
6327
6327
|
return __awaiter$1(this, void 0, void 0, function() {
|
|
6328
6328
|
var e, n, r, l, u, d, f, p, _, y, v;
|
|
6329
|
-
return __generator$1(this, function(
|
|
6330
|
-
switch (
|
|
6329
|
+
return __generator$1(this, function(m) {
|
|
6330
|
+
switch (m.label) {
|
|
6331
6331
|
case 0:
|
|
6332
6332
|
return 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, {
|
|
6333
6333
|
width: d,
|
|
@@ -6335,12 +6335,12 @@ var State = /* @__PURE__ */ function() {
|
|
|
6335
6335
|
element: e.element
|
|
6336
6336
|
})), e.resize(), [4, n.forceRenderAllPanels()];
|
|
6337
6337
|
case 1:
|
|
6338
|
-
return
|
|
6338
|
+
return m.sent(), this._initialized ? (n.updatePanelSize(), r.updateAlignPos(), r.updateRange(), r.updateAnchors(), r.updateAdaptiveHeight(), r.updatePanelOrder(), r.updateOffset(), [4, n.render()]) : [
|
|
6339
6339
|
2
|
|
6340
6340
|
/*return*/
|
|
6341
6341
|
];
|
|
6342
6342
|
case 2:
|
|
6343
|
-
return
|
|
6343
|
+
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, {
|
|
6344
6344
|
width: e.width,
|
|
6345
6345
|
height: e.height,
|
|
6346
6346
|
prev: {
|
|
@@ -6477,19 +6477,19 @@ var State = /* @__PURE__ */ function() {
|
|
|
6477
6477
|
}), u.push.apply(u, __spread(batchRemove(e, f, d + 1)));
|
|
6478
6478
|
}
|
|
6479
6479
|
if (i.ordered.forEach(function(v) {
|
|
6480
|
-
var
|
|
6480
|
+
var m = __read(v, 2), b = m[0], P = m[1], g = n.splice(b, 1)[0];
|
|
6481
6481
|
n.splice(P, 0, g);
|
|
6482
|
-
}), i.ordered.length > 0 && (n.forEach(function(v,
|
|
6483
|
-
var b =
|
|
6482
|
+
}), i.ordered.length > 0 && (n.forEach(function(v, m) {
|
|
6483
|
+
var b = m - v.index;
|
|
6484
6484
|
b > 0 ? v.increaseIndex(b) : v.decreaseIndex(-b);
|
|
6485
|
-
}), n.sort(function(v,
|
|
6486
|
-
return v.index -
|
|
6485
|
+
}), n.sort(function(v, m) {
|
|
6486
|
+
return v.index - m.index;
|
|
6487
6487
|
}), n.forEach(function(v) {
|
|
6488
6488
|
v.updatePosition();
|
|
6489
6489
|
})), i.added.length > 0) {
|
|
6490
6490
|
var p = -1, _ = -1, y = t.slice(r.length);
|
|
6491
|
-
i.added.forEach(function(v,
|
|
6492
|
-
p < 0 && (p =
|
|
6491
|
+
i.added.forEach(function(v, m) {
|
|
6492
|
+
p < 0 && (p = m), _ >= 0 && v !== _ + 1 ? (l.push.apply(l, __spread(batchInsert(e, i, y, p, m + 1))), p = -1, _ = -1) : _ = v;
|
|
6493
6493
|
}), p >= 0 && l.push.apply(l, __spread(batchInsert(e, i, y, p)));
|
|
6494
6494
|
}
|
|
6495
6495
|
(i.added.length > 0 || i.removed.length > 0) && e.updateAfterPanelChange(l, u);
|
|
@@ -6642,40 +6642,40 @@ var State = /* @__PURE__ */ function() {
|
|
|
6642
6642
|
return e;
|
|
6643
6643
|
}, Arrow = /* @__PURE__ */ function() {
|
|
6644
6644
|
function s(t) {
|
|
6645
|
-
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,
|
|
6645
|
+
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;
|
|
6646
6646
|
this._flicking = null, this._preventInputPropagation = function(g) {
|
|
6647
6647
|
g.stopPropagation();
|
|
6648
6648
|
}, this._onPrevClick = function() {
|
|
6649
|
-
var g = e._flicking,
|
|
6649
|
+
var g = e._flicking, E = g.camera, T = E.anchorPoints;
|
|
6650
6650
|
if (!(g.animating || T.length <= 0)) {
|
|
6651
6651
|
var O = T[0], S = e._moveCount;
|
|
6652
6652
|
if (e._moveByViewportSize)
|
|
6653
|
-
g.control.moveToPosition(
|
|
6653
|
+
g.control.moveToPosition(E.position - E.size, g.duration).catch(e._onCatch);
|
|
6654
6654
|
else if (g.circularEnabled) {
|
|
6655
6655
|
for (var I = g.currentPanel, k = 0; k < S; k++)
|
|
6656
6656
|
I = I.prev();
|
|
6657
6657
|
I.focus().catch(e._onCatch);
|
|
6658
|
-
} else g.index > O.panel.index ? g.moveTo(Math.max(g.index - S, O.panel.index)).catch(e._onCatch) :
|
|
6658
|
+
} 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);
|
|
6659
6659
|
}
|
|
6660
6660
|
}, this._onNextClick = function() {
|
|
6661
|
-
var g = e._flicking,
|
|
6661
|
+
var g = e._flicking, E = g.camera, T = E.anchorPoints;
|
|
6662
6662
|
if (!(g.animating || T.length <= 0)) {
|
|
6663
6663
|
var O = T[T.length - 1], S = e._moveCount;
|
|
6664
6664
|
if (e._moveByViewportSize)
|
|
6665
|
-
g.control.moveToPosition(
|
|
6665
|
+
g.control.moveToPosition(E.position + E.size, g.duration).catch(e._onCatch);
|
|
6666
6666
|
else if (g.circularEnabled) {
|
|
6667
6667
|
for (var I = g.currentPanel, k = 0; k < S; k++)
|
|
6668
6668
|
I = I.next();
|
|
6669
6669
|
I.focus().catch(e._onCatch);
|
|
6670
|
-
} else g.index < O.panel.index ? g.moveTo(Math.min(g.index + S, O.panel.index)).catch(e._onCatch) :
|
|
6670
|
+
} 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);
|
|
6671
6671
|
}
|
|
6672
6672
|
}, this._onAnimation = function() {
|
|
6673
|
-
var g = e._flicking,
|
|
6674
|
-
g.holding ? e._updateClass(
|
|
6673
|
+
var g = e._flicking, E = g.camera, T = g.control.controller;
|
|
6674
|
+
g.holding ? e._updateClass(E.position) : e._updateClass(T.animatingContext.end);
|
|
6675
6675
|
}, this._onCatch = function(g) {
|
|
6676
6676
|
if (!(g instanceof FlickingError))
|
|
6677
6677
|
throw g;
|
|
6678
|
-
}, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = p, this._disabledClass = y, this._moveCount =
|
|
6678
|
+
}, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = p, this._disabledClass = y, this._moveCount = m, this._moveByViewportSize = P;
|
|
6679
6679
|
}
|
|
6680
6680
|
var i = s.prototype;
|
|
6681
6681
|
return Object.defineProperty(i, "prevEl", {
|
|
@@ -6856,19 +6856,19 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6856
6856
|
this._bullets = [], this._prevIndex = -1;
|
|
6857
6857
|
}, t.render = function() {
|
|
6858
6858
|
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;
|
|
6859
|
-
addClass(l, _), l.innerHTML = y.map(function(
|
|
6860
|
-
return p &&
|
|
6859
|
+
addClass(l, _), l.innerHTML = y.map(function(m, b) {
|
|
6860
|
+
return p && m.panel.index === n.index ? p(u, b) : f(u, b);
|
|
6861
6861
|
}).join(`
|
|
6862
6862
|
`);
|
|
6863
6863
|
var v = [].slice.call(l.children);
|
|
6864
|
-
v.forEach(function(
|
|
6864
|
+
v.forEach(function(m, b) {
|
|
6865
6865
|
var P = y[b];
|
|
6866
|
-
P.panel.index === n.index && (addClass(
|
|
6866
|
+
P.panel.index === n.index && (addClass(m, d), e._prevIndex = b), e._addBulletEvents(m, b);
|
|
6867
6867
|
}), this._bullets = v;
|
|
6868
6868
|
}, t.update = function(e) {
|
|
6869
6869
|
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;
|
|
6870
6870
|
if (!(_.length <= 0)) {
|
|
6871
|
-
var
|
|
6871
|
+
var m = _[0].panel.index, b = e - m;
|
|
6872
6872
|
if (p !== b) {
|
|
6873
6873
|
if (v) {
|
|
6874
6874
|
var P = u[p];
|
|
@@ -6876,11 +6876,11 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6876
6876
|
var g = this._createBulletFromString(y(d, p), p);
|
|
6877
6877
|
P.parentElement.replaceChild(g, P), u[p] = g;
|
|
6878
6878
|
}
|
|
6879
|
-
var
|
|
6880
|
-
l.replaceChild(T,
|
|
6879
|
+
var E = u[b], T = this._createBulletFromString(v(d + " " + f, b), b);
|
|
6880
|
+
l.replaceChild(T, E), u[b] = T;
|
|
6881
6881
|
} else {
|
|
6882
|
-
var
|
|
6883
|
-
P && removeClass(P, f), addClass(
|
|
6882
|
+
var E = u[b], P = u[p];
|
|
6883
|
+
P && removeClass(P, f), addClass(E, f);
|
|
6884
6884
|
}
|
|
6885
6885
|
this._prevIndex = b;
|
|
6886
6886
|
}
|
|
@@ -6919,25 +6919,25 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6919
6919
|
this._bullets = [], this._bulletSize = 0, this._previousIndex = -1, this._sliderIndex = -1;
|
|
6920
6920
|
}, t.render = function() {
|
|
6921
6921
|
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");
|
|
6922
|
-
addClass(v, _), addClass(n, y), addClass(n, f), n.appendChild(v), v.innerHTML = d.map(function(g,
|
|
6923
|
-
return u(p,
|
|
6922
|
+
addClass(v, _), addClass(n, y), addClass(n, f), n.appendChild(v), v.innerHTML = d.map(function(g, E) {
|
|
6923
|
+
return u(p, E);
|
|
6924
6924
|
}).join(`
|
|
6925
6925
|
`);
|
|
6926
|
-
var
|
|
6927
|
-
if (
|
|
6928
|
-
e._addBulletEvents(g,
|
|
6929
|
-
}), !(
|
|
6930
|
-
var b = getComputedStyle(
|
|
6931
|
-
n.style.width = P * l.bulletCount + "px", this._bullets =
|
|
6926
|
+
var m = [].slice.call(v.children);
|
|
6927
|
+
if (m.forEach(function(g, E) {
|
|
6928
|
+
e._addBulletEvents(g, E);
|
|
6929
|
+
}), !(m.length <= 0)) {
|
|
6930
|
+
var b = getComputedStyle(m[0]), P = m[0].clientWidth + parseFloat(b.marginLeft) + parseFloat(b.marginRight);
|
|
6931
|
+
n.style.width = P * l.bulletCount + "px", this._bullets = m, this._bulletSize = P, this._previousIndex = -1, this.update(this._flicking.index), window.requestAnimationFrame(function() {
|
|
6932
6932
|
removeClass(n, y);
|
|
6933
6933
|
});
|
|
6934
6934
|
}
|
|
6935
6935
|
}, t.update = function(e) {
|
|
6936
6936
|
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 - _;
|
|
6937
6937
|
if (!(p.length <= 0)) {
|
|
6938
|
-
var v = n.classPrefix + "-" + PAGINATION.BULLET_SUFFIX,
|
|
6938
|
+
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) {
|
|
6939
6939
|
return "" + b + (R > 1 ? R : "");
|
|
6940
|
-
},
|
|
6940
|
+
}, E = function(R) {
|
|
6941
6941
|
return "" + P + (R > 1 ? R : "");
|
|
6942
6942
|
}, T = new RegExp("^" + b), O = new RegExp("^" + P);
|
|
6943
6943
|
if (f) {
|
|
@@ -6955,9 +6955,9 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6955
6955
|
l.forEach(function(R, A) {
|
|
6956
6956
|
for (var N = A - y, w = R.className.split(" "), D = 0, L = w; D < L.length; D++) {
|
|
6957
6957
|
var B = L[D];
|
|
6958
|
-
(B ===
|
|
6958
|
+
(B === m || T.test(B) || O.test(B)) && removeClass(R, B);
|
|
6959
6959
|
}
|
|
6960
|
-
N === 0 ? addClass(R,
|
|
6960
|
+
N === 0 ? addClass(R, m) : N > 0 ? addClass(R, E(Math.abs(N))) : addClass(R, g(Math.abs(N)));
|
|
6961
6961
|
}), n.scrollOnChange(y, {
|
|
6962
6962
|
total: l.length,
|
|
6963
6963
|
prevIndex: u,
|
|
@@ -6970,9 +6970,9 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6970
6970
|
}, i;
|
|
6971
6971
|
}(Renderer), Pagination = /* @__PURE__ */ function() {
|
|
6972
6972
|
function s(t) {
|
|
6973
|
-
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,
|
|
6973
|
+
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(N) {
|
|
6974
6974
|
return '<span class="' + N + '"></span>';
|
|
6975
|
-
} : b, g = n.renderActiveBullet,
|
|
6975
|
+
} : b, g = n.renderActiveBullet, E = g === void 0 ? null : g, T = n.renderFraction, O = T === void 0 ? function(N, w) {
|
|
6976
6976
|
return '<span class="' + N + '"></span>/<span class="' + w + '"></span>';
|
|
6977
6977
|
} : T, S = n.fractionCurrentFormat, I = S === void 0 ? function(N) {
|
|
6978
6978
|
return N.toString();
|
|
@@ -6985,7 +6985,7 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6985
6985
|
e._removeAllChilds(), e._renderer.render();
|
|
6986
6986
|
}, this._onIndexChange = function(N) {
|
|
6987
6987
|
e._renderer.update(N.index);
|
|
6988
|
-
}, this._parentEl = l, this._selector = d, this._type = p, this._classPrefix = y, this._bulletCount =
|
|
6988
|
+
}, 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 = I, this._fractionTotalFormat = C, this._scrollOnChange = A;
|
|
6989
6989
|
}
|
|
6990
6990
|
var i = s.prototype;
|
|
6991
6991
|
return Object.defineProperty(i, "parentEl", {
|
|
@@ -7201,19 +7201,19 @@ var Result = /* @__PURE__ */ function() {
|
|
|
7201
7201
|
}, s;
|
|
7202
7202
|
}();
|
|
7203
7203
|
function diff(s, i, t) {
|
|
7204
|
-
var e = SUPPORT_MAP ? Map : t ? HashMap : PolyMap, n = t || function(
|
|
7205
|
-
return
|
|
7206
|
-
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n), p = new e(), _ = new e(), y = [], v = [],
|
|
7207
|
-
return d.forEach(function(
|
|
7208
|
-
p.set(
|
|
7209
|
-
}), f.forEach(function(
|
|
7210
|
-
_.set(
|
|
7211
|
-
}), d.forEach(function(
|
|
7212
|
-
var O = _.get(
|
|
7213
|
-
typeof O > "u" ? (++g, l.push(T)) :
|
|
7214
|
-
}), f.forEach(function(
|
|
7215
|
-
var O = p.get(
|
|
7216
|
-
typeof O > "u" ? (r.push(T), ++P) : (u.push([O, T]), g =
|
|
7204
|
+
var e = SUPPORT_MAP ? Map : t ? HashMap : PolyMap, n = t || function(E) {
|
|
7205
|
+
return E;
|
|
7206
|
+
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n), p = new e(), _ = new e(), y = [], v = [], m = {}, b = [], P = 0, g = 0;
|
|
7207
|
+
return d.forEach(function(E, T) {
|
|
7208
|
+
p.set(E, T);
|
|
7209
|
+
}), f.forEach(function(E, T) {
|
|
7210
|
+
_.set(E, T);
|
|
7211
|
+
}), d.forEach(function(E, T) {
|
|
7212
|
+
var O = _.get(E);
|
|
7213
|
+
typeof O > "u" ? (++g, l.push(T)) : m[O] = g;
|
|
7214
|
+
}), f.forEach(function(E, T) {
|
|
7215
|
+
var O = p.get(E);
|
|
7216
|
+
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]));
|
|
7217
7217
|
}), l.reverse(), new Result(s, i, r, l, b, u, y, v);
|
|
7218
7218
|
}
|
|
7219
7219
|
var ListDiffer = /* @__PURE__ */ function() {
|
|
@@ -7660,10 +7660,10 @@ var FlickingProps = {
|
|
|
7660
7660
|
}
|
|
7661
7661
|
}
|
|
7662
7662
|
});
|
|
7663
|
-
const _withScopeId$1 = (s) => (pushScopeId("data-v-
|
|
7663
|
+
const _withScopeId$1 = (s) => (pushScopeId("data-v-85e9cbfa"), s = s(), popScopeId(), s), _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$9 = { class: "flicking-arrow-prev konnectio-gallery-arrows" }, _hoisted_3$9 = { class: "flicking-arrow-next konnectio-gallery-arrows" }, _hoisted_4$6 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createBaseVNode("div", { class: "flicking-pagination" }, null, -1)), _hoisted_5$6 = ["src"], _hoisted_6$6 = ["src"], _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
7664
7664
|
__name: "Gallery",
|
|
7665
7665
|
props: {
|
|
7666
|
-
gallery: {},
|
|
7666
|
+
gallery: { default: () => [] },
|
|
7667
7667
|
idx: {},
|
|
7668
7668
|
size: { default: "large" },
|
|
7669
7669
|
pagination: { default: "bullet" },
|
|
@@ -7671,35 +7671,36 @@ const _withScopeId$1 = (s) => (pushScopeId("data-v-55a1387c"), s = s(), popScope
|
|
|
7671
7671
|
},
|
|
7672
7672
|
emits: ["update:idx", "opened"],
|
|
7673
7673
|
setup(s, { emit: i }) {
|
|
7674
|
-
const t = i, e = s, n = ref(), r = ref()
|
|
7675
|
-
|
|
7676
|
-
|
|
7674
|
+
const t = i, e = s, n = ref(), r = ref(), l = computed$1(() => e.gallery.length > 1), u = computed$1(() => e.gallery.length), d = computed$1(() => {
|
|
7675
|
+
let m = e.pagination;
|
|
7676
|
+
return u.value > 10 && m === "bullet" && (m = "fraction"), m;
|
|
7677
|
+
});
|
|
7678
|
+
function f(m) {
|
|
7679
|
+
t("update:idx", m);
|
|
7677
7680
|
}
|
|
7678
|
-
const
|
|
7681
|
+
const p = computed$1({
|
|
7679
7682
|
get: () => e.idx,
|
|
7680
|
-
set: (
|
|
7683
|
+
set: (m) => f(m)
|
|
7681
7684
|
});
|
|
7682
|
-
function
|
|
7683
|
-
|
|
7685
|
+
function _(m) {
|
|
7686
|
+
p.value = m.index;
|
|
7684
7687
|
}
|
|
7685
|
-
function
|
|
7686
|
-
n.value.moveTo(
|
|
7688
|
+
function y(m) {
|
|
7689
|
+
n.value.moveTo(m);
|
|
7687
7690
|
}
|
|
7688
|
-
function
|
|
7691
|
+
function v() {
|
|
7689
7692
|
t("opened");
|
|
7690
7693
|
}
|
|
7691
|
-
watch(
|
|
7692
|
-
|
|
7693
|
-
})
|
|
7694
|
-
const _ = computed$1(() => e.gallery && e.gallery.length > 1);
|
|
7695
|
-
return onMounted(() => {
|
|
7694
|
+
return watch(p, (m) => {
|
|
7695
|
+
y(m);
|
|
7696
|
+
}), onMounted(() => {
|
|
7696
7697
|
r.value = [
|
|
7697
7698
|
new Arrow(),
|
|
7698
7699
|
new Fade(),
|
|
7699
|
-
new Pagination({ type:
|
|
7700
|
+
new Pagination({ type: d.value })
|
|
7700
7701
|
];
|
|
7701
|
-
}), (
|
|
7702
|
-
|
|
7702
|
+
}), (m, b) => (openBlock(), createElementBlock("div", null, [
|
|
7703
|
+
l.value ? (openBlock(), createBlock(unref(Flicking), {
|
|
7703
7704
|
key: 0,
|
|
7704
7705
|
ref_key: "slideshow",
|
|
7705
7706
|
ref: n,
|
|
@@ -7713,14 +7714,14 @@ const _withScopeId$1 = (s) => (pushScopeId("data-v-55a1387c"), s = s(), popScope
|
|
|
7713
7714
|
},
|
|
7714
7715
|
class: "konnectio-flicking-gallery",
|
|
7715
7716
|
plugins: r.value,
|
|
7716
|
-
onChanged:
|
|
7717
|
+
onChanged: _
|
|
7717
7718
|
}, {
|
|
7718
7719
|
viewport: withCtx(() => [
|
|
7719
7720
|
createBaseVNode("div", _hoisted_1$c, [
|
|
7720
|
-
|
|
7721
|
+
m.isListing ? (openBlock(), createElementBlock("div", {
|
|
7721
7722
|
key: 0,
|
|
7722
7723
|
class: "konnectio-gallery-image-overlay",
|
|
7723
|
-
onClick: withModifiers(
|
|
7724
|
+
onClick: withModifiers(v, ["prevent"])
|
|
7724
7725
|
})) : createCommentVNode("", !0),
|
|
7725
7726
|
createBaseVNode("span", _hoisted_2$9, [
|
|
7726
7727
|
createVNode(Icon, {
|
|
@@ -7740,12 +7741,12 @@ const _withScopeId$1 = (s) => (pushScopeId("data-v-55a1387c"), s = s(), popScope
|
|
|
7740
7741
|
_hoisted_4$6
|
|
7741
7742
|
]),
|
|
7742
7743
|
default: withCtx(() => [
|
|
7743
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
7744
|
-
key:
|
|
7744
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.gallery, ({ large: P, url: g }, E) => (openBlock(), createElementBlock("div", {
|
|
7745
|
+
key: E,
|
|
7745
7746
|
class: "konnectio-flicking-gallery-item"
|
|
7746
7747
|
}, [
|
|
7747
7748
|
createBaseVNode("img", {
|
|
7748
|
-
src:
|
|
7749
|
+
src: P || g
|
|
7749
7750
|
}, null, 8, _hoisted_5$6)
|
|
7750
7751
|
]))), 128))
|
|
7751
7752
|
]),
|
|
@@ -7754,14 +7755,14 @@ const _withScopeId$1 = (s) => (pushScopeId("data-v-55a1387c"), s = s(), popScope
|
|
|
7754
7755
|
key: 1,
|
|
7755
7756
|
class: normalizeClass([
|
|
7756
7757
|
"konnectio-single-image",
|
|
7757
|
-
{ "has-zoom":
|
|
7758
|
+
{ "has-zoom": m.isListing }
|
|
7758
7759
|
]),
|
|
7759
|
-
src:
|
|
7760
|
-
onClick: withModifiers(
|
|
7760
|
+
src: m.gallery[0].large || m.gallery[0].url,
|
|
7761
|
+
onClick: withModifiers(v, ["prevent"])
|
|
7761
7762
|
}, null, 10, _hoisted_6$6)) : createCommentVNode("", !0)
|
|
7762
7763
|
]));
|
|
7763
7764
|
}
|
|
7764
|
-
}), Gallery = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
7765
|
+
}), Gallery = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-85e9cbfa"]]), _hoisted_1$b = { key: 0 }, _hoisted_2$8 = { class: "konnectio-listing-side-panel" }, _hoisted_3$8 = ["innerHTML"], _hoisted_4$5 = {
|
|
7765
7766
|
key: 1,
|
|
7766
7767
|
class: "konnectio-listing-side-panel-facilities"
|
|
7767
7768
|
}, _hoisted_5$5 = {
|
|
@@ -7799,16 +7800,16 @@ const _withScopeId$1 = (s) => (pushScopeId("data-v-55a1387c"), s = s(), popScope
|
|
|
7799
7800
|
let I = O.getMonth() + 1, k = O.getDate();
|
|
7800
7801
|
return k < 10 && (k = "0" + k), I < 10 && (I = "0" + I), `${S}-${I}-${k}`;
|
|
7801
7802
|
}
|
|
7802
|
-
const v = computed$1(() => n.type !== "event" ? `${window.location.origin + window.location.pathname}?a=${r.value}&c=${l.value}&ci=${y(u.value)}&co=${y(d.value)}&hid=${f.value}&id=${n.listingId}` : ""),
|
|
7803
|
+
const v = computed$1(() => n.type !== "event" ? `${window.location.origin + window.location.pathname}?a=${r.value}&c=${l.value}&ci=${y(u.value)}&co=${y(d.value)}&hid=${f.value}&id=${n.listingId}` : ""), m = computed$1(() => n.type === "event" ? `${window.location.origin + window.location.pathname}?d=${y(p.value)}&rid=${_.value}&eid=${n.listingId}` : "");
|
|
7803
7804
|
function b(O) {
|
|
7804
7805
|
t("update:idx", O);
|
|
7805
7806
|
}
|
|
7806
7807
|
const P = computed$1({
|
|
7807
7808
|
get: () => n.idx,
|
|
7808
7809
|
set: (O) => b(O)
|
|
7809
|
-
}), g = ref("testVueMasonry"),
|
|
7810
|
+
}), g = ref("testVueMasonry"), E = inject("redrawVueMasonry");
|
|
7810
7811
|
function T() {
|
|
7811
|
-
|
|
7812
|
+
E("testVueMasonry");
|
|
7812
7813
|
}
|
|
7813
7814
|
return (O, S) => {
|
|
7814
7815
|
const I = resolveDirective("masonry-tile"), k = resolveDirective("masonry");
|
|
@@ -7874,8 +7875,8 @@ const _withScopeId$1 = (s) => (pushScopeId("data-v-55a1387c"), s = s(), popScope
|
|
|
7874
7875
|
clipboard: ""
|
|
7875
7876
|
}, null, 8, ["modelValue", "label"])) : O.type === "event" ? (openBlock(), createBlock(TextField, {
|
|
7876
7877
|
key: 1,
|
|
7877
|
-
modelValue:
|
|
7878
|
-
"onUpdate:modelValue": S[2] || (S[2] = (C) =>
|
|
7878
|
+
modelValue: m.value,
|
|
7879
|
+
"onUpdate:modelValue": S[2] || (S[2] = (C) => m.value = C),
|
|
7879
7880
|
icon: "share-nodes",
|
|
7880
7881
|
"icon-placement": "label",
|
|
7881
7882
|
"icon-type": "fas",
|
|
@@ -8048,14 +8049,14 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8048
8049
|
}), p = () => {
|
|
8049
8050
|
u.value && (u.value.innerHTML = convertDescription(k.value));
|
|
8050
8051
|
}, _ = () => {
|
|
8051
|
-
d.localExpanded || (p(), (
|
|
8052
|
+
d.localExpanded || (p(), (m() || I.value) && P());
|
|
8052
8053
|
}, y = () => {
|
|
8053
8054
|
e.text && (d.offset = e.text.length, v(), e.autoResize && r.value && (addListener(r.value, _), d.unregisterResizeCallback = () => {
|
|
8054
8055
|
r.value && removeListener(r.value, _);
|
|
8055
8056
|
}), _());
|
|
8056
8057
|
}, v = () => {
|
|
8057
8058
|
d.unregisterResizeCallback?.();
|
|
8058
|
-
},
|
|
8059
|
+
}, 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(
|
|
8059
8060
|
Array.prototype.slice.call(l.value.getClientRects()).reduce((w, { top: D, bottom: L }) => {
|
|
8060
8061
|
const B = `${D}/${L}`;
|
|
8061
8062
|
return w[B] || (w[B] = !0), w;
|
|
@@ -8063,20 +8064,20 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8063
8064
|
).length : 0, P = (...w) => {
|
|
8064
8065
|
const [D = 0, L = d.offset] = w;
|
|
8065
8066
|
if (L - D <= 3) {
|
|
8066
|
-
|
|
8067
|
+
E();
|
|
8067
8068
|
return;
|
|
8068
8069
|
}
|
|
8069
8070
|
const B = Math.floor((L + D) / 2);
|
|
8070
|
-
g(B),
|
|
8071
|
+
g(B), m() ? P(D, B) : P(B, L);
|
|
8071
8072
|
}, g = (w) => {
|
|
8072
8073
|
d.offset = w, p();
|
|
8073
|
-
},
|
|
8074
|
+
}, E = () => {
|
|
8074
8075
|
T(), O();
|
|
8075
8076
|
}, T = () => {
|
|
8076
|
-
for (; (!
|
|
8077
|
+
for (; (!m() || b() < 2) && d.offset < e.text.length; )
|
|
8077
8078
|
S(1);
|
|
8078
8079
|
}, O = () => {
|
|
8079
|
-
for (;
|
|
8080
|
+
for (; m() && b() > 1 && d.offset > 0; )
|
|
8080
8081
|
S(-1);
|
|
8081
8082
|
}, S = (w) => {
|
|
8082
8083
|
g(d.offset + w);
|
|
@@ -8285,8 +8286,8 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8285
8286
|
])
|
|
8286
8287
|
]),
|
|
8287
8288
|
p.facilities ? (openBlock(), createElementBlock("ul", _hoisted_10$2, [
|
|
8288
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.facilities, ({ icon: v, name:
|
|
8289
|
-
v ? withDirectives((openBlock(), createElementBlock("li", { key:
|
|
8289
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.facilities, ({ icon: v, name: m, subFacilities: b }) => (openBlock(), createElementBlock(Fragment, null, [
|
|
8290
|
+
v ? withDirectives((openBlock(), createElementBlock("li", { key: m }, [
|
|
8290
8291
|
createVNode(Icon, {
|
|
8291
8292
|
icon: v,
|
|
8292
8293
|
color: "header"
|
|
@@ -8321,7 +8322,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8321
8322
|
], 2);
|
|
8322
8323
|
};
|
|
8323
8324
|
}
|
|
8324
|
-
}), Base = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
8325
|
+
}), Base = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-176bed53"]]), _hoisted_1$8 = { class: "konnectio-radio-checkboxes" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
8325
8326
|
__name: "CheckboxField",
|
|
8326
8327
|
props: {
|
|
8327
8328
|
modelValue: {},
|
|
@@ -8392,7 +8393,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8392
8393
|
}
|
|
8393
8394
|
return watch(r, () => {
|
|
8394
8395
|
r.value === 0 && t("reset");
|
|
8395
|
-
}), (v,
|
|
8396
|
+
}), (v, m) => (openBlock(), createElementBlock("div", {
|
|
8396
8397
|
id: "konnectio-multi-step-form",
|
|
8397
8398
|
ref_key: "multiStepForm",
|
|
8398
8399
|
ref: l
|
|
@@ -8442,7 +8443,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8442
8443
|
])
|
|
8443
8444
|
], 512));
|
|
8444
8445
|
}
|
|
8445
|
-
}), MultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
8446
|
+
}), MultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-1d65d3b2"]]), Logo = "data:image/svg+xml,%3csvg%20id='b7c97208-3a12-46ef-b848-b5e1b5fc4d6a'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20500%20500'%3e%3ctitle%3ekonnectio-logo-gray%3c/title%3e%3cpolygon%20points='250%20250%20200%20300%20200%20200%20250%20250'%20style='fill:%23999'/%3e%3cpolygon%20points='200%20200%20200%20300%20150%20350%20150%20150%20200%20200'%20style='fill:%23858585'/%3e%3cpolygon%20points='150%20150%20150%20350%20100%20400%20100%20100%20150%20150'%20style='fill:%23707070'/%3e%3cpolygon%20points='100%20100%20100%20400%2050%20450%2050%2050%20100%20100'%20style='fill:%235c5c5c'/%3e%3cpolygon%20points='50%2050%2050%20450%200%20500%200%200%2050%2050'%20style='fill:%23474747'/%3e%3cpolygon%20points='250%20250%200%20500%20200%20500%20250%20450%20300%20500%20500%20500%20250%20250'%20style='fill:%23333'/%3e%3cpolygon%20points='300%200%20250%2050%20200%200%200%200%20250%20250%20500%200%20300%200'%20style='fill:%23adadad'/%3e%3cpath%20d='M250,462.5'%20style='fill:none'/%3e%3cpath%20d='M250,462.5'%20style='fill:none'/%3e%3c/svg%3e", _withScopeId = (s) => (pushScopeId("data-v-f50e297b"), s = s(), popScopeId(), s), _hoisted_1$6 = { class: "konnectio-brand" }, _hoisted_2$4 = ["src"], _hoisted_3$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "konnectio-brand-text" }, [
|
|
8446
8447
|
/* @__PURE__ */ createTextVNode("Powered by "),
|
|
8447
8448
|
/* @__PURE__ */ createBaseVNode("a", {
|
|
8448
8449
|
href: "https://konnectio.dk",
|
|
@@ -8966,13 +8967,13 @@ const _hoisted_1$3 = {
|
|
|
8966
8967
|
id: "konnectio-reservation-layout-mobile",
|
|
8967
8968
|
"sticky-offset": "{ bottom: 10, top: 0 }",
|
|
8968
8969
|
"sticky-side": "bottom"
|
|
8969
|
-
}, _hoisted_26 = { id: "konnectio-reservation-layout-mobile-inner" }, _hoisted_27 = { id: "konnectio-reservation-layout-mobile-back-button" }, _hoisted_28 = { id: "konnectio-reservation-layout-mobile-inner-content" }, _hoisted_29 = { id: "konnectio-reservation-layout-mobile-total-price" }, _hoisted_30 = ["title"], _hoisted_31 = {
|
|
8970
|
+
}, _hoisted_26 = { id: "konnectio-reservation-layout-mobile-inner" }, _hoisted_27 = { id: "konnectio-reservation-layout-mobile-back-button" }, _hoisted_28 = { id: "konnectio-reservation-layout-mobile-inner-content" }, _hoisted_29 = { id: "konnectio-reservation-layout-mobile-total-price" }, _hoisted_30 = ["title"], _hoisted_31 = { id: "konnectio-reservation-layout-mobile-under-price" }, _hoisted_32 = {
|
|
8970
8971
|
key: 0,
|
|
8971
8972
|
id: "konnectio-reservation-layout-mobile-rooms"
|
|
8972
|
-
},
|
|
8973
|
+
}, _hoisted_33 = {
|
|
8973
8974
|
key: 1,
|
|
8974
8975
|
id: "konnectio-reservation-layout-mobile-action"
|
|
8975
|
-
},
|
|
8976
|
+
}, _hoisted_34 = { id: "konnectio-reservation-layout-powered-by" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
8976
8977
|
__name: "ReservationForm",
|
|
8977
8978
|
props: /* @__PURE__ */ mergeModels({
|
|
8978
8979
|
showTermsNotice: { type: Boolean, default: !1 },
|
|
@@ -9002,7 +9003,7 @@ const _hoisted_1$3 = {
|
|
|
9002
9003
|
amount: f,
|
|
9003
9004
|
voucher: p,
|
|
9004
9005
|
isLoading: _
|
|
9005
|
-
} = storeToRefs(useApplyGiftCardStore()), { apply: y, reset: v } = useApplyGiftCardStore(),
|
|
9006
|
+
} = storeToRefs(useApplyGiftCardStore()), { apply: y, reset: v } = useApplyGiftCardStore(), m = useSlots(), b = useModel(s, "discountCode"), P = s, g = computed$1(() => P.basePrice - P.weekendFee - P.roomUpgrade), E = ref("discount"), T = computed$1(() => E.value === "discount"), O = computed$1(() => E.value === "gift-card"), S = computed$1(() => !t.value || !e.value), I = computed$1(() => !t.value && !e.value), k = (C) => E.value = C;
|
|
9006
9007
|
return onMounted(() => {
|
|
9007
9008
|
e.value && k("gift-card");
|
|
9008
9009
|
}), (C, R) => {
|
|
@@ -9011,7 +9012,7 @@ const _hoisted_1$3 = {
|
|
|
9011
9012
|
createBaseVNode("div", {
|
|
9012
9013
|
id: "konnectio-reservation-layout-content",
|
|
9013
9014
|
class: normalizeClass([
|
|
9014
|
-
{ "hide-aside-on-mobile": !unref(
|
|
9015
|
+
{ "hide-aside-on-mobile": !unref(m).sidebar }
|
|
9015
9016
|
])
|
|
9016
9017
|
}, [
|
|
9017
9018
|
createBaseVNode("div", _hoisted_2$2, [
|
|
@@ -9023,7 +9024,7 @@ const _hoisted_1$3 = {
|
|
|
9023
9024
|
id: "konnectio-reservation-layout-aside",
|
|
9024
9025
|
class: normalizeClass([
|
|
9025
9026
|
{ "disable-sticky-aside": !unref(l) },
|
|
9026
|
-
{ "hide-on-mobile": !unref(
|
|
9027
|
+
{ "hide-on-mobile": !unref(m).sidebar }
|
|
9027
9028
|
])
|
|
9028
9029
|
}, [
|
|
9029
9030
|
createVNode(unref(script), {
|
|
@@ -9031,7 +9032,7 @@ const _hoisted_1$3 = {
|
|
|
9031
9032
|
"sticky-class": "konnectio-sticky-wrapper"
|
|
9032
9033
|
}, {
|
|
9033
9034
|
default: withCtx(() => [
|
|
9034
|
-
unref(
|
|
9035
|
+
unref(m).sidebar ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
|
|
9035
9036
|
createBaseVNode("div", _hoisted_4$2, [
|
|
9036
9037
|
renderSlot(C.$slots, "sidebar")
|
|
9037
9038
|
]),
|
|
@@ -9044,7 +9045,7 @@ const _hoisted_1$3 = {
|
|
|
9044
9045
|
])) : C.isSidebarLoading ? (openBlock(), createBlock(Sidebar, { key: 2 })) : (openBlock(), createElementBlock("div", _hoisted_7$2, [
|
|
9045
9046
|
createBaseVNode("div", _hoisted_8$2, [
|
|
9046
9047
|
createBaseVNode("ul", _hoisted_9$1, [
|
|
9047
|
-
unref(
|
|
9048
|
+
unref(m)["reservation-summary"] ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
9048
9049
|
createBaseVNode("h5", null, [
|
|
9049
9050
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.reservationSummary")), 1)
|
|
9050
9051
|
]),
|
|
@@ -9095,7 +9096,7 @@ const _hoisted_1$3 = {
|
|
|
9095
9096
|
])
|
|
9096
9097
|
])
|
|
9097
9098
|
]),
|
|
9098
|
-
unref(
|
|
9099
|
+
unref(m).actions && C.showTermsNotice ? renderSlot(C.$slots, "actions", { key: 1 }) : createCommentVNode("", !0),
|
|
9099
9100
|
renderSlot(C.$slots, "navigation"),
|
|
9100
9101
|
C.prevCallback !== void 0 ? (openBlock(), createElementBlock("button", {
|
|
9101
9102
|
key: 2,
|
|
@@ -9212,12 +9213,14 @@ const _hoisted_1$3 = {
|
|
|
9212
9213
|
}, [
|
|
9213
9214
|
createBaseVNode("u", null, toDisplayString(unref(showPrice)(C.totalPrice, unref(r))), 1)
|
|
9214
9215
|
], 8, _hoisted_30),
|
|
9215
|
-
|
|
9216
|
+
createBaseVNode("div", _hoisted_31, [
|
|
9217
|
+
renderSlot(C.$slots, "mobile-under-price")
|
|
9218
|
+
])
|
|
9216
9219
|
]),
|
|
9217
|
-
unref(
|
|
9220
|
+
unref(m)["mobile-summary"] ? (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
9218
9221
|
renderSlot(C.$slots, "mobile-summary")
|
|
9219
9222
|
])) : createCommentVNode("", !0),
|
|
9220
|
-
unref(
|
|
9223
|
+
unref(m).navigation ? (openBlock(), createElementBlock("div", _hoisted_33, [
|
|
9221
9224
|
renderSlot(C.$slots, "navigation")
|
|
9222
9225
|
])) : createCommentVNode("", !0)
|
|
9223
9226
|
])
|
|
@@ -9226,7 +9229,7 @@ const _hoisted_1$3 = {
|
|
|
9226
9229
|
])), [
|
|
9227
9230
|
[A]
|
|
9228
9231
|
]),
|
|
9229
|
-
createBaseVNode("div",
|
|
9232
|
+
createBaseVNode("div", _hoisted_34, [
|
|
9230
9233
|
createVNode(PoweredByKonnectio)
|
|
9231
9234
|
])
|
|
9232
9235
|
])
|
|
@@ -9234,7 +9237,7 @@ const _hoisted_1$3 = {
|
|
|
9234
9237
|
]);
|
|
9235
9238
|
};
|
|
9236
9239
|
}
|
|
9237
|
-
}), ReservationForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
9240
|
+
}), ReservationForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a014fb8b"]]), _hoisted_1$2 = {
|
|
9238
9241
|
id: "konnectio-confirmation",
|
|
9239
9242
|
class: "konnectio-panel"
|
|
9240
9243
|
}, _hoisted_2$1 = { id: "konnectio-confirmation-introduction" }, _hoisted_3$1 = { id: "konnectio-confirmation-title" }, _hoisted_4$1 = ["innerHTML"], _hoisted_5$1 = { class: "konnectio-order-panel" }, _hoisted_6$1 = { key: 0 }, _hoisted_7$1 = { class: "konnectio-order-panel" }, _hoisted_8$1 = { class: "konnectio-order-lines" }, _hoisted_9 = { key: 0 }, _hoisted_10 = { key: 1 }, _hoisted_11 = {
|
|
@@ -9262,14 +9265,14 @@ const _hoisted_1$3 = {
|
|
|
9262
9265
|
totalVAT: _,
|
|
9263
9266
|
subTotalPrice: y
|
|
9264
9267
|
} = storeToRefs(usePaymentStore()), { currency: v } = storeToRefs(useUtilityStore());
|
|
9265
|
-
return (
|
|
9268
|
+
return (m, b) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
9266
9269
|
createBaseVNode("div", _hoisted_2$1, [
|
|
9267
9270
|
createBaseVNode("h2", _hoisted_3$1, [
|
|
9268
9271
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.thankYou")), 1)
|
|
9269
9272
|
]),
|
|
9270
9273
|
createBaseVNode("div", {
|
|
9271
9274
|
id: "konnectio-confirmation-message",
|
|
9272
|
-
innerHTML:
|
|
9275
|
+
innerHTML: m.message
|
|
9273
9276
|
}, null, 8, _hoisted_4$1)
|
|
9274
9277
|
]),
|
|
9275
9278
|
createBaseVNode("div", _hoisted_5$1, [
|
|
@@ -9316,7 +9319,7 @@ const _hoisted_1$3 = {
|
|
|
9316
9319
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(e), ({
|
|
9317
9320
|
productName: P,
|
|
9318
9321
|
quantity: g,
|
|
9319
|
-
unitPrice:
|
|
9322
|
+
unitPrice: E,
|
|
9320
9323
|
totalPrice: T
|
|
9321
9324
|
}) => (openBlock(), createElementBlock("tr", { key: P }, [
|
|
9322
9325
|
createBaseVNode("td", null, [
|
|
@@ -9326,7 +9329,7 @@ const _hoisted_1$3 = {
|
|
|
9326
9329
|
createBaseVNode("span", null, toDisplayString(g), 1)
|
|
9327
9330
|
]),
|
|
9328
9331
|
createBaseVNode("td", null, [
|
|
9329
|
-
createBaseVNode("span", null, toDisplayString(unref(showPrice)(
|
|
9332
|
+
createBaseVNode("span", null, toDisplayString(unref(showPrice)(E, unref(v))), 1)
|
|
9330
9333
|
]),
|
|
9331
9334
|
createBaseVNode("td", null, [
|
|
9332
9335
|
createBaseVNode("span", null, toDisplayString(unref(showPrice)(T, unref(v))), 1)
|
|
@@ -9668,8 +9671,8 @@ function requireGetSize() {
|
|
|
9668
9671
|
s.exports ? s.exports = t() : i.getSize = t();
|
|
9669
9672
|
})(window, function() {
|
|
9670
9673
|
function t(v) {
|
|
9671
|
-
var
|
|
9672
|
-
return b &&
|
|
9674
|
+
var m = parseFloat(v), b = v.indexOf("%") == -1 && !isNaN(m);
|
|
9675
|
+
return b && m;
|
|
9673
9676
|
}
|
|
9674
9677
|
function e() {
|
|
9675
9678
|
}
|
|
@@ -9697,15 +9700,15 @@ function requireGetSize() {
|
|
|
9697
9700
|
innerHeight: 0,
|
|
9698
9701
|
outerWidth: 0,
|
|
9699
9702
|
outerHeight: 0
|
|
9700
|
-
},
|
|
9701
|
-
var b = r[
|
|
9703
|
+
}, m = 0; m < l; m++) {
|
|
9704
|
+
var b = r[m];
|
|
9702
9705
|
v[b] = 0;
|
|
9703
9706
|
}
|
|
9704
9707
|
return v;
|
|
9705
9708
|
}
|
|
9706
9709
|
function d(v) {
|
|
9707
|
-
var
|
|
9708
|
-
return
|
|
9710
|
+
var m = getComputedStyle(v);
|
|
9711
|
+
return m || n("Style returned " + m + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), m;
|
|
9709
9712
|
}
|
|
9710
9713
|
var f = !1, p;
|
|
9711
9714
|
function _() {
|
|
@@ -9713,27 +9716,27 @@ function requireGetSize() {
|
|
|
9713
9716
|
f = !0;
|
|
9714
9717
|
var v = document.createElement("div");
|
|
9715
9718
|
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";
|
|
9716
|
-
var
|
|
9717
|
-
|
|
9719
|
+
var m = document.body || document.documentElement;
|
|
9720
|
+
m.appendChild(v);
|
|
9718
9721
|
var b = d(v);
|
|
9719
|
-
p = Math.round(t(b.width)) == 200, y.isBoxSizeOuter = p,
|
|
9722
|
+
p = Math.round(t(b.width)) == 200, y.isBoxSizeOuter = p, m.removeChild(v);
|
|
9720
9723
|
}
|
|
9721
9724
|
}
|
|
9722
9725
|
function y(v) {
|
|
9723
9726
|
if (_(), typeof v == "string" && (v = document.querySelector(v)), !(!v || typeof v != "object" || !v.nodeType)) {
|
|
9724
|
-
var
|
|
9725
|
-
if (
|
|
9727
|
+
var m = d(v);
|
|
9728
|
+
if (m.display == "none")
|
|
9726
9729
|
return u();
|
|
9727
9730
|
var b = {};
|
|
9728
9731
|
b.width = v.offsetWidth, b.height = v.offsetHeight;
|
|
9729
|
-
for (var P = b.isBorderBox =
|
|
9730
|
-
var
|
|
9731
|
-
b[
|
|
9732
|
+
for (var P = b.isBorderBox = m.boxSizing == "border-box", g = 0; g < l; g++) {
|
|
9733
|
+
var E = r[g], T = m[E], O = parseFloat(T);
|
|
9734
|
+
b[E] = isNaN(O) ? 0 : O;
|
|
9732
9735
|
}
|
|
9733
|
-
var S = b.paddingLeft + b.paddingRight, I = b.paddingTop + b.paddingBottom, k = b.marginLeft + b.marginRight, C = b.marginTop + b.marginBottom, R = b.borderLeftWidth + b.borderRightWidth, A = b.borderTopWidth + b.borderBottomWidth, N = P && p, w = t(
|
|
9736
|
+
var S = b.paddingLeft + b.paddingRight, I = b.paddingTop + b.paddingBottom, k = b.marginLeft + b.marginRight, C = b.marginTop + b.marginBottom, R = b.borderLeftWidth + b.borderRightWidth, A = b.borderTopWidth + b.borderBottomWidth, N = P && p, w = t(m.width);
|
|
9734
9737
|
w !== !1 && (b.width = w + // add padding and border unless it's already including it
|
|
9735
9738
|
(N ? 0 : S + R));
|
|
9736
|
-
var D = t(
|
|
9739
|
+
var D = t(m.height);
|
|
9737
9740
|
return D !== !1 && (b.height = D + // add padding and border unless it's already including it
|
|
9738
9741
|
(N ? 0 : I + A)), b.innerWidth = b.width - (S + R), b.innerHeight = b.height - (I + A), b.outerWidth = b.width + k, b.outerHeight = b.height + C, b;
|
|
9739
9742
|
}
|
|
@@ -9826,9 +9829,9 @@ function requireUtils() {
|
|
|
9826
9829
|
u.prototype[d] = function() {
|
|
9827
9830
|
var y = this[_];
|
|
9828
9831
|
clearTimeout(y);
|
|
9829
|
-
var v = arguments,
|
|
9832
|
+
var v = arguments, m = this;
|
|
9830
9833
|
this[_] = setTimeout(function() {
|
|
9831
|
-
p.apply(
|
|
9834
|
+
p.apply(m, v), delete m[_];
|
|
9832
9835
|
}, f);
|
|
9833
9836
|
};
|
|
9834
9837
|
}, n.docReady = function(u) {
|
|
@@ -9842,16 +9845,16 @@ function requireUtils() {
|
|
|
9842
9845
|
var l = t.console;
|
|
9843
9846
|
return n.htmlInit = function(u, d) {
|
|
9844
9847
|
n.docReady(function() {
|
|
9845
|
-
var f = n.toDashed(d), p = "data-" + f, _ = document.querySelectorAll("[" + p + "]"), y = document.querySelectorAll(".js-" + f), v = n.makeArray(_).concat(n.makeArray(y)),
|
|
9848
|
+
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;
|
|
9846
9849
|
v.forEach(function(P) {
|
|
9847
|
-
var g = P.getAttribute(p) || P.getAttribute(
|
|
9850
|
+
var g = P.getAttribute(p) || P.getAttribute(m), E;
|
|
9848
9851
|
try {
|
|
9849
|
-
|
|
9852
|
+
E = g && JSON.parse(g);
|
|
9850
9853
|
} catch (O) {
|
|
9851
9854
|
l && l.error("Error parsing " + p + " on " + P.className + ": " + O);
|
|
9852
9855
|
return;
|
|
9853
9856
|
}
|
|
9854
|
-
var T = new u(P,
|
|
9857
|
+
var T = new u(P, E);
|
|
9855
9858
|
b && b.data(P, d, T);
|
|
9856
9859
|
});
|
|
9857
9860
|
});
|
|
@@ -9908,15 +9911,15 @@ function requireItem() {
|
|
|
9908
9911
|
this.size = e(this.element);
|
|
9909
9912
|
}, _.css = function(P) {
|
|
9910
9913
|
var g = this.element.style;
|
|
9911
|
-
for (var
|
|
9912
|
-
var T = f[
|
|
9913
|
-
g[T] = P[
|
|
9914
|
+
for (var E in P) {
|
|
9915
|
+
var T = f[E] || E;
|
|
9916
|
+
g[T] = P[E];
|
|
9914
9917
|
}
|
|
9915
9918
|
}, _.getPosition = function() {
|
|
9916
|
-
var P = getComputedStyle(this.element), g = this.layout._getOption("originLeft"),
|
|
9917
|
-
T.indexOf("%") != -1 && (S = S / 100 * k.width), O.indexOf("%") != -1 && (I = I / 100 * k.height), S = isNaN(S) ? 0 : S, I = isNaN(I) ? 0 : I, S -= g ? k.paddingLeft : k.paddingRight, I -=
|
|
9919
|
+
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), I = parseFloat(O), k = this.layout.size;
|
|
9920
|
+
T.indexOf("%") != -1 && (S = S / 100 * k.width), O.indexOf("%") != -1 && (I = I / 100 * k.height), S = isNaN(S) ? 0 : S, I = isNaN(I) ? 0 : I, S -= g ? k.paddingLeft : k.paddingRight, I -= E ? k.paddingTop : k.paddingBottom, this.position.x = S, this.position.y = I;
|
|
9918
9921
|
}, _.layoutPosition = function() {
|
|
9919
|
-
var P = this.layout.size, g = {},
|
|
9922
|
+
var P = this.layout.size, g = {}, E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop"), O = E ? "paddingLeft" : "paddingRight", S = E ? "left" : "right", I = E ? "right" : "left", k = this.position.x + P[O];
|
|
9920
9923
|
g[S] = this.getXValue(k), g[I] = "";
|
|
9921
9924
|
var C = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", A = T ? "bottom" : "top", N = this.position.y + P[C];
|
|
9922
9925
|
g[R] = this.getYValue(N), g[A] = "", this.css(g), this.emitEvent("layout", [this]);
|
|
@@ -9928,12 +9931,12 @@ function requireItem() {
|
|
|
9928
9931
|
return this.layout.options.percentPosition && g ? P / this.layout.size.height * 100 + "%" : P + "px";
|
|
9929
9932
|
}, _._transitionTo = function(P, g) {
|
|
9930
9933
|
this.getPosition();
|
|
9931
|
-
var
|
|
9934
|
+
var E = this.position.x, T = this.position.y, O = P == this.position.x && g == this.position.y;
|
|
9932
9935
|
if (this.setPosition(P, g), O && !this.isTransitioning) {
|
|
9933
9936
|
this.layoutPosition();
|
|
9934
9937
|
return;
|
|
9935
9938
|
}
|
|
9936
|
-
var S = P -
|
|
9939
|
+
var S = P - E, I = g - T, k = {};
|
|
9937
9940
|
k.transform = this.getTranslate(S, I), this.transition({
|
|
9938
9941
|
to: k,
|
|
9939
9942
|
onTransitionEnd: {
|
|
@@ -9942,8 +9945,8 @@ function requireItem() {
|
|
|
9942
9945
|
isCleaning: !0
|
|
9943
9946
|
});
|
|
9944
9947
|
}, _.getTranslate = function(P, g) {
|
|
9945
|
-
var
|
|
9946
|
-
return P =
|
|
9948
|
+
var E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop");
|
|
9949
|
+
return P = E ? P : -P, g = T ? g : -g, "translate3d(" + P + "px, " + g + "px, 0)";
|
|
9947
9950
|
}, _.goTo = function(P, g) {
|
|
9948
9951
|
this.setPosition(P, g), this.layoutPosition();
|
|
9949
9952
|
}, _.moveTo = _._transitionTo, _.setPosition = function(P, g) {
|
|
@@ -9958,10 +9961,10 @@ function requireItem() {
|
|
|
9958
9961
|
return;
|
|
9959
9962
|
}
|
|
9960
9963
|
var g = this._transn;
|
|
9961
|
-
for (var
|
|
9962
|
-
g.onEnd[
|
|
9963
|
-
for (
|
|
9964
|
-
g.ingProperties[
|
|
9964
|
+
for (var E in P.onTransitionEnd)
|
|
9965
|
+
g.onEnd[E] = P.onTransitionEnd[E];
|
|
9966
|
+
for (E in P.to)
|
|
9967
|
+
g.ingProperties[E] = !0, P.isCleaning && (g.clean[E] = !0);
|
|
9965
9968
|
P.from && (this.css(P.from), this.element.offsetHeight), this.enableTransition(P.to), this.css(P.to), this.isTransitioning = !0;
|
|
9966
9969
|
};
|
|
9967
9970
|
function y(P) {
|
|
@@ -9984,15 +9987,15 @@ function requireItem() {
|
|
|
9984
9987
|
}, _.onotransitionend = function(P) {
|
|
9985
9988
|
this.ontransitionend(P);
|
|
9986
9989
|
};
|
|
9987
|
-
var
|
|
9990
|
+
var m = {
|
|
9988
9991
|
"-webkit-transform": "transform"
|
|
9989
9992
|
};
|
|
9990
9993
|
_.ontransitionend = function(P) {
|
|
9991
9994
|
if (P.target === this.element) {
|
|
9992
|
-
var g = this._transn,
|
|
9993
|
-
if (delete g.ingProperties[
|
|
9994
|
-
var T = g.onEnd[
|
|
9995
|
-
T.call(this), delete g.onEnd[
|
|
9995
|
+
var g = this._transn, E = m[P.propertyName] || P.propertyName;
|
|
9996
|
+
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) {
|
|
9997
|
+
var T = g.onEnd[E];
|
|
9998
|
+
T.call(this), delete g.onEnd[E];
|
|
9996
9999
|
}
|
|
9997
10000
|
this.emitEvent("transitionEnd", [this]);
|
|
9998
10001
|
}
|
|
@@ -10000,8 +10003,8 @@ function requireItem() {
|
|
|
10000
10003
|
this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
|
|
10001
10004
|
}, _._removeStyles = function(P) {
|
|
10002
10005
|
var g = {};
|
|
10003
|
-
for (var
|
|
10004
|
-
g[
|
|
10006
|
+
for (var E in P)
|
|
10007
|
+
g[E] = "";
|
|
10005
10008
|
this.css(g);
|
|
10006
10009
|
};
|
|
10007
10010
|
var b = {
|
|
@@ -10025,8 +10028,8 @@ function requireItem() {
|
|
|
10025
10028
|
}), this.hide();
|
|
10026
10029
|
}, _.reveal = function() {
|
|
10027
10030
|
delete this.isHidden, this.css({ display: "" });
|
|
10028
|
-
var P = this.layout.options, g = {},
|
|
10029
|
-
g[
|
|
10031
|
+
var P = this.layout.options, g = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
10032
|
+
g[E] = this.onRevealTransitionEnd, this.transition({
|
|
10030
10033
|
from: P.hiddenStyle,
|
|
10031
10034
|
to: P.visibleStyle,
|
|
10032
10035
|
isCleaning: !0,
|
|
@@ -10038,12 +10041,12 @@ function requireItem() {
|
|
|
10038
10041
|
var g = this.layout.options[P];
|
|
10039
10042
|
if (g.opacity)
|
|
10040
10043
|
return "opacity";
|
|
10041
|
-
for (var
|
|
10042
|
-
return
|
|
10044
|
+
for (var E in g)
|
|
10045
|
+
return E;
|
|
10043
10046
|
}, _.hide = function() {
|
|
10044
10047
|
this.isHidden = !0, this.css({ display: "" });
|
|
10045
|
-
var P = this.layout.options, g = {},
|
|
10046
|
-
g[
|
|
10048
|
+
var P = this.layout.options, g = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
10049
|
+
g[E] = this.onHideTransitionEnd, this.transition({
|
|
10047
10050
|
from: P.visibleStyle,
|
|
10048
10051
|
to: P.hiddenStyle,
|
|
10049
10052
|
// keep hidden stuff hidden
|
|
@@ -10091,13 +10094,13 @@ function requireOutlayer() {
|
|
|
10091
10094
|
})(window, function(t, e, n, r, l) {
|
|
10092
10095
|
var u = t.console, d = t.jQuery, f = function() {
|
|
10093
10096
|
}, p = 0, _ = {};
|
|
10094
|
-
function y(g,
|
|
10097
|
+
function y(g, E) {
|
|
10095
10098
|
var T = r.getQueryElement(g);
|
|
10096
10099
|
if (!T) {
|
|
10097
10100
|
u && u.error("Bad element for " + this.constructor.namespace + ": " + (T || g));
|
|
10098
10101
|
return;
|
|
10099
10102
|
}
|
|
10100
|
-
this.element = T, d && (this.$element = d(this.element)), this.options = r.extend({}, this.constructor.defaults), this.option(
|
|
10103
|
+
this.element = T, d && (this.$element = d(this.element)), this.options = r.extend({}, this.constructor.defaults), this.option(E);
|
|
10101
10104
|
var O = ++p;
|
|
10102
10105
|
this.element.outlayerGUID = O, _[O] = this, this._create();
|
|
10103
10106
|
var S = this._getOption("initLayout");
|
|
@@ -10127,8 +10130,8 @@ function requireOutlayer() {
|
|
|
10127
10130
|
r.extend(v, e.prototype), v.option = function(g) {
|
|
10128
10131
|
r.extend(this.options, g);
|
|
10129
10132
|
}, v._getOption = function(g) {
|
|
10130
|
-
var
|
|
10131
|
-
return
|
|
10133
|
+
var E = this.constructor.compatOptions[g];
|
|
10134
|
+
return E && this.options[E] !== void 0 ? this.options[E] : this.options[g];
|
|
10132
10135
|
}, y.compatOptions = {
|
|
10133
10136
|
// currentName: oldName
|
|
10134
10137
|
initLayout: "isInitLayout",
|
|
@@ -10145,8 +10148,8 @@ function requireOutlayer() {
|
|
|
10145
10148
|
}, v.reloadItems = function() {
|
|
10146
10149
|
this.items = this._itemize(this.element.children);
|
|
10147
10150
|
}, v._itemize = function(g) {
|
|
10148
|
-
for (var
|
|
10149
|
-
var I =
|
|
10151
|
+
for (var E = this._filterFindItemElements(g), T = this.constructor.Item, O = [], S = 0; S < E.length; S++) {
|
|
10152
|
+
var I = E[S], k = new T(I, this);
|
|
10150
10153
|
O.push(k);
|
|
10151
10154
|
}
|
|
10152
10155
|
return O;
|
|
@@ -10158,27 +10161,27 @@ function requireOutlayer() {
|
|
|
10158
10161
|
});
|
|
10159
10162
|
}, v.layout = function() {
|
|
10160
10163
|
this._resetLayout(), this._manageStamps();
|
|
10161
|
-
var g = this._getOption("layoutInstant"),
|
|
10162
|
-
this.layoutItems(this.items,
|
|
10164
|
+
var g = this._getOption("layoutInstant"), E = g !== void 0 ? g : !this._isLayoutInited;
|
|
10165
|
+
this.layoutItems(this.items, E), this._isLayoutInited = !0;
|
|
10163
10166
|
}, v._init = v.layout, v._resetLayout = function() {
|
|
10164
10167
|
this.getSize();
|
|
10165
10168
|
}, v.getSize = function() {
|
|
10166
10169
|
this.size = n(this.element);
|
|
10167
|
-
}, v._getMeasurement = function(g,
|
|
10170
|
+
}, v._getMeasurement = function(g, E) {
|
|
10168
10171
|
var T = this.options[g], O;
|
|
10169
|
-
T ? (typeof T == "string" ? O = this.element.querySelector(T) : T instanceof HTMLElement && (O = T), this[g] = O ? n(O)[
|
|
10170
|
-
}, v.layoutItems = function(g,
|
|
10171
|
-
g = this._getItemsForLayout(g), this._layoutItems(g,
|
|
10172
|
+
T ? (typeof T == "string" ? O = this.element.querySelector(T) : T instanceof HTMLElement && (O = T), this[g] = O ? n(O)[E] : T) : this[g] = 0;
|
|
10173
|
+
}, v.layoutItems = function(g, E) {
|
|
10174
|
+
g = this._getItemsForLayout(g), this._layoutItems(g, E), this._postLayout();
|
|
10172
10175
|
}, v._getItemsForLayout = function(g) {
|
|
10173
|
-
return g.filter(function(
|
|
10174
|
-
return !
|
|
10176
|
+
return g.filter(function(E) {
|
|
10177
|
+
return !E.isIgnored;
|
|
10175
10178
|
});
|
|
10176
|
-
}, v._layoutItems = function(g,
|
|
10179
|
+
}, v._layoutItems = function(g, E) {
|
|
10177
10180
|
if (this._emitCompleteOnItems("layout", g), !(!g || !g.length)) {
|
|
10178
10181
|
var T = [];
|
|
10179
10182
|
g.forEach(function(O) {
|
|
10180
10183
|
var S = this._getItemLayoutPosition(O);
|
|
10181
|
-
S.item = O, S.isInstant =
|
|
10184
|
+
S.item = O, S.isInstant = E || O.isLayoutInstant, T.push(S);
|
|
10182
10185
|
}, this), this._processLayoutQueue(T);
|
|
10183
10186
|
}
|
|
10184
10187
|
}, v._getItemLayoutPosition = function() {
|
|
@@ -10187,8 +10190,8 @@ function requireOutlayer() {
|
|
|
10187
10190
|
y: 0
|
|
10188
10191
|
};
|
|
10189
10192
|
}, v._processLayoutQueue = function(g) {
|
|
10190
|
-
this.updateStagger(), g.forEach(function(
|
|
10191
|
-
this._positionItem(
|
|
10193
|
+
this.updateStagger(), g.forEach(function(E, T) {
|
|
10194
|
+
this._positionItem(E.item, E.x, E.y, E.isInstant, T);
|
|
10192
10195
|
}, this);
|
|
10193
10196
|
}, v.updateStagger = function() {
|
|
10194
10197
|
var g = this.options.stagger;
|
|
@@ -10197,28 +10200,28 @@ function requireOutlayer() {
|
|
|
10197
10200
|
return;
|
|
10198
10201
|
}
|
|
10199
10202
|
return this.stagger = P(g), this.stagger;
|
|
10200
|
-
}, v._positionItem = function(g,
|
|
10201
|
-
O ? g.goTo(
|
|
10203
|
+
}, v._positionItem = function(g, E, T, O, S) {
|
|
10204
|
+
O ? g.goTo(E, T) : (g.stagger(S * this.stagger), g.moveTo(E, T));
|
|
10202
10205
|
}, v._postLayout = function() {
|
|
10203
10206
|
this.resizeContainer();
|
|
10204
10207
|
}, v.resizeContainer = function() {
|
|
10205
10208
|
var g = this._getOption("resizeContainer");
|
|
10206
10209
|
if (g) {
|
|
10207
|
-
var
|
|
10208
|
-
|
|
10210
|
+
var E = this._getContainerSize();
|
|
10211
|
+
E && (this._setContainerMeasure(E.width, !0), this._setContainerMeasure(E.height, !1));
|
|
10209
10212
|
}
|
|
10210
|
-
}, v._getContainerSize = f, v._setContainerMeasure = function(g,
|
|
10213
|
+
}, v._getContainerSize = f, v._setContainerMeasure = function(g, E) {
|
|
10211
10214
|
if (g !== void 0) {
|
|
10212
10215
|
var T = this.size;
|
|
10213
|
-
T.isBorderBox && (g +=
|
|
10216
|
+
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";
|
|
10214
10217
|
}
|
|
10215
|
-
}, v._emitCompleteOnItems = function(g,
|
|
10218
|
+
}, v._emitCompleteOnItems = function(g, E) {
|
|
10216
10219
|
var T = this;
|
|
10217
10220
|
function O() {
|
|
10218
|
-
T.dispatchEvent(g + "Complete", null, [
|
|
10221
|
+
T.dispatchEvent(g + "Complete", null, [E]);
|
|
10219
10222
|
}
|
|
10220
|
-
var S =
|
|
10221
|
-
if (!
|
|
10223
|
+
var S = E.length;
|
|
10224
|
+
if (!E || !S) {
|
|
10222
10225
|
O();
|
|
10223
10226
|
return;
|
|
10224
10227
|
}
|
|
@@ -10226,28 +10229,28 @@ function requireOutlayer() {
|
|
|
10226
10229
|
function k() {
|
|
10227
10230
|
I++, I == S && O();
|
|
10228
10231
|
}
|
|
10229
|
-
|
|
10232
|
+
E.forEach(function(C) {
|
|
10230
10233
|
C.once(g, k);
|
|
10231
10234
|
});
|
|
10232
|
-
}, v.dispatchEvent = function(g,
|
|
10233
|
-
var O =
|
|
10235
|
+
}, v.dispatchEvent = function(g, E, T) {
|
|
10236
|
+
var O = E ? [E].concat(T) : T;
|
|
10234
10237
|
if (this.emitEvent(g, O), d)
|
|
10235
|
-
if (this.$element = this.$element || d(this.element),
|
|
10236
|
-
var S = d.Event(
|
|
10238
|
+
if (this.$element = this.$element || d(this.element), E) {
|
|
10239
|
+
var S = d.Event(E);
|
|
10237
10240
|
S.type = g, this.$element.trigger(S, T);
|
|
10238
10241
|
} else
|
|
10239
10242
|
this.$element.trigger(g, T);
|
|
10240
10243
|
}, v.ignore = function(g) {
|
|
10241
|
-
var
|
|
10242
|
-
|
|
10244
|
+
var E = this.getItem(g);
|
|
10245
|
+
E && (E.isIgnored = !0);
|
|
10243
10246
|
}, v.unignore = function(g) {
|
|
10244
|
-
var
|
|
10245
|
-
|
|
10247
|
+
var E = this.getItem(g);
|
|
10248
|
+
E && delete E.isIgnored;
|
|
10246
10249
|
}, v.stamp = function(g) {
|
|
10247
10250
|
g = this._find(g), g && (this.stamps = this.stamps.concat(g), g.forEach(this.ignore, this));
|
|
10248
10251
|
}, v.unstamp = function(g) {
|
|
10249
|
-
g = this._find(g), g && g.forEach(function(
|
|
10250
|
-
r.removeFrom(this.stamps,
|
|
10252
|
+
g = this._find(g), g && g.forEach(function(E) {
|
|
10253
|
+
r.removeFrom(this.stamps, E), this.unignore(E);
|
|
10251
10254
|
}, this);
|
|
10252
10255
|
}, v._find = function(g) {
|
|
10253
10256
|
if (g)
|
|
@@ -10255,19 +10258,19 @@ function requireOutlayer() {
|
|
|
10255
10258
|
}, v._manageStamps = function() {
|
|
10256
10259
|
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
10257
10260
|
}, v._getBoundingRect = function() {
|
|
10258
|
-
var g = this.element.getBoundingClientRect(),
|
|
10261
|
+
var g = this.element.getBoundingClientRect(), E = this.size;
|
|
10259
10262
|
this._boundingRect = {
|
|
10260
|
-
left: g.left +
|
|
10261
|
-
top: g.top +
|
|
10262
|
-
right: g.right - (
|
|
10263
|
-
bottom: g.bottom - (
|
|
10263
|
+
left: g.left + E.paddingLeft + E.borderLeftWidth,
|
|
10264
|
+
top: g.top + E.paddingTop + E.borderTopWidth,
|
|
10265
|
+
right: g.right - (E.paddingRight + E.borderRightWidth),
|
|
10266
|
+
bottom: g.bottom - (E.paddingBottom + E.borderBottomWidth)
|
|
10264
10267
|
};
|
|
10265
10268
|
}, v._manageStamp = f, v._getElementOffset = function(g) {
|
|
10266
|
-
var
|
|
10267
|
-
left:
|
|
10268
|
-
top:
|
|
10269
|
-
right: T.right -
|
|
10270
|
-
bottom: T.bottom -
|
|
10269
|
+
var E = g.getBoundingClientRect(), T = this._boundingRect, O = n(g), S = {
|
|
10270
|
+
left: E.left - T.left - O.marginLeft,
|
|
10271
|
+
top: E.top - T.top - O.marginTop,
|
|
10272
|
+
right: T.right - E.right - O.marginRight,
|
|
10273
|
+
bottom: T.bottom - E.bottom - O.marginBottom
|
|
10271
10274
|
};
|
|
10272
10275
|
return S;
|
|
10273
10276
|
}, v.handleEvent = r.handleEvent, v.bindResize = function() {
|
|
@@ -10279,56 +10282,56 @@ function requireOutlayer() {
|
|
|
10279
10282
|
}, r.debounceMethod(y, "onresize", 100), v.resize = function() {
|
|
10280
10283
|
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
10281
10284
|
}, v.needsResizeLayout = function() {
|
|
10282
|
-
var g = n(this.element),
|
|
10283
|
-
return
|
|
10285
|
+
var g = n(this.element), E = this.size && g;
|
|
10286
|
+
return E && g.innerWidth !== this.size.innerWidth;
|
|
10284
10287
|
}, v.addItems = function(g) {
|
|
10285
|
-
var
|
|
10286
|
-
return
|
|
10288
|
+
var E = this._itemize(g);
|
|
10289
|
+
return E.length && (this.items = this.items.concat(E)), E;
|
|
10287
10290
|
}, v.appended = function(g) {
|
|
10288
|
-
var
|
|
10289
|
-
|
|
10291
|
+
var E = this.addItems(g);
|
|
10292
|
+
E.length && (this.layoutItems(E, !0), this.reveal(E));
|
|
10290
10293
|
}, v.prepended = function(g) {
|
|
10291
|
-
var
|
|
10292
|
-
if (
|
|
10294
|
+
var E = this._itemize(g);
|
|
10295
|
+
if (E.length) {
|
|
10293
10296
|
var T = this.items.slice(0);
|
|
10294
|
-
this.items =
|
|
10297
|
+
this.items = E.concat(T), this._resetLayout(), this._manageStamps(), this.layoutItems(E, !0), this.reveal(E), this.layoutItems(T);
|
|
10295
10298
|
}
|
|
10296
10299
|
}, v.reveal = function(g) {
|
|
10297
10300
|
if (this._emitCompleteOnItems("reveal", g), !(!g || !g.length)) {
|
|
10298
|
-
var
|
|
10301
|
+
var E = this.updateStagger();
|
|
10299
10302
|
g.forEach(function(T, O) {
|
|
10300
|
-
T.stagger(O *
|
|
10303
|
+
T.stagger(O * E), T.reveal();
|
|
10301
10304
|
});
|
|
10302
10305
|
}
|
|
10303
10306
|
}, v.hide = function(g) {
|
|
10304
10307
|
if (this._emitCompleteOnItems("hide", g), !(!g || !g.length)) {
|
|
10305
|
-
var
|
|
10308
|
+
var E = this.updateStagger();
|
|
10306
10309
|
g.forEach(function(T, O) {
|
|
10307
|
-
T.stagger(O *
|
|
10310
|
+
T.stagger(O * E), T.hide();
|
|
10308
10311
|
});
|
|
10309
10312
|
}
|
|
10310
10313
|
}, v.revealItemElements = function(g) {
|
|
10311
|
-
var
|
|
10312
|
-
this.reveal(
|
|
10314
|
+
var E = this.getItems(g);
|
|
10315
|
+
this.reveal(E);
|
|
10313
10316
|
}, v.hideItemElements = function(g) {
|
|
10314
|
-
var
|
|
10315
|
-
this.hide(
|
|
10317
|
+
var E = this.getItems(g);
|
|
10318
|
+
this.hide(E);
|
|
10316
10319
|
}, v.getItem = function(g) {
|
|
10317
|
-
for (var
|
|
10318
|
-
var T = this.items[
|
|
10320
|
+
for (var E = 0; E < this.items.length; E++) {
|
|
10321
|
+
var T = this.items[E];
|
|
10319
10322
|
if (T.element == g)
|
|
10320
10323
|
return T;
|
|
10321
10324
|
}
|
|
10322
10325
|
}, v.getItems = function(g) {
|
|
10323
10326
|
g = r.makeArray(g);
|
|
10324
|
-
var
|
|
10327
|
+
var E = [];
|
|
10325
10328
|
return g.forEach(function(T) {
|
|
10326
10329
|
var O = this.getItem(T);
|
|
10327
|
-
O &&
|
|
10328
|
-
}, this),
|
|
10330
|
+
O && E.push(O);
|
|
10331
|
+
}, this), E;
|
|
10329
10332
|
}, v.remove = function(g) {
|
|
10330
|
-
var
|
|
10331
|
-
this._emitCompleteOnItems("remove",
|
|
10333
|
+
var E = this.getItems(g);
|
|
10334
|
+
this._emitCompleteOnItems("remove", E), !(!E || !E.length) && E.forEach(function(T) {
|
|
10332
10335
|
T.remove(), r.removeFrom(this.items, T);
|
|
10333
10336
|
}, this);
|
|
10334
10337
|
}, v.destroy = function() {
|
|
@@ -10336,21 +10339,21 @@ function requireOutlayer() {
|
|
|
10336
10339
|
g.height = "", g.position = "", g.width = "", this.items.forEach(function(T) {
|
|
10337
10340
|
T.destroy();
|
|
10338
10341
|
}), this.unbindResize();
|
|
10339
|
-
var
|
|
10340
|
-
delete _[
|
|
10342
|
+
var E = this.element.outlayerGUID;
|
|
10343
|
+
delete _[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
|
|
10341
10344
|
}, y.data = function(g) {
|
|
10342
10345
|
g = r.getQueryElement(g);
|
|
10343
|
-
var
|
|
10344
|
-
return
|
|
10345
|
-
}, y.create = function(g,
|
|
10346
|
-
var T =
|
|
10347
|
-
return T.defaults = r.extend({}, y.defaults), r.extend(T.defaults,
|
|
10346
|
+
var E = g && g.outlayerGUID;
|
|
10347
|
+
return E && _[E];
|
|
10348
|
+
}, y.create = function(g, E) {
|
|
10349
|
+
var T = m(y);
|
|
10350
|
+
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;
|
|
10348
10351
|
};
|
|
10349
|
-
function
|
|
10350
|
-
function
|
|
10352
|
+
function m(g) {
|
|
10353
|
+
function E() {
|
|
10351
10354
|
g.apply(this, arguments);
|
|
10352
10355
|
}
|
|
10353
|
-
return
|
|
10356
|
+
return E.prototype = Object.create(g.prototype), E.prototype.constructor = E, E;
|
|
10354
10357
|
}
|
|
10355
10358
|
var b = {
|
|
10356
10359
|
ms: 1,
|
|
@@ -10359,7 +10362,7 @@ function requireOutlayer() {
|
|
|
10359
10362
|
function P(g) {
|
|
10360
10363
|
if (typeof g == "number")
|
|
10361
10364
|
return g;
|
|
10362
|
-
var
|
|
10365
|
+
var E = g.match(/(^\d*\.?\d*)(\w*)/), T = E && E[1], O = E && E[2];
|
|
10363
10366
|
if (!T.length)
|
|
10364
10367
|
return 0;
|
|
10365
10368
|
T = parseFloat(T);
|
|
@@ -10413,7 +10416,7 @@ function requireOutlayer() {
|
|
|
10413
10416
|
for (var p = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", _ = this[p](f, l), y = {
|
|
10414
10417
|
x: this.columnWidth * _.col,
|
|
10415
10418
|
y: _.y
|
|
10416
|
-
}, v = _.y + l.size.outerHeight,
|
|
10419
|
+
}, v = _.y + l.size.outerHeight, m = f + _.col, b = _.col; b < m; b++)
|
|
10417
10420
|
this.colYs[b] = v;
|
|
10418
10421
|
return y;
|
|
10419
10422
|
}, r._getTopColPosition = function(l) {
|
|
@@ -10446,7 +10449,7 @@ function requireOutlayer() {
|
|
|
10446
10449
|
y = Math.max(0, y);
|
|
10447
10450
|
var v = Math.floor(_ / this.columnWidth);
|
|
10448
10451
|
v -= _ % this.columnWidth ? 0 : 1, v = Math.min(this.cols - 1, v);
|
|
10449
|
-
for (var
|
|
10452
|
+
for (var m = this._getOption("originTop"), b = (m ? d.top : d.bottom) + u.outerHeight, P = y; P <= v; P++)
|
|
10450
10453
|
this.colYs[P] = Math.max(b, this.colYs[P]);
|
|
10451
10454
|
}, r._getContainerSize = function() {
|
|
10452
10455
|
this.maxY = Math.max.apply(Math, this.colYs);
|
|
@@ -10486,42 +10489,42 @@ var imagesloaded = { exports: {} };
|
|
|
10486
10489
|
// -------------------------- factory -------------------------- //
|
|
10487
10490
|
function(t, e) {
|
|
10488
10491
|
var n = t.jQuery, r = t.console;
|
|
10489
|
-
function l(v,
|
|
10490
|
-
for (var b in
|
|
10491
|
-
v[b] =
|
|
10492
|
+
function l(v, m) {
|
|
10493
|
+
for (var b in m)
|
|
10494
|
+
v[b] = m[b];
|
|
10492
10495
|
return v;
|
|
10493
10496
|
}
|
|
10494
10497
|
var u = Array.prototype.slice;
|
|
10495
10498
|
function d(v) {
|
|
10496
10499
|
if (Array.isArray(v))
|
|
10497
10500
|
return v;
|
|
10498
|
-
var
|
|
10499
|
-
return
|
|
10501
|
+
var m = typeof v == "object" && typeof v.length == "number";
|
|
10502
|
+
return m ? u.call(v) : [v];
|
|
10500
10503
|
}
|
|
10501
|
-
function f(v,
|
|
10504
|
+
function f(v, m, b) {
|
|
10502
10505
|
if (!(this instanceof f))
|
|
10503
|
-
return new f(v,
|
|
10506
|
+
return new f(v, m, b);
|
|
10504
10507
|
var P = v;
|
|
10505
10508
|
if (typeof v == "string" && (P = document.querySelectorAll(v)), !P) {
|
|
10506
10509
|
r.error("Bad element for imagesLoaded " + (P || v));
|
|
10507
10510
|
return;
|
|
10508
10511
|
}
|
|
10509
|
-
this.elements = d(P), this.options = l({}, this.options), typeof
|
|
10512
|
+
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));
|
|
10510
10513
|
}
|
|
10511
10514
|
f.prototype = Object.create(e.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
|
|
10512
10515
|
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
10513
10516
|
}, f.prototype.addElementImages = function(v) {
|
|
10514
10517
|
v.nodeName == "IMG" && this.addImage(v), this.options.background === !0 && this.addElementBackgroundImages(v);
|
|
10515
|
-
var
|
|
10516
|
-
if (!(!
|
|
10518
|
+
var m = v.nodeType;
|
|
10519
|
+
if (!(!m || !p[m])) {
|
|
10517
10520
|
for (var b = v.querySelectorAll("img"), P = 0; P < b.length; P++) {
|
|
10518
10521
|
var g = b[P];
|
|
10519
10522
|
this.addImage(g);
|
|
10520
10523
|
}
|
|
10521
10524
|
if (typeof this.options.background == "string") {
|
|
10522
|
-
var
|
|
10523
|
-
for (P = 0; P <
|
|
10524
|
-
var T =
|
|
10525
|
+
var E = v.querySelectorAll(this.options.background);
|
|
10526
|
+
for (P = 0; P < E.length; P++) {
|
|
10527
|
+
var T = E[P];
|
|
10525
10528
|
this.addElementBackgroundImages(T);
|
|
10526
10529
|
}
|
|
10527
10530
|
}
|
|
@@ -10533,17 +10536,17 @@ var imagesloaded = { exports: {} };
|
|
|
10533
10536
|
11: !0
|
|
10534
10537
|
};
|
|
10535
10538
|
f.prototype.addElementBackgroundImages = function(v) {
|
|
10536
|
-
var
|
|
10537
|
-
if (
|
|
10538
|
-
for (var b = /url\((['"])?(.*?)\1\)/gi, P = b.exec(
|
|
10539
|
+
var m = getComputedStyle(v);
|
|
10540
|
+
if (m)
|
|
10541
|
+
for (var b = /url\((['"])?(.*?)\1\)/gi, P = b.exec(m.backgroundImage); P !== null; ) {
|
|
10539
10542
|
var g = P && P[2];
|
|
10540
|
-
g && this.addBackground(g, v), P = b.exec(
|
|
10543
|
+
g && this.addBackground(g, v), P = b.exec(m.backgroundImage);
|
|
10541
10544
|
}
|
|
10542
10545
|
}, f.prototype.addImage = function(v) {
|
|
10543
|
-
var
|
|
10544
|
-
this.images.push(
|
|
10545
|
-
}, f.prototype.addBackground = function(v,
|
|
10546
|
-
var b = new y(v,
|
|
10546
|
+
var m = new _(v);
|
|
10547
|
+
this.images.push(m);
|
|
10548
|
+
}, f.prototype.addBackground = function(v, m) {
|
|
10549
|
+
var b = new y(v, m);
|
|
10547
10550
|
this.images.push(b);
|
|
10548
10551
|
}, f.prototype.check = function() {
|
|
10549
10552
|
var v = this;
|
|
@@ -10551,21 +10554,21 @@ var imagesloaded = { exports: {} };
|
|
|
10551
10554
|
this.complete();
|
|
10552
10555
|
return;
|
|
10553
10556
|
}
|
|
10554
|
-
function
|
|
10557
|
+
function m(b, P, g) {
|
|
10555
10558
|
setTimeout(function() {
|
|
10556
10559
|
v.progress(b, P, g);
|
|
10557
10560
|
});
|
|
10558
10561
|
}
|
|
10559
10562
|
this.images.forEach(function(b) {
|
|
10560
|
-
b.once("progress",
|
|
10563
|
+
b.once("progress", m), b.check();
|
|
10561
10564
|
});
|
|
10562
|
-
}, f.prototype.progress = function(v,
|
|
10563
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !v.isLoaded, this.emitEvent("progress", [this, v,
|
|
10565
|
+
}, f.prototype.progress = function(v, m, b) {
|
|
10566
|
+
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);
|
|
10564
10567
|
}, f.prototype.complete = function() {
|
|
10565
10568
|
var v = this.hasAnyBroken ? "fail" : "done";
|
|
10566
10569
|
if (this.isComplete = !0, this.emitEvent(v, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
10567
|
-
var
|
|
10568
|
-
this.jqDeferred[
|
|
10570
|
+
var m = this.hasAnyBroken ? "reject" : "resolve";
|
|
10571
|
+
this.jqDeferred[m](this);
|
|
10569
10572
|
}
|
|
10570
10573
|
};
|
|
10571
10574
|
function _(v) {
|
|
@@ -10580,11 +10583,11 @@ var imagesloaded = { exports: {} };
|
|
|
10580
10583
|
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;
|
|
10581
10584
|
}, _.prototype.getIsImageComplete = function() {
|
|
10582
10585
|
return this.img.complete && this.img.naturalWidth;
|
|
10583
|
-
}, _.prototype.confirm = function(v,
|
|
10584
|
-
this.isLoaded = v, this.emitEvent("progress", [this, this.img,
|
|
10586
|
+
}, _.prototype.confirm = function(v, m) {
|
|
10587
|
+
this.isLoaded = v, this.emitEvent("progress", [this, this.img, m]);
|
|
10585
10588
|
}, _.prototype.handleEvent = function(v) {
|
|
10586
|
-
var
|
|
10587
|
-
this[
|
|
10589
|
+
var m = "on" + v.type;
|
|
10590
|
+
this[m] && this[m](v);
|
|
10588
10591
|
}, _.prototype.onload = function() {
|
|
10589
10592
|
this.confirm(!0, "onload"), this.unbindEvents();
|
|
10590
10593
|
}, _.prototype.onerror = function() {
|
|
@@ -10592,8 +10595,8 @@ var imagesloaded = { exports: {} };
|
|
|
10592
10595
|
}, _.prototype.unbindEvents = function() {
|
|
10593
10596
|
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10594
10597
|
};
|
|
10595
|
-
function y(v,
|
|
10596
|
-
this.url = v, this.element =
|
|
10598
|
+
function y(v, m) {
|
|
10599
|
+
this.url = v, this.element = m, this.img = new Image();
|
|
10597
10600
|
}
|
|
10598
10601
|
return y.prototype = Object.create(_.prototype), y.prototype.check = function() {
|
|
10599
10602
|
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
@@ -10601,11 +10604,11 @@ var imagesloaded = { exports: {} };
|
|
|
10601
10604
|
v && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
10602
10605
|
}, y.prototype.unbindEvents = function() {
|
|
10603
10606
|
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10604
|
-
}, y.prototype.confirm = function(v,
|
|
10605
|
-
this.isLoaded = v, this.emitEvent("progress", [this, this.element,
|
|
10607
|
+
}, y.prototype.confirm = function(v, m) {
|
|
10608
|
+
this.isLoaded = v, this.emitEvent("progress", [this, this.element, m]);
|
|
10606
10609
|
}, f.makeJQueryPlugin = function(v) {
|
|
10607
|
-
v = v || t.jQuery, v && (n = v, n.fn.imagesLoaded = function(
|
|
10608
|
-
var P = new f(this,
|
|
10610
|
+
v = v || t.jQuery, v && (n = v, n.fn.imagesLoaded = function(m, b) {
|
|
10611
|
+
var P = new f(this, m, b);
|
|
10609
10612
|
return P.jqDeferred.promise(n(this));
|
|
10610
10613
|
});
|
|
10611
10614
|
}, f.makeJQueryPlugin(), f;
|
|
@@ -10649,9 +10652,9 @@ VueMasonryPlugin.install = function(s, i) {
|
|
|
10649
10652
|
nextTick(() => {
|
|
10650
10653
|
_();
|
|
10651
10654
|
});
|
|
10652
|
-
const y = function(
|
|
10655
|
+
const y = function(m) {
|
|
10653
10656
|
_();
|
|
10654
|
-
}, v = function(
|
|
10657
|
+
}, v = function(m) {
|
|
10655
10658
|
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);
|
|
10656
10659
|
const b = p && !Number.isNaN(p) ? p : 0;
|
|
10657
10660
|
setTimeout(function() {
|
|
@@ -10703,4 +10706,4 @@ export {
|
|
|
10703
10706
|
StickyPlugin as a,
|
|
10704
10707
|
ListingSkeleton as b
|
|
10705
10708
|
};
|
|
10706
|
-
//# sourceMappingURL=masonry.plugin-
|
|
10709
|
+
//# sourceMappingURL=masonry.plugin-CgYuuVsX.js.map
|