@konnectio/core 4.0.87 → 4.0.89

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 (63) hide show
  1. package/dist/{ActionField-JyyQhohJ.js → ActionField-pRVpEYbK.js} +13 -13
  2. package/dist/ActionField-pRVpEYbK.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-DyueTEga.js +322 -0
  4. package/dist/AvailabilitySkeleton-DyueTEga.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js} +262 -262
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-DlPKnq7a.js.br +0 -0
  7. package/dist/{CheckoutWindow-BANXRcdP.js → CheckoutWindow-BrwxMXyf.js} +89 -89
  8. package/dist/CheckoutWindow-BrwxMXyf.js.br +0 -0
  9. package/dist/{ErrorMessage-BkKT-ltk.js → ErrorMessage-CIU5Cn9y.js} +25 -25
  10. package/dist/ErrorMessage-CIU5Cn9y.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-TIP9lliE.js → EventAvailabilityForm-ClaIOEwA.js} +17 -17
  12. package/dist/EventAvailabilityForm-ClaIOEwA.js.br +0 -0
  13. package/dist/{Field-W3dyKX_L.js → Field-DuG8W19B.js} +14 -13
  14. package/dist/Field-DuG8W19B.js.br +0 -0
  15. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-PtGXipvw.js +21 -0
  16. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js → SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js} +5679 -5663
  17. package/dist/SelectField.vue_vue_type_style_index_0_lang-CDI5Jr8F.js.br +0 -0
  18. package/dist/{TermsOfService-Ch3BEIIo.js → TermsOfService-D28siuNO.js} +4 -4
  19. package/dist/_-C-ynrhKu.js +5 -0
  20. package/dist/_.vue_vue_type_style_index_0_lang-BL9CKMuv.js +25 -0
  21. package/dist/availability.js +36 -36
  22. package/dist/availability.js.br +0 -0
  23. package/dist/cancel-reservation.js +158 -0
  24. package/dist/cancel-reservation.js.br +0 -0
  25. package/dist/deep-link.js +6 -6
  26. package/dist/deep-link.js.br +0 -0
  27. package/dist/event.js +349 -348
  28. package/dist/event.js.br +0 -0
  29. package/dist/gift-card-validation.js +23 -22
  30. package/dist/gift-card-validation.js.br +0 -0
  31. package/dist/gift-card.js +163 -162
  32. package/dist/gift-card.js.br +0 -0
  33. package/dist/{giftCard-CMpwvYsv.js → giftCard-vF2jr39r.js} +19 -19
  34. package/dist/giftCard-vF2jr39r.js.br +0 -0
  35. package/dist/hotel.js +1050 -1051
  36. package/dist/hotel.js.br +0 -0
  37. package/dist/{masonry.plugin-DkIwTZE2.js → masonry.plugin-QKZ1Nfp8.js} +606 -605
  38. package/dist/masonry.plugin-QKZ1Nfp8.js.br +0 -0
  39. package/dist/mitt-Cg46J41N.js +13059 -0
  40. package/dist/mitt-Cg46J41N.js.br +0 -0
  41. package/dist/polyfill.js +91 -91
  42. package/dist/polyfill.js.br +0 -0
  43. package/dist/{style-CDpCXUak.js → style-BEbp8L4f.js} +128 -128
  44. package/dist/style-BEbp8L4f.js.br +0 -0
  45. package/dist/style.css +1 -1
  46. package/dist/style.css.br +0 -0
  47. package/package.json +2 -2
  48. package/dist/ActionField-JyyQhohJ.js.br +0 -0
  49. package/dist/AvailabilitySkeleton-DfYTjUoS.js +0 -309
  50. package/dist/AvailabilitySkeleton-DfYTjUoS.js.br +0 -0
  51. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js.br +0 -0
  52. package/dist/CheckoutWindow-BANXRcdP.js.br +0 -0
  53. package/dist/ErrorMessage-BkKT-ltk.js.br +0 -0
  54. package/dist/EventAvailabilityForm-TIP9lliE.js.br +0 -0
  55. package/dist/Field-W3dyKX_L.js.br +0 -0
  56. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js.br +0 -0
  57. package/dist/_-v0hUQXei.js +0 -5
  58. package/dist/_.vue_vue_type_style_index_0_lang-0ivLN3Ws.js +0 -25
  59. package/dist/giftCard-CMpwvYsv.js.br +0 -0
  60. package/dist/masonry.plugin-DkIwTZE2.js.br +0 -0
  61. package/dist/mitt-B_elXQ2J.js +0 -12437
  62. package/dist/mitt-B_elXQ2J.js.br +0 -0
  63. package/dist/style-CDpCXUak.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.87",
