@konnectio/core 4.7.14 → 4.7.16

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-BunP4zr0.js → ActionField-BdJrefVj.js} +1 -1
  2. package/dist/ActionField-BdJrefVj.js.br +0 -0
  3. package/dist/ActionField-BdJrefVj.js.gz +0 -0
  4. package/dist/{AvailabilitySkeleton-Bebnut4H.js → AvailabilitySkeleton-B0IVrbPR.js} +90 -90
  5. package/dist/AvailabilitySkeleton-B0IVrbPR.js.br +0 -0
  6. package/dist/AvailabilitySkeleton-B0IVrbPR.js.gz +0 -0
  7. package/dist/{CheckoutWindow-DBWd3mGi.js → CheckoutWindow-DUI4JgZ8.js} +6 -6
  8. package/dist/CheckoutWindow-DUI4JgZ8.js.br +0 -0
  9. package/dist/CheckoutWindow-DUI4JgZ8.js.gz +0 -0
  10. package/dist/{ErrorMessage-BmdAc_4C.js → ErrorMessage-2mxQAyot.js} +7 -7
  11. package/dist/ErrorMessage-2mxQAyot.js.br +0 -0
  12. package/dist/ErrorMessage-2mxQAyot.js.gz +0 -0
  13. package/dist/{EventAvailabilityForm-CbDi_p8_.js → EventAvailabilityForm-Ki2NfUbc.js} +16 -16
  14. package/dist/EventAvailabilityForm-Ki2NfUbc.js.br +0 -0
  15. package/dist/EventAvailabilityForm-Ki2NfUbc.js.gz +0 -0
  16. package/dist/{Field-Cc-4lMUy.js → Field-Cy_KR670.js} +1 -1
  17. package/dist/Field-Cy_KR670.js.br +0 -0
  18. package/dist/Field-Cy_KR670.js.gz +8 -0
  19. package/dist/HotelAvailabilityForm-BkFh-xjM.js +323 -0
  20. package/dist/HotelAvailabilityForm-BkFh-xjM.js.br +0 -0
  21. package/dist/HotelAvailabilityForm-BkFh-xjM.js.gz +0 -0
  22. package/dist/{SelectField-DL44GLNP.js → SelectField-r22YPAUL.js} +2302 -2285
  23. package/dist/SelectField-r22YPAUL.js.br +0 -0
  24. package/dist/SelectField-r22YPAUL.js.gz +0 -0
  25. package/dist/{TermsOfService-BooZoxeP.js → TermsOfService-DtShydK8.js} +2 -2
  26. package/dist/TermsOfService-DtShydK8.js.br +0 -0
  27. package/dist/TermsOfService-DtShydK8.js.gz +2 -0
  28. package/dist/{_-1mu2AkBc.js → _-Djyo_y3p.js} +1 -1
  29. package/dist/_-Djyo_y3p.js.br +0 -0
  30. package/dist/_-Djyo_y3p.js.gz +3 -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 +12 -12
  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-NdOAdEkO.js → dist--l1eOjS1.js} +2 -2
  41. package/dist/dist--l1eOjS1.js.br +0 -0
  42. package/dist/dist--l1eOjS1.js.gz +0 -0
  43. package/dist/{dist-DaYqJRBP.js → dist-Dh-1NrsU.js} +455 -3083
  44. package/dist/dist-Dh-1NrsU.js.br +0 -0
  45. package/dist/dist-Dh-1NrsU.js.gz +0 -0
  46. package/dist/event.js +65 -65
  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-kmfd4BQT.js → giftCard-BKTaHrPp.js} +9 -9
  56. package/dist/giftCard-BKTaHrPp.js.br +0 -0
  57. package/dist/giftCard-BKTaHrPp.js.gz +0 -0
  58. package/dist/hotel.js +956 -937
  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-D6Tfjde8.js → style-DrcTF76a.js} +1 -1
  65. package/dist/style-DrcTF76a.js.br +0 -0
  66. package/dist/style-DrcTF76a.js.gz +0 -0
  67. package/dist-wix/availability.js +18 -18
  68. package/dist-wix/event.js +16 -16
  69. package/dist-wix/gift-card-validation.js +23 -23
  70. package/dist-wix/gift-card.js +18 -18
  71. package/dist-wix/hotel.js +18 -18
  72. package/package.json +1 -1
  73. package/dist/ActionField-BunP4zr0.js.br +0 -0
  74. package/dist/ActionField-BunP4zr0.js.gz +0 -0
  75. package/dist/AvailabilitySkeleton-Bebnut4H.js.br +0 -0
  76. package/dist/AvailabilitySkeleton-Bebnut4H.js.gz +0 -0
  77. package/dist/CheckoutWindow-DBWd3mGi.js.br +0 -0
  78. package/dist/CheckoutWindow-DBWd3mGi.js.gz +0 -0
  79. package/dist/ErrorMessage-BmdAc_4C.js.br +0 -0
  80. package/dist/ErrorMessage-BmdAc_4C.js.gz +0 -0
  81. package/dist/EventAvailabilityForm-CbDi_p8_.js.br +0 -0
  82. package/dist/EventAvailabilityForm-CbDi_p8_.js.gz +0 -0
  83. package/dist/Field-Cc-4lMUy.js.br +0 -0
  84. package/dist/Field-Cc-4lMUy.js.gz +0 -0
  85. package/dist/HotelAvailabilityForm-BJBIDC9q.js +0 -323
  86. package/dist/HotelAvailabilityForm-BJBIDC9q.js.br +0 -0
  87. package/dist/HotelAvailabilityForm-BJBIDC9q.js.gz +0 -0
  88. package/dist/SelectField-DL44GLNP.js.br +0 -0
  89. package/dist/SelectField-DL44GLNP.js.gz +0 -0
  90. package/dist/TermsOfService-BooZoxeP.js.br +0 -0
  91. package/dist/TermsOfService-BooZoxeP.js.gz +0 -5
  92. package/dist/_-1mu2AkBc.js.br +0 -0
  93. package/dist/_-1mu2AkBc.js.gz +0 -0
  94. package/dist/dist-DaYqJRBP.js.br +0 -0
  95. package/dist/dist-DaYqJRBP.js.gz +0 -0
  96. package/dist/dist-NdOAdEkO.js.br +0 -0
  97. package/dist/dist-NdOAdEkO.js.gz +0 -0
  98. package/dist/giftCard-kmfd4BQT.js.br +0 -0
  99. package/dist/giftCard-kmfd4BQT.js.gz +0 -0
  100. package/dist/style-D6Tfjde8.js.br +0 -0
  101. package/dist/style-D6Tfjde8.js.gz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konnectio/core",
