@konnectio/core 4.11.2 → 4.11.4

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 (116) hide show
  1. package/dist/{ActionField-CrGPD8ma.js → ActionField-uvrQkuh0.js} +16 -17
  2. package/dist/ActionField-uvrQkuh0.js.br +0 -0
  3. package/dist/ActionField-uvrQkuh0.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-CKpPPNyV.js → AvailabilitySkeleton-BnOSMGJe.js} +2374 -2900
  5. package/dist/AvailabilitySkeleton-BnOSMGJe.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-BnOSMGJe.js.gz +0 -0
  7. package/dist/{CheckoutWindow-W80b2grC.js → CheckoutWindow-C81SaALY.js} +579 -655
  8. package/dist/CheckoutWindow-C81SaALY.js.br +0 -0
  9. package/dist/CheckoutWindow-C81SaALY.js.gz +0 -0
  10. package/dist/{ErrorMessage-fmvrjZrE.js → ErrorMessage-CoLcli9h.js} +12 -14
  11. package/dist/ErrorMessage-CoLcli9h.js.br +0 -0
  12. package/dist/{ErrorMessage-fmvrjZrE.js.gz → ErrorMessage-CoLcli9h.js.gz} +0 -0
  13. package/dist/{EventAvailabilityForm-BX0CUyYU.js → EventAvailabilityForm-q1YPg-bW.js} +29 -30
  14. package/dist/EventAvailabilityForm-q1YPg-bW.js.br +0 -0
  15. package/dist/EventAvailabilityForm-q1YPg-bW.js.gz +0 -0
  16. package/dist/{Field-DsFLUyHP.js → Field-DIFm-jDk.js} +6 -7
  17. package/dist/Field-DIFm-jDk.js.br +0 -0
  18. package/dist/Field-DIFm-jDk.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-B8RzSM0k.js +312 -0
  20. package/dist/HotelAvailabilityForm-B8RzSM0k.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-B8RzSM0k.js.gz +0 -0
  22. package/dist/{SelectField-__FvhjFN.js → SelectField-C9lJ8eBd.js} +3739 -3133
  23. package/dist/SelectField-C9lJ8eBd.js.br +0 -0
  24. package/dist/SelectField-C9lJ8eBd.js.gz +0 -0
  25. package/dist/{TermsOfService-XhYHiCia.js → TermsOfService-0719ZgMM.js} +5 -6
  26. package/dist/TermsOfService-0719ZgMM.js.br +0 -0
  27. package/dist/TermsOfService-0719ZgMM.js.gz +1 -0
  28. package/dist/_-0PVid2uc.js +24 -0
  29. package/dist/_-0PVid2uc.js.br +0 -0
  30. package/dist/_-0PVid2uc.js.gz +7 -0
  31. package/dist/availability.js +24 -25
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +57 -62
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/core.css +1 -1
  38. package/dist/core.css.br +0 -0
  39. package/dist/core.css.gz +0 -0
  40. package/dist/deep-link.js +15 -16
  41. package/dist/deep-link.js.br +0 -0
  42. package/dist/deep-link.js.gz +0 -0
  43. package/dist/{dist-ChCkH-cE.js → dist-B_Ox_TrT.js} +705 -756
  44. package/dist/dist-B_Ox_TrT.js.br +0 -0
  45. package/dist/dist-B_Ox_TrT.js.gz +0 -0
  46. package/dist/{dist-CqcX4eCU.js → dist-CFPG9IfN.js} +168 -139
  47. package/dist/dist-CFPG9IfN.js.br +0 -0
  48. package/dist/dist-CFPG9IfN.js.gz +0 -0
  49. package/dist/event.js +334 -344
  50. package/dist/event.js.br +0 -0
  51. package/dist/event.js.gz +0 -0
  52. package/dist/gift-card-validation.js +42 -43
  53. package/dist/gift-card-validation.js.br +0 -0
  54. package/dist/gift-card-validation.js.gz +0 -0
  55. package/dist/gift-card.js +261 -166
  56. package/dist/gift-card.js.br +0 -0
  57. package/dist/gift-card.js.gz +0 -0
  58. package/dist/giftCard-CAPeGeXI.js +134 -0
  59. package/dist/giftCard-CAPeGeXI.js.br +0 -0
  60. package/dist/giftCard-CAPeGeXI.js.gz +0 -0
  61. package/dist/hotel.js +983 -1145
  62. package/dist/hotel.js.br +0 -0
  63. package/dist/hotel.js.gz +0 -0
  64. package/dist/{i18n-BU9Enb5i.js → i18n-Dq3VKG7w.js} +4004 -3647
  65. package/dist/i18n-Dq3VKG7w.js.br +0 -0
  66. package/dist/i18n-Dq3VKG7w.js.gz +0 -0
  67. package/dist/polyfill.js +905 -818
  68. package/dist/polyfill.js.br +0 -0
  69. package/dist/polyfill.js.gz +0 -0
  70. package/dist/{rolldown-runtime-B0aSnxlc.js → rolldown-runtime-QGRDbDUS.js} +2 -3
  71. package/dist/rolldown-runtime-QGRDbDUS.js.br +0 -0
  72. package/dist/rolldown-runtime-QGRDbDUS.js.gz +0 -0
  73. package/dist/style-B4cGytfi.js +1284 -0
  74. package/dist/style-B4cGytfi.js.br +0 -0
  75. package/dist/style-B4cGytfi.js.gz +0 -0
  76. package/dist-wix/availability.js +42 -34
  77. package/dist-wix/event.js +54 -46
  78. package/dist-wix/gift-card-validation.js +39 -31
  79. package/dist-wix/gift-card.js +43 -35
  80. package/dist-wix/hotel.js +54 -46
  81. package/package.json +32 -32
  82. package/dist/ActionField-CrGPD8ma.js.br +0 -0
  83. package/dist/ActionField-CrGPD8ma.js.gz +0 -0
  84. package/dist/AvailabilitySkeleton-CKpPPNyV.js.br +0 -0
  85. package/dist/AvailabilitySkeleton-CKpPPNyV.js.gz +0 -0
  86. package/dist/CheckoutWindow-W80b2grC.js.br +0 -0
  87. package/dist/CheckoutWindow-W80b2grC.js.gz +0 -0
  88. package/dist/ErrorMessage-fmvrjZrE.js.br +0 -0
  89. package/dist/EventAvailabilityForm-BX0CUyYU.js.br +0 -0
  90. package/dist/EventAvailabilityForm-BX0CUyYU.js.gz +0 -0
  91. package/dist/Field-DsFLUyHP.js.br +0 -0
  92. package/dist/Field-DsFLUyHP.js.gz +0 -0
  93. package/dist/HotelAvailabilityForm-_wN0A0VR.js +0 -322
  94. package/dist/HotelAvailabilityForm-_wN0A0VR.js.br +0 -0
  95. package/dist/HotelAvailabilityForm-_wN0A0VR.js.gz +0 -0
  96. package/dist/SelectField-__FvhjFN.js.br +0 -0
  97. package/dist/SelectField-__FvhjFN.js.gz +0 -0
  98. package/dist/TermsOfService-XhYHiCia.js.br +0 -0
  99. package/dist/TermsOfService-XhYHiCia.js.gz +0 -1
  100. package/dist/_-Bi3jyl9S.js +0 -25
  101. package/dist/_-Bi3jyl9S.js.br +0 -0
  102. package/dist/_-Bi3jyl9S.js.gz +0 -0
  103. package/dist/dist-ChCkH-cE.js.br +0 -0
  104. package/dist/dist-ChCkH-cE.js.gz +0 -0
  105. package/dist/dist-CqcX4eCU.js.br +0 -0
  106. package/dist/dist-CqcX4eCU.js.gz +0 -0
  107. package/dist/giftCard-BpWe7WsA.js +0 -114
  108. package/dist/giftCard-BpWe7WsA.js.br +0 -0
  109. package/dist/giftCard-BpWe7WsA.js.gz +0 -0
  110. package/dist/i18n-BU9Enb5i.js.br +0 -0
  111. package/dist/i18n-BU9Enb5i.js.gz +0 -0
  112. package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
  113. package/dist/rolldown-runtime-B0aSnxlc.js.gz +0 -5
  114. package/dist/style-CcIo1t4N.js +0 -1711
  115. package/dist/style-CcIo1t4N.js.br +0 -0
  116. package/dist/style-CcIo1t4N.js.gz +0 -0
