@konnectio/core 4.0.119 → 4.1.1

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.
Files changed (60) hide show
  1. package/dist/{ActionField-yaTIHJvx.js → ActionField-Bv7eVoQ6.js} +3 -3
  2. package/dist/ActionField-Bv7eVoQ6.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-CV6IiFig.js → AvailabilitySkeleton-B_gz2zW7.js} +6 -6
  4. package/dist/AvailabilitySkeleton-B_gz2zW7.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dq3QsW9G.js} +3 -3
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Dq3QsW9G.js.br +0 -0
  7. package/dist/{CheckoutWindow-BLhGzw4p.js → CheckoutWindow-D9oLhlnI.js} +3 -3
  8. package/dist/CheckoutWindow-D9oLhlnI.js.br +0 -0
  9. package/dist/{ErrorMessage-CMNpag_d.js → ErrorMessage-D69Wt9sJ.js} +3 -3
  10. package/dist/ErrorMessage-D69Wt9sJ.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-5IKyXHH5.js → EventAvailabilityForm-DMw-tMYh.js} +4 -4
  12. package/dist/EventAvailabilityForm-DMw-tMYh.js.br +0 -0
  13. package/dist/{Field-CvoF7Glc.js → Field-DTS5lUQa.js} +4 -4
  14. package/dist/Field-DTS5lUQa.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-AECoPKDc.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BVM6rNQX.js} +6 -6
  16. package/dist/{SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js → SelectField.vue_vue_type_style_index_0_lang-DC2CrQZx.js} +6271 -6175
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-DC2CrQZx.js.br +0 -0
  18. package/dist/{TermsOfService-D_TOJHKs.js → TermsOfService-BCRB4pzR.js} +4 -4
  19. package/dist/_-CTjyxwPn.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-Iq1FI_VA.js → _.vue_vue_type_style_index_0_lang-BHdZ4cL3.js} +3 -3
  21. package/dist/availability.js +6 -6
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +28 -27
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/deep-link.js +1 -1
  26. package/dist/deep-link.js.br +0 -0
  27. package/dist/event.js +384 -390
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +9 -9
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +10 -10
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/{giftCard-DvqomDap.js → giftCard-C9C5zd6l.js} +3 -3
  34. package/dist/giftCard-C9C5zd6l.js.br +0 -0
  35. package/dist/hotel.js +1007 -982
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-rZZcRBGq.js → masonry.plugin-D7l8_YMQ.js} +705 -671
  38. package/dist/masonry.plugin-D7l8_YMQ.js.br +0 -0
  39. package/dist/{mitt-HQsLmGCg.js → mitt-Dv_UvJqG.js} +4532 -4443
  40. package/dist/mitt-Dv_UvJqG.js.br +0 -0
  41. package/dist/polyfill.js +1 -1
  42. package/dist/polyfill.js.br +0 -0
  43. package/dist/{style-Cc6LpDdk.js → style-DL_k5gwT.js} +2 -2
  44. package/dist/style-DL_k5gwT.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/package.json +24 -24
  48. package/dist/ActionField-yaTIHJvx.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-CV6IiFig.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-BZQdYoAp.js.br +0 -0
  51. package/dist/CheckoutWindow-BLhGzw4p.js.br +0 -0
  52. package/dist/ErrorMessage-CMNpag_d.js.br +0 -0
  53. package/dist/EventAvailabilityForm-5IKyXHH5.js.br +0 -0
  54. package/dist/Field-CvoF7Glc.js.br +0 -0
  55. package/dist/SelectField.vue_vue_type_style_index_0_lang-B52OcB6R.js.br +0 -0
  56. package/dist/_-4AAzKjzk.js +0 -5
  57. package/dist/giftCard-DvqomDap.js.br +0 -0
  58. package/dist/masonry.plugin-rZZcRBGq.js.br +0 -0
  59. package/dist/mitt-HQsLmGCg.js.br +0 -0
  60. package/dist/style-Cc6LpDdk.js.br +0 -0