3
- "version": "4.7.14",
3
+ "version": "4.7.16",
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 ne, ut as re, v as ie, w as d, yt as f } from "./i18n-DwFTw_rF.js";
2
- import { C as p, E as m, H as ae, N as oe, O as se, S as h, k as ce, lt as le, mt as ue, n as de, r as g, t as fe, v as _ } from "./SelectField-DL44GLNP.js";
3
- import { n as v, p as pe } from "./AvailabilitySkeleton-Bebnut4H.js";
4
- //#region src/components/forms/HotelAvailabilityForm.vue?vue&type=script&setup=true&lang.ts
5
- var me = {
6
- class: "konnectio-availability-location",
7
- key: "location"
8
- }, he = {
9
- id: "konnectio-availability-date-selection",
10
- key: "multiDate"
11
- }, ge = {
12
- key: 0,
13
- class: "konnectio-availability-date-selection-multi"
14
- }, _e = {
15
- class: "konnectio-availability-room-count",
16
- key: "room"
17
- }, ve = {
18
- class: "konnectio-availability-guest-selection",
19
- key: "guests"
20
- }, ye = {
21
- id: "konnectio-availability-confirmation",
22
- key: "confirm"
23
- }, y = /*#__PURE__*/ h(/* @__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: h } = c(), y = i, b = p(), { adults: be, children: xe, roomCount: Se, arrivalDate: x, departureDate: S, location: C, hasHotelLocations: w, hotelLocations: T, controlLocation: Ce } = ne(p()), E = se(), we = pe(), { display: D } = oe(), { firstSelectableDateOffset: O, lastSelectableDateOffset: k, defaultAdultAmount: A, defaultChildAmount: j, maxAdultAmount: Te, maxChildAmount: Ee, splitBookingCalendar: De, disableCalendarPricesAvailability: M } = ne(m()), { hasChildSelection: N, hasRoomAmountSelection: P } = m(), Oe = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + O.value)).setHours(12, 0, 0, 0)), ke = () => new Date(new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + O.value + 1)).setHours(12, 0, 0, 0)), Ae = () => y.disableDefaultLocation ? void 0 : Ce.value, F = f(A.value), I = f(j.value), L = f(1), R = f(Oe()), z = f(ke()), B = f(Ae()), V = d({
43
- get: () => y.booking ? b.adults : F.value,
44
- set: (e) => {
45
- y.booking ? be.value = Number(e) : F.value = Number(e);
46
- }
47
- }), H = d({
48
- get: () => y.booking ? b.children : I.value,
49
- set: (e) => {
50
- y.booking ? xe.value = Number(e) : I.value = Number(e);
51
- }
52
- }), U = d({
53
- get: () => y.booking ? b.roomCount : L.value,
54
- set: (e) => {
55
- y.booking ? Se.value = Number(e) : L.value = Number(e);
56
- }
57
- }), W = d({
58
- get: () => y.booking ? x.value : R.value,
59
- set: (e) => {
60
- y.booking ? x.value = e : R.value = e;
61
- }
62
- }), G = d({
63
- get: () => y.booking ? S.value : z.value,
64
- set: (e) => {
65
- y.booking ? S.value = e : z.value = e;
66
- }
67
- }), K = d({
68
- get: () => isNaN(y.selectedLocation) ? y.booking ? C.value ?? NaN : B.value ?? NaN : y.selectedLocation,
69
- set: (e) => {
70
- y.booking ? C.value = e : B.value = e;
71
- }
72
- }), q = d(() => {
73
- let e = T.value.find(({ id: e }) => e === y.selectedLocation);
74
- return e ? e.name : "";
75
- }), J = d(() => w.value && !y.hideLocations), Y = f([]), je = d(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate()))), Me = d(() => new Date((/* @__PURE__ */ new Date()).setDate((/* @__PURE__ */ new Date()).getDate() + k.value))), Ne = d(() => new Date((/* @__PURE__ */ new Date()).setDate(W.value.getDate() + (k.value + 1)))), X = d(() => V.value !== 0), Pe = d(() => typeof y.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: V.value.toString(),
83
- c: H.value.toString(),
84
- r: U.value.toString(),
85
- ci: Z(W.value),
86
- co: Z(G.value),
87
- hid: K.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(K.value) && w.value) {
93
- D({
94
- message: h("alert.error.selectHotelId"),
95
- type: "error"
96
- });
97
- return;
98
- }
99
- if (isNaN(V.value)) {
100
- D({
101
- message: h("alert.error.selectValidAdults"),
102
- type: "error"
103
- });
104
- return;
105
- }
106
- if (isNaN(H.value)) {
107
- D({
108
- message: h("alert.error.selectValidChildren"),
109
- type: "error"
110
- });
111
- return;
112
- }
113
- if (y.booking === !1) if (Pe.value) {
114
- let e = ae();
115
- y.link[e] ? Q(y.link[e]) : y.link.en ? Q(y.link.en) : D({
116
- message: "Module misconfiguration, contact an admin",
117
- type: "error"
118
- });
119
- } else Q(y.link);
120
- else X.value && E.fetchAvailabilityData();
121
- }
122
- let Ie = ue("history", { removeNullishValues: !0 });
123
- function $() {
124
- y.booking && (Ie.ci = Z(W.value), Ie.co = Z(G.value));
125
- }
126
- return l(W, (e) => {
127
- let t = new Date(new Date(e).setDate(new Date(e).getDate() + 1));
128
- new Date(G.value) < t && (G.value = t), $();
129
- }), l(G, () => {
130
- $();
131
- }), le(ce).on(() => {
132
- Y.value = [W.value, G.value];
133
- }), l(Y, (e) => {
134
- W.value = e[0], G.value = e[1];
135
- }), l([
136
- V,
137
- H,
138
- K
139
- ], () => {
140
- we.clearCache();
141
- }), ee(() => {
142
- Y.value = [W.value, G.value];
143
- }), (ee, c) => (r(), a("form", {
144
- id: "konnectio-availability-form",
145
- class: n({ reservation: i.booking }),
146
- type: "availability",
147
- onSubmit: ie(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(N)(K.value) },
154
- { "all-guests": s(N)(K.value) },
155
- { "has-location": J.value },
156
- { "has-room-count": s(P)(K.value) }
157
- ])
158
- }, {
159
- default: re(() => [
160
- J.value ? (r(), a("li", me, [isNaN(i.selectedLocation) ? (r(), t(fe, {
161
- key: 1,
162
- modelValue: K.value,
163
- "onUpdate:modelValue": c[1] ||= (e) => K.value = e,
164
- label: s(h)("general.location"),
165
- placeholder: s(h)("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(T),
172
- searchable: !1
173
- }, null, 8, [
174
- "modelValue",
175
- "label",
176
- "placeholder",
177
- "options"
178
- ])) : (r(), t(de, {
179
- key: 0,
180
- modelValue: q.value,
181
- "onUpdate:modelValue": c[0] ||= (e) => q.value = e,
182
- label: s(h)("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", he, [s(De) ? (r(), a("div", ge, [u(v, {
189
- modelValue: W.value,
190
- "onUpdate:modelValue": c[2] ||= (e) => W.value = e,
191
- label: s(h)("availability.arrivalDate"),
192
- name: "arrivalDate",
193
- "icon-type": "fas",
194
- "icon-placement": "label",
195
- "start-date": W.value,
196
- "min-date": je.value,
197
- "max-date": Me.value,
198
- "show-prices": !s(M),
199
- "show-availability": !s(M)
200
- }, null, 8, [
201
- "modelValue",
202
- "label",
203
- "start-date",
204
- "min-date",
205
- "max-date",
206
- "show-prices",
207
- "show-availability"
208
- ]), u(v, {
209
- modelValue: G.value,
210
- "onUpdate:modelValue": c[3] ||= (e) => G.value = e,
211
- label: s(h)("availability.departureDate"),
212
- name: "departureDate",
213
- "icon-type": "fas",
214
- "icon-placement": "label",
215
- "start-date": G.value,
216
- "min-date": W.value,
217
- "max-date": Ne.value,
218
- "show-prices": !s(M),
219
- "show-availability": !s(M)
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(v, {
229
- key: 1,
230
- modelValue: Y.value,
231
- "onUpdate:modelValue": c[4] ||= (e) => Y.value = e,
232
- label: s(h)("availability.checkInOut"),
233
- "icon-type": "fas",
234
- "icon-placement": "label",
235
- "min-range": 1,
236
- "min-date": je.value,
237
- "max-date": Ne.value,
238
- "show-prices": !s(M),
239
- "show-availability": !s(M),
240
- range: ""
241
- }, null, 8, [
242
- "modelValue",
243
- "label",
244
- "min-date",
245
- "max-date",
246
- "show-prices",
247
- "show-availability"
248
- ]))]),
249
- s(P)(K.value) ? (r(), a("li", _e, [u(g, {
250
- modelValue: U.value,
251
- "onUpdate:modelValue": c[5] ||= (e) => U.value = e,
252
- label: s(h)("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", ve, [u(g, {
262
- modelValue: V.value,
263
- "onUpdate:modelValue": c[6] ||= (e) => V.value = e,
264
- label: s(h)("availability.adults"),
265
- description: s(h)("general.adultAgeRange"),
266
- "icon-type": "fas",
267
- "icon-placement": "label",
268
- name: "adults",
269
- icon: "male",
270
- "max-value": s(Te),
271
- placeholder: `${s(A)}`,
272
- controls: !0
273
- }, null, 8, [
274
- "modelValue",
275
- "label",
276
- "description",
277
- "max-value",
278
- "placeholder"
279
- ]), s(N)(K.value) ? (r(), t(g, {
280
- key: 0,
281
- modelValue: H.value,
282
- "onUpdate:modelValue": c[7] ||= (e) => H.value = e,
283
- label: s(h)("availability.children"),
284
- description: s(h)("general.childAgeRange"),
285
- "icon-type": "fas",
286
- "icon-placement": "label",
287
- name: "children",
288
- icon: "child",
289
- "max-value": s(Ee),
290
- placeholder: `${s(j)}`,
291
- controls: !0
292
- }, null, 8, [
293
- "modelValue",
294
- "label",
295
- "description",
296
- "max-value",
297
- "placeholder"
298
- ])) : e("", !0)]),
299
- o("li", ye, [u(_, {
300
- class: "konnectio-availability-submit-small",
301
- type: "submit",
302
- icon: "search",
303
- "icon-type": "fas",
304
- disabled: !X.value,
305
- "is-loading": s(E).areListingsLoading
306
- }, null, 8, ["disabled", "is-loading"]), u(_, {
307
- class: "konnectio-availability-submit-large",
308
- type: "submit",
309
- label: s(h)("availability.buttonLabel"),
310
- disabled: !X.value,
311
- "is-loading": s(E).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 { y as t };
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- x�]R]o�0|N~�ȕ*��\���J��^����p:En�WLsvd;W�)�9�PxZ{�3;��� �� ҃>�.b5�X��"ć�����vv6-����O�g���ͦ�=;N�#�<{��X�'�+j� 3M��O燇�����6b�'��o���>\k��}~��Z=ߜ�XQ�9������h즳�L��׊�Nj}� ���W䶺�鶧�۞��ώ*�8݅}O���z�o����n�C�
2
- ;4������P��Cd���`*,�6���ŧ9[ �Q�������/gu=)��b�7�
3
- �K��6rC%ؿZ�H���Η�AуXmM�݀A�ɨ�� �4IZ� �x�
4
- �g�i�8
5
- �3�R`��zx&@�qZ��Jh�d�ݒ!'��h�Q'�(�y�E�qI�h-�6����|KǙ�[&Ћ�ӱ�����g�L��L߶G*[e�LD���A�$��_�Q[e�ɐ��r���7��� 0%�̷����7�/n��j��� ���ҏ��Z�A�p����
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file