@bigbinary/neeto-molecules 1.0.26 → 1.0.28

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.
Files changed (41) hide show
  1. package/dist/CustomDomain.cjs.js +349 -339
  2. package/dist/CustomDomain.cjs.js.map +1 -1
  3. package/dist/CustomDomain.js +349 -339
  4. package/dist/CustomDomain.js.map +1 -1
  5. package/dist/DynamicVariables.cjs.js +1 -1
  6. package/dist/DynamicVariables.js +1 -1
  7. package/dist/Header.cjs.js +67 -53
  8. package/dist/Header.cjs.js.map +1 -1
  9. package/dist/Header.js +67 -53
  10. package/dist/Header.js.map +1 -1
  11. package/dist/LoginPage.cjs.js +23 -18
  12. package/dist/LoginPage.cjs.js.map +1 -1
  13. package/dist/LoginPage.js +23 -18
  14. package/dist/LoginPage.js.map +1 -1
  15. package/dist/NeetoWidget.cjs.js +425 -565
  16. package/dist/NeetoWidget.cjs.js.map +1 -1
  17. package/dist/NeetoWidget.js +426 -566
  18. package/dist/NeetoWidget.js.map +1 -1
  19. package/dist/PhoneNumber.cjs.js +628 -86
  20. package/dist/PhoneNumber.cjs.js.map +1 -1
  21. package/dist/PhoneNumber.js +628 -86
  22. package/dist/PhoneNumber.js.map +1 -1
  23. package/dist/Rename.cjs.js +240 -226
  24. package/dist/Rename.cjs.js.map +1 -1
  25. package/dist/Rename.js +241 -227
  26. package/dist/Rename.js.map +1 -1
  27. package/dist/ShareViaLink.cjs.js +8 -7
  28. package/dist/ShareViaLink.cjs.js.map +1 -1
  29. package/dist/ShareViaLink.js +8 -7
  30. package/dist/ShareViaLink.js.map +1 -1
  31. package/dist/Sidebar.cjs.js +1 -1
  32. package/dist/Sidebar.cjs.js.map +1 -1
  33. package/dist/Sidebar.js +1 -1
  34. package/dist/Sidebar.js.map +1 -1
  35. package/dist/SubHeader.cjs.js +5 -6
  36. package/dist/SubHeader.cjs.js.map +1 -1
  37. package/dist/SubHeader.js +5 -6
  38. package/dist/SubHeader.js.map +1 -1
  39. package/package.json +2 -2
  40. package/src/translations/en.json +26 -7
  41. package/types/Sidebar.d.ts +1 -1
