@konnectio/core 4.5.3 → 4.5.5

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 (94) hide show
  1. package/dist/{ActionField-DNcpBfUw.js → ActionField-DBvmpo3j.js} +1 -1
  2. package/dist/ActionField-DBvmpo3j.js.br +0 -0
  3. package/dist/ActionField-DBvmpo3j.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-Cr4_E8qd.js → AvailabilitySkeleton-CffcVGoV.js} +2 -2
  5. package/dist/AvailabilitySkeleton-CffcVGoV.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-CffcVGoV.js.gz +0 -0
  7. package/dist/{CheckoutWindow-DASeSJKw.js → CheckoutWindow-lUr8PuOW.js} +1 -1
  8. package/dist/CheckoutWindow-lUr8PuOW.js.br +0 -0
  9. package/dist/CheckoutWindow-lUr8PuOW.js.gz +0 -0
  10. package/dist/{ErrorMessage-BG3SMDdN.js → ErrorMessage-C82DNl1j.js} +1 -1
  11. package/dist/ErrorMessage-C82DNl1j.js.br +0 -0
  12. package/dist/ErrorMessage-C82DNl1j.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-DzhikTSM.js → EventAvailabilityForm-7GS1HuHf.js} +2 -2
  14. package/dist/EventAvailabilityForm-7GS1HuHf.js.br +0 -0
  15. package/dist/EventAvailabilityForm-7GS1HuHf.js.gz +0 -0
  16. package/dist/{Field-Cfq1bVCS.js → Field-2wWoO-d2.js} +1 -1
  17. package/dist/Field-2wWoO-d2.js.br +0 -0
  18. package/dist/Field-2wWoO-d2.js.gz +0 -0
  19. package/dist/{HotelAvailabilityForm-Bm-b1O1-.js → HotelAvailabilityForm-CnYCjWiI.js} +2 -2
  20. package/dist/HotelAvailabilityForm-CnYCjWiI.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-CnYCjWiI.js.gz +0 -0
  22. package/dist/{SelectField-B71Q-kc3.js → SelectField-B0SkYGj-.js} +1 -1
  23. package/dist/SelectField-B0SkYGj-.js.br +0 -0
  24. package/dist/{SelectField-B71Q-kc3.js.gz → SelectField-B0SkYGj-.js.gz} +0 -0
  25. package/dist/{TermsOfService-DvIah2dc.js → TermsOfService-Ck4XWhOm.js} +2 -2
  26. package/dist/TermsOfService-Ck4XWhOm.js.br +0 -0
  27. package/dist/TermsOfService-Ck4XWhOm.js.gz +0 -0
  28. package/dist/{_-C4NaLG3M.js → _-BURmDuD2.js} +1 -1
  29. package/dist/_-BURmDuD2.js.br +0 -0
  30. package/dist/_-BURmDuD2.js.gz +0 -0
  31. package/dist/availability.js +7 -7
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +4 -4
  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/{dist-D5tRJnoA.js → dist-D-sqK2xX.js} +3 -3
  41. package/dist/dist-D-sqK2xX.js.br +0 -0
  42. package/dist/dist-D-sqK2xX.js.gz +0 -0
  43. package/dist/event.js +8 -8
  44. package/dist/event.js.br +0 -0
  45. package/dist/event.js.gz +0 -0
  46. package/dist/gift-card-validation.js +7 -7
  47. package/dist/gift-card-validation.js.br +0 -0
  48. package/dist/gift-card-validation.js.gz +0 -0
  49. package/dist/gift-card.js +9 -9
  50. package/dist/gift-card.js.br +0 -0
  51. package/dist/gift-card.js.gz +0 -0
  52. package/dist/{giftCard-Bhb_vVph.js → giftCard-DhaFYikK.js} +1 -1
  53. package/dist/giftCard-DhaFYikK.js.br +0 -0
  54. package/dist/giftCard-DhaFYikK.js.gz +0 -0
  55. package/dist/hotel.js +1128 -1111
  56. package/dist/hotel.js.br +0 -0
  57. package/dist/hotel.js.gz +0 -0
  58. package/dist/{masonry.plugin-8XrKeEIb.js → masonry.plugin-BIh9MNtU.js} +67 -58
  59. package/dist/masonry.plugin-BIh9MNtU.js.br +0 -0
  60. package/dist/masonry.plugin-BIh9MNtU.js.gz +0 -0
  61. package/dist/polyfill.js +1 -1
  62. package/dist/polyfill.js.br +0 -0
  63. package/dist/polyfill.js.gz +0 -0
  64. package/dist/{style-DP0Nh0EE.js → style-BtLOYUwz.js} +1 -1
  65. package/dist/style-BtLOYUwz.js.br +0 -0
  66. package/dist/style-BtLOYUwz.js.gz +0 -0
  67. package/package.json +1 -1
  68. package/dist/ActionField-DNcpBfUw.js.br +0 -0
  69. package/dist/ActionField-DNcpBfUw.js.gz +0 -0
  70. package/dist/AvailabilitySkeleton-Cr4_E8qd.js.br +0 -0
  71. package/dist/AvailabilitySkeleton-Cr4_E8qd.js.gz +0 -0
  72. package/dist/CheckoutWindow-DASeSJKw.js.br +0 -0
  73. package/dist/CheckoutWindow-DASeSJKw.js.gz +0 -0
  74. package/dist/ErrorMessage-BG3SMDdN.js.br +0 -0
  75. package/dist/ErrorMessage-BG3SMDdN.js.gz +0 -0
  76. package/dist/EventAvailabilityForm-DzhikTSM.js.br +0 -0
  77. package/dist/EventAvailabilityForm-DzhikTSM.js.gz +0 -0
  78. package/dist/Field-Cfq1bVCS.js.br +0 -0
  79. package/dist/Field-Cfq1bVCS.js.gz +0 -5
  80. package/dist/HotelAvailabilityForm-Bm-b1O1-.js.br +0 -0
  81. package/dist/HotelAvailabilityForm-Bm-b1O1-.js.gz +0 -0
  82. package/dist/SelectField-B71Q-kc3.js.br +0 -0
  83. package/dist/TermsOfService-DvIah2dc.js.br +0 -0
  84. package/dist/TermsOfService-DvIah2dc.js.gz +0 -0
  85. package/dist/_-C4NaLG3M.js.br +0 -0
  86. package/dist/_-C4NaLG3M.js.gz +0 -0
  87. package/dist/dist-D5tRJnoA.js.br +0 -0
  88. package/dist/dist-D5tRJnoA.js.gz +0 -0
  89. package/dist/giftCard-Bhb_vVph.js.br +0 -0
  90. package/dist/giftCard-Bhb_vVph.js.gz +0 -0
  91. package/dist/masonry.plugin-8XrKeEIb.js.br +0 -0
  92. package/dist/masonry.plugin-8XrKeEIb.js.gz +0 -0
  93. package/dist/style-DP0Nh0EE.js.br +0 -0
  94. package/dist/style-DP0Nh0EE.js.gz +0 -0
