@konnectio/core 4.0.64 → 4.0.66

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 (68) hide show
  1. package/dist/{ActionField-D28Pe5Bb.js → ActionField-BFyj_Q6Y.js} +3 -3
  2. package/dist/ActionField-BFyj_Q6Y.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-CErmWvze.js +299 -0
  4. package/dist/AvailabilitySkeleton-CErmWvze.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dj5wPaD7.js} +8 -6
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Dj5wPaD7.js.br +0 -0
  7. package/dist/{CheckoutWindow-Cv7p0DrF.js → CheckoutWindow-D17Ro_DJ.js} +4 -4
  8. package/dist/CheckoutWindow-D17Ro_DJ.js.br +0 -0
  9. package/dist/{ErrorMessage-T11Ou3eh.js → ErrorMessage-CGQ7GBeF.js} +3 -3
  10. package/dist/ErrorMessage-CGQ7GBeF.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-DeqQKdKV.js → EventAvailabilityForm-CJfzXqvA.js} +5 -5
  12. package/dist/EventAvailabilityForm-CJfzXqvA.js.br +0 -0
  13. package/dist/{Field-DcoRYqr8.js → Field-U4PRgzZl.js} +3 -3
  14. package/dist/Field-U4PRgzZl.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DZub1PhF.js +18818 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DZub1PhF.js.br +0 -0
  17. package/dist/{TermsOfService-CL0zaNw_.js → TermsOfService-DOeiT92a.js} +5 -5
  18. package/dist/TermsOfService-DOeiT92a.js.br +0 -0
  19. package/dist/{_-C5tf0vwv.js → _-D7TRIaiE.js} +2 -2
  20. package/dist/{_.vue_vue_type_style_index_0_lang-BWAizmh6.js → _.vue_vue_type_style_index_0_lang-DEeIjtcD.js} +4 -4
  21. package/dist/_.vue_vue_type_style_index_0_lang-DEeIjtcD.js.br +0 -0
  22. package/dist/{_commonjsHelpers-BeCRh3Xf.js → _commonjsHelpers-BfPn4qnR.js} +2 -2
  23. package/dist/_commonjsHelpers-BfPn4qnR.js.br +0 -0
  24. package/dist/{_sentry-release-injection-file-CY9ljBue.js → _sentry-release-injection-file-Yp2ihk3D.js} +3 -3
  25. package/dist/_sentry-release-injection-file-Yp2ihk3D.js.br +0 -0
  26. package/dist/availability.js +42 -40
  27. package/dist/availability.js.br +0 -0
  28. package/dist/deep-link.js +2 -2
  29. package/dist/deep-link.js.br +0 -0
  30. package/dist/event.js +9 -9
  31. package/dist/event.js.br +0 -0
  32. package/dist/gift-card-validation.js +9 -9
  33. package/dist/gift-card-validation.js.br +0 -0
  34. package/dist/gift-card.js +10 -10
  35. package/dist/gift-card.js.br +0 -0
  36. package/dist/{giftCard-CHf9cbmB.js → giftCard-ByGCHqVm.js} +4 -4
  37. package/dist/giftCard-ByGCHqVm.js.br +0 -0
  38. package/dist/hotel.js +868 -859
  39. package/dist/hotel.js.br +0 -0
  40. package/dist/{masonry.plugin-q1wqMEhq.js → masonry.plugin-B2WHiWIP.js} +8 -8
  41. package/dist/masonry.plugin-B2WHiWIP.js.br +0 -0
  42. package/dist/{mitt-CZC0Vuw7.js → mitt-DZo2eOMo.js} +2 -2
  43. package/dist/mitt-DZo2eOMo.js.br +0 -0
  44. package/dist/polyfill.js +187 -187
  45. package/dist/polyfill.js.br +0 -0
  46. package/dist/{style-Di3bMYae.js → style-DCxChsQz.js} +2 -2
  47. package/dist/style-DCxChsQz.js.br +0 -0
  48. package/dist/style.css +1 -1
  49. package/dist/style.css.br +0 -0
  50. package/package.json +9 -9
  51. package/dist/ActionField-D28Pe5Bb.js.br +0 -0
  52. package/dist/AvailabilitySkeleton-BGEhEqa-.js +0 -301
  53. package/dist/AvailabilitySkeleton-BGEhEqa-.js.br +0 -0
  54. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js.br +0 -0
  55. package/dist/CheckoutWindow-Cv7p0DrF.js.br +0 -0
  56. package/dist/ErrorMessage-T11Ou3eh.js.br +0 -0
  57. package/dist/EventAvailabilityForm-DeqQKdKV.js.br +0 -0
  58. package/dist/Field-DcoRYqr8.js.br +0 -0
  59. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js +0 -18743
  60. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js.br +0 -0
  61. package/dist/TermsOfService-CL0zaNw_.js.br +0 -0
  62. package/dist/_.vue_vue_type_style_index_0_lang-BWAizmh6.js.br +0 -0
  63. package/dist/_commonjsHelpers-BeCRh3Xf.js.br +0 -0
  64. package/dist/_sentry-release-injection-file-CY9ljBue.js.br +0 -0
  65. package/dist/giftCard-CHf9cbmB.js.br +0 -0
  66. package/dist/masonry.plugin-q1wqMEhq.js.br +0 -0
  67. package/dist/mitt-CZC0Vuw7.js.br +0 -0
  68. package/dist/style-Di3bMYae.js.br +0 -0