@@ -7337,7 +7337,7 @@ var CountryPicker = function CountryPicker(_ref) {
7337
7337
 
7338
7338
  function cov_168ppcd2fh() {
7339
7339
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PhoneNumber/utils.js";
7340
- var hash = "9ecc582a302b9bdbf29aeec23810f30ee8a6771a";
7340
+ var hash = "fb9ac2d5c714df6f3f91c062daeca73a8c95f8f9";
7341
7341
  var global = new Function("return this")();
7342
7342
  var gcv = "__coverage__";
7343
7343
  var coverageData = {
@@ -7442,6 +7442,166 @@ function cov_168ppcd2fh() {
7442
7442
  line: 35,
7443
7443
  column: 6
7444
7444
  }
7445
+ },
7446
+ "10": {
7447
+ start: {
7448
+ line: 39,
7449
+ column: 33
7450
+ },
7451
+ end: {
7452
+ line: 72,
7453
+ column: 1
7454
+ }
7455
+ },
7456
+ "11": {
7457
+ start: {
7458
+ line: 47,
7459
+ column: 6
7460
+ },
7461
+ end: {
7462
+ line: 47,
7463
+ column: 11
7464
+ }
7465
+ },
7466
+ "12": {
7467
+ start: {
7468
+ line: 49,
7469
+ column: 2
7470
+ },
7471
+ end: {
7472
+ line: 49,
7473
+ column: 74
7474
+ }
7475
+ },
7476
+ "13": {
7477
+ start: {
7478
+ line: 49,
7479
+ column: 42
7480
+ },
7481
+ end: {
7482
+ line: 49,
7483
+ column: 74
7484
+ }
7485
+ },
7486
+ "14": {
7487
+ start: {
7488
+ line: 51,
7489
+ column: 12
7490
+ },
7491
+ end: {
7492
+ line: 53,
7493
+ column: 30
7494
+ }
7495
+ },
7496
+ "15": {
7497
+ start: {
7498
+ line: 55,
7499
+ column: 15
7500
+ },
7501
+ end: {
7502
+ line: 55,
7503
+ column: 16
7504
+ }
7505
+ },
7506
+ "16": {
7507
+ start: {
7508
+ line: 56,
7509
+ column: 2
7510
+ },
7511
+ end: {
7512
+ line: 58,
7513
+ column: 3
7514
+ }
7515
+ },
7516
+ "17": {
7517
+ start: {
7518
+ line: 56,
7519
+ column: 15
7520
+ },
7521
+ end: {
7522
+ line: 56,
7523
+ column: 16
7524
+ }
7525
+ },
7526
+ "18": {
7527
+ start: {
7528
+ line: 57,
7529
+ column: 4
7530
+ },
7531
+ end: {
7532
+ line: 57,
7533
+ column: 52
7534
+ }
7535
+ },
7536
+ "19": {
7537
+ start: {
7538
+ line: 57,
7539
+ column: 43
7540
+ },
7541
+ end: {
7542
+ line: 57,
7543
+ column: 52
7544
+ }
7545
+ },
7546
+ "20": {
7547
+ start: {
7548
+ line: 60,
7549
+ column: 2
7550
+ },
7551
+ end: {
7552
+ line: 69,
7553
+ column: 3
7554
+ }
7555
+ },
7556
+ "21": {
7557
+ start: {
7558
+ line: 61,
7559
+ column: 4
7560
+ },
7561
+ end: {
7562
+ line: 68,
7563
+ column: 5
7564
+ }
7565
+ },
7566
+ "22": {
7567
+ start: {
7568
+ line: 65,
7569
+ column: 6
7570
+ },
7571
+ end: {
7572
+ line: 65,
7573
+ column: 24
7574
+ }
7575
+ },
7576
+ "23": {
7577
+ start: {
7578
+ line: 66,
7579
+ column: 11
7580
+ },
7581
+ end: {
7582
+ line: 68,
7583
+ column: 5
7584
+ }
7585
+ },
7586
+ "24": {
7587
+ start: {
7588
+ line: 67,
7589
+ column: 6
7590
+ },
7591
+ end: {
7592
+ line: 67,
7593
+ column: 24
7594
+ }
7595
+ },
7596
+ "25": {
7597
+ start: {
7598
+ line: 71,
7599
+ column: 2
7600
+ },
7601
+ end: {
7602
+ line: 71,
7603
+ column: 16
7604
+ }
7445
7605
  }
7446
7606
  },
7447
7607
  fnMap: {
@@ -7540,6 +7700,30 @@ function cov_168ppcd2fh() {
7540
7700
  }
7541
7701
  },
7542
7702
  line: 21
7703
+ },
7704
+ "4": {
7705
+ name: "(anonymous_4)",
7706
+ decl: {
7707
+ start: {
7708
+ line: 39,
7709
+ column: 33
7710
+ },
7711
+ end: {
7712
+ line: 39,
7713
+ column: 34
7714
+ }
7715
+ },
7716
+ loc: {
7717
+ start: {
7718
+ line: 43,
7719
+ column: 6
7720
+ },
7721
+ end: {
7722
+ line: 72,
7723
+ column: 1
7724
+ }
7725
+ },
7726
+ line: 43
7543
7727
  }
7544
7728
  },
7545
7729
  branchMap: {
@@ -7656,6 +7840,204 @@ function cov_168ppcd2fh() {
7656
7840
  }
7657
7841
  }],
7658
7842
  line: 28
