@bigbinary/neeto-molecules 1.0.23 → 1.0.24
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/NeetoWidget.cjs.js +983 -804
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +966 -787
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PhoneNumber.cjs.js +285 -141
- package/dist/PhoneNumber.cjs.js.map +1 -1
- package/dist/PhoneNumber.js +286 -142
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/Sidebar.cjs.js +494 -5
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +494 -5
- package/dist/Sidebar.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +2 -1
- package/types/NeetoWidget.d.ts +2 -0
package/dist/PhoneNumber.cjs.js
CHANGED
|
@@ -7080,10 +7080,10 @@ var SingleValue = function SingleValue(_ref) {
|
|
|
7080
7080
|
}, otherProps), countryData.emoji));
|
|
7081
7081
|
};
|
|
7082
7082
|
|
|
7083
|
-
var _excluded$3 = ["country", "setCountry", "onInputChange", "prefix"];
|
|
7083
|
+
var _excluded$3 = ["country", "setCountry", "onInputChange", "prefix", "phoneNumber"];
|
|
7084
7084
|
function cov_145kndm1ew() {
|
|
7085
7085
|
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PhoneNumber/CountryPicker/index.jsx";
|
|
7086
|
-
var hash = "
|
|
7086
|
+
var hash = "e0c16b85eb2af3443273b4a39f2ed6ecf1869a68";
|
|
7087
7087
|
var global = new Function("return this")();
|
|
7088
7088
|
var gcv = "__coverage__";
|
|
7089
7089
|
var coverageData = {
|
|
@@ -7095,87 +7095,77 @@ function cov_145kndm1ew() {
|
|
|
7095
7095
|
column: 22
|
|
7096
7096
|
},
|
|
7097
7097
|
end: {
|
|
7098
|
-
line:
|
|
7098
|
+
line: 53,
|
|
7099
7099
|
column: 1
|
|
7100
7100
|
}
|
|
7101
7101
|
},
|
|
7102
7102
|
"1": {
|
|
7103
7103
|
start: {
|
|
7104
|
-
line:
|
|
7104
|
+
line: 18,
|
|
7105
7105
|
column: 38
|
|
7106
7106
|
},
|
|
7107
7107
|
end: {
|
|
7108
|
-
line:
|
|
7108
|
+
line: 18,
|
|
7109
7109
|
column: 50
|
|
7110
7110
|
}
|
|
7111
7111
|
},
|
|
7112
7112
|
"2": {
|
|
7113
7113
|
start: {
|
|
7114
|
-
line:
|
|
7114
|
+
line: 20,
|
|
7115
7115
|
column: 30
|
|
7116
7116
|
},
|
|
7117
7117
|
end: {
|
|
7118
|
-
line:
|
|
7118
|
+
line: 25,
|
|
7119
7119
|
column: 3
|
|
7120
7120
|
}
|
|
7121
7121
|
},
|
|
7122
7122
|
"3": {
|
|
7123
7123
|
start: {
|
|
7124
|
-
line:
|
|
7124
|
+
line: 21,
|
|
7125
7125
|
column: 4
|
|
7126
7126
|
},
|
|
7127
7127
|
end: {
|
|
7128
|
-
line:
|
|
7128
|
+
line: 21,
|
|
7129
7129
|
column: 22
|
|
7130
7130
|
}
|
|
7131
7131
|
},
|
|
7132
7132
|
"4": {
|
|
7133
7133
|
start: {
|
|
7134
|
-
line:
|
|
7134
|
+
line: 22,
|
|
7135
7135
|
column: 4
|
|
7136
7136
|
},
|
|
7137
7137
|
end: {
|
|
7138
|
-
line:
|
|
7138
|
+
line: 24,
|
|
7139
7139
|
column: 6
|
|
7140
7140
|
}
|
|
7141
7141
|
},
|
|
7142
7142
|
"5": {
|
|
7143
7143
|
start: {
|
|
7144
|
-
line:
|
|
7145
|
-
column: 6
|
|
7146
|
-
},
|
|
7147
|
-
end: {
|
|
7148
|
-
line: 22,
|
|
7149
|
-
column: 69
|
|
7150
|
-
}
|
|
7151
|
-
},
|
|
7152
|
-
"6": {
|
|
7153
|
-
start: {
|
|
7154
|
-
line: 26,
|
|
7144
|
+
line: 27,
|
|
7155
7145
|
column: 2
|
|
7156
7146
|
},
|
|
7157
7147
|
end: {
|
|
7158
|
-
line:
|
|
7148
|
+
line: 52,
|
|
7159
7149
|
column: 4
|
|
7160
7150
|
}
|
|
7161
7151
|
},
|
|
7162
|
-
"
|
|
7152
|
+
"6": {
|
|
7163
7153
|
start: {
|
|
7164
|
-
line:
|
|
7154
|
+
line: 42,
|
|
7165
7155
|
column: 29
|
|
7166
7156
|
},
|
|
7167
7157
|
end: {
|
|
7168
|
-
line:
|
|
7158
|
+
line: 42,
|
|
7169
7159
|
column: 72
|
|
7170
7160
|
}
|
|
7171
7161
|
},
|
|
7172
|
-
"
|
|
7162
|
+
"7": {
|
|
7173
7163
|
start: {
|
|
7174
|
-
line:
|
|
7164
|
+
line: 45,
|
|
7175
7165
|
column: 10
|
|
7176
7166
|
},
|
|
7177
7167
|
end: {
|
|
7178
|
-
line:
|
|
7168
|
+
line: 45,
|
|
7179
7169
|
column: 40
|
|
7180
7170
|
}
|
|
7181
7171
|
}
|
|
@@ -7195,111 +7185,87 @@ function cov_145kndm1ew() {
|
|
|
7195
7185
|
},
|
|
7196
7186
|
loc: {
|
|
7197
7187
|
start: {
|
|
7198
|
-
line:
|
|
7188
|
+
line: 17,
|
|
7199
7189
|
column: 6
|
|
7200
7190
|
},
|
|
7201
7191
|
end: {
|
|
7202
|
-
line:
|
|
7192
|
+
line: 53,
|
|
7203
7193
|
column: 1
|
|
7204
7194
|
}
|
|
7205
7195
|
},
|
|
7206
|
-
line:
|
|
7196
|
+
line: 17
|
|
7207
7197
|
},
|
|
7208
7198
|
"1": {
|
|
7209
7199
|
name: "(anonymous_1)",
|
|
7210
7200
|
decl: {
|
|
7211
7201
|
start: {
|
|
7212
|
-
line:
|
|
7202
|
+
line: 20,
|
|
7213
7203
|
column: 30
|
|
7214
7204
|
},
|
|
7215
7205
|
end: {
|
|
7216
|
-
line:
|
|
7206
|
+
line: 20,
|
|
7217
7207
|
column: 31
|
|
7218
7208
|
}
|
|
7219
7209
|
},
|
|
7220
7210
|
loc: {
|
|
7221
7211
|
start: {
|
|
7222
|
-
line:
|
|
7212
|
+
line: 20,
|
|
7223
7213
|
column: 45
|
|
7224
7214
|
},
|
|
7225
7215
|
end: {
|
|
7226
|
-
line:
|
|
7216
|
+
line: 25,
|
|
7227
7217
|
column: 3
|
|
7228
7218
|
}
|
|
7229
7219
|
},
|
|
7230
|
-
line:
|
|
7220
|
+
line: 20
|
|
7231
7221
|
},
|
|
7232
7222
|
"2": {
|
|
7233
7223
|
name: "(anonymous_2)",
|
|
7234
7224
|
decl: {
|
|
7235
7225
|
start: {
|
|
7236
|
-
line:
|
|
7237
|
-
column: 18
|
|
7238
|
-
},
|
|
7239
|
-
end: {
|
|
7240
|
-
line: 21,
|
|
7241
|
-
column: 19
|
|
7242
|
-
}
|
|
7243
|
-
},
|
|
7244
|
-
loc: {
|
|
7245
|
-
start: {
|
|
7246
|
-
line: 22,
|
|
7247
|
-
column: 6
|
|
7248
|
-
},
|
|
7249
|
-
end: {
|
|
7250
|
-
line: 22,
|
|
7251
|
-
column: 69
|
|
7252
|
-
}
|
|
7253
|
-
},
|
|
7254
|
-
line: 22
|
|
7255
|
-
},
|
|
7256
|
-
"3": {
|
|
7257
|
-
name: "(anonymous_3)",
|
|
7258
|
-
decl: {
|
|
7259
|
-
start: {
|
|
7260
|
-
line: 41,
|
|
7226
|
+
line: 42,
|
|
7261
7227
|
column: 23
|
|
7262
7228
|
},
|
|
7263
7229
|
end: {
|
|
7264
|
-
line:
|
|
7230
|
+
line: 42,
|
|
7265
7231
|
column: 24
|
|
7266
7232
|
}
|
|
7267
7233
|
},
|
|
7268
7234
|
loc: {
|
|
7269
7235
|
start: {
|
|
7270
|
-
line:
|
|
7236
|
+
line: 42,
|
|
7271
7237
|
column: 29
|
|
7272
7238
|
},
|
|
7273
7239
|
end: {
|
|
7274
|
-
line:
|
|
7240
|
+
line: 42,
|
|
7275
7241
|
column: 72
|
|
7276
7242
|
}
|
|
7277
7243
|
},
|
|
7278
|
-
line:
|
|
7244
|
+
line: 42
|
|
7279
7245
|
},
|
|
7280
|
-
"
|
|
7281
|
-
name: "(
|
|
7246
|
+
"3": {
|
|
7247
|
+
name: "(anonymous_3)",
|
|
7282
7248
|
decl: {
|
|
7283
7249
|
start: {
|
|
7284
|
-
line:
|
|
7250
|
+
line: 44,
|
|
7285
7251
|
column: 26
|
|
7286
7252
|
},
|
|
7287
7253
|
end: {
|
|
7288
|
-
line:
|
|
7254
|
+
line: 44,
|
|
7289
7255
|
column: 27
|
|
7290
7256
|
}
|
|
7291
7257
|
},
|
|
7292
7258
|
loc: {
|
|
7293
7259
|
start: {
|
|
7294
|
-
line:
|
|
7260
|
+
line: 45,
|
|
7295
7261
|
column: 10
|
|
7296
7262
|
},
|
|
7297
7263
|
end: {
|
|
7298
|
-
line:
|
|
7264
|
+
line: 45,
|
|
7299
7265
|
column: 40
|
|
7300
7266
|
}
|
|
7301
7267
|
},
|
|
7302
|
-
line:
|
|
7268
|
+
line: 45
|
|
7303
7269
|
}
|
|
7304
7270
|
},
|
|
7305
7271
|
branchMap: {},
|
|
@@ -7311,19 +7277,17 @@ function cov_145kndm1ew() {
|
|
|
7311
7277
|
"4": 0,
|
|
7312
7278
|
"5": 0,
|
|
7313
7279
|
"6": 0,
|
|
7314
|
-
"7": 0
|
|
7315
|
-
"8": 0
|
|
7280
|
+
"7": 0
|
|
7316
7281
|
},
|
|
7317
7282
|
f: {
|
|
7318
7283
|
"0": 0,
|
|
7319
7284
|
"1": 0,
|
|
7320
7285
|
"2": 0,
|
|
7321
|
-
"3": 0
|
|
7322
|
-
"4": 0
|
|
7286
|
+
"3": 0
|
|
7323
7287
|
},
|
|
7324
7288
|
b: {},
|
|
7325
7289
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7326
|
-
hash: "
|
|
7290
|
+
hash: "e0c16b85eb2af3443273b4a39f2ed6ecf1869a68"
|
|
7327
7291
|
};
|
|
7328
7292
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
7329
7293
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -7345,6 +7309,7 @@ var CountryPicker = function CountryPicker(_ref) {
|
|
|
7345
7309
|
setCountry = _ref.setCountry,
|
|
7346
7310
|
onInputChange = _ref.onInputChange,
|
|
7347
7311
|
prefix = _ref.prefix,
|
|
7312
|
+
phoneNumber = _ref.phoneNumber,
|
|
7348
7313
|
otherProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
7349
7314
|
cov_145kndm1ew().f[0]++;
|
|
7350
7315
|
var _ref2 = (cov_145kndm1ew().s[1]++, React.useState("")),
|
|
@@ -7358,13 +7323,9 @@ var CountryPicker = function CountryPicker(_ref) {
|
|
|
7358
7323
|
cov_145kndm1ew().s[3]++;
|
|
7359
7324
|
setCountry(value);
|
|
7360
7325
|
cov_145kndm1ew().s[4]++;
|
|
7361
|
-
onInputChange(
|
|
7362
|
-
cov_145kndm1ew().f[2]++;
|
|
7363
|
-
cov_145kndm1ew().s[5]++;
|
|
7364
|
-
return phoneNumber.replace(prefix, "+".concat(getCountryCallingCode(value)));
|
|
7365
|
-
});
|
|
7326
|
+
onInputChange(phoneNumber.replace(prefix, "+".concat(getCountryCallingCode(value))));
|
|
7366
7327
|
};
|
|
7367
|
-
cov_145kndm1ew().s[
|
|
7328
|
+
cov_145kndm1ew().s[5]++;
|
|
7368
7329
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7369
7330
|
className: classnames("flex-shrink-0", {
|
|
7370
7331
|
"w-10": !searchTerm,
|
|
@@ -7381,8 +7342,8 @@ var CountryPicker = function CountryPicker(_ref) {
|
|
|
7381
7342
|
},
|
|
7382
7343
|
components: {
|
|
7383
7344
|
SingleValue: function SingleValue$1() {
|
|
7384
|
-
cov_145kndm1ew().f[
|
|
7385
|
-
cov_145kndm1ew().s[
|
|
7345
|
+
cov_145kndm1ew().f[2]++;
|
|
7346
|
+
cov_145kndm1ew().s[6]++;
|
|
7386
7347
|
return /*#__PURE__*/React__default["default"].createElement(SingleValue, {
|
|
7387
7348
|
showEmoji: true,
|
|
7388
7349
|
country: country
|
|
@@ -7393,8 +7354,8 @@ var CountryPicker = function CountryPicker(_ref) {
|
|
|
7393
7354
|
var value = _ref5.value;
|
|
7394
7355
|
var _ref7 = _slicedToArray$3(_ref6, 1),
|
|
7395
7356
|
selectedOption = _ref7[0];
|
|
7396
|
-
cov_145kndm1ew().f[
|
|
7397
|
-
cov_145kndm1ew().s[
|
|
7357
|
+
cov_145kndm1ew().f[3]++;
|
|
7358
|
+
cov_145kndm1ew().s[7]++;
|
|
7398
7359
|
return (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.name) === value;
|
|
7399
7360
|
},
|
|
7400
7361
|
onChange: handleCountryChange,
|
|
@@ -7812,7 +7773,7 @@ var getPhoneData = function getPhoneData(value, defaultCountry) {
|
|
|
7812
7773
|
var _excluded$2 = ["value", "onChange", "className", "error", "defaultCountry", "selectProps"];
|
|
7813
7774
|
function cov_2n7wvllbx0() {
|
|
7814
7775
|
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PhoneNumber/PhoneNumberInput.jsx";
|
|
7815
|
-
var hash = "
|
|
7776
|
+
var hash = "ff15f225b3da68d847ab6fb0d3ba460a2861d5eb";
|
|
7816
7777
|
var global = new Function("return this")();
|
|
7817
7778
|
var gcv = "__coverage__";
|
|
7818
7779
|
var coverageData = {
|
|
@@ -7824,7 +7785,7 @@ function cov_2n7wvllbx0() {
|
|
|
7824
7785
|
column: 25
|
|
7825
7786
|
},
|
|
7826
7787
|
end: {
|
|
7827
|
-
line:
|
|
7788
|
+
line: 78,
|
|
7828
7789
|
column: 1
|
|
7829
7790
|
}
|
|
7830
7791
|
},
|
|
@@ -7841,80 +7802,150 @@ function cov_2n7wvllbx0() {
|
|
|
7841
7802
|
"2": {
|
|
7842
7803
|
start: {
|
|
7843
7804
|
line: 29,
|
|
7844
|
-
column:
|
|
7805
|
+
column: 26
|
|
7845
7806
|
},
|
|
7846
7807
|
end: {
|
|
7847
|
-
line:
|
|
7848
|
-
column:
|
|
7808
|
+
line: 29,
|
|
7809
|
+
column: 39
|
|
7849
7810
|
}
|
|
7850
7811
|
},
|
|
7851
7812
|
"3": {
|
|
7852
7813
|
start: {
|
|
7853
|
-
line:
|
|
7814
|
+
line: 30,
|
|
7815
|
+
column: 34
|
|
7816
|
+
},
|
|
7817
|
+
end: {
|
|
7818
|
+
line: 30,
|
|
7819
|
+
column: 58
|
|
7820
|
+
}
|
|
7821
|
+
},
|
|
7822
|
+
"4": {
|
|
7823
|
+
start: {
|
|
7824
|
+
line: 32,
|
|
7854
7825
|
column: 19
|
|
7855
7826
|
},
|
|
7856
7827
|
end: {
|
|
7857
|
-
line:
|
|
7828
|
+
line: 32,
|
|
7858
7829
|
column: 70
|
|
7859
7830
|
}
|
|
7860
7831
|
},
|
|
7861
|
-
"
|
|
7832
|
+
"5": {
|
|
7833
|
+
start: {
|
|
7834
|
+
line: 34,
|
|
7835
|
+
column: 30
|
|
7836
|
+
},
|
|
7837
|
+
end: {
|
|
7838
|
+
line: 37,
|
|
7839
|
+
column: 5
|
|
7840
|
+
}
|
|
7841
|
+
},
|
|
7842
|
+
"6": {
|
|
7862
7843
|
start: {
|
|
7863
7844
|
line: 35,
|
|
7864
|
-
column:
|
|
7845
|
+
column: 6
|
|
7846
|
+
},
|
|
7847
|
+
end: {
|
|
7848
|
+
line: 35,
|
|
7849
|
+
column: 22
|
|
7850
|
+
}
|
|
7851
|
+
},
|
|
7852
|
+
"7": {
|
|
7853
|
+
start: {
|
|
7854
|
+
line: 36,
|
|
7855
|
+
column: 6
|
|
7865
7856
|
},
|
|
7866
7857
|
end: {
|
|
7858
|
+
line: 36,
|
|
7859
|
+
column: 36
|
|
7860
|
+
}
|
|
7861
|
+
},
|
|
7862
|
+
"8": {
|
|
7863
|
+
start: {
|
|
7867
7864
|
line: 39,
|
|
7865
|
+
column: 25
|
|
7866
|
+
},
|
|
7867
|
+
end: {
|
|
7868
|
+
line: 43,
|
|
7868
7869
|
column: 5
|
|
7869
7870
|
}
|
|
7870
7871
|
},
|
|
7871
|
-
"
|
|
7872
|
+
"9": {
|
|
7872
7873
|
start: {
|
|
7873
|
-
line:
|
|
7874
|
+
line: 40,
|
|
7874
7875
|
column: 39
|
|
7875
7876
|
},
|
|
7876
7877
|
end: {
|
|
7877
|
-
line:
|
|
7878
|
+
line: 40,
|
|
7878
7879
|
column: 74
|
|
7879
7880
|
}
|
|
7880
7881
|
},
|
|
7881
|
-
"
|
|
7882
|
+
"10": {
|
|
7882
7883
|
start: {
|
|
7883
|
-
line:
|
|
7884
|
+
line: 41,
|
|
7884
7885
|
column: 6
|
|
7885
7886
|
},
|
|
7886
7887
|
end: {
|
|
7887
|
-
line:
|
|
7888
|
-
column:
|
|
7888
|
+
line: 41,
|
|
7889
|
+
column: 37
|
|
7889
7890
|
}
|
|
7890
7891
|
},
|
|
7891
|
-
"
|
|
7892
|
+
"11": {
|
|
7892
7893
|
start: {
|
|
7893
|
-
line:
|
|
7894
|
+
line: 42,
|
|
7894
7895
|
column: 6
|
|
7895
7896
|
},
|
|
7896
7897
|
end: {
|
|
7897
|
-
line:
|
|
7898
|
+
line: 42,
|
|
7898
7899
|
column: 26
|
|
7899
7900
|
}
|
|
7900
7901
|
},
|
|
7901
|
-
"
|
|
7902
|
+
"12": {
|
|
7902
7903
|
start: {
|
|
7903
|
-
line:
|
|
7904
|
+
line: 45,
|
|
7904
7905
|
column: 4
|
|
7905
7906
|
},
|
|
7906
7907
|
end: {
|
|
7907
|
-
line:
|
|
7908
|
+
line: 49,
|
|
7909
|
+
column: 16
|
|
7910
|
+
}
|
|
7911
|
+
},
|
|
7912
|
+
"13": {
|
|
7913
|
+
start: {
|
|
7914
|
+
line: 46,
|
|
7908
7915
|
column: 6
|
|
7916
|
+
},
|
|
7917
|
+
end: {
|
|
7918
|
+
line: 48,
|
|
7919
|
+
column: 7
|
|
7909
7920
|
}
|
|
7910
7921
|
},
|
|
7911
|
-
"
|
|
7922
|
+
"14": {
|
|
7923
|
+
start: {
|
|
7924
|
+
line: 47,
|
|
7925
|
+
column: 8
|
|
7926
|
+
},
|
|
7927
|
+
end: {
|
|
7928
|
+
line: 47,
|
|
7929
|
+
column: 64
|
|
7930
|
+
}
|
|
7931
|
+
},
|
|
7932
|
+
"15": {
|
|
7933
|
+
start: {
|
|
7934
|
+
line: 51,
|
|
7935
|
+
column: 4
|
|
7936
|
+
},
|
|
7937
|
+
end: {
|
|
7938
|
+
line: 76,
|
|
7939
|
+
column: 6
|
|
7940
|
+
}
|
|
7941
|
+
},
|
|
7942
|
+
"16": {
|
|
7912
7943
|
start: {
|
|
7913
|
-
line:
|
|
7944
|
+
line: 80,
|
|
7914
7945
|
column: 0
|
|
7915
7946
|
},
|
|
7916
7947
|
end: {
|
|
7917
|
-
line:
|
|
7948
|
+
line: 80,
|
|
7918
7949
|
column: 50
|
|
7919
7950
|
}
|
|
7920
7951
|
}
|
|
@@ -7938,7 +7969,7 @@ function cov_2n7wvllbx0() {
|
|
|
7938
7969
|
column: 7
|
|
7939
7970
|
},
|
|
7940
7971
|
end: {
|
|
7941
|
-
line:
|
|
7972
|
+
line: 77,
|
|
7942
7973
|
column: 3
|
|
7943
7974
|
}
|
|
7944
7975
|
},
|
|
@@ -7948,25 +7979,73 @@ function cov_2n7wvllbx0() {
|
|
|
7948
7979
|
name: "(anonymous_1)",
|
|
7949
7980
|
decl: {
|
|
7950
7981
|
start: {
|
|
7951
|
-
line:
|
|
7982
|
+
line: 34,
|
|
7983
|
+
column: 30
|
|
7984
|
+
},
|
|
7985
|
+
end: {
|
|
7986
|
+
line: 34,
|
|
7987
|
+
column: 31
|
|
7988
|
+
}
|
|
7989
|
+
},
|
|
7990
|
+
loc: {
|
|
7991
|
+
start: {
|
|
7992
|
+
line: 34,
|
|
7993
|
+
column: 39
|
|
7994
|
+
},
|
|
7995
|
+
end: {
|
|
7996
|
+
line: 37,
|
|
7997
|
+
column: 5
|
|
7998
|
+
}
|
|
7999
|
+
},
|
|
8000
|
+
line: 34
|
|
8001
|
+
},
|
|
8002
|
+
"2": {
|
|
8003
|
+
name: "(anonymous_2)",
|
|
8004
|
+
decl: {
|
|
8005
|
+
start: {
|
|
8006
|
+
line: 39,
|
|
7952
8007
|
column: 25
|
|
7953
8008
|
},
|
|
7954
8009
|
end: {
|
|
7955
|
-
line:
|
|
8010
|
+
line: 39,
|
|
7956
8011
|
column: 26
|
|
7957
8012
|
}
|
|
7958
8013
|
},
|
|
7959
8014
|
loc: {
|
|
7960
8015
|
start: {
|
|
7961
|
-
line:
|
|
8016
|
+
line: 39,
|
|
7962
8017
|
column: 52
|
|
7963
8018
|
},
|
|
7964
8019
|
end: {
|
|
7965
|
-
line:
|
|
8020
|
+
line: 43,
|
|
7966
8021
|
column: 5
|
|
7967
8022
|
}
|
|
7968
8023
|
},
|
|
7969
|
-
line:
|
|
8024
|
+
line: 39
|
|
8025
|
+
},
|
|
8026
|
+
"3": {
|
|
8027
|
+
name: "(anonymous_3)",
|
|
8028
|
+
decl: {
|
|
8029
|
+
start: {
|
|
8030
|
+
line: 45,
|
|
8031
|
+
column: 14
|
|
8032
|
+
},
|
|
8033
|
+
end: {
|
|
8034
|
+
line: 45,
|
|
8035
|
+
column: 15
|
|
8036
|
+
}
|
|
8037
|
+
},
|
|
8038
|
+
loc: {
|
|
8039
|
+
start: {
|
|
8040
|
+
line: 45,
|
|
8041
|
+
column: 20
|
|
8042
|
+
},
|
|
8043
|
+
end: {
|
|
8044
|
+
line: 49,
|
|
8045
|
+
column: 5
|
|
8046
|
+
}
|
|
8047
|
+
},
|
|
8048
|
+
line: 45
|
|
7970
8049
|
}
|
|
7971
8050
|
},
|
|
7972
8051
|
branchMap: {
|
|
@@ -8045,35 +8124,68 @@ function cov_2n7wvllbx0() {
|
|
|
8045
8124
|
"3": {
|
|
8046
8125
|
loc: {
|
|
8047
8126
|
start: {
|
|
8048
|
-
line:
|
|
8127
|
+
line: 32,
|
|
8049
8128
|
column: 19
|
|
8050
8129
|
},
|
|
8051
8130
|
end: {
|
|
8052
|
-
line:
|
|
8131
|
+
line: 32,
|
|
8053
8132
|
column: 70
|
|
8054
8133
|
}
|
|
8055
8134
|
},
|
|
8056
8135
|
type: "cond-expr",
|
|
8057
8136
|
locations: [{
|
|
8058
8137
|
start: {
|
|
8059
|
-
line:
|
|
8138
|
+
line: 32,
|
|
8060
8139
|
column: 29
|
|
8061
8140
|
},
|
|
8062
8141
|
end: {
|
|
8063
|
-
line:
|
|
8142
|
+
line: 32,
|
|
8064
8143
|
column: 65
|
|
8065
8144
|
}
|
|
8066
8145
|
}, {
|
|
8067
8146
|
start: {
|
|
8068
|
-
line:
|
|
8147
|
+
line: 32,
|
|
8069
8148
|
column: 68
|
|
8070
8149
|
},
|
|
8071
8150
|
end: {
|
|
8072
|
-
line:
|
|
8151
|
+
line: 32,
|
|
8073
8152
|
column: 70
|
|
8074
8153
|
}
|
|
8075
8154
|
}],
|
|
8076
|
-
line:
|
|
8155
|
+
line: 32
|
|
8156
|
+
},
|
|
8157
|
+
"4": {
|
|
8158
|
+
loc: {
|
|
8159
|
+
start: {
|
|
8160
|
+
line: 46,
|
|
8161
|
+
column: 6
|
|
8162
|
+
},
|
|
8163
|
+
end: {
|
|
8164
|
+
line: 48,
|
|
8165
|
+
column: 7
|
|
8166
|
+
}
|
|
8167
|
+
},
|
|
8168
|
+
type: "if",
|
|
8169
|
+
locations: [{
|
|
8170
|
+
start: {
|
|
8171
|
+
line: 46,
|
|
8172
|
+
column: 6
|
|
8173
|
+
},
|
|
8174
|
+
end: {
|
|
8175
|
+
line: 48,
|
|
8176
|
+
column: 7
|
|
8177
|
+
}
|
|
8178
|
+
}, {
|
|
8179
|
+
start: {
|
|
8180
|
+
line: undefined,
|
|
8181
|
+
column: undefined
|
|
8182
|
+
},
|
|
8183
|
+
end: {
|
|
8184
|
+
line: undefined,
|
|
8185
|
+
column: undefined
|
|
8186
|
+
}
|
|
8187
|
+
}],
|
|
8188
|
+
line: 46
|
|
8077
8189
|
}
|
|
8078
8190
|
},
|
|
8079
8191
|
s: {
|
|
@@ -8086,20 +8198,30 @@ function cov_2n7wvllbx0() {
|
|
|
8086
8198
|
"6": 0,
|
|
8087
8199
|
"7": 0,
|
|
8088
8200
|
"8": 0,
|
|
8089
|
-
"9": 0
|
|
8201
|
+
"9": 0,
|
|
8202
|
+
"10": 0,
|
|
8203
|
+
"11": 0,
|
|
8204
|
+
"12": 0,
|
|
8205
|
+
"13": 0,
|
|
8206
|
+
"14": 0,
|
|
8207
|
+
"15": 0,
|
|
8208
|
+
"16": 0
|
|
8090
8209
|
},
|
|
8091
8210
|
f: {
|
|
8092
8211
|
"0": 0,
|
|
8093
|
-
"1": 0
|
|
8212
|
+
"1": 0,
|
|
8213
|
+
"2": 0,
|
|
8214
|
+
"3": 0
|
|
8094
8215
|
},
|
|
8095
8216
|
b: {
|
|
8096
8217
|
"0": [0],
|
|
8097
8218
|
"1": [0],
|
|
8098
8219
|
"2": [0],
|
|
8099
|
-
"3": [0, 0]
|
|
8220
|
+
"3": [0, 0],
|
|
8221
|
+
"4": [0, 0]
|
|
8100
8222
|
},
|
|
8101
8223
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
8102
|
-
hash: "
|
|
8224
|
+
hash: "ff15f225b3da68d847ab6fb0d3ba460a2861d5eb"
|
|
8103
8225
|
};
|
|
8104
8226
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
8105
8227
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -8129,24 +8251,45 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/React.forwardRef(f
|
|
|
8129
8251
|
cov_2n7wvllbx0().f[0]++;
|
|
8130
8252
|
var _ref2 = (cov_2n7wvllbx0().s[1]++, reactI18next.useTranslation()),
|
|
8131
8253
|
t = _ref2.t;
|
|
8132
|
-
var
|
|
8254
|
+
var internalValue = (cov_2n7wvllbx0().s[2]++, React.useRef(value));
|
|
8255
|
+
var _ref3 = (cov_2n7wvllbx0().s[3]++, React.useState(defaultCountry)),
|
|
8133
8256
|
_ref4 = _slicedToArray$3(_ref3, 2),
|
|
8134
8257
|
country = _ref4[0],
|
|
8135
8258
|
setCountry = _ref4[1];
|
|
8136
|
-
var prefix = (cov_2n7wvllbx0().s[
|
|
8137
|
-
cov_2n7wvllbx0().s[
|
|
8259
|
+
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]++;
|
|
8261
|
+
var handleInputChange = function handleInputChange(value) {
|
|
8262
|
+
cov_2n7wvllbx0().f[1]++;
|
|
8263
|
+
cov_2n7wvllbx0().s[6]++;
|
|
8264
|
+
onChange(value);
|
|
8265
|
+
cov_2n7wvllbx0().s[7]++;
|
|
8266
|
+
internalValue.current = value;
|
|
8267
|
+
};
|
|
8268
|
+
cov_2n7wvllbx0().s[8]++;
|
|
8138
8269
|
var handleChange = function handleChange(_ref5) {
|
|
8139
8270
|
var value = _ref5.target.value;
|
|
8140
|
-
cov_2n7wvllbx0().f[
|
|
8141
|
-
var _ref6 = (cov_2n7wvllbx0().s[
|
|
8271
|
+
cov_2n7wvllbx0().f[2]++;
|
|
8272
|
+
var _ref6 = (cov_2n7wvllbx0().s[9]++, getPhoneData(value, defaultCountry)),
|
|
8142
8273
|
phoneNumber = _ref6.phoneNumber,
|
|
8143
8274
|
country = _ref6.country;
|
|
8144
|
-
cov_2n7wvllbx0().s[
|
|
8145
|
-
|
|
8146
|
-
cov_2n7wvllbx0().s[
|
|
8275
|
+
cov_2n7wvllbx0().s[10]++;
|
|
8276
|
+
handleInputChange(phoneNumber);
|
|
8277
|
+
cov_2n7wvllbx0().s[11]++;
|
|
8147
8278
|
setCountry(country);
|
|
8148
8279
|
};
|
|
8149
|
-
cov_2n7wvllbx0().s[
|
|
8280
|
+
cov_2n7wvllbx0().s[12]++;
|
|
8281
|
+
React.useEffect(function () {
|
|
8282
|
+
cov_2n7wvllbx0().f[3]++;
|
|
8283
|
+
cov_2n7wvllbx0().s[13]++;
|
|
8284
|
+
if (internalValue.current !== value) {
|
|
8285
|
+
cov_2n7wvllbx0().b[4][0]++;
|
|
8286
|
+
cov_2n7wvllbx0().s[14]++;
|
|
8287
|
+
setCountry(getPhoneData(value, defaultCountry).country);
|
|
8288
|
+
} else {
|
|
8289
|
+
cov_2n7wvllbx0().b[4][1]++;
|
|
8290
|
+
}
|
|
8291
|
+
}, [value]);
|
|
8292
|
+
cov_2n7wvllbx0().s[15]++;
|
|
8150
8293
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8151
8294
|
className: classnames([className])
|
|
8152
8295
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
|
|
@@ -8160,14 +8303,15 @@ var PhoneNumberInput = (cov_2n7wvllbx0().s[0]++, /*#__PURE__*/React.forwardRef(f
|
|
|
8160
8303
|
}),
|
|
8161
8304
|
prefix: /*#__PURE__*/React__default["default"].createElement(CountryPicker, _extends({
|
|
8162
8305
|
country: country,
|
|
8306
|
+
phoneNumber: value,
|
|
8163
8307
|
prefix: prefix,
|
|
8164
8308
|
setCountry: setCountry,
|
|
8165
|
-
onInputChange:
|
|
8309
|
+
onInputChange: handleInputChange
|
|
8166
8310
|
}, selectProps)),
|
|
8167
8311
|
onChange: handleChange
|
|
8168
8312
|
}, inputProps)));
|
|
8169
8313
|
}));
|
|
8170
|
-
cov_2n7wvllbx0().s[
|
|
8314
|
+
cov_2n7wvllbx0().s[16]++;
|
|
8171
8315
|
PhoneNumberInput.displayName = "PhoneNumberInput";
|
|
8172
8316
|
|
|
8173
8317
|
var _excluded$1 = ["name"];
|