@konnectio/core 4.0.82 → 4.0.83

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 (73) hide show
  1. package/dist/ActionField-BA-fYDFE.js +100 -0
  2. package/dist/ActionField-BA-fYDFE.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-cs1R6FqT.js +281 -0
  4. package/dist/AvailabilitySkeleton-cs1R6FqT.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js} +1156 -1171
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js.br +0 -0
  7. package/dist/{CheckoutWindow-DoADcN36.js → CheckoutWindow-BWvzwZp7.js} +153 -168
  8. package/dist/CheckoutWindow-BWvzwZp7.js.br +0 -0
  9. package/dist/{ErrorMessage-BxZaXdig.js → ErrorMessage-Cznv1pOA.js} +20 -35
  10. package/dist/ErrorMessage-Cznv1pOA.js.br +0 -0
  11. package/dist/EventAvailabilityForm-CCIRdxiD.js +111 -0
  12. package/dist/EventAvailabilityForm-CCIRdxiD.js.br +0 -0
  13. package/dist/Field-BvDQnKDq.js +43 -0
  14. package/dist/Field-BvDQnKDq.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js} +2302 -2317
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js.br +0 -0
  17. package/dist/TermsOfService-GFdUcU5a.js +29 -0
  18. package/dist/_-CApO2y_W.js +5 -0
  19. package/dist/_.vue_vue_type_style_index_0_lang-JXEPTW6b.js +25 -0
  20. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  21. package/dist/availability.js +55 -71
  22. package/dist/availability.js.br +0 -0
  23. package/dist/deep-link.js +21 -36
  24. package/dist/deep-link.js.br +0 -0
  25. package/dist/event.js +408 -424
  26. package/dist/event.js.br +0 -0
  27. package/dist/gift-card-validation.js +73 -89
  28. package/dist/gift-card-validation.js.br +0 -0
  29. package/dist/gift-card.js +181 -197
  30. package/dist/gift-card.js.br +0 -0
  31. package/dist/giftCard-DA27WKsi.js +119 -0
  32. package/dist/giftCard-DA27WKsi.js.br +0 -0
  33. package/dist/hotel.js +505 -520
  34. package/dist/hotel.js.br +0 -0
  35. package/dist/{masonry.plugin-DDSHAjDQ.js → masonry.plugin-C22IPiCy.js} +53 -68
  36. package/dist/masonry.plugin-C22IPiCy.js.br +0 -0
  37. package/dist/{mitt-CzL6QOyp.js → mitt-QLRlCcPH.js} +983 -998
  38. package/dist/mitt-QLRlCcPH.js.br +0 -0
  39. package/dist/polyfill.js +4152 -7854
  40. package/dist/polyfill.js.br +0 -0
  41. package/dist/{style-CT1Yk_a0.js → style-CF23zZwv.js} +388 -403
  42. package/dist/style-CF23zZwv.js.br +0 -0
  43. package/dist/{_sentry-release-injection-file-8liCQLPI.js → vue.esm-bundler-BkY4vCIk.js} +1987 -2003
  44. package/dist/vue.esm-bundler-BkY4vCIk.js.br +0 -0
  45. package/package.json +1 -3
  46. package/dist/ActionField-Mf3IO8Sg.js +0 -115
  47. package/dist/ActionField-Mf3IO8Sg.js.br +0 -0
  48. package/dist/AvailabilitySkeleton-D3xnLMQI.js +0 -296
  49. package/dist/AvailabilitySkeleton-D3xnLMQI.js.br +0 -0
  50. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-C4S5K4Ed.js.br +0 -0
  51. package/dist/CheckoutWindow-DoADcN36.js.br +0 -0
  52. package/dist/ErrorMessage-BxZaXdig.js.br +0 -0
  53. package/dist/EventAvailabilityForm-Ctz8ENUN.js +0 -126
  54. package/dist/EventAvailabilityForm-Ctz8ENUN.js.br +0 -0
  55. package/dist/Field-Bg0N8Vc0.js +0 -58
  56. package/dist/Field-Bg0N8Vc0.js.br +0 -0
  57. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-DIbBJOzF.js.br +0 -0
  58. package/dist/TermsOfService-CWraQvoB.js +0 -44
  59. package/dist/TermsOfService-CWraQvoB.js.br +0 -4
  60. package/dist/_-BEZe3PAF.js +0 -20
  61. package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js +0 -40
  62. package/dist/_.vue_vue_type_style_index_0_lang-DQzgcH2c.js.br +0 -0
  63. package/dist/_commonjsHelpers-C8ml6AyB.js +0 -25
  64. package/dist/_commonjsHelpers-C8ml6AyB.js.br +0 -0
  65. package/dist/_sentry-release-injection-file-8liCQLPI.js.br +0 -0
  66. package/dist/giftCard-sImOKdP0.js +0 -134
  67. package/dist/giftCard-sImOKdP0.js.br +0 -0
  68. package/dist/masonry.plugin-DDSHAjDQ.js.br +0 -0
  69. package/dist/mitt-CzL6QOyp.js.br +0 -0
  70. package/dist/sentry-Cyc40KnT.js +0 -26
  71. package/dist/style-CT1Yk_a0.js.br +0 -0
  72. package/dist/tracing-6Srl_nMB.js +0 -2628
  73. package/dist/tracing-6Srl_nMB.js.br +0 -0
