@konnectio/core 4.7.16 → 4.7.18

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 (101) hide show
  1. package/dist/{ActionField-BdJrefVj.js → ActionField-L0Lr7Cq5.js} +1 -1
  2. package/dist/ActionField-L0Lr7Cq5.js.br +0 -0
  3. package/dist/ActionField-L0Lr7Cq5.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-B0IVrbPR.js → AvailabilitySkeleton-CSQUAVcs.js} +154 -154
  5. package/dist/AvailabilitySkeleton-CSQUAVcs.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-CSQUAVcs.js.gz +0 -0
  7. package/dist/{CheckoutWindow-DUI4JgZ8.js → CheckoutWindow-CjVK26L8.js} +6 -6
  8. package/dist/CheckoutWindow-CjVK26L8.js.br +0 -0
  9. package/dist/CheckoutWindow-CjVK26L8.js.gz +0 -0
  10. package/dist/{ErrorMessage-2mxQAyot.js → ErrorMessage-BZqsLh26.js} +7 -7
  11. package/dist/ErrorMessage-BZqsLh26.js.br +0 -0
  12. package/dist/ErrorMessage-BZqsLh26.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-Ki2NfUbc.js → EventAvailabilityForm-Cuxc0RuT.js} +16 -16
  14. package/dist/EventAvailabilityForm-Cuxc0RuT.js.br +0 -0
  15. package/dist/EventAvailabilityForm-Cuxc0RuT.js.gz +0 -0
  16. package/dist/{Field-Cy_KR670.js → Field-AlAFHkiH.js} +1 -1
  17. package/dist/Field-AlAFHkiH.js.br +0 -0
  18. package/dist/Field-AlAFHkiH.js.gz +0 -0
  19. package/dist/HotelAvailabilityForm-C3iHHzNH.js +323 -0
  20. package/dist/HotelAvailabilityForm-C3iHHzNH.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-C3iHHzNH.js.gz +0 -0
  22. package/dist/{SelectField-r22YPAUL.js → SelectField-hZSfVqht.js} +1565 -1555
  23. package/dist/SelectField-hZSfVqht.js.br +0 -0
  24. package/dist/SelectField-hZSfVqht.js.gz +0 -0
  25. package/dist/{TermsOfService-DtShydK8.js → TermsOfService-CSImjp8p.js} +2 -2
  26. package/dist/TermsOfService-CSImjp8p.js.br +0 -0
  27. package/dist/TermsOfService-CSImjp8p.js.gz +3 -0
  28. package/dist/{_-Djyo_y3p.js → _-ceQWaE_o.js} +1 -1
  29. package/dist/_-ceQWaE_o.js.br +0 -0
  30. package/dist/_-ceQWaE_o.js.gz +5 -0
  31. package/dist/availability.js +7 -7
  32. package/dist/availability.js.br +0 -0
  33. package/dist/availability.js.gz +0 -0
  34. package/dist/cancel-reservation.js +11 -11
  35. package/dist/cancel-reservation.js.br +0 -0
  36. package/dist/cancel-reservation.js.gz +0 -0
  37. package/dist/core.css +1 -1
  38. package/dist/core.css.br +0 -0
  39. package/dist/core.css.gz +0 -0
  40. package/dist/{dist-Dh-1NrsU.js → dist-DEZcjiNm.js} +47 -17
  41. package/dist/dist-DEZcjiNm.js.br +0 -0
  42. package/dist/dist-DEZcjiNm.js.gz +0 -0
  43. package/dist/{dist--l1eOjS1.js → dist-DtPUJ4bx.js} +2 -2
  44. package/dist/dist-DtPUJ4bx.js.br +0 -0
  45. package/dist/dist-DtPUJ4bx.js.gz +0 -0
  46. package/dist/event.js +179 -172
  47. package/dist/event.js.br +0 -0
  48. package/dist/event.js.gz +0 -0
  49. package/dist/gift-card-validation.js +15 -15
  50. package/dist/gift-card-validation.js.br +0 -0
  51. package/dist/gift-card-validation.js.gz +0 -0
  52. package/dist/gift-card.js +9 -9
  53. package/dist/gift-card.js.br +0 -0
  54. package/dist/gift-card.js.gz +0 -0
  55. package/dist/{giftCard-BKTaHrPp.js → giftCard-CoefzLvK.js} +9 -9
  56. package/dist/giftCard-CoefzLvK.js.br +0 -0
  57. package/dist/giftCard-CoefzLvK.js.gz +0 -0
  58. package/dist/hotel.js +582 -582
  59. package/dist/hotel.js.br +0 -0
  60. package/dist/hotel.js.gz +0 -0
  61. package/dist/polyfill.js +1 -1
  62. package/dist/polyfill.js.br +0 -0
  63. package/dist/polyfill.js.gz +0 -0
  64. package/dist/{style-DrcTF76a.js → style-DRBxevpd.js} +1 -1
  65. package/dist/style-DRBxevpd.js.br +0 -0
  66. package/dist/style-DRBxevpd.js.gz +0 -0
  67. package/dist-wix/availability.js +3 -3
  68. package/dist-wix/event.js +7 -7
  69. package/dist-wix/gift-card-validation.js +2 -2
  70. package/dist-wix/gift-card.js +3 -3
  71. package/dist-wix/hotel.js +5 -5
  72. package/package.json +1 -1
  73. package/dist/ActionField-BdJrefVj.js.br +0 -0
  74. package/dist/ActionField-BdJrefVj.js.gz +0 -0
  75. package/dist/AvailabilitySkeleton-B0IVrbPR.js.br +0 -0
  76. package/dist/AvailabilitySkeleton-B0IVrbPR.js.gz +0 -0
  77. package/dist/CheckoutWindow-DUI4JgZ8.js.br +0 -0
  78. package/dist/CheckoutWindow-DUI4JgZ8.js.gz +0 -0
  79. package/dist/ErrorMessage-2mxQAyot.js.br +0 -0
  80. package/dist/ErrorMessage-2mxQAyot.js.gz +0 -0
  81. package/dist/EventAvailabilityForm-Ki2NfUbc.js.br +0 -0
  82. package/dist/EventAvailabilityForm-Ki2NfUbc.js.gz +0 -0
  83. package/dist/Field-Cy_KR670.js.br +0 -0
  84. package/dist/Field-Cy_KR670.js.gz +0 -8
  85. package/dist/HotelAvailabilityForm-BkFh-xjM.js +0 -323
  86. package/dist/HotelAvailabilityForm-BkFh-xjM.js.br +0 -0
  87. package/dist/HotelAvailabilityForm-BkFh-xjM.js.gz +0 -0
  88. package/dist/SelectField-r22YPAUL.js.br +0 -0
  89. package/dist/SelectField-r22YPAUL.js.gz +0 -0
  90. package/dist/TermsOfService-DtShydK8.js.br +0 -0
  91. package/dist/TermsOfService-DtShydK8.js.gz +0 -2
  92. package/dist/_-Djyo_y3p.js.br +0 -0
  93. package/dist/_-Djyo_y3p.js.gz +0 -3
  94. package/dist/dist--l1eOjS1.js.br +0 -0
  95. package/dist/dist--l1eOjS1.js.gz +0 -0
  96. package/dist/dist-Dh-1NrsU.js.br +0 -0
  97. package/dist/dist-Dh-1NrsU.js.gz +0 -0
  98. package/dist/giftCard-BKTaHrPp.js.br +0 -0
  99. package/dist/giftCard-BKTaHrPp.js.gz +0 -0
  100. package/dist/style-DrcTF76a.js.br +0 -0
  101. package/dist/style-DrcTF76a.js.gz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.7.16",
