@konnectio/core 4.0.56-rc21 → 4.0.56-rc23

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 (43) hide show
  1. package/dist/{ActionField-mMYGNb-7.js → ActionField-BUeonTqc.js} +1 -1
  2. package/dist/ActionField-BUeonTqc.js.br +9 -0
  3. package/dist/{AvailabilitySkeleton-iD7Vbt5K.js → AvailabilitySkeleton-gympaD6B.js} +77 -75
  4. package/dist/AvailabilitySkeleton-gympaD6B.js.br +0 -0
  5. package/dist/CheckoutWindow-sws5X9v2.js +710 -0
  6. package/dist/CheckoutWindow-sws5X9v2.js.br +0 -0
  7. package/dist/{DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js → DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js} +2003 -1999
  8. package/dist/DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js.br +0 -0
  9. package/dist/{ErrorMessage-4GwDZEsl.js → ErrorMessage-GzJ2T5_d.js} +1 -1
  10. package/dist/ErrorMessage-GzJ2T5_d.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-jvxOZKWx.js → EventAvailabilityForm-c0u7rObv.js} +26 -25
  12. package/dist/EventAvailabilityForm-c0u7rObv.js.br +0 -0
  13. package/dist/{Field-EqFBeBE_.js → Field-hjOjPQhC.js} +1 -1
  14. package/dist/Field-hjOjPQhC.js.br +0 -0
  15. package/dist/{ThankYou-pu1PDfhl.js → ThankYou-d129mmKn.js} +3077 -3563
  16. package/dist/ThankYou-d129mmKn.js.br +0 -0
  17. package/dist/{_--L3VvP-p.js → _-hKpeUU4C.js} +2264 -2243
  18. package/dist/_-hKpeUU4C.js.br +0 -0
  19. package/dist/availability.js +22 -22
  20. package/dist/availability.js.br +0 -0
  21. package/dist/event.js +61 -61
  22. package/dist/event.js.br +0 -0
  23. package/dist/gift-card-validation.js +20 -20
  24. package/dist/gift-card-validation.js.br +0 -0
  25. package/dist/gift-card.js +305 -291
  26. package/dist/gift-card.js.br +0 -0
  27. package/dist/hotel.js +926 -919
  28. package/dist/hotel.js.br +0 -0
  29. package/dist/polyfill.js +1 -1
  30. package/dist/polyfill.js.br +0 -0
  31. package/dist/style.css +1 -1
  32. package/dist/style.css.br +0 -0
  33. package/package.json +3 -2
  34. package/dist/ActionField-mMYGNb-7.js.br +0 -0
  35. package/dist/AvailabilitySkeleton-iD7Vbt5K.js.br +0 -0
  36. package/dist/CheckoutWindow-T32YH60g.js +0 -205
  37. package/dist/CheckoutWindow-T32YH60g.js.br +0 -0
  38. package/dist/DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js.br +0 -0
  39. package/dist/ErrorMessage-4GwDZEsl.js.br +0 -0
  40. package/dist/EventAvailabilityForm-jvxOZKWx.js.br +0 -0
  41. package/dist/Field-EqFBeBE_.js.br +0 -0
  42. package/dist/ThankYou-pu1PDfhl.js.br +0 -0
  43. package/dist/_--L3VvP-p.js.br +0 -0
@@ -1,4 +1,4 @@
1
- import { d as c, r as V, c as m, o as d, a as i, w as v, b as g, _ as q, u as t, e as k, T as B, f as I, C, I as F, g as A } from "./_--L3VvP-p.js";
1
+ import { d as c, r as V, c as m, o as d, a as i, w as v, b as g, _ as q, u as t, e as k, T as B, f as I, C, I as F, g as A } from "./_-hKpeUU4C.js";
2
2
  const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
3
3
  __name: "ActionField",