package/dist/hotel.js.br CHANGED
Binary file
package/dist/hotel.js.gz CHANGED
Binary file
@@ -1,9 +1,9 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "./chunk-BPfpcrXh.js";
2
2
  import { $ as renderList, A as createSlots, At as toDisplayString, B as mergeModels, D as createBlock, Dt as normalizeClass, E as createBaseVNode, Et as unref, F as getCurrentInstance, H as nextTick, J as onUnmounted, L as h, M as createVNode, O as createCommentVNode, P as defineComponent, R as inject, T as computed$1, Y as openBlock, _ as vShow, b as Comment, bt as ref, d as Transition, dt as withCtx, et as renderSlot, ft as withDirectives, gt as isRef, j as createTextVNode, k as createElementBlock, kt as normalizeStyle, lt as watch, nt as resolveDirective, o as useI18n, ot as useModel, q as onMounted, st as useSlots, t as mitt_default, tt as resolveComponent, u as storeToRefs, vt as reactive, w as Text, x as Fragment, y as withModifiers } from "./mitt-DrOLO7f9.js";
3
- import { A as usePaymentStore, C as useAvailabilityStore, E as useUtilityStore, F as capitalized, G as showDate, I as convertDescription, J as showPrice, L as daysBetweenDates, O as useHotelStore, Q as BookingLayout, S as _plugin_vue_export_helper_default, V as getUserLanguage, Z as BookingHeaderLayout, _ as InputField_default, j as useApplyGiftCardStore, k as emitter, n as TextField_default, v as Clickable_default, w as useEventStore, x as Icon_default } from "./SelectField-B71Q-kc3.js";
4
- import { n as __default } from "./Field-Cfq1bVCS.js";
5
- import { t as ActionField_default } from "./ActionField-DNcpBfUw.js";
6
- import { a as Base_default$1, n as GoogleNotice_default, r as Checkbox_default } from "./CheckoutWindow-DASeSJKw.js";
3
+ import { A as usePaymentStore, C as useAvailabilityStore, E as useUtilityStore, F as capitalized, G as showDate, I as convertDescription, J as showPrice, L as daysBetweenDates, O as useHotelStore, Q as BookingLayout, S as _plugin_vue_export_helper_default, V as getUserLanguage, Z as BookingHeaderLayout, _ as InputField_default, j as useApplyGiftCardStore, k as emitter, n as TextField_default, v as Clickable_default, w as useEventStore, x as Icon_default } from "./SelectField-B0SkYGj-.js";
4
+ import { n as __default } from "./Field-2wWoO-d2.js";
5
+ import { t as ActionField_default } from "./ActionField-DBvmpo3j.js";
6
+ import { a as Base_default$1, n as GoogleNotice_default, r as Checkbox_default } from "./CheckoutWindow-lUr8PuOW.js";
7
7
  //#region node_modules/@egjs/component/dist/component.esm.js
