@mirai/core 0.3.170 → 0.3.173
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/Checkout/Checkout.js +3 -19
- package/build/components/Checkout/Checkout.js.map +1 -1
- package/build/components/Checkout/Checkout.module.css +0 -4
- package/build/components/Checkout/helpers/getFieldProps.js +0 -1
- package/build/components/Checkout/helpers/getFieldProps.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Confirmation.js +7 -11
- package/build/components/Checkout/partials/Checkout.Confirmation.js.map +1 -1
- package/build/components/Checkout/partials/Checkout.Form.js +2 -6
- package/build/components/Checkout/partials/Checkout.Form.js.map +1 -1
- package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +0 -44
- package/build/components/Profile/components/Settings/Settings.Account.js +8 -26
- package/build/components/Profile/components/Settings/Settings.Account.js.map +1 -1
- package/build/components/Profile/components/Settings/Settings.module.css +0 -4
- package/build/components/Signup/Signup.js +6 -24
- package/build/components/Signup/Signup.js.map +1 -1
- package/build/components/Signup/Signup.module.css +0 -4
- package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +9 -24
- package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +0 -12
- package/build/components/__shared__/Payment/components/Card/Card.js +0 -4
- 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 +0 -23
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js +0 -2
- package/build/components/__shared__/Payment/components/Card/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js +0 -2
- package/build/components/__shared__/Payment/components/PCI/helpers/formatValues.js.map +1 -1
- package/build/components/__shared__/Payment/helpers/index.js +0 -11
- package/build/components/__shared__/Payment/helpers/index.js.map +1 -1
- package/build/components/__shared__/index.js +0 -11
- package/build/components/__shared__/index.js.map +1 -1
- package/package.json +1 -1
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js +0 -52
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map +0 -1
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js +0 -62
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js.map +0 -1
- package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.module.css +0 -8
- package/build/components/__shared__/NotificationRequiredFields/index.js +0 -17
- package/build/components/__shared__/NotificationRequiredFields/index.js.map +0 -1
- package/build/components/__shared__/Payment/helpers/formatExpire.js +0 -15
- package/build/components/__shared__/Payment/helpers/formatExpire.js.map +0 -1
|
@@ -26,7 +26,6 @@ exports[`component:<Card> inherit:className 1`] = `
|
|
|
26
26
|
</span>
|
|
27
27
|
<input
|
|
28
28
|
class="input input withLabel"
|
|
29
|
-
id="checkout-card"
|
|
30
29
|
maxlength="19"
|
|
31
30
|
name="card"
|
|
32
31
|
placeholder="0000 0000 0000 0000"
|
|
@@ -58,7 +57,6 @@ exports[`component:<Card> inherit:className 1`] = `
|
|
|
58
57
|
</span>
|
|
59
58
|
<input
|
|
60
59
|
class="input input withLabel"
|
|
61
|
-
id="checkout-name"
|
|
62
60
|
maxlength="100"
|
|
63
61
|
minlength="3"
|
|
64
62
|
name="name"
|
|
@@ -90,7 +88,6 @@ exports[`component:<Card> inherit:className 1`] = `
|
|
|
90
88
|
</span>
|
|
91
89
|
<input
|
|
92
90
|
class="input input withLabel"
|
|
93
|
-
id="checkout-expire"
|
|
94
91
|
maxlength="5"
|
|
95
92
|
name="expire"
|
|
96
93
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -122,7 +119,6 @@ exports[`component:<Card> inherit:className 1`] = `
|
|
|
122
119
|
</span>
|
|
123
120
|
<input
|
|
124
121
|
class="input input withLabel"
|
|
125
|
-
id="checkout-CVV"
|
|
126
122
|
maxlength="3"
|
|
127
123
|
name="CVV"
|
|
128
124
|
placeholder="000"
|
|
@@ -163,7 +159,6 @@ exports[`component:<Card> prop:error 1`] = `
|
|
|
163
159
|
</span>
|
|
164
160
|
<input
|
|
165
161
|
class="input input withLabel"
|
|
166
|
-
id="checkout-card"
|
|
167
162
|
maxlength="19"
|
|
168
163
|
name="card"
|
|
169
164
|
placeholder="0000 0000 0000 0000"
|
|
@@ -221,7 +216,6 @@ exports[`component:<Card> prop:error 1`] = `
|
|
|
221
216
|
</span>
|
|
222
217
|
<input
|
|
223
218
|
class="input input withLabel"
|
|
224
|
-
id="checkout-name"
|
|
225
219
|
maxlength="100"
|
|
226
220
|
minlength="3"
|
|
227
221
|
name="name"
|
|
@@ -253,7 +247,6 @@ exports[`component:<Card> prop:error 1`] = `
|
|
|
253
247
|
</span>
|
|
254
248
|
<input
|
|
255
249
|
class="input input withLabel"
|
|
256
|
-
id="checkout-expire"
|
|
257
250
|
maxlength="5"
|
|
258
251
|
name="expire"
|
|
259
252
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -285,7 +278,6 @@ exports[`component:<Card> prop:error 1`] = `
|
|
|
285
278
|
</span>
|
|
286
279
|
<input
|
|
287
280
|
class="input input withLabel"
|
|
288
|
-
id="checkout-CVV"
|
|
289
281
|
maxlength="3"
|
|
290
282
|
name="CVV"
|
|
291
283
|
placeholder="000"
|
|
@@ -328,7 +320,6 @@ exports[`component:<Card> prop:showCVV 1`] = `
|
|
|
328
320
|
<input
|
|
329
321
|
class="input input withLabel"
|
|
330
322
|
data-testid="showCVV-card"
|
|
331
|
-
id="checkout-card"
|
|
332
323
|
maxlength="19"
|
|
333
324
|
name="card"
|
|
334
325
|
placeholder="0000 0000 0000 0000"
|
|
@@ -361,7 +352,6 @@ exports[`component:<Card> prop:showCVV 1`] = `
|
|
|
361
352
|
<input
|
|
362
353
|
class="input input withLabel"
|
|
363
354
|
data-testid="showCVV-name"
|
|
364
|
-
id="checkout-name"
|
|
365
355
|
maxlength="100"
|
|
366
356
|
minlength="3"
|
|
367
357
|
name="name"
|
|
@@ -394,7 +384,6 @@ exports[`component:<Card> prop:showCVV 1`] = `
|
|
|
394
384
|
<input
|
|
395
385
|
class="input input withLabel"
|
|
396
386
|
data-testid="showCVV-expire"
|
|
397
|
-
id="checkout-expire"
|
|
398
387
|
maxlength="5"
|
|
399
388
|
name="expire"
|
|
400
389
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -435,7 +424,6 @@ exports[`component:<Card> prop:showErrors 1`] = `
|
|
|
435
424
|
</span>
|
|
436
425
|
<input
|
|
437
426
|
class="input input withLabel"
|
|
438
|
-
id="checkout-card"
|
|
439
427
|
maxlength="19"
|
|
440
428
|
name="card"
|
|
441
429
|
placeholder="0000 0000 0000 0000"
|
|
@@ -488,7 +476,6 @@ exports[`component:<Card> prop:showErrors 1`] = `
|
|
|
488
476
|
</span>
|
|
489
477
|
<input
|
|
490
478
|
class="input input withLabel"
|
|
491
|
-
id="checkout-name"
|
|
492
479
|
maxlength="100"
|
|
493
480
|
minlength="3"
|
|
494
481
|
name="name"
|
|
@@ -541,7 +528,6 @@ exports[`component:<Card> prop:showErrors 1`] = `
|
|
|
541
528
|
</span>
|
|
542
529
|
<input
|
|
543
530
|
class="input input withLabel"
|
|
544
|
-
id="checkout-expire"
|
|
545
531
|
maxlength="5"
|
|
546
532
|
name="expire"
|
|
547
533
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -594,7 +580,6 @@ exports[`component:<Card> prop:showErrors 1`] = `
|
|
|
594
580
|
</span>
|
|
595
581
|
<input
|
|
596
582
|
class="input input withLabel"
|
|
597
|
-
id="checkout-CVV"
|
|
598
583
|
maxlength="3"
|
|
599
584
|
name="CVV"
|
|
600
585
|
placeholder="000"
|
|
@@ -656,7 +641,6 @@ exports[`component:<Card> renders 1`] = `
|
|
|
656
641
|
</span>
|
|
657
642
|
<input
|
|
658
643
|
class="input input withLabel"
|
|
659
|
-
id="checkout-card"
|
|
660
644
|
maxlength="19"
|
|
661
645
|
name="card"
|
|
662
646
|
placeholder="0000 0000 0000 0000"
|
|
@@ -688,7 +672,6 @@ exports[`component:<Card> renders 1`] = `
|
|
|
688
672
|
</span>
|
|
689
673
|
<input
|
|
690
674
|
class="input input withLabel"
|
|
691
|
-
id="checkout-name"
|
|
692
675
|
maxlength="100"
|
|
693
676
|
minlength="3"
|
|
694
677
|
name="name"
|
|
@@ -720,7 +703,6 @@ exports[`component:<Card> renders 1`] = `
|
|
|
720
703
|
</span>
|
|
721
704
|
<input
|
|
722
705
|
class="input input withLabel"
|
|
723
|
-
id="checkout-expire"
|
|
724
706
|
maxlength="5"
|
|
725
707
|
name="expire"
|
|
726
708
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -752,7 +734,6 @@ exports[`component:<Card> renders 1`] = `
|
|
|
752
734
|
</span>
|
|
753
735
|
<input
|
|
754
736
|
class="input input withLabel"
|
|
755
|
-
id="checkout-CVV"
|
|
756
737
|
maxlength="3"
|
|
757
738
|
name="CVV"
|
|
758
739
|
placeholder="000"
|
|
@@ -795,7 +776,6 @@ exports[`component:<Card> testID 1`] = `
|
|
|
795
776
|
<input
|
|
796
777
|
class="input input withLabel"
|
|
797
778
|
data-testid="mirai-card"
|
|
798
|
-
id="checkout-card"
|
|
799
779
|
maxlength="19"
|
|
800
780
|
name="card"
|
|
801
781
|
placeholder="0000 0000 0000 0000"
|
|
@@ -828,7 +808,6 @@ exports[`component:<Card> testID 1`] = `
|
|
|
828
808
|
<input
|
|
829
809
|
class="input input withLabel"
|
|
830
810
|
data-testid="mirai-name"
|
|
831
|
-
id="checkout-name"
|
|
832
811
|
maxlength="100"
|
|
833
812
|
minlength="3"
|
|
834
813
|
name="name"
|
|
@@ -861,7 +840,6 @@ exports[`component:<Card> testID 1`] = `
|
|
|
861
840
|
<input
|
|
862
841
|
class="input input withLabel"
|
|
863
842
|
data-testid="mirai-expire"
|
|
864
|
-
id="checkout-expire"
|
|
865
843
|
maxlength="5"
|
|
866
844
|
name="expire"
|
|
867
845
|
placeholder="payments.label.month_format/payments.label.year_format"
|
|
@@ -894,7 +872,6 @@ exports[`component:<Card> testID 1`] = `
|
|
|
894
872
|
<input
|
|
895
873
|
class="input input withLabel"
|
|
896
874
|
data-testid="mirai-CVV"
|
|
897
|
-
id="checkout-CVV"
|
|
898
875
|
maxlength="3"
|
|
899
876
|
name="CVV"
|
|
900
877
|
placeholder="000"
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.formatValues = void 0;
|
|
7
7
|
var _getCardConfig = require("./getCardConfig");
|
|
8
8
|
var _getCardType = require("./getCardType");
|
|
9
|
-
var _helpers = require("../../../helpers");
|
|
10
9
|
const PARSER = [/[^\d]/g, ''];
|
|
11
10
|
const formatValues = function () {
|
|
12
11
|
let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -18,7 +17,6 @@ const formatValues = function () {
|
|
|
18
17
|
} = values;
|
|
19
18
|
card = card.replace(...PARSER);
|
|
20
19
|
CVV = CVV.replace(...PARSER);
|
|
21
|
-
expire = (0, _helpers.formatExpire)(expire);
|
|
22
20
|
name = name.toUpperCase();
|
|
23
21
|
const {
|
|
24
22
|
placeholder = {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatValues.js","names":["_getCardConfig","require","_getCardType","
|
|
1
|
+
{"version":3,"file":"formatValues.js","names":["_getCardConfig","require","_getCardType","PARSER","formatValues","values","arguments","length","undefined","card","CVV","expire","name","replace","toUpperCase","placeholder","getCardConfig","cardArray","map","char","shift","join","trimEnd","type","getCardType","exports"],"sources":["../../../../../../../src/components/__shared__/Payment/components/Card/helpers/formatValues.js"],"sourcesContent":["import { getCardConfig } from './getCardConfig';\nimport { getCardType } from './getCardType';\n\nconst PARSER = [/[^\\d]/g, ''];\n\nexport const formatValues = (values = {}) => {\n let { card = '', CVV = '', expire = '', name = '' } = values;\n\n card = card.replace(...PARSER);\n CVV = CVV.replace(...PARSER);\n name = name.toUpperCase();\n\n const { placeholder = {} } = getCardConfig(card);\n const cardArray = card ? [...card] : [];\n card = [...placeholder.card]\n .map((char = '') => (char === ' ' ? char : cardArray.length >= 0 ? cardArray.shift() : ''))\n .join('')\n .trimEnd();\n\n return { card, CVV, expire, name, type: getCardType(card) };\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,MAAME,MAAM,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;AAEtB,MAAMC,YAAY,GAAG,SAAAA,CAAA,EAAiB;EAAA,IAAhBC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACtC,IAAI;IAAEG,IAAI,GAAG,EAAE;IAAEC,GAAG,GAAG,EAAE;IAAEC,MAAM,GAAG,EAAE;IAAEC,IAAI,GAAG;EAAG,CAAC,GAAGP,MAAM;EAE5DI,IAAI,GAAGA,IAAI,CAACI,OAAO,CAAC,GAAGV,MAAM,CAAC;EAC9BO,GAAG,GAAGA,GAAG,CAACG,OAAO,CAAC,GAAGV,MAAM,CAAC;EAC5BS,IAAI,GAAGA,IAAI,CAACE,WAAW,CAAC,CAAC;EAEzB,MAAM;IAAEC,WAAW,GAAG,CAAC;EAAE,CAAC,GAAG,IAAAC,4BAAa,EAACP,IAAI,CAAC;EAChD,MAAMQ,SAAS,GAAGR,IAAI,GAAG,CAAC,GAAGA,IAAI,CAAC,GAAG,EAAE;EACvCA,IAAI,GAAG,CAAC,GAAGM,WAAW,CAACN,IAAI,CAAC,CACzBS,GAAG,CAAC;IAAA,IAACC,IAAI,GAAAb,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;IAAA,OAAMa,IAAI,KAAK,GAAG,GAAGA,IAAI,GAAGF,SAAS,CAACV,MAAM,IAAI,CAAC,GAAGU,SAAS,CAACG,KAAK,CAAC,CAAC,GAAG,EAAE;EAAA,CAAC,CAAC,CAC1FC,IAAI,CAAC,EAAE,CAAC,CACRC,OAAO,CAAC,CAAC;EAEZ,OAAO;IAAEb,IAAI;IAAEC,GAAG;IAAEC,MAAM;IAAEC,IAAI;IAAEW,IAAI,EAAE,IAAAC,wBAAW,EAACf,IAAI;EAAE,CAAC;AAC7D,CAAC;AAACgB,OAAA,CAAArB,YAAA,GAAAA,YAAA"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.formatValues = void 0;
|
|
7
|
-
var _helpers = require("../../../helpers");
|
|
8
7
|
const PARSER = [/[^\d]/g, ''];
|
|
9
8
|
const SLASH = '/';
|
|
10
9
|
const formatValues = function () {
|
|
@@ -19,7 +18,6 @@ const formatValues = function () {
|
|
|
19
18
|
expire = "".concat(expire.substr(0, 2).replace(...PARSER)).concat(expire.substr(2, 1) ? SLASH : '').concat(expire.substr(3, 2).replace(...PARSER));
|
|
20
19
|
name = name.toUpperCase();
|
|
21
20
|
expire = expire.length === 2 ? expire.length > currentExpire.length ? "".concat(expire).concat(SLASH) : expire[0] : expire;
|
|
22
|
-
expire = (0, _helpers.formatExpire)(expire);
|
|
23
21
|
return {
|
|
24
22
|
expire,
|
|
25
23
|
name
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatValues.js","names":["
|
|
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":["const 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\n return { expire, name };\n};\n"],"mappings":";;;;;;AAAA,MAAMA,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;EAEhH,OAAO;IAAEA,MAAM;IAAEE;EAAK,CAAC;AACzB,CAAC;AAACK,OAAA,CAAAZ,YAAA,GAAAA,YAAA"}
|
|
@@ -3,17 +3,6 @@
|
|
|
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
|
-
});
|
|
17
6
|
var _getCaption = require("./getCaption");
|
|
18
7
|
Object.keys(_getCaption).forEach(function (key) {
|
|
19
8
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["_getCaption","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_getComponent","_getImage"],"sources":["../../../../../src/components/__shared__/Payment/helpers/index.js"],"sourcesContent":["export * from './getCaption';\nexport * from './getComponent';\nexport * from './getImage';\n"],"mappings":";;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,WAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,WAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,WAAA,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,SAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,SAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,SAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,SAAA,CAAAN,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -91,17 +91,6 @@ Object.keys(_FieldPromocode).forEach(function (key) {
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
|
-
var _NotificationRequiredFields = require("./NotificationRequiredFields");
|
|
95
|
-
Object.keys(_NotificationRequiredFields).forEach(function (key) {
|
|
96
|
-
if (key === "default" || key === "__esModule") return;
|
|
97
|
-
if (key in exports && exports[key] === _NotificationRequiredFields[key]) return;
|
|
98
|
-
Object.defineProperty(exports, key, {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () {
|
|
101
|
-
return _NotificationRequiredFields[key];
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
94
|
var _Occupation = require("./Occupation");
|
|
106
95
|
Object.keys(_Occupation).forEach(function (key) {
|
|
107
96
|
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","
|
|
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,G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A,IAAAgB,SAAA,GAAApB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAkB,SAAA,EAAAjB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAgB,SAAA,CAAAhB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAY,SAAA,CAAAhB,GAAA;IAAA;EAAA;AAAA;AACA,IAAAiB,mBAAA,GAAArB,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAmB,mBAAA,EAAAlB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAiB,mBAAA,CAAAjB,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAa,mBAAA,CAAAjB,GAAA;IAAA;EAAA;AAAA"}
|
package/package.json
CHANGED
package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.NotificationRequiredFields = void 0;
|
|
7
|
-
var _locale = require("@mirai/locale");
|
|
8
|
-
var _ui = require("@mirai/ui");
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _NotificationRequiredFields = require("./NotificationRequiredFields.l10n");
|
|
12
|
-
var style = _interopRequireWildcard(require("./NotificationRequiredFields.module.css"));
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
|
-
const NotificationRequiredFields = _ref => {
|
|
18
|
-
let {
|
|
19
|
-
form = 'form',
|
|
20
|
-
values = {},
|
|
21
|
-
...others
|
|
22
|
-
} = _ref;
|
|
23
|
-
const {
|
|
24
|
-
isMobile
|
|
25
|
-
} = (0, _ui.useDevice)();
|
|
26
|
-
const {
|
|
27
|
-
translate
|
|
28
|
-
} = (0, _locale.useLocale)();
|
|
29
|
-
return Object.keys(values).length ? /*#__PURE__*/_react.default.createElement(_ui.Notification, _extends({}, others, {
|
|
30
|
-
error: true,
|
|
31
|
-
small: isMobile,
|
|
32
|
-
wide: true
|
|
33
|
-
}), translate(_NotificationRequiredFields.L10N.NOTIFICATION_REQUIRED_FIELDS), /*#__PURE__*/_react.default.createElement(_ui.View, {
|
|
34
|
-
row: true,
|
|
35
|
-
wide: true,
|
|
36
|
-
className: style.fields
|
|
37
|
-
}, Object.keys(values).map(field => /*#__PURE__*/_react.default.createElement(_ui.Action, {
|
|
38
|
-
href: "#".concat(form, "-").concat(field),
|
|
39
|
-
inline: true,
|
|
40
|
-
key: field,
|
|
41
|
-
markdown: false,
|
|
42
|
-
underlined: true,
|
|
43
|
-
small: true
|
|
44
|
-
}, _NotificationRequiredFields.L10N["LABEL_".concat(field.toUpperCase())] ? translate(_NotificationRequiredFields.L10N["LABEL_".concat(field.toUpperCase())]) : field)))) : null;
|
|
45
|
-
};
|
|
46
|
-
exports.NotificationRequiredFields = NotificationRequiredFields;
|
|
47
|
-
NotificationRequiredFields.displayName = 'Mirai:Core:NotificationRequiredFields';
|
|
48
|
-
NotificationRequiredFields.propTypes = {
|
|
49
|
-
form: _propTypes.default.string,
|
|
50
|
-
values: _propTypes.default.shape({})
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=NotificationRequiredFields.js.map
|
package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationRequiredFields.js","names":["_locale","require","_ui","_propTypes","_interopRequireDefault","_react","_NotificationRequiredFields","style","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","obj","_extends","assign","bind","target","arguments","length","source","key","apply","NotificationRequiredFields","_ref","form","values","others","isMobile","useDevice","translate","useLocale","keys","createElement","Notification","error","small","wide","L10N","NOTIFICATION_REQUIRED_FIELDS","View","row","className","fields","map","field","Action","href","concat","inline","markdown","underlined","toUpperCase","exports","displayName","propTypes","PropTypes","string","shape"],"sources":["../../../../src/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.jsx"],"sourcesContent":["import { useLocale } from '@mirai/locale';\nimport { Action, Notification, useDevice, View } from '@mirai/ui';\nimport PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { L10N } from './NotificationRequiredFields.l10n';\nimport * as style from './NotificationRequiredFields.module.css';\n\nconst NotificationRequiredFields = ({ form = 'form', values = {}, ...others }) => {\n const { isMobile } = useDevice();\n const { translate } = useLocale();\n\n return Object.keys(values).length ? (\n <Notification {...others} error small={isMobile} wide>\n {translate(L10N.NOTIFICATION_REQUIRED_FIELDS)}\n <View row wide className={style.fields}>\n {Object.keys(values).map((field) => (\n <Action href={`#${form}-${field}`} inline key={field} markdown={false} underlined small>\n {L10N[`LABEL_${field.toUpperCase()}`] ? translate(L10N[`LABEL_${field.toUpperCase()}`]) : field}\n </Action>\n ))}\n </View>\n </Notification>\n ) : null;\n};\n\nNotificationRequiredFields.displayName = 'Mirai:Core:NotificationRequiredFields';\n\nNotificationRequiredFields.propTypes = {\n form: PropTypes.string,\n values: PropTypes.shape({}),\n};\n\nexport { NotificationRequiredFields };\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAEA,IAAAK,2BAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAC,uBAAA,CAAAP,OAAA;AAAiE,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI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,GAAG,uCAAuC;AAEhF/B,0BAA0B,CAACgC,SAAS,GAAG;EACrC9B,IAAI,EAAE+B,kBAAS,CAACC,MAAM;EACtB/B,MAAM,EAAE8B,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC;AAC5B,CAAC"}
|
package/build/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.L10N = void 0;
|
|
7
|
-
const L10N = exports.L10N = {
|
|
8
|
-
LABEL_CARD: {
|
|
9
|
-
id: 'payments.label.card_number'
|
|
10
|
-
},
|
|
11
|
-
LABEL_COUNTRY: {
|
|
12
|
-
id: 'common.label.country'
|
|
13
|
-
},
|
|
14
|
-
LABEL_CVV: {
|
|
15
|
-
id: 'payments.label.cvv'
|
|
16
|
-
},
|
|
17
|
-
LABEL_DATEOFBIRTH: {
|
|
18
|
-
id: 'user.label.date_of_birth',
|
|
19
|
-
defaultMessage: ' '
|
|
20
|
-
},
|
|
21
|
-
LABEL_DNI: {
|
|
22
|
-
id: 'common.label.id_card'
|
|
23
|
-
},
|
|
24
|
-
LABEL_EMAIL: {
|
|
25
|
-
id: 'common.label.email'
|
|
26
|
-
},
|
|
27
|
-
LABEL_EXPIRE: {
|
|
28
|
-
id: 'payments.label.expiration'
|
|
29
|
-
},
|
|
30
|
-
LABEL_FIRSTNAME: {
|
|
31
|
-
id: 'common.label.firstname'
|
|
32
|
-
},
|
|
33
|
-
LABEL_JOINCLUB: {
|
|
34
|
-
id: 'common.label.member_conditions'
|
|
35
|
-
},
|
|
36
|
-
LABEL_LASTNAME: {
|
|
37
|
-
id: 'common.label.lastname'
|
|
38
|
-
},
|
|
39
|
-
LABEL_NAME: {
|
|
40
|
-
id: 'payments.label.card_name'
|
|
41
|
-
},
|
|
42
|
-
LABEL_PASSWORD: {
|
|
43
|
-
id: 'common.label.password',
|
|
44
|
-
defaultMessage: ' '
|
|
45
|
-
},
|
|
46
|
-
LABEL_PHONE: {
|
|
47
|
-
id: 'common.label.phone'
|
|
48
|
-
},
|
|
49
|
-
LABEL_PRIVACY: {
|
|
50
|
-
id: 'common.label.privacy_policy'
|
|
51
|
-
},
|
|
52
|
-
LABEL_PRIVACYPOLICY: {
|
|
53
|
-
id: 'common.label.privacy_policy'
|
|
54
|
-
},
|
|
55
|
-
LABEL_SECONDLASTNAME: {
|
|
56
|
-
id: 'common.label.second_lastname'
|
|
57
|
-
},
|
|
58
|
-
NOTIFICATION_REQUIRED_FIELDS: {
|
|
59
|
-
id: 'user.notification.required_fields'
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=NotificationRequiredFields.l10n.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationRequiredFields.l10n.js","names":["L10N","exports","LABEL_CARD","id","LABEL_COUNTRY","LABEL_CVV","LABEL_DATEOFBIRTH","defaultMessage","LABEL_DNI","LABEL_EMAIL","LABEL_EXPIRE","LABEL_FIRSTNAME","LABEL_JOINCLUB","LABEL_LASTNAME","LABEL_NAME","LABEL_PASSWORD","LABEL_PHONE","LABEL_PRIVACY","LABEL_PRIVACYPOLICY","LABEL_SECONDLASTNAME","NOTIFICATION_REQUIRED_FIELDS"],"sources":["../../../../src/components/__shared__/NotificationRequiredFields/NotificationRequiredFields.l10n.js"],"sourcesContent":["export const L10N = {\n LABEL_CARD: { id: 'payments.label.card_number' },\n LABEL_COUNTRY: { id: 'common.label.country' },\n LABEL_CVV: { id: 'payments.label.cvv' },\n LABEL_DATEOFBIRTH: { id: 'user.label.date_of_birth', defaultMessage: ' ' },\n LABEL_DNI: { id: 'common.label.id_card' },\n LABEL_EMAIL: { id: 'common.label.email' },\n LABEL_EXPIRE: { id: 'payments.label.expiration' },\n LABEL_FIRSTNAME: { id: 'common.label.firstname' },\n LABEL_JOINCLUB: { id: 'common.label.member_conditions' },\n LABEL_LASTNAME: { id: 'common.label.lastname' },\n LABEL_NAME: { id: 'payments.label.card_name' },\n LABEL_PASSWORD: { id: 'common.label.password', defaultMessage: ' ' },\n LABEL_PHONE: { id: 'common.label.phone' },\n LABEL_PRIVACY: { id: 'common.label.privacy_policy' },\n LABEL_PRIVACYPOLICY: { id: 'common.label.privacy_policy' },\n LABEL_SECONDLASTNAME: { id: 'common.label.second_lastname' },\n\n NOTIFICATION_REQUIRED_FIELDS: { id: 'user.notification.required_fields' },\n};\n"],"mappings":";;;;;;AAAO,MAAMA,IAAI,GAAAC,OAAA,CAAAD,IAAA,GAAG;EAClBE,UAAU,EAAE;IAAEC,EAAE,EAAE;EAA6B,CAAC;EAChDC,aAAa,EAAE;IAAED,EAAE,EAAE;EAAuB,CAAC;EAC7CE,SAAS,EAAE;IAAEF,EAAE,EAAE;EAAqB,CAAC;EACvCG,iBAAiB,EAAE;IAAEH,EAAE,EAAE,0BAA0B;IAAEI,cAAc,EAAE;EAAI,CAAC;EAC1EC,SAAS,EAAE;IAAEL,EAAE,EAAE;EAAuB,CAAC;EACzCM,WAAW,EAAE;IAAEN,EAAE,EAAE;EAAqB,CAAC;EACzCO,YAAY,EAAE;IAAEP,EAAE,EAAE;EAA4B,CAAC;EACjDQ,eAAe,EAAE;IAAER,EAAE,EAAE;EAAyB,CAAC;EACjDS,cAAc,EAAE;IAAET,EAAE,EAAE;EAAiC,CAAC;EACxDU,cAAc,EAAE;IAAEV,EAAE,EAAE;EAAwB,CAAC;EAC/CW,UAAU,EAAE;IAAEX,EAAE,EAAE;EAA2B,CAAC;EAC9CY,cAAc,EAAE;IAAEZ,EAAE,EAAE,uBAAuB;IAAEI,cAAc,EAAE;EAAI,CAAC;EACpES,WAAW,EAAE;IAAEb,EAAE,EAAE;EAAqB,CAAC;EACzCc,aAAa,EAAE;IAAEd,EAAE,EAAE;EAA8B,CAAC;EACpDe,mBAAmB,EAAE;IAAEf,EAAE,EAAE;EAA8B,CAAC;EAC1DgB,oBAAoB,EAAE;IAAEhB,EAAE,EAAE;EAA+B,CAAC;EAE5DiB,4BAA4B,EAAE;IAAEjB,EAAE,EAAE;EAAoC;AAC1E,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _NotificationRequiredFields = require("./NotificationRequiredFields");
|
|
7
|
-
Object.keys(_NotificationRequiredFields).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _NotificationRequiredFields[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _NotificationRequiredFields[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_NotificationRequiredFields","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/__shared__/NotificationRequiredFields/index.js"],"sourcesContent":["export * from './NotificationRequiredFields';\n"],"mappings":";;;;;AAAA,IAAAA,2BAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,2BAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,2BAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,2BAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|