@@ -1,9 +1,9 @@
1
- import { $ as onUnmounted, A as computed$1, At as unref, B as getCurrentInstance, E as Fragment, F as createSlots, G as mergeModels, H as h, I as createTextVNode, L as createVNode, M as createBlock, N as createCommentVNode, Nt as normalizeStyle, P as createElementBlock, Pt as toDisplayString, Q as onMounted, S as vShow, St as reactive, T as Comment, Y as onBeforeUnmount, _t as withDirectives, a as useI18n, at as renderSlot, bt as isRef, dt as useModel, et as openBlock, ft as useSlots, g as Transition, gt as withCtx, h as storeToRefs, it as renderList, j as createBaseVNode, jt as normalizeClass, k as Text, l as useEventBus, mt as watch, ot as resolveComponent, q as nextTick, st as resolveDirective, w as withModifiers, wt as ref, z as defineComponent } from "./i18n-BU9Enb5i.js";
2
- import { A as ScrollToTop, C as useAvailabilityStore, E as useUtilityStore, L as capitalized, M as useApplyGiftCardStore, O as useHotelStore, Q as showDate, R as convertDescription, S as _plugin_vue_export_helper_default, _ as InputField_default, at as BookingLayout, it as BookingHeaderLayout, j as usePaymentStore, n as TextField_default, q as getUserLanguage, tt as showPrice, v as Clickable_default, w as useEventStore, x as Icon_default, z as daysBetweenDates } from "./SelectField-__FvhjFN.js";
3
- import { i as Checkbox_default, o as Base_default$1, r as GoogleNotice_default } from "./CheckoutWindow-W80b2grC.js";
4
- import { n as __default } from "./Field-DsFLUyHP.js";
5
- import { t as ActionField_default } from "./ActionField-CrGPD8ma.js";
6
- //#region node_modules/@egjs/component/dist/component.esm.js
1
+ import { $ as onUnmounted, A as computed$2, At as normalizeStyle, B as getCurrentInstance, Dt as unref, E as Fragment, F as createSlots, G as mergeModels, H as h, I as createTextVNode, L as createVNode, M as createBlock, N as createCommentVNode, Ot as normalizeClass, P as createElementBlock, Q as onMounted, S as vShow, T as Comment, Y as onBeforeUnmount, _t as isRef, a as useI18n, at as resolveDirective, et as openBlock, ft as watch, g as Transition, h as storeToRefs, ht as withDirectives, it as resolveComponent, j as createBaseVNode, jt as toDisplayString, k as Text, l as useEventBus, lt as useModel, mt as withCtx, nt as renderList, q as nextTick, rt as renderSlot, ut as useSlots, w as withModifiers, xt as ref, yt as reactive, z as defineComponent } from "./i18n-Dq3VKG7w.js";
2
+ import { $ as showPrice, A as useApplyGiftCardStore, E as useHotelStore, F as capitalized, G as getUserLanguage, I as convertDescription, L as daysBetweenDates, O as ScrollToTop, S as useEventStore, X as showDate, b as _plugin_vue_export_helper_default, g as Clickable_default, h as InputField_default, k as usePaymentStore, n as TextField_default, nt as BookingHeaderLayout, rt as BookingLayout, w as useUtilityStore, x as useAvailabilityStore, y as Icon_default } from "./SelectField-C9lJ8eBd.js";
3
+ import { n as __default } from "./Field-DIFm-jDk.js";
4
+ import { t as ActionField_default } from "./ActionField-uvrQkuh0.js";
5
+ import { i as Checkbox_default, o as Base_default$1, r as GoogleNotice_default } from "./CheckoutWindow-C81SaALY.js";
6
+ // node_modules/@egjs/component/dist/component.esm.js
7
7
  function __values(e) {
8
8
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
9
9
  if (n) return n.call(e);
@@ -121,8 +121,7 @@ var isUndefined = function(e) {
121
121
  return this;
122
122
  }, e.VERSION = "3.0.5", e;
123
123
  }(), ComponentEvent$1 = ComponentEvent;
