@konnectio/core 4.0.83 → 4.0.85

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 (62) hide show
  1. package/dist/{ActionField-BA-fYDFE.js → ActionField-DJk5QgPZ.js} +3 -3
  2. package/dist/ActionField-DJk5QgPZ.js.br +0 -0
  3. package/dist/AvailabilitySkeleton-CtuxK5gu.js +309 -0
  4. package/dist/AvailabilitySkeleton-CtuxK5gu.js.br +0 -0
  5. package/dist/{AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js → AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Db0xB137.js} +18 -19
  6. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Db0xB137.js.br +0 -0
  7. package/dist/{CheckoutWindow-BWvzwZp7.js → CheckoutWindow-C4Of_CDw.js} +62 -62
  8. package/dist/CheckoutWindow-C4Of_CDw.js.br +0 -0
  9. package/dist/{ErrorMessage-Cznv1pOA.js → ErrorMessage-CqKEeIyM.js} +3 -3
  10. package/dist/ErrorMessage-CqKEeIyM.js.br +0 -0
  11. package/dist/{EventAvailabilityForm-CCIRdxiD.js → EventAvailabilityForm-BuRH06ec.js} +18 -19
  12. package/dist/EventAvailabilityForm-BuRH06ec.js.br +0 -0
  13. package/dist/{Field-BvDQnKDq.js → Field-BQY1CedN.js} +5 -5
  14. package/dist/Field-BQY1CedN.js.br +0 -0
  15. package/dist/{Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js → Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CnESOevH.js} +1217 -1190
  16. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-CnESOevH.js.br +0 -0
  17. package/dist/TermsOfService-C0j_4-LO.js +28 -0
  18. package/dist/_-D5_t925T.js +5 -0
  19. package/dist/{_.vue_vue_type_style_index_0_lang-JXEPTW6b.js → _.vue_vue_type_style_index_0_lang-B2hdeWg4.js} +5 -5
  20. package/dist/availability.js +23 -24
  21. package/dist/availability.js.br +0 -0
  22. package/dist/deep-link.js +5 -6
  23. package/dist/deep-link.js.br +0 -0
  24. package/dist/event.js +72 -74
  25. package/dist/event.js.br +0 -0
  26. package/dist/gift-card-validation.js +21 -22
  27. package/dist/gift-card-validation.js.br +0 -0
  28. package/dist/gift-card.js +67 -68
  29. package/dist/gift-card.js.br +0 -0
  30. package/dist/{giftCard-DA27WKsi.js → giftCard-Df_AbMio.js} +27 -28
  31. package/dist/giftCard-Df_AbMio.js.br +0 -0
  32. package/dist/hotel.js +1269 -1143
  33. package/dist/hotel.js.br +0 -0
  34. package/dist/{masonry.plugin-C22IPiCy.js → masonry.plugin-zqPD3EI2.js} +6 -7
  35. package/dist/masonry.plugin-zqPD3EI2.js.br +0 -0
  36. package/dist/mitt-B_elXQ2J.js +12437 -0
  37. package/dist/mitt-B_elXQ2J.js.br +0 -0
  38. package/dist/polyfill.js +2427 -2378
  39. package/dist/polyfill.js.br +0 -0
  40. package/dist/{style-CF23zZwv.js → style-CDpCXUak.js} +67 -67
  41. package/dist/style-CDpCXUak.js.br +0 -0
  42. package/dist/style.css +1 -1
  43. package/dist/style.css.br +0 -0
  44. package/package.json +12 -13
  45. package/dist/ActionField-BA-fYDFE.js.br +0 -0
  46. package/dist/AvailabilitySkeleton-cs1R6FqT.js +0 -281
  47. package/dist/AvailabilitySkeleton-cs1R6FqT.js.br +0 -0
  48. package/dist/AvailabilitySkeleton.vue_vue_type_style_index_0_scoped_cebeb733_lang-Qc9hcPxa.js.br +0 -0
  49. package/dist/CheckoutWindow-BWvzwZp7.js.br +0 -0
  50. package/dist/ErrorMessage-Cznv1pOA.js.br +0 -0
  51. package/dist/EventAvailabilityForm-CCIRdxiD.js.br +0 -0
  52. package/dist/Field-BvDQnKDq.js.br +0 -0
  53. package/dist/Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js.br +0 -0
  54. package/dist/TermsOfService-GFdUcU5a.js +0 -29
  55. package/dist/_-CApO2y_W.js +0 -5
  56. package/dist/giftCard-DA27WKsi.js.br +0 -0
  57. package/dist/masonry.plugin-C22IPiCy.js.br +0 -0
  58. package/dist/mitt-QLRlCcPH.js +0 -2962
  59. package/dist/mitt-QLRlCcPH.js.br +0 -0
  60. package/dist/style-CF23zZwv.js.br +0 -0
  61. package/dist/vue.esm-bundler-BkY4vCIk.js +0 -9485
  62. package/dist/vue.esm-bundler-BkY4vCIk.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.83",
3
+ "version": "4.0.85",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
5
5
  "homepage": "https://konnectio.com",
6
6
  "description": "Konnectio Core Frontend Integration.",