8
8
  function __values$1(e) {
9
9
  var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
@@ -4542,10 +4542,10 @@ var State = /* @__PURE__ */ function() {
4542
4542
  }(), Flicking$1 = /* @__PURE__ */ function(e) {
4543
4543
  __extends$2(t, e);
4544
4544
  function t(t, n) {
4545
- var r = n === void 0 ? {} : n, i = r.align, s = i === void 0 ? ALIGN.CENTER : i, l = r.defaultIndex, u = l === void 0 ? 0 : l, d = r.horizontal, f = d === void 0 ? !0 : d, p = r.circular, m = p === void 0 ? !1 : p, g = r.circularFallback, _ = g === void 0 ? CIRCULAR_FALLBACK.LINEAR : g, v = r.bound, y = v === void 0 ? !1 : v, b = r.adaptive, x = b === void 0 ? !1 : b, S = r.panelsPerView, C = S === void 0 ? -1 : S, w = r.noPanelStyleOverride, T = w === void 0 ? !1 : w, E = r.resizeOnContentsReady, D = E === void 0 ? !1 : E, O = r.nested, k = O === void 0 ? !1 : O, A = r.needPanelThreshold, j = A === void 0 ? 0 : A, M = r.preventEventsBeforeInit, N = M === void 0 ? !0 : M, P = r.deceleration, ee = P === void 0 ? .0075 : P, F = r.duration, I = F === void 0 ? 500 : F, L = r.easing, R = L === void 0 ? function(e) {
4545
+ var r = n === void 0 ? {} : n, i = r.align, s = i === void 0 ? ALIGN.CENTER : i, l = r.defaultIndex, u = l === void 0 ? 0 : l, d = r.horizontal, f = d === void 0 ? !0 : d, p = r.circular, m = p === void 0 ? !1 : p, g = r.circularFallback, _ = g === void 0 ? CIRCULAR_FALLBACK.LINEAR : g, v = r.bound, y = v === void 0 ? !1 : v, b = r.adaptive, x = b === void 0 ? !1 : b, S = r.panelsPerView, C = S === void 0 ? -1 : S, w = r.noPanelStyleOverride, T = w === void 0 ? !1 : w, E = r.resizeOnContentsReady, D = E === void 0 ? !1 : E, O = r.nested, k = O === void 0 ? !1 : O, A = r.needPanelThreshold, j = A === void 0 ? 0 : A, M = r.preventEventsBeforeInit, ee = M === void 0 ? !0 : M, te = r.deceleration, ne = te === void 0 ? .0075 : te, N = r.duration, re = N === void 0 ? 500 : N, P = r.easing, ie = P === void 0 ? function(e) {
4546
4546
  return 1 - (1 - e) ** 3;
4547
- } : L, z = r.inputType, te = z === void 0 ? ["mouse", "touch"] : z, B = r.moveType, ne = B === void 0 ? "snap" : B, V = r.threshold, re = V === void 0 ? 40 : V, H = r.dragThreshold, ie = H === void 0 ? 1 : H, U = r.interruptable, ae = U === void 0 ? !0 : U, W = r.bounce, oe = W === void 0 ? "20%" : W, G = r.iOSEdgeSwipeThreshold, se = G === void 0 ? 30 : G, K = r.preventClickOnDrag, ce = K === void 0 ? !0 : K, q = r.preventDefaultOnDrag, le = q === void 0 ? !1 : q, J = r.disableOnInit, ue = J === void 0 ? !1 : J, Y = r.changeOnHold, de = Y === void 0 ? !1 : Y, X = r.renderOnlyVisible, fe = X === void 0 ? !1 : X, pe = r.virtual, me = pe === void 0 ? null : pe, he = r.autoInit, ge = he === void 0 ? !0 : he, _e = r.autoResize, ve = _e === void 0 ? !0 : _e, ye = r.useResizeObserver, be = ye === void 0 ? !0 : ye, xe = r.resizeDebounce, Se = xe === void 0 ? 0 : xe, Z = r.observePanelResize, Ce = Z === void 0 ? !1 : Z, we = r.maxResizeDebounce, Te = we === void 0 ? 100 : we, Ee = r.useFractionalSize, De = Ee === void 0 ? !1 : Ee, Oe = r.externalRenderer, ke = Oe === void 0 ? null : Oe, Ae = r.renderExternal, je = Ae === void 0 ? null : Ae, Me = r.optimizeSizeUpdate, Ne = Me === void 0 ? !1 : Me, Pe = r.animationThreshold, Fe = Pe === void 0 ? .5 : Pe, Ie = r.useCSSOrder, Le = Ie === void 0 ? !1 : Ie, Q = e.call(this) || this;
4548
- return Q._scheduleResize = !1, Q._initialized = !1, Q._plugins = [], Q._isResizing = !1, Q._align = s, Q._defaultIndex = u, Q._horizontal = f, Q._circular = m, Q._circularFallback = _, Q._bound = y, Q._adaptive = x, Q._panelsPerView = C, Q._noPanelStyleOverride = T, Q._resizeOnContentsReady = D, Q._nested = k, Q._virtual = me, Q._needPanelThreshold = j, Q._preventEventsBeforeInit = N, Q._deceleration = ee, Q._duration = I, Q._easing = R, Q._inputType = te, Q._moveType = ne, Q._threshold = re, Q._dragThreshold = ie, Q._interruptable = ae, Q._bounce = oe, Q._iOSEdgeSwipeThreshold = se, Q._preventClickOnDrag = ce, Q._preventDefaultOnDrag = le, Q._disableOnInit = ue, Q._changeOnHold = de, Q._renderOnlyVisible = fe, Q._autoInit = ge, Q._autoResize = ve, Q._useResizeObserver = be, Q._resizeDebounce = Se, Q._maxResizeDebounce = Te, Q._observePanelResize = Ce, Q._useFractionalSize = De, Q._externalRenderer = ke, Q._renderExternal = je, Q._optimizeSizeUpdate = Ne, Q._animationThreshold = Fe, Q._useCSSOrder = Le, Q._viewport = new Viewport(Q, getElement$1(t)), Q._autoResizer = new AutoResizer(Q), Q._renderer = Q._createRenderer(), Q._camera = Q._createCamera(), Q._control = Q._createControl(), Q._virtualManager = new VirtualManager(Q, me), Q._autoInit && Q.init(), Q;
4547
+ } : P, F = r.inputType, ae = F === void 0 ? ["mouse", "touch"] : F, I = r.moveType, oe = I === void 0 ? "snap" : I, L = r.threshold, se = L === void 0 ? 40 : L, R = r.dragThreshold, ce = R === void 0 ? 1 : R, z = r.interruptable, le = z === void 0 ? !0 : z, B = r.bounce, ue = B === void 0 ? "20%" : B, V = r.iOSEdgeSwipeThreshold, de = V === void 0 ? 30 : V, H = r.preventClickOnDrag, fe = H === void 0 ? !0 : H, U = r.preventDefaultOnDrag, pe = U === void 0 ? !1 : U, W = r.disableOnInit, me = W === void 0 ? !1 : W, G = r.changeOnHold, he = G === void 0 ? !1 : G, K = r.renderOnlyVisible, ge = K === void 0 ? !1 : K, q = r.virtual, J = q === void 0 ? null : q, Y = r.autoInit, _e = Y === void 0 ? !0 : Y, X = r.autoResize, ve = X === void 0 ? !0 : X, ye = r.useResizeObserver, be = ye === void 0 ? !0 : ye, xe = r.resizeDebounce, Se = xe === void 0 ? 0 : xe, Z = r.observePanelResize, Ce = Z === void 0 ? !1 : Z, we = r.maxResizeDebounce, Te = we === void 0 ? 100 : we, Ee = r.useFractionalSize, De = Ee === void 0 ? !1 : Ee, Oe = r.externalRenderer, ke = Oe === void 0 ? null : Oe, Ae = r.renderExternal, je = Ae === void 0 ? null : Ae, Me = r.optimizeSizeUpdate, Ne = Me === void 0 ? !1 : Me, Pe = r.animationThreshold, Fe = Pe === void 0 ? .5 : Pe, Ie = r.useCSSOrder, Le = Ie === void 0 ? !1 : Ie, Q = e.call(this) || this;
4548
+ return Q._scheduleResize = !1, Q._initialized = !1, Q._plugins = [], Q._isResizing = !1, Q._align = s, Q._defaultIndex = u, Q._horizontal = f, Q._circular = m, Q._circularFallback = _, Q._bound = y, Q._adaptive = x, Q._panelsPerView = C, Q._noPanelStyleOverride = T, Q._resizeOnContentsReady = D, Q._nested = k, Q._virtual = J, Q._needPanelThreshold = j, Q._preventEventsBeforeInit = ee, Q._deceleration = ne, Q._duration = re, Q._easing = ie, Q._inputType = ae, Q._moveType = oe, Q._threshold = se, Q._dragThreshold = ce, Q._interruptable = le, Q._bounce = ue, Q._iOSEdgeSwipeThreshold = de, Q._preventClickOnDrag = fe, Q._preventDefaultOnDrag = pe, Q._disableOnInit = me, Q._changeOnHold = he, Q._renderOnlyVisible = ge, Q._autoInit = _e, Q._autoResize = ve, Q._useResizeObserver = be, Q._resizeDebounce = Se, Q._maxResizeDebounce = Te, Q._observePanelResize = Ce, Q._useFractionalSize = De, Q._externalRenderer = ke, Q._renderExternal = je, Q._optimizeSizeUpdate = Ne, Q._animationThreshold = Fe, Q._useCSSOrder = Le, Q._viewport = new Viewport(Q, getElement$1(t)), Q._autoResizer = new AutoResizer(Q), Q._renderer = Q._createRenderer(), Q._camera = Q._createCamera(), Q._control = Q._createControl(), Q._virtualManager = new VirtualManager(Q, J), Q._autoInit && Q.init(), Q;
4549
4549
  }
4550
4550
  var n = t.prototype;
4551
4551
  return Object.defineProperty(n, "control", {
@@ -7390,35 +7390,44 @@ var _hoisted_1$3 = {
7390
7390
  roomUpgrade: { default: 0 },
7391
7391
  notice: {},
7392
7392
  prevCallback: {},
7393
- validateDiscountCode: {}
7393
+ validateDiscountCode: {},
7394
+ appliedDiscountCode: { default: "" },
7395
+ guestDiscountCode: { default: null },
7396
+ isValidatingDiscountCode: {
7397
+ type: Boolean,
7398
+ default: !1
7399
+ },
7400
+ onResetDiscountCode: {},
7401
+ onApplyAvailabilityDiscount: {},
7402
+ onClearAvailabilityDiscount: {}
7394
7403
  }, {
7395
7404
  discountCode: {},
7396
7405
  discountCodeModifiers: {}
7397
7406
  }),
7398
7407
  emits: ["update:discountCode"],
7399
7408
  setup(e) {
7400
- let { t } = useI18n(), { disableGiftCardVoucher: n, disableDiscountVoucher: r, selectGiftCardAsDefault: i, isRecaptchaEnabled: s, currency: l, enableStickyHeader: u, headerHeight: d } = storeToRefs(useUtilityStore()), f = useHotelStore(), { appliedDiscountCode: p, guestDiscountCode: m } = storeToRefs(f), { resetDiscountVoucher: g, setGuestDiscountCode: _, clearGuestDiscountCode: v, fetchAvailabilityData: y } = f, { amount: b, voucher: x, isLoading: S } = storeToRefs(useApplyGiftCardStore()), { apply: C, reset: w } = useApplyGiftCardStore(), T = useSlots(), E = useModel(e, "discountCode"), D = e, O = computed$1(() => D.basePrice - D.weekendFee - D.roomUpgrade), k = ref("discount"), A = computed$1(() => k.value === "discount"), j = computed$1(() => k.value === "gift-card"), M = computed$1(() => !r.value), N = computed$1(() => D.showGiftCard && !n.value), P = computed$1(() => M.value || N.value), ee = computed$1(() => M.value && N.value), F = (e) => {
7401
- k.value = e;
7409
+ 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(() => T.value || E.value), O = computed$1(() => T.value && E.value), k = (e) => {
7410
+ S.value = e;
7402
7411
  };
7403
7412
  onMounted(() => {
7404
- if (!M.value && N.value) {
7405
- F("gift-card");
7413
+ if (!T.value && E.value) {
7414
+ k("gift-card");
7406
7415
  return;
7407
7416
  }
7408
- i.value && N.value && F("gift-card");
7417
+ i.value && E.value && k("gift-card");
7409
7418
  });
7410
- let I = ref("");
7411
- function L() {
7412
- I.value.trim() !== "" && (_(I.value.trim()), y());
7419
+ let A = ref("");
7420
+ function j() {
7421
+ A.value.trim() !== "" && b.onApplyAvailabilityDiscount?.(A.value.trim());
7413
7422
  }
7414
- function R() {
7415
- I.value = "", v(), y();
7423
+ function M() {
7424
+ A.value = "", b.onClearAvailabilityDiscount?.();
7416
7425
  }
7417
7426
  return (n, r) => {
7418
- let _ = resolveDirective("sticky");
7427
+ let b = resolveDirective("sticky");
7419
7428
  return openBlock(), createElementBlock("div", _hoisted_1$3, [createBaseVNode("div", {
7420
7429
  id: "konnectio-reservation-layout-content",
7421
- class: normalizeClass([{ "hide-aside-on-mobile": !unref(T).sidebar }, { "show-additional": e.notice || P.value }])
7430
+ class: normalizeClass([{ "hide-aside-on-mobile": !unref(v).sidebar }, { "show-additional": e.notice || D.value }])
7422
7431
  }, [
7423
7432
  createBaseVNode("div", _hoisted_2$2, [createBaseVNode("form", null, [renderSlot(n.$slots, "form")])]),
7424
7433
  createBaseVNode("aside", {
@@ -7432,29 +7441,29 @@ var _hoisted_1$3 = {
7432
7441
  "resize-sensor": !0,
7433
7442
  "sticky-class": "konnectio-sticky-wrapper"
7434
7443
  }, {
7435
- default: withCtx(() => [unref(T).sidebar ? (openBlock(), createElementBlock("div", _hoisted_3$2, [createBaseVNode("div", _hoisted_4$2, [renderSlot(n.$slots, "sidebar")]), e.notice ? (openBlock(), createElementBlock("div", _hoisted_5$2, [createBaseVNode("p", {
7444
+ default: withCtx(() => [unref(v).sidebar ? (openBlock(), createElementBlock("div", _hoisted_3$2, [createBaseVNode("div", _hoisted_4$2, [renderSlot(n.$slots, "sidebar")]), e.notice ? (openBlock(), createElementBlock("div", _hoisted_5$2, [createBaseVNode("p", {
7436
7445
  innerHTML: e.notice,
7437
7446
  class: "konnectio-wysiwyg"
7438
7447
  }, null, 8, _hoisted_6$2)])) : createCommentVNode("", !0)])) : e.isSidebarLoading ? (openBlock(), createBlock(Sidebar_default, { key: 2 })) : (openBlock(), createElementBlock("div", _hoisted_7$2, [
7439
7448
  createBaseVNode("div", _hoisted_8$2, [createBaseVNode("ul", _hoisted_9$1, [
7440
- unref(T)["reservation-summary"] ? (openBlock(), createElementBlock("div", _hoisted_10$1, [createBaseVNode("h5", null, [createBaseVNode("span", null, toDisplayString(unref(t)("general.reservationSummary")), 1)]), createBaseVNode("ul", null, [renderSlot(n.$slots, "reservation-summary")])])) : createCommentVNode("", !0),
7449
+ unref(v)["reservation-summary"] ? (openBlock(), createElementBlock("div", _hoisted_10$1, [createBaseVNode("h5", null, [createBaseVNode("span", null, toDisplayString(unref(t)("general.reservationSummary")), 1)]), createBaseVNode("ul", null, [renderSlot(n.$slots, "reservation-summary")])])) : createCommentVNode("", !0),
7441
7450
  createBaseVNode("div", _hoisted_11$1, [createBaseVNode("h5", null, [createBaseVNode("span", null, toDisplayString(unref(t)("general.priceSummary")), 1)]), createBaseVNode("ul", null, [
7442
7451
  renderSlot(n.$slots, "price-summary"),
7443
- O.value > 0 ? (openBlock(), createElementBlock("li", _hoisted_12$1, [createBaseVNode("span", null, toDisplayString(unref(t)("booking.availability.basePrice")), 1), createBaseVNode("b", null, toDisplayString(unref(showPrice)(O.value, unref(l))), 1)])) : createCommentVNode("", !0),
7452
+ x.value > 0 ? (openBlock(), createElementBlock("li", _hoisted_12$1, [createBaseVNode("span", null, toDisplayString(unref(t)("booking.availability.basePrice")), 1), createBaseVNode("b", null, toDisplayString(unref(showPrice)(x.value, unref(l))), 1)])) : createCommentVNode("", !0),
7444
7453
  e.weekendFee > 0 ? (openBlock(), createElementBlock("li", _hoisted_13$1, [createBaseVNode("span", null, toDisplayString(unref(t)("general.weekendFee")), 1), createBaseVNode("b", null, toDisplayString(unref(showPrice)(e.weekendFee, unref(l))), 1)])) : createCommentVNode("", !0),
7445
7454
  e.roomUpgrade > 0 ? (openBlock(), createElementBlock("li", _hoisted_14$1, [createBaseVNode("span", null, toDisplayString(unref(t)("general.roomUpgrade")), 1), createBaseVNode("b", null, toDisplayString(unref(showPrice)(e.roomUpgrade, unref(l))), 1)])) : createCommentVNode("", !0),
7446
7455
  renderSlot(n.$slots, "expenses"),
7447
- unref(b) === 0 ? createCommentVNode("", !0) : (openBlock(), createElementBlock("li", _hoisted_15$1, [createBaseVNode("span", null, [createBaseVNode("span", null, toDisplayString(unref(t)("booking.reservation.giftCardDiscount")), 1), createBaseVNode("a", {
7456
+ unref(f) === 0 ? createCommentVNode("", !0) : (openBlock(), createElementBlock("li", _hoisted_15$1, [createBaseVNode("span", null, [createBaseVNode("span", null, toDisplayString(unref(t)("booking.reservation.giftCardDiscount")), 1), createBaseVNode("a", {
7448
7457
  class: "resume-item-remove",
7449
- onClick: r[0] ||= withModifiers((e) => unref(w)(), ["prevent"])
7458
+ onClick: r[0] ||= withModifiers((e) => unref(_)(), ["prevent"])
7450
7459
  }, [createVNode(Icon_default, {
7451
7460
  icon: "times",
7452
7461
  type: "fas",
7453
7462
  "icon-color": "#ff0000"
7454
- })])]), createBaseVNode("b", null, [createBaseVNode("span", null, toDisplayString(unref(showPrice)(-unref(b), unref(l))), 1)])])),
7463
+ })])]), createBaseVNode("b", null, [createBaseVNode("span", null, toDisplayString(unref(showPrice)(-unref(f), unref(l))), 1)])])),
7455
7464
  createBaseVNode("li", null, [createBaseVNode("span", null, toDisplayString(unref(t)("booking.reservation.totalPrice")), 1), createBaseVNode("b", null, [createBaseVNode("u", null, toDisplayString(unref(showPrice)(e.totalPrice, unref(l))), 1)])])
7456
7465
  ])]),
7457
- unref(T).actions && e.showTermsNotice ? renderSlot(n.$slots, "actions", { key: 1 }) : createCommentVNode("", !0),
7466
+ unref(v).actions && e.showTermsNotice ? renderSlot(n.$slots, "actions", { key: 1 }) : createCommentVNode("", !0),
7458
7467
  renderSlot(n.$slots, "navigation"),
7459
7468
  e.prevCallback === void 0 ? createCommentVNode("", !0) : (openBlock(), createBlock(Clickable_default, {
7460
7469
  key: 2,
@@ -7464,76 +7473,76 @@ var _hoisted_1$3 = {
7464
7473
  onClickEvent: e.prevCallback
7465
7474
  }, null, 8, ["label", "onClickEvent"]))
7466
7475
  ])]),
7467
- P.value ? (openBlock(), createElementBlock("div", _hoisted_16$1, [createBaseVNode("div", _hoisted_17$1, [ee.value ? (openBlock(), createElementBlock("nav", {
7476
+ D.value ? (openBlock(), createElementBlock("div", _hoisted_16$1, [createBaseVNode("div", _hoisted_17$1, [O.value ? (openBlock(), createElementBlock("nav", {
7468
7477
  key: 0,
7469
7478
  class: normalizeClass(["konnectio-reservation-discount-navigation", { "konnectio-swap-positions": unref(i) }])
7470
7479
  }, [createBaseVNode("ul", null, [createBaseVNode("li", null, [createBaseVNode("button", {
7471
- class: normalizeClass({ active: A.value }),
7472
- onClick: r[1] ||= withModifiers((e) => F("discount"), ["prevent"])
7480
+ class: normalizeClass({ active: C.value }),
7481
+ onClick: r[1] ||= withModifiers((e) => k("discount"), ["prevent"])
7473
7482
  }, [createBaseVNode("span", null, toDisplayString(unref(t)("general.discountCode")), 1)], 2)]), createBaseVNode("li", null, [createBaseVNode("button", {
7474
- class: normalizeClass({ active: j.value }),
7475
- onClick: r[2] ||= withModifiers((e) => F("gift-card"), ["prevent"])
7476
- }, [createBaseVNode("span", null, toDisplayString(unref(t)("booking.reservation.giftCardCode")), 1)], 2)])])], 2)) : (openBlock(), createElementBlock("h5", _hoisted_18$1, [M.value ? (openBlock(), createElementBlock("span", _hoisted_19$1, toDisplayString(unref(t)("general.discountCode")), 1)) : (openBlock(), createElementBlock("span", _hoisted_20$1, toDisplayString(unref(t)("booking.reservation.giftCardCode")), 1))])), createBaseVNode("div", _hoisted_21$1, [createVNode(Transition, {
7483
+ class: normalizeClass({ active: w.value }),
7484
+ onClick: r[2] ||= withModifiers((e) => k("gift-card"), ["prevent"])
7485
+ }, [createBaseVNode("span", null, toDisplayString(unref(t)("booking.reservation.giftCardCode")), 1)], 2)])])], 2)) : (openBlock(), createElementBlock("h5", _hoisted_18$1, [T.value ? (openBlock(), createElementBlock("span", _hoisted_19$1, toDisplayString(unref(t)("general.discountCode")), 1)) : (openBlock(), createElementBlock("span", _hoisted_20$1, toDisplayString(unref(t)("booking.reservation.giftCardCode")), 1))])), createBaseVNode("div", _hoisted_21$1, [createVNode(Transition, {
7477
7486
  name: "fade",
7478
7487
  mode: "out-in",
7479
7488
  appear: ""
7480
7489
  }, {
7481
- default: withCtx(() => [A.value && e.availabilityDiscount && unref(m) ? (openBlock(), createBlock(ActionField_default, {
7490
+ default: withCtx(() => [C.value && e.availabilityDiscount && e.guestDiscountCode ? (openBlock(), createBlock(ActionField_default, {
7482
7491
  key: 0,
7483
- "model-value": unref(m),
7492
+ "model-value": e.guestDiscountCode,
7484
7493
  icon: "tags",
7485
7494
  "button-icon": "times",
7486
7495
  placeholder: unref(t)("general.discountCodePlaceholder"),
7487
7496
  action: "success",
7488
7497
  secondary: !0,
7489
7498
  readonly: "",
7490
- onAction: r[3] ||= (e) => R()
7491
- }, null, 8, ["model-value", "placeholder"])) : A.value && e.availabilityDiscount ? (openBlock(), createBlock(ActionField_default, {
7499
+ onAction: r[3] ||= (e) => M()
7500
+ }, null, 8, ["model-value", "placeholder"])) : C.value && e.availabilityDiscount ? (openBlock(), createBlock(ActionField_default, {
7492
7501
  key: 1,
7493
- modelValue: I.value,
7494
- "onUpdate:modelValue": r[4] ||= (e) => I.value = e,
7502
+ modelValue: A.value,
7503
+ "onUpdate:modelValue": r[4] ||= (e) => A.value = e,
7495
7504
  icon: "tags",
7496
7505
  "button-icon": "paper-plane-top",
7497
7506
  placeholder: unref(t)("general.discountCodePlaceholder"),
7498
7507
  action: "success",
7499
7508
  secondary: !0,
7500
- onAction: r[5] ||= (e) => L()
7501
- }, null, 8, ["modelValue", "placeholder"])) : A.value && unref(p) ? (openBlock(), createBlock(ActionField_default, {
7509
+ onAction: r[5] ||= (e) => j()
7510
+ }, null, 8, ["modelValue", "placeholder"])) : C.value && e.appliedDiscountCode ? (openBlock(), createBlock(ActionField_default, {
7502
7511
  key: 2,
7503
- "model-value": unref(p),
7512
+ "model-value": e.appliedDiscountCode,
7504
7513
  icon: "tags",
7505
7514
  "button-icon": "times",
7506
7515
  placeholder: unref(t)("general.discountCodePlaceholder"),
7507
7516
  action: "success",
7508
7517
  secondary: !0,
7509
7518
  readonly: "",
7510
- onAction: r[6] ||= (e) => unref(g)()
7511
- }, null, 8, ["model-value", "placeholder"])) : A.value ? (openBlock(), createBlock(ActionField_default, {
7519
+ onAction: r[6] ||= (t) => e.onResetDiscountCode?.()
7520
+ }, null, 8, ["model-value", "placeholder"])) : C.value ? (openBlock(), createBlock(ActionField_default, {
7512
7521
  key: 3,
7513
- modelValue: E.value,
7514
- "onUpdate:modelValue": r[7] ||= (e) => E.value = e,
7522
+ modelValue: y.value,
7523
+ "onUpdate:modelValue": r[7] ||= (e) => y.value = e,
7515
7524
  icon: "tags",
7516
7525
  "button-icon": "paper-plane-top",
7517
7526
  placeholder: unref(t)("general.discountCodePlaceholder"),
7518
7527
  action: "success",
7519
7528
  secondary: !0,
7520
- "is-loading": unref(f).isValidatingDiscountCode,
7529
+ "is-loading": e.isValidatingDiscountCode,
7521
7530
  onAction: r[8] ||= (t) => e.validateDiscountCode()
7522
7531
  }, null, 8, [
7523
7532
  "modelValue",
7524
7533
  "placeholder",
7525
7534
  "is-loading"
7526
- ])) : j.value && N.value ? (openBlock(), createBlock(ActionField_default, {
7535
+ ])) : w.value && E.value ? (openBlock(), createBlock(ActionField_default, {
7527
7536
  key: 4,
7528
- modelValue: unref(x),
7529
- "onUpdate:modelValue": r[9] ||= (e) => isRef(x) ? x.value = e : null,
7537
+ modelValue: unref(p),
7538
+ "onUpdate:modelValue": r[9] ||= (e) => isRef(p) ? p.value = e : null,
7530
7539
  icon: "gift-card",
7531
7540
  "button-icon": "paper-plane-top",
7532
7541
  placeholder: "XXXXXXXX",
7533
7542
  action: "success",
7534
7543
  secondary: !0,
7535
- "is-loading": unref(S),
7536
- onAction: r[10] ||= (e) => unref(C)()
7544
+ "is-loading": unref(m),
7545
+ onAction: r[10] ||= (e) => unref(g)()
7537
7546
  }, null, 8, ["modelValue", "is-loading"])) : createCommentVNode("", !0)]),
7538
7547
  _: 1
7539
7548
  })])])])) : createCommentVNode("", !0),
@@ -7546,10 +7555,10 @@ var _hoisted_1$3 = {
7546
7555
  }, 8, ["top-spacing"])], 6),
7547
7556
  createBaseVNode("div", _hoisted_24, [
7548
7557
  unref(s) ? (openBlock(), createElementBlock("div", _hoisted_25, [createVNode(GoogleNotice_default)])) : createCommentVNode("", !0),
7549
- unref(T).sidebar ? createCommentVNode("", !0) : withDirectives((openBlock(), createElementBlock("div", _hoisted_26, [createBaseVNode("div", null, [createBaseVNode("div", _hoisted_27, [createBaseVNode("div", _hoisted_28, [
7558
+ unref(v).sidebar ? createCommentVNode("", !0) : withDirectives((openBlock(), createElementBlock("div", _hoisted_26, [createBaseVNode("div", null, [createBaseVNode("div", _hoisted_27, [createBaseVNode("div", _hoisted_28, [
7550
7559
  createBaseVNode("div", _hoisted_29, [createBaseVNode("h3", { title: unref(t)("booking.reservation.totalPrice") }, [createBaseVNode("u", null, toDisplayString(unref(showPrice)(e.totalPrice, unref(l))), 1)], 8, _hoisted_30), createBaseVNode("div", _hoisted_31, [renderSlot(n.$slots, "mobile-under-price")])]),
7551
- unref(T)["mobile-summary"] ? (openBlock(), createElementBlock("div", _hoisted_32, [renderSlot(n.$slots, "mobile-summary")])) : createCommentVNode("", !0),
7552
- unref(T).navigation ? (openBlock(), createElementBlock("div", _hoisted_33, [
7560
+ unref(v)["mobile-summary"] ? (openBlock(), createElementBlock("div", _hoisted_32, [renderSlot(n.$slots, "mobile-summary")])) : createCommentVNode("", !0),
7561
+ unref(v).navigation ? (openBlock(), createElementBlock("div", _hoisted_33, [
7553
7562
  renderSlot(n.$slots, "navigation"),
7554
7563
  e.prevCallback === void 0 ? createCommentVNode("", !0) : (openBlock(), createBlock(Clickable_default, {
7555
7564
  key: 0,
@@ -7558,15 +7567,15 @@ var _hoisted_1$3 = {
7558
7567
  secondary: "",
7559
7568
  onClickEvent: e.prevCallback
7560
7569
  }, null, 8, ["label", "onClickEvent"])),
7561
- unref(T).actions && e.showTermsNotice ? renderSlot(n.$slots, "actions", { key: 1 }) : createCommentVNode("", !0)
7570
+ unref(v).actions && e.showTermsNotice ? renderSlot(n.$slots, "actions", { key: 1 }) : createCommentVNode("", !0)
7562
7571
  ])) : createCommentVNode("", !0)
7563
- ])])])])), [[_]]),
7572
+ ])])])])), [[b]]),
7564
7573
  createBaseVNode("div", _hoisted_34, [createVNode(PoweredByKonnectio_default)])
7565
7574
  ])
7566
7575
  ], 2)]);
7567
7576
  };
7568
7577
  }
7569
- }), ReservationForm_default = /* @__PURE__ */ _plugin_vue_export_helper_default(ReservationForm_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-11a3fb93"]]), _hoisted_1$2 = {
7578
+ }), ReservationForm_default = /* @__PURE__ */ _plugin_vue_export_helper_default(ReservationForm_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-253b4c6c"]]), _hoisted_1$2 = {
7570
7579
  id: "konnectio-confirmation",
7571
7580
  class: "konnectio-panel"
7572
7581
  }, _hoisted_2$1 = { id: "konnectio-confirmation-introduction" }, _hoisted_3$1 = { id: "konnectio-confirmation-title" }, _hoisted_4$1 = ["innerHTML"], _hoisted_5$1 = { class: "konnectio-order-panel" }, _hoisted_6$1 = { class: "konnectio-order-lines" }, _hoisted_7$1 = { key: 0 }, _hoisted_8$1 = { class: "konnectio-order-panel" }, _hoisted_9 = { class: "konnectio-order-lines" }, _hoisted_10 = { key: 0 }, _hoisted_11 = { key: 1 }, _hoisted_12 = { key: 2 }, _hoisted_13 = {
package/dist/polyfill.js CHANGED
@@ -9294,5 +9294,5 @@ Fu(), Iu(), (({ every: e, indexOf: t, slice: n } = Array.prototype, r = globalTh
9294
9294
  };
9295
9295
  S = new ResizeObserver(v), C = new MutationObserver(r), i();
9296
9296
  }
9297
- })()(), console.log("Konnectio production release: 4.5.3");
9297
+ })()(), console.log("Konnectio production release: 4.5.5");
9298
9298
  //#endregion
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  import { At as e, D as t, Dt as n, E as r, H as i, I as a, L as o, M as s, O as c, Ot as l, P as u, Q as d, V as f, X as p, Y as m, bt as h, dt as g, et as _, k as v, kt as y, p as ee, pt as te, tt as b, v as ne, x as re } from "./mitt-DrOLO7f9.js";
2
- import { a as ie, c as ae, h as oe, i as se, l as ce, o as le, s as ue, u as de } from "./SelectField-B71Q-kc3.js";
2
+ import { a as ie, c as ae, h as oe, i as se, l as ce, o as le, s as ue, u as de } from "./SelectField-B0SkYGj-.js";
3
3
  //#region node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
4
4
  function x(e) {
5
5
  return e.ownerDocument?.defaultView || window;
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.5.3",
3
+ "version": "4.5.5",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
5
5
  "homepage": "https://konnectio.com",
6
6
  "description": "Konnectio Core Frontend Integration.",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- xڝT�N�@}^ŰU��ֹ�����VB��B�PE����dg��]��(�^����4��\��̌�J[X�p��̺��������������7g9������Ykȴ�m4����L_^\eo�
2
- ���))1�B�E���<EMa͠�!4�]_}���pЄ��E���HK>�hL�G
3
-
4
- ��#d��vj#XA�/sm�Z�]��;���/�N�NQ_�T��S�XRX{ĹU�cP��hK-���G��E�p2Iz�~بj��d���{�rhM���A�:�����G�:�����0P>Mł2ȃ��#ko0�h�Dx�R4喇�p�v0��=: R'�GfxA�y�A�eì���O0�ޚAViW���F�hT�؎Nw�N�%�7�(�S�r�jʶ�{m��Iu�x�K�0_pi�k��Tc�Lc�0H^Ra;����;ݤU�PaB�Kr��F ����sNRm��6�&�����#x��# �v���yh�6���������v�Xִ7 S#�<Bڧ��^+` ��~�m������!�Zqt�q�=<���[�
5
- �������o82�e�30Ѻc�?�K�n��/�)D������斖�]T����P�
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file