@konnectio/core 4.0.56-rc35 → 4.0.56-rc36

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-Bruv7ZZW.js → ActionField-Ct6NhfWq.js} +43 -34
  2. package/dist/ActionField-Ct6NhfWq.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-DOhrMVl4.js +286 -0
  4. package/dist/AvailabilitySkeleton-DOhrMVl4.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js} +519 -510
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-0yAgK-cr.js.br +0 -0
  7. package/dist/{CheckoutWindow-Dn3fiFuv.js → CheckoutWindow-BVIOQbbL.js} +143 -134
  8. package/dist/CheckoutWindow-BVIOQbbL.js.br +0 -0
  9. package/dist/{ErrorMessage-VK8egk99.js → ErrorMessage-DTSuSB8R.js} +27 -18
  10. package/dist/ErrorMessage-DTSuSB8R.js.br +0 -0
  11. package/dist/EventAvailabilityForm-DVcDsdr8.js +432 -0
  12. package/dist/EventAvailabilityForm-DVcDsdr8.js.br +0 -0
  13. package/dist/Field-IsLH1tNU.js +50 -0
  14. package/dist/Field-IsLH1tNU.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js +21280 -0
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-BKo1p702.js.br +0 -0
  17. package/dist/TermsOfService-BORqI07-.js +35 -0
  18. package/dist/TermsOfService-BORqI07-.js.br +0 -0
  19. package/dist/_commonjsHelpers-UWZO_9XV.js +11796 -0
  20. package/dist/_commonjsHelpers-UWZO_9XV.js.br +0 -0
  21. package/dist/availability.js +60 -50
  22. package/dist/availability.js.br +0 -0
  23. package/dist/event.js +284 -274
  24. package/dist/event.js.br +0 -0
  25. package/dist/gift-card-validation.js +75 -65
  26. package/dist/gift-card-validation.js.br +0 -0
  27. package/dist/gift-card.js +242 -232
  28. package/dist/gift-card.js.br +0 -0
  29. package/dist/hotel.js +697 -693
  30. package/dist/hotel.js.br +0 -0
  31. package/dist/{masonry.plugin-WFnnzw7L.js → masonry.plugin-gY-oSFpV.js} +43 -34
  32. package/dist/masonry.plugin-gY-oSFpV.js.br +0 -0
  33. package/dist/navigation.js +10 -1
  34. package/dist/polyfill.js +14745 -4715
  35. package/dist/polyfill.js.br +0 -0
  36. package/dist/style.css +1 -1
  37. package/dist/style.css.br +0 -0
  38. package/package.json +8 -6
  39. package/dist/ActionField-Bruv7ZZW.js.br +0 -0
  40. package/dist/AvailabilitySkeleton-DxVPZPw3.js +0 -277
  41. package/dist/AvailabilitySkeleton-DxVPZPw3.js.br +0 -0
  42. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js.br +0 -0
  43. package/dist/CheckoutWindow-Dn3fiFuv.js.br +0 -0
  44. package/dist/ErrorMessage-VK8egk99.js.br +0 -0
  45. package/dist/EventAvailabilityForm-DbkL5luy.js +0 -422
  46. package/dist/EventAvailabilityForm-DbkL5luy.js.br +0 -0
  47. package/dist/Field-fZ3Q2e9-.js +0 -41
  48. package/dist/Field-fZ3Q2e9-.js.br +0 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js +0 -30755
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CJgfqs-l.js.br +0 -0
  51. package/dist/TermsOfService-2g29W45E.js +0 -26
  52. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  53. package/dist/masonry.plugin-WFnnzw7L.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.56-rc35",
3
+ "version": "4.0.56-rc36",
4
4
  "author": "Konnectio <info@freshcase.dk> (https://konnectio.dk)",
5
5
  "homepage": "https://konnectio.dk",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -45,7 +45,8 @@
45
45
  "@fortawesome/pro-solid-svg-icons": "6.5.1",
46
46
  "@fortawesome/vue-fontawesome": "3.0.6",
47
47
  "@intlify/unplugin-vue-i18n": "4.0.0",
48
- "@unhead/vue": "1.9.1",
48
+ "@sentry/vue": "7.109.0",
49
+ "@unhead/vue": "1.9.4",
49
50
  "@vuepic/vue-datepicker": "8.3.1",
50
51
  "@vueup/vue-quill": "1.2.0",
51
52
  "@vueuse/core": "10.9.0",
@@ -76,9 +77,10 @@
76
77
  "devDependencies": {
77
78
  "@babel/eslint-parser": "7.24.1",
78
79
  "@originjs/vite-plugin-commonjs": "1.0.3",
79
- "@types/node": "20.11.30",
80
- "@typescript-eslint/eslint-plugin": "7.4.0",
81
- "@typescript-eslint/parser": "7.4.0",
80
+ "@sentry/vite-plugin": "2.16.0",
81
+ "@types/node": "20.12.2",
82
+ "@typescript-eslint/eslint-plugin": "7.5.0",
83
+ "@typescript-eslint/parser": "7.5.0",
82
84
  "@vitejs/plugin-vue": "5.0.4",
83
85
  "@vue/eslint-config-typescript": "13.0.0",
84
86
  "@vue/test-utils": "2.4.5",
@@ -91,7 +93,7 @@
91
93
  "ts-node": "10.9.2",
92
94
  "tslib": "2.6.2",
93
95
  "typescript": "5.4.3",
94
- "vite": "5.2.6",
96
+ "vite": "5.2.7",
95
97
  "vite-plugin-compression": "0.5.1",
96
98
  "vue-tsc": "2.0.7"
97
99
  },
Binary file
@@ -1,277 +0,0 @@
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-CJgfqs-l.js";
2
- import { _ as he } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_17762b9b_lang-Z4h6wyqj.js";
3
- import { F as g } from "./Field-fZ3Q2e9-.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
- };
Binary file
Binary file