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