@konnectio/core 4.7.17 → 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 (100) hide show
  1. package/dist/{ActionField-Dtyg_Xqt.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-6jjgsDUN.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-CUoVKHnQ.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-CeH20mgp.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-CEi0n5w5.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-nvWxJ8O5.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-DO26J3vV.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-1ml1UlRa.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/{_-BfUSBI8s.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-DvERnyi9.js → dist-DEZcjiNm.js} +4 -4
  41. package/dist/dist-DEZcjiNm.js.br +0 -0
  42. package/dist/dist-DEZcjiNm.js.gz +0 -0
  43. package/dist/{dist-UZ0ttnnU.js → dist-DtPUJ4bx.js} +2 -2
  44. package/dist/dist-DtPUJ4bx.js.br +0 -0
  45. package/dist/{dist-UZ0ttnnU.js.gz → 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-Cp7GosHw.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-DS_dEN32.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 +6 -6
  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-Dtyg_Xqt.js.br +0 -0
  74. package/dist/ActionField-Dtyg_Xqt.js.gz +0 -0
  75. package/dist/AvailabilitySkeleton-6jjgsDUN.js.br +0 -0
  76. package/dist/AvailabilitySkeleton-6jjgsDUN.js.gz +0 -0
  77. package/dist/CheckoutWindow-CUoVKHnQ.js.br +0 -0
  78. package/dist/CheckoutWindow-CUoVKHnQ.js.gz +0 -0
  79. package/dist/ErrorMessage-CeH20mgp.js.br +0 -0
  80. package/dist/ErrorMessage-CeH20mgp.js.gz +0 -0
  81. package/dist/EventAvailabilityForm-CEi0n5w5.js.br +0 -0
  82. package/dist/EventAvailabilityForm-CEi0n5w5.js.gz +0 -0
  83. package/dist/Field-nvWxJ8O5.js.br +0 -0
  84. package/dist/Field-nvWxJ8O5.js.gz +0 -0
  85. package/dist/HotelAvailabilityForm-CmL_Zi12.js +0 -323
  86. package/dist/HotelAvailabilityForm-CmL_Zi12.js.br +0 -0
  87. package/dist/HotelAvailabilityForm-CmL_Zi12.js.gz +0 -0
  88. package/dist/SelectField-DO26J3vV.js.br +0 -0
  89. package/dist/SelectField-DO26J3vV.js.gz +0 -0
  90. package/dist/TermsOfService-1ml1UlRa.js.br +0 -0
  91. package/dist/TermsOfService-1ml1UlRa.js.gz +0 -2
  92. package/dist/_-BfUSBI8s.js.br +0 -0
  93. package/dist/_-BfUSBI8s.js.gz +0 -0
  94. package/dist/dist-DvERnyi9.js.br +0 -0
  95. package/dist/dist-DvERnyi9.js.gz +0 -0
  96. package/dist/dist-UZ0ttnnU.js.br +0 -0
  97. package/dist/giftCard-Cp7GosHw.js.br +0 -0
  98. package/dist/giftCard-Cp7GosHw.js.gz +0 -10
  99. package/dist/style-DS_dEN32.js.br +0 -0
  100. package/dist/style-DS_dEN32.js.gz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.7.17",
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
Binary file
@@ -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-DO26J3vV.js";
3
- import { n as y, p as fe } from "./AvailabilitySkeleton-6jjgsDUN.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|N~�ȕ*��\hA�*|�*�P���t��d�����vR�)�9�PxZ{�3;��i�����I���%>��%�Z��%QJt��`�ښ
2
- �s!A��aZ��2(^ �nI�-��hﭮ���U��Ò��u�5>��|�[Z�j�3�N����?��Np=}b`��]�H�$j�+!{�a/��a�/�(��Dp2ă�X.YQ�ʴ��f�.}���޳�7/nfl�c,H�Ɉ���h�Ǡc8����
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,10 +0,0 @@
1
- xڕWmO�8�����'�D�e�nu2�]���إ��~@�ɴ5$N�v[
2
- ����N����'���=���g��� � ��2��*KZ5��#HX�X9����K�;Z�/���ߙ�~KVh�$,�i-|��0��5apIk�`�P� �hM(G30n3k�b���K��wGg�?����ʛ�t~�8���������D����ilMk!4�� ��� ����ZA�t�Xq@XC�0b��4�����O�ъ#a�)�d�5�du�r�0�
3
- s�u�9�:�0�,���W���%���
4
- ���`�� �0���U"�6�v����)tɲA-E&Qs���j�&��<�T�\���_�Ϧ���ݫ��҅�{��v;݈�q�?rۧV���p��
5
- ��a���Ӿ����ܻ#�>yd�nC�=С�"�bO �����D���ȷx!�9�un��C� � �ŠkE 
6
- K#˽����w���SK��bgE"�q��D*w�d��}1��:��\5�8L�tqnF�QD^̕�pؐ�g.��v�a٠�5�>X�
7
- 65��Bq�&��K��,�*��-��|�ᑌ�E:���9��CjD[,S���2h�lp8d�m�B�s8����g^й����Rp8rx.p)���ɇ���<�
8
- T�ҥ�گ���K�)Y(�:�`�t�
9
- ӗY�)�r�\�
10
- ����ω!����gU=��BȌ����}�n}�q�N�q��q�$Z�S�_�O?��7�9|i��E���
Binary file
Binary file