7843
+ },
7844
+ "4": {
7845
+ loc: {
7846
+ start: {
7847
+ line: 49,
7848
+ column: 2
7849
+ },
7850
+ end: {
7851
+ line: 49,
7852
+ column: 74
7853
+ }
7854
+ },
7855
+ type: "if",
7856
+ locations: [{
7857
+ start: {
7858
+ line: 49,
7859
+ column: 2
7860
+ },
7861
+ end: {
7862
+ line: 49,
7863
+ column: 74
7864
+ }
7865
+ }, {
7866
+ start: {
7867
+ line: undefined,
7868
+ column: undefined
7869
+ },
7870
+ end: {
7871
+ line: undefined,
7872
+ column: undefined
7873
+ }
7874
+ }],
7875
+ line: 49
7876
+ },
7877
+ "5": {
7878
+ loc: {
7879
+ start: {
7880
+ line: 57,
7881
+ column: 4
7882
+ },
7883
+ end: {
7884
+ line: 57,
7885
+ column: 52
7886
+ }
7887
+ },
7888
+ type: "if",
7889
+ locations: [{
7890
+ start: {
7891
+ line: 57,
7892
+ column: 4
7893
+ },
7894
+ end: {
7895
+ line: 57,
7896
+ column: 52
7897
+ }
7898
+ }, {
7899
+ start: {
7900
+ line: undefined,
7901
+ column: undefined
7902
+ },
7903
+ end: {
7904
+ line: undefined,
7905
+ column: undefined
7906
+ }
7907
+ }],
7908
+ line: 57
7909
+ },
7910
+ "6": {
7911
+ loc: {
7912
+ start: {
7913
+ line: 60,
7914
+ column: 2
7915
+ },
7916
+ end: {
7917
+ line: 69,
7918
+ column: 3
7919
+ }
7920
+ },
7921
+ type: "if",
7922
+ locations: [{
7923
+ start: {
7924
+ line: 60,
7925
+ column: 2
7926
+ },
7927
+ end: {
7928
+ line: 69,
7929
+ column: 3
7930
+ }
7931
+ }, {
7932
+ start: {
7933
+ line: undefined,
7934
+ column: undefined
7935
+ },
7936
+ end: {
7937
+ line: undefined,
7938
+ column: undefined
7939
+ }
7940
+ }],
7941
+ line: 60
7942
+ },
7943
+ "7": {
7944
+ loc: {
7945
+ start: {
7946
+ line: 61,
7947
+ column: 4
7948
+ },
7949
+ end: {
7950
+ line: 68,
7951
+ column: 5
7952
+ }
7953
+ },
7954
+ type: "if",
7955
+ locations: [{
7956
+ start: {
7957
+ line: 61,
7958
+ column: 4
7959
+ },
7960
+ end: {
7961
+ line: 68,
7962
+ column: 5
7963
+ }
7964
+ }, {
7965
+ start: {
7966
+ line: 66,
7967
+ column: 11
7968
+ },
7969
+ end: {
7970
+ line: 68,
7971
+ column: 5
7972
+ }
7973
+ }],
7974
+ line: 61
7975
+ },
7976
+ "8": {
7977
+ loc: {
7978
+ start: {
7979
+ line: 62,
7980
+ column: 6
7981
+ },
7982
+ end: {
7983
+ line: 63,
7984
+ column: 52
7985
+ }
7986
+ },
7987
+ type: "binary-expr",
7988
+ locations: [{
7989
+ start: {
7990
+ line: 62,
7991
+ column: 6
7992
+ },
7993
+ end: {
7994
+ line: 62,
7995
+ column: 51
7996
+ }
7997
+ }, {
7998
+ start: {
7999
+ line: 63,
8000
+ column: 6
8001
+ },
8002
+ end: {
8003
+ line: 63,
8004
+ column: 52
8005
+ }
8006
+ }],
8007
+ line: 62
8008
+ },
8009
+ "9": {
8010
+ loc: {
8011
+ start: {
8012
+ line: 66,
8013
+ column: 11
8014
+ },
8015
+ end: {
8016
+ line: 68,
8017
+ column: 5
8018
+ }
8019
+ },
8020
+ type: "if",
8021
+ locations: [{
8022
+ start: {
8023
+ line: 66,
8024
+ column: 11
8025
+ },
8026
+ end: {
8027
+ line: 68,
8028
+ column: 5
8029
+ }
8030
+ }, {
8031
+ start: {
8032
+ line: undefined,
8033
+ column: undefined
8034
+ },
8035
+ end: {
8036
+ line: undefined,
8037
+ column: undefined
8038
+ }
8039
+ }],
8040
+ line: 66
7659
8041
  }
7660
8042
  },