@@ -45,12 +45,12 @@
45
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
- "@unhead/vue": "1.9.16",
48
+ "@unhead/vue": "1.10.4",
49
49
  "@vuepic/vue-datepicker": "9.0.2",
50
50
  "@vueup/vue-quill": "1.2.0",
51
51
  "@vueuse/core": "10.11.1",
52
- "axios": "1.7.4",
53
- "core-js": "3.38.0",
52
+ "axios": "1.7.7",
53
+ "core-js": "3.38.1",
54
54
  "cqfill": "0.6.1",
55
55
  "date-fns": "3.6.0",
56
56
  "floating-vue": "5.2.2",
@@ -58,29 +58,29 @@
58
58
  "linkifyjs": "4.1.3",
59
59
  "mitt": "3.0.1",
60
60
  "pinia": "2.2.2",
61
- "postcss": "8.4.41",
61
+ "postcss": "8.4.44",
62
62
  "recaptcha-v3": "1.10.0",
63
63
  "regenerator-runtime": "0.14.1",
64
64
  "resize-detector": "0.3.0",
65
65
  "text-clipper": "2.2.0",
66
66
  "vue": "3.4.38",
67
67
  "vue-gtag": "2.0.1",
68
- "vue-i18n": "9.13.1",
68
+ "vue-i18n": "9.14.0",
69
69
  "vue-inner-image-zoom": "2.0.0",
70
70
  "vue-masonry": "0.16.0",
71
71
  "vue-router": "4.4.3",
72
72
  "vue-select": "4.0.0-beta.6",
73
73
  "vue3-side-panel": "1.3.0",
74
- "vue3-sticky-directive": "^0.0.2",
74
+ "vue3-sticky-directive": "0.0.2",
75
75
  "vue3-sticky-sidebar": "2.0.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@babel/eslint-parser": "7.25.1",
79
79
  "@originjs/vite-plugin-commonjs": "1.0.3",
80
- "@types/node": "22.2.00",
80
+ "@types/node": "22.5.2",
81
81
  "@typescript-eslint/eslint-plugin": "7.18.0",
82
82
  "@typescript-eslint/parser": "7.18.0",
83
- "@vitejs/plugin-vue": "5.1.2",
83
+ "@vitejs/plugin-vue": "5.1.3",
84
84
  "@vue/eslint-config-typescript": "13.0.0",
85
85
  "@vue/test-utils": "2.4.6",
86
86
  "cross-env": "7.0.3",
@@ -90,11 +90,11 @@
90
90
  "rollup-plugin-typescript2": "0.36.0",
91
91
  "sass": "1.77.8",
92
92
  "ts-node": "10.9.2",
93
- "tslib": "2.6.3",
93
+ "tslib": "2.7.0",
94
94
  "typescript": "5.5.4",
95
95
  "vite": "5.4.2",
96
96
  "vite-plugin-compression": "0.5.1",
97
- "vue-tsc": "2.0.29"
97
+ "vue-tsc": "2.1.4"
98
98
  },
99
99
  "contributors": [
100
100
  {
@@ -108,9 +108,8 @@
108
108
  "freshcase",
109
109
  "freshbooking",
110
110
  "wordpress",
111
- "vuejs",
112
111
  "booking",
113
112
  "octopus-pms",
114
- "hotelboss"
113
+ "hotel"
115
114
  ]
116
115
  }
Binary file
@@ -1,281 +0,0 @@
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
Binary file
Binary file
Binary file
@@ -1,29 +0,0 @@
1
- import { d as n, a as r, b as a, w as i, e, u as s } from "./vue.esm-bundler-BkY4vCIk.js";
2
- import { F as c, _ as p } from "./Field.vue_vue_type_style_index_0_scoped_992f78a1_lang-9lyXRaoC.js";
3
- import { B as _ } from "./CheckoutWindow-BWvzwZp7.js";
4
- import { u as d } from "./mitt-QLRlCcPH.js";
5
- const m = { class: "konnectio-terms-side-panel" }, l = ["innerHTML"], f = /* @__PURE__ */ n({
6
- __name: "TermsOfService",
7
- props: {
8
- description: {}
9
- },
10
- setup(u) {
11
- const { t } = d();
12
- return (o, B) => (r(), a(_, {
13
- title: s(t)("general.termsAndConditions")
14
- }, {
15
- default: i(() => [
16
- e("div", m, [
17
- e("p", {
18
- innerHTML: s(c)(o.description)
19
- }, null, 8, l)
20
- ])
21
- ]),
22
- _: 1
23
- }, 8, ["title"]));
24
- }
25
- }), C = /* @__PURE__ */ p(f, [["__scopeId", "data-v-82236ccc"]]);
26
- export {
27
- C as S
28
- };
29
- //# sourceMappingURL=TermsOfService-GFdUcU5a.js.map
@@ -1,5 +0,0 @@
1
- import { _ as f } from "./_.vue_vue_type_style_index_0_lang-JXEPTW6b.js";
2
- export {
3
- f as default
4
- };
5
- //# sourceMappingURL=_-CApO2y_W.js.map
Binary file
Binary file