@mirai/core 0.3.169 → 0.3.171
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/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/partials/index.js +2 -13
- package/build/components/Booking/partials/index.js.map +1 -1
- package/build/components/Checkout/Checkout.js +2 -2
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.module.css +10 -1
- package/build/components/Checkout/helpers/getFieldProps.js +2 -1
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Form.js +17 -2
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +448 -0
- 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/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 +5 -3
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map +1 -1
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js +11 -0
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js.map +1 -1
- package/build/components/__shared__/index.js +11 -0
- package/build/components/__shared__/index.js.map +1 -1
- package/package.json +1 -1
- package/build/components/Booking/partials/Booking.Others.js.map +0 -1
package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap
CHANGED
|
@@ -1423,6 +1423,118 @@ exports[`component:<Checkout> partial:<Form> inherit:className 1`] = `
|
|
|
1423
1423
|
</div>
|
|
1424
1424
|
</div>
|
|
1425
1425
|
</div>
|
|
1426
|
+
<div
|
|
1427
|
+
class="pressable container overflow"
|
|
1428
|
+
style="height: 768px;"
|
|
1429
|
+
>
|
|
1430
|
+
<div
|
|
1431
|
+
class="view fit modal"
|
|
1432
|
+
>
|
|
1433
|
+
<div
|
|
1434
|
+
class="view row header hideBack"
|
|
1435
|
+
>
|
|
1436
|
+
<button
|
|
1437
|
+
class="pressable button small squared transparent button"
|
|
1438
|
+
>
|
|
1439
|
+
<span
|
|
1440
|
+
class="icon headline-3 icon"
|
|
1441
|
+
>
|
|
1442
|
+
<svg
|
|
1443
|
+
fill="currentColor"
|
|
1444
|
+
height="1em"
|
|
1445
|
+
stroke="currentColor"
|
|
1446
|
+
stroke-width="0"
|
|
1447
|
+
viewBox="0 0 24 24"
|
|
1448
|
+
width="1em"
|
|
1449
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
1450
|
+
>
|
|
1451
|
+
<path
|
|
1452
|
+
d="M0 0h24v24H0V0z"
|
|
1453
|
+
fill="none"
|
|
1454
|
+
/>
|
|
1455
|
+
<path
|
|
1456
|
+
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
1457
|
+
/>
|
|
1458
|
+
</svg>
|
|
1459
|
+
</span>
|
|
1460
|
+
</button>
|
|
1461
|
+
</div>
|
|
1462
|
+
<div
|
|
1463
|
+
class="scrollview vertical notIndicator"
|
|
1464
|
+
>
|
|
1465
|
+
<div
|
|
1466
|
+
class="view"
|
|
1467
|
+
>
|
|
1468
|
+
<div
|
|
1469
|
+
class="view"
|
|
1470
|
+
>
|
|
1471
|
+
<span
|
|
1472
|
+
class="text bold small"
|
|
1473
|
+
>
|
|
1474
|
+
common.label.payment_terms
|
|
1475
|
+
</span>
|
|
1476
|
+
<span
|
|
1477
|
+
class="text small"
|
|
1478
|
+
>
|
|
1479
|
+
Prepago de 100%: Tarjeta de crédito o Amazon Pay
|
|
1480
|
+
</span>
|
|
1481
|
+
</div>
|
|
1482
|
+
<div
|
|
1483
|
+
class="view"
|
|
1484
|
+
>
|
|
1485
|
+
<span
|
|
1486
|
+
class="text bold small"
|
|
1487
|
+
>
|
|
1488
|
+
common.label.cancellation_policy
|
|
1489
|
+
</span>
|
|
1490
|
+
<span
|
|
1491
|
+
class="text small"
|
|
1492
|
+
>
|
|
1493
|
+
Para que la reserva quede confirmada, es necesario el cobro por anticipado del 100% de toda la estancia reservada. Recibirá un cargo en su tarjeta por dicho importe. Sólo entonces su confirmación tendrá validez. El importe no será devuelto bajo ninguna circunstancia.
|
|
1494
|
+
</span>
|
|
1495
|
+
</div>
|
|
1496
|
+
<div
|
|
1497
|
+
class="view"
|
|
1498
|
+
>
|
|
1499
|
+
<span
|
|
1500
|
+
class="text bold small"
|
|
1501
|
+
>
|
|
1502
|
+
common.label.others_terms
|
|
1503
|
+
</span>
|
|
1504
|
+
<span
|
|
1505
|
+
class="text small"
|
|
1506
|
+
>
|
|
1507
|
+
<span
|
|
1508
|
+
class="text small wide"
|
|
1509
|
+
>
|
|
1510
|
+
Check- in a partir de las 15.00h.
|
|
1511
|
+
</span>
|
|
1512
|
+
<span
|
|
1513
|
+
class="text small wide"
|
|
1514
|
+
>
|
|
1515
|
+
Check - out hasta las 12.00h.
|
|
1516
|
+
</span>
|
|
1517
|
+
<span
|
|
1518
|
+
class="text small wide"
|
|
1519
|
+
>
|
|
1520
|
+
Los niños de 3 a 12 años podrán acceder a las instalaciones dedicadas a su uso y disfrute.
|
|
1521
|
+
</span>
|
|
1522
|
+
<span
|
|
1523
|
+
class="text small wide"
|
|
1524
|
+
>
|
|
1525
|
+
En caso de alojarse con bebés, éstos no incluyen régimen alguno.
|
|
1526
|
+
</span>
|
|
1527
|
+
<span
|
|
1528
|
+
class="text small wide"
|
|
1529
|
+
>
|
|
1530
|
+
Acceso spa infantil para bebés 8.50€ al día.
|
|
1531
|
+
</span>
|
|
1532
|
+
</span>
|
|
1533
|
+
</div>
|
|
1534
|
+
</div>
|
|
1535
|
+
</div>
|
|
1536
|
+
</div>
|
|
1537
|
+
</div>
|
|
1426
1538
|
</DocumentFragment>
|
|
1427
1539
|
`;
|
|
1428
1540
|
|
|
@@ -2849,6 +2961,118 @@ exports[`component:<Checkout> partial:<Form> renders 1`] = `
|
|
|
2849
2961
|
</div>
|
|
2850
2962
|
</div>
|
|
2851
2963
|
</div>
|
|
2964
|
+
<div
|
|
2965
|
+
class="pressable container overflow"
|
|
2966
|
+
style="height: 768px;"
|
|
2967
|
+
>
|
|
2968
|
+
<div
|
|
2969
|
+
class="view fit modal"
|
|
2970
|
+
>
|
|
2971
|
+
<div
|
|
2972
|
+
class="view row header hideBack"
|
|
2973
|
+
>
|
|
2974
|
+
<button
|
|
2975
|
+
class="pressable button small squared transparent button"
|
|
2976
|
+
>
|
|
2977
|
+
<span
|
|
2978
|
+
class="icon headline-3 icon"
|
|
2979
|
+
>
|
|
2980
|
+
<svg
|
|
2981
|
+
fill="currentColor"
|
|
2982
|
+
height="1em"
|
|
2983
|
+
stroke="currentColor"
|
|
2984
|
+
stroke-width="0"
|
|
2985
|
+
viewBox="0 0 24 24"
|
|
2986
|
+
width="1em"
|
|
2987
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2988
|
+
>
|
|
2989
|
+
<path
|
|
2990
|
+
d="M0 0h24v24H0V0z"
|
|
2991
|
+
fill="none"
|
|
2992
|
+
/>
|
|
2993
|
+
<path
|
|
2994
|
+
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
2995
|
+
/>
|
|
2996
|
+
</svg>
|
|
2997
|
+
</span>
|
|
2998
|
+
</button>
|
|
2999
|
+
</div>
|
|
3000
|
+
<div
|
|
3001
|
+
class="scrollview vertical notIndicator"
|
|
3002
|
+
>
|
|
3003
|
+
<div
|
|
3004
|
+
class="view"
|
|
3005
|
+
>
|
|
3006
|
+
<div
|
|
3007
|
+
class="view"
|
|
3008
|
+
>
|
|
3009
|
+
<span
|
|
3010
|
+
class="text bold small"
|
|
3011
|
+
>
|
|
3012
|
+
common.label.payment_terms
|
|
3013
|
+
</span>
|
|
3014
|
+
<span
|
|
3015
|
+
class="text small"
|
|
3016
|
+
>
|
|
3017
|
+
Prepago de 100%: Tarjeta de crédito o Amazon Pay
|
|
3018
|
+
</span>
|
|
3019
|
+
</div>
|
|
3020
|
+
<div
|
|
3021
|
+
class="view"
|
|
3022
|
+
>
|
|
3023
|
+
<span
|
|
3024
|
+
class="text bold small"
|
|
3025
|
+
>
|
|
3026
|
+
common.label.cancellation_policy
|
|
3027
|
+
</span>
|
|
3028
|
+
<span
|
|
3029
|
+
class="text small"
|
|
3030
|
+
>
|
|
3031
|
+
Para que la reserva quede confirmada, es necesario el cobro por anticipado del 100% de toda la estancia reservada. Recibirá un cargo en su tarjeta por dicho importe. Sólo entonces su confirmación tendrá validez. El importe no será devuelto bajo ninguna circunstancia.
|
|
3032
|
+
</span>
|
|
3033
|
+
</div>
|
|
3034
|
+
<div
|
|
3035
|
+
class="view"
|
|
3036
|
+
>
|
|
3037
|
+
<span
|
|
3038
|
+
class="text bold small"
|
|
3039
|
+
>
|
|
3040
|
+
common.label.others_terms
|
|
3041
|
+
</span>
|
|
3042
|
+
<span
|
|
3043
|
+
class="text small"
|
|
3044
|
+
>
|
|
3045
|
+
<span
|
|
3046
|
+
class="text small wide"
|
|
3047
|
+
>
|
|
3048
|
+
Check- in a partir de las 15.00h.
|
|
3049
|
+
</span>
|
|
3050
|
+
<span
|
|
3051
|
+
class="text small wide"
|
|
3052
|
+
>
|
|
3053
|
+
Check - out hasta las 12.00h.
|
|
3054
|
+
</span>
|
|
3055
|
+
<span
|
|
3056
|
+
class="text small wide"
|
|
3057
|
+
>
|
|
3058
|
+
Los niños de 3 a 12 años podrán acceder a las instalaciones dedicadas a su uso y disfrute.
|
|
3059
|
+
</span>
|
|
3060
|
+
<span
|
|
3061
|
+
class="text small wide"
|
|
3062
|
+
>
|
|
3063
|
+
En caso de alojarse con bebés, éstos no incluyen régimen alguno.
|
|
3064
|
+
</span>
|
|
3065
|
+
<span
|
|
3066
|
+
class="text small wide"
|
|
3067
|
+
>
|
|
3068
|
+
Acceso spa infantil para bebés 8.50€ al día.
|
|
3069
|
+
</span>
|
|
3070
|
+
</span>
|
|
3071
|
+
</div>
|
|
3072
|
+
</div>
|
|
3073
|
+
</div>
|
|
3074
|
+
</div>
|
|
3075
|
+
</div>
|
|
2852
3076
|
</DocumentFragment>
|
|
2853
3077
|
`;
|
|
2854
3078
|
|
|
@@ -4276,6 +4500,118 @@ exports[`component:<Checkout> partial:<Form> testID 1`] = `
|
|
|
4276
4500
|
</div>
|
|
4277
4501
|
</div>
|
|
4278
4502
|
</div>
|
|
4503
|
+
<div
|
|
4504
|
+
class="pressable container overflow"
|
|
4505
|
+
style="height: 768px;"
|
|
4506
|
+
>
|
|
4507
|
+
<div
|
|
4508
|
+
class="view fit modal"
|
|
4509
|
+
>
|
|
4510
|
+
<div
|
|
4511
|
+
class="view row header hideBack"
|
|
4512
|
+
>
|
|
4513
|
+
<button
|
|
4514
|
+
class="pressable button small squared transparent button"
|
|
4515
|
+
>
|
|
4516
|
+
<span
|
|
4517
|
+
class="icon headline-3 icon"
|
|
4518
|
+
>
|
|
4519
|
+
<svg
|
|
4520
|
+
fill="currentColor"
|
|
4521
|
+
height="1em"
|
|
4522
|
+
stroke="currentColor"
|
|
4523
|
+
stroke-width="0"
|
|
4524
|
+
viewBox="0 0 24 24"
|
|
4525
|
+
width="1em"
|
|
4526
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4527
|
+
>
|
|
4528
|
+
<path
|
|
4529
|
+
d="M0 0h24v24H0V0z"
|
|
4530
|
+
fill="none"
|
|
4531
|
+
/>
|
|
4532
|
+
<path
|
|
4533
|
+
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
4534
|
+
/>
|
|
4535
|
+
</svg>
|
|
4536
|
+
</span>
|
|
4537
|
+
</button>
|
|
4538
|
+
</div>
|
|
4539
|
+
<div
|
|
4540
|
+
class="scrollview vertical notIndicator"
|
|
4541
|
+
>
|
|
4542
|
+
<div
|
|
4543
|
+
class="view"
|
|
4544
|
+
>
|
|
4545
|
+
<div
|
|
4546
|
+
class="view"
|
|
4547
|
+
>
|
|
4548
|
+
<span
|
|
4549
|
+
class="text bold small"
|
|
4550
|
+
>
|
|
4551
|
+
common.label.payment_terms
|
|
4552
|
+
</span>
|
|
4553
|
+
<span
|
|
4554
|
+
class="text small"
|
|
4555
|
+
>
|
|
4556
|
+
Prepago de 100%: Tarjeta de crédito o Amazon Pay
|
|
4557
|
+
</span>
|
|
4558
|
+
</div>
|
|
4559
|
+
<div
|
|
4560
|
+
class="view"
|
|
4561
|
+
>
|
|
4562
|
+
<span
|
|
4563
|
+
class="text bold small"
|
|
4564
|
+
>
|
|
4565
|
+
common.label.cancellation_policy
|
|
4566
|
+
</span>
|
|
4567
|
+
<span
|
|
4568
|
+
class="text small"
|
|
4569
|
+
>
|
|
4570
|
+
Para que la reserva quede confirmada, es necesario el cobro por anticipado del 100% de toda la estancia reservada. Recibirá un cargo en su tarjeta por dicho importe. Sólo entonces su confirmación tendrá validez. El importe no será devuelto bajo ninguna circunstancia.
|
|
4571
|
+
</span>
|
|
4572
|
+
</div>
|
|
4573
|
+
<div
|
|
4574
|
+
class="view"
|
|
4575
|
+
>
|
|
4576
|
+
<span
|
|
4577
|
+
class="text bold small"
|
|
4578
|
+
>
|
|
4579
|
+
common.label.others_terms
|
|
4580
|
+
</span>
|
|
4581
|
+
<span
|
|
4582
|
+
class="text small"
|
|
4583
|
+
>
|
|
4584
|
+
<span
|
|
4585
|
+
class="text small wide"
|
|
4586
|
+
>
|
|
4587
|
+
Check- in a partir de las 15.00h.
|
|
4588
|
+
</span>
|
|
4589
|
+
<span
|
|
4590
|
+
class="text small wide"
|
|
4591
|
+
>
|
|
4592
|
+
Check - out hasta las 12.00h.
|
|
4593
|
+
</span>
|
|
4594
|
+
<span
|
|
4595
|
+
class="text small wide"
|
|
4596
|
+
>
|
|
4597
|
+
Los niños de 3 a 12 años podrán acceder a las instalaciones dedicadas a su uso y disfrute.
|
|
4598
|
+
</span>
|
|
4599
|
+
<span
|
|
4600
|
+
class="text small wide"
|
|
4601
|
+
>
|
|
4602
|
+
En caso de alojarse con bebés, éstos no incluyen régimen alguno.
|
|
4603
|
+
</span>
|
|
4604
|
+
<span
|
|
4605
|
+
class="text small wide"
|
|
4606
|
+
>
|
|
4607
|
+
Acceso spa infantil para bebés 8.50€ al día.
|
|
4608
|
+
</span>
|
|
4609
|
+
</span>
|
|
4610
|
+
</div>
|
|
4611
|
+
</div>
|
|
4612
|
+
</div>
|
|
4613
|
+
</div>
|
|
4614
|
+
</div>
|
|
4279
4615
|
</DocumentFragment>
|
|
4280
4616
|
`;
|
|
4281
4617
|
|
|
@@ -5702,5 +6038,117 @@ exports[`component:<Checkout> partial:<Form> with a store 1`] = `
|
|
|
5702
6038
|
</div>
|
|
5703
6039
|
</div>
|
|
5704
6040
|
</div>
|
|
6041
|
+
<div
|
|
6042
|
+
class="pressable container overflow"
|
|
6043
|
+
style="height: 768px;"
|
|
6044
|
+
>
|
|
6045
|
+
<div
|
|
6046
|
+
class="view fit modal"
|
|
6047
|
+
>
|
|
6048
|
+
<div
|
|
6049
|
+
class="view row header hideBack"
|
|
6050
|
+
>
|
|
6051
|
+
<button
|
|
6052
|
+
class="pressable button small squared transparent button"
|
|
6053
|
+
>
|
|
6054
|
+
<span
|
|
6055
|
+
class="icon headline-3 icon"
|
|
6056
|
+
>
|
|
6057
|
+
<svg
|
|
6058
|
+
fill="currentColor"
|
|
6059
|
+
height="1em"
|
|
6060
|
+
stroke="currentColor"
|
|
6061
|
+
stroke-width="0"
|
|
6062
|
+
viewBox="0 0 24 24"
|
|
6063
|
+
width="1em"
|
|
6064
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6065
|
+
>
|
|
6066
|
+
<path
|
|
6067
|
+
d="M0 0h24v24H0V0z"
|
|
6068
|
+
fill="none"
|
|
6069
|
+
/>
|
|
6070
|
+
<path
|
|
6071
|
+
d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
6072
|
+
/>
|
|
6073
|
+
</svg>
|
|
6074
|
+
</span>
|
|
6075
|
+
</button>
|
|
6076
|
+
</div>
|
|
6077
|
+
<div
|
|
6078
|
+
class="scrollview vertical notIndicator"
|
|
6079
|
+
>
|
|
6080
|
+
<div
|
|
6081
|
+
class="view"
|
|
6082
|
+
>
|
|
6083
|
+
<div
|
|
6084
|
+
class="view"
|
|
6085
|
+
>
|
|
6086
|
+
<span
|
|
6087
|
+
class="text bold small"
|
|
6088
|
+
>
|
|
6089
|
+
common.label.payment_terms
|
|
6090
|
+
</span>
|
|
6091
|
+
<span
|
|
6092
|
+
class="text small"
|
|
6093
|
+
>
|
|
6094
|
+
Prepago de 100%: Tarjeta de crédito o Amazon Pay
|
|
6095
|
+
</span>
|
|
6096
|
+
</div>
|
|
6097
|
+
<div
|
|
6098
|
+
class="view"
|
|
6099
|
+
>
|
|
6100
|
+
<span
|
|
6101
|
+
class="text bold small"
|
|
6102
|
+
>
|
|
6103
|
+
common.label.cancellation_policy
|
|
6104
|
+
</span>
|
|
6105
|
+
<span
|
|
6106
|
+
class="text small"
|
|
6107
|
+
>
|
|
6108
|
+
Para que la reserva quede confirmada, es necesario el cobro por anticipado del 100% de toda la estancia reservada. Recibirá un cargo en su tarjeta por dicho importe. Sólo entonces su confirmación tendrá validez. El importe no será devuelto bajo ninguna circunstancia.
|
|
6109
|
+
</span>
|
|
6110
|
+
</div>
|
|
6111
|
+
<div
|
|
6112
|
+
class="view"
|
|
6113
|
+
>
|
|
6114
|
+
<span
|
|
6115
|
+
class="text bold small"
|
|
6116
|
+
>
|
|
6117
|
+
common.label.others_terms
|
|
6118
|
+
</span>
|
|
6119
|
+
<span
|
|
6120
|
+
class="text small"
|
|
6121
|
+
>
|
|
6122
|
+
<span
|
|
6123
|
+
class="text small wide"
|
|
6124
|
+
>
|
|
6125
|
+
Check- in a partir de las 15.00h.
|
|
6126
|
+
</span>
|
|
6127
|
+
<span
|
|
6128
|
+
class="text small wide"
|
|
6129
|
+
>
|
|
6130
|
+
Check - out hasta las 12.00h.
|
|
6131
|
+
</span>
|
|
6132
|
+
<span
|
|
6133
|
+
class="text small wide"
|
|
6134
|
+
>
|
|
6135
|
+
Los niños de 3 a 12 años podrán acceder a las instalaciones dedicadas a su uso y disfrute.
|
|
6136
|
+
</span>
|
|
6137
|
+
<span
|
|
6138
|
+
class="text small wide"
|
|
6139
|
+
>
|
|
6140
|
+
En caso de alojarse con bebés, éstos no incluyen régimen alguno.
|
|
6141
|
+
</span>
|
|
6142
|
+
<span
|
|
6143
|
+
class="text small wide"
|
|
6144
|
+
>
|
|
6145
|
+
Acceso spa infantil para bebés 8.50€ al día.
|
|
6146
|
+
</span>
|
|
6147
|
+
</span>
|
|
6148
|
+
</div>
|
|
6149
|
+
</div>
|
|
6150
|
+
</div>
|
|
6151
|
+
</div>
|
|
6152
|
+
</div>
|
|
5705
6153
|
</DocumentFragment>
|
|
5706
6154
|
`;
|
|
@@ -32,6 +32,7 @@ const Account = () => {
|
|
|
32
32
|
const [countries, setCountries] = (0, _react.useState)({});
|
|
33
33
|
const [form, setForm] = (0, _react.useState)(session);
|
|
34
34
|
const [formError, setFormError] = (0, _react.useState)({});
|
|
35
|
+
const [requiredFields, setRequiredFields] = (0, _react.useState)();
|
|
35
36
|
const [responseError, setResponseError] = (0, _react.useState)();
|
|
36
37
|
const formatDate = (0, _locale.getDateFormat)(locale);
|
|
37
38
|
(0, _react.useEffect)(() => {
|
|
@@ -54,7 +55,16 @@ const Account = () => {
|
|
|
54
55
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
55
56
|
}, [locale]);
|
|
56
57
|
const handleSubmit = async form => {
|
|
58
|
+
const hasErrors = Object.keys(formError).length !== 0;
|
|
59
|
+
if (hasErrors) {
|
|
60
|
+
window.scrollTo({
|
|
61
|
+
top: 0,
|
|
62
|
+
behavior: 'smooth'
|
|
63
|
+
});
|
|
64
|
+
return setRequiredFields(formError);
|
|
65
|
+
}
|
|
57
66
|
setBusy(true);
|
|
67
|
+
setRequiredFields();
|
|
58
68
|
setResponseError(undefined);
|
|
59
69
|
const parameters = {
|
|
60
70
|
...form,
|
|
@@ -83,17 +93,21 @@ const Account = () => {
|
|
|
83
93
|
const countryCode = (0, _helpers.getCountryCode)(form.country, countries);
|
|
84
94
|
const has = {
|
|
85
95
|
changes: _Settings.ACCOUNT_FIELDS.some(key => form[key] !== session[key]) || countryCode !== session.country,
|
|
86
|
-
dateOfBirth: (_form$dateOfBirth = form.dateOfBirth) === null || _form$dateOfBirth === void 0 ? void 0 : _form$dateOfBirth.length
|
|
87
|
-
errors: Object.keys(formError).length !== 0
|
|
96
|
+
dateOfBirth: (_form$dateOfBirth = form.dateOfBirth) === null || _form$dateOfBirth === void 0 ? void 0 : _form$dateOfBirth.length
|
|
88
97
|
};
|
|
98
|
+
const hasRequiredFields = Object.keys(requiredFields || {}).length > 0;
|
|
89
99
|
return /*#__PURE__*/_react.default.createElement(_ui.Form, {
|
|
90
100
|
validateOnMount: true,
|
|
91
101
|
onChange: setForm,
|
|
92
102
|
onError: setFormError,
|
|
93
103
|
onSubmit: handleSubmit
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
104
|
+
}, hasRequiredFields && /*#__PURE__*/_react.default.createElement(_shared__.NotificationRequiredFields, {
|
|
105
|
+
form: "account",
|
|
106
|
+
values: requiredFields
|
|
107
|
+
}), /*#__PURE__*/_react.default.createElement(_ui.Text, {
|
|
95
108
|
wide: true
|
|
96
109
|
}, translate(_Settings2.L10N.DESCRIPTION_ACCOUNT)), /*#__PURE__*/_react.default.createElement(_shared__.TextRequiredFields, null), /*#__PURE__*/_react.default.createElement(_ui.InputText, {
|
|
110
|
+
id: "account-firstName",
|
|
97
111
|
name: "firstName",
|
|
98
112
|
error: formError.firstName,
|
|
99
113
|
label: translate(_Settings2.L10N.FIRSTNAME_LABEL),
|
|
@@ -102,6 +116,7 @@ const Account = () => {
|
|
|
102
116
|
success: form.firstName !== session.firstName,
|
|
103
117
|
value: form.firstName
|
|
104
118
|
}), /*#__PURE__*/_react.default.createElement(_ui.InputText, {
|
|
119
|
+
id: "account-lastName",
|
|
105
120
|
name: "lastName",
|
|
106
121
|
error: formError.lastName,
|
|
107
122
|
label: translate(_Settings2.L10N.LASTNAME_LABEL),
|
|
@@ -110,6 +125,7 @@ const Account = () => {
|
|
|
110
125
|
success: form.lastName !== session.lastName,
|
|
111
126
|
value: form.lastName
|
|
112
127
|
}), /*#__PURE__*/_react.default.createElement(_ui.InputText, {
|
|
128
|
+
id: "account-email",
|
|
113
129
|
name: "email",
|
|
114
130
|
disabled: true,
|
|
115
131
|
label: translate(_Settings2.L10N.EMAIL_LABEL),
|
|
@@ -118,6 +134,7 @@ const Account = () => {
|
|
|
118
134
|
type: "email",
|
|
119
135
|
value: form.email
|
|
120
136
|
}), /*#__PURE__*/_react.default.createElement(_ui.InputDate, {
|
|
137
|
+
id: "account-dateOfBirth",
|
|
121
138
|
name: "dateOfBirth",
|
|
122
139
|
error: has.dateOfBirth && !!formError.dateOfBirth,
|
|
123
140
|
hint: has.dateOfBirth && (_formError$dateOfBirt = formError.dateOfBirth) !== null && _formError$dateOfBirt !== void 0 && _formError$dateOfBirt.max ? translate(_Settings2.L10N.DATEOFBIRTH_ERROR) : undefined,
|
|
@@ -132,12 +149,14 @@ const Account = () => {
|
|
|
132
149
|
type: "inputDate",
|
|
133
150
|
value: form.dateOfBirth
|
|
134
151
|
}), /*#__PURE__*/_react.default.createElement(_ui.InputSelect, {
|
|
152
|
+
id: "account-country",
|
|
135
153
|
name: "country",
|
|
136
154
|
label: translate(_Settings2.L10N.COUNTRY_LABEL),
|
|
137
155
|
placeholder: translate(_Settings2.L10N.COUNTRY_PLACEHOLDER),
|
|
138
|
-
options: Object.values(countries)
|
|
139
|
-
required
|
|
140
|
-
showRequired
|
|
156
|
+
options: Object.values(countries)
|
|
157
|
+
// required
|
|
158
|
+
// showRequired
|
|
159
|
+
,
|
|
141
160
|
success: countryCode !== session.country,
|
|
142
161
|
value: form.country
|
|
143
162
|
}), /*#__PURE__*/_react.default.createElement(_ui.InputOption, {
|
|
@@ -152,10 +171,9 @@ const Account = () => {
|
|
|
152
171
|
className: style.notification
|
|
153
172
|
}, translate(_Settings2.L10N.ERROR)), /*#__PURE__*/_react.default.createElement(_ui.Button, {
|
|
154
173
|
busy: busy,
|
|
155
|
-
disabled: busy || has.errors || !has.changes,
|
|
156
174
|
large: true,
|
|
157
175
|
wide: true,
|
|
158
|
-
|
|
176
|
+
onPress: handleSubmit
|
|
159
177
|
}, translate(_Settings2.L10N.CTA_ACCOUNT)));
|
|
160
178
|
};
|
|
161
179
|
exports.Account = Account;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.Account.js","names":["_dataSources","require","_locale","_services","_ui","_react","_interopRequireWildcard","_Settings","_Settings2","style","_shared__","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Account","_form$dateOfBirth","_formError$dateOfBirt","value","locale","session","useStore","translate","useLocale","busy","setBusy","useState","countries","setCountries","form","setForm","formError","setFormError","responseError","setResponseError","formatDate","getDateFormat","useEffect","profile","next","ServiceCountry","list","country","handleSubmit","undefined","parameters","getCountryCode","dateOfBirth","dateFormat","parseDate","format","response","ServiceUser","update","catch","error","Event","publish","EVENT","NOTIFICATION","success","L10N","SUCCESS_ACCOUNT","countryCode","changes","ACCOUNT_FIELDS","some","key","length","errors","keys","createElement","Form","validateOnMount","onChange","onError","onSubmit","Text","wide","DESCRIPTION_ACCOUNT","TextRequiredFields","InputText","name","firstName","label","FIRSTNAME_LABEL","required","showRequired","lastName","LASTNAME_LABEL","disabled","EMAIL_LABEL","type","email","InputDate","hint","max","DATEOFBIRTH_ERROR","DATEOFBIRTH_LABEL","dateCalc","Date","InputSelect","COUNTRY_LABEL","placeholder","COUNTRY_PLACEHOLDER","options","values","InputOption","checked","subscribed","SUBSCRIBED_LABEL","small","Notification","className","notification","ERROR","Button","large","CTA_ACCOUNT","exports","displayName","propTypes"],"sources":["../../../../../src/components/Profile/components/Settings/Settings.Account.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { dateCalc, dateFormat, getDateFormat, parseDate, useLocale } from '@mirai/locale';\nimport { ServiceCountry, ServiceUser } from '@mirai/services';\nimport { Button, Form, InputDate, InputOption, InputSelect, InputText, Notification, Text } from '@mirai/ui';\nimport React, { useEffect, useState } from 'react';\n\nimport { ACCOUNT_FIELDS } from './Settings.constants';\nimport { L10N } from './Settings.l10n';\nimport * as style from './Settings.module.css';\nimport { TextRequiredFields } from '../../../__shared__';\nimport { EVENT, getCountryCode } from '../../../helpers';\n\nconst Account = () => {\n const {\n set,\n value: { locale, session = {} },\n } = useStore();\n const { translate } = useLocale();\n\n const [busy, setBusy] = useState(false);\n const [countries, setCountries] = useState({});\n const [form, setForm] = useState(session);\n const [formError, setFormError] = useState({});\n const [responseError, setResponseError] = useState();\n\n const formatDate = getDateFormat(locale);\n\n useEffect(() => {\n setResponseError();\n set({ profile: form });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form]);\n\n useEffect(() => {\n (async () => {\n const next = (await ServiceCountry.list(locale)) || {};\n\n setCountries(next);\n setForm({ ...form, country: next[session.country] });\n })();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [locale]);\n\n const handleSubmit = async (form) => {\n setBusy(true);\n setResponseError(undefined);\n\n const parameters = {\n ...form,\n country: getCountryCode(form.country, countries),\n dateOfBirth: dateFormat(parseDate(form.dateOfBirth, formatDate), { format: 'DD/MM/YYYY' }),\n };\n\n const response = await ServiceUser.update(parameters).catch((error) => {\n setResponseError(error);\n });\n\n if (response) {\n Event.publish(EVENT.NOTIFICATION, { success: true, ...L10N.SUCCESS_ACCOUNT });\n set({ session: { ...session, ...parameters } });\n }\n setBusy(false);\n };\n\n const countryCode = getCountryCode(form.country, countries);\n const has = {\n changes: ACCOUNT_FIELDS.some((key) => form[key] !== session[key]) || countryCode !== session.country,\n dateOfBirth: form.dateOfBirth?.length,\n errors: Object.keys(formError).length !== 0,\n };\n\n return (\n <Form validateOnMount onChange={setForm} onError={setFormError} onSubmit={handleSubmit}>\n <Text wide>{translate(L10N.DESCRIPTION_ACCOUNT)}</Text>\n <TextRequiredFields />\n <InputText\n name=\"firstName\"\n error={formError.firstName}\n label={translate(L10N.FIRSTNAME_LABEL)}\n required\n showRequired\n success={form.firstName !== session.firstName}\n value={form.firstName}\n />\n <InputText\n name=\"lastName\"\n error={formError.lastName}\n label={translate(L10N.LASTNAME_LABEL)}\n required\n showRequired\n success={form.lastName !== session.lastName}\n value={form.lastName}\n />\n <InputText\n name=\"email\"\n disabled\n label={translate(L10N.EMAIL_LABEL)}\n required\n showRequired\n type=\"email\"\n value={form.email}\n />\n <InputDate\n name=\"dateOfBirth\"\n error={has.dateOfBirth && !!formError.dateOfBirth}\n hint={has.dateOfBirth && formError.dateOfBirth?.max ? translate(L10N.DATEOFBIRTH_ERROR) : undefined}\n format={formatDate}\n label={translate(L10N.DATEOFBIRTH_LABEL)}\n max={dateFormat(dateCalc(new Date(), -18, 'years'), { format: formatDate })}\n required\n showRequired\n success={form.dateOfBirth !== session.dateOfBirth}\n type=\"inputDate\"\n value={form.dateOfBirth}\n />\n <InputSelect\n name=\"country\"\n label={translate(L10N.COUNTRY_LABEL)}\n placeholder={translate(L10N.COUNTRY_PLACEHOLDER)}\n options={Object.values(countries)}\n required\n showRequired\n success={countryCode !== session.country}\n value={form.country}\n />\n <InputOption\n name=\"subscribed\"\n checked={form.subscribed}\n type=\"checkbox\"\n label={translate(L10N.SUBSCRIBED_LABEL)}\n small\n value={form.subscribed}\n />\n\n {responseError && (\n <Notification error className={style.notification}>\n {translate(L10N.ERROR)}\n </Notification>\n )}\n\n <Button busy={busy} disabled={busy || has.errors || !has.changes} large wide type=\"submit\">\n {translate(L10N.CTA_ACCOUNT)}\n </Button>\n </Form>\n );\n};\n\nAccount.displayName = 'Mirai:Core:Profile:Account';\n\nAccount.propTypes = {};\n\nexport { Account };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAH,uBAAA,CAAAL,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AAAyD,SA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,QAAQ;IACRC,YAAY;IACZ3B,OAAO,EAAEG,WAAW,KAAK3C,OAAO,CAACsB,OAAQ;IACzCxB,KAAK,EAAEW,IAAI,CAACa;EAAQ,CACrB,CAAC,eACFvD,MAAA,CAAAa,OAAA,CAAAuE,aAAA,CAACrF,GAAA,CAAAyH,WAAW;IACVzB,IAAI,EAAC,YAAY;IACjB0B,OAAO,EAAE/E,IAAI,CAACgF,UAAW;IACzBjB,IAAI,EAAC,UAAU;IACfR,KAAK,EAAE9D,SAAS,CAACuC,eAAI,CAACiD,gBAAgB,CAAE;IACxCC,KAAK;IACL7F,KAAK,EAAEW,IAAI,CAACgF;EAAW,CACxB,CAAC,EAED5E,aAAa,iBACZ9C,MAAA,CAAAa,OAAA,CAAAuE,aAAA,CAACrF,GAAA,CAAA8H,YAAY;IAACzD,KAAK;IAAC0D,SAAS,EAAE1H,KAAK,CAAC2H;EAAa,GAC/C5F,SAAS,CAACuC,eAAI,CAACsD,KAAK,CACT,CACf,eAEDhI,MAAA,CAAAa,OAAA,CAAAuE,aAAA,CAACrF,GAAA,CAAAkI,MAAM;IAAC5F,IAAI,EAAEA,IAAK;IAACkE,QAAQ,EAAElE,IAAI,IAAIvB,GAAG,CAACoE,MAAM,IAAI,CAACpE,GAAG,CAAC+D,OAAQ;IAACqD,KAAK;IAACvC,IAAI;IAACc,IAAI,EAAC;EAAQ,GACvFtE,SAAS,CAACuC,eAAI,CAACyD,WAAW,CACrB,CACJ,CAAC;AAEX,CAAC;AAACC,OAAA,CAAAxG,OAAA,GAAAA,OAAA;AAEFA,OAAO,CAACyG,WAAW,GAAG,4BAA4B;AAElDzG,OAAO,CAAC0G,SAAS,GAAG,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Settings.Account.js","names":["_dataSources","require","_locale","_services","_ui","_react","_interopRequireWildcard","_Settings","_Settings2","style","_shared__","_helpers","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Account","_form$dateOfBirth","_formError$dateOfBirt","value","locale","session","useStore","translate","useLocale","busy","setBusy","useState","countries","setCountries","form","setForm","formError","setFormError","requiredFields","setRequiredFields","responseError","setResponseError","formatDate","getDateFormat","useEffect","profile","next","ServiceCountry","list","country","handleSubmit","hasErrors","keys","length","window","scrollTo","top","behavior","undefined","parameters","getCountryCode","dateOfBirth","dateFormat","parseDate","format","response","ServiceUser","update","catch","error","Event","publish","EVENT","NOTIFICATION","success","L10N","SUCCESS_ACCOUNT","countryCode","changes","ACCOUNT_FIELDS","some","key","hasRequiredFields","createElement","Form","validateOnMount","onChange","onError","onSubmit","NotificationRequiredFields","values","Text","wide","DESCRIPTION_ACCOUNT","TextRequiredFields","InputText","id","name","firstName","label","FIRSTNAME_LABEL","required","showRequired","lastName","LASTNAME_LABEL","disabled","EMAIL_LABEL","type","email","InputDate","hint","max","DATEOFBIRTH_ERROR","DATEOFBIRTH_LABEL","dateCalc","Date","InputSelect","COUNTRY_LABEL","placeholder","COUNTRY_PLACEHOLDER","options","InputOption","checked","subscribed","SUBSCRIBED_LABEL","small","Notification","className","notification","ERROR","Button","large","onPress","CTA_ACCOUNT","exports","displayName","propTypes"],"sources":["../../../../../src/components/Profile/components/Settings/Settings.Account.jsx"],"sourcesContent":["import { Event, useStore } from '@mirai/data-sources';\nimport { dateCalc, dateFormat, getDateFormat, parseDate, useLocale } from '@mirai/locale';\nimport { ServiceCountry, ServiceUser } from '@mirai/services';\nimport { Button, Form, InputDate, InputOption, InputSelect, InputText, Notification, Text } from '@mirai/ui';\nimport React, { useEffect, useState } from 'react';\n\nimport { ACCOUNT_FIELDS } from './Settings.constants';\nimport { L10N } from './Settings.l10n';\nimport * as style from './Settings.module.css';\nimport { NotificationRequiredFields, TextRequiredFields } from '../../../__shared__';\nimport { EVENT, getCountryCode } from '../../../helpers';\n\nconst Account = () => {\n const {\n set,\n value: { locale, session = {} },\n } = useStore();\n const { translate } = useLocale();\n\n const [busy, setBusy] = useState(false);\n const [countries, setCountries] = useState({});\n const [form, setForm] = useState(session);\n const [formError, setFormError] = useState({});\n const [requiredFields, setRequiredFields] = useState();\n const [responseError, setResponseError] = useState();\n\n const formatDate = getDateFormat(locale);\n\n useEffect(() => {\n setResponseError();\n set({ profile: form });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [form]);\n\n useEffect(() => {\n (async () => {\n const next = (await ServiceCountry.list(locale)) || {};\n\n setCountries(next);\n setForm({ ...form, country: next[session.country] });\n })();\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [locale]);\n\n const handleSubmit = async (form) => {\n const hasErrors = Object.keys(formError).length !== 0;\n if (hasErrors) {\n window.scrollTo({ top: 0, behavior: 'smooth' });\n return setRequiredFields(formError);\n }\n\n setBusy(true);\n setRequiredFields();\n setResponseError(undefined);\n\n const parameters = {\n ...form,\n country: getCountryCode(form.country, countries),\n dateOfBirth: dateFormat(parseDate(form.dateOfBirth, formatDate), { format: 'DD/MM/YYYY' }),\n };\n\n const response = await ServiceUser.update(parameters).catch((error) => {\n setResponseError(error);\n });\n\n if (response) {\n Event.publish(EVENT.NOTIFICATION, { success: true, ...L10N.SUCCESS_ACCOUNT });\n set({ session: { ...session, ...parameters } });\n }\n setBusy(false);\n };\n\n const countryCode = getCountryCode(form.country, countries);\n const has = {\n changes: ACCOUNT_FIELDS.some((key) => form[key] !== session[key]) || countryCode !== session.country,\n dateOfBirth: form.dateOfBirth?.length,\n };\n const hasRequiredFields = Object.keys(requiredFields || {}).length > 0;\n\n return (\n <Form validateOnMount onChange={setForm} onError={setFormError} onSubmit={handleSubmit}>\n {hasRequiredFields && <NotificationRequiredFields form=\"account\" values={requiredFields} />}\n\n <Text wide>{translate(L10N.DESCRIPTION_ACCOUNT)}</Text>\n <TextRequiredFields />\n <InputText\n id=\"account-firstName\"\n name=\"firstName\"\n error={formError.firstName}\n label={translate(L10N.FIRSTNAME_LABEL)}\n required\n showRequired\n success={form.firstName !== session.firstName}\n value={form.firstName}\n />\n <InputText\n id=\"account-lastName\"\n name=\"lastName\"\n error={formError.lastName}\n label={translate(L10N.LASTNAME_LABEL)}\n required\n showRequired\n success={form.lastName !== session.lastName}\n value={form.lastName}\n />\n <InputText\n id=\"account-email\"\n name=\"email\"\n disabled\n label={translate(L10N.EMAIL_LABEL)}\n required\n showRequired\n type=\"email\"\n value={form.email}\n />\n <InputDate\n id=\"account-dateOfBirth\"\n name=\"dateOfBirth\"\n error={has.dateOfBirth && !!formError.dateOfBirth}\n hint={has.dateOfBirth && formError.dateOfBirth?.max ? translate(L10N.DATEOFBIRTH_ERROR) : undefined}\n format={formatDate}\n label={translate(L10N.DATEOFBIRTH_LABEL)}\n max={dateFormat(dateCalc(new Date(), -18, 'years'), { format: formatDate })}\n required\n showRequired\n success={form.dateOfBirth !== session.dateOfBirth}\n type=\"inputDate\"\n value={form.dateOfBirth}\n />\n <InputSelect\n id=\"account-country\"\n name=\"country\"\n label={translate(L10N.COUNTRY_LABEL)}\n placeholder={translate(L10N.COUNTRY_PLACEHOLDER)}\n options={Object.values(countries)}\n // required\n // showRequired\n success={countryCode !== session.country}\n value={form.country}\n />\n <InputOption\n name=\"subscribed\"\n checked={form.subscribed}\n type=\"checkbox\"\n label={translate(L10N.SUBSCRIBED_LABEL)}\n small\n value={form.subscribed}\n />\n\n {responseError && (\n <Notification error className={style.notification}>\n {translate(L10N.ERROR)}\n </Notification>\n )}\n\n <Button busy={busy} large wide onPress={handleSubmit}>\n {translate(L10N.CTA_ACCOUNT)}\n </Button>\n </Form>\n );\n};\n\nAccount.displayName = 'Mirai:Core:Profile:Account';\n\nAccount.propTypes = {};\n\nexport { Account };\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAC,uBAAA,CAAAL,OAAA;AAEA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