@konnectio/core 4.0.56-rc31 → 4.0.56-rc32

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 (46) hide show
  1. package/dist/{ActionField-qP-3ktN4.js → ActionField-DArUoq0Y.js} +10 -10
  2. package/dist/ActionField-DArUoq0Y.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-5yqtoHjX.js +277 -0
  4. package/dist/AvailabilitySkeleton-5yqtoHjX.js.br +0 -0
  5. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Breyx_L4.js +7681 -0
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Breyx_L4.js.br +0 -0
  7. package/dist/{CheckoutWindow-RWkSWvbk.js → CheckoutWindow-B2MbpsFT.js} +55 -55
  8. package/dist/CheckoutWindow-B2MbpsFT.js.br +0 -0
  9. package/dist/{ErrorMessage-z0JJ8Q3W.js → ErrorMessage-3LkqIsav.js} +1 -1
  10. package/dist/ErrorMessage-3LkqIsav.js.br +0 -0
  11. package/dist/EventAvailabilityForm-TTNq-2y8.js +423 -0
  12. package/dist/EventAvailabilityForm-TTNq-2y8.js.br +0 -0
  13. package/dist/Field-Cthg8pWO.js +41 -0
  14. package/dist/Field-Cthg8pWO.js.br +0 -0
  15. package/dist/{Field-C9r1d8IB.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Dg5SIKsf.js} +11520 -11750
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Dg5SIKsf.js.br +0 -0
  17. package/dist/{TermsOfService-oZz-B-KI.js → TermsOfService-D9C31C5G.js} +2 -2
  18. package/dist/availability.js +45 -46
  19. package/dist/availability.js.br +0 -0
  20. package/dist/event.js +622 -491
  21. package/dist/event.js.br +0 -0
  22. package/dist/gift-card-validation.js +87 -77
  23. package/dist/gift-card-validation.js.br +0 -0
  24. package/dist/gift-card.js +261 -260
  25. package/dist/gift-card.js.br +0 -0
  26. package/dist/hotel.js +1016 -1027
  27. package/dist/hotel.js.br +0 -0
  28. package/dist/{masonry.plugin-fa0tia29.js → masonry.plugin-BEO9JACn.js} +1263 -1271
  29. package/dist/masonry.plugin-BEO9JACn.js.br +0 -0
  30. package/dist/polyfill.js +2507 -2503
  31. package/dist/polyfill.js.br +0 -0
  32. package/dist/style.css +1 -1
  33. package/dist/style.css.br +0 -0
  34. package/package.json +25 -24
  35. package/dist/ActionField-qP-3ktN4.js.br +0 -0
  36. package/dist/AvailabilitySkeleton-uaCnfwHM.js +0 -7665
  37. package/dist/AvailabilitySkeleton-uaCnfwHM.js.br +0 -0
  38. package/dist/CheckoutWindow-RWkSWvbk.js.br +0 -0
  39. package/dist/ErrorMessage-z0JJ8Q3W.js.br +0 -0
  40. package/dist/EventAvailabilityForm-LIgUj1t3.js +0 -325
  41. package/dist/EventAvailabilityForm-LIgUj1t3.js.br +0 -0
  42. package/dist/Field-C9r1d8IB.js.br +0 -0
  43. package/dist/HotelAvailabilityForm-AQ4VA15t.js +0 -212
  44. package/dist/HotelAvailabilityForm-AQ4VA15t.js.br +0 -0
  45. package/dist/masonry.plugin-fa0tia29.js.br +0 -0
  46. /package/dist/{_commonjsHelpers-f3sTPFkQ.js → _commonjsHelpers-DaMA6jEr.js} +0 -0