package/dist/style.css.br CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.0.64",
3
+ "version": "4.0.66",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -38,11 +38,11 @@
38
38
  "@chenfengyuan/vue-number-input": "2.0.1",
39
39
  "@egjs/flicking-plugins": "4.7.1",
40
40
  "@egjs/vue3-flicking": "4.11.3",
41
- "@fortawesome/fontawesome-pro": "6.5.2",
42
- "@fortawesome/fontawesome-svg-core": "6.5.2",
43
- "@fortawesome/free-brands-svg-icons": "6.5.2",
44
- "@fortawesome/pro-light-svg-icons": "6.5.2",
45
- "@fortawesome/pro-solid-svg-icons": "6.5.2",
41
+ "@fortawesome/fontawesome-pro": "6.6.0",
42
+ "@fortawesome/fontawesome-svg-core": "6.6.0",
43
+ "@fortawesome/free-brands-svg-icons": "6.6.0",
44
+ "@fortawesome/pro-light-svg-icons": "6.6.0",
45
+ "@fortawesome/pro-solid-svg-icons": "6.6.0",
46
46
  "@fortawesome/vue-fontawesome": "3.0.8",
47
47
  "@intlify/unplugin-vue-i18n": "4.0.0",
48
48
  "@sentry/vue": "8.19.0",
@@ -75,12 +75,12 @@
75
75
  "vue3-sticky-sidebar": "2.0.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@babel/eslint-parser": "7.24.7",
78
+ "@babel/eslint-parser": "7.24.8",
79
79
  "@originjs/vite-plugin-commonjs": "1.0.3",
80
80
  "@sentry/vite-plugin": "2.21.1",
81
81
  "@types/node": "20.14.10",
82
- "@typescript-eslint/eslint-plugin": "7.15.0",
83
- "@typescript-eslint/parser": "7.15.0",
82
+ "@typescript-eslint/eslint-plugin": "7.17.0",
83
+ "@typescript-eslint/parser": "7.17.0",
84
84
  "@vitejs/plugin-vue": "5.0.5",
85
85
  "@vue/eslint-config-typescript": "13.0.0",
86
86
  "@vue/test-utils": "2.4.6",
