@konnectio/core 4.1.2 → 4.1.3

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 (53) hide show
  1. package/dist/{ActionField-RCouJ4bL.js → ActionField-CRqgWSz1.js} +11 -11
  2. package/dist/ActionField-CRqgWSz1.js.br +0 -0
  3. package/dist/{AvailabilitySkeleton-DMCMhOc1.js → AvailabilitySkeleton-DVrVFhw4.js} +5 -5
  4. package/dist/AvailabilitySkeleton-DVrVFhw4.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js} +2 -5
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js.br +0 -0
  7. package/dist/{CheckoutWindow-CIVRhVLH.js → CheckoutWindow-DrZnthDH.js} +37 -42
  8. package/dist/CheckoutWindow-DrZnthDH.js.br +0 -0
  9. package/dist/{ErrorMessage-CRkFYH0N.js → ErrorMessage-b0lY3zUM.js} +2 -2
  10. package/dist/ErrorMessage-b0lY3zUM.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DuzDq1td.js → EventAvailabilityForm-BPkfZcYX.js} +3 -3
  12. package/dist/EventAvailabilityForm-BPkfZcYX.js.br +0 -0
  13. package/dist/{Field-B89fBG1z.js → Field-DnS91ODQ.js} +3 -3
  14. package/dist/Field-DnS91ODQ.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js → Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js} +2 -2
  16. package/dist/SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js +10302 -0
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js.br +0 -0
  18. package/dist/{TermsOfService-B3RWtSMr.js → TermsOfService-B2ELKRPq.js} +4 -4
  19. package/dist/_-DkNAaEsV.js +5 -0
  20. package/dist/{_.vue_vue_type_style_index_0_lang-CPp11Oc1.js → _.vue_vue_type_style_index_0_lang-DKkrP6vk.js} +2 -2
  21. package/dist/availability.js +5 -5
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +3 -3
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/core.css +1 -1
  26. package/dist/core.css.br +0 -0
  27. package/dist/event.js +87 -87
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +7 -7
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +9 -9
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/{giftCard-ovHKnHZ1.js → giftCard-BsWa3VEY.js} +2 -2
  34. package/dist/giftCard-BsWa3VEY.js.br +0 -0
  35. package/dist/hotel.js +18 -21
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-DEok8Hbz.js → masonry.plugin-By72FzQ9.js} +44 -27
  38. package/dist/masonry.plugin-By72FzQ9.js.br +0 -0
  39. package/dist/polyfill.js +1 -1
  40. package/dist/polyfill.js.br +0 -0
  41. package/package.json +6 -7
  42. package/dist/ActionField-RCouJ4bL.js.br +0 -0
  43. package/dist/AvailabilitySkeleton-DMCMhOc1.js.br +0 -0
  44. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js.br +0 -0
  45. package/dist/CheckoutWindow-CIVRhVLH.js.br +0 -0
  46. package/dist/ErrorMessage-CRkFYH0N.js.br +0 -0
  47. package/dist/EventAvailabilityForm-DuzDq1td.js.br +0 -0
  48. package/dist/Field-B89fBG1z.js.br +0 -0
  49. package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js +0 -19391
  50. package/dist/SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js.br +0 -0
  51. package/dist/_-CS3eNenD.js +0 -5
  52. package/dist/giftCard-ovHKnHZ1.js.br +0 -0
  53. package/dist/masonry.plugin-DEok8Hbz.js.br +0 -0
package/dist/core.css.br CHANGED
Binary file
package/dist/event.js CHANGED
@@ -1,12 +1,12 @@
1
- import { d as W, u as ae, s as j, r as Fe, c as Z, a as l, b as $, w as m, v as X, i as e, e as t, j as v, f as p, n as Ze, g as c, t as a, o as xe, h as et, x as de, y as tt, z as nt, F as I, A as Y, B as M, S as at, k as ot, l as lt, m as st, p as it, q as rt } from "./mitt-Dh_4vPVI.js";
2
- import { a as we, f as x, g as ue, l as ut, s as U, d as ce, B as dt, _ as ee, h as me, I as ne, i as ct, u as $e, j as mt, k as pt, m as vt, n as _e, o as K, p as bt, q as Oe, T as re, O as ft, C as gt, r as kt, t as yt, v as ht } from "./SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js";
1
+ import { d as W, u as ae, s as j, r as Fe, c as X, a as l, b as $, w as m, v as K, i as e, e as t, j as v, f as p, n as Xe, g as c, t as a, o as xe, h as et, x as de, y as tt, z as nt, F as I, A as Y, B as M, S as at, k as ot, l as lt, m as st, p as it, q as rt } from "./mitt-Dh_4vPVI.js";
2
+ import { a as _e, f as x, g as ue, l as ut, s as U, d as ce, B as dt, _ as ee, h as me, I as ne, i as ct, u as $e, j as mt, k as pt, m as vt, n as we, o as J, p as bt, q as Oe, T as re, O as ft, C as gt, r as kt, t as yt, v as ht } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
3
  import { G as Dt } from "./style-CXMzdeVK.js";