3
+ "version": "4.0.89",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
5
5
  "homepage": "https://konnectio.com",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -63,7 +63,7 @@
63
63
  "regenerator-runtime": "0.14.1",
64
64
  "resize-detector": "0.3.0",
65
65
  "text-clipper": "2.2.0",
66
- "vue": "3.4.38",
66
+ "vue": "3.5.6",
67
67
  "vue-gtag": "2.0.1",
68
68
  "vue-i18n": "9.14.0",
69
69
  "vue-inner-image-zoom": "2.0.0",
Binary file
@@ -1,309 +0,0 @@
1
- import { d as te, u as De, Q as ke, x as V, r as g, c as u, H as K, o as he, a as n, g as d, f as s, w as we, i as a, b as D, j as k, e as S, n as N, E as _e, h as Ae } from "./mitt-B_elXQ2J.js";
2
- import { u as W, x as X, a as Le, d as Ve, T as xe, n as Se, b as Z, c as ee, o as Ne, _ as le, E as ae } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js";
3
- import { _ as x } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-CyxA0DFl.js";
4
- import { F as p } from "./Field-W3dyKX_L.js";
5
- const Ce = {
6
- class: "konnectio-availability-location",
7
- key: "location"
8
- }, Ue = {
9
- id: "konnectio-availability-date-selection",
10
- key: "multiDate"
11
- }, $e = {
12
- key: 0,
13
- class: "konnectio-availability-date-selection-multi"
14
- }, Be = {
15
- id: "konnectio-availability-guest-selection",
16
- key: "guests"
17
- }, He = {
18
- id: "konnectio-availability-confirmation",
19
- key: "confirm"
20
- }, Re = /* @__PURE__ */ te({
21
- __name: "HotelAvailabilityForm",
22
- props: {
23
- booking: { type: Boolean, default: !1 },
24
- link: {},
25
- selectedLocation: { default: NaN },
26
- disableDefaultLocation: { type: Boolean, default: !1 }
27
- },
28
- setup(C) {
29
- const { t: i } = De(), U = ke("emitter"), l = C, $ = W(), {
30
- adults: oe,
31
- children: ie,
32
- arrivalDate: B,
33
- departureDate: H,
34
- location: R,
35
- hasHotelLocations: f,
36
- hotelLocations: F,
37
- controlLocation: ne
38
- } = V(W()), { fetchAvailabilityData: se } = X(), { areListingsLoading: I } = V(X()), { display: T } = Le(), {
39
- firstSelectableDateOffset: E,
40
- lastSelectableDateOffset: M,
41
- disableChildSelection: v,
42
- disableAdultSelection: m,
43
- defaultAdultAmount: ue,
44
- defaultChildAmount: ce,
45
- maxAdultAmount: re,
46
- maxChildAmount: de,
47
- splitBookingCalendar: ve
48
- } = V(Ve()), me = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), be = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), ge = () => l.disableDefaultLocation ? void 0 : ne.value, O = g(ue.value), j = g(ce.value), P = g(me()), z = g(be()), q = g(ge()), h = u({
49
- get: () => l.booking ? $.adults : O.value,
50
- set: (e) => {
51
- l.booking ? oe.value = Number(e) : O.value = Number(e);
52
- }
53
- }), _ = u({
54
- get: () => l.booking ? $.children : j.value,
55
- set: (e) => {
56
- l.booking ? ie.value = Number(e) : j.value = Number(e);
57
- }
58
- }), c = u({
59
- get: () => l.booking ? B.value : P.value,
60
- set: (e) => {
61
- l.booking ? B.value = e : P.value = e;
62
- }
63
- }), r = u({
64
- get: () => l.booking ? H.value : z.value,
65
- set: (e) => {
66
- l.booking ? H.value = e : z.value = e;
67
- }
68
- }), w = u({
69
- get: () => isNaN(l.selectedLocation) ? l.booking ? R.value : q.value : l.selectedLocation,
70
- set: (e) => {
71
- l.booking ? R.value = e : q.value = e;
72
- }
73
- }), G = u(() => {
74
- const e = F.value.find(({ id: t }) => t === l.selectedLocation);
75
- return e ? e.name : "";
76
- }), y = g([]), Q = u(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (E.value - 1)))), pe = u(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + M.value)));
77
- u(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + E.value)));
78
- const Y = u(() => new Date((/* @__PURE__ */ new Date()).setDate(c.value.getDate() + (M.value + 1)))), A = u(() => !(!m && h.value === 0)), fe = u(() => typeof l.link != "string");
79
- function J(e) {
80
- const t = e.getFullYear();
81
- let o = e.getMonth() + 1, b = e.getDate();
82
- return b < 10 && (b = "0" + b), o < 10 && (o = "0" + o), `${t}-${o}-${b}`;
83
- }
84
- function L(e) {
85
- const t = {
86
- a: h.value.toString(),
87
- c: _.value.toString(),
88
- ci: J(c.value),
89
- co: J(r.value),
90
- hid: w.value.toString()
91
- }, o = new URLSearchParams(t), b = new URL(e, window.location.origin);
92
- b.search = o.toString(), window.location.replace(b.toString());
93
- }
94
- function ye() {
95
- if (isNaN(w.value) && f.value) {
96
- T({
97
- message: i("alert.error.selectHotelId"),
98
- type: "error"
99
- });
100
- return;
101
- }
102
- if (l.booking === !1)
103
- if (fe.value) {
104
- const e = Ne();
105
- l.link[e] ? L(l.link[e]) : l.link.en ? L(l.link.en) : T({
106
- message: "Module misconfiguration, contact an admin",
107
- type: "error"
108
- });
109
- } else
110
- L(l.link);
111
- else A.value && se();
112
- }
113
- return K(c, (e) => {
114
- const t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
115
- new Date(r.value) < t && (r.value = t);
116
- }), U.on("forcedDateChange", () => {
117
- y.value = [c.value, r.value];
118
- }), K(y, (e) => {
119
- c.value = e[0], r.value = e[1];
120
- }), he(() => {
121
- y.value = [c.value, r.value];
122
- }), (e, t) => (n(), d("form", {
123
- id: "konnectio-availability-form",
124
- class: N({ reservation: e.booking }),
125
- type: "availability",
126
- onSubmit: Ae(ye, ["prevent"])
127
- }, [
128
- s(_e, {
129
- id: "konnectio-availability-form-content",
130
- tag: "ul",
131
- class: N([
132
- { "is-booking-page": e.booking },
133
- { "only-adult-guests": !a(m) && a(v) },
134
- { "only-child-guests": !a(v) && a(m) },
135
- { "no-guests": a(m) && a(v) },
136
- { "all-guests": !a(m) && !a(v) },
137
- { "has-location": a(f) }
138
- ])
139
- }, {
140
- default: we(() => [
141
- a(f) ? (n(), d("li", Ce, [
142
- isNaN(e.selectedLocation) ? (n(), D(Se, {
143
- key: 1,
144
- modelValue: w.value,
145
- "onUpdate:modelValue": t[1] || (t[1] = (o) => w.value = o),
146
- label: a(i)("general.location"),
147
- placeholder: a(i)("general.locationPlaceholder"),
148
- icon: "location-dot",
149
- "icon-type": "fas",
150
- "icon-placement": "label",
151
- "label-key": "name",
152
- "value-key": "id",
153
- options: a(F),
154
- searchable: !1
155
- }, null, 8, ["modelValue", "label", "placeholder", "options"])) : (n(), D(xe, {
156
- key: 0,
157
- modelValue: G.value,
158
- "onUpdate:modelValue": t[0] || (t[0] = (o) => G.value = o),
159
- label: a(i)("general.location"),
160
- icon: "location-dot",
161
- "icon-type": "fas",
162
- "icon-placement": "label",
163
- readonly: ""
164
- }, null, 8, ["modelValue", "label"]))
165
- ])) : k("", !0),
166
- S("li", Ue, [
167
- a(ve) ? (n(), d("div", $e, [
168
- s(x, {
169
- modelValue: c.value,
170
- "onUpdate:modelValue": t[2] || (t[2] = (o) => c.value = o),
171
- label: a(i)("availability.arrivalDate"),
172
- name: "arrivalDate",
173
- "icon-type": "fas",
174
- "icon-placement": "label",
175
- "start-date": c.value,
176
- "min-date": Q.value,
177
- "max-date": pe.value
178
- }, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"]),
179
- s(x, {
180
- modelValue: r.value,
181
- "onUpdate:modelValue": t[3] || (t[3] = (o) => r.value = o),
182
- label: a(i)("availability.departureDate"),
183
- name: "departureDate",
184
- "icon-type": "fas",
185
- "icon-placement": "label",
186
- "start-date": r.value,
187
- "min-date": c.value,
188
- "max-date": Y.value
189
- }, null, 8, ["modelValue", "label", "start-date", "min-date", "max-date"])
190
- ])) : (n(), D(x, {
191
- key: 1,
192
- modelValue: y.value,
193
- "onUpdate:modelValue": t[4] || (t[4] = (o) => y.value = o),
194
- label: a(i)("availability.checkInOut"),
195
- "icon-type": "fas",
196
- "icon-placement": "label",
197
- "min-range": 1,
198
- "min-date": Q.value,
199
- "max-date": Y.value,
200
- range: ""
201
- }, null, 8, ["modelValue", "label", "min-date", "max-date"]))
202
- ]),
203
- !a(m) || !a(v) ? (n(), d("li", Be, [
204
- a(m) ? k("", !0) : (n(), D(Z, {
205
- key: 0,
206
- modelValue: h.value,
207
- "onUpdate:modelValue": t[5] || (t[5] = (o) => h.value = o),
208
- label: a(i)("availability.adults"),
209
- description: a(i)("general.adultAgeRange"),
210
- "icon-type": "fas",
211
- "icon-placement": "label",
212
- name: "adults",
213
- icon: "male",
214
- "max-value": a(re),
215
- controls: !(a(f) && !a(v))
216
- }, null, 8, ["modelValue", "label", "description", "max-value", "controls"])),
217
- a(v) ? k("", !0) : (n(), D(Z, {
218
- key: 1,
219
- modelValue: _.value,
220
- "onUpdate:modelValue": t[6] || (t[6] = (o) => _.value = o),
221
- label: a(i)("availability.children"),
222
- description: a(i)("general.childAgeRange"),
223
- "icon-type": "fas",
224
- "icon-placement": "label",
225
- name: "children",
226
- icon: "child",
227
- "max-value": a(de),
228
- controls: !a(f)
229
- }, null, 8, ["modelValue", "label", "description", "max-value", "controls"]))
230
- ])) : k("", !0),
231
- S("li", He, [
232
- s(ee, {
233
- class: "konnectio-availability-submit-small",
234
- type: "submit",
235
- icon: "search",
236
- "icon-type": "fas",
237
- disabled: !A.value,
238
- "is-loading": a(I)
239
- }, null, 8, ["disabled", "is-loading"]),
240
- s(ee, {
241
- class: "konnectio-availability-submit-large",
242
- type: "submit",
243
- label: a(i)("availability.buttonLabel"),
244
- disabled: !A.value,
245
- "is-loading": a(I)
246
- }, null, 8, ["label", "disabled", "is-loading"])
247
- ])
248
- ]),
249
- _: 1
250
- }, 8, ["class"])
251
- ], 34));
252
- }
253
- }), qe = /* @__PURE__ */ le(Re, [["__scopeId", "data-v-db42c217"]]), Fe = { class: "availability-skeleton" }, Ie = {
254
- key: 0,
255
- class: "availability-skeleton-navigation"
256
- }, Te = { class: "availability-skeleton-content" }, Ee = {
257
- key: 1,
258
- class: "availability-skeleton-event"
259
- }, Me = /* @__PURE__ */ te({
260
- __name: "AvailabilitySkeleton",
261
- props: {
262
- view: { default: "hotel" },
263
- hotel: { type: Boolean, default: !1 }
264
- },
265
- setup(C) {
266
- return (i, U) => (n(), d("div", Fe, [
267
- i.view === "both" ? (n(), d("div", Ie, [
268
- s(ae, {
269
- height: "28px",
270
- width: "60px",
271
- "border-radius": "20px"
272
- }),
273
- s(ae, {
274
- height: "28px",
275
- width: "60px",
276
- "border-radius": "20px"
277
- })
278
- ])) : k("", !0),
279
- S("div", Te, [
280
- i.view !== "event" ? (n(), d("div", {
281
- key: 0,
282
- class: N([
283
- "availability-skeleton-hotel",
284
- { "within-hotel": i.hotel }
285
- ])
286
- }, [
287
- s(p, { "with-icon": "" }),
288
- s(p, { "with-icon": "" }),
289
- s(p, { "with-icon": "" }),
290
- s(p, {
291
- "with-icon": "",
292
- "no-label": ""
293
- })
294
- ], 2)) : (n(), d("div", Ee, [
295
- s(p, { "with-icon": "" }),
296
- s(p, {
297
- "with-icon": "",
298
- "no-label": ""
299
- })
300
- ]))
301
- ])
302
- ]));
303
- }
304
- }), Ge = /* @__PURE__ */ le(Me, [["__scopeId", "data-v-cebeb733"]]);
305
- export {
306
- Ge as A,
307
- qe as H
308
- };
309
- //# sourceMappingURL=AvailabilitySkeleton-DfYTjUoS.js.map
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- import { _ as f } from "./_.vue_vue_type_style_index_0_lang-0ivLN3Ws.js";
2
- export {
3
- f as default
4
- };
5
- //# sourceMappingURL=_-v0hUQXei.js.map
@@ -1,25 +0,0 @@
1
- import { d as i, ap as a, a as l, g as p, y as _ } from "./mitt-B_elXQ2J.js";
2
- import { d as m } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DghVL0Oa.js";
3
- const d = {
4
- class: "konnectio-app",
5
- ref: "base"
6
- }, y = /* @__PURE__ */ i({
7
- name: "BaseLayout",
8
- __name: "_",
9
- props: {
10
- accessToken: {},
11
- type: { default: "none" },
12
- callback: {}
13
- },
14
- async setup(o) {
15
- let e, t;
16
- const s = o, { setAccessToken: c, fetchUtilities: n } = m();
17
- return c(s.accessToken), [e, t] = a(() => n()), await e, t(), [e, t] = a(() => s.callback()), await e, t(), (r, f) => (l(), p("div", d, [
18
- _(r.$slots, "default")
19
- ], 512));
20
- }
21
- });
22
- export {
23
- y as _
24
- };
25
- //# sourceMappingURL=_.vue_vue_type_style_index_0_lang-0ivLN3Ws.js.map
Binary file
Binary file