@@ -0,0 +1,100 @@
1
+ import { d as c, c as m, a as d, b as i, w as V, e as v, u as t, f as q } from "./vue.esm-bundler-BkY4vCIk.js";
2
+ import { A as g, n as k, b as B, T as I, c as C, p as A, _ as F } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js";
3
+ const L = { class: "fresh-booking-action-field" }, T = /* @__PURE__ */ c({
4
+ __name: "ActionField",
5
+ props: {
6
+ modelValue: {},
7
+ label: {},
8
+ buttonLabel: {},
9
+ buttonIcon: {},
10
+ buttonIconColor: {},
11
+ buttonDisabled: { type: Boolean, default: !1 },
12
+ secondary: { type: Boolean, default: !1 },
13
+ name: {},
14
+ id: {},
15
+ type: { default: "text" },
16
+ placeholder: {},
17
+ icon: {},
18
+ iconType: { default: "fal" },
19
+ required: { type: Boolean, default: !1 },
20
+ readonly: { type: Boolean, default: !1 },
21
+ data: {},
22
+ action: {},
23
+ minValue: {},
24
+ maxValue: {},
25
+ isLoading: { type: Boolean, default: !1 }
26
+ },
27
+ emits: ["update:modelValue", "action"],
28
+ setup(y, { emit: b }) {
29
+ const s = b, u = y, o = u.id || g();
30
+ function r(e) {
31
+ s("update:modelValue", e);
32
+ }
33
+ const n = m({
34
+ get: () => u.modelValue,
35
+ set: (e) => r(e)
36
+ }), p = m({
37
+ get: () => u.modelValue,
38
+ set: (e) => r(e)
39
+ });
40
+ function f() {
41
+ s("action");
42
+ }
43
+ return (e, a) => (d(), i(A, {
44
+ label: e.label,
45
+ id: t(o),
46
+ icon: e.icon,
47
+ "icon-type": e.iconType,
48
+ required: e.required,
49
+ type: e.type,
50
+ readonly: e.readonly
51
+ }, {
52
+ default: V(() => [
53
+ v("div", L, [
54
+ e.type === "dropdown" && e.data ? (d(), i(k, {
55
+ key: 0,
56
+ modelValue: n.value,
57
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
58
+ id: t(o),
59
+ options: e.data,
60
+ name: e.name,
61
+ required: e.required,
62
+ placeholder: e.placeholder
63
+ }, null, 8, ["modelValue", "id", "options", "name", "required", "placeholder"])) : e.type === "number" ? (d(), i(B, {
64
+ key: 1,
65
+ modelValue: p.value,
66
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => p.value = l),
67
+ id: t(o),
68
+ "min-value": e.minValue,
69
+ "max-value": e.maxValue
70
+ }, null, 8, ["modelValue", "id", "min-value", "max-value"])) : (d(), i(I, {
71
+ key: 2,
72
+ modelValue: n.value,
73
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
74
+ id: t(o),
75
+ name: e.name,
76
+ required: e.required,
77
+ placeholder: e.placeholder
78
+ }, null, 8, ["modelValue", "id", "name", "required", "placeholder"])),
79
+ q(C, {
80
+ "data-test": `${e.name}Submit`,
81
+ icon: e.buttonIcon,
82
+ label: e.buttonLabel,
83
+ "icon-color": e.buttonIconColor,
84
+ styling: e.action,
85
+ type: "button",
86
+ "is-loading": e.isLoading,
87
+ disabled: e.buttonDisabled,
88
+ secondary: e.secondary,
89
+ onClickEvent: a[3] || (a[3] = (l) => f())
90
+ }, null, 8, ["data-test", "icon", "label", "icon-color", "styling", "is-loading", "disabled", "secondary"])
91
+ ])
92
+ ]),
93
+ _: 1
94
+ }, 8, ["label", "id", "icon", "icon-type", "required", "type", "readonly"]));
95
+ }
96
+ }), w = /* @__PURE__ */ F(T, [["__scopeId", "data-v-3e77e321"]]);
97
+ export {
98
+ w as A
99
+ };
100
+ //# sourceMappingURL=ActionField-BA-fYDFE.js.map
Binary file
@@ -0,0 +1,281 @@
1
+ import { d as Z, H as ge, r as p, c as n, z as Y, o as De, a as r, g as m, f as s, w as fe, u as a, b as w, i as D, e as x, n as N, y as ye, h as ke } from "./vue.esm-bundler-BkY4vCIk.js";
2
+ import { u as he, s as L } from "./mitt-QLRlCcPH.js";
3
+ import { u as J, x as K, a as we, d as _e, T as Ae, n as Ve, b as Q, c as W, o as Le, _ as ee, E as X } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js";
4
+ import { _ as xe } from "./AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js";
5
+ import { F as g } from "./Field-BvDQnKDq.js";
6
+ const Ne = {
7
+ class: "konnectio-availability-location",
8
+ key: "location"
9
+ }, Se = {
10
+ id: "konnectio-availability-date-selection",
11
+ key: "multiDate"
12
+ }, $e = {
13
+ id: "konnectio-availability-guest-selection",
14
+ key: "guests"
15
+ }, Ue = {
16
+ id: "konnectio-availability-confirmation",
17
+ key: "confirm"
18
+ }, Ce = /* @__PURE__ */ Z({
19
+ __name: "HotelAvailabilityForm",
20
+ props: {
21
+ booking: { type: Boolean, default: !1 },
22
+ link: {},
23
+ selectedLocation: { default: NaN },
24
+ disableDefaultLocation: { type: Boolean, default: !1 }
25
+ },
26
+ setup(S) {
27
+ const { t: i } = he(), $ = ge("emitter"), t = S, U = J(), {
28
+ adults: ae,
29
+ children: te,
30
+ arrivalDate: C,
31
+ departureDate: B,
32
+ location: H,
33
+ hasHotelLocations: f,
34
+ hotelLocations: F,
35
+ controlLocation: le
36
+ } = L(J()), { fetchAvailabilityData: oe } = K(), { areListingsLoading: R } = L(K()), { display: I } = we(), {
37
+ firstSelectableDateOffset: T,
38
+ lastSelectableDateOffset: E,
39
+ disableChildSelection: u,
40
+ disableAdultSelection: c,
41
+ defaultAdultAmount: ie,
42
+ defaultChildAmount: ne,
43
+ maxAdultAmount: se,
44
+ maxChildAmount: re
45
+ } = L(_e()), ue = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 1)).setHours(12, 0, 0, 0)), ce = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + 2)).setHours(12, 0, 0, 0)), de = () => t.disableDefaultLocation ? void 0 : le.value, M = p(ie.value), O = p(ne.value), z = p(ue()), P = p(ce()), j = p(de()), k = n({
46
+ get: () => t.booking ? U.adults : M.value,
47
+ set: (e) => {
48
+ t.booking ? ae.value = Number(e) : M.value = Number(e);
49
+ }
50
+ }), _ = n({
51
+ get: () => t.booking ? U.children : O.value,
52
+ set: (e) => {
53
+ t.booking ? te.value = Number(e) : O.value = Number(e);
54
+ }
55
+ }), d = n({
56
+ get: () => t.booking ? C.value : z.value,
57
+ set: (e) => {
58
+ t.booking ? C.value = e : z.value = e;
59
+ }
60
+ }), b = n({
61
+ get: () => t.booking ? B.value : P.value,
62
+ set: (e) => {
63
+ t.booking ? B.value = e : P.value = e;
64
+ }
65
+ }), h = n({
66
+ get: () => isNaN(t.selectedLocation) ? t.booking ? H.value : j.value : t.selectedLocation,
67
+ set: (e) => {
68
+ t.booking ? H.value = e : j.value = e;
69
+ }
70
+ }), q = n(() => {
71
+ const e = F.value.find(({ id: l }) => l === t.selectedLocation);
72
+ return e ? e.name : "";
73
+ }), y = p([]), ve = n(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + (T.value - 1)))), Te = n(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + E.value))), Ee = n(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + T.value))), me = n(() => new Date((/* @__PURE__ */ new Date()).setDate(d.value.getDate() + (E.value + 1)))), A = n(() => !(!c && k.value === 0)), be = n(() => typeof t.link != "string");
74
+ function G(e) {
75
+ const l = e.getFullYear();
76
+ let o = e.getMonth() + 1, v = e.getDate();
77
+ return v < 10 && (v = "0" + v), o < 10 && (o = "0" + o), `${l}-${o}-${v}`;
78
+ }
79
+ function V(e) {
80
+ const l = {
81
+ a: k.value.toString(),
82
+ c: _.value.toString(),
83
+ ci: G(d.value),
84
+ co: G(b.value),
85
+ hid: h.value.toString()
86
+ }, o = new URLSearchParams(l), v = new URL(e, window.location.origin);
87
+ v.search = o.toString(), window.location.replace(v.toString());
88
+ }
89
+ function pe() {
90
+ if (isNaN(h.value) && f.value) {
91
+ I({
92
+ message: i("alert.error.selectHotelId"),
93
+ type: "error"
94
+ });
95
+ return;
96
+ }
97
+ if (t.booking === !1)
98
+ if (be.value) {
99
+ const e = Le();
100
+ t.link[e] ? V(t.link[e]) : t.link.en ? V(t.link.en) : I({
101
+ message: "Module misconfiguration, contact an admin",
102
+ type: "error"
103
+ });
104
+ } else
105
+ V(t.link);
106
+ else A.value && oe();
107
+ }
108
+ return Y(d, (e) => {
109
+ const l = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
110
+ new Date(b.value) < l && (b.value = l);
111
+ }), $.on("forcedDateChange", () => {
112
+ y.value = [d.value, b.value];
113
+ }), Y(y, (e) => {
114
+ d.value = e[0], b.value = e[1];
115
+ }), De(() => {
116
+ y.value = [d.value, b.value];
117
+ }), (e, l) => (r(), m("form", {
118
+ id: "konnectio-availability-form",
119
+ class: N({ reservation: e.booking }),
120
+ type: "availability",
121
+ onSubmit: ke(pe, ["prevent"])
122
+ }, [
123
+ s(ye, {
124
+ id: "konnectio-availability-form-content",
125
+ tag: "ul",
126
+ class: N([
127
+ { "is-booking-page": e.booking },
128
+ { "only-adult-guests": !a(c) && a(u) },
129
+ { "only-child-guests": !a(u) && a(c) },
130
+ { "no-guests": a(c) && a(u) },
131
+ { "all-guests": !a(c) && !a(u) },
132
+ { "has-location": a(f) }
133
+ ])
134
+ }, {
135
+ default: fe(() => [
136
+ a(f) ? (r(), m("li", Ne, [
137
+ isNaN(e.selectedLocation) ? (r(), w(Ve, {
138
+ key: 1,
139
+ modelValue: h.value,
140
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => h.value = o),
141
+ label: a(i)("general.location"),
142
+ placeholder: a(i)("general.locationPlaceholder"),
143
+ icon: "location-dot",
144
+ "icon-type": "fas",
145
+ "icon-placement": "label",
146
+ "label-key": "name",
147
+ "value-key": "id",
148
+ options: a(F),
149
+ searchable: !1
150
+ }, null, 8, ["modelValue", "label", "placeholder", "options"])) : (r(), w(Ae, {
151
+ key: 0,
152
+ modelValue: q.value,
153
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => q.value = o),
154
+ label: a(i)("general.location"),
155
+ icon: "location-dot",
156
+ "icon-type": "fas",
157
+ "icon-placement": "label",
158
+ readonly: ""
159
+ }, null, 8, ["modelValue", "label"]))
160
+ ])) : D("", !0),
161
+ x("li", Se, [
162
+ s(xe, {
163
+ modelValue: y.value,
164
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => y.value = o),
165
+ label: a(i)("availability.checkInOut"),
166
+ "icon-type": "fas",
167
+ "icon-placement": "label",
168
+ "min-range": 1,
169
+ "min-date": ve.value,
170
+ "max-date": me.value,
171
+ range: ""
172
+ }, null, 8, ["modelValue", "label", "min-date", "max-date"]),
173
+ D("", !0)
174
+ ]),
175
+ !a(c) || !a(u) ? (r(), m("li", $e, [
176
+ a(c) ? D("", !0) : (r(), w(Q, {
177
+ key: 0,
178
+ modelValue: k.value,
179
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => k.value = o),
180
+ label: a(i)("availability.adults"),
181
+ description: a(i)("general.adultAgeRange"),
182
+ "icon-type": "fas",
183
+ "icon-placement": "label",
184
+ name: "adults",
185
+ icon: "male",
186
+ "max-value": a(se),
187
+ controls: !(a(f) && !a(u))
188
+ }, null, 8, ["modelValue", "label", "description", "max-value", "controls"])),
189
+ a(u) ? D("", !0) : (r(), w(Q, {
190
+ key: 1,
191
+ modelValue: _.value,
192
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => _.value = o),
193
+ label: a(i)("availability.children"),
194
+ description: a(i)("general.childAgeRange"),
195
+ "icon-type": "fas",
196
+ "icon-placement": "label",
197
+ name: "children",
198
+ icon: "child",
199
+ "max-value": a(re),
200
+ controls: !a(f)
201
+ }, null, 8, ["modelValue", "label", "description", "max-value", "controls"]))
202
+ ])) : D("", !0),
203
+ x("li", Ue, [
204
+ s(W, {
205
+ class: "konnectio-availability-submit-small",
206
+ type: "submit",
207
+ icon: "search",
208
+ "icon-type": "fas",
209
+ disabled: !A.value,
210
+ "is-loading": a(R)
211
+ }, null, 8, ["disabled", "is-loading"]),
212
+ s(W, {
213
+ class: "konnectio-availability-submit-large",
214
+ type: "submit",
215
+ label: a(i)("availability.buttonLabel"),
216
+ disabled: !A.value,
217
+ "is-loading": a(R)
218
+ }, null, 8, ["label", "disabled", "is-loading"])
219
+ ])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["class"])
223
+ ], 34));
224
+ }
225
+ }), qe = /* @__PURE__ */ ee(Ce, [["__scopeId", "data-v-b09ae6b2"]]), Be = { class: "availability-skeleton" }, He = {
226
+ key: 0,
227
+ class: "availability-skeleton-navigation"
228
+ }, Fe = { class: "availability-skeleton-content" }, Re = {
229
+ key: 1,
230
+ class: "availability-skeleton-event"
231
+ }, Ie = /* @__PURE__ */ Z({
232
+ __name: "AvailabilitySkeleton",
233
+ props: {
234
+ view: { default: "hotel" },
235
+ hotel: { type: Boolean, default: !1 }
236
+ },
237
+ setup(S) {
238
+ return (i, $) => (r(), m("div", Be, [
239
+ i.view === "both" ? (r(), m("div", He, [
240
+ s(X, {
241
+ height: "28px",
242
+ width: "60px",
243
+ "border-radius": "20px"
244
+ }),
245
+ s(X, {
246
+ height: "28px",
247
+ width: "60px",
248
+ "border-radius": "20px"
249
+ })
250
+ ])) : D("", !0),
251
+ x("div", Fe, [
252
+ i.view !== "event" ? (r(), m("div", {
253
+ key: 0,
254
+ class: N([
255
+ "availability-skeleton-hotel",
256
+ { "within-hotel": i.hotel }
257
+ ])
258
+ }, [
259
+ s(g, { "with-icon": "" }),
260
+ s(g, { "with-icon": "" }),
261
+ s(g, { "with-icon": "" }),
262
+ s(g, {
263
+ "with-icon": "",
264
+ "no-label": ""
265
+ })
266
+ ], 2)) : (r(), m("div", Re, [
267
+ s(g, { "with-icon": "" }),
268
+ s(g, {
269
+ "with-icon": "",
270
+ "no-label": ""
271
+ })
272
+ ]))
273
+ ])
274
+ ]));
275
+ }
276
+ }), Ge = /* @__PURE__ */ ee(Ie, [["__scopeId", "data-v-cebeb733"]]);
277
+ export {
278
+ Ge as A,
279
+ qe as H
280
+ };
281
+ //# sourceMappingURL=AvailabilitySkeleton-cs1R6FqT.js.map