4
- import { _ as Pt } from "./_.vue_vue_type_style_index_0_lang-CPp11Oc1.js";
5
- import { B as $t, _ as _t, R as wt, L as Se, S as Et, M as Ot, C as Vt, T as Nt, V as Tt, a as Bt } from "./masonry.plugin-DEok8Hbz.js";
6
- import { e as Lt, c as Ct, n as Ft, g as Ve, m as Ne, a as Te, b as Be, d as St, f as Le, _ as At } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-mLoIG3Dr.js";
7
- import { C as It, P as Rt, a as Mt } from "./CheckoutWindow-CIVRhVLH.js";
8
- import { E as Ut } from "./EventAvailabilityForm-DuzDq1td.js";
9
- import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js";
4
+ import { _ as Pt } from "./_.vue_vue_type_style_index_0_lang-DKkrP6vk.js";
5
+ import { B as $t, _ as wt, R as _t, L as Se, S as Et, M as Ot, C as Vt, T as Nt, V as Tt, a as Bt } from "./masonry.plugin-By72FzQ9.js";
6
+ import { e as Lt, c as Ct, n as Ft, g as Ve, m as Ne, a as Te, b as Be, d as St, f as Le, _ as At } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Bqb9v7l8.js";
7
+ import { C as It, P as Rt, a as Mt } from "./CheckoutWindow-DrZnthDH.js";
8
+ import { E as Ut } from "./EventAvailabilityForm-BPkfZcYX.js";
9
+ import "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js";
10
10
  function Gt(k) {
11
11
  return (o) => {
12
12
  const y = (k ? Math[k] : Math.trunc)(o);
@@ -23,7 +23,7 @@ function zt(k, o, n) {
23
23
  }), [E, g] = Ft(
24
24
  n?.in,
25
25
  ...i > 0 ? [o, k] : [k, o]
26
- ), s = Gt(n?.roundingMethod ?? "round"), O = g.getTime() - E.getTime(), h = O / Le, _ = Ve(g) - Ve(E), N = (O - _) / Le, F = n?.unit;
26
+ ), s = Gt(n?.roundingMethod ?? "round"), O = g.getTime() - E.getTime(), h = O / Le, w = Ve(g) - Ve(E), N = (O - w) / Le, F = n?.unit;
27
27
  let D;
28
28
  if (F ? D = F : h < 1 ? D = "second" : h < 60 ? D = "minute" : h < Ne ? D = "hour" : N < Te ? D = "day" : N < Be ? D = "month" : D = "year", D === "second") {
29
29
  const r = s(O / 1e3);
@@ -70,7 +70,7 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
70
70
  callback: {}
71
71
  },
