@konnectio/core 4.2.10 → 4.2.12
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-Ccq4ajTm.js → ActionField-X6lKrr8p.js} +2 -2
- package/dist/ActionField-X6lKrr8p.js.br +0 -0
- package/dist/{AvailabilitySkeleton-wUTdfbCj.js → AvailabilitySkeleton-avcNZ8AO.js} +5 -5
- package/dist/AvailabilitySkeleton-avcNZ8AO.js.br +0 -0
- package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-D9LAIEUV.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-XqUxt9Az.js} +2 -2
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-XqUxt9Az.js.br +0 -0
- package/dist/{CheckoutWindow-CdS0oXF6.js → CheckoutWindow-bYNxBnyD.js} +2 -2
- package/dist/CheckoutWindow-bYNxBnyD.js.br +0 -0
- package/dist/{ErrorMessage-C6Rpje5I.js → ErrorMessage-DcOrv0zF.js} +2 -2
- package/dist/ErrorMessage-DcOrv0zF.js.br +0 -0
- package/dist/{EventAvailabilityForm-Pnwz_6ol.js → EventAvailabilityForm-Cw3rUSTz.js} +3 -3
- package/dist/EventAvailabilityForm-Cw3rUSTz.js.br +0 -0
- package/dist/{Field-CSead0e3.js → Field-zNihi7DU.js} +3 -3
- package/dist/Field-zNihi7DU.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BsRMgv7f.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-ZahnCXTC.js} +2 -2
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-DtthAfpO.js → SelectField.vue_vue_type_style_index_0_lang-BAihhUWY.js} +1675 -1673
- package/dist/SelectField.vue_vue_type_style_index_0_lang-BAihhUWY.js.br +0 -0
- package/dist/{TermsOfService-w8TYP_Tg.js → TermsOfService-34ilKsmj.js} +3 -3
- package/dist/_-CbBPXwwv.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-S2sqBe2l.js → _.vue_vue_type_style_index_0_lang-DhCtOh53.js} +2 -2
- package/dist/availability.js +5 -5
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +3 -3
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/event.js +7 -7
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +7 -7
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +8 -8
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-DVNgS50k.js → giftCard-D2W0VqZt.js} +2 -2
- package/dist/giftCard-D2W0VqZt.js.br +0 -0
- package/dist/hotel.js +1229 -1223
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-xJ5tm4QA.js → masonry.plugin-BCYS1p2H.js} +488 -488
- package/dist/masonry.plugin-BCYS1p2H.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-Ccq4ajTm.js.br +0 -0
- package/dist/AvailabilitySkeleton-wUTdfbCj.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_86730e88_lang-D9LAIEUV.js.br +0 -0
- package/dist/CheckoutWindow-CdS0oXF6.js.br +0 -0
- package/dist/ErrorMessage-C6Rpje5I.js.br +0 -0
- package/dist/EventAvailabilityForm-Pnwz_6ol.js.br +0 -0
- package/dist/Field-CSead0e3.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DtthAfpO.js.br +0 -0
- package/dist/_-BHq4ECNs.js +0 -5
- package/dist/giftCard-DVNgS50k.js.br +0 -0
- package/dist/masonry.plugin-xJ5tm4QA.js.br +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as defineComponent, F as Fragment, U as Comment, V as Text, W as h, X as getCurrentInstance, Y as resolveComponent, r as ref, c as computed$1, D as watch, o as onMounted, h as createElementBlock, b as openBlock, a as createBlock, i as createCommentVNode, w as withCtx, v as renderList, e as createBaseVNode, j as withModifiers, f as createVNode, g as unref, n as normalizeClass, u as useI18n, s as storeToRefs, Z as inject, N as resolveDirective, A as createSlots, E as withDirectives, t as toDisplayString, $ as reactive, a0 as onUnmounted, K as normalizeStyle, q as renderSlot, Q as nextTick, G as vShow, x as createTextVNode, a1 as mergeModels, y as useSlots, a2 as useModel, T as Transition, z as isRef, _ as _mitt } from "./mitt-BJqPn_wb.js";
|
|
2
|
-
import { I as Icon, _ as _export_sfc, b as useHotelStore, g as useEventStore, u as useAvailabilityStore, f as useUtilityStore, T as TextField, M as convertDescription, B as BookingLayout, q as capitalized, k as daysBetweenDates, o as showPrice, s as showDate, x as InputField, K as BookingHeaderLayout, P as emitter, w as getUserLanguage, y as useApplyGiftCardStore, e as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-
|
|
3
|
-
import { B as Base$1, a as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-
|
|
4
|
-
import { A as ActionField } from "./ActionField-
|
|
5
|
-
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-
|
|
2
|
+
import { I as Icon, _ as _export_sfc, b as useHotelStore, g as useEventStore, u as useAvailabilityStore, f as useUtilityStore, T as TextField, M as convertDescription, B as BookingLayout, q as capitalized, k as daysBetweenDates, o as showPrice, s as showDate, x as InputField, K as BookingHeaderLayout, P as emitter, w as getUserLanguage, y as useApplyGiftCardStore, e as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-BAihhUWY.js";
|
|
3
|
+
import { B as Base$1, a as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-bYNxBnyD.js";
|
|
4
|
+
import { A as ActionField } from "./ActionField-X6lKrr8p.js";
|
|
5
|
+
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-ZahnCXTC.js";
|
|
6
6
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -326,8 +326,8 @@ function getLegacyAgent(s) {
|
|
|
326
326
|
name: "unknown",
|
|
327
327
|
version: "-1",
|
|
328
328
|
majorVersion: -1
|
|
329
|
-
}, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset, _ = d.version,
|
|
330
|
-
if (e.chromium = !!
|
|
329
|
+
}, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset, _ = d.version, g = findPreset(CHROMIUM_PRESETS, i);
|
|
330
|
+
if (e.chromium = !!g.preset, e.chromiumVersion = g.version, !e.chromium) {
|
|
331
331
|
var y = findPreset(WEBKIT_PRESETS, i);
|
|
332
332
|
e.webkit = !!y.preset, e.webkitVersion = y.version;
|
|
333
333
|
}
|
|
@@ -366,8 +366,8 @@ function getClientHintsAgent(s) {
|
|
|
366
366
|
});
|
|
367
367
|
u.name = _ ? _.id : "";
|
|
368
368
|
{
|
|
369
|
-
var
|
|
370
|
-
l.name =
|
|
369
|
+
var g = findPresetBrand(BROWSER_PRESETS, t);
|
|
370
|
+
l.name = g.brand || l.name, l.version = g.brand && s ? s.uaFullVersion : g.version;
|
|
371
371
|
}
|
|
372
372
|
return l.webkit && (u.name = e ? "ios" : "mac"), u.name === "ios" && l.webview && (l.version = "-1"), u.version = convertVersion(u.version), l.version = convertVersion(l.version), u.majorVersion = parseInt(u.version, 10), l.majorVersion = parseInt(l.version, 10), {
|
|
373
373
|
browser: l,
|
|
@@ -761,20 +761,20 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
761
761
|
}, i.triggerChange = function(t, e, n, r) {
|
|
762
762
|
var l = this;
|
|
763
763
|
r === void 0 && (r = !1);
|
|
764
|
-
var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), _ = this._getRoundPos(t, e),
|
|
765
|
-
pos:
|
|
766
|
-
delta:
|
|
767
|
-
bounceRatio: this._getBounceRatio(
|
|
764
|
+
var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), _ = this._getRoundPos(t, e), g = _.roundPos, y = _.roundDepa, p = d.moveTo(g, y), m = n?.event || f?.event || null, b = {
|
|
765
|
+
pos: p.pos,
|
|
766
|
+
delta: p.delta,
|
|
767
|
+
bounceRatio: this._getBounceRatio(p.pos),
|
|
768
768
|
holding: r,
|
|
769
769
|
inputEvent: m,
|
|
770
770
|
isTrusted: !!m,
|
|
771
771
|
input: n?.input || f?.input || null,
|
|
772
|
-
set: m ? this._createUserControll(
|
|
772
|
+
set: m ? this._createUserControll(p.pos) : function() {
|
|
773
773
|
}
|
|
774
774
|
// eslint-disable-line @typescript-eslint/no-empty-function
|
|
775
775
|
}, P = new ComponentEvent$1("change", b);
|
|
776
|
-
return this._axes.trigger(P), Object.keys(
|
|
777
|
-
var E =
|
|
776
|
+
return this._axes.trigger(P), Object.keys(p.pos).forEach(function(v) {
|
|
777
|
+
var E = p.pos[v];
|
|
778
778
|
getObserver(l._axes, v, E).current = E;
|
|
779
779
|
}), m && d.set(b.set().destPos), !P.isCanceled();
|
|
780
780
|
}, i.triggerAnimationStart = function(t) {
|
|
@@ -929,8 +929,8 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
929
929
|
var e, n = this.prevEvent, r = this._getCenter(t), l = n ? this._getMovement(t) : {
|
|
930
930
|
x: 0,
|
|
931
931
|
y: 0
|
|
932
|
-
}, u = n ? this._getScale(t) : 1, d = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, f = n ? n.deltaX + l.x : l.x, _ = n ? n.deltaY + l.y : l.y,
|
|
933
|
-
return (!
|
|
932
|
+
}, u = n ? this._getScale(t) : 1, d = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, f = n ? n.deltaX + l.x : l.x, _ = n ? n.deltaY + l.y : l.y, g = l.x, y = l.y, p = this._latestInterval, m = Date.now(), b = p ? m - p.timestamp : 0, P = n ? n.velocityX : 0, v = n ? n.velocityY : 0;
|
|
933
|
+
return (!p || b >= VELOCITY_INTERVAL) && (p && (e = [(f - p.deltaX) / b, (_ - p.deltaY) / b], P = e[0], v = e[1]), this._latestInterval = {
|
|
934
934
|
timestamp: m,
|
|
935
935
|
deltaX: f,
|
|
936
936
|
deltaY: _
|
|
@@ -941,7 +941,7 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
941
941
|
center: r,
|
|
942
942
|
deltaX: f,
|
|
943
943
|
deltaY: _,
|
|
944
|
-
offsetX:
|
|
944
|
+
offsetX: g,
|
|
945
945
|
offsetY: y,
|
|
946
946
|
velocityX: P,
|
|
947
947
|
velocityY: v,
|
|
@@ -1173,13 +1173,13 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1173
1173
|
var l = e.srcEvent ? e.srcEvent : e;
|
|
1174
1174
|
if (!l.__childrenAxesAlreadyChanged) {
|
|
1175
1175
|
var u = this._moveDistance || this._axisManager.get(t.axes), d;
|
|
1176
|
-
d = map(u, function(y,
|
|
1177
|
-
return y + (n[
|
|
1178
|
-
}), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(y,
|
|
1179
|
-
var m =
|
|
1176
|
+
d = map(u, function(y, p) {
|
|
1177
|
+
return y + (n[p] || 0);
|
|
1178
|
+
}), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(y, p) {
|
|
1179
|
+
var m = p.circular, b = p.range;
|
|
1180
1180
|
return m && (m[0] || m[1]) ? getCirculatedPos(y, b, m) : y;
|
|
1181
|
-
})), this._isOutside && this._axisManager.every(u, function(y,
|
|
1182
|
-
return !isOutside(y,
|
|
1181
|
+
})), this._isOutside && this._axisManager.every(u, function(y, p) {
|
|
1182
|
+
return !isOutside(y, p.range);
|
|
1183
1183
|
}) && (this._isOutside = !1), u = this._atOutside(u), d = this._atOutside(d), (!this.options.nested || !this._isEndofAxis(n, u, d)) && (l.__childrenAxesAlreadyChanged = !0);
|
|
1184
1184
|
var f = {
|
|
1185
1185
|
input: t,
|
|
@@ -1189,8 +1189,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1189
1189
|
var _ = this._animationManager.getDuration(d, u);
|
|
1190
1190
|
this._animationManager.animateTo(d, _, f);
|
|
1191
1191
|
} else {
|
|
1192
|
-
var
|
|
1193
|
-
|
|
1192
|
+
var g = !this._eventManager.triggerChange(d, u, f, !0);
|
|
1193
|
+
g && (this._isStopped = !0, this._moveDistance = null, this._animationManager.finish(!1));
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
@@ -1200,23 +1200,23 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1200
1200
|
l.__childrenAxesAlreadyReleased && (n = n.map(function() {
|
|
1201
1201
|
return 0;
|
|
1202
1202
|
}));
|
|
1203
|
-
var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n), _ = toAxis(t.axes, f),
|
|
1203
|
+
var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n), _ = toAxis(t.axes, f), g = this._axisManager.get(this._axisManager.map(_, function(v, E, T) {
|
|
1204
1204
|
return E.circular && (E.circular[0] || E.circular[1]) ? u[T] + v : getInsidePosition(u[T] + v, E.range, E.circular, E.bounce);
|
|
1205
1205
|
}));
|
|
1206
1206
|
l.__childrenAxesAlreadyReleased = !0;
|
|
1207
|
-
var y = this._animationManager.getDuration(
|
|
1208
|
-
y === 0 && (
|
|
1209
|
-
var
|
|
1207
|
+
var y = this._animationManager.getDuration(g, u, r);
|
|
1208
|
+
y === 0 && (g = __assign$3({}, d));
|
|
1209
|
+
var p = {
|
|
1210
1210
|
depaPos: d,
|
|
1211
|
-
destPos:
|
|
1211
|
+
destPos: g,
|
|
1212
1212
|
duration: y,
|
|
1213
|
-
delta: this._axisManager.getDelta(d,
|
|
1213
|
+
delta: this._axisManager.getDelta(d, g),
|
|
1214
1214
|
inputEvent: e,
|
|
1215
1215
|
input: t,
|
|
1216
1216
|
isTrusted: !0
|
|
1217
1217
|
};
|
|
1218
|
-
--this._eventManager.holdingCount, this._eventManager.triggerRelease(
|
|
1219
|
-
var m = this._animationManager.getUserControl(
|
|
1218
|
+
--this._eventManager.holdingCount, this._eventManager.triggerRelease(p), this._eventManager.holdingCount === 0 && (this._moveDistance = null);
|
|
1219
|
+
var m = this._animationManager.getUserControl(p), b = equal(m.destPos, d), P = {
|
|
1220
1220
|
input: t,
|
|
1221
1221
|
event: e
|
|
1222
1222
|
};
|
|
@@ -1301,8 +1301,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1301
1301
|
var r = this;
|
|
1302
1302
|
this.stopAnimation();
|
|
1303
1303
|
var l = this._createAnimationParam(t, e, n), u = __assign$3({}, l.depaPos), d = this.eventManager.triggerAnimationStart(l), f = this.getUserControl(l);
|
|
1304
|
-
if (!d && this.axisManager.every(f.destPos, function(
|
|
1305
|
-
return isCircularable(
|
|
1304
|
+
if (!d && this.axisManager.every(f.destPos, function(g, y) {
|
|
1305
|
+
return isCircularable(g, y.range, y.circular);
|
|
1306
1306
|
}) && console.warn("You can't stop the 'animation' event when 'circular' is true."), d && !equal(f.destPos, u)) {
|
|
1307
1307
|
var _ = n?.event || null;
|
|
1308
1308
|
this._animateLoop({
|
|
@@ -1417,20 +1417,20 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1417
1417
|
finished: !1
|
|
1418
1418
|
};
|
|
1419
1419
|
}, t._getNextState = function(e) {
|
|
1420
|
-
var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(
|
|
1421
|
-
return
|
|
1422
|
-
}), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, _ = (f + this._durationOffset) / r.duration,
|
|
1423
|
-
var P = _ >= 1 ? u[b] :
|
|
1420
|
+
var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(p, m) {
|
|
1421
|
+
return p <= u[m] ? 1 : -1;
|
|
1422
|
+
}), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, _ = (f + this._durationOffset) / r.duration, g = this._easing(_), y = this.axisManager.map(l, function(p, m, b) {
|
|
1423
|
+
var P = _ >= 1 ? u[b] : p + r.delta[b] * (g - n._prevEasingPer) / (1 - n._initialEasingPer), v = getCirculatedPos(P, m.range, m.circular);
|
|
1424
1424
|
if (P !== v) {
|
|
1425
1425
|
var E = d[b] * (m.range[1] - m.range[0]);
|
|
1426
1426
|
u[b] -= E, l[b] -= E;
|
|
1427
1427
|
}
|
|
1428
1428
|
return v;
|
|
1429
1429
|
});
|
|
1430
|
-
return this._prevEasingPer =
|
|
1430
|
+
return this._prevEasingPer = g, {
|
|
1431
1431
|
pos: y,
|
|
1432
|
-
easingPer:
|
|
1433
|
-
finished:
|
|
1432
|
+
easingPer: g,
|
|
1433
|
+
finished: g >= 1
|
|
1434
1434
|
};
|
|
1435
1435
|
}, t._easing = function(e) {
|
|
1436
1436
|
return e > 1 ? 1 : this._options.easing(e);
|
|
@@ -1560,30 +1560,30 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1560
1560
|
this._dragged = !1, this._isOverThreshold = !1, this._observer.hold(this, d), this._atRightEdge = IS_IOS_SAFARI && d.center.x > window.innerWidth - f, this._attachWindowEvent(u), l && d.srcEvent.type !== "touchstart" && d.srcEvent.preventDefault(), u.prevEvent = d;
|
|
1561
1561
|
}
|
|
1562
1562
|
}, i._onPanmove = function(t) {
|
|
1563
|
-
var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, _ = n.threshold,
|
|
1564
|
-
if (m === 0 || u &&
|
|
1563
|
+
var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, _ = n.threshold, g = n.thresholdAngle, y = this._activeEvent, p = y.onEventMove(t, d, f), m = y.getTouches(t, f);
|
|
1564
|
+
if (m === 0 || u && p && !p.srcEvent.cancelable) {
|
|
1565
1565
|
this._onPanend(t);
|
|
1566
1566
|
return;
|
|
1567
1567
|
}
|
|
1568
|
-
if (!(!
|
|
1569
|
-
var b = getDirectionByAngle(
|
|
1568
|
+
if (!(!p || !this._enabled || m > 1)) {
|
|
1569
|
+
var b = getDirectionByAngle(p.angle, g), P = useDirection(DIRECTION_HORIZONTAL, this._direction, b), v = useDirection(DIRECTION_VERTICAL, this._direction, b);
|
|
1570
1570
|
if (y.prevEvent && IS_IOS_SAFARI) {
|
|
1571
|
-
var E =
|
|
1571
|
+
var E = p.center.x < 0;
|
|
1572
1572
|
if (E) {
|
|
1573
1573
|
this.release();
|
|
1574
1574
|
return;
|
|
1575
1575
|
} else if (this._atRightEdge) {
|
|
1576
1576
|
clearTimeout(this._rightEdgeTimer);
|
|
1577
|
-
var T =
|
|
1577
|
+
var T = p.deltaX < -r;
|
|
1578
1578
|
T ? this._atRightEdge = !1 : this._rightEdgeTimer = window.setTimeout(function() {
|
|
1579
1579
|
return e.release();
|
|
1580
1580
|
}, 100);
|
|
1581
1581
|
}
|
|
1582
1582
|
}
|
|
1583
|
-
var O = this._getDistance([
|
|
1583
|
+
var O = this._getDistance([p.deltaX, p.deltaY], [P, v]), S = this._getOffset([p.offsetX, p.offsetY], [P, v]), k = S.some(function(R) {
|
|
1584
1584
|
return R !== 0;
|
|
1585
1585
|
});
|
|
1586
|
-
k && (
|
|
1586
|
+
k && (p.srcEvent.cancelable !== !1 && p.srcEvent.preventDefault(), p.srcEvent.stopPropagation()), p.preventSystemEvent = k, k && (this._isOverThreshold || O >= _) && (this._dragged = l, this._isOverThreshold = !0, this._observer.change(this, p, toAxis(this.axes, S))), y.prevEvent = p;
|
|
1587
1587
|
}
|
|
1588
1588
|
}, i._onPanend = function(t) {
|
|
1589
1589
|
var e = this.options.inputButton, n = this._activeEvent;
|
|
@@ -1838,15 +1838,15 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1838
1838
|
return f.check(), f.on("error", function(_) {
|
|
1839
1839
|
n.onError(d, _.target);
|
|
1840
1840
|
}).on("preReady", function(_) {
|
|
1841
|
-
var
|
|
1842
|
-
|
|
1841
|
+
var g = n.elementInfos[d];
|
|
1842
|
+
g.hasLoading = _.hasLoading, g.isSkip = _.isSkip;
|
|
1843
1843
|
var y = n.checkPreReady(d);
|
|
1844
1844
|
n.onPreReadyElement(d), y && n.onPreReady();
|
|
1845
1845
|
}).on("ready", function(_) {
|
|
1846
|
-
var
|
|
1847
|
-
m.hasLoading = y, m.isSkip =
|
|
1848
|
-
var b =
|
|
1849
|
-
|
|
1846
|
+
var g = _.withPreReady, y = _.hasLoading, p = _.isSkip, m = n.elementInfos[d];
|
|
1847
|
+
m.hasLoading = y, m.isSkip = p;
|
|
1848
|
+
var b = g && n.checkPreReady(d), P = n.checkReady(d);
|
|
1849
|
+
g && n.onPreReadyElement(d), n.onReadyElement(d), b && n.onPreReady(), P && n.onReady();
|
|
1850
1850
|
}), {
|
|
1851
1851
|
loader: f,
|
|
1852
1852
|
element: u,
|
|
@@ -1883,24 +1883,24 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1883
1883
|
var r = this, l = e.tagName.toLowerCase(), u = this.options.loaders, d = n.prefix, f = Object.keys(u);
|
|
1884
1884
|
if (u[l])
|
|
1885
1885
|
return new u[l](e, n);
|
|
1886
|
-
var _ = new ElementLoader(e, n),
|
|
1887
|
-
_.setHasLoading(
|
|
1886
|
+
var _ = new ElementLoader(e, n), g = toArray$1(e.querySelectorAll(f.join(", ")));
|
|
1887
|
+
_.setHasLoading(g.some(function(m) {
|
|
1888
1888
|
return hasLoadingAttribute(m, d);
|
|
1889
1889
|
}));
|
|
1890
|
-
var y = !1,
|
|
1890
|
+
var y = !1, p = this.clone().on("error", function(m) {
|
|
1891
1891
|
_.onError(m.target);
|
|
1892
1892
|
}).on("ready", function() {
|
|
1893
1893
|
_.onReady(y);
|
|
1894
1894
|
});
|
|
1895
1895
|
return _.on("requestChildren", function() {
|
|
1896
1896
|
var m = getContentElements(e, f, r.options.prefix);
|
|
1897
|
-
|
|
1897
|
+
p.check(m).on("preReady", function(b) {
|
|
1898
1898
|
y = b.isReady, y || _.onPreReady();
|
|
1899
1899
|
});
|
|
1900
1900
|
}).on("reqeustReadyChildren", function() {
|
|
1901
|
-
|
|
1901
|
+
p.check(g);
|
|
1902
1902
|
}).on("requestDestroy", function() {
|
|
1903
|
-
|
|
1903
|
+
p.destroy();
|
|
1904
1904
|
}), _;
|
|
1905
1905
|
}, t.clone = function() {
|
|
1906
1906
|
return new i(__assign$2({}, this.options));
|
|
@@ -2041,15 +2041,15 @@ function __awaiter$1(s, i, t, e) {
|
|
|
2041
2041
|
function u(_) {
|
|
2042
2042
|
try {
|
|
2043
2043
|
f(e.next(_));
|
|
2044
|
-
} catch (
|
|
2045
|
-
l(
|
|
2044
|
+
} catch (g) {
|
|
2045
|
+
l(g);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
function d(_) {
|
|
2049
2049
|
try {
|
|
2050
2050
|
f(e.throw(_));
|
|
2051
|
-
} catch (
|
|
2052
|
-
l(
|
|
2051
|
+
} catch (g) {
|
|
2052
|
+
l(g);
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
2055
|
function f(_) {
|
|
@@ -2431,8 +2431,8 @@ var CODE = {
|
|
|
2431
2431
|
l = n ? u + _ + f : u + _;
|
|
2432
2432
|
}
|
|
2433
2433
|
} else {
|
|
2434
|
-
var
|
|
2435
|
-
l = n ? i["offset" +
|
|
2434
|
+
var g = t ? "Width" : "Height";
|
|
2435
|
+
l = n ? i["offset" + g] : i["client" + g];
|
|
2436
2436
|
}
|
|
2437
2437
|
return Math.max(l, 0);
|
|
2438
2438
|
}, setPrototypeOf = Object.setPrototypeOf || function(s, i) {
|
|
@@ -2557,7 +2557,7 @@ var CODE = {
|
|
|
2557
2557
|
var _ = {
|
|
2558
2558
|
width: r.viewport.width,
|
|
2559
2559
|
height: r.viewport.height
|
|
2560
|
-
},
|
|
2560
|
+
}, g = {
|
|
2561
2561
|
width: getElementSize({
|
|
2562
2562
|
el: d,
|
|
2563
2563
|
horizontal: !0,
|
|
@@ -2573,7 +2573,7 @@ var CODE = {
|
|
|
2573
2573
|
style: getStyle(d)
|
|
2574
2574
|
})
|
|
2575
2575
|
};
|
|
2576
|
-
if (_.height ===
|
|
2576
|
+
if (_.height === g.height && _.width === g.width)
|
|
2577
2577
|
return;
|
|
2578
2578
|
}
|
|
2579
2579
|
l <= 0 ? r.resize() : (e._maxResizeDebounceTimer <= 0 && u > 0 && u >= l && (e._maxResizeDebounceTimer = window.setTimeout(e._doScheduledResize, u)), e._resizeTimer > 0 && (clearTimeout(e._resizeTimer), e._resizeTimer = 0), e._resizeTimer = window.setTimeout(e._doScheduledResize, l));
|
|
@@ -2860,13 +2860,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
2860
2860
|
this._delta += l;
|
|
2861
2861
|
var u = e.camera, d = u.position, f = n.pos[POSITION_KEY], _ = e.circularEnabled ? circulatePosition(f, u.range.min, u.range.max) : f;
|
|
2862
2862
|
u.lookAt(_);
|
|
2863
|
-
var
|
|
2863
|
+
var g = new ComponentEvent$1(EVENTS.MOVE, {
|
|
2864
2864
|
isTrusted: n.isTrusted,
|
|
2865
2865
|
holding: this.holding,
|
|
2866
2866
|
direction: getDirection(0, n.delta[POSITION_KEY]),
|
|
2867
2867
|
axesEvent: n
|
|
2868
2868
|
});
|
|
2869
|
-
e.trigger(
|
|
2869
|
+
e.trigger(g), g.isCanceled() && (u.lookAt(d), r(STATE_TYPE.DISABLED));
|
|
2870
2870
|
}
|
|
2871
2871
|
}, s;
|
|
2872
2872
|
}(), IdleState = /* @__PURE__ */ function(s) {
|
|
@@ -2931,13 +2931,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
2931
2931
|
if (u(STATE_TYPE.IDLE), !!this._releaseEvent) {
|
|
2932
2932
|
var d = this._releaseEvent, f = d.inputEvent.srcEvent, _;
|
|
2933
2933
|
if (f.type === "touchend") {
|
|
2934
|
-
var
|
|
2934
|
+
var g = f, y = g.changedTouches[0];
|
|
2935
2935
|
_ = document.elementFromPoint(y.clientX, y.clientY);
|
|
2936
2936
|
} else
|
|
2937
2937
|
_ = f.target;
|
|
2938
|
-
var
|
|
2938
|
+
var p = l.renderer.panels, m = null;
|
|
2939
2939
|
try {
|
|
2940
|
-
for (var b = __values(
|
|
2940
|
+
for (var b = __values(p), P = b.next(); !P.done; P = b.next()) {
|
|
2941
2941
|
var v = P.value;
|
|
2942
2942
|
if (v.contains(_)) {
|
|
2943
2943
|
m = v;
|
|
@@ -3322,23 +3322,23 @@ var State = /* @__PURE__ */ function() {
|
|
|
3322
3322
|
end: t,
|
|
3323
3323
|
offset: 0
|
|
3324
3324
|
};
|
|
3325
|
-
var
|
|
3326
|
-
var y,
|
|
3325
|
+
var g = function() {
|
|
3326
|
+
var y, p, m = function() {
|
|
3327
3327
|
r._animatingContext = {
|
|
3328
3328
|
start: 0,
|
|
3329
3329
|
end: 0,
|
|
3330
3330
|
offset: 0
|
|
3331
3331
|
};
|
|
3332
3332
|
};
|
|
3333
|
-
u.once(EVENT.FINISH, m), n ? n.setTo((y = {}, y[POSITION_KEY] = t, y), e) : u.setTo((
|
|
3333
|
+
u.once(EVENT.FINISH, m), n ? n.setTo((y = {}, y[POSITION_KEY] = t, y), e) : u.setTo((p = {}, p[POSITION_KEY] = t, p), e);
|
|
3334
3334
|
};
|
|
3335
|
-
return new Promise(function(y,
|
|
3335
|
+
return new Promise(function(y, p) {
|
|
3336
3336
|
var m = function() {
|
|
3337
3337
|
u.off(EVENT.HOLD, b), y();
|
|
3338
3338
|
}, b = function() {
|
|
3339
|
-
u.off(EVENT.FINISH, m),
|
|
3339
|
+
u.off(EVENT.FINISH, m), p(new FlickingError(MESSAGE.ANIMATION_INTERRUPTED, CODE.ANIMATION_INTERRUPTED));
|
|
3340
3340
|
};
|
|
3341
|
-
u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, b),
|
|
3341
|
+
u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, b), g();
|
|
3342
3342
|
});
|
|
3343
3343
|
}, i.updateDirection = function() {
|
|
3344
3344
|
var t = getFlickingAttached(this._flicking), e = this._axes, n = this._panInput;
|
|
@@ -3469,19 +3469,19 @@ var State = /* @__PURE__ */ function() {
|
|
|
3469
3469
|
}, i.copy = function(t) {
|
|
3470
3470
|
this._flicking = t._flicking, this._activePanel = t._activePanel, this._controller = t._controller;
|
|
3471
3471
|
}, i._triggerIndexChangeEvent = function(t, e, n, r) {
|
|
3472
|
-
var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera, _ = this._activePanel,
|
|
3472
|
+
var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera, _ = this._activePanel, g = new ComponentEvent$1(d, {
|
|
3473
3473
|
index: t.index,
|
|
3474
3474
|
panel: t,
|
|
3475
3475
|
isTrusted: n?.isTrusted || !1,
|
|
3476
3476
|
direction: r ?? getDirection((l = _?.position) !== null && l !== void 0 ? l : f.position, e)
|
|
3477
3477
|
});
|
|
3478
|
-
if (this._nextPanel = t, u.trigger(
|
|
3478
|
+
if (this._nextPanel = t, u.trigger(g), g.isCanceled())
|
|
3479
3479
|
throw new FlickingError(MESSAGE.STOP_CALLED_BY_USER, CODE.STOP_CALLED_BY_USER);
|
|
3480
3480
|
}, i._animateToPosition = function(t) {
|
|
3481
3481
|
var e = t.position, n = t.duration, r = t.newActivePanel, l = t.axesEvent;
|
|
3482
3482
|
return __awaiter$1(this, void 0, void 0, function() {
|
|
3483
3483
|
var u, d, f, _ = this;
|
|
3484
|
-
return __generator$1(this, function(
|
|
3484
|
+
return __generator$1(this, function(g) {
|
|
3485
3485
|
return u = getFlickingAttached(this._flicking), d = function() {
|
|
3486
3486
|
return _._controller.animateTo(e, n, l);
|
|
3487
3487
|
}, f = this._controller.state, f.targetPanel = r, n <= 0 ? [2, d()] : [2, d().then(function() {
|
|
@@ -3512,11 +3512,11 @@ var State = /* @__PURE__ */ function() {
|
|
|
3512
3512
|
if (!r.canReach(t))
|
|
3513
3513
|
l = u.position, t = u.panel;
|
|
3514
3514
|
else if (n.circularEnabled) {
|
|
3515
|
-
var d = this._controller.position, f = r.rangeDiff, _ = [l, l + f, l - f].filter(function(
|
|
3516
|
-
return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ?
|
|
3515
|
+
var d = this._controller.position, f = r.rangeDiff, _ = [l, l + f, l - f].filter(function(g) {
|
|
3516
|
+
return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ? g <= d : g >= d;
|
|
3517
3517
|
});
|
|
3518
|
-
l = _.reduce(function(
|
|
3519
|
-
return Math.abs(d - y) < Math.abs(d -
|
|
3518
|
+
l = _.reduce(function(g, y) {
|
|
3519
|
+
return Math.abs(d - y) < Math.abs(d - g) ? y : g;
|
|
3520
3520
|
}, 1 / 0);
|
|
3521
3521
|
}
|
|
3522
3522
|
return l;
|
|
@@ -3590,10 +3590,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
3590
3590
|
var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), _ = this._controller.state;
|
|
3591
3591
|
if (!d || !f)
|
|
3592
3592
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3593
|
-
var
|
|
3594
|
-
if (m >=
|
|
3593
|
+
var g = this._calcSnapThreshold(l.threshold, e, d), y = l.animating ? _.delta : e - u.position, p = Math.abs(y), m = r && r.delta[POSITION_KEY] !== 0 ? Math.abs(r.delta[POSITION_KEY]) : p, b;
|
|
3594
|
+
if (m >= g && m > 0)
|
|
3595
3595
|
b = this._findSnappedAnchor(e, f);
|
|
3596
|
-
else if (
|
|
3596
|
+
else if (p >= l.threshold && p > 0)
|
|
3597
3597
|
b = this._findAdjacentAnchor(e, y, f);
|
|
3598
3598
|
else
|
|
3599
3599
|
return this.moveToPanel(f.panel, {
|
|
@@ -3612,19 +3612,19 @@ var State = /* @__PURE__ */ function() {
|
|
|
3612
3612
|
throw new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE);
|
|
3613
3613
|
if (!isFinite(u))
|
|
3614
3614
|
return _;
|
|
3615
|
-
var
|
|
3616
|
-
e > d && _.index < n.index || _.position > n.position && _.index === n.index ?
|
|
3617
|
-
var m =
|
|
3615
|
+
var g = r.panelCount, y = l.anchorPoints, p = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
|
|
3616
|
+
e > d && _.index < n.index || _.position > n.position && _.index === n.index ? p += 1 : (e < d && _.index > n.index || _.position < n.position && _.index === n.index) && (p -= 1);
|
|
3617
|
+
var m = p * g, b = _.index + m;
|
|
3618
3618
|
if (Math.abs(b - n.index) <= u) {
|
|
3619
3619
|
var P = y[_.index];
|
|
3620
3620
|
return new AnchorPoint({
|
|
3621
3621
|
index: P.index,
|
|
3622
|
-
position: P.position +
|
|
3622
|
+
position: P.position + p * l.rangeDiff,
|
|
3623
3623
|
panel: P.panel
|
|
3624
3624
|
});
|
|
3625
3625
|
}
|
|
3626
3626
|
if (r.circularEnabled) {
|
|
3627
|
-
var v = y[circulateIndex(n.index + Math.sign(e - d) * u,
|
|
3627
|
+
var v = y[circulateIndex(n.index + Math.sign(e - d) * u, g)], E = Math.floor(u / g);
|
|
3628
3628
|
return e > d && v.index < n.index ? E += 1 : e < d && v.index > n.index && (E -= 1), new AnchorPoint({
|
|
3629
3629
|
index: v.index,
|
|
3630
3630
|
position: v.position + E * l.rangeDiff,
|
|
@@ -3715,9 +3715,9 @@ var State = /* @__PURE__ */ function() {
|
|
|
3715
3715
|
var e, n = getFlickingAttached(this._flicking), r = n.camera, l = n.renderer, u = this._controller, d = r.controlParams, f = this._count, _ = u.state.animating ? (e = r.findNearestAnchor(r.position)) === null || e === void 0 ? void 0 : e.panel : this._activePanel;
|
|
3716
3716
|
if (!_)
|
|
3717
3717
|
return u.update(d), this._resetIndexRange(), this;
|
|
3718
|
-
var
|
|
3718
|
+
var g = d.range, y = _.position, p = _.index, m = l.panelCount, b = p - f, P = p + f;
|
|
3719
3719
|
b < 0 && (b = n.circularEnabled ? getMinusCompensatedIndex((b + 1) % m - 1, m) : clamp(b, 0, m - 1)), P >= m && (P = n.circularEnabled ? P % m : clamp(P, 0, m - 1));
|
|
3720
|
-
var v = l.panels[b], E = l.panels[P], T = Math.max(v.position,
|
|
3720
|
+
var v = l.panels[b], E = l.panels[P], T = Math.max(v.position, g.min), O = Math.min(E.position, g.max);
|
|
3721
3721
|
return T > y && (T -= r.rangeDiff), O < y && (O += r.rangeDiff), d.range = {
|
|
3722
3722
|
min: T,
|
|
3723
3723
|
max: O
|
|
@@ -3733,10 +3733,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
3733
3733
|
});
|
|
3734
3734
|
});
|
|
3735
3735
|
}, t.moveToPosition = function(e, n, r) {
|
|
3736
|
-
var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, _ = this._controller.range,
|
|
3736
|
+
var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, _ = this._controller.range, g = this._indexRange, y = d.range, p = this._controller.state, m = clamp(d.clampToReachablePosition(e), _[0], _[1]), b = d.findAnchorIncludePosition(m);
|
|
3737
3737
|
if (!b || !f)
|
|
3738
3738
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3739
|
-
var P = f.position, v = u.animating ?
|
|
3739
|
+
var P = f.position, v = u.animating ? p.delta : e - d.position, E = Math.abs(v) >= u.threshold, T = e > P ? d.getNextAnchor(b) : d.getPrevAnchor(b), O, S, k = d.anchorPoints, R = k[0], A = k[k.length - 1], C = e <= y.min && isBetween(R.panel.index, g.min, g.max), N = e >= y.max && isBetween(A.panel.index, g.min, g.max), w = T && (g.min <= g.max ? isBetween(T.index, g.min, g.max) : T.index >= g.min || T.index <= g.max);
|
|
3740
3740
|
if (C || N) {
|
|
3741
3741
|
var x = e < y.min ? R : A;
|
|
3742
3742
|
S = x.panel, O = x.position;
|
|
@@ -3833,8 +3833,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3833
3833
|
var e = this._flicking, n = e.renderer, r = n.panels;
|
|
3834
3834
|
if (r.length <= 0)
|
|
3835
3835
|
return !1;
|
|
3836
|
-
var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, _ = e.camera.size,
|
|
3837
|
-
return
|
|
3836
|
+
var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, _ = e.camera.size, g = f - d, y = r.every(function(p) {
|
|
3837
|
+
return g - p.size >= _;
|
|
3838
3838
|
});
|
|
3839
3839
|
return y;
|
|
3840
3840
|
}, t.getRange = function() {
|
|
@@ -3862,14 +3862,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
3862
3862
|
var n = this._flicking.camera, r = n.anchorPoints;
|
|
3863
3863
|
if (r.length <= 0) return null;
|
|
3864
3864
|
for (var l = n.range, u = 1 / 0, d = -1, f = 0; f < r.length; f++) {
|
|
3865
|
-
var _ = r[f],
|
|
3866
|
-
|
|
3865
|
+
var _ = r[f], g = Math.min(Math.abs(_.position - e), Math.abs(_.position - l.min + l.max - e), Math.abs(e - l.min + l.max - _.position));
|
|
3866
|
+
g < u && (u = g, d = f);
|
|
3867
3867
|
}
|
|
3868
3868
|
return r[d];
|
|
3869
3869
|
}, t.findAnchorIncludePosition = function(e) {
|
|
3870
3870
|
var n = this._flicking.camera, r = n.range, l = n.anchorPoints, u = n.rangeDiff, d = l.length, f = circulatePosition(e, r.min, r.max), _ = s.prototype.findAnchorIncludePosition.call(this, f);
|
|
3871
3871
|
if (d > 0 && (e === r.min || e === r.max)) {
|
|
3872
|
-
var
|
|
3872
|
+
var g = [_, new AnchorPoint({
|
|
3873
3873
|
index: 0,
|
|
3874
3874
|
position: l[0].position + u,
|
|
3875
3875
|
panel: l[0].panel
|
|
@@ -3877,11 +3877,11 @@ var State = /* @__PURE__ */ function() {
|
|
|
3877
3877
|
index: d - 1,
|
|
3878
3878
|
position: l[d - 1].position - u,
|
|
3879
3879
|
panel: l[d - 1].panel
|
|
3880
|
-
})].filter(function(
|
|
3881
|
-
return !!
|
|
3880
|
+
})].filter(function(p) {
|
|
3881
|
+
return !!p;
|
|
3882
3882
|
});
|
|
3883
|
-
_ =
|
|
3884
|
-
return
|
|
3883
|
+
_ = g.reduce(function(p, m) {
|
|
3884
|
+
return p && Math.abs(p.position - e) < Math.abs(m.position - e) ? p : m;
|
|
3885
3885
|
}, null);
|
|
3886
3886
|
}
|
|
3887
3887
|
if (!_) return null;
|
|
@@ -3934,8 +3934,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3934
3934
|
var e = this._flicking, n = e.renderer, r = n.getPanel(0), l = n.getPanel(n.panelCount - 1);
|
|
3935
3935
|
if (!r || !l)
|
|
3936
3936
|
return !1;
|
|
3937
|
-
var u = e.camera.size, d = r.range.min, f = l.range.max, _ = f - d,
|
|
3938
|
-
return
|
|
3937
|
+
var u = e.camera.size, d = r.range.min, f = l.range.max, _ = f - d, g = u < _;
|
|
3938
|
+
return g;
|
|
3939
3939
|
}, t.getRange = function() {
|
|
3940
3940
|
var e = this._flicking, n = e.renderer, r = e.camera.alignPosition, l = n.getPanel(0), u = n.getPanel(n.panelCount - 1);
|
|
3941
3941
|
if (!l || !u)
|
|
@@ -3943,13 +3943,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
3943
3943
|
min: 0,
|
|
3944
3944
|
max: 0
|
|
3945
3945
|
};
|
|
3946
|
-
var d = e.camera.size, f = l.range.min, _ = u.range.max,
|
|
3946
|
+
var d = e.camera.size, f = l.range.min, _ = u.range.max, g = _ - f, y = d < g, p = f + r, m = _ - d + r;
|
|
3947
3947
|
if (y)
|
|
3948
3948
|
return {
|
|
3949
|
-
min:
|
|
3949
|
+
min: p,
|
|
3950
3950
|
max: m
|
|
3951
3951
|
};
|
|
3952
|
-
var b = e.camera.align, P = typeof b == "object" ? b.camera : b, v =
|
|
3952
|
+
var b = e.camera.align, P = typeof b == "object" ? b.camera : b, v = p + parseAlign$1(P, m - p);
|
|
3953
3953
|
return {
|
|
3954
3954
|
min: v,
|
|
3955
3955
|
max: v
|
|
@@ -3962,28 +3962,28 @@ var State = /* @__PURE__ */ function() {
|
|
|
3962
3962
|
return n.canReach(b);
|
|
3963
3963
|
});
|
|
3964
3964
|
if (u.length > 0) {
|
|
3965
|
-
var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, _ = d ? 1 : 0,
|
|
3965
|
+
var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, _ = d ? 1 : 0, g = u.map(function(b, P) {
|
|
3966
3966
|
return new AnchorPoint({
|
|
3967
3967
|
index: P + _,
|
|
3968
3968
|
position: b.position,
|
|
3969
3969
|
panel: b
|
|
3970
3970
|
});
|
|
3971
3971
|
});
|
|
3972
|
-
return d &&
|
|
3972
|
+
return d && g.splice(0, 0, new AnchorPoint({
|
|
3973
3973
|
index: 0,
|
|
3974
3974
|
position: l.min,
|
|
3975
3975
|
panel: r[u[0].index - 1]
|
|
3976
|
-
})), f &&
|
|
3977
|
-
index:
|
|
3976
|
+
})), f && g.push(new AnchorPoint({
|
|
3977
|
+
index: g.length,
|
|
3978
3978
|
position: l.max,
|
|
3979
3979
|
panel: r[u[u.length - 1].index + 1]
|
|
3980
|
-
})),
|
|
3980
|
+
})), g;
|
|
3981
3981
|
} else if (l.min !== l.max) {
|
|
3982
|
-
var y = this._findNearestPanel(l.min, r),
|
|
3982
|
+
var y = this._findNearestPanel(l.min, r), p = y.index === r.length - 1 ? y.prev() : y, m = p.next();
|
|
3983
3983
|
return [new AnchorPoint({
|
|
3984
3984
|
index: 0,
|
|
3985
3985
|
position: l.min,
|
|
3986
|
-
panel:
|
|
3986
|
+
panel: p
|
|
3987
3987
|
}), new AnchorPoint({
|
|
3988
3988
|
index: 1,
|
|
3989
3989
|
position: l.max,
|
|
@@ -4011,11 +4011,11 @@ var State = /* @__PURE__ */ function() {
|
|
|
4011
4011
|
function s(t, e) {
|
|
4012
4012
|
var n = this, r = (e === void 0 ? {} : e).align, l = r === void 0 ? ALIGN.CENTER : r;
|
|
4013
4013
|
this._lookedOffset = 0, this._checkTranslateSupport = function() {
|
|
4014
|
-
var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], _ = document.documentElement.style,
|
|
4014
|
+
var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], _ = document.documentElement.style, g = "";
|
|
4015
4015
|
try {
|
|
4016
|
-
for (var y = __values(f),
|
|
4017
|
-
var m =
|
|
4018
|
-
m in _ && (
|
|
4016
|
+
for (var y = __values(f), p = y.next(); !p.done; p = y.next()) {
|
|
4017
|
+
var m = p.value;
|
|
4018
|
+
m in _ && (g = m);
|
|
4019
4019
|
}
|
|
4020
4020
|
} catch (b) {
|
|
4021
4021
|
u = {
|
|
@@ -4023,14 +4023,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
4023
4023
|
};
|
|
4024
4024
|
} finally {
|
|
4025
4025
|
try {
|
|
4026
|
-
|
|
4026
|
+
p && !p.done && (d = y.return) && d.call(y);
|
|
4027
4027
|
} finally {
|
|
4028
4028
|
if (u) throw u.error;
|
|
4029
4029
|
}
|
|
4030
4030
|
}
|
|
4031
|
-
if (!
|
|
4031
|
+
if (!g)
|
|
4032
4032
|
throw new FlickingError(MESSAGE.TRANSFORM_NOT_SUPPORTED, CODE.TRANSFORM_NOT_SUPPORTED);
|
|
4033
|
-
n._transform =
|
|
4033
|
+
n._transform = g;
|
|
4034
4034
|
}, this._flicking = t, this._resetInternalValues(), this._align = l;
|
|
4035
4035
|
}
|
|
4036
4036
|
var i = s.prototype;
|
|
@@ -4243,15 +4243,15 @@ var State = /* @__PURE__ */ function() {
|
|
|
4243
4243
|
var t = this._flicking, e = this._position + this._offset, n = this.findNearestAnchor(this._position);
|
|
4244
4244
|
if (!t || !n)
|
|
4245
4245
|
return NaN;
|
|
4246
|
-
var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min, _ = d.max,
|
|
4246
|
+
var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min, _ = d.max, g = this.rangeDiff;
|
|
4247
4247
|
if (e === l)
|
|
4248
4248
|
return r.index;
|
|
4249
4249
|
if (e < l) {
|
|
4250
|
-
var y = r.prev(),
|
|
4251
|
-
return
|
|
4250
|
+
var y = r.prev(), p = y ? y.position + y.offset : f - u[0];
|
|
4251
|
+
return p > l && (p -= g), r.index - 1 + getProgress(e, p, l);
|
|
4252
4252
|
} else {
|
|
4253
4253
|
var m = r.next(), b = m ? m.position + m.offset : _ + u[1];
|
|
4254
|
-
return b < l && (b +=
|
|
4254
|
+
return b < l && (b += g), r.index + getProgress(e, l, b);
|
|
4255
4255
|
}
|
|
4256
4256
|
},
|
|
4257
4257
|
enumerable: !1,
|
|
@@ -4414,10 +4414,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
4414
4414
|
})), t.next = !0);
|
|
4415
4415
|
return;
|
|
4416
4416
|
}
|
|
4417
|
-
var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, _ = f + l,
|
|
4417
|
+
var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, _ = f + l, g = n[0], y = n[n.length - 1];
|
|
4418
4418
|
if (!t.prev) {
|
|
4419
|
-
var
|
|
4420
|
-
(f <=
|
|
4419
|
+
var p = g.range.min;
|
|
4420
|
+
(f <= p + d || r <= u.min + d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
|
|
4421
4421
|
direction: DIRECTION.PREV
|
|
4422
4422
|
})), t.prev = !0);
|
|
4423
4423
|
}
|
|
@@ -4561,15 +4561,15 @@ var State = /* @__PURE__ */ function() {
|
|
|
4561
4561
|
}, i.batchInsertDefer = function() {
|
|
4562
4562
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4563
4563
|
e[n] = arguments[n];
|
|
4564
|
-
var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(_,
|
|
4565
|
-
var y,
|
|
4564
|
+
var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(_, g) {
|
|
4565
|
+
var y, p = getMinusCompensatedIndex(g.index, r.length), m = r.slice(p), b = g.elements.map(function(v, E) {
|
|
4566
4566
|
return t._createPanel(v, {
|
|
4567
|
-
index:
|
|
4567
|
+
index: p + E,
|
|
4568
4568
|
align: d,
|
|
4569
4569
|
flicking: l
|
|
4570
4570
|
});
|
|
4571
4571
|
});
|
|
4572
|
-
if (r.splice.apply(r, __spread([
|
|
4572
|
+
if (r.splice.apply(r, __spread([p, 0], b)), g.hasDOMInElements && t._insertPanelElements(b, (y = m[0]) !== null && y !== void 0 ? y : null), l.panelsPerView > 0) {
|
|
4573
4573
|
var P = u || b[0].resize();
|
|
4574
4574
|
t._updatePanelSizeByGrid(P, b);
|
|
4575
4575
|
} else
|
|
@@ -4589,21 +4589,21 @@ var State = /* @__PURE__ */ function() {
|
|
|
4589
4589
|
}, i.batchRemoveDefer = function() {
|
|
4590
4590
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4591
4591
|
e[n] = arguments[n];
|
|
4592
|
-
var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(_,
|
|
4593
|
-
var y =
|
|
4592
|
+
var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(_, g) {
|
|
4593
|
+
var y = g.index, p = g.deleteCount, m = getMinusCompensatedIndex(y, r.length), b = r.slice(m + p), P = r.splice(m, p);
|
|
4594
4594
|
return P.length <= 0 ? [] : (b.forEach(function(v) {
|
|
4595
4595
|
v.decreaseIndex(P.length), v.updatePosition();
|
|
4596
|
-
}),
|
|
4596
|
+
}), g.hasDOMInElements && t._removePanelElements(P), P.forEach(function(v) {
|
|
4597
4597
|
return v.destroy();
|
|
4598
4598
|
}), includes(P, d) && u.resetActive(), __spread(_, P));
|
|
4599
4599
|
}, []);
|
|
4600
4600
|
return f;
|
|
4601
4601
|
}, i.updateAfterPanelChange = function(t, e) {
|
|
4602
4602
|
var n, r = getFlickingAttached(this._flicking), l = r.camera, u = r.control, d = this._panels, f = u.activePanel;
|
|
4603
|
-
if (this._updateCameraAndControl(), r.autoResize && r.useResizeObserver && (t.forEach(function(
|
|
4604
|
-
|
|
4605
|
-
}), e.forEach(function(
|
|
4606
|
-
|
|
4603
|
+
if (this._updateCameraAndControl(), r.autoResize && r.useResizeObserver && (t.forEach(function(g) {
|
|
4604
|
+
g.element && r.autoResizer.observe(g.element);
|
|
4605
|
+
}), e.forEach(function(g) {
|
|
4606
|
+
g.element && r.autoResizer.unobserve(g.element);
|
|
4607
4607
|
})), this.render(), !r.animating)
|
|
4608
4608
|
if (!f || f.removed)
|
|
4609
4609
|
if (d.length <= 0)
|
|
@@ -4641,10 +4641,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
4641
4641
|
d.destroy();
|
|
4642
4642
|
return;
|
|
4643
4643
|
}
|
|
4644
|
-
var _ = t[f.index],
|
|
4644
|
+
var _ = t[f.index], g = n.camera, y = n.control, p = y.activePanel ? g.getProgressInPanel(y.activePanel) : 0;
|
|
4645
4645
|
_.loading = !1, _.resize(), l.slice(_.index + 1).forEach(function(m) {
|
|
4646
4646
|
return m.updatePosition();
|
|
4647
|
-
}), n.initialized && (
|
|
4647
|
+
}), n.initialized && (g.updateRange(), g.updateOffset(), g.updateAnchors(), y.animating || (y.updatePosition(p), y.updateInput()));
|
|
4648
4648
|
}), d.on("preReady", function(f) {
|
|
4649
4649
|
e._flicking && e.render(), f.readyCount === f.totalCount && d.destroy();
|
|
4650
4650
|
}), d.on("ready", function() {
|
|
@@ -4679,8 +4679,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
4679
4679
|
}, !n.horizontal && {
|
|
4680
4680
|
height: t.height
|
|
4681
4681
|
});
|
|
4682
|
-
n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(
|
|
4683
|
-
return
|
|
4682
|
+
n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(g) {
|
|
4683
|
+
return g.resize(_);
|
|
4684
4684
|
});
|
|
4685
4685
|
}
|
|
4686
4686
|
}, i._removeAllChildsFromCamera = function() {
|
|
@@ -5105,8 +5105,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
5105
5105
|
var t = this._flicking;
|
|
5106
5106
|
if (!t.circularEnabled)
|
|
5107
5107
|
return this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0, this._toggled = !1, this;
|
|
5108
|
-
var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u, _ = this.includeRange(f - u, f, !1),
|
|
5109
|
-
return this._toggled = !1, _ ? (this._toggleDirection = DIRECTION.PREV, this._togglePosition = this.range.max + n.min - n.max + r, this.toggle(1 / 0, e.position)) :
|
|
5108
|
+
var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u, _ = this.includeRange(f - u, f, !1), g = this.includeRange(d, d + u, !1);
|
|
5109
|
+
return this._toggled = !1, _ ? (this._toggleDirection = DIRECTION.PREV, this._togglePosition = this.range.max + n.min - n.max + r, this.toggle(1 / 0, e.position)) : g ? (this._toggleDirection = DIRECTION.NEXT, this._togglePosition = this.range.min + n.max - u + r, this.toggle(-1 / 0, e.position)) : (this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0), this;
|
|
5110
5110
|
}, i._updateAlignPos = function() {
|
|
5111
5111
|
this._alignPos = parseAlign$1(this._align, this._size);
|
|
5112
5112
|
}, i._resetInternalStates = function() {
|
|
@@ -5297,10 +5297,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
5297
5297
|
}(), Flicking$1 = /* @__PURE__ */ function(s) {
|
|
5298
5298
|
__extends$2(i, s);
|
|
5299
5299
|
function i(e, n) {
|
|
5300
|
-
var r = n === void 0 ? {} : n, l = r.align, u = l === void 0 ? ALIGN.CENTER : l, d = r.defaultIndex, f = d === void 0 ? 0 : d, _ = r.horizontal,
|
|
5300
|
+
var r = n === void 0 ? {} : n, l = r.align, u = l === void 0 ? ALIGN.CENTER : l, d = r.defaultIndex, f = d === void 0 ? 0 : d, _ = r.horizontal, g = _ === void 0 ? !0 : _, y = r.circular, p = y === void 0 ? !1 : y, m = r.circularFallback, b = m === void 0 ? CIRCULAR_FALLBACK.LINEAR : m, P = r.bound, v = P === void 0 ? !1 : P, E = r.adaptive, T = E === void 0 ? !1 : E, O = r.panelsPerView, S = O === void 0 ? -1 : O, k = r.noPanelStyleOverride, R = k === void 0 ? !1 : k, A = r.resizeOnContentsReady, C = A === void 0 ? !1 : A, N = r.nested, w = N === void 0 ? !1 : N, x = r.needPanelThreshold, D = x === void 0 ? 0 : x, L = r.preventEventsBeforeInit, B = L === void 0 ? !0 : L, V = r.deceleration, de = V === void 0 ? 75e-4 : V, M = r.duration, fe = M === void 0 ? 500 : M, z = r.easing, he = z === void 0 ? function(Le) {
|
|
5301
5301
|
return 1 - Math.pow(1 - Le, 3);
|
|
5302
|
-
} : z, F = r.inputType, ve = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType,
|
|
5303
|
-
return I._initialized = !1, I._plugins = [], I._isResizing = !1, I._align = u, I._defaultIndex = f, I._horizontal =
|
|
5302
|
+
} : z, F = r.inputType, ve = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType, pe = j === void 0 ? "snap" : j, H = r.threshold, ge = H === void 0 ? 40 : H, W = r.dragThreshold, _e = W === void 0 ? 1 : W, U = r.interruptable, me = U === void 0 ? !0 : U, G = r.bounce, Ee = G === void 0 ? "20%" : G, Y = r.iOSEdgeSwipeThreshold, ye = Y === void 0 ? 30 : Y, q = r.preventClickOnDrag, be = q === void 0 ? !0 : q, X = r.preventDefaultOnDrag, Pe = X === void 0 ? !1 : X, K = r.disableOnInit, Te = K === void 0 ? !1 : K, Z = r.changeOnHold, Oe = Z === void 0 ? !1 : Z, Q = r.renderOnlyVisible, Se = Q === void 0 ? !1 : Q, J = r.virtual, ee = J === void 0 ? null : J, te = r.autoInit, Ce = te === void 0 ? !0 : te, ne = r.autoResize, Ie = ne === void 0 ? !0 : ne, ie = r.useResizeObserver, ke = ie === void 0 ? !0 : ie, re = r.resizeDebounce, xe = re === void 0 ? 0 : re, ae = r.observePanelResize, Re = ae === void 0 ? !1 : ae, oe = r.maxResizeDebounce, Ne = oe === void 0 ? 100 : oe, se = r.useFractionalSize, we = se === void 0 ? !1 : se, le = r.externalRenderer, Ae = le === void 0 ? null : le, ue = r.renderExternal, De = ue === void 0 ? null : ue, ce = r.optimizeSizeUpdate, Be = ce === void 0 ? !1 : ce, I = s.call(this) || this;
|
|
5303
|
+
return I._initialized = !1, I._plugins = [], I._isResizing = !1, I._align = u, I._defaultIndex = f, I._horizontal = g, I._circular = p, I._circularFallback = b, I._bound = v, I._adaptive = T, I._panelsPerView = S, I._noPanelStyleOverride = R, I._resizeOnContentsReady = C, I._nested = w, I._virtual = ee, I._needPanelThreshold = D, I._preventEventsBeforeInit = B, I._deceleration = de, I._duration = fe, I._easing = he, I._inputType = ve, I._moveType = pe, I._threshold = ge, I._dragThreshold = _e, I._interruptable = me, I._bounce = Ee, I._iOSEdgeSwipeThreshold = ye, I._preventClickOnDrag = be, I._preventDefaultOnDrag = Pe, I._disableOnInit = Te, I._changeOnHold = Oe, I._renderOnlyVisible = Se, I._autoInit = Ce, I._autoResize = Ie, I._useResizeObserver = ke, I._resizeDebounce = xe, I._maxResizeDebounce = Ne, I._observePanelResize = Re, I._useFractionalSize = we, I._externalRenderer = Ae, I._renderExternal = De, I._optimizeSizeUpdate = Be, I._viewport = new Viewport(I, getElement$1(e)), I._autoResizer = new AutoResizer(I), I._renderer = I._createRenderer(), I._camera = I._createCamera(), I._control = I._createControl(), I._virtualManager = new VirtualManager(I, ee), I._autoInit && I.init(), I;
|
|
5304
5304
|
}
|
|
5305
5305
|
var t = i.prototype;
|
|
5306
5306
|
return Object.defineProperty(t, "control", {
|
|
@@ -6349,7 +6349,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6349
6349
|
}, t.disableInput = function() {
|
|
6350
6350
|
return this._control.disable(), this;
|
|
6351
6351
|
}, t.getStatus = function(e) {
|
|
6352
|
-
var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, _ = f === void 0 ? !0 : f,
|
|
6352
|
+
var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, _ = f === void 0 ? !0 : f, g = l.includePanelHTML, y = g === void 0 ? !1 : g, p = l.visiblePanelsOnly, m = p === void 0 ? !1 : p, b = this._camera, P = m ? this.visiblePanels : this.panels, v = {
|
|
6353
6353
|
panels: P.map(function(O) {
|
|
6354
6354
|
var S = {
|
|
6355
6355
|
index: O.index
|
|
@@ -6385,12 +6385,12 @@ var State = /* @__PURE__ */ function() {
|
|
|
6385
6385
|
})),
|
|
6386
6386
|
hasDOMInElements: !0
|
|
6387
6387
|
})), r != null) {
|
|
6388
|
-
var
|
|
6389
|
-
this.moveTo(
|
|
6388
|
+
var g = u ? r - u : r;
|
|
6389
|
+
this.moveTo(g, 0).catch(function() {
|
|
6390
6390
|
});
|
|
6391
6391
|
}
|
|
6392
6392
|
if (l && this._moveType === MOVE_TYPE.FREE_SCROLL) {
|
|
6393
|
-
var y = l.panel,
|
|
6393
|
+
var y = l.panel, p = l.progressInPanel, g = u ? y - u : y, m = f.panels[g].range, b = m.min + (m.max - m.min) * p;
|
|
6394
6394
|
_.moveToPosition(b, 0).catch(function() {
|
|
6395
6395
|
});
|
|
6396
6396
|
}
|
|
@@ -6411,7 +6411,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6411
6411
|
}), this;
|
|
6412
6412
|
}, t.resize = function() {
|
|
6413
6413
|
return __awaiter$1(this, void 0, void 0, function() {
|
|
6414
|
-
var e, n, r, l, u, d, f, _,
|
|
6414
|
+
var e, n, r, l, u, d, f, _, g, y, p;
|
|
6415
6415
|
return __generator$1(this, function(m) {
|
|
6416
6416
|
switch (m.label) {
|
|
6417
6417
|
case 0:
|
|
@@ -6437,14 +6437,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
6437
6437
|
/*return*/
|
|
6438
6438
|
];
|
|
6439
6439
|
case 6:
|
|
6440
|
-
return m.sent(), this._initialized ? (l.animating || (l.updatePosition(_), l.updateInput()),
|
|
6440
|
+
return m.sent(), this._initialized ? (l.animating || (l.updatePosition(_), l.updateInput()), g = e.width, y = e.height, p = g !== d || y !== f, this.trigger(new ComponentEvent$1(EVENTS.AFTER_RESIZE, {
|
|
6441
6441
|
width: e.width,
|
|
6442
6442
|
height: e.height,
|
|
6443
6443
|
prev: {
|
|
6444
6444
|
width: d,
|
|
6445
6445
|
height: f
|
|
6446
6446
|
},
|
|
6447
|
-
sizeChanged:
|
|
6447
|
+
sizeChanged: p,
|
|
6448
6448
|
element: e.element
|
|
6449
6449
|
})), this._isResizing = !1, [
|
|
6450
6450
|
2
|
|
@@ -6569,24 +6569,24 @@ var State = /* @__PURE__ */ function() {
|
|
|
6569
6569
|
var e = s.renderer, n = e.panels, r = __spread(i.prevList), l = [], u = [];
|
|
6570
6570
|
if (i.removed.length > 0) {
|
|
6571
6571
|
var d = -1, f = -1;
|
|
6572
|
-
i.removed.forEach(function(
|
|
6573
|
-
d < 0 && (d =
|
|
6572
|
+
i.removed.forEach(function(p) {
|
|
6573
|
+
d < 0 && (d = p), f >= 0 && p !== f - 1 && (u.push.apply(u, __spread(batchRemove(e, f, d + 1))), d = p), f = p, r.splice(p, 1);
|
|
6574
6574
|
}), u.push.apply(u, __spread(batchRemove(e, f, d + 1)));
|
|
6575
6575
|
}
|
|
6576
|
-
if (i.ordered.forEach(function(
|
|
6577
|
-
var m = __read(
|
|
6576
|
+
if (i.ordered.forEach(function(p) {
|
|
6577
|
+
var m = __read(p, 2), b = m[0], P = m[1], v = n.splice(b, 1)[0];
|
|
6578
6578
|
n.splice(P, 0, v);
|
|
6579
|
-
}), i.ordered.length > 0 && (n.forEach(function(
|
|
6580
|
-
var b = m -
|
|
6581
|
-
b > 0 ?
|
|
6582
|
-
}), n.sort(function(
|
|
6583
|
-
return
|
|
6584
|
-
}), n.forEach(function(
|
|
6585
|
-
|
|
6579
|
+
}), i.ordered.length > 0 && (n.forEach(function(p, m) {
|
|
6580
|
+
var b = m - p.index;
|
|
6581
|
+
b > 0 ? p.increaseIndex(b) : p.decreaseIndex(-b);
|
|
6582
|
+
}), n.sort(function(p, m) {
|
|
6583
|
+
return p.index - m.index;
|
|
6584
|
+
}), n.forEach(function(p) {
|
|
6585
|
+
p.updatePosition();
|
|
6586
6586
|
})), i.added.length > 0) {
|
|
6587
|
-
var _ = -1,
|
|
6588
|
-
i.added.forEach(function(
|
|
6589
|
-
_ < 0 && (_ = m),
|
|
6587
|
+
var _ = -1, g = -1, y = t.slice(r.length);
|
|
6588
|
+
i.added.forEach(function(p, m) {
|
|
6589
|
+
_ < 0 && (_ = m), g >= 0 && p !== g + 1 ? (l.push.apply(l, __spread(batchInsert(e, i, y, _, m + 1))), _ = -1, g = -1) : g = p;
|
|
6590
6590
|
}), _ >= 0 && l.push.apply(l, __spread(batchInsert(e, i, y, _)));
|
|
6591
6591
|
}
|
|
6592
6592
|
(i.added.length > 0 || i.removed.length > 0) && e.updateAfterPanelChange(l, u);
|
|
@@ -6656,10 +6656,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
6656
6656
|
if (r) {
|
|
6657
6657
|
var d = r.visiblePanels;
|
|
6658
6658
|
d.forEach(function(f) {
|
|
6659
|
-
var _ = f.outsetProgress,
|
|
6659
|
+
var _ = f.outsetProgress, g = f.element, y = l ? g.querySelector(l) : g;
|
|
6660
6660
|
if (y) {
|
|
6661
|
-
var
|
|
6662
|
-
y.style.opacity = "" +
|
|
6661
|
+
var p = Math.min(1, Math.max(0, 1 - Math.abs(_ * u)));
|
|
6662
|
+
y.style.opacity = "" + p;
|
|
6663
6663
|
}
|
|
6664
6664
|
});
|
|
6665
6665
|
}
|
|
@@ -6739,7 +6739,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6739
6739
|
return e;
|
|
6740
6740
|
}, Arrow = /* @__PURE__ */ function() {
|
|
6741
6741
|
function s(t) {
|
|
6742
|
-
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.prevElSelector, d = u === void 0 ? ARROW.PREV_SELECTOR : u, f = n.nextElSelector, _ = f === void 0 ? ARROW.NEXT_SELECTOR : f,
|
|
6742
|
+
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.prevElSelector, d = u === void 0 ? ARROW.PREV_SELECTOR : u, f = n.nextElSelector, _ = f === void 0 ? ARROW.NEXT_SELECTOR : f, g = n.disabledClass, y = g === void 0 ? ARROW.DISABLED_CLASS : g, p = n.moveCount, m = p === void 0 ? 1 : p, b = n.moveByViewportSize, P = b === void 0 ? !1 : b;
|
|
6743
6743
|
this._flicking = null, this._preventInputPropagation = function(v) {
|
|
6744
6744
|
v.stopPropagation();
|
|
6745
6745
|
}, this._onPrevClick = function() {
|
|
@@ -6952,28 +6952,28 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6952
6952
|
}), t.destroy = function() {
|
|
6953
6953
|
this._bullets = [], this._prevIndex = -1;
|
|
6954
6954
|
}, t.render = function() {
|
|
6955
|
-
var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, _ = r.renderActiveBullet,
|
|
6956
|
-
addClass(l,
|
|
6955
|
+
var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, _ = r.renderActiveBullet, g = r.classPrefix + "-" + PAGINATION.BULLET_WRAPPER_SUFFIX, y = n.camera.anchorPoints;
|
|
6956
|
+
addClass(l, g), l.innerHTML = y.map(function(m, b) {
|
|
6957
6957
|
return _ && m.panel.index === n.index ? _(u, b) : f(u, b);
|
|
6958
6958
|
}).join(`
|
|
6959
6959
|
`);
|
|
6960
|
-
var
|
|
6961
|
-
|
|
6960
|
+
var p = [].slice.call(l.children);
|
|
6961
|
+
p.forEach(function(m, b) {
|
|
6962
6962
|
var P = y[b];
|
|
6963
6963
|
P.panel.index === n.index && (addClass(m, d), e._prevIndex = b), e._addBulletEvents(m, b);
|
|
6964
|
-
}), this._bullets =
|
|
6964
|
+
}), this._bullets = p;
|
|
6965
6965
|
}, t.update = function(e) {
|
|
6966
|
-
var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, _ = this._prevIndex,
|
|
6967
|
-
if (!(
|
|
6968
|
-
var m =
|
|
6966
|
+
var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, _ = this._prevIndex, g = n.camera.anchorPoints, y = r.renderBullet, p = r.renderActiveBullet;
|
|
6967
|
+
if (!(g.length <= 0)) {
|
|
6968
|
+
var m = g[0].panel.index, b = e - m;
|
|
6969
6969
|
if (_ !== b) {
|
|
6970
|
-
if (
|
|
6970
|
+
if (p) {
|
|
6971
6971
|
var P = u[_];
|
|
6972
6972
|
if (P) {
|
|
6973
6973
|
var v = this._createBulletFromString(y(d, _), _);
|
|
6974
6974
|
P.parentElement.replaceChild(v, P), u[_] = v;
|
|
6975
6975
|
}
|
|
6976
|
-
var E = u[b], T = this._createBulletFromString(
|
|
6976
|
+
var E = u[b], T = this._createBulletFromString(p(d + " " + f, b), b);
|
|
6977
6977
|
l.replaceChild(T, E), u[b] = T;
|
|
6978
6978
|
} else {
|
|
6979
6979
|
var E = u[b], P = u[_];
|
|
@@ -6998,8 +6998,8 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6998
6998
|
}, t.update = function(e) {
|
|
6999
6999
|
var n = this._flicking, r = this._wrapper, l = this._pagination, u = n.camera.anchorPoints, d = u.length > 0 ? e - u[0].panel.index + 1 : 0, f = u.length;
|
|
7000
7000
|
if (!(d === this._prevIndex && f === this._prevTotal)) {
|
|
7001
|
-
var _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX,
|
|
7002
|
-
y.innerHTML = l.fractionCurrentFormat(d),
|
|
7001
|
+
var _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX, g = "." + l.classPrefix + "-" + PAGINATION.FRACTION_TOTAL_SUFFIX, y = r.querySelector(_), p = r.querySelector(g);
|
|
7002
|
+
y.innerHTML = l.fractionCurrentFormat(d), p.innerHTML = l.fractionTotalFormat(f), this._prevIndex = d, this._prevTotal = f;
|
|
7003
7003
|
}
|
|
7004
7004
|
}, i;
|
|
7005
7005
|
}(Renderer), ScrollBulletRenderer = /* @__PURE__ */ function(s) {
|
|
@@ -7015,12 +7015,12 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
7015
7015
|
return t.destroy = function() {
|
|
7016
7016
|
this._bullets = [], this._bulletSize = 0, this._previousIndex = -1, this._sliderIndex = -1;
|
|
7017
7017
|
}, t.render = function() {
|
|
7018
|
-
var e = this, n = this._wrapper, r = this._flicking, l = this._pagination, u = l.renderBullet, d = r.camera.anchorPoints, f = l.classPrefix + "-" + PAGINATION.SCROLL_WRAPPER_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX,
|
|
7019
|
-
addClass(
|
|
7018
|
+
var e = this, n = this._wrapper, r = this._flicking, l = this._pagination, u = l.renderBullet, d = r.camera.anchorPoints, f = l.classPrefix + "-" + PAGINATION.SCROLL_WRAPPER_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, g = l.classPrefix + "-" + PAGINATION.SCROLL_SLIDER_SUFFIX, y = l.classPrefix + "-" + PAGINATION.SCROLL_UNINIT_SUFFIX, p = document.createElement("div");
|
|
7019
|
+
addClass(p, g), addClass(n, y), addClass(n, f), n.appendChild(p), p.innerHTML = d.map(function(v, E) {
|
|
7020
7020
|
return u(_, E);
|
|
7021
7021
|
}).join(`
|
|
7022
7022
|
`);
|
|
7023
|
-
var m = [].slice.call(
|
|
7023
|
+
var m = [].slice.call(p.children);
|
|
7024
7024
|
if (m.forEach(function(v, E) {
|
|
7025
7025
|
e._addBulletEvents(v, E);
|
|
7026
7026
|
}), !(m.length <= 0)) {
|
|
@@ -7030,9 +7030,9 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
7030
7030
|
});
|
|
7031
7031
|
}
|
|
7032
7032
|
}, t.update = function(e) {
|
|
7033
|
-
var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, _ = r.camera.anchorPoints,
|
|
7033
|
+
var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, _ = r.camera.anchorPoints, g = _[0].panel.index, y = e - g;
|
|
7034
7034
|
if (!(_.length <= 0)) {
|
|
7035
|
-
var
|
|
7035
|
+
var p = 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, v = function(C) {
|
|
7036
7036
|
return "" + b + (C > 1 ? C : "");
|
|
7037
7037
|
}, E = function(C) {
|
|
7038
7038
|
return "" + P + (C > 1 ? C : "");
|
|
@@ -7040,12 +7040,12 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
7040
7040
|
if (f) {
|
|
7041
7041
|
var S = l[u];
|
|
7042
7042
|
if (S) {
|
|
7043
|
-
var k = this._createBulletFromString(d(
|
|
7043
|
+
var k = this._createBulletFromString(d(p, u), u);
|
|
7044
7044
|
S.parentElement.replaceChild(k, S), l[u] = k;
|
|
7045
7045
|
}
|
|
7046
7046
|
var R = l[y];
|
|
7047
7047
|
if (R) {
|
|
7048
|
-
var A = this._createBulletFromString(f(
|
|
7048
|
+
var A = this._createBulletFromString(f(p, y), y);
|
|
7049
7049
|
R.parentElement.replaceChild(A, R), l[y] = A;
|
|
7050
7050
|
}
|
|
7051
7051
|
}
|
|
@@ -7067,7 +7067,7 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
7067
7067
|
}, i;
|
|
7068
7068
|
}(Renderer), Pagination = /* @__PURE__ */ function() {
|
|
7069
7069
|
function s(t) {
|
|
7070
|
-
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.selector, d = u === void 0 ? PAGINATION.SELECTOR : u, f = n.type, _ = f === void 0 ? PAGINATION.TYPE.BULLET : f,
|
|
7070
|
+
var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.selector, d = u === void 0 ? PAGINATION.SELECTOR : u, f = n.type, _ = f === void 0 ? PAGINATION.TYPE.BULLET : f, g = n.classPrefix, y = g === void 0 ? PAGINATION.PREFIX : g, p = n.bulletCount, m = p === void 0 ? 5 : p, b = n.renderBullet, P = b === void 0 ? function(w) {
|
|
7071
7071
|
return '<span class="' + w + '"></span>';
|
|
7072
7072
|
} : b, v = n.renderActiveBullet, E = v === void 0 ? null : v, T = n.renderFraction, O = T === void 0 ? function(w, x) {
|
|
7073
7073
|
return '<span class="' + w + '"></span>/<span class="' + x + '"></span>';
|
|
@@ -7267,8 +7267,8 @@ function orderChanged(s, i) {
|
|
|
7267
7267
|
return [0, 0];
|
|
7268
7268
|
var d = t[l], f = e[u - 1], _ = d.getIndex();
|
|
7269
7269
|
d.disconnect(), f ? d.connect(f, f.next) : d.connect(void 0, t[0]);
|
|
7270
|
-
var
|
|
7271
|
-
return [_,
|
|
7270
|
+
var g = d.getIndex();
|
|
7271
|
+
return [_, g];
|
|
7272
7272
|
});
|
|
7273
7273
|
}
|
|
7274
7274
|
var Result = /* @__PURE__ */ function() {
|
|
@@ -7291,27 +7291,27 @@ var Result = /* @__PURE__ */ function() {
|
|
|
7291
7291
|
}), i.caculateOrdered = function() {
|
|
7292
7292
|
var t = orderChanged(this.changedBeforeAdded, this.fixed), e = this.changed, n = [];
|
|
7293
7293
|
this.cacheOrdered = t.filter(function(r, l) {
|
|
7294
|
-
var u = r[0], d = r[1], f = e[l], _ = f[0],
|
|
7294
|
+
var u = r[0], d = r[1], f = e[l], _ = f[0], g = f[1];
|
|
7295
7295
|
if (u !== d)
|
|
7296
|
-
return n.push([_,
|
|
7296
|
+
return n.push([_, g]), !0;
|
|
7297
7297
|
}), this.cachePureChanged = n;
|
|
7298
7298
|
}, s;
|
|
7299
7299
|
}();
|
|
7300
7300
|
function diff(s, i, t) {
|
|
7301
7301
|
var e = SUPPORT_MAP ? Map : t ? HashMap : PolyMap, n = t || function(E) {
|
|
7302
7302
|
return E;
|
|
7303
|
-
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n), _ = new e(),
|
|
7303
|
+
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n), _ = new e(), g = new e(), y = [], p = [], m = {}, b = [], P = 0, v = 0;
|
|
7304
7304
|
return d.forEach(function(E, T) {
|
|
7305
7305
|
_.set(E, T);
|
|
7306
7306
|
}), f.forEach(function(E, T) {
|
|
7307
|
-
|
|
7307
|
+
g.set(E, T);
|
|
7308
7308
|
}), d.forEach(function(E, T) {
|
|
7309
|
-
var O =
|
|
7309
|
+
var O = g.get(E);
|
|
7310
7310
|
typeof O > "u" ? (++v, l.push(T)) : m[O] = v;
|
|
7311
7311
|
}), f.forEach(function(E, T) {
|
|
7312
7312
|
var O = _.get(E);
|
|
7313
|
-
typeof O > "u" ? (r.push(T), ++P) : (u.push([O, T]), v = m[T] || 0, y.push([O - v, T - P]),
|
|
7314
|
-
}), l.reverse(), new Result(s, i, r, l, b, u, y,
|
|
7313
|
+
typeof O > "u" ? (r.push(T), ++P) : (u.push([O, T]), v = m[T] || 0, y.push([O - v, T - P]), p.push(T === O), O !== T && b.push([O, T]));
|
|
7314
|
+
}), l.reverse(), new Result(s, i, r, l, b, u, y, p);
|
|
7315
7315
|
}
|
|
7316
7316
|
var ListDiffer = /* @__PURE__ */ function() {
|
|
7317
7317
|
function s(t, e) {
|
|
@@ -7380,15 +7380,15 @@ function __awaiter(s, i, t, e) {
|
|
|
7380
7380
|
function u(_) {
|
|
7381
7381
|
try {
|
|
7382
7382
|
f(e.next(_));
|
|
7383
|
-
} catch (
|
|
7384
|
-
l(
|
|
7383
|
+
} catch (g) {
|
|
7384
|
+
l(g);
|
|
7385
7385
|
}
|
|
7386
7386
|
}
|
|
7387
7387
|
function d(_) {
|
|
7388
7388
|
try {
|
|
7389
7389
|
f(e.throw(_));
|
|
7390
|
-
} catch (
|
|
7391
|
-
l(
|
|
7390
|
+
} catch (g) {
|
|
7391
|
+
l(g);
|
|
7392
7392
|
}
|
|
7393
7393
|
}
|
|
7394
7394
|
function f(_) {
|
|
@@ -7780,13 +7780,13 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7780
7780
|
get: () => e.idx,
|
|
7781
7781
|
set: (m) => f(m)
|
|
7782
7782
|
});
|
|
7783
|
-
function
|
|
7783
|
+
function g(m) {
|
|
7784
7784
|
_.value = m.index;
|
|
7785
7785
|
}
|
|
7786
7786
|
function y(m) {
|
|
7787
7787
|
n.value.moveTo(m);
|
|
7788
7788
|
}
|
|
7789
|
-
function
|
|
7789
|
+
function p() {
|
|
7790
7790
|
t("opened");
|
|
7791
7791
|
}
|
|
7792
7792
|
return watch(_, (m) => {
|
|
@@ -7812,14 +7812,14 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7812
7812
|
},
|
|
7813
7813
|
class: "konnectio-flicking-gallery",
|
|
7814
7814
|
plugins: r.value,
|
|
7815
|
-
onChanged:
|
|
7815
|
+
onChanged: g
|
|
7816
7816
|
}, {
|
|
7817
7817
|
viewport: withCtx(() => [
|
|
7818
7818
|
createBaseVNode("div", _hoisted_1$c, [
|
|
7819
7819
|
m.isListing ? (openBlock(), createElementBlock("div", {
|
|
7820
7820
|
key: 0,
|
|
7821
7821
|
class: "konnectio-gallery-image-overlay",
|
|
7822
|
-
onClick: withModifiers(
|
|
7822
|
+
onClick: withModifiers(p, ["prevent"])
|
|
7823
7823
|
})) : createCommentVNode("", !0),
|
|
7824
7824
|
createBaseVNode("span", _hoisted_2$9, [
|
|
7825
7825
|
createVNode(Icon, {
|
|
@@ -7856,7 +7856,7 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7856
7856
|
{ "has-zoom": m.isListing }
|
|
7857
7857
|
]),
|
|
7858
7858
|
src: m.gallery[0].large || m.gallery[0].url,
|
|
7859
|
-
onClick: withModifiers(
|
|
7859
|
+
onClick: withModifiers(p, ["prevent"])
|
|
7860
7860
|
}, null, 10, _hoisted_5$6)) : createCommentVNode("", !0)
|
|
7861
7861
|
]));
|
|
7862
7862
|
}
|
|
@@ -7893,14 +7893,14 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7893
7893
|
let T = v.getMonth() + 1, O = v.getDate();
|
|
7894
7894
|
return O < 10 && (O = "0" + O), T < 10 && (T = "0" + T), `${E}-${T}-${O}`;
|
|
7895
7895
|
}
|
|
7896
|
-
const
|
|
7896
|
+
const g = computed$1(() => {
|
|
7897
7897
|
const v = new URL(window.location.origin + window.location.pathname);
|
|
7898
7898
|
return n.type !== "event" ? (v.searchParams.set("id", n.listingId.toString()), v.searchParams.set("ci", _(r.currentArrivalDate)), v.searchParams.set("co", _(r.currentDepartureDate)), f.defaultAdultAmount !== r.currentAdults && v.searchParams.set("a", r.currentAdults.toString()), f.defaultChildAmount !== r.currentChildren && v.searchParams.set("c", r.currentChildren.toString()), d.hasHotelLocations && v.searchParams.set("hid", r.currentLocation.toString()), r.guestDiscountId && v.searchParams.set("gid", r.guestDiscountId.toString())) : (v.searchParams.set("d", _(l.value)), v.searchParams.set("eid", n.listingId.toString()), d.hasEventLocations && v.searchParams.set("rid", u.value.toString())), v.href;
|
|
7899
7899
|
});
|
|
7900
7900
|
function y(v) {
|
|
7901
7901
|
t("update:idx", v);
|
|
7902
7902
|
}
|
|
7903
|
-
const
|
|
7903
|
+
const p = computed$1({
|
|
7904
7904
|
get: () => n.idx,
|
|
7905
7905
|
set: (v) => y(v)
|
|
7906
7906
|
}), m = ref("testVueMasonry"), b = inject("redrawVueMasonry");
|
|
@@ -7917,8 +7917,8 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7917
7917
|
v.gallery ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
7918
7918
|
createVNode(Gallery, {
|
|
7919
7919
|
gallery: v.gallery,
|
|
7920
|
-
idx:
|
|
7921
|
-
"onUpdate:idx": E[0] || (E[0] = (S) =>
|
|
7920
|
+
idx: p.value,
|
|
7921
|
+
"onUpdate:idx": E[0] || (E[0] = (S) => p.value = S)
|
|
7922
7922
|
}, null, 8, ["gallery", "idx"])
|
|
7923
7923
|
])) : createCommentVNode("", !0),
|
|
7924
7924
|
createBaseVNode("div", _hoisted_2$8, [
|
|
@@ -7960,8 +7960,8 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7960
7960
|
fn: withCtx(() => [
|
|
7961
7961
|
createBaseVNode("div", _hoisted_7$5, [
|
|
7962
7962
|
createVNode(TextField, {
|
|
7963
|
-
modelValue:
|
|
7964
|
-
"onUpdate:modelValue": E[1] || (E[1] = (S) =>
|
|
7963
|
+
modelValue: g.value,
|
|
7964
|
+
"onUpdate:modelValue": E[1] || (E[1] = (S) => g.value = S),
|
|
7965
7965
|
icon: "share-nodes",
|
|
7966
7966
|
"icon-placement": "label",
|
|
7967
7967
|
"icon-type": "fas",
|
|
@@ -8133,13 +8133,13 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8133
8133
|
return typeof e?.maxHeight == "number" ? `${e?.maxHeight}px` : e?.maxHeight;
|
|
8134
8134
|
}), _ = () => {
|
|
8135
8135
|
u.value && (u.value.innerHTML = convertDescription(R.value));
|
|
8136
|
-
},
|
|
8136
|
+
}, g = () => {
|
|
8137
8137
|
d.localExpanded || (_(), (m() || k.value) && P());
|
|
8138
8138
|
}, y = () => {
|
|
8139
|
-
e.text && (d.offset = e.text.length,
|
|
8140
|
-
r.value && removeListener(r.value,
|
|
8141
|
-
}),
|
|
8142
|
-
},
|
|
8139
|
+
e.text && (d.offset = e.text.length, p(), e.autoResize && r.value && (addListener(r.value, g), d.unregisterResizeCallback = () => {
|
|
8140
|
+
r.value && removeListener(r.value, g);
|
|
8141
|
+
}), g());
|
|
8142
|
+
}, p = () => {
|
|
8143
8143
|
d.unregisterResizeCallback?.();
|
|
8144
8144
|
}, m = () => !e.maxLines && !e.maxHeight || !r.value ? !1 : !!(e.maxLines && b() > e.maxLines || e.maxHeight && r.value.scrollHeight > r.value.offsetHeight), b = () => l.value ? Object.keys(
|
|
8145
8145
|
Array.prototype.slice.call(l.value.getClientRects()).reduce((x, { top: D, bottom: L }) => {
|
|
@@ -8199,13 +8199,13 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8199
8199
|
), watch(
|
|
8200
8200
|
() => d.localExpanded,
|
|
8201
8201
|
(x) => {
|
|
8202
|
-
x ? v(e.text.length) :
|
|
8202
|
+
x ? v(e.text.length) : g(), e.expanded !== x && n("update:expanded", x);
|
|
8203
8203
|
}
|
|
8204
8204
|
), watch(
|
|
8205
8205
|
() => [e.maxLines, e.maxHeight, e.ellipsis, e.location, k.value].join(),
|
|
8206
8206
|
() => {
|
|
8207
8207
|
nextTick(() => {
|
|
8208
|
-
|
|
8208
|
+
g();
|
|
8209
8209
|
});
|
|
8210
8210
|
}
|
|
8211
8211
|
), watch(
|
|
@@ -8216,7 +8216,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8216
8216
|
});
|
|
8217
8217
|
}
|
|
8218
8218
|
), onUnmounted(() => {
|
|
8219
|
-
|
|
8219
|
+
p();
|
|
8220
8220
|
}), onMounted(() => {
|
|
8221
8221
|
y();
|
|
8222
8222
|
}), (x, D) => (openBlock(), createElementBlock("div", {
|
|
@@ -8292,30 +8292,30 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8292
8292
|
function f() {
|
|
8293
8293
|
t.value = !0;
|
|
8294
8294
|
}
|
|
8295
|
-
function _(
|
|
8295
|
+
function _(g) {
|
|
8296
8296
|
let y = "";
|
|
8297
|
-
return
|
|
8298
|
-
y += `<li>${
|
|
8297
|
+
return g.forEach(({ name: p }) => {
|
|
8298
|
+
y += `<li>${p}</li>`;
|
|
8299
8299
|
}), `<ul>${y}</ul>`;
|
|
8300
8300
|
}
|
|
8301
|
-
return (
|
|
8302
|
-
const
|
|
8301
|
+
return (g, y) => {
|
|
8302
|
+
const p = resolveDirective("tooltip");
|
|
8303
8303
|
return openBlock(), createElementBlock("li", {
|
|
8304
8304
|
class: normalizeClass([
|
|
8305
8305
|
"konnectio-listing",
|
|
8306
|
-
{ "no-gallery": !
|
|
8307
|
-
{ "only-featured":
|
|
8306
|
+
{ "no-gallery": !g.gallery || g.gallery.length === 0 },
|
|
8307
|
+
{ "only-featured": g.gallery && g.gallery.length === 1 }
|
|
8308
8308
|
])
|
|
8309
8309
|
}, [
|
|
8310
|
-
|
|
8310
|
+
g.gallery ? (openBlock(), createElementBlock("div", {
|
|
8311
8311
|
key: 0,
|
|
8312
8312
|
class: normalizeClass([
|
|
8313
8313
|
"konnectio-listing-featured",
|
|
8314
|
-
{ "single-image":
|
|
8314
|
+
{ "single-image": g.gallery.length === 1 }
|
|
8315
8315
|
])
|
|
8316
8316
|
}, [
|
|
8317
8317
|
createVNode(Gallery, {
|
|
8318
|
-
gallery:
|
|
8318
|
+
gallery: g.gallery,
|
|
8319
8319
|
idx: e.value,
|
|
8320
8320
|
"onUpdate:idx": y[0] || (y[0] = (m) => e.value = m),
|
|
8321
8321
|
"is-listing": !0,
|
|
@@ -8332,11 +8332,11 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8332
8332
|
])
|
|
8333
8333
|
}, [
|
|
8334
8334
|
createBaseVNode("h3", {
|
|
8335
|
-
title: unref(capitalized)(
|
|
8336
|
-
class: normalizeClass({ "no-padding":
|
|
8335
|
+
title: unref(capitalized)(g.name),
|
|
8336
|
+
class: normalizeClass({ "no-padding": g.hideInfoButton })
|
|
8337
8337
|
}, [
|
|
8338
|
-
createBaseVNode("span", null, toDisplayString(unref(capitalized)(
|
|
8339
|
-
|
|
8338
|
+
createBaseVNode("span", null, toDisplayString(unref(capitalized)(g.name)), 1),
|
|
8339
|
+
g.hideInfoButton ? createCommentVNode("", !0) : (openBlock(), createElementBlock("button", {
|
|
8340
8340
|
key: 0,
|
|
8341
8341
|
class: "konnectio-listing-read-more",
|
|
8342
8342
|
type: "button",
|
|
@@ -8348,38 +8348,38 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8348
8348
|
})
|
|
8349
8349
|
]))
|
|
8350
8350
|
], 10, _hoisted_3$6),
|
|
8351
|
-
d.value ||
|
|
8351
|
+
d.value || g.includesBreakfast || g.fromDate && g.toDate || g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("ul", _hoisted_4$5, [
|
|
8352
8352
|
d.value ? (openBlock(), createElementBlock("li", _hoisted_5$4, [
|
|
8353
|
-
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.pricesFrom")}: ${unref(showPrice)(
|
|
8353
|
+
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.pricesFrom")}: ${unref(showPrice)(g.pricesFrom, unref(l))}`), 1)
|
|
8354
8354
|
])) : createCommentVNode("", !0),
|
|
8355
|
-
|
|
8355
|
+
g.includesBreakfast ? (openBlock(), createElementBlock("li", _hoisted_6$4, [
|
|
8356
8356
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.breakfastIncluded")), 1),
|
|
8357
8357
|
createCommentVNode("", !0)
|
|
8358
8358
|
])) : createCommentVNode("", !0),
|
|
8359
|
-
|
|
8360
|
-
createBaseVNode("span", null, toDisplayString(`${unref(showDate)(
|
|
8361
|
-
])) :
|
|
8362
|
-
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.availableUntil")}: ${unref(showDate)(
|
|
8359
|
+
g.fromDate && g.toDate ? (openBlock(), createElementBlock("li", _hoisted_7$4, [
|
|
8360
|
+
createBaseVNode("span", null, toDisplayString(`${unref(showDate)(g.fromDate)} - ${unref(showDate)(g.toDate)}`), 1)
|
|
8361
|
+
])) : g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("li", _hoisted_8$3, [
|
|
8362
|
+
createBaseVNode("span", null, toDisplayString(`${unref(i)("general.availableUntil")}: ${unref(showDate)(g.toDate)}`), 1)
|
|
8363
8363
|
])) : createCommentVNode("", !0)
|
|
8364
8364
|
])) : createCommentVNode("", !0)
|
|
8365
8365
|
], 2),
|
|
8366
8366
|
createBaseVNode("div", _hoisted_9$2, [
|
|
8367
|
-
renderSlot(
|
|
8368
|
-
|
|
8367
|
+
renderSlot(g.$slots, "description", {}, () => [
|
|
8368
|
+
g.description ? (openBlock(), createBlock(_sfc_main$9, {
|
|
8369
8369
|
key: 0,
|
|
8370
|
-
text:
|
|
8370
|
+
text: g.description
|
|
8371
8371
|
}, null, 8, ["text"])) : createCommentVNode("", !0)
|
|
8372
8372
|
])
|
|
8373
8373
|
]),
|
|
8374
|
-
|
|
8375
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8374
|
+
g.facilities ? (openBlock(), createElementBlock("ul", _hoisted_10$2, [
|
|
8375
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(g.facilities, ({ icon: m, name: b, subFacilities: P }) => (openBlock(), createElementBlock(Fragment, null, [
|
|
8376
8376
|
m ? withDirectives((openBlock(), createElementBlock("li", { key: b }, [
|
|
8377
8377
|
createVNode(Icon, {
|
|
8378
8378
|
icon: m,
|
|
8379
8379
|
color: "header"
|
|
8380
8380
|
}, null, 8, ["icon"])
|
|
8381
8381
|
])), [
|
|
8382
|
-
[
|
|
8382
|
+
[p, {
|
|
8383
8383
|
content: _(P),
|
|
8384
8384
|
classes: ["tooltip", "konnectio-tooltip"],
|
|
8385
8385
|
html: !0
|
|
@@ -8389,21 +8389,21 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8389
8389
|
])) : createCommentVNode("", !0)
|
|
8390
8390
|
]),
|
|
8391
8391
|
createBaseVNode("div", _hoisted_11$2, [
|
|
8392
|
-
renderSlot(
|
|
8392
|
+
renderSlot(g.$slots, "action")
|
|
8393
8393
|
]),
|
|
8394
|
-
renderSlot(
|
|
8394
|
+
renderSlot(g.$slots, "default"),
|
|
8395
8395
|
createVNode(SidePanel, {
|
|
8396
8396
|
modelValue: t.value,
|
|
8397
8397
|
"onUpdate:modelValue": y[2] || (y[2] = (m) => t.value = m),
|
|
8398
|
-
"listing-id":
|
|
8399
|
-
type:
|
|
8400
|
-
title:
|
|
8401
|
-
description:
|
|
8402
|
-
gallery:
|
|
8398
|
+
"listing-id": g.listingId,
|
|
8399
|
+
type: g.type,
|
|
8400
|
+
title: g.name,
|
|
8401
|
+
description: g.description,
|
|
8402
|
+
gallery: g.gallery,
|
|
8403
8403
|
idx: e.value,
|
|
8404
8404
|
"onUpdate:idx": y[3] || (y[3] = (m) => e.value = m),
|
|
8405
|
-
facilities:
|
|
8406
|
-
"disable-deep-link":
|
|
8405
|
+
facilities: g.facilities,
|
|
8406
|
+
"disable-deep-link": g.disableDeepLink
|
|
8407
8407
|
}, null, 8, ["modelValue", "listing-id", "type", "title", "description", "gallery", "idx", "facilities", "disable-deep-link"])
|
|
8408
8408
|
])
|
|
8409
8409
|
], 2);
|
|
@@ -8438,7 +8438,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8438
8438
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(l.checkboxes, ({ label: d, value: f }, _) => (openBlock(), createElementBlock("li", { key: _ }, [
|
|
8439
8439
|
createVNode(Checkbox, {
|
|
8440
8440
|
modelValue: r.value,
|
|
8441
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
8441
|
+
"onUpdate:modelValue": u[0] || (u[0] = (g) => r.value = g),
|
|
8442
8442
|
label: d,
|
|
8443
8443
|
name: l.name,
|
|
8444
8444
|
type: "radio",
|
|
@@ -8460,11 +8460,11 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8460
8460
|
},
|
|
8461
8461
|
emits: ["reset"],
|
|
8462
8462
|
setup(s, { emit: i }) {
|
|
8463
|
-
const t = i, { headerHeight: e } = storeToRefs(useUtilityStore()), n = s, r = ref(0), l = ref(), u = computed$1(() => n.steps.filter((
|
|
8463
|
+
const t = i, { headerHeight: e } = storeToRefs(useUtilityStore()), n = s, r = ref(0), l = ref(), u = computed$1(() => n.steps.filter((p) => !p.hidden)), d = computed$1(() => n.steps[r.value].id), f = () => {
|
|
8464
8464
|
if (l.value) {
|
|
8465
|
-
const
|
|
8466
|
-
if (
|
|
8467
|
-
const b = l.value.getBoundingClientRect().top + window.scrollY -
|
|
8465
|
+
const p = e.value;
|
|
8466
|
+
if (p && p > 0) {
|
|
8467
|
+
const b = l.value.getBoundingClientRect().top + window.scrollY - p;
|
|
8468
8468
|
window.scrollTo({
|
|
8469
8469
|
top: b,
|
|
8470
8470
|
behavior: "smooth"
|
|
@@ -8472,10 +8472,10 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8472
8472
|
} else
|
|
8473
8473
|
l.value.scrollIntoView({ behavior: "smooth" });
|
|
8474
8474
|
}
|
|
8475
|
-
}, _ = (
|
|
8476
|
-
r.value = r.value +
|
|
8477
|
-
},
|
|
8478
|
-
r.value = r.value -
|
|
8475
|
+
}, _ = (p = 1) => {
|
|
8476
|
+
r.value = r.value + p, f();
|
|
8477
|
+
}, g = (p = 1) => {
|
|
8478
|
+
r.value = r.value - p, f();
|
|
8479
8479
|
};
|
|
8480
8480
|
function y() {
|
|
8481
8481
|
r.value = 0, f();
|
|
@@ -8484,7 +8484,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8484
8484
|
f();
|
|
8485
8485
|
}), watch(r, () => {
|
|
8486
8486
|
r.value === 0 && t("reset");
|
|
8487
|
-
}), (
|
|
8487
|
+
}), (p, m) => (openBlock(), createElementBlock("div", {
|
|
8488
8488
|
id: "konnectio-multi-step-form",
|
|
8489
8489
|
ref_key: "multiStepForm",
|
|
8490
8490
|
ref: l
|
|
@@ -8493,11 +8493,11 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8493
8493
|
createBaseVNode("header", _hoisted_1$7, [
|
|
8494
8494
|
createBaseVNode("div", _hoisted_2$5, [
|
|
8495
8495
|
createBaseVNode("div", null, [
|
|
8496
|
-
|
|
8497
|
-
createBaseVNode("span", null, toDisplayString(
|
|
8496
|
+
p.title && p.layout !== unref(BookingHeaderLayout).Minimal ? (openBlock(), createElementBlock("h2", _hoisted_3$5, [
|
|
8497
|
+
createBaseVNode("span", null, toDisplayString(p.title), 1)
|
|
8498
8498
|
])) : createCommentVNode("", !0),
|
|
8499
|
-
|
|
8500
|
-
createBaseVNode("span", null, toDisplayString(
|
|
8499
|
+
p.subtitle && p.layout !== unref(BookingHeaderLayout).Minimal ? (openBlock(), createElementBlock("h5", _hoisted_4$4, [
|
|
8500
|
+
createBaseVNode("span", null, toDisplayString(p.subtitle), 1)
|
|
8501
8501
|
])) : createCommentVNode("", !0),
|
|
8502
8502
|
createBaseVNode("ul", _hoisted_5$3, [
|
|
8503
8503
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(u.value, (b, P) => (openBlock(), createElementBlock("li", {
|
|
@@ -8517,14 +8517,14 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
|
|
|
8517
8517
|
])
|
|
8518
8518
|
]),
|
|
8519
8519
|
createBaseVNode("ul", _hoisted_7$3, [
|
|
8520
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8520
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(p.steps, (b) => (openBlock(), createElementBlock("li", {
|
|
8521
8521
|
key: b.id,
|
|
8522
8522
|
class: "konnectio-multi-step-form-content-tab"
|
|
8523
8523
|
}, [
|
|
8524
8524
|
withDirectives(createBaseVNode("div", null, [
|
|
8525
|
-
renderSlot(
|
|
8525
|
+
renderSlot(p.$slots, b.id, {
|
|
8526
8526
|
next: _,
|
|
8527
|
-
prev:
|
|
8527
|
+
prev: g,
|
|
8528
8528
|
reset: y
|
|
8529
8529
|
}, void 0, !0)
|
|
8530
8530
|
], 512), [
|
|
@@ -8917,9 +8917,9 @@ const StickySidebar = /* @__PURE__ */ (() => {
|
|
|
8917
8917
|
*/
|
|
8918
8918
|
static supportTransform(n) {
|
|
8919
8919
|
var r = !1, l = n ? "perspective" : "transform", u = l.charAt(0).toUpperCase() + l.slice(1), d = ["Webkit", "Moz", "O", "ms"], f = document.createElement("support"), _ = f.style;
|
|
8920
|
-
return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(
|
|
8921
|
-
if (_[
|
|
8922
|
-
return r =
|
|
8920
|
+
return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(g, y) {
|
|
8921
|
+
if (_[g] !== void 0)
|
|
8922
|
+
return r = g, !1;
|
|
8923
8923
|
}), r;
|
|
8924
8924
|
}
|
|
8925
8925
|
/**
|
|
@@ -9119,9 +9119,9 @@ const _hoisted_1$3 = {
|
|
|
9119
9119
|
headerHeight: d
|
|
9120
9120
|
} = storeToRefs(useUtilityStore()), f = useHotelStore(), {
|
|
9121
9121
|
amount: _,
|
|
9122
|
-
voucher:
|
|
9122
|
+
voucher: g,
|
|
9123
9123
|
isLoading: y
|
|
9124
|
-
} = storeToRefs(useApplyGiftCardStore()), { apply:
|
|
9124
|
+
} = storeToRefs(useApplyGiftCardStore()), { apply: p, reset: m } = useApplyGiftCardStore(), b = useSlots(), P = useModel(s, "discountCode"), v = s, E = computed$1(() => v.basePrice - v.weekendFee - v.roomUpgrade), T = ref("discount"), O = computed$1(() => T.value === "discount"), S = computed$1(() => T.value === "gift-card"), k = computed$1(() => !t.value || !e.value), R = computed$1(() => !t.value && !e.value), A = (C) => {
|
|
9125
9125
|
T.value = C;
|
|
9126
9126
|
};
|
|
9127
9127
|
return onMounted(() => {
|
|
@@ -9285,15 +9285,15 @@ const _hoisted_1$3 = {
|
|
|
9285
9285
|
onAction: N[4] || (N[4] = (x) => C.validateDiscountCode())
|
|
9286
9286
|
}, null, 8, ["modelValue", "placeholder", "is-loading"])) : S.value ? (openBlock(), createBlock(ActionField, {
|
|
9287
9287
|
key: 1,
|
|
9288
|
-
modelValue: unref(
|
|
9289
|
-
"onUpdate:modelValue": N[5] || (N[5] = (x) => isRef(
|
|
9288
|
+
modelValue: unref(g),
|
|
9289
|
+
"onUpdate:modelValue": N[5] || (N[5] = (x) => isRef(g) ? g.value = x : null),
|
|
9290
9290
|
icon: "gift-card",
|
|
9291
9291
|
"button-icon": "paper-plane-top",
|
|
9292
9292
|
placeholder: "XXXXXXXX",
|
|
9293
9293
|
action: "success",
|
|
9294
9294
|
secondary: !0,
|
|
9295
9295
|
"is-loading": unref(y),
|
|
9296
|
-
onAction: N[6] || (N[6] = (x) => unref(
|
|
9296
|
+
onAction: N[6] || (N[6] = (x) => unref(p)())
|
|
9297
9297
|
}, null, 8, ["modelValue", "is-loading"])) : createCommentVNode("", !0)
|
|
9298
9298
|
]),
|
|
9299
9299
|
_: 1
|
|
@@ -9301,7 +9301,7 @@ const _hoisted_1$3 = {
|
|
|
9301
9301
|
])
|
|
9302
9302
|
])
|
|
9303
9303
|
])) : createCommentVNode("", !0),
|
|
9304
|
-
C.notice && C.notice !== "<br>" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
9304
|
+
C.notice && C.notice !== "<br>" && C.notice !== "<p><br></p>" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
9305
9305
|
createBaseVNode("p", {
|
|
9306
9306
|
innerHTML: C.notice,
|
|
9307
9307
|
class: "konnectio-wysiwyg"
|
|
@@ -9358,7 +9358,7 @@ const _hoisted_1$3 = {
|
|
|
9358
9358
|
]);
|
|
9359
9359
|
};
|
|
9360
9360
|
}
|
|
9361
|
-
}), ReservationForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
9361
|
+
}), ReservationForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cd2467a1"]]), _hoisted_1$2 = {
|
|
9362
9362
|
id: "konnectio-confirmation",
|
|
9363
9363
|
class: "konnectio-panel"
|
|
9364
9364
|
}, _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 = { class: "konnectio-order-lines" }, _hoisted_7$1 = { key: 0 }, _hoisted_8$1 = { class: "konnectio-order-panel" }, _hoisted_9 = { class: "konnectio-order-lines" }, _hoisted_10 = { key: 0 }, _hoisted_11 = { key: 1 }, _hoisted_12 = { key: 2 }, _hoisted_13 = {
|
|
@@ -9383,9 +9383,9 @@ const _hoisted_1$3 = {
|
|
|
9383
9383
|
children: d,
|
|
9384
9384
|
offerDate: f,
|
|
9385
9385
|
totalPrice: _,
|
|
9386
|
-
totalVAT:
|
|
9386
|
+
totalVAT: g,
|
|
9387
9387
|
subTotalPrice: y
|
|
9388
|
-
} = storeToRefs(usePaymentStore()), { currency:
|
|
9388
|
+
} = storeToRefs(usePaymentStore()), { currency: p } = storeToRefs(useUtilityStore()), m = useHotelStore();
|
|
9389
9389
|
return (b, P) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
9390
9390
|
createBaseVNode("div", _hoisted_2$1, [
|
|
9391
9391
|
createBaseVNode("h2", _hoisted_3$1, [
|
|
@@ -9464,10 +9464,10 @@ const _hoisted_1$3 = {
|
|
|
9464
9464
|
createBaseVNode("span", null, toDisplayString(E), 1)
|
|
9465
9465
|
]),
|
|
9466
9466
|
createBaseVNode("td", _hoisted_18, [
|
|
9467
|
-
createBaseVNode("span", null, toDisplayString(unref(showPrice)(T, unref(
|
|
9467
|
+
createBaseVNode("span", null, toDisplayString(unref(showPrice)(T, unref(p))), 1)
|
|
9468
9468
|
]),
|
|
9469
9469
|
createBaseVNode("td", null, [
|
|
9470
|
-
createBaseVNode("span", null, toDisplayString(unref(showPrice)(O, unref(
|
|
9470
|
+
createBaseVNode("span", null, toDisplayString(unref(showPrice)(O, unref(p))), 1)
|
|
9471
9471
|
])
|
|
9472
9472
|
]))), 128))
|
|
9473
9473
|
])
|
|
@@ -9476,15 +9476,15 @@ const _hoisted_1$3 = {
|
|
|
9476
9476
|
createBaseVNode("ul", _hoisted_19, [
|
|
9477
9477
|
unref(y) ? (openBlock(), createElementBlock("li", _hoisted_20, [
|
|
9478
9478
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.subTotal")), 1),
|
|
9479
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(y), unref(
|
|
9479
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(y), unref(p))), 1)
|
|
9480
9480
|
])) : createCommentVNode("", !0),
|
|
9481
|
-
unref(
|
|
9481
|
+
unref(g) ? (openBlock(), createElementBlock("li", _hoisted_21, [
|
|
9482
9482
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.vat")), 1),
|
|
9483
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(
|
|
9483
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(g), unref(p))), 1)
|
|
9484
9484
|
])) : createCommentVNode("", !0),
|
|
9485
9485
|
unref(_) ? (openBlock(), createElementBlock("li", _hoisted_22, [
|
|
9486
9486
|
createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.totalPrice")), 1),
|
|
9487
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(_), unref(
|
|
9487
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(_), unref(p))), 1)
|
|
9488
9488
|
])) : createCommentVNode("", !0)
|
|
9489
9489
|
])
|
|
9490
9490
|
]));
|
|
@@ -9805,14 +9805,14 @@ function requireGetSize() {
|
|
|
9805
9805
|
(function(i, t) {
|
|
9806
9806
|
s.exports ? s.exports = t() : i.getSize = t();
|
|
9807
9807
|
})(window, function() {
|
|
9808
|
-
function t(
|
|
9809
|
-
var m = parseFloat(
|
|
9808
|
+
function t(p) {
|
|
9809
|
+
var m = parseFloat(p), b = p.indexOf("%") == -1 && !isNaN(m);
|
|
9810
9810
|
return b && m;
|
|
9811
9811
|
}
|
|
9812
9812
|
function e() {
|
|
9813
9813
|
}
|
|
9814
|
-
var n = typeof console > "u" ? e : function(
|
|
9815
|
-
console.error(
|
|
9814
|
+
var n = typeof console > "u" ? e : function(p) {
|
|
9815
|
+
console.error(p);
|
|
9816
9816
|
}, r = [
|
|
9817
9817
|
"paddingLeft",
|
|
9818
9818
|
"paddingRight",
|
|
@@ -9828,7 +9828,7 @@ function requireGetSize() {
|
|
|
9828
9828
|
"borderBottomWidth"
|
|
9829
9829
|
], l = r.length;
|
|
9830
9830
|
function u() {
|
|
9831
|
-
for (var
|
|
9831
|
+
for (var p = {
|
|
9832
9832
|
width: 0,
|
|
9833
9833
|
height: 0,
|
|
9834
9834
|
innerWidth: 0,
|
|
@@ -9837,33 +9837,33 @@ function requireGetSize() {
|
|
|
9837
9837
|
outerHeight: 0
|
|
9838
9838
|
}, m = 0; m < l; m++) {
|
|
9839
9839
|
var b = r[m];
|
|
9840
|
-
|
|
9840
|
+
p[b] = 0;
|
|
9841
9841
|
}
|
|
9842
|
-
return
|
|
9842
|
+
return p;
|
|
9843
9843
|
}
|
|
9844
|
-
function d(
|
|
9845
|
-
var m = getComputedStyle(
|
|
9844
|
+
function d(p) {
|
|
9845
|
+
var m = getComputedStyle(p);
|
|
9846
9846
|
return m || n("Style returned " + m + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), m;
|
|
9847
9847
|
}
|
|
9848
9848
|
var f = !1, _;
|
|
9849
|
-
function
|
|
9849
|
+
function g() {
|
|
9850
9850
|
if (!f) {
|
|
9851
9851
|
f = !0;
|
|
9852
|
-
var
|
|
9853
|
-
|
|
9852
|
+
var p = document.createElement("div");
|
|
9853
|
+
p.style.width = "200px", p.style.padding = "1px 2px 3px 4px", p.style.borderStyle = "solid", p.style.borderWidth = "1px 2px 3px 4px", p.style.boxSizing = "border-box";
|
|
9854
9854
|
var m = document.body || document.documentElement;
|
|
9855
|
-
m.appendChild(
|
|
9856
|
-
var b = d(
|
|
9857
|
-
_ = Math.round(t(b.width)) == 200, y.isBoxSizeOuter = _, m.removeChild(
|
|
9855
|
+
m.appendChild(p);
|
|
9856
|
+
var b = d(p);
|
|
9857
|
+
_ = Math.round(t(b.width)) == 200, y.isBoxSizeOuter = _, m.removeChild(p);
|
|
9858
9858
|
}
|
|
9859
9859
|
}
|
|
9860
|
-
function y(
|
|
9861
|
-
if (
|
|
9862
|
-
var m = d(
|
|
9860
|
+
function y(p) {
|
|
9861
|
+
if (g(), typeof p == "string" && (p = document.querySelector(p)), !(!p || typeof p != "object" || !p.nodeType)) {
|
|
9862
|
+
var m = d(p);
|
|
9863
9863
|
if (m.display == "none")
|
|
9864
9864
|
return u();
|
|
9865
9865
|
var b = {};
|
|
9866
|
-
b.width =
|
|
9866
|
+
b.width = p.offsetWidth, b.height = p.offsetHeight;
|
|
9867
9867
|
for (var P = b.isBorderBox = m.boxSizing == "border-box", v = 0; v < l; v++) {
|
|
9868
9868
|
var E = r[v], T = m[E], O = parseFloat(T);
|
|
9869
9869
|
b[E] = isNaN(O) ? 0 : O;
|
|
@@ -9954,19 +9954,19 @@ function requireUtils() {
|
|
|
9954
9954
|
return;
|
|
9955
9955
|
}
|
|
9956
9956
|
e(_, d) && f.push(_);
|
|
9957
|
-
for (var
|
|
9958
|
-
f.push(
|
|
9957
|
+
for (var g = _.querySelectorAll(d), y = 0; y < g.length; y++)
|
|
9958
|
+
f.push(g[y]);
|
|
9959
9959
|
}
|
|
9960
9960
|
}), f;
|
|
9961
9961
|
}, n.debounceMethod = function(u, d, f) {
|
|
9962
9962
|
f = f || 100;
|
|
9963
|
-
var _ = u.prototype[d],
|
|
9963
|
+
var _ = u.prototype[d], g = d + "Timeout";
|
|
9964
9964
|
u.prototype[d] = function() {
|
|
9965
|
-
var y = this[
|
|
9965
|
+
var y = this[g];
|
|
9966
9966
|
clearTimeout(y);
|
|
9967
|
-
var
|
|
9968
|
-
this[
|
|
9969
|
-
_.apply(m,
|
|
9967
|
+
var p = arguments, m = this;
|
|
9968
|
+
this[g] = setTimeout(function() {
|
|
9969
|
+
_.apply(m, p), delete m[g];
|
|
9970
9970
|
}, f);
|
|
9971
9971
|
};
|
|
9972
9972
|
}, n.docReady = function(u) {
|
|
@@ -9980,8 +9980,8 @@ function requireUtils() {
|
|
|
9980
9980
|
var l = t.console;
|
|
9981
9981
|
return n.htmlInit = function(u, d) {
|
|
9982
9982
|
n.docReady(function() {
|
|
9983
|
-
var f = n.toDashed(d), _ = "data-" + f,
|
|
9984
|
-
|
|
9983
|
+
var f = n.toDashed(d), _ = "data-" + f, g = document.querySelectorAll("[" + _ + "]"), y = document.querySelectorAll(".js-" + f), p = n.makeArray(g).concat(n.makeArray(y)), m = _ + "-options", b = t.jQuery;
|
|
9984
|
+
p.forEach(function(P) {
|
|
9985
9985
|
var v = P.getAttribute(_) || P.getAttribute(m), E;
|
|
9986
9986
|
try {
|
|
9987
9987
|
E = v && JSON.parse(v);
|
|
@@ -10030,8 +10030,8 @@ function requireItem() {
|
|
|
10030
10030
|
y: 0
|
|
10031
10031
|
}, this._create());
|
|
10032
10032
|
}
|
|
10033
|
-
var
|
|
10034
|
-
|
|
10033
|
+
var g = _.prototype = Object.create(t.prototype);
|
|
10034
|
+
g.constructor = _, g._create = function() {
|
|
10035
10035
|
this._transn = {
|
|
10036
10036
|
ingProperties: {},
|
|
10037
10037
|
clean: {},
|
|
@@ -10039,32 +10039,32 @@ function requireItem() {
|
|
|
10039
10039
|
}, this.css({
|
|
10040
10040
|
position: "absolute"
|
|
10041
10041
|
});
|
|
10042
|
-
},
|
|
10042
|
+
}, g.handleEvent = function(P) {
|
|
10043
10043
|
var v = "on" + P.type;
|
|
10044
10044
|
this[v] && this[v](P);
|
|
10045
|
-
},
|
|
10045
|
+
}, g.getSize = function() {
|
|
10046
10046
|
this.size = e(this.element);
|
|
10047
|
-
},
|
|
10047
|
+
}, g.css = function(P) {
|
|
10048
10048
|
var v = this.element.style;
|
|
10049
10049
|
for (var E in P) {
|
|
10050
10050
|
var T = f[E] || E;
|
|
10051
10051
|
v[T] = P[E];
|
|
10052
10052
|
}
|
|
10053
|
-
},
|
|
10053
|
+
}, g.getPosition = function() {
|
|
10054
10054
|
var P = getComputedStyle(this.element), v = this.layout._getOption("originLeft"), E = this.layout._getOption("originTop"), T = P[v ? "left" : "right"], O = P[E ? "top" : "bottom"], S = parseFloat(T), k = parseFloat(O), R = this.layout.size;
|
|
10055
10055
|
T.indexOf("%") != -1 && (S = S / 100 * R.width), O.indexOf("%") != -1 && (k = k / 100 * R.height), S = isNaN(S) ? 0 : S, k = isNaN(k) ? 0 : k, S -= v ? R.paddingLeft : R.paddingRight, k -= E ? R.paddingTop : R.paddingBottom, this.position.x = S, this.position.y = k;
|
|
10056
|
-
},
|
|
10056
|
+
}, g.layoutPosition = function() {
|
|
10057
10057
|
var P = this.layout.size, v = {}, E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop"), O = E ? "paddingLeft" : "paddingRight", S = E ? "left" : "right", k = E ? "right" : "left", R = this.position.x + P[O];
|
|
10058
10058
|
v[S] = this.getXValue(R), v[k] = "";
|
|
10059
10059
|
var A = T ? "paddingTop" : "paddingBottom", C = T ? "top" : "bottom", N = T ? "bottom" : "top", w = this.position.y + P[A];
|
|
10060
10060
|
v[C] = this.getYValue(w), v[N] = "", this.css(v), this.emitEvent("layout", [this]);
|
|
10061
|
-
},
|
|
10061
|
+
}, g.getXValue = function(P) {
|
|
10062
10062
|
var v = this.layout._getOption("horizontal");
|
|
10063
10063
|
return this.layout.options.percentPosition && !v ? P / this.layout.size.width * 100 + "%" : P + "px";
|
|
10064
|
-
},
|
|
10064
|
+
}, g.getYValue = function(P) {
|
|
10065
10065
|
var v = this.layout._getOption("horizontal");
|
|
10066
10066
|
return this.layout.options.percentPosition && v ? P / this.layout.size.height * 100 + "%" : P + "px";
|
|
10067
|
-
},
|
|
10067
|
+
}, g._transitionTo = function(P, v) {
|
|
10068
10068
|
this.getPosition();
|
|
10069
10069
|
var E = this.position.x, T = this.position.y, O = P == this.position.x && v == this.position.y;
|
|
10070
10070
|
if (this.setPosition(P, v), O && !this.isTransitioning) {
|
|
@@ -10079,18 +10079,18 @@ function requireItem() {
|
|
|
10079
10079
|
},
|
|
10080
10080
|
isCleaning: !0
|
|
10081
10081
|
});
|
|
10082
|
-
},
|
|
10082
|
+
}, g.getTranslate = function(P, v) {
|
|
10083
10083
|
var E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop");
|
|
10084
10084
|
return P = E ? P : -P, v = T ? v : -v, "translate3d(" + P + "px, " + v + "px, 0)";
|
|
10085
|
-
},
|
|
10085
|
+
}, g.goTo = function(P, v) {
|
|
10086
10086
|
this.setPosition(P, v), this.layoutPosition();
|
|
10087
|
-
},
|
|
10087
|
+
}, g.moveTo = g._transitionTo, g.setPosition = function(P, v) {
|
|
10088
10088
|
this.position.x = parseFloat(P), this.position.y = parseFloat(v);
|
|
10089
|
-
},
|
|
10089
|
+
}, g._nonTransition = function(P) {
|
|
10090
10090
|
this.css(P.to), P.isCleaning && this._removeStyles(P.to);
|
|
10091
10091
|
for (var v in P.onTransitionEnd)
|
|
10092
10092
|
P.onTransitionEnd[v].call(this);
|
|
10093
|
-
},
|
|
10093
|
+
}, g.transition = function(P) {
|
|
10094
10094
|
if (!parseFloat(this.layout.options.transitionDuration)) {
|
|
10095
10095
|
this._nonTransition(P);
|
|
10096
10096
|
return;
|
|
@@ -10107,25 +10107,25 @@ function requireItem() {
|
|
|
10107
10107
|
return "-" + v.toLowerCase();
|
|
10108
10108
|
});
|
|
10109
10109
|
}
|
|
10110
|
-
var
|
|
10111
|
-
|
|
10110
|
+
var p = "opacity," + y(u);
|
|
10111
|
+
g.enableTransition = function() {
|
|
10112
10112
|
if (!this.isTransitioning) {
|
|
10113
10113
|
var P = this.layout.options.transitionDuration;
|
|
10114
10114
|
P = typeof P == "number" ? P + "ms" : P, this.css({
|
|
10115
|
-
transitionProperty:
|
|
10115
|
+
transitionProperty: p,
|
|
10116
10116
|
transitionDuration: P,
|
|
10117
10117
|
transitionDelay: this.staggerDelay || 0
|
|
10118
10118
|
}), this.element.addEventListener(d, this, !1);
|
|
10119
10119
|
}
|
|
10120
|
-
},
|
|
10120
|
+
}, g.onwebkitTransitionEnd = function(P) {
|
|
10121
10121
|
this.ontransitionend(P);
|
|
10122
|
-
},
|
|
10122
|
+
}, g.onotransitionend = function(P) {
|
|
10123
10123
|
this.ontransitionend(P);
|
|
10124
10124
|
};
|
|
10125
10125
|
var m = {
|
|
10126
10126
|
"-webkit-transform": "transform"
|
|
10127
10127
|
};
|
|
10128
|
-
|
|
10128
|
+
g.ontransitionend = function(P) {
|
|
10129
10129
|
if (P.target === this.element) {
|
|
10130
10130
|
var v = this._transn, E = m[P.propertyName] || P.propertyName;
|
|
10131
10131
|
if (delete v.ingProperties[E], n(v.ingProperties) && this.disableTransition(), E in v.clean && (this.element.style[P.propertyName] = "", delete v.clean[E]), E in v.onEnd) {
|
|
@@ -10134,9 +10134,9 @@ function requireItem() {
|
|
|
10134
10134
|
}
|
|
10135
10135
|
this.emitEvent("transitionEnd", [this]);
|
|
10136
10136
|
}
|
|
10137
|
-
},
|
|
10137
|
+
}, g.disableTransition = function() {
|
|
10138
10138
|
this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
|
|
10139
|
-
},
|
|
10139
|
+
}, g._removeStyles = function(P) {
|
|
10140
10140
|
var v = {};
|
|
10141
10141
|
for (var E in P)
|
|
10142
10142
|
v[E] = "";
|
|
@@ -10147,13 +10147,13 @@ function requireItem() {
|
|
|
10147
10147
|
transitionDuration: "",
|
|
10148
10148
|
transitionDelay: ""
|
|
10149
10149
|
};
|
|
10150
|
-
return
|
|
10150
|
+
return g.removeTransitionStyles = function() {
|
|
10151
10151
|
this.css(b);
|
|
10152
|
-
},
|
|
10152
|
+
}, g.stagger = function(P) {
|
|
10153
10153
|
P = isNaN(P) ? 0 : P, this.staggerDelay = P + "ms";
|
|
10154
|
-
},
|
|
10154
|
+
}, g.removeElem = function() {
|
|
10155
10155
|
this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
|
|
10156
|
-
},
|
|
10156
|
+
}, g.remove = function() {
|
|
10157
10157
|
if (!l || !parseFloat(this.layout.options.transitionDuration)) {
|
|
10158
10158
|
this.removeElem();
|
|
10159
10159
|
return;
|
|
@@ -10161,7 +10161,7 @@ function requireItem() {
|
|
|
10161
10161
|
this.once("transitionEnd", function() {
|
|
10162
10162
|
this.removeElem();
|
|
10163
10163
|
}), this.hide();
|
|
10164
|
-
},
|
|
10164
|
+
}, g.reveal = function() {
|
|
10165
10165
|
delete this.isHidden, this.css({ display: "" });
|
|
10166
10166
|
var P = this.layout.options, v = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
10167
10167
|
v[E] = this.onRevealTransitionEnd, this.transition({
|
|
@@ -10170,15 +10170,15 @@ function requireItem() {
|
|
|
10170
10170
|
isCleaning: !0,
|
|
10171
10171
|
onTransitionEnd: v
|
|
10172
10172
|
});
|
|
10173
|
-
},
|
|
10173
|
+
}, g.onRevealTransitionEnd = function() {
|
|
10174
10174
|
this.isHidden || this.emitEvent("reveal");
|
|
10175
|
-
},
|
|
10175
|
+
}, g.getHideRevealTransitionEndProperty = function(P) {
|
|
10176
10176
|
var v = this.layout.options[P];
|
|
10177
10177
|
if (v.opacity)
|
|
10178
10178
|
return "opacity";
|
|
10179
10179
|
for (var E in v)
|
|
10180
10180
|
return E;
|
|
10181
|
-
},
|
|
10181
|
+
}, g.hide = function() {
|
|
10182
10182
|
this.isHidden = !0, this.css({ display: "" });
|
|
10183
10183
|
var P = this.layout.options, v = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
10184
10184
|
v[E] = this.onHideTransitionEnd, this.transition({
|
|
@@ -10188,9 +10188,9 @@ function requireItem() {
|
|
|
10188
10188
|
isCleaning: !0,
|
|
10189
10189
|
onTransitionEnd: v
|
|
10190
10190
|
});
|
|
10191
|
-
},
|
|
10191
|
+
}, g.onHideTransitionEnd = function() {
|
|
10192
10192
|
this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
|
|
10193
|
-
},
|
|
10193
|
+
}, g.destroy = function() {
|
|
10194
10194
|
this.css({
|
|
10195
10195
|
position: "",
|
|
10196
10196
|
left: "",
|
|
@@ -10228,7 +10228,7 @@ function requireOutlayer() {
|
|
|
10228
10228
|
);
|
|
10229
10229
|
})(window, function(t, e, n, r, l) {
|
|
10230
10230
|
var u = t.console, d = t.jQuery, f = function() {
|
|
10231
|
-
}, _ = 0,
|
|
10231
|
+
}, _ = 0, g = {};
|
|
10232
10232
|
function y(v, E) {
|
|
10233
10233
|
var T = r.getQueryElement(v);
|
|
10234
10234
|
if (!T) {
|
|
@@ -10237,7 +10237,7 @@ function requireOutlayer() {
|
|
|
10237
10237
|
}
|
|
10238
10238
|
this.element = T, d && (this.$element = d(this.element)), this.options = r.extend({}, this.constructor.defaults), this.option(E);
|
|
10239
10239
|
var O = ++_;
|
|
10240
|
-
this.element.outlayerGUID = O,
|
|
10240
|
+
this.element.outlayerGUID = O, g[O] = this, this._create();
|
|
10241
10241
|
var S = this._getOption("initLayout");
|
|
10242
10242
|
S && this.layout();
|
|
10243
10243
|
}
|
|
@@ -10261,10 +10261,10 @@ function requireOutlayer() {
|
|
|
10261
10261
|
transform: "scale(1)"
|
|
10262
10262
|
}
|
|
10263
10263
|
};
|
|
10264
|
-
var
|
|
10265
|
-
r.extend(
|
|
10264
|
+
var p = y.prototype;
|
|
10265
|
+
r.extend(p, e.prototype), p.option = function(v) {
|
|
10266
10266
|
r.extend(this.options, v);
|
|
10267
|
-
},
|
|
10267
|
+
}, p._getOption = function(v) {
|
|
10268
10268
|
var E = this.constructor.compatOptions[v];
|
|
10269
10269
|
return E && this.options[E] !== void 0 ? this.options[E] : this.options[v];
|
|
10270
10270
|
}, y.compatOptions = {
|
|
@@ -10276,42 +10276,42 @@ function requireOutlayer() {
|
|
|
10276
10276
|
originTop: "isOriginTop",
|
|
10277
10277
|
resize: "isResizeBound",
|
|
10278
10278
|
resizeContainer: "isResizingContainer"
|
|
10279
|
-
},
|
|
10279
|
+
}, p._create = function() {
|
|
10280
10280
|
this.reloadItems(), this.stamps = [], this.stamp(this.options.stamp), r.extend(this.element.style, this.options.containerStyle);
|
|
10281
10281
|
var v = this._getOption("resize");
|
|
10282
10282
|
v && this.bindResize();
|
|
10283
|
-
},
|
|
10283
|
+
}, p.reloadItems = function() {
|
|
10284
10284
|
this.items = this._itemize(this.element.children);
|
|
10285
|
-
},
|
|
10285
|
+
}, p._itemize = function(v) {
|
|
10286
10286
|
for (var E = this._filterFindItemElements(v), T = this.constructor.Item, O = [], S = 0; S < E.length; S++) {
|
|
10287
10287
|
var k = E[S], R = new T(k, this);
|
|
10288
10288
|
O.push(R);
|
|
10289
10289
|
}
|
|
10290
10290
|
return O;
|
|
10291
|
-
},
|
|
10291
|
+
}, p._filterFindItemElements = function(v) {
|
|
10292
10292
|
return r.filterFindElements(v, this.options.itemSelector);
|
|
10293
|
-
},
|
|
10293
|
+
}, p.getItemElements = function() {
|
|
10294
10294
|
return this.items.map(function(v) {
|
|
10295
10295
|
return v.element;
|
|
10296
10296
|
});
|
|
10297
|
-
},
|
|
10297
|
+
}, p.layout = function() {
|
|
10298
10298
|
this._resetLayout(), this._manageStamps();
|
|
10299
10299
|
var v = this._getOption("layoutInstant"), E = v !== void 0 ? v : !this._isLayoutInited;
|
|
10300
10300
|
this.layoutItems(this.items, E), this._isLayoutInited = !0;
|
|
10301
|
-
},
|
|
10301
|
+
}, p._init = p.layout, p._resetLayout = function() {
|
|
10302
10302
|
this.getSize();
|
|
10303
|
-
},
|
|
10303
|
+
}, p.getSize = function() {
|
|
10304
10304
|
this.size = n(this.element);
|
|
10305
|
-
},
|
|
10305
|
+
}, p._getMeasurement = function(v, E) {
|
|
10306
10306
|
var T = this.options[v], O;
|
|
10307
10307
|
T ? (typeof T == "string" ? O = this.element.querySelector(T) : T instanceof HTMLElement && (O = T), this[v] = O ? n(O)[E] : T) : this[v] = 0;
|
|
10308
|
-
},
|
|
10308
|
+
}, p.layoutItems = function(v, E) {
|
|
10309
10309
|
v = this._getItemsForLayout(v), this._layoutItems(v, E), this._postLayout();
|
|
10310
|
-
},
|
|
10310
|
+
}, p._getItemsForLayout = function(v) {
|
|
10311
10311
|
return v.filter(function(E) {
|
|
10312
10312
|
return !E.isIgnored;
|
|
10313
10313
|
});
|
|
10314
|
-
},
|
|
10314
|
+
}, p._layoutItems = function(v, E) {
|
|
10315
10315
|
if (this._emitCompleteOnItems("layout", v), !(!v || !v.length)) {
|
|
10316
10316
|
var T = [];
|
|
10317
10317
|
v.forEach(function(O) {
|
|
@@ -10319,38 +10319,38 @@ function requireOutlayer() {
|
|
|
10319
10319
|
S.item = O, S.isInstant = E || O.isLayoutInstant, T.push(S);
|
|
10320
10320
|
}, this), this._processLayoutQueue(T);
|
|
10321
10321
|
}
|
|
10322
|
-
},
|
|
10322
|
+
}, p._getItemLayoutPosition = function() {
|
|
10323
10323
|
return {
|
|
10324
10324
|
x: 0,
|
|
10325
10325
|
y: 0
|
|
10326
10326
|
};
|
|
10327
|
-
},
|
|
10327
|
+
}, p._processLayoutQueue = function(v) {
|
|
10328
10328
|
this.updateStagger(), v.forEach(function(E, T) {
|
|
10329
10329
|
this._positionItem(E.item, E.x, E.y, E.isInstant, T);
|
|
10330
10330
|
}, this);
|
|
10331
|
-
},
|
|
10331
|
+
}, p.updateStagger = function() {
|
|
10332
10332
|
var v = this.options.stagger;
|
|
10333
10333
|
if (v == null) {
|
|
10334
10334
|
this.stagger = 0;
|
|
10335
10335
|
return;
|
|
10336
10336
|
}
|
|
10337
10337
|
return this.stagger = P(v), this.stagger;
|
|
10338
|
-
},
|
|
10338
|
+
}, p._positionItem = function(v, E, T, O, S) {
|
|
10339
10339
|
O ? v.goTo(E, T) : (v.stagger(S * this.stagger), v.moveTo(E, T));
|
|
10340
|
-
},
|
|
10340
|
+
}, p._postLayout = function() {
|
|
10341
10341
|
this.resizeContainer();
|
|
10342
|
-
},
|
|
10342
|
+
}, p.resizeContainer = function() {
|
|
10343
10343
|
var v = this._getOption("resizeContainer");
|
|
10344
10344
|
if (v) {
|
|
10345
10345
|
var E = this._getContainerSize();
|
|
10346
10346
|
E && (this._setContainerMeasure(E.width, !0), this._setContainerMeasure(E.height, !1));
|
|
10347
10347
|
}
|
|
10348
|
-
},
|
|
10348
|
+
}, p._getContainerSize = f, p._setContainerMeasure = function(v, E) {
|
|
10349
10349
|
if (v !== void 0) {
|
|
10350
10350
|
var T = this.size;
|
|
10351
10351
|
T.isBorderBox && (v += E ? T.paddingLeft + T.paddingRight + T.borderLeftWidth + T.borderRightWidth : T.paddingBottom + T.paddingTop + T.borderTopWidth + T.borderBottomWidth), v = Math.max(v, 0), this.element.style[E ? "width" : "height"] = v + "px";
|
|
10352
10352
|
}
|
|
10353
|
-
},
|
|
10353
|
+
}, p._emitCompleteOnItems = function(v, E) {
|
|
10354
10354
|
var T = this;
|
|
10355
10355
|
function O() {
|
|
10356
10356
|
T.dispatchEvent(v + "Complete", null, [E]);
|
|
@@ -10367,7 +10367,7 @@ function requireOutlayer() {
|
|
|
10367
10367
|
E.forEach(function(A) {
|
|
10368
10368
|
A.once(v, R);
|
|
10369
10369
|
});
|
|
10370
|
-
},
|
|
10370
|
+
}, p.dispatchEvent = function(v, E, T) {
|
|
10371
10371
|
var O = E ? [E].concat(T) : T;
|
|
10372
10372
|
if (this.emitEvent(v, O), d)
|
|
10373
10373
|
if (this.$element = this.$element || d(this.element), E) {
|
|
@@ -10375,24 +10375,24 @@ function requireOutlayer() {
|
|
|
10375
10375
|
S.type = v, this.$element.trigger(S, T);
|
|
10376
10376
|
} else
|
|
10377
10377
|
this.$element.trigger(v, T);
|
|
10378
|
-
},
|
|
10378
|
+
}, p.ignore = function(v) {
|
|
10379
10379
|
var E = this.getItem(v);
|
|
10380
10380
|
E && (E.isIgnored = !0);
|
|
10381
|
-
},
|
|
10381
|
+
}, p.unignore = function(v) {
|
|
10382
10382
|
var E = this.getItem(v);
|
|
10383
10383
|
E && delete E.isIgnored;
|
|
10384
|
-
},
|
|
10384
|
+
}, p.stamp = function(v) {
|
|
10385
10385
|
v = this._find(v), v && (this.stamps = this.stamps.concat(v), v.forEach(this.ignore, this));
|
|
10386
|
-
},
|
|
10386
|
+
}, p.unstamp = function(v) {
|
|
10387
10387
|
v = this._find(v), v && v.forEach(function(E) {
|
|
10388
10388
|
r.removeFrom(this.stamps, E), this.unignore(E);
|
|
10389
10389
|
}, this);
|
|
10390
|
-
},
|
|
10390
|
+
}, p._find = function(v) {
|
|
10391
10391
|
if (v)
|
|
10392
10392
|
return typeof v == "string" && (v = this.element.querySelectorAll(v)), v = r.makeArray(v), v;
|
|
10393
|
-
},
|
|
10393
|
+
}, p._manageStamps = function() {
|
|
10394
10394
|
!this.stamps || !this.stamps.length || (this._getBoundingRect(), this.stamps.forEach(this._manageStamp, this));
|
|
10395
|
-
},
|
|
10395
|
+
}, p._getBoundingRect = function() {
|
|
10396
10396
|
var v = this.element.getBoundingClientRect(), E = this.size;
|
|
10397
10397
|
this._boundingRect = {
|
|
10398
10398
|
left: v.left + E.paddingLeft + E.borderLeftWidth,
|
|
@@ -10400,7 +10400,7 @@ function requireOutlayer() {
|
|
|
10400
10400
|
right: v.right - (E.paddingRight + E.borderRightWidth),
|
|
10401
10401
|
bottom: v.bottom - (E.paddingBottom + E.borderBottomWidth)
|
|
10402
10402
|
};
|
|
10403
|
-
},
|
|
10403
|
+
}, p._manageStamp = f, p._getElementOffset = function(v) {
|
|
10404
10404
|
var E = v.getBoundingClientRect(), T = this._boundingRect, O = n(v), S = {
|
|
10405
10405
|
left: E.left - T.left - O.marginLeft,
|
|
10406
10406
|
top: E.top - T.top - O.marginTop,
|
|
@@ -10408,78 +10408,78 @@ function requireOutlayer() {
|
|
|
10408
10408
|
bottom: T.bottom - E.bottom - O.marginBottom
|
|
10409
10409
|
};
|
|
10410
10410
|
return S;
|
|
10411
|
-
},
|
|
10411
|
+
}, p.handleEvent = r.handleEvent, p.bindResize = function() {
|
|
10412
10412
|
t.addEventListener("resize", this), this.isResizeBound = !0;
|
|
10413
|
-
},
|
|
10413
|
+
}, p.unbindResize = function() {
|
|
10414
10414
|
t.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
10415
|
-
},
|
|
10415
|
+
}, p.onresize = function() {
|
|
10416
10416
|
this.resize();
|
|
10417
|
-
}, r.debounceMethod(y, "onresize", 100),
|
|
10417
|
+
}, r.debounceMethod(y, "onresize", 100), p.resize = function() {
|
|
10418
10418
|
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
10419
|
-
},
|
|
10419
|
+
}, p.needsResizeLayout = function() {
|
|
10420
10420
|
var v = n(this.element), E = this.size && v;
|
|
10421
10421
|
return E && v.innerWidth !== this.size.innerWidth;
|
|
10422
|
-
},
|
|
10422
|
+
}, p.addItems = function(v) {
|
|
10423
10423
|
var E = this._itemize(v);
|
|
10424
10424
|
return E.length && (this.items = this.items.concat(E)), E;
|
|
10425
|
-
},
|
|
10425
|
+
}, p.appended = function(v) {
|
|
10426
10426
|
var E = this.addItems(v);
|
|
10427
10427
|
E.length && (this.layoutItems(E, !0), this.reveal(E));
|
|
10428
|
-
},
|
|
10428
|
+
}, p.prepended = function(v) {
|
|
10429
10429
|
var E = this._itemize(v);
|
|
10430
10430
|
if (E.length) {
|
|
10431
10431
|
var T = this.items.slice(0);
|
|
10432
10432
|
this.items = E.concat(T), this._resetLayout(), this._manageStamps(), this.layoutItems(E, !0), this.reveal(E), this.layoutItems(T);
|
|
10433
10433
|
}
|
|
10434
|
-
},
|
|
10434
|
+
}, p.reveal = function(v) {
|
|
10435
10435
|
if (this._emitCompleteOnItems("reveal", v), !(!v || !v.length)) {
|
|
10436
10436
|
var E = this.updateStagger();
|
|
10437
10437
|
v.forEach(function(T, O) {
|
|
10438
10438
|
T.stagger(O * E), T.reveal();
|
|
10439
10439
|
});
|
|
10440
10440
|
}
|
|
10441
|
-
},
|
|
10441
|
+
}, p.hide = function(v) {
|
|
10442
10442
|
if (this._emitCompleteOnItems("hide", v), !(!v || !v.length)) {
|
|
10443
10443
|
var E = this.updateStagger();
|
|
10444
10444
|
v.forEach(function(T, O) {
|
|
10445
10445
|
T.stagger(O * E), T.hide();
|
|
10446
10446
|
});
|
|
10447
10447
|
}
|
|
10448
|
-
},
|
|
10448
|
+
}, p.revealItemElements = function(v) {
|
|
10449
10449
|
var E = this.getItems(v);
|
|
10450
10450
|
this.reveal(E);
|
|
10451
|
-
},
|
|
10451
|
+
}, p.hideItemElements = function(v) {
|
|
10452
10452
|
var E = this.getItems(v);
|
|
10453
10453
|
this.hide(E);
|
|
10454
|
-
},
|
|
10454
|
+
}, p.getItem = function(v) {
|
|
10455
10455
|
for (var E = 0; E < this.items.length; E++) {
|
|
10456
10456
|
var T = this.items[E];
|
|
10457
10457
|
if (T.element == v)
|
|
10458
10458
|
return T;
|
|
10459
10459
|
}
|
|
10460
|
-
},
|
|
10460
|
+
}, p.getItems = function(v) {
|
|
10461
10461
|
v = r.makeArray(v);
|
|
10462
10462
|
var E = [];
|
|
10463
10463
|
return v.forEach(function(T) {
|
|
10464
10464
|
var O = this.getItem(T);
|
|
10465
10465
|
O && E.push(O);
|
|
10466
10466
|
}, this), E;
|
|
10467
|
-
},
|
|
10467
|
+
}, p.remove = function(v) {
|
|
10468
10468
|
var E = this.getItems(v);
|
|
10469
10469
|
this._emitCompleteOnItems("remove", E), !(!E || !E.length) && E.forEach(function(T) {
|
|
10470
10470
|
T.remove(), r.removeFrom(this.items, T);
|
|
10471
10471
|
}, this);
|
|
10472
|
-
},
|
|
10472
|
+
}, p.destroy = function() {
|
|
10473
10473
|
var v = this.element.style;
|
|
10474
10474
|
v.height = "", v.position = "", v.width = "", this.items.forEach(function(T) {
|
|
10475
10475
|
T.destroy();
|
|
10476
10476
|
}), this.unbindResize();
|
|
10477
10477
|
var E = this.element.outlayerGUID;
|
|
10478
|
-
delete
|
|
10478
|
+
delete g[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
|
|
10479
10479
|
}, y.data = function(v) {
|
|
10480
10480
|
v = r.getQueryElement(v);
|
|
10481
10481
|
var E = v && v.outlayerGUID;
|
|
10482
|
-
return E &&
|
|
10482
|
+
return E && g[E];
|
|
10483
10483
|
}, y.create = function(v, E) {
|
|
10484
10484
|
var T = m(y);
|
|
10485
10485
|
return T.defaults = r.extend({}, y.defaults), r.extend(T.defaults, E), T.compatOptions = r.extend({}, y.compatOptions), T.namespace = v, T.data = y.data, T.Item = m(l), r.htmlInit(T, v), d && d.bridget && d.bridget(v, T), T;
|
|
@@ -10541,7 +10541,7 @@ function requireMasonry() {
|
|
|
10541
10541
|
this.columnWidth = u && e(u).outerWidth || // if first elem has no width, default to size of container
|
|
10542
10542
|
this.containerWidth;
|
|
10543
10543
|
}
|
|
10544
|
-
var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, _ = f / d,
|
|
10544
|
+
var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, _ = f / d, g = d - f % d, y = g && g < 1 ? "round" : "floor";
|
|
10545
10545
|
_ = Math[y](_), this.cols = Math.max(_, 1);
|
|
10546
10546
|
}, r.getContainerWidth = function() {
|
|
10547
10547
|
var l = this._getOption("fitWidth"), u = l ? this.element.parentNode : this.element, d = e(u);
|
|
@@ -10550,11 +10550,11 @@ function requireMasonry() {
|
|
|
10550
10550
|
l.getSize();
|
|
10551
10551
|
var u = l.size.outerWidth % this.columnWidth, d = u && u < 1 ? "round" : "ceil", f = Math[d](l.size.outerWidth / this.columnWidth);
|
|
10552
10552
|
f = Math.min(f, this.cols);
|
|
10553
|
-
for (var _ = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition",
|
|
10554
|
-
x: this.columnWidth *
|
|
10555
|
-
y:
|
|
10556
|
-
},
|
|
10557
|
-
this.colYs[b] =
|
|
10553
|
+
for (var _ = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", g = this[_](f, l), y = {
|
|
10554
|
+
x: this.columnWidth * g.col,
|
|
10555
|
+
y: g.y
|
|
10556
|
+
}, p = g.y + l.size.outerHeight, m = f + g.col, b = g.col; b < m; b++)
|
|
10557
|
+
this.colYs[b] = p;
|
|
10558
10558
|
return y;
|
|
10559
10559
|
}, r._getTopColPosition = function(l) {
|
|
10560
10560
|
var u = this._getTopColGroup(l), d = Math.min.apply(Math, u);
|
|
@@ -10582,11 +10582,11 @@ function requireMasonry() {
|
|
|
10582
10582
|
y: this._getColGroupY(d, l)
|
|
10583
10583
|
};
|
|
10584
10584
|
}, r._manageStamp = function(l) {
|
|
10585
|
-
var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), _ = f ? d.left : d.right,
|
|
10585
|
+
var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), _ = f ? d.left : d.right, g = _ + u.outerWidth, y = Math.floor(_ / this.columnWidth);
|
|
10586
10586
|
y = Math.max(0, y);
|
|
10587
|
-
var
|
|
10588
|
-
|
|
10589
|
-
for (var m = this._getOption("originTop"), b = (m ? d.top : d.bottom) + u.outerHeight, P = y; P <=
|
|
10587
|
+
var p = Math.floor(g / this.columnWidth);
|
|
10588
|
+
p -= g % this.columnWidth ? 0 : 1, p = Math.min(this.cols - 1, p);
|
|
10589
|
+
for (var m = this._getOption("originTop"), b = (m ? d.top : d.bottom) + u.outerHeight, P = y; P <= p; P++)
|
|
10590
10590
|
this.colYs[P] = Math.max(b, this.colYs[P]);
|
|
10591
10591
|
}, r._getContainerSize = function() {
|
|
10592
10592
|
this.maxY = Math.max.apply(Math, this.colYs);
|
|
@@ -10629,40 +10629,40 @@ function requireImagesloaded() {
|
|
|
10629
10629
|
// -------------------------- factory -------------------------- //
|
|
10630
10630
|
function(t, e) {
|
|
10631
10631
|
var n = t.jQuery, r = t.console;
|
|
10632
|
-
function l(
|
|
10632
|
+
function l(p, m) {
|
|
10633
10633
|
for (var b in m)
|
|
10634
|
-
|
|
10635
|
-
return
|
|
10634
|
+
p[b] = m[b];
|
|
10635
|
+
return p;
|
|
10636
10636
|
}
|
|
10637
10637
|
var u = Array.prototype.slice;
|
|
10638
|
-
function d(
|
|
10639
|
-
if (Array.isArray(
|
|
10640
|
-
return
|
|
10641
|
-
var m = typeof
|
|
10642
|
-
return m ? u.call(
|
|
10638
|
+
function d(p) {
|
|
10639
|
+
if (Array.isArray(p))
|
|
10640
|
+
return p;
|
|
10641
|
+
var m = typeof p == "object" && typeof p.length == "number";
|
|
10642
|
+
return m ? u.call(p) : [p];
|
|
10643
10643
|
}
|
|
10644
|
-
function f(
|
|
10644
|
+
function f(p, m, b) {
|
|
10645
10645
|
if (!(this instanceof f))
|
|
10646
|
-
return new f(
|
|
10647
|
-
var P =
|
|
10648
|
-
if (typeof
|
|
10649
|
-
r.error("Bad element for imagesLoaded " + (P ||
|
|
10646
|
+
return new f(p, m, b);
|
|
10647
|
+
var P = p;
|
|
10648
|
+
if (typeof p == "string" && (P = document.querySelectorAll(p)), !P) {
|
|
10649
|
+
r.error("Bad element for imagesLoaded " + (P || p));
|
|
10650
10650
|
return;
|
|
10651
10651
|
}
|
|
10652
10652
|
this.elements = d(P), this.options = l({}, this.options), typeof m == "function" ? b = m : l(this.options, m), b && this.on("always", b), this.getImages(), n && (this.jqDeferred = new n.Deferred()), setTimeout(this.check.bind(this));
|
|
10653
10653
|
}
|
|
10654
10654
|
f.prototype = Object.create(e.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
|
|
10655
10655
|
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
10656
|
-
}, f.prototype.addElementImages = function(
|
|
10657
|
-
|
|
10658
|
-
var m =
|
|
10656
|
+
}, f.prototype.addElementImages = function(p) {
|
|
10657
|
+
p.nodeName == "IMG" && this.addImage(p), this.options.background === !0 && this.addElementBackgroundImages(p);
|
|
10658
|
+
var m = p.nodeType;
|
|
10659
10659
|
if (!(!m || !_[m])) {
|
|
10660
|
-
for (var b =
|
|
10660
|
+
for (var b = p.querySelectorAll("img"), P = 0; P < b.length; P++) {
|
|
10661
10661
|
var v = b[P];
|
|
10662
10662
|
this.addImage(v);
|
|
10663
10663
|
}
|
|
10664
10664
|
if (typeof this.options.background == "string") {
|
|
10665
|
-
var E =
|
|
10665
|
+
var E = p.querySelectorAll(this.options.background);
|
|
10666
10666
|
for (P = 0; P < E.length; P++) {
|
|
10667
10667
|
var T = E[P];
|
|
10668
10668
|
this.addElementBackgroundImages(T);
|
|
@@ -10675,79 +10675,79 @@ function requireImagesloaded() {
|
|
|
10675
10675
|
9: !0,
|
|
10676
10676
|
11: !0
|
|
10677
10677
|
};
|
|
10678
|
-
f.prototype.addElementBackgroundImages = function(
|
|
10679
|
-
var m = getComputedStyle(
|
|
10678
|
+
f.prototype.addElementBackgroundImages = function(p) {
|
|
10679
|
+
var m = getComputedStyle(p);
|
|
10680
10680
|
if (m)
|
|
10681
10681
|
for (var b = /url\((['"])?(.*?)\1\)/gi, P = b.exec(m.backgroundImage); P !== null; ) {
|
|
10682
10682
|
var v = P && P[2];
|
|
10683
|
-
v && this.addBackground(v,
|
|
10683
|
+
v && this.addBackground(v, p), P = b.exec(m.backgroundImage);
|
|
10684
10684
|
}
|
|
10685
|
-
}, f.prototype.addImage = function(
|
|
10686
|
-
var m = new p
|
|
10685
|
+
}, f.prototype.addImage = function(p) {
|
|
10686
|
+
var m = new g(p);
|
|
10687
10687
|
this.images.push(m);
|
|
10688
|
-
}, f.prototype.addBackground = function(
|
|
10689
|
-
var b = new y(
|
|
10688
|
+
}, f.prototype.addBackground = function(p, m) {
|
|
10689
|
+
var b = new y(p, m);
|
|
10690
10690
|
this.images.push(b);
|
|
10691
10691
|
}, f.prototype.check = function() {
|
|
10692
|
-
var
|
|
10692
|
+
var p = this;
|
|
10693
10693
|
if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
|
|
10694
10694
|
this.complete();
|
|
10695
10695
|
return;
|
|
10696
10696
|
}
|
|
10697
10697
|
function m(b, P, v) {
|
|
10698
10698
|
setTimeout(function() {
|
|
10699
|
-
|
|
10699
|
+
p.progress(b, P, v);
|
|
10700
10700
|
});
|
|
10701
10701
|
}
|
|
10702
10702
|
this.images.forEach(function(b) {
|
|
10703
10703
|
b.once("progress", m), b.check();
|
|
10704
10704
|
});
|
|
10705
|
-
}, f.prototype.progress = function(
|
|
10706
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !
|
|
10705
|
+
}, f.prototype.progress = function(p, m, b) {
|
|
10706
|
+
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !p.isLoaded, this.emitEvent("progress", [this, p, m]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, p), this.progressedCount == this.images.length && this.complete(), this.options.debug && r && r.log("progress: " + b, p, m);
|
|
10707
10707
|
}, f.prototype.complete = function() {
|
|
10708
|
-
var
|
|
10709
|
-
if (this.isComplete = !0, this.emitEvent(
|
|
10708
|
+
var p = this.hasAnyBroken ? "fail" : "done";
|
|
10709
|
+
if (this.isComplete = !0, this.emitEvent(p, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
10710
10710
|
var m = this.hasAnyBroken ? "reject" : "resolve";
|
|
10711
10711
|
this.jqDeferred[m](this);
|
|
10712
10712
|
}
|
|
10713
10713
|
};
|
|
10714
|
-
function p
|
|
10715
|
-
this.img =
|
|
10714
|
+
function g(p) {
|
|
10715
|
+
this.img = p;
|
|
10716
10716
|
}
|
|
10717
|
-
|
|
10718
|
-
var
|
|
10719
|
-
if (
|
|
10717
|
+
g.prototype = Object.create(e.prototype), g.prototype.check = function() {
|
|
10718
|
+
var p = this.getIsImageComplete();
|
|
10719
|
+
if (p) {
|
|
10720
10720
|
this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
|
|
10721
10721
|
return;
|
|
10722
10722
|
}
|
|
10723
10723
|
this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
|
|
10724
|
-
},
|
|
10724
|
+
}, g.prototype.getIsImageComplete = function() {
|
|
10725
10725
|
return this.img.complete && this.img.naturalWidth;
|
|
10726
|
-
},
|
|
10727
|
-
this.isLoaded =
|
|
10728
|
-
},
|
|
10729
|
-
var m = "on" +
|
|
10730
|
-
this[m] && this[m](
|
|
10731
|
-
},
|
|
10726
|
+
}, g.prototype.confirm = function(p, m) {
|
|
10727
|
+
this.isLoaded = p, this.emitEvent("progress", [this, this.img, m]);
|
|
10728
|
+
}, g.prototype.handleEvent = function(p) {
|
|
10729
|
+
var m = "on" + p.type;
|
|
10730
|
+
this[m] && this[m](p);
|
|
10731
|
+
}, g.prototype.onload = function() {
|
|
10732
10732
|
this.confirm(!0, "onload"), this.unbindEvents();
|
|
10733
|
-
},
|
|
10733
|
+
}, g.prototype.onerror = function() {
|
|
10734
10734
|
this.confirm(!1, "onerror"), this.unbindEvents();
|
|
10735
|
-
},
|
|
10735
|
+
}, g.prototype.unbindEvents = function() {
|
|
10736
10736
|
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10737
10737
|
};
|
|
10738
|
-
function y(
|
|
10739
|
-
this.url =
|
|
10738
|
+
function y(p, m) {
|
|
10739
|
+
this.url = p, this.element = m, this.img = new Image();
|
|
10740
10740
|
}
|
|
10741
|
-
return y.prototype = Object.create(
|
|
10741
|
+
return y.prototype = Object.create(g.prototype), y.prototype.check = function() {
|
|
10742
10742
|
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
10743
|
-
var
|
|
10744
|
-
|
|
10743
|
+
var p = this.getIsImageComplete();
|
|
10744
|
+
p && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
10745
10745
|
}, y.prototype.unbindEvents = function() {
|
|
10746
10746
|
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10747
|
-
}, y.prototype.confirm = function(
|
|
10748
|
-
this.isLoaded =
|
|
10749
|
-
}, f.makeJQueryPlugin = function(
|
|
10750
|
-
|
|
10747
|
+
}, y.prototype.confirm = function(p, m) {
|
|
10748
|
+
this.isLoaded = p, this.emitEvent("progress", [this, this.element, m]);
|
|
10749
|
+
}, f.makeJQueryPlugin = function(p) {
|
|
10750
|
+
p = p || t.jQuery, p && (n = p, n.fn.imagesLoaded = function(m, b) {
|
|
10751
10751
|
var P = new f(this, m, b);
|
|
10752
10752
|
return P.jqDeferred.promise(n(this));
|
|
10753
10753
|
});
|
|
@@ -10787,22 +10787,22 @@ VueMasonryPlugin.install = function(s, i) {
|
|
|
10787
10787
|
mounted: function(r, l) {
|
|
10788
10788
|
if (!Masonry)
|
|
10789
10789
|
throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
|
|
10790
|
-
const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e, _ = u.destroyDelay ? parseInt(u.destroyDelay, 10) : void 0,
|
|
10790
|
+
const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e, _ = u.destroyDelay ? parseInt(u.destroyDelay, 10) : void 0, g = function() {
|
|
10791
10791
|
d.reloadItems(), d.layout();
|
|
10792
10792
|
};
|
|
10793
10793
|
nextTick(() => {
|
|
10794
|
-
|
|
10794
|
+
g();
|
|
10795
10795
|
});
|
|
10796
10796
|
const y = function(m) {
|
|
10797
|
-
|
|
10798
|
-
},
|
|
10799
|
-
t.off(`${EVENT_ADD}__${f}`, y), t.off(`${EVENT_REMOVE}__${f}`, y), t.off(`${EVENT_IMAGE_LOADED}__${f}`, y), t.off(`${EVENT_DESTROY}__${f}`,
|
|
10797
|
+
g();
|
|
10798
|
+
}, p = function(m) {
|
|
10799
|
+
t.off(`${EVENT_ADD}__${f}`, y), t.off(`${EVENT_REMOVE}__${f}`, y), t.off(`${EVENT_IMAGE_LOADED}__${f}`, y), t.off(`${EVENT_DESTROY}__${f}`, p);
|
|
10800
10800
|
const b = _ && !Number.isNaN(_) ? _ : 0;
|
|
10801
10801
|
setTimeout(function() {
|
|
10802
10802
|
d.destroy();
|
|
10803
10803
|
}, b);
|
|
10804
10804
|
};
|
|
10805
|
-
t.on(`${EVENT_ADD}__${f}`, y), t.on(`${EVENT_REMOVE}__${f}`, y), t.on(`${EVENT_IMAGE_LOADED}__${f}`, y), t.on(`${EVENT_DESTROY}__${f}`,
|
|
10805
|
+
t.on(`${EVENT_ADD}__${f}`, y), t.on(`${EVENT_REMOVE}__${f}`, y), t.on(`${EVENT_IMAGE_LOADED}__${f}`, y), t.on(`${EVENT_DESTROY}__${f}`, p);
|
|
10806
10806
|
},
|
|
10807
10807
|
unbind: function(r, l) {
|
|
10808
10808
|
const u = l.value || e;
|
|
@@ -10847,4 +10847,4 @@ export {
|
|
|
10847
10847
|
StickyPlugin as a,
|
|
10848
10848
|
ListingSkeleton as b
|
|
10849
10849
|
};
|
|
10850
|
-
//# sourceMappingURL=masonry.plugin-
|
|
10850
|
+
//# sourceMappingURL=masonry.plugin-BCYS1p2H.js.map
|