7661
8043
  s: {
@@ -7668,22 +8050,45 @@ function cov_168ppcd2fh() {
7668
8050
  "6": 0,
7669
8051
  "7": 0,
7670
8052
  "8": 0,
7671
- "9": 0
8053
+ "9": 0,
8054
+ "10": 0,
8055
+ "11": 0,
8056
+ "12": 0,
8057
+ "13": 0,
8058
+ "14": 0,
8059
+ "15": 0,
8060
+ "16": 0,
8061
+ "17": 0,
8062
+ "18": 0,
8063
+ "19": 0,
8064
+ "20": 0,
8065
+ "21": 0,
8066
+ "22": 0,
8067
+ "23": 0,
8068
+ "24": 0,
8069
+ "25": 0
7672
8070
  },
7673
8071
  f: {
7674
8072
  "0": 0,
7675
8073
  "1": 0,
7676
8074
  "2": 0,
7677
- "3": 0
8075
+ "3": 0,
8076
+ "4": 0
7678
8077
  },
7679
8078
  b: {
7680
8079
  "0": [0],
7681
8080
  "1": [0],
7682
8081
  "2": [0, 0],
7683
- "3": [0, 0]
8082
+ "3": [0, 0],
8083
+ "4": [0, 0],
8084
+ "5": [0, 0],
8085
+ "6": [0, 0],
8086
+ "7": [0, 0],
8087
+ "8": [0, 0],
8088
+ "9": [0, 0]
7684
8089
  },
7685
8090
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
7686
- hash: "9ecc582a302b9bdbf29aeec23810f30ee8a6771a"
8091
+ hash: "fb9ac2d5c714df6f3f91c062daeca73a8c95f8f9"
7687
8092
  };
7688
8093
  var coverage = global[gcv] || (global[gcv] = {});
7689
8094
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -7741,11 +8146,68 @@ var getPhoneData = function getPhoneData(value, defaultCountry) {
7741
8146
  };
7742
8147
  }
7743
8148
  };
8149
+ cov_168ppcd2fh().s[10]++;
8150
+ var getCursorPosition = function getCursorPosition(_ref) {
8151
+ var event = _ref.event,
8152
+ prevFormattedValue = _ref.prevFormattedValue,
8153
+ newFormattedValue = _ref.newFormattedValue;
8154
+ cov_168ppcd2fh().f[4]++;
8155
+ var _ref2 = (cov_168ppcd2fh().s[11]++, event),
8156
+ inputType = _ref2.nativeEvent.inputType,
8157
+ _ref2$target = _ref2.target,
8158
+ newValue = _ref2$target.value,
8159
+ selectionStart = _ref2$target.selectionStart;
8160
+ cov_168ppcd2fh().s[12]++;
8161
+ if (selectionStart === newValue.length) {
8162
+ cov_168ppcd2fh().b[4][0]++;
8163
+ cov_168ppcd2fh().s[13]++;
8164
+ return newFormattedValue.length;
8165
+ } else {
8166
+ cov_168ppcd2fh().b[4][1]++;
8167
+ }
8168
+ var n = (cov_168ppcd2fh().s[14]++, prevFormattedValue.substring(0, selectionStart).replace(/\s/g, "").length);
8169
+ var cursor = (cov_168ppcd2fh().s[15]++, 0);
8170
+ cov_168ppcd2fh().s[16]++;
8171
+ for (var i = (cov_168ppcd2fh().s[17]++, 0); i < n; ++i, ++cursor) {
8172
+ cov_168ppcd2fh().s[18]++;
8173
+ if (newFormattedValue[cursor] === " ") {
8174
+ cov_168ppcd2fh().b[5][0]++;
8175
+ cov_168ppcd2fh().s[19]++;
8176
+ ++cursor;
8177
+ } else {
8178
+ cov_168ppcd2fh().b[5][1]++;
8179
+ }
8180
+ }
8181
+ cov_168ppcd2fh().s[20]++;
8182
+ if (inputType !== "deleteContentBackward") {
8183
+ cov_168ppcd2fh().b[6][0]++;
8184
+ cov_168ppcd2fh().s[21]++;
8185
+ if ((cov_168ppcd2fh().b[8][0]++, newFormattedValue[selectionStart - 1] === " ") && (cov_168ppcd2fh().b[8][1]++, prevFormattedValue[selectionStart - 1] === " ")) {
8186
+ cov_168ppcd2fh().b[7][0]++;
8187
+ cov_168ppcd2fh().s[22]++;
8188
+ return cursor + 2;
8189
+ } else {
8190
+ cov_168ppcd2fh().b[7][1]++;
8191
+ cov_168ppcd2fh().s[23]++;
8192
+ if (prevFormattedValue[selectionStart - 1] === " ") {
8193
+ cov_168ppcd2fh().b[9][0]++;
8194
+ cov_168ppcd2fh().s[24]++;
8195
+ return cursor + 1;
8196
+ } else {
8197
+ cov_168ppcd2fh().b[9][1]++;
8198
+ }
8199
+ }
8200
+ } else {
8201
+ cov_168ppcd2fh().b[6][1]++;
8202
+ }
8203
+ cov_168ppcd2fh().s[25]++;
8204
+ return cursor;
8205
+ };
7744
8206
 