124
- //#endregion
125
- //#region node_modules/@egjs/agent/dist/agent.esm.js
124
+ // node_modules/@egjs/agent/dist/agent.esm.js
126
125
  function some(e, t) {
127
126
  for (var n = e.length, r = 0; r < n; ++r) if (t(e[r], r)) return !0;
128
127
  return !1;
@@ -378,8 +377,7 @@ function getClientHintsAgent(e) {
378
377
  function agent(e) {
379
378
  return e === void 0 && hasUserAgentData() ? getClientHintsAgent() : getLegacyAgent(e);
380
379
  }
381
- //#endregion
382
- //#region node_modules/@cfcs/core/dist/cfcs.esm.js
380
+ // node_modules/@cfcs/core/dist/cfcs.esm.js
383
381
  function keys(e) {
384
382
  return Object.keys(e);
385
383
  }
@@ -497,13 +495,9 @@ function injectReactiveSubscribe(e) {
497
495
  this[e], getObserver(this, e).subscribe(t);
498
496
  }, e.unsubscribe = function(e, t) {
499
497
  var n = this;
500
- if (!e) {
501
- keys(getObservers(this)).forEach(function(e) {
502
- n.unsubscribe(e);
503
- });
504
- return;
505
- }
506
- e in this && getObserver(this, e).unsubscribe(t);
498
+ e ? e in this && getObserver(this, e).unsubscribe(t) : keys(getObservers(this)).forEach(function(e) {
499
+ n.unsubscribe(e);
500
+ });
507
501
  };
508
502
  }
509
503
  function ReactiveSubscribe(e) {
@@ -552,8 +546,7 @@ function Computed(e, t, n) {
552
546
  var l = e[COMPUTED_PATH];
553
547
  return l.indexOf(t) === -1 && l.push(t), Object.defineProperty(e, t, s), s;
554
548
  }
555
- //#endregion
556
- //#region node_modules/@egjs/axes/dist/axes.esm.js
549
+ // node_modules/@egjs/axes/dist/axes.esm.js
557
550
  var extendStatics$1 = function(e, t) {
558
551
  return extendStatics$1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
559
552
  e.__proto__ = t;
@@ -676,14 +669,14 @@ var requestAnimationFrame$2 = function(e) {
676
669
  }, isCssPropsFromAxes = function(e) {
677
670
  var t = !0;
678
671
  return Object.keys(PREVENT_DRAG_CSSPROPS).forEach(function(n) {
679
- (!e || e[n] !== PREVENT_DRAG_CSSPROPS[n]) && (t = !1);
672
+ e && e[n] === PREVENT_DRAG_CSSPROPS[n] || (t = !1);
680
673
  }), t;
681
674
  }, getDirection$1 = function(e, t) {
682
675
  return e && t ? DIRECTION_ALL : e ? DIRECTION_HORIZONTAL : t ? DIRECTION_VERTICAL : DIRECTION_NONE;
683
676
  }, useDirection = function(e, t, n) {
684
677
  return n ? !!(t === DIRECTION_ALL || t & e && n & e) : !!(t & e);
685
678
  }, setCssProps = function(e, t, n) {
686
- var r, i = (r = {}, r[DIRECTION_NONE] = "auto", r[DIRECTION_ALL] = "none", r[DIRECTION_VERTICAL] = "pan-x", r[DIRECTION_HORIZONTAL] = "pan-y", r), s = {};
679
+ var r = {}, i = (r[DIRECTION_NONE] = "auto", r[DIRECTION_ALL] = "none", r[DIRECTION_VERTICAL] = "pan-x", r[DIRECTION_HORIZONTAL] = "pan-y", r), s = {};
687
680
  if (e && e.style) {
688
681
  var l = t.touchAction ? t.touchAction : i[n], u = __assign$1(__assign$1({}, PREVENT_DRAG_CSSPROPS), { "touch-action": e.style["touch-action"] === "none" ? "none" : l });
689
682
  Object.keys(u).forEach(function(t) {
@@ -876,8 +869,8 @@ var requestAnimationFrame$2 = function(e) {
876
869
  var t, n = this.prevEvent, r = this._getCenter(e), i = n ? this._getMovement(e) : {
877
870
  x: 0,
878
871
  y: 0
879
- }, s = n ? this._getScale(e) : 1, l = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, u = n ? n.deltaX + i.x : i.x, d = n ? n.deltaY + i.y : i.y, f = i.x, p = i.y, m = this._latestInterval, g = Date.now(), _ = m ? g - m.timestamp : 0, v = n ? n.velocityX : 0, y = n ? n.velocityY : 0;
880
- return (!m || _ >= VELOCITY_INTERVAL) && (m && (t = [(u - m.deltaX) / _, (d - m.deltaY) / _], v = t[0], y = t[1]), this._latestInterval = {
872
+ }, s = n ? this._getScale(e) : 1, l = n ? getAngle(r.x - n.center.x, r.y - n.center.y) : 0, u = n ? n.deltaX + i.x : i.x, d = n ? n.deltaY + i.y : i.y, f = i.x, p = i.y, m = this._latestInterval, g = Date.now(), _ = m ? g - m.timestamp : 0, v = n ? n.velocityX : 0, y = n ? n.velocityY : 0, b = n ? n.directionX : 1, x = n ? n.directionY : 1;
873
+ return f > 0 ? b = 1 : f < 0 && (b = -1), p > 0 ? x = 1 : p < 0 && (x = -1), (!m || _ >= VELOCITY_INTERVAL) && (m && (t = [(u - m.deltaX) / _, (d - m.deltaY) / _], v = t[0], y = t[1]), this._latestInterval = {
881
874
  timestamp: g,
882
875
  deltaX: u,
883
876
  deltaY: d
@@ -890,6 +883,8 @@ var requestAnimationFrame$2 = function(e) {
890
883
  deltaY: d,
891
884
  offsetX: f,
892
885
  offsetY: p,
886
+ directionX: b,
887
+ directionY: x,
893
888
  velocityX: v,
894
889
  velocityY: y,
895
890
  preventSystemEvent: !0
@@ -1106,7 +1101,7 @@ var InputObserver = /*#__PURE__*/ function() {
1106
1101
  return t.get = function(e) {
1107
1102
  return this._axisManager.get(e.axes);
1108
1103
  }, t.hold = function(e, t) {
1109
- if (!(this._interruptManager.isInterrupted() || !e.axes.length)) {
1104
+ if (!this._interruptManager.isInterrupted() && e.axes.length) {
1110
1105
  var n = {
1111
1106
  input: e,
1112
1107
  event: t
@@ -1127,7 +1122,7 @@ var InputObserver = /*#__PURE__*/ function() {
1127
1122
  return n && (n[0] || n[1]) ? getCirculatedPos(e, r, n) : e;
1128
1123
  }), this._isOutside && this._axisManager.every(s, function(e, t) {
1129
1124
  return !isOutside(e, t.range);
1130
- }) && (this._isOutside = !1), s = this._atOutside(s), l = this._atOutside(l), (!this.options.nested || !this._isEndofAxis(n, s, l)) && (i.__childrenAxesAlreadyChanged = !0);
1125
+ }) && (this._isOutside = !1), s = this._atOutside(s), l = this._atOutside(l), this.options.nested && this._isEndofAxis(n, s, l) || (i.__childrenAxesAlreadyChanged = !0);
1131
1126
  var u = {
1132
1127
  input: e,
1133
1128
  event: t
@@ -1139,7 +1134,7 @@ var InputObserver = /*#__PURE__*/ function() {
1139
1134
  }
1140
1135
  }
1141
1136
  }, t.release = function(e, t, n, r) {
1142
- if (!(this._isStopped || !this._interruptManager.isInterrupting() || !this._moveDistance)) {
1137
+ if (!this._isStopped && this._interruptManager.isInterrupting() && this._moveDistance) {
1143
1138
  var i = t.srcEvent ? t.srcEvent : t;
1144
1139
  i.__childrenAxesAlreadyReleased && (n = n.map(function() {
1145
1140
  return 0;
@@ -1196,17 +1191,16 @@ var InputObserver = /*#__PURE__*/ function() {
1196
1191
  var t, n = this._animateParam;
1197
1192
  if (n) {
1198
1193
  var r = (/* @__PURE__ */ new Date()).getTime() - n.startTime, i = e?.destPos || n.destPos, s = e?.duration ?? n.duration;
1199
- if (e?.restart || s <= r) {
1200
- this.setTo(i, s - r);
1201
- return;
1202
- }
1203
- if (e?.destPos) {
1204
- var l = this.axisManager.get();
1205
- this._initialEasingPer = this._prevEasingPer, n.delta = this.axisManager.getDelta(l, i), n.destPos = i;
1206
- }
1207
- if (e?.duration) {
1208
- var u = (r + this._durationOffset) / n.duration;
1209
- this._durationOffset = u * s - r, n.duration = s;
1194
+ if (e?.restart || s <= r) this.setTo(i, s - r);
1195
+ else {
1196
+ if (e?.destPos) {
1197
+ var l = this.axisManager.get();
1198
+ this._initialEasingPer = this._prevEasingPer, n.delta = this.axisManager.getDelta(l, i), n.destPos = i;
1199
+ }
1200
+ if (e?.duration) {
1201
+ var u = (r + this._durationOffset) / n.duration;
1202
+ this._durationOffset = u * s - r, n.duration = s;
1203
+ }
1210
1204
  }
1211
1205
  }
1212
1206
  }, n._initState = function(e) {
@@ -1351,11 +1345,7 @@ var InputObserver = /*#__PURE__*/ function() {
1351
1345
  }), i = this._initState(this._animateParam), s = function() {
1352
1346
  n._raf = null;
1353
1347
  var e = n._animateParam, l = n._getNextState(i), u = !n.eventManager.triggerChange(l.pos, i.pos);
1354
- if (i = l, l.finished) {
1355
- e.destPos = n._getFinalPos(e.destPos, r), equal(e.destPos, n.axisManager.get(Object.keys(e.destPos))) || n.eventManager.triggerChange(e.destPos, l.pos), t();
1356
- return;
1357
- }
1358
- u ? n.finish(!1) : n._raf = requestAnimationFrame$2(s);
1348
+ i = l, l.finished ? (e.destPos = n._getFinalPos(e.destPos, r), equal(e.destPos, n.axisManager.get(Object.keys(e.destPos))) || n.eventManager.triggerChange(e.destPos, l.pos), t()) : u ? n.finish(!1) : n._raf = requestAnimationFrame$2(s);
1359
1349
  };
1360
1350
  s();
1361
1351
  } else this.eventManager.triggerChange(e.destPos), t();
@@ -1427,7 +1417,7 @@ var InputObserver = /*#__PURE__*/ function() {
1427
1417
  return this.axisManager.isOutside(e);
1428
1418
  }, n.destroy = function() {
1429
1419
  this.disconnect(), this.eventManager.destroy();
1430
- }, t.VERSION = "3.9.1", t.TRANSFORM = TRANSFORM, t.DIRECTION_NONE = DIRECTION_NONE, t.DIRECTION_LEFT = DIRECTION_LEFT, t.DIRECTION_RIGHT = DIRECTION_RIGHT, t.DIRECTION_UP = DIRECTION_UP, t.DIRECTION_DOWN = DIRECTION_DOWN, t.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL, t.DIRECTION_VERTICAL = DIRECTION_VERTICAL, t.DIRECTION_ALL = DIRECTION_ALL, __decorate([Computed], t.prototype, "holding", null), t = __decorate([ReactiveSubscribe], t), t;
1420
+ }, t.VERSION = "3.9.3", t.TRANSFORM = TRANSFORM, t.DIRECTION_NONE = DIRECTION_NONE, t.DIRECTION_LEFT = DIRECTION_LEFT, t.DIRECTION_RIGHT = DIRECTION_RIGHT, t.DIRECTION_UP = DIRECTION_UP, t.DIRECTION_DOWN = DIRECTION_DOWN, t.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL, t.DIRECTION_VERTICAL = DIRECTION_VERTICAL, t.DIRECTION_ALL = DIRECTION_ALL, __decorate([Computed], t.prototype, "holding", null), t = __decorate([ReactiveSubscribe], t), t;
1431
1421
  }(Component), getDirectionByAngle = function(e, t) {
1432
1422
  if (t < 0 || t > 90) return DIRECTION_NONE;
1433
1423
  var n = Math.abs(e);
@@ -1435,7 +1425,10 @@ var InputObserver = /*#__PURE__*/ function() {
1435
1425
  }, PanInput = /*#__PURE__*/ function() {
1436
1426
  function e(e, t) {
1437
1427
  var n = this;
1438
- this.axes = [], this.element = null, this._enabled = !1, this._activeEvent = null, this._atRightEdge = !1, this._rightEdgeTimer = 0, this._dragged = !1, this._isOverThreshold = !1, this._preventClickWhenDragged = function(e) {
1428
+ this.axes = [], this.element = null, this._enabled = !1, this._activeEvent = null, this._atRightEdge = !1, this._rightEdgeTimer = 0, this._dragged = !1, this._isOverThreshold = !1, this._startTarget = null, this._onLostPointerCapture = function() {
1429
+ var e = n._startTarget;
1430
+ e && !e.isConnected && n.release();
1431
+ }, this._preventClickWhenDragged = function(e) {
1439
1432
  n._dragged && (e.preventDefault(), e.stopPropagation()), n._dragged = !1;
1440
1433
  }, this._voidFunction = function() {}, this.element = $(e), this.options = __assign$1({
1441
1434
  inputType: [
@@ -1465,7 +1458,9 @@ var InputObserver = /*#__PURE__*/ function() {
1465
1458
  }, t.destroy = function() {
1466
1459
  this.disconnect(), this.element = null;
1467
1460
  }, t.enable = function() {
1468
- return this._enabled || (this._enabled = !0, this._originalCssProps = setCssProps(this.element, this.options, this._direction)), this;
1461
+ if (convertInputType(this.options.inputType)) this._enabled || (this._enabled = !0, this._originalCssProps = setCssProps(this.element, this.options, this._direction));
1462
+ else throw Error("PanInput cannot be enabled if there is no available input event.");
1463
+ return this;
1469
1464
  }, t.disable = function() {
1470
1465
  return this._enabled && (this._enabled = !1, isCssPropsFromAxes(this._originalCssProps) || revertCssProps(this.element, this._originalCssProps)), this;
1471
1466
  }, t.isEnabled = function() {
@@ -1477,15 +1472,12 @@ var InputObserver = /*#__PURE__*/ function() {
1477
1472
  var t = this.options, n = t.inputKey, r = t.inputButton, i = t.preventDefaultOnDrag, s = this._activeEvent, l = s.onEventStart(e, n, r);
1478
1473
  if (!(!l || !this._enabled || s.getTouches(e, r) > 1) && l.srcEvent.cancelable !== !1) {
1479
1474
  var u = this.options.iOSEdgeSwipeThreshold;
1480
- this._dragged = !1, this._isOverThreshold = !1, this._observer.hold(this, l), this._atRightEdge = IS_IOS_SAFARI && l.center.x > window.innerWidth - u, this._attachWindowEvent(s), i && l.srcEvent.type !== "touchstart" && l.srcEvent.preventDefault(), s.prevEvent = l;
1475
+ this._dragged = !1, this._isOverThreshold = !1, this._observer.hold(this, l), this._atRightEdge = IS_IOS_SAFARI && l.center.x > window.innerWidth - u, this._attachWindowEvent(s, e), i && l.srcEvent.type !== "touchstart" && l.srcEvent.preventDefault(), s.prevEvent = l;
1481
1476
  }
1482
1477
  }, t._onPanmove = function(e) {
1483
1478
  var t = this, n = this.options, r = n.iOSEdgeSwipeThreshold, i = n.preventClickOnDrag, s = n.releaseOnScroll, l = n.inputKey, u = n.inputButton, d = n.threshold, f = n.thresholdAngle, p = this._activeEvent, m = p.onEventMove(e, l, u), g = p.getTouches(e, u);
1484
- if (g === 0 || s && m && !m.srcEvent.cancelable) {
1485
- this._onPanend(e);
1486
- return;
1487
- }
1488
- if (!(!m || !this._enabled || g > 1)) {
1479
+ if (g === 0 || s && m && !m.srcEvent.cancelable) this._onPanend(e);
1480
+ else if (!(!m || !this._enabled || g > 1)) {
1489
1481
  var _ = getDirectionByAngle(m.angle, f), v = useDirection(DIRECTION_HORIZONTAL, this._direction, _), y = useDirection(DIRECTION_VERTICAL, this._direction, _);
1490
1482
  if (p.prevEvent && IS_IOS_SAFARI) {
1491
1483
  if (m.center.x < 0) {
@@ -1503,25 +1495,25 @@ var InputObserver = /*#__PURE__*/ function() {
1503
1495
  }
1504
1496
  }, t._onPanend = function(e) {
1505
1497
  var t = this.options.inputButton, n = this._activeEvent;
1506
- if (n.onEventEnd(e), !(!this._enabled || n.getTouches(e, t) !== 0)) {
1498
+ if (n.onEventEnd(e), this._enabled && n.getTouches(e, t) === 0) {
1507
1499
  this._detachWindowEvent(n), clearTimeout(this._rightEdgeTimer);
1508
- var r = n.prevEvent, i = this._isOverThreshold ? this._getOffset([Math.abs(r.velocityX) * (r.offsetX < 0 ? -1 : 1), Math.abs(r.velocityY) * (r.offsetY < 0 ? -1 : 1)], [useDirection(DIRECTION_HORIZONTAL, this._direction), useDirection(DIRECTION_VERTICAL, this._direction)]) : [0, 0];
1500
+ var r = n.prevEvent, i = this._isOverThreshold ? this._getOffset([Math.abs(r.velocityX) * r.directionX, Math.abs(r.velocityY) * r.directionY], [useDirection(DIRECTION_HORIZONTAL, this._direction), useDirection(DIRECTION_VERTICAL, this._direction)]) : [0, 0];
1509
1501
  n.onRelease(), this._observer.release(this, r, i);
1510
1502
  }
1511
- }, t._attachWindowEvent = function(e) {
1512
- var t = this;
1503
+ }, t._attachWindowEvent = function(e, t) {
1504
+ var n = this;
1513
1505
  e?.move.forEach(function(e) {
1514
- window.addEventListener(e, t._onPanmove, getAddEventOptions(e));
1506
+ window.addEventListener(e, n._onPanmove, getAddEventOptions(e));
1515
1507
  }), e?.end.forEach(function(e) {
1516
- window.addEventListener(e, t._onPanend, getAddEventOptions(e));
1517
- });
1508
+ window.addEventListener(e, n._onPanend, getAddEventOptions(e));
1509
+ }), t?.type === "touchstart" && (this._startTarget = t.target, window.addEventListener("lostpointercapture", this._onLostPointerCapture, !0));
1518
1510
  }, t._detachWindowEvent = function(e) {
1519
1511
  var t = this;
1520
1512
  e?.move.forEach(function(e) {
1521
1513
  window.removeEventListener(e, t._onPanmove);
1522
1514
  }), e?.end.forEach(function(e) {
1523
1515
  window.removeEventListener(e, t._onPanend);
1524
- });
1516
+ }), window.removeEventListener("lostpointercapture", this._onLostPointerCapture, !0), this._startTarget = null;
1525
1517
  }, t._getOffset = function(e, t) {
1526
1518
  var n = this.options.scale;
1527
1519
  return [t[0] ? e[0] * n[0] : 0, t[1] ? e[1] * n[1] : 0];
@@ -2105,6 +2097,28 @@ var Loader = /*#__PURE__*/ function(e) {
2105
2097
  } else if (e && e.nodeType === Node.ELEMENT_NODE) t.push(e);
2106
2098
  else throw new FlickingError(MESSAGE.WRONG_TYPE(e, ["HTMLElement", "string"]), CODE.WRONG_TYPE);
2107
2099
  }), t;
2100
+ }, XSS_UNSAFE_TAGS = [
2101
+ "SCRIPT",
2102
+ "IFRAME",
2103
+ "OBJECT",
2104
+ "EMBED",
2105
+ "LINK",
2106
+ "META",
2107
+ "BASE"
2108
+ ], isUnsafeAttribute = (e, t) => {
2109
+ let n = e.toLowerCase();
2110
+ return n.indexOf("on") === 0 || (n === "src" || n === "href" || n === "xlink:href") && /^\s*javascript:/i.test(t);
2111
+ }, sanitizeElementNode = (e) => {
2112
+ toArray(e.attributes).forEach((t) => {
2113
+ isUnsafeAttribute(t.name, t.value) && e.removeAttribute(t.name);
2114
+ }), toArray(e.children).forEach((e) => {
2115
+ includes(XSS_UNSAFE_TAGS, e.tagName.toUpperCase()) ? e.remove() : sanitizeElementNode(e);
2116
+ });
2117
+ }, parseSanitizedElement = (e) => {
2118
+ let t = document.createElement("template");
2119
+ t.innerHTML = e;
2120
+ let n = toArray(t.content.children);
2121
+ return n.forEach((e) => sanitizeElementNode(e)), n.map((e) => document.importNode(e, !0));
2108
2122
  }, getMinusCompensatedIndex = (e, t) => clamp(e < 0 ? e + t : e, 0, t), includes = (e, t) => {
2109
2123
  for (let n of e) if (n === t) return !0;
2110
2124
  return !1;
@@ -2567,8 +2581,8 @@ var Loader = /*#__PURE__*/ function(e) {
2567
2581
  applyTransform() {
2568
2582
  let e = this._el, t = getFlickingAttached(this._flicking);
2569
2583
  if (t.renderer.rendering || !t.initialized) return this;
2570
- let n = this._position - this._alignPos - this._offset + this._circularOffset;
2571
- return e.style[this._transform] = t.horizontal ? `translate(${this._panelOrder === ORDER.RTL ? n : -n}px)` : `translate(0, ${-n}px)`, this;
2584
+ let n = this._position - this._alignPos - this._offset + this._circularOffset, r = !t.horizontal || this._panelOrder !== ORDER.RTL ? -1 : 1, i = t.usePercentagePos ? `${r * n / this.size * 100}%` : `${r * n}px`;
2585
+ return e.style[this._transform] = t.horizontal ? `translate(${i})` : `translate(0, ${i})`, this;
2572
2586
  }
2573
2587
  _resetInternalValues() {
2574
2588
  this._position = 0, this._lookedOffset = 0, this._alignPos = 0, this._offset = 0, this._circularOffset = 0, this._circularEnabled = !1, this._range = {
@@ -2741,11 +2755,7 @@ var Loader = /*#__PURE__*/ function(e) {
2741
2755
  }
2742
2756
  onRelease(e) {
2743
2757
  let { flicking: t, axesEvent: n, transitTo: r } = e;
2744
- if (t.trigger(new ComponentEvent$1(EVENTS.HOLD_END, { axesEvent: n })), n.delta.flick !== 0) {
2745
- n.setTo({ flick: t.camera.position }, 0), r(STATE_TYPE.IDLE);
2746
- return;
2747
- }
2748
- this._releaseEvent = n;
2758
+ t.trigger(new ComponentEvent$1(EVENTS.HOLD_END, { axesEvent: n })), n.delta.flick === 0 ? this._releaseEvent = n : (n.setTo({ flick: t.camera.position }, 0), r(STATE_TYPE.IDLE));
2749
2759
  }
2750
2760
  onFinish(e) {
2751
2761
  let { flicking: t, transitTo: n } = e;
@@ -3331,11 +3341,7 @@ var Loader = /*#__PURE__*/ function(e) {
3331
3341
  }, this._skipFirstResize = /* @__PURE__ */ (() => {
3332
3342
  let e = !0;
3333
3343
  return (t) => {
3334
- if (e) {
3335
- e = !1;
3336
- return;
3337
- }
3338
- this._onResize(t);
3344
+ e ? e = !1 : this._onResize(t);
3339
3345
  };
3340
3346
  })(), this._flicking = e, this._enabled = !1, this._resizeObserver = null, this._resizeTimer = -1, this._maxResizeDebounceTimer = -1;
3341
3347
  }
@@ -3366,7 +3372,7 @@ var Loader = /*#__PURE__*/ function(e) {
3366
3372
  }
3367
3373
  unobserve(e) {
3368
3374
  let t = this._resizeObserver;
3369
- return t ? (t.unobserve(e), this._flicking.observePanelResize && this.unobservePanels(), this) : this;
3375
+ return t && (t.unobserve(e), this._flicking.observePanelResize && this.unobservePanels()), this;
3370
3376
  }
3371
3377
  disable() {
3372
3378
  if (!this._enabled) return this;
@@ -3449,26 +3455,42 @@ var Loader = /*#__PURE__*/ function(e) {
3449
3455
  }
3450
3456
  this.resize();
3451
3457
  }
3458
+ measureSize() {
3459
+ let { width: e, height: t, padding: n } = this._measure();
3460
+ return {
3461
+ width: e - n.left - n.right,
3462
+ height: t - n.top - n.bottom
3463
+ };
3464
+ }
3452
3465
  resize() {
3466
+ let { width: e, height: t, padding: n, isBorderBoxSizing: r } = this._measure();
3467
+ this._width = e, this._height = t, this._padding = n, this._isBorderBoxSizing = r;
3468
+ }
3469
+ _measure() {
3453
3470
  let e = this._el, t = getStyle(e), { useFractionalSize: n } = this._flicking;
3454
- this._width = getElementSize({
3455
- el: e,
3456
- horizontal: !0,
3457
- useFractionalSize: n,
3458
- useOffset: !1,
3459
- style: t
3460
- }), this._height = getElementSize({
3461
- el: e,
3462
- horizontal: !1,
3463
- useFractionalSize: n,
3464
- useOffset: !1,
3465
- style: t
3466
- }), this._padding = {
3467
- left: t.paddingLeft ? parseFloat(t.paddingLeft) : 0,
3468
- right: t.paddingRight ? parseFloat(t.paddingRight) : 0,
3469
- top: t.paddingTop ? parseFloat(t.paddingTop) : 0,
3470
- bottom: t.paddingBottom ? parseFloat(t.paddingBottom) : 0
3471
- }, this._isBorderBoxSizing = t.boxSizing === "border-box";
3471
+ return {
3472
+ width: getElementSize({
3473
+ el: e,
3474
+ horizontal: !0,
3475
+ useFractionalSize: n,
3476
+ useOffset: !1,
3477
+ style: t
3478
+ }),
3479
+ height: getElementSize({
3480
+ el: e,
3481
+ horizontal: !1,
3482
+ useFractionalSize: n,
3483
+ useOffset: !1,
3484
+ style: t
3485
+ }),
3486
+ padding: {
3487
+ left: t.paddingLeft ? parseFloat(t.paddingLeft) : 0,
3488
+ right: t.paddingRight ? parseFloat(t.paddingRight) : 0,
3489
+ top: t.paddingTop ? parseFloat(t.paddingTop) : 0,
3490
+ bottom: t.paddingBottom ? parseFloat(t.paddingBottom) : 0
3491
+ },
3492
+ isBorderBoxSizing: t.boxSizing === "border-box"
3493
+ };
3472
3494
  }
3473
3495
  }, VirtualManager = class {
3474
3496
  get elements() {
@@ -3714,9 +3736,10 @@ var Loader = /*#__PURE__*/ function(e) {
3714
3736
  _afterRender() {
3715
3737
  let e = getFlickingAttached(this._flicking);
3716
3738
  if (e.camera.applyTransform(), e.useCSSOrder) {
3717
- let t = e.renderer.panels.filter((e) => e.rendered);
3739
+ let t = e.panels;
3718
3740
  this._strategy.getRenderingIndexesByOrder(e).forEach((e, n) => {
3719
- t[e].element && (t[e].element.style.order = `${n}`);
3741
+ var r;
3742
+ t[e]?.element && (t[e].element.style.order = `${n}`);
3720
3743
  });
3721
3744
  }
3722
3745
  }
@@ -4055,8 +4078,8 @@ var Loader = /*#__PURE__*/ function(e) {
4055
4078
  }, _Flicking = class extends Component {
4056
4079
  constructor(e, t = {}) {
4057
4080
  super(), this._scheduleResize = !1;
4058
- let { align: n = ALIGN.CENTER, defaultIndex: r = 0, horizontal: i = !0, circular: s = !1, circularFallback: l = CIRCULAR_FALLBACK.LINEAR, bound: u = !1, adaptive: d = !1, panelsPerView: f = -1, noPanelStyleOverride: p = !1, resizeOnContentsReady: m = !1, nested: g = !1, needPanelThreshold: _ = 0, preventEventsBeforeInit: v = !0, deceleration: y = .0075, duration: b = 500, easing: x = (e) => 1 - __pow(1 - e, 3), inputType: S = ["mouse", "touch"], moveType: C = "snap", threshold: w = 40, dragThreshold: T = 1, interruptable: E = !0, bounce: D = "20%", iOSEdgeSwipeThreshold: O = 30, preventClickOnDrag: k = !0, preventDefaultOnDrag: A = !1, disableOnInit: j = !1, changeOnHold: M = !1, renderOnlyVisible: N = !1, virtual: P = null, autoInit: F = !0, autoResize: I = !0, useResizeObserver: L = !0, resizeDebounce: R = 0, observePanelResize: z = !1, maxResizeDebounce: B = 100, useFractionalSize: V = !1, externalRenderer: H = null, renderExternal: U = null, optimizeSizeUpdate: W = !1, animationThreshold: G = .5, useCSSOrder: K = !1 } = t;
4059
- this._initialized = !1, this._plugins = [], this._isResizing = !1, this._align = n, this._defaultIndex = r, this._horizontal = i, this._circular = s, this._circularFallback = l, this._bound = u, this._adaptive = d, this._panelsPerView = f, this._noPanelStyleOverride = p, this._resizeOnContentsReady = m, this._nested = g, this._virtual = P, this._needPanelThreshold = _, this._preventEventsBeforeInit = v, this._deceleration = y, this._duration = b, this._easing = x, this._inputType = S, this._moveType = C, this._threshold = w, this._dragThreshold = T, this._interruptable = E, this._bounce = D, this._iOSEdgeSwipeThreshold = O, this._preventClickOnDrag = k, this._preventDefaultOnDrag = A, this._disableOnInit = j, this._changeOnHold = M, this._renderOnlyVisible = N, this._autoInit = F, this._autoResize = I, this._useResizeObserver = L, this._resizeDebounce = R, this._maxResizeDebounce = B, this._observePanelResize = z, this._useFractionalSize = V, this._externalRenderer = H, this._renderExternal = U, this._optimizeSizeUpdate = W, this._animationThreshold = G, this._useCSSOrder = K, this._viewport = new Viewport(this, getElement$1(e)), this._autoResizer = new AutoResizer(this), this._renderer = this._createRenderer(), this._camera = this._createCamera(), this._control = this._createControl(), this._virtualManager = new VirtualManager(this, P), this._autoInit && this.init();
4081
+ let { align: n = ALIGN.CENTER, defaultIndex: r = 0, horizontal: i = !0, circular: s = !1, circularFallback: l = CIRCULAR_FALLBACK.LINEAR, bound: u = !1, adaptive: d = !1, panelsPerView: f = -1, noPanelStyleOverride: p = !1, resizeOnContentsReady: m = !1, nested: g = !1, needPanelThreshold: _ = 0, preventEventsBeforeInit: v = !0, deceleration: y = .0075, duration: b = 500, easing: x = (e) => 1 - __pow(1 - e, 3), inputType: S = ["mouse", "touch"], moveType: C = "snap", threshold: w = 40, dragThreshold: T = 1, interruptable: E = !0, bounce: D = "20%", iOSEdgeSwipeThreshold: O = 30, preventClickOnDrag: k = !0, preventDefaultOnDrag: A = !1, disableOnInit: j = !1, changeOnHold: M = !1, renderOnlyVisible: N = !1, virtual: P = null, autoInit: F = !0, autoResize: I = !0, useResizeObserver: L = !0, resizeDebounce: R = 0, observePanelResize: z = !1, maxResizeDebounce: B = 100, useFractionalSize: V = !1, usePercentagePos: H = !1, externalRenderer: U = null, renderExternal: W = null, optimizeSizeUpdate: G = !1, animationThreshold: K = .5, useCSSOrder: q = !1 } = t;
4082
+ this._initialized = !1, this._plugins = [], this._isResizing = !1, this._align = n, this._defaultIndex = r, this._horizontal = i, this._circular = s, this._circularFallback = l, this._bound = u, this._adaptive = d, this._panelsPerView = f, this._noPanelStyleOverride = p, this._resizeOnContentsReady = m, this._nested = g, this._virtual = P, this._needPanelThreshold = _, this._preventEventsBeforeInit = v, this._deceleration = y, this._duration = b, this._easing = x, this._inputType = S, this._moveType = C, this._threshold = w, this._dragThreshold = T, this._interruptable = E, this._bounce = D, this._iOSEdgeSwipeThreshold = O, this._preventClickOnDrag = k, this._preventDefaultOnDrag = A, this._disableOnInit = j, this._changeOnHold = M, this._renderOnlyVisible = N, this._autoInit = F, this._autoResize = I, this._useResizeObserver = L, this._resizeDebounce = R, this._maxResizeDebounce = B, this._observePanelResize = z, this._useFractionalSize = V, this._usePercentagePos = H, this._externalRenderer = U, this._renderExternal = W, this._optimizeSizeUpdate = G, this._animationThreshold = K, this._useCSSOrder = q, this._viewport = new Viewport(this, getElement$1(e)), this._autoResizer = new AutoResizer(this), this._renderer = this._createRenderer(), this._camera = this._createCamera(), this._control = this._createControl(), this._virtualManager = new VirtualManager(this, P), this._autoInit && this.init();
4060
4083
  }
4061
4084
  get control() {
4062
4085
  return this._control;
@@ -4223,6 +4246,9 @@ var Loader = /*#__PURE__*/ function(e) {
4223
4246
  get useFractionalSize() {
4224
4247
  return this._useFractionalSize;
4225
4248
  }
4249
+ get usePercentagePos() {
4250
+ return this._usePercentagePos;
4251
+ }
4226
4252
  get externalRenderer() {
4227
4253
  return this._externalRenderer;
4228
4254
  }
@@ -4353,6 +4379,9 @@ var Loader = /*#__PURE__*/ function(e) {
4353
4379
  set optimizeSizeUpdate(e) {
4354
4380
  this._optimizeSizeUpdate = e;
4355
4381
  }
4382
+ set usePercentagePos(e) {
4383
+ this._usePercentagePos = e, this._camera.applyTransform();
4384
+ }
4356
4385
  init() {
4357
4386
  if (this._initialized) return Promise.resolve();
4358
4387
  let e = this._camera, t = this._renderer, n = this._control, r = this._virtualManager, i = this.trigger, s = this._preventEventsBeforeInit;
@@ -4415,15 +4444,22 @@ var Loader = /*#__PURE__*/ function(e) {
4415
4444
  var t;
4416
4445
  if (!this._initialized) throw new FlickingError(MESSAGE.NOT_INITIALIZED, CODE.NOT_INITIALIZED);
4417
4446
  let { index: n, position: r, visibleOffset: i, panels: s } = e, l = this._renderer, u = this._control;
4418
- if (s[0]?.html && !this._renderExternal && (l.batchRemove({
4419
- index: 0,
4420
- deleteCount: this.panels.length,
4421
- hasDOMInElements: !0
4422
- }), l.batchInsert({
4423
- index: 0,
4424
- elements: parseElement(s.map((e) => e.html)),
4425
- hasDOMInElements: !0
4426
- })), n != null) {
4447
+ if (s[0]?.html && !this._renderExternal) {
4448
+ l.batchRemove({
4449
+ index: 0,
4450
+ deleteCount: this.panels.length,
4451
+ hasDOMInElements: !0
4452
+ });
4453
+ let e = [];
4454
+ s.forEach((t) => {
4455
+ t.html && e.push(...parseSanitizedElement(t.html));
4456
+ }), l.batchInsert({
4457
+ index: 0,
4458
+ elements: e,
4459
+ hasDOMInElements: !0
4460
+ });
4461
+ }
4462
+ if (n != null) {
4427
4463
  let e = i ? n - i : n;
4428
4464
  this.moveTo(e, 0).catch(() => void 0);
4429
4465
  }
@@ -4454,7 +4490,11 @@ var Loader = /*#__PURE__*/ function(e) {
4454
4490
  width: s,
4455
4491
  height: l,
4456
4492
  element: e.element
4457
- })), e.resize(), this._optimizeSizeUpdate ? (this.horizontal && e.width !== s || !this.horizontal && e.height !== l) && (yield t.forceRenderAllPanels()) : yield t.forceRenderAllPanels(), !this._initialized || (t.updatePanelSize(), n.updateAlignPos(), n.updateRange(), n.updateAnchors(), n.updateAdaptiveHeight(), n.updatePanelOrder(), n.updateOffset(), yield t.render(), !this._initialized)) return;
4493
+ })), this._optimizeSizeUpdate) {
4494
+ let n = e.measureSize();
4495
+ (this.horizontal && n.width !== s || !this.horizontal && n.height !== l) && (yield t.forceRenderAllPanels());
4496
+ } else yield t.forceRenderAllPanels();
4497
+ if (!this._initialized || (e.resize(), t.updatePanelSize(), n.updateAlignPos(), n.updateRange(), n.updateAnchors(), n.updateAdaptiveHeight(), n.updatePanelOrder(), r.animating || r.updatePosition(u), n.updateOffset(), yield t.render(), !this._initialized)) return;
4458
4498
  r.animating || (r.updatePosition(u), r.updateInput());
4459
4499
  let d = e.width, f = e.height, p = d !== s || f !== l;
4460
4500
  this.trigger(new ComponentEvent$1(EVENTS.AFTER_RESIZE, {
@@ -4547,7 +4587,7 @@ var Loader = /*#__PURE__*/ function(e) {
4547
4587
  }));
4548
4588
  }
4549
4589
  };
4550
- _Flicking.VERSION = "4.16.4";
4590
+ _Flicking.VERSION = "4.17.1";
4551
4591
  var Flicking$1 = _Flicking, getDefaultCameraTransform = (e = ALIGN.CENTER, t = !0, n) => {
4552
4592
  let r = getCameraAlign(e), i = getPanelAlign(e);
4553
4593
  if (i == null) return "";
@@ -4569,7 +4609,7 @@ var Flicking$1 = _Flicking, getDefaultCameraTransform = (e = ALIGN.CENTER, t = !
4569
4609
  if (t.removed.length > 0) {
4570
4610
  let e = -1, n = -1;
4571
4611
  t.removed.forEach((t) => {
4572
- e < 0 && (e = t), n >= 0 && t !== n - 1 ? (u.push(...batchRemove(r, n, e + 1)), e = t, n = t) : n = t, s.splice(t, 1);
4612
+ e < 0 && (e = t), n >= 0 && t !== n - 1 && (u.push(...batchRemove(r, n, e + 1)), e = t), n = t, s.splice(t, 1);
4573
4613
  }), u.push(...batchRemove(r, n, e + 1));
4574
4614
  }
4575
4615
  if (t.ordered.forEach(([e, t]) => {
@@ -5217,7 +5257,7 @@ var ListDiffer = /*#__PURE__*/ function() {
5217
5257
  return { hide: !1 };
5218
5258
  },
5219
5259
  render() {
5220
- if (!(this.hide || !this.$slots.default)) return this.$slots.default();
5260
+ if (!this.hide && this.$slots.default) return this.$slots.default();
5221
5261
  }
5222
5262
  }), VueRenderer = class e extends ExternalRenderer {
5223
5263
  constructor(e) {
@@ -5298,7 +5338,7 @@ var ListDiffer = /*#__PURE__*/ function() {
5298
5338
  },
5299
5339
  updated() {
5300
5340
  let e = this.vanillaFlicking, t = this.diffResult;
5301
- this.checkPlugins(), this.renderEmitter.trigger("render"), !(!t || !e?.initialized) && (sync(e, t, this.getChildren()), (t.added.length > 0 || t.removed.length > 0) && this.$forceUpdate(), this.diffResult = void 0);
5341
+ this.checkPlugins(), this.renderEmitter.trigger("render"), t && e?.initialized && (sync(e, t, this.getChildren()), (t.added.length > 0 || t.removed.length > 0) && this.$forceUpdate(), this.diffResult = void 0);
5302
5342
  },
5303
5343
  render() {
5304
5344
  var e;
@@ -5368,14 +5408,14 @@ var ListDiffer = /*#__PURE__*/ function() {
5368
5408
  },
5369
5409
  emits: ["update:idx", "opened"],
5370
5410
  setup(e, { emit: t }) {
5371
- let n = t, r = e, i = ref(), s = ref(), l = ref(!1), u = computed$1(() => r.gallery.length > 1), d = computed$1(() => r.gallery.length), f = computed$1(() => {
5411
+ let n = t, r = e, i = ref(), s = ref(), l = ref(!1), u = computed$2(() => r.gallery.length > 1), d = computed$2(() => r.gallery.length), f = computed$2(() => {
5372
5412
  let e = r.pagination;
5373
5413
  return d.value > 10 && e === "bullet" && (e = "fraction"), e;
5374
5414
  });
5375
5415
  function p(e) {
5376
5416
  n("update:idx", e);
5377
5417
  }
5378
- let m = computed$1({
5418
+ let m = computed$2({
5379
5419
  get: () => r.idx,
5380
5420
  set: (e) => p(e)
5381
5421
  });
@@ -5470,14 +5510,14 @@ var ListDiffer = /*#__PURE__*/ function() {
5470
5510
  let t = e.getFullYear(), n = e.getMonth() + 1, r = e.getDate();
5471
5511
  return r < 10 && (r = "0" + r), n < 10 && (n = "0" + n), `${t}-${n}-${r}`;
5472
5512
  }
5473
- let m = computed$1(() => {
5513
+ let m = computed$2(() => {
5474
5514
  let e = new URL(window.location.origin + window.location.pathname);
5475
5515
  return i.type === "event" ? (e.searchParams.set("d", p(l.value)), e.searchParams.set("eid", i.listingId.toString()), d.hasEventLocations && e.searchParams.set("rid", u.value.toString())) : (e.searchParams.set("id", i.listingId.toString()), e.searchParams.set("ci", p(s.currentArrivalDate)), e.searchParams.set("co", p(s.currentDepartureDate)), f.defaultAdultAmount !== s.currentAdults && e.searchParams.set("a", s.currentAdults.toString()), f.defaultChildAmount !== s.currentChildren && e.searchParams.set("c", s.currentChildren.toString()), d.hasHotelLocations && e.searchParams.set("hid", s.currentLocation.toString()), s.guestDiscountId && e.searchParams.set("gid", s.guestDiscountId.toString())), e.href;
5476
5516
  });
5477
5517
  function g(e) {
5478
5518
  n("update:idx", e);
5479
5519
  }
5480
- let _ = computed$1({
5520
+ let _ = computed$2({
5481
5521
  get: () => i.idx,
5482
5522
  set: (e) => g(e)
5483
5523
  });
@@ -5608,13 +5648,13 @@ function handleScroll() {
5608
5648
  });
5609
5649
  }
5610
5650
  function runCallbacks(e) {
5611
- !e || !e.__resize_listeners__ || e.__resize_listeners__.forEach(function(t) {
5651
+ e && e.__resize_listeners__ && e.__resize_listeners__.forEach(function(t) {
5612
5652
  t.call(e, e);
5613
5653
  });
5614
5654
  }
5615
5655
  function initTriggers(e) {
5616
5656
  var t = getComputedStyle$1(e, "position");
5617
- (!t || t === "static") && (e.style.position = "relative"), e.__resize_old_position__ = t, e.__resize_last__ = {};
5657
+ t && t !== "static" || (e.style.position = "relative"), e.__resize_old_position__ = t, e.__resize_last__ = {};
5618
5658
  var n = createElement("div", { className: "resize-triggers" }), r = createElement("div", { className: "resize-expand-trigger" }), i = createElement("div"), s = createElement("div", { className: "resize-contract-trigger" });
5619
5659
  r.appendChild(i), n.appendChild(r), n.appendChild(s), e.appendChild(n), e.__resize_triggers__ = {
5620
5660
  triggers: n,
@@ -5630,8 +5670,7 @@ function resetTriggers(e) {
5630
5670
  var t = e.__resize_triggers__, n = t.expand, r = t.expandChild, i = t.contract, s = i.scrollWidth, l = i.scrollHeight, u = n.offsetWidth, d = n.offsetHeight, f = n.scrollWidth, p = n.scrollHeight;
5631
5671
  i.scrollLeft = s, i.scrollTop = l, r.style.width = u + 1 + "px", r.style.height = d + 1 + "px", n.scrollLeft = f, n.scrollTop = p;
5632
5672
  }
5633
- //#endregion
5634
- //#region src/components/TruncateContent.vue?vue&type=script&setup=true&lang.ts
5673
+ // src/components/TruncateContent.vue?vue&type=script&setup=true&lang.ts
5635
5674
  var _hoisted_1$10 = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = { key: 1 }, TruncateContent_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
5636
5675
  __name: "TruncateContent",
5637
5676
  props: {
@@ -5655,7 +5694,7 @@ var _hoisted_1$10 = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
5655
5694
  offset: 0,
5656
5695
  localExpanded: !!r.expanded,
5657
5696
  unregisterResizeCallback: null
5658
- }), f = computed$1(() => {
5697
+ }), f = computed$2(() => {
5659
5698
  if (!d.localExpanded && r.maxHeight) return typeof r?.maxHeight == "number" ? `${r?.maxHeight}px` : r?.maxHeight;
5660
5699
  }), p = () => {
5661
5700
  u.value && (u.value.innerHTML = convertDescription(D.value));
@@ -5688,13 +5727,13 @@ var _hoisted_1$10 = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
5688
5727
  for (; v() && y() > 1 && d.offset > 0;) T(-1);
5689
5728
  }, T = (e) => {
5690
5729
  x(d.offset + e);
5691
- }, E = computed$1(() => r.text ? d.offset !== r.text.length : !1);
5730
+ }, E = computed$2(() => r.text ? d.offset !== r.text.length : !1);
5692
5731
  watch(() => E.value, (e) => {
5693
5732
  setTimeout(() => {
5694
5733
  i("clamp-change", e);
5695
5734
  }, 0);
5696
5735
  }, { immediate: !0 });
5697
- let D = computed$1(() => E.value ? O.value : r.text), O = computed$1(() => {
5736
+ let D = computed$2(() => E.value ? O.value : r.text), O = computed$2(() => {
5698
5737
  if (r.location === "start") return r.ellipsis + (r.text.slice(-d.offset) || "").trim();
5699
5738
  if (r.location === "middle") {
5700
5739
  let e = Math.floor(d.offset / 2);
@@ -5908,7 +5947,7 @@ var _hoisted_1$10 = ["aria-label"], _hoisted_2$7 = { key: 0 }, _hoisted_3$7 = {
5908
5947
  function i(e) {
5909
5948
  n("update:modelValue", e);
5910
5949
  }
5911
- let s = computed$1({
5950
+ let s = computed$2({
5912
5951
  get: () => r.modelValue,
5913
5952
  set: (e) => i(e)
5914
5953
  });
@@ -5957,8 +5996,7 @@ function createStepHistory(e) {
5957
5996
  }
5958
5997
  };
5959
5998
  }
5960
- //#endregion
5961
- //#region src/components/forms/MultiStepForm.vue?vue&type=script&setup=true&lang.ts
5999
+ // src/components/forms/MultiStepForm.vue?vue&type=script&setup=true&lang.ts
5962
6000
  var _hoisted_1$7 = { id: "konnectio-multi-step-form-navigation" }, _hoisted_2$5 = { id: "konnectio-multi-step-form-steps-wrapper" }, _hoisted_3$5 = { key: 0 }, _hoisted_4$4 = { key: 1 }, _hoisted_5$3 = { class: "konnectio-multi-steps" }, _hoisted_6$3 = ["id"], _hoisted_7$3 = { id: "konnectio-multi-step-form-content" }, MultiStepForm_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
5963
6001
  __name: "MultiStepForm",
5964
6002
  props: {
@@ -5969,7 +6007,7 @@ var _hoisted_1$7 = { id: "konnectio-multi-step-form-navigation" }, _hoisted_2$5
5969
6007
  },
5970
6008
  emits: ["reset"],
5971
6009
  setup(e, { emit: t }) {
5972
- let n = t, { headerHeight: r } = storeToRefs(useUtilityStore()), i = e, s = ref(0), l = ref(), u = computed$1(() => i.steps.filter((e) => !e.hidden)), d = computed$1(() => i.steps[s.value]?.id ?? ""), f = () => {
6010
+ let n = t, { headerHeight: r } = storeToRefs(useUtilityStore()), i = e, s = ref(0), l = ref(), u = computed$2(() => i.steps.filter((e) => !e.hidden)), d = computed$2(() => i.steps[s.value]?.id ?? ""), f = () => {
5973
6011
  if (l.value) {
5974
6012
  let e = r.value;
5975
6013
  if (e && e > 0) {
@@ -6024,15 +6062,14 @@ var _hoisted_1$7 = { id: "konnectio-multi-step-form-navigation" }, _hoisted_2$5
6024
6062
  }), MultiStepForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(MultiStepForm_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-581265ca"]]), konnectio_logo_default = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2023.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23C2DFF5;}%20.st1{fill:%23B0D6F2;}%20.st2{fill:%239FCCEF;}%20.st3{fill:%238DC3EC;}%20.st4{fill:%237CBAE9;}%20.st5{fill:%236AB1E6;}%20.st6{fill:%23D3E8F8;}%20.st7{fill:none;}%20%3c/style%3e%3cpolygon%20class='st0'%20points='250,250%20200,300%20200,200%20'/%3e%3cpolygon%20class='st1'%20points='200,200%20200,300%20150,350%20150,150%20'/%3e%3cpolygon%20class='st2'%20points='150,150%20150,350%20100,400%20100,100%20'/%3e%3cpolygon%20class='st3'%20points='100,100%20100,400%2050,450%2050,50%20'/%3e%3cpolygon%20class='st4'%20points='50,50%2050,450%200,500%200,0%20'/%3e%3cpolygon%20class='st5'%20points='250,250%200,500%20200,500%20250,450%20300,500%20500,500%20'/%3e%3cpolygon%20class='st6'%20points='300,0%20250,50%20200,0%200,0%20250,250%20500,0%20'/%3e%3cpath%20class='st7'%20d='M250,462.5'/%3e%3cpath%20class='st7'%20d='M250,462.5'/%3e%3c/svg%3e", _hoisted_1$6 = { class: "konnectio-brand" }, _hoisted_2$4 = ["src"], _hoisted_3$4 = { class: "konnectio-brand-text" }, _hoisted_4$3 = ["href"], PoweredByKonnectio_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
6025
6063
  __name: "PoweredByKonnectio",
6026
6064
  setup(e) {
6027
- let { t } = useI18n(), n = computed$1(() => getUserLanguage() === "da" ? "https://konnectio.dk" : "https://konnectio.com");
6065
+ let { t } = useI18n(), n = computed$2(() => getUserLanguage() === "da" ? "https://konnectio.dk" : "https://konnectio.com");
6028
6066
  return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$6, [createBaseVNode("img", { src: unref(konnectio_logo_default) }, null, 8, _hoisted_2$4), createBaseVNode("span", _hoisted_3$4, [createTextVNode(toDisplayString(unref(t)("poweredBy")) + " ", 1), createBaseVNode("a", {
6029
6067
  href: n.value,
6030
6068
  target: "_blank"
6031
6069
  }, "Konnectio", 8, _hoisted_4$3)])]));
6032
6070
  }
6033
6071
  });
6034
- //#endregion
6035
- //#region src/components/views/PoweredByKonnectio.vue?vue&type=i18n&index=0&lang.yaml
6072
+ // src/components/views/PoweredByKonnectio.vue?vue&type=i18n&index=0&lang.yaml
6036
6073
  function PoweredByKonnectio_vue_vue_type_i18n_index_0_lang_default(e) {
6037
6074
  let t = e;
6038
6075
  t.__i18n = t.__i18n || [], t.__i18n.push({
@@ -6057,8 +6094,7 @@ function PoweredByKonnectio_vue_vue_type_i18n_index_0_lang_default(e) {
6057
6094
  }
6058
6095
  });
6059
6096
  }
6060
- //#endregion
6061
- //#region src/components/views/PoweredByKonnectio.vue
6097
+ // src/components/views/PoweredByKonnectio.vue
6062
6098
  typeof PoweredByKonnectio_vue_vue_type_i18n_index_0_lang_default == "function" && PoweredByKonnectio_vue_vue_type_i18n_index_0_lang_default(PoweredByKonnectio_vue_vue_type_script_setup_true_lang_default);
6063
6099
  var PoweredByKonnectio_default = /*#__PURE__*/ _plugin_vue_export_helper_default(PoweredByKonnectio_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0cd0ad28"]]), _hoisted_1$5 = { class: "hotel-skeleton-sidebar-inner" }, _hoisted_2$3 = { class: "hotel-skeleton-sidebar-group" }, _hoisted_3$3 = { class: "hotel-skeleton-sidebar-group" }, Sidebar_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
6064
6100
  __name: "Sidebar",
@@ -6347,8 +6383,7 @@ var PoweredByKonnectio_default = /*#__PURE__*/ _plugin_vue_export_helper_default
6347
6383
  return n;
6348
6384
  })();
6349
6385
  window.StickySidebar = StickySidebar;
6350
- //#endregion
6351
- //#region node_modules/vue3-sticky-sidebar/dist/vue3-sticky-sidebar.esm.js
6386
+ // node_modules/vue3-sticky-sidebar/dist/vue3-sticky-sidebar.esm.js
6352
6387
  var _hoisted_1$4 = { class: "inner-wrapper-sticky" }, script = {
6353
6388
  __name: "vue3-sticky-sidebar",
6354
6389
  props: {
@@ -6397,8 +6432,7 @@ var _hoisted_1$4 = { class: "inner-wrapper-sticky" }, script = {
6397
6432
  install.installed || (install.installed = !0, e.component("Vue3StickySidebar", script));
6398
6433
  };
6399
6434
  script.install = install;
6400
- //#endregion
6401
- //#region src/components/forms/ReservationForm.vue?vue&type=script&setup=true&lang.ts
6435
+ // src/components/forms/ReservationForm.vue?vue&type=script&setup=true&lang.ts
6402
6436
  var _hoisted_1$3 = {
6403
6437
  id: "konnectio-reservation-layout",
6404
6438
  "sticky-container": ""
@@ -6483,15 +6517,11 @@ var _hoisted_1$3 = {
6483
6517
  }),
6484
6518
  emits: ["update:discountCode"],
6485
6519
  setup(e) {
6486
- let { t } = useI18n(), { disableGiftCardVoucher: n, disableDiscountVoucher: r, selectGiftCardAsDefault: i, isRecaptchaEnabled: s, currency: l, enableStickyHeader: u, headerHeight: d } = storeToRefs(useUtilityStore()), { amount: f, voucher: p, isLoading: m } = storeToRefs(useApplyGiftCardStore()), { apply: g, reset: _ } = useApplyGiftCardStore(), v = useSlots(), y = useModel(e, "discountCode"), b = e, x = computed$1(() => b.basePrice - b.weekendFee - b.roomUpgrade), S = ref("discount"), C = computed$1(() => S.value === "discount"), w = computed$1(() => S.value === "gift-card"), T = computed$1(() => !r.value), E = computed$1(() => b.showGiftCard && !n.value), D = computed$1(() => !b.dealFlow && (T.value || E.value)), O = computed$1(() => T.value && E.value), k = (e) => {
6520
+ let { t } = useI18n(), { disableGiftCardVoucher: n, disableDiscountVoucher: r, selectGiftCardAsDefault: i, isRecaptchaEnabled: s, currency: l, enableStickyHeader: u, headerHeight: d } = storeToRefs(useUtilityStore()), { amount: f, voucher: p, isLoading: m } = storeToRefs(useApplyGiftCardStore()), { apply: g, reset: _ } = useApplyGiftCardStore(), v = useSlots(), y = useModel(e, "discountCode"), b = e, x = computed$2(() => b.basePrice - b.weekendFee - b.roomUpgrade), S = ref("discount"), C = computed$2(() => S.value === "discount"), w = computed$2(() => S.value === "gift-card"), T = computed$2(() => !r.value), E = computed$2(() => b.showGiftCard && !n.value), D = computed$2(() => !b.dealFlow && (T.value || E.value)), O = computed$2(() => T.value && E.value), k = (e) => {
6487
6521
  S.value = e;
6488
6522
  };
6489
6523
  onMounted(() => {
6490
- if (!T.value && E.value) {
6491
- k("gift-card");
6492
- return;
6493
- }
6494
- i.value && E.value && k("gift-card");
6524
+ (!T.value && E.value || i.value && E.value) && k("gift-card");
6495
6525
  });
6496
6526
  let A = ref("");
6497
6527
  function j() {
@@ -6940,5 +6970,4 @@ var _hoisted_1$3 = {
6940
6970
  }, StickyPlugin = { install(e) {
6941
6971
  e.directive("Sticky", Sticky$1);
6942
6972
  } };
6943
- //#endregion
6944
6973
  export { ReservationForm_default as a, CheckboxField_default as c, ThankYou_default as i, Base_default as l, Listings_default as n, Sidebar_default as o, Listing_default as r, MultiStepForm_default as s, StickyPlugin as t, TruncateContent_default as u };