3
+ "version": "4.7.18",
4
4
  "author": "Konnectio <info@konnectio.com> (https://konnectio.com)",
5
5
  "homepage": "https://konnectio.com",
6
6
  "repository": {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,8 +0,0 @@
1
- xڕT�N�@}^Űd�u�8\�QJ�
2
- j�UY�=! f��]'���{�v­��4��\��̌x�������
3
  �Sg-�S�$�O�j�� �8��9�T�X�X���Ht�2�8;��e��sg�'�U�:����W,1�g�"�I�����EE�o��`t��R�5�����&�:���5n�L�Ee�
4
- V%�q��5�%��lf�巫�,ۉ ��x�`'�/<�e�?`
5
- 4��#�V�Ia�2Aq;�),��1�K����K�2�������+^�ڼt�Us
6
- K�8��} �zm�%��w��2��w�$9�)`���ғ�8L���ܡ-��&=�����9x�,���� l�^���BL)�2�<�����f��U��e@ ny8
7
- � yъc���m[
8
- tw�"nY����fSh
9
- tő��˒A����5�(1H��-y|��$�mi� ʢ���Ww�^���ZXy?�Ĝ�
@@ -1,323 +0,0 @@
1
- import { D as e, E as t, Et as n, J as r, K as ee, N as i, O as a, T as o, Tt as s, a as c, ct as l, d as te, j as u, l as d, ut as ne, v as re, w as f, yt as p } from "./i18n-DwFTw_rF.js";
2
- import { C as m, E as h, N as ie, O as ae, S as g, U as oe, ht as se, k as ce, n as le, r as _, t as ue, ut as de, v } from "./SelectField-r22YPAUL.js";
3
- import { n as y, p as fe } from "./AvailabilitySkeleton-B0IVrbPR.js";
4
- //#region src/components/forms/HotelAvailabilityForm.vue?vue&type=script&setup=true&lang.ts
5
- var pe = {
6
- class: "konnectio-availability-location",
7
- key: "location"
8
- }, me = {
9
- id: "konnectio-availability-date-selection",
10
- key: "multiDate"
11
- }, he = {
12
- key: 0,
13
- class: "konnectio-availability-date-selection-multi"
14
- }, ge = {
15
- class: "konnectio-availability-room-count",
16
- key: "room"
17
- }, _e = {
18
- class: "konnectio-availability-guest-selection",
19
- key: "guests"
20
- }, ve = {
21
- id: "konnectio-availability-confirmation",
22
- key: "confirm"
23
- }, b = /*#__PURE__*/ g(/* @__PURE__ */ i({
24
- __name: "HotelAvailabilityForm",
25
- props: {
26
- booking: {
27
- type: Boolean,
28
- default: !1
29
- },
30
- link: {},
31
- selectedLocation: { default: NaN },
32
- disableDefaultLocation: {
33
- type: Boolean,
34
- default: !1
35
- },
36
- hideLocations: {
37
- type: Boolean,
38
- default: !1
39
- }
40
- },
41
- setup(i) {
42
- let { t: g } = c(), b = i, x = m(), { adults: ye, children: be, roomCount: xe, arrivalDate: S, departureDate: C, location: Se, hasHotelLocations: Ce, hotelLocations: w, controlLocation: we } = d(m()), T = ae(), Te = fe(), { display: E } = ie(), { firstSelectableDateOffset: D, lastSelectableDateOffset: O, defaultAdultAmount: k, defaultChildAmount: A, maxAdultAmount: Ee, maxChildAmount: De, splitBookingCalendar: Oe, disableCalendarPricesAvailability: j } = d(h()), { hasChildSelection: M, hasRoomAmountSelection: N } = h(), ke = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value)).setHours(12, 0, 0, 0)), Ae = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + D.value + 1)).setHours(12, 0, 0, 0)), je = () => b.disableDefaultLocation ? void 0 : we.value, P = p(k.value), F = p(A.value), I = p(1), L = p(ke()), R = p(Ae()), z = p(je()), B = f({
43
- get: () => b.booking ? x.adults : P.value,
44
- set: (e) => {
45
- b.booking ? ye.value = Number(e) : P.value = Number(e);
46
- }
47
- }), V = f({
48
- get: () => b.booking ? x.children : F.value,
49
- set: (e) => {
50
- b.booking ? be.value = Number(e) : F.value = Number(e);
51
- }
52
- }), H = f({
53
- get: () => b.booking ? x.roomCount : I.value,
54
- set: (e) => {
55
- b.booking ? xe.value = Number(e) : I.value = Number(e);
56
- }
57
- }), U = f({
58
- get: () => b.booking ? S.value : L.value,
59
- set: (e) => {
60
- b.booking ? S.value = e : L.value = e;
61
- }
62
- }), W = f({
63
- get: () => b.booking ? C.value : R.value,
64
- set: (e) => {
65
- b.booking ? C.value = e : R.value = e;
66
- }
67
- }), G = f({
68
- get: () => isNaN(b.selectedLocation) ? b.booking ? Se.value ?? NaN : z.value ?? NaN : b.selectedLocation,
69
- set: (e) => {
70
- b.booking ? Se.value = e : z.value = e;
71
- }
72
- }), K = f(() => {
73
- let e = w.value.find(({ id: e }) => e === b.selectedLocation);
74
- return e ? e.name : "";
75
- }), q = f(() => Ce.value && !b.hideLocations), J = p([]), Y = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate()))), Me = f(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + O.value))), Ne = f(() => new Date((/* @__PURE__ */ new Date()).setDate(U.value.getDate() + (O.value + 1)))), X = f(() => B.value !== 0), Pe = f(() => typeof b.link != "string");
76
- function Z(e) {
77
- let t = e.getFullYear(), n = e.getMonth() + 1, r = e.getDate();
78
- return r < 10 && (r = "0" + r), n < 10 && (n = "0" + n), `${t}-${n}-${r}`;
79
- }
80
- function Q(e) {
81
- let t = {
82
- a: B.value.toString(),
83
- c: V.value.toString(),
84
- r: H.value.toString(),
85
- ci: Z(U.value),
86
- co: Z(W.value),
87
- hid: G.value.toString()
88
- }, n = new URLSearchParams(t), r = new URL(e, window.location.origin);
89
- r.search = n.toString(), window.location.replace(r.toString());
90
- }
91
- function Fe() {
92
- if (isNaN(G.value) && Ce.value) {
93
- E({
94
- message: g("alert.error.selectHotelId"),
95
- type: "error"
96
- });
97
- return;
98
- }
99
- if (isNaN(B.value)) {
100
- E({
101
- message: g("alert.error.selectValidAdults"),
102
- type: "error"
103
- });
104
- return;
105
- }
106
- if (isNaN(V.value)) {
107
- E({
108
- message: g("alert.error.selectValidChildren"),
109
- type: "error"
110
- });
111
- return;
112
- }
113
- if (b.booking === !1) if (Pe.value) {
114
- let e = oe();
115
- b.link[e] ? Q(b.link[e]) : b.link.en ? Q(b.link.en) : E({
116
- message: "Module misconfiguration, contact an admin",
117
- type: "error"
118
- });
119
- } else Q(b.link);
120
- else X.value && T.fetchAvailabilityData();
121
- }
122
- let Ie = se("history", { removeNullishValues: !0 });
123
- function $() {
124
- b.booking && (Ie.ci = Z(U.value), Ie.co = Z(W.value));
125
- }
126
- return l(U, (e) => {
127
- let t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
128
- new Date(W.value) < t && (W.value = t), $();
129
- }), l(W, () => {
130
- $();
131
- }), de(ce).on(() => {
132
- J.value = [U.value, W.value];
133
- }), l(J, (e) => {
134
- U.value = e[0], W.value = e[1];
135
- }), l([
136
- B,
137
- V,
138
- G
139
- ], () => {
140
- Te.clearCache();
141
- }), ee(() => {
142
- J.value = [U.value, W.value];
143
- }), (ee, c) => (r(), a("form", {
144
- id: "konnectio-availability-form",
145
- class: n({ reservation: i.booking }),
146
- type: "availability",
147
- onSubmit: re(Fe, ["prevent"])
148
- }, [u(te, {
149
- id: "konnectio-availability-form-content",
150
- tag: "ul",
151
- class: n([
152
- { "is-booking-page": i.booking },
153
- { "only-adult-guests": !s(M)(G.value) },
154
- { "all-guests": s(M)(G.value) },
155
- { "has-location": q.value },
156
- { "has-room-count": s(N)(G.value) }
157
- ])
158
- }, {
159
- default: ne(() => [
160
- q.value ? (r(), a("li", pe, [isNaN(i.selectedLocation) ? (r(), t(ue, {
161
- key: 1,
162
- modelValue: G.value,
163
- "onUpdate:modelValue": c[1] ||= (e) => G.value = e,
164
- label: s(g)("general.location"),
165
- placeholder: s(g)("general.locationPlaceholder"),
166
- icon: "location-dot",
167
- "icon-type": "fas",
168
- "icon-placement": "label",
169
- "label-key": "name",
170
- "value-key": "id",
171
- options: s(w),
172
- searchable: !1
173
- }, null, 8, [
174
- "modelValue",
175
- "label",
176
- "placeholder",
177
- "options"
178
- ])) : (r(), t(le, {
179
- key: 0,
180
- modelValue: K.value,
181
- "onUpdate:modelValue": c[0] ||= (e) => K.value = e,
182
- label: s(g)("general.location"),
183
- icon: "location-dot",
184
- "icon-type": "fas",
185
- "icon-placement": "label",
186
- readonly: ""
187
- }, null, 8, ["modelValue", "label"]))])) : e("", !0),
188
- o("li", me, [s(Oe) ? (r(), a("div", he, [u(y, {
189
- modelValue: U.value,
190
- "onUpdate:modelValue": c[2] ||= (e) => U.value = e,
191
- label: s(g)("availability.arrivalDate"),
192
- name: "arrivalDate",
193
- "icon-type": "fas",
194
- "icon-placement": "label",
195
- "start-date": U.value,
196
- "min-date": Y.value,
197
- "max-date": Me.value,
198
- "show-prices": !s(j),
199
- "show-availability": !s(j)
200
- }, null, 8, [
201
- "modelValue",
202
- "label",
203
- "start-date",
204
- "min-date",
205
- "max-date",
206
- "show-prices",
207
- "show-availability"
208
- ]), u(y, {
209
- modelValue: W.value,
210
- "onUpdate:modelValue": c[3] ||= (e) => W.value = e,
211
- label: s(g)("availability.departureDate"),
212
- name: "departureDate",
213
- "icon-type": "fas",
214
- "icon-placement": "label",
215
- "start-date": W.value,
216
- "min-date": U.value,
217
- "max-date": Ne.value,
218
- "show-prices": !s(j),
219
- "show-availability": !s(j)
220
- }, null, 8, [
221
- "modelValue",
222
- "label",
223
- "start-date",
224
- "min-date",
225
- "max-date",
226
- "show-prices",
227
- "show-availability"
228
- ])])) : (r(), t(y, {
229
- key: 1,
230
- modelValue: J.value,
231
- "onUpdate:modelValue": c[4] ||= (e) => J.value = e,
232
- label: s(g)("availability.checkInOut"),
233
- "icon-type": "fas",
234
- "icon-placement": "label",
235
- "min-range": 1,
236
- "min-date": Y.value,
237
- "max-date": Ne.value,
238
- "show-prices": !s(j),
239
- "show-availability": !s(j),
240
- range: ""
241
- }, null, 8, [
242
- "modelValue",
243
- "label",
244
- "min-date",
245
- "max-date",
246
- "show-prices",
247
- "show-availability"
248
- ]))]),
249
- s(N)(G.value) ? (r(), a("li", ge, [u(_, {
250
- modelValue: H.value,
251
- "onUpdate:modelValue": c[5] ||= (e) => H.value = e,
252
- label: s(g)("availability.roomCount"),
253
- "icon-type": "fas",
254
- "icon-placement": "label",
255
- name: "roomCount",
256
- icon: "house",
257
- "min-value": 1,
258
- "max-value": 10,
259
- controls: !0
260
- }, null, 8, ["modelValue", "label"])])) : e("", !0),
261
- o("li", _e, [u(_, {
262
- modelValue: B.value,
263
- "onUpdate:modelValue": c[6] ||= (e) => B.value = e,
264
- label: s(g)("availability.adults"),
265
- description: s(g)("general.adultAgeRange"),
266
- "icon-type": "fas",
267
- "icon-placement": "label",
268
- name: "adults",
269
- icon: "male",
270
- "max-value": s(Ee),
271
- placeholder: `${s(k)}`,
272
- controls: !0
273
- }, null, 8, [
274
- "modelValue",
275
- "label",
276
- "description",
277
- "max-value",
278
- "placeholder"
279
- ]), s(M)(G.value) ? (r(), t(_, {
280
- key: 0,
281
- modelValue: V.value,
282
- "onUpdate:modelValue": c[7] ||= (e) => V.value = e,
283
- label: s(g)("availability.children"),
284
- description: s(g)("general.childAgeRange"),
285
- "icon-type": "fas",
286
- "icon-placement": "label",
287
- name: "children",
288
- icon: "child",
289
- "max-value": s(De),
290
- placeholder: `${s(A)}`,
291
- controls: !0
292
- }, null, 8, [
293
- "modelValue",
294
- "label",
295
- "description",
296
- "max-value",
297
- "placeholder"
298
- ])) : e("", !0)]),
299
- o("li", ve, [u(v, {
300
- class: "konnectio-availability-submit-small",
301
- type: "submit",
302
- icon: "search",
303
- "icon-type": "fas",
304
- disabled: !X.value,
305
- "is-loading": s(T).areListingsLoading
306
- }, null, 8, ["disabled", "is-loading"]), u(v, {
307
- class: "konnectio-availability-submit-large",
308
- type: "submit",
309
- label: s(g)("availability.buttonLabel"),
310
- disabled: !X.value,
311
- "is-loading": s(T).areListingsLoading
312
- }, null, 8, [
313
- "label",
314
- "disabled",
315
- "is-loading"
316
- ])])
317
- ]),
318
- _: 1
319
- }, 8, ["class"])], 34));
320
- }
321
- }), [["__scopeId", "data-v-ef82679e"]]);
322
- //#endregion
323
- export { b as t };
Binary file
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- x�]R�o�0���'O���i�4A�)��bS���BPUQ���Ԏl�U�ߑ3�O�~zw���Ԧ5�c�K�$q�������j%f><�D)�
2
- 9��AQ��?]�(E���>70J��.��B������d�ִ.�5=�UFg���e
Binary file
@@ -1,3 +0,0 @@
1
- x�mSak�0�l���V�\{) ���u�e����e�R�j_-��Ir��߇�v
2
- �h��bp4z8�m5yo�'wg�w�;{�w���ij™"ݎ�������-�(�8�)k�]Sh�`���:_�t��i:�|�TF�B�U��4�����ӕthQa�&��ޗ` k 5Aٱ�:&��Ѵ���X��n� z(�V���ICz�v�P��닫�u�_��u�����t>Te���]�[�l��(�Ȧ!�/�L��F�I�*�FKS��P�k�a6R�[�,"8M�K��`h�S6$��;�%*����T�<��[k��N�����3s�S L)4󫠴
3
- �|�Ր���a�$�B� ���
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file