mytek-components 1.0.4 → 1.0.6
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/dist/main.js +364 -2
- package/dist/main.js.map +1 -1
- package/dist/main.umd.cjs +364 -2
- package/dist/main.umd.cjs.map +1 -1
- package/package.json +7 -4
package/dist/main.umd.cjs
CHANGED
|
@@ -16228,6 +16228,368 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
16228
16228
|
}
|
|
16229
16229
|
var libExports = requireLib();
|
|
16230
16230
|
const PhoneInput = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
16231
|
+
const countryPhoneRules = {
|
|
16232
|
+
"+93": { length: 9, startsWith: /^[7]/ },
|
|
16233
|
+
// Afghanistan: mobile starts with 7
|
|
16234
|
+
"+355": { length: 9, startsWith: /^[6]/ },
|
|
16235
|
+
// Albania: mobile starts with 6
|
|
16236
|
+
"+213": { length: 9, startsWith: /^[5-7]/ },
|
|
16237
|
+
// Algeria: mobile starts with 5,6,7
|
|
16238
|
+
"+376": { length: 6, startsWith: /^[3,6]/ },
|
|
16239
|
+
// Andorra: mobile starts with 3,6
|
|
16240
|
+
"+244": { length: 9, startsWith: /^[9]/ },
|
|
16241
|
+
// Angola: mobile starts with 9
|
|
16242
|
+
"+1264": { length: 7, startsWith: /^[2-9]/ },
|
|
16243
|
+
// Anguilla: follows NANP
|
|
16244
|
+
"+1268": { length: 7, startsWith: /^[2-9]/ },
|
|
16245
|
+
// Antigua and Barbuda: follows NANP
|
|
16246
|
+
"+54": { length: 10, startsWith: /^[9]/ },
|
|
16247
|
+
// Argentina: mobile starts with 9
|
|
16248
|
+
"+374": { length: 8, startsWith: /^[4,7,9]/ },
|
|
16249
|
+
// Armenia: mobile starts with 4,7,9
|
|
16250
|
+
"+297": { length: 7, startsWith: /^[5,6,7]/ },
|
|
16251
|
+
// Aruba: mobile starts with 5,6,7
|
|
16252
|
+
"+61": { length: 9, startsWith: /^[4]/ },
|
|
16253
|
+
// Australia: mobile starts with 4
|
|
16254
|
+
"+43": { length: 10, startsWith: /^[6]/ },
|
|
16255
|
+
// Austria: mobile starts with 6
|
|
16256
|
+
"+994": { length: 9, startsWith: /^[4,5,7]/ },
|
|
16257
|
+
// Azerbaijan: mobile starts with 4,5,7
|
|
16258
|
+
"+1242": { length: 7, startsWith: /^[2-9]/ },
|
|
16259
|
+
// Bahamas: follows NANP
|
|
16260
|
+
"+973": { length: 8, startsWith: /^[3]/ },
|
|
16261
|
+
// Bahrain: mobile starts with 3
|
|
16262
|
+
"+880": { length: 10, startsWith: /^[1]/ },
|
|
16263
|
+
// Bangladesh: mobile starts with 1
|
|
16264
|
+
"+1246": { length: 7, startsWith: /^[2-9]/ },
|
|
16265
|
+
// Barbados: follows NANP
|
|
16266
|
+
"+375": { length: 9, startsWith: /^[2,3]/ },
|
|
16267
|
+
// Belarus: mobile starts with 2,3
|
|
16268
|
+
"+32": { length: 9, startsWith: /^[4]/ },
|
|
16269
|
+
// Belgium: mobile starts with 4
|
|
16270
|
+
"+501": { length: 7, startsWith: /^[6]/ },
|
|
16271
|
+
// Belize: mobile starts with 6
|
|
16272
|
+
"+229": { length: 8, startsWith: /^[9]/ },
|
|
16273
|
+
// Benin: mobile starts with 9
|
|
16274
|
+
"+1441": { length: 7, startsWith: /^[2-9]/ },
|
|
16275
|
+
// Bermuda: follows NANP
|
|
16276
|
+
"+975": { length: 8, startsWith: /^[1,7]/ },
|
|
16277
|
+
// Bhutan: mobile starts with 1,7
|
|
16278
|
+
"+591": { length: 8, startsWith: /^[6-7]/ },
|
|
16279
|
+
// Bolivia: mobile starts with 6,7
|
|
16280
|
+
"+387": { length: 8, startsWith: /^[6]/ },
|
|
16281
|
+
// Bosnia: mobile starts with 6
|
|
16282
|
+
"+267": { length: 8, startsWith: /^[7]/ },
|
|
16283
|
+
// Botswana: mobile starts with 7
|
|
16284
|
+
"+55": { length: 11, startsWith: /^[1-9]/ },
|
|
16285
|
+
// Brazil: varies by region
|
|
16286
|
+
"+673": { length: 7, startsWith: /^[7-8]/ },
|
|
16287
|
+
// Brunei: mobile starts with 7,8
|
|
16288
|
+
"+359": { length: 9, startsWith: /^[8-9]/ },
|
|
16289
|
+
// Bulgaria: mobile starts with 8,9
|
|
16290
|
+
"+226": { length: 8, startsWith: /^[5-7]/ },
|
|
16291
|
+
// Burkina Faso: mobile starts with 5,6,7
|
|
16292
|
+
"+855": { length: 9, startsWith: /^[1,6-9]/ },
|
|
16293
|
+
// Cambodia: mobile starts with 1,6,7,8,9
|
|
16294
|
+
"+237": { length: 9, startsWith: /^[6]/ },
|
|
16295
|
+
// Cameroon: mobile starts with 6
|
|
16296
|
+
"+1": { length: 10, startsWith: /^[2-9]/ },
|
|
16297
|
+
// Canada: follows NANP
|
|
16298
|
+
"+238": { length: 7, startsWith: /^[5,9]/ },
|
|
16299
|
+
// Cape Verde: mobile starts with 5,9
|
|
16300
|
+
"+1345": { length: 7, startsWith: /^[2-9]/ },
|
|
16301
|
+
// Cayman Islands: follows NANP
|
|
16302
|
+
"+236": { length: 8, startsWith: /^[7]/ },
|
|
16303
|
+
// Central African Republic: mobile starts with 7
|
|
16304
|
+
"+235": { length: 8, startsWith: /^[6]/ },
|
|
16305
|
+
// Chad: mobile starts with 6
|
|
16306
|
+
"+56": { length: 9, startsWith: /^[9]/ },
|
|
16307
|
+
// Chile: mobile starts with 9
|
|
16308
|
+
"+86": { length: 11, startsWith: /^[1]/ },
|
|
16309
|
+
// China: mobile starts with 1
|
|
16310
|
+
"+57": { length: 10, startsWith: /^[3]/ },
|
|
16311
|
+
// Colombia: mobile starts with 3
|
|
16312
|
+
"+269": { length: 7, startsWith: /^[3]/ },
|
|
16313
|
+
// Comoros: mobile starts with 3
|
|
16314
|
+
"+506": { length: 8, startsWith: /^[6-8]/ },
|
|
16315
|
+
// Costa Rica: mobile starts with 6,7,8
|
|
16316
|
+
"+385": { length: 9, startsWith: /^[9]/ },
|
|
16317
|
+
// Croatia: mobile starts with 9
|
|
16318
|
+
"+53": { length: 8, startsWith: /^[5]/ },
|
|
16319
|
+
// Cuba: mobile starts with 5
|
|
16320
|
+
"+357": { length: 8, startsWith: /^[9]/ },
|
|
16321
|
+
// Cyprus: mobile starts with 9
|
|
16322
|
+
"+420": { length: 9, startsWith: /^[6,7]/ },
|
|
16323
|
+
// Czech Republic: mobile starts with 6,7
|
|
16324
|
+
"+45": { length: 8, startsWith: /^[2-3,5-9]/ },
|
|
16325
|
+
// Denmark: mobile starts with 2,3,5-9
|
|
16326
|
+
"+253": { length: 8, startsWith: /^[7]/ },
|
|
16327
|
+
// Djibouti: mobile starts with 7
|
|
16328
|
+
"+1767": { length: 7, startsWith: /^[2-9]/ },
|
|
16329
|
+
// Dominica: follows NANP
|
|
16330
|
+
"+1809": { length: 7, startsWith: /^[2-9]/ },
|
|
16331
|
+
// Dominican Republic: follows NANP
|
|
16332
|
+
"+593": { length: 9, startsWith: /^[9]/ },
|
|
16333
|
+
// Ecuador: mobile starts with 9
|
|
16334
|
+
"+20": { length: 10, startsWith: /^[1]/ },
|
|
16335
|
+
// Egypt: mobile starts with 1
|
|
16336
|
+
"+503": { length: 8, startsWith: /^[7]/ },
|
|
16337
|
+
// El Salvador: mobile starts with 7
|
|
16338
|
+
"+240": { length: 9, startsWith: /^[2]/ },
|
|
16339
|
+
// Equatorial Guinea: mobile starts with 2
|
|
16340
|
+
"+372": { length: 8, startsWith: /^[5]/ },
|
|
16341
|
+
// Estonia: mobile starts with 5
|
|
16342
|
+
"+251": { length: 9, startsWith: /^[9]/ },
|
|
16343
|
+
// Ethiopia: mobile starts with 9
|
|
16344
|
+
"+679": { length: 7, startsWith: /^[7,9]/ },
|
|
16345
|
+
// Fiji: mobile starts with 7,9
|
|
16346
|
+
"+358": { length: 9, startsWith: /^[4,5]/ },
|
|
16347
|
+
// Finland: mobile starts with 4,5
|
|
16348
|
+
"+33": { length: 9, startsWith: /^[6,7]/ },
|
|
16349
|
+
// France: mobile starts with 6,7
|
|
16350
|
+
"+241": { length: 8, startsWith: /^[0,1,2,5-9]/ },
|
|
16351
|
+
// Gabon: mobile starts with 0,1,2,5-9
|
|
16352
|
+
"+220": { length: 7, startsWith: /^[7,9]/ },
|
|
16353
|
+
// Gambia: mobile starts with 7,9
|
|
16354
|
+
"+995": { length: 9, startsWith: /^[5]/ },
|
|
16355
|
+
// Georgia: mobile starts with 5
|
|
16356
|
+
"+49": { length: 11, startsWith: /^[1]/ },
|
|
16357
|
+
// Germany: mobile starts with 1
|
|
16358
|
+
"+233": { length: 9, startsWith: /^[2]/ },
|
|
16359
|
+
// Ghana: mobile starts with 2
|
|
16360
|
+
"+30": { length: 10, startsWith: /^[6,7]/ },
|
|
16361
|
+
// Greece: mobile starts with 6,7
|
|
16362
|
+
"+299": { length: 6, startsWith: /^[4,5]/ },
|
|
16363
|
+
// Greenland: mobile starts with 4,5
|
|
16364
|
+
"+1473": { length: 7, startsWith: /^[2-9]/ },
|
|
16365
|
+
// Grenada: follows NANP
|
|
16366
|
+
"+502": { length: 8, startsWith: /^[4,5]/ },
|
|
16367
|
+
// Guatemala: mobile starts with 4,5
|
|
16368
|
+
"+224": { length: 9, startsWith: /^[6]/ },
|
|
16369
|
+
// Guinea: mobile starts with 6
|
|
16370
|
+
"+245": { length: 7, startsWith: /^[5,6,7]/ },
|
|
16371
|
+
// Guinea-Bissau: mobile starts with 5,6,7
|
|
16372
|
+
"+592": { length: 7, startsWith: /^[6]/ },
|
|
16373
|
+
// Guyana: mobile starts with 6
|
|
16374
|
+
"+509": { length: 8, startsWith: /^[3,4]/ },
|
|
16375
|
+
// Haiti: mobile starts with 3,4
|
|
16376
|
+
"+504": { length: 8, startsWith: /^[3,7,8,9]/ },
|
|
16377
|
+
// Honduras: mobile starts with 3,7,8,9
|
|
16378
|
+
"+852": { length: 8, startsWith: /^[5-9]/ },
|
|
16379
|
+
// Hong Kong: mobile starts with 5-9
|
|
16380
|
+
"+36": { length: 9, startsWith: /^[2,3,7]/ },
|
|
16381
|
+
// Hungary: mobile starts with 2,3,7
|
|
16382
|
+
"+354": { length: 7, startsWith: /^[6,7,8]/ },
|
|
16383
|
+
// Iceland: mobile starts with 6,7,8
|
|
16384
|
+
"+91": { length: 10, startsWith: /^[6-9]/ },
|
|
16385
|
+
// India: mobile starts with 6,7,8,9
|
|
16386
|
+
"+62": { length: 10, startsWith: /^[8]/ },
|
|
16387
|
+
// Indonesia: mobile starts with 8
|
|
16388
|
+
"+98": { length: 10, startsWith: /^[9]/ },
|
|
16389
|
+
// Iran: mobile starts with 9
|
|
16390
|
+
"+964": { length: 10, startsWith: /^[7]/ },
|
|
16391
|
+
// Iraq: mobile starts with 7
|
|
16392
|
+
"+353": { length: 9, startsWith: /^[8]/ },
|
|
16393
|
+
// Ireland: mobile starts with 8
|
|
16394
|
+
"+972": { length: 9, startsWith: /^[5]/ },
|
|
16395
|
+
// Israel: mobile starts with 5
|
|
16396
|
+
"+39": { length: 10, startsWith: /^[3]/ },
|
|
16397
|
+
// Italy: mobile starts with 3
|
|
16398
|
+
"+225": { length: 8, startsWith: /^[0,4-8]/ },
|
|
16399
|
+
// Ivory Coast: mobile starts with 0,4-8
|
|
16400
|
+
"+1876": { length: 7, startsWith: /^[2-9]/ },
|
|
16401
|
+
// Jamaica: follows NANP
|
|
16402
|
+
"+81": { length: 10, startsWith: /^[7-9]/ },
|
|
16403
|
+
// Japan: mobile starts with 7,8,9
|
|
16404
|
+
"+962": { length: 9, startsWith: /^[7]/ },
|
|
16405
|
+
// Jordan: mobile starts with 7
|
|
16406
|
+
"+7": { length: 10, startsWith: /^[9]/ },
|
|
16407
|
+
// Kazakhstan: mobile starts with 9
|
|
16408
|
+
"+254": { length: 9, startsWith: /^[7]/ },
|
|
16409
|
+
// Kenya: mobile starts with 7
|
|
16410
|
+
"+965": { length: 8, startsWith: /^[5,6,9]/ },
|
|
16411
|
+
// Kuwait: mobile starts with 5,6,9
|
|
16412
|
+
"+996": { length: 9, startsWith: /^[5,7]/ },
|
|
16413
|
+
// Kyrgyzstan: mobile starts with 5,7
|
|
16414
|
+
"+856": { length: 10, startsWith: /^[2]/ },
|
|
16415
|
+
// Laos: mobile starts with 2
|
|
16416
|
+
"+371": { length: 8, startsWith: /^[2]/ },
|
|
16417
|
+
// Latvia: mobile starts with 2
|
|
16418
|
+
"+961": { length: 8, startsWith: /^[3,7]/ },
|
|
16419
|
+
// Lebanon: mobile starts with 3,7
|
|
16420
|
+
"+266": { length: 8, startsWith: /^[5,6]/ },
|
|
16421
|
+
// Lesotho: mobile starts with 5,6
|
|
16422
|
+
"+231": { length: 8, startsWith: /^[4,5,6,7]/ },
|
|
16423
|
+
// Liberia: mobile starts with 4,5,6,7
|
|
16424
|
+
"+218": { length: 9, startsWith: /^[9]/ },
|
|
16425
|
+
// Libya: mobile starts with 9
|
|
16426
|
+
"+423": { length: 7, startsWith: /^[7]/ },
|
|
16427
|
+
// Liechtenstein: mobile starts with 7
|
|
16428
|
+
"+370": { length: 8, startsWith: /^[6]/ },
|
|
16429
|
+
// Lithuania: mobile starts with 6
|
|
16430
|
+
"+352": { length: 9, startsWith: /^[6]/ },
|
|
16431
|
+
// Luxembourg: mobile starts with 6
|
|
16432
|
+
"+853": { length: 8, startsWith: /^[6]/ },
|
|
16433
|
+
// Macau: mobile starts with 6
|
|
16434
|
+
"+261": { length: 9, startsWith: /^[3]/ },
|
|
16435
|
+
// Madagascar: mobile starts with 3
|
|
16436
|
+
"+265": { length: 9, startsWith: /^[8,9]/ },
|
|
16437
|
+
// Malawi: mobile starts with 8,9
|
|
16438
|
+
"+60": { length: 9, startsWith: /^[1]/ },
|
|
16439
|
+
// Malaysia: mobile starts with 1
|
|
16440
|
+
"+960": { length: 7, startsWith: /^[7,9]/ },
|
|
16441
|
+
// Maldives: mobile starts with 7,9
|
|
16442
|
+
"+223": { length: 8, startsWith: /^[6,7]/ },
|
|
16443
|
+
// Mali: mobile starts with 6,7
|
|
16444
|
+
"+356": { length: 8, startsWith: /^[7,9]/ },
|
|
16445
|
+
// Malta: mobile starts with 7,9
|
|
16446
|
+
"+692": { length: 7, startsWith: /^[4]/ },
|
|
16447
|
+
// Marshall Islands: mobile starts with 4
|
|
16448
|
+
"+222": { length: 8, startsWith: /^[2,3,4]/ },
|
|
16449
|
+
// Mauritania: mobile starts with 2,3,4
|
|
16450
|
+
"+230": { length: 8, startsWith: /^[5]/ },
|
|
16451
|
+
// Mauritius: mobile starts with 5
|
|
16452
|
+
"+52": { length: 10, startsWith: /^[1-9]/ },
|
|
16453
|
+
// Mexico: varies by region
|
|
16454
|
+
"+373": { length: 8, startsWith: /^[6,7]/ },
|
|
16455
|
+
// Moldova: mobile starts with 6,7
|
|
16456
|
+
"+377": { length: 8, startsWith: /^[4,6]/ },
|
|
16457
|
+
// Monaco: mobile starts with 4,6
|
|
16458
|
+
"+976": { length: 8, startsWith: /^[8,9]/ },
|
|
16459
|
+
// Mongolia: mobile starts with 8,9
|
|
16460
|
+
"+382": { length: 8, startsWith: /^[6]/ },
|
|
16461
|
+
// Montenegro: mobile starts with 6
|
|
16462
|
+
"+212": { length: 9, startsWith: /^[6]/ },
|
|
16463
|
+
// Morocco: mobile starts with 6
|
|
16464
|
+
"+258": { length: 9, startsWith: /^[8]/ },
|
|
16465
|
+
// Mozambique: mobile starts with 8
|
|
16466
|
+
"+95": { length: 9, startsWith: /^[9]/ },
|
|
16467
|
+
// Myanmar: mobile starts with 9
|
|
16468
|
+
"+264": { length: 9, startsWith: /^[8]/ },
|
|
16469
|
+
// Namibia: mobile starts with 8
|
|
16470
|
+
"+977": { length: 10, startsWith: /^[9]/ },
|
|
16471
|
+
// Nepal: mobile starts with 9
|
|
16472
|
+
"+31": { length: 9, startsWith: /^[6]/ },
|
|
16473
|
+
// Netherlands: mobile starts with 6
|
|
16474
|
+
"+64": { length: 9, startsWith: /^[2]/ },
|
|
16475
|
+
// New Zealand: mobile starts with 2
|
|
16476
|
+
"+505": { length: 8, startsWith: /^[8]/ },
|
|
16477
|
+
// Nicaragua: mobile starts with 8
|
|
16478
|
+
"+227": { length: 8, startsWith: /^[9]/ },
|
|
16479
|
+
// Niger: mobile starts with 9
|
|
16480
|
+
"+234": { length: 10, startsWith: /^[7,8,9]/ },
|
|
16481
|
+
// Nigeria: mobile starts with 7,8,9
|
|
16482
|
+
"+850": { length: 9, startsWith: /^[1]/ },
|
|
16483
|
+
// North Korea: mobile starts with 1
|
|
16484
|
+
"+47": { length: 8, startsWith: /^[4,9]/ },
|
|
16485
|
+
// Norway: mobile starts with 4,9
|
|
16486
|
+
"+968": { length: 8, startsWith: /^[9]/ },
|
|
16487
|
+
// Oman: mobile starts with 9
|
|
16488
|
+
"+92": { length: 10, startsWith: /^[3]/ },
|
|
16489
|
+
// Pakistan: mobile starts with 3
|
|
16490
|
+
"+970": { length: 9, startsWith: /^[5]/ },
|
|
16491
|
+
// Palestine: mobile starts with 5
|
|
16492
|
+
"+507": { length: 8, startsWith: /^[6]/ },
|
|
16493
|
+
// Panama: mobile starts with 6
|
|
16494
|
+
"+675": { length: 8, startsWith: /^[7]/ },
|
|
16495
|
+
// Papua New Guinea: mobile starts with 7
|
|
16496
|
+
"+595": { length: 9, startsWith: /^[9]/ },
|
|
16497
|
+
// Paraguay: mobile starts with 9
|
|
16498
|
+
"+51": { length: 9, startsWith: /^[9]/ },
|
|
16499
|
+
// Peru: mobile starts with 9
|
|
16500
|
+
"+63": { length: 10, startsWith: /^[9]/ },
|
|
16501
|
+
// Philippines: mobile starts with 9
|
|
16502
|
+
"+48": { length: 9, startsWith: /^[5,6,7,8]/ },
|
|
16503
|
+
// Poland: mobile starts with 5,6,7,8
|
|
16504
|
+
"+351": { length: 9, startsWith: /^[9]/ },
|
|
16505
|
+
// Portugal: mobile starts with 9
|
|
16506
|
+
"+974": { length: 8, startsWith: /^[3,5,6,7]/ },
|
|
16507
|
+
// Qatar: mobile starts with 3,5,6,7
|
|
16508
|
+
"+40": { length: 9, startsWith: /^[7]/ },
|
|
16509
|
+
// Romania: mobile starts with 7
|
|
16510
|
+
"+07": { length: 10, startsWith: /^[9]/ },
|
|
16511
|
+
// Russia: mobile starts with 9
|
|
16512
|
+
"+250": { length: 9, startsWith: /^[7]/ },
|
|
16513
|
+
// Rwanda: mobile starts with 7
|
|
16514
|
+
"+966": { length: 9, startsWith: /^[5]/ },
|
|
16515
|
+
// Saudi Arabia: mobile starts with 5
|
|
16516
|
+
"+221": { length: 9, startsWith: /^[7]/ },
|
|
16517
|
+
// Senegal: mobile starts with 7
|
|
16518
|
+
"+381": { length: 9, startsWith: /^[6]/ },
|
|
16519
|
+
// Serbia: mobile starts with 6
|
|
16520
|
+
"+248": { length: 7, startsWith: /^[2]/ },
|
|
16521
|
+
// Seychelles: mobile starts with 2
|
|
16522
|
+
"+232": { length: 8, startsWith: /^[7,9]/ },
|
|
16523
|
+
// Sierra Leone: mobile starts with 7,9
|
|
16524
|
+
"+65": { length: 8, startsWith: /^[8,9]/ },
|
|
16525
|
+
// Singapore: mobile starts with 8,9
|
|
16526
|
+
"+421": { length: 9, startsWith: /^[9]/ },
|
|
16527
|
+
// Slovakia: mobile starts with 9
|
|
16528
|
+
"+386": { length: 8, startsWith: /^[3,4]/ },
|
|
16529
|
+
// Slovenia: mobile starts with 3,4
|
|
16530
|
+
"+252": { length: 8, startsWith: /^[6,7]/ },
|
|
16531
|
+
// Somalia: mobile starts with 6,7
|
|
16532
|
+
"+27": { length: 9, startsWith: /^[6,7,8]/ },
|
|
16533
|
+
// South Africa: mobile starts with 6,7,8
|
|
16534
|
+
"+82": { length: 10, startsWith: /^[1]/ },
|
|
16535
|
+
// South Korea: mobile starts with 1
|
|
16536
|
+
"+211": { length: 9, startsWith: /^[9]/ },
|
|
16537
|
+
// South Sudan: mobile starts with 9
|
|
16538
|
+
"+34": { length: 9, startsWith: /^[6,7]/ },
|
|
16539
|
+
// Spain: mobile starts with 6,7
|
|
16540
|
+
"+94": { length: 9, startsWith: /^[7]/ },
|
|
16541
|
+
// Sri Lanka: mobile starts with 7
|
|
16542
|
+
"+249": { length: 9, startsWith: /^[9]/ },
|
|
16543
|
+
// Sudan: mobile starts with 9
|
|
16544
|
+
"+597": { length: 7, startsWith: /^[6,7,8]/ },
|
|
16545
|
+
// Suriname: mobile starts with 6,7,8
|
|
16546
|
+
"+46": { length: 9, startsWith: /^[7]/ },
|
|
16547
|
+
// Sweden: mobile starts with 7
|
|
16548
|
+
"+41": { length: 9, startsWith: /^[7]/ },
|
|
16549
|
+
// Switzerland: mobile starts with 7
|
|
16550
|
+
"+963": { length: 9, startsWith: /^[9]/ },
|
|
16551
|
+
// Syria: mobile starts with 9
|
|
16552
|
+
"+886": { length: 9, startsWith: /^[9]/ },
|
|
16553
|
+
// Taiwan: mobile starts with 9
|
|
16554
|
+
"+992": { length: 9, startsWith: /^[9]/ },
|
|
16555
|
+
// Tajikistan: mobile starts with 9
|
|
16556
|
+
"+255": { length: 9, startsWith: /^[6,7]/ },
|
|
16557
|
+
// Tanzania: mobile starts with 6,7
|
|
16558
|
+
"+66": { length: 9, startsWith: /^[6,8,9]/ },
|
|
16559
|
+
// Thailand: mobile starts with 6,8,9
|
|
16560
|
+
"+228": { length: 8, startsWith: /^[9]/ },
|
|
16561
|
+
// Togo: mobile starts with 9
|
|
16562
|
+
"+216": { length: 8, startsWith: /^[2,4,5,9]/ },
|
|
16563
|
+
// Tunisia: mobile starts with 2,4,5,9
|
|
16564
|
+
"+90": { length: 10, startsWith: /^[5]/ },
|
|
16565
|
+
// Turkey: mobile starts with 5
|
|
16566
|
+
"+993": { length: 8, startsWith: /^[6]/ },
|
|
16567
|
+
// Turkmenistan: mobile starts with 6
|
|
16568
|
+
"+256": { length: 9, startsWith: /^[7]/ },
|
|
16569
|
+
// Uganda: mobile starts with 7
|
|
16570
|
+
"+380": { length: 9, startsWith: /^[5,6,7,9]/ },
|
|
16571
|
+
// Ukraine: mobile starts with 5,6,7,9
|
|
16572
|
+
"+971": { length: 9, startsWith: /^[5]/ },
|
|
16573
|
+
// UAE: mobile starts with 5
|
|
16574
|
+
"+44": { length: 10, startsWith: /^[7]/ },
|
|
16575
|
+
// UK: mobile starts with 7
|
|
16576
|
+
"+01": { length: 10, startsWith: /^[2-9]/ },
|
|
16577
|
+
// USA: follows NANP
|
|
16578
|
+
"+598": { length: 8, startsWith: /^[9]/ },
|
|
16579
|
+
// Uruguay: mobile starts with 9
|
|
16580
|
+
"+998": { length: 9, startsWith: /^[9]/ },
|
|
16581
|
+
// Uzbekistan: mobile starts with 9
|
|
16582
|
+
"+58": { length: 10, startsWith: /^[4]/ },
|
|
16583
|
+
// Venezuela: mobile starts with 4
|
|
16584
|
+
"+84": { length: 9, startsWith: /^[3,5,7,8,9]/ },
|
|
16585
|
+
// Vietnam: mobile starts with 3,5,7,8,9
|
|
16586
|
+
"+967": { length: 9, startsWith: /^[7]/ },
|
|
16587
|
+
// Yemen: mobile starts with 7
|
|
16588
|
+
"+260": { length: 9, startsWith: /^[9]/ },
|
|
16589
|
+
// Zambia: mobile starts with 9
|
|
16590
|
+
"+263": { length: 9, startsWith: /^[7]/ }
|
|
16591
|
+
// Zimbabwe: mobile starts with 7
|
|
16592
|
+
};
|
|
16231
16593
|
const formatNumberIndian = (num) => {
|
|
16232
16594
|
const [integer, decimal] = num.toString().split(".");
|
|
16233
16595
|
const lastThree = integer.slice(-3);
|
|
@@ -16770,7 +17132,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
16770
17132
|
disabled: button.disabled || enable,
|
|
16771
17133
|
className: `px-4 py-2 text-white ${backgroundColor2 || "bg-[#3B5AA1]"} border-l border-[#12AB5B] rounded-r-md ${button.disabled || enable ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
16772
17134
|
style: { height: height2 },
|
|
16773
|
-
children: button.loader ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17135
|
+
children: button.loader ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, { inline: true }) : button.label
|
|
16774
17136
|
}
|
|
16775
17137
|
)
|
|
16776
17138
|
] }) }) : /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center border border-[#12AB5B] overflow-hidden rounded-md", children: [
|
|
@@ -16822,7 +17184,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
|
|
|
16822
17184
|
disabled: disabled || enable,
|
|
16823
17185
|
className: `px-2 py-2 text-white ${backgroundColor2 || "bg-[#3B5AA1]"} border-l border-[#12AB5B] rounded-r-md ${disabled || enable ? "opacity-50 cursor-not-allowed" : ""}`,
|
|
16824
17186
|
style: { height: height2 },
|
|
16825
|
-
children: button.loader ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17187
|
+
children: button.loader ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, { inline: true }) : button.label
|
|
16826
17188
|
}
|
|
16827
17189
|
)
|
|
16828
17190
|
] })
|