7745
8207
  var _excluded$2 = ["value", "onChange", "className", "error", "defaultCountry", "selectProps"];
7746
8208
  function cov_2n7wvllbx0() {
7747
8209
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PhoneNumber/PhoneNumberInput.jsx";
7748
- var hash = "ff15f225b3da68d847ab6fb0d3ba460a2861d5eb";
8210
+ var hash = "55b4fc779a8f988a9c7a1b6f238c4dc519de0816";
7749
8211
  var global = new Function("return this")();
7750
8212
  var gcv = "__coverage__";
7751
8213
  var coverageData = {
@@ -7757,7 +8219,7 @@ function cov_2n7wvllbx0() {
7757
8219
  column: 25
7758
8220
  },
7759
8221
  end: {
7760
- line: 78,
8222
+ line: 92,
7761
8223
  column: 1
7762
8224
  }
7763
8225
  },
@@ -7803,22 +8265,22 @@ function cov_2n7wvllbx0() {
7803
8265
  },
7804
8266
  "5": {
7805
8267
  start: {
7806
- line: 34,
7807
- column: 30
8268
+ line: 33,
8269
+ column: 27
7808
8270
  },
7809
8271
  end: {
7810
- line: 37,
7811
- column: 5
8272
+ line: 33,
8273
+ column: 70
7812
8274
  }
7813
8275
  },
7814
8276
  "6": {
7815
8277
  start: {
7816
8278
  line: 35,
7817
- column: 6
8279
+ column: 30
7818
8280
  },
7819
8281
  end: {
7820
- line: 35,
7821
- column: 22
8282
+ line: 38,
8283
+ column: 5
7822
8284
  }
7823
8285
  },
7824
8286
  "7": {
@@ -7828,96 +8290,136 @@ function cov_2n7wvllbx0() {
7828
8290
  },
7829
8291
  end: {
7830
8292
  line: 36,
7831
- column: 36
8293
+ column: 22
7832
8294
  }
7833
8295
  },
7834
8296
  "8": {
7835
8297
  start: {
7836
- line: 39,
7837
- column: 25
8298
+ line: 37,
8299
+ column: 6
7838
8300
  },
7839
8301
  end: {
7840
- line: 43,
7841
- column: 5
8302
+ line: 37,
8303
+ column: 36
7842
8304
  }
7843
8305
  },
7844
8306
  "9": {
7845
8307
  start: {
7846
8308
  line: 40,
7847
- column: 39
8309
+ column: 25
7848
8310
  },
7849
8311
  end: {
7850
- line: 40,
7851
- column: 74
8312
+ line: 57,
8313
+ column: 5
7852
8314
  }
7853
8315
  },
7854
8316
  "10": {
7855
8317
  start: {
7856
8318
  line: 41,
7857
- column: 6
8319
+ column: 51
7858
8320
  },
7859
8321
  end: {
7860
- line: 41,
7861
- column: 37
8322
+ line: 44,
8323
+ column: 7
7862
8324
  }
7863
8325
  },
7864
8326
  "11": {
7865
8327
  start: {
7866
- line: 42,
8328
+ line: 45,
7867
8329
  column: 6
7868
8330
  },
7869
8331
  end: {
7870
- line: 42,
7871
- column: 26
8332
+ line: 45,
8333
+ column: 37
7872
8334
  }
7873
8335
  },
7874
8336
  "12": {
7875
8337
  start: {
7876
- line: 45,
8338
+ line: 46,
8339
+ column: 6
8340
+ },
8341
+ end: {
8342
+ line: 46,
8343
+ column: 29
8344
+ }
8345
+ },
8346
+ "13": {
8347
+ start: {
8348
+ line: 48,
8349
+ column: 21
8350
+ },
8351
+ end: {
8352
+ line: 52,
8353
+ column: 8
8354
+ }
8355
+ },
8356
+ "14": {
8357
+ start: {
8358
+ line: 54,
8359
+ column: 6
8360
+ },
8361
+ end: {
8362
+ line: 56,
8363
+ column: 8
8364
+ }
8365
+ },
8366
+ "15": {
8367
+ start: {
8368
+ line: 55,
8369
+ column: 8
8370
+ },
8371
+ end: {
8372
+ line: 55,
8373
+ column: 54
8374
+ }
8375
+ },
8376
+ "16": {
8377
+ start: {
8378
+ line: 59,
7877
8379
  column: 4
7878
8380
  },
7879
8381
  end: {
7880
- line: 49,
8382
+ line: 63,
7881
8383
  column: 16
7882
8384
  }
7883
8385
  },
7884
- "13": {
8386
+ "17": {
7885
8387
  start: {
7886
- line: 46,
8388
+ line: 60,
7887
8389
  column: 6
7888
8390
  },
7889
8391
  end: {
7890
- line: 48,
8392
+ line: 62,
7891
8393
  column: 7
7892
8394
  }
7893
8395
  },
7894
- "14": {
8396
+ "18": {
7895
8397
  start: {
7896
- line: 47,
8398
+ line: 61,
7897
8399
  column: 8
7898
8400
  },
7899
8401
  end: {
7900
- line: 47,
8402
+ line: 61,
7901
8403
  column: 64
7902
8404
  }
7903
8405
  },
7904
- "15": {
8406
+ "19": {
7905
8407
  start: {
7906
- line: 51,
8408
+ line: 65,
7907
8409
  column: 4
7908
8410
  },
7909
8411
  end: {
7910
- line: 76,
8412
+ line: 90,
7911
8413
  column: 6
7912
8414
  }
7913
8415
  },
7914
- "16": {
8416
+ "20": {
7915
8417
  start: {
7916
- line: 80,
8418
+ line: 94,
7917
8419
  column: 0
7918
8420
  },
7919
8421
  end: {
7920
- line: 80,
8422
+ line: 94,
7921
8423
  column: 50
7922
8424
  }
7923
8425
  }
@@ -7941,7 +8443,7 @@ function cov_2n7wvllbx0() {
7941
8443
  column: 7
7942
8444
  },
7943
8445
  end: {
7944
- line: 77,
8446
+ line: 91,
7945
8447
  column: 3
7946
8448
  }
7947
8449
  },
@@ -7951,73 +8453,97 @@ function cov_2n7wvllbx0() {
7951
8453
  name: "(anonymous_1)",
7952
8454
  decl: {
7953
8455
  start: {
7954
- line: 34,
8456
+ line: 35,
7955
8457
  column: 30
7956
8458
  },
7957
8459
  end: {
7958
- line: 34,
8460
+ line: 35,
7959
8461
  column: 31
7960
8462
  }
7961
8463
  },
7962
8464
  loc: {
7963
8465
  start: {
7964
- line: 34,
8466
+ line: 35,
7965
8467
  column: 39
7966
8468
  },
7967
8469
  end: {
7968
- line: 37,
8470
+ line: 38,
7969
8471
  column: 5
7970
8472
  }
7971
8473
  },
7972
- line: 34
8474
+ line: 35
7973
8475
  },
7974
8476
  "2": {
7975
8477
  name: "(anonymous_2)",
7976
8478
  decl: {
7977
8479
  start: {
7978
- line: 39,
8480
+ line: 40,
7979
8481
  column: 25
7980
8482
  },
7981
8483
  end: {
7982
- line: 39,
8484
+ line: 40,
7983
8485
  column: 26
7984
8486
  }
7985
8487
  },
7986
8488
  loc: {
7987
8489
  start: {
7988
- line: 39,
7989
- column: 52
8490
+ line: 40,
8491
+ column: 34
7990
8492
  },
7991
8493
  end: {
7992
- line: 43,
8494
+ line: 57,
7993
8495
  column: 5
7994
8496
  }
7995
8497
  },
7996
- line: 39
8498
+ line: 40
7997
8499
  },
7998
8500
  "3": {
7999
8501
  name: "(anonymous_3)",
8000
8502
  decl: {
8001
8503
  start: {
8002
- line: 45,
8504
+ line: 54,
8505
+ column: 35
8506
+ },
8507
+ end: {
8508
+ line: 54,
8509
+ column: 36
8510
+ }
8511
+ },
8512
+ loc: {
8513
+ start: {
8514
+ line: 55,
8515
+ column: 8
8516
+ },
8517
+ end: {
8518
+ line: 55,
8519
+ column: 54
8520
+ }
8521
+ },
8522
+ line: 55
8523
+ },
8524
+ "4": {
8525
+ name: "(anonymous_4)",
8526
+ decl: {
8527
+ start: {
8528
+ line: 59,
8003
8529
  column: 14
8004
8530
  },
8005
8531
  end: {
8006
- line: 45,
8532
+ line: 59,
8007
8533
  column: 15
8008
8534
  }
8009
8535
  },
8010
8536
  loc: {
8011
8537
  start: {
8012
- line: 45,
8538
+ line: 59,
8013
8539
  column: 20
8014
8540
  },
8015
8541
  end: {
8016
- line: 49,
8542
+ line: 63,
8017
8543
  column: 5
8018
8544
  }
8019
8545
  },
8020
- line: 45
8546
+ line: 59
8021
8547
  }
8022
8548
  },
8023
8549
  branchMap: {
@@ -8129,22 +8655,22 @@ function cov_2n7wvllbx0() {
8129
8655
  "4": {
8130
8656
  loc: {
8131
8657
  start: {
8132
- line: 46,
8658
+ line: 60,
8133
8659
  column: 6
8134
8660
  },
8135
8661
  end: {
8136
- line: 48,
8662
+ line: 62,
8137
8663
  column: 7
8138
8664
  }
8139
8665
  },
8140
8666
  type: "if",
8141
8667
  locations: [{
8142
8668
  start: {
8143
- line: 46,
8669
+ line: 60,
8144
8670
  column: 6
8145
8671
  },
8146
8672
  end: {
8147
- line: 48,
8673
+ line: 62,
8148
8674
  column: 7
8149
8675
  }
8150
8676
  }, {
@@ -8157,7 +8683,7 @@ function cov_2n7wvllbx0() {
8157
8683
  column: undefined
8158
8684
  }
8159
8685
  }],
8160
- line: 46
8686
+ line: 60
8161
8687
  }
8162
8688
  },
8163
8689
  s: {
@@ -8177,13 +8703,18 @@ function cov_2n7wvllbx0() {
8177
8703
  "13": 0,
8178
8704
  "14": 0,
8179
8705
  "15": 0,
8180
- "16": 0
8706
+ "16": 0,
8707
+ "17": 0,
8708
+ "18": 0,
8709
+ "19": 0,
8710
+ "20": 0
8181
8711
  },
8182
8712
  f: {
8183
8713
  "0": 0,
8184
8714
  "1": 0,
8185
8715
  "2": 0,
8186
- "3": 0
8716
+ "3": 0,
8717
+ "4": 0
8187
8718
  },
8188
8719
  b: {
8189
8720
  "0": [0],
@@ -8193,7 +8724,7 @@ function cov_2n7wvllbx0() {
8193
8724
  "4": [0, 0]
8194
8725
  },
8195
8726
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
8196
- hash: "ff15f225b3da68d847ab6fb0d3ba460a2861d5eb"
8727
+ hash: "55b4fc779a8f988a9c7a1b6f238c4dc519de0816"
8197
8728
  };
8198
8729
  var coverage = global[gcv] || (global[gcv] = {});
8199
8730
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -8229,39 +8760,50 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/forwardRef(functio
8229
8760
  country = _ref4[0],
8230
8761
  setCountry = _ref4[1];
8231
8762
  var prefix = (cov_2n7wvllbx0().s[4]++, country ? (cov_2n7wvllbx0().b[3][0]++, "+".concat(getCountryCallingCode(country))) : (cov_2n7wvllbx0().b[3][1]++, ""));
8232
- cov_2n7wvllbx0().s[5]++;
8763
+ var formattedValue = (cov_2n7wvllbx0().s[5]++, formatIncompletePhoneNumber(value, country));
8764
+ cov_2n7wvllbx0().s[6]++;
8233
8765
  var handleInputChange = function handleInputChange(value) {
8234
8766
  cov_2n7wvllbx0().f[1]++;
8235
- cov_2n7wvllbx0().s[6]++;
8236
- onChange(value);
8237
8767
  cov_2n7wvllbx0().s[7]++;
8768
+ onChange(value);
8769
+ cov_2n7wvllbx0().s[8]++;
8238
8770
  internalValue.current = value;
8239
8771
  };
8240
- cov_2n7wvllbx0().s[8]++;
8241
- var handleChange = function handleChange(_ref5) {
8242
- var value = _ref5.target.value;
8772
+ cov_2n7wvllbx0().s[9]++;
8773
+ var handleChange = function handleChange(event) {
8243
8774
  cov_2n7wvllbx0().f[2]++;
8244
- var _ref6 = (cov_2n7wvllbx0().s[9]++, getPhoneData(value, defaultCountry)),
8245
- phoneNumber = _ref6.phoneNumber,
8246
- country = _ref6.country;
8247
- cov_2n7wvllbx0().s[10]++;
8248
- handleInputChange(phoneNumber);
8775
+ var _ref5 = (cov_2n7wvllbx0().s[10]++, getPhoneData(event.target.value, country)),
8776
+ phoneNumber = _ref5.phoneNumber,
8777
+ newCountry = _ref5.country;
8249
8778
  cov_2n7wvllbx0().s[11]++;
8250
- setCountry(country);
8779
+ handleInputChange(phoneNumber);
8780
+ cov_2n7wvllbx0().s[12]++;
8781
+ setCountry(newCountry);
8782
+ var cursor = (cov_2n7wvllbx0().s[13]++, getCursorPosition({
8783
+ event: event,
8784
+ prevFormattedValue: formattedValue,
8785
+ newFormattedValue: formatIncompletePhoneNumber(phoneNumber, newCountry)
8786
+ }));
8787
+ cov_2n7wvllbx0().s[14]++;
8788
+ window.requestAnimationFrame(function () {
8789
+ cov_2n7wvllbx0().f[3]++;
8790
+ cov_2n7wvllbx0().s[15]++;
8791
+ return event.target.setSelectionRange(cursor, cursor);
8792
+ });
8251
8793
  };
8252
- cov_2n7wvllbx0().s[12]++;
8794
+ cov_2n7wvllbx0().s[16]++;
8253
8795
  useEffect(function () {
8254
- cov_2n7wvllbx0().f[3]++;
8255
- cov_2n7wvllbx0().s[13]++;
8796
+ cov_2n7wvllbx0().f[4]++;
8797
+ cov_2n7wvllbx0().s[17]++;
8256
8798
  if (internalValue.current !== value) {
8257
8799
  cov_2n7wvllbx0().b[4][0]++;
8258
- cov_2n7wvllbx0().s[14]++;
8800
+ cov_2n7wvllbx0().s[18]++;
8259
8801
  setCountry(getPhoneData(value, defaultCountry).country);
8260
8802
  } else {
8261
8803
  cov_2n7wvllbx0().b[4][1]++;
8262
8804
  }
8263
8805
  }, [value]);
8264
- cov_2n7wvllbx0().s[15]++;
8806
+ cov_2n7wvllbx0().s[19]++;
8265
8807
  return /*#__PURE__*/React.createElement("div", {
8266
8808
  className: classnames([className])
8267
8809
  }, /*#__PURE__*/React.createElement(Input, _extends({
@@ -8269,7 +8811,7 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/forwardRef(functio
8269
8811
  error: error,
8270
8812
  ref: ref,
8271
8813
  type: "tel",
8272
- value: formatIncompletePhoneNumber(value, country),
8814
+ value: formattedValue,
8273
8815
  placeholder: t("neetoMolecules.phoneNumberInput.placeholder", {
8274
8816
  prefix: prefix
8275
8817
  }),
@@ -8283,7 +8825,7 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/forwardRef(functio
8283
8825
  onChange: handleChange
8284
8826
  }, inputProps)));
8285
8827
  }));
8286
- cov_2n7wvllbx0().s[16]++;
8828
+ cov_2n7wvllbx0().s[20]++;
8287
8829
  PhoneNumberInput.displayName = "PhoneNumberInput";
8288
8830
 
8289
8831
  var _excluded$1 = ["name"];