@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.
- package/dist/CustomDomain.cjs.js +349 -339
- package/dist/CustomDomain.cjs.js.map +1 -1
- package/dist/CustomDomain.js +349 -339
- package/dist/CustomDomain.js.map +1 -1
- package/dist/DynamicVariables.cjs.js +1 -1
- package/dist/DynamicVariables.js +1 -1
- package/dist/Header.cjs.js +67 -53
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +67 -53
- package/dist/Header.js.map +1 -1
- package/dist/LoginPage.cjs.js +23 -18
- package/dist/LoginPage.cjs.js.map +1 -1
- package/dist/LoginPage.js +23 -18
- package/dist/LoginPage.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +425 -565
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +426 -566
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PhoneNumber.cjs.js +628 -86
- package/dist/PhoneNumber.cjs.js.map +1 -1
- package/dist/PhoneNumber.js +628 -86
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/Rename.cjs.js +240 -226
- package/dist/Rename.cjs.js.map +1 -1
- package/dist/Rename.js +241 -227
- package/dist/Rename.js.map +1 -1
- package/dist/ShareViaLink.cjs.js +8 -7
- package/dist/ShareViaLink.cjs.js.map +1 -1
- package/dist/ShareViaLink.js +8 -7
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.cjs.js +1 -1
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.cjs.js +5 -6
- package/dist/SubHeader.cjs.js.map +1 -1
- package/dist/SubHeader.js +5 -6
- package/dist/SubHeader.js.map +1 -1
- package/package.json +2 -2
- package/src/translations/en.json +26 -7
- package/types/Sidebar.d.ts +1 -1
package/dist/PhoneNumber.cjs.js
CHANGED
|
@@ -7365,7 +7365,7 @@ var CountryPicker = function CountryPicker(_ref) {
|
|
|
7365
7365
|
|
|
7366
7366
|
function cov_168ppcd2fh() {
|
|
7367
7367
|
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PhoneNumber/utils.js";
|
|
7368
|
-
var hash = "
|
|
7368
|
+
var hash = "fb9ac2d5c714df6f3f91c062daeca73a8c95f8f9";
|
|
7369
7369
|
var global = new Function("return this")();
|
|
7370
7370
|
var gcv = "__coverage__";
|
|
7371
7371
|
var coverageData = {
|
|
@@ -7470,6 +7470,166 @@ function cov_168ppcd2fh() {
|
|
|
7470
7470
|
line: 35,
|
|
7471
7471
|
column: 6
|
|
7472
7472
|
}
|
|
7473
|
+
},
|
|
7474
|
+
"10": {
|
|
7475
|
+
start: {
|
|
7476
|
+
line: 39,
|
|
7477
|
+
column: 33
|
|
7478
|
+
},
|
|
7479
|
+
end: {
|
|
7480
|
+
line: 72,
|
|
7481
|
+
column: 1
|
|
7482
|
+
}
|
|
7483
|
+
},
|
|
7484
|
+
"11": {
|
|
7485
|
+
start: {
|
|
7486
|
+
line: 47,
|
|
7487
|
+
column: 6
|
|
7488
|
+
},
|
|
7489
|
+
end: {
|
|
7490
|
+
line: 47,
|
|
7491
|
+
column: 11
|
|
7492
|
+
}
|
|
7493
|
+
},
|
|
7494
|
+
"12": {
|
|
7495
|
+
start: {
|
|
7496
|
+
line: 49,
|
|
7497
|
+
column: 2
|
|
7498
|
+
},
|
|
7499
|
+
end: {
|
|
7500
|
+
line: 49,
|
|
7501
|
+
column: 74
|
|
7502
|
+
}
|
|
7503
|
+
},
|
|
7504
|
+
"13": {
|
|
7505
|
+
start: {
|
|
7506
|
+
line: 49,
|
|
7507
|
+
column: 42
|
|
7508
|
+
},
|
|
7509
|
+
end: {
|
|
7510
|
+
line: 49,
|
|
7511
|
+
column: 74
|
|
7512
|
+
}
|
|
7513
|
+
},
|
|
7514
|
+
"14": {
|
|
7515
|
+
start: {
|
|
7516
|
+
line: 51,
|
|
7517
|
+
column: 12
|
|
7518
|
+
},
|
|
7519
|
+
end: {
|
|
7520
|
+
line: 53,
|
|
7521
|
+
column: 30
|
|
7522
|
+
}
|
|
7523
|
+
},
|
|
7524
|
+
"15": {
|
|
7525
|
+
start: {
|
|
7526
|
+
line: 55,
|
|
7527
|
+
column: 15
|
|
7528
|
+
},
|
|
7529
|
+
end: {
|
|
7530
|
+
line: 55,
|
|
7531
|
+
column: 16
|
|
7532
|
+
}
|
|
7533
|
+
},
|
|
7534
|
+
"16": {
|
|
7535
|
+
start: {
|
|
7536
|
+
line: 56,
|
|
7537
|
+
column: 2
|
|
7538
|
+
},
|
|
7539
|
+
end: {
|
|
7540
|
+
line: 58,
|
|
7541
|
+
column: 3
|
|
7542
|
+
}
|
|
7543
|
+
},
|
|
7544
|
+
"17": {
|
|
7545
|
+
start: {
|
|
7546
|
+
line: 56,
|
|
7547
|
+
column: 15
|
|
7548
|
+
},
|
|
7549
|
+
end: {
|
|
7550
|
+
line: 56,
|
|
7551
|
+
column: 16
|
|
7552
|
+
}
|
|
7553
|
+
},
|
|
7554
|
+
"18": {
|
|
7555
|
+
start: {
|
|
7556
|
+
line: 57,
|
|
7557
|
+
column: 4
|
|
7558
|
+
},
|
|
7559
|
+
end: {
|
|
7560
|
+
line: 57,
|
|
7561
|
+
column: 52
|
|
7562
|
+
}
|
|
7563
|
+
},
|
|
7564
|
+
"19": {
|
|
7565
|
+
start: {
|
|
7566
|
+
line: 57,
|
|
7567
|
+
column: 43
|
|
7568
|
+
},
|
|
7569
|
+
end: {
|
|
7570
|
+
line: 57,
|
|
7571
|
+
column: 52
|
|
7572
|
+
}
|
|
7573
|
+
},
|
|
7574
|
+
"20": {
|
|
7575
|
+
start: {
|
|
7576
|
+
line: 60,
|
|
7577
|
+
column: 2
|
|
7578
|
+
},
|
|
7579
|
+
end: {
|
|
7580
|
+
line: 69,
|
|
7581
|
+
column: 3
|
|
7582
|
+
}
|
|
7583
|
+
},
|
|
7584
|
+
"21": {
|
|
7585
|
+
start: {
|
|
7586
|
+
line: 61,
|
|
7587
|
+
column: 4
|
|
7588
|
+
},
|
|
7589
|
+
end: {
|
|
7590
|
+
line: 68,
|
|
7591
|
+
column: 5
|
|
7592
|
+
}
|
|
7593
|
+
},
|
|
7594
|
+
"22": {
|
|
7595
|
+
start: {
|
|
7596
|
+
line: 65,
|
|
7597
|
+
column: 6
|
|
7598
|
+
},
|
|
7599
|
+
end: {
|
|
7600
|
+
line: 65,
|
|
7601
|
+
column: 24
|
|
7602
|
+
}
|
|
7603
|
+
},
|
|
7604
|
+
"23": {
|
|
7605
|
+
start: {
|
|
7606
|
+
line: 66,
|
|
7607
|
+
column: 11
|
|
7608
|
+
},
|
|
7609
|
+
end: {
|
|
7610
|
+
line: 68,
|
|
7611
|
+
column: 5
|
|
7612
|
+
}
|
|
7613
|
+
},
|
|
7614
|
+
"24": {
|
|
7615
|
+
start: {
|
|
7616
|
+
line: 67,
|
|
7617
|
+
column: 6
|
|
7618
|
+
},
|
|
7619
|
+
end: {
|
|
7620
|
+
line: 67,
|
|
7621
|
+
column: 24
|
|
7622
|
+
}
|
|
7623
|
+
},
|
|
7624
|
+
"25": {
|
|
7625
|
+
start: {
|
|
7626
|
+
line: 71,
|
|
7627
|
+
column: 2
|
|
7628
|
+
},
|
|
7629
|
+
end: {
|
|
7630
|
+
line: 71,
|
|
7631
|
+
column: 16
|
|
7632
|
+
}
|
|
7473
7633
|
}
|
|
7474
7634
|
},
|
|
7475
7635
|
fnMap: {
|
|
@@ -7568,6 +7728,30 @@ function cov_168ppcd2fh() {
|
|
|
7568
7728
|
}
|
|
7569
7729
|
},
|
|
7570
7730
|
line: 21
|
|
7731
|
+
},
|
|
7732
|
+
"4": {
|
|
7733
|
+
name: "(anonymous_4)",
|
|
7734
|
+
decl: {
|
|
7735
|
+
start: {
|
|
7736
|
+
line: 39,
|
|
7737
|
+
column: 33
|
|
7738
|
+
},
|
|
7739
|
+
end: {
|
|
7740
|
+
line: 39,
|
|
7741
|
+
column: 34
|
|
7742
|
+
}
|
|
7743
|
+
},
|
|
7744
|
+
loc: {
|
|
7745
|
+
start: {
|
|
7746
|
+
line: 43,
|
|
7747
|
+
column: 6
|
|
7748
|
+
},
|
|
7749
|
+
end: {
|
|
7750
|
+
line: 72,
|
|
7751
|
+
column: 1
|
|
7752
|
+
}
|
|
7753
|
+
},
|
|
7754
|
+
line: 43
|
|
7571
7755
|
}
|
|
7572
7756
|
},
|
|
7573
7757
|
branchMap: {
|
|
@@ -7684,6 +7868,204 @@ function cov_168ppcd2fh() {
|
|
|
7684
7868
|
}
|
|
7685
7869
|
}],
|
|
7686
7870
|
line: 28
|
|
7871
|
+
},
|
|
7872
|
+
"4": {
|
|
7873
|
+
loc: {
|
|
7874
|
+
start: {
|
|
7875
|
+
line: 49,
|
|
7876
|
+
column: 2
|
|
7877
|
+
},
|
|
7878
|
+
end: {
|
|
7879
|
+
line: 49,
|
|
7880
|
+
column: 74
|
|
7881
|
+
}
|
|
7882
|
+
},
|
|
7883
|
+
type: "if",
|
|
7884
|
+
locations: [{
|
|
7885
|
+
start: {
|
|
7886
|
+
line: 49,
|
|
7887
|
+
column: 2
|
|
7888
|
+
},
|
|
7889
|
+
end: {
|
|
7890
|
+
line: 49,
|
|
7891
|
+
column: 74
|
|
7892
|
+
}
|
|
7893
|
+
}, {
|
|
7894
|
+
start: {
|
|
7895
|
+
line: undefined,
|
|
7896
|
+
column: undefined
|
|
7897
|
+
},
|
|
7898
|
+
end: {
|
|
7899
|
+
line: undefined,
|
|
7900
|
+
column: undefined
|
|
7901
|
+
}
|
|
7902
|
+
}],
|
|
7903
|
+
line: 49
|
|
7904
|
+
},
|
|
7905
|
+
"5": {
|
|
7906
|
+
loc: {
|
|
7907
|
+
start: {
|
|
7908
|
+
line: 57,
|
|
7909
|
+
column: 4
|
|
7910
|
+
},
|
|
7911
|
+
end: {
|
|
7912
|
+
line: 57,
|
|
7913
|
+
column: 52
|
|
7914
|
+
}
|
|
7915
|
+
},
|
|
7916
|
+
type: "if",
|
|
7917
|
+
locations: [{
|
|
7918
|
+
start: {
|
|
7919
|
+
line: 57,
|
|
7920
|
+
column: 4
|
|
7921
|
+
},
|
|
7922
|
+
end: {
|
|
7923
|
+
line: 57,
|
|
7924
|
+
column: 52
|
|
7925
|
+
}
|
|
7926
|
+
}, {
|
|
7927
|
+
start: {
|
|
7928
|
+
line: undefined,
|
|
7929
|
+
column: undefined
|
|
7930
|
+
},
|
|
7931
|
+
end: {
|
|
7932
|
+
line: undefined,
|
|
7933
|
+
column: undefined
|
|
7934
|
+
}
|
|
7935
|
+
}],
|
|
7936
|
+
line: 57
|
|
7937
|
+
},
|
|
7938
|
+
"6": {
|
|
7939
|
+
loc: {
|
|
7940
|
+
start: {
|
|
7941
|
+
line: 60,
|
|
7942
|
+
column: 2
|
|
7943
|
+
},
|
|
7944
|
+
end: {
|
|
7945
|
+
line: 69,
|
|
7946
|
+
column: 3
|
|
7947
|
+
}
|
|
7948
|
+
},
|
|
7949
|
+
type: "if",
|
|
7950
|
+
locations: [{
|
|
7951
|
+
start: {
|
|
7952
|
+
line: 60,
|
|
7953
|
+
column: 2
|
|
7954
|
+
},
|
|
7955
|
+
end: {
|
|
7956
|
+
line: 69,
|
|
7957
|
+
column: 3
|
|
7958
|
+
}
|
|
7959
|
+
}, {
|
|
7960
|
+
start: {
|
|
7961
|
+
line: undefined,
|
|
7962
|
+
column: undefined
|
|
7963
|
+
},
|
|
7964
|
+
end: {
|
|
7965
|
+
line: undefined,
|
|
7966
|
+
column: undefined
|
|
7967
|
+
}
|
|
7968
|
+
}],
|
|
7969
|
+
line: 60
|
|
7970
|
+
},
|
|
7971
|
+
"7": {
|
|
7972
|
+
loc: {
|
|
7973
|
+
start: {
|
|
7974
|
+
line: 61,
|
|
7975
|
+
column: 4
|
|
7976
|
+
},
|
|
7977
|
+
end: {
|
|
7978
|
+
line: 68,
|
|
7979
|
+
column: 5
|
|
7980
|
+
}
|
|
7981
|
+
},
|
|
7982
|
+
type: "if",
|
|
7983
|
+
locations: [{
|
|
7984
|
+
start: {
|
|
7985
|
+
line: 61,
|
|
7986
|
+
column: 4
|
|
7987
|
+
},
|
|
7988
|
+
end: {
|
|
7989
|
+
line: 68,
|
|
7990
|
+
column: 5
|
|
7991
|
+
}
|
|
7992
|
+
}, {
|
|
7993
|
+
start: {
|
|
7994
|
+
line: 66,
|
|
7995
|
+
column: 11
|
|
7996
|
+
},
|
|
7997
|
+
end: {
|
|
7998
|
+
line: 68,
|
|
7999
|
+
column: 5
|
|
8000
|
+
}
|
|
8001
|
+
}],
|
|
8002
|
+
line: 61
|
|
8003
|
+
},
|
|
8004
|
+
"8": {
|
|
8005
|
+
loc: {
|
|
8006
|
+
start: {
|
|
8007
|
+
line: 62,
|
|
8008
|
+
column: 6
|
|
8009
|
+
},
|
|
8010
|
+
end: {
|
|
8011
|
+
line: 63,
|
|
8012
|
+
column: 52
|
|
8013
|
+
}
|
|
8014
|
+
},
|
|
8015
|
+
type: "binary-expr",
|
|
8016
|
+
locations: [{
|
|
8017
|
+
start: {
|
|
8018
|
+
line: 62,
|
|
8019
|
+
column: 6
|
|
8020
|
+
},
|
|
8021
|
+
end: {
|
|
8022
|
+
line: 62,
|
|
8023
|
+
column: 51
|
|
8024
|
+
}
|
|
8025
|
+
}, {
|
|
8026
|
+
start: {
|
|
8027
|
+
line: 63,
|
|
8028
|
+
column: 6
|
|
8029
|
+
},
|
|
8030
|
+
end: {
|
|
8031
|
+
line: 63,
|
|
8032
|
+
column: 52
|
|
8033
|
+
}
|
|
8034
|
+
}],
|
|
8035
|
+
line: 62
|
|
8036
|
+
},
|
|
8037
|
+
"9": {
|
|
8038
|
+
loc: {
|
|
8039
|
+
start: {
|
|
8040
|
+
line: 66,
|
|
8041
|
+
column: 11
|
|
8042
|
+
},
|
|
8043
|
+
end: {
|
|
8044
|
+
line: 68,
|
|
8045
|
+
column: 5
|
|
8046
|
+
}
|
|
8047
|
+
},
|
|
8048
|
+
type: "if",
|
|
8049
|
+
locations: [{
|
|
8050
|
+
start: {
|
|
8051
|
+
line: 66,
|
|
8052
|
+
column: 11
|
|
8053
|
+
},
|
|
8054
|
+
end: {
|
|
8055
|
+
line: 68,
|
|
8056
|
+
column: 5
|
|
8057
|
+
}
|
|
8058
|
+
}, {
|
|
8059
|
+
start: {
|
|
8060
|
+
line: undefined,
|
|
8061
|
+
column: undefined
|
|
8062
|
+
},
|
|
8063
|
+
end: {
|
|
8064
|
+
line: undefined,
|
|
8065
|
+
column: undefined
|
|
8066
|
+
}
|
|
8067
|
+
}],
|
|
8068
|
+
line: 66
|
|
7687
8069
|
}
|
|
7688
8070
|
},
|
|
7689
8071
|
s: {
|
|
@@ -7696,22 +8078,45 @@ function cov_168ppcd2fh() {
|
|
|
7696
8078
|
"6": 0,
|
|
7697
8079
|
"7": 0,
|
|
7698
8080
|
"8": 0,
|
|
7699
|
-
"9": 0
|
|
8081
|
+
"9": 0,
|
|
8082
|
+
"10": 0,
|
|
8083
|
+
"11": 0,
|
|
8084
|
+
"12": 0,
|
|
8085
|
+
"13": 0,
|
|
8086
|
+
"14": 0,
|
|
8087
|
+
"15": 0,
|
|
8088
|
+
"16": 0,
|
|
8089
|
+
"17": 0,
|
|
8090
|
+
"18": 0,
|
|
8091
|
+
"19": 0,
|
|
8092
|
+
"20": 0,
|
|
8093
|
+
"21": 0,
|
|
8094
|
+
"22": 0,
|
|
8095
|
+
"23": 0,
|
|
8096
|
+
"24": 0,
|
|
8097
|
+
"25": 0
|
|
7700
8098
|
},
|
|
7701
8099
|
f: {
|
|
7702
8100
|
"0": 0,
|
|
7703
8101
|
"1": 0,
|
|
7704
8102
|
"2": 0,
|
|
7705
|
-
"3": 0
|
|
8103
|
+
"3": 0,
|
|
8104
|
+
"4": 0
|
|
7706
8105
|
},
|
|
7707
8106
|
b: {
|
|
7708
8107
|
"0": [0],
|
|
7709
8108
|
"1": [0],
|
|
7710
8109
|
"2": [0, 0],
|
|
7711
|
-
"3": [0, 0]
|
|
8110
|
+
"3": [0, 0],
|
|
8111
|
+
"4": [0, 0],
|
|
8112
|
+
"5": [0, 0],
|
|
8113
|
+
"6": [0, 0],
|
|
8114
|
+
"7": [0, 0],
|
|
8115
|
+
"8": [0, 0],
|
|
8116
|
+
"9": [0, 0]
|
|
7712
8117
|
},
|
|
7713
8118
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7714
|
-
hash: "
|
|
8119
|
+
hash: "fb9ac2d5c714df6f3f91c062daeca73a8c95f8f9"
|
|
7715
8120
|
};
|
|
7716
8121
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
7717
8122
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -7769,11 +8174,68 @@ var getPhoneData = function getPhoneData(value, defaultCountry) {
|
|
|
7769
8174
|
};
|
|
7770
8175
|
}
|
|
7771
8176
|
};
|
|
8177
|
+
cov_168ppcd2fh().s[10]++;
|
|
8178
|
+
var getCursorPosition = function getCursorPosition(_ref) {
|
|
8179
|
+
var event = _ref.event,
|
|
8180
|
+
prevFormattedValue = _ref.prevFormattedValue,
|
|
8181
|
+
newFormattedValue = _ref.newFormattedValue;
|
|
8182
|
+
cov_168ppcd2fh().f[4]++;
|
|
8183
|
+
var _ref2 = (cov_168ppcd2fh().s[11]++, event),
|
|
8184
|
+
inputType = _ref2.nativeEvent.inputType,
|
|
8185
|
+
_ref2$target = _ref2.target,
|
|
8186
|
+
newValue = _ref2$target.value,
|
|
8187
|
+
selectionStart = _ref2$target.selectionStart;
|
|
8188
|
+
cov_168ppcd2fh().s[12]++;
|
|
8189
|
+
if (selectionStart === newValue.length) {
|
|
8190
|
+
cov_168ppcd2fh().b[4][0]++;
|
|
8191
|
+
cov_168ppcd2fh().s[13]++;
|
|
8192
|
+
return newFormattedValue.length;
|
|
8193
|
+
} else {
|
|
8194
|
+
cov_168ppcd2fh().b[4][1]++;
|
|
8195
|
+
}
|
|
8196
|
+
var n = (cov_168ppcd2fh().s[14]++, prevFormattedValue.substring(0, selectionStart).replace(/\s/g, "").length);
|
|
8197
|
+
var cursor = (cov_168ppcd2fh().s[15]++, 0);
|
|
8198
|
+
cov_168ppcd2fh().s[16]++;
|
|
8199
|
+
for (var i = (cov_168ppcd2fh().s[17]++, 0); i < n; ++i, ++cursor) {
|
|
8200
|
+
cov_168ppcd2fh().s[18]++;
|
|
8201
|
+
if (newFormattedValue[cursor] === " ") {
|
|
8202
|
+
cov_168ppcd2fh().b[5][0]++;
|
|
8203
|
+
cov_168ppcd2fh().s[19]++;
|
|
8204
|
+
++cursor;
|
|
8205
|
+
} else {
|
|
8206
|
+
cov_168ppcd2fh().b[5][1]++;
|
|
8207
|
+
}
|
|
8208
|
+
}
|
|
8209
|
+
cov_168ppcd2fh().s[20]++;
|
|
8210
|
+
if (inputType !== "deleteContentBackward") {
|
|
8211
|
+
cov_168ppcd2fh().b[6][0]++;
|
|
8212
|
+
cov_168ppcd2fh().s[21]++;
|
|
8213
|
+
if ((cov_168ppcd2fh().b[8][0]++, newFormattedValue[selectionStart - 1] === " ") && (cov_168ppcd2fh().b[8][1]++, prevFormattedValue[selectionStart - 1] === " ")) {
|
|
8214
|
+
cov_168ppcd2fh().b[7][0]++;
|
|
8215
|
+
cov_168ppcd2fh().s[22]++;
|
|
8216
|
+
return cursor + 2;
|
|
8217
|
+
} else {
|
|
8218
|
+
cov_168ppcd2fh().b[7][1]++;
|
|
8219
|
+
cov_168ppcd2fh().s[23]++;
|
|
8220
|
+
if (prevFormattedValue[selectionStart - 1] === " ") {
|
|
8221
|
+
cov_168ppcd2fh().b[9][0]++;
|
|
8222
|
+
cov_168ppcd2fh().s[24]++;
|
|
8223
|
+
return cursor + 1;
|
|
8224
|
+
} else {
|
|
8225
|
+
cov_168ppcd2fh().b[9][1]++;
|
|
8226
|
+
}
|
|
8227
|
+
}
|
|
8228
|
+
} else {
|
|
8229
|
+
cov_168ppcd2fh().b[6][1]++;
|
|
8230
|
+
}
|
|
8231
|
+
cov_168ppcd2fh().s[25]++;
|
|
8232
|
+
return cursor;
|
|
8233
|
+
};
|
|
7772
8234
|
|
|
7773
8235
|
var _excluded$2 = ["value", "onChange", "className", "error", "defaultCountry", "selectProps"];
|
|
7774
8236
|
function cov_2n7wvllbx0() {
|
|
7775
8237
|
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PhoneNumber/PhoneNumberInput.jsx";
|
|
7776
|
-
var hash = "
|
|
8238
|
+
var hash = "55b4fc779a8f988a9c7a1b6f238c4dc519de0816";
|
|
7777
8239
|
var global = new Function("return this")();
|
|
7778
8240
|
var gcv = "__coverage__";
|
|
7779
8241
|
var coverageData = {
|
|
@@ -7785,7 +8247,7 @@ function cov_2n7wvllbx0() {
|
|
|
7785
8247
|
column: 25
|
|
7786
8248
|
},
|
|
7787
8249
|
end: {
|
|
7788
|
-
line:
|
|
8250
|
+
line: 92,
|
|
7789
8251
|
column: 1
|
|
7790
8252
|
}
|
|
7791
8253
|
},
|
|
@@ -7831,22 +8293,22 @@ function cov_2n7wvllbx0() {
|
|
|
7831
8293
|
},
|
|
7832
8294
|
"5": {
|
|
7833
8295
|
start: {
|
|
7834
|
-
line:
|
|
7835
|
-
column:
|
|
8296
|
+
line: 33,
|
|
8297
|
+
column: 27
|
|
7836
8298
|
},
|
|
7837
8299
|
end: {
|
|
7838
|
-
line:
|
|
7839
|
-
column:
|
|
8300
|
+
line: 33,
|
|
8301
|
+
column: 70
|
|
7840
8302
|
}
|
|
7841
8303
|
},
|
|
7842
8304
|
"6": {
|
|
7843
8305
|
start: {
|
|
7844
8306
|
line: 35,
|
|
7845
|
-
column:
|
|
8307
|
+
column: 30
|
|
7846
8308
|
},
|
|
7847
8309
|
end: {
|
|
7848
|
-
line:
|
|
7849
|
-
column:
|
|
8310
|
+
line: 38,
|
|
8311
|
+
column: 5
|
|
7850
8312
|
}
|
|
7851
8313
|
},
|
|
7852
8314
|
"7": {
|
|
@@ -7856,96 +8318,136 @@ function cov_2n7wvllbx0() {
|
|
|
7856
8318
|
},
|
|
7857
8319
|
end: {
|
|
7858
8320
|
line: 36,
|
|
7859
|
-
column:
|
|
8321
|
+
column: 22
|
|
7860
8322
|
}
|
|
7861
8323
|
},
|
|
7862
8324
|
"8": {
|
|
7863
8325
|
start: {
|
|
7864
|
-
line:
|
|
7865
|
-
column:
|
|
8326
|
+
line: 37,
|
|
8327
|
+
column: 6
|
|
7866
8328
|
},
|
|
7867
8329
|
end: {
|
|
7868
|
-
line:
|
|
7869
|
-
column:
|
|
8330
|
+
line: 37,
|
|
8331
|
+
column: 36
|
|
7870
8332
|
}
|
|
7871
8333
|
},
|
|
7872
8334
|
"9": {
|
|
7873
8335
|
start: {
|
|
7874
8336
|
line: 40,
|
|
7875
|
-
column:
|
|
8337
|
+
column: 25
|
|
7876
8338
|
},
|
|
7877
8339
|
end: {
|
|
7878
|
-
line:
|
|
7879
|
-
column:
|
|
8340
|
+
line: 57,
|
|
8341
|
+
column: 5
|
|
7880
8342
|
}
|
|
7881
8343
|
},
|
|
7882
8344
|
"10": {
|
|
7883
8345
|
start: {
|
|
7884
8346
|
line: 41,
|
|
7885
|
-
column:
|
|
8347
|
+
column: 51
|
|
7886
8348
|
},
|
|
7887
8349
|
end: {
|
|
7888
|
-
line:
|
|
7889
|
-
column:
|
|
8350
|
+
line: 44,
|
|
8351
|
+
column: 7
|
|
7890
8352
|
}
|
|
7891
8353
|
},
|
|
7892
8354
|
"11": {
|
|
7893
8355
|
start: {
|
|
7894
|
-
line:
|
|
8356
|
+
line: 45,
|
|
7895
8357
|
column: 6
|
|
7896
8358
|
},
|
|
7897
8359
|
end: {
|
|
7898
|
-
line:
|
|
7899
|
-
column:
|
|
8360
|
+
line: 45,
|
|
8361
|
+
column: 37
|
|
7900
8362
|
}
|
|
7901
8363
|
},
|
|
7902
8364
|
"12": {
|
|
7903
8365
|
start: {
|
|
7904
|
-
line:
|
|
8366
|
+
line: 46,
|
|
8367
|
+
column: 6
|
|
8368
|
+
},
|
|
8369
|
+
end: {
|
|
8370
|
+
line: 46,
|
|
8371
|
+
column: 29
|
|
8372
|
+
}
|
|
8373
|
+
},
|
|
8374
|
+
"13": {
|
|
8375
|
+
start: {
|
|
8376
|
+
line: 48,
|
|
8377
|
+
column: 21
|
|
8378
|
+
},
|
|
8379
|
+
end: {
|
|
8380
|
+
line: 52,
|
|
8381
|
+
column: 8
|
|
8382
|
+
}
|
|
8383
|
+
},
|
|
8384
|
+
"14": {
|
|
8385
|
+
start: {
|
|
8386
|
+
line: 54,
|
|
8387
|
+
column: 6
|
|
8388
|
+
},
|
|
8389
|
+
end: {
|
|
8390
|
+
line: 56,
|
|
8391
|
+
column: 8
|
|
8392
|
+
}
|
|
8393
|
+
},
|
|
8394
|
+
"15": {
|
|
8395
|
+
start: {
|
|
8396
|
+
line: 55,
|
|
8397
|
+
column: 8
|
|
8398
|
+
},
|
|
8399
|
+
end: {
|
|
8400
|
+
line: 55,
|
|
8401
|
+
column: 54
|
|
8402
|
+
}
|
|
8403
|
+
},
|
|
8404
|
+
"16": {
|
|
8405
|
+
start: {
|
|
8406
|
+
line: 59,
|
|
7905
8407
|
column: 4
|
|
7906
8408
|
},
|
|
7907
8409
|
end: {
|
|
7908
|
-
line:
|
|
8410
|
+
line: 63,
|
|
7909
8411
|
column: 16
|
|
7910
8412
|
}
|
|
7911
8413
|
},
|
|
7912
|
-
"
|
|
8414
|
+
"17": {
|
|
7913
8415
|
start: {
|
|
7914
|
-
line:
|
|
8416
|
+
line: 60,
|
|
7915
8417
|
column: 6
|
|
7916
8418
|
},
|
|
7917
8419
|
end: {
|
|
7918
|
-
line:
|
|
8420
|
+
line: 62,
|
|
7919
8421
|
column: 7
|
|
7920
8422
|
}
|
|
7921
8423
|
},
|
|
7922
|
-
"
|
|
8424
|
+
"18": {
|
|
7923
8425
|
start: {
|
|
7924
|
-
line:
|
|
8426
|
+
line: 61,
|
|
7925
8427
|
column: 8
|
|
7926
8428
|
},
|
|
7927
8429
|
end: {
|
|
7928
|
-
line:
|
|
8430
|
+
line: 61,
|
|
7929
8431
|
column: 64
|
|
7930
8432
|
}
|
|
7931
8433
|
},
|
|
7932
|
-
"
|
|
8434
|
+
"19": {
|
|
7933
8435
|
start: {
|
|
7934
|
-
line:
|
|
8436
|
+
line: 65,
|
|
7935
8437
|
column: 4
|
|
7936
8438
|
},
|
|
7937
8439
|
end: {
|
|
7938
|
-
line:
|
|
8440
|
+
line: 90,
|
|
7939
8441
|
column: 6
|
|
7940
8442
|
}
|
|
7941
8443
|
},
|
|
7942
|
-
"
|
|
8444
|
+
"20": {
|
|
7943
8445
|
start: {
|
|
7944
|
-
line:
|
|
8446
|
+
line: 94,
|
|
7945
8447
|
column: 0
|
|
7946
8448
|
},
|
|
7947
8449
|
end: {
|
|
7948
|
-
line:
|
|
8450
|
+
line: 94,
|
|
7949
8451
|
column: 50
|
|
7950
8452
|
}
|
|
7951
8453
|
}
|
|
@@ -7969,7 +8471,7 @@ function cov_2n7wvllbx0() {
|
|
|
7969
8471
|
column: 7
|
|
7970
8472
|
},
|
|
7971
8473
|
end: {
|
|
7972
|
-
line:
|
|
8474
|
+
line: 91,
|
|
7973
8475
|
column: 3
|
|
7974
8476
|
}
|
|
7975
8477
|
},
|
|
@@ -7979,73 +8481,97 @@ function cov_2n7wvllbx0() {
|
|
|
7979
8481
|
name: "(anonymous_1)",
|
|
7980
8482
|
decl: {
|
|
7981
8483
|
start: {
|
|
7982
|
-
line:
|
|
8484
|
+
line: 35,
|
|
7983
8485
|
column: 30
|
|
7984
8486
|
},
|
|
7985
8487
|
end: {
|
|
7986
|
-
line:
|
|
8488
|
+
line: 35,
|
|
7987
8489
|
column: 31
|
|
7988
8490
|
}
|
|
7989
8491
|
},
|
|
7990
8492
|
loc: {
|
|
7991
8493
|
start: {
|
|
7992
|
-
line:
|
|
8494
|
+
line: 35,
|
|
7993
8495
|
column: 39
|
|
7994
8496
|
},
|
|
7995
8497
|
end: {
|
|
7996
|
-
line:
|
|
8498
|
+
line: 38,
|
|
7997
8499
|
column: 5
|
|
7998
8500
|
}
|
|
7999
8501
|
},
|
|
8000
|
-
line:
|
|
8502
|
+
line: 35
|
|
8001
8503
|
},
|
|
8002
8504
|
"2": {
|
|
8003
8505
|
name: "(anonymous_2)",
|
|
8004
8506
|
decl: {
|
|
8005
8507
|
start: {
|
|
8006
|
-
line:
|
|
8508
|
+
line: 40,
|
|
8007
8509
|
column: 25
|
|
8008
8510
|
},
|
|
8009
8511
|
end: {
|
|
8010
|
-
line:
|
|
8512
|
+
line: 40,
|
|
8011
8513
|
column: 26
|
|
8012
8514
|
}
|
|
8013
8515
|
},
|
|
8014
8516
|
loc: {
|
|
8015
8517
|
start: {
|
|
8016
|
-
line:
|
|
8017
|
-
column:
|
|
8518
|
+
line: 40,
|
|
8519
|
+
column: 34
|
|
8018
8520
|
},
|
|
8019
8521
|
end: {
|
|
8020
|
-
line:
|
|
8522
|
+
line: 57,
|
|
8021
8523
|
column: 5
|
|
8022
8524
|
}
|
|
8023
8525
|
},
|
|
8024
|
-
line:
|
|
8526
|
+
line: 40
|
|
8025
8527
|
},
|
|
8026
8528
|
"3": {
|
|
8027
8529
|
name: "(anonymous_3)",
|
|
8028
8530
|
decl: {
|
|
8029
8531
|
start: {
|
|
8030
|
-
line:
|
|
8532
|
+
line: 54,
|
|
8533
|
+
column: 35
|
|
8534
|
+
},
|
|
8535
|
+
end: {
|
|
8536
|
+
line: 54,
|
|
8537
|
+
column: 36
|
|
8538
|
+
}
|
|
8539
|
+
},
|
|
8540
|
+
loc: {
|
|
8541
|
+
start: {
|
|
8542
|
+
line: 55,
|
|
8543
|
+
column: 8
|
|
8544
|
+
},
|
|
8545
|
+
end: {
|
|
8546
|
+
line: 55,
|
|
8547
|
+
column: 54
|
|
8548
|
+
}
|
|
8549
|
+
},
|
|
8550
|
+
line: 55
|
|
8551
|
+
},
|
|
8552
|
+
"4": {
|
|
8553
|
+
name: "(anonymous_4)",
|
|
8554
|
+
decl: {
|
|
8555
|
+
start: {
|
|
8556
|
+
line: 59,
|
|
8031
8557
|
column: 14
|
|
8032
8558
|
},
|
|
8033
8559
|
end: {
|
|
8034
|
-
line:
|
|
8560
|
+
line: 59,
|
|
8035
8561
|
column: 15
|
|
8036
8562
|
}
|
|
8037
8563
|
},
|
|
8038
8564
|
loc: {
|
|
8039
8565
|
start: {
|
|
8040
|
-
line:
|
|
8566
|
+
line: 59,
|
|
8041
8567
|
column: 20
|
|
8042
8568
|
},
|
|
8043
8569
|
end: {
|
|
8044
|
-
line:
|
|
8570
|
+
line: 63,
|
|
8045
8571
|
column: 5
|
|
8046
8572
|
}
|
|
8047
8573
|
},
|
|
8048
|
-
line:
|
|
8574
|
+
line: 59
|
|
8049
8575
|
}
|
|
8050
8576
|
},
|
|
8051
8577
|
branchMap: {
|
|
@@ -8157,22 +8683,22 @@ function cov_2n7wvllbx0() {
|
|
|
8157
8683
|
"4": {
|
|
8158
8684
|
loc: {
|
|
8159
8685
|
start: {
|
|
8160
|
-
line:
|
|
8686
|
+
line: 60,
|
|
8161
8687
|
column: 6
|
|
8162
8688
|
},
|
|
8163
8689
|
end: {
|
|
8164
|
-
line:
|
|
8690
|
+
line: 62,
|
|
8165
8691
|
column: 7
|
|
8166
8692
|
}
|
|
8167
8693
|
},
|
|
8168
8694
|
type: "if",
|
|
8169
8695
|
locations: [{
|
|
8170
8696
|
start: {
|
|
8171
|
-
line:
|
|
8697
|
+
line: 60,
|
|
8172
8698
|
column: 6
|
|
8173
8699
|
},
|
|
8174
8700
|
end: {
|
|
8175
|
-
line:
|
|
8701
|
+
line: 62,
|
|
8176
8702
|
column: 7
|
|
8177
8703
|
}
|
|
8178
8704
|
}, {
|
|
@@ -8185,7 +8711,7 @@ function cov_2n7wvllbx0() {
|
|
|
8185
8711
|
column: undefined
|
|
8186
8712
|
}
|
|
8187
8713
|
}],
|
|
8188
|
-
line:
|
|
8714
|
+
line: 60
|
|
8189
8715
|
}
|
|
8190
8716
|
},
|
|
8191
8717
|
s: {
|
|
@@ -8205,13 +8731,18 @@ function cov_2n7wvllbx0() {
|
|
|
8205
8731
|
"13": 0,
|
|
8206
8732
|
"14": 0,
|
|
8207
8733
|
"15": 0,
|
|
8208
|
-
"16": 0
|
|
8734
|
+
"16": 0,
|
|
8735
|
+
"17": 0,
|
|
8736
|
+
"18": 0,
|
|
8737
|
+
"19": 0,
|
|
8738
|
+
"20": 0
|
|
8209
8739
|
},
|
|
8210
8740
|
f: {
|
|
8211
8741
|
"0": 0,
|
|
8212
8742
|
"1": 0,
|
|
8213
8743
|
"2": 0,
|
|
8214
|
-
"3": 0
|
|
8744
|
+
"3": 0,
|
|
8745
|
+
"4": 0
|
|
8215
8746
|
},
|
|
8216
8747
|
b: {
|
|
8217
8748
|
"0": [0],
|
|
@@ -8221,7 +8752,7 @@ function cov_2n7wvllbx0() {
|
|
|
8221
8752
|
"4": [0, 0]
|
|
8222
8753
|
},
|
|
8223
8754
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
8224
|
-
hash: "
|
|
8755
|
+
hash: "55b4fc779a8f988a9c7a1b6f238c4dc519de0816"
|
|
8225
8756
|
};
|
|
8226
8757
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
8227
8758
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -8257,39 +8788,50 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/React.forwardRef(f
|
|
|
8257
8788
|
country = _ref4[0],
|
|
8258
8789
|
setCountry = _ref4[1];
|
|
8259
8790
|
var prefix = (cov_2n7wvllbx0().s[4]++, country ? (cov_2n7wvllbx0().b[3][0]++, "+".concat(getCountryCallingCode(country))) : (cov_2n7wvllbx0().b[3][1]++, ""));
|
|
8260
|
-
cov_2n7wvllbx0().s[5]
|
|
8791
|
+
var formattedValue = (cov_2n7wvllbx0().s[5]++, formatIncompletePhoneNumber(value, country));
|
|
8792
|
+
cov_2n7wvllbx0().s[6]++;
|
|
8261
8793
|
var handleInputChange = function handleInputChange(value) {
|
|
8262
8794
|
cov_2n7wvllbx0().f[1]++;
|
|
8263
|
-
cov_2n7wvllbx0().s[6]++;
|
|
8264
|
-
onChange(value);
|
|
8265
8795
|
cov_2n7wvllbx0().s[7]++;
|
|
8796
|
+
onChange(value);
|
|
8797
|
+
cov_2n7wvllbx0().s[8]++;
|
|
8266
8798
|
internalValue.current = value;
|
|
8267
8799
|
};
|
|
8268
|
-
cov_2n7wvllbx0().s[
|
|
8269
|
-
var handleChange = function handleChange(
|
|
8270
|
-
var value = _ref5.target.value;
|
|
8800
|
+
cov_2n7wvllbx0().s[9]++;
|
|
8801
|
+
var handleChange = function handleChange(event) {
|
|
8271
8802
|
cov_2n7wvllbx0().f[2]++;
|
|
8272
|
-
var
|
|
8273
|
-
phoneNumber =
|
|
8274
|
-
|
|
8275
|
-
cov_2n7wvllbx0().s[10]++;
|
|
8276
|
-
handleInputChange(phoneNumber);
|
|
8803
|
+
var _ref5 = (cov_2n7wvllbx0().s[10]++, getPhoneData(event.target.value, country)),
|
|
8804
|
+
phoneNumber = _ref5.phoneNumber,
|
|
8805
|
+
newCountry = _ref5.country;
|
|
8277
8806
|
cov_2n7wvllbx0().s[11]++;
|
|
8278
|
-
|
|
8807
|
+
handleInputChange(phoneNumber);
|
|
8808
|
+
cov_2n7wvllbx0().s[12]++;
|
|
8809
|
+
setCountry(newCountry);
|
|
8810
|
+
var cursor = (cov_2n7wvllbx0().s[13]++, getCursorPosition({
|
|
8811
|
+
event: event,
|
|
8812
|
+
prevFormattedValue: formattedValue,
|
|
8813
|
+
newFormattedValue: formatIncompletePhoneNumber(phoneNumber, newCountry)
|
|
8814
|
+
}));
|
|
8815
|
+
cov_2n7wvllbx0().s[14]++;
|
|
8816
|
+
window.requestAnimationFrame(function () {
|
|
8817
|
+
cov_2n7wvllbx0().f[3]++;
|
|
8818
|
+
cov_2n7wvllbx0().s[15]++;
|
|
8819
|
+
return event.target.setSelectionRange(cursor, cursor);
|
|
8820
|
+
});
|
|
8279
8821
|
};
|
|
8280
|
-
cov_2n7wvllbx0().s[
|
|
8822
|
+
cov_2n7wvllbx0().s[16]++;
|
|
8281
8823
|
React.useEffect(function () {
|
|
8282
|
-
cov_2n7wvllbx0().f[
|
|
8283
|
-
cov_2n7wvllbx0().s[
|
|
8824
|
+
cov_2n7wvllbx0().f[4]++;
|
|
8825
|
+
cov_2n7wvllbx0().s[17]++;
|
|
8284
8826
|
if (internalValue.current !== value) {
|
|
8285
8827
|
cov_2n7wvllbx0().b[4][0]++;
|
|
8286
|
-
cov_2n7wvllbx0().s[
|
|
8828
|
+
cov_2n7wvllbx0().s[18]++;
|
|
8287
8829
|
setCountry(getPhoneData(value, defaultCountry).country);
|
|
8288
8830
|
} else {
|
|
8289
8831
|
cov_2n7wvllbx0().b[4][1]++;
|
|
8290
8832
|
}
|
|
8291
8833
|
}, [value]);
|
|
8292
|
-
cov_2n7wvllbx0().s[
|
|
8834
|
+
cov_2n7wvllbx0().s[19]++;
|
|
8293
8835
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8294
8836
|
className: classnames([className])
|
|
8295
8837
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
|
|
@@ -8297,7 +8839,7 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/React.forwardRef(f
|
|
|
8297
8839
|
error: error,
|
|
8298
8840
|
ref: ref,
|
|
8299
8841
|
type: "tel",
|
|
8300
|
-
value:
|
|
8842
|
+
value: formattedValue,
|
|
8301
8843
|
placeholder: t("neetoMolecules.phoneNumberInput.placeholder", {
|
|
8302
8844
|
prefix: prefix
|
|
8303
8845
|
}),
|
|
@@ -8311,7 +8853,7 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/React.forwardRef(f
|
|
|
8311
8853
|
onChange: handleChange
|
|
8312
8854
|
}, inputProps)));
|
|
8313
8855
|
}));
|
|
8314
|
-
cov_2n7wvllbx0().s[
|
|
8856
|
+
cov_2n7wvllbx0().s[20]++;
|
|
8315
8857
|
PhoneNumberInput.displayName = "PhoneNumberInput";
|
|
8316
8858
|
|
|
8317
8859
|
var _excluded$1 = ["name"];
|