Binary file
@@ -1,301 +0,0 @@
1
- import { d as ae, G as be, r as f, c as s, z as Q, o as pe, a as i, g as d, f as u, w as fe, u as e, b as y, i as D, e as $, F as W, n as C, y as ye, h as ge } from "./_sentry-release-injection-file-CY9ljBue.js";
2
- import { u as De, s as L } from "./mitt-CZC0Vuw7.js";
3
- import { u as X, y as Y, e as ke, T as N, o as we, b as Z, d as G, p as he, _ as le, E as ee } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-B53ZPSma.js";
4
- import { _ as _e } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-CFzvon5m.js";
5
- import { F as g } from "./Field-DcoRYqr8.js";
6
- (function() {
7
- try {
8
- var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new Error().stack;
9
- t && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[t] = "5bd04666-c403-4df9-ab3d-a72e03491a7e", r._sentryDebugIdIdentifier = "sentry-dbid-5bd04666-c403-4df9-ab3d-a72e03491a7e");
10
- } catch {
11
- }
12
- })();
13
- {
14
- var _ = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
15
- _._sentryModuleMetadata = _._sentryModuleMetadata || {}, _._sentryModuleMetadata[new Error().stack] = Object.assign(
16
- {},
17
- _._sentryModuleMetadata[new Error().stack],
18
- { "_sentryBundlerPluginAppKey:konnectio-frontend-core": !0 }
19
- );
20
- }
21
- const Ve = {
22
- class: "konnectio-availability-location",
23
- key: "location"
24
- }, Ae = {
25
- id: "konnectio-availability-date-selection",
26
- key: "multiDate"
27
- }, xe = {
28
- id: "konnectio-availability-guest-selection",
29
- key: "guests"
30
- }, Le = {
31
- id: "konnectio-availability-confirmation",
32
- key: "confirm"
33
- }, Ne = /* @__PURE__ */ ae({
34
- __name: "HotelAvailabilityForm",
35
- props: {
36
- booking: { type: Boolean, default: !1 },
37
- link: {},
38
- selectedLocation: { default: NaN }
39
- },
40
- setup(r) {
41
- const { t } = De(), V = be("emitter"), l = r, {
42
- adults: S,
43
- children: U,
44
- arrivalDate: B,
45
- departureDate: I,
46
- location: F,
47
- hasHotelLocations: h,
48
- hotelLocations: H,
49
- controlLocation: te
50
- } = L(X()), { updateHotelAvailability: ne } = X(), { fetchAvailabilityData: oe } = Y(), { areListingsLoading: E } = L(Y()), {
51
- firstSelectableDateOffset: R,
52
- lastSelectableDateOffset: M,
53
- disableChildSelection: m,
54
- disableAdultSelection: c,
55
- defaultAdultAmount: ie,
56
- defaultChildAmount: se,
57
- maxAdultAmount: O,
58
- maxChildAmount: T
59
- } = L(ke()), ue = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), de = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), z = f(ie.value), j = f(se.value), q = f(ue()), K = f(de()), P = f(te.value), b = s({
60
- get: () => l.booking ? S.value : z.value,
61
- set: (a) => {
62
- l.booking ? S.value = Number(a) : z.value = Number(a);
63
- }
64
- }), k = s({
65
- get: () => l.booking ? U.value : j.value,
66
- set: (a) => {
67
- l.booking ? U.value = Number(a) : j.value = Number(a);
68
- }
69
- }), v = s({
70
- get: () => l.booking ? B.value : q.value,
71
- set: (a) => {
72
- l.booking ? B.value = a : q.value = a;
73
- }
74
- }), p = s({
75
- get: () => l.booking ? I.value : K.value,
76
- set: (a) => {
77
- l.booking ? I.value = a : K.value = a;
78
- }
79
- }), A = s({
80
- get: () => isNaN(l.selectedLocation) ? l.booking ? F.value : P.value : l.selectedLocation,
81
- set: (a) => {
82
- l.booking ? F.value = a : P.value = a;
83
- }
84
- }), J = s(() => {
85
- const a = H.value.find(({ id: n }) => n === l.selectedLocation);
86
- return a ? a.name : "";
87
- }), w = f([]), re = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (R.value - 1)))), Ie = s(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + M.value))), Fe = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + R.value))), ce = s(() => new Date((/* @__PURE__ */ new Date()).setDate(v.value.getDate() + (M.value + 1)))), x = s(() => !(!c && b.value === 0)), ve = s(() => typeof l.link != "string");
88
- function me() {
89
- if (l.booking === !1)
90
- if (ne({
91
- adults: b.value,
92
- children: k.value,
93
- arrivalDate: v.value,
94
- departureDate: p.value,
95
- location: A.value
96
- }), ve.value) {
97
- const a = he();
98
- l.link[a] ? window.location.replace(l.link[a]) : l.link.en ? window.location.replace(l.link.en) : console.log("Sprog understøttes ikke");
99
- } else
100
- window.location.replace(l.link);
101
- else x.value && oe();
102
- }
103
- return Q(v, (a) => {
104
- const n = new Date(new Date(a).setDate(new Date(a).getDate() + 1));
105
- new Date(p.value) < n && (p.value = n);
106
- }), V.on("forcedDateChange", () => {
107
- w.value = [v.value, p.value];
108
- }), Q(w, (a) => {
109
- v.value = a[0], p.value = a[1];
110
- }), pe(() => {
111
- w.value = [v.value, p.value];
112
- }), (a, n) => (i(), d("form", {
113
- id: "konnectio-availability-form",
114
- class: C({ reservation: a.booking }),
115
- type: "availability",
116
- onSubmit: ge(me, ["prevent"])
117
- }, [
118
- u(ye, {
119
- id: "konnectio-availability-form-content",
120
- tag: "ul",
121
- class: C([
122
- { "is-booking-page": a.booking },
123
- { "only-adult-guests": !e(c) && e(m) },
124
- { "only-child-guests": !e(m) && e(c) },
125
- { "no-guests": e(c) && e(m) },
126
- { "all-guests": !e(c) && !e(m) },
127
- { "has-location": e(h) }
128
- ])
129
- }, {
130
- default: fe(() => [
131
- e(h) ? (i(), d("li", Ve, [
132
- isNaN(a.selectedLocation) ? (i(), y(we, {
133
- key: 1,
134
- modelValue: A.value,
135
- "onUpdate:modelValue": n[1] || (n[1] = (o) => A.value = o),
136
- label: e(t)("general.location"),
137
- icon: "location-dot",
138
- "icon-type": "fas",
139
- "icon-placement": "label",
140
- "label-key": "name",
141
- "value-key": "id",
142
- options: e(H),
143
- searchable: !1
144
- }, null, 8, ["modelValue", "label", "options"])) : (i(), y(N, {
145
- key: 0,
146
- modelValue: J.value,
147
- "onUpdate:modelValue": n[0] || (n[0] = (o) => J.value = o),
148
- label: e(t)("general.location"),
149
- icon: "location-dot",
150
- "icon-type": "fas",
151
- "icon-placement": "label",
152
- readonly: ""
153
- }, null, 8, ["modelValue", "label"]))
154
- ])) : D("", !0),
155
- $("li", Ae, [
156
- u(_e, {
157
- modelValue: w.value,
158
- "onUpdate:modelValue": n[2] || (n[2] = (o) => w.value = o),
159
- label: e(t)("availability.checkInOut"),
160
- "icon-type": "fas",
161
- "icon-placement": "label",
162
- "min-range": 1,
163
- "min-date": re.value,
164
- "max-date": ce.value,
165
- range: ""
166
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
167
- D("", !0)
168
- ]),
169
- !e(c) || !e(m) ? (i(), d("li", xe, [
170
- e(c) ? D("", !0) : (i(), d(W, { key: 0 }, [
171
- e(h) ? (i(), y(N, {
172
- key: 0,
173
- modelValue: b.value,
174
- "onUpdate:modelValue": n[5] || (n[5] = (o) => b.value = o),
175
- type: "number",
176
- label: e(t)("availability.adults"),
177
- description: e(t)("general.adultAgeRange"),
178
- "icon-type": "fas",
179
- "icon-placement": "label",
180
- name: "adults",
181
- icon: "male",
182
- max: e(O)
183
- }, null, 8, ["modelValue", "label", "description", "max"])) : (i(), y(Z, {
184
- key: 1,
185
- modelValue: b.value,
186
- "onUpdate:modelValue": n[6] || (n[6] = (o) => b.value = o),
187
- label: e(t)("availability.adults"),
188
- description: e(t)("general.adultAgeRange"),
189
- "icon-type": "fas",
190
- "icon-placement": "label",
191
- name: "adults",
192
- icon: "male",
193
- "max-value": e(O)
194
- }, null, 8, ["modelValue", "label", "description", "max-value"]))
195
- ], 64)),
196
- e(m) ? D("", !0) : (i(), d(W, { key: 1 }, [
197
- e(h) ? (i(), y(N, {
198
- key: 0,
199
- modelValue: k.value,
200
- "onUpdate:modelValue": n[7] || (n[7] = (o) => k.value = o),
201
- type: "number",
202
- label: e(t)("availability.children"),
203
- description: e(t)("general.childAgeRange"),
204
- "icon-type": "fas",
205
- "icon-placement": "label",
206
- name: "children",
207
- icon: "child",
208
- max: e(T)
209
- }, null, 8, ["modelValue", "label", "description", "max"])) : (i(), y(Z, {
210
- key: 1,
211
- modelValue: k.value,
212
- "onUpdate:modelValue": n[8] || (n[8] = (o) => k.value = o),
213
- label: e(t)("availability.children"),
214
- description: e(t)("general.childAgeRange"),
215
- "icon-type": "fas",
216
- "icon-placement": "label",
217
- name: "children",
218
- icon: "child",
219
- "max-value": e(T)
220
- }, null, 8, ["modelValue", "label", "description", "max-value"]))
221
- ], 64))
222
- ])) : D("", !0),
223
- $("li", Le, [
224
- u(G, {
225
- class: "konnectio-availability-submit-small",
226
- type: "submit",
227
- icon: "search",
228
- "icon-type": "fas",
229
- disabled: !x.value,
230
- "is-loading": e(E)
231
- }, null, 8, ["disabled", "is-loading"]),
232
- u(G, {
233
- class: "konnectio-availability-submit-large",
234
- type: "submit",
235
- label: e(t)("availability.buttonLabel"),
236
- disabled: !x.value,
237
- "is-loading": e(E)
238
- }, null, 8, ["label", "disabled", "is-loading"])
239
- ])
240
- ]),
241
- _: 1
242
- }, 8, ["class"])
243
- ], 34));
244
- }
245
- }), Te = /* @__PURE__ */ le(Ne, [["__scopeId", "data-v-f0dea03b"]]), $e = { class: "availability-skeleton" }, Ce = {
246
- key: 0,
247
- class: "availability-skeleton-navigation"
248
- }, Se = { class: "availability-skeleton-content" }, Ue = {
249
- key: 1,
250
- class: "availability-skeleton-event"
251
- }, Be = /* @__PURE__ */ ae({
252
- __name: "AvailabilitySkeleton",
253
- props: {
254
- view: { default: "hotel" },
255
- hotel: { type: Boolean, default: !1 }
256
- },
257
- setup(r) {
258
- return (t, V) => (i(), d("div", $e, [
259
- t.view === "both" ? (i(), d("div", Ce, [
260
- u(ee, {
261
- height: "28px",
262
- width: "60px",
263
- "border-radius": "20px"
264
- }),
265
- u(ee, {
266
- height: "28px",
267
- width: "60px",
268
- "border-radius": "20px"
269
- })
270
- ])) : D("", !0),
271
- $("div", Se, [
272
- t.view !== "event" ? (i(), d("div", {
273
- key: 0,
274
- class: C([
275
- "availability-skeleton-hotel",
276
- { "within-hotel": t.hotel }
277
- ])
278
- }, [
279
- u(g, { "with-icon": "" }),
280
- u(g, { "with-icon": "" }),
281
- u(g, { "with-icon": "" }),
282
- u(g, {
283
- "with-icon": "",
284
- "no-label": ""
285
- })
286
- ], 2)) : (i(), d("div", Ue, [
287
- u(g, { "with-icon": "" }),
288
- u(g, {
289
- "with-icon": "",
290
- "no-label": ""
291
- })
292
- ]))
293
- ])
294
- ]));
295
- }
296
- }), ze = /* @__PURE__ */ le(Be, [["__scopeId", "data-v-17762b9b"]]);
297
- export {
298
- ze as A,
299
- Te as H
300
- };
301
- //# sourceMappingURL=AvailabilitySkeleton-BGEhEqa-.js.map
Binary file
Binary file
Binary file