4
4
  props: {
@@ -0,0 +1,9 @@
1
+ � ��1��/^�],����/Yh[=M5�oA-���&��$�Y ��O(x�Y� Z
2
+ ^by��3
3
+ _:Bɝ�JW� �k�b"_EW�c]o!�]C0tdz*��T�J�����V��+J^�Wk����
4
+ �1�)hf�&�� � x-ET�k��7'8�V��F�V�7l�2�)a(V$<{&t5�(8����EJ��[��NN��
5
+ ���Z��e-n;8e$�Z7$��@T3qtq!+������ �3Y��Ԧ���k+$��C�;�Ֆ�®��@cC_�����S=�֖\
6
+ tK5���l��tjk6�O�~C׆�����b9� �YС̢a*n��M�B�2�NU.0��:��U<�\8g����=~��v(ߠ�� E +9%ՖԐՔ��VJ��1[q��l�lE�i�tҗ* To��9{]�zM�<*�Ԣ$���-c��ta�h��?U��i���ǽ�m��
7
+ �w鰯N9j2��Vۿ�e�b1UüGDL��VuM�ڴ4�ϧ�F��S
8
+ %(EսJ��3k[xÂ:��2������c����~�W�F���|�<ڻ��c��&d�k!<8h���r�%�
9
+ ����Q#�����cҒ�s�I �7�?S[iF9S��9�03�u��t���CK5�j|�J���d�+�9��R�����d�&�$
@@ -1,110 +1,112 @@
1
- import { d as O, j as Q, B as A, a6 as B, a7 as F, D as W, k as X, c as m, G as R, l as Y, o as t, h as s, b as D, u as e, f as i, H as y, _ as Z, i as v, F as C, a as w, T as H, e as E, C as I, n as S, m as ee, a2 as ae, g as T, E as N } from "./_--L3VvP-p.js";
2
- import { _ as le } from "./DateField.vue_vue_type_style_index_0_lang-seJ00xvJ.js";
3
- import { F as p } from "./Field-EqFBeBE_.js";
4
- const te = {
1
+ import { d as T, j as W, a7 as X, D as A, a8 as F, a9 as R, G as Y, k as Z, c as v, H as B, l as ee, o as t, h as s, b as w, u as e, f as i, J as k, _ as ae, i as f, F as H, a as D, T as E, e as I, C as N, n as S, m as le, a3 as te, g as j, E as O } from "./_-hKpeUU4C.js";
2
+ import { _ as ie } from "./DateField.vue_vue_type_style_index_0_lang-Ts9271hZ.js";
3
+ import { F as p } from "./Field-hjOjPQhC.js";
4
+ const ne = {
5
5
  key: 0,
6
6
  class: "konnectio-availability-location"
7
- }, ie = { id: "fresh-booking-availability-date-selection" }, ne = {
7
+ }, oe = { id: "fresh-booking-availability-date-selection" }, se = {
8
8
  key: 1,
9
9
  id: "fresh-booking-availability-guest-selection"
10
- }, oe = { id: "fresh-booking-availability-confirmation" }, se = /* @__PURE__ */ O({
10
+ }, de = { id: "fresh-booking-availability-confirmation" }, ce = /* @__PURE__ */ T({
11
11
  __name: "HotelAvailabilityForm",
12
12
  props: {
13
13
  booking: { type: Boolean, default: !1 },
14
14
  link: {}
15
15
  },
16
16
  setup(x) {
17
- const { t: a } = Q(), d = x, {
17
+ const { t: a } = W(), L = X("emitter"), d = x, {
18
18
  adults: c,
19
19
  children: r,
20
- arrivalDate: f,
21
- departureDate: g,
20
+ arrivalDate: b,
21
+ departureDate: y,
22
22
  location: _,
23
23
  isExpired: z
24
- } = A(B()), { reset: M } = B(), { fetchAvailabilityData: j } = F(), { areListingsLoading: L, hotelList: q, hasHotelList: k } = A(F()), {
25
- firstSelectableDateOffset: U,
26
- lastSelectableDateOffset: $,
27
- disableChildSelection: b,
24
+ } = A(F()), { reset: M } = F(), { fetchAvailabilityData: q } = R(), { areListingsLoading: U, hotelList: G, hasHotelList: h } = A(R()), {
25
+ firstSelectableDateOffset: $,
26
+ lastSelectableDateOffset: C,
27
+ disableChildSelection: m,
28
28
  disableAdultSelection: u
29
- } = A(W()), h = X([]), G = m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (U.value - 1))));
30
- m(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + $.value))), m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + U.value)));
31
- const J = m(() => new Date((/* @__PURE__ */ new Date()).setDate(f.value.getDate() + ($.value + 1)))), V = m(() => !(!u && c.value === 0)), K = m(() => typeof d.link != "string");
32
- function P() {
29
+ } = A(Y()), g = Z([]), J = v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + ($.value - 1))));
30
+ v(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + C.value))), v(() => new Date((/* @__PURE__ */ new Date()).setDate(b.value.getDate() + $.value)));
31
+ const K = v(() => new Date((/* @__PURE__ */ new Date()).setDate(b.value.getDate() + (C.value + 1)))), V = v(() => !(!u && c.value === 0)), P = v(() => typeof d.link != "string");
32
+ function Q() {
33
33
  if (d.booking === !1)
34
- if (K.value) {
35
- const n = ae();
34
+ if (P.value) {
35
+ const n = te();
36
36
  d.link[n] ? window.location.replace(d.link[n]) : d.link.en ? window.location.replace(d.link.en) : console.log("Sprog understøttes ikke");
37
37
  } else
38
38
  window.location.replace(d.link);
39
39
  else
40
- V.value && j();
40
+ V.value && q();
41
41
  }
42
- return R(f, (n) => {
42
+ return B(b, (n) => {
43
43
  const l = new Date(new Date(n).setDate(new Date(n).getDate() + 1));
44
- new Date(g.value) < l && (g.value = l);
45
- }), R(h, (n) => {
46
- f.value = n[0], g.value = n[1];
47
- }), Y(() => {
48
- z.value && M(), h.value = [f.value, g.value];
44
+ new Date(y.value) < l && (y.value = l);
45
+ }), L.on("forcedDateChange", () => {
46
+ g.value = [b.value, y.value];
47
+ }), B(g, (n) => {
48
+ b.value = n[0], y.value = n[1];
49
+ }), ee(() => {
50
+ z.value && M(), g.value = [b.value, y.value];
49
51
  }), (n, l) => (t(), s("form", {
50
52
  id: "konnectio-availability-form",
51
53
  class: S({ reservation: n.booking }),
52
54
  type: "availability",
53
- onSubmit: ee(P, ["prevent"])
55
+ onSubmit: le(Q, ["prevent"])
54
56
  }, [
55
- D("ul", {
57
+ w("ul", {
56
58
  id: "konnectio-availability-form-content",
57
59
  class: S([
58
60
  { "is-booking-page": n.booking },
59
- { "only-adult-guests": !e(u) && e(b) },
60
- { "only-child-guests": !e(b) && e(u) },
61
- { "no-guests": e(u) && e(b) },
62
- { "all-guests": !e(u) && !e(b) },
63
- { "has-location": e(k) }
61
+ { "only-adult-guests": !e(u) && e(m) },
62
+ { "only-child-guests": !e(m) && e(u) },
63
+ { "no-guests": e(u) && e(m) },
64
+ { "all-guests": !e(u) && !e(m) },
65
+ { "has-location": e(h) }
64
66
  ])
65
67
  }, [
66
- e(k) ? (t(), s("li", te, [
67
- i(Z, {
68
+ e(h) ? (t(), s("li", ne, [
69
+ i(ae, {
68
70
  modelValue: e(_),
69
- "onUpdate:modelValue": l[0] || (l[0] = (o) => y(_) ? _.value = o : null),
71
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => k(_) ? _.value = o : null),
70
72
  label: e(a)("general.location"),
71
73
  icon: "location-dot",
72
74
  "icon-type": "fas",
73
75
  "icon-placement": "label",
74
- options: e(q),
76
+ options: e(G),
75
77
  searchable: !1
76
78
  }, null, 8, ["modelValue", "label", "options"])
77
- ])) : v("", !0),
78
- D("li", ie, [
79
- i(le, {
80
- modelValue: h.value,
81
- "onUpdate:modelValue": l[1] || (l[1] = (o) => h.value = o),
79
+ ])) : f("", !0),
80
+ w("li", oe, [
81
+ i(ie, {
82
+ modelValue: g.value,
83
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => g.value = o),
82
84
  label: e(a)("availability.checkInOut"),
83
85
  "icon-type": "fas",
84
86
  "icon-placement": "label",
85
87
  "min-range": 1,
86
- "min-date": G.value,
87
- "max-date": J.value,
88
+ "min-date": J.value,
89
+ "max-date": K.value,
88
90
  range: ""
89
91
  }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
90
- v("", !0)
92
+ f("", !0)
91
93
  ]),
92
- !e(u) || !e(b) ? (t(), s("li", ne, [
93
- e(u) ? v("", !0) : (t(), s(C, { key: 0 }, [
94
- e(k) ? (t(), w(H, {
94
+ !e(u) || !e(m) ? (t(), s("li", se, [
95
+ e(u) ? f("", !0) : (t(), s(H, { key: 0 }, [
96
+ e(h) ? (t(), D(E, {
95
97
  key: 0,
96
98
  modelValue: e(c),
97
- "onUpdate:modelValue": l[4] || (l[4] = (o) => y(c) ? c.value = o : null),
99
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => k(c) ? c.value = o : null),
98
100
  label: e(a)("availability.adults"),
99
101
  description: e(a)("general.adultAgeRange"),
100
102
  "icon-type": "fas",
101
103
  "icon-placement": "label",
102
104
  name: "adults",
103
105
  icon: "male"
104
- }, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
106
+ }, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
105
107
  key: 1,
106
108
  modelValue: e(c),
107
- "onUpdate:modelValue": l[5] || (l[5] = (o) => y(c) ? c.value = o : null),
109
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => k(c) ? c.value = o : null),
108
110
  label: e(a)("availability.adults"),
109
111
  description: e(a)("general.adultAgeRange"),
110
112
  "icon-type": "fas",
@@ -113,21 +115,21 @@ const te = {
113
115
  icon: "male"
114
116
  }, null, 8, ["modelValue", "label", "description"]))
115
117
  ], 64)),
116
- e(b) ? v("", !0) : (t(), s(C, { key: 1 }, [
117
- e(k) ? (t(), w(H, {
118
+ e(m) ? f("", !0) : (t(), s(H, { key: 1 }, [
119
+ e(h) ? (t(), D(E, {
118
120
  key: 0,
119
121
  modelValue: e(r),
120
- "onUpdate:modelValue": l[6] || (l[6] = (o) => y(r) ? r.value = o : null),
122
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => k(r) ? r.value = o : null),
121
123
  label: e(a)("availability.children"),
122
124
  description: e(a)("general.childAgeRange"),
123
125
  "icon-type": "fas",
124
126
  "icon-placement": "label",
125
127
  name: "children",
126
128
  icon: "child"
127
- }, null, 8, ["modelValue", "label", "description"])) : (t(), w(E, {
129
+ }, null, 8, ["modelValue", "label", "description"])) : (t(), D(I, {
128
130
  key: 1,
129
131
  modelValue: e(r),
130
- "onUpdate:modelValue": l[7] || (l[7] = (o) => y(r) ? r.value = o : null),
132
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => k(r) ? r.value = o : null),
131
133
  label: e(a)("availability.children"),
132
134
  description: e(a)("general.childAgeRange"),
133
135
  "icon-type": "fas",
@@ -136,54 +138,54 @@ const te = {
136
138
  icon: "child"
137
139
  }, null, 8, ["modelValue", "label", "description"]))
138
140
  ], 64))
139
- ])) : v("", !0),
140
- D("li", oe, [
141
- i(I, {
141
+ ])) : f("", !0),
142
+ w("li", de, [
143
+ i(N, {
142
144
  class: "konnectio-availability-submit-small",
143
145
  type: "submit",
144
146
  icon: "search",
145
147
  "icon-type": "fas",
146
148
  disabled: !V.value,
147
- "is-loading": e(L)
149
+ "is-loading": e(U)
148
150
  }, null, 8, ["disabled", "is-loading"]),
149
- i(I, {
151
+ i(N, {
150
152
  class: "konnectio-availability-submit-large",
151
153
  type: "submit",
152
154
  label: e(a)("availability.buttonLabel"),
153
155
  disabled: !V.value,
154
- "is-loading": e(L)
156
+ "is-loading": e(U)
155
157
  }, null, 8, ["label", "disabled", "is-loading"])
156
158
  ])
157
159
  ], 2)
158
160
  ], 34));
159
161
  }
160
- }), fe = /* @__PURE__ */ T(se, [["__scopeId", "data-v-50791fef"]]), de = { class: "availability-skeleton" }, ce = {
162
+ }), ge = /* @__PURE__ */ j(ce, [["__scopeId", "data-v-25343459"]]), ue = { class: "availability-skeleton" }, re = {
161
163
  key: 0,
162
164
  class: "availability-skeleton-navigation"
163
- }, ue = { class: "availability-skeleton-content" }, re = {
165
+ }, be = { class: "availability-skeleton-content" }, me = {
164
166
  key: 1,
165
167
  class: "availability-skeleton-event"
166
- }, be = /* @__PURE__ */ O({
168
+ }, ve = /* @__PURE__ */ T({
167
169
  __name: "AvailabilitySkeleton",
168
170
  props: {
169
171
  view: { default: "hotel" },
170
172
  hotel: { type: Boolean, default: !1 }
171
173
  },
172
174
  setup(x) {
173
- return (a, d) => (t(), s("div", de, [
174
- a.view === "both" ? (t(), s("div", ce, [
175
- i(N, {
175
+ return (a, L) => (t(), s("div", ue, [
176
+ a.view === "both" ? (t(), s("div", re, [
177
+ i(O, {
176
178
  height: "28px",
177
179
  width: "60px",
178
180
  "border-radius": "20px"
179
181
  }),
180
- i(N, {
182
+ i(O, {
181
183
  height: "28px",
182
184
  width: "60px",
183
185
  "border-radius": "20px"
184
186
  })
185
- ])) : v("", !0),
186
- D("div", ue, [
187
+ ])) : f("", !0),
188
+ w("div", be, [
187
189
  a.view !== "event" ? (t(), s("div", {
188
190
  key: 0,
189
191
  class: S([
@@ -198,7 +200,7 @@ const te = {
198
200
  "with-icon": "",
199
201
  "no-label": ""
200
202
  })
201
- ], 2)) : (t(), s("div", re, [
203
+ ], 2)) : (t(), s("div", me, [
202
204
  i(p, { "with-icon": "" }),
203
205
  i(p, {
204
206
  "with-icon": "",
@@ -208,8 +210,8 @@ const te = {
208
210
  ])
209
211
  ]));
210
212
  }
211
- }), ye = /* @__PURE__ */ T(be, [["__scopeId", "data-v-17762b9b"]]);
213
+ }), ke = /* @__PURE__ */ j(ve, [["__scopeId", "data-v-17762b9b"]]);
212
214
  export {
213
- ye as A,
214
- fe as H
215
+ ke as A,
216
+ ge as H
215
217
  };