@taiga-ui/addon-commerce 3.36.2 → 3.37.0
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/bundles/taiga-ui-addon-commerce-enums.umd.js +272 -0
- package/bundles/taiga-ui-addon-commerce-enums.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-commerce-utils.umd.js +60 -0
- package/bundles/taiga-ui-addon-commerce-utils.umd.js.map +1 -1
- package/enums/currency-code.d.ts +137 -1
- package/enums/currency.d.ts +137 -1
- package/esm2015/enums/currency-code.js +137 -1
- package/esm2015/enums/currency.js +137 -1
- package/esm2015/utils/get-currency-by-code.js +16 -1
- package/esm2015/utils/get-currency-symbol.js +46 -1
- package/fesm2015/taiga-ui-addon-commerce-enums.js +272 -0
- package/fesm2015/taiga-ui-addon-commerce-enums.js.map +1 -1
- package/fesm2015/taiga-ui-addon-commerce-utils.js +60 -0
- package/fesm2015/taiga-ui-addon-commerce-utils.js.map +1 -1
- package/package.json +4 -4
|
@@ -218,6 +218,142 @@ var TuiCurrency;
|
|
|
218
218
|
* @description Currency symbol: Dh
|
|
219
219
|
*/
|
|
220
220
|
TuiCurrency["Dirham"] = "AED";
|
|
221
|
+
/**
|
|
222
|
+
* Tajikistani somoni
|
|
223
|
+
*
|
|
224
|
+
* @description Numeric code: 972
|
|
225
|
+
* @description Alphabetic code: TJS
|
|
226
|
+
* @description Countries and territories: Tajikistan
|
|
227
|
+
* @description Currency symbol: SM
|
|
228
|
+
*/
|
|
229
|
+
TuiCurrency["TajikistaniSomoni"] = "TJS";
|
|
230
|
+
/**
|
|
231
|
+
* Malaysian ringgit
|
|
232
|
+
*
|
|
233
|
+
* @description Numeric code: 458
|
|
234
|
+
* @description Alphabetic code: MYR
|
|
235
|
+
* @description Countries and territories: Malaysia
|
|
236
|
+
* @description Currency symbol: RM
|
|
237
|
+
*/
|
|
238
|
+
TuiCurrency["MalaysianRinggit"] = "MYR";
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* Belarusian ruble
|
|
242
|
+
*
|
|
243
|
+
* @description Numeric code: 933
|
|
244
|
+
* @description Alphabetic code: BYN
|
|
245
|
+
* @description Countries and territories: Belarus
|
|
246
|
+
* @description Currency symbol: Rbl
|
|
247
|
+
*/
|
|
248
|
+
TuiCurrency["BelarusianRuble"] = "BYN";
|
|
249
|
+
/**
|
|
250
|
+
* Georgian lari
|
|
251
|
+
*
|
|
252
|
+
* @description Numeric code: 981
|
|
253
|
+
* @description Alphabetic code: GEL
|
|
254
|
+
* @description Countries and territories: Georgia
|
|
255
|
+
* @description Currency symbol: ₾
|
|
256
|
+
*/
|
|
257
|
+
TuiCurrency["GeorgianLari"] = "GEL";
|
|
258
|
+
/**
|
|
259
|
+
* Azerbaijani manat
|
|
260
|
+
*
|
|
261
|
+
* @description Numeric code: 944
|
|
262
|
+
* @description Alphabetic code: AZN
|
|
263
|
+
* @description Countries and territories: Azerbaijan
|
|
264
|
+
* @description Currency symbol: ₼
|
|
265
|
+
*/
|
|
266
|
+
TuiCurrency["AzerbaijaniManat"] = "AZN";
|
|
267
|
+
/**
|
|
268
|
+
* Sri Lankan rupee
|
|
269
|
+
*
|
|
270
|
+
* @description Numeric code: 144
|
|
271
|
+
* @description Alphabetic code: LKR
|
|
272
|
+
* @description Countries and territories: Sri Lanka
|
|
273
|
+
* @description Currency symbol: Rs.
|
|
274
|
+
*/
|
|
275
|
+
TuiCurrency["SriLankanRupee"] = "LKR";
|
|
276
|
+
/**
|
|
277
|
+
* Serbian dinar
|
|
278
|
+
*
|
|
279
|
+
* @description Numeric code: 941
|
|
280
|
+
* @description Alphabetic code: RSD
|
|
281
|
+
* @description Countries and territories: Serbia
|
|
282
|
+
* @description Currency symbol: DIN
|
|
283
|
+
*/
|
|
284
|
+
TuiCurrency["SerbianDinar"] = "RSD";
|
|
285
|
+
/**
|
|
286
|
+
* Saudi Riyal
|
|
287
|
+
*
|
|
288
|
+
* @description Numeric code: 682
|
|
289
|
+
* @description Alphabetic code: SAR
|
|
290
|
+
* @description Countries and territories: Saudi Arabia
|
|
291
|
+
* @description Currency symbol: SR
|
|
292
|
+
*/
|
|
293
|
+
TuiCurrency["SaudiRiyal"] = "SAR";
|
|
294
|
+
/**
|
|
295
|
+
* Mongolian tugrik
|
|
296
|
+
*
|
|
297
|
+
* @description Numeric code: 496
|
|
298
|
+
* @description Alphabetic code: MNT
|
|
299
|
+
* @description Countries and territories: Mongolia
|
|
300
|
+
* @description Currency symbol: ₮
|
|
301
|
+
*/
|
|
302
|
+
TuiCurrency["MongolianTugrik"] = "MNT";
|
|
303
|
+
/**
|
|
304
|
+
* South African rand
|
|
305
|
+
*
|
|
306
|
+
* @description Numeric code: 710
|
|
307
|
+
* @description Alphabetic code: ZAR
|
|
308
|
+
* @description Countries and territories: South Africa
|
|
309
|
+
* @description Currency symbol: R
|
|
310
|
+
*/
|
|
311
|
+
TuiCurrency["SouthAfricanRand"] = "ZAR";
|
|
312
|
+
/**
|
|
313
|
+
* Iranian rial
|
|
314
|
+
*
|
|
315
|
+
* @description Numeric code: 364
|
|
316
|
+
* @description Alphabetic code: IRR
|
|
317
|
+
* @description Countries and territories: Iran
|
|
318
|
+
* @description Currency symbol: IR
|
|
319
|
+
*/
|
|
320
|
+
TuiCurrency["IranianRial"] = "IRR";
|
|
321
|
+
/**
|
|
322
|
+
* Indonesian rupiah
|
|
323
|
+
*
|
|
324
|
+
* @description Numeric code: 360
|
|
325
|
+
* @description Alphabetic code: IDR
|
|
326
|
+
* @description Countries and territories: Indonesia
|
|
327
|
+
* @description Currency symbol: Rp
|
|
328
|
+
*/
|
|
329
|
+
TuiCurrency["IndonesianRupiah"] = "IDR";
|
|
330
|
+
/**
|
|
331
|
+
* Vietnamese dong
|
|
332
|
+
*
|
|
333
|
+
* @description Numeric code: 704
|
|
334
|
+
* @description Alphabetic code: VND
|
|
335
|
+
* @description Countries and territories: Vietnam
|
|
336
|
+
* @description Currency symbol: đ
|
|
337
|
+
*/
|
|
338
|
+
TuiCurrency["VietnameseDong"] = "VND";
|
|
339
|
+
/**
|
|
340
|
+
* New Turkmen manat
|
|
341
|
+
*
|
|
342
|
+
* @description Numeric code: 934
|
|
343
|
+
* @description Alphabetic code: TMT
|
|
344
|
+
* @description Countries and territories: Turkmenistan
|
|
345
|
+
* @description Currency symbol: TMT
|
|
346
|
+
*/
|
|
347
|
+
TuiCurrency["NewTurkmenManat"] = "TMT";
|
|
348
|
+
/**
|
|
349
|
+
* Brazilian Real
|
|
350
|
+
*
|
|
351
|
+
* @description Numeric code: 986
|
|
352
|
+
* @description Alphabetic code: BRL
|
|
353
|
+
* @description Countries and territories: Brazilia
|
|
354
|
+
* @description Currency symbol: R$
|
|
355
|
+
*/
|
|
356
|
+
TuiCurrency["BrazilianReal"] = "BRL";
|
|
221
357
|
})(TuiCurrency || (TuiCurrency = {}));
|
|
222
358
|
|
|
223
359
|
/**
|
|
@@ -439,6 +575,142 @@ var TuiCurrencyCode;
|
|
|
439
575
|
* @description Currency symbol: Dh
|
|
440
576
|
*/
|
|
441
577
|
TuiCurrencyCode["Dirham"] = "784";
|
|
578
|
+
/**
|
|
579
|
+
* Tajikistani somoni
|
|
580
|
+
*
|
|
581
|
+
* @description Numeric code: 972
|
|
582
|
+
* @description Alphabetic code: TJS
|
|
583
|
+
* @description Countries and territories: Tajikistan
|
|
584
|
+
* @description Currency symbol: SM
|
|
585
|
+
*/
|
|
586
|
+
TuiCurrencyCode["TajikistaniSomoni"] = "972";
|
|
587
|
+
/**
|
|
588
|
+
* Malaysian ringgit
|
|
589
|
+
*
|
|
590
|
+
* @description Numeric code: 458
|
|
591
|
+
* @description Alphabetic code: MYR
|
|
592
|
+
* @description Countries and territories: Malaysia
|
|
593
|
+
* @description Currency symbol: RM
|
|
594
|
+
*/
|
|
595
|
+
TuiCurrencyCode["MalaysianRinggit"] = "458";
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* Belarusian ruble
|
|
599
|
+
*
|
|
600
|
+
* @description Numeric code: 933
|
|
601
|
+
* @description Alphabetic code: BYN
|
|
602
|
+
* @description Countries and territories: Belarus
|
|
603
|
+
* @description Currency symbol: Rbl
|
|
604
|
+
*/
|
|
605
|
+
TuiCurrencyCode["BelarusianRuble"] = "933";
|
|
606
|
+
/**
|
|
607
|
+
* Georgian lari
|
|
608
|
+
*
|
|
609
|
+
* @description Numeric code: 981
|
|
610
|
+
* @description Alphabetic code: GEL
|
|
611
|
+
* @description Countries and territories: Georgia
|
|
612
|
+
* @description Currency symbol: ₾
|
|
613
|
+
*/
|
|
614
|
+
TuiCurrencyCode["GeorgianLari"] = "981";
|
|
615
|
+
/**
|
|
616
|
+
* Azerbaijani manat
|
|
617
|
+
*
|
|
618
|
+
* @description Numeric code: 944
|
|
619
|
+
* @description Alphabetic code: AZN
|
|
620
|
+
* @description Countries and territories: Azerbaijan
|
|
621
|
+
* @description Currency symbol: ₼
|
|
622
|
+
*/
|
|
623
|
+
TuiCurrencyCode["AzerbaijaniManat"] = "944";
|
|
624
|
+
/**
|
|
625
|
+
* Sri Lankan rupee
|
|
626
|
+
*
|
|
627
|
+
* @description Numeric code: 144
|
|
628
|
+
* @description Alphabetic code: LKR
|
|
629
|
+
* @description Countries and territories: Sri Lanka
|
|
630
|
+
* @description Currency symbol: Rs.
|
|
631
|
+
*/
|
|
632
|
+
TuiCurrencyCode["SriLankanRupee"] = "144";
|
|
633
|
+
/**
|
|
634
|
+
* Serbian dinar
|
|
635
|
+
*
|
|
636
|
+
* @description Numeric code: 941
|
|
637
|
+
* @description Alphabetic code: RSD
|
|
638
|
+
* @description Countries and territories: Serbia
|
|
639
|
+
* @description Currency symbol: DIN
|
|
640
|
+
*/
|
|
641
|
+
TuiCurrencyCode["SerbianDinar"] = "941";
|
|
642
|
+
/**
|
|
643
|
+
* Saudi Riyal
|
|
644
|
+
*
|
|
645
|
+
* @description Numeric code: 682
|
|
646
|
+
* @description Alphabetic code: SAR
|
|
647
|
+
* @description Countries and territories: Saudi Arabia
|
|
648
|
+
* @description Currency symbol: SR
|
|
649
|
+
*/
|
|
650
|
+
TuiCurrencyCode["SaudiRiyal"] = "682";
|
|
651
|
+
/**
|
|
652
|
+
* Mongolian tugrik
|
|
653
|
+
*
|
|
654
|
+
* @description Numeric code: 496
|
|
655
|
+
* @description Alphabetic code: MNT
|
|
656
|
+
* @description Countries and territories: Mongolia
|
|
657
|
+
* @description Currency symbol: ₮
|
|
658
|
+
*/
|
|
659
|
+
TuiCurrencyCode["MongolianTugrik"] = "496";
|
|
660
|
+
/**
|
|
661
|
+
* South African rand
|
|
662
|
+
*
|
|
663
|
+
* @description Numeric code: 710
|
|
664
|
+
* @description Alphabetic code: ZAR
|
|
665
|
+
* @description Countries and territories: South Africa
|
|
666
|
+
* @description Currency symbol: R
|
|
667
|
+
*/
|
|
668
|
+
TuiCurrencyCode["SouthAfricanRand"] = "710";
|
|
669
|
+
/**
|
|
670
|
+
* Iranian rial
|
|
671
|
+
*
|
|
672
|
+
* @description Numeric code: 364
|
|
673
|
+
* @description Alphabetic code: IRR
|
|
674
|
+
* @description Countries and territories: Iran
|
|
675
|
+
* @description Currency symbol: IR
|
|
676
|
+
*/
|
|
677
|
+
TuiCurrencyCode["IranianRial"] = "364";
|
|
678
|
+
/**
|
|
679
|
+
* Indonesian rupiah
|
|
680
|
+
*
|
|
681
|
+
* @description Numeric code: 360
|
|
682
|
+
* @description Alphabetic code: IDR
|
|
683
|
+
* @description Countries and territories: Indonesia
|
|
684
|
+
* @description Currency symbol: Rp
|
|
685
|
+
*/
|
|
686
|
+
TuiCurrencyCode["IndonesianRupiah"] = "360";
|
|
687
|
+
/**
|
|
688
|
+
* Vietnamese dong
|
|
689
|
+
*
|
|
690
|
+
* @description Numeric code: 704
|
|
691
|
+
* @description Alphabetic code: VND
|
|
692
|
+
* @description Countries and territories: Vietnam
|
|
693
|
+
* @description Currency symbol: đ
|
|
694
|
+
*/
|
|
695
|
+
TuiCurrencyCode["VietnameseDong"] = "704";
|
|
696
|
+
/**
|
|
697
|
+
* New Turkmen manat
|
|
698
|
+
*
|
|
699
|
+
* @description Numeric code: 934
|
|
700
|
+
* @description Alphabetic code: TMT
|
|
701
|
+
* @description Countries and territories: Turkmenistan
|
|
702
|
+
* @description Currency symbol: TMT
|
|
703
|
+
*/
|
|
704
|
+
TuiCurrencyCode["NewTurkmenManat"] = "934";
|
|
705
|
+
/**
|
|
706
|
+
* Brazilian Real
|
|
707
|
+
*
|
|
708
|
+
* @description Numeric code: 986
|
|
709
|
+
* @description Alphabetic code: BRL
|
|
710
|
+
* @description Countries and territories: Brazilia
|
|
711
|
+
* @description Currency symbol: R$
|
|
712
|
+
*/
|
|
713
|
+
TuiCurrencyCode["BrazilianReal"] = "986";
|
|
442
714
|
})(TuiCurrencyCode || (TuiCurrencyCode = {}));
|
|
443
715
|
|
|
444
716
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-enums.js","sources":["../../../projects/addon-commerce/enums/currency.ts","../../../projects/addon-commerce/enums/currency-code.ts","../../../projects/addon-commerce/enums/taiga-ui-addon-commerce-enums.ts"],"sourcesContent":["// cspell:disable\n/**\n * **Active ISO 4217 alphabetic currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Alphabetic code is also called \"alfa-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\n// TODO: change type in v4.0\n// eslint-disable-next-line no-restricted-syntax\nexport enum TuiCurrency {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `RUB`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `EUR`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `USD`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `GBP`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `THB`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `TRY`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `CNY`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `KZT`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `ILS`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `INR`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `JPY`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `KRW`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `CHF`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `SGD`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `AUD`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `HKD`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `CAD`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `AMD`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `UAH`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `MXN`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `UZS`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `KGS`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `AED`,\n}\n","/**\n * **Active ISO 4217 numeric currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Numeric code is also called \"number-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\n// TODO: change type in v4.0\n// eslint-disable-next-line no-restricted-syntax\nexport enum TuiCurrencyCode {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `643`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `978`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `840`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `826`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `764`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `949`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `156`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `398`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `376`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `356`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `392`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `410`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `756`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `702`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `036`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `344`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `124`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `051`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `980`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `484`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `860`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `417`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `784`,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACA;;;;;;;AAOG;AACH;AACA;IACY,YAsOX;AAtOD,CAAA,UAAY,WAAW,EAAA;AACnB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,KAAY,CAAA;AAEZ;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,QAAA,CAAA,GAAA,KAAc,CAAA;AAEd;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,KAAY,CAAA;AAEZ;;;;;;;AAOG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KAAuB,CAAA;AAEvB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,kBAAA,CAAA,GAAA,KAAwB,CAAA;AAExB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,KAAsB,CAAA;AAEtB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,KAAsB,CAAA;AAEtB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,cAAA,CAAA,GAAA,KAAoB,CAAA;AAEpB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,SAAA,CAAA,GAAA,KAAe,CAAA;AAEf;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AAEnB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,KAAgB,CAAA;AAEhB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,eAAA,CAAA,GAAA,KAAqB,CAAA;AAErB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,QAAA,CAAA,GAAA,KAAc,CAAA;AAClB,CAAC,EAtOW,eAAe,KAAf,eAAe,GAsO1B,EAAA,CAAA,CAAA;;AChPD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-commerce-enums.js","sources":["../../../projects/addon-commerce/enums/currency.ts","../../../projects/addon-commerce/enums/currency-code.ts","../../../projects/addon-commerce/enums/taiga-ui-addon-commerce-enums.ts"],"sourcesContent":["// cspell:disable\n/**\n * **Active ISO 4217 alphabetic currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Alphabetic code is also called \"alfa-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\n// TODO: change type in v4.0\n// eslint-disable-next-line no-restricted-syntax\nexport enum TuiCurrency {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `RUB`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `EUR`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `USD`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `GBP`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `THB`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `TRY`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `CNY`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `KZT`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `ILS`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `INR`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `JPY`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `KRW`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `CHF`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `SGD`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `AUD`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `HKD`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `CAD`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `AMD`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `UAH`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `MXN`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `UZS`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `KGS`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `AED`,\n\n /**\n * Tajikistani somoni\n *\n * @description Numeric code: 972\n * @description Alphabetic code: TJS\n * @description Countries and territories: Tajikistan\n * @description Currency symbol: SM\n */\n TajikistaniSomoni = `TJS`,\n\n /**\n * Malaysian ringgit\n *\n * @description Numeric code: 458\n * @description Alphabetic code: MYR\n * @description Countries and territories: Malaysia\n * @description Currency symbol: RM\n */\n\n MalaysianRinggit = `MYR`,\n /**\n *\n * Belarusian ruble\n *\n * @description Numeric code: 933\n * @description Alphabetic code: BYN\n * @description Countries and territories: Belarus\n * @description Currency symbol: Rbl\n */\n\n BelarusianRuble = `BYN`,\n /**\n * Georgian lari\n *\n * @description Numeric code: 981\n * @description Alphabetic code: GEL\n * @description Countries and territories: Georgia\n * @description Currency symbol: ₾\n */\n\n GeorgianLari = `GEL`,\n /**\n * Azerbaijani manat\n *\n * @description Numeric code: 944\n * @description Alphabetic code: AZN\n * @description Countries and territories: Azerbaijan\n * @description Currency symbol: ₼\n */\n\n AzerbaijaniManat = `AZN`,\n /**\n * Sri Lankan rupee\n *\n * @description Numeric code: 144\n * @description Alphabetic code: LKR\n * @description Countries and territories: Sri Lanka\n * @description Currency symbol: Rs.\n */\n\n SriLankanRupee = `LKR`,\n /**\n * Serbian dinar\n *\n * @description Numeric code: 941\n * @description Alphabetic code: RSD\n * @description Countries and territories: Serbia\n * @description Currency symbol: DIN\n */\n\n SerbianDinar = `RSD`,\n /**\n * Saudi Riyal\n *\n * @description Numeric code: 682\n * @description Alphabetic code: SAR\n * @description Countries and territories: Saudi Arabia\n * @description Currency symbol: SR\n */\n\n SaudiRiyal = `SAR`,\n /**\n * Mongolian tugrik\n *\n * @description Numeric code: 496\n * @description Alphabetic code: MNT\n * @description Countries and territories: Mongolia\n * @description Currency symbol: ₮\n */\n\n MongolianTugrik = `MNT`,\n /**\n * South African rand\n *\n * @description Numeric code: 710\n * @description Alphabetic code: ZAR\n * @description Countries and territories: South Africa\n * @description Currency symbol: R\n */\n\n SouthAfricanRand = `ZAR`,\n /**\n * Iranian rial\n *\n * @description Numeric code: 364\n * @description Alphabetic code: IRR\n * @description Countries and territories: Iran\n * @description Currency symbol: IR\n */\n\n IranianRial = `IRR`,\n /**\n * Indonesian rupiah\n *\n * @description Numeric code: 360\n * @description Alphabetic code: IDR\n * @description Countries and territories: Indonesia\n * @description Currency symbol: Rp\n */\n\n IndonesianRupiah = `IDR`,\n /**\n * Vietnamese dong\n *\n * @description Numeric code: 704\n * @description Alphabetic code: VND\n * @description Countries and territories: Vietnam\n * @description Currency symbol: đ\n */\n\n VietnameseDong = `VND`,\n /**\n * New Turkmen manat\n *\n * @description Numeric code: 934\n * @description Alphabetic code: TMT\n * @description Countries and territories: Turkmenistan\n * @description Currency symbol: TMT\n */\n\n NewTurkmenManat = `TMT`,\n /**\n * Brazilian Real\n *\n * @description Numeric code: 986\n * @description Alphabetic code: BRL\n * @description Countries and territories: Brazilia\n * @description Currency symbol: R$\n */\n BrazilianReal = `BRL`,\n}\n","/**\n * **Active ISO 4217 numeric currency codes**\n *\n * @description The ISO 4217 classification is used to describe alphabetic and numeric currency codes.\n * @description Numeric code is also called \"number-3\".\n *\n * @link https://en.wikipedia.org/wiki/ISO_4217\n */\n// TODO: change type in v4.0\n// eslint-disable-next-line no-restricted-syntax\nexport enum TuiCurrencyCode {\n /**\n * Russian ruble\n *\n * @description Numeric code: 643\n * @description Alphabetic code: RUB\n * @description Countries and territories: Russia\n * @description Currency symbol: ₽\n */\n Ruble = `643`,\n\n /**\n * Euro\n *\n * @description Numeric code: 978\n * @description Alphabetic code: EUR\n * @description Countries and territories: Åland Islands (AX), European Union (EU), Andorra (AD), Austria (AT), Belgium (BE), Cyprus (CY), Estonia (EE), Finland (FI), France (FR), French Southern and Antarctic Lands (TF), Germany (DE), Greece (GR), Guadeloupe (GP), Ireland (IE), Italy (IT), Latvia (LV), Lithuania (LT), Luxembourg (LU), Malta (MT), French Guiana (GF), Martinique (MQ), Mayotte (YT), Monaco (MC), Montenegro (ME), Netherlands (NL), Portugal (PT), Réunion (RE), Saint Barthélemy (BL), Saint Martin (MF), Saint Pierre and Miquelon (PM), San Marino (SM), Slovakia (SK), Slovenia (SI), Spain (ES), Vatican City (VA)\n * @description Currency symbol: €\n */\n Euro = `978`,\n\n /**\n * United States dollar\n *\n * @description Numeric code: 840\n * @description Alphabetic code: USD\n * @description Countries and territories: United States, American Samoa (AS), British Indian Ocean Territory (IO) (also uses GBP), British Virgin Islands (VG), Caribbean Netherlands (BQ – Bonaire, Sint Eustatius and Saba), Ecuador (EC), El Salvador (SV), Guam (GU), Marshall Islands (MH), Federated States of Micronesia (FM), Northern Mariana Islands (MP), Palau (PW), Panama (PA) (as well as Panamanian Balboa), Puerto Rico (PR), Timor-Leste (TL), Turks and Caicos Islands (TC), U.S. Virgin Islands (VI), United States Minor Outlying Islands (UM)\n * @description Currency symbol: $\n */\n Dollar = `840`,\n\n /**\n * Pound sterling\n *\n * @description Numeric code: 826\n * @description Alphabetic code: GBP\n * @description Countries and territories: United Kingdom, Isle of Man (IM, see Manx pound), Jersey (JE, see Jersey pound), Guernsey (GG, see Guernsey pound), Tristan da Cunha (SH-TA)\n * @description Currency symbol: £\n */\n Pound = `826`,\n\n /**\n * Thai baht\n *\n * @description Numeric code: 764\n * @description Alphabetic code: THB\n * @description Countries and territories: Thailand\n * @description Currency symbol: ฿\n */\n Baht = `764`,\n\n /**\n * Turkish lira\n *\n * @description Numeric code: 949\n * @description Alphabetic code: TRY\n * @description Countries and territories: Turkey\n * @description Currency symbol: ₺\n */\n TurkishLira = `949`,\n\n /**\n * Chinese yuan\n *\n * @description Numeric code: 156\n * @description Alphabetic code: CNY\n * @description Countries and territories: China\n * @description Currency symbol: CN¥\n */\n YuanRenminbi = `156`,\n\n /**\n * Kazakhstani tenge\n *\n * @description Numeric code: 398\n * @description Alphabetic code: KZT\n * @description Countries and territories: Kazakhstan\n * @description Currency symbol: ₸\n */\n Tenge = `398`,\n\n /**\n * Israeli new shekel\n *\n * @description Numeric code: 376\n * @description Alphabetic code: ILS\n * @description Countries and territories: Israel\n * @description Currency symbol: ₪\n */\n IsraeliShekel = `376`,\n\n /**\n * Indian rupee\n *\n * @description Numeric code: 356\n * @description Alphabetic code: INR\n * @description Countries and territories: India, Bhutan\n * @description Currency symbol: ₹\n */\n IndianRupee = `356`,\n\n /**\n * Japanese yen\n *\n * @description Numeric code: 392\n * @description Alphabetic code: JPY\n * @description Countries and territories: Japan\n * @description Currency symbol: ¥\n */\n Yen = `392`,\n\n /**\n * South Korean won\n *\n * @description Numeric code: 410\n * @description Alphabetic code: KRW\n * @description Countries and territories: South Korea\n * @description Currency symbol: ₩\n */\n Won = `410`,\n\n /**\n * Swiss franc\n *\n * @description Numeric code: 756\n * @description Alphabetic code: CHF\n * @description Countries and territories: Switzerland, Liechtenstein (LI)\n * @description Currency symbol: ₣\n */\n SwissFranc = `756`,\n\n /**\n * Singapore dollar\n *\n * @description Numeric code: 702\n * @description Alphabetic code: SGD\n * @description Countries and territories: Singapore\n * @description Currency symbol: S$\n */\n SingaporeDollar = `702`,\n\n /**\n * Australian dollar\n *\n * @description Numeric code: 036\n * @description Alphabetic code: AUD\n * @description Countries and territories: Australia, Christmas Island (CX), Cocos (Keeling) Islands (CC), Heard Island and McDonald Islands (HM), Kiribati (KI), Nauru (NR), Norfolk Island (NF), Tuvalu (TV)\n * @description Currency symbol: A$\n */\n AustralianDollar = `036`,\n\n /**\n * Hong Kong dollar\n *\n * @description Numeric code: 344\n * @description Alphabetic code: HKD\n * @description Countries and territories: Hong Kong\n * @description Currency symbol: HK$\n */\n HongKongDollar = `344`,\n\n /**\n * Canadian dollar\n *\n * @description Numeric code: 124\n * @description Alphabetic code: CAD\n * @description Countries and territories: Canada\n * @description Currency symbol: C$\n */\n CanadianDollar = `124`,\n\n /**\n * Armenian dram\n *\n * @description Numeric code: 051\n * @description Alphabetic code: AMD\n * @description Countries and territories: Armenia\n * @description Currency symbol: ֏\n */\n ArmenianDram = `051`,\n\n /**\n * Ukrainian hryvnia\n *\n * @description Numeric code: 980\n * @description Alphabetic code: UAH\n * @description Countries and territories: Ukraine\n * @description Currency symbol: ₴\n */\n Hryvnia = `980`,\n\n /**\n * Mexican peso\n *\n * @description Numeric code: 484\n * @description Alphabetic code: MXN\n * @description Countries and territories: Mexico\n * @description Currency symbol: $\n */\n MexicanPeso = `484`,\n\n /**\n * Uzbek sum\n *\n * @description Numeric code: 860\n * @description Alphabetic code: UZS\n * @description Countries and territories: Uzbekistan\n * @description Currency symbol: So'm\n */\n UzbekSum = `860`,\n\n /**\n * Kyrgyzstani som\n *\n * @description Numeric code: 417\n * @description Alphabetic code: KGS\n * @description Countries and territories: Kyrgyzstan\n * @description Currency symbol: c\n */\n KyrgyzstanSom = `417`,\n\n /**\n * United Arab Emirates dirham\n *\n * @description Numeric code: 784\n * @description Alphabetic code: AED\n * @description Countries and territories: United Arab Emirates\n * @description Currency symbol: Dh\n */\n Dirham = `784`,\n\n /**\n * Tajikistani somoni\n *\n * @description Numeric code: 972\n * @description Alphabetic code: TJS\n * @description Countries and territories: Tajikistan\n * @description Currency symbol: SM\n */\n TajikistaniSomoni = `972`,\n\n /**\n * Malaysian ringgit\n *\n * @description Numeric code: 458\n * @description Alphabetic code: MYR\n * @description Countries and territories: Malaysia\n * @description Currency symbol: RM\n */\n\n MalaysianRinggit = `458`,\n /**\n *\n * Belarusian ruble\n *\n * @description Numeric code: 933\n * @description Alphabetic code: BYN\n * @description Countries and territories: Belarus\n * @description Currency symbol: Rbl\n */\n\n BelarusianRuble = `933`,\n /**\n * Georgian lari\n *\n * @description Numeric code: 981\n * @description Alphabetic code: GEL\n * @description Countries and territories: Georgia\n * @description Currency symbol: ₾\n */\n\n GeorgianLari = `981`,\n /**\n * Azerbaijani manat\n *\n * @description Numeric code: 944\n * @description Alphabetic code: AZN\n * @description Countries and territories: Azerbaijan\n * @description Currency symbol: ₼\n */\n\n AzerbaijaniManat = `944`,\n /**\n * Sri Lankan rupee\n *\n * @description Numeric code: 144\n * @description Alphabetic code: LKR\n * @description Countries and territories: Sri Lanka\n * @description Currency symbol: Rs.\n */\n\n SriLankanRupee = `144`,\n /**\n * Serbian dinar\n *\n * @description Numeric code: 941\n * @description Alphabetic code: RSD\n * @description Countries and territories: Serbia\n * @description Currency symbol: DIN\n */\n\n SerbianDinar = `941`,\n /**\n * Saudi Riyal\n *\n * @description Numeric code: 682\n * @description Alphabetic code: SAR\n * @description Countries and territories: Saudi Arabia\n * @description Currency symbol: SR\n */\n\n SaudiRiyal = `682`,\n /**\n * Mongolian tugrik\n *\n * @description Numeric code: 496\n * @description Alphabetic code: MNT\n * @description Countries and territories: Mongolia\n * @description Currency symbol: ₮\n */\n\n MongolianTugrik = `496`,\n /**\n * South African rand\n *\n * @description Numeric code: 710\n * @description Alphabetic code: ZAR\n * @description Countries and territories: South Africa\n * @description Currency symbol: R\n */\n\n SouthAfricanRand = `710`,\n /**\n * Iranian rial\n *\n * @description Numeric code: 364\n * @description Alphabetic code: IRR\n * @description Countries and territories: Iran\n * @description Currency symbol: IR\n */\n\n IranianRial = `364`,\n /**\n * Indonesian rupiah\n *\n * @description Numeric code: 360\n * @description Alphabetic code: IDR\n * @description Countries and territories: Indonesia\n * @description Currency symbol: Rp\n */\n\n IndonesianRupiah = `360`,\n /**\n * Vietnamese dong\n *\n * @description Numeric code: 704\n * @description Alphabetic code: VND\n * @description Countries and territories: Vietnam\n * @description Currency symbol: đ\n */\n\n VietnameseDong = `704`,\n /**\n * New Turkmen manat\n *\n * @description Numeric code: 934\n * @description Alphabetic code: TMT\n * @description Countries and territories: Turkmenistan\n * @description Currency symbol: TMT\n */\n\n NewTurkmenManat = `934`,\n /**\n * Brazilian Real\n *\n * @description Numeric code: 986\n * @description Alphabetic code: BRL\n * @description Countries and territories: Brazilia\n * @description Currency symbol: R$\n */\n BrazilianReal = `986`,\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AACA;;;;;;;AAOG;AACH;AACA;IACY,YA6XX;AA7XD,CAAA,UAAY,WAAW,EAAA;AACnB;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,OAAA,CAAA,GAAA,KAAa,CAAA;AAEb;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,MAAA,CAAA,GAAA,KAAY,CAAA;AAEZ;;;;;;;AAOG;AACH,IAAA,WAAA,CAAA,QAAA,CAAA,GAAA,KAAc,CAAA;AAEd;;;;;;;AAOG;AACH,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AAA,KAAoB,CAAA;AACpB;;;;;;;AAOG;AAEH,IAAA,eAAA,CAAA,YAAA,CAAA,GAAA,KAAkB,CAAA;AAClB;;;;;;;AAOG;AAEH,IAAA,eAAA,CAAA,iBAAA,CAAA,GAAA,KAAuB,CAAA;AACvB;;;;;;;AAOG;AAEH,IAAA,eAAA,CAAA,kBAAA,CAAA,GAAA,KAAwB,CAAA;AACxB;;;;;;;AAOG;AAEH,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,KAAmB,CAAA;AACnB;;;;;;;AAOG;AAEH,IAAA,eAAA,CAAA,kBAAA,CAAA,GAAA,KAAwB,CAAA;AACxB;;;;;;;AAOG;AAEH,IAAA,eAAA,CAAA,gBAAA,CAAA,GAAA,KAAsB,CAAA;AACtB;;;;;;;AAOG;AAEH,IAAA,eAAA,CAAA,iBAAA,CAAA,GAAA,KAAuB,CAAA;AACvB;;;;;;;AAOG;AACH,IAAA,eAAA,CAAA,eAAA,CAAA,GAAA,KAAqB,CAAA;AACzB,CAAC,EA7XW,eAAe,KAAf,eAAe,GA6X1B,EAAA,CAAA,CAAA;;ACvYD;;AAEG;;;;"}
|
|
@@ -114,6 +114,51 @@ function tuiGetCurrencySymbol(currency) {
|
|
|
114
114
|
case TuiCurrency.Dirham:
|
|
115
115
|
case TuiCurrencyCode.Dirham:
|
|
116
116
|
return `Dh`;
|
|
117
|
+
case TuiCurrency.TajikistaniSomoni:
|
|
118
|
+
case TuiCurrencyCode.TajikistaniSomoni:
|
|
119
|
+
return `SM`;
|
|
120
|
+
case TuiCurrency.MalaysianRinggit:
|
|
121
|
+
case TuiCurrencyCode.MalaysianRinggit:
|
|
122
|
+
return `RM`;
|
|
123
|
+
case TuiCurrency.BelarusianRuble:
|
|
124
|
+
case TuiCurrencyCode.BelarusianRuble:
|
|
125
|
+
return `Rbl`;
|
|
126
|
+
case TuiCurrency.GeorgianLari:
|
|
127
|
+
case TuiCurrencyCode.GeorgianLari:
|
|
128
|
+
return `₾`;
|
|
129
|
+
case TuiCurrency.AzerbaijaniManat:
|
|
130
|
+
case TuiCurrencyCode.AzerbaijaniManat:
|
|
131
|
+
return `₼`;
|
|
132
|
+
case TuiCurrency.SriLankanRupee:
|
|
133
|
+
case TuiCurrencyCode.SriLankanRupee:
|
|
134
|
+
return `Rs.`;
|
|
135
|
+
case TuiCurrency.SerbianDinar:
|
|
136
|
+
case TuiCurrencyCode.SerbianDinar:
|
|
137
|
+
return `DIN`;
|
|
138
|
+
case TuiCurrency.SaudiRiyal:
|
|
139
|
+
case TuiCurrencyCode.SaudiRiyal:
|
|
140
|
+
return `SR`;
|
|
141
|
+
case TuiCurrency.MongolianTugrik:
|
|
142
|
+
case TuiCurrencyCode.MongolianTugrik:
|
|
143
|
+
return `₮`;
|
|
144
|
+
case TuiCurrency.SouthAfricanRand:
|
|
145
|
+
case TuiCurrencyCode.SouthAfricanRand:
|
|
146
|
+
return `R`;
|
|
147
|
+
case TuiCurrency.IranianRial:
|
|
148
|
+
case TuiCurrencyCode.IranianRial:
|
|
149
|
+
return `IR`;
|
|
150
|
+
case TuiCurrency.IndonesianRupiah:
|
|
151
|
+
case TuiCurrencyCode.IndonesianRupiah:
|
|
152
|
+
return `Rp`;
|
|
153
|
+
case TuiCurrency.VietnameseDong:
|
|
154
|
+
case TuiCurrencyCode.VietnameseDong:
|
|
155
|
+
return `đ`;
|
|
156
|
+
case TuiCurrency.NewTurkmenManat:
|
|
157
|
+
case TuiCurrencyCode.NewTurkmenManat:
|
|
158
|
+
return `TMT`;
|
|
159
|
+
case TuiCurrency.BrazilianReal:
|
|
160
|
+
case TuiCurrencyCode.BrazilianReal:
|
|
161
|
+
return `R$`;
|
|
117
162
|
default:
|
|
118
163
|
return null;
|
|
119
164
|
}
|
|
@@ -156,6 +201,21 @@ const TUI_CURRENCY_DICTIONARY = {
|
|
|
156
201
|
[TuiCurrencyCode.UzbekSum]: TuiCurrency.UzbekSum,
|
|
157
202
|
[TuiCurrencyCode.KyrgyzstanSom]: TuiCurrency.KyrgyzstanSom,
|
|
158
203
|
[TuiCurrencyCode.Dirham]: TuiCurrency.Dirham,
|
|
204
|
+
[TuiCurrencyCode.TajikistaniSomoni]: TuiCurrency.TajikistaniSomoni,
|
|
205
|
+
[TuiCurrencyCode.MalaysianRinggit]: TuiCurrency.MalaysianRinggit,
|
|
206
|
+
[TuiCurrencyCode.BelarusianRuble]: TuiCurrency.BelarusianRuble,
|
|
207
|
+
[TuiCurrencyCode.GeorgianLari]: TuiCurrency.GeorgianLari,
|
|
208
|
+
[TuiCurrencyCode.AzerbaijaniManat]: TuiCurrency.AzerbaijaniManat,
|
|
209
|
+
[TuiCurrencyCode.SriLankanRupee]: TuiCurrency.SriLankanRupee,
|
|
210
|
+
[TuiCurrencyCode.SerbianDinar]: TuiCurrency.SerbianDinar,
|
|
211
|
+
[TuiCurrencyCode.SaudiRiyal]: TuiCurrency.SaudiRiyal,
|
|
212
|
+
[TuiCurrencyCode.MongolianTugrik]: TuiCurrency.MongolianTugrik,
|
|
213
|
+
[TuiCurrencyCode.SouthAfricanRand]: TuiCurrency.SouthAfricanRand,
|
|
214
|
+
[TuiCurrencyCode.IranianRial]: TuiCurrency.IranianRial,
|
|
215
|
+
[TuiCurrencyCode.IndonesianRupiah]: TuiCurrency.IndonesianRupiah,
|
|
216
|
+
[TuiCurrencyCode.VietnameseDong]: TuiCurrency.VietnameseDong,
|
|
217
|
+
[TuiCurrencyCode.NewTurkmenManat]: TuiCurrency.NewTurkmenManat,
|
|
218
|
+
[TuiCurrencyCode.BrazilianReal]: TuiCurrency.BrazilianReal,
|
|
159
219
|
};
|
|
160
220
|
function tuiGetCurrencyByCode(currency) {
|
|
161
221
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-commerce-utils.js","sources":["../../../projects/addon-commerce/utils/create-auto-corrected-expire-pipe.ts","../../../projects/addon-commerce/utils/get-currency-symbol.ts","../../../projects/addon-commerce/utils/format-currency.ts","../../../projects/addon-commerce/utils/get-currency-by-code.ts","../../../projects/addon-commerce/utils/get-payment-system.ts","../../../projects/addon-commerce/utils/is-card-length-valid.ts","../../../projects/addon-commerce/utils/is-card-number-valid.ts","../../../projects/addon-commerce/utils/is-expire-valid.ts","../../../projects/addon-commerce/utils/payment-system-icons.ts","../../../projects/addon-commerce/utils/taiga-ui-addon-commerce-utils.ts"],"sourcesContent":["import {TUI_NON_DIGIT_REGEXP, TuiTextMaskPipeHandler} from '@taiga-ui/core';\n\nconst TUI_EXP_YEAR_MONTH = /^\\d{2}[/|.]\\d{4}$/;\nconst TUI_EXP_SAFARI = /^\\d{1,4}.\\d{1,2}.\\d{1,4}$/;\n\n/**\n * @deprecated Use {@link https://tinkoff.github.io/maskito/kit/date Date} from {@link https://github.com/Tinkoff/maskito Maskito} instead\n * TODO: delete in v4.0\n * Correct expiration date text allowing only valid months\n * @internal\n *\n * @returns MM/YY\n */\nexport function tuiCreateAutoCorrectedExpirePipe(): TuiTextMaskPipeHandler {\n return (conformedValue, {rawValue}) => {\n // Autofilled with MM/YYYY format\n if (TUI_EXP_YEAR_MONTH.test(rawValue)) {\n conformedValue = `${rawValue.slice(0, 2)}/${rawValue.slice(5)}`;\n }\n\n // Autofilled with Safari crazy format\n if (\n rawValue.length > 7 &&\n rawValue.length < 11 &&\n TUI_EXP_SAFARI.test(rawValue)\n ) {\n const array = rawValue.split(TUI_NON_DIGIT_REGEXP);\n\n // TODO: investigate why the month is sometimes more than 2-length in safari\n const month = array[1].slice(2);\n const year = array.find(({length}) => length === 4);\n\n conformedValue = `${`0`.repeat(2 - month.length)}${month}/${\n year ? year.slice(2) : ``\n }`;\n }\n\n const indexesOfPipedChars: number[] = [];\n const conformedValueArr = conformedValue.split(``);\n\n if (parseInt(conformedValueArr[0], 10) > 1) {\n conformedValueArr[2] = `/`;\n conformedValueArr[1] = conformedValueArr[0];\n conformedValueArr[0] = `0`;\n indexesOfPipedChars.push(0);\n }\n\n return {\n value: conformedValueArr.join(``),\n indexesOfPipedChars,\n };\n };\n}\n","import {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums';\nimport {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\n\n// eslint-disable-next-line complexity\nexport function tuiGetCurrencySymbol(currency: TuiCurrencyVariants): string | null {\n switch (currency) {\n case TuiCurrency.Ruble:\n case TuiCurrencyCode.Ruble:\n return `₽`;\n case TuiCurrency.Dollar:\n case TuiCurrencyCode.Dollar:\n case TuiCurrency.MexicanPeso:\n case TuiCurrencyCode.MexicanPeso:\n return `$`;\n case TuiCurrency.SingaporeDollar:\n case TuiCurrencyCode.SingaporeDollar:\n return `S$`;\n case TuiCurrency.AustralianDollar:\n case TuiCurrencyCode.AustralianDollar:\n return `A$`;\n case TuiCurrency.HongKongDollar:\n case TuiCurrencyCode.HongKongDollar:\n return `HK$`;\n case TuiCurrency.CanadianDollar:\n case TuiCurrencyCode.CanadianDollar:\n return `C$`;\n case TuiCurrency.Euro:\n case TuiCurrencyCode.Euro:\n return `€`;\n case TuiCurrency.Pound:\n case TuiCurrencyCode.Pound:\n return `£`;\n case TuiCurrency.Baht:\n case TuiCurrencyCode.Baht:\n return `฿`;\n case TuiCurrency.TurkishLira:\n case TuiCurrencyCode.TurkishLira:\n return `₺`;\n case TuiCurrency.YuanRenminbi:\n case TuiCurrencyCode.YuanRenminbi:\n return `CN¥`;\n case TuiCurrency.Yen:\n case TuiCurrencyCode.Yen:\n return `¥`;\n case TuiCurrency.IsraeliShekel:\n case TuiCurrencyCode.IsraeliShekel:\n return `₪`;\n case TuiCurrency.IndianRupee:\n case TuiCurrencyCode.IndianRupee:\n return `₹`;\n case TuiCurrency.SwissFranc:\n case TuiCurrencyCode.SwissFranc:\n return `₣`;\n case TuiCurrency.ArmenianDram:\n case TuiCurrencyCode.ArmenianDram:\n return `֏`;\n case TuiCurrency.Won:\n case TuiCurrencyCode.Won:\n return `₩`;\n case TuiCurrency.Tenge:\n case TuiCurrencyCode.Tenge:\n return `₸`;\n case TuiCurrency.Hryvnia:\n case TuiCurrencyCode.Hryvnia:\n return `₴`;\n case TuiCurrency.UzbekSum:\n case TuiCurrencyCode.UzbekSum:\n return `So'm`;\n case TuiCurrency.KyrgyzstanSom:\n case TuiCurrencyCode.KyrgyzstanSom:\n return `c`;\n case TuiCurrency.Dirham:\n case TuiCurrencyCode.Dirham:\n return `Dh`;\n default:\n return null;\n }\n}\n","import {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiIsString} from '@taiga-ui/cdk';\n\nimport {tuiGetCurrencySymbol} from './get-currency-symbol';\n\nexport function tuiFormatCurrency(currency: TuiCurrencyVariants): string {\n const stringifiedCurrency = stringifyCurrency(currency);\n\n return tuiGetCurrencySymbol(stringifiedCurrency) || stringifiedCurrency;\n}\n\nfunction stringifyCurrency(currency: TuiCurrencyVariants): string {\n return currency === null || tuiIsString(currency)\n ? currency || ``\n : String(currency).padStart(3, `0`);\n}\n","// cspell:disable\nimport {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums';\n\nexport const TUI_CURRENCY_DICTIONARY: Record<TuiCurrencyCode, TuiCurrency> = {\n [TuiCurrencyCode.Ruble]: TuiCurrency.Ruble,\n [TuiCurrencyCode.Dollar]: TuiCurrency.Dollar,\n [TuiCurrencyCode.MexicanPeso]: TuiCurrency.MexicanPeso,\n [TuiCurrencyCode.SingaporeDollar]: TuiCurrency.SingaporeDollar,\n [TuiCurrencyCode.SingaporeDollar]: TuiCurrency.SingaporeDollar,\n [TuiCurrencyCode.AustralianDollar]: TuiCurrency.AustralianDollar,\n [TuiCurrencyCode.HongKongDollar]: TuiCurrency.HongKongDollar,\n [TuiCurrencyCode.CanadianDollar]: TuiCurrency.CanadianDollar,\n [TuiCurrencyCode.Euro]: TuiCurrency.Euro,\n [TuiCurrencyCode.Pound]: TuiCurrency.Pound,\n [TuiCurrencyCode.Baht]: TuiCurrency.Baht,\n [TuiCurrencyCode.TurkishLira]: TuiCurrency.TurkishLira,\n [TuiCurrencyCode.YuanRenminbi]: TuiCurrency.YuanRenminbi,\n [TuiCurrencyCode.Yen]: TuiCurrency.Yen,\n [TuiCurrencyCode.IsraeliShekel]: TuiCurrency.IsraeliShekel,\n [TuiCurrencyCode.IsraeliShekel]: TuiCurrency.IsraeliShekel,\n [TuiCurrencyCode.IndianRupee]: TuiCurrency.IndianRupee,\n [TuiCurrencyCode.SwissFranc]: TuiCurrency.SwissFranc,\n [TuiCurrencyCode.ArmenianDram]: TuiCurrency.ArmenianDram,\n [TuiCurrencyCode.Won]: TuiCurrency.Won,\n [TuiCurrencyCode.Tenge]: TuiCurrency.Tenge,\n [TuiCurrencyCode.Hryvnia]: TuiCurrency.Hryvnia,\n [TuiCurrencyCode.UzbekSum]: TuiCurrency.UzbekSum,\n [TuiCurrencyCode.KyrgyzstanSom]: TuiCurrency.KyrgyzstanSom,\n [TuiCurrencyCode.Dirham]: TuiCurrency.Dirham,\n};\n\nexport function tuiGetCurrencyByCode(currency: TuiCurrencyCode): TuiCurrency | null {\n return TUI_CURRENCY_DICTIONARY[currency] ?? null;\n}\n","import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\n\n// https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN)\nexport const TUI_BIN_TABLE: ReadonlyArray<\n [paymentSystem: TuiPaymentSystem, start: number, end?: number]\n> = [\n [`mir`, 2200, 2204],\n [`mastercard`, 2221, 2720],\n [`jcb`, 3528, 3589],\n [`amex`, 34],\n [`amex`, 37],\n [`dinersclub`, 36],\n [`electron`, 4026],\n [`electron`, 4175],\n [`electron`, 4405],\n [`electron`, 4508],\n [`electron`, 4844],\n [`electron`, 4913],\n [`electron`, 4917],\n [`visa`, 4],\n [`verve`, 506099, 506198],\n [`verve`, 507865, 507964],\n [`maestro`, 5018],\n [`maestro`, 5020],\n [`maestro`, 5038],\n [`maestro`, 5090],\n [`maestro`, 5890],\n [`maestro`, 5893],\n [`rupay`, 508],\n [`maestro`, 50],\n [`dinersclub`, 54],\n [`mastercard`, 51, 55],\n [`maestro`, 56],\n [`maestro`, 58],\n [`mastercard`, 5],\n [`maestro`, 6000],\n [`maestro`, 6304],\n [`maestro`, 6759, 6763],\n [`verve`, 650002, 650027],\n [`maestro`, 676770],\n [`maestro`, 676774],\n [`discover`, 644, 649],\n [`discover`, 6011],\n [`rupay`, 60],\n [`unionpay`, 62],\n [`discover`, 65],\n [`maestro`, 6],\n [`rupay`, 81, 82],\n [`uzcard`, 8600],\n [`humo`, 9860],\n];\n\nexport function tuiGetPaymentSystem(\n cardNumber?: string | null,\n supported?: TuiPaymentSystem[],\n): TuiPaymentSystem | null {\n if (!cardNumber) {\n return null;\n }\n\n const row = TUI_BIN_TABLE.find(([paymentSystem, start, end = start]) => {\n const cardNumberNumeric = Number.parseInt(\n cardNumber.slice(0, String(start).length),\n 10,\n );\n\n const match = cardNumberNumeric >= start && cardNumberNumeric <= end;\n\n return match && (!supported?.length || supported.includes(paymentSystem));\n });\n\n return row?.[0] ?? null;\n}\n\nexport function tuiIsMaestro(three: number, two: number, one: number): boolean {\n if (one === 6) {\n return true;\n }\n\n if (two === 50 || (two > 55 && two < 59)) {\n return true;\n }\n\n if (three < 500) {\n return false;\n }\n\n return three < 510;\n}\n\nexport function tuiIsMastercard(four: number, two: number, one: number): boolean {\n if (one === 5) {\n return true;\n }\n\n if (two < 10) {\n return false;\n }\n\n if (two > 50 && two < 56) {\n return true;\n }\n\n if (four < 1000) {\n return false;\n }\n\n return four > 2220 && four < 2721;\n}\n\nexport function tuiIsMir(four: number): boolean {\n return four > 2199 && four < 2205;\n}\n\nexport function tuiIsElectron(four: number): boolean {\n switch (four) {\n case 4026:\n case 4175:\n case 4405:\n case 4508:\n case 4844:\n case 4913:\n case 4917:\n return true;\n default:\n return false;\n }\n}\n\nexport function tuiIsVisa(one: number): boolean {\n return one === 4;\n}\n","import {tuiGetPaymentSystem} from './get-payment-system';\n\n/**\n * Validates card number length using payment system dictionary\n */\nexport function tuiIsCardLengthValid(cardNumber: string): boolean {\n const {length} = cardNumber;\n const paymentSystem = tuiGetPaymentSystem(cardNumber);\n\n switch (paymentSystem) {\n case `electron`:\n return length === 16;\n case `maestro`:\n return length > 11 && length < 20;\n case `mastercard`:\n case `mir`:\n return length > 15 && length < 20;\n case `visa`:\n return length > 12 && length < 20;\n default:\n return length > 8 && length < 20;\n }\n}\n","import {TUI_NON_DIGITS_REGEXP} from '@taiga-ui/core';\n\n/**\n * Validates card number using Luhn algorithm\n */\nexport function tuiIsCardNumberValid(value: number | string): boolean {\n const cardNumber = String(value).replace(TUI_NON_DIGITS_REGEXP, ``);\n\n const {length} = cardNumber;\n const arr = cardNumber.split(``).map((char, index) => {\n const digit = parseInt(char, 10);\n\n if ((index + length) % 2 === 0) {\n const digitX2 = digit * 2;\n\n return digitX2 > 9 ? digitX2 - 9 : digitX2;\n }\n\n return digit;\n });\n\n return !(arr.reduce((a, b) => a + b, 0) % 10);\n}\n","export function tuiIsExpireValid(expire: string): boolean {\n const today = new Date();\n const currentMonth = today.getMonth();\n const currentYear = today.getFullYear() - 2000;\n // eslint-disable-next-line radix\n const month = parseInt(expire.slice(0, 2), 0);\n // eslint-disable-next-line radix\n const year = parseInt(expire.slice(-2), 0);\n\n return year > currentYear || (year === currentYear && month >= currentMonth);\n}\n","import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\n\nexport const TUI_PAYMENT_SYSTEM_ICONS: Record<TuiPaymentSystem, string> = {\n mir: `tuiIconMir`,\n visa: `tuiIconVisa`,\n electron: `tuiIconElectron`,\n mastercard: `tuiIconMastercard`,\n maestro: `tuiIconMaestro`,\n amex: `tuiIconAmex`,\n dinersclub: `tuiIconDinersClub`,\n discover: `tuiIconDiscover`,\n humo: `tuiIconHumo`,\n jcb: `tuiIconJCB`,\n rupay: `tuiIconRuPay`,\n unionpay: `tuiIconUnionPay`,\n uzcard: `tuiIconUzcard`,\n verve: `tuiIconVerve`,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from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ui-addon-commerce-utils.js","sources":["../../../projects/addon-commerce/utils/create-auto-corrected-expire-pipe.ts","../../../projects/addon-commerce/utils/get-currency-symbol.ts","../../../projects/addon-commerce/utils/format-currency.ts","../../../projects/addon-commerce/utils/get-currency-by-code.ts","../../../projects/addon-commerce/utils/get-payment-system.ts","../../../projects/addon-commerce/utils/is-card-length-valid.ts","../../../projects/addon-commerce/utils/is-card-number-valid.ts","../../../projects/addon-commerce/utils/is-expire-valid.ts","../../../projects/addon-commerce/utils/payment-system-icons.ts","../../../projects/addon-commerce/utils/taiga-ui-addon-commerce-utils.ts"],"sourcesContent":["import {TUI_NON_DIGIT_REGEXP, TuiTextMaskPipeHandler} from '@taiga-ui/core';\n\nconst TUI_EXP_YEAR_MONTH = /^\\d{2}[/|.]\\d{4}$/;\nconst TUI_EXP_SAFARI = /^\\d{1,4}.\\d{1,2}.\\d{1,4}$/;\n\n/**\n * @deprecated Use {@link https://tinkoff.github.io/maskito/kit/date Date} from {@link https://github.com/Tinkoff/maskito Maskito} instead\n * TODO: delete in v4.0\n * Correct expiration date text allowing only valid months\n * @internal\n *\n * @returns MM/YY\n */\nexport function tuiCreateAutoCorrectedExpirePipe(): TuiTextMaskPipeHandler {\n return (conformedValue, {rawValue}) => {\n // Autofilled with MM/YYYY format\n if (TUI_EXP_YEAR_MONTH.test(rawValue)) {\n conformedValue = `${rawValue.slice(0, 2)}/${rawValue.slice(5)}`;\n }\n\n // Autofilled with Safari crazy format\n if (\n rawValue.length > 7 &&\n rawValue.length < 11 &&\n TUI_EXP_SAFARI.test(rawValue)\n ) {\n const array = rawValue.split(TUI_NON_DIGIT_REGEXP);\n\n // TODO: investigate why the month is sometimes more than 2-length in safari\n const month = array[1].slice(2);\n const year = array.find(({length}) => length === 4);\n\n conformedValue = `${`0`.repeat(2 - month.length)}${month}/${\n year ? year.slice(2) : ``\n }`;\n }\n\n const indexesOfPipedChars: number[] = [];\n const conformedValueArr = conformedValue.split(``);\n\n if (parseInt(conformedValueArr[0], 10) > 1) {\n conformedValueArr[2] = `/`;\n conformedValueArr[1] = conformedValueArr[0];\n conformedValueArr[0] = `0`;\n indexesOfPipedChars.push(0);\n }\n\n return {\n value: conformedValueArr.join(``),\n indexesOfPipedChars,\n };\n };\n}\n","import {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums';\nimport {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\n\n// eslint-disable-next-line complexity\nexport function tuiGetCurrencySymbol(currency: TuiCurrencyVariants): string | null {\n switch (currency) {\n case TuiCurrency.Ruble:\n case TuiCurrencyCode.Ruble:\n return `₽`;\n case TuiCurrency.Dollar:\n case TuiCurrencyCode.Dollar:\n case TuiCurrency.MexicanPeso:\n case TuiCurrencyCode.MexicanPeso:\n return `$`;\n case TuiCurrency.SingaporeDollar:\n case TuiCurrencyCode.SingaporeDollar:\n return `S$`;\n case TuiCurrency.AustralianDollar:\n case TuiCurrencyCode.AustralianDollar:\n return `A$`;\n case TuiCurrency.HongKongDollar:\n case TuiCurrencyCode.HongKongDollar:\n return `HK$`;\n case TuiCurrency.CanadianDollar:\n case TuiCurrencyCode.CanadianDollar:\n return `C$`;\n case TuiCurrency.Euro:\n case TuiCurrencyCode.Euro:\n return `€`;\n case TuiCurrency.Pound:\n case TuiCurrencyCode.Pound:\n return `£`;\n case TuiCurrency.Baht:\n case TuiCurrencyCode.Baht:\n return `฿`;\n case TuiCurrency.TurkishLira:\n case TuiCurrencyCode.TurkishLira:\n return `₺`;\n case TuiCurrency.YuanRenminbi:\n case TuiCurrencyCode.YuanRenminbi:\n return `CN¥`;\n case TuiCurrency.Yen:\n case TuiCurrencyCode.Yen:\n return `¥`;\n case TuiCurrency.IsraeliShekel:\n case TuiCurrencyCode.IsraeliShekel:\n return `₪`;\n case TuiCurrency.IndianRupee:\n case TuiCurrencyCode.IndianRupee:\n return `₹`;\n case TuiCurrency.SwissFranc:\n case TuiCurrencyCode.SwissFranc:\n return `₣`;\n case TuiCurrency.ArmenianDram:\n case TuiCurrencyCode.ArmenianDram:\n return `֏`;\n case TuiCurrency.Won:\n case TuiCurrencyCode.Won:\n return `₩`;\n case TuiCurrency.Tenge:\n case TuiCurrencyCode.Tenge:\n return `₸`;\n case TuiCurrency.Hryvnia:\n case TuiCurrencyCode.Hryvnia:\n return `₴`;\n case TuiCurrency.UzbekSum:\n case TuiCurrencyCode.UzbekSum:\n return `So'm`;\n case TuiCurrency.KyrgyzstanSom:\n case TuiCurrencyCode.KyrgyzstanSom:\n return `c`;\n case TuiCurrency.Dirham:\n case TuiCurrencyCode.Dirham:\n return `Dh`;\n case TuiCurrency.TajikistaniSomoni:\n case TuiCurrencyCode.TajikistaniSomoni:\n return `SM`;\n case TuiCurrency.MalaysianRinggit:\n case TuiCurrencyCode.MalaysianRinggit:\n return `RM`;\n case TuiCurrency.BelarusianRuble:\n case TuiCurrencyCode.BelarusianRuble:\n return `Rbl`;\n case TuiCurrency.GeorgianLari:\n case TuiCurrencyCode.GeorgianLari:\n return `₾`;\n case TuiCurrency.AzerbaijaniManat:\n case TuiCurrencyCode.AzerbaijaniManat:\n return `₼`;\n case TuiCurrency.SriLankanRupee:\n case TuiCurrencyCode.SriLankanRupee:\n return `Rs.`;\n case TuiCurrency.SerbianDinar:\n case TuiCurrencyCode.SerbianDinar:\n return `DIN`;\n case TuiCurrency.SaudiRiyal:\n case TuiCurrencyCode.SaudiRiyal:\n return `SR`;\n case TuiCurrency.MongolianTugrik:\n case TuiCurrencyCode.MongolianTugrik:\n return `₮`;\n case TuiCurrency.SouthAfricanRand:\n case TuiCurrencyCode.SouthAfricanRand:\n return `R`;\n case TuiCurrency.IranianRial:\n case TuiCurrencyCode.IranianRial:\n return `IR`;\n case TuiCurrency.IndonesianRupiah:\n case TuiCurrencyCode.IndonesianRupiah:\n return `Rp`;\n case TuiCurrency.VietnameseDong:\n case TuiCurrencyCode.VietnameseDong:\n return `đ`;\n case TuiCurrency.NewTurkmenManat:\n case TuiCurrencyCode.NewTurkmenManat:\n return `TMT`;\n case TuiCurrency.BrazilianReal:\n case TuiCurrencyCode.BrazilianReal:\n return `R$`;\n default:\n return null;\n }\n}\n","import {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types';\nimport {tuiIsString} from '@taiga-ui/cdk';\n\nimport {tuiGetCurrencySymbol} from './get-currency-symbol';\n\nexport function tuiFormatCurrency(currency: TuiCurrencyVariants): string {\n const stringifiedCurrency = stringifyCurrency(currency);\n\n return tuiGetCurrencySymbol(stringifiedCurrency) || stringifiedCurrency;\n}\n\nfunction stringifyCurrency(currency: TuiCurrencyVariants): string {\n return currency === null || tuiIsString(currency)\n ? currency || ``\n : String(currency).padStart(3, `0`);\n}\n","// cspell:disable\nimport {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums';\n\nexport const TUI_CURRENCY_DICTIONARY: Record<TuiCurrencyCode, TuiCurrency> = {\n [TuiCurrencyCode.Ruble]: TuiCurrency.Ruble,\n [TuiCurrencyCode.Dollar]: TuiCurrency.Dollar,\n [TuiCurrencyCode.MexicanPeso]: TuiCurrency.MexicanPeso,\n [TuiCurrencyCode.SingaporeDollar]: TuiCurrency.SingaporeDollar,\n [TuiCurrencyCode.SingaporeDollar]: TuiCurrency.SingaporeDollar,\n [TuiCurrencyCode.AustralianDollar]: TuiCurrency.AustralianDollar,\n [TuiCurrencyCode.HongKongDollar]: TuiCurrency.HongKongDollar,\n [TuiCurrencyCode.CanadianDollar]: TuiCurrency.CanadianDollar,\n [TuiCurrencyCode.Euro]: TuiCurrency.Euro,\n [TuiCurrencyCode.Pound]: TuiCurrency.Pound,\n [TuiCurrencyCode.Baht]: TuiCurrency.Baht,\n [TuiCurrencyCode.TurkishLira]: TuiCurrency.TurkishLira,\n [TuiCurrencyCode.YuanRenminbi]: TuiCurrency.YuanRenminbi,\n [TuiCurrencyCode.Yen]: TuiCurrency.Yen,\n [TuiCurrencyCode.IsraeliShekel]: TuiCurrency.IsraeliShekel,\n [TuiCurrencyCode.IsraeliShekel]: TuiCurrency.IsraeliShekel,\n [TuiCurrencyCode.IndianRupee]: TuiCurrency.IndianRupee,\n [TuiCurrencyCode.SwissFranc]: TuiCurrency.SwissFranc,\n [TuiCurrencyCode.ArmenianDram]: TuiCurrency.ArmenianDram,\n [TuiCurrencyCode.Won]: TuiCurrency.Won,\n [TuiCurrencyCode.Tenge]: TuiCurrency.Tenge,\n [TuiCurrencyCode.Hryvnia]: TuiCurrency.Hryvnia,\n [TuiCurrencyCode.UzbekSum]: TuiCurrency.UzbekSum,\n [TuiCurrencyCode.KyrgyzstanSom]: TuiCurrency.KyrgyzstanSom,\n [TuiCurrencyCode.Dirham]: TuiCurrency.Dirham,\n [TuiCurrencyCode.TajikistaniSomoni]: TuiCurrency.TajikistaniSomoni,\n [TuiCurrencyCode.MalaysianRinggit]: TuiCurrency.MalaysianRinggit,\n [TuiCurrencyCode.BelarusianRuble]: TuiCurrency.BelarusianRuble,\n [TuiCurrencyCode.GeorgianLari]: TuiCurrency.GeorgianLari,\n [TuiCurrencyCode.AzerbaijaniManat]: TuiCurrency.AzerbaijaniManat,\n [TuiCurrencyCode.SriLankanRupee]: TuiCurrency.SriLankanRupee,\n [TuiCurrencyCode.SerbianDinar]: TuiCurrency.SerbianDinar,\n [TuiCurrencyCode.SaudiRiyal]: TuiCurrency.SaudiRiyal,\n [TuiCurrencyCode.MongolianTugrik]: TuiCurrency.MongolianTugrik,\n [TuiCurrencyCode.SouthAfricanRand]: TuiCurrency.SouthAfricanRand,\n [TuiCurrencyCode.IranianRial]: TuiCurrency.IranianRial,\n [TuiCurrencyCode.IndonesianRupiah]: TuiCurrency.IndonesianRupiah,\n [TuiCurrencyCode.VietnameseDong]: TuiCurrency.VietnameseDong,\n [TuiCurrencyCode.NewTurkmenManat]: TuiCurrency.NewTurkmenManat,\n [TuiCurrencyCode.BrazilianReal]: TuiCurrency.BrazilianReal,\n};\n\nexport function tuiGetCurrencyByCode(currency: TuiCurrencyCode): TuiCurrency | null {\n return TUI_CURRENCY_DICTIONARY[currency] ?? null;\n}\n","import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\n\n// https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN)\nexport const TUI_BIN_TABLE: ReadonlyArray<\n [paymentSystem: TuiPaymentSystem, start: number, end?: number]\n> = [\n [`mir`, 2200, 2204],\n [`mastercard`, 2221, 2720],\n [`jcb`, 3528, 3589],\n [`amex`, 34],\n [`amex`, 37],\n [`dinersclub`, 36],\n [`electron`, 4026],\n [`electron`, 4175],\n [`electron`, 4405],\n [`electron`, 4508],\n [`electron`, 4844],\n [`electron`, 4913],\n [`electron`, 4917],\n [`visa`, 4],\n [`verve`, 506099, 506198],\n [`verve`, 507865, 507964],\n [`maestro`, 5018],\n [`maestro`, 5020],\n [`maestro`, 5038],\n [`maestro`, 5090],\n [`maestro`, 5890],\n [`maestro`, 5893],\n [`rupay`, 508],\n [`maestro`, 50],\n [`dinersclub`, 54],\n [`mastercard`, 51, 55],\n [`maestro`, 56],\n [`maestro`, 58],\n [`mastercard`, 5],\n [`maestro`, 6000],\n [`maestro`, 6304],\n [`maestro`, 6759, 6763],\n [`verve`, 650002, 650027],\n [`maestro`, 676770],\n [`maestro`, 676774],\n [`discover`, 644, 649],\n [`discover`, 6011],\n [`rupay`, 60],\n [`unionpay`, 62],\n [`discover`, 65],\n [`maestro`, 6],\n [`rupay`, 81, 82],\n [`uzcard`, 8600],\n [`humo`, 9860],\n];\n\nexport function tuiGetPaymentSystem(\n cardNumber?: string | null,\n supported?: TuiPaymentSystem[],\n): TuiPaymentSystem | null {\n if (!cardNumber) {\n return null;\n }\n\n const row = TUI_BIN_TABLE.find(([paymentSystem, start, end = start]) => {\n const cardNumberNumeric = Number.parseInt(\n cardNumber.slice(0, String(start).length),\n 10,\n );\n\n const match = cardNumberNumeric >= start && cardNumberNumeric <= end;\n\n return match && (!supported?.length || supported.includes(paymentSystem));\n });\n\n return row?.[0] ?? null;\n}\n\nexport function tuiIsMaestro(three: number, two: number, one: number): boolean {\n if (one === 6) {\n return true;\n }\n\n if (two === 50 || (two > 55 && two < 59)) {\n return true;\n }\n\n if (three < 500) {\n return false;\n }\n\n return three < 510;\n}\n\nexport function tuiIsMastercard(four: number, two: number, one: number): boolean {\n if (one === 5) {\n return true;\n }\n\n if (two < 10) {\n return false;\n }\n\n if (two > 50 && two < 56) {\n return true;\n }\n\n if (four < 1000) {\n return false;\n }\n\n return four > 2220 && four < 2721;\n}\n\nexport function tuiIsMir(four: number): boolean {\n return four > 2199 && four < 2205;\n}\n\nexport function tuiIsElectron(four: number): boolean {\n switch (four) {\n case 4026:\n case 4175:\n case 4405:\n case 4508:\n case 4844:\n case 4913:\n case 4917:\n return true;\n default:\n return false;\n }\n}\n\nexport function tuiIsVisa(one: number): boolean {\n return one === 4;\n}\n","import {tuiGetPaymentSystem} from './get-payment-system';\n\n/**\n * Validates card number length using payment system dictionary\n */\nexport function tuiIsCardLengthValid(cardNumber: string): boolean {\n const {length} = cardNumber;\n const paymentSystem = tuiGetPaymentSystem(cardNumber);\n\n switch (paymentSystem) {\n case `electron`:\n return length === 16;\n case `maestro`:\n return length > 11 && length < 20;\n case `mastercard`:\n case `mir`:\n return length > 15 && length < 20;\n case `visa`:\n return length > 12 && length < 20;\n default:\n return length > 8 && length < 20;\n }\n}\n","import {TUI_NON_DIGITS_REGEXP} from '@taiga-ui/core';\n\n/**\n * Validates card number using Luhn algorithm\n */\nexport function tuiIsCardNumberValid(value: number | string): boolean {\n const cardNumber = String(value).replace(TUI_NON_DIGITS_REGEXP, ``);\n\n const {length} = cardNumber;\n const arr = cardNumber.split(``).map((char, index) => {\n const digit = parseInt(char, 10);\n\n if ((index + length) % 2 === 0) {\n const digitX2 = digit * 2;\n\n return digitX2 > 9 ? digitX2 - 9 : digitX2;\n }\n\n return digit;\n });\n\n return !(arr.reduce((a, b) => a + b, 0) % 10);\n}\n","export function tuiIsExpireValid(expire: string): boolean {\n const today = new Date();\n const currentMonth = today.getMonth();\n const currentYear = today.getFullYear() - 2000;\n // eslint-disable-next-line radix\n const month = parseInt(expire.slice(0, 2), 0);\n // eslint-disable-next-line radix\n const year = parseInt(expire.slice(-2), 0);\n\n return year > currentYear || (year === currentYear && month >= currentMonth);\n}\n","import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types';\n\nexport const TUI_PAYMENT_SYSTEM_ICONS: Record<TuiPaymentSystem, string> = {\n mir: `tuiIconMir`,\n visa: `tuiIconVisa`,\n electron: `tuiIconElectron`,\n mastercard: `tuiIconMastercard`,\n maestro: `tuiIconMaestro`,\n amex: `tuiIconAmex`,\n dinersclub: `tuiIconDinersClub`,\n discover: `tuiIconDiscover`,\n humo: `tuiIconHumo`,\n jcb: `tuiIconJCB`,\n rupay: `tuiIconRuPay`,\n unionpay: `tuiIconUnionPay`,\n uzcard: `tuiIconUzcard`,\n verve: `tuiIconVerve`,\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAEA,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AAC/C,MAAM,cAAc,GAAG,2BAA2B,CAAC;AAEnD;;;;;;;AAOG;SACa,gCAAgC,GAAA;AAC5C,IAAA,OAAO,CAAC,cAAc,EAAE,EAAC,QAAQ,EAAC,KAAI;;AAElC,QAAA,IAAI,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;AACnC,YAAA,cAAc,GAAG,CAAG,EAAA,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA,CAAA,EAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;AACnE,SAAA;;AAGD,QAAA,IACI,QAAQ,CAAC,MAAM,GAAG,CAAC;YACnB,QAAQ,CAAC,MAAM,GAAG,EAAE;AACpB,YAAA,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAC/B;YACE,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;;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IAAA,UAAU,EAAE,CAAmB,iBAAA,CAAA;AAC/B,IAAA,OAAO,EAAE,CAAgB,cAAA,CAAA;AACzB,IAAA,IAAI,EAAE,CAAa,WAAA,CAAA;AACnB,IAAA,UAAU,EAAE,CAAmB,iBAAA,CAAA;AAC/B,IAAA,QAAQ,EAAE,CAAiB,eAAA,CAAA;AAC3B,IAAA,IAAI,EAAE,CAAa,WAAA,CAAA;AACnB,IAAA,GAAG,EAAE,CAAY,UAAA,CAAA;AACjB,IAAA,KAAK,EAAE,CAAc,YAAA,CAAA;AACrB,IAAA,QAAQ,EAAE,CAAiB,eAAA,CAAA;AAC3B,IAAA,MAAM,EAAE,CAAe,aAAA,CAAA;AACvB,IAAA,KAAK,EAAE,CAAc,YAAA,CAAA;;;AChBzB;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/addon-commerce",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.0",
|
|
4
4
|
"description": "Extension package for Taiga UI related to commerce, payment systems, currencies etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"@maskito/core": ">=1.2.0",
|
|
22
22
|
"@maskito/kit": ">=1.2.0",
|
|
23
23
|
"@ng-web-apis/common": ">=3.0.0",
|
|
24
|
-
"@taiga-ui/cdk": ">=3.
|
|
25
|
-
"@taiga-ui/core": ">=3.
|
|
26
|
-
"@taiga-ui/i18n": ">=3.
|
|
24
|
+
"@taiga-ui/cdk": ">=3.37.0",
|
|
25
|
+
"@taiga-ui/core": ">=3.37.0",
|
|
26
|
+
"@taiga-ui/i18n": ">=3.37.0",
|
|
27
27
|
"@tinkoff/ng-polymorpheus": ">=4.0.0",
|
|
28
28
|
"rxjs": ">=6.0.0"
|
|
29
29
|
},
|