@mirai/core 0.3.175 → 0.3.177
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.
- package/.env +7 -4
- package/build/components/Booking/Booking.js +1 -1
- package/build/components/Booking/Booking.js.map +1 -1
- package/build/components/Booking/Booking.l10n.js +0 -15
- package/build/components/Booking/Booking.l10n.js.map +1 -1
- package/build/components/Booking/Booking.module.css +0 -9
- package/build/components/Booking/components/Hotelverse/Hotelverse.js +1 -1
- package/build/components/Booking/components/Hotelverse/Hotelverse.js.map +1 -1
- package/build/components/Booking/partials/index.js +2 -13
- package/build/components/Booking/partials/index.js.map +1 -1
- package/build/components/Chat/Chat.constants.js +28 -0
- package/build/components/Chat/Chat.constants.js.map +1 -0
- package/build/components/Chat/Chat.js +231 -0
- package/build/components/Chat/Chat.js.map +1 -0
- package/build/components/Chat/Chat.l10n.js +24 -0
- package/build/components/Chat/Chat.l10n.js.map +1 -0
- package/build/components/Chat/Chat.module.css +90 -0
- package/build/components/Chat/Chat.theme.module.css +49 -0
- package/build/components/Chat/components/Avatar/Avatar.js +68 -0
- package/build/components/Chat/components/Avatar/Avatar.js.map +1 -0
- package/build/components/Chat/components/Avatar/Avatar.module.css +81 -0
- package/build/components/Chat/components/Avatar/__tests__/__snapshots__/Avatar.test.jsx.snap +97 -0
- package/build/components/Chat/components/Avatar/index.js +17 -0
- package/build/components/Chat/components/Avatar/index.js.map +1 -0
- package/build/components/Chat/components/Input/Input.js +72 -0
- package/build/components/Chat/components/Input/Input.js.map +1 -0
- package/build/components/Chat/components/Input/Input.l10n.js +15 -0
- package/build/components/Chat/components/Input/Input.l10n.js.map +1 -0
- package/build/components/Chat/components/Input/Input.module.css +19 -0
- package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +175 -0
- package/build/components/Chat/components/Input/index.js +17 -0
- package/build/components/Chat/components/Input/index.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.List.js +52 -0
- package/build/components/Chat/components/InputRich/InputRich.List.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.js +182 -0
- package/build/components/Chat/components/InputRich/InputRich.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.l10n.js +12 -0
- package/build/components/Chat/components/InputRich/InputRich.l10n.js.map +1 -0
- package/build/components/Chat/components/InputRich/InputRich.module.css +73 -0
- package/build/components/Chat/components/InputRich/__tests__/__snapshots__/InputRich.test.jsx.snap +275 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseList.js +20 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseList.js.map +1 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js +27 -0
- package/build/components/Chat/components/InputRich/helpers/getVerboseOccupation.js.map +1 -0
- package/build/components/Chat/components/InputRich/helpers/index.js +28 -0
- package/build/components/Chat/components/InputRich/helpers/index.js.map +1 -0
- package/build/components/Chat/components/InputRich/index.js +17 -0
- package/build/components/Chat/components/InputRich/index.js.map +1 -0
- package/build/components/Chat/components/Message/Message.constants.js +18 -0
- package/build/components/Chat/components/Message/Message.constants.js.map +1 -0
- package/build/components/Chat/components/Message/Message.js +104 -0
- package/build/components/Chat/components/Message/Message.js.map +1 -0
- package/build/components/Chat/components/Message/Message.module.css +126 -0
- package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +211 -0
- package/build/components/Chat/components/Message/components/Booking.js +63 -0
- package/build/components/Chat/components/Message/components/Booking.js.map +1 -0
- package/build/components/Chat/components/Message/components/Card.js +67 -0
- package/build/components/Chat/components/Message/components/Card.js.map +1 -0
- package/build/components/Chat/components/Message/components/Card.module.css +41 -0
- package/build/components/Chat/components/Message/components/Environment.js +58 -0
- package/build/components/Chat/components/Message/components/Environment.js.map +1 -0
- package/build/components/Chat/components/Message/components/Environment.module.css +22 -0
- package/build/components/Chat/components/Message/components/index.js +39 -0
- package/build/components/Chat/components/Message/components/index.js.map +1 -0
- package/build/components/Chat/components/Message/helpers/getActionIcon.js +13 -0
- package/build/components/Chat/components/Message/helpers/getActionIcon.js.map +1 -0
- package/build/components/Chat/components/Message/helpers/getTime.js +28 -0
- package/build/components/Chat/components/Message/helpers/getTime.js.map +1 -0
- package/build/components/Chat/components/Message/helpers/index.js +28 -0
- package/build/components/Chat/components/Message/helpers/index.js.map +1 -0
- package/build/components/Chat/components/Message/index.js +17 -0
- package/build/components/Chat/components/Message/index.js.map +1 -0
- package/build/components/Chat/components/Message/intents/BookingQuery.js +66 -0
- package/build/components/Chat/components/Message/intents/BookingQuery.js.map +1 -0
- package/build/components/Chat/components/Message/intents/HotelInfo.js +73 -0
- package/build/components/Chat/components/Message/intents/HotelInfo.js.map +1 -0
- package/build/components/Chat/components/Message/intents/Offers.js +57 -0
- package/build/components/Chat/components/Message/intents/Offers.js.map +1 -0
- package/build/components/Chat/components/Message/intents/Unknown.js +67 -0
- package/build/components/Chat/components/Message/intents/Unknown.js.map +1 -0
- package/build/components/Chat/components/Message/intents/index.js +50 -0
- package/build/components/Chat/components/Message/intents/index.js.map +1 -0
- package/build/components/Chat/components/Offline/Offline.js +22 -0
- package/build/components/Chat/components/Offline/Offline.js.map +1 -0
- package/build/components/Chat/components/Offline/Offline.module.css +3 -0
- package/build/components/Chat/components/Offline/index.js +17 -0
- package/build/components/Chat/components/Offline/index.js.map +1 -0
- package/build/components/Chat/components/index.js +61 -0
- package/build/components/Chat/components/index.js.map +1 -0
- package/build/components/Chat/helpers/getVerboseDate.js +18 -0
- package/build/components/Chat/helpers/getVerboseDate.js.map +1 -0
- package/build/components/Chat/helpers/index.js +17 -0
- package/build/components/Chat/helpers/index.js.map +1 -0
- package/build/components/Chat/index.js +17 -0
- package/build/components/Chat/index.js.map +1 -0
- package/build/components/Checkout/Checkout.js +20 -5
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.module.css +14 -0
- package/build/components/Checkout/helpers/getFieldProps.js +3 -1
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Confirmation.js +11 -7
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Form.js +23 -4
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +932 -16
- package/build/components/Header/components/BookingProcess/BookingProcess.js +10 -9
- package/build/components/Header/components/BookingProcess/BookingProcess.js.map +1 -1
- package/build/components/Profile/components/Settings/Settings.Account.js +26 -8
- package/build/components/Profile/components/Settings/Settings.Account.js.map +1 -1
- package/build/components/Profile/components/Settings/Settings.module.css +4 -0
- package/build/components/Rates/Rates.constants.js +1 -0
- package/build/components/Rates/Rates.constants.js.map +1 -1
- package/build/components/Rates/Rates.js +2 -0
- package/build/components/Rates/Rates.js.map +1 -1
- package/build/components/Rates/components/Hotelverse/Hotelverse.js +1 -1
- package/build/components/Rates/components/Hotelverse/Hotelverse.js.map +1 -1
- package/build/components/Rates/components/Item/components/Features/Features.js +27 -2
- package/build/components/Rates/components/Item/components/Features/Features.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js +5 -1
- package/build/components/Rates/components/Item/components/ModalInfo/ModalInfo.js.map +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js +1 -1
- package/build/components/Rates/components/Item/components/ModalRateInfo/ModalRateInfo.js.map +1 -1
- package/build/components/Signup/Signup.js +24 -6
- package/build/components/Signup/Signup.js.map +1 -1
- package/build/components/Signup/Signup.module.css +4 -0
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +24 -9
- package/build/components/{Booking/partials/Booking.Others.js → __shared__/BookingTerms/BookingTerms.js} +17 -18
- package/build/components/__shared__/BookingTerms/BookingTerms.js.map +1 -0
- package/build/components/__shared__/BookingTerms/BookingTerms.l10n.js +27 -0
- package/build/components/__shared__/BookingTerms/BookingTerms.l10n.js.map +1 -0
- package/build/components/__shared__/BookingTerms/BookingTerms.module.css +42 -0
- package/build/components/{Booking/partials/__tests__/__snapshots__/Booking.Others.test.js.snap → __shared__/BookingTerms/__tests__/__snapshots__/BookingTerms.test.js.snap} +4 -8
- package/build/components/__shared__/BookingTerms/index.js +17 -0
- package/build/components/__shared__/BookingTerms/index.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js +52 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js +62 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js.map +1 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.module.css +8 -0
- package/build/components/__shared__/NotificationRequiredFields/index.js +17 -0
- package/build/components/__shared__/NotificationRequiredFields/index.js.map +1 -0
- package/build/components/__shared__/Payment/Payment.js +1 -1
- package/build/components/__shared__/Payment/Payment.js.map +1 -1
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +302 -8
- package/build/components/__shared__/Payment/components/Card/Card.js +4 -0
- package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
- package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +23 -0
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +2 -0
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js +1 -2
- package/build/components/__shared__/Payment/components/PCI/PCI.constants.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/PCI.js +59 -56
- package/build/components/__shared__/Payment/components/PCI/PCI.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +15 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +2 -0
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/formatExpire.js +15 -0
- package/build/components/__shared__/Payment/helpers/formatExpire.js.map +1 -0
- package/build/components/__shared__/Payment/helpers/index.js +11 -0
- package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
- package/build/components/__shared__/index.js +22 -0
- package/build/components/__shared__/index.js.map +1 -1
- package/build/components/helpers/ICON.js +13 -0
- package/build/components/helpers/ICON.js.map +1 -1
- package/build/components/index.js +2 -0
- package/build/components/index.js.map +1 -1
- package/build/helpers/consolidateStore.js +9 -0
- package/build/helpers/consolidateStore.js.map +1 -1
- package/build/helpers/findComponents.js +3 -2
- package/build/helpers/findComponents.js.map +1 -1
- package/build/index.js +7 -0
- package/build/index.js.map +1 -1
- package/build/services/Lisa/action.js +28 -0
- package/build/services/Lisa/action.js.map +1 -0
- package/build/services/Lisa/index.js +17 -0
- package/build/services/Lisa/index.js.map +1 -0
- package/build/services/Lisa/message.js +26 -0
- package/build/services/Lisa/message.js.map +1 -0
- package/build/services/Lisa/status.js +13 -0
- package/build/services/Lisa/status.js.map +1 -0
- package/build/services/Lisa/welcome.js +25 -0
- package/build/services/Lisa/welcome.js.map +1 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response-cancel-types.json +21 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes-no-local.json +6 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response-no-taxes.json +4 -0
- package/build/services/Rates/__tests__/__mocks__/rates-response.json +6 -0
- package/build/services/Rates/extras.js +1 -1
- package/build/services/Rates/extras.js.map +1 -1
- package/build/services/Rates/helpers/getItems.js +1 -1
- package/build/services/Rates/helpers/getItems.js.map +1 -1
- package/build/services/Rates/helpers/parseBoards.js +1 -0
- package/build/services/Rates/helpers/parseBoards.js.map +1 -1
- package/build/services/index.js +11 -0
- package/build/services/index.js.map +1 -1
- package/package.json +1 -1
- package/public/App.Container.jsx +2 -0
- package/build/components/Booking/partials/Booking.Others.js.map +0 -1
package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap
CHANGED
|
@@ -10,6 +10,7 @@ exports[`component:<PCI> inherit:className 1`] = `
|
|
|
10
10
|
/>
|
|
11
11
|
<div
|
|
12
12
|
class="view"
|
|
13
|
+
id="checkout-card"
|
|
13
14
|
>
|
|
14
15
|
<div
|
|
15
16
|
class="view"
|
|
@@ -43,6 +44,7 @@ exports[`component:<PCI> inherit:className 1`] = `
|
|
|
43
44
|
</span>
|
|
44
45
|
<input
|
|
45
46
|
class="input"
|
|
47
|
+
id="checkout-name"
|
|
46
48
|
name="name"
|
|
47
49
|
required=""
|
|
48
50
|
type="text"
|
|
@@ -69,6 +71,7 @@ exports[`component:<PCI> inherit:className 1`] = `
|
|
|
69
71
|
</span>
|
|
70
72
|
<input
|
|
71
73
|
class="input"
|
|
74
|
+
id="checkout-expire"
|
|
72
75
|
maxlength="5"
|
|
73
76
|
name="expire"
|
|
74
77
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -80,6 +83,7 @@ exports[`component:<PCI> inherit:className 1`] = `
|
|
|
80
83
|
</div>
|
|
81
84
|
<div
|
|
82
85
|
class="view"
|
|
86
|
+
id="checkout-cvv"
|
|
83
87
|
>
|
|
84
88
|
<div
|
|
85
89
|
class="view"
|
|
@@ -114,6 +118,7 @@ exports[`component:<PCI> prop:showCVV 1`] = `
|
|
|
114
118
|
<div
|
|
115
119
|
class="view"
|
|
116
120
|
data-testid="showCVV-PCI-card"
|
|
121
|
+
id="checkout-card"
|
|
117
122
|
>
|
|
118
123
|
<div
|
|
119
124
|
class="view"
|
|
@@ -148,6 +153,7 @@ exports[`component:<PCI> prop:showCVV 1`] = `
|
|
|
148
153
|
</span>
|
|
149
154
|
<input
|
|
150
155
|
class="input"
|
|
156
|
+
id="checkout-name"
|
|
151
157
|
name="name"
|
|
152
158
|
required=""
|
|
153
159
|
type="text"
|
|
@@ -175,6 +181,7 @@ exports[`component:<PCI> prop:showCVV 1`] = `
|
|
|
175
181
|
</span>
|
|
176
182
|
<input
|
|
177
183
|
class="input"
|
|
184
|
+
id="checkout-expire"
|
|
178
185
|
maxlength="5"
|
|
179
186
|
name="expire"
|
|
180
187
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -199,6 +206,7 @@ exports[`component:<PCI> renders 1`] = `
|
|
|
199
206
|
/>
|
|
200
207
|
<div
|
|
201
208
|
class="view"
|
|
209
|
+
id="checkout-card"
|
|
202
210
|
>
|
|
203
211
|
<div
|
|
204
212
|
class="view"
|
|
@@ -232,6 +240,7 @@ exports[`component:<PCI> renders 1`] = `
|
|
|
232
240
|
</span>
|
|
233
241
|
<input
|
|
234
242
|
class="input"
|
|
243
|
+
id="checkout-name"
|
|
235
244
|
name="name"
|
|
236
245
|
required=""
|
|
237
246
|
type="text"
|
|
@@ -258,6 +267,7 @@ exports[`component:<PCI> renders 1`] = `
|
|
|
258
267
|
</span>
|
|
259
268
|
<input
|
|
260
269
|
class="input"
|
|
270
|
+
id="checkout-expire"
|
|
261
271
|
maxlength="5"
|
|
262
272
|
name="expire"
|
|
263
273
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -269,6 +279,7 @@ exports[`component:<PCI> renders 1`] = `
|
|
|
269
279
|
</div>
|
|
270
280
|
<div
|
|
271
281
|
class="view"
|
|
282
|
+
id="checkout-cvv"
|
|
272
283
|
>
|
|
273
284
|
<div
|
|
274
285
|
class="view"
|
|
@@ -303,6 +314,7 @@ exports[`component:<PCI> testID 1`] = `
|
|
|
303
314
|
<div
|
|
304
315
|
class="view"
|
|
305
316
|
data-testid="mirai-PCI-card"
|
|
317
|
+
id="checkout-card"
|
|
306
318
|
>
|
|
307
319
|
<div
|
|
308
320
|
class="view"
|
|
@@ -337,6 +349,7 @@ exports[`component:<PCI> testID 1`] = `
|
|
|
337
349
|
</span>
|
|
338
350
|
<input
|
|
339
351
|
class="input"
|
|
352
|
+
id="checkout-name"
|
|
340
353
|
name="name"
|
|
341
354
|
required=""
|
|
342
355
|
type="text"
|
|
@@ -364,6 +377,7 @@ exports[`component:<PCI> testID 1`] = `
|
|
|
364
377
|
</span>
|
|
365
378
|
<input
|
|
366
379
|
class="input"
|
|
380
|
+
id="checkout-expire"
|
|
367
381
|
maxlength="5"
|
|
368
382
|
name="expire"
|
|
369
383
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -376,6 +390,7 @@ exports[`component:<PCI> testID 1`] = `
|
|
|
376
390
|
<div
|
|
377
391
|
class="view"
|
|
378
392
|
data-testid="mirai-PCI-CVV"
|
|
393
|
+
id="checkout-cvv"
|
|
379
394
|
>
|
|
380
395
|
<div
|
|
381
396
|
class="view"
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.formatValues = void 0;
|
|
7
|
+
var _helpers = require("../../../helpers");
|
|
7
8
|
const PARSER = [/[^\d]/g, ''];
|
|
8
9
|
const SLASH = '/';
|
|
9
10
|
const formatValues = function () {
|
|
@@ -18,6 +19,7 @@ const formatValues = function () {
|
|
|
18
19
|
expire = "".concat(expire.substr(0, 2).replace(...PARSER)).concat(expire.substr(2, 1) ? SLASH : '').concat(expire.substr(3, 2).replace(...PARSER));
|
|
19
20
|
name = name.toUpperCase();
|
|
20
21
|
expire = expire.length === 2 ? expire.length > currentExpire.length ? "".concat(expire).concat(SLASH) : expire[0] : expire;
|
|
22
|
+
expire = (0, _helpers.formatExpire)(expire);
|
|
21
23
|
return {
|
|
22
24
|
expire,
|
|
23
25
|
name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatValues.js","names":["PARSER","SLASH","formatValues","values","arguments","length","undefined","expire","currentExpire","name","concat","substr","replace","toUpperCase","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/PCI/helpers/formatValues.js"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"formatValues.js","names":["_helpers","require","PARSER","SLASH","formatValues","values","arguments","length","undefined","expire","currentExpire","name","concat","substr","replace","toUpperCase","formatExpire","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/PCI/helpers/formatValues.js"],"sourcesContent":["import { formatExpire } from '../../../helpers';\n\nconst PARSER = [/[^\\d]/g, ''];\nconst SLASH = '/';\n\nexport const formatValues = (values = {}, { expire: currentExpire = '' } = {}) => {\n let { expire = '', name = '' } = values;\n\n expire = `${expire.substr(0, 2).replace(...PARSER)}${expire.substr(2, 1) ? SLASH : ''}${expire\n .substr(3, 2)\n .replace(...PARSER)}`;\n name = name.toUpperCase();\n\n expire = expire.length === 2 ? (expire.length > currentExpire.length ? `${expire}${SLASH}` : expire[0]) : expire;\n expire = formatExpire(expire);\n\n return { expire, name };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEA,MAAMC,MAAM,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;AAC7B,MAAMC,KAAK,GAAG,GAAG;AAEV,MAAMC,YAAY,GAAG,SAAAA,CAAA,EAAsD;EAAA,IAArDC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAAA,IAAE;IAAEG,MAAM,EAAEC,aAAa,GAAG;EAAG,CAAC,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC3E,IAAI;IAAEG,MAAM,GAAG,EAAE;IAAEE,IAAI,GAAG;EAAG,CAAC,GAAGN,MAAM;EAEvCI,MAAM,MAAAG,MAAA,CAAMH,MAAM,CAACI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAACC,OAAO,CAAC,GAAGZ,MAAM,CAAC,EAAAU,MAAA,CAAGH,MAAM,CAACI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAGV,KAAK,GAAG,EAAE,EAAAS,MAAA,CAAGH,MAAM,CAC3FI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CACZC,OAAO,CAAC,GAAGZ,MAAM,CAAC,CAAE;EACvBS,IAAI,GAAGA,IAAI,CAACI,WAAW,CAAC,CAAC;EAEzBN,MAAM,GAAGA,MAAM,CAACF,MAAM,KAAK,CAAC,GAAIE,MAAM,CAACF,MAAM,GAAGG,aAAa,CAACH,MAAM,MAAAK,MAAA,CAAMH,MAAM,EAAAG,MAAA,CAAGT,KAAK,IAAKM,MAAM,CAAC,CAAC,CAAC,GAAIA,MAAM;EAChHA,MAAM,GAAG,IAAAO,qBAAY,EAACP,MAAM,CAAC;EAE7B,OAAO;IAAEA,MAAM;IAAEE;EAAK,CAAC;AACzB,CAAC;AAACM,OAAA,CAAAb,YAAA,GAAAA,YAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.formatExpire = void 0;
|
|
7
|
+
const formatExpire = function () {
|
|
8
|
+
let value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
9
|
+
let result = value;
|
|
10
|
+
if (value.length === 1 && Number(value) > 1) result = "0".concat(value, "/");
|
|
11
|
+
if (value.length >= 2 && Number(value.substring(0, 2)) > 12) result = value.replace(value.substring(0, 2), '12');
|
|
12
|
+
return result;
|
|
13
|
+
};
|
|
14
|
+
exports.formatExpire = formatExpire;
|
|
15
|
+
//# sourceMappingURL=formatExpire.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatExpire.js","names":["formatExpire","value","arguments","length","undefined","result","Number","concat","substring","replace","exports"],"sources":["../../../../../src/components/__shared__/Payment/helpers/formatExpire.js"],"sourcesContent":["export const formatExpire = (value = '') => {\n let result = value;\n\n if (value.length === 1 && Number(value) > 1) result = `0${value}/`;\n if (value.length >= 2 && Number(value.substring(0, 2)) > 12) result = value.replace(value.substring(0, 2), '12');\n\n return result;\n};\n"],"mappings":";;;;;;AAAO,MAAMA,YAAY,GAAG,SAAAA,CAAA,EAAgB;EAAA,IAAfC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACrC,IAAIG,MAAM,GAAGJ,KAAK;EAElB,IAAIA,KAAK,CAACE,MAAM,KAAK,CAAC,IAAIG,MAAM,CAACL,KAAK,CAAC,GAAG,CAAC,EAAEI,MAAM,OAAAE,MAAA,CAAON,KAAK,MAAG;EAClE,IAAIA,KAAK,CAACE,MAAM,IAAI,CAAC,IAAIG,MAAM,CAACL,KAAK,CAACO,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,EAAEH,MAAM,GAAGJ,KAAK,CAACQ,OAAO,CAACR,KAAK,CAACO,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC;EAEhH,OAAOH,MAAM;AACf,CAAC;AAACK,OAAA,CAAAV,YAAA,GAAAA,YAAA"}
|
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _formatExpire = require("./formatExpire");
|
|
7
|
+
Object.keys(_formatExpire).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _formatExpire[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _formatExpire[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
6
17
|
var _getCaption = require("./getCaption");
|
|
7
18
|
Object.keys(_getCaption).forEach(function (key) {
|
|
8
19
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["_formatExpire","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_getCaption","_getComponent","_getImage"],"sources":["../../../../../src/components/__shared__/Payment/helpers/index.js"],"sourcesContent":["export * from './formatExpire';\nexport * from './getCaption';\nexport * from './getComponent';\nexport * from './getImage';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,WAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,WAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,WAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,WAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,aAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,aAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,aAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,aAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,SAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,SAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,SAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,SAAA,CAAAP,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -25,6 +25,17 @@ Object.keys(_BookingTable).forEach(function (key) {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
+
var _BookingTerms = require("./BookingTerms");
|
|
29
|
+
Object.keys(_BookingTerms).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _BookingTerms[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _BookingTerms[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
28
39
|
var _ButtonMore = require("./ButtonMore");
|
|
29
40
|
Object.keys(_ButtonMore).forEach(function (key) {
|
|
30
41
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -91,6 +102,17 @@ Object.keys(_FieldPromocode).forEach(function (key) {
|
|
|
91
102
|
}
|
|
92
103
|
});
|
|
93
104
|
});
|
|
105
|
+
var _NotificationRequiredFields = require("./NotificationRequiredFields");
|
|
106
|
+
Object.keys(_NotificationRequiredFields).forEach(function (key) {
|
|
107
|
+
if (key === "default" || key === "__esModule") return;
|
|
108
|
+
if (key in exports && exports[key] === _NotificationRequiredFields[key]) return;
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () {
|
|
112
|
+
return _NotificationRequiredFields[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
94
116
|
var _Occupation = require("./Occupation");
|
|
95
117
|
Object.keys(_Occupation).forEach(function (key) {
|
|
96
118
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_BookingDates","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_BookingTable","_ButtonMore","_ButtonPayment","_Card","_Field","_FieldOccupation","_FieldPromocode","_Occupation","_Payment","_PriceBreakdown","_SelectEnvironment","_Skeleton","_TextRequiredFields"],"sources":["../../../src/components/__shared__/index.js"],"sourcesContent":["export * from './BookingDates';\nexport * from './BookingTable';\nexport * from './ButtonMore';\nexport * from './ButtonPayment';\nexport * from './Card';\nexport * from './Field';\nexport * from './FieldOccupation';\nexport * from './FieldPromocode';\nexport * from './Occupation';\nexport * from './Payment';\nexport * from './PriceBreakdown';\nexport * from './SelectEnvironment';\nexport * from './Skeleton';\nexport * from './TextRequiredFields';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,aAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,aAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,aAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,aAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_BookingDates","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_BookingTable","_BookingTerms","_ButtonMore","_ButtonPayment","_Card","_Field","_FieldOccupation","_FieldPromocode","_NotificationRequiredFields","_Occupation","_Payment","_PriceBreakdown","_SelectEnvironment","_Skeleton","_TextRequiredFields"],"sources":["../../../src/components/__shared__/index.js"],"sourcesContent":["export * from './BookingDates';\nexport * from './BookingTable';\nexport * from './BookingTerms';\nexport * from './ButtonMore';\nexport * from './ButtonPayment';\nexport * from './Card';\nexport * from './Field';\nexport * from './FieldOccupation';\nexport * from './FieldPromocode';\nexport * from './NotificationRequiredFields';\nexport * from './Occupation';\nexport * from './Payment';\nexport * from './PriceBreakdown';\nexport * from './SelectEnvironment';\nexport * from './Skeleton';\nexport * from './TextRequiredFields';\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,aAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,aAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CA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AAA,GAAAvB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAqB,mBAAA,EAAApB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAmB,mBAAA,CAAAnB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAe,mBAAA,CAAAnB,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -26,17 +26,24 @@ var _MdOutlineListAlt = require("@react-icons/all-files/md/MdOutlineListAlt");
|
|
|
26
26
|
var _MdOutlineLocationOn = require("@react-icons/all-files/md/MdOutlineLocationOn");
|
|
27
27
|
var _MdOutlineLock = require("@react-icons/all-files/md/MdOutlineLock");
|
|
28
28
|
var _MdOutlineLogout = require("@react-icons/all-files/md/MdOutlineLogout");
|
|
29
|
+
var _MdOutlineMinimize = require("@react-icons/all-files/md/MdOutlineMinimize");
|
|
30
|
+
var _MdOutlineOutput = require("@react-icons/all-files/md/MdOutlineOutput");
|
|
29
31
|
var _MdOutlinePageview = require("@react-icons/all-files/md/MdOutlinePageview");
|
|
30
32
|
var _MdOutlinePeopleAlt = require("@react-icons/all-files/md/MdOutlinePeopleAlt");
|
|
31
33
|
var _MdOutlinePersonOff = require("@react-icons/all-files/md/MdOutlinePersonOff");
|
|
34
|
+
var _MdOutlinePhone = require("@react-icons/all-files/md/MdOutlinePhone");
|
|
32
35
|
var _MdOutlinePlayCircle = require("@react-icons/all-files/md/MdOutlinePlayCircle");
|
|
33
36
|
var _MdOutlinePrint = require("@react-icons/all-files/md/MdOutlinePrint");
|
|
37
|
+
var _MdOutlineSchedule = require("@react-icons/all-files/md/MdOutlineSchedule");
|
|
34
38
|
var _MdPersonOutline = require("@react-icons/all-files/md/MdPersonOutline");
|
|
35
39
|
var _MdPhotoSizeSelectSmall = require("@react-icons/all-files/md/MdPhotoSizeSelectSmall");
|
|
40
|
+
var _MdSend = require("@react-icons/all-files/md/MdSend");
|
|
36
41
|
var _MdSingleBed = require("@react-icons/all-files/md/MdSingleBed");
|
|
37
42
|
var _MdUnfoldMore = require("@react-icons/all-files/md/MdUnfoldMore");
|
|
38
43
|
var _TbDiscountCheck = require("@react-icons/all-files/tb/TbDiscountCheck");
|
|
39
44
|
var _ICON = require("./ICON.AMENITIES");
|
|
45
|
+
// import { MdOutlineSupportAgent as SUPPORT_AGENT } from '@react-icons/all-files/md/MdOutlineSupportAgent';
|
|
46
|
+
|
|
40
47
|
const ICON = exports.ICON = {
|
|
41
48
|
..._ui.ICON,
|
|
42
49
|
THREE_D: _GrThreeD.GrThreeD,
|
|
@@ -60,16 +67,22 @@ const ICON = exports.ICON = {
|
|
|
60
67
|
LOCK: _MdOutlineLock.MdOutlineLock,
|
|
61
68
|
LOGOUT: _MdOutlineLogout.MdOutlineLogout,
|
|
62
69
|
MAIL: _MdMailOutline.MdMailOutline,
|
|
70
|
+
MINIMIZE: _MdOutlineMinimize.MdOutlineMinimize,
|
|
63
71
|
MORE: _MdMoreVert.MdMoreVert,
|
|
64
72
|
OFFER: _TbDiscountCheck.TbDiscountCheck,
|
|
65
73
|
PEOPLE: _MdOutlinePeopleAlt.MdOutlinePeopleAlt,
|
|
66
74
|
PERSON: _MdPersonOutline.MdPersonOutline,
|
|
67
75
|
PERSON_OFF: _MdOutlinePersonOff.MdOutlinePersonOff,
|
|
76
|
+
PHONE: _MdOutlinePhone.MdOutlinePhone,
|
|
68
77
|
PLAY: _MdOutlinePlayCircle.MdOutlinePlayCircle,
|
|
69
78
|
PRINT: _MdOutlinePrint.MdOutlinePrint,
|
|
79
|
+
SCHEDULE: _MdOutlineSchedule.MdOutlineSchedule,
|
|
80
|
+
SEND: _MdSend.MdSend,
|
|
81
|
+
// SUPPORT_AGENT,
|
|
70
82
|
SITE: _MdOutlinePageview.MdOutlinePageview,
|
|
71
83
|
SIZE: _MdPhotoSizeSelectSmall.MdPhotoSizeSelectSmall,
|
|
72
84
|
UNFOLD: _MdUnfoldMore.MdUnfoldMore,
|
|
85
|
+
URL: _MdOutlineOutput.MdOutlineOutput,
|
|
73
86
|
// Amenities & Features,
|
|
74
87
|
..._ICON.ICON_AMENITIES
|
|
75
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICON.js","names":["_ui","require","_GrThreeD","_MdAccessAlarm","_MdMailOutline","_MdMoreVert","_MdOutlineAccountCircle","_MdOutlineAddToPhotos","_MdOutlineAutorenew","_MdOutlineBed","_MdOutlineCalendarToday","_MdOutlineCurrencyExchange","_MdOutlineEditCalendar","_MdOutlineEventBusy","_MdOutlineFreeCancellation","_MdOutlineGroup","_MdOutlineGroups","_MdOutlineLanguage","_MdOutlineLink","_MdOutlineListAlt","_MdOutlineLocationOn","_MdOutlineLock","_MdOutlineLogout","_MdOutlinePageview","_MdOutlinePeopleAlt","_MdOutlinePersonOff","_MdOutlinePlayCircle","_MdOutlinePrint","_MdPersonOutline","_MdPhotoSizeSelectSmall","_MdSingleBed","_MdUnfoldMore","_TbDiscountCheck","_ICON","ICON","exports","ICON_BASE","THREE_D","ACCOUNT","ADD_EXTRAS","ALARM","BED_DOUBLE","BED_SINGLE","CALENDAR","CALENDAR_BUSY","CALENDAR_CANCEL","CALENDAR_EDIT","CLEAR","CURRENCY","GROUP","GROUPS","LANGUAGE","LINK","LIST","LOCATION","LOCK","LOGOUT","MAIL","MORE","OFFER","PEOPLE","PERSON","PERSON_OFF","PLAY","PRINT","SITE","SIZE","UNFOLD","ICON_AMENITIES"],"sources":["../../../src/components/helpers/ICON.js"],"sourcesContent":["import { ICON as ICON_BASE } from '@mirai/ui';\nimport { GrThreeD as THREE_D } from '@react-icons/all-files/gr/GrThreeD';\nimport { MdAccessAlarm as ALARM } from '@react-icons/all-files/md/MdAccessAlarm';\nimport { MdMailOutline as MAIL } from '@react-icons/all-files/md/MdMailOutline';\nimport { MdMoreVert as MORE } from '@react-icons/all-files/md/MdMoreVert';\nimport { MdOutlineAccountCircle as ACCOUNT } from '@react-icons/all-files/md/MdOutlineAccountCircle';\nimport { MdOutlineAddToPhotos as ADD_EXTRAS } from '@react-icons/all-files/md/MdOutlineAddToPhotos';\nimport { MdOutlineAutorenew as CLEAR } from '@react-icons/all-files/md/MdOutlineAutorenew';\nimport { MdOutlineBed as BED_DOUBLE } from '@react-icons/all-files/md/MdOutlineBed';\nimport { MdOutlineCalendarToday as CALENDAR } from '@react-icons/all-files/md/MdOutlineCalendarToday';\nimport { MdOutlineCurrencyExchange as CURRENCY } from '@react-icons/all-files/md/MdOutlineCurrencyExchange';\nimport { MdOutlineEditCalendar as CALENDAR_EDIT } from '@react-icons/all-files/md/MdOutlineEditCalendar';\nimport { MdOutlineEventBusy as CALENDAR_BUSY } from '@react-icons/all-files/md/MdOutlineEventBusy';\nimport { MdOutlineFreeCancellation as CALENDAR_CANCEL } from '@react-icons/all-files/md/MdOutlineFreeCancellation';\nimport { MdOutlineGroup as GROUP } from '@react-icons/all-files/md/MdOutlineGroup';\nimport { MdOutlineGroups as GROUPS } from '@react-icons/all-files/md/MdOutlineGroups';\nimport { MdOutlineLanguage as LANGUAGE } from '@react-icons/all-files/md/MdOutlineLanguage';\nimport { MdOutlineLink as LINK } from '@react-icons/all-files/md/MdOutlineLink';\nimport { MdOutlineListAlt as LIST } from '@react-icons/all-files/md/MdOutlineListAlt';\nimport { MdOutlineLocationOn as LOCATION } from '@react-icons/all-files/md/MdOutlineLocationOn';\nimport { MdOutlineLock as LOCK } from '@react-icons/all-files/md/MdOutlineLock';\nimport { MdOutlineLogout as LOGOUT } from '@react-icons/all-files/md/MdOutlineLogout';\nimport { MdOutlinePageview as SITE } from '@react-icons/all-files/md/MdOutlinePageview';\nimport { MdOutlinePeopleAlt as PEOPLE } from '@react-icons/all-files/md/MdOutlinePeopleAlt';\nimport { MdOutlinePersonOff as PERSON_OFF } from '@react-icons/all-files/md/MdOutlinePersonOff';\nimport { MdOutlinePlayCircle as PLAY } from '@react-icons/all-files/md/MdOutlinePlayCircle';\nimport { MdOutlinePrint as PRINT } from '@react-icons/all-files/md/MdOutlinePrint';\nimport { MdPersonOutline as PERSON } from '@react-icons/all-files/md/MdPersonOutline';\nimport { MdPhotoSizeSelectSmall as SIZE } from '@react-icons/all-files/md/MdPhotoSizeSelectSmall';\nimport { MdSingleBed as BED_SINGLE } from '@react-icons/all-files/md/MdSingleBed';\nimport { MdUnfoldMore as UNFOLD } from '@react-icons/all-files/md/MdUnfoldMore';\nimport { TbDiscountCheck as OFFER } from '@react-icons/all-files/tb/TbDiscountCheck';\n\nimport { ICON_AMENITIES } from './ICON.AMENITIES';\n\nexport const ICON = {\n ...ICON_BASE,\n THREE_D,\n ACCOUNT,\n ADD_EXTRAS,\n ALARM,\n BED_DOUBLE,\n BED_SINGLE,\n CALENDAR,\n CALENDAR_BUSY,\n CALENDAR_CANCEL,\n CALENDAR_EDIT,\n CLEAR,\n CURRENCY,\n GROUP,\n GROUPS,\n LANGUAGE,\n LINK,\n LIST,\n LOCATION,\n LOCK,\n LOGOUT,\n MAIL,\n MORE,\n OFFER,\n PEOPLE,\n PERSON,\n PERSON_OFF,\n PLAY,\n PRINT,\n SITE,\n SIZE,\n UNFOLD,\n // Amenities & Features,\n ...ICON_AMENITIES,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,uBAAA,GAAAT,OAAA;AACA,IAAAU,0BAAA,GAAAV,OAAA;AACA,IAAAW,sBAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AACA,IAAAa,0BAAA,GAAAb,OAAA;AACA,IAAAc,eAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAf,OAAA;AACA,IAAAgB,kBAAA,GAAAhB,OAAA;AACA,IAAAiB,cAAA,GAAAjB,OAAA;AACA,IAAAkB,iBAAA,GAAAlB,OAAA;AACA,IAAAmB,oBAAA,GAAAnB,OAAA;AACA,IAAAoB,cAAA,GAAApB,OAAA;AACA,IAAAqB,gBAAA,GAAArB,OAAA;AACA,IAAAsB,kBAAA,GAAAtB,OAAA;AACA,IAAAuB,
|
|
1
|
+
{"version":3,"file":"ICON.js","names":["_ui","require","_GrThreeD","_MdAccessAlarm","_MdMailOutline","_MdMoreVert","_MdOutlineAccountCircle","_MdOutlineAddToPhotos","_MdOutlineAutorenew","_MdOutlineBed","_MdOutlineCalendarToday","_MdOutlineCurrencyExchange","_MdOutlineEditCalendar","_MdOutlineEventBusy","_MdOutlineFreeCancellation","_MdOutlineGroup","_MdOutlineGroups","_MdOutlineLanguage","_MdOutlineLink","_MdOutlineListAlt","_MdOutlineLocationOn","_MdOutlineLock","_MdOutlineLogout","_MdOutlineMinimize","_MdOutlineOutput","_MdOutlinePageview","_MdOutlinePeopleAlt","_MdOutlinePersonOff","_MdOutlinePhone","_MdOutlinePlayCircle","_MdOutlinePrint","_MdOutlineSchedule","_MdPersonOutline","_MdPhotoSizeSelectSmall","_MdSend","_MdSingleBed","_MdUnfoldMore","_TbDiscountCheck","_ICON","ICON","exports","ICON_BASE","THREE_D","ACCOUNT","ADD_EXTRAS","ALARM","BED_DOUBLE","BED_SINGLE","CALENDAR","CALENDAR_BUSY","CALENDAR_CANCEL","CALENDAR_EDIT","CLEAR","CURRENCY","GROUP","GROUPS","LANGUAGE","LINK","LIST","LOCATION","LOCK","LOGOUT","MAIL","MINIMIZE","MORE","OFFER","PEOPLE","PERSON","PERSON_OFF","PHONE","PLAY","PRINT","SCHEDULE","SEND","SITE","SIZE","UNFOLD","URL","ICON_AMENITIES"],"sources":["../../../src/components/helpers/ICON.js"],"sourcesContent":["import { ICON as ICON_BASE } from '@mirai/ui';\nimport { GrThreeD as THREE_D } from '@react-icons/all-files/gr/GrThreeD';\nimport { MdAccessAlarm as ALARM } from '@react-icons/all-files/md/MdAccessAlarm';\nimport { MdMailOutline as MAIL } from '@react-icons/all-files/md/MdMailOutline';\nimport { MdMoreVert as MORE } from '@react-icons/all-files/md/MdMoreVert';\nimport { MdOutlineAccountCircle as ACCOUNT } from '@react-icons/all-files/md/MdOutlineAccountCircle';\nimport { MdOutlineAddToPhotos as ADD_EXTRAS } from '@react-icons/all-files/md/MdOutlineAddToPhotos';\nimport { MdOutlineAutorenew as CLEAR } from '@react-icons/all-files/md/MdOutlineAutorenew';\nimport { MdOutlineBed as BED_DOUBLE } from '@react-icons/all-files/md/MdOutlineBed';\nimport { MdOutlineCalendarToday as CALENDAR } from '@react-icons/all-files/md/MdOutlineCalendarToday';\nimport { MdOutlineCurrencyExchange as CURRENCY } from '@react-icons/all-files/md/MdOutlineCurrencyExchange';\nimport { MdOutlineEditCalendar as CALENDAR_EDIT } from '@react-icons/all-files/md/MdOutlineEditCalendar';\nimport { MdOutlineEventBusy as CALENDAR_BUSY } from '@react-icons/all-files/md/MdOutlineEventBusy';\nimport { MdOutlineFreeCancellation as CALENDAR_CANCEL } from '@react-icons/all-files/md/MdOutlineFreeCancellation';\nimport { MdOutlineGroup as GROUP } from '@react-icons/all-files/md/MdOutlineGroup';\nimport { MdOutlineGroups as GROUPS } from '@react-icons/all-files/md/MdOutlineGroups';\nimport { MdOutlineLanguage as LANGUAGE } from '@react-icons/all-files/md/MdOutlineLanguage';\nimport { MdOutlineLink as LINK } from '@react-icons/all-files/md/MdOutlineLink';\nimport { MdOutlineListAlt as LIST } from '@react-icons/all-files/md/MdOutlineListAlt';\nimport { MdOutlineLocationOn as LOCATION } from '@react-icons/all-files/md/MdOutlineLocationOn';\nimport { MdOutlineLock as LOCK } from '@react-icons/all-files/md/MdOutlineLock';\nimport { MdOutlineLogout as LOGOUT } from '@react-icons/all-files/md/MdOutlineLogout';\nimport { MdOutlineMinimize as MINIMIZE } from '@react-icons/all-files/md/MdOutlineMinimize';\nimport { MdOutlineOutput as URL } from '@react-icons/all-files/md/MdOutlineOutput';\nimport { MdOutlinePageview as SITE } from '@react-icons/all-files/md/MdOutlinePageview';\nimport { MdOutlinePeopleAlt as PEOPLE } from '@react-icons/all-files/md/MdOutlinePeopleAlt';\nimport { MdOutlinePersonOff as PERSON_OFF } from '@react-icons/all-files/md/MdOutlinePersonOff';\nimport { MdOutlinePhone as PHONE } from '@react-icons/all-files/md/MdOutlinePhone';\nimport { MdOutlinePlayCircle as PLAY } from '@react-icons/all-files/md/MdOutlinePlayCircle';\nimport { MdOutlinePrint as PRINT } from '@react-icons/all-files/md/MdOutlinePrint';\nimport { MdOutlineSchedule as SCHEDULE } from '@react-icons/all-files/md/MdOutlineSchedule';\n// import { MdOutlineSupportAgent as SUPPORT_AGENT } from '@react-icons/all-files/md/MdOutlineSupportAgent';\nimport { MdPersonOutline as PERSON } from '@react-icons/all-files/md/MdPersonOutline';\nimport { MdPhotoSizeSelectSmall as SIZE } from '@react-icons/all-files/md/MdPhotoSizeSelectSmall';\nimport { MdSend as SEND } from '@react-icons/all-files/md/MdSend';\nimport { MdSingleBed as BED_SINGLE } from '@react-icons/all-files/md/MdSingleBed';\nimport { MdUnfoldMore as UNFOLD } from '@react-icons/all-files/md/MdUnfoldMore';\nimport { TbDiscountCheck as OFFER } from '@react-icons/all-files/tb/TbDiscountCheck';\n\nimport { ICON_AMENITIES } from './ICON.AMENITIES';\n\nexport const ICON = {\n ...ICON_BASE,\n THREE_D,\n ACCOUNT,\n ADD_EXTRAS,\n ALARM,\n BED_DOUBLE,\n BED_SINGLE,\n CALENDAR,\n CALENDAR_BUSY,\n CALENDAR_CANCEL,\n CALENDAR_EDIT,\n CLEAR,\n CURRENCY,\n GROUP,\n GROUPS,\n LANGUAGE,\n LINK,\n LIST,\n LOCATION,\n LOCK,\n LOGOUT,\n MAIL,\n MINIMIZE,\n MORE,\n OFFER,\n PEOPLE,\n PERSON,\n PERSON_OFF,\n PHONE,\n PLAY,\n PRINT,\n SCHEDULE,\n SEND,\n // SUPPORT_AGENT,\n SITE,\n SIZE,\n UNFOLD,\n URL,\n // Amenities & Features,\n ...ICON_AMENITIES,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,mBAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AACA,IAAAS,uBAAA,GAAAT,OAAA;AACA,IAAAU,0BAAA,GAAAV,OAAA;AACA,IAAAW,sBAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AACA,IAAAa,0BAAA,GAAAb,OAAA;AACA,IAAAc,eAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAf,OAAA;AACA,IAAAgB,kBAAA,GAAAhB,OAAA;AACA,IAAAiB,cAAA,GAAAjB,OAAA;AACA,IAAAkB,iBAAA,GAAAlB,OAAA;AACA,IAAAmB,oBAAA,GAAAnB,OAAA;AACA,IAAAoB,cAAA,GAAApB,OAAA;AACA,IAAAqB,gBAAA,GAAArB,OAAA;AACA,IAAAsB,kBAAA,GAAAtB,OAAA;AACA,IAAAuB,gBAAA,GAAAvB,OAAA;AACA,IAAAwB,kBAAA,GAAAxB,OAAA;AACA,IAAAyB,mBAAA,GAAAzB,OAAA;AACA,IAAA0B,mBAAA,GAAA1B,OAAA;AACA,IAAA2B,eAAA,GAAA3B,OAAA;AACA,IAAA4B,oBAAA,GAAA5B,OA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ACJ;EACAC,IAAI,EAAJA,oCAAI;EACJC,IAAI,EAAJA,8CAAI;EACJC,MAAM,EAANA,0BAAM;EACNC,GAAG,EAAHA,gCAAG;EACH;EACA,GAAGC;AACL,CAAC"}
|
|
@@ -7,6 +7,7 @@ exports.COMPONENTS = void 0;
|
|
|
7
7
|
var _BannerLoyalty = require("./BannerLoyalty");
|
|
8
8
|
var _Booking = require("./Booking");
|
|
9
9
|
var _BookingQuery = require("./BookingQuery");
|
|
10
|
+
var _Chat = require("./Chat");
|
|
10
11
|
var _Checkout = require("./Checkout");
|
|
11
12
|
var _Deals = require("./Deals");
|
|
12
13
|
var _Environment = require("./Environment");
|
|
@@ -20,6 +21,7 @@ const COMPONENTS = exports.COMPONENTS = {
|
|
|
20
21
|
bannerLoyalty: _BannerLoyalty.BannerLoyalty,
|
|
21
22
|
booking: _Booking.Booking,
|
|
22
23
|
bookingQuery: _BookingQuery.BookingQuery,
|
|
24
|
+
chat: _Chat.Chat,
|
|
23
25
|
checkout: _Checkout.Checkout,
|
|
24
26
|
deals: _Deals.Deals,
|
|
25
27
|
environment: _Environment.Environment,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_BannerLoyalty","require","_Booking","_BookingQuery","_Checkout","_Deals","_Environment","_Finder","_Header","_Profile","_Rates","_Session","_Signup","COMPONENTS","exports","bannerLoyalty","BannerLoyalty","booking","Booking","bookingQuery","BookingQuery","checkout","Checkout","deals","Deals","environment","Environment","finder","Finder","header","Header","profile","Profile","rates","Rates","session","Session","signup","Signup"],"sources":["../../src/components/index.js"],"sourcesContent":["import { BannerLoyalty } from './BannerLoyalty';\nimport { Booking } from './Booking';\nimport { BookingQuery } from './BookingQuery';\nimport { Checkout } from './Checkout';\nimport { Deals } from './Deals';\nimport { Environment } from './Environment';\nimport { Finder } from './Finder';\nimport { Header } from './Header';\nimport { Profile } from './Profile';\nimport { Rates } from './Rates';\nimport { Session } from './Session';\nimport { Signup } from './Signup';\n\nexport const COMPONENTS = {\n bannerLoyalty: BannerLoyalty,\n booking: Booking,\n bookingQuery: BookingQuery,\n checkout: Checkout,\n deals: Deals,\n environment: Environment,\n finder: Finder,\n header: Header,\n profile: Profile,\n rates: Rates,\n session: Session,\n signup: Signup,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,
|
|
1
|
+
{"version":3,"file":"index.js","names":["_BannerLoyalty","require","_Booking","_BookingQuery","_Chat","_Checkout","_Deals","_Environment","_Finder","_Header","_Profile","_Rates","_Session","_Signup","COMPONENTS","exports","bannerLoyalty","BannerLoyalty","booking","Booking","bookingQuery","BookingQuery","chat","Chat","checkout","Checkout","deals","Deals","environment","Environment","finder","Finder","header","Header","profile","Profile","rates","Rates","session","Session","signup","Signup"],"sources":["../../src/components/index.js"],"sourcesContent":["import { BannerLoyalty } from './BannerLoyalty';\nimport { Booking } from './Booking';\nimport { BookingQuery } from './BookingQuery';\nimport { Chat } from './Chat';\nimport { Checkout } from './Checkout';\nimport { Deals } from './Deals';\nimport { Environment } from './Environment';\nimport { Finder } from './Finder';\nimport { Header } from './Header';\nimport { Profile } from './Profile';\nimport { Rates } from './Rates';\nimport { Session } from './Session';\nimport { Signup } from './Signup';\n\nexport const COMPONENTS = {\n bannerLoyalty: BannerLoyalty,\n booking: Booking,\n bookingQuery: BookingQuery,\n chat: Chat,\n checkout: Checkout,\n deals: Deals,\n environment: Environment,\n finder: Finder,\n header: Header,\n profile: Profile,\n rates: Rates,\n session: Session,\n signup: Signup,\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AACA,IAAAW,QAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AAEO,MAAMa,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,aAAa,EAAEC,4BAAa;EAC5BC,OAAO,EAAEC,gBAAO;EAChBC,YAAY,EAAEC,0BAAY;EAC1BC,IAAI,EAAEC,UAAI;EACVC,QAAQ,EAAEC,kBAAQ;EAClBC,KAAK,EAAEC,YAAK;EACZC,WAAW,EAAEC,wBAAW;EACxBC,MAAM,EAAEC,cAAM;EACdC,MAAM,EAAEC,cAAM;EACdC,OAAO,EAAEC,gBAAO;EAChBC,KAAK,EAAEC,YAAK;EACZC,OAAO,EAAEC,gBAAO;EAChBC,MAAM,EAAEC;AACV,CAAC"}
|
|
@@ -20,6 +20,7 @@ const IS_JEST = !!((_process = process) !== null && _process !== void 0 && (_pro
|
|
|
20
20
|
const consolidateStore = function () {
|
|
21
21
|
var _config$accomodation, _config$accomodation2, _config$accomodation3, _config$accomodation4, _config$accomodation5, _tags, _promo;
|
|
22
22
|
let {
|
|
23
|
+
components = [],
|
|
23
24
|
config = {},
|
|
24
25
|
cookies = {},
|
|
25
26
|
instance: {
|
|
@@ -277,6 +278,14 @@ const consolidateStore = function () {
|
|
|
277
278
|
// entities,
|
|
278
279
|
calendar,
|
|
279
280
|
club,
|
|
281
|
+
components: components.reduce((value, _ref2) => {
|
|
282
|
+
let {
|
|
283
|
+
component,
|
|
284
|
+
...props
|
|
285
|
+
} = _ref2;
|
|
286
|
+
value[component] = props;
|
|
287
|
+
return value;
|
|
288
|
+
}, {}),
|
|
280
289
|
forwarder,
|
|
281
290
|
hotel,
|
|
282
291
|
loyalty: IS_JEST ? undefined : _loyalty.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidateStore.js","names":["_locale","require","_loyalty","_interopRequireDefault","_getAccommodationType","_getLocale","_getTags","_themeDirection","_toOccupation","_Core","_process","_process$env","obj","__esModule","default","IS_JEST","process","env","JEST_WORKER_ID","consolidateStore","_config$accomodation","_config$accomodation2","_config$accomodation3","_config$accomodation4","_config$accomodation5","_tags","_promo","config","cookies","instance","el","hotel","hotelId","id","type","session","urlParams","arguments","length","undefined","forceUri","miraiId","maxDays","maxNights","rangeMaxDays","nightsForDeal","rangeMinDays","prices","showPrices","pricesWithTaxes","pricesLegend","accomodation","calendar","TAXES","includes","TAX_DEFAULT","to","dateFormat","dateCalc","Date","CALENDAR_FORMAT","language","country","getLocale","themeDirection","currency","DEFAULT_CURRENCY","club","discount","discountEnabled","rates","variants","active","authentication","idClub","name","conditionsUrl","conditions","privacyPolicyUrl","privacy","applyClubDiscount","idtokenprovider","idHotel","TYPE","CHAIN","variantDiscount","variantRates","find","toString","url","filter","map","enabled","accommodationType","getAccommodationType","lodgingDenomination","home","window","location","origin","warningAvailability","minRoomsEngineNotification","hotels","Object","entries","_ref","key","occupation","dataSource","ADULT","min","age","CHILD","fulfill","maxRooms","rooms","maxOccupation","commissionCode","hsri","COMMISSION_TYPE","chainSelector","tags","placeHolder","trees","options","getTags","placeholder","chainSelectorValue","checkin","clientCode","nights","parties","parseDate","checkout","parseInt","promo","showPromoNav","configPromo","promoText","place","value","Number","finder","toOccupation","places","promocode","code","cart","JSON","parse","host","concat","document","protocol","isDevelopment","NODE_ENV","forwarder","SERVICE_BOOKING","booking","signup","SERVICE_USER","profile","locale","DEFAULT_LOCALE","loyalty","MOCK_LOYALTY","deals","exports"],"sources":["../../src/helpers/consolidateStore.js"],"sourcesContent":["import { dateCalc, dateFormat, DEFAULT_CURRENCY, DEFAULT_LOCALE, parseDate } from '@mirai/locale';\n\nimport MOCK_LOYALTY from './__mocks__/loyalty.json';\nimport { getAccommodationType } from './getAccommodationType';\nimport { getLocale } from './getLocale';\nimport { getTags } from './getTags';\nimport { themeDirection } from './themeDirection';\nimport { toOccupation } from './toOccupation';\nimport { CALENDAR_FORMAT, COMMISSION_TYPE, TAX_DEFAULT, TAXES, TYPE } from '../Core.constants';\n\nconst IS_JEST = !!process?.env?.JEST_WORKER_ID;\n\n/* eslint-disable no-unused-vars */\nexport const consolidateStore = ({\n config = {},\n cookies = {},\n instance: { el, hotel: hotelId, id, type, ...instance } = {},\n session,\n urlParams = {},\n} = {}) => {\n const { forceUri = false, miraiId } = urlParams;\n\n // -- calendar -------------------------------------------------------------------------------------------------------\n const {\n maxDays = 365,\n maxNights: rangeMaxDays = 31,\n nightsForDeal: rangeMinDays,\n prices: showPrices = false,\n pricesWithTaxes: pricesLegend,\n } = config.accomodation?.calendar || {};\n const calendar = {\n rangeMaxDays,\n rangeMinDays,\n pricesLegend: TAXES.includes(pricesLegend) ? pricesLegend : showPrices ? TAX_DEFAULT : undefined,\n showPrices,\n to: !IS_JEST ? dateFormat(dateCalc(new Date(), maxDays, 'days'), CALENDAR_FORMAT) : undefined,\n };\n\n // -- language & country ---------------------------------------------------------------------------------------------\n // language & country\n const [language, country] = getLocale(instance, urlParams);\n themeDirection(language);\n\n // -- currency -------------------------------------------------------------------------------------------------------\n const currency =\n (forceUri ? urlParams.currency : undefined) ||\n cookies.currency ||\n urlParams.currency ||\n instance.currency ||\n DEFAULT_CURRENCY;\n\n // -- club -----------------------------------------------------------------------------------------------------------\n let club;\n if (config.club) {\n let {\n accomodation: { club: { discount: discountEnabled = false, rates = false } = {}, variants = [] },\n club: {\n club: { active, authentication, idClub: id, name },\n conditionsUrl: conditions,\n privacyPolicyUrl: privacy,\n },\n } = config;\n\n let discount;\n let { applyClubDiscount, idtokenprovider: idHotel = '' } = urlParams;\n discount = applyClubDiscount;\n if (discount === undefined) {\n discount = rates;\n if (type === TYPE.CHAIN) {\n let { discount: variantDiscount, rates: variantRates } =\n variants.find(({ id = '' } = {}) => id.toString() === idHotel.toString()) || {};\n discountEnabled = variantDiscount || discountEnabled;\n discount = variantRates || rates;\n }\n }\n\n club = {\n active,\n authentication,\n discount: active && discountEnabled ? discount : undefined,\n id,\n name,\n url: { conditions, privacy },\n variants: variants\n .filter(({ club } = {}) => club)\n .map(({ club: { discount: enabled, rates: active } = {}, id } = {}) => ({ active, enabled, id })),\n };\n }\n\n // -- hotel ----------------------------------------------------------------------------------------------------------\n const hotel = {\n accommodationType: getAccommodationType(config.lodgingDenomination, hotelId),\n id: type === TYPE.CHAIN ? hotelId : id,\n url: urlParams.home || window.location.origin,\n warningAvailability: config.minRoomsEngineNotification,\n };\n\n if (type === TYPE.CHAIN) {\n const { hotels = {} } = config;\n hotel.variants = {};\n\n Object.entries(hotels).map(([key, { lodgingDenomination: accommodationType }]) => {\n hotel.variants[key] = { accommodationType };\n });\n }\n\n // -- occupation -----------------------------------------------------------------------------------------------------\n const occupation = {\n dataSource: config.accomodation?.occupation || [\n { type: TYPE.ADULT, min: 1, age: [18] },\n { type: TYPE.CHILD, age: [0, 17], fulfill: true },\n ],\n maxRooms: config.accomodation?.rooms?.maxOccupation,\n variants: config.accomodation?.variants || [],\n };\n\n // -- origin ---------------------------------------------------------------------------------------------------------\n const origin = {\n commissionCode: urlParams.hsri || COMMISSION_TYPE[type],\n };\n\n // -- tags -----------------------------------------------------------------------------------------------------------\n const { chainSelector } = config;\n let tags;\n if (type === TYPE.CHAIN && chainSelector) {\n const { placeHolder = {}, trees = [] } = chainSelector;\n tags = { options: getTags(trees, language), placeholder: placeHolder[language] };\n }\n\n // -- finder ---------------------------------------------------------------------------------------------------------\n let { chainSelectorValue, checkin, clientCode, nights = 0, parties } = urlParams;\n checkin = checkin ? parseDate(checkin) : undefined;\n let checkout;\n\n if (checkin) checkout = dateCalc(checkin, parseInt(nights), 'days');\n\n let promo;\n if (config.showPromoNav) {\n const { accomodation: { promo: configPromo = {} } = {}, promoText: placeholder = {} } = config;\n promo = { ...configPromo, placeholder };\n }\n\n let place;\n if (chainSelectorValue && tags) {\n place = tags.options.find(({ value } = {}) => value === Number(chainSelectorValue));\n\n const { id: [id] = [] } = place || {};\n const { accommodationType } = hotel.variants[id] || {};\n if (accommodationType) hotel.accommodationType = accommodationType;\n }\n\n let finder = {\n place,\n calendar: checkin ? [checkin, checkout] : [],\n occupation: parties ? toOccupation({ chainSelectorValue, occupation, parties, places: tags?.options }) : undefined,\n promocode: clientCode || promo?.code,\n };\n\n // -- rates ----------------------------------------------------------------------------------------------------------\n let rates = urlParams.rates ? { cart: urlParams.rates ? JSON.parse(urlParams.rates) : undefined } : undefined;\n\n // -- forwarder ------------------------------------------------------------------------------------------------------\n const host = `${document.location.protocol}//${document.location.host}`;\n const isDevelopment = process.env.NODE_ENV === 'development';\n const forwarder = {\n rates: miraiId ? `${host}/step1-rates` : `${process.env.SERVICE_BOOKING}/miraiFrontDispatcher.htm`,\n checkout: miraiId ? `${host}/step2-checkout` : `${process.env.SERVICE_BOOKING}/forwarder_client_form.htm`,\n booking: miraiId ? `${host}/step3-booking` : `${process.env.SERVICE_BOOKING}/forwarder_manage_reservation.htm`,\n signup:\n miraiId || isDevelopment\n ? `${host}/signup`\n : `${process.env.SERVICE_USER}/club/v1/forwarder/registration_process`,\n profile:\n miraiId || isDevelopment ? `${host}/profile` : `${process.env.SERVICE_USER}/club/v1/forwarder/members_area`,\n };\n\n return {\n config,\n cookies,\n urlParams,\n ...instance,\n id,\n type,\n\n // region\n currency,\n language,\n country,\n locale: language && country ? `${language}-${country}` : DEFAULT_LOCALE,\n\n // entities,\n calendar,\n club,\n forwarder,\n hotel,\n loyalty: IS_JEST ? undefined : MOCK_LOYALTY,\n occupation,\n origin,\n promo,\n session,\n tags,\n // -- components\n deals: undefined,\n finder,\n rates,\n signup: undefined,\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,G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AQ;IACXI,EAAE;IACFC,IAAI;IAEJ;IACA+B,QAAQ;IACRJ,QAAQ;IACRC,OAAO;IACPoG,MAAM,EAAErG,QAAQ,IAAIC,OAAO,MAAAyF,MAAA,CAAM1F,QAAQ,OAAA0F,MAAA,CAAIzF,OAAO,IAAKqG,sBAAc;IAEvE;IACA/G,QAAQ;IACRe,IAAI;IACJyF,SAAS;IACT7H,KAAK;IACLqI,OAAO,EAAErJ,OAAO,GAAGwB,SAAS,GAAG8H,gBAAY;IAC3C1D,UAAU;IACVR,MAAM;IACNoC,KAAK;IACLpG,OAAO;IACPsF,IAAI;IACJ;IACA6C,KAAK,EAAE/H,SAAS;IAChBuG,MAAM;IACNxE,KAAK;IACLyF,MAAM,EAAExH;EACV,CAAC;AACH,CAAC;AAACgI,OAAA,CAAApJ,gBAAA,GAAAA,gBAAA"}
|
|
1
|
+
{"version":3,"file":"consolidateStore.js","names":["_locale","require","_loyalty","_interopRequireDefault","_getAccommodationType","_getLocale","_getTags","_themeDirection","_toOccupation","_Core","_process","_process$env","obj","__esModule","default","IS_JEST","process","env","JEST_WORKER_ID","consolidateStore","_config$accomodation","_config$accomodation2","_config$accomodation3","_config$accomodation4","_config$accomodation5","_tags","_promo","components","config","cookies","instance","el","hotel","hotelId","id","type","session","urlParams","arguments","length","undefined","forceUri","miraiId","maxDays","maxNights","rangeMaxDays","nightsForDeal","rangeMinDays","prices","showPrices","pricesWithTaxes","pricesLegend","accomodation","calendar","TAXES","includes","TAX_DEFAULT","to","dateFormat","dateCalc","Date","CALENDAR_FORMAT","language","country","getLocale","themeDirection","currency","DEFAULT_CURRENCY","club","discount","discountEnabled","rates","variants","active","authentication","idClub","name","conditionsUrl","conditions","privacyPolicyUrl","privacy","applyClubDiscount","idtokenprovider","idHotel","TYPE","CHAIN","variantDiscount","variantRates","find","toString","url","filter","map","enabled","accommodationType","getAccommodationType","lodgingDenomination","home","window","location","origin","warningAvailability","minRoomsEngineNotification","hotels","Object","entries","_ref","key","occupation","dataSource","ADULT","min","age","CHILD","fulfill","maxRooms","rooms","maxOccupation","commissionCode","hsri","COMMISSION_TYPE","chainSelector","tags","placeHolder","trees","options","getTags","placeholder","chainSelectorValue","checkin","clientCode","nights","parties","parseDate","checkout","parseInt","promo","showPromoNav","configPromo","promoText","place","value","Number","finder","toOccupation","places","promocode","code","cart","JSON","parse","host","concat","document","protocol","isDevelopment","NODE_ENV","forwarder","SERVICE_BOOKING","booking","signup","SERVICE_USER","profile","locale","DEFAULT_LOCALE","reduce","_ref2","component","props","loyalty","MOCK_LOYALTY","deals","exports"],"sources":["../../src/helpers/consolidateStore.js"],"sourcesContent":["import { dateCalc, dateFormat, DEFAULT_CURRENCY, DEFAULT_LOCALE, parseDate } from '@mirai/locale';\n\nimport MOCK_LOYALTY from './__mocks__/loyalty.json';\nimport { getAccommodationType } from './getAccommodationType';\nimport { getLocale } from './getLocale';\nimport { getTags } from './getTags';\nimport { themeDirection } from './themeDirection';\nimport { toOccupation } from './toOccupation';\nimport { CALENDAR_FORMAT, COMMISSION_TYPE, TAX_DEFAULT, TAXES, TYPE } from '../Core.constants';\n\nconst IS_JEST = !!process?.env?.JEST_WORKER_ID;\n\n/* eslint-disable no-unused-vars */\nexport const consolidateStore = ({\n components = [],\n config = {},\n cookies = {},\n instance: { el, hotel: hotelId, id, type, ...instance } = {},\n session,\n urlParams = {},\n} = {}) => {\n const { forceUri = false, miraiId } = urlParams;\n\n // -- calendar -------------------------------------------------------------------------------------------------------\n const {\n maxDays = 365,\n maxNights: rangeMaxDays = 31,\n nightsForDeal: rangeMinDays,\n prices: showPrices = false,\n pricesWithTaxes: pricesLegend,\n } = config.accomodation?.calendar || {};\n const calendar = {\n rangeMaxDays,\n rangeMinDays,\n pricesLegend: TAXES.includes(pricesLegend) ? pricesLegend : showPrices ? TAX_DEFAULT : undefined,\n showPrices,\n to: !IS_JEST ? dateFormat(dateCalc(new Date(), maxDays, 'days'), CALENDAR_FORMAT) : undefined,\n };\n\n // -- language & country ---------------------------------------------------------------------------------------------\n // language & country\n const [language, country] = getLocale(instance, urlParams);\n themeDirection(language);\n\n // -- currency -------------------------------------------------------------------------------------------------------\n const currency =\n (forceUri ? urlParams.currency : undefined) ||\n cookies.currency ||\n urlParams.currency ||\n instance.currency ||\n DEFAULT_CURRENCY;\n\n // -- club -----------------------------------------------------------------------------------------------------------\n let club;\n if (config.club) {\n let {\n accomodation: { club: { discount: discountEnabled = false, rates = false } = {}, variants = [] },\n club: {\n club: { active, authentication, idClub: id, name },\n conditionsUrl: conditions,\n privacyPolicyUrl: privacy,\n },\n } = config;\n\n let discount;\n let { applyClubDiscount, idtokenprovider: idHotel = '' } = urlParams;\n discount = applyClubDiscount;\n if (discount === undefined) {\n discount = rates;\n if (type === TYPE.CHAIN) {\n let { discount: variantDiscount, rates: variantRates } =\n variants.find(({ id = '' } = {}) => id.toString() === idHotel.toString()) || {};\n discountEnabled = variantDiscount || discountEnabled;\n discount = variantRates || rates;\n }\n }\n\n club = {\n active,\n authentication,\n discount: active && discountEnabled ? discount : undefined,\n id,\n name,\n url: { conditions, privacy },\n variants: variants\n .filter(({ club } = {}) => club)\n .map(({ club: { discount: enabled, rates: active } = {}, id } = {}) => ({ active, enabled, id })),\n };\n }\n\n // -- hotel ----------------------------------------------------------------------------------------------------------\n const hotel = {\n accommodationType: getAccommodationType(config.lodgingDenomination, hotelId),\n id: type === TYPE.CHAIN ? hotelId : id,\n url: urlParams.home || window.location.origin,\n warningAvailability: config.minRoomsEngineNotification,\n };\n\n if (type === TYPE.CHAIN) {\n const { hotels = {} } = config;\n hotel.variants = {};\n\n Object.entries(hotels).map(([key, { lodgingDenomination: accommodationType }]) => {\n hotel.variants[key] = { accommodationType };\n });\n }\n\n // -- occupation -----------------------------------------------------------------------------------------------------\n const occupation = {\n dataSource: config.accomodation?.occupation || [\n { type: TYPE.ADULT, min: 1, age: [18] },\n { type: TYPE.CHILD, age: [0, 17], fulfill: true },\n ],\n maxRooms: config.accomodation?.rooms?.maxOccupation,\n variants: config.accomodation?.variants || [],\n };\n\n // -- origin ---------------------------------------------------------------------------------------------------------\n const origin = {\n commissionCode: urlParams.hsri || COMMISSION_TYPE[type],\n };\n\n // -- tags -----------------------------------------------------------------------------------------------------------\n const { chainSelector } = config;\n let tags;\n if (type === TYPE.CHAIN && chainSelector) {\n const { placeHolder = {}, trees = [] } = chainSelector;\n tags = { options: getTags(trees, language), placeholder: placeHolder[language] };\n }\n\n // -- finder ---------------------------------------------------------------------------------------------------------\n let { chainSelectorValue, checkin, clientCode, nights = 0, parties } = urlParams;\n checkin = checkin ? parseDate(checkin) : undefined;\n let checkout;\n\n if (checkin) checkout = dateCalc(checkin, parseInt(nights), 'days');\n\n let promo;\n if (config.showPromoNav) {\n const { accomodation: { promo: configPromo = {} } = {}, promoText: placeholder = {} } = config;\n promo = { ...configPromo, placeholder };\n }\n\n let place;\n if (chainSelectorValue && tags) {\n place = tags.options.find(({ value } = {}) => value === Number(chainSelectorValue));\n\n const { id: [id] = [] } = place || {};\n const { accommodationType } = hotel.variants[id] || {};\n if (accommodationType) hotel.accommodationType = accommodationType;\n }\n\n let finder = {\n place,\n calendar: checkin ? [checkin, checkout] : [],\n occupation: parties ? toOccupation({ chainSelectorValue, occupation, parties, places: tags?.options }) : undefined,\n promocode: clientCode || promo?.code,\n };\n\n // -- rates ----------------------------------------------------------------------------------------------------------\n let rates = urlParams.rates ? { cart: urlParams.rates ? JSON.parse(urlParams.rates) : undefined } : undefined;\n\n // -- forwarder ------------------------------------------------------------------------------------------------------\n const host = `${document.location.protocol}//${document.location.host}`;\n const isDevelopment = process.env.NODE_ENV === 'development';\n const forwarder = {\n rates: miraiId ? `${host}/step1-rates` : `${process.env.SERVICE_BOOKING}/miraiFrontDispatcher.htm`,\n checkout: miraiId ? `${host}/step2-checkout` : `${process.env.SERVICE_BOOKING}/forwarder_client_form.htm`,\n booking: miraiId ? `${host}/step3-booking` : `${process.env.SERVICE_BOOKING}/forwarder_manage_reservation.htm`,\n signup:\n miraiId || isDevelopment\n ? `${host}/signup`\n : `${process.env.SERVICE_USER}/club/v1/forwarder/registration_process`,\n profile:\n miraiId || isDevelopment ? `${host}/profile` : `${process.env.SERVICE_USER}/club/v1/forwarder/members_area`,\n };\n\n return {\n config,\n cookies,\n urlParams,\n ...instance,\n id,\n type,\n\n // region\n currency,\n language,\n country,\n locale: language && country ? `${language}-${country}` : DEFAULT_LOCALE,\n\n // entities,\n calendar,\n club,\n components: components.reduce((value, { component, ...props }) => {\n value[component] = props;\n return value;\n }, {}),\n forwarder,\n hotel,\n loyalty: IS_JEST ? undefined : MOCK_LOYALTY,\n occupation,\n origin,\n promo,\n session,\n tags,\n // -- components\n deals: undefined,\n finder,\n rates,\n signup: undefined,\n };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AAA+F,IAAAS,QAAA,EAAAC,YAAA;AAAA,SAAAR,uBAAAS,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAE/F,MAAMG,OAAO,GAAG,CAAC,GAAAL,QAAA,GAACM,OAAO,cAAAN,QAAA,gBAAAC,YAAA,GAAPD,QAAA,CAASO,GAAG,cAAAN,YAAA,eAAZA,YAAA,CAAcO,cAAc;;AAE9C;AACO,MAAMC,gBAAgB,GAAG,SAAAA,CAAA,EAOrB;EAAA,IAAAC,oBAAA,EAAAC,qBAAA,EAAAC,qBAAA,EAAAC,qBAAA,EAAAC,qBAAA,EAAAC,KAAA,EAAAC,MAAA;EAAA,IAPsB;IAC/BC,UAAU,GAAG,EAAE;IACf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pG,OAAO;IACPsF,IAAI;IACJ;IACAiD,KAAK,EAAEnI,SAAS;IAChBuG,MAAM;IACNxE,KAAK;IACLyF,MAAM,EAAExH;EACV,CAAC;AACH,CAAC;AAACoI,OAAA,CAAAzJ,gBAAA,GAAAA,gBAAA"}
|
|
@@ -8,12 +8,13 @@ var _package = require("../../package.json");
|
|
|
8
8
|
var _components = require("../components");
|
|
9
9
|
/* eslint-disable no-console */
|
|
10
10
|
|
|
11
|
-
const NAMESPACE = '[data-mirai-component]';
|
|
12
11
|
const COMPONENT_KEY = 'miraiComponent';
|
|
12
|
+
const NAMESPACE = '[data-mirai-component]';
|
|
13
|
+
const UNPROCESSED_KEYS = ['role'];
|
|
13
14
|
const findComponents = () => {
|
|
14
15
|
const components = [];
|
|
15
16
|
[...document.querySelectorAll(NAMESPACE)].forEach(el => {
|
|
16
|
-
const properties = Object.keys(el.dataset).reduce((current, name) => {
|
|
17
|
+
const properties = Object.keys(el.dataset).filter(key => !UNPROCESSED_KEYS.includes(key)).reduce((current, name) => {
|
|
17
18
|
const key = name === COMPONENT_KEY ? 'component' : name;
|
|
18
19
|
const value = el.dataset[name];
|
|
19
20
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findComponents.js","names":["_package","require","_components","NAMESPACE","
|
|
1
|
+
{"version":3,"file":"findComponents.js","names":["_package","require","_components","COMPONENT_KEY","NAMESPACE","UNPROCESSED_KEYS","findComponents","components","document","querySelectorAll","forEach","el","properties","Object","keys","dataset","filter","key","includes","reduce","current","name","value","isComponent","COMPONENTS","component","push","console","error","concat","version","exports"],"sources":["../../src/helpers/findComponents.js"],"sourcesContent":["/* eslint-disable no-console */\nimport { version } from '../../package.json';\nimport { COMPONENTS } from '../components';\n\nconst COMPONENT_KEY = 'miraiComponent';\nconst NAMESPACE = '[data-mirai-component]';\nconst UNPROCESSED_KEYS = ['role'];\n\nexport const findComponents = () => {\n const components = [];\n\n [...document.querySelectorAll(NAMESPACE)].forEach((el) => {\n const properties = Object.keys(el.dataset)\n .filter((key) => !UNPROCESSED_KEYS.includes(key))\n .reduce((current, name) => {\n const key = name === COMPONENT_KEY ? 'component' : name;\n const value = el.dataset[name];\n\n return { ...current, [key]: ['true', 'false'].includes(value) ? value === 'true' : value };\n }, {});\n\n const isComponent = Object.keys(COMPONENTS).includes(properties?.component);\n if (isComponent) {\n components.push({ ...properties, el });\n } else if (properties?.component)\n // eslint-disable-next-line no-console\n console.error(`Component <${properties?.component}> is not part of Mirai:Engine v${version}`);\n });\n\n return components;\n};\n"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAFA;;AAIA,MAAME,aAAa,GAAG,gBAAgB;AACtC,MAAMC,SAAS,GAAG,wBAAwB;AAC1C,MAAMC,gBAAgB,GAAG,CAAC,MAAM,CAAC;AAE1B,MAAMC,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMC,UAAU,GAAG,EAAE;EAErB,CAAC,GAAGC,QAAQ,CAACC,gBAAgB,CAACL,SAAS,CAAC,CAAC,CAACM,OAAO,CAAEC,EAAE,IAAK;IACxD,MAAMC,UAAU,GAAGC,MAAM,CAACC,IAAI,CAACH,EAAE,CAACI,OAAO,CAAC,CACvCC,MAAM,CAAEC,GAAG,IAAK,CAACZ,gBAAgB,CAACa,QAAQ,CAACD,GAAG,CAAC,CAAC,CAChDE,MAAM,CAAC,CAACC,OAAO,EAAEC,IAAI,KAAK;MACzB,MAAMJ,GAAG,GAAGI,IAAI,KAAKlB,aAAa,GAAG,WAAW,GAAGkB,IAAI;MACvD,MAAMC,KAAK,GAAGX,EAAE,CAACI,OAAO,CAACM,IAAI,CAAC;MAE9B,OAAO;QAAE,GAAGD,OAAO;QAAE,CAACH,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAACC,QAAQ,CAACI,KAAK,CAAC,GAAGA,KAAK,KAAK,MAAM,GAAGA;MAAM,CAAC;IAC5F,CAAC,EAAE,CAAC,CAAC,CAAC;IAER,MAAMC,WAAW,GAAGV,MAAM,CAACC,IAAI,CAACU,sBAAU,CAAC,CAACN,QAAQ,CAACN,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEa,SAAS,CAAC;IAC3E,IAAIF,WAAW,EAAE;MACfhB,UAAU,CAACmB,IAAI,CAAC;QAAE,GAAGd,UAAU;QAAED;MAAG,CAAC,CAAC;IACxC,CAAC,MAAM,IAAIC,UAAU,aAAVA,UAAU,eAAVA,UAAU,CAAEa,SAAS;MAC9B;MACAE,OAAO,CAACC,KAAK,eAAAC,MAAA,CAAejB,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEa,SAAS,qCAAAI,MAAA,CAAkCC,gBAAO,CAAE,CAAC;EACjG,CAAC,CAAC;EAEF,OAAOvB,UAAU;AACnB,CAAC;AAACwB,OAAA,CAAAzB,cAAA,GAAAA,cAAA"}
|
package/build/index.js
CHANGED
|
@@ -13,6 +13,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
13
13
|
|
|
14
14
|
window.Mirai = {
|
|
15
15
|
...window.Mirai,
|
|
16
|
+
components: undefined,
|
|
17
|
+
config: undefined,
|
|
16
18
|
environment: process.env.NODE_ENV,
|
|
17
19
|
Event: _dataSources.Event,
|
|
18
20
|
services: {
|
|
@@ -49,6 +51,10 @@ window.Mirai.core = async () => {
|
|
|
49
51
|
// 4. Find components
|
|
50
52
|
const components = (0, _helpers.findComponents)();
|
|
51
53
|
if (!components.length) return;
|
|
54
|
+
window.Mirai = {
|
|
55
|
+
...window.Mirai,
|
|
56
|
+
components
|
|
57
|
+
};
|
|
52
58
|
|
|
53
59
|
// 5. Theming
|
|
54
60
|
(0, _helpers.theme)(urlParams);
|
|
@@ -77,6 +83,7 @@ window.Mirai.core = async () => {
|
|
|
77
83
|
|
|
78
84
|
// 10. Consolidate store
|
|
79
85
|
const store = (0, _helpers.consolidateStore)({
|
|
86
|
+
components,
|
|
80
87
|
config,
|
|
81
88
|
cookies,
|
|
82
89
|
instance,
|