@konnectio/core 4.0.117 → 4.0.119
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-C5YNAHtg.js → ActionField-yaTIHJvx.js} +6 -6
- package/dist/ActionField-yaTIHJvx.js.br +0 -0
- package/dist/{AvailabilitySkeleton-iv8Xcdhb.js → AvailabilitySkeleton-CV6IiFig.js} +14 -14
- package/dist/AvailabilitySkeleton-CV6IiFig.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js +8429 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js.br +0 -0
- package/dist/{CheckoutWindow-Bk93hf8m.js → CheckoutWindow-BLhGzw4p.js} +26 -26
- package/dist/CheckoutWindow-BLhGzw4p.js.br +0 -0
- package/dist/{ErrorMessage-l7AF1hYs.js → ErrorMessage-CMNpag_d.js} +3 -3
- package/dist/ErrorMessage-CMNpag_d.js.br +0 -0
- package/dist/{EventAvailabilityForm-Dya8xkX1.js → EventAvailabilityForm-5IKyXHH5.js} +13 -13
- package/dist/EventAvailabilityForm-5IKyXHH5.js.br +0 -0
- package/dist/{Field-BW8kaVQ0.js → Field-CvoF7Glc.js} +4 -4
- package/dist/Field-CvoF7Glc.js.br +0 -0
- package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-k3NqFaOv.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js} +3 -3
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js → SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js} +6919 -6560
- package/dist/SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js.br +0 -0
- package/dist/{TermsOfService-T8GzpQ5F.js → TermsOfService-D_TOJHKs.js} +4 -4
- package/dist/_-4AAzKjzk.js +5 -0
- package/dist/{_.vue_vue_type_style_index_0_lang-CJnCdhl2.js → _.vue_vue_type_style_index_0_lang-Iq1FI_VA.js} +5 -5
- package/dist/availability.js +6 -6
- package/dist/availability.js.br +0 -0
- package/dist/cancel-reservation.js +4 -4
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/event.js +621 -478
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.js +19 -19
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.js +16 -16
- package/dist/gift-card.js.br +0 -0
- package/dist/{giftCard-Bm6bAv62.js → giftCard-DvqomDap.js} +23 -23
- package/dist/giftCard-DvqomDap.js.br +0 -0
- package/dist/hotel.js +222 -222
- package/dist/hotel.js.br +0 -0
- package/dist/{masonry.plugin-680IfcQo.js → masonry.plugin-rZZcRBGq.js} +439 -438
- package/dist/masonry.plugin-rZZcRBGq.js.br +0 -0
- package/dist/{mitt-CTfj-lXy.js → mitt-HQsLmGCg.js} +6 -6
- package/dist/mitt-HQsLmGCg.js.br +0 -0
- package/dist/polyfill.js +1 -1
- package/dist/polyfill.js.br +0 -0
- package/dist/{style-BSDdyhMN.js → style-Cc6LpDdk.js} +2 -2
- package/dist/style-Cc6LpDdk.js.br +0 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +1 -1
- package/dist/ActionField-C5YNAHtg.js.br +0 -0
- package/dist/AvailabilitySkeleton-iv8Xcdhb.js.br +0 -0
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAOfipPs.js +0 -8753
- package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CAOfipPs.js.br +0 -0
- package/dist/CheckoutWindow-Bk93hf8m.js.br +0 -0
- package/dist/ErrorMessage-l7AF1hYs.js.br +0 -0
- package/dist/EventAvailabilityForm-Dya8xkX1.js.br +0 -0
- package/dist/Field-BW8kaVQ0.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-DioPakK9.js.br +0 -0
- package/dist/_-LwIJ-lj7.js +0 -5
- package/dist/giftCard-Bm6bAv62.js.br +0 -0
- package/dist/masonry.plugin-680IfcQo.js.br +0 -0
- package/dist/mitt-CTfj-lXy.js.br +0 -0
- package/dist/style-BSDdyhMN.js.br +0 -0
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { d as defineComponent, P as resolveComponent, Q as h, R as Comment, U as Text, F as Fragment, V as getCurrentInstance, r as ref, c as computed$1, E as watch, o as onMounted, a as openBlock, g as createElementBlock, b as createBlock, w as withCtx, e as createBaseVNode, h as withModifiers, j as createCommentVNode, f as createVNode,
|
|
2
|
-
import { I as Icon, _ as _export_sfc, b as useHotelStore, T as TextField,
|
|
3
|
-
import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-k3NqFaOv.js";
|
|
1
|
+
import { d as defineComponent, P as resolveComponent, Q as h, R as Comment, U as Text, F as Fragment, V as getCurrentInstance, r as ref, c as computed$1, E as watch, o as onMounted, a as openBlock, g as createElementBlock, b as createBlock, w as withCtx, e as createBaseVNode, h as withModifiers, j as createCommentVNode, f as createVNode, A as renderList, i as unref, n as normalizeClass, u as useI18n, s as storeToRefs, z as createSlots, G as withDirectives, t as toDisplayString, O as inject, K as resolveDirective, W as reactive, X as onUnmounted, v as renderSlot, Y as normalizeStyle, M as nextTick, H as vShow, x as createTextVNode, Z as mergeModels, y as useSlots, _ as useModel, T as Transition, B as isRef, q as mitt } from "./mitt-HQsLmGCg.js";
|
|
2
|
+
import { I as Icon, _ as _export_sfc, b as useHotelStore, f as useEventStore, T as TextField, K as convertDescription, B as BookingLayout, h as useUtilityStore, q as capitalized, k as daysBetweenDates, o as showPrice, s as showDate, x as InputField, J as BookingHeaderLayout, y as useApplyGiftCardStore, d as Clickable, z as usePaymentStore } from "./SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js";
|
|
3
|
+
import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-BLhGzw4p.js";
|
|
4
|
+
import { A as ActionField } from "./ActionField-yaTIHJvx.js";
|
|
5
|
+
import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js";
|
|
7
6
|
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
8
7
|
/*! *****************************************************************************
|
|
9
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -145,8 +144,8 @@ var isUndefined = function(s) {
|
|
|
145
144
|
var f = 0;
|
|
146
145
|
try {
|
|
147
146
|
for (var g = __values$1(d), _ = g.next(); !_.done; _ = g.next()) {
|
|
148
|
-
var
|
|
149
|
-
if (
|
|
147
|
+
var b = _.value;
|
|
148
|
+
if (b === e) {
|
|
150
149
|
d.splice(f, 1), d.length <= 0 && delete this._eventHandler[t];
|
|
151
150
|
break;
|
|
152
151
|
}
|
|
@@ -346,8 +345,8 @@ function getLegacyAgent(s) {
|
|
|
346
345
|
majorVersion: -1
|
|
347
346
|
}, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset, g = d.version, _ = findPreset(CHROMIUM_PRESETS, i);
|
|
348
347
|
if (e.chromium = !!_.preset, e.chromiumVersion = _.version, !e.chromium) {
|
|
349
|
-
var
|
|
350
|
-
e.webkit = !!
|
|
348
|
+
var b = findPreset(WEBKIT_PRESETS, i);
|
|
349
|
+
e.webkit = !!b.preset, e.webkitVersion = b.version;
|
|
351
350
|
}
|
|
352
351
|
return f && (n.name = f.id, n.version = g, n.majorVersion = parseInt(g, 10)), l && (e.name = l.id, e.version = u, e.webview && n.name === "ios" && e.name !== "safari" && (e.webview = !1)), e.majorVersion = parseInt(e.version, 10), {
|
|
353
352
|
browser: e,
|
|
@@ -371,16 +370,16 @@ function getClientHintsAgent(s) {
|
|
|
371
370
|
version: "-1",
|
|
372
371
|
majorVersion: -1
|
|
373
372
|
};
|
|
374
|
-
l.webkit = !l.chromium && some(WEBKIT_PRESETS, function(
|
|
375
|
-
return findBrand(t,
|
|
373
|
+
l.webkit = !l.chromium && some(WEBKIT_PRESETS, function(b) {
|
|
374
|
+
return findBrand(t, b);
|
|
376
375
|
});
|
|
377
376
|
var d = findPresetBrand(CHROMIUM_PRESETS, t);
|
|
378
377
|
if (l.chromium = !!d.brand, l.chromiumVersion = d.version, !l.chromium) {
|
|
379
378
|
var f = findPresetBrand(WEBKIT_PRESETS, t);
|
|
380
379
|
l.webkit = !!f.brand, l.webkitVersion = f.version;
|
|
381
380
|
}
|
|
382
|
-
var g = find$1(OS_PRESETS, function(
|
|
383
|
-
return new RegExp("" +
|
|
381
|
+
var g = find$1(OS_PRESETS, function(b) {
|
|
382
|
+
return new RegExp("" + b.test, "g").exec(r);
|
|
384
383
|
});
|
|
385
384
|
u.name = g ? g.id : "";
|
|
386
385
|
{
|
|
@@ -779,7 +778,7 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
779
778
|
}, i.triggerChange = function(t, e, n, r) {
|
|
780
779
|
var l = this;
|
|
781
780
|
r === void 0 && (r = !1);
|
|
782
|
-
var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), g = this._getRoundPos(t, e), _ = g.roundPos,
|
|
781
|
+
var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), g = this._getRoundPos(t, e), _ = g.roundPos, b = g.roundDepa, v = d.moveTo(_, b), m = n?.event || f?.event || null, P = {
|
|
783
782
|
pos: v.pos,
|
|
784
783
|
delta: v.delta,
|
|
785
784
|
bounceRatio: this._getBounceRatio(v.pos),
|
|
@@ -790,11 +789,11 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
790
789
|
set: m ? this._createUserControll(v.pos) : function() {
|
|
791
790
|
}
|
|
792
791
|
// eslint-disable-line @typescript-eslint/no-empty-function
|
|
793
|
-
},
|
|
794
|
-
return this._axes.trigger(
|
|
792
|
+
}, y = new ComponentEvent$1("change", P);
|
|
793
|
+
return this._axes.trigger(y), Object.keys(v.pos).forEach(function(p) {
|
|
795
794
|
var E = v.pos[p];
|
|
796
795
|
getObserver(l._axes, p, E).current = E;
|
|
797
|
-
}), m && d.set(
|
|
796
|
+
}), m && d.set(P.set().destPos), !y.isCanceled();
|
|
798
797
|
}, i.triggerAnimationStart = function(t) {
|
|
799
798
|
var e = this._getRoundPos(t.destPos, t.depaPos), n = e.roundPos, r = e.roundDepa;
|
|
800
799
|
t.destPos = n, t.depaPos = r, t.setTo = this._createUserControll(t.destPos, t.duration);
|
|
@@ -947,8 +946,8 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
947
946
|
var e, n = this.prevEvent, r = this._getCenter(t), l = n ? this._getMovement(t) : {
|
|
948
947
|
x: 0,
|
|
949
948
|
y: 0
|
|
950
|
-
}, 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, g = n ? n.deltaY + l.y : l.y, _ = l.x,
|
|
951
|
-
return (!v ||
|
|
949
|
+
}, 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, g = n ? n.deltaY + l.y : l.y, _ = l.x, b = l.y, v = this._latestInterval, m = Date.now(), P = v ? m - v.timestamp : 0, y = n ? n.velocityX : 0, p = n ? n.velocityY : 0;
|
|
950
|
+
return (!v || P >= VELOCITY_INTERVAL) && (v && (e = [(f - v.deltaX) / P, (g - v.deltaY) / P], y = e[0], p = e[1]), this._latestInterval = {
|
|
952
951
|
timestamp: m,
|
|
953
952
|
deltaX: f,
|
|
954
953
|
deltaY: g
|
|
@@ -960,8 +959,8 @@ var requestAnimationFrame$2 = function(s) {
|
|
|
960
959
|
deltaX: f,
|
|
961
960
|
deltaY: g,
|
|
962
961
|
offsetX: _,
|
|
963
|
-
offsetY:
|
|
964
|
-
velocityX:
|
|
962
|
+
offsetY: b,
|
|
963
|
+
velocityX: y,
|
|
965
964
|
velocityY: p,
|
|
966
965
|
preventSystemEvent: !0
|
|
967
966
|
};
|
|
@@ -1185,19 +1184,19 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1185
1184
|
this._isStopped = !1, this._interruptManager.setInterrupt(!0), this._animationManager.stopAnimation(n), ++this._eventManager.holdingCount, this._moveDistance || this._eventManager.hold(this._axisManager.get(), n), this._isOutside = this._axisManager.isOutside(t.axes), this._moveDistance = this._axisManager.get(t.axes);
|
|
1186
1185
|
}
|
|
1187
1186
|
}, i.change = function(t, e, n, r) {
|
|
1188
|
-
if (!(this._isStopped || !this._interruptManager.isInterrupting() || this._axisManager.every(n, function(
|
|
1189
|
-
return
|
|
1187
|
+
if (!(this._isStopped || !this._interruptManager.isInterrupting() || this._axisManager.every(n, function(b) {
|
|
1188
|
+
return b === 0;
|
|
1190
1189
|
}))) {
|
|
1191
1190
|
var l = e.srcEvent ? e.srcEvent : e;
|
|
1192
1191
|
if (!l.__childrenAxesAlreadyChanged) {
|
|
1193
1192
|
var u = this._moveDistance || this._axisManager.get(t.axes), d;
|
|
1194
|
-
d = map(u, function(
|
|
1195
|
-
return
|
|
1196
|
-
}), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(
|
|
1197
|
-
var m = v.circular,
|
|
1198
|
-
return m && (m[0] || m[1]) ? getCirculatedPos(
|
|
1199
|
-
})), this._isOutside && this._axisManager.every(u, function(
|
|
1200
|
-
return !isOutside(
|
|
1193
|
+
d = map(u, function(b, v) {
|
|
1194
|
+
return b + (n[v] || 0);
|
|
1195
|
+
}), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(b, v) {
|
|
1196
|
+
var m = v.circular, P = v.range;
|
|
1197
|
+
return m && (m[0] || m[1]) ? getCirculatedPos(b, P, m) : b;
|
|
1198
|
+
})), this._isOutside && this._axisManager.every(u, function(b, v) {
|
|
1199
|
+
return !isOutside(b, v.range);
|
|
1201
1200
|
}) && (this._isOutside = !1), u = this._atOutside(u), d = this._atOutside(d), (!this.options.nested || !this._isEndofAxis(n, u, d)) && (l.__childrenAxesAlreadyChanged = !0);
|
|
1202
1201
|
var f = {
|
|
1203
1202
|
input: t,
|
|
@@ -1222,23 +1221,23 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1222
1221
|
return E.circular && (E.circular[0] || E.circular[1]) ? u[T] + p : getInsidePosition(u[T] + p, E.range, E.circular, E.bounce);
|
|
1223
1222
|
}));
|
|
1224
1223
|
l.__childrenAxesAlreadyReleased = !0;
|
|
1225
|
-
var
|
|
1226
|
-
|
|
1224
|
+
var b = this._animationManager.getDuration(_, u, r);
|
|
1225
|
+
b === 0 && (_ = __assign$3({}, d));
|
|
1227
1226
|
var v = {
|
|
1228
1227
|
depaPos: d,
|
|
1229
1228
|
destPos: _,
|
|
1230
|
-
duration:
|
|
1229
|
+
duration: b,
|
|
1231
1230
|
delta: this._axisManager.getDelta(d, _),
|
|
1232
1231
|
inputEvent: e,
|
|
1233
1232
|
input: t,
|
|
1234
1233
|
isTrusted: !0
|
|
1235
1234
|
};
|
|
1236
1235
|
--this._eventManager.holdingCount, this._eventManager.triggerRelease(v), this._eventManager.holdingCount === 0 && (this._moveDistance = null);
|
|
1237
|
-
var m = this._animationManager.getUserControl(v),
|
|
1236
|
+
var m = this._animationManager.getUserControl(v), P = equal(m.destPos, d), y = {
|
|
1238
1237
|
input: t,
|
|
1239
1238
|
event: e
|
|
1240
1239
|
};
|
|
1241
|
-
|
|
1240
|
+
P || m.duration === 0 ? (P || this._eventManager.triggerChange(m.destPos, d, y, !0), this._interruptManager.setInterrupt(!1), this._axisManager.isOutside() ? this._animationManager.restore(y) : this._eventManager.triggerFinish(!0)) : this._animationManager.animateTo(m.destPos, m.duration, y);
|
|
1242
1241
|
}
|
|
1243
1242
|
}, i._atOutside = function(t) {
|
|
1244
1243
|
var e = this;
|
|
@@ -1319,8 +1318,8 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1319
1318
|
var r = this;
|
|
1320
1319
|
this.stopAnimation();
|
|
1321
1320
|
var l = this._createAnimationParam(t, e, n), u = __assign$3({}, l.depaPos), d = this.eventManager.triggerAnimationStart(l), f = this.getUserControl(l);
|
|
1322
|
-
if (!d && this.axisManager.every(f.destPos, function(_,
|
|
1323
|
-
return isCircularable(_,
|
|
1321
|
+
if (!d && this.axisManager.every(f.destPos, function(_, b) {
|
|
1322
|
+
return isCircularable(_, b.range, b.circular);
|
|
1324
1323
|
}) && console.warn("You can't stop the 'animation' event when 'circular' is true."), d && !equal(f.destPos, u)) {
|
|
1325
1324
|
var g = n?.event || null;
|
|
1326
1325
|
this._animateLoop({
|
|
@@ -1437,16 +1436,16 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1437
1436
|
}, t._getNextState = function(e) {
|
|
1438
1437
|
var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(v, m) {
|
|
1439
1438
|
return v <= u[m] ? 1 : -1;
|
|
1440
|
-
}), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, g = (f + this._durationOffset) / r.duration, _ = this._easing(g),
|
|
1441
|
-
var
|
|
1442
|
-
if (
|
|
1443
|
-
var E = d[
|
|
1444
|
-
u[
|
|
1439
|
+
}), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, g = (f + this._durationOffset) / r.duration, _ = this._easing(g), b = this.axisManager.map(l, function(v, m, P) {
|
|
1440
|
+
var y = g >= 1 ? u[P] : v + r.delta[P] * (_ - n._prevEasingPer) / (1 - n._initialEasingPer), p = getCirculatedPos(y, m.range, m.circular);
|
|
1441
|
+
if (y !== p) {
|
|
1442
|
+
var E = d[P] * (m.range[1] - m.range[0]);
|
|
1443
|
+
u[P] -= E, l[P] -= E;
|
|
1445
1444
|
}
|
|
1446
1445
|
return p;
|
|
1447
1446
|
});
|
|
1448
1447
|
return this._prevEasingPer = _, {
|
|
1449
|
-
pos:
|
|
1448
|
+
pos: b,
|
|
1450
1449
|
easingPer: _,
|
|
1451
1450
|
finished: _ >= 1
|
|
1452
1451
|
};
|
|
@@ -1578,14 +1577,14 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1578
1577
|
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;
|
|
1579
1578
|
}
|
|
1580
1579
|
}, i._onPanmove = function(t) {
|
|
1581
|
-
var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, g = n.threshold, _ = n.thresholdAngle,
|
|
1580
|
+
var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, g = n.threshold, _ = n.thresholdAngle, b = this._activeEvent, v = b.onEventMove(t, d, f), m = b.getTouches(t, f);
|
|
1582
1581
|
if (m === 0 || u && v && !v.srcEvent.cancelable) {
|
|
1583
1582
|
this._onPanend(t);
|
|
1584
1583
|
return;
|
|
1585
1584
|
}
|
|
1586
1585
|
if (!(!v || !this._enabled || m > 1)) {
|
|
1587
|
-
var
|
|
1588
|
-
if (
|
|
1586
|
+
var P = getDirectionByAngle(v.angle, _), y = useDirection(DIRECTION_HORIZONTAL, this._direction, P), p = useDirection(DIRECTION_VERTICAL, this._direction, P);
|
|
1587
|
+
if (b.prevEvent && IS_IOS_SAFARI) {
|
|
1589
1588
|
var E = v.center.x < 0;
|
|
1590
1589
|
if (E) {
|
|
1591
1590
|
this.release();
|
|
@@ -1598,10 +1597,10 @@ var InputObserver = /* @__PURE__ */ function() {
|
|
|
1598
1597
|
}, 100);
|
|
1599
1598
|
}
|
|
1600
1599
|
}
|
|
1601
|
-
var O = this._getDistance([v.deltaX, v.deltaY], [
|
|
1600
|
+
var O = this._getDistance([v.deltaX, v.deltaY], [y, p]), S = this._getOffset([v.offsetX, v.offsetY], [y, p]), C = S.some(function(x) {
|
|
1602
1601
|
return x !== 0;
|
|
1603
1602
|
});
|
|
1604
|
-
C && (v.srcEvent.cancelable !== !1 && v.srcEvent.preventDefault(), v.srcEvent.stopPropagation()), v.preventSystemEvent = C, C && (this._isOverThreshold || O >= g) && (this._dragged = l, this._isOverThreshold = !0, this._observer.change(this, v, toAxis(this.axes, S))),
|
|
1603
|
+
C && (v.srcEvent.cancelable !== !1 && v.srcEvent.preventDefault(), v.srcEvent.stopPropagation()), v.preventSystemEvent = C, C && (this._isOverThreshold || O >= g) && (this._dragged = l, this._isOverThreshold = !0, this._observer.change(this, v, toAxis(this.axes, S))), b.prevEvent = v;
|
|
1605
1604
|
}
|
|
1606
1605
|
}, i._onPanend = function(t) {
|
|
1607
1606
|
var e = this.options.inputButton, n = this._activeEvent;
|
|
@@ -1858,13 +1857,13 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1858
1857
|
}).on("preReady", function(g) {
|
|
1859
1858
|
var _ = n.elementInfos[d];
|
|
1860
1859
|
_.hasLoading = g.hasLoading, _.isSkip = g.isSkip;
|
|
1861
|
-
var
|
|
1862
|
-
n.onPreReadyElement(d),
|
|
1860
|
+
var b = n.checkPreReady(d);
|
|
1861
|
+
n.onPreReadyElement(d), b && n.onPreReady();
|
|
1863
1862
|
}).on("ready", function(g) {
|
|
1864
|
-
var _ = g.withPreReady,
|
|
1865
|
-
m.hasLoading =
|
|
1866
|
-
var
|
|
1867
|
-
_ && n.onPreReadyElement(d), n.onReadyElement(d),
|
|
1863
|
+
var _ = g.withPreReady, b = g.hasLoading, v = g.isSkip, m = n.elementInfos[d];
|
|
1864
|
+
m.hasLoading = b, m.isSkip = v;
|
|
1865
|
+
var P = _ && n.checkPreReady(d), y = n.checkReady(d);
|
|
1866
|
+
_ && n.onPreReadyElement(d), n.onReadyElement(d), P && n.onPreReady(), y && n.onReady();
|
|
1868
1867
|
}), {
|
|
1869
1868
|
loader: f,
|
|
1870
1869
|
element: u,
|
|
@@ -1905,15 +1904,15 @@ var Loader = /* @__PURE__ */ function(s) {
|
|
|
1905
1904
|
g.setHasLoading(_.some(function(m) {
|
|
1906
1905
|
return hasLoadingAttribute(m, d);
|
|
1907
1906
|
}));
|
|
1908
|
-
var
|
|
1907
|
+
var b = !1, v = this.clone().on("error", function(m) {
|
|
1909
1908
|
g.onError(m.target);
|
|
1910
1909
|
}).on("ready", function() {
|
|
1911
|
-
g.onReady(
|
|
1910
|
+
g.onReady(b);
|
|
1912
1911
|
});
|
|
1913
1912
|
return g.on("requestChildren", function() {
|
|
1914
1913
|
var m = getContentElements(e, f, r.options.prefix);
|
|
1915
|
-
v.check(m).on("preReady", function(
|
|
1916
|
-
|
|
1914
|
+
v.check(m).on("preReady", function(P) {
|
|
1915
|
+
b = P.isReady, b || g.onPreReady();
|
|
1917
1916
|
});
|
|
1918
1917
|
}).on("reqeustReadyChildren", function() {
|
|
1919
1918
|
v.check(_);
|
|
@@ -2907,14 +2906,14 @@ var State = /* @__PURE__ */ function() {
|
|
|
2907
2906
|
if (u(STATE_TYPE.IDLE), !!this._releaseEvent) {
|
|
2908
2907
|
var d = this._releaseEvent, f = d.inputEvent.srcEvent, g;
|
|
2909
2908
|
if (f.type === "touchend") {
|
|
2910
|
-
var _ = f,
|
|
2911
|
-
g = document.elementFromPoint(
|
|
2909
|
+
var _ = f, b = _.changedTouches[0];
|
|
2910
|
+
g = document.elementFromPoint(b.clientX, b.clientY);
|
|
2912
2911
|
} else
|
|
2913
2912
|
g = f.target;
|
|
2914
2913
|
var v = l.renderer.panels, m = null;
|
|
2915
2914
|
try {
|
|
2916
|
-
for (var
|
|
2917
|
-
var p =
|
|
2915
|
+
for (var P = __values(v), y = P.next(); !y.done; y = P.next()) {
|
|
2916
|
+
var p = y.value;
|
|
2918
2917
|
if (p.contains(g)) {
|
|
2919
2918
|
m = p;
|
|
2920
2919
|
break;
|
|
@@ -2926,7 +2925,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
2926
2925
|
};
|
|
2927
2926
|
} finally {
|
|
2928
2927
|
try {
|
|
2929
|
-
|
|
2928
|
+
y && !y.done && (r = P.return) && r.call(P);
|
|
2930
2929
|
} finally {
|
|
2931
2930
|
if (n) throw n.error;
|
|
2932
2931
|
}
|
|
@@ -3299,22 +3298,22 @@ var State = /* @__PURE__ */ function() {
|
|
|
3299
3298
|
offset: 0
|
|
3300
3299
|
};
|
|
3301
3300
|
var _ = function() {
|
|
3302
|
-
var
|
|
3301
|
+
var b, v, m = function() {
|
|
3303
3302
|
r._animatingContext = {
|
|
3304
3303
|
start: 0,
|
|
3305
3304
|
end: 0,
|
|
3306
3305
|
offset: 0
|
|
3307
3306
|
};
|
|
3308
3307
|
};
|
|
3309
|
-
u.once(EVENT.FINISH, m), n ? n.setTo((
|
|
3308
|
+
u.once(EVENT.FINISH, m), n ? n.setTo((b = {}, b[POSITION_KEY] = t, b), e) : u.setTo((v = {}, v[POSITION_KEY] = t, v), e);
|
|
3310
3309
|
};
|
|
3311
|
-
return new Promise(function(
|
|
3310
|
+
return new Promise(function(b, v) {
|
|
3312
3311
|
var m = function() {
|
|
3313
|
-
u.off(EVENT.HOLD,
|
|
3314
|
-
},
|
|
3312
|
+
u.off(EVENT.HOLD, P), b();
|
|
3313
|
+
}, P = function() {
|
|
3315
3314
|
u.off(EVENT.FINISH, m), v(new FlickingError(MESSAGE.ANIMATION_INTERRUPTED, CODE.ANIMATION_INTERRUPTED));
|
|
3316
3315
|
};
|
|
3317
|
-
u.once(EVENT.FINISH, m), u.once(EVENT.HOLD,
|
|
3316
|
+
u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, P), _();
|
|
3318
3317
|
});
|
|
3319
3318
|
}, i.updateDirection = function() {
|
|
3320
3319
|
var t = getFlickingAttached(this._flicking), e = this._axes, n = this._panInput;
|
|
@@ -3462,21 +3461,21 @@ var State = /* @__PURE__ */ function() {
|
|
|
3462
3461
|
return g._controller.animateTo(e, n, l);
|
|
3463
3462
|
}, f = this._controller.state, f.targetPanel = r, n <= 0 ? [2, d()] : [2, d().then(function() {
|
|
3464
3463
|
return __awaiter$1(g, void 0, void 0, function() {
|
|
3465
|
-
return __generator$1(this, function(
|
|
3466
|
-
switch (
|
|
3464
|
+
return __generator$1(this, function(b) {
|
|
3465
|
+
switch (b.label) {
|
|
3467
3466
|
case 0:
|
|
3468
3467
|
return [4, u.renderer.render()];
|
|
3469
3468
|
case 1:
|
|
3470
|
-
return
|
|
3469
|
+
return b.sent(), [
|
|
3471
3470
|
2
|
|
3472
3471
|
/*return*/
|
|
3473
3472
|
];
|
|
3474
3473
|
}
|
|
3475
3474
|
});
|
|
3476
3475
|
});
|
|
3477
|
-
}).catch(function(
|
|
3478
|
-
if (!(l &&
|
|
3479
|
-
throw
|
|
3476
|
+
}).catch(function(b) {
|
|
3477
|
+
if (!(l && b instanceof FlickingError && b.code === CODE.ANIMATION_INTERRUPTED))
|
|
3478
|
+
throw b;
|
|
3480
3479
|
})];
|
|
3481
3480
|
});
|
|
3482
3481
|
});
|
|
@@ -3491,8 +3490,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
3491
3490
|
var d = this._controller.position, f = r.rangeDiff, g = [l, l + f, l - f].filter(function(_) {
|
|
3492
3491
|
return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ? _ <= d : _ >= d;
|
|
3493
3492
|
});
|
|
3494
|
-
l = g.reduce(function(_,
|
|
3495
|
-
return Math.abs(d -
|
|
3493
|
+
l = g.reduce(function(_, b) {
|
|
3494
|
+
return Math.abs(d - b) < Math.abs(d - _) ? b : _;
|
|
3496
3495
|
}, 1 / 0);
|
|
3497
3496
|
}
|
|
3498
3497
|
return l;
|
|
@@ -3566,20 +3565,20 @@ var State = /* @__PURE__ */ function() {
|
|
|
3566
3565
|
var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), g = this._controller.state;
|
|
3567
3566
|
if (!d || !f)
|
|
3568
3567
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3569
|
-
var _ = this._calcSnapThreshold(l.threshold, e, d),
|
|
3568
|
+
var _ = this._calcSnapThreshold(l.threshold, e, d), b = l.animating ? g.delta : e - u.position, v = Math.abs(b), m = r && r.delta[POSITION_KEY] !== 0 ? Math.abs(r.delta[POSITION_KEY]) : v, P;
|
|
3570
3569
|
if (m >= _ && m > 0)
|
|
3571
|
-
|
|
3570
|
+
P = this._findSnappedAnchor(e, f);
|
|
3572
3571
|
else if (v >= l.threshold && v > 0)
|
|
3573
|
-
|
|
3572
|
+
P = this._findAdjacentAnchor(e, b, f);
|
|
3574
3573
|
else
|
|
3575
3574
|
return this.moveToPanel(f.panel, {
|
|
3576
3575
|
duration: n,
|
|
3577
3576
|
axesEvent: r
|
|
3578
3577
|
});
|
|
3579
|
-
return this._triggerIndexChangeEvent(
|
|
3580
|
-
position: u.clampToReachablePosition(
|
|
3578
|
+
return this._triggerIndexChangeEvent(P.panel, e, r), this._animateToPosition({
|
|
3579
|
+
position: u.clampToReachablePosition(P.position),
|
|
3581
3580
|
duration: n,
|
|
3582
|
-
newActivePanel:
|
|
3581
|
+
newActivePanel: P.panel,
|
|
3583
3582
|
axesEvent: r
|
|
3584
3583
|
});
|
|
3585
3584
|
}, t._findSnappedAnchor = function(e, n) {
|
|
@@ -3588,26 +3587,26 @@ var State = /* @__PURE__ */ function() {
|
|
|
3588
3587
|
throw new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE);
|
|
3589
3588
|
if (!isFinite(u))
|
|
3590
3589
|
return g;
|
|
3591
|
-
var _ = r.panelCount,
|
|
3590
|
+
var _ = r.panelCount, b = l.anchorPoints, v = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
|
|
3592
3591
|
e > d && g.index < n.index || g.position > n.position && g.index === n.index ? v += 1 : (e < d && g.index > n.index || g.position < n.position && g.index === n.index) && (v -= 1);
|
|
3593
|
-
var m = v * _,
|
|
3594
|
-
if (Math.abs(
|
|
3595
|
-
var
|
|
3592
|
+
var m = v * _, P = g.index + m;
|
|
3593
|
+
if (Math.abs(P - n.index) <= u) {
|
|
3594
|
+
var y = b[g.index];
|
|
3596
3595
|
return new AnchorPoint({
|
|
3597
|
-
index:
|
|
3598
|
-
position:
|
|
3599
|
-
panel:
|
|
3596
|
+
index: y.index,
|
|
3597
|
+
position: y.position + v * l.rangeDiff,
|
|
3598
|
+
panel: y.panel
|
|
3600
3599
|
});
|
|
3601
3600
|
}
|
|
3602
3601
|
if (r.circularEnabled) {
|
|
3603
|
-
var p =
|
|
3602
|
+
var p = b[circulateIndex(n.index + Math.sign(e - d) * u, _)], E = Math.floor(u / _);
|
|
3604
3603
|
return e > d && p.index < n.index ? E += 1 : e < d && p.index > n.index && (E -= 1), new AnchorPoint({
|
|
3605
3604
|
index: p.index,
|
|
3606
3605
|
position: p.position + E * l.rangeDiff,
|
|
3607
3606
|
panel: p.panel
|
|
3608
3607
|
});
|
|
3609
3608
|
} else
|
|
3610
|
-
return
|
|
3609
|
+
return b[clamp(n.index + Math.sign(e - d) * u, 0, b.length - 1)];
|
|
3611
3610
|
}, t._findAdjacentAnchor = function(e, n, r) {
|
|
3612
3611
|
var l, u = getFlickingAttached(this._flicking), d = u.camera;
|
|
3613
3612
|
if (d.circularEnabled) {
|
|
@@ -3691,10 +3690,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
3691
3690
|
var e, n = getFlickingAttached(this._flicking), r = n.camera, l = n.renderer, u = this._controller, d = r.controlParams, f = this._count, g = u.state.animating ? (e = r.findNearestAnchor(r.position)) === null || e === void 0 ? void 0 : e.panel : this._activePanel;
|
|
3692
3691
|
if (!g)
|
|
3693
3692
|
return u.update(d), this._resetIndexRange(), this;
|
|
3694
|
-
var _ = d.range,
|
|
3695
|
-
|
|
3696
|
-
var p = l.panels[
|
|
3697
|
-
return T >
|
|
3693
|
+
var _ = d.range, b = g.position, v = g.index, m = l.panelCount, P = v - f, y = v + f;
|
|
3694
|
+
P < 0 && (P = n.circularEnabled ? getMinusCompensatedIndex((P + 1) % m - 1, m) : clamp(P, 0, m - 1)), y >= m && (y = n.circularEnabled ? y % m : clamp(y, 0, m - 1));
|
|
3695
|
+
var p = l.panels[P], E = l.panels[y], T = Math.max(p.position, _.min), O = Math.min(E.position, _.max);
|
|
3696
|
+
return T > b && (T -= r.rangeDiff), O < b && (O += r.rangeDiff), d.range = {
|
|
3698
3697
|
min: T,
|
|
3699
3698
|
max: O
|
|
3700
3699
|
}, d.circular && (d.position < T && (d.position += r.rangeDiff), d.position > O && (d.position -= r.rangeDiff)), d.circular = !1, u.update(d), this._indexRange = {
|
|
@@ -3709,15 +3708,15 @@ var State = /* @__PURE__ */ function() {
|
|
|
3709
3708
|
});
|
|
3710
3709
|
});
|
|
3711
3710
|
}, t.moveToPosition = function(e, n, r) {
|
|
3712
|
-
var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, g = this._controller.range, _ = this._indexRange,
|
|
3713
|
-
if (!
|
|
3711
|
+
var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, g = this._controller.range, _ = this._indexRange, b = d.range, v = this._controller.state, m = clamp(d.clampToReachablePosition(e), g[0], g[1]), P = d.findAnchorIncludePosition(m);
|
|
3712
|
+
if (!P || !f)
|
|
3714
3713
|
return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
|
|
3715
|
-
var
|
|
3714
|
+
var y = f.position, p = u.animating ? v.delta : e - d.position, E = Math.abs(p) >= u.threshold, T = e > y ? d.getNextAnchor(P) : d.getPrevAnchor(P), O, S, C = d.anchorPoints, x = C[0], I = C[C.length - 1], R = e <= b.min && isBetween(x.panel.index, _.min, _.max), w = e >= b.max && isBetween(I.panel.index, _.min, _.max), A = T && (_.min <= _.max ? isBetween(T.index, _.min, _.max) : T.index >= _.min || T.index <= _.max);
|
|
3716
3715
|
if (R || w) {
|
|
3717
|
-
var N = e <
|
|
3716
|
+
var N = e < b.min ? x : I;
|
|
3718
3717
|
S = N.panel, O = N.position;
|
|
3719
|
-
} else if (E &&
|
|
3720
|
-
S =
|
|
3718
|
+
} else if (E && P.position !== f.position)
|
|
3719
|
+
S = P.panel, O = P.position;
|
|
3721
3720
|
else if (E && A)
|
|
3722
3721
|
S = T.panel, O = T.position;
|
|
3723
3722
|
else {
|
|
@@ -3809,10 +3808,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
3809
3808
|
var e = this._flicking, n = e.renderer, r = n.panels;
|
|
3810
3809
|
if (r.length <= 0)
|
|
3811
3810
|
return !1;
|
|
3812
|
-
var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, g = e.camera.size, _ = f - d,
|
|
3811
|
+
var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, g = e.camera.size, _ = f - d, b = r.every(function(v) {
|
|
3813
3812
|
return _ - v.size >= g;
|
|
3814
3813
|
});
|
|
3815
|
-
return
|
|
3814
|
+
return b;
|
|
3816
3815
|
}, t.getRange = function() {
|
|
3817
3816
|
var e = this._flicking, n = e.renderer.panels;
|
|
3818
3817
|
if (n.length <= 0)
|
|
@@ -3862,17 +3861,17 @@ var State = /* @__PURE__ */ function() {
|
|
|
3862
3861
|
}
|
|
3863
3862
|
if (!g) return null;
|
|
3864
3863
|
if (e < r.min) {
|
|
3865
|
-
var
|
|
3864
|
+
var b = -Math.floor((r.min - e) / u) - 1;
|
|
3866
3865
|
return new AnchorPoint({
|
|
3867
3866
|
index: g.index,
|
|
3868
|
-
position: g.position + u *
|
|
3867
|
+
position: g.position + u * b,
|
|
3869
3868
|
panel: g.panel
|
|
3870
3869
|
});
|
|
3871
3870
|
} else if (e > r.max) {
|
|
3872
|
-
var
|
|
3871
|
+
var b = Math.floor((e - r.max) / u) + 1;
|
|
3873
3872
|
return new AnchorPoint({
|
|
3874
3873
|
index: g.index,
|
|
3875
|
-
position: g.position + u *
|
|
3874
|
+
position: g.position + u * b,
|
|
3876
3875
|
panel: g.panel
|
|
3877
3876
|
});
|
|
3878
3877
|
}
|
|
@@ -3919,13 +3918,13 @@ var State = /* @__PURE__ */ function() {
|
|
|
3919
3918
|
min: 0,
|
|
3920
3919
|
max: 0
|
|
3921
3920
|
};
|
|
3922
|
-
var d = e.camera.size, f = l.range.min, g = u.range.max, _ = g - f,
|
|
3923
|
-
if (
|
|
3921
|
+
var d = e.camera.size, f = l.range.min, g = u.range.max, _ = g - f, b = d < _, v = f + r, m = g - d + r;
|
|
3922
|
+
if (b)
|
|
3924
3923
|
return {
|
|
3925
3924
|
min: v,
|
|
3926
3925
|
max: m
|
|
3927
3926
|
};
|
|
3928
|
-
var
|
|
3927
|
+
var P = e.camera.align, y = typeof P == "object" ? P.camera : P, p = v + parseAlign$1(y, m - v);
|
|
3929
3928
|
return {
|
|
3930
3929
|
min: p,
|
|
3931
3930
|
max: p
|
|
@@ -3934,15 +3933,15 @@ var State = /* @__PURE__ */ function() {
|
|
|
3934
3933
|
var e = this._flicking, n = e.camera, r = e.renderer.panels;
|
|
3935
3934
|
if (r.length <= 0)
|
|
3936
3935
|
return [];
|
|
3937
|
-
var l = e.camera.range, u = r.filter(function(
|
|
3938
|
-
return n.canReach(
|
|
3936
|
+
var l = e.camera.range, u = r.filter(function(P) {
|
|
3937
|
+
return n.canReach(P);
|
|
3939
3938
|
});
|
|
3940
3939
|
if (u.length > 0) {
|
|
3941
|
-
var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, g = d ? 1 : 0, _ = u.map(function(
|
|
3940
|
+
var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, g = d ? 1 : 0, _ = u.map(function(P, y) {
|
|
3942
3941
|
return new AnchorPoint({
|
|
3943
|
-
index:
|
|
3944
|
-
position:
|
|
3945
|
-
panel:
|
|
3942
|
+
index: y + g,
|
|
3943
|
+
position: P.position,
|
|
3944
|
+
panel: P
|
|
3946
3945
|
});
|
|
3947
3946
|
});
|
|
3948
3947
|
return d && _.splice(0, 0, new AnchorPoint({
|
|
@@ -3955,7 +3954,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
3955
3954
|
panel: r[u[u.length - 1].index + 1]
|
|
3956
3955
|
})), _;
|
|
3957
3956
|
} else if (l.min !== l.max) {
|
|
3958
|
-
var
|
|
3957
|
+
var b = this._findNearestPanel(l.min, r), v = b.index === r.length - 1 ? b.prev() : b, m = v.next();
|
|
3959
3958
|
return [new AnchorPoint({
|
|
3960
3959
|
index: 0,
|
|
3961
3960
|
position: l.min,
|
|
@@ -3989,17 +3988,17 @@ var State = /* @__PURE__ */ function() {
|
|
|
3989
3988
|
this._checkTranslateSupport = function() {
|
|
3990
3989
|
var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], g = document.documentElement.style, _ = "";
|
|
3991
3990
|
try {
|
|
3992
|
-
for (var
|
|
3991
|
+
for (var b = __values(f), v = b.next(); !v.done; v = b.next()) {
|
|
3993
3992
|
var m = v.value;
|
|
3994
3993
|
m in g && (_ = m);
|
|
3995
3994
|
}
|
|
3996
|
-
} catch (
|
|
3995
|
+
} catch (P) {
|
|
3997
3996
|
u = {
|
|
3998
|
-
error:
|
|
3997
|
+
error: P
|
|
3999
3998
|
};
|
|
4000
3999
|
} finally {
|
|
4001
4000
|
try {
|
|
4002
|
-
v && !v.done && (d =
|
|
4001
|
+
v && !v.done && (d = b.return) && d.call(b);
|
|
4003
4002
|
} finally {
|
|
4004
4003
|
if (u) throw u.error;
|
|
4005
4004
|
}
|
|
@@ -4223,11 +4222,11 @@ var State = /* @__PURE__ */ function() {
|
|
|
4223
4222
|
if (e === l)
|
|
4224
4223
|
return r.index;
|
|
4225
4224
|
if (e < l) {
|
|
4226
|
-
var
|
|
4225
|
+
var b = r.prev(), v = b ? b.position + b.offset : f - u[0];
|
|
4227
4226
|
return v > l && (v -= _), r.index - 1 + getProgress(e, v, l);
|
|
4228
4227
|
} else {
|
|
4229
|
-
var m = r.next(),
|
|
4230
|
-
return
|
|
4228
|
+
var m = r.next(), P = m ? m.position + m.offset : g + u[1];
|
|
4229
|
+
return P < l && (P += _), r.index + getProgress(e, l, P);
|
|
4231
4230
|
}
|
|
4232
4231
|
},
|
|
4233
4232
|
enumerable: !1,
|
|
@@ -4385,7 +4384,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
4385
4384
|
})), t.next = !0);
|
|
4386
4385
|
return;
|
|
4387
4386
|
}
|
|
4388
|
-
var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, g = f + l, _ = n[0],
|
|
4387
|
+
var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, g = f + l, _ = n[0], b = n[n.length - 1];
|
|
4389
4388
|
if (!t.prev) {
|
|
4390
4389
|
var v = _.range.min;
|
|
4391
4390
|
(f <= v + d || r <= u.min + d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
|
|
@@ -4393,7 +4392,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
4393
4392
|
})), t.prev = !0);
|
|
4394
4393
|
}
|
|
4395
4394
|
if (!t.next) {
|
|
4396
|
-
var m =
|
|
4395
|
+
var m = b.range.max;
|
|
4397
4396
|
(g >= m - d || r >= u.max - d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
|
|
4398
4397
|
direction: DIRECTION.NEXT
|
|
4399
4398
|
})), t.next = !0);
|
|
@@ -4533,23 +4532,23 @@ var State = /* @__PURE__ */ function() {
|
|
|
4533
4532
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4534
4533
|
e[n] = arguments[n];
|
|
4535
4534
|
var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(g, _) {
|
|
4536
|
-
var
|
|
4535
|
+
var b, v = getMinusCompensatedIndex(_.index, r.length), m = r.slice(v), P = _.elements.map(function(p, E) {
|
|
4537
4536
|
return t._createPanel(p, {
|
|
4538
4537
|
index: v + E,
|
|
4539
4538
|
align: d,
|
|
4540
4539
|
flicking: l
|
|
4541
4540
|
});
|
|
4542
4541
|
});
|
|
4543
|
-
if (r.splice.apply(r, __spread([v, 0],
|
|
4544
|
-
var
|
|
4545
|
-
t._updatePanelSizeByGrid(
|
|
4542
|
+
if (r.splice.apply(r, __spread([v, 0], P)), _.hasDOMInElements && t._insertPanelElements(P, (b = m[0]) !== null && b !== void 0 ? b : null), l.panelsPerView > 0) {
|
|
4543
|
+
var y = u || P[0].resize();
|
|
4544
|
+
t._updatePanelSizeByGrid(y, P);
|
|
4546
4545
|
} else
|
|
4547
|
-
|
|
4546
|
+
P.forEach(function(p) {
|
|
4548
4547
|
return p.resize();
|
|
4549
4548
|
});
|
|
4550
4549
|
return m.forEach(function(p) {
|
|
4551
|
-
p.increaseIndex(
|
|
4552
|
-
}), __spread(g,
|
|
4550
|
+
p.increaseIndex(P.length), p.updatePosition();
|
|
4551
|
+
}), __spread(g, P);
|
|
4553
4552
|
}, []);
|
|
4554
4553
|
return f;
|
|
4555
4554
|
}, i.batchRemove = function() {
|
|
@@ -4561,12 +4560,12 @@ var State = /* @__PURE__ */ function() {
|
|
|
4561
4560
|
for (var t = this, e = [], n = 0; n < arguments.length; n++)
|
|
4562
4561
|
e[n] = arguments[n];
|
|
4563
4562
|
var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(g, _) {
|
|
4564
|
-
var
|
|
4565
|
-
return
|
|
4566
|
-
p.decreaseIndex(
|
|
4567
|
-
}), _.hasDOMInElements && t._removePanelElements(
|
|
4563
|
+
var b = _.index, v = _.deleteCount, m = getMinusCompensatedIndex(b, r.length), P = r.slice(m + v), y = r.splice(m, v);
|
|
4564
|
+
return y.length <= 0 ? [] : (P.forEach(function(p) {
|
|
4565
|
+
p.decreaseIndex(y.length), p.updatePosition();
|
|
4566
|
+
}), _.hasDOMInElements && t._removePanelElements(y), y.forEach(function(p) {
|
|
4568
4567
|
return p.destroy();
|
|
4569
|
-
}), includes(
|
|
4568
|
+
}), includes(y, d) && u.resetActive(), __spread(g, y));
|
|
4570
4569
|
}, []);
|
|
4571
4570
|
return f;
|
|
4572
4571
|
}, i.updateAfterPanelChange = function(t, e) {
|
|
@@ -4608,10 +4607,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
4608
4607
|
d.destroy();
|
|
4609
4608
|
return;
|
|
4610
4609
|
}
|
|
4611
|
-
var g = t[f.index], _ = n.camera,
|
|
4610
|
+
var g = t[f.index], _ = n.camera, b = n.control, v = b.activePanel ? _.getProgressInPanel(b.activePanel) : 0;
|
|
4612
4611
|
g.loading = !1, g.resize(), l.slice(g.index + 1).forEach(function(m) {
|
|
4613
4612
|
return m.updatePosition();
|
|
4614
|
-
}), n.initialized && (_.updateRange(), _.updateOffset(), _.updateAnchors(),
|
|
4613
|
+
}), n.initialized && (_.updateRange(), _.updateOffset(), _.updateAnchors(), b.animating || (b.updatePosition(v), b.updateInput()));
|
|
4615
4614
|
}), d.on("preReady", function(f) {
|
|
4616
4615
|
e._flicking && e.render(), f.readyCount === f.totalCount && d.destroy();
|
|
4617
4616
|
}), d.on("ready", function() {
|
|
@@ -5262,10 +5261,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
5262
5261
|
}(), Flicking$1 = /* @__PURE__ */ function(s) {
|
|
5263
5262
|
__extends$2(i, s);
|
|
5264
5263
|
function i(e, n) {
|
|
5265
|
-
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, g = r.horizontal, _ = g === void 0 ? !0 : g,
|
|
5264
|
+
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, g = r.horizontal, _ = g === void 0 ? !0 : g, b = r.circular, v = b === void 0 ? !1 : b, m = r.circularFallback, P = m === void 0 ? CIRCULAR_FALLBACK.LINEAR : m, y = r.bound, p = y === void 0 ? !1 : y, E = r.adaptive, T = E === void 0 ? !1 : E, O = r.panelsPerView, S = O === void 0 ? -1 : O, C = r.noPanelStyleOverride, x = C === void 0 ? !1 : C, I = r.resizeOnContentsReady, R = I === void 0 ? !1 : I, w = r.nested, A = w === void 0 ? !1 : w, N = r.needPanelThreshold, D = N === void 0 ? 0 : N, L = r.preventEventsBeforeInit, B = L === void 0 ? !0 : L, V = r.deceleration, le = V === void 0 ? 75e-4 : V, M = r.duration, ue = M === void 0 ? 500 : M, z = r.easing, ce = z === void 0 ? function(Re) {
|
|
5266
5265
|
return 1 - Math.pow(1 - Re, 3);
|
|
5267
5266
|
} : z, F = r.inputType, de = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType, fe = j === void 0 ? "snap" : j, H = r.threshold, he = H === void 0 ? 40 : H, W = r.interruptable, ve = W === void 0 ? !0 : W, U = r.bounce, ge = U === void 0 ? "20%" : U, G = r.iOSEdgeSwipeThreshold, pe = G === void 0 ? 30 : G, Y = r.preventClickOnDrag, _e = Y === void 0 ? !0 : Y, q = r.preventDefaultOnDrag, me = q === void 0 ? !1 : q, X = r.disableOnInit, Ee = X === void 0 ? !1 : X, K = r.changeOnHold, ye = K === void 0 ? !1 : K, Z = r.renderOnlyVisible, be = Z === void 0 ? !1 : Z, Q = r.virtual, J = Q === void 0 ? null : Q, ee = r.autoInit, Pe = ee === void 0 ? !0 : ee, te = r.autoResize, Te = te === void 0 ? !0 : te, ne = r.useResizeObserver, Oe = ne === void 0 ? !0 : ne, ie = r.resizeDebounce, Se = ie === void 0 ? 0 : ie, re = r.maxResizeDebounce, Ce = re === void 0 ? 100 : re, ae = r.useFractionalSize, Ie = ae === void 0 ? !1 : ae, oe = r.externalRenderer, ke = oe === void 0 ? null : oe, se = r.renderExternal, xe = se === void 0 ? null : se, k = s.call(this) || this;
|
|
5268
|
-
return k._initialized = !1, k._plugins = [], k._align = u, k._defaultIndex = f, k._horizontal = _, k._circular = v, k._circularFallback =
|
|
5267
|
+
return k._initialized = !1, k._plugins = [], k._align = u, k._defaultIndex = f, k._horizontal = _, k._circular = v, k._circularFallback = P, k._bound = p, k._adaptive = T, k._panelsPerView = S, k._noPanelStyleOverride = x, k._resizeOnContentsReady = R, k._nested = A, k._virtual = J, k._needPanelThreshold = D, k._preventEventsBeforeInit = B, k._deceleration = le, k._duration = ue, k._easing = ce, k._inputType = de, k._moveType = fe, k._threshold = he, k._interruptable = ve, k._bounce = ge, k._iOSEdgeSwipeThreshold = pe, k._preventClickOnDrag = _e, k._preventDefaultOnDrag = me, k._disableOnInit = Ee, k._changeOnHold = ye, k._renderOnlyVisible = be, k._autoInit = Pe, k._autoResize = Te, k._useResizeObserver = Oe, k._resizeDebounce = Se, k._maxResizeDebounce = Ce, k._useFractionalSize = Ie, k._externalRenderer = ke, k._renderExternal = xe, k._viewport = new Viewport(k, getElement$1(e)), k._autoResizer = new AutoResizer(k), k._renderer = k._createRenderer(), k._camera = k._createCamera(), k._control = k._createControl(), k._virtualManager = new VirtualManager(k, J), k._autoInit && k.init(), k;
|
|
5269
5268
|
}
|
|
5270
5269
|
var t = i.prototype;
|
|
5271
5270
|
return Object.defineProperty(t, "control", {
|
|
@@ -6244,19 +6243,19 @@ var State = /* @__PURE__ */ function() {
|
|
|
6244
6243
|
}, t.disableInput = function() {
|
|
6245
6244
|
return this._control.disable(), this;
|
|
6246
6245
|
}, t.getStatus = function(e) {
|
|
6247
|
-
var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, g = f === void 0 ? !0 : f, _ = l.includePanelHTML,
|
|
6248
|
-
panels:
|
|
6246
|
+
var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, g = f === void 0 ? !0 : f, _ = l.includePanelHTML, b = _ === void 0 ? !1 : _, v = l.visiblePanelsOnly, m = v === void 0 ? !1 : v, P = this._camera, y = m ? this.visiblePanels : this.panels, p = {
|
|
6247
|
+
panels: y.map(function(O) {
|
|
6249
6248
|
var S = {
|
|
6250
6249
|
index: O.index
|
|
6251
6250
|
};
|
|
6252
|
-
return
|
|
6251
|
+
return b && (S.html = O.element.outerHTML), S;
|
|
6253
6252
|
})
|
|
6254
6253
|
};
|
|
6255
6254
|
if (d && (p.index = this.index), g) {
|
|
6256
|
-
var E =
|
|
6255
|
+
var E = P.findNearestAnchor(P.position);
|
|
6257
6256
|
E && (p.position = {
|
|
6258
6257
|
panel: E.panel.index,
|
|
6259
|
-
progressInPanel:
|
|
6258
|
+
progressInPanel: P.getProgressInPanel(E.panel)
|
|
6260
6259
|
});
|
|
6261
6260
|
}
|
|
6262
6261
|
if (m) {
|
|
@@ -6275,8 +6274,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
6275
6274
|
hasDOMInElements: !0
|
|
6276
6275
|
}), f.batchInsert({
|
|
6277
6276
|
index: 0,
|
|
6278
|
-
elements: parseElement(d.map(function(
|
|
6279
|
-
return
|
|
6277
|
+
elements: parseElement(d.map(function(y) {
|
|
6278
|
+
return y.html;
|
|
6280
6279
|
})),
|
|
6281
6280
|
hasDOMInElements: !0
|
|
6282
6281
|
})), r != null) {
|
|
@@ -6285,8 +6284,8 @@ var State = /* @__PURE__ */ function() {
|
|
|
6285
6284
|
});
|
|
6286
6285
|
}
|
|
6287
6286
|
if (l && this._moveType === MOVE_TYPE.FREE_SCROLL) {
|
|
6288
|
-
var
|
|
6289
|
-
g.moveToPosition(
|
|
6287
|
+
var b = l.panel, v = l.progressInPanel, _ = u ? b - u : b, m = f.panels[_].range, P = m.min + (m.max - m.min) * v;
|
|
6288
|
+
g.moveToPosition(P, 0).catch(function() {
|
|
6290
6289
|
});
|
|
6291
6290
|
}
|
|
6292
6291
|
}, t.addPlugins = function() {
|
|
@@ -6306,7 +6305,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6306
6305
|
}), this;
|
|
6307
6306
|
}, t.resize = function() {
|
|
6308
6307
|
return __awaiter$1(this, void 0, void 0, function() {
|
|
6309
|
-
var e, n, r, l, u, d, f, g, _,
|
|
6308
|
+
var e, n, r, l, u, d, f, g, _, b, v;
|
|
6310
6309
|
return __generator$1(this, function(m) {
|
|
6311
6310
|
switch (m.label) {
|
|
6312
6311
|
case 0:
|
|
@@ -6321,7 +6320,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6321
6320
|
/*return*/
|
|
6322
6321
|
];
|
|
6323
6322
|
case 2:
|
|
6324
|
-
return m.sent(), this._initialized ? (l.animating || (l.updatePosition(g), l.updateInput()), _ = e.width,
|
|
6323
|
+
return m.sent(), this._initialized ? (l.animating || (l.updatePosition(g), l.updateInput()), _ = e.width, b = e.height, v = _ !== d || b !== f, this.trigger(new ComponentEvent$1(EVENTS.AFTER_RESIZE, {
|
|
6325
6324
|
width: e.width,
|
|
6326
6325
|
height: e.height,
|
|
6327
6326
|
prev: {
|
|
@@ -6458,20 +6457,20 @@ var State = /* @__PURE__ */ function() {
|
|
|
6458
6457
|
}), u.push.apply(u, __spread(batchRemove(e, f, d + 1)));
|
|
6459
6458
|
}
|
|
6460
6459
|
if (i.ordered.forEach(function(v) {
|
|
6461
|
-
var m = __read(v, 2),
|
|
6462
|
-
n.splice(
|
|
6460
|
+
var m = __read(v, 2), P = m[0], y = m[1], p = n.splice(P, 1)[0];
|
|
6461
|
+
n.splice(y, 0, p);
|
|
6463
6462
|
}), i.ordered.length > 0 && (n.forEach(function(v, m) {
|
|
6464
|
-
var
|
|
6465
|
-
|
|
6463
|
+
var P = m - v.index;
|
|
6464
|
+
P > 0 ? v.increaseIndex(P) : v.decreaseIndex(-P);
|
|
6466
6465
|
}), n.sort(function(v, m) {
|
|
6467
6466
|
return v.index - m.index;
|
|
6468
6467
|
}), n.forEach(function(v) {
|
|
6469
6468
|
v.updatePosition();
|
|
6470
6469
|
})), i.added.length > 0) {
|
|
6471
|
-
var g = -1, _ = -1,
|
|
6470
|
+
var g = -1, _ = -1, b = t.slice(r.length);
|
|
6472
6471
|
i.added.forEach(function(v, m) {
|
|
6473
|
-
g < 0 && (g = m), _ >= 0 && v !== _ + 1 ? (l.push.apply(l, __spread(batchInsert(e, i,
|
|
6474
|
-
}), g >= 0 && l.push.apply(l, __spread(batchInsert(e, i,
|
|
6472
|
+
g < 0 && (g = m), _ >= 0 && v !== _ + 1 ? (l.push.apply(l, __spread(batchInsert(e, i, b, g, m + 1))), g = -1, _ = -1) : _ = v;
|
|
6473
|
+
}), g >= 0 && l.push.apply(l, __spread(batchInsert(e, i, b, g)));
|
|
6475
6474
|
}
|
|
6476
6475
|
(i.added.length > 0 || i.removed.length > 0) && e.updateAfterPanelChange(l, u);
|
|
6477
6476
|
}, batchInsert = function(s, i, t, e, n) {
|
|
@@ -6540,10 +6539,10 @@ var State = /* @__PURE__ */ function() {
|
|
|
6540
6539
|
if (r) {
|
|
6541
6540
|
var d = r.visiblePanels;
|
|
6542
6541
|
d.forEach(function(f) {
|
|
6543
|
-
var g = f.outsetProgress, _ = f.element,
|
|
6544
|
-
if (
|
|
6542
|
+
var g = f.outsetProgress, _ = f.element, b = l ? _.querySelector(l) : _;
|
|
6543
|
+
if (b) {
|
|
6545
6544
|
var v = Math.min(1, Math.max(0, 1 - Math.abs(g * u)));
|
|
6546
|
-
|
|
6545
|
+
b.style.opacity = "" + v;
|
|
6547
6546
|
}
|
|
6548
6547
|
});
|
|
6549
6548
|
}
|
|
@@ -6623,7 +6622,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6623
6622
|
return e;
|
|
6624
6623
|
}, Arrow = /* @__PURE__ */ function() {
|
|
6625
6624
|
function s(t) {
|
|
6626
|
-
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, g = f === void 0 ? ARROW.NEXT_SELECTOR : f, _ = n.disabledClass,
|
|
6625
|
+
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, g = f === void 0 ? ARROW.NEXT_SELECTOR : f, _ = n.disabledClass, b = _ === void 0 ? ARROW.DISABLED_CLASS : _, v = n.moveCount, m = v === void 0 ? 1 : v, P = n.moveByViewportSize, y = P === void 0 ? !1 : P;
|
|
6627
6626
|
this._flicking = null, this._preventInputPropagation = function(p) {
|
|
6628
6627
|
p.stopPropagation();
|
|
6629
6628
|
}, this._onPrevClick = function() {
|
|
@@ -6656,7 +6655,7 @@ var State = /* @__PURE__ */ function() {
|
|
|
6656
6655
|
}, this._onCatch = function(p) {
|
|
6657
6656
|
if (!(p instanceof FlickingError))
|
|
6658
6657
|
throw p;
|
|
6659
|
-
}, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = g, this._disabledClass =
|
|
6658
|
+
}, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = g, this._disabledClass = b, this._moveCount = m, this._moveByViewportSize = y;
|
|
6660
6659
|
}
|
|
6661
6660
|
var i = s.prototype;
|
|
6662
6661
|
return Object.defineProperty(i, "prevEl", {
|
|
@@ -6836,34 +6835,34 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6836
6835
|
}), t.destroy = function() {
|
|
6837
6836
|
this._bullets = [], this._prevIndex = -1;
|
|
6838
6837
|
}, t.render = function() {
|
|
6839
|
-
var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, g = r.renderActiveBullet, _ = r.classPrefix + "-" + PAGINATION.BULLET_WRAPPER_SUFFIX,
|
|
6840
|
-
addClass(l, _), l.innerHTML =
|
|
6841
|
-
return g && m.panel.index === n.index ? g(u,
|
|
6838
|
+
var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, g = r.renderActiveBullet, _ = r.classPrefix + "-" + PAGINATION.BULLET_WRAPPER_SUFFIX, b = n.camera.anchorPoints;
|
|
6839
|
+
addClass(l, _), l.innerHTML = b.map(function(m, P) {
|
|
6840
|
+
return g && m.panel.index === n.index ? g(u, P) : f(u, P);
|
|
6842
6841
|
}).join(`
|
|
6843
6842
|
`);
|
|
6844
6843
|
var v = [].slice.call(l.children);
|
|
6845
|
-
v.forEach(function(m,
|
|
6846
|
-
var
|
|
6847
|
-
|
|
6844
|
+
v.forEach(function(m, P) {
|
|
6845
|
+
var y = b[P];
|
|
6846
|
+
y.panel.index === n.index && (addClass(m, d), e._prevIndex = P), e._addBulletEvents(m, P);
|
|
6848
6847
|
}), this._bullets = v;
|
|
6849
6848
|
}, t.update = function(e) {
|
|
6850
|
-
var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, g = this._prevIndex, _ = n.camera.anchorPoints,
|
|
6849
|
+
var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, g = this._prevIndex, _ = n.camera.anchorPoints, b = r.renderBullet, v = r.renderActiveBullet;
|
|
6851
6850
|
if (!(_.length <= 0)) {
|
|
6852
|
-
var m = _[0].panel.index,
|
|
6853
|
-
if (g !==
|
|
6851
|
+
var m = _[0].panel.index, P = e - m;
|
|
6852
|
+
if (g !== P) {
|
|
6854
6853
|
if (v) {
|
|
6855
|
-
var
|
|
6856
|
-
if (
|
|
6857
|
-
var p = this._createBulletFromString(
|
|
6858
|
-
|
|
6854
|
+
var y = u[g];
|
|
6855
|
+
if (y) {
|
|
6856
|
+
var p = this._createBulletFromString(b(d, g), g);
|
|
6857
|
+
y.parentElement.replaceChild(p, y), u[g] = p;
|
|
6859
6858
|
}
|
|
6860
|
-
var E = u[
|
|
6861
|
-
l.replaceChild(T, E), u[
|
|
6859
|
+
var E = u[P], T = this._createBulletFromString(v(d + " " + f, P), P);
|
|
6860
|
+
l.replaceChild(T, E), u[P] = T;
|
|
6862
6861
|
} else {
|
|
6863
|
-
var E = u[
|
|
6864
|
-
|
|
6862
|
+
var E = u[P], y = u[g];
|
|
6863
|
+
y && removeClass(y, f), addClass(E, f);
|
|
6865
6864
|
}
|
|
6866
|
-
this._prevIndex =
|
|
6865
|
+
this._prevIndex = P;
|
|
6867
6866
|
}
|
|
6868
6867
|
}
|
|
6869
6868
|
}, i;
|
|
@@ -6882,8 +6881,8 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6882
6881
|
}, t.update = function(e) {
|
|
6883
6882
|
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;
|
|
6884
6883
|
if (!(d === this._prevIndex && f === this._prevTotal)) {
|
|
6885
|
-
var g = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX, _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_TOTAL_SUFFIX,
|
|
6886
|
-
|
|
6884
|
+
var g = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX, _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_TOTAL_SUFFIX, b = r.querySelector(g), v = r.querySelector(_);
|
|
6885
|
+
b.innerHTML = l.fractionCurrentFormat(d), v.innerHTML = l.fractionTotalFormat(f), this._prevIndex = d, this._prevTotal = f;
|
|
6887
6886
|
}
|
|
6888
6887
|
}, i;
|
|
6889
6888
|
}(Renderer), ScrollBulletRenderer = /* @__PURE__ */ function(s) {
|
|
@@ -6899,8 +6898,8 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6899
6898
|
return t.destroy = function() {
|
|
6900
6899
|
this._bullets = [], this._bulletSize = 0, this._previousIndex = -1, this._sliderIndex = -1;
|
|
6901
6900
|
}, t.render = function() {
|
|
6902
|
-
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, g = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.SCROLL_SLIDER_SUFFIX,
|
|
6903
|
-
addClass(v, _), addClass(n,
|
|
6901
|
+
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, g = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.SCROLL_SLIDER_SUFFIX, b = l.classPrefix + "-" + PAGINATION.SCROLL_UNINIT_SUFFIX, v = document.createElement("div");
|
|
6902
|
+
addClass(v, _), addClass(n, b), addClass(n, f), n.appendChild(v), v.innerHTML = d.map(function(p, E) {
|
|
6904
6903
|
return u(g, E);
|
|
6905
6904
|
}).join(`
|
|
6906
6905
|
`);
|
|
@@ -6908,52 +6907,52 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6908
6907
|
if (m.forEach(function(p, E) {
|
|
6909
6908
|
e._addBulletEvents(p, E);
|
|
6910
6909
|
}), !(m.length <= 0)) {
|
|
6911
|
-
var
|
|
6912
|
-
n.style.width =
|
|
6913
|
-
removeClass(n,
|
|
6910
|
+
var P = getComputedStyle(m[0]), y = m[0].clientWidth + parseFloat(P.marginLeft) + parseFloat(P.marginRight);
|
|
6911
|
+
n.style.width = y * l.bulletCount + "px", this._bullets = m, this._bulletSize = y, this._previousIndex = -1, this.update(this._flicking.index), window.requestAnimationFrame(function() {
|
|
6912
|
+
removeClass(n, b);
|
|
6914
6913
|
});
|
|
6915
6914
|
}
|
|
6916
6915
|
}, t.update = function(e) {
|
|
6917
|
-
var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, g = r.camera.anchorPoints, _ = g[0].panel.index,
|
|
6916
|
+
var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, g = r.camera.anchorPoints, _ = g[0].panel.index, b = e - _;
|
|
6918
6917
|
if (!(g.length <= 0)) {
|
|
6919
|
-
var v = n.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, m = n.classPrefix + "-" + PAGINATION.BULLET_ACTIVE_SUFFIX,
|
|
6920
|
-
return "" + b + (R > 1 ? R : "");
|
|
6921
|
-
}, E = function(R) {
|
|
6918
|
+
var v = n.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, m = n.classPrefix + "-" + PAGINATION.BULLET_ACTIVE_SUFFIX, P = n.classPrefix + "-" + PAGINATION.SCROLL_PREV_SUFFIX, y = n.classPrefix + "-" + PAGINATION.SCROLL_NEXT_SUFFIX, p = function(R) {
|
|
6922
6919
|
return "" + P + (R > 1 ? R : "");
|
|
6923
|
-
},
|
|
6920
|
+
}, E = function(R) {
|
|
6921
|
+
return "" + y + (R > 1 ? R : "");
|
|
6922
|
+
}, T = new RegExp("^" + P), O = new RegExp("^" + y);
|
|
6924
6923
|
if (f) {
|
|
6925
6924
|
var S = l[u];
|
|
6926
6925
|
if (S) {
|
|
6927
6926
|
var C = this._createBulletFromString(d(v, u), u);
|
|
6928
6927
|
S.parentElement.replaceChild(C, S), l[u] = C;
|
|
6929
6928
|
}
|
|
6930
|
-
var x = l[
|
|
6929
|
+
var x = l[b];
|
|
6931
6930
|
if (x) {
|
|
6932
|
-
var I = this._createBulletFromString(f(v,
|
|
6933
|
-
x.parentElement.replaceChild(I, x), l[
|
|
6931
|
+
var I = this._createBulletFromString(f(v, b), b);
|
|
6932
|
+
x.parentElement.replaceChild(I, x), l[b] = I;
|
|
6934
6933
|
}
|
|
6935
6934
|
}
|
|
6936
6935
|
l.forEach(function(R, w) {
|
|
6937
|
-
for (var A = w -
|
|
6936
|
+
for (var A = w - b, N = R.className.split(" "), D = 0, L = N; D < L.length; D++) {
|
|
6938
6937
|
var B = L[D];
|
|
6939
6938
|
(B === m || T.test(B) || O.test(B)) && removeClass(R, B);
|
|
6940
6939
|
}
|
|
6941
6940
|
A === 0 ? addClass(R, m) : A > 0 ? addClass(R, E(Math.abs(A))) : addClass(R, p(Math.abs(A)));
|
|
6942
|
-
}), n.scrollOnChange(
|
|
6941
|
+
}), n.scrollOnChange(b, {
|
|
6943
6942
|
total: l.length,
|
|
6944
6943
|
prevIndex: u,
|
|
6945
6944
|
sliderIndex: this._sliderIndex,
|
|
6946
|
-
direction:
|
|
6945
|
+
direction: b > u ? DIRECTION.NEXT : DIRECTION.PREV,
|
|
6947
6946
|
bullets: __spreadArray$1([], l),
|
|
6948
6947
|
moveTo: this.moveTo
|
|
6949
|
-
}), this._previousIndex =
|
|
6948
|
+
}), this._previousIndex = b;
|
|
6950
6949
|
}
|
|
6951
6950
|
}, i;
|
|
6952
6951
|
}(Renderer), Pagination = /* @__PURE__ */ function() {
|
|
6953
6952
|
function s(t) {
|
|
6954
|
-
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, g = f === void 0 ? PAGINATION.TYPE.BULLET : f, _ = n.classPrefix,
|
|
6953
|
+
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, g = f === void 0 ? PAGINATION.TYPE.BULLET : f, _ = n.classPrefix, b = _ === void 0 ? PAGINATION.PREFIX : _, v = n.bulletCount, m = v === void 0 ? 5 : v, P = n.renderBullet, y = P === void 0 ? function(A) {
|
|
6955
6954
|
return '<span class="' + A + '"></span>';
|
|
6956
|
-
} :
|
|
6955
|
+
} : P, p = n.renderActiveBullet, E = p === void 0 ? null : p, T = n.renderFraction, O = T === void 0 ? function(A, N) {
|
|
6957
6956
|
return '<span class="' + A + '"></span>/<span class="' + N + '"></span>';
|
|
6958
6957
|
} : T, S = n.fractionCurrentFormat, C = S === void 0 ? function(A) {
|
|
6959
6958
|
return A.toString();
|
|
@@ -6966,7 +6965,7 @@ var Renderer = /* @__PURE__ */ function() {
|
|
|
6966
6965
|
e._removeAllChilds(), e._renderer.render();
|
|
6967
6966
|
}, this._onIndexChange = function(A) {
|
|
6968
6967
|
e._renderer.update(A.index);
|
|
6969
|
-
}, this._parentEl = l, this._selector = d, this._type = g, this._classPrefix =
|
|
6968
|
+
}, this._parentEl = l, this._selector = d, this._type = g, this._classPrefix = b, this._bulletCount = m, this._renderBullet = y, this._renderActiveBullet = E, this._renderFraction = O, this._fractionCurrentFormat = C, this._fractionTotalFormat = I, this._scrollOnChange = w;
|
|
6970
6969
|
}
|
|
6971
6970
|
var i = s.prototype;
|
|
6972
6971
|
return Object.defineProperty(i, "parentEl", {
|
|
@@ -7184,7 +7183,7 @@ var Result = /* @__PURE__ */ function() {
|
|
|
7184
7183
|
function diff(s, i, t) {
|
|
7185
7184
|
var e = SUPPORT_MAP ? Map : t ? HashMap : PolyMap, n = t || function(E) {
|
|
7186
7185
|
return E;
|
|
7187
|
-
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n), g = new e(), _ = new e(),
|
|
7186
|
+
}, r = [], l = [], u = [], d = s.map(n), f = i.map(n), g = new e(), _ = new e(), b = [], v = [], m = {}, P = [], y = 0, p = 0;
|
|
7188
7187
|
return d.forEach(function(E, T) {
|
|
7189
7188
|
g.set(E, T);
|
|
7190
7189
|
}), f.forEach(function(E, T) {
|
|
@@ -7194,8 +7193,8 @@ function diff(s, i, t) {
|
|
|
7194
7193
|
typeof O > "u" ? (++p, l.push(T)) : m[O] = p;
|
|
7195
7194
|
}), f.forEach(function(E, T) {
|
|
7196
7195
|
var O = g.get(E);
|
|
7197
|
-
typeof O > "u" ? (r.push(T), ++
|
|
7198
|
-
}), l.reverse(), new Result(s, i, r, l,
|
|
7196
|
+
typeof O > "u" ? (r.push(T), ++y) : (u.push([O, T]), p = m[T] || 0, b.push([O - p, T - y]), v.push(T === O), O !== T && P.push([O, T]));
|
|
7197
|
+
}), l.reverse(), new Result(s, i, r, l, P, u, b, v);
|
|
7199
7198
|
}
|
|
7200
7199
|
var ListDiffer = /* @__PURE__ */ function() {
|
|
7201
7200
|
function s(t, e) {
|
|
@@ -7666,21 +7665,21 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7666
7665
|
function _(m) {
|
|
7667
7666
|
g.value = m.index;
|
|
7668
7667
|
}
|
|
7669
|
-
function
|
|
7668
|
+
function b(m) {
|
|
7670
7669
|
n.value.moveTo(m);
|
|
7671
7670
|
}
|
|
7672
7671
|
function v() {
|
|
7673
7672
|
t("opened");
|
|
7674
7673
|
}
|
|
7675
7674
|
return watch(g, (m) => {
|
|
7676
|
-
|
|
7675
|
+
b(m);
|
|
7677
7676
|
}), onMounted(() => {
|
|
7678
7677
|
r.value = [
|
|
7679
7678
|
new Arrow(),
|
|
7680
7679
|
new Fade(),
|
|
7681
7680
|
new Pagination({ type: d.value })
|
|
7682
7681
|
];
|
|
7683
|
-
}), (m,
|
|
7682
|
+
}), (m, P) => (openBlock(), createElementBlock("div", null, [
|
|
7684
7683
|
l.value ? (openBlock(), createBlock(unref(Flicking), {
|
|
7685
7684
|
key: 0,
|
|
7686
7685
|
ref_key: "slideshow",
|
|
@@ -7719,15 +7718,15 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7719
7718
|
})
|
|
7720
7719
|
])
|
|
7721
7720
|
]),
|
|
7722
|
-
|
|
7721
|
+
P[0] || (P[0] = createBaseVNode("div", { class: "flicking-pagination" }, null, -1))
|
|
7723
7722
|
]),
|
|
7724
7723
|
default: withCtx(() => [
|
|
7725
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.gallery, ({ large:
|
|
7724
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.gallery, ({ large: y, url: p }, E) => (openBlock(), createElementBlock("div", {
|
|
7726
7725
|
key: E,
|
|
7727
7726
|
class: "konnectio-flicking-gallery-item"
|
|
7728
7727
|
}, [
|
|
7729
7728
|
createBaseVNode("img", {
|
|
7730
|
-
src:
|
|
7729
|
+
src: y || p
|
|
7731
7730
|
}, null, 8, _hoisted_4$6)
|
|
7732
7731
|
]))), 128))
|
|
7733
7732
|
]),
|
|
@@ -7776,18 +7775,18 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7776
7775
|
currentEventDate: g,
|
|
7777
7776
|
currentEventLocation: _
|
|
7778
7777
|
} = storeToRefs(useEventStore());
|
|
7779
|
-
function
|
|
7778
|
+
function b(O) {
|
|
7780
7779
|
const S = O.getFullYear();
|
|
7781
7780
|
let C = O.getMonth() + 1, x = O.getDate();
|
|
7782
7781
|
return x < 10 && (x = "0" + x), C < 10 && (C = "0" + C), `${S}-${C}-${x}`;
|
|
7783
7782
|
}
|
|
7784
|
-
const v = computed$1(() => n.type !== "event" ? `${window.location.origin + window.location.pathname}?a=${r.value}&c=${l.value}&ci=${
|
|
7785
|
-
function
|
|
7783
|
+
const v = computed$1(() => n.type !== "event" ? `${window.location.origin + window.location.pathname}?a=${r.value}&c=${l.value}&ci=${b(u.value)}&co=${b(d.value)}&hid=${f.value}&id=${n.listingId}` : ""), m = computed$1(() => n.type === "event" ? `${window.location.origin + window.location.pathname}?d=${b(g.value)}&rid=${_.value}&eid=${n.listingId}` : "");
|
|
7784
|
+
function P(O) {
|
|
7786
7785
|
t("update:idx", O);
|
|
7787
7786
|
}
|
|
7788
|
-
const
|
|
7787
|
+
const y = computed$1({
|
|
7789
7788
|
get: () => n.idx,
|
|
7790
|
-
set: (O) =>
|
|
7789
|
+
set: (O) => P(O)
|
|
7791
7790
|
}), p = ref("testVueMasonry"), E = inject("redrawVueMasonry");
|
|
7792
7791
|
function T() {
|
|
7793
7792
|
E("testVueMasonry");
|
|
@@ -7802,8 +7801,8 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
|
|
|
7802
7801
|
O.gallery ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
7803
7802
|
createVNode(Gallery, {
|
|
7804
7803
|
gallery: O.gallery,
|
|
7805
|
-
idx:
|
|
7806
|
-
"onUpdate:idx": S[0] || (S[0] = (I) =>
|
|
7804
|
+
idx: y.value,
|
|
7805
|
+
"onUpdate:idx": S[0] || (S[0] = (I) => y.value = I)
|
|
7807
7806
|
}, null, 8, ["gallery", "idx"])
|
|
7808
7807
|
])) : createCommentVNode("", !0),
|
|
7809
7808
|
createBaseVNode("div", _hoisted_2$8, [
|
|
@@ -8030,35 +8029,35 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
|
|
|
8030
8029
|
}), g = () => {
|
|
8031
8030
|
u.value && (u.value.innerHTML = convertDescription(x.value));
|
|
8032
8031
|
}, _ = () => {
|
|
8033
|
-
d.localExpanded || (g(), (m() || C.value) &&
|
|
8034
|
-
},
|
|
8032
|
+
d.localExpanded || (g(), (m() || C.value) && y());
|
|
8033
|
+
}, b = () => {
|
|
8035
8034
|
e.text && (d.offset = e.text.length, v(), e.autoResize && r.value && (addListener(r.value, _), d.unregisterResizeCallback = () => {
|
|
8036
8035
|
r.value && removeListener(r.value, _);
|
|
8037
8036
|
}), _());
|
|
8038
8037
|
}, v = () => {
|
|
8039
8038
|
d.unregisterResizeCallback?.();
|
|
8040
|
-
}, m = () => !e.maxLines && !e.maxHeight || !r.value ? !1 : !!(e.maxLines &&
|
|
8039
|
+
}, m = () => !e.maxLines && !e.maxHeight || !r.value ? !1 : !!(e.maxLines && P() > e.maxLines || e.maxHeight && r.value.scrollHeight > r.value.offsetHeight), P = () => l.value ? Object.keys(
|
|
8041
8040
|
Array.prototype.slice.call(l.value.getClientRects()).reduce((N, { top: D, bottom: L }) => {
|
|
8042
8041
|
const B = `${D}/${L}`;
|
|
8043
8042
|
return N[B] || (N[B] = !0), N;
|
|
8044
8043
|
}, {})
|
|
8045
|
-
).length : 0,
|
|
8044
|
+
).length : 0, y = (...N) => {
|
|
8046
8045
|
const [D = 0, L = d.offset] = N;
|
|
8047
8046
|
if (L - D <= 3) {
|
|
8048
8047
|
E();
|
|
8049
8048
|
return;
|
|
8050
8049
|
}
|
|
8051
8050
|
const B = Math.floor((L + D) / 2);
|
|
8052
|
-
p(B), m() ?
|
|
8051
|
+
p(B), m() ? y(D, B) : y(B, L);
|
|
8053
8052
|
}, p = (N) => {
|
|
8054
8053
|
d.offset = N, g();
|
|
8055
8054
|
}, E = () => {
|
|
8056
8055
|
T(), O();
|
|
8057
8056
|
}, T = () => {
|
|
8058
|
-
for (; (!m() ||
|
|
8057
|
+
for (; (!m() || P() < 2) && d.offset < e.text.length; )
|
|
8059
8058
|
S(1);
|
|
8060
8059
|
}, O = () => {
|
|
8061
|
-
for (; m() &&
|
|
8060
|
+
for (; m() && P() > 1 && d.offset > 0; )
|
|
8062
8061
|
S(-1);
|
|
8063
8062
|
}, S = (N) => {
|
|
8064
8063
|
p(d.offset + N);
|
|
@@ -8108,13 +8107,13 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
|
|
|
8108
8107
|
() => [e.text, e.autoResize].join(),
|
|
8109
8108
|
() => {
|
|
8110
8109
|
nextTick(() => {
|
|
8111
|
-
|
|
8110
|
+
b();
|
|
8112
8111
|
});
|
|
8113
8112
|
}
|
|
8114
8113
|
), onUnmounted(() => {
|
|
8115
8114
|
v();
|
|
8116
8115
|
}), onMounted(() => {
|
|
8117
|
-
|
|
8116
|
+
b();
|
|
8118
8117
|
}), (N, D) => (openBlock(), createElementBlock("div", {
|
|
8119
8118
|
ref_key: "textClampRef",
|
|
8120
8119
|
ref: r,
|
|
@@ -8189,12 +8188,12 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
|
|
|
8189
8188
|
}
|
|
8190
8189
|
function f(g) {
|
|
8191
8190
|
let _ = "";
|
|
8192
|
-
return g.forEach(({ name:
|
|
8193
|
-
_ += `<li>${
|
|
8191
|
+
return g.forEach(({ name: b }) => {
|
|
8192
|
+
_ += `<li>${b}</li>`;
|
|
8194
8193
|
}), `<ul>${_}</ul>`;
|
|
8195
8194
|
}
|
|
8196
8195
|
return (g, _) => {
|
|
8197
|
-
const
|
|
8196
|
+
const b = resolveDirective("tooltip");
|
|
8198
8197
|
return openBlock(), createElementBlock("li", {
|
|
8199
8198
|
class: normalizeClass([
|
|
8200
8199
|
"konnectio-listing",
|
|
@@ -8267,15 +8266,15 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
|
|
|
8267
8266
|
])
|
|
8268
8267
|
]),
|
|
8269
8268
|
g.facilities ? (openBlock(), createElementBlock("ul", _hoisted_10$2, [
|
|
8270
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(g.facilities, ({ icon: v, name: m, subFacilities:
|
|
8269
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(g.facilities, ({ icon: v, name: m, subFacilities: P }) => (openBlock(), createElementBlock(Fragment, null, [
|
|
8271
8270
|
v ? withDirectives((openBlock(), createElementBlock("li", { key: m }, [
|
|
8272
8271
|
createVNode(Icon, {
|
|
8273
8272
|
icon: v,
|
|
8274
8273
|
color: "header"
|
|
8275
8274
|
}, null, 8, ["icon"])
|
|
8276
8275
|
])), [
|
|
8277
|
-
[
|
|
8278
|
-
content: f(
|
|
8276
|
+
[b, {
|
|
8277
|
+
content: f(P),
|
|
8279
8278
|
classes: ["tooltip", "konnectio-tooltip"],
|
|
8280
8279
|
html: !0
|
|
8281
8280
|
}]
|
|
@@ -8352,79 +8351,81 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
|
|
|
8352
8351
|
},
|
|
8353
8352
|
emits: ["reset"],
|
|
8354
8353
|
setup(s, { emit: i }) {
|
|
8355
|
-
const t = i, { headerHeight:
|
|
8356
|
-
if (
|
|
8357
|
-
const
|
|
8358
|
-
if (
|
|
8359
|
-
const
|
|
8354
|
+
const t = inject("emitter"), e = i, { headerHeight: n } = storeToRefs(useUtilityStore()), r = s, l = ref(0), u = ref(), d = computed$1(() => r.steps.filter((m) => !m.hidden)), f = computed$1(() => r.steps[l.value].id), g = () => {
|
|
8355
|
+
if (u.value !== void 0) {
|
|
8356
|
+
const m = n.value;
|
|
8357
|
+
if (m && m > 0) {
|
|
8358
|
+
const y = u.value.getBoundingClientRect().top + window.scrollY - m;
|
|
8360
8359
|
window.scrollTo({
|
|
8361
|
-
top:
|
|
8360
|
+
top: y,
|
|
8362
8361
|
behavior: "smooth"
|
|
8363
8362
|
});
|
|
8364
8363
|
} else
|
|
8365
|
-
|
|
8364
|
+
u.value.scrollIntoView({ behavior: "smooth" });
|
|
8366
8365
|
}
|
|
8367
|
-
},
|
|
8368
|
-
|
|
8369
|
-
},
|
|
8370
|
-
|
|
8366
|
+
}, _ = (m = 1) => {
|
|
8367
|
+
l.value = l.value + m, g();
|
|
8368
|
+
}, b = (m = 1) => {
|
|
8369
|
+
l.value = l.value - m, g();
|
|
8371
8370
|
};
|
|
8372
|
-
function
|
|
8373
|
-
|
|
8371
|
+
function v() {
|
|
8372
|
+
l.value = 0, g();
|
|
8374
8373
|
}
|
|
8375
|
-
return
|
|
8376
|
-
|
|
8377
|
-
}), (
|
|
8374
|
+
return t.on("scrollToTop", () => {
|
|
8375
|
+
g();
|
|
8376
|
+
}), watch(l, () => {
|
|
8377
|
+
l.value === 0 && e("reset");
|
|
8378
|
+
}), (m, P) => (openBlock(), createElementBlock("div", {
|
|
8378
8379
|
id: "konnectio-multi-step-form",
|
|
8379
8380
|
ref_key: "multiStepForm",
|
|
8380
|
-
ref:
|
|
8381
|
+
ref: u
|
|
8381
8382
|
}, [
|
|
8382
8383
|
createBaseVNode("div", null, [
|
|
8383
8384
|
createBaseVNode("header", _hoisted_1$7, [
|
|
8384
8385
|
createBaseVNode("div", _hoisted_2$5, [
|
|
8385
8386
|
createBaseVNode("div", null, [
|
|
8386
|
-
|
|
8387
|
-
createBaseVNode("span", null, toDisplayString(
|
|
8387
|
+
m.title && m.layout !== unref(BookingHeaderLayout).Minimal ? (openBlock(), createElementBlock("h2", _hoisted_3$4, [
|
|
8388
|
+
createBaseVNode("span", null, toDisplayString(m.title), 1)
|
|
8388
8389
|
])) : createCommentVNode("", !0),
|
|
8389
|
-
|
|
8390
|
-
createBaseVNode("span", null, toDisplayString(
|
|
8390
|
+
m.subtitle && m.layout !== unref(BookingHeaderLayout).Minimal ? (openBlock(), createElementBlock("h5", _hoisted_4$3, [
|
|
8391
|
+
createBaseVNode("span", null, toDisplayString(m.subtitle), 1)
|
|
8391
8392
|
])) : createCommentVNode("", !0),
|
|
8392
8393
|
createBaseVNode("ul", _hoisted_5$3, [
|
|
8393
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8394
|
-
key:
|
|
8395
|
-
class: normalizeClass({ "is-active":
|
|
8394
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (y, p) => (openBlock(), createElementBlock("li", {
|
|
8395
|
+
key: y.id,
|
|
8396
|
+
class: normalizeClass({ "is-active": l.value >= p })
|
|
8396
8397
|
}, [
|
|
8397
|
-
|
|
8398
|
+
y.icon ? (openBlock(), createBlock(Icon, {
|
|
8398
8399
|
key: 0,
|
|
8399
|
-
icon:
|
|
8400
|
+
icon: y.icon,
|
|
8400
8401
|
type: "fas"
|
|
8401
8402
|
}, null, 8, ["icon"])) : createCommentVNode("", !0),
|
|
8402
|
-
createBaseVNode("span", null, toDisplayString(
|
|
8403
|
+
createBaseVNode("span", null, toDisplayString(y.label), 1)
|
|
8403
8404
|
], 2))), 128))
|
|
8404
8405
|
])
|
|
8405
8406
|
])
|
|
8406
8407
|
])
|
|
8407
8408
|
]),
|
|
8408
8409
|
createBaseVNode("ul", _hoisted_6$3, [
|
|
8409
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8410
|
-
key:
|
|
8410
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.steps, (y) => (openBlock(), createElementBlock("li", {
|
|
8411
|
+
key: y.id,
|
|
8411
8412
|
class: "konnectio-multi-step-form-content-tab"
|
|
8412
8413
|
}, [
|
|
8413
8414
|
withDirectives(createBaseVNode("div", null, [
|
|
8414
|
-
renderSlot(
|
|
8415
|
-
next:
|
|
8416
|
-
prev:
|
|
8417
|
-
reset:
|
|
8415
|
+
renderSlot(m.$slots, y.id, {
|
|
8416
|
+
next: _,
|
|
8417
|
+
prev: b,
|
|
8418
|
+
reset: v
|
|
8418
8419
|
}, void 0, !0)
|
|
8419
8420
|
], 512), [
|
|
8420
|
-
[vShow,
|
|
8421
|
+
[vShow, f.value === y.id]
|
|
8421
8422
|
])
|
|
8422
8423
|
]))), 128))
|
|
8423
8424
|
])
|
|
8424
8425
|
])
|
|
8425
8426
|
], 512));
|
|
8426
8427
|
}
|
|
8427
|
-
}), MultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
8428
|
+
}), MultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e0915bdc"]]), Logo = "data:image/svg+xml,%3csvg%20id='b7c97208-3a12-46ef-b848-b5e1b5fc4d6a'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20500%20500'%3e%3ctitle%3ekonnectio-logo-gray%3c/title%3e%3cpolygon%20points='250%20250%20200%20300%20200%20200%20250%20250'%20style='fill:%23999'/%3e%3cpolygon%20points='200%20200%20200%20300%20150%20350%20150%20150%20200%20200'%20style='fill:%23858585'/%3e%3cpolygon%20points='150%20150%20150%20350%20100%20400%20100%20100%20150%20150'%20style='fill:%23707070'/%3e%3cpolygon%20points='100%20100%20100%20400%2050%20450%2050%2050%20100%20100'%20style='fill:%235c5c5c'/%3e%3cpolygon%20points='50%2050%2050%20450%200%20500%200%200%2050%2050'%20style='fill:%23474747'/%3e%3cpolygon%20points='250%20250%200%20500%20200%20500%20250%20450%20300%20500%20500%20500%20250%20250'%20style='fill:%23333'/%3e%3cpolygon%20points='300%200%20250%2050%20200%200%200%200%20250%20250%20500%200%20300%200'%20style='fill:%23adadad'/%3e%3cpath%20d='M250,462.5'%20style='fill:none'/%3e%3cpath%20d='M250,462.5'%20style='fill:none'/%3e%3c/svg%3e", _hoisted_1$6 = { class: "konnectio-brand" }, _hoisted_2$4 = ["src"], _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
8428
8429
|
__name: "PoweredByKonnectio",
|
|
8429
8430
|
setup(s) {
|
|
8430
8431
|
return (i, t) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
@@ -8785,7 +8786,7 @@ const StickySidebar = /* @__PURE__ */ (() => {
|
|
|
8785
8786
|
*/
|
|
8786
8787
|
static supportTransform(n) {
|
|
8787
8788
|
var r = !1, l = n ? "perspective" : "transform", u = l.charAt(0).toUpperCase() + l.slice(1), d = ["Webkit", "Moz", "O", "ms"], f = document.createElement("support"), g = f.style;
|
|
8788
|
-
return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(_,
|
|
8789
|
+
return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(_, b) {
|
|
8789
8790
|
if (g[_] !== void 0)
|
|
8790
8791
|
return r = _, !1;
|
|
8791
8792
|
}), r;
|
|
@@ -8988,7 +8989,7 @@ const _hoisted_1$3 = {
|
|
|
8988
8989
|
amount: f,
|
|
8989
8990
|
voucher: g,
|
|
8990
8991
|
isLoading: _
|
|
8991
|
-
} = storeToRefs(useApplyGiftCardStore()), { apply:
|
|
8992
|
+
} = storeToRefs(useApplyGiftCardStore()), { apply: b, reset: v } = useApplyGiftCardStore(), m = useSlots(), P = useModel(s, "discountCode"), y = s, p = computed$1(() => y.basePrice - y.weekendFee - y.roomUpgrade), E = ref("discount"), T = computed$1(() => E.value === "discount"), O = computed$1(() => E.value === "gift-card"), S = computed$1(() => !t.value || !e.value), C = computed$1(() => !t.value && !e.value), x = (I) => E.value = I;
|
|
8992
8993
|
return onMounted(() => {
|
|
8993
8994
|
e.value && x("gift-card");
|
|
8994
8995
|
}), (I, R) => {
|
|
@@ -9127,8 +9128,8 @@ const _hoisted_1$3 = {
|
|
|
9127
9128
|
default: withCtx(() => [
|
|
9128
9129
|
T.value ? (openBlock(), createBlock(ActionField, {
|
|
9129
9130
|
key: 0,
|
|
9130
|
-
modelValue:
|
|
9131
|
-
"onUpdate:modelValue": R[3] || (R[3] = (A) =>
|
|
9131
|
+
modelValue: P.value,
|
|
9132
|
+
"onUpdate:modelValue": R[3] || (R[3] = (A) => P.value = A),
|
|
9132
9133
|
icon: "tags",
|
|
9133
9134
|
"button-icon": "paper-plane-top",
|
|
9134
9135
|
placeholder: unref(i)("general.discountCodePlaceholder"),
|
|
@@ -9146,7 +9147,7 @@ const _hoisted_1$3 = {
|
|
|
9146
9147
|
action: "success",
|
|
9147
9148
|
secondary: !0,
|
|
9148
9149
|
"is-loading": unref(_),
|
|
9149
|
-
onAction: R[6] || (R[6] = (A) => unref(
|
|
9150
|
+
onAction: R[6] || (R[6] = (A) => unref(b)())
|
|
9150
9151
|
}, null, 8, ["modelValue", "is-loading"])) : createCommentVNode("", !0)
|
|
9151
9152
|
]),
|
|
9152
9153
|
_: 1
|
|
@@ -9237,16 +9238,16 @@ const _hoisted_1$3 = {
|
|
|
9237
9238
|
offerDate: f,
|
|
9238
9239
|
totalPrice: g,
|
|
9239
9240
|
totalVAT: _,
|
|
9240
|
-
subTotalPrice:
|
|
9241
|
-
} = storeToRefs(usePaymentStore()), { currency: v } = storeToRefs(useUtilityStore()), { currentArrivalDate: m, currentDepartureDate:
|
|
9242
|
-
return (
|
|
9241
|
+
subTotalPrice: b
|
|
9242
|
+
} = storeToRefs(usePaymentStore()), { currency: v } = storeToRefs(useUtilityStore()), { currentArrivalDate: m, currentDepartureDate: P } = storeToRefs(useHotelStore());
|
|
9243
|
+
return (y, p) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
9243
9244
|
createBaseVNode("div", _hoisted_2$1, [
|
|
9244
9245
|
createBaseVNode("h2", _hoisted_3$1, [
|
|
9245
9246
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.thankYou")), 1)
|
|
9246
9247
|
]),
|
|
9247
9248
|
createBaseVNode("div", {
|
|
9248
9249
|
id: "konnectio-confirmation-message",
|
|
9249
|
-
innerHTML:
|
|
9250
|
+
innerHTML: y.message
|
|
9250
9251
|
}, null, 8, _hoisted_4$1)
|
|
9251
9252
|
]),
|
|
9252
9253
|
createBaseVNode("div", _hoisted_5$1, [
|
|
@@ -9262,9 +9263,9 @@ const _hoisted_1$3 = {
|
|
|
9262
9263
|
createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.detailsTitle")), 1)
|
|
9263
9264
|
]),
|
|
9264
9265
|
createBaseVNode("ul", _hoisted_8$1, [
|
|
9265
|
-
unref(m) && unref(
|
|
9266
|
+
unref(m) && unref(P) ? (openBlock(), createElementBlock("li", _hoisted_9, [
|
|
9266
9267
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.date")), 1),
|
|
9267
|
-
createBaseVNode("b", null, toDisplayString(unref(i)("general.datePeriod", { arrival: unref(showDate)(unref(m), 0, !0), departure: unref(showDate)(unref(
|
|
9268
|
+
createBaseVNode("b", null, toDisplayString(unref(i)("general.datePeriod", { arrival: unref(showDate)(unref(m), 0, !0), departure: unref(showDate)(unref(P)) })), 1)
|
|
9268
9269
|
])) : unref(f) ? (openBlock(), createElementBlock("li", _hoisted_10, [
|
|
9269
9270
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.date")), 1),
|
|
9270
9271
|
createBaseVNode("b", null, toDisplayString(unref(showDate)(unref(f))), 1)
|
|
@@ -9316,9 +9317,9 @@ const _hoisted_1$3 = {
|
|
|
9316
9317
|
])
|
|
9317
9318
|
])) : createCommentVNode("", !0),
|
|
9318
9319
|
createBaseVNode("ul", _hoisted_14, [
|
|
9319
|
-
unref(
|
|
9320
|
+
unref(b) ? (openBlock(), createElementBlock("li", _hoisted_15, [
|
|
9320
9321
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.subTotal")), 1),
|
|
9321
|
-
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(
|
|
9322
|
+
createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(b), unref(v))), 1)
|
|
9322
9323
|
])) : createCommentVNode("", !0),
|
|
9323
9324
|
unref(_) ? (openBlock(), createElementBlock("li", _hoisted_16, [
|
|
9324
9325
|
createBaseVNode("span", null, toDisplayString(unref(i)("general.vat")), 1),
|
|
@@ -9648,8 +9649,8 @@ function requireGetSize() {
|
|
|
9648
9649
|
s.exports ? s.exports = t() : i.getSize = t();
|
|
9649
9650
|
})(window, function() {
|
|
9650
9651
|
function t(v) {
|
|
9651
|
-
var m = parseFloat(v),
|
|
9652
|
-
return
|
|
9652
|
+
var m = parseFloat(v), P = v.indexOf("%") == -1 && !isNaN(m);
|
|
9653
|
+
return P && m;
|
|
9653
9654
|
}
|
|
9654
9655
|
function e() {
|
|
9655
9656
|
}
|
|
@@ -9678,8 +9679,8 @@ function requireGetSize() {
|
|
|
9678
9679
|
outerWidth: 0,
|
|
9679
9680
|
outerHeight: 0
|
|
9680
9681
|
}, m = 0; m < l; m++) {
|
|
9681
|
-
var
|
|
9682
|
-
v[
|
|
9682
|
+
var P = r[m];
|
|
9683
|
+
v[P] = 0;
|
|
9683
9684
|
}
|
|
9684
9685
|
return v;
|
|
9685
9686
|
}
|
|
@@ -9695,30 +9696,30 @@ function requireGetSize() {
|
|
|
9695
9696
|
v.style.width = "200px", v.style.padding = "1px 2px 3px 4px", v.style.borderStyle = "solid", v.style.borderWidth = "1px 2px 3px 4px", v.style.boxSizing = "border-box";
|
|
9696
9697
|
var m = document.body || document.documentElement;
|
|
9697
9698
|
m.appendChild(v);
|
|
9698
|
-
var
|
|
9699
|
-
g = Math.round(t(
|
|
9699
|
+
var P = d(v);
|
|
9700
|
+
g = Math.round(t(P.width)) == 200, b.isBoxSizeOuter = g, m.removeChild(v);
|
|
9700
9701
|
}
|
|
9701
9702
|
}
|
|
9702
|
-
function
|
|
9703
|
+
function b(v) {
|
|
9703
9704
|
if (_(), typeof v == "string" && (v = document.querySelector(v)), !(!v || typeof v != "object" || !v.nodeType)) {
|
|
9704
9705
|
var m = d(v);
|
|
9705
9706
|
if (m.display == "none")
|
|
9706
9707
|
return u();
|
|
9707
|
-
var
|
|
9708
|
-
|
|
9709
|
-
for (var
|
|
9708
|
+
var P = {};
|
|
9709
|
+
P.width = v.offsetWidth, P.height = v.offsetHeight;
|
|
9710
|
+
for (var y = P.isBorderBox = m.boxSizing == "border-box", p = 0; p < l; p++) {
|
|
9710
9711
|
var E = r[p], T = m[E], O = parseFloat(T);
|
|
9711
|
-
|
|
9712
|
+
P[E] = isNaN(O) ? 0 : O;
|
|
9712
9713
|
}
|
|
9713
|
-
var S =
|
|
9714
|
-
N !== !1 && (
|
|
9714
|
+
var S = P.paddingLeft + P.paddingRight, C = P.paddingTop + P.paddingBottom, x = P.marginLeft + P.marginRight, I = P.marginTop + P.marginBottom, R = P.borderLeftWidth + P.borderRightWidth, w = P.borderTopWidth + P.borderBottomWidth, A = y && g, N = t(m.width);
|
|
9715
|
+
N !== !1 && (P.width = N + // add padding and border unless it's already including it
|
|
9715
9716
|
(A ? 0 : S + R));
|
|
9716
9717
|
var D = t(m.height);
|
|
9717
|
-
return D !== !1 && (
|
|
9718
|
-
(A ? 0 : C + w)),
|
|
9718
|
+
return D !== !1 && (P.height = D + // add padding and border unless it's already including it
|
|
9719
|
+
(A ? 0 : C + w)), P.innerWidth = P.width - (S + R), P.innerHeight = P.height - (C + w), P.outerWidth = P.width + x, P.outerHeight = P.height + I, P;
|
|
9719
9720
|
}
|
|
9720
9721
|
}
|
|
9721
|
-
return
|
|
9722
|
+
return b;
|
|
9722
9723
|
});
|
|
9723
9724
|
}(getSize)), getSize.exports;
|
|
9724
9725
|
}
|
|
@@ -9796,16 +9797,16 @@ function requireUtils() {
|
|
|
9796
9797
|
return;
|
|
9797
9798
|
}
|
|
9798
9799
|
e(g, d) && f.push(g);
|
|
9799
|
-
for (var _ = g.querySelectorAll(d),
|
|
9800
|
-
f.push(_[
|
|
9800
|
+
for (var _ = g.querySelectorAll(d), b = 0; b < _.length; b++)
|
|
9801
|
+
f.push(_[b]);
|
|
9801
9802
|
}
|
|
9802
9803
|
}), f;
|
|
9803
9804
|
}, n.debounceMethod = function(u, d, f) {
|
|
9804
9805
|
f = f || 100;
|
|
9805
9806
|
var g = u.prototype[d], _ = d + "Timeout";
|
|
9806
9807
|
u.prototype[d] = function() {
|
|
9807
|
-
var
|
|
9808
|
-
clearTimeout(
|
|
9808
|
+
var b = this[_];
|
|
9809
|
+
clearTimeout(b);
|
|
9809
9810
|
var v = arguments, m = this;
|
|
9810
9811
|
this[_] = setTimeout(function() {
|
|
9811
9812
|
g.apply(m, v), delete m[_];
|
|
@@ -9822,17 +9823,17 @@ function requireUtils() {
|
|
|
9822
9823
|
var l = t.console;
|
|
9823
9824
|
return n.htmlInit = function(u, d) {
|
|
9824
9825
|
n.docReady(function() {
|
|
9825
|
-
var f = n.toDashed(d), g = "data-" + f, _ = document.querySelectorAll("[" + g + "]"),
|
|
9826
|
-
v.forEach(function(
|
|
9827
|
-
var p =
|
|
9826
|
+
var f = n.toDashed(d), g = "data-" + f, _ = document.querySelectorAll("[" + g + "]"), b = document.querySelectorAll(".js-" + f), v = n.makeArray(_).concat(n.makeArray(b)), m = g + "-options", P = t.jQuery;
|
|
9827
|
+
v.forEach(function(y) {
|
|
9828
|
+
var p = y.getAttribute(g) || y.getAttribute(m), E;
|
|
9828
9829
|
try {
|
|
9829
9830
|
E = p && JSON.parse(p);
|
|
9830
9831
|
} catch (O) {
|
|
9831
|
-
l && l.error("Error parsing " + g + " on " +
|
|
9832
|
+
l && l.error("Error parsing " + g + " on " + y.className + ": " + O);
|
|
9832
9833
|
return;
|
|
9833
9834
|
}
|
|
9834
|
-
var T = new u(
|
|
9835
|
-
|
|
9835
|
+
var T = new u(y, E);
|
|
9836
|
+
P && P.data(y, d, T);
|
|
9836
9837
|
});
|
|
9837
9838
|
});
|
|
9838
9839
|
}, n;
|
|
@@ -9851,8 +9852,8 @@ function requireItem() {
|
|
|
9851
9852
|
i.getSize
|
|
9852
9853
|
));
|
|
9853
9854
|
})(window, function(t, e) {
|
|
9854
|
-
function n(
|
|
9855
|
-
for (var p in
|
|
9855
|
+
function n(y) {
|
|
9856
|
+
for (var p in y)
|
|
9856
9857
|
return !1;
|
|
9857
9858
|
return p = null, !0;
|
|
9858
9859
|
}
|
|
@@ -9866,8 +9867,8 @@ function requireItem() {
|
|
|
9866
9867
|
transitionProperty: l + "Property",
|
|
9867
9868
|
transitionDelay: l + "Delay"
|
|
9868
9869
|
};
|
|
9869
|
-
function g(
|
|
9870
|
-
|
|
9870
|
+
function g(y, p) {
|
|
9871
|
+
y && (this.element = y, this.layout = p, this.position = {
|
|
9871
9872
|
x: 0,
|
|
9872
9873
|
y: 0
|
|
9873
9874
|
}, this._create());
|
|
@@ -9881,39 +9882,39 @@ function requireItem() {
|
|
|
9881
9882
|
}, this.css({
|
|
9882
9883
|
position: "absolute"
|
|
9883
9884
|
});
|
|
9884
|
-
}, _.handleEvent = function(
|
|
9885
|
-
var p = "on" +
|
|
9886
|
-
this[p] && this[p](
|
|
9885
|
+
}, _.handleEvent = function(y) {
|
|
9886
|
+
var p = "on" + y.type;
|
|
9887
|
+
this[p] && this[p](y);
|
|
9887
9888
|
}, _.getSize = function() {
|
|
9888
9889
|
this.size = e(this.element);
|
|
9889
|
-
}, _.css = function(
|
|
9890
|
+
}, _.css = function(y) {
|
|
9890
9891
|
var p = this.element.style;
|
|
9891
|
-
for (var E in
|
|
9892
|
+
for (var E in y) {
|
|
9892
9893
|
var T = f[E] || E;
|
|
9893
|
-
p[T] =
|
|
9894
|
+
p[T] = y[E];
|
|
9894
9895
|
}
|
|
9895
9896
|
}, _.getPosition = function() {
|
|
9896
|
-
var
|
|
9897
|
+
var y = getComputedStyle(this.element), p = this.layout._getOption("originLeft"), E = this.layout._getOption("originTop"), T = y[p ? "left" : "right"], O = y[E ? "top" : "bottom"], S = parseFloat(T), C = parseFloat(O), x = this.layout.size;
|
|
9897
9898
|
T.indexOf("%") != -1 && (S = S / 100 * x.width), O.indexOf("%") != -1 && (C = C / 100 * x.height), S = isNaN(S) ? 0 : S, C = isNaN(C) ? 0 : C, S -= p ? x.paddingLeft : x.paddingRight, C -= E ? x.paddingTop : x.paddingBottom, this.position.x = S, this.position.y = C;
|
|
9898
9899
|
}, _.layoutPosition = function() {
|
|
9899
|
-
var
|
|
9900
|
+
var y = this.layout.size, p = {}, E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop"), O = E ? "paddingLeft" : "paddingRight", S = E ? "left" : "right", C = E ? "right" : "left", x = this.position.x + y[O];
|
|
9900
9901
|
p[S] = this.getXValue(x), p[C] = "";
|
|
9901
|
-
var I = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", w = T ? "bottom" : "top", A = this.position.y +
|
|
9902
|
+
var I = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", w = T ? "bottom" : "top", A = this.position.y + y[I];
|
|
9902
9903
|
p[R] = this.getYValue(A), p[w] = "", this.css(p), this.emitEvent("layout", [this]);
|
|
9903
|
-
}, _.getXValue = function(
|
|
9904
|
+
}, _.getXValue = function(y) {
|
|
9904
9905
|
var p = this.layout._getOption("horizontal");
|
|
9905
|
-
return this.layout.options.percentPosition && !p ?
|
|
9906
|
-
}, _.getYValue = function(
|
|
9906
|
+
return this.layout.options.percentPosition && !p ? y / this.layout.size.width * 100 + "%" : y + "px";
|
|
9907
|
+
}, _.getYValue = function(y) {
|
|
9907
9908
|
var p = this.layout._getOption("horizontal");
|
|
9908
|
-
return this.layout.options.percentPosition && p ?
|
|
9909
|
-
}, _._transitionTo = function(
|
|
9909
|
+
return this.layout.options.percentPosition && p ? y / this.layout.size.height * 100 + "%" : y + "px";
|
|
9910
|
+
}, _._transitionTo = function(y, p) {
|
|
9910
9911
|
this.getPosition();
|
|
9911
|
-
var E = this.position.x, T = this.position.y, O =
|
|
9912
|
-
if (this.setPosition(
|
|
9912
|
+
var E = this.position.x, T = this.position.y, O = y == this.position.x && p == this.position.y;
|
|
9913
|
+
if (this.setPosition(y, p), O && !this.isTransitioning) {
|
|
9913
9914
|
this.layoutPosition();
|
|
9914
9915
|
return;
|
|
9915
9916
|
}
|
|
9916
|
-
var S =
|
|
9917
|
+
var S = y - E, C = p - T, x = {};
|
|
9917
9918
|
x.transform = this.getTranslate(S, C), this.transition({
|
|
9918
9919
|
to: x,
|
|
9919
9920
|
onTransitionEnd: {
|
|
@@ -9921,56 +9922,56 @@ function requireItem() {
|
|
|
9921
9922
|
},
|
|
9922
9923
|
isCleaning: !0
|
|
9923
9924
|
});
|
|
9924
|
-
}, _.getTranslate = function(
|
|
9925
|
+
}, _.getTranslate = function(y, p) {
|
|
9925
9926
|
var E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop");
|
|
9926
|
-
return
|
|
9927
|
-
}, _.goTo = function(
|
|
9928
|
-
this.setPosition(
|
|
9929
|
-
}, _.moveTo = _._transitionTo, _.setPosition = function(
|
|
9930
|
-
this.position.x = parseFloat(
|
|
9931
|
-
}, _._nonTransition = function(
|
|
9932
|
-
this.css(
|
|
9933
|
-
for (var p in
|
|
9934
|
-
|
|
9935
|
-
}, _.transition = function(
|
|
9927
|
+
return y = E ? y : -y, p = T ? p : -p, "translate3d(" + y + "px, " + p + "px, 0)";
|
|
9928
|
+
}, _.goTo = function(y, p) {
|
|
9929
|
+
this.setPosition(y, p), this.layoutPosition();
|
|
9930
|
+
}, _.moveTo = _._transitionTo, _.setPosition = function(y, p) {
|
|
9931
|
+
this.position.x = parseFloat(y), this.position.y = parseFloat(p);
|
|
9932
|
+
}, _._nonTransition = function(y) {
|
|
9933
|
+
this.css(y.to), y.isCleaning && this._removeStyles(y.to);
|
|
9934
|
+
for (var p in y.onTransitionEnd)
|
|
9935
|
+
y.onTransitionEnd[p].call(this);
|
|
9936
|
+
}, _.transition = function(y) {
|
|
9936
9937
|
if (!parseFloat(this.layout.options.transitionDuration)) {
|
|
9937
|
-
this._nonTransition(
|
|
9938
|
+
this._nonTransition(y);
|
|
9938
9939
|
return;
|
|
9939
9940
|
}
|
|
9940
9941
|
var p = this._transn;
|
|
9941
|
-
for (var E in
|
|
9942
|
-
p.onEnd[E] =
|
|
9943
|
-
for (E in
|
|
9944
|
-
p.ingProperties[E] = !0,
|
|
9945
|
-
|
|
9942
|
+
for (var E in y.onTransitionEnd)
|
|
9943
|
+
p.onEnd[E] = y.onTransitionEnd[E];
|
|
9944
|
+
for (E in y.to)
|
|
9945
|
+
p.ingProperties[E] = !0, y.isCleaning && (p.clean[E] = !0);
|
|
9946
|
+
y.from && (this.css(y.from), this.element.offsetHeight), this.enableTransition(y.to), this.css(y.to), this.isTransitioning = !0;
|
|
9946
9947
|
};
|
|
9947
|
-
function y
|
|
9948
|
-
return
|
|
9948
|
+
function b(y) {
|
|
9949
|
+
return y.replace(/([A-Z])/g, function(p) {
|
|
9949
9950
|
return "-" + p.toLowerCase();
|
|
9950
9951
|
});
|
|
9951
9952
|
}
|
|
9952
|
-
var v = "opacity," +
|
|
9953
|
+
var v = "opacity," + b(u);
|
|
9953
9954
|
_.enableTransition = function() {
|
|
9954
9955
|
if (!this.isTransitioning) {
|
|
9955
|
-
var
|
|
9956
|
-
|
|
9956
|
+
var y = this.layout.options.transitionDuration;
|
|
9957
|
+
y = typeof y == "number" ? y + "ms" : y, this.css({
|
|
9957
9958
|
transitionProperty: v,
|
|
9958
|
-
transitionDuration:
|
|
9959
|
+
transitionDuration: y,
|
|
9959
9960
|
transitionDelay: this.staggerDelay || 0
|
|
9960
9961
|
}), this.element.addEventListener(d, this, !1);
|
|
9961
9962
|
}
|
|
9962
|
-
}, _.onwebkitTransitionEnd = function(
|
|
9963
|
-
this.ontransitionend(
|
|
9964
|
-
}, _.onotransitionend = function(
|
|
9965
|
-
this.ontransitionend(
|
|
9963
|
+
}, _.onwebkitTransitionEnd = function(y) {
|
|
9964
|
+
this.ontransitionend(y);
|
|
9965
|
+
}, _.onotransitionend = function(y) {
|
|
9966
|
+
this.ontransitionend(y);
|
|
9966
9967
|
};
|
|
9967
9968
|
var m = {
|
|
9968
9969
|
"-webkit-transform": "transform"
|
|
9969
9970
|
};
|
|
9970
|
-
_.ontransitionend = function(
|
|
9971
|
-
if (
|
|
9972
|
-
var p = this._transn, E = m[
|
|
9973
|
-
if (delete p.ingProperties[E], n(p.ingProperties) && this.disableTransition(), E in p.clean && (this.element.style[
|
|
9971
|
+
_.ontransitionend = function(y) {
|
|
9972
|
+
if (y.target === this.element) {
|
|
9973
|
+
var p = this._transn, E = m[y.propertyName] || y.propertyName;
|
|
9974
|
+
if (delete p.ingProperties[E], n(p.ingProperties) && this.disableTransition(), E in p.clean && (this.element.style[y.propertyName] = "", delete p.clean[E]), E in p.onEnd) {
|
|
9974
9975
|
var T = p.onEnd[E];
|
|
9975
9976
|
T.call(this), delete p.onEnd[E];
|
|
9976
9977
|
}
|
|
@@ -9978,21 +9979,21 @@ function requireItem() {
|
|
|
9978
9979
|
}
|
|
9979
9980
|
}, _.disableTransition = function() {
|
|
9980
9981
|
this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
|
|
9981
|
-
}, _._removeStyles = function(
|
|
9982
|
+
}, _._removeStyles = function(y) {
|
|
9982
9983
|
var p = {};
|
|
9983
|
-
for (var E in
|
|
9984
|
+
for (var E in y)
|
|
9984
9985
|
p[E] = "";
|
|
9985
9986
|
this.css(p);
|
|
9986
9987
|
};
|
|
9987
|
-
var
|
|
9988
|
+
var P = {
|
|
9988
9989
|
transitionProperty: "",
|
|
9989
9990
|
transitionDuration: "",
|
|
9990
9991
|
transitionDelay: ""
|
|
9991
9992
|
};
|
|
9992
9993
|
return _.removeTransitionStyles = function() {
|
|
9993
|
-
this.css(
|
|
9994
|
-
}, _.stagger = function(
|
|
9995
|
-
|
|
9994
|
+
this.css(P);
|
|
9995
|
+
}, _.stagger = function(y) {
|
|
9996
|
+
y = isNaN(y) ? 0 : y, this.staggerDelay = y + "ms";
|
|
9996
9997
|
}, _.removeElem = function() {
|
|
9997
9998
|
this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
|
|
9998
9999
|
}, _.remove = function() {
|
|
@@ -10005,27 +10006,27 @@ function requireItem() {
|
|
|
10005
10006
|
}), this.hide();
|
|
10006
10007
|
}, _.reveal = function() {
|
|
10007
10008
|
delete this.isHidden, this.css({ display: "" });
|
|
10008
|
-
var
|
|
10009
|
+
var y = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
|
|
10009
10010
|
p[E] = this.onRevealTransitionEnd, this.transition({
|
|
10010
|
-
from:
|
|
10011
|
-
to:
|
|
10011
|
+
from: y.hiddenStyle,
|
|
10012
|
+
to: y.visibleStyle,
|
|
10012
10013
|
isCleaning: !0,
|
|
10013
10014
|
onTransitionEnd: p
|
|
10014
10015
|
});
|
|
10015
10016
|
}, _.onRevealTransitionEnd = function() {
|
|
10016
10017
|
this.isHidden || this.emitEvent("reveal");
|
|
10017
|
-
}, _.getHideRevealTransitionEndProperty = function(
|
|
10018
|
-
var p = this.layout.options[
|
|
10018
|
+
}, _.getHideRevealTransitionEndProperty = function(y) {
|
|
10019
|
+
var p = this.layout.options[y];
|
|
10019
10020
|
if (p.opacity)
|
|
10020
10021
|
return "opacity";
|
|
10021
10022
|
for (var E in p)
|
|
10022
10023
|
return E;
|
|
10023
10024
|
}, _.hide = function() {
|
|
10024
10025
|
this.isHidden = !0, this.css({ display: "" });
|
|
10025
|
-
var
|
|
10026
|
+
var y = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
|
|
10026
10027
|
p[E] = this.onHideTransitionEnd, this.transition({
|
|
10027
|
-
from:
|
|
10028
|
-
to:
|
|
10028
|
+
from: y.visibleStyle,
|
|
10029
|
+
to: y.hiddenStyle,
|
|
10029
10030
|
// keep hidden stuff hidden
|
|
10030
10031
|
isCleaning: !0,
|
|
10031
10032
|
onTransitionEnd: p
|
|
@@ -10071,7 +10072,7 @@ function requireOutlayer() {
|
|
|
10071
10072
|
})(window, function(t, e, n, r, l) {
|
|
10072
10073
|
var u = t.console, d = t.jQuery, f = function() {
|
|
10073
10074
|
}, g = 0, _ = {};
|
|
10074
|
-
function
|
|
10075
|
+
function b(p, E) {
|
|
10075
10076
|
var T = r.getQueryElement(p);
|
|
10076
10077
|
if (!T) {
|
|
10077
10078
|
u && u.error("Bad element for " + this.constructor.namespace + ": " + (T || p));
|
|
@@ -10083,7 +10084,7 @@ function requireOutlayer() {
|
|
|
10083
10084
|
var S = this._getOption("initLayout");
|
|
10084
10085
|
S && this.layout();
|
|
10085
10086
|
}
|
|
10086
|
-
|
|
10087
|
+
b.namespace = "outlayer", b.Item = l, b.defaults = {
|
|
10087
10088
|
containerStyle: {
|
|
10088
10089
|
position: "relative"
|
|
10089
10090
|
},
|
|
@@ -10103,13 +10104,13 @@ function requireOutlayer() {
|
|
|
10103
10104
|
transform: "scale(1)"
|
|
10104
10105
|
}
|
|
10105
10106
|
};
|
|
10106
|
-
var v =
|
|
10107
|
+
var v = b.prototype;
|
|
10107
10108
|
r.extend(v, e.prototype), v.option = function(p) {
|
|
10108
10109
|
r.extend(this.options, p);
|
|
10109
10110
|
}, v._getOption = function(p) {
|
|
10110
10111
|
var E = this.constructor.compatOptions[p];
|
|
10111
10112
|
return E && this.options[E] !== void 0 ? this.options[E] : this.options[p];
|
|
10112
|
-
},
|
|
10113
|
+
}, b.compatOptions = {
|
|
10113
10114
|
// currentName: oldName
|
|
10114
10115
|
initLayout: "isInitLayout",
|
|
10115
10116
|
horizontal: "isHorizontal",
|
|
@@ -10176,7 +10177,7 @@ function requireOutlayer() {
|
|
|
10176
10177
|
this.stagger = 0;
|
|
10177
10178
|
return;
|
|
10178
10179
|
}
|
|
10179
|
-
return this.stagger =
|
|
10180
|
+
return this.stagger = y(p), this.stagger;
|
|
10180
10181
|
}, v._positionItem = function(p, E, T, O, S) {
|
|
10181
10182
|
O ? p.goTo(E, T) : (p.stagger(S * this.stagger), p.moveTo(E, T));
|
|
10182
10183
|
}, v._postLayout = function() {
|
|
@@ -10256,7 +10257,7 @@ function requireOutlayer() {
|
|
|
10256
10257
|
t.removeEventListener("resize", this), this.isResizeBound = !1;
|
|
10257
10258
|
}, v.onresize = function() {
|
|
10258
10259
|
this.resize();
|
|
10259
|
-
}, r.debounceMethod(
|
|
10260
|
+
}, r.debounceMethod(b, "onresize", 100), v.resize = function() {
|
|
10260
10261
|
!this.isResizeBound || !this.needsResizeLayout() || this.layout();
|
|
10261
10262
|
}, v.needsResizeLayout = function() {
|
|
10262
10263
|
var p = n(this.element), E = this.size && p;
|
|
@@ -10318,13 +10319,13 @@ function requireOutlayer() {
|
|
|
10318
10319
|
}), this.unbindResize();
|
|
10319
10320
|
var E = this.element.outlayerGUID;
|
|
10320
10321
|
delete _[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
|
|
10321
|
-
},
|
|
10322
|
+
}, b.data = function(p) {
|
|
10322
10323
|
p = r.getQueryElement(p);
|
|
10323
10324
|
var E = p && p.outlayerGUID;
|
|
10324
10325
|
return E && _[E];
|
|
10325
|
-
},
|
|
10326
|
-
var T = m(
|
|
10327
|
-
return T.defaults = r.extend({},
|
|
10326
|
+
}, b.create = function(p, E) {
|
|
10327
|
+
var T = m(b);
|
|
10328
|
+
return T.defaults = r.extend({}, b.defaults), r.extend(T.defaults, E), T.compatOptions = r.extend({}, b.compatOptions), T.namespace = p, T.data = b.data, T.Item = m(l), r.htmlInit(T, p), d && d.bridget && d.bridget(p, T), T;
|
|
10328
10329
|
};
|
|
10329
10330
|
function m(p) {
|
|
10330
10331
|
function E() {
|
|
@@ -10332,21 +10333,21 @@ function requireOutlayer() {
|
|
|
10332
10333
|
}
|
|
10333
10334
|
return E.prototype = Object.create(p.prototype), E.prototype.constructor = E, E;
|
|
10334
10335
|
}
|
|
10335
|
-
var
|
|
10336
|
+
var P = {
|
|
10336
10337
|
ms: 1,
|
|
10337
10338
|
s: 1e3
|
|
10338
10339
|
};
|
|
10339
|
-
function
|
|
10340
|
+
function y(p) {
|
|
10340
10341
|
if (typeof p == "number")
|
|
10341
10342
|
return p;
|
|
10342
10343
|
var E = p.match(/(^\d*\.?\d*)(\w*)/), T = E && E[1], O = E && E[2];
|
|
10343
10344
|
if (!T.length)
|
|
10344
10345
|
return 0;
|
|
10345
10346
|
T = parseFloat(T);
|
|
10346
|
-
var S =
|
|
10347
|
+
var S = P[O] || 1;
|
|
10347
10348
|
return T * S;
|
|
10348
10349
|
}
|
|
10349
|
-
return
|
|
10350
|
+
return b.Item = l, b;
|
|
10350
10351
|
});
|
|
10351
10352
|
}(outlayer)), outlayer.exports;
|
|
10352
10353
|
}
|
|
@@ -10381,8 +10382,8 @@ function requireOutlayer() {
|
|
|
10381
10382
|
this.columnWidth = u && e(u).outerWidth || // if first elem has no width, default to size of container
|
|
10382
10383
|
this.containerWidth;
|
|
10383
10384
|
}
|
|
10384
|
-
var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, g = f / d, _ = d - f % d,
|
|
10385
|
-
g = Math[
|
|
10385
|
+
var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, g = f / d, _ = d - f % d, b = _ && _ < 1 ? "round" : "floor";
|
|
10386
|
+
g = Math[b](g), this.cols = Math.max(g, 1);
|
|
10386
10387
|
}, r.getContainerWidth = function() {
|
|
10387
10388
|
var l = this._getOption("fitWidth"), u = l ? this.element.parentNode : this.element, d = e(u);
|
|
10388
10389
|
this.containerWidth = d && d.innerWidth;
|
|
@@ -10390,12 +10391,12 @@ function requireOutlayer() {
|
|
|
10390
10391
|
l.getSize();
|
|
10391
10392
|
var u = l.size.outerWidth % this.columnWidth, d = u && u < 1 ? "round" : "ceil", f = Math[d](l.size.outerWidth / this.columnWidth);
|
|
10392
10393
|
f = Math.min(f, this.cols);
|
|
10393
|
-
for (var g = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", _ = this[g](f, l),
|
|
10394
|
+
for (var g = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", _ = this[g](f, l), b = {
|
|
10394
10395
|
x: this.columnWidth * _.col,
|
|
10395
10396
|
y: _.y
|
|
10396
|
-
}, v = _.y + l.size.outerHeight, m = f + _.col,
|
|
10397
|
-
this.colYs[
|
|
10398
|
-
return
|
|
10397
|
+
}, v = _.y + l.size.outerHeight, m = f + _.col, P = _.col; P < m; P++)
|
|
10398
|
+
this.colYs[P] = v;
|
|
10399
|
+
return b;
|
|
10399
10400
|
}, r._getTopColPosition = function(l) {
|
|
10400
10401
|
var u = this._getTopColGroup(l), d = Math.min.apply(Math, u);
|
|
10401
10402
|
return {
|
|
@@ -10422,12 +10423,12 @@ function requireOutlayer() {
|
|
|
10422
10423
|
y: this._getColGroupY(d, l)
|
|
10423
10424
|
};
|
|
10424
10425
|
}, r._manageStamp = function(l) {
|
|
10425
|
-
var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), g = f ? d.left : d.right, _ = g + u.outerWidth,
|
|
10426
|
-
|
|
10426
|
+
var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), g = f ? d.left : d.right, _ = g + u.outerWidth, b = Math.floor(g / this.columnWidth);
|
|
10427
|
+
b = Math.max(0, b);
|
|
10427
10428
|
var v = Math.floor(_ / this.columnWidth);
|
|
10428
10429
|
v -= _ % this.columnWidth ? 0 : 1, v = Math.min(this.cols - 1, v);
|
|
10429
|
-
for (var m = this._getOption("originTop"),
|
|
10430
|
-
this.colYs[
|
|
10430
|
+
for (var m = this._getOption("originTop"), P = (m ? d.top : d.bottom) + u.outerHeight, y = b; y <= v; y++)
|
|
10431
|
+
this.colYs[y] = Math.max(P, this.colYs[y]);
|
|
10431
10432
|
}, r._getContainerSize = function() {
|
|
10432
10433
|
this.maxY = Math.max.apply(Math, this.colYs);
|
|
10433
10434
|
var l = {
|
|
@@ -10467,8 +10468,8 @@ var imagesloaded = { exports: {} };
|
|
|
10467
10468
|
function(t, e) {
|
|
10468
10469
|
var n = t.jQuery, r = t.console;
|
|
10469
10470
|
function l(v, m) {
|
|
10470
|
-
for (var
|
|
10471
|
-
v[
|
|
10471
|
+
for (var P in m)
|
|
10472
|
+
v[P] = m[P];
|
|
10472
10473
|
return v;
|
|
10473
10474
|
}
|
|
10474
10475
|
var u = Array.prototype.slice;
|
|
@@ -10478,15 +10479,15 @@ var imagesloaded = { exports: {} };
|
|
|
10478
10479
|
var m = typeof v == "object" && typeof v.length == "number";
|
|
10479
10480
|
return m ? u.call(v) : [v];
|
|
10480
10481
|
}
|
|
10481
|
-
function f(v, m,
|
|
10482
|
+
function f(v, m, P) {
|
|
10482
10483
|
if (!(this instanceof f))
|
|
10483
|
-
return new f(v, m,
|
|
10484
|
-
var
|
|
10485
|
-
if (typeof v == "string" && (
|
|
10486
|
-
r.error("Bad element for imagesLoaded " + (
|
|
10484
|
+
return new f(v, m, P);
|
|
10485
|
+
var y = v;
|
|
10486
|
+
if (typeof v == "string" && (y = document.querySelectorAll(v)), !y) {
|
|
10487
|
+
r.error("Bad element for imagesLoaded " + (y || v));
|
|
10487
10488
|
return;
|
|
10488
10489
|
}
|
|
10489
|
-
this.elements = d(
|
|
10490
|
+
this.elements = d(y), this.options = l({}, this.options), typeof m == "function" ? P = m : l(this.options, m), P && this.on("always", P), this.getImages(), n && (this.jqDeferred = new n.Deferred()), setTimeout(this.check.bind(this));
|
|
10490
10491
|
}
|
|
10491
10492
|
f.prototype = Object.create(e.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
|
|
10492
10493
|
this.images = [], this.elements.forEach(this.addElementImages, this);
|
|
@@ -10494,14 +10495,14 @@ var imagesloaded = { exports: {} };
|
|
|
10494
10495
|
v.nodeName == "IMG" && this.addImage(v), this.options.background === !0 && this.addElementBackgroundImages(v);
|
|
10495
10496
|
var m = v.nodeType;
|
|
10496
10497
|
if (!(!m || !g[m])) {
|
|
10497
|
-
for (var
|
|
10498
|
-
var p =
|
|
10498
|
+
for (var P = v.querySelectorAll("img"), y = 0; y < P.length; y++) {
|
|
10499
|
+
var p = P[y];
|
|
10499
10500
|
this.addImage(p);
|
|
10500
10501
|
}
|
|
10501
10502
|
if (typeof this.options.background == "string") {
|
|
10502
10503
|
var E = v.querySelectorAll(this.options.background);
|
|
10503
|
-
for (
|
|
10504
|
-
var T = E[
|
|
10504
|
+
for (y = 0; y < E.length; y++) {
|
|
10505
|
+
var T = E[y];
|
|
10505
10506
|
this.addElementBackgroundImages(T);
|
|
10506
10507
|
}
|
|
10507
10508
|
}
|
|
@@ -10515,32 +10516,32 @@ var imagesloaded = { exports: {} };
|
|
|
10515
10516
|
f.prototype.addElementBackgroundImages = function(v) {
|
|
10516
10517
|
var m = getComputedStyle(v);
|
|
10517
10518
|
if (m)
|
|
10518
|
-
for (var
|
|
10519
|
-
var p =
|
|
10520
|
-
p && this.addBackground(p, v),
|
|
10519
|
+
for (var P = /url\((['"])?(.*?)\1\)/gi, y = P.exec(m.backgroundImage); y !== null; ) {
|
|
10520
|
+
var p = y && y[2];
|
|
10521
|
+
p && this.addBackground(p, v), y = P.exec(m.backgroundImage);
|
|
10521
10522
|
}
|
|
10522
10523
|
}, f.prototype.addImage = function(v) {
|
|
10523
10524
|
var m = new _(v);
|
|
10524
10525
|
this.images.push(m);
|
|
10525
10526
|
}, f.prototype.addBackground = function(v, m) {
|
|
10526
|
-
var
|
|
10527
|
-
this.images.push(
|
|
10527
|
+
var P = new b(v, m);
|
|
10528
|
+
this.images.push(P);
|
|
10528
10529
|
}, f.prototype.check = function() {
|
|
10529
10530
|
var v = this;
|
|
10530
10531
|
if (this.progressedCount = 0, this.hasAnyBroken = !1, !this.images.length) {
|
|
10531
10532
|
this.complete();
|
|
10532
10533
|
return;
|
|
10533
10534
|
}
|
|
10534
|
-
function m(
|
|
10535
|
+
function m(P, y, p) {
|
|
10535
10536
|
setTimeout(function() {
|
|
10536
|
-
v.progress(
|
|
10537
|
+
v.progress(P, y, p);
|
|
10537
10538
|
});
|
|
10538
10539
|
}
|
|
10539
|
-
this.images.forEach(function(
|
|
10540
|
-
|
|
10540
|
+
this.images.forEach(function(P) {
|
|
10541
|
+
P.once("progress", m), P.check();
|
|
10541
10542
|
});
|
|
10542
|
-
}, f.prototype.progress = function(v, m,
|
|
10543
|
-
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !v.isLoaded, this.emitEvent("progress", [this, v, m]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, v), this.progressedCount == this.images.length && this.complete(), this.options.debug && r && r.log("progress: " +
|
|
10543
|
+
}, f.prototype.progress = function(v, m, P) {
|
|
10544
|
+
this.progressedCount++, this.hasAnyBroken = this.hasAnyBroken || !v.isLoaded, this.emitEvent("progress", [this, v, m]), this.jqDeferred && this.jqDeferred.notify && this.jqDeferred.notify(this, v), this.progressedCount == this.images.length && this.complete(), this.options.debug && r && r.log("progress: " + P, v, m);
|
|
10544
10545
|
}, f.prototype.complete = function() {
|
|
10545
10546
|
var v = this.hasAnyBroken ? "fail" : "done";
|
|
10546
10547
|
if (this.isComplete = !0, this.emitEvent(v, [this]), this.emitEvent("always", [this]), this.jqDeferred) {
|
|
@@ -10572,21 +10573,21 @@ var imagesloaded = { exports: {} };
|
|
|
10572
10573
|
}, _.prototype.unbindEvents = function() {
|
|
10573
10574
|
this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10574
10575
|
};
|
|
10575
|
-
function
|
|
10576
|
+
function b(v, m) {
|
|
10576
10577
|
this.url = v, this.element = m, this.img = new Image();
|
|
10577
10578
|
}
|
|
10578
|
-
return
|
|
10579
|
+
return b.prototype = Object.create(_.prototype), b.prototype.check = function() {
|
|
10579
10580
|
this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
|
|
10580
10581
|
var v = this.getIsImageComplete();
|
|
10581
10582
|
v && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
|
|
10582
|
-
},
|
|
10583
|
+
}, b.prototype.unbindEvents = function() {
|
|
10583
10584
|
this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
|
|
10584
|
-
},
|
|
10585
|
+
}, b.prototype.confirm = function(v, m) {
|
|
10585
10586
|
this.isLoaded = v, this.emitEvent("progress", [this, this.element, m]);
|
|
10586
10587
|
}, f.makeJQueryPlugin = function(v) {
|
|
10587
|
-
v = v || t.jQuery, v && (n = v, n.fn.imagesLoaded = function(m,
|
|
10588
|
-
var
|
|
10589
|
-
return
|
|
10588
|
+
v = v || t.jQuery, v && (n = v, n.fn.imagesLoaded = function(m, P) {
|
|
10589
|
+
var y = new f(this, m, P);
|
|
10590
|
+
return y.jqDeferred.promise(n(this));
|
|
10590
10591
|
});
|
|
10591
10592
|
}, f.makeJQueryPlugin(), f;
|
|
10592
10593
|
}
|
|
@@ -10629,16 +10630,16 @@ VueMasonryPlugin.install = function(s, i) {
|
|
|
10629
10630
|
nextTick(() => {
|
|
10630
10631
|
_();
|
|
10631
10632
|
});
|
|
10632
|
-
const
|
|
10633
|
+
const b = function(m) {
|
|
10633
10634
|
_();
|
|
10634
10635
|
}, v = function(m) {
|
|
10635
|
-
t.off(`${EVENT_ADD}__${f}`,
|
|
10636
|
-
const
|
|
10636
|
+
t.off(`${EVENT_ADD}__${f}`, b), t.off(`${EVENT_REMOVE}__${f}`, b), t.off(`${EVENT_IMAGE_LOADED}__${f}`, b), t.off(`${EVENT_DESTROY}__${f}`, v);
|
|
10637
|
+
const P = g && !Number.isNaN(g) ? g : 0;
|
|
10637
10638
|
setTimeout(function() {
|
|
10638
10639
|
d.destroy();
|
|
10639
|
-
},
|
|
10640
|
+
}, P);
|
|
10640
10641
|
};
|
|
10641
|
-
t.on(`${EVENT_ADD}__${f}`,
|
|
10642
|
+
t.on(`${EVENT_ADD}__${f}`, b), t.on(`${EVENT_REMOVE}__${f}`, b), t.on(`${EVENT_IMAGE_LOADED}__${f}`, b), t.on(`${EVENT_DESTROY}__${f}`, v);
|
|
10642
10643
|
},
|
|
10643
10644
|
unbind: function(r, l) {
|
|
10644
10645
|
const u = l.value || e;
|
|
@@ -10683,4 +10684,4 @@ export {
|
|
|
10683
10684
|
StickyPlugin as a,
|
|
10684
10685
|
ListingSkeleton as b
|
|
10685
10686
|
};
|
|
10686
|
-
//# sourceMappingURL=masonry.plugin-
|
|
10687
|
+
//# sourceMappingURL=masonry.plugin-rZZcRBGq.js.map
|