@@ -1,5 +1,5 @@
1
- import { d as c, z as V, e as p, f as d, k as i, x as v, h as q, _ as g, j as t, n as k, T as B, m as I, C, I as F, v as h } from "./Field-C9r1d8IB.js";
2
- const A = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ c({
1
+ import { d as c, r as V, i as m, o as d, a as i, w as v, f as g, j as q, g as t, k, T as B, e as I, C, I as F, _ as A } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Dg5SIKsf.js";
2
+ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
3
3
  __name: "ActionField",
4
4
  props: {
5
5
  modelValue: {},
@@ -29,10 +29,10 @@ const A = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ c({
29
29
  function r(e) {
30
30
  s("update:modelValue", e);
31
31
  }
32
- const n = p({
32
+ const n = m({
33
33
  get: () => u.modelValue,
34
34
  set: (e) => r(e)
35
- }), m = p({
35
+ }), p = m({
36
36
  get: () => u.modelValue,
37
37
  set: (e) => r(e)
38
38
  });
@@ -49,8 +49,8 @@ const A = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ c({
49
49
  readonly: e.readonly
50
50
  }, {
51
51
  default: v(() => [
52
- q("div", A, [
53
- e.type === "dropdown" && e.data ? (d(), i(g, {
52
+ g("div", L, [
53
+ e.type === "dropdown" && e.data ? (d(), i(q, {
54
54
  key: 0,
55
55
  modelValue: n.value,
56
56
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
@@ -61,8 +61,8 @@ const A = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ c({
61
61
  placeholder: e.placeholder
62
62
  }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(k, {
63
63
  key: 1,
64
- modelValue: m.value,
65
- "onUpdate:modelValue": a[1] || (a[1] = (l) => m.value = l),
64
+ modelValue: p.value,
65
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
66
66
  id: t(o),
67
67
  "min-value": e.minValue,
68
68
  "max-value": e.maxValue
@@ -92,7 +92,7 @@ const A = { class: "fresh-booking-action-field" }, L = /* @__PURE__ */ c({
92
92
  _: 1
93
93
  }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
94
94
  }
95
- }), $ = /* @__PURE__ */ h(L, [["__scopeId", "data-v-3e77e321"]]);
95
+ }), h = /* @__PURE__ */ A(T, [["__scopeId", "data-v-3e77e321"]]);
96
96
  export {
97
- $ as A
97
+ h as A
98
98
  };
Binary file
@@ -0,0 +1,277 @@
1
+ import { d as X, u as ve, $ as me, K as _, l as G, a0 as K, N as be, m as p, i as s, a1 as W, p as pe, o as n, c, e as u, w as De, g as e, a as D, T as A, j as ge, b as y, f as L, F as Z, k as J, C as P, n as x, Z as ye, q as fe, W as ke, _ as Y, E as Q } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-Dg5SIKsf.js";
2
+ import { _ as he } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Breyx_L4.js";
3
+ import { F as g } from "./Field-Cthg8pWO.js";
4
+ const we = {
5
+ class: "konnectio-availability-location",
6
+ key: "location"
7
+ }, Ve = {
8
+ id: "konnectio-availability-date-selection",
9
+ key: "multiDate"
10
+ }, _e = {
11
+ id: "konnectio-availability-guest-selection",
12
+ key: "guests"
13
+ }, Ae = {
14
+ id: "konnectio-availability-confirmation",
15
+ key: "confirm"
16
+ }, Le = /* @__PURE__ */ X({
17
+ __name: "HotelAvailabilityForm",
18
+ props: {
19
+ booking: { type: Boolean, default: !1 },
20
+ link: {},
21
+ selectedLocation: { default: NaN }
22
+ },
23
+ setup(N) {
24
+ const { t: i } = ve(), $ = me("emitter"), l = N, {
25
+ adults: S,
26
+ children: U,
27
+ arrivalDate: C,
28
+ departureDate: B,
29
+ location: F,
30
+ hasHotelLocations: h,
31
+ hotelLocations: H,
32
+ isExpired: ee
33
+ } = _(G()), { reset: ae, updateHotelAvailability: le, fetchMetadata: te } = G(), { fetchAvailabilityData: ie } = K(), { areListingsLoading: R } = _(K()), {
34
+ firstSelectableDateOffset: E,
35
+ lastSelectableDateOffset: I,
36
+ disableChildSelection: v,
37
+ disableAdultSelection: r,
38
+ controlLocation: oe
39
+ } = _(be()), ne = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), se = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), T = p(2), M = p(0), O = p(ne()), j = p(se()), q = p(oe.value), m = s({
40
+ get: () => l.booking ? S.value : T.value,
41
+ set: (a) => {
42
+ l.booking ? S.value = Number(a) : T.value = Number(a);
43
+ }
44
+ }), f = s({
45
+ get: () => l.booking ? U.value : M.value,
46
+ set: (a) => {
47
+ l.booking ? U.value = Number(a) : M.value = Number(a);
48
+ }
49
+ }), d = s({
50
+ get: () => l.booking ? C.value : O.value,
51
+ set: (a) => {
52
+ l.booking ? C.value = a : O.value = a;
53
+ }
54
+ }), b = s({
55
+ get: () => l.booking ? B.value : j.value,
56
+ set: (a) => {
57
+ l.booking ? B.value = a : j.value = a;
58
+ }
59
+ }), w = s({
60
+ get: () => isNaN(l.selectedLocation) ? l.booking ? F.value : q.value : l.selectedLocation,
61
+ set: (a) => {
62
+ l.booking ? F.value = a : q.value = a;
63
+ }
64
+ }), z = s(() => {
65
+ const a = H.value.find(({ id: t }) => t === l.selectedLocation);
66
+ return a ? a.name : "";
67
+ }), k = p([]), ue = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (E.value - 1)))), Ce = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + I.value))), Be = s(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + E.value))), ce = s(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (I.value + 1)))), V = s(() => !(!r && m.value === 0)), re = s(() => typeof l.link != "string");
68
+ function de() {
69
+ if (l.booking === !1)
70
+ if (le({
71
+ adults: m.value,
72
+ children: f.value,
73
+ arrivalDate: d.value,
74
+ departureDate: b.value,
75
+ location: w.value
76
+ }), re.value) {
77
+ const a = ke();
78
+ l.link[a] ? window.location.replace(l.link[a]) : l.link.en ? window.location.replace(l.link.en) : console.log("Sprog understøttes ikke");
79
+ } else
80
+ window.location.replace(l.link);
81
+ else
82
+ V.value && ie();
83
+ }
84
+ return W(d, (a) => {
85
+ const t = new Date(new Date(a).setDate(new Date(a).getDate() + 1));
86
+ new Date(b.value) < t && (b.value = t);
87
+ }), $.on("forcedDateChange", () => {
88
+ k.value = [d.value, b.value];
89
+ }), W(k, (a) => {
90
+ d.value = a[0], b.value = a[1];
91
+ }), pe(() => {
92
+ ee.value && ae(), l.booking === !0 && te(), k.value = [d.value, b.value];
93
+ }), (a, t) => (n(), c("form", {
94
+ id: "konnectio-availability-form",
95
+ class: x({ reservation: a.booking }),
96
+ type: "availability",
97
+ onSubmit: fe(de, ["prevent"])
98
+ }, [
99
+ u(ye, {
100
+ id: "konnectio-availability-form-content",
101
+ tag: "ul",
102
+ class: x([
103
+ { "is-booking-page": a.booking },
104
+ { "only-adult-guests": !e(r) && e(v) },
105
+ { "only-child-guests": !e(v) && e(r) },
106
+ { "no-guests": e(r) && e(v) },
107
+ { "all-guests": !e(r) && !e(v) },
108
+ { "has-location": e(h) }
109
+ ])
110
+ }, {
111
+ default: De(() => [
112
+ e(h) ? (n(), c("li", we, [
113
+ isNaN(a.selectedLocation) ? (n(), D(ge, {
114
+ key: 1,
115
+ modelValue: w.value,
116
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => w.value = o),
117
+ label: e(i)("general.location"),
118
+ icon: "location-dot",
119
+ "icon-type": "fas",
120
+ "icon-placement": "label",
121
+ "label-key": "name",
122
+ "value-key": "id",
123
+ options: e(H),
124
+ searchable: !1
125
+ }, null, 8, ["modelValue", "label", "options"])) : (n(), D(A, {
126
+ key: 0,
127
+ modelValue: z.value,
128
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => z.value = o),
129
+ label: e(i)("general.location"),
130
+ icon: "location-dot",
131
+ "icon-type": "fas",
132
+ "icon-placement": "label",
133
+ readonly: ""
134
+ }, null, 8, ["modelValue", "label"]))
135
+ ])) : y("", !0),
136
+ L("li", Ve, [
137
+ u(he, {
138
+ modelValue: k.value,
139
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => k.value = o),
140
+ label: e(i)("availability.checkInOut"),
141
+ "icon-type": "fas",
142
+ "icon-placement": "label",
143
+ "min-range": 1,
144
+ "min-date": ue.value,
145
+ "max-date": ce.value,
146
+ range: ""
147
+ }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
148
+ y("", !0)
149
+ ]),
150
+ !e(r) || !e(v) ? (n(), c("li", _e, [
151
+ e(r) ? y("", !0) : (n(), c(Z, { key: 0 }, [
152
+ e(h) ? (n(), D(A, {
153
+ key: 0,
154
+ modelValue: m.value,
155
+ "onUpdate:modelValue": t[5] || (t[5] = (o) => m.value = o),
156
+ type: "number",
157
+ label: e(i)("availability.adults"),
158
+ description: e(i)("general.adultAgeRange"),
159
+ "icon-type": "fas",
160
+ "icon-placement": "label",
161
+ name: "adults",
162
+ icon: "male"
163
+ }, null, 8, ["modelValue", "label", "description"])) : (n(), D(J, {
164
+ key: 1,
165
+ modelValue: m.value,
166
+ "onUpdate:modelValue": t[6] || (t[6] = (o) => m.value = o),
167
+ label: e(i)("availability.adults"),
168
+ description: e(i)("general.adultAgeRange"),
169
+ "icon-type": "fas",
170
+ "icon-placement": "label",
171
+ name: "adults",
172
+ icon: "male"
173
+ }, null, 8, ["modelValue", "label", "description"]))
174
+ ], 64)),
175
+ e(v) ? y("", !0) : (n(), c(Z, { key: 1 }, [
176
+ e(h) ? (n(), D(A, {
177
+ key: 0,
178
+ modelValue: f.value,
179
+ "onUpdate:modelValue": t[7] || (t[7] = (o) => f.value = o),
180
+ type: "number",
181
+ label: e(i)("availability.children"),
182
+ description: e(i)("general.childAgeRange"),
183
+ "icon-type": "fas",
184
+ "icon-placement": "label",
185
+ name: "children",
186
+ icon: "child"
187
+ }, null, 8, ["modelValue", "label", "description"])) : (n(), D(J, {
188
+ key: 1,
189
+ modelValue: f.value,
190
+ "onUpdate:modelValue": t[8] || (t[8] = (o) => f.value = o),
191
+ label: e(i)("availability.children"),
192
+ description: e(i)("general.childAgeRange"),
193
+ "icon-type": "fas",
194
+ "icon-placement": "label",
195
+ name: "children",
196
+ icon: "child"
197
+ }, null, 8, ["modelValue", "label", "description"]))
198
+ ], 64))
199
+ ])) : y("", !0),
200
+ L("li", Ae, [
201
+ u(P, {
202
+ class: "konnectio-availability-submit-small",
203
+ type: "submit",
204
+ icon: "search",
205
+ "icon-type": "fas",
206
+ disabled: !V.value,
207
+ "is-loading": e(R)
208
+ }, null, 8, ["disabled", "is-loading"]),
209
+ u(P, {
210
+ class: "konnectio-availability-submit-large",
211
+ type: "submit",
212
+ label: e(i)("availability.buttonLabel"),
213
+ disabled: !V.value,
214
+ "is-loading": e(R)
215
+ }, null, 8, ["label", "disabled", "is-loading"])
216
+ ])
217
+ ]),
218
+ _: 1
219
+ }, 8, ["class"])
220
+ ], 34));
221
+ }
222
+ }), Ee = /* @__PURE__ */ Y(Le, [["__scopeId", "data-v-f6d5ea17"]]), xe = { class: "availability-skeleton" }, Ne = {
223
+ key: 0,
224
+ class: "availability-skeleton-navigation"
225
+ }, $e = { class: "availability-skeleton-content" }, Se = {
226
+ key: 1,
227
+ class: "availability-skeleton-event"
228
+ }, Ue = /* @__PURE__ */ X({
229
+ __name: "AvailabilitySkeleton",
230
+ props: {
231
+ view: { default: "hotel" },
232
+ hotel: { type: Boolean, default: !1 }
233
+ },
234
+ setup(N) {
235
+ return (i, $) => (n(), c("div", xe, [
236
+ i.view === "both" ? (n(), c("div", Ne, [
237
+ u(Q, {
238
+ height: "28px",
239
+ width: "60px",
240
+ "border-radius": "20px"
241
+ }),
242
+ u(Q, {
243
+ height: "28px",
244
+ width: "60px",
245
+ "border-radius": "20px"
246
+ })
247
+ ])) : y("", !0),
248
+ L("div", $e, [
249
+ i.view !== "event" ? (n(), c("div", {
250
+ key: 0,
251
+ class: x([
252
+ "availability-skeleton-hotel",
253
+ { "within-hotel": i.hotel }
254
+ ])
255
+ }, [
256
+ u(g, { "with-icon": "" }),
257
+ u(g, { "with-icon": "" }),
258
+ u(g, { "with-icon": "" }),
259
+ u(g, {
260
+ "with-icon": "",
261
+ "no-label": ""
262
+ })
263
+ ], 2)) : (n(), c("div", Se, [
264
+ u(g, { "with-icon": "" }),
265
+ u(g, {
266
+ "with-icon": "",
267
+ "no-label": ""
268
+ })
269
+ ]))
270
+ ])
271
+ ]));
272
+ }
273
+ }), Ie = /* @__PURE__ */ Y(Ue, [["__scopeId", "data-v-17762b9b"]]);
274
+ export {
275
+ Ie as A,
276
+ Ee as H
277
+ };