@@ -1,8 +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, 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";
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-Dv_UvJqG.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-DC2CrQZx.js";
3
+ import { B as Base$1, C as Checkbox, _ as _sfc_main$c } from "./CheckoutWindow-D9oLhlnI.js";
4
+ import { A as ActionField } from "./ActionField-Bv7eVoQ6.js";
5
+ import { E as Element$1 } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-BVM6rNQX.js";
6
6
  import { c as commonjsGlobal, g as getDefaultExportFromCjs } from "./_commonjsHelpers-DaMA6jEr.js";
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -143,9 +143,9 @@ var isUndefined = function(s) {
143
143
  if (d) {
144
144
  var f = 0;
145
145
  try {
146
- for (var g = __values$1(d), _ = g.next(); !_.done; _ = g.next()) {
147
- var b = _.value;
148
- if (b === e) {
146
+ for (var _ = __values$1(d), g = _.next(); !g.done; g = _.next()) {
147
+ var y = g.value;
148
+ if (y === e) {
149
149
  d.splice(f, 1), d.length <= 0 && delete this._eventHandler[t];
150
150
  break;
151
151
  }
@@ -157,7 +157,7 @@ var isUndefined = function(s) {
157
157
  };
158
158
  } finally {
159
159
  try {
160
- _ && !_.done && (r = g.return) && r.call(g);
160
+ g && !g.done && (r = _.return) && r.call(_);
161
161
  } finally {
162
162
  if (n) throw n.error;
163
163
  }
@@ -343,12 +343,12 @@ function getLegacyAgent(s) {
343
343
  name: "unknown",
344
344
  version: "-1",
345
345
  majorVersion: -1
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);
347
- if (e.chromium = !!_.preset, e.chromiumVersion = _.version, !e.chromium) {
348
- var b = findPreset(WEBKIT_PRESETS, i);
349
- e.webkit = !!b.preset, e.webkitVersion = b.version;
346
+ }, r = findPreset(BROWSER_PRESETS, i), l = r.preset, u = r.version, d = findPreset(OS_PRESETS, i), f = d.preset, _ = d.version, g = findPreset(CHROMIUM_PRESETS, i);
347
+ if (e.chromium = !!g.preset, e.chromiumVersion = g.version, !e.chromium) {
348
+ var y = findPreset(WEBKIT_PRESETS, i);
349
+ e.webkit = !!y.preset, e.webkitVersion = y.version;
350
350
  }
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), {
351
+ return f && (n.name = f.id, n.version = _, n.majorVersion = parseInt(_, 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), {
352
352
  browser: e,
353
353
  os: n,
354
354
  isMobile: t,
@@ -370,21 +370,21 @@ function getClientHintsAgent(s) {
370
370
  version: "-1",
371
371
  majorVersion: -1
372
372
  };
373
- l.webkit = !l.chromium && some(WEBKIT_PRESETS, function(b) {
374
- return findBrand(t, b);
373
+ l.webkit = !l.chromium && some(WEBKIT_PRESETS, function(y) {
374
+ return findBrand(t, y);
375
375
  });
376
376
  var d = findPresetBrand(CHROMIUM_PRESETS, t);
377
377
  if (l.chromium = !!d.brand, l.chromiumVersion = d.version, !l.chromium) {
378
378
  var f = findPresetBrand(WEBKIT_PRESETS, t);
379
379
  l.webkit = !!f.brand, l.webkitVersion = f.version;
380
380
  }
381
- var g = find$1(OS_PRESETS, function(b) {
382
- return new RegExp("" + b.test, "g").exec(r);
381
+ var _ = find$1(OS_PRESETS, function(y) {
382
+ return new RegExp("" + y.test, "g").exec(r);
383
383
  });
384
- u.name = g ? g.id : "";
384
+ u.name = _ ? _.id : "";
385
385
  {
386
- var _ = findPresetBrand(BROWSER_PRESETS, t);
387
- l.name = _.brand || l.name, l.version = _.brand && s ? s.uaFullVersion : _.version;
386
+ var g = findPresetBrand(BROWSER_PRESETS, t);
387
+ l.name = g.brand || l.name, l.version = g.brand && s ? s.uaFullVersion : g.version;
388
388
  }
389
389
  return l.webkit && (u.name = e ? "ios" : "mac"), u.name === "ios" && l.webview && (l.version = "-1"), u.version = convertVersion(u.version), l.version = convertVersion(l.version), u.majorVersion = parseInt(u.version, 10), l.majorVersion = parseInt(l.version, 10), {
390
390
  browser: l,
@@ -778,7 +778,7 @@ var requestAnimationFrame$2 = function(s) {
778
778
  }, i.triggerChange = function(t, e, n, r) {
779
779
  var l = this;
780
780
  r === void 0 && (r = !1);
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 = {
781
+ var u = this.animationManager, d = u.axisManager, f = u.getEventInfo(), _ = this._getRoundPos(t, e), g = _.roundPos, y = _.roundDepa, v = d.moveTo(g, y), m = n?.event || f?.event || null, P = {
782
782
  pos: v.pos,
783
783
  delta: v.delta,
784
784
  bounceRatio: this._getBounceRatio(v.pos),
@@ -789,11 +789,11 @@ var requestAnimationFrame$2 = function(s) {
789
789
  set: m ? this._createUserControll(v.pos) : function() {
790
790
  }
791
791
  // eslint-disable-line @typescript-eslint/no-empty-function
792
- }, y = new ComponentEvent$1("change", P);
793
- return this._axes.trigger(y), Object.keys(v.pos).forEach(function(p) {
792
+ }, b = new ComponentEvent$1("change", P);
793
+ return this._axes.trigger(b), Object.keys(v.pos).forEach(function(p) {
794
794
  var E = v.pos[p];
795
795
  getObserver(l._axes, p, E).current = E;
796
- }), m && d.set(P.set().destPos), !y.isCanceled();
796
+ }), m && d.set(P.set().destPos), !b.isCanceled();
797
797
  }, i.triggerAnimationStart = function(t) {
798
798
  var e = this._getRoundPos(t.destPos, t.depaPos), n = e.roundPos, r = e.roundDepa;
799
799
  t.destPos = n, t.depaPos = r, t.setTo = this._createUserControll(t.destPos, t.duration);
@@ -946,21 +946,21 @@ var requestAnimationFrame$2 = function(s) {
946
946
  var e, n = this.prevEvent, r = this._getCenter(t), l = n ? this._getMovement(t) : {
947
947
  x: 0,
948
948
  y: 0
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 = {
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, _ = n ? n.deltaY + l.y : l.y, g = l.x, y = l.y, v = this._latestInterval, m = Date.now(), P = v ? m - v.timestamp : 0, b = n ? n.velocityX : 0, p = n ? n.velocityY : 0;
950
+ return (!v || P >= VELOCITY_INTERVAL) && (v && (e = [(f - v.deltaX) / P, (_ - v.deltaY) / P], b = e[0], p = e[1]), this._latestInterval = {
951
951
  timestamp: m,
952
952
  deltaX: f,
953
- deltaY: g
953
+ deltaY: _
954
954
  }), {
955
955
  srcEvent: t,
956
956
  scale: u,
957
957
  angle: d,
958
958
  center: r,
959
959
  deltaX: f,
960
- deltaY: g,
961
- offsetX: _,
962
- offsetY: b,
963
- velocityX: y,
960
+ deltaY: _,
961
+ offsetX: g,
962
+ offsetY: y,
963
+ velocityX: b,
964
964
  velocityY: p,
965
965
  preventSystemEvent: !0
966
966
  };
@@ -1184,30 +1184,30 @@ var InputObserver = /* @__PURE__ */ function() {
1184
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);
1185
1185
  }
1186
1186
  }, i.change = function(t, e, n, r) {
1187
- if (!(this._isStopped || !this._interruptManager.isInterrupting() || this._axisManager.every(n, function(b) {
1188
- return b === 0;
1187
+ if (!(this._isStopped || !this._interruptManager.isInterrupting() || this._axisManager.every(n, function(y) {
1188
+ return y === 0;
1189
1189
  }))) {
1190
1190
  var l = e.srcEvent ? e.srcEvent : e;
1191
1191
  if (!l.__childrenAxesAlreadyChanged) {
1192
1192
  var u = this._moveDistance || this._axisManager.get(t.axes), d;
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) {
1193
+ d = map(u, function(y, v) {
1194
+ return y + (n[v] || 0);
1195
+ }), this._moveDistance && (this._moveDistance = this._axisManager.map(d, function(y, v) {
1196
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);
1197
+ return m && (m[0] || m[1]) ? getCirculatedPos(y, P, m) : y;
1198
+ })), this._isOutside && this._axisManager.every(u, function(y, v) {
1199
+ return !isOutside(y, v.range);
1200
1200
  }) && (this._isOutside = !1), u = this._atOutside(u), d = this._atOutside(d), (!this.options.nested || !this._isEndofAxis(n, u, d)) && (l.__childrenAxesAlreadyChanged = !0);
1201
1201
  var f = {
1202
1202
  input: t,
1203
1203
  event: e
1204
1204
  };
1205
1205
  if (r) {
1206
- var g = this._animationManager.getDuration(d, u);
1207
- this._animationManager.animateTo(d, g, f);
1206
+ var _ = this._animationManager.getDuration(d, u);
1207
+ this._animationManager.animateTo(d, _, f);
1208
1208
  } else {
1209
- var _ = !this._eventManager.triggerChange(d, u, f, !0);
1210
- _ && (this._isStopped = !0, this._moveDistance = null, this._animationManager.finish(!1));
1209
+ var g = !this._eventManager.triggerChange(d, u, f, !0);
1210
+ g && (this._isStopped = !0, this._moveDistance = null, this._animationManager.finish(!1));
1211
1211
  }
1212
1212
  }
1213
1213
  }
@@ -1217,27 +1217,27 @@ var InputObserver = /* @__PURE__ */ function() {
1217
1217
  l.__childrenAxesAlreadyReleased && (n = n.map(function() {
1218
1218
  return 0;
1219
1219
  }));
1220
- var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n), g = toAxis(t.axes, f), _ = this._axisManager.get(this._axisManager.map(g, function(p, E, T) {
1220
+ var u = this._axisManager.get(t.axes), d = this._axisManager.get(), f = this._animationManager.getDisplacement(n), _ = toAxis(t.axes, f), g = this._axisManager.get(this._axisManager.map(_, function(p, E, T) {
1221
1221
  return E.circular && (E.circular[0] || E.circular[1]) ? u[T] + p : getInsidePosition(u[T] + p, E.range, E.circular, E.bounce);
1222
1222
  }));
1223
1223
  l.__childrenAxesAlreadyReleased = !0;
1224
- var b = this._animationManager.getDuration(_, u, r);
1225
- b === 0 && (_ = __assign$3({}, d));
1224
+ var y = this._animationManager.getDuration(g, u, r);
1225
+ y === 0 && (g = __assign$3({}, d));
1226
1226
  var v = {
1227
1227
  depaPos: d,
1228
- destPos: _,
1229
- duration: b,
1230
- delta: this._axisManager.getDelta(d, _),
1228
+ destPos: g,
1229
+ duration: y,
1230
+ delta: this._axisManager.getDelta(d, g),
1231
1231
  inputEvent: e,
1232
1232
  input: t,
1233
1233
  isTrusted: !0
1234
1234
  };
1235
1235
  --this._eventManager.holdingCount, this._eventManager.triggerRelease(v), this._eventManager.holdingCount === 0 && (this._moveDistance = null);
1236
- var m = this._animationManager.getUserControl(v), P = equal(m.destPos, d), y = {
1236
+ var m = this._animationManager.getUserControl(v), P = equal(m.destPos, d), b = {
1237
1237
  input: t,
1238
1238
  event: e
1239
1239
  };
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);
1240
+ P || m.duration === 0 ? (P || this._eventManager.triggerChange(m.destPos, d, b, !0), this._interruptManager.setInterrupt(!1), this._axisManager.isOutside() ? this._animationManager.restore(b) : this._eventManager.triggerFinish(!0)) : this._animationManager.animateTo(m.destPos, m.duration, b);
1241
1241
  }
1242
1242
  }, i._atOutside = function(t) {
1243
1243
  var e = this;
@@ -1318,17 +1318,17 @@ var InputObserver = /* @__PURE__ */ function() {
1318
1318
  var r = this;
1319
1319
  this.stopAnimation();
1320
1320
  var l = this._createAnimationParam(t, e, n), u = __assign$3({}, l.depaPos), d = this.eventManager.triggerAnimationStart(l), f = this.getUserControl(l);
1321
- if (!d && this.axisManager.every(f.destPos, function(_, b) {
1322
- return isCircularable(_, b.range, b.circular);
1321
+ if (!d && this.axisManager.every(f.destPos, function(g, y) {
1322
+ return isCircularable(g, y.range, y.circular);
1323
1323
  }) && console.warn("You can't stop the 'animation' event when 'circular' is true."), d && !equal(f.destPos, u)) {
1324
- var g = n?.event || null;
1324
+ var _ = n?.event || null;
1325
1325
  this._animateLoop({
1326
1326
  depaPos: u,
1327
1327
  destPos: f.destPos,
1328
1328
  duration: f.duration,
1329
1329
  delta: this.axisManager.getDelta(u, f.destPos),
1330
- isTrusted: !!g,
1331
- inputEvent: g,
1330
+ isTrusted: !!_,
1331
+ inputEvent: _,
1332
1332
  input: n?.input || null
1333
1333
  }, function() {
1334
1334
  return r.animationEnd();
@@ -1344,8 +1344,8 @@ var InputObserver = /* @__PURE__ */ function() {
1344
1344
  return r[d] !== u;
1345
1345
  });
1346
1346
  return Object.keys(l).length ? (l = this.axisManager.map(l, function(u, d) {
1347
- var f = d.range, g = d.circular;
1348
- return g && (g[0] || g[1]) ? u : getInsidePosition(u, f, g);
1347
+ var f = d.range, _ = d.circular;
1348
+ return _ && (_[0] || _[1]) ? u : getInsidePosition(u, f, _);
1349
1349
  }), equal(l, r) ? this : (e > 0 ? this.animateTo(l, e) : (this.stopAnimation(), this.eventManager.triggerChange(l), this.finish(!1)), this)) : this;
1350
1350
  }, i.setBy = function(t, e) {
1351
1351
  return e === void 0 && (e = 0), this.setTo(map(this.axisManager.get(Object.keys(t)), function(n, r) {
@@ -1375,11 +1375,11 @@ var InputObserver = /* @__PURE__ */ function() {
1375
1375
  return d;
1376
1376
  }), l = this._initState(this._animateParam), u = function() {
1377
1377
  n._raf = null;
1378
- var d = n._animateParam, f = n._getNextState(l), g = !n.eventManager.triggerChange(f.pos, l.pos);
1378
+ var d = n._animateParam, f = n._getNextState(l), _ = !n.eventManager.triggerChange(f.pos, l.pos);
1379
1379
  if (l = f, f.finished) {
1380
1380
  d.destPos = n._getFinalPos(d.destPos, r), equal(d.destPos, n.axisManager.get(Object.keys(d.destPos))) || n.eventManager.triggerChange(d.destPos, f.pos), e();
1381
1381
  return;
1382
- } else g ? n.finish(!1) : n._raf = requestAnimationFrame$2(u);
1382
+ } else _ ? n.finish(!1) : n._raf = requestAnimationFrame$2(u);
1383
1383
  };
1384
1384
  u();
1385
1385
  } else
@@ -1388,8 +1388,8 @@ var InputObserver = /* @__PURE__ */ function() {
1388
1388
  var n = this, r = 1e-6, l = map(t, function(u, d) {
1389
1389
  if (u >= e[d] - r && u <= e[d] + r)
1390
1390
  return e[d];
1391
- var f = n._getRoundUnit(u, d), g = roundNumber(u, f);
1392
- return g;
1391
+ var f = n._getRoundUnit(u, d), _ = roundNumber(u, f);
1392
+ return _;
1393
1393
  });
1394
1394
  return l;
1395
1395
  }, i._getRoundUnit = function(t, e) {
@@ -1423,8 +1423,8 @@ var InputObserver = /* @__PURE__ */ function() {
1423
1423
  this._initialEasingPer = this._prevEasingPer, r.delta = this.axisManager.getDelta(f, u), r.destPos = u;
1424
1424
  }
1425
1425
  if (e?.duration) {
1426
- var g = (l + this._durationOffset) / r.duration;
1427
- this._durationOffset = g * d - l, r.duration = d;
1426
+ var _ = (l + this._durationOffset) / r.duration;
1427
+ this._durationOffset = _ * d - l, r.duration = d;
1428
1428
  }
1429
1429
  }
1430
1430
  }, t._initState = function(e) {
@@ -1436,18 +1436,18 @@ var InputObserver = /* @__PURE__ */ function() {
1436
1436
  }, t._getNextState = function(e) {
1437
1437
  var n = this, r = this._animateParam, l = e.pos, u = r.destPos, d = map(l, function(v, m) {
1438
1438
  return v <= u[m] ? 1 : -1;
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) {
1439
+ }), f = (/* @__PURE__ */ new Date()).getTime() - r.startTime, _ = (f + this._durationOffset) / r.duration, g = this._easing(_), y = this.axisManager.map(l, function(v, m, P) {
1440
+ var b = _ >= 1 ? u[P] : v + r.delta[P] * (g - n._prevEasingPer) / (1 - n._initialEasingPer), p = getCirculatedPos(b, m.range, m.circular);
1441
+ if (b !== p) {
1442
1442
  var E = d[P] * (m.range[1] - m.range[0]);
1443
1443
  u[P] -= E, l[P] -= E;
1444
1444
  }
1445
1445
  return p;
1446
1446
  });
1447
- return this._prevEasingPer = _, {
1448
- pos: b,
1449
- easingPer: _,
1450
- finished: _ >= 1
1447
+ return this._prevEasingPer = g, {
1448
+ pos: y,
1449
+ easingPer: g,
1450
+ finished: g >= 1
1451
1451
  };
1452
1452
  }, t._easing = function(e) {
1453
1453
  return e > 1 ? 1 : this._options.easing(e);
@@ -1577,14 +1577,14 @@ var InputObserver = /* @__PURE__ */ function() {
1577
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;
1578
1578
  }
1579
1579
  }, i._onPanmove = function(t) {
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);
1580
+ var e = this, n = this.options, r = n.iOSEdgeSwipeThreshold, l = n.preventClickOnDrag, u = n.releaseOnScroll, d = n.inputKey, f = n.inputButton, _ = n.threshold, g = n.thresholdAngle, y = this._activeEvent, v = y.onEventMove(t, d, f), m = y.getTouches(t, f);
1581
1581
  if (m === 0 || u && v && !v.srcEvent.cancelable) {
1582
1582
  this._onPanend(t);
1583
1583
  return;
1584
1584
  }
1585
1585
  if (!(!v || !this._enabled || m > 1)) {
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) {
1586
+ var P = getDirectionByAngle(v.angle, g), b = useDirection(DIRECTION_HORIZONTAL, this._direction, P), p = useDirection(DIRECTION_VERTICAL, this._direction, P);
1587
+ if (y.prevEvent && IS_IOS_SAFARI) {
1588
1588
  var E = v.center.x < 0;
1589
1589
  if (E) {
1590
1590
  this.release();
@@ -1597,10 +1597,10 @@ var InputObserver = /* @__PURE__ */ function() {
1597
1597
  }, 100);
1598
1598
  }
1599
1599
  }
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) {
1600
+ var O = this._getDistance([v.deltaX, v.deltaY], [b, p]), S = this._getOffset([v.offsetX, v.offsetY], [b, p]), C = S.some(function(x) {
1601
1601
  return x !== 0;
1602
1602
  });
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;
1603
+ C && (v.srcEvent.cancelable !== !1 && v.srcEvent.preventDefault(), v.srcEvent.stopPropagation()), v.preventSystemEvent = C, C && (this._isOverThreshold || O >= _) && (this._dragged = l, this._isOverThreshold = !0, this._observer.change(this, v, toAxis(this.axes, S))), y.prevEvent = v;
1604
1604
  }
1605
1605
  }, i._onPanend = function(t) {
1606
1606
  var e = this.options.inputButton, n = this._activeEvent;
@@ -1852,18 +1852,18 @@ var Loader = /* @__PURE__ */ function(s) {
1852
1852
  var f = n.getLoader(u, {
1853
1853
  prefix: r
1854
1854
  });
1855
- return f.check(), f.on("error", function(g) {
1856
- n.onError(d, g.target);
1857
- }).on("preReady", function(g) {
1858
- var _ = n.elementInfos[d];
1859
- _.hasLoading = g.hasLoading, _.isSkip = g.isSkip;
1860
- var b = n.checkPreReady(d);
1861
- n.onPreReadyElement(d), b && n.onPreReady();
1862
- }).on("ready", function(g) {
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();
1855
+ return f.check(), f.on("error", function(_) {
1856
+ n.onError(d, _.target);
1857
+ }).on("preReady", function(_) {
1858
+ var g = n.elementInfos[d];
1859
+ g.hasLoading = _.hasLoading, g.isSkip = _.isSkip;
1860
+ var y = n.checkPreReady(d);
1861
+ n.onPreReadyElement(d), y && n.onPreReady();
1862
+ }).on("ready", function(_) {
1863
+ var g = _.withPreReady, y = _.hasLoading, v = _.isSkip, m = n.elementInfos[d];
1864
+ m.hasLoading = y, m.isSkip = v;
1865
+ var P = g && n.checkPreReady(d), b = n.checkReady(d);
1866
+ g && n.onPreReadyElement(d), n.onReadyElement(d), P && n.onPreReady(), b && n.onReady();
1867
1867
  }), {
1868
1868
  loader: f,
1869
1869
  element: u,
@@ -1900,25 +1900,25 @@ var Loader = /* @__PURE__ */ function(s) {
1900
1900
  var r = this, l = e.tagName.toLowerCase(), u = this.options.loaders, d = n.prefix, f = Object.keys(u);
1901
1901
  if (u[l])
1902
1902
  return new u[l](e, n);
1903
- var g = new ElementLoader(e, n), _ = toArray$1(e.querySelectorAll(f.join(", ")));
1904
- g.setHasLoading(_.some(function(m) {
1903
+ var _ = new ElementLoader(e, n), g = toArray$1(e.querySelectorAll(f.join(", ")));
1904
+ _.setHasLoading(g.some(function(m) {
1905
1905
  return hasLoadingAttribute(m, d);
1906
1906
  }));
1907
- var b = !1, v = this.clone().on("error", function(m) {
1908
- g.onError(m.target);
1907
+ var y = !1, v = this.clone().on("error", function(m) {
1908
+ _.onError(m.target);
1909
1909
  }).on("ready", function() {
1910
- g.onReady(b);
1910
+ _.onReady(y);
1911
1911
  });
1912
- return g.on("requestChildren", function() {
1912
+ return _.on("requestChildren", function() {
1913
1913
  var m = getContentElements(e, f, r.options.prefix);
1914
1914
  v.check(m).on("preReady", function(P) {
1915
- b = P.isReady, b || g.onPreReady();
1915
+ y = P.isReady, y || _.onPreReady();
1916
1916
  });
1917
1917
  }).on("reqeustReadyChildren", function() {
1918
- v.check(_);
1918
+ v.check(g);
1919
1919
  }).on("requestDestroy", function() {
1920
1920
  v.destroy();
1921
- }), g;
1921
+ }), _;
1922
1922
  }, t.clone = function() {
1923
1923
  return new i(__assign$2({}, this.options));
1924
1924
  }, t.checkPreReady = function(e) {
@@ -2055,22 +2055,22 @@ function __awaiter$1(s, i, t, e) {
2055
2055
  });
2056
2056
  }
2057
2057
  return new (t || (t = Promise))(function(r, l) {
2058
- function u(g) {
2058
+ function u(_) {
2059
2059
  try {
2060
- f(e.next(g));
2061
- } catch (_) {
2062
- l(_);
2060
+ f(e.next(_));
2061
+ } catch (g) {
2062
+ l(g);
2063
2063
  }
2064
2064
  }
2065
- function d(g) {
2065
+ function d(_) {
2066
2066
  try {
2067
- f(e.throw(g));
2068
- } catch (_) {
2069
- l(_);
2067
+ f(e.throw(_));
2068
+ } catch (g) {
2069
+ l(g);
2070
2070
  }
2071
2071
  }
2072
- function f(g) {
2073
- g.done ? r(g.value) : n(g.value).then(u, d);
2072
+ function f(_) {
2073
+ _.done ? r(_.value) : n(_.value).then(u, d);
2074
2074
  }
2075
2075
  f((e = e.apply(s, [])).next());
2076
2076
  });
@@ -2093,8 +2093,8 @@ function __generator$1(s, i) {
2093
2093
  return this;
2094
2094
  }), l;
2095
2095
  function u(f) {
2096
- return function(g) {
2097
- return d([f, g]);
2096
+ return function(_) {
2097
+ return d([f, _]);
2098
2098
  };
2099
2099
  }
2100
2100
  function d(f) {
@@ -2138,8 +2138,8 @@ function __generator$1(s, i) {
2138
2138
  continue;
2139
2139
  }
2140
2140
  f = i.call(s, t);
2141
- } catch (g) {
2142
- f = [6, g], n = 0;
2141
+ } catch (_) {
2142
+ f = [6, _], n = 0;
2143
2143
  } finally {
2144
2144
  e = r = 0;
2145
2145
  }
@@ -2264,6 +2264,8 @@ var CODE = {
2264
2264
  FREE_SCROLL: "freeScroll",
2265
2265
  STRICT: "strict"
2266
2266
  }, CLASS = {
2267
+ VIEWPORT: "flicking-viewport",
2268
+ CAMERA: "flicking-camera",
2267
2269
  VERTICAL: "vertical",
2268
2270
  HIDDEN: "flicking-hidden",
2269
2271
  DEFAULT_VIRTUAL: "flicking-panel"
@@ -2432,7 +2434,7 @@ var CODE = {
2432
2434
  return window.getComputedStyle(s) || s.currentStyle;
2433
2435
  }, setSize = function(s, i) {
2434
2436
  var t = i.width, e = i.height;
2435
- t != null && (isString(t) ? s.style.width = t : s.style.width = t + "px"), e != null && (isString(e) ? s.style.height = e : s.style.height = e + "px");
2437
+ s && (t != null && (isString(t) ? s.style.width = t : s.style.width = t + "px"), e != null && (isString(e) ? s.style.height = e : s.style.height = e + "px"));
2436
2438
  }, isBetween = function(s, i, t) {
2437
2439
  return s >= i && s <= t;
2438
2440
  }, circulateIndex = function(s, i) {
@@ -2448,12 +2450,12 @@ var CODE = {
2448
2450
  if (d)
2449
2451
  l = n ? u : u - f;
2450
2452
  else {
2451
- var g = t ? parseFloat(r.paddingLeft || "0") + parseFloat(r.paddingRight || "0") : parseFloat(r.paddingTop || "0") + parseFloat(r.paddingBottom || "0");
2452
- l = n ? u + g + f : u + g;
2453
+ var _ = t ? parseFloat(r.paddingLeft || "0") + parseFloat(r.paddingRight || "0") : parseFloat(r.paddingTop || "0") + parseFloat(r.paddingBottom || "0");
2454
+ l = n ? u + _ + f : u + _;
2453
2455
  }
2454
2456
  } else {
2455
- var _ = t ? "Width" : "Height";
2456
- l = n ? i["offset" + _] : i["client" + _];
2457
+ var g = t ? "Width" : "Height";
2458
+ l = n ? i["offset" + g] : i["client" + g];
2457
2459
  }
2458
2460
  return Math.max(l, 0);
2459
2461
  }, setPrototypeOf = Object.setPrototypeOf || function(s, i) {
@@ -2836,15 +2838,15 @@ var State = /* @__PURE__ */ function() {
2836
2838
  var e = t.flicking, n = t.axesEvent, r = t.transitTo, l = n.delta[POSITION_KEY];
2837
2839
  if (l) {
2838
2840
  this._delta += l;
2839
- var u = e.camera, d = u.position, f = n.pos[POSITION_KEY], g = e.circularEnabled ? circulatePosition(f, u.range.min, u.range.max) : f;
2840
- u.lookAt(g);
2841
- var _ = new ComponentEvent$1(EVENTS.MOVE, {
2841
+ var u = e.camera, d = u.position, f = n.pos[POSITION_KEY], _ = e.circularEnabled ? circulatePosition(f, u.range.min, u.range.max) : f;
2842
+ u.lookAt(_);
2843
+ var g = new ComponentEvent$1(EVENTS.MOVE, {
2842
2844
  isTrusted: n.isTrusted,
2843
2845
  holding: this.holding,
2844
2846
  direction: getDirection(0, n.delta[POSITION_KEY]),
2845
2847
  axesEvent: n
2846
2848
  });
2847
- e.trigger(_), _.isCanceled() && (u.lookAt(d), r(STATE_TYPE.DISABLED));
2849
+ e.trigger(g), g.isCanceled() && (u.lookAt(d), r(STATE_TYPE.DISABLED));
2848
2850
  }
2849
2851
  }, s;
2850
2852
  }(), IdleState = /* @__PURE__ */ function(s) {
@@ -2883,13 +2885,16 @@ var State = /* @__PURE__ */ function() {
2883
2885
  }
2884
2886
  var t = i.prototype;
2885
2887
  return t.onChange = function(e) {
2886
- var n = e.flicking, r = e.axesEvent, l = e.transitTo, u = r.inputEvent, d = n.horizontal ? u.offsetX : u.offsetY, f = new ComponentEvent$1(EVENTS.MOVE_START, {
2887
- isTrusted: r.isTrusted,
2888
- holding: this.holding,
2889
- direction: getDirection(0, -d),
2890
- axesEvent: r
2891
- });
2892
- n.trigger(f), f.isCanceled() ? l(STATE_TYPE.DISABLED) : l(STATE_TYPE.DRAGGING).onChange(e);
2888
+ var n = e.flicking, r = e.axesEvent, l = e.transitTo, u = r.inputEvent;
2889
+ if (u) {
2890
+ var d = n.horizontal ? u.offsetX : u.offsetY, f = new ComponentEvent$1(EVENTS.MOVE_START, {
2891
+ isTrusted: r.isTrusted,
2892
+ holding: this.holding,
2893
+ direction: getDirection(0, -d),
2894
+ axesEvent: r
2895
+ });
2896
+ n.trigger(f), f.isCanceled() ? l(STATE_TYPE.DISABLED) : l(STATE_TYPE.DRAGGING).onChange(e);
2897
+ }
2893
2898
  }, t.onRelease = function(e) {
2894
2899
  var n = e.flicking, r = e.axesEvent, l = e.transitTo;
2895
2900
  if (n.trigger(new ComponentEvent$1(EVENTS.HOLD_END, {
@@ -2904,17 +2909,17 @@ var State = /* @__PURE__ */ function() {
2904
2909
  }, t.onFinish = function(e) {
2905
2910
  var n, r, l = e.flicking, u = e.transitTo;
2906
2911
  if (u(STATE_TYPE.IDLE), !!this._releaseEvent) {
2907
- var d = this._releaseEvent, f = d.inputEvent.srcEvent, g;
2912
+ var d = this._releaseEvent, f = d.inputEvent.srcEvent, _;
2908
2913
  if (f.type === "touchend") {
2909
- var _ = f, b = _.changedTouches[0];
2910
- g = document.elementFromPoint(b.clientX, b.clientY);
2914
+ var g = f, y = g.changedTouches[0];
2915
+ _ = document.elementFromPoint(y.clientX, y.clientY);
2911
2916
  } else
2912
- g = f.target;
2917
+ _ = f.target;
2913
2918
  var v = l.renderer.panels, m = null;
2914
2919
  try {
2915
- for (var P = __values(v), y = P.next(); !y.done; y = P.next()) {
2916
- var p = y.value;
2917
- if (p.contains(g)) {
2920
+ for (var P = __values(v), b = P.next(); !b.done; b = P.next()) {
2921
+ var p = b.value;
2922
+ if (p.contains(_)) {
2918
2923
  m = p;
2919
2924
  break;
2920
2925
  }
@@ -2925,7 +2930,7 @@ var State = /* @__PURE__ */ function() {
2925
2930
  };
2926
2931
  } finally {
2927
2932
  try {
2928
- y && !y.done && (r = P.return) && r.call(P);
2933
+ b && !b.done && (r = P.return) && r.call(P);
2929
2934
  } finally {
2930
2935
  if (n) throw n.error;
2931
2936
  }
@@ -2959,9 +2964,9 @@ var State = /* @__PURE__ */ function() {
2959
2964
  return;
2960
2965
  }
2961
2966
  u(STATE_TYPE.ANIMATING);
2962
- var d = r.control, f = l.destPos[POSITION_KEY], g = Math.max(l.duration, r.duration);
2967
+ var d = r.control, f = l.destPos[POSITION_KEY], _ = Math.max(l.duration, r.duration);
2963
2968
  try {
2964
- d.moveToPosition(f, g, l);
2969
+ d.moveToPosition(f, _, l);
2965
2970
  } catch {
2966
2971
  u(STATE_TYPE.IDLE), l.setTo((n = {}, n[POSITION_KEY] = r.camera.position, n), 0);
2967
2972
  }
@@ -2989,8 +2994,8 @@ var State = /* @__PURE__ */ function() {
2989
2994
  direction: getDirection(f.start, f.end),
2990
2995
  axesEvent: r
2991
2996
  }));
2992
- var g = this._targetPanel;
2993
- g && u.setActive(g, u.activePanel, r.isTrusted);
2997
+ var _ = this._targetPanel;
2998
+ _ && u.setActive(_, u.activePanel, r.isTrusted);
2994
2999
  }, i;
2995
3000
  }(State), DisabledState = /* @__PURE__ */ function(s) {
2996
3001
  __extends$2(i, s);
@@ -3231,7 +3236,7 @@ var State = /* @__PURE__ */ function() {
3231
3236
  easing: t.easing
3232
3237
  }), this._panInput = new PanInput(t.viewport.element, {
3233
3238
  inputType: t.inputType,
3234
- threshold: 1,
3239
+ threshold: t.dragThreshold,
3235
3240
  iOSEdgeSwipeThreshold: t.iOSEdgeSwipeThreshold,
3236
3241
  preventDefaultOnDrag: t.preventDefaultOnDrag,
3237
3242
  scale: t.horizontal ? [t.camera.panelOrder === ORDER.RTL ? 1 : -1, 0] : [0, -1],
@@ -3241,10 +3246,10 @@ var State = /* @__PURE__ */ function() {
3241
3246
  r.connect(t.horizontal ? [POSITION_KEY, ""] : ["", POSITION_KEY], this._panInput);
3242
3247
  var l = function(d) {
3243
3248
  var f = EVENT[d];
3244
- r.on(f, function(g) {
3249
+ r.on(f, function(_) {
3245
3250
  n._stateMachine.fire(f, {
3246
3251
  flicking: t,
3247
- axesEvent: g
3252
+ axesEvent: _
3248
3253
  });
3249
3254
  });
3250
3255
  };
@@ -3289,31 +3294,31 @@ var State = /* @__PURE__ */ function() {
3289
3294
  return Promise.reject(new FlickingError(MESSAGE.NOT_ATTACHED_TO_FLICKING, CODE.NOT_ATTACHED_TO_FLICKING));
3290
3295
  var f = u.get([POSITION_KEY])[POSITION_KEY];
3291
3296
  if (f === t) {
3292
- var g = getFlickingAttached(this._flicking);
3293
- return g.camera.lookAt(t), d.targetPanel && g.control.setActive(d.targetPanel, g.control.activePanel, (l = n?.isTrusted) !== null && l !== void 0 ? l : !1), Promise.resolve();
3297
+ var _ = getFlickingAttached(this._flicking);
3298
+ return _.camera.lookAt(t), d.targetPanel && _.control.setActive(d.targetPanel, _.control.activePanel, (l = n?.isTrusted) !== null && l !== void 0 ? l : !1), Promise.resolve();
3294
3299
  }
3295
3300
  this._animatingContext = {
3296
3301
  start: f,
3297
3302
  end: t,
3298
3303
  offset: 0
3299
3304
  };
3300
- var _ = function() {
3301
- var b, v, m = function() {
3305
+ var g = function() {
3306
+ var y, v, m = function() {
3302
3307
  r._animatingContext = {
3303
3308
  start: 0,
3304
3309
  end: 0,
3305
3310
  offset: 0
3306
3311
  };
3307
3312
  };
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);
3313
+ u.once(EVENT.FINISH, m), n ? n.setTo((y = {}, y[POSITION_KEY] = t, y), e) : u.setTo((v = {}, v[POSITION_KEY] = t, v), e);
3309
3314
  };
3310
- return new Promise(function(b, v) {
3315
+ return new Promise(function(y, v) {
3311
3316
  var m = function() {
3312
- u.off(EVENT.HOLD, P), b();
3317
+ u.off(EVENT.HOLD, P), y();
3313
3318
  }, P = function() {
3314
3319
  u.off(EVENT.FINISH, m), v(new FlickingError(MESSAGE.ANIMATION_INTERRUPTED, CODE.ANIMATION_INTERRUPTED));
3315
3320
  };
3316
- u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, P), _();
3321
+ u.once(EVENT.FINISH, m), u.once(EVENT.HOLD, P), g();
3317
3322
  });
3318
3323
  }, i.updateDirection = function() {
3319
3324
  var t = getFlickingAttached(this._flicking), e = this._axes, n = this._panInput;
@@ -3444,38 +3449,38 @@ var State = /* @__PURE__ */ function() {
3444
3449
  }, i.copy = function(t) {
3445
3450
  this._flicking = t._flicking, this._activePanel = t._activePanel, this._controller = t._controller;
3446
3451
  }, i._triggerIndexChangeEvent = function(t, e, n, r) {
3447
- var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera, g = this._activePanel, _ = new ComponentEvent$1(d, {
3452
+ var l, u = getFlickingAttached(this._flicking), d = t !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE, f = u.camera, _ = this._activePanel, g = new ComponentEvent$1(d, {
3448
3453
  index: t.index,
3449
3454
  panel: t,
3450
3455
  isTrusted: n?.isTrusted || !1,
3451
- direction: r ?? getDirection((l = g?.position) !== null && l !== void 0 ? l : f.position, e)
3456
+ direction: r ?? getDirection((l = _?.position) !== null && l !== void 0 ? l : f.position, e)
3452
3457
  });
3453
- if (this._nextPanel = t, u.trigger(_), _.isCanceled())
3458
+ if (this._nextPanel = t, u.trigger(g), g.isCanceled())
3454
3459
  throw new FlickingError(MESSAGE.STOP_CALLED_BY_USER, CODE.STOP_CALLED_BY_USER);
3455
3460
  }, i._animateToPosition = function(t) {
3456
3461
  var e = t.position, n = t.duration, r = t.newActivePanel, l = t.axesEvent;
3457
3462
  return __awaiter$1(this, void 0, void 0, function() {
3458
- var u, d, f, g = this;
3459
- return __generator$1(this, function(_) {
3463
+ var u, d, f, _ = this;
3464
+ return __generator$1(this, function(g) {
3460
3465
  return u = getFlickingAttached(this._flicking), d = function() {
3461
- return g._controller.animateTo(e, n, l);
3466
+ return _._controller.animateTo(e, n, l);
3462
3467
  }, f = this._controller.state, f.targetPanel = r, n <= 0 ? [2, d()] : [2, d().then(function() {
3463
- return __awaiter$1(g, void 0, void 0, function() {
3464
- return __generator$1(this, function(b) {
3465
- switch (b.label) {
3468
+ return __awaiter$1(_, void 0, void 0, function() {
3469
+ return __generator$1(this, function(y) {
3470
+ switch (y.label) {
3466
3471
  case 0:
3467
3472
  return [4, u.renderer.render()];
3468
3473
  case 1:
3469
- return b.sent(), [
3474
+ return y.sent(), [
3470
3475
  2
3471
3476
  /*return*/
3472
3477
  ];
3473
3478
  }
3474
3479
  });
3475
3480
  });
3476
- }).catch(function(b) {
3477
- if (!(l && b instanceof FlickingError && b.code === CODE.ANIMATION_INTERRUPTED))
3478
- throw b;
3481
+ }).catch(function(y) {
3482
+ if (!(l && y instanceof FlickingError && y.code === CODE.ANIMATION_INTERRUPTED))
3483
+ throw y;
3479
3484
  })];
3480
3485
  });
3481
3486
  });
@@ -3487,11 +3492,11 @@ var State = /* @__PURE__ */ function() {
3487
3492
  if (!r.canReach(t))
3488
3493
  l = u.position, t = u.panel;
3489
3494
  else if (n.circularEnabled) {
3490
- var d = this._controller.position, f = r.rangeDiff, g = [l, l + f, l - f].filter(function(_) {
3491
- return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ? _ <= d : _ >= d;
3495
+ var d = this._controller.position, f = r.rangeDiff, _ = [l, l + f, l - f].filter(function(g) {
3496
+ return e === DIRECTION.NONE ? !0 : e === DIRECTION.PREV ? g <= d : g >= d;
3492
3497
  });
3493
- l = g.reduce(function(_, b) {
3494
- return Math.abs(d - b) < Math.abs(d - _) ? b : _;
3498
+ l = _.reduce(function(g, y) {
3499
+ return Math.abs(d - y) < Math.abs(d - g) ? y : g;
3495
3500
  }, 1 / 0);
3496
3501
  }
3497
3502
  return l;
@@ -3562,14 +3567,14 @@ var State = /* @__PURE__ */ function() {
3562
3567
  enumerable: !1,
3563
3568
  configurable: !0
3564
3569
  }), t.moveToPosition = function(e, n, r) {
3565
- var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), g = this._controller.state;
3570
+ var l = getFlickingAttached(this._flicking), u = l.camera, d = u.findActiveAnchor(), f = u.findNearestAnchor(u.position), _ = this._controller.state;
3566
3571
  if (!d || !f)
3567
3572
  return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
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;
3569
- if (m >= _ && m > 0)
3573
+ var g = this._calcSnapThreshold(l.threshold, e, d), y = l.animating ? _.delta : e - u.position, v = Math.abs(y), m = r && r.delta[POSITION_KEY] !== 0 ? Math.abs(r.delta[POSITION_KEY]) : v, P;
3574
+ if (m >= g && m > 0)
3570
3575
  P = this._findSnappedAnchor(e, f);
3571
3576
  else if (v >= l.threshold && v > 0)
3572
- P = this._findAdjacentAnchor(e, b, f);
3577
+ P = this._findAdjacentAnchor(e, y, f);
3573
3578
  else
3574
3579
  return this.moveToPanel(f.panel, {
3575
3580
  duration: n,
@@ -3582,31 +3587,31 @@ var State = /* @__PURE__ */ function() {
3582
3587
  axesEvent: r
3583
3588
  });
3584
3589
  }, t._findSnappedAnchor = function(e, n) {
3585
- var r = getFlickingAttached(this._flicking), l = r.camera, u = this._count, d = l.position, f = l.clampToReachablePosition(e), g = l.findAnchorIncludePosition(f);
3586
- if (!n || !g)
3590
+ var r = getFlickingAttached(this._flicking), l = r.camera, u = this._count, d = l.position, f = l.clampToReachablePosition(e), _ = l.findAnchorIncludePosition(f);
3591
+ if (!n || !_)
3587
3592
  throw new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE);
3588
3593
  if (!isFinite(u))
3589
- return g;
3590
- var _ = r.panelCount, b = l.anchorPoints, v = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
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);
3592
- var m = v * _, P = g.index + m;
3594
+ return _;
3595
+ var g = r.panelCount, y = l.anchorPoints, v = Math.sign(e - d) * Math.floor(Math.abs(e - d) / l.rangeDiff);
3596
+ e > d && _.index < n.index || _.position > n.position && _.index === n.index ? v += 1 : (e < d && _.index > n.index || _.position < n.position && _.index === n.index) && (v -= 1);
3597
+ var m = v * g, P = _.index + m;
3593
3598
  if (Math.abs(P - n.index) <= u) {
3594
- var y = b[g.index];
3599
+ var b = y[_.index];
3595
3600
  return new AnchorPoint({
3596
- index: y.index,
3597
- position: y.position + v * l.rangeDiff,
3598
- panel: y.panel
3601
+ index: b.index,
3602
+ position: b.position + v * l.rangeDiff,
3603
+ panel: b.panel
3599
3604
  });
3600
3605
  }
3601
3606
  if (r.circularEnabled) {
3602
- var p = b[circulateIndex(n.index + Math.sign(e - d) * u, _)], E = Math.floor(u / _);
3607
+ var p = y[circulateIndex(n.index + Math.sign(e - d) * u, g)], E = Math.floor(u / g);
3603
3608
  return e > d && p.index < n.index ? E += 1 : e < d && p.index > n.index && (E -= 1), new AnchorPoint({
3604
3609
  index: p.index,
3605
3610
  position: p.position + E * l.rangeDiff,
3606
3611
  panel: p.panel
3607
3612
  });
3608
3613
  } else
3609
- return b[clamp(n.index + Math.sign(e - d) * u, 0, b.length - 1)];
3614
+ return y[clamp(n.index + Math.sign(e - d) * u, 0, y.length - 1)];
3610
3615
  }, t._findAdjacentAnchor = function(e, n, r) {
3611
3616
  var l, u = getFlickingAttached(this._flicking), d = u.camera;
3612
3617
  if (d.circularEnabled) {
@@ -3614,8 +3619,8 @@ var State = /* @__PURE__ */ function() {
3614
3619
  if (f && f.position !== r.position)
3615
3620
  return f;
3616
3621
  }
3617
- var g = (l = n > 0 ? d.getNextAnchor(r) : d.getPrevAnchor(r)) !== null && l !== void 0 ? l : r;
3618
- return g;
3622
+ var _ = (l = n > 0 ? d.getNextAnchor(r) : d.getPrevAnchor(r)) !== null && l !== void 0 ? l : r;
3623
+ return _;
3619
3624
  }, t._calcSnapThreshold = function(e, n, r) {
3620
3625
  var l = n > r.position, u = r.panel, d = u.size, f = u.alignPosition;
3621
3626
  return Math.max(e, l ? d - f + u.margin.next : f + u.margin.prev);
@@ -3652,11 +3657,11 @@ var State = /* @__PURE__ */ function() {
3652
3657
  var l = getFlickingAttached(this._flicking), u = l.camera, d = u.clampToReachablePosition(e), f = u.findAnchorIncludePosition(d);
3653
3658
  if (!f)
3654
3659
  return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
3655
- var g = f.panel;
3656
- return g !== this._activePanel && this._triggerIndexChangeEvent(g, e, r), this._animateToPosition({
3660
+ var _ = f.panel;
3661
+ return _ !== this._activePanel && this._triggerIndexChangeEvent(_, e, r), this._animateToPosition({
3657
3662
  position: this._stopAtEdge ? d : e,
3658
3663
  duration: n,
3659
- newActivePanel: g,
3664
+ newActivePanel: _,
3660
3665
  axesEvent: r
3661
3666
  });
3662
3667
  }, i;
@@ -3687,13 +3692,13 @@ var State = /* @__PURE__ */ function() {
3687
3692
  }), t.destroy = function() {
3688
3693
  s.prototype.destroy.call(this), this._resetIndexRange();
3689
3694
  }, t.updateInput = function() {
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;
3691
- if (!g)
3695
+ var e, n = getFlickingAttached(this._flicking), r = n.camera, l = n.renderer, u = this._controller, d = r.controlParams, f = this._count, _ = u.state.animating ? (e = r.findNearestAnchor(r.position)) === null || e === void 0 ? void 0 : e.panel : this._activePanel;
3696
+ if (!_)
3692
3697
  return u.update(d), this._resetIndexRange(), this;
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
+ var g = d.range, y = _.position, v = _.index, m = l.panelCount, P = v - f, b = v + f;
3699
+ P < 0 && (P = n.circularEnabled ? getMinusCompensatedIndex((P + 1) % m - 1, m) : clamp(P, 0, m - 1)), b >= m && (b = n.circularEnabled ? b % m : clamp(b, 0, m - 1));
3700
+ var p = l.panels[P], E = l.panels[b], T = Math.max(p.position, g.min), O = Math.min(E.position, g.max);
3701
+ return T > y && (T -= r.rangeDiff), O < y && (O += r.rangeDiff), d.range = {
3697
3702
  min: T,
3698
3703
  max: O
3699
3704
  }, d.circular && (d.position < T && (d.position += r.rangeDiff), d.position > O && (d.position -= r.rangeDiff)), d.circular = !1, u.update(d), this._indexRange = {
@@ -3708,12 +3713,12 @@ var State = /* @__PURE__ */ function() {
3708
3713
  });
3709
3714
  });
3710
3715
  }, t.moveToPosition = function(e, n, r) {
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);
3716
+ var l, u = getFlickingAttached(this._flicking), d = u.camera, f = (l = this._nextPanel) !== null && l !== void 0 ? l : this._activePanel, _ = this._controller.range, g = this._indexRange, y = d.range, v = this._controller.state, m = clamp(d.clampToReachablePosition(e), _[0], _[1]), P = d.findAnchorIncludePosition(m);
3712
3717
  if (!P || !f)
3713
3718
  return Promise.reject(new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(e), CODE.POSITION_NOT_REACHABLE));
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);
3719
+ var b = f.position, p = u.animating ? v.delta : e - d.position, E = Math.abs(p) >= u.threshold, T = e > b ? d.getNextAnchor(P) : d.getPrevAnchor(P), O, S, C = d.anchorPoints, x = C[0], I = C[C.length - 1], R = e <= y.min && isBetween(x.panel.index, g.min, g.max), w = e >= y.max && isBetween(I.panel.index, g.min, g.max), A = T && (g.min <= g.max ? isBetween(T.index, g.min, g.max) : T.index >= g.min || T.index <= g.max);
3715
3720
  if (R || w) {
3716
- var N = e < b.min ? x : I;
3721
+ var N = e < y.min ? x : I;
3717
3722
  S = N.panel, O = N.position;
3718
3723
  } else if (E && P.position !== f.position)
3719
3724
  S = P.panel, O = P.position;
@@ -3808,10 +3813,10 @@ var State = /* @__PURE__ */ function() {
3808
3813
  var e = this._flicking, n = e.renderer, r = n.panels;
3809
3814
  if (r.length <= 0)
3810
3815
  return !1;
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) {
3812
- return _ - v.size >= g;
3816
+ var l = r[0], u = r[r.length - 1], d = l.range.min - l.margin.prev, f = u.range.max + u.margin.next, _ = e.camera.size, g = f - d, y = r.every(function(v) {
3817
+ return g - v.size >= _;
3813
3818
  });
3814
- return b;
3819
+ return y;
3815
3820
  }, t.getRange = function() {
3816
3821
  var e = this._flicking, n = e.renderer.panels;
3817
3822
  if (n.length <= 0)
@@ -3837,14 +3842,14 @@ var State = /* @__PURE__ */ function() {
3837
3842
  var n = this._flicking.camera, r = n.anchorPoints;
3838
3843
  if (r.length <= 0) return null;
3839
3844
  for (var l = n.range, u = 1 / 0, d = -1, f = 0; f < r.length; f++) {
3840
- var g = r[f], _ = Math.min(Math.abs(g.position - e), Math.abs(g.position - l.min + l.max - e), Math.abs(e - l.min + l.max - g.position));
3841
- _ < u && (u = _, d = f);
3845
+ var _ = r[f], g = Math.min(Math.abs(_.position - e), Math.abs(_.position - l.min + l.max - e), Math.abs(e - l.min + l.max - _.position));
3846
+ g < u && (u = g, d = f);
3842
3847
  }
3843
3848
  return r[d];
3844
3849
  }, t.findAnchorIncludePosition = function(e) {
3845
- var n = this._flicking.camera, r = n.range, l = n.anchorPoints, u = n.rangeDiff, d = l.length, f = circulatePosition(e, r.min, r.max), g = s.prototype.findAnchorIncludePosition.call(this, f);
3850
+ var n = this._flicking.camera, r = n.range, l = n.anchorPoints, u = n.rangeDiff, d = l.length, f = circulatePosition(e, r.min, r.max), _ = s.prototype.findAnchorIncludePosition.call(this, f);
3846
3851
  if (d > 0 && (e === r.min || e === r.max)) {
3847
- var _ = [g, new AnchorPoint({
3852
+ var g = [_, new AnchorPoint({
3848
3853
  index: 0,
3849
3854
  position: l[0].position + u,
3850
3855
  panel: l[0].panel
@@ -3855,27 +3860,27 @@ var State = /* @__PURE__ */ function() {
3855
3860
  })].filter(function(v) {
3856
3861
  return !!v;
3857
3862
  });
3858
- g = _.reduce(function(v, m) {
3863
+ _ = g.reduce(function(v, m) {
3859
3864
  return v && Math.abs(v.position - e) < Math.abs(m.position - e) ? v : m;
3860
3865
  }, null);
3861
3866
  }
3862
- if (!g) return null;
3867
+ if (!_) return null;
3863
3868
  if (e < r.min) {
3864
- var b = -Math.floor((r.min - e) / u) - 1;
3869
+ var y = -Math.floor((r.min - e) / u) - 1;
3865
3870
  return new AnchorPoint({
3866
- index: g.index,
3867
- position: g.position + u * b,
3868
- panel: g.panel
3871
+ index: _.index,
3872
+ position: _.position + u * y,
3873
+ panel: _.panel
3869
3874
  });
3870
3875
  } else if (e > r.max) {
3871
- var b = Math.floor((e - r.max) / u) + 1;
3876
+ var y = Math.floor((e - r.max) / u) + 1;
3872
3877
  return new AnchorPoint({
3873
- index: g.index,
3874
- position: g.position + u * b,
3875
- panel: g.panel
3878
+ index: _.index,
3879
+ position: _.position + u * y,
3880
+ panel: _.panel
3876
3881
  });
3877
3882
  }
3878
- return g;
3883
+ return _;
3879
3884
  }, t.getCircularOffset = function() {
3880
3885
  var e = this._flicking, n = e.camera;
3881
3886
  if (!n.circularEnabled) return 0;
@@ -3909,8 +3914,8 @@ var State = /* @__PURE__ */ function() {
3909
3914
  var e = this._flicking, n = e.renderer, r = n.getPanel(0), l = n.getPanel(n.panelCount - 1);
3910
3915
  if (!r || !l)
3911
3916
  return !1;
3912
- var u = e.camera.size, d = r.range.min, f = l.range.max, g = f - d, _ = u < g;
3913
- return _;
3917
+ var u = e.camera.size, d = r.range.min, f = l.range.max, _ = f - d, g = u < _;
3918
+ return g;
3914
3919
  }, t.getRange = function() {
3915
3920
  var e = this._flicking, n = e.renderer, r = e.camera.alignPosition, l = n.getPanel(0), u = n.getPanel(n.panelCount - 1);
3916
3921
  if (!l || !u)
@@ -3918,13 +3923,13 @@ var State = /* @__PURE__ */ function() {
3918
3923
  min: 0,
3919
3924
  max: 0
3920
3925
  };
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)
3926
+ var d = e.camera.size, f = l.range.min, _ = u.range.max, g = _ - f, y = d < g, v = f + r, m = _ - d + r;
3927
+ if (y)
3923
3928
  return {
3924
3929
  min: v,
3925
3930
  max: m
3926
3931
  };
3927
- var P = e.camera.align, y = typeof P == "object" ? P.camera : P, p = v + parseAlign$1(y, m - v);
3932
+ var P = e.camera.align, b = typeof P == "object" ? P.camera : P, p = v + parseAlign$1(b, m - v);
3928
3933
  return {
3929
3934
  min: p,
3930
3935
  max: p
@@ -3937,24 +3942,24 @@ var State = /* @__PURE__ */ function() {
3937
3942
  return n.canReach(P);
3938
3943
  });
3939
3944
  if (u.length > 0) {
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) {
3945
+ var d = u[0].position !== l.min, f = u[u.length - 1].position !== l.max, _ = d ? 1 : 0, g = u.map(function(P, b) {
3941
3946
  return new AnchorPoint({
3942
- index: y + g,
3947
+ index: b + _,
3943
3948
  position: P.position,
3944
3949
  panel: P
3945
3950
  });
3946
3951
  });
3947
- return d && _.splice(0, 0, new AnchorPoint({
3952
+ return d && g.splice(0, 0, new AnchorPoint({
3948
3953
  index: 0,
3949
3954
  position: l.min,
3950
3955
  panel: r[u[0].index - 1]
3951
- })), f && _.push(new AnchorPoint({
3952
- index: _.length,
3956
+ })), f && g.push(new AnchorPoint({
3957
+ index: g.length,
3953
3958
  position: l.max,
3954
3959
  panel: r[u[u.length - 1].index + 1]
3955
- })), _;
3960
+ })), g;
3956
3961
  } else if (l.min !== l.max) {
3957
- var b = this._findNearestPanel(l.min, r), v = b.index === r.length - 1 ? b.prev() : b, m = v.next();
3962
+ var y = this._findNearestPanel(l.min, r), v = y.index === r.length - 1 ? y.prev() : y, m = v.next();
3958
3963
  return [new AnchorPoint({
3959
3964
  index: 0,
3960
3965
  position: l.min,
@@ -3985,12 +3990,12 @@ var State = /* @__PURE__ */ function() {
3985
3990
  }(CameraMode), Camera = /* @__PURE__ */ function() {
3986
3991
  function s(t, e) {
3987
3992
  var n = this, r = (e === void 0 ? {} : e).align, l = r === void 0 ? ALIGN.CENTER : r;
3988
- this._checkTranslateSupport = function() {
3989
- var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], g = document.documentElement.style, _ = "";
3993
+ this._lookedOffset = 0, this._checkTranslateSupport = function() {
3994
+ var u, d, f = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"], _ = document.documentElement.style, g = "";
3990
3995
  try {
3991
- for (var b = __values(f), v = b.next(); !v.done; v = b.next()) {
3996
+ for (var y = __values(f), v = y.next(); !v.done; v = y.next()) {
3992
3997
  var m = v.value;
3993
- m in g && (_ = m);
3998
+ m in _ && (g = m);
3994
3999
  }
3995
4000
  } catch (P) {
3996
4001
  u = {
@@ -3998,14 +4003,14 @@ var State = /* @__PURE__ */ function() {
3998
4003
  };
3999
4004
  } finally {
4000
4005
  try {
4001
- v && !v.done && (d = b.return) && d.call(b);
4006
+ v && !v.done && (d = y.return) && d.call(y);
4002
4007
  } finally {
4003
4008
  if (u) throw u.error;
4004
4009
  }
4005
4010
  }
4006
- if (!_)
4011
+ if (!g)
4007
4012
  throw new FlickingError(MESSAGE.TRANSFORM_NOT_SUPPORTED, CODE.TRANSFORM_NOT_SUPPORTED);
4008
- n._transform = _;
4013
+ n._transform = g;
4009
4014
  }, this._flicking = t, this._resetInternalValues(), this._align = l;
4010
4015
  }
4011
4016
  var i = s.prototype;
@@ -4218,15 +4223,15 @@ var State = /* @__PURE__ */ function() {
4218
4223
  var t = this._flicking, e = this._position + this._offset, n = this.findNearestAnchor(this._position);
4219
4224
  if (!t || !n)
4220
4225
  return NaN;
4221
- var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min, g = d.max, _ = this.rangeDiff;
4226
+ var r = n.panel, l = r.position + r.offset, u = t.control.controller.bounce, d = this.range, f = d.min, _ = d.max, g = this.rangeDiff;
4222
4227
  if (e === l)
4223
4228
  return r.index;
4224
4229
  if (e < l) {
4225
- var b = r.prev(), v = b ? b.position + b.offset : f - u[0];
4226
- return v > l && (v -= _), r.index - 1 + getProgress(e, v, l);
4230
+ var y = r.prev(), v = y ? y.position + y.offset : f - u[0];
4231
+ return v > l && (v -= g), r.index - 1 + getProgress(e, v, l);
4227
4232
  } else {
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);
4233
+ var m = r.next(), P = m ? m.position + m.offset : _ + u[1];
4234
+ return P < l && (P += g), r.index + getProgress(e, l, P);
4230
4235
  }
4231
4236
  },
4232
4237
  enumerable: !1,
@@ -4265,12 +4270,12 @@ var State = /* @__PURE__ */ function() {
4265
4270
  }, i.destroy = function() {
4266
4271
  return this._resetInternalValues(), this;
4267
4272
  }, i.lookAt = function(t) {
4268
- var e = this, n = getFlickingAttached(this._flicking), r = this._position;
4273
+ var e = this, n = this._offset, r = this._lookedOffset !== n, l = getFlickingAttached(this._flicking), u = this._position;
4269
4274
  this._position = t;
4270
- var l = this._togglePanels(r, t);
4271
- this._refreshVisiblePanels(), this._checkNeedPanel(), this._checkReachEnd(r, t), l ? n.renderer.render().then(function() {
4272
- e.updateOffset();
4273
- }) : this.applyTransform();
4275
+ var d = this._togglePanels(u, t);
4276
+ this._refreshVisiblePanels(), this._checkNeedPanel(), this._checkReachEnd(u, t), d ? l.renderer.render().then(function() {
4277
+ e.updateOffset(), e._lookedOffset = e._offset;
4278
+ }) : r ? (this.updateOffset(), this._lookedOffset = this._offset) : this.applyTransform();
4274
4279
  }, i.getPrevAnchor = function(t) {
4275
4280
  if (!this._circularEnabled || t.index !== 0)
4276
4281
  return this._anchors[t.index - 1] || null;
@@ -4319,10 +4324,15 @@ var State = /* @__PURE__ */ function() {
4319
4324
  }, i.updateAnchors = function() {
4320
4325
  return this._anchors = this._mode.getAnchors(), this;
4321
4326
  }, i.updateAdaptiveHeight = function() {
4322
- var t = getFlickingAttached(this._flicking), e = t.control.activePanel;
4323
- !t.horizontal || !t.adaptive || !e || t.viewport.setSize({
4324
- height: e.height
4325
- });
4327
+ var t = getFlickingAttached(this._flicking), e = t.control.activePanel, n = t.visiblePanels, r = __spread(n);
4328
+ if (e && r.push(e), !(!t.horizontal || !t.adaptive || !r.length)) {
4329
+ var l = Math.max.apply(Math, __spread(r.map(function(u) {
4330
+ return u.height;
4331
+ })));
4332
+ t.viewport.setSize({
4333
+ height: l
4334
+ });
4335
+ }
4326
4336
  }, i.updateOffset = function() {
4327
4337
  var t = getFlickingAttached(this._flicking), e = this._position, n = t.panels.filter(function(r) {
4328
4338
  return !r.rendered;
@@ -4348,7 +4358,7 @@ var State = /* @__PURE__ */ function() {
4348
4358
  var r = this._position - this._alignPos - this._offset + this._circularOffset;
4349
4359
  return t.style[this._transform] = e.horizontal ? "translate(" + (this._panelOrder === ORDER.RTL ? r : -r) + "px)" : "translate(0, " + -r + "px)", this;
4350
4360
  }, i._resetInternalValues = function() {
4351
- this._position = 0, this._alignPos = 0, this._offset = 0, this._circularOffset = 0, this._circularEnabled = !1, this._range = {
4361
+ this._position = 0, this._lookedOffset = 0, this._alignPos = 0, this._offset = 0, this._circularOffset = 0, this._circularEnabled = !1, this._range = {
4352
4362
  min: 0,
4353
4363
  max: 0
4354
4364
  }, this._visiblePanels = [], this._anchors = [], this._needPanelTriggered = {
@@ -4384,16 +4394,16 @@ var State = /* @__PURE__ */ function() {
4384
4394
  })), t.next = !0);
4385
4395
  return;
4386
4396
  }
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];
4397
+ var r = this._position, l = this.size, u = this._range, d = e.needPanelThreshold, f = r - this._alignPos, _ = f + l, g = n[0], y = n[n.length - 1];
4388
4398
  if (!t.prev) {
4389
- var v = _.range.min;
4399
+ var v = g.range.min;
4390
4400
  (f <= v + d || r <= u.min + d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
4391
4401
  direction: DIRECTION.PREV
4392
4402
  })), t.prev = !0);
4393
4403
  }
4394
4404
  if (!t.next) {
4395
- var m = b.range.max;
4396
- (g >= m - d || r >= u.max - d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
4405
+ var m = y.range.max;
4406
+ (_ >= m - d || r >= u.max - d) && (e.trigger(new ComponentEvent$1(EVENTS.NEED_PANEL, {
4397
4407
  direction: DIRECTION.NEXT
4398
4408
  })), t.next = !0);
4399
4409
  }
@@ -4531,24 +4541,24 @@ var State = /* @__PURE__ */ function() {
4531
4541
  }, i.batchInsertDefer = function() {
4532
4542
  for (var t = this, e = [], n = 0; n < arguments.length; n++)
4533
4543
  e[n] = arguments[n];
4534
- var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(g, _) {
4535
- var b, v = getMinusCompensatedIndex(_.index, r.length), m = r.slice(v), P = _.elements.map(function(p, E) {
4544
+ var r = this._panels, l = getFlickingAttached(this._flicking), u = r[0], d = parsePanelAlign(this._align), f = e.reduce(function(_, g) {
4545
+ var y, v = getMinusCompensatedIndex(g.index, r.length), m = r.slice(v), P = g.elements.map(function(p, E) {
4536
4546
  return t._createPanel(p, {
4537
4547
  index: v + E,
4538
4548
  align: d,
4539
4549
  flicking: l
4540
4550
  });
4541
4551
  });
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);
4552
+ if (r.splice.apply(r, __spread([v, 0], P)), g.hasDOMInElements && t._insertPanelElements(P, (y = m[0]) !== null && y !== void 0 ? y : null), l.panelsPerView > 0) {
4553
+ var b = u || P[0].resize();
4554
+ t._updatePanelSizeByGrid(b, P);
4545
4555
  } else
4546
4556
  P.forEach(function(p) {
4547
4557
  return p.resize();
4548
4558
  });
4549
4559
  return m.forEach(function(p) {
4550
4560
  p.increaseIndex(P.length), p.updatePosition();
4551
- }), __spread(g, P);
4561
+ }), __spread(_, P);
4552
4562
  }, []);
4553
4563
  return f;
4554
4564
  }, i.batchRemove = function() {
@@ -4559,13 +4569,13 @@ var State = /* @__PURE__ */ function() {
4559
4569
  }, i.batchRemoveDefer = function() {
4560
4570
  for (var t = this, e = [], n = 0; n < arguments.length; n++)
4561
4571
  e[n] = arguments[n];
4562
- var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(g, _) {
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) {
4572
+ var r = this._panels, l = getFlickingAttached(this._flicking), u = l.control, d = u.activePanel, f = e.reduce(function(_, g) {
4573
+ var y = g.index, v = g.deleteCount, m = getMinusCompensatedIndex(y, r.length), P = r.slice(m + v), b = r.splice(m, v);
4574
+ return b.length <= 0 ? [] : (P.forEach(function(p) {
4575
+ p.decreaseIndex(b.length), p.updatePosition();
4576
+ }), g.hasDOMInElements && t._removePanelElements(b), b.forEach(function(p) {
4567
4577
  return p.destroy();
4568
- }), includes(y, d) && u.resetActive(), __spread(g, y));
4578
+ }), includes(b, d) && u.resetActive(), __spread(_, b));
4569
4579
  }, []);
4570
4580
  return f;
4571
4581
  }, i.updateAfterPanelChange = function(t, e) {
@@ -4575,8 +4585,8 @@ var State = /* @__PURE__ */ function() {
4575
4585
  if (d.length <= 0)
4576
4586
  l.lookAt(0);
4577
4587
  else {
4578
- var g = (n = f?.index) !== null && n !== void 0 ? n : 0;
4579
- g > d.length - 1 && (g = d.length - 1), u.moveToPanel(d[g], {
4588
+ var _ = (n = f?.index) !== null && n !== void 0 ? n : 0;
4589
+ _ > d.length - 1 && (_ = d.length - 1), u.moveToPanel(d[_], {
4580
4590
  duration: 0
4581
4591
  }).catch(function() {
4582
4592
  });
@@ -4607,10 +4617,10 @@ var State = /* @__PURE__ */ function() {
4607
4617
  d.destroy();
4608
4618
  return;
4609
4619
  }
4610
- var g = t[f.index], _ = n.camera, b = n.control, v = b.activePanel ? _.getProgressInPanel(b.activePanel) : 0;
4611
- g.loading = !1, g.resize(), l.slice(g.index + 1).forEach(function(m) {
4620
+ var _ = t[f.index], g = n.camera, y = n.control, v = y.activePanel ? g.getProgressInPanel(y.activePanel) : 0;
4621
+ _.loading = !1, _.resize(), l.slice(_.index + 1).forEach(function(m) {
4612
4622
  return m.updatePosition();
4613
- }), n.initialized && (_.updateRange(), _.updateOffset(), _.updateAnchors(), b.animating || (b.updatePosition(v), b.updateInput()));
4623
+ }), n.initialized && (g.updateRange(), g.updateOffset(), g.updateAnchors(), y.animating || (y.updatePosition(v), y.updateInput()));
4614
4624
  }), d.on("preReady", function(f) {
4615
4625
  e._flicking && e.render(), f.readyCount === f.totalCount && d.destroy();
4616
4626
  }), d.on("ready", function() {
@@ -4639,14 +4649,14 @@ var State = /* @__PURE__ */ function() {
4639
4649
  width: d
4640
4650
  } : {
4641
4651
  height: d
4642
- }, g = __assign$1({
4652
+ }, _ = __assign$1({
4643
4653
  size: d,
4644
4654
  margin: t.margin
4645
4655
  }, !n.horizontal && {
4646
4656
  height: t.height
4647
4657
  });
4648
- n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(_) {
4649
- return _.resize(g);
4658
+ n.noPanelStyleOverride || this._strategy.updatePanelSizes(n, f), n.panels.forEach(function(g) {
4659
+ return g.resize(_);
4650
4660
  });
4651
4661
  }
4652
4662
  }, i._removeAllChildsFromCamera = function() {
@@ -4998,6 +5008,8 @@ var State = /* @__PURE__ */ function() {
4998
5008
  this._rendered = !1, this._elProvider.hide(this._flicking);
4999
5009
  }, i.resize = function(t) {
5000
5010
  var e, n = this.element, r = this._flicking, l = r.horizontal, u = r.useFractionalSize;
5011
+ if (!n)
5012
+ return this;
5001
5013
  if (t)
5002
5014
  this._size = t.size, this._margin = __assign$1({}, t.margin), this._height = (e = t.height) !== null && e !== void 0 ? e : getElementSize({
5003
5015
  el: n,
@@ -5069,8 +5081,8 @@ var State = /* @__PURE__ */ function() {
5069
5081
  var t = this._flicking;
5070
5082
  if (!t.circularEnabled)
5071
5083
  return this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0, this._toggled = !1, this;
5072
- var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u, g = this.includeRange(f - u, f, !1), _ = this.includeRange(d, d + u, !1);
5073
- return this._toggled = !1, g ? (this._toggleDirection = DIRECTION.PREV, this._togglePosition = this.range.max + n.min - n.max + r, this.toggle(1 / 0, e.position)) : _ ? (this._toggleDirection = DIRECTION.NEXT, this._togglePosition = this.range.min + n.max - u + r, this.toggle(-1 / 0, e.position)) : (this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0), this;
5084
+ var e = t.camera, n = e.range, r = e.alignPosition, l = e.visibleRange, u = l.max - l.min, d = n.min - r, f = n.max - r + u, _ = this.includeRange(f - u, f, !1), g = this.includeRange(d, d + u, !1);
5085
+ return this._toggled = !1, _ ? (this._toggleDirection = DIRECTION.PREV, this._togglePosition = this.range.max + n.min - n.max + r, this.toggle(1 / 0, e.position)) : g ? (this._toggleDirection = DIRECTION.NEXT, this._togglePosition = this.range.min + n.max - u + r, this.toggle(-1 / 0, e.position)) : (this._toggleDirection = DIRECTION.NONE, this._togglePosition = 0), this;
5074
5086
  }, i._updateAlignPos = function() {
5075
5087
  this._alignPos = parseAlign$1(this._align, this._size);
5076
5088
  }, i._resetInternalStates = function() {
@@ -5261,10 +5273,10 @@ var State = /* @__PURE__ */ function() {
5261
5273
  }(), Flicking$1 = /* @__PURE__ */ function(s) {
5262
5274
  __extends$2(i, s);
5263
5275
  function i(e, n) {
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) {
5265
- return 1 - Math.pow(1 - Re, 3);
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;
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;
5276
+ var r = n === void 0 ? {} : n, l = r.align, u = l === void 0 ? ALIGN.CENTER : l, d = r.defaultIndex, f = d === void 0 ? 0 : d, _ = r.horizontal, g = _ === void 0 ? !0 : _, y = r.circular, v = y === void 0 ? !1 : y, m = r.circularFallback, P = m === void 0 ? CIRCULAR_FALLBACK.LINEAR : m, b = r.bound, p = b === void 0 ? !1 : b, 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, ue = V === void 0 ? 75e-4 : V, M = r.duration, ce = M === void 0 ? 500 : M, z = r.easing, de = z === void 0 ? function(Ae) {
5277
+ return 1 - Math.pow(1 - Ae, 3);
5278
+ } : z, F = r.inputType, fe = F === void 0 ? ["mouse", "touch"] : F, j = r.moveType, he = j === void 0 ? "snap" : j, H = r.threshold, ve = H === void 0 ? 40 : H, W = r.dragThreshold, pe = W === void 0 ? 1 : W, U = r.interruptable, ge = U === void 0 ? !0 : U, G = r.bounce, _e = G === void 0 ? "20%" : G, Y = r.iOSEdgeSwipeThreshold, me = Y === void 0 ? 30 : Y, q = r.preventClickOnDrag, Ee = q === void 0 ? !0 : q, X = r.preventDefaultOnDrag, ye = X === void 0 ? !1 : X, K = r.disableOnInit, be = K === void 0 ? !1 : K, Z = r.changeOnHold, Pe = Z === void 0 ? !1 : Z, Q = r.renderOnlyVisible, Te = Q === void 0 ? !1 : Q, J = r.virtual, ee = J === void 0 ? null : J, te = r.autoInit, Oe = te === void 0 ? !0 : te, ne = r.autoResize, Se = ne === void 0 ? !0 : ne, ie = r.useResizeObserver, Ce = ie === void 0 ? !0 : ie, re = r.resizeDebounce, Ie = re === void 0 ? 0 : re, ae = r.maxResizeDebounce, ke = ae === void 0 ? 100 : ae, oe = r.useFractionalSize, xe = oe === void 0 ? !1 : oe, se = r.externalRenderer, Re = se === void 0 ? null : se, le = r.renderExternal, Ne = le === void 0 ? null : le, k = s.call(this) || this;
5279
+ return k._initialized = !1, k._plugins = [], k._align = u, k._defaultIndex = f, k._horizontal = g, 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 = ee, k._needPanelThreshold = D, k._preventEventsBeforeInit = B, k._deceleration = ue, k._duration = ce, k._easing = de, k._inputType = fe, k._moveType = he, k._threshold = ve, k._dragThreshold = pe, k._interruptable = ge, k._bounce = _e, k._iOSEdgeSwipeThreshold = me, k._preventClickOnDrag = Ee, k._preventDefaultOnDrag = ye, k._disableOnInit = be, k._changeOnHold = Pe, k._renderOnlyVisible = Te, k._autoInit = Oe, k._autoResize = Se, k._useResizeObserver = Ce, k._resizeDebounce = Ie, k._maxResizeDebounce = ke, k._useFractionalSize = xe, k._externalRenderer = Re, k._renderExternal = Ne, 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, ee), k._autoInit && k.init(), k;
5268
5280
  }
5269
5281
  var t = i.prototype;
5270
5282
  return Object.defineProperty(t, "control", {
@@ -5532,7 +5544,7 @@ var State = /* @__PURE__ */ function() {
5532
5544
  }), Object.defineProperty(t, "defaultIndex", {
5533
5545
  /**
5534
5546
  * Index of the panel to move when Flicking's {@link Flicking#init init()} is called. A zero-based integer
5535
- * @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는 정수입니다
5547
+ * @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는 정수입니다.
5536
5548
  * @type {number}
5537
5549
  * @default 0
5538
5550
  * @see {@link https://naver.github.io/egjs-flicking/Options#defaultindex defaultIndex ( Options )}
@@ -5858,7 +5870,7 @@ var State = /* @__PURE__ */ function() {
5858
5870
  }), Object.defineProperty(t, "threshold", {
5859
5871
  /**
5860
5872
  * Movement threshold to change panel (unit: px). It should be dragged above the threshold to change the current panel.
5861
- * @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이 가능하다.
5873
+ * @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이 가능합니다.
5862
5874
  * @type {number}
5863
5875
  * @default 40
5864
5876
  * @see {@link https://naver.github.io/egjs-flicking/Options#threshold Threshold ( Options )}
@@ -5871,6 +5883,24 @@ var State = /* @__PURE__ */ function() {
5871
5883
  },
5872
5884
  enumerable: !1,
5873
5885
  configurable: !0
5886
+ }), Object.defineProperty(t, "dragThreshold", {
5887
+ /**
5888
+ * Minimal distance of user input before recognizing (unit: px). It should be dragged above the dragThreshold to move the panel.
5889
+ * @ko 사용자의 입력을 인식하기 위한 최소한의 거리 (단위: px). 주어진 값 이상으로 스크롤해야만 패널이 움직입니다.
5890
+ * @type {number}
5891
+ * @default 1
5892
+ * @see {@link https://naver.github.io/egjs-flicking/Options#dragThreshold dragThreshold ( Options )}
5893
+ */
5894
+ get: function() {
5895
+ return this._dragThreshold;
5896
+ },
5897
+ set: function(e) {
5898
+ this._dragThreshold = e;
5899
+ var n = this._control.controller.panInput;
5900
+ n && (n.options.threshold = e);
5901
+ },
5902
+ enumerable: !1,
5903
+ configurable: !0
5874
5904
  }), Object.defineProperty(t, "interruptable", {
5875
5905
  /**
5876
5906
  * Set animation to be interruptable by click/touch.
@@ -6206,8 +6236,8 @@ var State = /* @__PURE__ */ function() {
6206
6236
  return n.init(), u.init(), r.init(this), l.init(this), f && (this.trigger = function() {
6207
6237
  return e;
6208
6238
  }), this._initialResize(), this._moveToInitialPanel(), this._autoResize && this._autoResizer.enable(), this._preventClickOnDrag && l.controller.addPreventClickHandler(), this._disableOnInit && this.disableInput(), r.checkPanelContentsReady(r.panels), this._initialized = !0, r.render().then(function() {
6209
- e._plugins.forEach(function(g) {
6210
- return g.init(e);
6239
+ e._plugins.forEach(function(_) {
6240
+ return _.init(e);
6211
6241
  }), f && (e.trigger = d), e.trigger(new ComponentEvent$1(EVENTS.READY));
6212
6242
  });
6213
6243
  }, t.destroy = function() {
@@ -6243,15 +6273,15 @@ var State = /* @__PURE__ */ function() {
6243
6273
  }, t.disableInput = function() {
6244
6274
  return this._control.disable(), this;
6245
6275
  }, t.getStatus = function(e) {
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) {
6276
+ var n, r, l = e === void 0 ? {} : e, u = l.index, d = u === void 0 ? !0 : u, f = l.position, _ = f === void 0 ? !0 : f, g = l.includePanelHTML, y = g === void 0 ? !1 : g, v = l.visiblePanelsOnly, m = v === void 0 ? !1 : v, P = this._camera, b = m ? this.visiblePanels : this.panels, p = {
6277
+ panels: b.map(function(O) {
6248
6278
  var S = {
6249
6279
  index: O.index
6250
6280
  };
6251
- return b && (S.html = O.element.outerHTML), S;
6281
+ return y && (S.html = O.element.outerHTML), S;
6252
6282
  })
6253
6283
  };
6254
- if (d && (p.index = this.index), g) {
6284
+ if (d && (p.index = this.index), _) {
6255
6285
  var E = P.findNearestAnchor(P.position);
6256
6286
  E && (p.position = {
6257
6287
  panel: E.panel.index,
@@ -6267,25 +6297,25 @@ var State = /* @__PURE__ */ function() {
6267
6297
  var n;
6268
6298
  if (!this._initialized)
6269
6299
  throw new FlickingError(MESSAGE.NOT_INITIALIZED, CODE.NOT_INITIALIZED);
6270
- var r = e.index, l = e.position, u = e.visibleOffset, d = e.panels, f = this._renderer, g = this._control;
6300
+ var r = e.index, l = e.position, u = e.visibleOffset, d = e.panels, f = this._renderer, _ = this._control;
6271
6301
  if (!((n = d[0]) === null || n === void 0) && n.html && !this._renderExternal && (f.batchRemove({
6272
6302
  index: 0,
6273
6303
  deleteCount: this.panels.length,
6274
6304
  hasDOMInElements: !0
6275
6305
  }), f.batchInsert({
6276
6306
  index: 0,
6277
- elements: parseElement(d.map(function(y) {
6278
- return y.html;
6307
+ elements: parseElement(d.map(function(b) {
6308
+ return b.html;
6279
6309
  })),
6280
6310
  hasDOMInElements: !0
6281
6311
  })), r != null) {
6282
- var _ = u ? r - u : r;
6283
- this.moveTo(_, 0).catch(function() {
6312
+ var g = u ? r - u : r;
6313
+ this.moveTo(g, 0).catch(function() {
6284
6314
  });
6285
6315
  }
6286
6316
  if (l && this._moveType === MOVE_TYPE.FREE_SCROLL) {
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() {
6317
+ var y = l.panel, v = l.progressInPanel, g = u ? y - u : y, m = f.panels[g].range, P = m.min + (m.max - m.min) * v;
6318
+ _.moveToPosition(P, 0).catch(function() {
6289
6319
  });
6290
6320
  }
6291
6321
  }, t.addPlugins = function() {
@@ -6305,11 +6335,11 @@ var State = /* @__PURE__ */ function() {
6305
6335
  }), this;
6306
6336
  }, t.resize = function() {
6307
6337
  return __awaiter$1(this, void 0, void 0, function() {
6308
- var e, n, r, l, u, d, f, g, _, b, v;
6338
+ var e, n, r, l, u, d, f, _, g, y, v;
6309
6339
  return __generator$1(this, function(m) {
6310
6340
  switch (m.label) {
6311
6341
  case 0:
6312
- return e = this._viewport, n = this._renderer, r = this._camera, l = this._control, u = l.activePanel, d = e.width, f = e.height, g = u ? r.getProgressInPanel(u) : 0, this.trigger(new ComponentEvent$1(EVENTS.BEFORE_RESIZE, {
6342
+ return e = this._viewport, n = this._renderer, r = this._camera, l = this._control, u = l.activePanel, d = e.width, f = e.height, _ = u ? r.getProgressInPanel(u) : 0, this.trigger(new ComponentEvent$1(EVENTS.BEFORE_RESIZE, {
6313
6343
  width: d,
6314
6344
  height: f,
6315
6345
  element: e.element
@@ -6320,7 +6350,7 @@ var State = /* @__PURE__ */ function() {
6320
6350
  /*return*/
6321
6351
  ];
6322
6352
  case 2:
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, {
6353
+ return m.sent(), this._initialized ? (l.animating || (l.updatePosition(_), l.updateInput()), g = e.width, y = e.height, v = g !== d || y !== f, this.trigger(new ComponentEvent$1(EVENTS.AFTER_RESIZE, {
6324
6354
  width: e.width,
6325
6355
  height: e.height,
6326
6356
  prev: {
@@ -6396,7 +6426,7 @@ var State = /* @__PURE__ */ function() {
6396
6426
  }, t._moveToInitialPanel = function() {
6397
6427
  var e = this._renderer, n = this._control, r = this._camera, l = e.getPanel(this._defaultIndex) || e.getPanel(0);
6398
6428
  if (l) {
6399
- var u = r.findNearestAnchor(l.position), d = u && l.index !== u.panel.index ? u.panel : l;
6429
+ var u = r.findNearestAnchor(l.position), d = u && l.position !== u.panel.position && l.index !== u.panel.index ? u.panel : l;
6400
6430
  if (n.setActive(d, null, !1), !u)
6401
6431
  throw new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(d.position), CODE.POSITION_NOT_REACHABLE);
6402
6432
  var f = d.position;
@@ -6420,7 +6450,7 @@ var State = /* @__PURE__ */ function() {
6420
6450
  sizeChanged: f,
6421
6451
  element: e.element
6422
6452
  }));
6423
- }, i.VERSION = "4.11.4", i;
6453
+ }, i.VERSION = "4.12.0", i;
6424
6454
  }(Component), withFlickingMethods = function(s, i) {
6425
6455
  [Component.prototype, Flicking$1.prototype].forEach(function(t) {
6426
6456
  Object.getOwnPropertyNames(t).filter(function(e) {
@@ -6457,8 +6487,8 @@ var State = /* @__PURE__ */ function() {
6457
6487
  }), u.push.apply(u, __spread(batchRemove(e, f, d + 1)));
6458
6488
  }
6459
6489
  if (i.ordered.forEach(function(v) {
6460
- var m = __read(v, 2), P = m[0], y = m[1], p = n.splice(P, 1)[0];
6461
- n.splice(y, 0, p);
6490
+ var m = __read(v, 2), P = m[0], b = m[1], p = n.splice(P, 1)[0];
6491
+ n.splice(b, 0, p);
6462
6492
  }), i.ordered.length > 0 && (n.forEach(function(v, m) {
6463
6493
  var P = m - v.index;
6464
6494
  P > 0 ? v.increaseIndex(P) : v.decreaseIndex(-P);
@@ -6467,10 +6497,10 @@ var State = /* @__PURE__ */ function() {
6467
6497
  }), n.forEach(function(v) {
6468
6498
  v.updatePosition();
6469
6499
  })), i.added.length > 0) {
6470
- var g = -1, _ = -1, b = t.slice(r.length);
6500
+ var _ = -1, g = -1, y = t.slice(r.length);
6471
6501
  i.added.forEach(function(v, m) {
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)));
6502
+ _ < 0 && (_ = m), g >= 0 && v !== g + 1 ? (l.push.apply(l, __spread(batchInsert(e, i, y, _, m + 1))), _ = -1, g = -1) : g = v;
6503
+ }), _ >= 0 && l.push.apply(l, __spread(batchInsert(e, i, y, _)));
6474
6504
  }
6475
6505
  (i.added.length > 0 || i.removed.length > 0) && e.updateAfterPanelChange(l, u);
6476
6506
  }, batchInsert = function(s, i, t, e, n) {
@@ -6539,10 +6569,10 @@ var State = /* @__PURE__ */ function() {
6539
6569
  if (r) {
6540
6570
  var d = r.visiblePanels;
6541
6571
  d.forEach(function(f) {
6542
- var g = f.outsetProgress, _ = f.element, b = l ? _.querySelector(l) : _;
6543
- if (b) {
6544
- var v = Math.min(1, Math.max(0, 1 - Math.abs(g * u)));
6545
- b.style.opacity = "" + v;
6572
+ var _ = f.outsetProgress, g = f.element, y = l ? g.querySelector(l) : g;
6573
+ if (y) {
6574
+ var v = Math.min(1, Math.max(0, 1 - Math.abs(_ * u)));
6575
+ y.style.opacity = "" + v;
6546
6576
  }
6547
6577
  });
6548
6578
  }
@@ -6622,7 +6652,7 @@ var State = /* @__PURE__ */ function() {
6622
6652
  return e;
6623
6653
  }, Arrow = /* @__PURE__ */ function() {
6624
6654
  function s(t) {
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;
6655
+ var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.prevElSelector, d = u === void 0 ? ARROW.PREV_SELECTOR : u, f = n.nextElSelector, _ = f === void 0 ? ARROW.NEXT_SELECTOR : f, g = n.disabledClass, y = g === void 0 ? ARROW.DISABLED_CLASS : g, v = n.moveCount, m = v === void 0 ? 1 : v, P = n.moveByViewportSize, b = P === void 0 ? !1 : P;
6626
6656
  this._flicking = null, this._preventInputPropagation = function(p) {
6627
6657
  p.stopPropagation();
6628
6658
  }, this._onPrevClick = function() {
@@ -6655,7 +6685,7 @@ var State = /* @__PURE__ */ function() {
6655
6685
  }, this._onCatch = function(p) {
6656
6686
  if (!(p instanceof FlickingError))
6657
6687
  throw p;
6658
- }, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = g, this._disabledClass = b, this._moveCount = m, this._moveByViewportSize = y;
6688
+ }, this._parentEl = l, this._prevElSelector = d, this._nextElSelector = _, this._disabledClass = y, this._moveCount = m, this._moveByViewportSize = b;
6659
6689
  }
6660
6690
  var i = s.prototype;
6661
6691
  return Object.defineProperty(i, "prevEl", {
@@ -6835,32 +6865,32 @@ var Renderer = /* @__PURE__ */ function() {
6835
6865
  }), t.destroy = function() {
6836
6866
  this._bullets = [], this._prevIndex = -1;
6837
6867
  }, t.render = function() {
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);
6868
+ var e = this, n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bulletClass, d = this._activeClass, f = r.renderBullet, _ = r.renderActiveBullet, g = r.classPrefix + "-" + PAGINATION.BULLET_WRAPPER_SUFFIX, y = n.camera.anchorPoints;
6869
+ addClass(l, g), l.innerHTML = y.map(function(m, P) {
6870
+ return _ && m.panel.index === n.index ? _(u, P) : f(u, P);
6841
6871
  }).join(`
6842
6872
  `);
6843
6873
  var v = [].slice.call(l.children);
6844
6874
  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);
6875
+ var b = y[P];
6876
+ b.panel.index === n.index && (addClass(m, d), e._prevIndex = P), e._addBulletEvents(m, P);
6847
6877
  }), this._bullets = v;
6848
6878
  }, t.update = function(e) {
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;
6850
- if (!(_.length <= 0)) {
6851
- var m = _[0].panel.index, P = e - m;
6852
- if (g !== P) {
6879
+ var n = this._flicking, r = this._pagination, l = this._wrapper, u = this._bullets, d = this._bulletClass, f = this._activeClass, _ = this._prevIndex, g = n.camera.anchorPoints, y = r.renderBullet, v = r.renderActiveBullet;
6880
+ if (!(g.length <= 0)) {
6881
+ var m = g[0].panel.index, P = e - m;
6882
+ if (_ !== P) {
6853
6883
  if (v) {
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;
6884
+ var b = u[_];
6885
+ if (b) {
6886
+ var p = this._createBulletFromString(y(d, _), _);
6887
+ b.parentElement.replaceChild(p, b), u[_] = p;
6858
6888
  }
6859
6889
  var E = u[P], T = this._createBulletFromString(v(d + " " + f, P), P);
6860
6890
  l.replaceChild(T, E), u[P] = T;
6861
6891
  } else {
6862
- var E = u[P], y = u[g];
6863
- y && removeClass(y, f), addClass(E, f);
6892
+ var E = u[P], b = u[_];
6893
+ b && removeClass(b, f), addClass(E, f);
6864
6894
  }
6865
6895
  this._prevIndex = P;
6866
6896
  }
@@ -6881,8 +6911,8 @@ var Renderer = /* @__PURE__ */ function() {
6881
6911
  }, t.update = function(e) {
6882
6912
  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;
6883
6913
  if (!(d === this._prevIndex && f === this._prevTotal)) {
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;
6914
+ var _ = "." + l.classPrefix + "-" + PAGINATION.FRACTION_CURRENT_SUFFIX, g = "." + l.classPrefix + "-" + PAGINATION.FRACTION_TOTAL_SUFFIX, y = r.querySelector(_), v = r.querySelector(g);
6915
+ y.innerHTML = l.fractionCurrentFormat(d), v.innerHTML = l.fractionTotalFormat(f), this._prevIndex = d, this._prevTotal = f;
6886
6916
  }
6887
6917
  }, i;
6888
6918
  }(Renderer), ScrollBulletRenderer = /* @__PURE__ */ function(s) {
@@ -6898,59 +6928,59 @@ var Renderer = /* @__PURE__ */ function() {
6898
6928
  return t.destroy = function() {
6899
6929
  this._bullets = [], this._bulletSize = 0, this._previousIndex = -1, this._sliderIndex = -1;
6900
6930
  }, t.render = function() {
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) {
6903
- return u(g, E);
6931
+ var e = this, n = this._wrapper, r = this._flicking, l = this._pagination, u = l.renderBullet, d = r.camera.anchorPoints, f = l.classPrefix + "-" + PAGINATION.SCROLL_WRAPPER_SUFFIX, _ = l.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, g = l.classPrefix + "-" + PAGINATION.SCROLL_SLIDER_SUFFIX, y = l.classPrefix + "-" + PAGINATION.SCROLL_UNINIT_SUFFIX, v = document.createElement("div");
6932
+ addClass(v, g), addClass(n, y), addClass(n, f), n.appendChild(v), v.innerHTML = d.map(function(p, E) {
6933
+ return u(_, E);
6904
6934
  }).join(`
6905
6935
  `);
6906
6936
  var m = [].slice.call(v.children);
6907
6937
  if (m.forEach(function(p, E) {
6908
6938
  e._addBulletEvents(p, E);
6909
6939
  }), !(m.length <= 0)) {
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);
6940
+ var P = getComputedStyle(m[0]), b = m[0].clientWidth + parseFloat(P.marginLeft) + parseFloat(P.marginRight);
6941
+ n.style.width = b * l.bulletCount + "px", this._bullets = m, this._bulletSize = b, this._previousIndex = -1, this.update(this._flicking.index), window.requestAnimationFrame(function() {
6942
+ removeClass(n, y);
6913
6943
  });
6914
6944
  }
6915
6945
  }, t.update = function(e) {
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 - _;
6917
- if (!(g.length <= 0)) {
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) {
6946
+ var n = this._pagination, r = this._flicking, l = this._bullets, u = this._previousIndex, d = n.renderBullet, f = n.renderActiveBullet, _ = r.camera.anchorPoints, g = _[0].panel.index, y = e - g;
6947
+ if (!(_.length <= 0)) {
6948
+ var v = n.classPrefix + "-" + PAGINATION.BULLET_SUFFIX, m = n.classPrefix + "-" + PAGINATION.BULLET_ACTIVE_SUFFIX, P = n.classPrefix + "-" + PAGINATION.SCROLL_PREV_SUFFIX, b = n.classPrefix + "-" + PAGINATION.SCROLL_NEXT_SUFFIX, p = function(R) {
6919
6949
  return "" + P + (R > 1 ? R : "");
6920
6950
  }, E = function(R) {
6921
- return "" + y + (R > 1 ? R : "");
6922
- }, T = new RegExp("^" + P), O = new RegExp("^" + y);
6951
+ return "" + b + (R > 1 ? R : "");
6952
+ }, T = new RegExp("^" + P), O = new RegExp("^" + b);
6923
6953
  if (f) {
6924
6954
  var S = l[u];
6925
6955
  if (S) {
6926
6956
  var C = this._createBulletFromString(d(v, u), u);
6927
6957
  S.parentElement.replaceChild(C, S), l[u] = C;
6928
6958
  }
6929
- var x = l[b];
6959
+ var x = l[y];
6930
6960
  if (x) {
6931
- var I = this._createBulletFromString(f(v, b), b);
6932
- x.parentElement.replaceChild(I, x), l[b] = I;
6961
+ var I = this._createBulletFromString(f(v, y), y);
6962
+ x.parentElement.replaceChild(I, x), l[y] = I;
6933
6963
  }
6934
6964
  }
6935
6965
  l.forEach(function(R, w) {
6936
- for (var A = w - b, N = R.className.split(" "), D = 0, L = N; D < L.length; D++) {
6966
+ for (var A = w - y, N = R.className.split(" "), D = 0, L = N; D < L.length; D++) {
6937
6967
  var B = L[D];
6938
6968
  (B === m || T.test(B) || O.test(B)) && removeClass(R, B);
6939
6969
  }
6940
6970
  A === 0 ? addClass(R, m) : A > 0 ? addClass(R, E(Math.abs(A))) : addClass(R, p(Math.abs(A)));
6941
- }), n.scrollOnChange(b, {
6971
+ }), n.scrollOnChange(y, {
6942
6972
  total: l.length,
6943
6973
  prevIndex: u,
6944
6974
  sliderIndex: this._sliderIndex,
6945
- direction: b > u ? DIRECTION.NEXT : DIRECTION.PREV,
6975
+ direction: y > u ? DIRECTION.NEXT : DIRECTION.PREV,
6946
6976
  bullets: __spreadArray$1([], l),
6947
6977
  moveTo: this.moveTo
6948
- }), this._previousIndex = b;
6978
+ }), this._previousIndex = y;
6949
6979
  }
6950
6980
  }, i;
6951
6981
  }(Renderer), Pagination = /* @__PURE__ */ function() {
6952
6982
  function s(t) {
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) {
6983
+ var e = this, n = t === void 0 ? {} : t, r = n.parentEl, l = r === void 0 ? null : r, u = n.selector, d = u === void 0 ? PAGINATION.SELECTOR : u, f = n.type, _ = f === void 0 ? PAGINATION.TYPE.BULLET : f, g = n.classPrefix, y = g === void 0 ? PAGINATION.PREFIX : g, v = n.bulletCount, m = v === void 0 ? 5 : v, P = n.renderBullet, b = P === void 0 ? function(A) {
6954
6984
  return '<span class="' + A + '"></span>';
6955
6985
  } : P, p = n.renderActiveBullet, E = p === void 0 ? null : p, T = n.renderFraction, O = T === void 0 ? function(A, N) {
6956
6986
  return '<span class="' + A + '"></span>/<span class="' + N + '"></span>';
@@ -6965,7 +6995,7 @@ var Renderer = /* @__PURE__ */ function() {
6965
6995
  e._removeAllChilds(), e._renderer.render();
6966
6996
  }, this._onIndexChange = function(A) {
6967
6997
  e._renderer.update(A.index);
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;
6998
+ }, this._parentEl = l, this._selector = d, this._type = _, this._classPrefix = y, this._bulletCount = m, this._renderBullet = b, this._renderActiveBullet = E, this._renderFraction = O, this._fractionCurrentFormat = C, this._fractionTotalFormat = I, this._scrollOnChange = w;
6969
6999
  }
6970
7000
  var i = s.prototype;
6971
7001
  return Object.defineProperty(i, "parentEl", {
@@ -7148,10 +7178,10 @@ function orderChanged(s, i) {
7148
7178
  var l = n[0], u = n[1];
7149
7179
  if (l === u)
7150
7180
  return [0, 0];
7151
- var d = t[l], f = e[u - 1], g = d.getIndex();
7181
+ var d = t[l], f = e[u - 1], _ = d.getIndex();
7152
7182
  d.disconnect(), f ? d.connect(f, f.next) : d.connect(void 0, t[0]);
7153
- var _ = d.getIndex();
7154
- return [g, _];
7183
+ var g = d.getIndex();
7184
+ return [_, g];
7155
7185
  });
7156
7186
  }
7157
7187
  var Result = /* @__PURE__ */ function() {
@@ -7174,27 +7204,27 @@ var Result = /* @__PURE__ */ function() {
7174
7204
  }), i.caculateOrdered = function() {
7175
7205
  var t = orderChanged(this.changedBeforeAdded, this.fixed), e = this.changed, n = [];
7176
7206
  this.cacheOrdered = t.filter(function(r, l) {
7177
- var u = r[0], d = r[1], f = e[l], g = f[0], _ = f[1];
7207
+ var u = r[0], d = r[1], f = e[l], _ = f[0], g = f[1];
7178
7208
  if (u !== d)
7179
- return n.push([g, _]), !0;
7209
+ return n.push([_, g]), !0;
7180
7210
  }), this.cachePureChanged = n;
7181
7211
  }, s;
7182
7212
  }();
7183
7213
  function diff(s, i, t) {
7184
7214
  var e = SUPPORT_MAP ? Map : t ? HashMap : PolyMap, n = t || function(E) {
7185
7215
  return 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;
7216
+ }, r = [], l = [], u = [], d = s.map(n), f = i.map(n), _ = new e(), g = new e(), y = [], v = [], m = {}, P = [], b = 0, p = 0;
7187
7217
  return d.forEach(function(E, T) {
7188
- g.set(E, T);
7189
- }), f.forEach(function(E, T) {
7190
7218
  _.set(E, T);
7219
+ }), f.forEach(function(E, T) {
7220
+ g.set(E, T);
7191
7221
  }), d.forEach(function(E, T) {
7192
- var O = _.get(E);
7222
+ var O = g.get(E);
7193
7223
  typeof O > "u" ? (++p, l.push(T)) : m[O] = p;
7194
7224
  }), f.forEach(function(E, T) {
7195
- var O = g.get(E);
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);
7225
+ var O = _.get(E);
7226
+ typeof O > "u" ? (r.push(T), ++b) : (u.push([O, T]), p = m[T] || 0, y.push([O - p, T - b]), v.push(T === O), O !== T && P.push([O, T]));
7227
+ }), l.reverse(), new Result(s, i, r, l, P, u, y, v);
7198
7228
  }
7199
7229
  var ListDiffer = /* @__PURE__ */ function() {
7200
7230
  function s(t, e) {
@@ -7260,22 +7290,22 @@ function __awaiter(s, i, t, e) {
7260
7290
  });
7261
7291
  }
7262
7292
  return new (t || (t = Promise))(function(r, l) {
7263
- function u(g) {
7293
+ function u(_) {
7264
7294
  try {
7265
- f(e.next(g));
7266
- } catch (_) {
7267
- l(_);
7295
+ f(e.next(_));
7296
+ } catch (g) {
7297
+ l(g);
7268
7298
  }
7269
7299
  }
7270
- function d(g) {
7300
+ function d(_) {
7271
7301
  try {
7272
- f(e.throw(g));
7273
- } catch (_) {
7274
- l(_);
7302
+ f(e.throw(_));
7303
+ } catch (g) {
7304
+ l(g);
7275
7305
  }
7276
7306
  }
7277
- function f(g) {
7278
- g.done ? r(g.value) : n(g.value).then(u, d);
7307
+ function f(_) {
7308
+ _.done ? r(_.value) : n(_.value).then(u, d);
7279
7309
  }
7280
7310
  f((e = e.apply(s, [])).next());
7281
7311
  });
@@ -7298,8 +7328,8 @@ function __generator(s, i) {
7298
7328
  return this;
7299
7329
  }), l;
7300
7330
  function u(f) {
7301
- return function(g) {
7302
- return d([f, g]);
7331
+ return function(_) {
7332
+ return d([f, _]);
7303
7333
  };
7304
7334
  }
7305
7335
  function d(f) {
@@ -7343,8 +7373,8 @@ function __generator(s, i) {
7343
7373
  continue;
7344
7374
  }
7345
7375
  f = i.call(s, t);
7346
- } catch (g) {
7347
- f = [6, g], n = 0;
7376
+ } catch (_) {
7377
+ f = [6, _], n = 0;
7348
7378
  } finally {
7349
7379
  e = r = 0;
7350
7380
  }
@@ -7496,10 +7526,10 @@ var FlickingProps = {
7496
7526
  created: function() {
7497
7527
  var s = this;
7498
7528
  this.vanillaFlicking = null, this.renderEmitter = new Component(), this.diffResult = null, this.getPanels = function() {
7499
- var i = getCurrentInstance(), t = i?.ctx, e = s.vanillaFlicking, n = s.getSlots(), r = t?.diffResult, l = r ? getRenderingPanels(e, r) : n, u = resolveComponent("Panel"), d = l.map(function(f, g) {
7529
+ var i = getCurrentInstance(), t = i?.ctx, e = s.vanillaFlicking, n = s.getSlots(), r = t?.diffResult, l = r ? getRenderingPanels(e, r) : n, u = resolveComponent("Panel"), d = l.map(function(f, _) {
7500
7530
  return h(u, {
7501
7531
  key: f.key,
7502
- ref: g.toString()
7532
+ ref: _.toString()
7503
7533
  }, function() {
7504
7534
  return f;
7505
7535
  });
@@ -7511,13 +7541,13 @@ var FlickingProps = {
7511
7541
  } : {
7512
7542
  height: d.size
7513
7543
  } : {};
7514
- return u.map(function(g) {
7544
+ return u.map(function(_) {
7515
7545
  return h("div", {
7516
- key: g,
7517
- ref: g.toString(),
7546
+ key: _,
7547
+ ref: _.toString(),
7518
7548
  class: e,
7519
7549
  style: f,
7520
- "data-element-index": g
7550
+ "data-element-index": _
7521
7551
  });
7522
7552
  });
7523
7553
  }, withFlickingMethods(this, "vanillaFlicking");
@@ -7548,7 +7578,8 @@ var FlickingProps = {
7548
7578
  this.fillKeys();
7549
7579
  },
7550
7580
  beforeUpdate: function() {
7551
- this.fillKeys(), this.diffResult = this.slotDiffer.update(this.getSlots());
7581
+ var s;
7582
+ this.fillKeys(), this.diffResult = (s = this.slotDiffer) === null || s === void 0 ? void 0 : s.update(this.getSlots());
7552
7583
  },
7553
7584
  updated: function() {
7554
7585
  var s = this.vanillaFlicking, i = this.diffResult;
@@ -7658,21 +7689,21 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7658
7689
  function f(m) {
7659
7690
  t("update:idx", m);
7660
7691
  }
7661
- const g = computed$1({
7692
+ const _ = computed$1({
7662
7693
  get: () => e.idx,
7663
7694
  set: (m) => f(m)
7664
7695
  });
7665
- function _(m) {
7666
- g.value = m.index;
7696
+ function g(m) {
7697
+ _.value = m.index;
7667
7698
  }
7668
- function b(m) {
7699
+ function y(m) {
7669
7700
  n.value.moveTo(m);
7670
7701
  }
7671
7702
  function v() {
7672
7703
  t("opened");
7673
7704
  }
7674
- return watch(g, (m) => {
7675
- b(m);
7705
+ return watch(_, (m) => {
7706
+ y(m);
7676
7707
  }), onMounted(() => {
7677
7708
  r.value = [
7678
7709
  new Arrow(),
@@ -7694,7 +7725,7 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7694
7725
  },
7695
7726
  class: "konnectio-flicking-gallery",
7696
7727
  plugins: r.value,
7697
- onChanged: _
7728
+ onChanged: g
7698
7729
  }, {
7699
7730
  viewport: withCtx(() => [
7700
7731
  createBaseVNode("div", _hoisted_1$c, [
@@ -7721,12 +7752,12 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7721
7752
  P[0] || (P[0] = createBaseVNode("div", { class: "flicking-pagination" }, null, -1))
7722
7753
  ]),
7723
7754
  default: withCtx(() => [
7724
- (openBlock(!0), createElementBlock(Fragment, null, renderList(m.gallery, ({ large: y, url: p }, E) => (openBlock(), createElementBlock("div", {
7755
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.gallery, ({ large: b, url: p }, E) => (openBlock(), createElementBlock("div", {
7725
7756
  key: E,
7726
7757
  class: "konnectio-flicking-gallery-item"
7727
7758
  }, [
7728
7759
  createBaseVNode("img", {
7729
- src: y || p
7760
+ src: b || p
7730
7761
  }, null, 8, _hoisted_4$6)
7731
7762
  ]))), 128))
7732
7763
  ]),
@@ -7755,13 +7786,14 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7755
7786
  }, _hoisted_6$5 = { class: "grid-sizer" }, _hoisted_7$4 = { class: "konnectio-listing-side-panel-share" }, _sfc_main$a = /* @__PURE__ */ defineComponent({
7756
7787
  __name: "ListingInfo",
7757
7788
  props: {
7789
+ idx: {},
7758
7790
  title: {},
7759
7791
  type: {},
7760
7792
  description: {},
7761
7793
  listingId: {},
7762
7794
  facilities: {},
7763
7795
  gallery: {},
7764
- idx: {}
7796
+ disableDeepLink: { type: Boolean, default: !1 }
7765
7797
  },
7766
7798
  emits: ["update:idx"],
7767
7799
  setup(s, { emit: i }) {
@@ -7772,19 +7804,19 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7772
7804
  currentDepartureDate: d,
7773
7805
  currentLocation: f
7774
7806
  } = storeToRefs(useHotelStore()), {
7775
- currentEventDate: g,
7776
- currentEventLocation: _
7807
+ currentEventDate: _,
7808
+ currentEventLocation: g
7777
7809
  } = storeToRefs(useEventStore());
7778
- function b(O) {
7810
+ function y(O) {
7779
7811
  const S = O.getFullYear();
7780
7812
  let C = O.getMonth() + 1, x = O.getDate();
7781
7813
  return x < 10 && (x = "0" + x), C < 10 && (C = "0" + C), `${S}-${C}-${x}`;
7782
7814
  }
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}` : "");
7815
+ const v = computed$1(() => n.type !== "event" ? `${window.location.origin + window.location.pathname}?a=${r.value}&c=${l.value}&ci=${y(u.value)}&co=${y(d.value)}&hid=${f.value}&id=${n.listingId}` : ""), m = computed$1(() => n.type === "event" ? `${window.location.origin + window.location.pathname}?d=${y(_.value)}&rid=${g.value}&eid=${n.listingId}` : "");
7784
7816
  function P(O) {
7785
7817
  t("update:idx", O);
7786
7818
  }
7787
- const y = computed$1({
7819
+ const b = computed$1({
7788
7820
  get: () => n.idx,
7789
7821
  set: (O) => P(O)
7790
7822
  }), p = ref("testVueMasonry"), E = inject("redrawVueMasonry");
@@ -7801,8 +7833,8 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7801
7833
  O.gallery ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
7802
7834
  createVNode(Gallery, {
7803
7835
  gallery: O.gallery,
7804
- idx: y.value,
7805
- "onUpdate:idx": S[0] || (S[0] = (I) => y.value = I)
7836
+ idx: b.value,
7837
+ "onUpdate:idx": S[0] || (S[0] = (I) => b.value = I)
7806
7838
  }, null, 8, ["gallery", "idx"])
7807
7839
  ])) : createCommentVNode("", !0),
7808
7840
  createBaseVNode("div", _hoisted_2$8, [
@@ -7839,7 +7871,7 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7839
7871
  ]),
7840
7872
  _: 2
7841
7873
  }, [
7842
- O.type === "hotel" || O.type === "event" || O.type === "template" ? {
7874
+ (O.type === "hotel" || O.type === "event" || O.type === "template") && O.disableDeepLink === !1 ? {
7843
7875
  name: "footer",
7844
7876
  fn: withCtx(() => [
7845
7877
  createBaseVNode("div", _hoisted_7$4, [
@@ -7871,7 +7903,7 @@ const _hoisted_1$c = { class: "konnectio-gallery-arrow-container" }, _hoisted_2$
7871
7903
  ]), 1032, ["title"]);
7872
7904
  };
7873
7905
  }
7874
- }), SidePanel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-f74ff40c"]]);
7906
+ }), SidePanel = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-ff830b74"]]);
7875
7907
  var raf = null;
7876
7908
  function requestAnimationFrame$1(s) {
7877
7909
  return raf || (raf = (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(i) {
@@ -8003,8 +8035,8 @@ function initTriggers(s) {
8003
8035
  };
8004
8036
  }
8005
8037
  function resetTriggers(s) {
8006
- var i = s.__resize_triggers__, t = i.expand, e = i.expandChild, n = i.contract, r = n.scrollWidth, l = n.scrollHeight, u = t.offsetWidth, d = t.offsetHeight, f = t.scrollWidth, g = t.scrollHeight;
8007
- n.scrollLeft = r, n.scrollTop = l, e.style.width = u + 1 + "px", e.style.height = d + 1 + "px", t.scrollLeft = f, t.scrollTop = g;
8038
+ var i = s.__resize_triggers__, t = i.expand, e = i.expandChild, n = i.contract, r = n.scrollWidth, l = n.scrollHeight, u = t.offsetWidth, d = t.offsetHeight, f = t.scrollWidth, _ = t.scrollHeight;
8039
+ n.scrollLeft = r, n.scrollTop = l, e.style.width = u + 1 + "px", e.style.height = d + 1 + "px", t.scrollLeft = f, t.scrollTop = _;
8008
8040
  }
8009
8041
  const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = { key: 1 }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
8010
8042
  __name: "TruncateContent",
@@ -8026,14 +8058,14 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8026
8058
  }), f = computed$1(() => {
8027
8059
  if (!d.localExpanded && e.maxHeight)
8028
8060
  return typeof e?.maxHeight == "number" ? `${e?.maxHeight}px` : e?.maxHeight;
8029
- }), g = () => {
8061
+ }), _ = () => {
8030
8062
  u.value && (u.value.innerHTML = convertDescription(x.value));
8031
- }, _ = () => {
8032
- d.localExpanded || (g(), (m() || C.value) && y());
8033
- }, b = () => {
8034
- e.text && (d.offset = e.text.length, v(), e.autoResize && r.value && (addListener(r.value, _), d.unregisterResizeCallback = () => {
8035
- r.value && removeListener(r.value, _);
8036
- }), _());
8063
+ }, g = () => {
8064
+ d.localExpanded || (_(), (m() || C.value) && b());
8065
+ }, y = () => {
8066
+ e.text && (d.offset = e.text.length, v(), e.autoResize && r.value && (addListener(r.value, g), d.unregisterResizeCallback = () => {
8067
+ r.value && removeListener(r.value, g);
8068
+ }), g());
8037
8069
  }, v = () => {
8038
8070
  d.unregisterResizeCallback?.();
8039
8071
  }, 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,16 +8073,16 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8041
8073
  const B = `${D}/${L}`;
8042
8074
  return N[B] || (N[B] = !0), N;
8043
8075
  }, {})
8044
- ).length : 0, y = (...N) => {
8076
+ ).length : 0, b = (...N) => {
8045
8077
  const [D = 0, L = d.offset] = N;
8046
8078
  if (L - D <= 3) {
8047
8079
  E();
8048
8080
  return;
8049
8081
  }
8050
8082
  const B = Math.floor((L + D) / 2);
8051
- p(B), m() ? y(D, B) : y(B, L);
8083
+ p(B), m() ? b(D, B) : b(B, L);
8052
8084
  }, p = (N) => {
8053
- d.offset = N, g();
8085
+ d.offset = N, _();
8054
8086
  }, E = () => {
8055
8087
  T(), O();
8056
8088
  }, T = () => {
@@ -8094,26 +8126,26 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8094
8126
  ), watch(
8095
8127
  () => d.localExpanded,
8096
8128
  (N) => {
8097
- N ? p(e.text.length) : _(), e.expanded !== N && n("update:expanded", N);
8129
+ N ? p(e.text.length) : g(), e.expanded !== N && n("update:expanded", N);
8098
8130
  }
8099
8131
  ), watch(
8100
8132
  () => [e.maxLines, e.maxHeight, e.ellipsis, e.location, C.value].join(),
8101
8133
  () => {
8102
8134
  nextTick(() => {
8103
- _();
8135
+ g();
8104
8136
  });
8105
8137
  }
8106
8138
  ), watch(
8107
8139
  () => [e.text, e.autoResize].join(),
8108
8140
  () => {
8109
8141
  nextTick(() => {
8110
- b();
8142
+ y();
8111
8143
  });
8112
8144
  }
8113
8145
  ), onUnmounted(() => {
8114
8146
  v();
8115
8147
  }), onMounted(() => {
8116
- b();
8148
+ y();
8117
8149
  }), (N, D) => (openBlock(), createElementBlock("div", {
8118
8150
  ref_key: "textClampRef",
8119
8151
  ref: r,
@@ -8179,21 +8211,22 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8179
8211
  facilities: {},
8180
8212
  hideInfoButton: { type: Boolean, default: !1 },
8181
8213
  toDate: {},
8182
- fromDate: {}
8214
+ fromDate: {},
8215
+ disableDeepLink: { type: Boolean, default: !1 }
8183
8216
  },
8184
8217
  setup(s) {
8185
- const { t: i } = useI18n(), t = ref(!1), e = ref(0), n = s, { disablePricesFrom: r, currency: l } = useUtilityStore(), u = ref(!r && !!n.pricesFrom);
8186
- function d() {
8218
+ const { t: i } = useI18n(), t = ref(!1), e = ref(0), n = s, { disablePricesFrom: r, currency: l, hideAvailabilityNotice: u } = useUtilityStore(), d = ref(!r && !!n.pricesFrom);
8219
+ function f() {
8187
8220
  t.value = !0;
8188
8221
  }
8189
- function f(g) {
8190
- let _ = "";
8191
- return g.forEach(({ name: b }) => {
8192
- _ += `<li>${b}</li>`;
8193
- }), `<ul>${_}</ul>`;
8222
+ function _(g) {
8223
+ let y = "";
8224
+ return g.forEach(({ name: v }) => {
8225
+ y += `<li>${v}</li>`;
8226
+ }), `<ul>${y}</ul>`;
8194
8227
  }
8195
- return (g, _) => {
8196
- const b = resolveDirective("tooltip");
8228
+ return (g, y) => {
8229
+ const v = resolveDirective("tooltip");
8197
8230
  return openBlock(), createElementBlock("li", {
8198
8231
  class: normalizeClass([
8199
8232
  "konnectio-listing",
@@ -8211,10 +8244,10 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8211
8244
  createVNode(Gallery, {
8212
8245
  gallery: g.gallery,
8213
8246
  idx: e.value,
8214
- "onUpdate:idx": _[0] || (_[0] = (v) => e.value = v),
8247
+ "onUpdate:idx": y[0] || (y[0] = (m) => e.value = m),
8215
8248
  "is-listing": !0,
8216
8249
  pagination: "scroll",
8217
- onOpened: d
8250
+ onOpened: f
8218
8251
  }, null, 8, ["gallery", "idx"])
8219
8252
  ], 2)) : createCommentVNode("", !0),
8220
8253
  createBaseVNode("div", _hoisted_1$9, [
@@ -8222,7 +8255,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8222
8255
  createBaseVNode("div", {
8223
8256
  class: normalizeClass([
8224
8257
  "konnectio-listing-title",
8225
- { "has-from-price": u.value }
8258
+ { "has-from-price": d.value }
8226
8259
  ])
8227
8260
  }, [
8228
8261
  createBaseVNode("h3", {
@@ -8234,7 +8267,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8234
8267
  key: 0,
8235
8268
  class: "konnectio-listing-read-more",
8236
8269
  type: "button",
8237
- onClick: _[1] || (_[1] = withModifiers((v) => t.value = !0, ["prevent"]))
8270
+ onClick: y[1] || (y[1] = withModifiers((m) => t.value = !0, ["prevent"]))
8238
8271
  }, [
8239
8272
  createVNode(Icon, {
8240
8273
  icon: "info-circle",
@@ -8242,8 +8275,8 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8242
8275
  })
8243
8276
  ]))
8244
8277
  ], 10, _hoisted_3$5),
8245
- u.value || g.includesBreakfast || g.fromDate && g.toDate || g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 ? (openBlock(), createElementBlock("ul", _hoisted_4$4, [
8246
- u.value ? (openBlock(), createElementBlock("li", _hoisted_5$4, [
8278
+ d.value || g.includesBreakfast || g.fromDate && g.toDate || g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("ul", _hoisted_4$4, [
8279
+ d.value ? (openBlock(), createElementBlock("li", _hoisted_5$4, [
8247
8280
  createBaseVNode("span", null, toDisplayString(`${unref(i)("general.pricesFrom")}: ${unref(showPrice)(g.pricesFrom, unref(l))}`), 1)
8248
8281
  ])) : createCommentVNode("", !0),
8249
8282
  g.includesBreakfast ? (openBlock(), createElementBlock("li", _hoisted_6$4, [
@@ -8252,7 +8285,7 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8252
8285
  ])) : createCommentVNode("", !0),
8253
8286
  g.fromDate && g.toDate ? (openBlock(), createElementBlock("li", _hoisted_7$3, [
8254
8287
  createBaseVNode("span", null, toDisplayString(`${unref(showDate)(g.fromDate)} - ${unref(showDate)(g.toDate)}`), 1)
8255
- ])) : g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 ? (openBlock(), createElementBlock("li", _hoisted_8$3, [
8288
+ ])) : g.toDate && unref(daysBetweenDates)(/* @__PURE__ */ new Date(), g.toDate) < 180 && !unref(u) ? (openBlock(), createElementBlock("li", _hoisted_8$3, [
8256
8289
  createBaseVNode("span", null, toDisplayString(`${unref(i)("general.availableUntil")}: ${unref(showDate)(g.toDate)}`), 1)
8257
8290
  ])) : createCommentVNode("", !0)
8258
8291
  ])) : createCommentVNode("", !0)
@@ -8266,15 +8299,15 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8266
8299
  ])
8267
8300
  ]),
8268
8301
  g.facilities ? (openBlock(), createElementBlock("ul", _hoisted_10$2, [
8269
- (openBlock(!0), createElementBlock(Fragment, null, renderList(g.facilities, ({ icon: v, name: m, subFacilities: P }) => (openBlock(), createElementBlock(Fragment, null, [
8270
- v ? withDirectives((openBlock(), createElementBlock("li", { key: m }, [
8302
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(g.facilities, ({ icon: m, name: P, subFacilities: b }) => (openBlock(), createElementBlock(Fragment, null, [
8303
+ m ? withDirectives((openBlock(), createElementBlock("li", { key: P }, [
8271
8304
  createVNode(Icon, {
8272
- icon: v,
8305
+ icon: m,
8273
8306
  color: "header"
8274
8307
  }, null, 8, ["icon"])
8275
8308
  ])), [
8276
- [b, {
8277
- content: f(P),
8309
+ [v, {
8310
+ content: _(b),
8278
8311
  classes: ["tooltip", "konnectio-tooltip"],
8279
8312
  html: !0
8280
8313
  }]
@@ -8288,21 +8321,22 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8288
8321
  renderSlot(g.$slots, "default"),
8289
8322
  createVNode(SidePanel, {
8290
8323
  modelValue: t.value,
8291
- "onUpdate:modelValue": _[2] || (_[2] = (v) => t.value = v),
8324
+ "onUpdate:modelValue": y[2] || (y[2] = (m) => t.value = m),
8292
8325
  "listing-id": g.listingId,
8293
8326
  type: g.type,
8294
8327
  title: g.name,
8295
8328
  description: g.description,
8296
8329
  gallery: g.gallery,
8297
8330
  idx: e.value,
8298
- "onUpdate:idx": _[3] || (_[3] = (v) => e.value = v),
8299
- facilities: g.facilities
8300
- }, null, 8, ["modelValue", "listing-id", "type", "title", "description", "gallery", "idx", "facilities"])
8331
+ "onUpdate:idx": y[3] || (y[3] = (m) => e.value = m),
8332
+ facilities: g.facilities,
8333
+ "disable-deep-link": g.disableDeepLink
8334
+ }, null, 8, ["modelValue", "listing-id", "type", "title", "description", "gallery", "idx", "facilities", "disable-deep-link"])
8301
8335
  ])
8302
8336
  ], 2);
8303
8337
  };
8304
8338
  }
8305
- }), Base = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-87d36a46"]]), _hoisted_1$8 = { class: "konnectio-radio-checkboxes" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
8339
+ }), Base = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-72dff61f"]]), _hoisted_1$8 = { class: "konnectio-radio-checkboxes" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
8306
8340
  __name: "CheckboxField",
8307
8341
  props: {
8308
8342
  modelValue: {},
@@ -8326,10 +8360,10 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8326
8360
  }, {
8327
8361
  default: withCtx(() => [
8328
8362
  createBaseVNode("ul", _hoisted_1$8, [
8329
- (openBlock(!0), createElementBlock(Fragment, null, renderList(l.checkboxes, ({ label: d, value: f }, g) => (openBlock(), createElementBlock("li", { key: g }, [
8363
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.checkboxes, ({ label: d, value: f }, _) => (openBlock(), createElementBlock("li", { key: _ }, [
8330
8364
  createVNode(Checkbox, {
8331
8365
  modelValue: r.value,
8332
- "onUpdate:modelValue": u[0] || (u[0] = (_) => r.value = _),
8366
+ "onUpdate:modelValue": u[0] || (u[0] = (g) => r.value = g),
8333
8367
  label: d,
8334
8368
  name: l.name,
8335
8369
  type: "radio",
@@ -8351,28 +8385,28 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8351
8385
  },
8352
8386
  emits: ["reset"],
8353
8387
  setup(s, { emit: i }) {
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) {
8388
+ 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), _ = () => {
8389
+ if (u.value) {
8356
8390
  const m = n.value;
8357
8391
  if (m && m > 0) {
8358
- const y = u.value.getBoundingClientRect().top + window.scrollY - m;
8392
+ const b = u.value.getBoundingClientRect().top + window.scrollY - m;
8359
8393
  window.scrollTo({
8360
- top: y,
8394
+ top: b,
8361
8395
  behavior: "smooth"
8362
8396
  });
8363
8397
  } else
8364
8398
  u.value.scrollIntoView({ behavior: "smooth" });
8365
8399
  }
8366
- }, _ = (m = 1) => {
8367
- l.value = l.value + m, g();
8368
- }, b = (m = 1) => {
8369
- l.value = l.value - m, g();
8400
+ }, g = (m = 1) => {
8401
+ l.value = l.value + m, _();
8402
+ }, y = (m = 1) => {
8403
+ l.value = l.value - m, _();
8370
8404
  };
8371
8405
  function v() {
8372
- l.value = 0, g();
8406
+ l.value = 0, _();
8373
8407
  }
8374
8408
  return t.on("scrollToTop", () => {
8375
- g();
8409
+ _();
8376
8410
  }), watch(l, () => {
8377
8411
  l.value === 0 && e("reset");
8378
8412
  }), (m, P) => (openBlock(), createElementBlock("div", {
@@ -8391,41 +8425,41 @@ const _hoisted_1$a = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$6 = {
8391
8425
  createBaseVNode("span", null, toDisplayString(m.subtitle), 1)
8392
8426
  ])) : createCommentVNode("", !0),
8393
8427
  createBaseVNode("ul", _hoisted_5$3, [
8394
- (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (y, p) => (openBlock(), createElementBlock("li", {
8395
- key: y.id,
8428
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (b, p) => (openBlock(), createElementBlock("li", {
8429
+ key: b.id,
8396
8430
  class: normalizeClass({ "is-active": l.value >= p })
8397
8431
  }, [
8398
- y.icon ? (openBlock(), createBlock(Icon, {
8432
+ b.icon ? (openBlock(), createBlock(Icon, {
8399
8433
  key: 0,
8400
- icon: y.icon,
8434
+ icon: b.icon,
8401
8435
  type: "fas"
8402
8436
  }, null, 8, ["icon"])) : createCommentVNode("", !0),
8403
- createBaseVNode("span", null, toDisplayString(y.label), 1)
8437
+ createBaseVNode("span", null, toDisplayString(b.label), 1)
8404
8438
  ], 2))), 128))
8405
8439
  ])
8406
8440
  ])
8407
8441
  ])
8408
8442
  ]),
8409
8443
  createBaseVNode("ul", _hoisted_6$3, [
8410
- (openBlock(!0), createElementBlock(Fragment, null, renderList(m.steps, (y) => (openBlock(), createElementBlock("li", {
8411
- key: y.id,
8444
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.steps, (b) => (openBlock(), createElementBlock("li", {
8445
+ key: b.id,
8412
8446
  class: "konnectio-multi-step-form-content-tab"
8413
8447
  }, [
8414
8448
  withDirectives(createBaseVNode("div", null, [
8415
- renderSlot(m.$slots, y.id, {
8416
- next: _,
8417
- prev: b,
8449
+ renderSlot(m.$slots, b.id, {
8450
+ next: g,
8451
+ prev: y,
8418
8452
  reset: v
8419
8453
  }, void 0, !0)
8420
8454
  ], 512), [
8421
- [vShow, f.value === y.id]
8455
+ [vShow, f.value === b.id]
8422
8456
  ])
8423
8457
  ]))), 128))
8424
8458
  ])
8425
8459
  ])
8426
8460
  ], 512));
8427
8461
  }
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({
8462
+ }), MultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-78c5f36a"]]), 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({
8429
8463
  __name: "PoweredByKonnectio",
8430
8464
  setup(s) {
8431
8465
  return (i, t) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
@@ -8702,12 +8736,12 @@ const StickySidebar = /* @__PURE__ */ (() => {
8702
8736
  let u = "affix." + r.toLowerCase().replace("viewport-", "") + s;
8703
8737
  t.eventTrigger(this.sidebar, u), r === "STATIC" ? t.removeClass(this.sidebar, this.options.stickyClass) : t.addClass(this.sidebar, this.options.stickyClass);
8704
8738
  for (let f in l.outer) {
8705
- let g = typeof l.outer[f] == "number" ? "px" : "";
8706
- this.sidebar.style[f] = l.outer[f] + g;
8739
+ let _ = typeof l.outer[f] == "number" ? "px" : "";
8740
+ this.sidebar.style[f] = l.outer[f] + _;
8707
8741
  }
8708
8742
  for (let f in l.inner) {
8709
- let g = typeof l.inner[f] == "number" ? "px" : "";
8710
- this.sidebarInner.style[f] = l.inner[f] + g;
8743
+ let _ = typeof l.inner[f] == "number" ? "px" : "";
8744
+ this.sidebarInner.style[f] = l.inner[f] + _;
8711
8745
  }
8712
8746
  let d = "affixed." + r.toLowerCase().replace("viewport-", "") + s;
8713
8747
  t.eventTrigger(this.sidebar, d);
@@ -8785,10 +8819,10 @@ const StickySidebar = /* @__PURE__ */ (() => {
8785
8819
  * @return {String}
8786
8820
  */
8787
8821
  static supportTransform(n) {
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;
8789
- return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(_, b) {
8790
- if (g[_] !== void 0)
8791
- return r = _, !1;
8822
+ var r = !1, l = n ? "perspective" : "transform", u = l.charAt(0).toUpperCase() + l.slice(1), d = ["Webkit", "Moz", "O", "ms"], f = document.createElement("support"), _ = f.style;
8823
+ return (l + " " + d.join(u + " ") + u).split(" ").forEach(function(g, y) {
8824
+ if (_[g] !== void 0)
8825
+ return r = g, !1;
8792
8826
  }), r;
8793
8827
  }
8794
8828
  /**
@@ -8987,9 +9021,9 @@ const _hoisted_1$3 = {
8987
9021
  headerHeight: u
8988
9022
  } = storeToRefs(useUtilityStore()), { isValidatingDiscountCode: d } = storeToRefs(useHotelStore()), {
8989
9023
  amount: f,
8990
- voucher: g,
8991
- isLoading: _
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;
9024
+ voucher: _,
9025
+ isLoading: g
9026
+ } = storeToRefs(useApplyGiftCardStore()), { apply: y, reset: v } = useApplyGiftCardStore(), m = useSlots(), P = useModel(s, "discountCode"), b = s, p = computed$1(() => b.basePrice - b.weekendFee - b.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;
8993
9027
  return onMounted(() => {
8994
9028
  e.value && x("gift-card");
8995
9029
  }), (I, R) => {
@@ -9139,15 +9173,15 @@ const _hoisted_1$3 = {
9139
9173
  onAction: R[4] || (R[4] = (A) => I.validateDiscountCode())
9140
9174
  }, null, 8, ["modelValue", "placeholder", "is-loading"])) : O.value ? (openBlock(), createBlock(ActionField, {
9141
9175
  key: 1,
9142
- modelValue: unref(g),
9143
- "onUpdate:modelValue": R[5] || (R[5] = (A) => isRef(g) ? g.value = A : null),
9176
+ modelValue: unref(_),
9177
+ "onUpdate:modelValue": R[5] || (R[5] = (A) => isRef(_) ? _.value = A : null),
9144
9178
  icon: "gift-card",
9145
9179
  "button-icon": "paper-plane-top",
9146
9180
  placeholder: "XXXXXXXX",
9147
9181
  action: "success",
9148
9182
  secondary: !0,
9149
- "is-loading": unref(_),
9150
- onAction: R[6] || (R[6] = (A) => unref(b)())
9183
+ "is-loading": unref(g),
9184
+ onAction: R[6] || (R[6] = (A) => unref(y)())
9151
9185
  }, null, 8, ["modelValue", "is-loading"])) : createCommentVNode("", !0)
9152
9186
  ]),
9153
9187
  _: 1
@@ -9236,18 +9270,18 @@ const _hoisted_1$3 = {
9236
9270
  adults: u,
9237
9271
  children: d,
9238
9272
  offerDate: f,
9239
- totalPrice: g,
9240
- totalVAT: _,
9241
- subTotalPrice: b
9273
+ totalPrice: _,
9274
+ totalVAT: g,
9275
+ subTotalPrice: y
9242
9276
  } = storeToRefs(usePaymentStore()), { currency: v } = storeToRefs(useUtilityStore()), { currentArrivalDate: m, currentDepartureDate: P } = storeToRefs(useHotelStore());
9243
- return (y, p) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
9277
+ return (b, p) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
9244
9278
  createBaseVNode("div", _hoisted_2$1, [
9245
9279
  createBaseVNode("h2", _hoisted_3$1, [
9246
9280
  createBaseVNode("span", null, toDisplayString(unref(i)("general.thankYou")), 1)
9247
9281
  ]),
9248
9282
  createBaseVNode("div", {
9249
9283
  id: "konnectio-confirmation-message",
9250
- innerHTML: y.message
9284
+ innerHTML: b.message
9251
9285
  }, null, 8, _hoisted_4$1)
9252
9286
  ]),
9253
9287
  createBaseVNode("div", _hoisted_5$1, [
@@ -9317,17 +9351,17 @@ const _hoisted_1$3 = {
9317
9351
  ])
9318
9352
  ])) : createCommentVNode("", !0),
9319
9353
  createBaseVNode("ul", _hoisted_14, [
9320
- unref(b) ? (openBlock(), createElementBlock("li", _hoisted_15, [
9354
+ unref(y) ? (openBlock(), createElementBlock("li", _hoisted_15, [
9321
9355
  createBaseVNode("span", null, toDisplayString(unref(i)("general.subTotal")), 1),
9322
- createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(b), unref(v))), 1)
9356
+ createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(y), unref(v))), 1)
9323
9357
  ])) : createCommentVNode("", !0),
9324
- unref(_) ? (openBlock(), createElementBlock("li", _hoisted_16, [
9358
+ unref(g) ? (openBlock(), createElementBlock("li", _hoisted_16, [
9325
9359
  createBaseVNode("span", null, toDisplayString(unref(i)("general.vat")), 1),
9326
- createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(_), unref(v))), 1)
9360
+ createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(g), unref(v))), 1)
9327
9361
  ])) : createCommentVNode("", !0),
9328
- unref(g) ? (openBlock(), createElementBlock("li", _hoisted_17, [
9362
+ unref(_) ? (openBlock(), createElementBlock("li", _hoisted_17, [
9329
9363
  createBaseVNode("span", null, toDisplayString(unref(i)("booking.reservation.totalPrice")), 1),
9330
- createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(g), unref(v))), 1)
9364
+ createBaseVNode("b", null, toDisplayString(unref(showPrice)(unref(_), unref(v))), 1)
9331
9365
  ])) : createCommentVNode("", !0)
9332
9366
  ])
9333
9367
  ]));
@@ -9688,8 +9722,8 @@ function requireGetSize() {
9688
9722
  var m = getComputedStyle(v);
9689
9723
  return m || n("Style returned " + m + ". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"), m;
9690
9724
  }
9691
- var f = !1, g;
9692
- function _() {
9725
+ var f = !1, _;
9726
+ function g() {
9693
9727
  if (!f) {
9694
9728
  f = !0;
9695
9729
  var v = document.createElement("div");
@@ -9697,21 +9731,21 @@ function requireGetSize() {
9697
9731
  var m = document.body || document.documentElement;
9698
9732
  m.appendChild(v);
9699
9733
  var P = d(v);
9700
- g = Math.round(t(P.width)) == 200, b.isBoxSizeOuter = g, m.removeChild(v);
9734
+ _ = Math.round(t(P.width)) == 200, y.isBoxSizeOuter = _, m.removeChild(v);
9701
9735
  }
9702
9736
  }
9703
- function b(v) {
9704
- if (_(), typeof v == "string" && (v = document.querySelector(v)), !(!v || typeof v != "object" || !v.nodeType)) {
9737
+ function y(v) {
9738
+ if (g(), typeof v == "string" && (v = document.querySelector(v)), !(!v || typeof v != "object" || !v.nodeType)) {
9705
9739
  var m = d(v);
9706
9740
  if (m.display == "none")
9707
9741
  return u();
9708
9742
  var P = {};
9709
9743
  P.width = v.offsetWidth, P.height = v.offsetHeight;
9710
- for (var y = P.isBorderBox = m.boxSizing == "border-box", p = 0; p < l; p++) {
9744
+ for (var b = P.isBorderBox = m.boxSizing == "border-box", p = 0; p < l; p++) {
9711
9745
  var E = r[p], T = m[E], O = parseFloat(T);
9712
9746
  P[E] = isNaN(O) ? 0 : O;
9713
9747
  }
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);
9748
+ 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 = b && _, N = t(m.width);
9715
9749
  N !== !1 && (P.width = N + // add padding and border unless it's already including it
9716
9750
  (A ? 0 : S + R));
9717
9751
  var D = t(m.height);
@@ -9719,7 +9753,7 @@ function requireGetSize() {
9719
9753
  (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;
9720
9754
  }
9721
9755
  }
9722
- return b;
9756
+ return y;
9723
9757
  });
9724
9758
  }(getSize)), getSize.exports;
9725
9759
  }
@@ -9790,50 +9824,50 @@ function requireUtils() {
9790
9824
  }, n.filterFindElements = function(u, d) {
9791
9825
  u = n.makeArray(u);
9792
9826
  var f = [];
9793
- return u.forEach(function(g) {
9794
- if (g instanceof HTMLElement) {
9827
+ return u.forEach(function(_) {
9828
+ if (_ instanceof HTMLElement) {
9795
9829
  if (!d) {
9796
- f.push(g);
9830
+ f.push(_);
9797
9831
  return;
9798
9832
  }
9799
- e(g, d) && f.push(g);
9800
- for (var _ = g.querySelectorAll(d), b = 0; b < _.length; b++)
9801
- f.push(_[b]);
9833
+ e(_, d) && f.push(_);
9834
+ for (var g = _.querySelectorAll(d), y = 0; y < g.length; y++)
9835
+ f.push(g[y]);
9802
9836
  }
9803
9837
  }), f;
9804
9838
  }, n.debounceMethod = function(u, d, f) {
9805
9839
  f = f || 100;
9806
- var g = u.prototype[d], _ = d + "Timeout";
9840
+ var _ = u.prototype[d], g = d + "Timeout";
9807
9841
  u.prototype[d] = function() {
9808
- var b = this[_];
9809
- clearTimeout(b);
9842
+ var y = this[g];
9843
+ clearTimeout(y);
9810
9844
  var v = arguments, m = this;
9811
- this[_] = setTimeout(function() {
9812
- g.apply(m, v), delete m[_];
9845
+ this[g] = setTimeout(function() {
9846
+ _.apply(m, v), delete m[g];
9813
9847
  }, f);
9814
9848
  };
9815
9849
  }, n.docReady = function(u) {
9816
9850
  var d = document.readyState;
9817
9851
  d == "complete" || d == "interactive" ? setTimeout(u) : document.addEventListener("DOMContentLoaded", u);
9818
9852
  }, n.toDashed = function(u) {
9819
- return u.replace(/(.)([A-Z])/g, function(d, f, g) {
9820
- return f + "-" + g;
9853
+ return u.replace(/(.)([A-Z])/g, function(d, f, _) {
9854
+ return f + "-" + _;
9821
9855
  }).toLowerCase();
9822
9856
  };
9823
9857
  var l = t.console;
9824
9858
  return n.htmlInit = function(u, d) {
9825
9859
  n.docReady(function() {
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;
9860
+ var f = n.toDashed(d), _ = "data-" + f, g = document.querySelectorAll("[" + _ + "]"), y = document.querySelectorAll(".js-" + f), v = n.makeArray(g).concat(n.makeArray(y)), m = _ + "-options", P = t.jQuery;
9861
+ v.forEach(function(b) {
9862
+ var p = b.getAttribute(_) || b.getAttribute(m), E;
9829
9863
  try {
9830
9864
  E = p && JSON.parse(p);
9831
9865
  } catch (O) {
9832
- l && l.error("Error parsing " + g + " on " + y.className + ": " + O);
9866
+ l && l.error("Error parsing " + _ + " on " + b.className + ": " + O);
9833
9867
  return;
9834
9868
  }
9835
- var T = new u(y, E);
9836
- P && P.data(y, d, T);
9869
+ var T = new u(b, E);
9870
+ P && P.data(b, d, T);
9837
9871
  });
9838
9872
  });
9839
9873
  }, n;
@@ -9852,8 +9886,8 @@ function requireItem() {
9852
9886
  i.getSize
9853
9887
  ));
9854
9888
  })(window, function(t, e) {
9855
- function n(y) {
9856
- for (var p in y)
9889
+ function n(b) {
9890
+ for (var p in b)
9857
9891
  return !1;
9858
9892
  return p = null, !0;
9859
9893
  }
@@ -9867,14 +9901,14 @@ function requireItem() {
9867
9901
  transitionProperty: l + "Property",
9868
9902
  transitionDelay: l + "Delay"
9869
9903
  };
9870
- function g(y, p) {
9871
- y && (this.element = y, this.layout = p, this.position = {
9904
+ function _(b, p) {
9905
+ b && (this.element = b, this.layout = p, this.position = {
9872
9906
  x: 0,
9873
9907
  y: 0
9874
9908
  }, this._create());
9875
9909
  }
9876
- var _ = g.prototype = Object.create(t.prototype);
9877
- _.constructor = g, _._create = function() {
9910
+ var g = _.prototype = Object.create(t.prototype);
9911
+ g.constructor = _, g._create = function() {
9878
9912
  this._transn = {
9879
9913
  ingProperties: {},
9880
9914
  clean: {},
@@ -9882,39 +9916,39 @@ function requireItem() {
9882
9916
  }, this.css({
9883
9917
  position: "absolute"
9884
9918
  });
9885
- }, _.handleEvent = function(y) {
9886
- var p = "on" + y.type;
9887
- this[p] && this[p](y);
9888
- }, _.getSize = function() {
9919
+ }, g.handleEvent = function(b) {
9920
+ var p = "on" + b.type;
9921
+ this[p] && this[p](b);
9922
+ }, g.getSize = function() {
9889
9923
  this.size = e(this.element);
9890
- }, _.css = function(y) {
9924
+ }, g.css = function(b) {
9891
9925
  var p = this.element.style;
9892
- for (var E in y) {
9926
+ for (var E in b) {
9893
9927
  var T = f[E] || E;
9894
- p[T] = y[E];
9928
+ p[T] = b[E];
9895
9929
  }
9896
- }, _.getPosition = function() {
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;
9930
+ }, g.getPosition = function() {
9931
+ var b = getComputedStyle(this.element), p = this.layout._getOption("originLeft"), E = this.layout._getOption("originTop"), T = b[p ? "left" : "right"], O = b[E ? "top" : "bottom"], S = parseFloat(T), C = parseFloat(O), x = this.layout.size;
9898
9932
  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;
9899
- }, _.layoutPosition = function() {
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];
9933
+ }, g.layoutPosition = function() {
9934
+ var b = 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 + b[O];
9901
9935
  p[S] = this.getXValue(x), p[C] = "";
9902
- var I = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", w = T ? "bottom" : "top", A = this.position.y + y[I];
9936
+ var I = T ? "paddingTop" : "paddingBottom", R = T ? "top" : "bottom", w = T ? "bottom" : "top", A = this.position.y + b[I];
9903
9937
  p[R] = this.getYValue(A), p[w] = "", this.css(p), this.emitEvent("layout", [this]);
9904
- }, _.getXValue = function(y) {
9938
+ }, g.getXValue = function(b) {
9905
9939
  var p = this.layout._getOption("horizontal");
9906
- return this.layout.options.percentPosition && !p ? y / this.layout.size.width * 100 + "%" : y + "px";
9907
- }, _.getYValue = function(y) {
9940
+ return this.layout.options.percentPosition && !p ? b / this.layout.size.width * 100 + "%" : b + "px";
9941
+ }, g.getYValue = function(b) {
9908
9942
  var p = this.layout._getOption("horizontal");
9909
- return this.layout.options.percentPosition && p ? y / this.layout.size.height * 100 + "%" : y + "px";
9910
- }, _._transitionTo = function(y, p) {
9943
+ return this.layout.options.percentPosition && p ? b / this.layout.size.height * 100 + "%" : b + "px";
9944
+ }, g._transitionTo = function(b, p) {
9911
9945
  this.getPosition();
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) {
9946
+ var E = this.position.x, T = this.position.y, O = b == this.position.x && p == this.position.y;
9947
+ if (this.setPosition(b, p), O && !this.isTransitioning) {
9914
9948
  this.layoutPosition();
9915
9949
  return;
9916
9950
  }
9917
- var S = y - E, C = p - T, x = {};
9951
+ var S = b - E, C = p - T, x = {};
9918
9952
  x.transform = this.getTranslate(S, C), this.transition({
9919
9953
  to: x,
9920
9954
  onTransitionEnd: {
@@ -9922,66 +9956,66 @@ function requireItem() {
9922
9956
  },
9923
9957
  isCleaning: !0
9924
9958
  });
9925
- }, _.getTranslate = function(y, p) {
9959
+ }, g.getTranslate = function(b, p) {
9926
9960
  var E = this.layout._getOption("originLeft"), T = this.layout._getOption("originTop");
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) {
9961
+ return b = E ? b : -b, p = T ? p : -p, "translate3d(" + b + "px, " + p + "px, 0)";
9962
+ }, g.goTo = function(b, p) {
9963
+ this.setPosition(b, p), this.layoutPosition();
9964
+ }, g.moveTo = g._transitionTo, g.setPosition = function(b, p) {
9965
+ this.position.x = parseFloat(b), this.position.y = parseFloat(p);
9966
+ }, g._nonTransition = function(b) {
9967
+ this.css(b.to), b.isCleaning && this._removeStyles(b.to);
9968
+ for (var p in b.onTransitionEnd)
9969
+ b.onTransitionEnd[p].call(this);
9970
+ }, g.transition = function(b) {
9937
9971
  if (!parseFloat(this.layout.options.transitionDuration)) {
9938
- this._nonTransition(y);
9972
+ this._nonTransition(b);
9939
9973
  return;
9940
9974
  }
9941
9975
  var p = this._transn;
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;
9976
+ for (var E in b.onTransitionEnd)
9977
+ p.onEnd[E] = b.onTransitionEnd[E];
9978
+ for (E in b.to)
9979
+ p.ingProperties[E] = !0, b.isCleaning && (p.clean[E] = !0);
9980
+ b.from && (this.css(b.from), this.element.offsetHeight), this.enableTransition(b.to), this.css(b.to), this.isTransitioning = !0;
9947
9981
  };
9948
- function b(y) {
9949
- return y.replace(/([A-Z])/g, function(p) {
9982
+ function y(b) {
9983
+ return b.replace(/([A-Z])/g, function(p) {
9950
9984
  return "-" + p.toLowerCase();
9951
9985
  });
9952
9986
  }
9953
- var v = "opacity," + b(u);
9954
- _.enableTransition = function() {
9987
+ var v = "opacity," + y(u);
9988
+ g.enableTransition = function() {
9955
9989
  if (!this.isTransitioning) {
9956
- var y = this.layout.options.transitionDuration;
9957
- y = typeof y == "number" ? y + "ms" : y, this.css({
9990
+ var b = this.layout.options.transitionDuration;
9991
+ b = typeof b == "number" ? b + "ms" : b, this.css({
9958
9992
  transitionProperty: v,
9959
- transitionDuration: y,
9993
+ transitionDuration: b,
9960
9994
  transitionDelay: this.staggerDelay || 0
9961
9995
  }), this.element.addEventListener(d, this, !1);
9962
9996
  }
9963
- }, _.onwebkitTransitionEnd = function(y) {
9964
- this.ontransitionend(y);
9965
- }, _.onotransitionend = function(y) {
9966
- this.ontransitionend(y);
9997
+ }, g.onwebkitTransitionEnd = function(b) {
9998
+ this.ontransitionend(b);
9999
+ }, g.onotransitionend = function(b) {
10000
+ this.ontransitionend(b);
9967
10001
  };
9968
10002
  var m = {
9969
10003
  "-webkit-transform": "transform"
9970
10004
  };
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) {
10005
+ g.ontransitionend = function(b) {
10006
+ if (b.target === this.element) {
10007
+ var p = this._transn, E = m[b.propertyName] || b.propertyName;
10008
+ if (delete p.ingProperties[E], n(p.ingProperties) && this.disableTransition(), E in p.clean && (this.element.style[b.propertyName] = "", delete p.clean[E]), E in p.onEnd) {
9975
10009
  var T = p.onEnd[E];
9976
10010
  T.call(this), delete p.onEnd[E];
9977
10011
  }
9978
10012
  this.emitEvent("transitionEnd", [this]);
9979
10013
  }
9980
- }, _.disableTransition = function() {
10014
+ }, g.disableTransition = function() {
9981
10015
  this.removeTransitionStyles(), this.element.removeEventListener(d, this, !1), this.isTransitioning = !1;
9982
- }, _._removeStyles = function(y) {
10016
+ }, g._removeStyles = function(b) {
9983
10017
  var p = {};
9984
- for (var E in y)
10018
+ for (var E in b)
9985
10019
  p[E] = "";
9986
10020
  this.css(p);
9987
10021
  };
@@ -9990,13 +10024,13 @@ function requireItem() {
9990
10024
  transitionDuration: "",
9991
10025
  transitionDelay: ""
9992
10026
  };
9993
- return _.removeTransitionStyles = function() {
10027
+ return g.removeTransitionStyles = function() {
9994
10028
  this.css(P);
9995
- }, _.stagger = function(y) {
9996
- y = isNaN(y) ? 0 : y, this.staggerDelay = y + "ms";
9997
- }, _.removeElem = function() {
10029
+ }, g.stagger = function(b) {
10030
+ b = isNaN(b) ? 0 : b, this.staggerDelay = b + "ms";
10031
+ }, g.removeElem = function() {
9998
10032
  this.element.parentNode.removeChild(this.element), this.css({ display: "" }), this.emitEvent("remove", [this]);
9999
- }, _.remove = function() {
10033
+ }, g.remove = function() {
10000
10034
  if (!l || !parseFloat(this.layout.options.transitionDuration)) {
10001
10035
  this.removeElem();
10002
10036
  return;
@@ -10004,36 +10038,36 @@ function requireItem() {
10004
10038
  this.once("transitionEnd", function() {
10005
10039
  this.removeElem();
10006
10040
  }), this.hide();
10007
- }, _.reveal = function() {
10041
+ }, g.reveal = function() {
10008
10042
  delete this.isHidden, this.css({ display: "" });
10009
- var y = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
10043
+ var b = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("visibleStyle");
10010
10044
  p[E] = this.onRevealTransitionEnd, this.transition({
10011
- from: y.hiddenStyle,
10012
- to: y.visibleStyle,
10045
+ from: b.hiddenStyle,
10046
+ to: b.visibleStyle,
10013
10047
  isCleaning: !0,
10014
10048
  onTransitionEnd: p
10015
10049
  });
10016
- }, _.onRevealTransitionEnd = function() {
10050
+ }, g.onRevealTransitionEnd = function() {
10017
10051
  this.isHidden || this.emitEvent("reveal");
10018
- }, _.getHideRevealTransitionEndProperty = function(y) {
10019
- var p = this.layout.options[y];
10052
+ }, g.getHideRevealTransitionEndProperty = function(b) {
10053
+ var p = this.layout.options[b];
10020
10054
  if (p.opacity)
10021
10055
  return "opacity";
10022
10056
  for (var E in p)
10023
10057
  return E;
10024
- }, _.hide = function() {
10058
+ }, g.hide = function() {
10025
10059
  this.isHidden = !0, this.css({ display: "" });
10026
- var y = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
10060
+ var b = this.layout.options, p = {}, E = this.getHideRevealTransitionEndProperty("hiddenStyle");
10027
10061
  p[E] = this.onHideTransitionEnd, this.transition({
10028
- from: y.visibleStyle,
10029
- to: y.hiddenStyle,
10062
+ from: b.visibleStyle,
10063
+ to: b.hiddenStyle,
10030
10064
  // keep hidden stuff hidden
10031
10065
  isCleaning: !0,
10032
10066
  onTransitionEnd: p
10033
10067
  });
10034
- }, _.onHideTransitionEnd = function() {
10068
+ }, g.onHideTransitionEnd = function() {
10035
10069
  this.isHidden && (this.css({ display: "none" }), this.emitEvent("hide"));
10036
- }, _.destroy = function() {
10070
+ }, g.destroy = function() {
10037
10071
  this.css({
10038
10072
  position: "",
10039
10073
  left: "",
@@ -10043,7 +10077,7 @@ function requireItem() {
10043
10077
  transition: "",
10044
10078
  transform: ""
10045
10079
  });
10046
- }, g;
10080
+ }, _;
10047
10081
  });
10048
10082
  }(item)), item.exports;
10049
10083
  }
@@ -10071,20 +10105,20 @@ function requireOutlayer() {
10071
10105
  );
10072
10106
  })(window, function(t, e, n, r, l) {
10073
10107
  var u = t.console, d = t.jQuery, f = function() {
10074
- }, g = 0, _ = {};
10075
- function b(p, E) {
10108
+ }, _ = 0, g = {};
10109
+ function y(p, E) {
10076
10110
  var T = r.getQueryElement(p);
10077
10111
  if (!T) {
10078
10112
  u && u.error("Bad element for " + this.constructor.namespace + ": " + (T || p));
10079
10113
  return;
10080
10114
  }
10081
10115
  this.element = T, d && (this.$element = d(this.element)), this.options = r.extend({}, this.constructor.defaults), this.option(E);
10082
- var O = ++g;
10083
- this.element.outlayerGUID = O, _[O] = this, this._create();
10116
+ var O = ++_;
10117
+ this.element.outlayerGUID = O, g[O] = this, this._create();
10084
10118
  var S = this._getOption("initLayout");
10085
10119
  S && this.layout();
10086
10120
  }
10087
- b.namespace = "outlayer", b.Item = l, b.defaults = {
10121
+ y.namespace = "outlayer", y.Item = l, y.defaults = {
10088
10122
  containerStyle: {
10089
10123
  position: "relative"
10090
10124
  },
@@ -10104,13 +10138,13 @@ function requireOutlayer() {
10104
10138
  transform: "scale(1)"
10105
10139
  }
10106
10140
  };
10107
- var v = b.prototype;
10141
+ var v = y.prototype;
10108
10142
  r.extend(v, e.prototype), v.option = function(p) {
10109
10143
  r.extend(this.options, p);
10110
10144
  }, v._getOption = function(p) {
10111
10145
  var E = this.constructor.compatOptions[p];
10112
10146
  return E && this.options[E] !== void 0 ? this.options[E] : this.options[p];
10113
- }, b.compatOptions = {
10147
+ }, y.compatOptions = {
10114
10148
  // currentName: oldName
10115
10149
  initLayout: "isInitLayout",
10116
10150
  horizontal: "isHorizontal",
@@ -10177,7 +10211,7 @@ function requireOutlayer() {
10177
10211
  this.stagger = 0;
10178
10212
  return;
10179
10213
  }
10180
- return this.stagger = y(p), this.stagger;
10214
+ return this.stagger = b(p), this.stagger;
10181
10215
  }, v._positionItem = function(p, E, T, O, S) {
10182
10216
  O ? p.goTo(E, T) : (p.stagger(S * this.stagger), p.moveTo(E, T));
10183
10217
  }, v._postLayout = function() {
@@ -10257,7 +10291,7 @@ function requireOutlayer() {
10257
10291
  t.removeEventListener("resize", this), this.isResizeBound = !1;
10258
10292
  }, v.onresize = function() {
10259
10293
  this.resize();
10260
- }, r.debounceMethod(b, "onresize", 100), v.resize = function() {
10294
+ }, r.debounceMethod(y, "onresize", 100), v.resize = function() {
10261
10295
  !this.isResizeBound || !this.needsResizeLayout() || this.layout();
10262
10296
  }, v.needsResizeLayout = function() {
10263
10297
  var p = n(this.element), E = this.size && p;
@@ -10318,14 +10352,14 @@ function requireOutlayer() {
10318
10352
  T.destroy();
10319
10353
  }), this.unbindResize();
10320
10354
  var E = this.element.outlayerGUID;
10321
- delete _[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
10322
- }, b.data = function(p) {
10355
+ delete g[E], delete this.element.outlayerGUID, d && d.removeData(this.element, this.constructor.namespace);
10356
+ }, y.data = function(p) {
10323
10357
  p = r.getQueryElement(p);
10324
10358
  var E = p && p.outlayerGUID;
10325
- return E && _[E];
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;
10359
+ return E && g[E];
10360
+ }, y.create = function(p, E) {
10361
+ var T = m(y);
10362
+ return T.defaults = r.extend({}, y.defaults), r.extend(T.defaults, E), T.compatOptions = r.extend({}, y.compatOptions), T.namespace = p, T.data = y.data, T.Item = m(l), r.htmlInit(T, p), d && d.bridget && d.bridget(p, T), T;
10329
10363
  };
10330
10364
  function m(p) {
10331
10365
  function E() {
@@ -10337,7 +10371,7 @@ function requireOutlayer() {
10337
10371
  ms: 1,
10338
10372
  s: 1e3
10339
10373
  };
10340
- function y(p) {
10374
+ function b(p) {
10341
10375
  if (typeof p == "number")
10342
10376
  return p;
10343
10377
  var E = p.match(/(^\d*\.?\d*)(\w*)/), T = E && E[1], O = E && E[2];
@@ -10347,7 +10381,7 @@ function requireOutlayer() {
10347
10381
  var S = P[O] || 1;
10348
10382
  return T * S;
10349
10383
  }
10350
- return b.Item = l, b;
10384
+ return y.Item = l, y;
10351
10385
  });
10352
10386
  }(outlayer)), outlayer.exports;
10353
10387
  }
@@ -10382,8 +10416,8 @@ function requireOutlayer() {
10382
10416
  this.columnWidth = u && e(u).outerWidth || // if first elem has no width, default to size of container
10383
10417
  this.containerWidth;
10384
10418
  }
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);
10419
+ var d = this.columnWidth += this.gutter, f = this.containerWidth + this.gutter, _ = f / d, g = d - f % d, y = g && g < 1 ? "round" : "floor";
10420
+ _ = Math[y](_), this.cols = Math.max(_, 1);
10387
10421
  }, r.getContainerWidth = function() {
10388
10422
  var l = this._getOption("fitWidth"), u = l ? this.element.parentNode : this.element, d = e(u);
10389
10423
  this.containerWidth = d && d.innerWidth;
@@ -10391,12 +10425,12 @@ function requireOutlayer() {
10391
10425
  l.getSize();
10392
10426
  var u = l.size.outerWidth % this.columnWidth, d = u && u < 1 ? "round" : "ceil", f = Math[d](l.size.outerWidth / this.columnWidth);
10393
10427
  f = Math.min(f, this.cols);
10394
- for (var g = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", _ = this[g](f, l), b = {
10395
- x: this.columnWidth * _.col,
10396
- y: _.y
10397
- }, v = _.y + l.size.outerHeight, m = f + _.col, P = _.col; P < m; P++)
10428
+ for (var _ = this.options.horizontalOrder ? "_getHorizontalColPosition" : "_getTopColPosition", g = this[_](f, l), y = {
10429
+ x: this.columnWidth * g.col,
10430
+ y: g.y
10431
+ }, v = g.y + l.size.outerHeight, m = f + g.col, P = g.col; P < m; P++)
10398
10432
  this.colYs[P] = v;
10399
- return b;
10433
+ return y;
10400
10434
  }, r._getTopColPosition = function(l) {
10401
10435
  var u = this._getTopColGroup(l), d = Math.min.apply(Math, u);
10402
10436
  return {
@@ -10417,18 +10451,18 @@ function requireOutlayer() {
10417
10451
  }, r._getHorizontalColPosition = function(l, u) {
10418
10452
  var d = this.horizontalColIndex % this.cols, f = l > 1 && d + l > this.cols;
10419
10453
  d = f ? 0 : d;
10420
- var g = u.size.outerWidth && u.size.outerHeight;
10421
- return this.horizontalColIndex = g ? d + l : this.horizontalColIndex, {
10454
+ var _ = u.size.outerWidth && u.size.outerHeight;
10455
+ return this.horizontalColIndex = _ ? d + l : this.horizontalColIndex, {
10422
10456
  col: d,
10423
10457
  y: this._getColGroupY(d, l)
10424
10458
  };
10425
10459
  }, r._manageStamp = function(l) {
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);
10428
- var v = Math.floor(_ / this.columnWidth);
10429
- v -= _ % this.columnWidth ? 0 : 1, v = Math.min(this.cols - 1, v);
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]);
10460
+ var u = e(l), d = this._getElementOffset(l), f = this._getOption("originLeft"), _ = f ? d.left : d.right, g = _ + u.outerWidth, y = Math.floor(_ / this.columnWidth);
10461
+ y = Math.max(0, y);
10462
+ var v = Math.floor(g / this.columnWidth);
10463
+ v -= g % this.columnWidth ? 0 : 1, v = Math.min(this.cols - 1, v);
10464
+ for (var m = this._getOption("originTop"), P = (m ? d.top : d.bottom) + u.outerHeight, b = y; b <= v; b++)
10465
+ this.colYs[b] = Math.max(P, this.colYs[b]);
10432
10466
  }, r._getContainerSize = function() {
10433
10467
  this.maxY = Math.max.apply(Math, this.colYs);
10434
10468
  var l = {
@@ -10482,33 +10516,33 @@ var imagesloaded = { exports: {} };
10482
10516
  function f(v, m, P) {
10483
10517
  if (!(this instanceof f))
10484
10518
  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));
10519
+ var b = v;
10520
+ if (typeof v == "string" && (b = document.querySelectorAll(v)), !b) {
10521
+ r.error("Bad element for imagesLoaded " + (b || v));
10488
10522
  return;
10489
10523
  }
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));
10524
+ this.elements = d(b), 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));
10491
10525
  }
10492
10526
  f.prototype = Object.create(e.prototype), f.prototype.options = {}, f.prototype.getImages = function() {
10493
10527
  this.images = [], this.elements.forEach(this.addElementImages, this);
10494
10528
  }, f.prototype.addElementImages = function(v) {
10495
10529
  v.nodeName == "IMG" && this.addImage(v), this.options.background === !0 && this.addElementBackgroundImages(v);
10496
10530
  var m = v.nodeType;
10497
- if (!(!m || !g[m])) {
10498
- for (var P = v.querySelectorAll("img"), y = 0; y < P.length; y++) {
10499
- var p = P[y];
10531
+ if (!(!m || !_[m])) {
10532
+ for (var P = v.querySelectorAll("img"), b = 0; b < P.length; b++) {
10533
+ var p = P[b];
10500
10534
  this.addImage(p);
10501
10535
  }
10502
10536
  if (typeof this.options.background == "string") {
10503
10537
  var E = v.querySelectorAll(this.options.background);
10504
- for (y = 0; y < E.length; y++) {
10505
- var T = E[y];
10538
+ for (b = 0; b < E.length; b++) {
10539
+ var T = E[b];
10506
10540
  this.addElementBackgroundImages(T);
10507
10541
  }
10508
10542
  }
10509
10543
  }
10510
10544
  };
10511
- var g = {
10545
+ var _ = {
10512
10546
  1: !0,
10513
10547
  9: !0,
10514
10548
  11: !0
@@ -10516,15 +10550,15 @@ var imagesloaded = { exports: {} };
10516
10550
  f.prototype.addElementBackgroundImages = function(v) {
10517
10551
  var m = getComputedStyle(v);
10518
10552
  if (m)
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);
10553
+ for (var P = /url\((['"])?(.*?)\1\)/gi, b = P.exec(m.backgroundImage); b !== null; ) {
10554
+ var p = b && b[2];
10555
+ p && this.addBackground(p, v), b = P.exec(m.backgroundImage);
10522
10556
  }
10523
10557
  }, f.prototype.addImage = function(v) {
10524
- var m = new _(v);
10558
+ var m = new g(v);
10525
10559
  this.images.push(m);
10526
10560
  }, f.prototype.addBackground = function(v, m) {
10527
- var P = new b(v, m);
10561
+ var P = new y(v, m);
10528
10562
  this.images.push(P);
10529
10563
  }, f.prototype.check = function() {
10530
10564
  var v = this;
@@ -10532,9 +10566,9 @@ var imagesloaded = { exports: {} };
10532
10566
  this.complete();
10533
10567
  return;
10534
10568
  }
10535
- function m(P, y, p) {
10569
+ function m(P, b, p) {
10536
10570
  setTimeout(function() {
10537
- v.progress(P, y, p);
10571
+ v.progress(P, b, p);
10538
10572
  });
10539
10573
  }
10540
10574
  this.images.forEach(function(P) {
@@ -10549,45 +10583,45 @@ var imagesloaded = { exports: {} };
10549
10583
  this.jqDeferred[m](this);
10550
10584
  }
10551
10585
  };
10552
- function _(v) {
10586
+ function g(v) {
10553
10587
  this.img = v;
10554
10588
  }
10555
- _.prototype = Object.create(e.prototype), _.prototype.check = function() {
10589
+ g.prototype = Object.create(e.prototype), g.prototype.check = function() {
10556
10590
  var v = this.getIsImageComplete();
10557
10591
  if (v) {
10558
10592
  this.confirm(this.img.naturalWidth !== 0, "naturalWidth");
10559
10593
  return;
10560
10594
  }
10561
10595
  this.proxyImage = new Image(), this.proxyImage.addEventListener("load", this), this.proxyImage.addEventListener("error", this), this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.proxyImage.src = this.img.src;
10562
- }, _.prototype.getIsImageComplete = function() {
10596
+ }, g.prototype.getIsImageComplete = function() {
10563
10597
  return this.img.complete && this.img.naturalWidth;
10564
- }, _.prototype.confirm = function(v, m) {
10598
+ }, g.prototype.confirm = function(v, m) {
10565
10599
  this.isLoaded = v, this.emitEvent("progress", [this, this.img, m]);
10566
- }, _.prototype.handleEvent = function(v) {
10600
+ }, g.prototype.handleEvent = function(v) {
10567
10601
  var m = "on" + v.type;
10568
10602
  this[m] && this[m](v);
10569
- }, _.prototype.onload = function() {
10603
+ }, g.prototype.onload = function() {
10570
10604
  this.confirm(!0, "onload"), this.unbindEvents();
10571
- }, _.prototype.onerror = function() {
10605
+ }, g.prototype.onerror = function() {
10572
10606
  this.confirm(!1, "onerror"), this.unbindEvents();
10573
- }, _.prototype.unbindEvents = function() {
10607
+ }, g.prototype.unbindEvents = function() {
10574
10608
  this.proxyImage.removeEventListener("load", this), this.proxyImage.removeEventListener("error", this), this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
10575
10609
  };
10576
- function b(v, m) {
10610
+ function y(v, m) {
10577
10611
  this.url = v, this.element = m, this.img = new Image();
10578
10612
  }
10579
- return b.prototype = Object.create(_.prototype), b.prototype.check = function() {
10613
+ return y.prototype = Object.create(g.prototype), y.prototype.check = function() {
10580
10614
  this.img.addEventListener("load", this), this.img.addEventListener("error", this), this.img.src = this.url;
10581
10615
  var v = this.getIsImageComplete();
10582
10616
  v && (this.confirm(this.img.naturalWidth !== 0, "naturalWidth"), this.unbindEvents());
10583
- }, b.prototype.unbindEvents = function() {
10617
+ }, y.prototype.unbindEvents = function() {
10584
10618
  this.img.removeEventListener("load", this), this.img.removeEventListener("error", this);
10585
- }, b.prototype.confirm = function(v, m) {
10619
+ }, y.prototype.confirm = function(v, m) {
10586
10620
  this.isLoaded = v, this.emitEvent("progress", [this, this.element, m]);
10587
10621
  }, f.makeJQueryPlugin = function(v) {
10588
10622
  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));
10623
+ var b = new f(this, m, P);
10624
+ return b.jqDeferred.promise(n(this));
10591
10625
  });
10592
10626
  }, f.makeJQueryPlugin(), f;
10593
10627
  }
@@ -10624,22 +10658,22 @@ VueMasonryPlugin.install = function(s, i) {
10624
10658
  mounted: function(r, l) {
10625
10659
  if (!Masonry)
10626
10660
  throw new Error("Masonry plugin is not defined. Please check it's connected and parsed correctly.");
10627
- const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e, g = u.destroyDelay ? parseInt(u.destroyDelay, 10) : void 0, _ = function() {
10661
+ const u = collectOptions(r.attributes), d = new Masonry(r, u), f = l.value || e, _ = u.destroyDelay ? parseInt(u.destroyDelay, 10) : void 0, g = function() {
10628
10662
  d.reloadItems(), d.layout();
10629
10663
  };
10630
10664
  nextTick(() => {
10631
- _();
10665
+ g();
10632
10666
  });
10633
- const b = function(m) {
10634
- _();
10667
+ const y = function(m) {
10668
+ g();
10635
10669
  }, v = function(m) {
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;
10670
+ t.off(`${EVENT_ADD}__${f}`, y), t.off(`${EVENT_REMOVE}__${f}`, y), t.off(`${EVENT_IMAGE_LOADED}__${f}`, y), t.off(`${EVENT_DESTROY}__${f}`, v);
10671
+ const P = _ && !Number.isNaN(_) ? _ : 0;
10638
10672
  setTimeout(function() {
10639
10673
  d.destroy();
10640
10674
  }, P);
10641
10675
  };
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);
10676
+ t.on(`${EVENT_ADD}__${f}`, y), t.on(`${EVENT_REMOVE}__${f}`, y), t.on(`${EVENT_IMAGE_LOADED}__${f}`, y), t.on(`${EVENT_DESTROY}__${f}`, v);
10643
10677
  },
10644
10678
  unbind: function(r, l) {
10645
10679
  const u = l.value || e;
@@ -10684,4 +10718,4 @@ export {
10684
10718
  StickyPlugin as a,
10685
10719
  ListingSkeleton as b
10686
10720
  };
10687
- //# sourceMappingURL=masonry.plugin-rZZcRBGq.js.map
10721
+ //# sourceMappingURL=masonry.plugin-D7l8_YMQ.js.map