72
72
  setup(k) {
73
- const { t: o } = ae(), n = k, { display: y } = we(), {
73
+ const { t: o } = ae(), n = k, { display: y } = _e(), {
74
74
  maxNumberOfPeople: b,
75
75
  numberOfPeople: i,
76
76
  eventId: f,
@@ -80,24 +80,24 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
80
80
  getTemplateAvailability: s,
81
81
  getEventAvailability: O,
82
82
  isEventListingLoading: h
83
- } = x(), _ = Fe(0), N = Z(() => h(n.listingId)), F = () => {
84
- if (!n.useNumberOfProductsForPersons && (_.value === 0 || isNaN(_.value))) {
83
+ } = x(), w = Fe(0), N = X(() => h(n.listingId)), F = () => {
84
+ if (!n.useNumberOfProductsForPersons && (w.value === 0 || isNaN(w.value))) {
85
85
  y({
86
86
  type: "error",
87
87
  message: o("alert.error.selectPeople")
88
88
  });
89
89
  return;
90
90
  }
91
- f.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, s(n.callback);
91
+ f.value = n.listingId, i.value = n.useNumberOfProductsForPersons ? NaN : w.value, s(n.callback);
92
92
  }, D = () => {
93
- if (!n.useNumberOfProductsForPersons && (_.value === 0 || isNaN(_.value))) {
93
+ if (!n.useNumberOfProductsForPersons && (w.value === 0 || isNaN(w.value))) {
94
94
  y({
95
95
  type: "error",
96
96
  message: o("alert.error.selectPeople")
97
97
  });
98
98
  return;
99
99
  }
100
- f.value = n.listingId, g.value = n.tableGroupId, i.value = n.useNumberOfProductsForPersons ? NaN : _.value, O(n.callback);
100
+ f.value = n.listingId, g.value = n.tableGroupId, i.value = n.useNumberOfProductsForPersons ? NaN : w.value, O(n.callback);
101
101
  };
102
102
  return (r, S) => (l(), $($t, {
103
103
  type: "event",
@@ -111,20 +111,20 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
111
111
  "disable-deep-link": r.disableDeepLink
112
112
  }, {
113
113
  description: m(() => [
114
- X(r.$slots, "description", { maxNumberOfPeople: e(b) }, void 0, !0)
114
+ K(r.$slots, "description", { maxNumberOfPeople: e(b) }, void 0, !0)
115
115
  ]),
116
116
  action: m(() => [
117
- X(r.$slots, "action", {}, () => [
117
+ K(r.$slots, "action", {}, () => [
118
118
  t("div", {
119
- class: Ze([
119
+ class: Xe([
120
120
  "konnectio-event-listing-action",
121
121
  { "no-selectable-people": r.useNumberOfProductsForPersons }
122
122
  ])
123
123
  }, [
124
124
  r.useNumberOfProductsForPersons ? v("", !0) : (l(), $(ue, {
125
125
  key: 0,
126
- modelValue: _.value,
127
- "onUpdate:modelValue": S[0] || (S[0] = (A) => _.value = A),
126
+ modelValue: w.value,
127
+ "onUpdate:modelValue": S[0] || (S[0] = (A) => w.value = A),
128
128
  label: e(o)("event.numberOfGuests"),
129
129
  icon: "users",
130
130
  "icon-type": "fas",
@@ -153,7 +153,7 @@ const qt = { class: "konnectio-event-listing-action-button" }, Ht = /* @__PURE__
153
153
  const jt = {
154
154
  key: 1,
155
155
  class: "konnectio-pill-button"
156
- }, Wt = { class: "konnectio-pill-button" }, Qt = /* @__PURE__ */ W({
156
+ }, Wt = { class: "konnectio-pill-button" }, Zt = /* @__PURE__ */ W({
157
157
  __name: "Event",
158
158
  props: {
159
159
  name: {},
@@ -176,7 +176,7 @@ const jt = {
176
176
  callback: {}
177
177
  },
178
178
  setup(k) {
179
- const o = k, { t: n } = ae(), { hideEventLength: y } = j(me()), b = Z(() => {
179
+ const o = k, { t: n } = ae(), { hideEventLength: y } = j(me()), b = X(() => {
180
180
  const i = o.length.split(":");
181
181
  return zt(
182
182
  new Date(2e3, 0, 1, Number(i[0]), Number(i[1]), 0),
@@ -198,7 +198,7 @@ const jt = {
198
198
  callback: i.callback
199
199
  }, {
200
200
  description: m(() => [
201
- i.description ? (l(), $(_t, {
201
+ i.description ? (l(), $(wt, {
202
202
  key: 0,
203
203
  text: i.description
204
204
  }, null, 8, ["text"])) : v("", !0),
@@ -227,12 +227,12 @@ const jt = {
227
227
  ])
228
228
  ]),
229
229
  action: m(() => [
230
- X(i.$slots, "action", {}, void 0, !0)
230
+ K(i.$slots, "action", {}, void 0, !0)
231
231
  ]),
232
232
  _: 3
233
233
  }, 8, ["listing-id", "name", "description", "gallery", "prices-from", "table-group-id", "max-guests", "use-number-of-products-for-persons", "to-date", "sold-out", "callback"]));
234
234
  }
235
- }), Ie = /* @__PURE__ */ ee(Qt, [["__scopeId", "data-v-222c7986"]]), Jt = { class: "konnectio-special-offer-availability" }, Kt = { class: "konnectio-special-offer-availability-button" }, Xt = { class: "konnectio-warning-notice" }, Zt = { key: 0 }, xt = { key: 1 }, en = /* @__PURE__ */ W({
235
+ }), Ie = /* @__PURE__ */ ee(Zt, [["__scopeId", "data-v-2def8bd2"]]), Qt = { class: "konnectio-special-offer-availability" }, Jt = { class: "konnectio-special-offer-availability-button" }, Kt = { class: "konnectio-warning-notice" }, Xt = { key: 0 }, xt = { key: 1 }, en = /* @__PURE__ */ W({
236
236
  __name: "NextEvent",
237
237
  props: {
238
238
  name: {},
@@ -254,14 +254,14 @@ const jt = {
254
254
  callback: { type: Function }
255
255
  },
256
256
  setup(k) {
257
- const { t: o } = ae(), { updateEventDate: n } = $e(), { display: y } = we(), b = Fe(), i = k;
257
+ const { t: o } = ae(), { updateEventDate: n } = $e(), { display: y } = _e(), b = Fe(), i = k;
258
258
  function f() {
259
259
  b.value ? n(b.value) : y({
260
260
  message: o("alert.error.selectDate"),
261
261
  type: "error"
262
262
  });
263
263
  }
264
- const E = Z(() => pt(i.fromDate, i.toDate) <= 1), g = Z(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !vt(i.days).includes(s)));
264
+ const E = X(() => pt(i.fromDate, i.toDate) <= 1), g = X(() => [0, 1, 2, 3, 4, 5, 6].filter((s) => !vt(i.days).includes(s)));
265
265
  return xe(() => {
266
266
  E.value && (b.value = new Date(i.fromDate));
267
267
  }), (s, O) => (l(), $(Ie, {
@@ -286,7 +286,7 @@ const jt = {
286
286
  }, {
287
287
  action: m(() => [
288
288
  t("div", null, [
289
- t("div", Jt, [
289
+ t("div", Qt, [
290
290
  p(At, {
291
291
  modelValue: b.value,
292
292
  "onUpdate:modelValue": O[0] || (O[0] = (h) => b.value = h),
@@ -295,20 +295,20 @@ const jt = {
295
295
  "icon-type": "fas",
296
296
  "icon-placement": "label",
297
297
  readonly: E.value,
298
- "start-date": new Date(s.fromDate),
299
- "min-date": new Date(s.fromDate),
298
+ "start-date": s.fromDate !== "0001-01-01T00:00:00Z" ? new Date(s.fromDate) : new Date(s.toDate),
299
+ "min-date": s.fromDate !== "0001-01-01T00:00:00Z" ? new Date(s.fromDate) : new Date(s.toDate),
300
300
  "max-date": new Date(s.toDate),
301
301
  "disabled-week-days": g.value
302
302
  }, null, 8, ["modelValue", "label", "placeholder", "readonly", "start-date", "min-date", "max-date", "disabled-week-days"]),
303
- t("div", Kt, [
303
+ t("div", Jt, [
304
304
  p(ce, {
305
305
  label: e(o)("availability.buttonLabel"),
306
306
  onClick: et(f, ["prevent"])
307
307
  }, null, 8, ["label"])
308
308
  ])
309
309
  ]),
310
- t("div", Xt, [
311
- E.value ? (l(), c("span", Zt, [
310
+ t("div", Kt, [
311
+ E.value ? (l(), c("span", Xt, [
312
312
  de("*" + a(e(o)("event.canBeBooked")) + " ", 1),
313
313
  t("u", null, a(e(U)(s.fromDate)), 1)
314
314
  ])) : (l(), c("span", xt, [
@@ -321,7 +321,7 @@ const jt = {
321
321
  _: 1
322
322
  }, 8, ["name", "description", "from-date", "to-date", "length", "time-from", "time-to", "gallery", "days", "listing-id", "table-group-id", "max-online-reservation-limit", "minimum-person-count", "use-number-of-products-for-persons", "tracking-enabled", "sold-out", "callback"]));
323
323
  }
324
- }), tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-cd5e3d60"]]), nn = /* @__PURE__ */ W({
324
+ }), tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-bdda47c1"]]), nn = /* @__PURE__ */ W({
325
325
  __name: "Template",
326
326
  props: {
327
327
  name: {},
@@ -370,18 +370,18 @@ const jt = {
370
370
  currentEventDate: s,
371
371
  length: O,
372
372
  fromDate: h,
373
- tableBasePrice: _,
373
+ tableBasePrice: w,
374
374
  getTemplateData: N,
375
375
  basePrice: F,
376
376
  totalPrice: D,
377
377
  weekendFee: r,
378
378
  roomUpgrade: S,
379
379
  discountCode: A,
380
- totalSelectedProducts: Q
380
+ totalSelectedProducts: Z
381
381
  } = j(x()), { totalAddonPrice: pe, validateDiscountCode: ve } = x(), { currency: oe, hideEventLength: be } = j(me());
382
- return (R, le) => (l(), $(wt, {
382
+ return (R, le) => (l(), $(_t, {
383
383
  "discount-code": e(A),
384
- "onUpdate:discountCode": le[0] || (le[0] = (J) => M(A) ? A.value = J : null),
384
+ "onUpdate:discountCode": le[0] || (le[0] = (Q) => M(A) ? A.value = Q : null),
385
385
  "validate-discount-code": e(ve),
386
386
  "show-gift-card": R.showGiftCard,
387
387
  "show-terms-notice": R.showTermsNotice,
@@ -394,7 +394,7 @@ const jt = {
394
394
  "prev-callback": R.prevCallback
395
395
  }, nt({
396
396
  form: m(() => [
397
- X(R.$slots, "form", {}, void 0, !0)
397
+ K(R.$slots, "form", {}, void 0, !0)
398
398
  ]),
399
399
  "reservation-summary": m(() => [
400
400
  e(g) ? v("", !0) : (l(), c("li", an, [
@@ -405,9 +405,9 @@ const jt = {
405
405
  t("span", null, a(e(o)("event.numberOfGuests")), 1),
406
406
  t("b", null, a(e(i)), 1)
407
407
  ])) : v("", !0),
408
- !e(g) && e(Q) > 0 ? (l(), c("li", ln, [
408
+ !e(g) && e(Z) > 0 ? (l(), c("li", ln, [
409
409
  t("span", null, a(e(o)("event.numberOfProducts")), 1),
410
- t("b", null, a(e(Q)), 1)
410
+ t("b", null, a(e(Z)), 1)
411
411
  ])) : v("", !0),
412
412
  e(g) ? (l(), c(I, { key: 3 }, [
413
413
  t("li", null, [
@@ -429,25 +429,25 @@ const jt = {
429
429
  ], 64)) : v("", !0),
430
430
  !e(g) && e(b) ? (l(), c("li", sn, [
431
431
  t("span", null, a(e(o)("event.startOfEvent")), 1),
432
- t("b", null, a(e(_e)(e(b))), 1)
432
+ t("b", null, a(e(we)(e(b))), 1)
433
433
  ])) : v("", !0),
434
434
  !e(g) && e(O) && !e(be) ? (l(), c("li", rn, [
435
435
  t("span", null, a(e(o)("event.lengthOfEvent")), 1),
436
- t("b", null, a(e(_e)(e(O))), 1)
436
+ t("b", null, a(e(we)(e(O))), 1)
437
437
  ])) : v("", !0)
438
438
  ]),
439
439
  "price-summary": m(() => [
440
- !e(g) && e(_) > 0 ? (l(), c("li", un, [
440
+ !e(g) && e(w) > 0 ? (l(), c("li", un, [
441
441
  t("span", null, a(e(o)("booking.availability.basePrice")), 1),
442
- t("b", null, a(e(K)(e(_), e(oe))), 1)
442
+ t("b", null, a(e(J)(e(w), e(oe))), 1)
443
443
  ])) : v("", !0),
444
- e(N) ? (l(!0), c(I, { key: 1 }, Y(e(N), ({ roomGroupId: J }, se) => (l(), c("li", { key: J }, [
444
+ e(N) ? (l(!0), c(I, { key: 1 }, Y(e(N), ({ roomGroupId: Q }, se) => (l(), c("li", { key: Q }, [
445
445
  t("span", null, a(e(o)("booking.reservation.addons")) + " - " + a(e(o)("booking.reservation.room")) + " #" + a(se + 1), 1),
446
- t("b", null, a(e(K)(e(pe)(J, se), e(oe))), 1)
446
+ t("b", null, a(e(J)(e(pe)(Q, se), e(oe))), 1)
447
447
  ]))), 128)) : v("", !0)
448
448
  ]),
449
449
  navigation: m(() => [
450
- X(R.$slots, "navigation", {}, void 0, !0)
450
+ K(R.$slots, "navigation", {}, void 0, !0)
451
451
  ]),
452
452
  "mobile-under-price": m(() => [
453
453
  e(g) ? (l(), c("div", dn, [
@@ -457,14 +457,14 @@ const jt = {
457
457
  ]))
458
458
  ]),
459
459
  "mobile-summary": m(() => [
460
- !e(g) && e(Q) > 0 ? (l(), c("span", mn, a(e(o)("event.numberOfProducts")) + ": " + a(e(Q)), 1)) : v("", !0)
460
+ !e(g) && e(Z) > 0 ? (l(), c("span", mn, a(e(o)("event.numberOfProducts")) + ": " + a(e(Z)), 1)) : v("", !0)
461
461
  ]),
462
462
  _: 2
463
463
  }, [
464
464
  e(n).sidebar ? {
465
465
  name: "sidebar",
466
466
  fn: m(() => [
467
- X(R.$slots, "sidebar", {}, void 0, !0)
467
+ K(R.$slots, "sidebar", {}, void 0, !0)
468
468
  ]),
469
469
  key: "0"
470
470
  } : void 0
@@ -489,7 +489,7 @@ const jt = {
489
489
  }, hn = {
490
490
  key: 0,
491
491
  class: "konnectio-hotel-availability-title"
492
- }, Dn = { class: "konnectio-event-listings" }, Pn = { class: "konnectio-hotel-availability-title" }, $n = { class: "konnectio-event-listings" }, _n = ["innerHTML"], wn = { class: "konnectio-panel" }, En = {
492
+ }, Dn = { class: "konnectio-event-listings" }, Pn = { class: "konnectio-hotel-availability-title" }, $n = { class: "konnectio-event-listings" }, wn = ["innerHTML"], _n = { class: "konnectio-panel" }, En = {
493
493
  key: 0,
494
494
  id: "konnectio-event-addons"
495
495
  }, On = { class: "konnectio-table with-lines" }, Vn = { class: "konnectio-event-addons-price" }, Nn = { class: "konnectio-event-addons-input" }, Tn = { class: "konnectio-event-addons-price" }, Bn = { class: "konnectio-event-addons-price" }, Ln = {
@@ -516,21 +516,21 @@ const jt = {
516
516
  remark: s,
517
517
  allergies: O,
518
518
  arrivalTime: h,
519
- hasEvents: _,
519
+ hasEvents: w,
520
520
  hasTemplates: N,
521
521
  getEvents: F,
522
522
  getTemplates: D,
523
523
  getEventData: r,
524
524
  getTemplateData: S,
525
525
  getEventTableData: A,
526
- hasProducts: Q,
526
+ hasProducts: Z,
527
527
  eventRateType: pe,
528
528
  areListingsAvailable: ve,
529
529
  isAvailabilityDataAvailable: oe,
530
530
  hasListingData: be,
531
531
  isPaymentLoading: R,
532
532
  isReservationFormFilled: le,
533
- requiresArrivalTime: J,
533
+ requiresArrivalTime: Q,
534
534
  hasSelectedRequiredProducts: se,
535
535
  getUnavailableEvents: fe
536
536
  } = j(x()), { currency: ie } = j(me()), { setActiveIdFilter: Re } = me(), { eventDate: Me, eventLocation: Ue } = j($e()), { isValidRestaurantId: Ge } = $e(), {
@@ -541,7 +541,7 @@ const jt = {
541
541
  totalAddonPrice: je,
542
542
  reset: We,
543
543
  goBack: Ee
544
- } = x(), { display: ge } = we(), Qe = Z(() => [
544
+ } = x(), { display: ge } = _e(), Ze = X(() => [
545
545
  {
546
546
  id: "availability",
547
547
  label: n("booking.availability.title"),
@@ -567,19 +567,19 @@ const jt = {
567
567
  label: n("booking.confirmation.title"),
568
568
  icon: "calendar-check"
569
569
  }
570
- ]), Je = Z(() => {
570
+ ]), Qe = X(() => {
571
571
  const P = [];
572
572
  return A.value && A.value.forEach((d) => {
573
573
  P.find((B) => B.value === d.time) || P.push({
574
- label: _e(d.time),
574
+ label: we(d.time),
575
575
  value: d.time
576
576
  });
577
577
  }), P;
578
578
  });
579
- function Ke() {
579
+ function Je() {
580
580
  We(o.resetDate === "yes");
581
581
  }
582
- function Xe() {
582
+ function Ke() {
583
583
  const P = kt("history", {
584
584
  removeNullishValues: !0
585
585
  }), d = parseInt(P.rid), B = P.d, V = parseInt(P.eid);
@@ -602,7 +602,7 @@ const jt = {
602
602
  }
603
603
  return (P, d) => (l(), $(gt, { styling: P.styling }, {
604
604
  default: m(() => [
605
- (l(), $(at, { onResolve: Xe }, {
605
+ (l(), $(at, { onResolve: Ke }, {
606
606
  default: m(() => [
607
607
  p(Pt, {
608
608
  id: "konnectio-event-module",
@@ -611,8 +611,8 @@ const jt = {
611
611
  }, {
612
612
  default: m(() => [
613
613
  p(Ot, {
614
- steps: Qe.value,
615
- onReset: Ke
614
+ steps: Ze.value,
615
+ onReset: Je
616
616
  }, {
617
617
  availability: m(({ next: B }) => [
618
618
  p(Pe, null, {
@@ -633,12 +633,12 @@ const jt = {
633
633
  t("span", null, a(e(n)("event.availableNow")), 1)
634
634
  ])) : v("", !0),
635
635
  t("ul", Dn, [
636
- e(_) && P.onlyShow !== "templates" ? (l(!0), c(I, { key: 0 }, Y(e(F), ({
636
+ e(w) && P.onlyShow !== "templates" ? (l(!0), c(I, { key: 0 }, Y(e(F), ({
637
637
  id: V,
638
638
  days: u,
639
639
  name: L,
640
640
  timeFrom: C,
641
- timeTo: w,
641
+ timeTo: _,
642
642
  fromDate: T,
643
643
  toDate: G,
644
644
  tableGroupId: z,
@@ -663,7 +663,7 @@ const jt = {
663
663
  "to-date": G,
664
664
  "max-online-reservation-limit": he || ye,
665
665
  "time-from": C,
666
- "time-to": w,
666
+ "time-to": _,
667
667
  "sold-out": te,
668
668
  "use-number-of-products-for-persons": De,
669
669
  callback: B
@@ -673,7 +673,7 @@ const jt = {
673
673
  name: u,
674
674
  fromDate: L,
675
675
  toDate: C,
676
- minimumPersonCount: w,
676
+ minimumPersonCount: _,
677
677
  fromPrice: T,
678
678
  description: G,
679
679
  imageUrl: z,
@@ -687,7 +687,7 @@ const jt = {
687
687
  description: G,
688
688
  "from-date": L,
689
689
  "to-date": C,
690
- "minimum-person-count": w,
690
+ "minimum-person-count": _,
691
691
  fromPrice: T,
692
692
  callback: B
693
693
  }, null, 8, ["listing-id", "name", "image", "images", "description", "from-date", "to-date", "minimum-person-count", "fromPrice", "callback"]))), 128)) : v("", !0)
@@ -707,7 +707,7 @@ const jt = {
707
707
  days: u,
708
708
  name: L,
709
709
  timeFrom: C,
710
- timeTo: w,
710
+ timeTo: _,
711
711
  fromDate: T,
712
712
  toDate: G,
713
713
  tableGroupId: z,
@@ -732,18 +732,18 @@ const jt = {
732
732
  "to-date": G,
733
733
  "max-online-reservation-limit": he || ye,
734
734
  "time-from": C,
735
- "time-to": w,
735
+ "time-to": _,
736
736
  "sold-out": te,
737
737
  "use-number-of-products-for-persons": De,
738
738
  callback: B
739
739
  }, null, 8, ["listing-id", "table-group-id", "description", "name", "length", "gallery", "days", "from-date", "to-date", "max-online-reservation-limit", "time-from", "time-to", "sold-out", "use-number-of-products-for-persons", "callback"]))), 128))
740
740
  ])
741
741
  ], 64)) : v("", !0),
742
- !e(_) && !e(N) || !e(_) && P.onlyShow === "events" || !e(N) && P.onlyShow === "templates" ? (l(), c("div", {
742
+ !e(w) && !e(N) || !e(w) && P.onlyShow === "events" || !e(N) && P.onlyShow === "templates" ? (l(), c("div", {
743
743
  key: 2,
744
744
  class: "konnectio-panel",
745
745
  innerHTML: e(n)("event.nothingAvailable")
746
- }, null, 8, _n)) : v("", !0)
746
+ }, null, 8, wn)) : v("", !0)
747
747
  ])) : (l(), $(Se, { key: 1 }))
748
748
  ]),
749
749
  _: 2
@@ -755,7 +755,7 @@ const jt = {
755
755
  "prev-callback": () => e(Ee)(V)
756
756
  }, {
757
757
  form: m(() => [
758
- t("form", wn, [
758
+ t("form", _n, [
759
759
  t("h2", null, [
760
760
  t("span", null, a(e(n)("event.selectProducts")), 1)
761
761
  ]),
@@ -764,9 +764,9 @@ const jt = {
764
764
  roomGroupId: u,
765
765
  addons: L,
766
766
  adultPerRoom: C
767
- }, w) => (l(), c("li", { key: u }, [
767
+ }, _) => (l(), c("li", { key: u }, [
768
768
  t("h5", null, [
769
- t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(w + 1), 1),
769
+ t("span", null, a(e(n)("booking.reservation.room")) + " #" + a(_ + 1), 1),
770
770
  d[7] || (d[7] = de(" (")),
771
771
  p(ne, {
772
772
  icon: "male",
@@ -798,24 +798,24 @@ const jt = {
798
798
  t("td", null, [
799
799
  t("b", null, a(z), 1),
800
800
  d[9] || (d[9] = t("br", null, null, -1)),
801
- t("span", null, a(e(K)(q, e(ie))) + " " + a(e(bt)(te)), 1)
801
+ t("span", null, a(e(J)(q, e(ie))) + " " + a(e(bt)(te)), 1)
802
802
  ]),
803
803
  t("td", Nn, [
804
804
  G === 3 ? (l(), $(ue, {
805
805
  key: 0,
806
- modelValue: e(y)[`${u}.${T}.${w}`],
807
- "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${w}`] = H,
806
+ modelValue: e(y)[`${u}.${T}.${_}`],
807
+ "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${_}`] = H,
808
808
  small: !0,
809
809
  "min-value": 0
810
810
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : (l(), $(It, {
811
811
  key: 1,
812
- modelValue: e(y)[`${u}.${T}.${w}`],
813
- "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${w}`] = H,
812
+ modelValue: e(y)[`${u}.${T}.${_}`],
813
+ "onUpdate:modelValue": (H) => e(y)[`${u}.${T}.${_}`] = H,
814
814
  numeric: !0
815
815
  }, null, 8, ["modelValue", "onUpdate:modelValue"]))
816
816
  ]),
817
817
  t("td", Tn, [
818
- t("span", null, a(e(K)(e(Ye)(T, u, w), e(ie))), 1)
818
+ t("span", null, a(e(J)(e(Ye)(T, u, _), e(ie))), 1)
819
819
  ])
820
820
  ]))), 128))
821
821
  ]),
@@ -825,7 +825,7 @@ const jt = {
825
825
  d[11] || (d[11] = t("td", null, null, -1)),
826
826
  t("td", Bn, [
827
827
  t("u", null, [
828
- t("span", null, a(e(K)(e(je)(u, w), e(ie))), 1)
828
+ t("span", null, a(e(J)(e(je)(u, _), e(ie))), 1)
829
829
  ])
830
830
  ])
831
831
  ])
@@ -833,15 +833,15 @@ const jt = {
833
833
  ])
834
834
  ]))), 128))
835
835
  ])) : v("", !0),
836
- e(Q) ? (l(), c("table", Ln, [
836
+ e(Z) ? (l(), c("table", Ln, [
837
837
  t("tbody", null, [
838
- (l(!0), c(I, null, Y(e(r).products, ({ id: u, name: L, price: C, description: w }) => (l(), c("tr", { key: u }, [
838
+ (l(!0), c(I, null, Y(e(r).products, ({ id: u, name: L, price: C, description: _ }) => (l(), c("tr", { key: u }, [
839
839
  t("td", Cn, [
840
840
  t("b", null, [
841
841
  t("span", null, a(e(Oe)(L)), 1)
842
842
  ]),
843
- w && w !== L ? (l(), c("span", Fn, a(e(Oe)(w)), 1)) : v("", !0),
844
- t("u", null, a(e(K)(C, e(ie))), 1)
843
+ _ && _ !== L ? (l(), c("span", Fn, a(e(Oe)(_)), 1)) : v("", !0),
844
+ t("u", null, a(e(J)(C, e(ie))), 1)
845
845
  ]),
846
846
  t("td", Sn, [
847
847
  p(ue, {
@@ -906,13 +906,13 @@ const jt = {
906
906
  placeholder: e(n)("booking.reservation.phonePlaceholder"),
907
907
  required: ""
908
908
  }, null, 8, ["modelValue", "label", "placeholder"]),
909
- e(J) ? (l(), $(Vt, {
909
+ e(Q) ? (l(), $(Vt, {
910
910
  key: 0,
911
911
  modelValue: e(h),
912
912
  "onUpdate:modelValue": d[3] || (d[3] = (u) => M(h) ? h.value = u : null),
913
913
  label: e(n)("event.selectArrivalTime"),
914
914
  name: "eventTimeTable",
915
- checkboxes: Je.value,
915
+ checkboxes: Qe.value,
916
916
  required: ""
917
917
  }, null, 8, ["modelValue", "label", "checkboxes"])) : v("", !0),
918
918
  e(pe) === e(ft).FullDayEvent ? (l(), $(ue, {
package/dist/event.js.br CHANGED
Binary file
@@ -1,11 +1,11 @@
1
1
  import { d as x, a as s, g as v, e as t, f as a, c as P, u as T, s as k, b as m, w as p, S as $, i as e, t as i, B as b, j as I, h as D, k as N, l as U, m as F, p as H, q as R } from "./mitt-Dh_4vPVI.js";
2
- import { _ as A, y as C, h as j, I as h, o as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js";
3
- import { u as z } from "./giftCard-ovHKnHZ1.js";
4
- import { _ as J } from "./_.vue_vue_type_style_index_0_lang-CPp11Oc1.js";
5
- import { A as K } from "./ActionField-RCouJ4bL.js";
6
- import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js";
7
- import { F as y } from "./Field-B89fBG1z.js";
8
- import { E as Q } from "./ErrorMessage-CRkFYH0N.js";
2
+ import { _ as A, y as C, h as j, I as h, o as q, s as O, C as W } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
+ import { u as z } from "./giftCard-BsWa3VEY.js";
4
+ import { _ as J } from "./_.vue_vue_type_style_index_0_lang-DKkrP6vk.js";
5
+ import { A as K } from "./ActionField-CRqgWSz1.js";
6
+ import { E as g } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js";
7
+ import { F as y } from "./Field-DnS91ODQ.js";
8
+ import { E as Q } from "./ErrorMessage-b0lY3zUM.js";
9
9
  import { G as Y } from "./style-CXMzdeVK.js";
10
10
  const Z = { class: "gift-card-validation-skeleton" }, tt = { class: "gift-card-validation-skeleton-form" }, et = { class: "gift-card-validation-skeleton-text" }, at = { class: "gift-card-validation-skeleton-input" }, nt = /* @__PURE__ */ x({
11
11
  __name: "GiftCardValidationSkeleton",
Binary file
package/dist/gift-card.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { d as G, u as L, r as O, c as Y, a as s, b as y, w as C, e as l, g as c, f as t, i as e, j as m, n as J, t as q, h as te, D as oe, s as W, E as ne, o as ie, S as se, G as A, H as S, F as re, A as de, B as v, k as ue, l as ce, m as pe, p as me, q as fe } from "./mitt-Dh_4vPVI.js";
2
- import { a as ve, d as T, x as be, _ as x, h as he, c as ke, L as _e, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js";
2
+ import { a as ve, d as T, x as be, _ as x, h as he, c as ke, L as _e, T as M, g as ge, C as ye, v as Ce } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
3
  import { G as Ve } from "./style-CXMzdeVK.js";
4
- import { u as I } from "./giftCard-ovHKnHZ1.js";
5
- import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-CPp11Oc1.js";
6
- import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-CIVRhVLH.js";
7
- import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-DHYObk1q.js";
8
- import { F as U } from "./Field-B89fBG1z.js";
9
- import { E as Te } from "./ErrorMessage-CRkFYH0N.js";
10
- import { S as Ge } from "./TermsOfService-B3RWtSMr.js";
4
+ import { u as I } from "./giftCard-BsWa3VEY.js";
5
+ import { _ as $e } from "./_.vue_vue_type_style_index_0_lang-DKkrP6vk.js";
6
+ import { a as we, C as Fe, P as Ee, _ as Pe } from "./CheckoutWindow-DrZnthDH.js";
7
+ import { E as Ue } from "./Field.vue_vue_type_style_index_0_scoped_6ef33e68_lang-CW-XSJQB.js";
8
+ import { F as U } from "./Field-DnS91ODQ.js";
9
+ import { E as Te } from "./ErrorMessage-b0lY3zUM.js";
10
+ import { S as Ge } from "./TermsOfService-B2ELKRPq.js";
11
11
  const Ae = { class: "media-selector" }, Se = ["accept"], Me = { class: "media-selector-wrapper" }, qe = { class: "media-selector-tools" }, Le = { key: 0 }, Be = { key: 1 }, Re = { key: 2 }, Ie = ["src"], xe = /* @__PURE__ */ G({
12
12
  __name: "MediaSelector",
13
13
  props: {
@@ -430,7 +430,7 @@ const He = { class: "gift-card-skeleton" }, De = { class: "gift-card-skeleton-fo
430
430
  _: 1
431
431
  }, 8, ["styling"]));
432
432
  }
433
- }), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-841dc3cb"]]), pl = ue(), ml = fe();
433
+ }), K = /* @__PURE__ */ x(cl, [["__scopeId", "data-v-aa7653cf"]]), pl = ue(), ml = fe();
434
434
  class fl extends HTMLElement {
435
435
  vueApp;
436
436
  constructor() {
Binary file
@@ -1,5 +1,5 @@
1
1
  import { I as V, s as H, r as t, c as a, J as h } from "./mitt-Dh_4vPVI.js";
2
- import { z as K, a as Q, h as E, G as o, A as y, S, D as M, w as O, E as X } from "./SelectField.vue_vue_type_style_index_0_lang-DpqEmfGX.js";
2
+ import { z as K, a as Q, h as E, G as o, A as y, S, D as M, w as O, E as X } from "./SelectField.vue_vue_type_style_index_0_lang-CZYWu7x-.js";
3
3
  const $ = V("giftCard", () => {
4
4
  const { pay: D } = K(), { display: G } = Q(), { metaData: w, currencyId: x, hasError: P } = H(E()), T = E(), s = t(o.InitialState), u = y("konnectio_name", "", void 0, { serializer: S.string }), v = y("konnectio_email", "", void 0, { serializer: S.string }), d = y("konnectio_phone", "", void 0, { serializer: S.string }), f = t(""), F = t(1), b = t(!0), C = t(""), i = t({
5
5
  base64: "",
@@ -106,4 +106,4 @@ const $ = V("giftCard", () => {
106
106
  export {
107
107
  $ as u
108
108
  };
109
- //# sourceMappingURL=giftCard-ovHKnHZ1.js.map
109
+ //# sourceMappingURL=giftCard-BsWa3VEY.js.map
Binary file