@bigbinary/neeto-molecules 1.0.27 → 1.0.29
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/BrowserSupport.cjs.js +22 -1221
- package/dist/BrowserSupport.cjs.js.map +1 -1
- package/dist/BrowserSupport.js +22 -1221
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/Columns.cjs.js +39 -976
- package/dist/Columns.cjs.js.map +1 -1
- package/dist/Columns.js +39 -976
- package/dist/Columns.js.map +1 -1
- package/dist/Container.cjs.js +3 -125
- package/dist/Container.cjs.js.map +1 -1
- package/dist/Container.js +3 -125
- package/dist/Container.js.map +1 -1
- package/dist/CustomDomain.cjs.js +156 -6061
- package/dist/CustomDomain.cjs.js.map +1 -1
- package/dist/CustomDomain.js +156 -6061
- package/dist/CustomDomain.js.map +1 -1
- package/dist/DateFormat.cjs.js +9 -264
- package/dist/DateFormat.cjs.js.map +1 -1
- package/dist/DateFormat.js +9 -264
- package/dist/DateFormat.js.map +1 -1
- package/dist/DateRangeFilter.cjs.js +35 -715
- package/dist/DateRangeFilter.cjs.js.map +1 -1
- package/dist/DateRangeFilter.js +35 -715
- package/dist/DateRangeFilter.js.map +1 -1
- package/dist/DynamicVariables.cjs.js +27 -909
- package/dist/DynamicVariables.cjs.js.map +1 -1
- package/dist/DynamicVariables.js +27 -909
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/EmailPreview.cjs.js +14 -349
- package/dist/EmailPreview.cjs.js.map +1 -1
- package/dist/EmailPreview.js +14 -349
- package/dist/EmailPreview.js.map +1 -1
- package/dist/ErrorPage.cjs.js +13 -541
- package/dist/ErrorPage.cjs.js.map +1 -1
- package/dist/ErrorPage.js +13 -541
- package/dist/ErrorPage.js.map +1 -1
- package/dist/Header.cjs.js +13 -513
- package/dist/Header.cjs.js.map +1 -1
- package/dist/Header.js +13 -513
- package/dist/Header.js.map +1 -1
- package/dist/IpRestriction.cjs.js +134 -4226
- package/dist/IpRestriction.cjs.js.map +1 -1
- package/dist/IpRestriction.js +134 -4226
- package/dist/IpRestriction.js.map +1 -1
- package/dist/KeyboardShortcuts.cjs.js +51 -2129
- package/dist/KeyboardShortcuts.cjs.js.map +1 -1
- package/dist/KeyboardShortcuts.js +51 -2129
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/LoginPage.cjs.js +32 -752
- package/dist/LoginPage.cjs.js.map +1 -1
- package/dist/LoginPage.js +32 -752
- package/dist/LoginPage.js.map +1 -1
- package/dist/MenuBar.cjs.js +28 -1501
- package/dist/MenuBar.cjs.js.map +1 -1
- package/dist/MenuBar.js +28 -1501
- package/dist/MenuBar.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +170 -6756
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +171 -6757
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PageLoader.cjs.js +3 -160
- package/dist/PageLoader.cjs.js.map +1 -1
- package/dist/PageLoader.js +3 -160
- package/dist/PageLoader.js.map +1 -1
- package/dist/PhoneNumber.cjs.js +64 -2291
- package/dist/PhoneNumber.cjs.js.map +1 -1
- package/dist/PhoneNumber.js +64 -2291
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/PublishBlock.cjs.js +19 -512
- package/dist/PublishBlock.cjs.js.map +1 -1
- package/dist/PublishBlock.js +19 -512
- package/dist/PublishBlock.js.map +1 -1
- package/dist/Rename.cjs.js +46 -1090
- package/dist/Rename.cjs.js.map +1 -1
- package/dist/Rename.js +48 -1092
- package/dist/Rename.js.map +1 -1
- package/dist/ResponsiveDevicePicker.cjs.js +9 -296
- package/dist/ResponsiveDevicePicker.cjs.js.map +1 -1
- package/dist/ResponsiveDevicePicker.js +9 -296
- package/dist/ResponsiveDevicePicker.js.map +1 -1
- package/dist/Schedule.cjs.js +356 -7305
- package/dist/Schedule.cjs.js.map +1 -1
- package/dist/Schedule.js +356 -7305
- package/dist/Schedule.js.map +1 -1
- package/dist/Scrollable.cjs.js +4 -183
- package/dist/Scrollable.cjs.js.map +1 -1
- package/dist/Scrollable.js +4 -183
- package/dist/Scrollable.js.map +1 -1
- package/dist/ShareViaEmail.cjs.js +68 -2481
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +68 -2481
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/ShareViaLink.cjs.js +57 -1640
- package/dist/ShareViaLink.cjs.js.map +1 -1
- package/dist/ShareViaLink.js +57 -1640
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.cjs.js +99 -4367
- package/dist/Sidebar.cjs.js.map +1 -1
- package/dist/Sidebar.js +99 -4367
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.cjs.js +17 -782
- package/dist/SubHeader.cjs.js.map +1 -1
- package/dist/SubHeader.js +17 -782
- package/dist/SubHeader.js.map +1 -1
- package/dist/TableWrapper.cjs.js +2 -150
- package/dist/TableWrapper.cjs.js.map +1 -1
- package/dist/TableWrapper.js +2 -150
- package/dist/TableWrapper.js.map +1 -1
- package/dist/TimeFormat.cjs.js +1 -44
- package/dist/TimeFormat.cjs.js.map +1 -1
- package/dist/TimeFormat.js +1 -44
- package/dist/TimeFormat.js.map +1 -1
- package/dist/TimezoneMismatchModal.cjs.js +18 -905
- package/dist/TimezoneMismatchModal.cjs.js.map +1 -1
- package/dist/TimezoneMismatchModal.js +18 -905
- package/dist/TimezoneMismatchModal.js.map +1 -1
- package/package.json +3 -2
package/dist/IpRestriction.js
CHANGED
|
@@ -61,166 +61,10 @@ var css = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;wi
|
|
|
61
61
|
n(css,{});
|
|
62
62
|
|
|
63
63
|
var _excluded = ["text"];
|
|
64
|
-
function cov_1rnptrlqih() {
|
|
65
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PageLoader/index.jsx";
|
|
66
|
-
var hash = "40cda882f932d7a0fcac6bc5ec150d93c0420b62";
|
|
67
|
-
var global = new Function("return this")();
|
|
68
|
-
var gcv = "__coverage__";
|
|
69
|
-
var coverageData = {
|
|
70
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PageLoader/index.jsx",
|
|
71
|
-
statementMap: {
|
|
72
|
-
"0": {
|
|
73
|
-
start: {
|
|
74
|
-
line: 9,
|
|
75
|
-
column: 19
|
|
76
|
-
},
|
|
77
|
-
end: {
|
|
78
|
-
line: 29,
|
|
79
|
-
column: 1
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"1": {
|
|
83
|
-
start: {
|
|
84
|
-
line: 10,
|
|
85
|
-
column: 2
|
|
86
|
-
},
|
|
87
|
-
end: {
|
|
88
|
-
line: 28,
|
|
89
|
-
column: 8
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"2": {
|
|
93
|
-
start: {
|
|
94
|
-
line: 31,
|
|
95
|
-
column: 0
|
|
96
|
-
},
|
|
97
|
-
end: {
|
|
98
|
-
line: 36,
|
|
99
|
-
column: 2
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
fnMap: {
|
|
104
|
-
"0": {
|
|
105
|
-
name: "(anonymous_0)",
|
|
106
|
-
decl: {
|
|
107
|
-
start: {
|
|
108
|
-
line: 9,
|
|
109
|
-
column: 19
|
|
110
|
-
},
|
|
111
|
-
end: {
|
|
112
|
-
line: 9,
|
|
113
|
-
column: 20
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
loc: {
|
|
117
|
-
start: {
|
|
118
|
-
line: 10,
|
|
119
|
-
column: 2
|
|
120
|
-
},
|
|
121
|
-
end: {
|
|
122
|
-
line: 28,
|
|
123
|
-
column: 8
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
line: 10
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
branchMap: {
|
|
130
|
-
"0": {
|
|
131
|
-
loc: {
|
|
132
|
-
start: {
|
|
133
|
-
line: 9,
|
|
134
|
-
column: 22
|
|
135
|
-
},
|
|
136
|
-
end: {
|
|
137
|
-
line: 9,
|
|
138
|
-
column: 31
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
type: "default-arg",
|
|
142
|
-
locations: [{
|
|
143
|
-
start: {
|
|
144
|
-
line: 9,
|
|
145
|
-
column: 29
|
|
146
|
-
},
|
|
147
|
-
end: {
|
|
148
|
-
line: 9,
|
|
149
|
-
column: 31
|
|
150
|
-
}
|
|
151
|
-
}],
|
|
152
|
-
line: 9
|
|
153
|
-
},
|
|
154
|
-
"1": {
|
|
155
|
-
loc: {
|
|
156
|
-
start: {
|
|
157
|
-
line: 22,
|
|
158
|
-
column: 7
|
|
159
|
-
},
|
|
160
|
-
end: {
|
|
161
|
-
line: 26,
|
|
162
|
-
column: 7
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
type: "binary-expr",
|
|
166
|
-
locations: [{
|
|
167
|
-
start: {
|
|
168
|
-
line: 22,
|
|
169
|
-
column: 7
|
|
170
|
-
},
|
|
171
|
-
end: {
|
|
172
|
-
line: 22,
|
|
173
|
-
column: 11
|
|
174
|
-
}
|
|
175
|
-
}, {
|
|
176
|
-
start: {
|
|
177
|
-
line: 23,
|
|
178
|
-
column: 8
|
|
179
|
-
},
|
|
180
|
-
end: {
|
|
181
|
-
line: 25,
|
|
182
|
-
column: 21
|
|
183
|
-
}
|
|
184
|
-
}],
|
|
185
|
-
line: 22
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
s: {
|
|
189
|
-
"0": 0,
|
|
190
|
-
"1": 0,
|
|
191
|
-
"2": 0
|
|
192
|
-
},
|
|
193
|
-
f: {
|
|
194
|
-
"0": 0
|
|
195
|
-
},
|
|
196
|
-
b: {
|
|
197
|
-
"0": [0],
|
|
198
|
-
"1": [0, 0]
|
|
199
|
-
},
|
|
200
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
201
|
-
hash: "40cda882f932d7a0fcac6bc5ec150d93c0420b62"
|
|
202
|
-
};
|
|
203
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
204
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
205
|
-
coverage[path] = coverageData;
|
|
206
|
-
}
|
|
207
|
-
var actualCoverage = coverage[path];
|
|
208
|
-
{
|
|
209
|
-
// @ts-ignore
|
|
210
|
-
cov_1rnptrlqih = function () {
|
|
211
|
-
return actualCoverage;
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
return actualCoverage;
|
|
215
|
-
}
|
|
216
|
-
cov_1rnptrlqih();
|
|
217
|
-
cov_1rnptrlqih().s[0]++;
|
|
218
64
|
var PageLoader = function PageLoader(_ref) {
|
|
219
65
|
var _ref$text = _ref.text,
|
|
220
|
-
text = _ref$text === void 0 ?
|
|
66
|
+
text = _ref$text === void 0 ? "" : _ref$text,
|
|
221
67
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
222
|
-
cov_1rnptrlqih().f[0]++;
|
|
223
|
-
cov_1rnptrlqih().s[1]++;
|
|
224
68
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
225
69
|
className: "neeto-molecules-pageloader__wrapper"
|
|
226
70
|
}, otherProps), /*#__PURE__*/React.createElement("div", {
|
|
@@ -242,12 +86,11 @@ var PageLoader = function PageLoader(_ref) {
|
|
|
242
86
|
className: "neeto-molecules-pageloader__rect4"
|
|
243
87
|
}), /*#__PURE__*/React.createElement("div", {
|
|
244
88
|
className: "neeto-molecules-pageloader__rect5"
|
|
245
|
-
}))),
|
|
89
|
+
}))), text && /*#__PURE__*/React.createElement(Typography, {
|
|
246
90
|
style: "h5",
|
|
247
91
|
weight: "semibold"
|
|
248
|
-
}, text)))
|
|
92
|
+
}, text)));
|
|
249
93
|
};
|
|
250
|
-
cov_1rnptrlqih().s[2]++;
|
|
251
94
|
|
|
252
95
|
function _arrayWithHoles(arr) {
|
|
253
96
|
if (Array.isArray(arr)) return arr;
|
|
@@ -304,833 +147,70 @@ function _slicedToArray(arr, i) {
|
|
|
304
147
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
305
148
|
}
|
|
306
149
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
var hash = "ebde9f194323d82d4c6984fbf00d33175b3c14e2";
|
|
310
|
-
var global = new Function("return this")();
|
|
311
|
-
var gcv = "__coverage__";
|
|
312
|
-
var coverageData = {
|
|
313
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/constants.js",
|
|
314
|
-
statementMap: {
|
|
315
|
-
"0": {
|
|
316
|
-
start: {
|
|
317
|
-
line: 1,
|
|
318
|
-
column: 47
|
|
319
|
-
},
|
|
320
|
-
end: {
|
|
321
|
-
line: 1,
|
|
322
|
-
column: 71
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
"1": {
|
|
326
|
-
start: {
|
|
327
|
-
line: 3,
|
|
328
|
-
column: 30
|
|
329
|
-
},
|
|
330
|
-
end: {
|
|
331
|
-
line: 6,
|
|
332
|
-
column: 1
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
"2": {
|
|
336
|
-
start: {
|
|
337
|
-
line: 8,
|
|
338
|
-
column: 26
|
|
339
|
-
},
|
|
340
|
-
end: {
|
|
341
|
-
line: 12,
|
|
342
|
-
column: 1
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
"3": {
|
|
346
|
-
start: {
|
|
347
|
-
line: 14,
|
|
348
|
-
column: 31
|
|
349
|
-
},
|
|
350
|
-
end: {
|
|
351
|
-
line: 14,
|
|
352
|
-
column: 33
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
},
|
|
356
|
-
fnMap: {},
|
|
357
|
-
branchMap: {},
|
|
358
|
-
s: {
|
|
359
|
-
"0": 0,
|
|
360
|
-
"1": 0,
|
|
361
|
-
"2": 0,
|
|
362
|
-
"3": 0
|
|
363
|
-
},
|
|
364
|
-
f: {},
|
|
365
|
-
b: {},
|
|
366
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
367
|
-
hash: "ebde9f194323d82d4c6984fbf00d33175b3c14e2"
|
|
368
|
-
};
|
|
369
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
370
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
371
|
-
coverage[path] = coverageData;
|
|
372
|
-
}
|
|
373
|
-
var actualCoverage = coverage[path];
|
|
374
|
-
{
|
|
375
|
-
// @ts-ignore
|
|
376
|
-
cov_1cujarweav = function () {
|
|
377
|
-
return actualCoverage;
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
return actualCoverage;
|
|
381
|
-
}
|
|
382
|
-
cov_1cujarweav();
|
|
383
|
-
var IP_RESTRICTIONS_ENGINE_BASE_URL = (cov_1cujarweav().s[0]++, "ip_restrictions/api/v1");
|
|
384
|
-
var INITIAL_VALUES = (cov_1cujarweav().s[1]++, {
|
|
150
|
+
var IP_RESTRICTIONS_ENGINE_BASE_URL = "ip_restrictions/api/v1";
|
|
151
|
+
var INITIAL_VALUES = {
|
|
385
152
|
ipStart: "",
|
|
386
153
|
ipEnd: ""
|
|
387
|
-
}
|
|
388
|
-
var QUERY_KEYS =
|
|
154
|
+
};
|
|
155
|
+
var QUERY_KEYS = {
|
|
389
156
|
IP_RESTRICTION: "IP_RESTRICTION",
|
|
390
157
|
ALLOWED_IP_RANGES: "ALLOWED_IP_RANGES",
|
|
391
158
|
CURRENT_IP: "CURRENT_IP"
|
|
392
|
-
}
|
|
393
|
-
var TRUNCATE_LENGTH =
|
|
159
|
+
};
|
|
160
|
+
var TRUNCATE_LENGTH = 18;
|
|
394
161
|
|
|
395
|
-
|
|
396
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/apis/allowed_ip_ranges.js";
|
|
397
|
-
var hash = "ec195427ecf1f5630f45ec5c536942bbc76260ed";
|
|
398
|
-
var global = new Function("return this")();
|
|
399
|
-
var gcv = "__coverage__";
|
|
400
|
-
var coverageData = {
|
|
401
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/apis/allowed_ip_ranges.js",
|
|
402
|
-
statementMap: {
|
|
403
|
-
"0": {
|
|
404
|
-
start: {
|
|
405
|
-
line: 5,
|
|
406
|
-
column: 27
|
|
407
|
-
},
|
|
408
|
-
end: {
|
|
409
|
-
line: 5,
|
|
410
|
-
column: 75
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
"1": {
|
|
414
|
-
start: {
|
|
415
|
-
line: 7,
|
|
416
|
-
column: 14
|
|
417
|
-
},
|
|
418
|
-
end: {
|
|
419
|
-
line: 7,
|
|
420
|
-
column: 49
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
"2": {
|
|
424
|
-
start: {
|
|
425
|
-
line: 7,
|
|
426
|
-
column: 20
|
|
427
|
-
},
|
|
428
|
-
end: {
|
|
429
|
-
line: 7,
|
|
430
|
-
column: 49
|
|
431
|
-
}
|
|
432
|
-
},
|
|
433
|
-
"3": {
|
|
434
|
-
start: {
|
|
435
|
-
line: 9,
|
|
436
|
-
column: 15
|
|
437
|
-
},
|
|
438
|
-
end: {
|
|
439
|
-
line: 10,
|
|
440
|
-
column: 61
|
|
441
|
-
}
|
|
442
|
-
},
|
|
443
|
-
"4": {
|
|
444
|
-
start: {
|
|
445
|
-
line: 10,
|
|
446
|
-
column: 2
|
|
447
|
-
},
|
|
448
|
-
end: {
|
|
449
|
-
line: 10,
|
|
450
|
-
column: 61
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
"5": {
|
|
454
|
-
start: {
|
|
455
|
-
line: 12,
|
|
456
|
-
column: 16
|
|
457
|
-
},
|
|
458
|
-
end: {
|
|
459
|
-
line: 12,
|
|
460
|
-
column: 65
|
|
461
|
-
}
|
|
462
|
-
},
|
|
463
|
-
"6": {
|
|
464
|
-
start: {
|
|
465
|
-
line: 12,
|
|
466
|
-
column: 22
|
|
467
|
-
},
|
|
468
|
-
end: {
|
|
469
|
-
line: 12,
|
|
470
|
-
column: 65
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
"7": {
|
|
474
|
-
start: {
|
|
475
|
-
line: 14,
|
|
476
|
-
column: 15
|
|
477
|
-
},
|
|
478
|
-
end: {
|
|
479
|
-
line: 17,
|
|
480
|
-
column: 4
|
|
481
|
-
}
|
|
482
|
-
},
|
|
483
|
-
"8": {
|
|
484
|
-
start: {
|
|
485
|
-
line: 15,
|
|
486
|
-
column: 2
|
|
487
|
-
},
|
|
488
|
-
end: {
|
|
489
|
-
line: 17,
|
|
490
|
-
column: 4
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
"9": {
|
|
494
|
-
start: {
|
|
495
|
-
line: 19,
|
|
496
|
-
column: 27
|
|
497
|
-
},
|
|
498
|
-
end: {
|
|
499
|
-
line: 24,
|
|
500
|
-
column: 1
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
fnMap: {
|
|
505
|
-
"0": {
|
|
506
|
-
name: "(anonymous_0)",
|
|
507
|
-
decl: {
|
|
508
|
-
start: {
|
|
509
|
-
line: 7,
|
|
510
|
-
column: 14
|
|
511
|
-
},
|
|
512
|
-
end: {
|
|
513
|
-
line: 7,
|
|
514
|
-
column: 15
|
|
515
|
-
}
|
|
516
|
-
},
|
|
517
|
-
loc: {
|
|
518
|
-
start: {
|
|
519
|
-
line: 7,
|
|
520
|
-
column: 20
|
|
521
|
-
},
|
|
522
|
-
end: {
|
|
523
|
-
line: 7,
|
|
524
|
-
column: 49
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
line: 7
|
|
528
|
-
},
|
|
529
|
-
"1": {
|
|
530
|
-
name: "(anonymous_1)",
|
|
531
|
-
decl: {
|
|
532
|
-
start: {
|
|
533
|
-
line: 9,
|
|
534
|
-
column: 15
|
|
535
|
-
},
|
|
536
|
-
end: {
|
|
537
|
-
line: 9,
|
|
538
|
-
column: 16
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
loc: {
|
|
542
|
-
start: {
|
|
543
|
-
line: 10,
|
|
544
|
-
column: 2
|
|
545
|
-
},
|
|
546
|
-
end: {
|
|
547
|
-
line: 10,
|
|
548
|
-
column: 61
|
|
549
|
-
}
|
|
550
|
-
},
|
|
551
|
-
line: 10
|
|
552
|
-
},
|
|
553
|
-
"2": {
|
|
554
|
-
name: "(anonymous_2)",
|
|
555
|
-
decl: {
|
|
556
|
-
start: {
|
|
557
|
-
line: 12,
|
|
558
|
-
column: 16
|
|
559
|
-
},
|
|
560
|
-
end: {
|
|
561
|
-
line: 12,
|
|
562
|
-
column: 17
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
|
-
loc: {
|
|
566
|
-
start: {
|
|
567
|
-
line: 12,
|
|
568
|
-
column: 22
|
|
569
|
-
},
|
|
570
|
-
end: {
|
|
571
|
-
line: 12,
|
|
572
|
-
column: 65
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
line: 12
|
|
576
|
-
},
|
|
577
|
-
"3": {
|
|
578
|
-
name: "(anonymous_3)",
|
|
579
|
-
decl: {
|
|
580
|
-
start: {
|
|
581
|
-
line: 14,
|
|
582
|
-
column: 15
|
|
583
|
-
},
|
|
584
|
-
end: {
|
|
585
|
-
line: 14,
|
|
586
|
-
column: 16
|
|
587
|
-
}
|
|
588
|
-
},
|
|
589
|
-
loc: {
|
|
590
|
-
start: {
|
|
591
|
-
line: 15,
|
|
592
|
-
column: 2
|
|
593
|
-
},
|
|
594
|
-
end: {
|
|
595
|
-
line: 17,
|
|
596
|
-
column: 4
|
|
597
|
-
}
|
|
598
|
-
},
|
|
599
|
-
line: 15
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
branchMap: {},
|
|
603
|
-
s: {
|
|
604
|
-
"0": 0,
|
|
605
|
-
"1": 0,
|
|
606
|
-
"2": 0,
|
|
607
|
-
"3": 0,
|
|
608
|
-
"4": 0,
|
|
609
|
-
"5": 0,
|
|
610
|
-
"6": 0,
|
|
611
|
-
"7": 0,
|
|
612
|
-
"8": 0,
|
|
613
|
-
"9": 0
|
|
614
|
-
},
|
|
615
|
-
f: {
|
|
616
|
-
"0": 0,
|
|
617
|
-
"1": 0,
|
|
618
|
-
"2": 0,
|
|
619
|
-
"3": 0
|
|
620
|
-
},
|
|
621
|
-
b: {},
|
|
622
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
623
|
-
hash: "ec195427ecf1f5630f45ec5c536942bbc76260ed"
|
|
624
|
-
};
|
|
625
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
626
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
627
|
-
coverage[path] = coverageData;
|
|
628
|
-
}
|
|
629
|
-
var actualCoverage = coverage[path];
|
|
630
|
-
{
|
|
631
|
-
// @ts-ignore
|
|
632
|
-
cov_xk0z0bw2i = function () {
|
|
633
|
-
return actualCoverage;
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
return actualCoverage;
|
|
637
|
-
}
|
|
638
|
-
cov_xk0z0bw2i();
|
|
639
|
-
var allowedIpRangesUrl = (cov_xk0z0bw2i().s[0]++, "".concat(IP_RESTRICTIONS_ENGINE_BASE_URL, "/allowed_ips"));
|
|
640
|
-
cov_xk0z0bw2i().s[1]++;
|
|
162
|
+
var allowedIpRangesUrl = "".concat(IP_RESTRICTIONS_ENGINE_BASE_URL, "/allowed_ips");
|
|
641
163
|
var fetch = function fetch() {
|
|
642
|
-
cov_xk0z0bw2i().f[0]++;
|
|
643
|
-
cov_xk0z0bw2i().s[2]++;
|
|
644
164
|
return axios.get(allowedIpRangesUrl);
|
|
645
165
|
};
|
|
646
|
-
cov_xk0z0bw2i().s[3]++;
|
|
647
166
|
var create = function create(payload) {
|
|
648
|
-
cov_xk0z0bw2i().f[1]++;
|
|
649
|
-
cov_xk0z0bw2i().s[4]++;
|
|
650
167
|
return axios.post(allowedIpRangesUrl, {
|
|
651
168
|
allowedIpRange: payload
|
|
652
169
|
});
|
|
653
170
|
};
|
|
654
|
-
cov_xk0z0bw2i().s[5]++;
|
|
655
171
|
var destroy = function destroy(id) {
|
|
656
|
-
cov_xk0z0bw2i().f[2]++;
|
|
657
|
-
cov_xk0z0bw2i().s[6]++;
|
|
658
172
|
return axios["delete"]("".concat(allowedIpRangesUrl, "/").concat(id));
|
|
659
173
|
};
|
|
660
|
-
cov_xk0z0bw2i().s[7]++;
|
|
661
174
|
var update$1 = function update(_ref) {
|
|
662
175
|
var id = _ref.id,
|
|
663
176
|
payload = _ref.payload;
|
|
664
|
-
cov_xk0z0bw2i().f[3]++;
|
|
665
|
-
cov_xk0z0bw2i().s[8]++;
|
|
666
177
|
return axios.patch("".concat(allowedIpRangesUrl, "/").concat(id), {
|
|
667
178
|
allowedIpRange: payload
|
|
668
179
|
});
|
|
669
180
|
};
|
|
670
|
-
var allowedIpRangesApi =
|
|
181
|
+
var allowedIpRangesApi = {
|
|
671
182
|
fetch: fetch,
|
|
672
183
|
create: create,
|
|
673
184
|
destroy: destroy,
|
|
674
185
|
update: update$1
|
|
675
|
-
}
|
|
186
|
+
};
|
|
676
187
|
|
|
677
|
-
|
|
678
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js";
|
|
679
|
-
var hash = "0d016b68f6a16e572acd37e4f529b7e583df6845";
|
|
680
|
-
var global = new Function("return this")();
|
|
681
|
-
var gcv = "__coverage__";
|
|
682
|
-
var coverageData = {
|
|
683
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js",
|
|
684
|
-
statementMap: {
|
|
685
|
-
"0": {
|
|
686
|
-
start: {
|
|
687
|
-
line: 6,
|
|
688
|
-
column: 30
|
|
689
|
-
},
|
|
690
|
-
end: {
|
|
691
|
-
line: 6,
|
|
692
|
-
column: 40
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
"1": {
|
|
696
|
-
start: {
|
|
697
|
-
line: 8,
|
|
698
|
-
column: 32
|
|
699
|
-
},
|
|
700
|
-
end: {
|
|
701
|
-
line: 9,
|
|
702
|
-
column: 65
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
|
-
"2": {
|
|
706
|
-
start: {
|
|
707
|
-
line: 9,
|
|
708
|
-
column: 2
|
|
709
|
-
},
|
|
710
|
-
end: {
|
|
711
|
-
line: 9,
|
|
712
|
-
column: 65
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
"3": {
|
|
716
|
-
start: {
|
|
717
|
-
line: 9,
|
|
718
|
-
column: 38
|
|
719
|
-
},
|
|
720
|
-
end: {
|
|
721
|
-
line: 9,
|
|
722
|
-
column: 64
|
|
723
|
-
}
|
|
724
|
-
},
|
|
725
|
-
"4": {
|
|
726
|
-
start: {
|
|
727
|
-
line: 11,
|
|
728
|
-
column: 33
|
|
729
|
-
},
|
|
730
|
-
end: {
|
|
731
|
-
line: 17,
|
|
732
|
-
column: 1
|
|
733
|
-
}
|
|
734
|
-
},
|
|
735
|
-
"5": {
|
|
736
|
-
start: {
|
|
737
|
-
line: 12,
|
|
738
|
-
column: 22
|
|
739
|
-
},
|
|
740
|
-
end: {
|
|
741
|
-
line: 12,
|
|
742
|
-
column: 38
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
"6": {
|
|
746
|
-
start: {
|
|
747
|
-
line: 14,
|
|
748
|
-
column: 2
|
|
749
|
-
},
|
|
750
|
-
end: {
|
|
751
|
-
line: 16,
|
|
752
|
-
column: 5
|
|
753
|
-
}
|
|
754
|
-
},
|
|
755
|
-
"7": {
|
|
756
|
-
start: {
|
|
757
|
-
line: 15,
|
|
758
|
-
column: 21
|
|
759
|
-
},
|
|
760
|
-
end: {
|
|
761
|
-
line: 15,
|
|
762
|
-
column: 69
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
"8": {
|
|
766
|
-
start: {
|
|
767
|
-
line: 19,
|
|
768
|
-
column: 34
|
|
769
|
-
},
|
|
770
|
-
end: {
|
|
771
|
-
line: 27,
|
|
772
|
-
column: 1
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
"9": {
|
|
776
|
-
start: {
|
|
777
|
-
line: 20,
|
|
778
|
-
column: 22
|
|
779
|
-
},
|
|
780
|
-
end: {
|
|
781
|
-
line: 20,
|
|
782
|
-
column: 38
|
|
783
|
-
}
|
|
784
|
-
},
|
|
785
|
-
"10": {
|
|
786
|
-
start: {
|
|
787
|
-
line: 22,
|
|
788
|
-
column: 2
|
|
789
|
-
},
|
|
790
|
-
end: {
|
|
791
|
-
line: 26,
|
|
792
|
-
column: 5
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
"11": {
|
|
796
|
-
start: {
|
|
797
|
-
line: 24,
|
|
798
|
-
column: 6
|
|
799
|
-
},
|
|
800
|
-
end: {
|
|
801
|
-
line: 24,
|
|
802
|
-
column: 55
|
|
803
|
-
}
|
|
804
|
-
},
|
|
805
|
-
"12": {
|
|
806
|
-
start: {
|
|
807
|
-
line: 29,
|
|
808
|
-
column: 33
|
|
809
|
-
},
|
|
810
|
-
end: {
|
|
811
|
-
line: 37,
|
|
812
|
-
column: 1
|
|
813
|
-
}
|
|
814
|
-
},
|
|
815
|
-
"13": {
|
|
816
|
-
start: {
|
|
817
|
-
line: 30,
|
|
818
|
-
column: 22
|
|
819
|
-
},
|
|
820
|
-
end: {
|
|
821
|
-
line: 30,
|
|
822
|
-
column: 38
|
|
823
|
-
}
|
|
824
|
-
},
|
|
825
|
-
"14": {
|
|
826
|
-
start: {
|
|
827
|
-
line: 32,
|
|
828
|
-
column: 2
|
|
829
|
-
},
|
|
830
|
-
end: {
|
|
831
|
-
line: 36,
|
|
832
|
-
column: 5
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
"15": {
|
|
836
|
-
start: {
|
|
837
|
-
line: 34,
|
|
838
|
-
column: 6
|
|
839
|
-
},
|
|
840
|
-
end: {
|
|
841
|
-
line: 34,
|
|
842
|
-
column: 55
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
fnMap: {
|
|
847
|
-
"0": {
|
|
848
|
-
name: "(anonymous_0)",
|
|
849
|
-
decl: {
|
|
850
|
-
start: {
|
|
851
|
-
line: 8,
|
|
852
|
-
column: 32
|
|
853
|
-
},
|
|
854
|
-
end: {
|
|
855
|
-
line: 8,
|
|
856
|
-
column: 33
|
|
857
|
-
}
|
|
858
|
-
},
|
|
859
|
-
loc: {
|
|
860
|
-
start: {
|
|
861
|
-
line: 9,
|
|
862
|
-
column: 2
|
|
863
|
-
},
|
|
864
|
-
end: {
|
|
865
|
-
line: 9,
|
|
866
|
-
column: 65
|
|
867
|
-
}
|
|
868
|
-
},
|
|
869
|
-
line: 9
|
|
870
|
-
},
|
|
871
|
-
"1": {
|
|
872
|
-
name: "(anonymous_1)",
|
|
873
|
-
decl: {
|
|
874
|
-
start: {
|
|
875
|
-
line: 9,
|
|
876
|
-
column: 32
|
|
877
|
-
},
|
|
878
|
-
end: {
|
|
879
|
-
line: 9,
|
|
880
|
-
column: 33
|
|
881
|
-
}
|
|
882
|
-
},
|
|
883
|
-
loc: {
|
|
884
|
-
start: {
|
|
885
|
-
line: 9,
|
|
886
|
-
column: 38
|
|
887
|
-
},
|
|
888
|
-
end: {
|
|
889
|
-
line: 9,
|
|
890
|
-
column: 64
|
|
891
|
-
}
|
|
892
|
-
},
|
|
893
|
-
line: 9
|
|
894
|
-
},
|
|
895
|
-
"2": {
|
|
896
|
-
name: "(anonymous_2)",
|
|
897
|
-
decl: {
|
|
898
|
-
start: {
|
|
899
|
-
line: 11,
|
|
900
|
-
column: 33
|
|
901
|
-
},
|
|
902
|
-
end: {
|
|
903
|
-
line: 11,
|
|
904
|
-
column: 34
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
loc: {
|
|
908
|
-
start: {
|
|
909
|
-
line: 11,
|
|
910
|
-
column: 39
|
|
911
|
-
},
|
|
912
|
-
end: {
|
|
913
|
-
line: 17,
|
|
914
|
-
column: 1
|
|
915
|
-
}
|
|
916
|
-
},
|
|
917
|
-
line: 11
|
|
918
|
-
},
|
|
919
|
-
"3": {
|
|
920
|
-
name: "(anonymous_3)",
|
|
921
|
-
decl: {
|
|
922
|
-
start: {
|
|
923
|
-
line: 15,
|
|
924
|
-
column: 15
|
|
925
|
-
},
|
|
926
|
-
end: {
|
|
927
|
-
line: 15,
|
|
928
|
-
column: 16
|
|
929
|
-
}
|
|
930
|
-
},
|
|
931
|
-
loc: {
|
|
932
|
-
start: {
|
|
933
|
-
line: 15,
|
|
934
|
-
column: 21
|
|
935
|
-
},
|
|
936
|
-
end: {
|
|
937
|
-
line: 15,
|
|
938
|
-
column: 69
|
|
939
|
-
}
|
|
940
|
-
},
|
|
941
|
-
line: 15
|
|
942
|
-
},
|
|
943
|
-
"4": {
|
|
944
|
-
name: "(anonymous_4)",
|
|
945
|
-
decl: {
|
|
946
|
-
start: {
|
|
947
|
-
line: 19,
|
|
948
|
-
column: 34
|
|
949
|
-
},
|
|
950
|
-
end: {
|
|
951
|
-
line: 19,
|
|
952
|
-
column: 35
|
|
953
|
-
}
|
|
954
|
-
},
|
|
955
|
-
loc: {
|
|
956
|
-
start: {
|
|
957
|
-
line: 19,
|
|
958
|
-
column: 40
|
|
959
|
-
},
|
|
960
|
-
end: {
|
|
961
|
-
line: 27,
|
|
962
|
-
column: 1
|
|
963
|
-
}
|
|
964
|
-
},
|
|
965
|
-
line: 19
|
|
966
|
-
},
|
|
967
|
-
"5": {
|
|
968
|
-
name: "(anonymous_5)",
|
|
969
|
-
decl: {
|
|
970
|
-
start: {
|
|
971
|
-
line: 23,
|
|
972
|
-
column: 15
|
|
973
|
-
},
|
|
974
|
-
end: {
|
|
975
|
-
line: 23,
|
|
976
|
-
column: 16
|
|
977
|
-
}
|
|
978
|
-
},
|
|
979
|
-
loc: {
|
|
980
|
-
start: {
|
|
981
|
-
line: 23,
|
|
982
|
-
column: 21
|
|
983
|
-
},
|
|
984
|
-
end: {
|
|
985
|
-
line: 25,
|
|
986
|
-
column: 5
|
|
987
|
-
}
|
|
988
|
-
},
|
|
989
|
-
line: 23
|
|
990
|
-
},
|
|
991
|
-
"6": {
|
|
992
|
-
name: "(anonymous_6)",
|
|
993
|
-
decl: {
|
|
994
|
-
start: {
|
|
995
|
-
line: 29,
|
|
996
|
-
column: 33
|
|
997
|
-
},
|
|
998
|
-
end: {
|
|
999
|
-
line: 29,
|
|
1000
|
-
column: 34
|
|
1001
|
-
}
|
|
1002
|
-
},
|
|
1003
|
-
loc: {
|
|
1004
|
-
start: {
|
|
1005
|
-
line: 29,
|
|
1006
|
-
column: 39
|
|
1007
|
-
},
|
|
1008
|
-
end: {
|
|
1009
|
-
line: 37,
|
|
1010
|
-
column: 1
|
|
1011
|
-
}
|
|
1012
|
-
},
|
|
1013
|
-
line: 29
|
|
1014
|
-
},
|
|
1015
|
-
"7": {
|
|
1016
|
-
name: "(anonymous_7)",
|
|
1017
|
-
decl: {
|
|
1018
|
-
start: {
|
|
1019
|
-
line: 33,
|
|
1020
|
-
column: 15
|
|
1021
|
-
},
|
|
1022
|
-
end: {
|
|
1023
|
-
line: 33,
|
|
1024
|
-
column: 16
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
loc: {
|
|
1028
|
-
start: {
|
|
1029
|
-
line: 33,
|
|
1030
|
-
column: 21
|
|
1031
|
-
},
|
|
1032
|
-
end: {
|
|
1033
|
-
line: 35,
|
|
1034
|
-
column: 5
|
|
1035
|
-
}
|
|
1036
|
-
},
|
|
1037
|
-
line: 33
|
|
1038
|
-
}
|
|
1039
|
-
},
|
|
1040
|
-
branchMap: {},
|
|
1041
|
-
s: {
|
|
1042
|
-
"0": 0,
|
|
1043
|
-
"1": 0,
|
|
1044
|
-
"2": 0,
|
|
1045
|
-
"3": 0,
|
|
1046
|
-
"4": 0,
|
|
1047
|
-
"5": 0,
|
|
1048
|
-
"6": 0,
|
|
1049
|
-
"7": 0,
|
|
1050
|
-
"8": 0,
|
|
1051
|
-
"9": 0,
|
|
1052
|
-
"10": 0,
|
|
1053
|
-
"11": 0,
|
|
1054
|
-
"12": 0,
|
|
1055
|
-
"13": 0,
|
|
1056
|
-
"14": 0,
|
|
1057
|
-
"15": 0
|
|
1058
|
-
},
|
|
1059
|
-
f: {
|
|
1060
|
-
"0": 0,
|
|
1061
|
-
"1": 0,
|
|
1062
|
-
"2": 0,
|
|
1063
|
-
"3": 0,
|
|
1064
|
-
"4": 0,
|
|
1065
|
-
"5": 0,
|
|
1066
|
-
"6": 0,
|
|
1067
|
-
"7": 0
|
|
1068
|
-
},
|
|
1069
|
-
b: {},
|
|
1070
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
1071
|
-
hash: "0d016b68f6a16e572acd37e4f529b7e583df6845"
|
|
1072
|
-
};
|
|
1073
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
1074
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
1075
|
-
coverage[path] = coverageData;
|
|
1076
|
-
}
|
|
1077
|
-
var actualCoverage = coverage[path];
|
|
1078
|
-
{
|
|
1079
|
-
// @ts-ignore
|
|
1080
|
-
cov_3s8c4or5 = function () {
|
|
1081
|
-
return actualCoverage;
|
|
1082
|
-
};
|
|
1083
|
-
}
|
|
1084
|
-
return actualCoverage;
|
|
1085
|
-
}
|
|
1086
|
-
cov_3s8c4or5();
|
|
1087
|
-
var _ref$2 = (cov_3s8c4or5().s[0]++, QUERY_KEYS),
|
|
1088
|
-
ALLOWED_IP_RANGES = _ref$2.ALLOWED_IP_RANGES;
|
|
1089
|
-
cov_3s8c4or5().s[1]++;
|
|
188
|
+
var ALLOWED_IP_RANGES = QUERY_KEYS.ALLOWED_IP_RANGES;
|
|
1090
189
|
var useFetchAllowedIpRanges = function useFetchAllowedIpRanges() {
|
|
1091
|
-
cov_3s8c4or5().f[0]++;
|
|
1092
|
-
cov_3s8c4or5().s[2]++;
|
|
1093
190
|
return useQuery([ALLOWED_IP_RANGES], function () {
|
|
1094
|
-
cov_3s8c4or5().f[1]++;
|
|
1095
|
-
cov_3s8c4or5().s[3]++;
|
|
1096
191
|
return allowedIpRangesApi.fetch();
|
|
1097
192
|
});
|
|
1098
193
|
};
|
|
1099
|
-
cov_3s8c4or5().s[4]++;
|
|
1100
194
|
var useCreateAllowedIpRanges = function useCreateAllowedIpRanges() {
|
|
1101
|
-
|
|
1102
|
-
var queryClient = (cov_3s8c4or5().s[5]++, useQueryClient());
|
|
1103
|
-
cov_3s8c4or5().s[6]++;
|
|
195
|
+
var queryClient = useQueryClient();
|
|
1104
196
|
return useMutation(allowedIpRangesApi.create, {
|
|
1105
197
|
onSuccess: function onSuccess() {
|
|
1106
|
-
cov_3s8c4or5().f[3]++;
|
|
1107
|
-
cov_3s8c4or5().s[7]++;
|
|
1108
198
|
return queryClient.invalidateQueries(ALLOWED_IP_RANGES);
|
|
1109
199
|
}
|
|
1110
200
|
});
|
|
1111
201
|
};
|
|
1112
|
-
cov_3s8c4or5().s[8]++;
|
|
1113
202
|
var useDestroyAllowedIpRanges = function useDestroyAllowedIpRanges() {
|
|
1114
|
-
|
|
1115
|
-
var queryClient = (cov_3s8c4or5().s[9]++, useQueryClient());
|
|
1116
|
-
cov_3s8c4or5().s[10]++;
|
|
203
|
+
var queryClient = useQueryClient();
|
|
1117
204
|
return useMutation(allowedIpRangesApi.destroy, {
|
|
1118
205
|
onSuccess: function onSuccess() {
|
|
1119
|
-
cov_3s8c4or5().f[5]++;
|
|
1120
|
-
cov_3s8c4or5().s[11]++;
|
|
1121
206
|
queryClient.invalidateQueries(ALLOWED_IP_RANGES);
|
|
1122
207
|
}
|
|
1123
208
|
});
|
|
1124
209
|
};
|
|
1125
|
-
cov_3s8c4or5().s[12]++;
|
|
1126
210
|
var useUpdateAllowedIpRanges = function useUpdateAllowedIpRanges() {
|
|
1127
|
-
|
|
1128
|
-
var queryClient = (cov_3s8c4or5().s[13]++, useQueryClient());
|
|
1129
|
-
cov_3s8c4or5().s[14]++;
|
|
211
|
+
var queryClient = useQueryClient();
|
|
1130
212
|
return useMutation(allowedIpRangesApi.update, {
|
|
1131
213
|
onSuccess: function onSuccess() {
|
|
1132
|
-
cov_3s8c4or5().f[7]++;
|
|
1133
|
-
cov_3s8c4or5().s[15]++;
|
|
1134
214
|
queryClient.invalidateQueries(ALLOWED_IP_RANGES);
|
|
1135
215
|
}
|
|
1136
216
|
});
|
|
@@ -4223,1233 +3303,63 @@ class SortedSet {
|
|
|
4223
3303
|
|
|
4224
3304
|
} (ipNum));
|
|
4225
3305
|
|
|
4226
|
-
function
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
line: 13,
|
|
4277
|
-
column: 24
|
|
4278
|
-
},
|
|
4279
|
-
end: {
|
|
4280
|
-
line: 13,
|
|
4281
|
-
column: 76
|
|
4282
|
-
}
|
|
4283
|
-
},
|
|
4284
|
-
"5": {
|
|
4285
|
-
start: {
|
|
4286
|
-
line: 13,
|
|
4287
|
-
column: 30
|
|
4288
|
-
},
|
|
4289
|
-
end: {
|
|
4290
|
-
line: 13,
|
|
4291
|
-
column: 76
|
|
4292
|
-
}
|
|
4293
|
-
},
|
|
4294
|
-
"6": {
|
|
4295
|
-
start: {
|
|
4296
|
-
line: 15,
|
|
4297
|
-
column: 35
|
|
4298
|
-
},
|
|
4299
|
-
end: {
|
|
4300
|
-
line: 17,
|
|
4301
|
-
column: 58
|
|
4302
|
-
}
|
|
4303
|
-
},
|
|
4304
|
-
"7": {
|
|
4305
|
-
start: {
|
|
4306
|
-
line: 16,
|
|
4307
|
-
column: 2
|
|
4308
|
-
},
|
|
4309
|
-
end: {
|
|
4310
|
-
line: 17,
|
|
4311
|
-
column: 58
|
|
4312
|
-
}
|
|
4313
|
-
},
|
|
4314
|
-
"8": {
|
|
4315
|
-
start: {
|
|
4316
|
-
line: 19,
|
|
4317
|
-
column: 25
|
|
4318
|
-
},
|
|
4319
|
-
end: {
|
|
4320
|
-
line: 24,
|
|
4321
|
-
column: 1
|
|
4322
|
-
}
|
|
4323
|
-
},
|
|
4324
|
-
"9": {
|
|
4325
|
-
start: {
|
|
4326
|
-
line: 20,
|
|
4327
|
-
column: 22
|
|
4328
|
-
},
|
|
4329
|
-
end: {
|
|
4330
|
-
line: 20,
|
|
4331
|
-
column: 59
|
|
4332
|
-
}
|
|
4333
|
-
},
|
|
4334
|
-
"10": {
|
|
4335
|
-
start: {
|
|
4336
|
-
line: 21,
|
|
4337
|
-
column: 20
|
|
4338
|
-
},
|
|
4339
|
-
end: {
|
|
4340
|
-
line: 21,
|
|
4341
|
-
column: 55
|
|
4342
|
-
}
|
|
4343
|
-
},
|
|
4344
|
-
"11": {
|
|
4345
|
-
start: {
|
|
4346
|
-
line: 23,
|
|
4347
|
-
column: 2
|
|
4348
|
-
},
|
|
4349
|
-
end: {
|
|
4350
|
-
line: 23,
|
|
4351
|
-
column: 51
|
|
4352
|
-
}
|
|
4353
|
-
},
|
|
4354
|
-
"12": {
|
|
4355
|
-
start: {
|
|
4356
|
-
line: 26,
|
|
4357
|
-
column: 25
|
|
4358
|
-
},
|
|
4359
|
-
end: {
|
|
4360
|
-
line: 31,
|
|
4361
|
-
column: 1
|
|
4362
|
-
}
|
|
4363
|
-
},
|
|
4364
|
-
"13": {
|
|
4365
|
-
start: {
|
|
4366
|
-
line: 27,
|
|
4367
|
-
column: 22
|
|
4368
|
-
},
|
|
4369
|
-
end: {
|
|
4370
|
-
line: 27,
|
|
4371
|
-
column: 46
|
|
4372
|
-
}
|
|
4373
|
-
},
|
|
4374
|
-
"14": {
|
|
4375
|
-
start: {
|
|
4376
|
-
line: 28,
|
|
4377
|
-
column: 20
|
|
4378
|
-
},
|
|
4379
|
-
end: {
|
|
4380
|
-
line: 28,
|
|
4381
|
-
column: 42
|
|
4382
|
-
}
|
|
4383
|
-
},
|
|
4384
|
-
"15": {
|
|
4385
|
-
start: {
|
|
4386
|
-
line: 30,
|
|
4387
|
-
column: 2
|
|
4388
|
-
},
|
|
4389
|
-
end: {
|
|
4390
|
-
line: 30,
|
|
4391
|
-
column: 51
|
|
4392
|
-
}
|
|
4393
|
-
},
|
|
4394
|
-
"16": {
|
|
4395
|
-
start: {
|
|
4396
|
-
line: 33,
|
|
4397
|
-
column: 23
|
|
4398
|
-
},
|
|
4399
|
-
end: {
|
|
4400
|
-
line: 43,
|
|
4401
|
-
column: 1
|
|
4402
|
-
}
|
|
4403
|
-
},
|
|
4404
|
-
"17": {
|
|
4405
|
-
start: {
|
|
4406
|
-
line: 34,
|
|
4407
|
-
column: 2
|
|
4408
|
-
},
|
|
4409
|
-
end: {
|
|
4410
|
-
line: 36,
|
|
4411
|
-
column: 3
|
|
4412
|
-
}
|
|
4413
|
-
},
|
|
4414
|
-
"18": {
|
|
4415
|
-
start: {
|
|
4416
|
-
line: 35,
|
|
4417
|
-
column: 4
|
|
4418
|
-
},
|
|
4419
|
-
end: {
|
|
4420
|
-
line: 35,
|
|
4421
|
-
column: 44
|
|
4422
|
-
}
|
|
4423
|
-
},
|
|
4424
|
-
"19": {
|
|
4425
|
-
start: {
|
|
4426
|
-
line: 38,
|
|
4427
|
-
column: 2
|
|
4428
|
-
},
|
|
4429
|
-
end: {
|
|
4430
|
-
line: 40,
|
|
4431
|
-
column: 3
|
|
4432
|
-
}
|
|
4433
|
-
},
|
|
4434
|
-
"20": {
|
|
4435
|
-
start: {
|
|
4436
|
-
line: 39,
|
|
4437
|
-
column: 4
|
|
4438
|
-
},
|
|
4439
|
-
end: {
|
|
4440
|
-
line: 39,
|
|
4441
|
-
column: 44
|
|
4442
|
-
}
|
|
4443
|
-
},
|
|
4444
|
-
"21": {
|
|
4445
|
-
start: {
|
|
4446
|
-
line: 42,
|
|
4447
|
-
column: 2
|
|
4448
|
-
},
|
|
4449
|
-
end: {
|
|
4450
|
-
line: 42,
|
|
4451
|
-
column: 15
|
|
4452
|
-
}
|
|
4453
|
-
},
|
|
4454
|
-
"22": {
|
|
4455
|
-
start: {
|
|
4456
|
-
line: 45,
|
|
4457
|
-
column: 0
|
|
4458
|
-
},
|
|
4459
|
-
end: {
|
|
4460
|
-
line: 57,
|
|
4461
|
-
column: 3
|
|
4462
|
-
}
|
|
4463
|
-
},
|
|
4464
|
-
"23": {
|
|
4465
|
-
start: {
|
|
4466
|
-
line: 46,
|
|
4467
|
-
column: 2
|
|
4468
|
-
},
|
|
4469
|
-
end: {
|
|
4470
|
-
line: 56,
|
|
4471
|
-
column: 5
|
|
4472
|
-
}
|
|
4473
|
-
},
|
|
4474
|
-
"24": {
|
|
4475
|
-
start: {
|
|
4476
|
-
line: 47,
|
|
4477
|
-
column: 4
|
|
4478
|
-
},
|
|
4479
|
-
end: {
|
|
4480
|
-
line: 49,
|
|
4481
|
-
column: 5
|
|
4482
|
-
}
|
|
4483
|
-
},
|
|
4484
|
-
"25": {
|
|
4485
|
-
start: {
|
|
4486
|
-
line: 48,
|
|
4487
|
-
column: 6
|
|
4488
|
-
},
|
|
4489
|
-
end: {
|
|
4490
|
-
line: 48,
|
|
4491
|
-
column: 18
|
|
4492
|
-
}
|
|
4493
|
-
},
|
|
4494
|
-
"26": {
|
|
4495
|
-
start: {
|
|
4496
|
-
line: 51,
|
|
4497
|
-
column: 22
|
|
4498
|
-
},
|
|
4499
|
-
end: {
|
|
4500
|
-
line: 51,
|
|
4501
|
-
column: 44
|
|
4502
|
-
}
|
|
4503
|
-
},
|
|
4504
|
-
"27": {
|
|
4505
|
-
start: {
|
|
4506
|
-
line: 53,
|
|
4507
|
-
column: 4
|
|
4508
|
-
},
|
|
4509
|
-
end: {
|
|
4510
|
-
line: 55,
|
|
4511
|
-
column: 6
|
|
4512
|
-
}
|
|
4513
|
-
},
|
|
4514
|
-
"28": {
|
|
4515
|
-
start: {
|
|
4516
|
-
line: 59,
|
|
4517
|
-
column: 48
|
|
4518
|
-
},
|
|
4519
|
-
end: {
|
|
4520
|
-
line: 85,
|
|
4521
|
-
column: 4
|
|
4522
|
-
}
|
|
4523
|
-
},
|
|
4524
|
-
"29": {
|
|
4525
|
-
start: {
|
|
4526
|
-
line: 60,
|
|
4527
|
-
column: 2
|
|
4528
|
-
},
|
|
4529
|
-
end: {
|
|
4530
|
-
line: 85,
|
|
4531
|
-
column: 4
|
|
4532
|
-
}
|
|
4533
|
-
},
|
|
4534
|
-
"30": {
|
|
4535
|
-
start: {
|
|
4536
|
-
line: 69,
|
|
4537
|
-
column: 8
|
|
4538
|
-
},
|
|
4539
|
-
end: {
|
|
4540
|
-
line: 74,
|
|
4541
|
-
column: 10
|
|
4542
|
-
}
|
|
4543
|
-
},
|
|
4544
|
-
"31": {
|
|
4545
|
-
start: {
|
|
4546
|
-
line: 70,
|
|
4547
|
-
column: 25
|
|
4548
|
-
},
|
|
4549
|
-
end: {
|
|
4550
|
-
line: 70,
|
|
4551
|
-
column: 67
|
|
4552
|
-
}
|
|
4553
|
-
},
|
|
4554
|
-
"32": {
|
|
4555
|
-
start: {
|
|
4556
|
-
line: 77,
|
|
4557
|
-
column: 8
|
|
3306
|
+
var isValidIPv4String = function isValidIPv4String(ip) {
|
|
3307
|
+
return isNotNil(ip) && ipNum.Validator.isValidIPv4String(ip)[0];
|
|
3308
|
+
};
|
|
3309
|
+
var isValidIPv6String = function isValidIPv6String(ip) {
|
|
3310
|
+
return isNotNil(ip) && ipNum.Validator.isValidIPv6String(ip)[0];
|
|
3311
|
+
};
|
|
3312
|
+
var isValidIpString = function isValidIpString(ip) {
|
|
3313
|
+
return isValidIPv4String(ip) || isValidIPv6String(ip);
|
|
3314
|
+
};
|
|
3315
|
+
var areIpAddressesInSameFormat = function areIpAddressesInSameFormat(ipStart, ipEnd) {
|
|
3316
|
+
return isValidIPv4String(ipStart) && isValidIPv4String(ipEnd) || isValidIPv6String(ipStart) && isValidIPv6String(ipEnd);
|
|
3317
|
+
};
|
|
3318
|
+
var isValidIPv4Range = function isValidIPv4Range(ipStart, ipEnd) {
|
|
3319
|
+
var ipStartAddr = ipNum.IPv4.fromDecimalDottedString(ipStart);
|
|
3320
|
+
var ipEndAddr = ipNum.IPv4.fromDecimalDottedString(ipEnd);
|
|
3321
|
+
return ipStartAddr.isLessThanOrEquals(ipEndAddr);
|
|
3322
|
+
};
|
|
3323
|
+
var isValidIPv6Range = function isValidIPv6Range(ipStart, ipEnd) {
|
|
3324
|
+
var ipStartAddr = ipNum.IPv6.fromString(ipStart);
|
|
3325
|
+
var ipEndAddr = ipNum.IPv6.fromString(ipEnd);
|
|
3326
|
+
return ipStartAddr.isLessThanOrEquals(ipEndAddr);
|
|
3327
|
+
};
|
|
3328
|
+
var isValidIPRange = function isValidIPRange(ipStart, ipEnd) {
|
|
3329
|
+
if (isValidIPv4String(ipStart) && isValidIPv4String(ipEnd)) {
|
|
3330
|
+
return isValidIPv4Range(ipStart, ipEnd);
|
|
3331
|
+
}
|
|
3332
|
+
if (isValidIPv6String(ipStart) && isValidIPv6String(ipEnd)) {
|
|
3333
|
+
return isValidIPv6Range(ipStart, ipEnd);
|
|
3334
|
+
}
|
|
3335
|
+
return false;
|
|
3336
|
+
};
|
|
3337
|
+
yup.addMethod(yup.string, "validIp", function (errorMessage) {
|
|
3338
|
+
return this.test("valid-ip", errorMessage, function (value) {
|
|
3339
|
+
if (isNil(value)) {
|
|
3340
|
+
return this;
|
|
3341
|
+
}
|
|
3342
|
+
var isValidIp = isValidIpString(value);
|
|
3343
|
+
return isValidIp || this.createError({
|
|
3344
|
+
path: this.path,
|
|
3345
|
+
message: errorMessage
|
|
3346
|
+
});
|
|
3347
|
+
});
|
|
3348
|
+
});
|
|
3349
|
+
var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema() {
|
|
3350
|
+
return yup.object().shape({
|
|
3351
|
+
ipStart: yup.string().validIp(t$1("neetoMolecules.ipRestriction.validations.invalidIp")).required(t$1("neetoMolecules.ipRestriction.validations.ipStartRequired")),
|
|
3352
|
+
ipEnd: yup.string().validIp(t$1("neetoMolecules.ipRestriction.validations.invalidIp")).when("ipStart", function (ipStart, schema) {
|
|
3353
|
+
return schema.test({
|
|
3354
|
+
test: function test(ipEnd) {
|
|
3355
|
+
return areIpAddressesInSameFormat(ipStart, ipEnd);
|
|
4558
3356
|
},
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
start: {
|
|
4566
|
-
line: 78,
|
|
4567
|
-
column: 25
|
|
4568
|
-
},
|
|
4569
|
-
end: {
|
|
4570
|
-
line: 78,
|
|
4571
|
-
column: 55
|
|
4572
|
-
}
|
|
4573
|
-
}
|
|
4574
|
-
},
|
|
4575
|
-
fnMap: {
|
|
4576
|
-
"0": {
|
|
4577
|
-
name: "(anonymous_0)",
|
|
4578
|
-
decl: {
|
|
4579
|
-
start: {
|
|
4580
|
-
line: 7,
|
|
4581
|
-
column: 26
|
|
4582
|
-
},
|
|
4583
|
-
end: {
|
|
4584
|
-
line: 7,
|
|
4585
|
-
column: 27
|
|
4586
|
-
}
|
|
4587
|
-
},
|
|
4588
|
-
loc: {
|
|
4589
|
-
start: {
|
|
4590
|
-
line: 8,
|
|
4591
|
-
column: 2
|
|
4592
|
-
},
|
|
4593
|
-
end: {
|
|
4594
|
-
line: 8,
|
|
4595
|
-
column: 52
|
|
4596
|
-
}
|
|
4597
|
-
},
|
|
4598
|
-
line: 8
|
|
4599
|
-
},
|
|
4600
|
-
"1": {
|
|
4601
|
-
name: "(anonymous_1)",
|
|
4602
|
-
decl: {
|
|
4603
|
-
start: {
|
|
4604
|
-
line: 10,
|
|
4605
|
-
column: 26
|
|
4606
|
-
},
|
|
4607
|
-
end: {
|
|
4608
|
-
line: 10,
|
|
4609
|
-
column: 27
|
|
4610
|
-
}
|
|
4611
|
-
},
|
|
4612
|
-
loc: {
|
|
4613
|
-
start: {
|
|
4614
|
-
line: 11,
|
|
4615
|
-
column: 2
|
|
4616
|
-
},
|
|
4617
|
-
end: {
|
|
4618
|
-
line: 11,
|
|
4619
|
-
column: 52
|
|
4620
|
-
}
|
|
4621
|
-
},
|
|
4622
|
-
line: 11
|
|
4623
|
-
},
|
|
4624
|
-
"2": {
|
|
4625
|
-
name: "(anonymous_2)",
|
|
4626
|
-
decl: {
|
|
4627
|
-
start: {
|
|
4628
|
-
line: 13,
|
|
4629
|
-
column: 24
|
|
4630
|
-
},
|
|
4631
|
-
end: {
|
|
4632
|
-
line: 13,
|
|
4633
|
-
column: 25
|
|
4634
|
-
}
|
|
4635
|
-
},
|
|
4636
|
-
loc: {
|
|
4637
|
-
start: {
|
|
4638
|
-
line: 13,
|
|
4639
|
-
column: 30
|
|
4640
|
-
},
|
|
4641
|
-
end: {
|
|
4642
|
-
line: 13,
|
|
4643
|
-
column: 76
|
|
4644
|
-
}
|
|
4645
|
-
},
|
|
4646
|
-
line: 13
|
|
4647
|
-
},
|
|
4648
|
-
"3": {
|
|
4649
|
-
name: "(anonymous_3)",
|
|
4650
|
-
decl: {
|
|
4651
|
-
start: {
|
|
4652
|
-
line: 15,
|
|
4653
|
-
column: 35
|
|
4654
|
-
},
|
|
4655
|
-
end: {
|
|
4656
|
-
line: 15,
|
|
4657
|
-
column: 36
|
|
4658
|
-
}
|
|
4659
|
-
},
|
|
4660
|
-
loc: {
|
|
4661
|
-
start: {
|
|
4662
|
-
line: 16,
|
|
4663
|
-
column: 2
|
|
4664
|
-
},
|
|
4665
|
-
end: {
|
|
4666
|
-
line: 17,
|
|
4667
|
-
column: 58
|
|
4668
|
-
}
|
|
4669
|
-
},
|
|
4670
|
-
line: 16
|
|
4671
|
-
},
|
|
4672
|
-
"4": {
|
|
4673
|
-
name: "(anonymous_4)",
|
|
4674
|
-
decl: {
|
|
4675
|
-
start: {
|
|
4676
|
-
line: 19,
|
|
4677
|
-
column: 25
|
|
4678
|
-
},
|
|
4679
|
-
end: {
|
|
4680
|
-
line: 19,
|
|
4681
|
-
column: 26
|
|
4682
|
-
}
|
|
4683
|
-
},
|
|
4684
|
-
loc: {
|
|
4685
|
-
start: {
|
|
4686
|
-
line: 19,
|
|
4687
|
-
column: 45
|
|
4688
|
-
},
|
|
4689
|
-
end: {
|
|
4690
|
-
line: 24,
|
|
4691
|
-
column: 1
|
|
4692
|
-
}
|
|
4693
|
-
},
|
|
4694
|
-
line: 19
|
|
4695
|
-
},
|
|
4696
|
-
"5": {
|
|
4697
|
-
name: "(anonymous_5)",
|
|
4698
|
-
decl: {
|
|
4699
|
-
start: {
|
|
4700
|
-
line: 26,
|
|
4701
|
-
column: 25
|
|
4702
|
-
},
|
|
4703
|
-
end: {
|
|
4704
|
-
line: 26,
|
|
4705
|
-
column: 26
|
|
4706
|
-
}
|
|
4707
|
-
},
|
|
4708
|
-
loc: {
|
|
4709
|
-
start: {
|
|
4710
|
-
line: 26,
|
|
4711
|
-
column: 45
|
|
4712
|
-
},
|
|
4713
|
-
end: {
|
|
4714
|
-
line: 31,
|
|
4715
|
-
column: 1
|
|
4716
|
-
}
|
|
4717
|
-
},
|
|
4718
|
-
line: 26
|
|
4719
|
-
},
|
|
4720
|
-
"6": {
|
|
4721
|
-
name: "(anonymous_6)",
|
|
4722
|
-
decl: {
|
|
4723
|
-
start: {
|
|
4724
|
-
line: 33,
|
|
4725
|
-
column: 23
|
|
4726
|
-
},
|
|
4727
|
-
end: {
|
|
4728
|
-
line: 33,
|
|
4729
|
-
column: 24
|
|
4730
|
-
}
|
|
4731
|
-
},
|
|
4732
|
-
loc: {
|
|
4733
|
-
start: {
|
|
4734
|
-
line: 33,
|
|
4735
|
-
column: 43
|
|
4736
|
-
},
|
|
4737
|
-
end: {
|
|
4738
|
-
line: 43,
|
|
4739
|
-
column: 1
|
|
4740
|
-
}
|
|
4741
|
-
},
|
|
4742
|
-
line: 33
|
|
4743
|
-
},
|
|
4744
|
-
"7": {
|
|
4745
|
-
name: "(anonymous_7)",
|
|
4746
|
-
decl: {
|
|
4747
|
-
start: {
|
|
4748
|
-
line: 45,
|
|
4749
|
-
column: 37
|
|
4750
|
-
},
|
|
4751
|
-
end: {
|
|
4752
|
-
line: 45,
|
|
4753
|
-
column: 38
|
|
4754
|
-
}
|
|
4755
|
-
},
|
|
4756
|
-
loc: {
|
|
4757
|
-
start: {
|
|
4758
|
-
line: 45,
|
|
4759
|
-
column: 61
|
|
4760
|
-
},
|
|
4761
|
-
end: {
|
|
4762
|
-
line: 57,
|
|
4763
|
-
column: 1
|
|
4764
|
-
}
|
|
4765
|
-
},
|
|
4766
|
-
line: 45
|
|
4767
|
-
},
|
|
4768
|
-
"8": {
|
|
4769
|
-
name: "(anonymous_8)",
|
|
4770
|
-
decl: {
|
|
4771
|
-
start: {
|
|
4772
|
-
line: 46,
|
|
4773
|
-
column: 45
|
|
4774
|
-
},
|
|
4775
|
-
end: {
|
|
4776
|
-
line: 46,
|
|
4777
|
-
column: 46
|
|
4778
|
-
}
|
|
4779
|
-
},
|
|
4780
|
-
loc: {
|
|
4781
|
-
start: {
|
|
4782
|
-
line: 46,
|
|
4783
|
-
column: 62
|
|
4784
|
-
},
|
|
4785
|
-
end: {
|
|
4786
|
-
line: 56,
|
|
4787
|
-
column: 3
|
|
4788
|
-
}
|
|
4789
|
-
},
|
|
4790
|
-
line: 46
|
|
4791
|
-
},
|
|
4792
|
-
"9": {
|
|
4793
|
-
name: "(anonymous_9)",
|
|
4794
|
-
decl: {
|
|
4795
|
-
start: {
|
|
4796
|
-
line: 59,
|
|
4797
|
-
column: 48
|
|
4798
|
-
},
|
|
4799
|
-
end: {
|
|
4800
|
-
line: 59,
|
|
4801
|
-
column: 49
|
|
4802
|
-
}
|
|
4803
|
-
},
|
|
4804
|
-
loc: {
|
|
4805
|
-
start: {
|
|
4806
|
-
line: 60,
|
|
4807
|
-
column: 2
|
|
4808
|
-
},
|
|
4809
|
-
end: {
|
|
4810
|
-
line: 85,
|
|
4811
|
-
column: 4
|
|
4812
|
-
}
|
|
4813
|
-
},
|
|
4814
|
-
line: 60
|
|
4815
|
-
},
|
|
4816
|
-
"10": {
|
|
4817
|
-
name: "(anonymous_10)",
|
|
4818
|
-
decl: {
|
|
4819
|
-
start: {
|
|
4820
|
-
line: 68,
|
|
4821
|
-
column: 23
|
|
4822
|
-
},
|
|
4823
|
-
end: {
|
|
4824
|
-
line: 68,
|
|
4825
|
-
column: 24
|
|
4826
|
-
}
|
|
4827
|
-
},
|
|
4828
|
-
loc: {
|
|
4829
|
-
start: {
|
|
4830
|
-
line: 69,
|
|
4831
|
-
column: 8
|
|
4832
|
-
},
|
|
4833
|
-
end: {
|
|
4834
|
-
line: 74,
|
|
4835
|
-
column: 10
|
|
4836
|
-
}
|
|
4837
|
-
},
|
|
4838
|
-
line: 69
|
|
4839
|
-
},
|
|
4840
|
-
"11": {
|
|
4841
|
-
name: "(anonymous_11)",
|
|
4842
|
-
decl: {
|
|
4843
|
-
start: {
|
|
4844
|
-
line: 70,
|
|
4845
|
-
column: 16
|
|
4846
|
-
},
|
|
4847
|
-
end: {
|
|
4848
|
-
line: 70,
|
|
4849
|
-
column: 17
|
|
4850
|
-
}
|
|
4851
|
-
},
|
|
4852
|
-
loc: {
|
|
4853
|
-
start: {
|
|
4854
|
-
line: 70,
|
|
4855
|
-
column: 25
|
|
4856
|
-
},
|
|
4857
|
-
end: {
|
|
4858
|
-
line: 70,
|
|
4859
|
-
column: 67
|
|
4860
|
-
}
|
|
4861
|
-
},
|
|
4862
|
-
line: 70
|
|
4863
|
-
},
|
|
4864
|
-
"12": {
|
|
4865
|
-
name: "(anonymous_12)",
|
|
4866
|
-
decl: {
|
|
4867
|
-
start: {
|
|
4868
|
-
line: 76,
|
|
4869
|
-
column: 23
|
|
4870
|
-
},
|
|
4871
|
-
end: {
|
|
4872
|
-
line: 76,
|
|
4873
|
-
column: 24
|
|
4874
|
-
}
|
|
4875
|
-
},
|
|
4876
|
-
loc: {
|
|
4877
|
-
start: {
|
|
4878
|
-
line: 77,
|
|
4879
|
-
column: 8
|
|
4880
|
-
},
|
|
4881
|
-
end: {
|
|
4882
|
-
line: 82,
|
|
4883
|
-
column: 10
|
|
4884
|
-
}
|
|
4885
|
-
},
|
|
4886
|
-
line: 77
|
|
4887
|
-
},
|
|
4888
|
-
"13": {
|
|
4889
|
-
name: "(anonymous_13)",
|
|
4890
|
-
decl: {
|
|
4891
|
-
start: {
|
|
4892
|
-
line: 78,
|
|
4893
|
-
column: 16
|
|
4894
|
-
},
|
|
4895
|
-
end: {
|
|
4896
|
-
line: 78,
|
|
4897
|
-
column: 17
|
|
4898
|
-
}
|
|
4899
|
-
},
|
|
4900
|
-
loc: {
|
|
4901
|
-
start: {
|
|
4902
|
-
line: 78,
|
|
4903
|
-
column: 25
|
|
4904
|
-
},
|
|
4905
|
-
end: {
|
|
4906
|
-
line: 78,
|
|
4907
|
-
column: 55
|
|
4908
|
-
}
|
|
4909
|
-
},
|
|
4910
|
-
line: 78
|
|
4911
|
-
}
|
|
4912
|
-
},
|
|
4913
|
-
branchMap: {
|
|
4914
|
-
"0": {
|
|
4915
|
-
loc: {
|
|
4916
|
-
start: {
|
|
4917
|
-
line: 8,
|
|
4918
|
-
column: 2
|
|
4919
|
-
},
|
|
4920
|
-
end: {
|
|
4921
|
-
line: 8,
|
|
4922
|
-
column: 52
|
|
4923
|
-
}
|
|
4924
|
-
},
|
|
4925
|
-
type: "binary-expr",
|
|
4926
|
-
locations: [{
|
|
4927
|
-
start: {
|
|
4928
|
-
line: 8,
|
|
4929
|
-
column: 2
|
|
4930
|
-
},
|
|
4931
|
-
end: {
|
|
4932
|
-
line: 8,
|
|
4933
|
-
column: 14
|
|
4934
|
-
}
|
|
4935
|
-
}, {
|
|
4936
|
-
start: {
|
|
4937
|
-
line: 8,
|
|
4938
|
-
column: 18
|
|
4939
|
-
},
|
|
4940
|
-
end: {
|
|
4941
|
-
line: 8,
|
|
4942
|
-
column: 52
|
|
4943
|
-
}
|
|
4944
|
-
}],
|
|
4945
|
-
line: 8
|
|
4946
|
-
},
|
|
4947
|
-
"1": {
|
|
4948
|
-
loc: {
|
|
4949
|
-
start: {
|
|
4950
|
-
line: 11,
|
|
4951
|
-
column: 2
|
|
4952
|
-
},
|
|
4953
|
-
end: {
|
|
4954
|
-
line: 11,
|
|
4955
|
-
column: 52
|
|
4956
|
-
}
|
|
4957
|
-
},
|
|
4958
|
-
type: "binary-expr",
|
|
4959
|
-
locations: [{
|
|
4960
|
-
start: {
|
|
4961
|
-
line: 11,
|
|
4962
|
-
column: 2
|
|
4963
|
-
},
|
|
4964
|
-
end: {
|
|
4965
|
-
line: 11,
|
|
4966
|
-
column: 14
|
|
4967
|
-
}
|
|
4968
|
-
}, {
|
|
4969
|
-
start: {
|
|
4970
|
-
line: 11,
|
|
4971
|
-
column: 18
|
|
4972
|
-
},
|
|
4973
|
-
end: {
|
|
4974
|
-
line: 11,
|
|
4975
|
-
column: 52
|
|
4976
|
-
}
|
|
4977
|
-
}],
|
|
4978
|
-
line: 11
|
|
4979
|
-
},
|
|
4980
|
-
"2": {
|
|
4981
|
-
loc: {
|
|
4982
|
-
start: {
|
|
4983
|
-
line: 13,
|
|
4984
|
-
column: 30
|
|
4985
|
-
},
|
|
4986
|
-
end: {
|
|
4987
|
-
line: 13,
|
|
4988
|
-
column: 76
|
|
4989
|
-
}
|
|
4990
|
-
},
|
|
4991
|
-
type: "binary-expr",
|
|
4992
|
-
locations: [{
|
|
4993
|
-
start: {
|
|
4994
|
-
line: 13,
|
|
4995
|
-
column: 30
|
|
4996
|
-
},
|
|
4997
|
-
end: {
|
|
4998
|
-
line: 13,
|
|
4999
|
-
column: 51
|
|
5000
|
-
}
|
|
5001
|
-
}, {
|
|
5002
|
-
start: {
|
|
5003
|
-
line: 13,
|
|
5004
|
-
column: 55
|
|
5005
|
-
},
|
|
5006
|
-
end: {
|
|
5007
|
-
line: 13,
|
|
5008
|
-
column: 76
|
|
5009
|
-
}
|
|
5010
|
-
}],
|
|
5011
|
-
line: 13
|
|
5012
|
-
},
|
|
5013
|
-
"3": {
|
|
5014
|
-
loc: {
|
|
5015
|
-
start: {
|
|
5016
|
-
line: 16,
|
|
5017
|
-
column: 2
|
|
5018
|
-
},
|
|
5019
|
-
end: {
|
|
5020
|
-
line: 17,
|
|
5021
|
-
column: 58
|
|
5022
|
-
}
|
|
5023
|
-
},
|
|
5024
|
-
type: "binary-expr",
|
|
5025
|
-
locations: [{
|
|
5026
|
-
start: {
|
|
5027
|
-
line: 16,
|
|
5028
|
-
column: 3
|
|
5029
|
-
},
|
|
5030
|
-
end: {
|
|
5031
|
-
line: 16,
|
|
5032
|
-
column: 29
|
|
5033
|
-
}
|
|
5034
|
-
}, {
|
|
5035
|
-
start: {
|
|
5036
|
-
line: 16,
|
|
5037
|
-
column: 33
|
|
5038
|
-
},
|
|
5039
|
-
end: {
|
|
5040
|
-
line: 16,
|
|
5041
|
-
column: 57
|
|
5042
|
-
}
|
|
5043
|
-
}, {
|
|
5044
|
-
start: {
|
|
5045
|
-
line: 17,
|
|
5046
|
-
column: 3
|
|
5047
|
-
},
|
|
5048
|
-
end: {
|
|
5049
|
-
line: 17,
|
|
5050
|
-
column: 29
|
|
5051
|
-
}
|
|
5052
|
-
}, {
|
|
5053
|
-
start: {
|
|
5054
|
-
line: 17,
|
|
5055
|
-
column: 33
|
|
5056
|
-
},
|
|
5057
|
-
end: {
|
|
5058
|
-
line: 17,
|
|
5059
|
-
column: 57
|
|
5060
|
-
}
|
|
5061
|
-
}],
|
|
5062
|
-
line: 16
|
|
5063
|
-
},
|
|
5064
|
-
"4": {
|
|
5065
|
-
loc: {
|
|
5066
|
-
start: {
|
|
5067
|
-
line: 34,
|
|
5068
|
-
column: 2
|
|
5069
|
-
},
|
|
5070
|
-
end: {
|
|
5071
|
-
line: 36,
|
|
5072
|
-
column: 3
|
|
5073
|
-
}
|
|
5074
|
-
},
|
|
5075
|
-
type: "if",
|
|
5076
|
-
locations: [{
|
|
5077
|
-
start: {
|
|
5078
|
-
line: 34,
|
|
5079
|
-
column: 2
|
|
5080
|
-
},
|
|
5081
|
-
end: {
|
|
5082
|
-
line: 36,
|
|
5083
|
-
column: 3
|
|
5084
|
-
}
|
|
5085
|
-
}, {
|
|
5086
|
-
start: {
|
|
5087
|
-
line: undefined,
|
|
5088
|
-
column: undefined
|
|
5089
|
-
},
|
|
5090
|
-
end: {
|
|
5091
|
-
line: undefined,
|
|
5092
|
-
column: undefined
|
|
5093
|
-
}
|
|
5094
|
-
}],
|
|
5095
|
-
line: 34
|
|
5096
|
-
},
|
|
5097
|
-
"5": {
|
|
5098
|
-
loc: {
|
|
5099
|
-
start: {
|
|
5100
|
-
line: 34,
|
|
5101
|
-
column: 6
|
|
5102
|
-
},
|
|
5103
|
-
end: {
|
|
5104
|
-
line: 34,
|
|
5105
|
-
column: 60
|
|
5106
|
-
}
|
|
5107
|
-
},
|
|
5108
|
-
type: "binary-expr",
|
|
5109
|
-
locations: [{
|
|
5110
|
-
start: {
|
|
5111
|
-
line: 34,
|
|
5112
|
-
column: 6
|
|
5113
|
-
},
|
|
5114
|
-
end: {
|
|
5115
|
-
line: 34,
|
|
5116
|
-
column: 32
|
|
5117
|
-
}
|
|
5118
|
-
}, {
|
|
5119
|
-
start: {
|
|
5120
|
-
line: 34,
|
|
5121
|
-
column: 36
|
|
5122
|
-
},
|
|
5123
|
-
end: {
|
|
5124
|
-
line: 34,
|
|
5125
|
-
column: 60
|
|
5126
|
-
}
|
|
5127
|
-
}],
|
|
5128
|
-
line: 34
|
|
5129
|
-
},
|
|
5130
|
-
"6": {
|
|
5131
|
-
loc: {
|
|
5132
|
-
start: {
|
|
5133
|
-
line: 38,
|
|
5134
|
-
column: 2
|
|
5135
|
-
},
|
|
5136
|
-
end: {
|
|
5137
|
-
line: 40,
|
|
5138
|
-
column: 3
|
|
5139
|
-
}
|
|
5140
|
-
},
|
|
5141
|
-
type: "if",
|
|
5142
|
-
locations: [{
|
|
5143
|
-
start: {
|
|
5144
|
-
line: 38,
|
|
5145
|
-
column: 2
|
|
5146
|
-
},
|
|
5147
|
-
end: {
|
|
5148
|
-
line: 40,
|
|
5149
|
-
column: 3
|
|
5150
|
-
}
|
|
5151
|
-
}, {
|
|
5152
|
-
start: {
|
|
5153
|
-
line: undefined,
|
|
5154
|
-
column: undefined
|
|
5155
|
-
},
|
|
5156
|
-
end: {
|
|
5157
|
-
line: undefined,
|
|
5158
|
-
column: undefined
|
|
5159
|
-
}
|
|
5160
|
-
}],
|
|
5161
|
-
line: 38
|
|
5162
|
-
},
|
|
5163
|
-
"7": {
|
|
5164
|
-
loc: {
|
|
5165
|
-
start: {
|
|
5166
|
-
line: 38,
|
|
5167
|
-
column: 6
|
|
5168
|
-
},
|
|
5169
|
-
end: {
|
|
5170
|
-
line: 38,
|
|
5171
|
-
column: 60
|
|
5172
|
-
}
|
|
5173
|
-
},
|
|
5174
|
-
type: "binary-expr",
|
|
5175
|
-
locations: [{
|
|
5176
|
-
start: {
|
|
5177
|
-
line: 38,
|
|
5178
|
-
column: 6
|
|
5179
|
-
},
|
|
5180
|
-
end: {
|
|
5181
|
-
line: 38,
|
|
5182
|
-
column: 32
|
|
5183
|
-
}
|
|
5184
|
-
}, {
|
|
5185
|
-
start: {
|
|
5186
|
-
line: 38,
|
|
5187
|
-
column: 36
|
|
5188
|
-
},
|
|
5189
|
-
end: {
|
|
5190
|
-
line: 38,
|
|
5191
|
-
column: 60
|
|
5192
|
-
}
|
|
5193
|
-
}],
|
|
5194
|
-
line: 38
|
|
5195
|
-
},
|
|
5196
|
-
"8": {
|
|
5197
|
-
loc: {
|
|
5198
|
-
start: {
|
|
5199
|
-
line: 47,
|
|
5200
|
-
column: 4
|
|
5201
|
-
},
|
|
5202
|
-
end: {
|
|
5203
|
-
line: 49,
|
|
5204
|
-
column: 5
|
|
5205
|
-
}
|
|
5206
|
-
},
|
|
5207
|
-
type: "if",
|
|
5208
|
-
locations: [{
|
|
5209
|
-
start: {
|
|
5210
|
-
line: 47,
|
|
5211
|
-
column: 4
|
|
5212
|
-
},
|
|
5213
|
-
end: {
|
|
5214
|
-
line: 49,
|
|
5215
|
-
column: 5
|
|
5216
|
-
}
|
|
5217
|
-
}, {
|
|
5218
|
-
start: {
|
|
5219
|
-
line: undefined,
|
|
5220
|
-
column: undefined
|
|
5221
|
-
},
|
|
5222
|
-
end: {
|
|
5223
|
-
line: undefined,
|
|
5224
|
-
column: undefined
|
|
5225
|
-
}
|
|
5226
|
-
}],
|
|
5227
|
-
line: 47
|
|
5228
|
-
},
|
|
5229
|
-
"9": {
|
|
5230
|
-
loc: {
|
|
5231
|
-
start: {
|
|
5232
|
-
line: 54,
|
|
5233
|
-
column: 6
|
|
5234
|
-
},
|
|
5235
|
-
end: {
|
|
5236
|
-
line: 54,
|
|
5237
|
-
column: 79
|
|
5238
|
-
}
|
|
5239
|
-
},
|
|
5240
|
-
type: "binary-expr",
|
|
5241
|
-
locations: [{
|
|
5242
|
-
start: {
|
|
5243
|
-
line: 54,
|
|
5244
|
-
column: 6
|
|
5245
|
-
},
|
|
5246
|
-
end: {
|
|
5247
|
-
line: 54,
|
|
5248
|
-
column: 15
|
|
5249
|
-
}
|
|
5250
|
-
}, {
|
|
5251
|
-
start: {
|
|
5252
|
-
line: 54,
|
|
5253
|
-
column: 19
|
|
5254
|
-
},
|
|
5255
|
-
end: {
|
|
5256
|
-
line: 54,
|
|
5257
|
-
column: 79
|
|
5258
|
-
}
|
|
5259
|
-
}],
|
|
5260
|
-
line: 54
|
|
5261
|
-
}
|
|
5262
|
-
},
|
|
5263
|
-
s: {
|
|
5264
|
-
"0": 0,
|
|
5265
|
-
"1": 0,
|
|
5266
|
-
"2": 0,
|
|
5267
|
-
"3": 0,
|
|
5268
|
-
"4": 0,
|
|
5269
|
-
"5": 0,
|
|
5270
|
-
"6": 0,
|
|
5271
|
-
"7": 0,
|
|
5272
|
-
"8": 0,
|
|
5273
|
-
"9": 0,
|
|
5274
|
-
"10": 0,
|
|
5275
|
-
"11": 0,
|
|
5276
|
-
"12": 0,
|
|
5277
|
-
"13": 0,
|
|
5278
|
-
"14": 0,
|
|
5279
|
-
"15": 0,
|
|
5280
|
-
"16": 0,
|
|
5281
|
-
"17": 0,
|
|
5282
|
-
"18": 0,
|
|
5283
|
-
"19": 0,
|
|
5284
|
-
"20": 0,
|
|
5285
|
-
"21": 0,
|
|
5286
|
-
"22": 0,
|
|
5287
|
-
"23": 0,
|
|
5288
|
-
"24": 0,
|
|
5289
|
-
"25": 0,
|
|
5290
|
-
"26": 0,
|
|
5291
|
-
"27": 0,
|
|
5292
|
-
"28": 0,
|
|
5293
|
-
"29": 0,
|
|
5294
|
-
"30": 0,
|
|
5295
|
-
"31": 0,
|
|
5296
|
-
"32": 0,
|
|
5297
|
-
"33": 0
|
|
5298
|
-
},
|
|
5299
|
-
f: {
|
|
5300
|
-
"0": 0,
|
|
5301
|
-
"1": 0,
|
|
5302
|
-
"2": 0,
|
|
5303
|
-
"3": 0,
|
|
5304
|
-
"4": 0,
|
|
5305
|
-
"5": 0,
|
|
5306
|
-
"6": 0,
|
|
5307
|
-
"7": 0,
|
|
5308
|
-
"8": 0,
|
|
5309
|
-
"9": 0,
|
|
5310
|
-
"10": 0,
|
|
5311
|
-
"11": 0,
|
|
5312
|
-
"12": 0,
|
|
5313
|
-
"13": 0
|
|
5314
|
-
},
|
|
5315
|
-
b: {
|
|
5316
|
-
"0": [0, 0],
|
|
5317
|
-
"1": [0, 0],
|
|
5318
|
-
"2": [0, 0],
|
|
5319
|
-
"3": [0, 0, 0, 0],
|
|
5320
|
-
"4": [0, 0],
|
|
5321
|
-
"5": [0, 0],
|
|
5322
|
-
"6": [0, 0],
|
|
5323
|
-
"7": [0, 0],
|
|
5324
|
-
"8": [0, 0],
|
|
5325
|
-
"9": [0, 0]
|
|
5326
|
-
},
|
|
5327
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
5328
|
-
hash: "a5c2912cc0f7bc344e3cab04fff4c9c2548b5b8f"
|
|
5329
|
-
};
|
|
5330
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
5331
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
5332
|
-
coverage[path] = coverageData;
|
|
5333
|
-
}
|
|
5334
|
-
var actualCoverage = coverage[path];
|
|
5335
|
-
{
|
|
5336
|
-
// @ts-ignore
|
|
5337
|
-
cov_58ap1ki41 = function () {
|
|
5338
|
-
return actualCoverage;
|
|
5339
|
-
};
|
|
5340
|
-
}
|
|
5341
|
-
return actualCoverage;
|
|
5342
|
-
}
|
|
5343
|
-
cov_58ap1ki41();
|
|
5344
|
-
cov_58ap1ki41().s[0]++;
|
|
5345
|
-
var isValidIPv4String = function isValidIPv4String(ip) {
|
|
5346
|
-
cov_58ap1ki41().f[0]++;
|
|
5347
|
-
cov_58ap1ki41().s[1]++;
|
|
5348
|
-
return (cov_58ap1ki41().b[0][0]++, isNotNil(ip)) && (cov_58ap1ki41().b[0][1]++, ipNum.Validator.isValidIPv4String(ip)[0]);
|
|
5349
|
-
};
|
|
5350
|
-
cov_58ap1ki41().s[2]++;
|
|
5351
|
-
var isValidIPv6String = function isValidIPv6String(ip) {
|
|
5352
|
-
cov_58ap1ki41().f[1]++;
|
|
5353
|
-
cov_58ap1ki41().s[3]++;
|
|
5354
|
-
return (cov_58ap1ki41().b[1][0]++, isNotNil(ip)) && (cov_58ap1ki41().b[1][1]++, ipNum.Validator.isValidIPv6String(ip)[0]);
|
|
5355
|
-
};
|
|
5356
|
-
cov_58ap1ki41().s[4]++;
|
|
5357
|
-
var isValidIpString = function isValidIpString(ip) {
|
|
5358
|
-
cov_58ap1ki41().f[2]++;
|
|
5359
|
-
cov_58ap1ki41().s[5]++;
|
|
5360
|
-
return (cov_58ap1ki41().b[2][0]++, isValidIPv4String(ip)) || (cov_58ap1ki41().b[2][1]++, isValidIPv6String(ip));
|
|
5361
|
-
};
|
|
5362
|
-
cov_58ap1ki41().s[6]++;
|
|
5363
|
-
var areIpAddressesInSameFormat = function areIpAddressesInSameFormat(ipStart, ipEnd) {
|
|
5364
|
-
cov_58ap1ki41().f[3]++;
|
|
5365
|
-
cov_58ap1ki41().s[7]++;
|
|
5366
|
-
return (cov_58ap1ki41().b[3][0]++, isValidIPv4String(ipStart)) && (cov_58ap1ki41().b[3][1]++, isValidIPv4String(ipEnd)) || (cov_58ap1ki41().b[3][2]++, isValidIPv6String(ipStart)) && (cov_58ap1ki41().b[3][3]++, isValidIPv6String(ipEnd));
|
|
5367
|
-
};
|
|
5368
|
-
cov_58ap1ki41().s[8]++;
|
|
5369
|
-
var isValidIPv4Range = function isValidIPv4Range(ipStart, ipEnd) {
|
|
5370
|
-
cov_58ap1ki41().f[4]++;
|
|
5371
|
-
var ipStartAddr = (cov_58ap1ki41().s[9]++, ipNum.IPv4.fromDecimalDottedString(ipStart));
|
|
5372
|
-
var ipEndAddr = (cov_58ap1ki41().s[10]++, ipNum.IPv4.fromDecimalDottedString(ipEnd));
|
|
5373
|
-
cov_58ap1ki41().s[11]++;
|
|
5374
|
-
return ipStartAddr.isLessThanOrEquals(ipEndAddr);
|
|
5375
|
-
};
|
|
5376
|
-
cov_58ap1ki41().s[12]++;
|
|
5377
|
-
var isValidIPv6Range = function isValidIPv6Range(ipStart, ipEnd) {
|
|
5378
|
-
cov_58ap1ki41().f[5]++;
|
|
5379
|
-
var ipStartAddr = (cov_58ap1ki41().s[13]++, ipNum.IPv6.fromString(ipStart));
|
|
5380
|
-
var ipEndAddr = (cov_58ap1ki41().s[14]++, ipNum.IPv6.fromString(ipEnd));
|
|
5381
|
-
cov_58ap1ki41().s[15]++;
|
|
5382
|
-
return ipStartAddr.isLessThanOrEquals(ipEndAddr);
|
|
5383
|
-
};
|
|
5384
|
-
cov_58ap1ki41().s[16]++;
|
|
5385
|
-
var isValidIPRange = function isValidIPRange(ipStart, ipEnd) {
|
|
5386
|
-
cov_58ap1ki41().f[6]++;
|
|
5387
|
-
cov_58ap1ki41().s[17]++;
|
|
5388
|
-
if ((cov_58ap1ki41().b[5][0]++, isValidIPv4String(ipStart)) && (cov_58ap1ki41().b[5][1]++, isValidIPv4String(ipEnd))) {
|
|
5389
|
-
cov_58ap1ki41().b[4][0]++;
|
|
5390
|
-
cov_58ap1ki41().s[18]++;
|
|
5391
|
-
return isValidIPv4Range(ipStart, ipEnd);
|
|
5392
|
-
} else {
|
|
5393
|
-
cov_58ap1ki41().b[4][1]++;
|
|
5394
|
-
}
|
|
5395
|
-
cov_58ap1ki41().s[19]++;
|
|
5396
|
-
if ((cov_58ap1ki41().b[7][0]++, isValidIPv6String(ipStart)) && (cov_58ap1ki41().b[7][1]++, isValidIPv6String(ipEnd))) {
|
|
5397
|
-
cov_58ap1ki41().b[6][0]++;
|
|
5398
|
-
cov_58ap1ki41().s[20]++;
|
|
5399
|
-
return isValidIPv6Range(ipStart, ipEnd);
|
|
5400
|
-
} else {
|
|
5401
|
-
cov_58ap1ki41().b[6][1]++;
|
|
5402
|
-
}
|
|
5403
|
-
cov_58ap1ki41().s[21]++;
|
|
5404
|
-
return false;
|
|
5405
|
-
};
|
|
5406
|
-
cov_58ap1ki41().s[22]++;
|
|
5407
|
-
yup.addMethod(yup.string, "validIp", function (errorMessage) {
|
|
5408
|
-
cov_58ap1ki41().f[7]++;
|
|
5409
|
-
cov_58ap1ki41().s[23]++;
|
|
5410
|
-
return this.test("valid-ip", errorMessage, function (value) {
|
|
5411
|
-
cov_58ap1ki41().f[8]++;
|
|
5412
|
-
cov_58ap1ki41().s[24]++;
|
|
5413
|
-
if (isNil(value)) {
|
|
5414
|
-
cov_58ap1ki41().b[8][0]++;
|
|
5415
|
-
cov_58ap1ki41().s[25]++;
|
|
5416
|
-
return this;
|
|
5417
|
-
} else {
|
|
5418
|
-
cov_58ap1ki41().b[8][1]++;
|
|
5419
|
-
}
|
|
5420
|
-
var isValidIp = (cov_58ap1ki41().s[26]++, isValidIpString(value));
|
|
5421
|
-
cov_58ap1ki41().s[27]++;
|
|
5422
|
-
return (cov_58ap1ki41().b[9][0]++, isValidIp) || (cov_58ap1ki41().b[9][1]++, this.createError({
|
|
5423
|
-
path: this.path,
|
|
5424
|
-
message: errorMessage
|
|
5425
|
-
}));
|
|
5426
|
-
});
|
|
5427
|
-
});
|
|
5428
|
-
cov_58ap1ki41().s[28]++;
|
|
5429
|
-
var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema() {
|
|
5430
|
-
cov_58ap1ki41().f[9]++;
|
|
5431
|
-
cov_58ap1ki41().s[29]++;
|
|
5432
|
-
return yup.object().shape({
|
|
5433
|
-
ipStart: yup.string().validIp(t$1("neetoMolecules.ipRestriction.validations.invalidIp")).required(t$1("neetoMolecules.ipRestriction.validations.ipStartRequired")),
|
|
5434
|
-
ipEnd: yup.string().validIp(t$1("neetoMolecules.ipRestriction.validations.invalidIp")).when("ipStart", function (ipStart, schema) {
|
|
5435
|
-
cov_58ap1ki41().f[10]++;
|
|
5436
|
-
cov_58ap1ki41().s[30]++;
|
|
5437
|
-
return schema.test({
|
|
5438
|
-
test: function test(ipEnd) {
|
|
5439
|
-
cov_58ap1ki41().f[11]++;
|
|
5440
|
-
cov_58ap1ki41().s[31]++;
|
|
5441
|
-
return areIpAddressesInSameFormat(ipStart, ipEnd);
|
|
5442
|
-
},
|
|
5443
|
-
message: t$1("neetoMolecules.ipRestriction.validations.eitherIpv4OrIpv6")
|
|
5444
|
-
});
|
|
5445
|
-
}).when("ipStart", function (ipStart, schema) {
|
|
5446
|
-
cov_58ap1ki41().f[12]++;
|
|
5447
|
-
cov_58ap1ki41().s[32]++;
|
|
5448
|
-
return schema.test({
|
|
5449
|
-
test: function test(ipEnd) {
|
|
5450
|
-
cov_58ap1ki41().f[13]++;
|
|
5451
|
-
cov_58ap1ki41().s[33]++;
|
|
5452
|
-
return isValidIPRange(ipStart, ipEnd);
|
|
3357
|
+
message: t$1("neetoMolecules.ipRestriction.validations.eitherIpv4OrIpv6")
|
|
3358
|
+
});
|
|
3359
|
+
}).when("ipStart", function (ipStart, schema) {
|
|
3360
|
+
return schema.test({
|
|
3361
|
+
test: function test(ipEnd) {
|
|
3362
|
+
return isValidIPRange(ipStart, ipEnd);
|
|
5453
3363
|
},
|
|
5454
3364
|
message: t$1("neetoMolecules.ipRestriction.validations.ipEndGreaterThanIpStart")
|
|
5455
3365
|
});
|
|
@@ -5457,319 +3367,31 @@ var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema
|
|
|
5457
3367
|
});
|
|
5458
3368
|
};
|
|
5459
3369
|
|
|
5460
|
-
function cov_22n3ae5g5y() {
|
|
5461
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/FormRow.jsx";
|
|
5462
|
-
var hash = "1f86da0af62160385d4eb8528bd20edfee6ce831";
|
|
5463
|
-
var global = new Function("return this")();
|
|
5464
|
-
var gcv = "__coverage__";
|
|
5465
|
-
var coverageData = {
|
|
5466
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/FormRow.jsx",
|
|
5467
|
-
statementMap: {
|
|
5468
|
-
"0": {
|
|
5469
|
-
start: {
|
|
5470
|
-
line: 14,
|
|
5471
|
-
column: 16
|
|
5472
|
-
},
|
|
5473
|
-
end: {
|
|
5474
|
-
line: 77,
|
|
5475
|
-
column: 1
|
|
5476
|
-
}
|
|
5477
|
-
},
|
|
5478
|
-
"1": {
|
|
5479
|
-
start: {
|
|
5480
|
-
line: 15,
|
|
5481
|
-
column: 40
|
|
5482
|
-
},
|
|
5483
|
-
end: {
|
|
5484
|
-
line: 15,
|
|
5485
|
-
column: 55
|
|
5486
|
-
}
|
|
5487
|
-
},
|
|
5488
|
-
"2": {
|
|
5489
|
-
start: {
|
|
5490
|
-
line: 17,
|
|
5491
|
-
column: 43
|
|
5492
|
-
},
|
|
5493
|
-
end: {
|
|
5494
|
-
line: 17,
|
|
5495
|
-
column: 69
|
|
5496
|
-
}
|
|
5497
|
-
},
|
|
5498
|
-
"3": {
|
|
5499
|
-
start: {
|
|
5500
|
-
line: 18,
|
|
5501
|
-
column: 43
|
|
5502
|
-
},
|
|
5503
|
-
end: {
|
|
5504
|
-
line: 18,
|
|
5505
|
-
column: 69
|
|
5506
|
-
}
|
|
5507
|
-
},
|
|
5508
|
-
"4": {
|
|
5509
|
-
start: {
|
|
5510
|
-
line: 19,
|
|
5511
|
-
column: 16
|
|
5512
|
-
},
|
|
5513
|
-
end: {
|
|
5514
|
-
line: 19,
|
|
5515
|
-
column: 32
|
|
5516
|
-
}
|
|
5517
|
-
},
|
|
5518
|
-
"5": {
|
|
5519
|
-
start: {
|
|
5520
|
-
line: 21,
|
|
5521
|
-
column: 23
|
|
5522
|
-
},
|
|
5523
|
-
end: {
|
|
5524
|
-
line: 28,
|
|
5525
|
-
column: 3
|
|
5526
|
-
}
|
|
5527
|
-
},
|
|
5528
|
-
"6": {
|
|
5529
|
-
start: {
|
|
5530
|
-
line: 22,
|
|
5531
|
-
column: 4
|
|
5532
|
-
},
|
|
5533
|
-
end: {
|
|
5534
|
-
line: 26,
|
|
5535
|
-
column: 5
|
|
5536
|
-
}
|
|
5537
|
-
},
|
|
5538
|
-
"7": {
|
|
5539
|
-
start: {
|
|
5540
|
-
line: 23,
|
|
5541
|
-
column: 6
|
|
5542
|
-
},
|
|
5543
|
-
end: {
|
|
5544
|
-
line: 23,
|
|
5545
|
-
column: 35
|
|
5546
|
-
}
|
|
5547
|
-
},
|
|
5548
|
-
"8": {
|
|
5549
|
-
start: {
|
|
5550
|
-
line: 25,
|
|
5551
|
-
column: 6
|
|
5552
|
-
},
|
|
5553
|
-
end: {
|
|
5554
|
-
line: 25,
|
|
5555
|
-
column: 61
|
|
5556
|
-
}
|
|
5557
|
-
},
|
|
5558
|
-
"9": {
|
|
5559
|
-
start: {
|
|
5560
|
-
line: 27,
|
|
5561
|
-
column: 4
|
|
5562
|
-
},
|
|
5563
|
-
end: {
|
|
5564
|
-
line: 27,
|
|
5565
|
-
column: 17
|
|
5566
|
-
}
|
|
5567
|
-
},
|
|
5568
|
-
"10": {
|
|
5569
|
-
start: {
|
|
5570
|
-
line: 30,
|
|
5571
|
-
column: 2
|
|
5572
|
-
},
|
|
5573
|
-
end: {
|
|
5574
|
-
line: 76,
|
|
5575
|
-
column: 4
|
|
5576
|
-
}
|
|
5577
|
-
},
|
|
5578
|
-
"11": {
|
|
5579
|
-
start: {
|
|
5580
|
-
line: 61,
|
|
5581
|
-
column: 27
|
|
5582
|
-
},
|
|
5583
|
-
end: {
|
|
5584
|
-
line: 61,
|
|
5585
|
-
column: 47
|
|
5586
|
-
}
|
|
5587
|
-
}
|
|
5588
|
-
},
|
|
5589
|
-
fnMap: {
|
|
5590
|
-
"0": {
|
|
5591
|
-
name: "(anonymous_0)",
|
|
5592
|
-
decl: {
|
|
5593
|
-
start: {
|
|
5594
|
-
line: 14,
|
|
5595
|
-
column: 16
|
|
5596
|
-
},
|
|
5597
|
-
end: {
|
|
5598
|
-
line: 14,
|
|
5599
|
-
column: 17
|
|
5600
|
-
}
|
|
5601
|
-
},
|
|
5602
|
-
loc: {
|
|
5603
|
-
start: {
|
|
5604
|
-
line: 14,
|
|
5605
|
-
column: 52
|
|
5606
|
-
},
|
|
5607
|
-
end: {
|
|
5608
|
-
line: 77,
|
|
5609
|
-
column: 1
|
|
5610
|
-
}
|
|
5611
|
-
},
|
|
5612
|
-
line: 14
|
|
5613
|
-
},
|
|
5614
|
-
"1": {
|
|
5615
|
-
name: "(anonymous_1)",
|
|
5616
|
-
decl: {
|
|
5617
|
-
start: {
|
|
5618
|
-
line: 21,
|
|
5619
|
-
column: 23
|
|
5620
|
-
},
|
|
5621
|
-
end: {
|
|
5622
|
-
line: 21,
|
|
5623
|
-
column: 24
|
|
5624
|
-
}
|
|
5625
|
-
},
|
|
5626
|
-
loc: {
|
|
5627
|
-
start: {
|
|
5628
|
-
line: 21,
|
|
5629
|
-
column: 33
|
|
5630
|
-
},
|
|
5631
|
-
end: {
|
|
5632
|
-
line: 28,
|
|
5633
|
-
column: 3
|
|
5634
|
-
}
|
|
5635
|
-
},
|
|
5636
|
-
line: 21
|
|
5637
|
-
},
|
|
5638
|
-
"2": {
|
|
5639
|
-
name: "(anonymous_2)",
|
|
5640
|
-
decl: {
|
|
5641
|
-
start: {
|
|
5642
|
-
line: 61,
|
|
5643
|
-
column: 21
|
|
5644
|
-
},
|
|
5645
|
-
end: {
|
|
5646
|
-
line: 61,
|
|
5647
|
-
column: 22
|
|
5648
|
-
}
|
|
5649
|
-
},
|
|
5650
|
-
loc: {
|
|
5651
|
-
start: {
|
|
5652
|
-
line: 61,
|
|
5653
|
-
column: 27
|
|
5654
|
-
},
|
|
5655
|
-
end: {
|
|
5656
|
-
line: 61,
|
|
5657
|
-
column: 47
|
|
5658
|
-
}
|
|
5659
|
-
},
|
|
5660
|
-
line: 61
|
|
5661
|
-
}
|
|
5662
|
-
},
|
|
5663
|
-
branchMap: {
|
|
5664
|
-
"0": {
|
|
5665
|
-
loc: {
|
|
5666
|
-
start: {
|
|
5667
|
-
line: 22,
|
|
5668
|
-
column: 4
|
|
5669
|
-
},
|
|
5670
|
-
end: {
|
|
5671
|
-
line: 26,
|
|
5672
|
-
column: 5
|
|
5673
|
-
}
|
|
5674
|
-
},
|
|
5675
|
-
type: "if",
|
|
5676
|
-
locations: [{
|
|
5677
|
-
start: {
|
|
5678
|
-
line: 22,
|
|
5679
|
-
column: 4
|
|
5680
|
-
},
|
|
5681
|
-
end: {
|
|
5682
|
-
line: 26,
|
|
5683
|
-
column: 5
|
|
5684
|
-
}
|
|
5685
|
-
}, {
|
|
5686
|
-
start: {
|
|
5687
|
-
line: 24,
|
|
5688
|
-
column: 11
|
|
5689
|
-
},
|
|
5690
|
-
end: {
|
|
5691
|
-
line: 26,
|
|
5692
|
-
column: 5
|
|
5693
|
-
}
|
|
5694
|
-
}],
|
|
5695
|
-
line: 22
|
|
5696
|
-
}
|
|
5697
|
-
},
|
|
5698
|
-
s: {
|
|
5699
|
-
"0": 0,
|
|
5700
|
-
"1": 0,
|
|
5701
|
-
"2": 0,
|
|
5702
|
-
"3": 0,
|
|
5703
|
-
"4": 0,
|
|
5704
|
-
"5": 0,
|
|
5705
|
-
"6": 0,
|
|
5706
|
-
"7": 0,
|
|
5707
|
-
"8": 0,
|
|
5708
|
-
"9": 0,
|
|
5709
|
-
"10": 0,
|
|
5710
|
-
"11": 0
|
|
5711
|
-
},
|
|
5712
|
-
f: {
|
|
5713
|
-
"0": 0,
|
|
5714
|
-
"1": 0,
|
|
5715
|
-
"2": 0
|
|
5716
|
-
},
|
|
5717
|
-
b: {
|
|
5718
|
-
"0": [0, 0]
|
|
5719
|
-
},
|
|
5720
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
5721
|
-
hash: "1f86da0af62160385d4eb8528bd20edfee6ce831"
|
|
5722
|
-
};
|
|
5723
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
5724
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
5725
|
-
coverage[path] = coverageData;
|
|
5726
|
-
}
|
|
5727
|
-
var actualCoverage = coverage[path];
|
|
5728
|
-
{
|
|
5729
|
-
// @ts-ignore
|
|
5730
|
-
cov_22n3ae5g5y = function () {
|
|
5731
|
-
return actualCoverage;
|
|
5732
|
-
};
|
|
5733
|
-
}
|
|
5734
|
-
return actualCoverage;
|
|
5735
|
-
}
|
|
5736
|
-
cov_22n3ae5g5y();
|
|
5737
|
-
cov_22n3ae5g5y().s[0]++;
|
|
5738
3370
|
var FormRow = function FormRow(_ref) {
|
|
5739
3371
|
var data = _ref.data,
|
|
5740
3372
|
isAddNew = _ref.isAddNew,
|
|
5741
3373
|
onCollapse = _ref.onCollapse;
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
t = _ref6.t;
|
|
5753
|
-
cov_22n3ae5g5y().s[5]++;
|
|
3374
|
+
var _useState = useState(false),
|
|
3375
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3376
|
+
isSubmitted = _useState2[0],
|
|
3377
|
+
setIsSubmitted = _useState2[1];
|
|
3378
|
+
var _useCreateAllowedIpRa = useCreateAllowedIpRanges(),
|
|
3379
|
+
createAllowedIpRange = _useCreateAllowedIpRa.mutate;
|
|
3380
|
+
var _useUpdateAllowedIpRa = useUpdateAllowedIpRanges(),
|
|
3381
|
+
updateAllowedIpRange = _useUpdateAllowedIpRa.mutate;
|
|
3382
|
+
var _useTranslation = useTranslation(),
|
|
3383
|
+
t = _useTranslation.t;
|
|
5754
3384
|
var handleSubmit = function handleSubmit(values) {
|
|
5755
|
-
cov_22n3ae5g5y().f[1]++;
|
|
5756
|
-
cov_22n3ae5g5y().s[6]++;
|
|
5757
3385
|
if (isAddNew) {
|
|
5758
|
-
cov_22n3ae5g5y().b[0][0]++;
|
|
5759
|
-
cov_22n3ae5g5y().s[7]++;
|
|
5760
3386
|
createAllowedIpRange(values);
|
|
5761
3387
|
} else {
|
|
5762
|
-
cov_22n3ae5g5y().b[0][1]++;
|
|
5763
|
-
cov_22n3ae5g5y().s[8]++;
|
|
5764
3388
|
updateAllowedIpRange({
|
|
5765
3389
|
id: data.id,
|
|
5766
3390
|
payload: values
|
|
5767
3391
|
});
|
|
5768
3392
|
}
|
|
5769
|
-
cov_22n3ae5g5y().s[9]++;
|
|
5770
3393
|
onCollapse();
|
|
5771
3394
|
};
|
|
5772
|
-
cov_22n3ae5g5y().s[10]++;
|
|
5773
3395
|
return /*#__PURE__*/React.createElement(Form, {
|
|
5774
3396
|
formikProps: {
|
|
5775
3397
|
initialValues: data,
|
|
@@ -5800,8 +3422,6 @@ var FormRow = function FormRow(_ref) {
|
|
|
5800
3422
|
position: "top"
|
|
5801
3423
|
},
|
|
5802
3424
|
onClick: function onClick() {
|
|
5803
|
-
cov_22n3ae5g5y().f[2]++;
|
|
5804
|
-
cov_22n3ae5g5y().s[11]++;
|
|
5805
3425
|
return setIsSubmitted(true);
|
|
5806
3426
|
}
|
|
5807
3427
|
}), /*#__PURE__*/React.createElement(Button$1, {
|
|
@@ -5816,308 +3436,21 @@ var FormRow = function FormRow(_ref) {
|
|
|
5816
3436
|
}))));
|
|
5817
3437
|
};
|
|
5818
3438
|
|
|
5819
|
-
function cov_l7fpuvaq6() {
|
|
5820
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/Row.jsx";
|
|
5821
|
-
var hash = "7aa78bc3a3cecfa7aaeda9ea5cb1611d30c5a57a";
|
|
5822
|
-
var global = new Function("return this")();
|
|
5823
|
-
var gcv = "__coverage__";
|
|
5824
|
-
var coverageData = {
|
|
5825
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/Row.jsx",
|
|
5826
|
-
statementMap: {
|
|
5827
|
-
"0": {
|
|
5828
|
-
start: {
|
|
5829
|
-
line: 11,
|
|
5830
|
-
column: 12
|
|
5831
|
-
},
|
|
5832
|
-
end: {
|
|
5833
|
-
line: 85,
|
|
5834
|
-
column: 1
|
|
5835
|
-
}
|
|
5836
|
-
},
|
|
5837
|
-
"1": {
|
|
5838
|
-
start: {
|
|
5839
|
-
line: 13,
|
|
5840
|
-
column: 4
|
|
5841
|
-
},
|
|
5842
|
-
end: {
|
|
5843
|
-
line: 13,
|
|
5844
|
-
column: 19
|
|
5845
|
-
}
|
|
5846
|
-
},
|
|
5847
|
-
"2": {
|
|
5848
|
-
start: {
|
|
5849
|
-
line: 15,
|
|
5850
|
-
column: 44
|
|
5851
|
-
},
|
|
5852
|
-
end: {
|
|
5853
|
-
line: 15,
|
|
5854
|
-
column: 71
|
|
5855
|
-
}
|
|
5856
|
-
},
|
|
5857
|
-
"3": {
|
|
5858
|
-
start: {
|
|
5859
|
-
line: 16,
|
|
5860
|
-
column: 16
|
|
5861
|
-
},
|
|
5862
|
-
end: {
|
|
5863
|
-
line: 16,
|
|
5864
|
-
column: 32
|
|
5865
|
-
}
|
|
5866
|
-
},
|
|
5867
|
-
"4": {
|
|
5868
|
-
start: {
|
|
5869
|
-
line: 18,
|
|
5870
|
-
column: 23
|
|
5871
|
-
},
|
|
5872
|
-
end: {
|
|
5873
|
-
line: 21,
|
|
5874
|
-
column: 3
|
|
5875
|
-
}
|
|
5876
|
-
},
|
|
5877
|
-
"5": {
|
|
5878
|
-
start: {
|
|
5879
|
-
line: 19,
|
|
5880
|
-
column: 4
|
|
5881
|
-
},
|
|
5882
|
-
end: {
|
|
5883
|
-
line: 19,
|
|
5884
|
-
column: 35
|
|
5885
|
-
}
|
|
5886
|
-
},
|
|
5887
|
-
"6": {
|
|
5888
|
-
start: {
|
|
5889
|
-
line: 20,
|
|
5890
|
-
column: 4
|
|
5891
|
-
},
|
|
5892
|
-
end: {
|
|
5893
|
-
line: 20,
|
|
5894
|
-
column: 39
|
|
5895
|
-
}
|
|
5896
|
-
},
|
|
5897
|
-
"7": {
|
|
5898
|
-
start: {
|
|
5899
|
-
line: 23,
|
|
5900
|
-
column: 2
|
|
5901
|
-
},
|
|
5902
|
-
end: {
|
|
5903
|
-
line: 84,
|
|
5904
|
-
column: 4
|
|
5905
|
-
}
|
|
5906
|
-
},
|
|
5907
|
-
"8": {
|
|
5908
|
-
start: {
|
|
5909
|
-
line: 57,
|
|
5910
|
-
column: 25
|
|
5911
|
-
},
|
|
5912
|
-
end: {
|
|
5913
|
-
line: 57,
|
|
5914
|
-
column: 58
|
|
5915
|
-
}
|
|
5916
|
-
},
|
|
5917
|
-
"9": {
|
|
5918
|
-
start: {
|
|
5919
|
-
line: 70,
|
|
5920
|
-
column: 25
|
|
5921
|
-
},
|
|
5922
|
-
end: {
|
|
5923
|
-
line: 70,
|
|
5924
|
-
column: 59
|
|
5925
|
-
}
|
|
5926
|
-
},
|
|
5927
|
-
"10": {
|
|
5928
|
-
start: {
|
|
5929
|
-
line: 80,
|
|
5930
|
-
column: 25
|
|
5931
|
-
},
|
|
5932
|
-
end: {
|
|
5933
|
-
line: 80,
|
|
5934
|
-
column: 47
|
|
5935
|
-
}
|
|
5936
|
-
}
|
|
5937
|
-
},
|
|
5938
|
-
fnMap: {
|
|
5939
|
-
"0": {
|
|
5940
|
-
name: "(anonymous_0)",
|
|
5941
|
-
decl: {
|
|
5942
|
-
start: {
|
|
5943
|
-
line: 11,
|
|
5944
|
-
column: 12
|
|
5945
|
-
},
|
|
5946
|
-
end: {
|
|
5947
|
-
line: 11,
|
|
5948
|
-
column: 13
|
|
5949
|
-
}
|
|
5950
|
-
},
|
|
5951
|
-
loc: {
|
|
5952
|
-
start: {
|
|
5953
|
-
line: 11,
|
|
5954
|
-
column: 41
|
|
5955
|
-
},
|
|
5956
|
-
end: {
|
|
5957
|
-
line: 85,
|
|
5958
|
-
column: 1
|
|
5959
|
-
}
|
|
5960
|
-
},
|
|
5961
|
-
line: 11
|
|
5962
|
-
},
|
|
5963
|
-
"1": {
|
|
5964
|
-
name: "(anonymous_1)",
|
|
5965
|
-
decl: {
|
|
5966
|
-
start: {
|
|
5967
|
-
line: 18,
|
|
5968
|
-
column: 23
|
|
5969
|
-
},
|
|
5970
|
-
end: {
|
|
5971
|
-
line: 18,
|
|
5972
|
-
column: 24
|
|
5973
|
-
}
|
|
5974
|
-
},
|
|
5975
|
-
loc: {
|
|
5976
|
-
start: {
|
|
5977
|
-
line: 18,
|
|
5978
|
-
column: 29
|
|
5979
|
-
},
|
|
5980
|
-
end: {
|
|
5981
|
-
line: 21,
|
|
5982
|
-
column: 3
|
|
5983
|
-
}
|
|
5984
|
-
},
|
|
5985
|
-
line: 18
|
|
5986
|
-
},
|
|
5987
|
-
"2": {
|
|
5988
|
-
name: "(anonymous_2)",
|
|
5989
|
-
decl: {
|
|
5990
|
-
start: {
|
|
5991
|
-
line: 57,
|
|
5992
|
-
column: 19
|
|
5993
|
-
},
|
|
5994
|
-
end: {
|
|
5995
|
-
line: 57,
|
|
5996
|
-
column: 20
|
|
5997
|
-
}
|
|
5998
|
-
},
|
|
5999
|
-
loc: {
|
|
6000
|
-
start: {
|
|
6001
|
-
line: 57,
|
|
6002
|
-
column: 25
|
|
6003
|
-
},
|
|
6004
|
-
end: {
|
|
6005
|
-
line: 57,
|
|
6006
|
-
column: 58
|
|
6007
|
-
}
|
|
6008
|
-
},
|
|
6009
|
-
line: 57
|
|
6010
|
-
},
|
|
6011
|
-
"3": {
|
|
6012
|
-
name: "(anonymous_3)",
|
|
6013
|
-
decl: {
|
|
6014
|
-
start: {
|
|
6015
|
-
line: 70,
|
|
6016
|
-
column: 19
|
|
6017
|
-
},
|
|
6018
|
-
end: {
|
|
6019
|
-
line: 70,
|
|
6020
|
-
column: 20
|
|
6021
|
-
}
|
|
6022
|
-
},
|
|
6023
|
-
loc: {
|
|
6024
|
-
start: {
|
|
6025
|
-
line: 70,
|
|
6026
|
-
column: 25
|
|
6027
|
-
},
|
|
6028
|
-
end: {
|
|
6029
|
-
line: 70,
|
|
6030
|
-
column: 59
|
|
6031
|
-
}
|
|
6032
|
-
},
|
|
6033
|
-
line: 70
|
|
6034
|
-
},
|
|
6035
|
-
"4": {
|
|
6036
|
-
name: "(anonymous_4)",
|
|
6037
|
-
decl: {
|
|
6038
|
-
start: {
|
|
6039
|
-
line: 80,
|
|
6040
|
-
column: 19
|
|
6041
|
-
},
|
|
6042
|
-
end: {
|
|
6043
|
-
line: 80,
|
|
6044
|
-
column: 20
|
|
6045
|
-
}
|
|
6046
|
-
},
|
|
6047
|
-
loc: {
|
|
6048
|
-
start: {
|
|
6049
|
-
line: 80,
|
|
6050
|
-
column: 25
|
|
6051
|
-
},
|
|
6052
|
-
end: {
|
|
6053
|
-
line: 80,
|
|
6054
|
-
column: 47
|
|
6055
|
-
}
|
|
6056
|
-
},
|
|
6057
|
-
line: 80
|
|
6058
|
-
}
|
|
6059
|
-
},
|
|
6060
|
-
branchMap: {},
|
|
6061
|
-
s: {
|
|
6062
|
-
"0": 0,
|
|
6063
|
-
"1": 0,
|
|
6064
|
-
"2": 0,
|
|
6065
|
-
"3": 0,
|
|
6066
|
-
"4": 0,
|
|
6067
|
-
"5": 0,
|
|
6068
|
-
"6": 0,
|
|
6069
|
-
"7": 0,
|
|
6070
|
-
"8": 0,
|
|
6071
|
-
"9": 0,
|
|
6072
|
-
"10": 0
|
|
6073
|
-
},
|
|
6074
|
-
f: {
|
|
6075
|
-
"0": 0,
|
|
6076
|
-
"1": 0,
|
|
6077
|
-
"2": 0,
|
|
6078
|
-
"3": 0,
|
|
6079
|
-
"4": 0
|
|
6080
|
-
},
|
|
6081
|
-
b: {},
|
|
6082
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
6083
|
-
hash: "7aa78bc3a3cecfa7aaeda9ea5cb1611d30c5a57a"
|
|
6084
|
-
};
|
|
6085
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
6086
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
6087
|
-
coverage[path] = coverageData;
|
|
6088
|
-
}
|
|
6089
|
-
var actualCoverage = coverage[path];
|
|
6090
|
-
{
|
|
6091
|
-
// @ts-ignore
|
|
6092
|
-
cov_l7fpuvaq6 = function () {
|
|
6093
|
-
return actualCoverage;
|
|
6094
|
-
};
|
|
6095
|
-
}
|
|
6096
|
-
return actualCoverage;
|
|
6097
|
-
}
|
|
6098
|
-
cov_l7fpuvaq6();
|
|
6099
|
-
cov_l7fpuvaq6().s[0]++;
|
|
6100
3439
|
var Row = function Row(_ref) {
|
|
6101
3440
|
var data = _ref.data,
|
|
6102
3441
|
setEditingRow = _ref.setEditingRow;
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
t = _ref5.t;
|
|
6112
|
-
cov_l7fpuvaq6().s[4]++;
|
|
3442
|
+
var _useState = useState(false),
|
|
3443
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3444
|
+
isDeleteIpRangeAlertOpen = _useState2[0],
|
|
3445
|
+
setIsDeleteIpRangeAlertOpen = _useState2[1];
|
|
3446
|
+
var _useDestroyAllowedIpR = useDestroyAllowedIpRanges(),
|
|
3447
|
+
destroyAllowedIpRange = _useDestroyAllowedIpR.mutate;
|
|
3448
|
+
var _useTranslation = useTranslation(),
|
|
3449
|
+
t = _useTranslation.t;
|
|
6113
3450
|
var handleDelete = function handleDelete() {
|
|
6114
|
-
cov_l7fpuvaq6().f[1]++;
|
|
6115
|
-
cov_l7fpuvaq6().s[5]++;
|
|
6116
3451
|
destroyAllowedIpRange(data.id);
|
|
6117
|
-
cov_l7fpuvaq6().s[6]++;
|
|
6118
3452
|
setIsDeleteIpRangeAlertOpen(false);
|
|
6119
3453
|
};
|
|
6120
|
-
cov_l7fpuvaq6().s[7]++;
|
|
6121
3454
|
return /*#__PURE__*/React.createElement("div", {
|
|
6122
3455
|
className: "neeto-ui-bg-white flex w-full flex-row justify-between px-1 py-2"
|
|
6123
3456
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
@@ -6144,8 +3477,6 @@ var Row = function Row(_ref) {
|
|
|
6144
3477
|
position: "top"
|
|
6145
3478
|
},
|
|
6146
3479
|
onClick: function onClick() {
|
|
6147
|
-
cov_l7fpuvaq6().f[2]++;
|
|
6148
|
-
cov_l7fpuvaq6().s[8]++;
|
|
6149
3480
|
return setIsDeleteIpRangeAlertOpen(true);
|
|
6150
3481
|
}
|
|
6151
3482
|
}), /*#__PURE__*/React.createElement(Alert, {
|
|
@@ -6157,8 +3488,6 @@ var Row = function Row(_ref) {
|
|
|
6157
3488
|
entity: t("neetoMolecules.ipRestriction.allowedIpRangeTitle")
|
|
6158
3489
|
}),
|
|
6159
3490
|
onClose: function onClose() {
|
|
6160
|
-
cov_l7fpuvaq6().f[3]++;
|
|
6161
|
-
cov_l7fpuvaq6().s[9]++;
|
|
6162
3491
|
return setIsDeleteIpRangeAlertOpen(false);
|
|
6163
3492
|
},
|
|
6164
3493
|
onSubmit: handleDelete
|
|
@@ -6170,368 +3499,24 @@ var Row = function Row(_ref) {
|
|
|
6170
3499
|
position: "top"
|
|
6171
3500
|
},
|
|
6172
3501
|
onClick: function onClick() {
|
|
6173
|
-
cov_l7fpuvaq6().f[4]++;
|
|
6174
|
-
cov_l7fpuvaq6().s[10]++;
|
|
6175
3502
|
return setEditingRow(data.id);
|
|
6176
3503
|
}
|
|
6177
3504
|
})));
|
|
6178
3505
|
};
|
|
6179
3506
|
|
|
6180
|
-
function cov_1bf8imfyts() {
|
|
6181
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/AllowedIpRanges.jsx";
|
|
6182
|
-
var hash = "a0a9216827692537d4bc774ddbea467cde11b768";
|
|
6183
|
-
var global = new Function("return this")();
|
|
6184
|
-
var gcv = "__coverage__";
|
|
6185
|
-
var coverageData = {
|
|
6186
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/AllowedIpRanges.jsx",
|
|
6187
|
-
statementMap: {
|
|
6188
|
-
"0": {
|
|
6189
|
-
start: {
|
|
6190
|
-
line: 12,
|
|
6191
|
-
column: 24
|
|
6192
|
-
},
|
|
6193
|
-
end: {
|
|
6194
|
-
line: 76,
|
|
6195
|
-
column: 1
|
|
6196
|
-
}
|
|
6197
|
-
},
|
|
6198
|
-
"1": {
|
|
6199
|
-
start: {
|
|
6200
|
-
line: 13,
|
|
6201
|
-
column: 38
|
|
6202
|
-
},
|
|
6203
|
-
end: {
|
|
6204
|
-
line: 13,
|
|
6205
|
-
column: 50
|
|
6206
|
-
}
|
|
6207
|
-
},
|
|
6208
|
-
"2": {
|
|
6209
|
-
start: {
|
|
6210
|
-
line: 14,
|
|
6211
|
-
column: 38
|
|
6212
|
-
},
|
|
6213
|
-
end: {
|
|
6214
|
-
line: 14,
|
|
6215
|
-
column: 53
|
|
6216
|
-
}
|
|
6217
|
-
},
|
|
6218
|
-
"3": {
|
|
6219
|
-
start: {
|
|
6220
|
-
line: 16,
|
|
6221
|
-
column: 16
|
|
6222
|
-
},
|
|
6223
|
-
end: {
|
|
6224
|
-
line: 16,
|
|
6225
|
-
column: 32
|
|
6226
|
-
}
|
|
6227
|
-
},
|
|
6228
|
-
"4": {
|
|
6229
|
-
start: {
|
|
6230
|
-
line: 18,
|
|
6231
|
-
column: 36
|
|
6232
|
-
},
|
|
6233
|
-
end: {
|
|
6234
|
-
line: 18,
|
|
6235
|
-
column: 61
|
|
6236
|
-
}
|
|
6237
|
-
},
|
|
6238
|
-
"5": {
|
|
6239
|
-
start: {
|
|
6240
|
-
line: 20,
|
|
6241
|
-
column: 2
|
|
6242
|
-
},
|
|
6243
|
-
end: {
|
|
6244
|
-
line: 75,
|
|
6245
|
-
column: 4
|
|
6246
|
-
}
|
|
6247
|
-
},
|
|
6248
|
-
"6": {
|
|
6249
|
-
start: {
|
|
6250
|
-
line: 35,
|
|
6251
|
-
column: 25
|
|
6252
|
-
},
|
|
6253
|
-
end: {
|
|
6254
|
-
line: 35,
|
|
6255
|
-
column: 44
|
|
6256
|
-
}
|
|
6257
|
-
},
|
|
6258
|
-
"7": {
|
|
6259
|
-
start: {
|
|
6260
|
-
line: 54,
|
|
6261
|
-
column: 30
|
|
6262
|
-
},
|
|
6263
|
-
end: {
|
|
6264
|
-
line: 54,
|
|
6265
|
-
column: 50
|
|
6266
|
-
}
|
|
6267
|
-
},
|
|
6268
|
-
"8": {
|
|
6269
|
-
start: {
|
|
6270
|
-
line: 58,
|
|
6271
|
-
column: 10
|
|
6272
|
-
},
|
|
6273
|
-
end: {
|
|
6274
|
-
line: 71,
|
|
6275
|
-
column: 11
|
|
6276
|
-
}
|
|
6277
|
-
},
|
|
6278
|
-
"9": {
|
|
6279
|
-
start: {
|
|
6280
|
-
line: 63,
|
|
6281
|
-
column: 32
|
|
6282
|
-
},
|
|
6283
|
-
end: {
|
|
6284
|
-
line: 63,
|
|
6285
|
-
column: 49
|
|
6286
|
-
}
|
|
6287
|
-
}
|
|
6288
|
-
},
|
|
6289
|
-
fnMap: {
|
|
6290
|
-
"0": {
|
|
6291
|
-
name: "(anonymous_0)",
|
|
6292
|
-
decl: {
|
|
6293
|
-
start: {
|
|
6294
|
-
line: 12,
|
|
6295
|
-
column: 24
|
|
6296
|
-
},
|
|
6297
|
-
end: {
|
|
6298
|
-
line: 12,
|
|
6299
|
-
column: 25
|
|
6300
|
-
}
|
|
6301
|
-
},
|
|
6302
|
-
loc: {
|
|
6303
|
-
start: {
|
|
6304
|
-
line: 12,
|
|
6305
|
-
column: 30
|
|
6306
|
-
},
|
|
6307
|
-
end: {
|
|
6308
|
-
line: 76,
|
|
6309
|
-
column: 1
|
|
6310
|
-
}
|
|
6311
|
-
},
|
|
6312
|
-
line: 12
|
|
6313
|
-
},
|
|
6314
|
-
"1": {
|
|
6315
|
-
name: "(anonymous_1)",
|
|
6316
|
-
decl: {
|
|
6317
|
-
start: {
|
|
6318
|
-
line: 35,
|
|
6319
|
-
column: 19
|
|
6320
|
-
},
|
|
6321
|
-
end: {
|
|
6322
|
-
line: 35,
|
|
6323
|
-
column: 20
|
|
6324
|
-
}
|
|
6325
|
-
},
|
|
6326
|
-
loc: {
|
|
6327
|
-
start: {
|
|
6328
|
-
line: 35,
|
|
6329
|
-
column: 25
|
|
6330
|
-
},
|
|
6331
|
-
end: {
|
|
6332
|
-
line: 35,
|
|
6333
|
-
column: 44
|
|
6334
|
-
}
|
|
6335
|
-
},
|
|
6336
|
-
line: 35
|
|
6337
|
-
},
|
|
6338
|
-
"2": {
|
|
6339
|
-
name: "(anonymous_2)",
|
|
6340
|
-
decl: {
|
|
6341
|
-
start: {
|
|
6342
|
-
line: 54,
|
|
6343
|
-
column: 24
|
|
6344
|
-
},
|
|
6345
|
-
end: {
|
|
6346
|
-
line: 54,
|
|
6347
|
-
column: 25
|
|
6348
|
-
}
|
|
6349
|
-
},
|
|
6350
|
-
loc: {
|
|
6351
|
-
start: {
|
|
6352
|
-
line: 54,
|
|
6353
|
-
column: 30
|
|
6354
|
-
},
|
|
6355
|
-
end: {
|
|
6356
|
-
line: 54,
|
|
6357
|
-
column: 50
|
|
6358
|
-
}
|
|
6359
|
-
},
|
|
6360
|
-
line: 54
|
|
6361
|
-
},
|
|
6362
|
-
"3": {
|
|
6363
|
-
name: "(anonymous_3)",
|
|
6364
|
-
decl: {
|
|
6365
|
-
start: {
|
|
6366
|
-
line: 57,
|
|
6367
|
-
column: 30
|
|
6368
|
-
},
|
|
6369
|
-
end: {
|
|
6370
|
-
line: 57,
|
|
6371
|
-
column: 31
|
|
6372
|
-
}
|
|
6373
|
-
},
|
|
6374
|
-
loc: {
|
|
6375
|
-
start: {
|
|
6376
|
-
line: 58,
|
|
6377
|
-
column: 10
|
|
6378
|
-
},
|
|
6379
|
-
end: {
|
|
6380
|
-
line: 71,
|
|
6381
|
-
column: 11
|
|
6382
|
-
}
|
|
6383
|
-
},
|
|
6384
|
-
line: 58
|
|
6385
|
-
},
|
|
6386
|
-
"4": {
|
|
6387
|
-
name: "(anonymous_4)",
|
|
6388
|
-
decl: {
|
|
6389
|
-
start: {
|
|
6390
|
-
line: 63,
|
|
6391
|
-
column: 26
|
|
6392
|
-
},
|
|
6393
|
-
end: {
|
|
6394
|
-
line: 63,
|
|
6395
|
-
column: 27
|
|
6396
|
-
}
|
|
6397
|
-
},
|
|
6398
|
-
loc: {
|
|
6399
|
-
start: {
|
|
6400
|
-
line: 63,
|
|
6401
|
-
column: 32
|
|
6402
|
-
},
|
|
6403
|
-
end: {
|
|
6404
|
-
line: 63,
|
|
6405
|
-
column: 49
|
|
6406
|
-
}
|
|
6407
|
-
},
|
|
6408
|
-
line: 63
|
|
6409
|
-
}
|
|
6410
|
-
},
|
|
6411
|
-
branchMap: {
|
|
6412
|
-
"0": {
|
|
6413
|
-
loc: {
|
|
6414
|
-
start: {
|
|
6415
|
-
line: 50,
|
|
6416
|
-
column: 9
|
|
6417
|
-
},
|
|
6418
|
-
end: {
|
|
6419
|
-
line: 56,
|
|
6420
|
-
column: 9
|
|
6421
|
-
}
|
|
6422
|
-
},
|
|
6423
|
-
type: "binary-expr",
|
|
6424
|
-
locations: [{
|
|
6425
|
-
start: {
|
|
6426
|
-
line: 50,
|
|
6427
|
-
column: 9
|
|
6428
|
-
},
|
|
6429
|
-
end: {
|
|
6430
|
-
line: 50,
|
|
6431
|
-
column: 19
|
|
6432
|
-
}
|
|
6433
|
-
}, {
|
|
6434
|
-
start: {
|
|
6435
|
-
line: 51,
|
|
6436
|
-
column: 10
|
|
6437
|
-
},
|
|
6438
|
-
end: {
|
|
6439
|
-
line: 55,
|
|
6440
|
-
column: 12
|
|
6441
|
-
}
|
|
6442
|
-
}],
|
|
6443
|
-
line: 50
|
|
6444
|
-
},
|
|
6445
|
-
"1": {
|
|
6446
|
-
loc: {
|
|
6447
|
-
start: {
|
|
6448
|
-
line: 58,
|
|
6449
|
-
column: 10
|
|
6450
|
-
},
|
|
6451
|
-
end: {
|
|
6452
|
-
line: 71,
|
|
6453
|
-
column: 11
|
|
6454
|
-
}
|
|
6455
|
-
},
|
|
6456
|
-
type: "cond-expr",
|
|
6457
|
-
locations: [{
|
|
6458
|
-
start: {
|
|
6459
|
-
line: 59,
|
|
6460
|
-
column: 12
|
|
6461
|
-
},
|
|
6462
|
-
end: {
|
|
6463
|
-
line: 64,
|
|
6464
|
-
column: 14
|
|
6465
|
-
}
|
|
6466
|
-
}, {
|
|
6467
|
-
start: {
|
|
6468
|
-
line: 66,
|
|
6469
|
-
column: 12
|
|
6470
|
-
},
|
|
6471
|
-
end: {
|
|
6472
|
-
line: 70,
|
|
6473
|
-
column: 14
|
|
6474
|
-
}
|
|
6475
|
-
}],
|
|
6476
|
-
line: 58
|
|
6477
|
-
}
|
|
6478
|
-
},
|
|
6479
|
-
s: {
|
|
6480
|
-
"0": 0,
|
|
6481
|
-
"1": 0,
|
|
6482
|
-
"2": 0,
|
|
6483
|
-
"3": 0,
|
|
6484
|
-
"4": 0,
|
|
6485
|
-
"5": 0,
|
|
6486
|
-
"6": 0,
|
|
6487
|
-
"7": 0,
|
|
6488
|
-
"8": 0,
|
|
6489
|
-
"9": 0
|
|
6490
|
-
},
|
|
6491
|
-
f: {
|
|
6492
|
-
"0": 0,
|
|
6493
|
-
"1": 0,
|
|
6494
|
-
"2": 0,
|
|
6495
|
-
"3": 0,
|
|
6496
|
-
"4": 0
|
|
6497
|
-
},
|
|
6498
|
-
b: {
|
|
6499
|
-
"0": [0, 0],
|
|
6500
|
-
"1": [0, 0]
|
|
6501
|
-
},
|
|
6502
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
6503
|
-
hash: "a0a9216827692537d4bc774ddbea467cde11b768"
|
|
6504
|
-
};
|
|
6505
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
6506
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
6507
|
-
coverage[path] = coverageData;
|
|
6508
|
-
}
|
|
6509
|
-
var actualCoverage = coverage[path];
|
|
6510
|
-
{
|
|
6511
|
-
// @ts-ignore
|
|
6512
|
-
cov_1bf8imfyts = function () {
|
|
6513
|
-
return actualCoverage;
|
|
6514
|
-
};
|
|
6515
|
-
}
|
|
6516
|
-
return actualCoverage;
|
|
6517
|
-
}
|
|
6518
|
-
cov_1bf8imfyts();
|
|
6519
|
-
cov_1bf8imfyts().s[0]++;
|
|
6520
3507
|
var AllowedIpRanges = function AllowedIpRanges() {
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
allowedIpRanges = _ref6.data;
|
|
6534
|
-
cov_1bf8imfyts().s[5]++;
|
|
3508
|
+
var _useState = useState(""),
|
|
3509
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3510
|
+
editingRow = _useState2[0],
|
|
3511
|
+
setEditingRow = _useState2[1];
|
|
3512
|
+
var _useState3 = useState(false),
|
|
3513
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3514
|
+
showAddNew = _useState4[0],
|
|
3515
|
+
setShowAddNew = _useState4[1];
|
|
3516
|
+
var _useTranslation = useTranslation(),
|
|
3517
|
+
t = _useTranslation.t;
|
|
3518
|
+
var _useFetchAllowedIpRan = useFetchAllowedIpRanges(),
|
|
3519
|
+
allowedIpRanges = _useFetchAllowedIpRan.data;
|
|
6535
3520
|
return /*#__PURE__*/React.createElement("div", {
|
|
6536
3521
|
className: "space-y-4"
|
|
6537
3522
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -6548,8 +3533,6 @@ var AllowedIpRanges = function AllowedIpRanges() {
|
|
|
6548
3533
|
position: "top"
|
|
6549
3534
|
},
|
|
6550
3535
|
onClick: function onClick() {
|
|
6551
|
-
cov_1bf8imfyts().f[1]++;
|
|
6552
|
-
cov_1bf8imfyts().s[6]++;
|
|
6553
3536
|
return setShowAddNew(true);
|
|
6554
3537
|
}
|
|
6555
3538
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -6562,1183 +3545,108 @@ var AllowedIpRanges = function AllowedIpRanges() {
|
|
|
6562
3545
|
className: "w-4/12 flex-grow px-3 py-2 text-center"
|
|
6563
3546
|
}, t("neetoMolecules.ipRestriction.actions"))), /*#__PURE__*/React.createElement("div", {
|
|
6564
3547
|
className: "items-between flex w-full flex-col space-y-2"
|
|
6565
|
-
},
|
|
3548
|
+
}, showAddNew && /*#__PURE__*/React.createElement(FormRow, {
|
|
6566
3549
|
isAddNew: true,
|
|
6567
3550
|
data: INITIAL_VALUES,
|
|
6568
3551
|
onCollapse: function onCollapse() {
|
|
6569
|
-
cov_1bf8imfyts().f[2]++;
|
|
6570
|
-
cov_1bf8imfyts().s[7]++;
|
|
6571
3552
|
return setShowAddNew(false);
|
|
6572
3553
|
}
|
|
6573
|
-
})
|
|
6574
|
-
|
|
6575
|
-
cov_1bf8imfyts().s[8]++;
|
|
6576
|
-
return editingRow === allowedIpRange.id ? (cov_1bf8imfyts().b[1][0]++, /*#__PURE__*/React.createElement(FormRow, {
|
|
3554
|
+
}), allowedIpRanges === null || allowedIpRanges === void 0 ? void 0 : allowedIpRanges.map(function (allowedIpRange) {
|
|
3555
|
+
return editingRow === allowedIpRange.id ? /*#__PURE__*/React.createElement(FormRow, {
|
|
6577
3556
|
data: allowedIpRange,
|
|
6578
3557
|
isAddNew: false,
|
|
6579
3558
|
key: allowedIpRange.id,
|
|
6580
3559
|
onCollapse: function onCollapse() {
|
|
6581
|
-
cov_1bf8imfyts().f[4]++;
|
|
6582
|
-
cov_1bf8imfyts().s[9]++;
|
|
6583
3560
|
return setEditingRow("");
|
|
6584
3561
|
}
|
|
6585
|
-
})
|
|
3562
|
+
}) : /*#__PURE__*/React.createElement(Row, {
|
|
6586
3563
|
data: allowedIpRange,
|
|
6587
3564
|
key: allowedIpRange.id,
|
|
6588
3565
|
setEditingRow: setEditingRow
|
|
6589
|
-
})
|
|
3566
|
+
});
|
|
6590
3567
|
})));
|
|
6591
3568
|
};
|
|
6592
3569
|
|
|
6593
|
-
function cov_uyj1wis8c() {
|
|
6594
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/apis/current_ip.js";
|
|
6595
|
-
var hash = "f3eb90703b2ac7c49c5cca23e54940a9d9f11ec1";
|
|
6596
|
-
var global = new Function("return this")();
|
|
6597
|
-
var gcv = "__coverage__";
|
|
6598
|
-
var coverageData = {
|
|
6599
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/apis/current_ip.js",
|
|
6600
|
-
statementMap: {
|
|
6601
|
-
"0": {
|
|
6602
|
-
start: {
|
|
6603
|
-
line: 5,
|
|
6604
|
-
column: 13
|
|
6605
|
-
},
|
|
6606
|
-
end: {
|
|
6607
|
-
line: 6,
|
|
6608
|
-
column: 72
|
|
6609
|
-
}
|
|
6610
|
-
},
|
|
6611
|
-
"1": {
|
|
6612
|
-
start: {
|
|
6613
|
-
line: 6,
|
|
6614
|
-
column: 2
|
|
6615
|
-
},
|
|
6616
|
-
end: {
|
|
6617
|
-
line: 6,
|
|
6618
|
-
column: 72
|
|
6619
|
-
}
|
|
6620
|
-
},
|
|
6621
|
-
"2": {
|
|
6622
|
-
start: {
|
|
6623
|
-
line: 8,
|
|
6624
|
-
column: 21
|
|
6625
|
-
},
|
|
6626
|
-
end: {
|
|
6627
|
-
line: 10,
|
|
6628
|
-
column: 1
|
|
6629
|
-
}
|
|
6630
|
-
}
|
|
6631
|
-
},
|
|
6632
|
-
fnMap: {
|
|
6633
|
-
"0": {
|
|
6634
|
-
name: "(anonymous_0)",
|
|
6635
|
-
decl: {
|
|
6636
|
-
start: {
|
|
6637
|
-
line: 5,
|
|
6638
|
-
column: 13
|
|
6639
|
-
},
|
|
6640
|
-
end: {
|
|
6641
|
-
line: 5,
|
|
6642
|
-
column: 14
|
|
6643
|
-
}
|
|
6644
|
-
},
|
|
6645
|
-
loc: {
|
|
6646
|
-
start: {
|
|
6647
|
-
line: 6,
|
|
6648
|
-
column: 2
|
|
6649
|
-
},
|
|
6650
|
-
end: {
|
|
6651
|
-
line: 6,
|
|
6652
|
-
column: 72
|
|
6653
|
-
}
|
|
6654
|
-
},
|
|
6655
|
-
line: 6
|
|
6656
|
-
}
|
|
6657
|
-
},
|
|
6658
|
-
branchMap: {},
|
|
6659
|
-
s: {
|
|
6660
|
-
"0": 0,
|
|
6661
|
-
"1": 0,
|
|
6662
|
-
"2": 0
|
|
6663
|
-
},
|
|
6664
|
-
f: {
|
|
6665
|
-
"0": 0
|
|
6666
|
-
},
|
|
6667
|
-
b: {},
|
|
6668
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
6669
|
-
hash: "f3eb90703b2ac7c49c5cca23e54940a9d9f11ec1"
|
|
6670
|
-
};
|
|
6671
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
6672
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
6673
|
-
coverage[path] = coverageData;
|
|
6674
|
-
}
|
|
6675
|
-
var actualCoverage = coverage[path];
|
|
6676
|
-
{
|
|
6677
|
-
// @ts-ignore
|
|
6678
|
-
cov_uyj1wis8c = function () {
|
|
6679
|
-
return actualCoverage;
|
|
6680
|
-
};
|
|
6681
|
-
}
|
|
6682
|
-
return actualCoverage;
|
|
6683
|
-
}
|
|
6684
|
-
cov_uyj1wis8c();
|
|
6685
|
-
cov_uyj1wis8c().s[0]++;
|
|
6686
3570
|
var show$1 = function show(params) {
|
|
6687
|
-
cov_uyj1wis8c().f[0]++;
|
|
6688
|
-
cov_uyj1wis8c().s[1]++;
|
|
6689
3571
|
return axios.get("".concat(IP_RESTRICTIONS_ENGINE_BASE_URL, "/current_ip"), {
|
|
6690
3572
|
params: params
|
|
6691
3573
|
});
|
|
6692
3574
|
};
|
|
6693
|
-
var currentIpApi =
|
|
3575
|
+
var currentIpApi = {
|
|
6694
3576
|
show: show$1
|
|
6695
|
-
}
|
|
3577
|
+
};
|
|
6696
3578
|
|
|
6697
|
-
|
|
6698
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/hooks/reactQuery/useCurrentIp.js";
|
|
6699
|
-
var hash = "95add54158253e639d2c6b78a2566befe38b1f6e";
|
|
6700
|
-
var global = new Function("return this")();
|
|
6701
|
-
var gcv = "__coverage__";
|
|
6702
|
-
var coverageData = {
|
|
6703
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/hooks/reactQuery/useCurrentIp.js",
|
|
6704
|
-
statementMap: {
|
|
6705
|
-
"0": {
|
|
6706
|
-
start: {
|
|
6707
|
-
line: 6,
|
|
6708
|
-
column: 23
|
|
6709
|
-
},
|
|
6710
|
-
end: {
|
|
6711
|
-
line: 6,
|
|
6712
|
-
column: 33
|
|
6713
|
-
}
|
|
6714
|
-
},
|
|
6715
|
-
"1": {
|
|
6716
|
-
start: {
|
|
6717
|
-
line: 8,
|
|
6718
|
-
column: 25
|
|
6719
|
-
},
|
|
6720
|
-
end: {
|
|
6721
|
-
line: 9,
|
|
6722
|
-
column: 51
|
|
6723
|
-
}
|
|
6724
|
-
},
|
|
6725
|
-
"2": {
|
|
6726
|
-
start: {
|
|
6727
|
-
line: 9,
|
|
6728
|
-
column: 2
|
|
6729
|
-
},
|
|
6730
|
-
end: {
|
|
6731
|
-
line: 9,
|
|
6732
|
-
column: 51
|
|
6733
|
-
}
|
|
6734
|
-
},
|
|
6735
|
-
"3": {
|
|
6736
|
-
start: {
|
|
6737
|
-
line: 9,
|
|
6738
|
-
column: 31
|
|
6739
|
-
},
|
|
6740
|
-
end: {
|
|
6741
|
-
line: 9,
|
|
6742
|
-
column: 50
|
|
6743
|
-
}
|
|
6744
|
-
}
|
|
6745
|
-
},
|
|
6746
|
-
fnMap: {
|
|
6747
|
-
"0": {
|
|
6748
|
-
name: "(anonymous_0)",
|
|
6749
|
-
decl: {
|
|
6750
|
-
start: {
|
|
6751
|
-
line: 8,
|
|
6752
|
-
column: 25
|
|
6753
|
-
},
|
|
6754
|
-
end: {
|
|
6755
|
-
line: 8,
|
|
6756
|
-
column: 26
|
|
6757
|
-
}
|
|
6758
|
-
},
|
|
6759
|
-
loc: {
|
|
6760
|
-
start: {
|
|
6761
|
-
line: 9,
|
|
6762
|
-
column: 2
|
|
6763
|
-
},
|
|
6764
|
-
end: {
|
|
6765
|
-
line: 9,
|
|
6766
|
-
column: 51
|
|
6767
|
-
}
|
|
6768
|
-
},
|
|
6769
|
-
line: 9
|
|
6770
|
-
},
|
|
6771
|
-
"1": {
|
|
6772
|
-
name: "(anonymous_1)",
|
|
6773
|
-
decl: {
|
|
6774
|
-
start: {
|
|
6775
|
-
line: 9,
|
|
6776
|
-
column: 25
|
|
6777
|
-
},
|
|
6778
|
-
end: {
|
|
6779
|
-
line: 9,
|
|
6780
|
-
column: 26
|
|
6781
|
-
}
|
|
6782
|
-
},
|
|
6783
|
-
loc: {
|
|
6784
|
-
start: {
|
|
6785
|
-
line: 9,
|
|
6786
|
-
column: 31
|
|
6787
|
-
},
|
|
6788
|
-
end: {
|
|
6789
|
-
line: 9,
|
|
6790
|
-
column: 50
|
|
6791
|
-
}
|
|
6792
|
-
},
|
|
6793
|
-
line: 9
|
|
6794
|
-
}
|
|
6795
|
-
},
|
|
6796
|
-
branchMap: {},
|
|
6797
|
-
s: {
|
|
6798
|
-
"0": 0,
|
|
6799
|
-
"1": 0,
|
|
6800
|
-
"2": 0,
|
|
6801
|
-
"3": 0
|
|
6802
|
-
},
|
|
6803
|
-
f: {
|
|
6804
|
-
"0": 0,
|
|
6805
|
-
"1": 0
|
|
6806
|
-
},
|
|
6807
|
-
b: {},
|
|
6808
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
6809
|
-
hash: "95add54158253e639d2c6b78a2566befe38b1f6e"
|
|
6810
|
-
};
|
|
6811
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
6812
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
6813
|
-
coverage[path] = coverageData;
|
|
6814
|
-
}
|
|
6815
|
-
var actualCoverage = coverage[path];
|
|
6816
|
-
{
|
|
6817
|
-
// @ts-ignore
|
|
6818
|
-
cov_n3te0mjkk = function () {
|
|
6819
|
-
return actualCoverage;
|
|
6820
|
-
};
|
|
6821
|
-
}
|
|
6822
|
-
return actualCoverage;
|
|
6823
|
-
}
|
|
6824
|
-
cov_n3te0mjkk();
|
|
6825
|
-
var _ref$1 = (cov_n3te0mjkk().s[0]++, QUERY_KEYS),
|
|
6826
|
-
CURRENT_IP = _ref$1.CURRENT_IP;
|
|
6827
|
-
cov_n3te0mjkk().s[1]++;
|
|
3579
|
+
var CURRENT_IP = QUERY_KEYS.CURRENT_IP;
|
|
6828
3580
|
var useShowCurrentIp = function useShowCurrentIp() {
|
|
6829
|
-
cov_n3te0mjkk().f[0]++;
|
|
6830
|
-
cov_n3te0mjkk().s[2]++;
|
|
6831
3581
|
return useQuery([CURRENT_IP], function () {
|
|
6832
|
-
cov_n3te0mjkk().f[1]++;
|
|
6833
|
-
cov_n3te0mjkk().s[3]++;
|
|
6834
3582
|
return currentIpApi.show();
|
|
6835
3583
|
});
|
|
6836
3584
|
};
|
|
6837
3585
|
|
|
6838
|
-
function cov_1cz1ftsq2d() {
|
|
6839
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/CurrentIp.jsx";
|
|
6840
|
-
var hash = "ed67880ad88fa130aaf4b0f512ca9473436c9904";
|
|
6841
|
-
var global = new Function("return this")();
|
|
6842
|
-
var gcv = "__coverage__";
|
|
6843
|
-
var coverageData = {
|
|
6844
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/CurrentIp.jsx",
|
|
6845
|
-
statementMap: {
|
|
6846
|
-
"0": {
|
|
6847
|
-
start: {
|
|
6848
|
-
line: 8,
|
|
6849
|
-
column: 18
|
|
6850
|
-
},
|
|
6851
|
-
end: {
|
|
6852
|
-
line: 24,
|
|
6853
|
-
column: 1
|
|
6854
|
-
}
|
|
6855
|
-
},
|
|
6856
|
-
"1": {
|
|
6857
|
-
start: {
|
|
6858
|
-
line: 9,
|
|
6859
|
-
column: 30
|
|
6860
|
-
},
|
|
6861
|
-
end: {
|
|
6862
|
-
line: 9,
|
|
6863
|
-
column: 48
|
|
6864
|
-
}
|
|
6865
|
-
},
|
|
6866
|
-
"2": {
|
|
6867
|
-
start: {
|
|
6868
|
-
line: 11,
|
|
6869
|
-
column: 16
|
|
6870
|
-
},
|
|
6871
|
-
end: {
|
|
6872
|
-
line: 11,
|
|
6873
|
-
column: 32
|
|
6874
|
-
}
|
|
6875
|
-
},
|
|
6876
|
-
"3": {
|
|
6877
|
-
start: {
|
|
6878
|
-
line: 13,
|
|
6879
|
-
column: 2
|
|
6880
|
-
},
|
|
6881
|
-
end: {
|
|
6882
|
-
line: 23,
|
|
6883
|
-
column: 4
|
|
6884
|
-
}
|
|
6885
|
-
}
|
|
6886
|
-
},
|
|
6887
|
-
fnMap: {
|
|
6888
|
-
"0": {
|
|
6889
|
-
name: "(anonymous_0)",
|
|
6890
|
-
decl: {
|
|
6891
|
-
start: {
|
|
6892
|
-
line: 8,
|
|
6893
|
-
column: 18
|
|
6894
|
-
},
|
|
6895
|
-
end: {
|
|
6896
|
-
line: 8,
|
|
6897
|
-
column: 19
|
|
6898
|
-
}
|
|
6899
|
-
},
|
|
6900
|
-
loc: {
|
|
6901
|
-
start: {
|
|
6902
|
-
line: 8,
|
|
6903
|
-
column: 24
|
|
6904
|
-
},
|
|
6905
|
-
end: {
|
|
6906
|
-
line: 24,
|
|
6907
|
-
column: 1
|
|
6908
|
-
}
|
|
6909
|
-
},
|
|
6910
|
-
line: 8
|
|
6911
|
-
}
|
|
6912
|
-
},
|
|
6913
|
-
branchMap: {
|
|
6914
|
-
"0": {
|
|
6915
|
-
loc: {
|
|
6916
|
-
start: {
|
|
6917
|
-
line: 18,
|
|
6918
|
-
column: 37
|
|
6919
|
-
},
|
|
6920
|
-
end: {
|
|
6921
|
-
line: 18,
|
|
6922
|
-
column: 64
|
|
6923
|
-
}
|
|
6924
|
-
},
|
|
6925
|
-
type: "cond-expr",
|
|
6926
|
-
locations: [{
|
|
6927
|
-
start: {
|
|
6928
|
-
line: 18,
|
|
6929
|
-
column: 49
|
|
6930
|
-
},
|
|
6931
|
-
end: {
|
|
6932
|
-
line: 18,
|
|
6933
|
-
column: 54
|
|
6934
|
-
}
|
|
6935
|
-
}, {
|
|
6936
|
-
start: {
|
|
6937
|
-
line: 18,
|
|
6938
|
-
column: 57
|
|
6939
|
-
},
|
|
6940
|
-
end: {
|
|
6941
|
-
line: 18,
|
|
6942
|
-
column: 64
|
|
6943
|
-
}
|
|
6944
|
-
}],
|
|
6945
|
-
line: 18
|
|
6946
|
-
}
|
|
6947
|
-
},
|
|
6948
|
-
s: {
|
|
6949
|
-
"0": 0,
|
|
6950
|
-
"1": 0,
|
|
6951
|
-
"2": 0,
|
|
6952
|
-
"3": 0
|
|
6953
|
-
},
|
|
6954
|
-
f: {
|
|
6955
|
-
"0": 0
|
|
6956
|
-
},
|
|
6957
|
-
b: {
|
|
6958
|
-
"0": [0, 0]
|
|
6959
|
-
},
|
|
6960
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
6961
|
-
hash: "ed67880ad88fa130aaf4b0f512ca9473436c9904"
|
|
6962
|
-
};
|
|
6963
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
6964
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
6965
|
-
coverage[path] = coverageData;
|
|
6966
|
-
}
|
|
6967
|
-
var actualCoverage = coverage[path];
|
|
6968
|
-
{
|
|
6969
|
-
// @ts-ignore
|
|
6970
|
-
cov_1cz1ftsq2d = function () {
|
|
6971
|
-
return actualCoverage;
|
|
6972
|
-
};
|
|
6973
|
-
}
|
|
6974
|
-
return actualCoverage;
|
|
6975
|
-
}
|
|
6976
|
-
cov_1cz1ftsq2d();
|
|
6977
|
-
cov_1cz1ftsq2d().s[0]++;
|
|
6978
3586
|
var CurrentIp = function CurrentIp() {
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
t = _ref2.t;
|
|
6985
|
-
cov_1cz1ftsq2d().s[3]++;
|
|
3587
|
+
var _useShowCurrentIp = useShowCurrentIp(),
|
|
3588
|
+
data = _useShowCurrentIp.data,
|
|
3589
|
+
isLoading = _useShowCurrentIp.isLoading;
|
|
3590
|
+
var _useTranslation = useTranslation(),
|
|
3591
|
+
t = _useTranslation.t;
|
|
6986
3592
|
return /*#__PURE__*/React.createElement("div", {
|
|
6987
3593
|
className: "space-y-1"
|
|
6988
3594
|
}, /*#__PURE__*/React.createElement(Typography, null, t("neetoMolecules.ipRestriction.currentIpTitle")), /*#__PURE__*/React.createElement(Typography, {
|
|
6989
3595
|
weight: "semibold"
|
|
6990
|
-
}, isLoading ?
|
|
3596
|
+
}, isLoading ? "..." : data.ip), /*#__PURE__*/React.createElement(Typography, {
|
|
6991
3597
|
style: "body2"
|
|
6992
3598
|
}, t("neetoMolecules.ipRestriction.currentIpDescription")));
|
|
6993
3599
|
};
|
|
6994
3600
|
|
|
6995
|
-
|
|
6996
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/apis/ip_restriction.js";
|
|
6997
|
-
var hash = "937c7bc2f11a6f722062271f79940fd341cfb692";
|
|
6998
|
-
var global = new Function("return this")();
|
|
6999
|
-
var gcv = "__coverage__";
|
|
7000
|
-
var coverageData = {
|
|
7001
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/apis/ip_restriction.js",
|
|
7002
|
-
statementMap: {
|
|
7003
|
-
"0": {
|
|
7004
|
-
start: {
|
|
7005
|
-
line: 5,
|
|
7006
|
-
column: 25
|
|
7007
|
-
},
|
|
7008
|
-
end: {
|
|
7009
|
-
line: 5,
|
|
7010
|
-
column: 76
|
|
7011
|
-
}
|
|
7012
|
-
},
|
|
7013
|
-
"1": {
|
|
7014
|
-
start: {
|
|
7015
|
-
line: 7,
|
|
7016
|
-
column: 15
|
|
7017
|
-
},
|
|
7018
|
-
end: {
|
|
7019
|
-
line: 10,
|
|
7020
|
-
column: 4
|
|
7021
|
-
}
|
|
7022
|
-
},
|
|
7023
|
-
"2": {
|
|
7024
|
-
start: {
|
|
7025
|
-
line: 8,
|
|
7026
|
-
column: 2
|
|
7027
|
-
},
|
|
7028
|
-
end: {
|
|
7029
|
-
line: 10,
|
|
7030
|
-
column: 4
|
|
7031
|
-
}
|
|
7032
|
-
},
|
|
7033
|
-
"3": {
|
|
7034
|
-
start: {
|
|
7035
|
-
line: 12,
|
|
7036
|
-
column: 13
|
|
7037
|
-
},
|
|
7038
|
-
end: {
|
|
7039
|
-
line: 12,
|
|
7040
|
-
column: 46
|
|
7041
|
-
}
|
|
7042
|
-
},
|
|
7043
|
-
"4": {
|
|
7044
|
-
start: {
|
|
7045
|
-
line: 12,
|
|
7046
|
-
column: 19
|
|
7047
|
-
},
|
|
7048
|
-
end: {
|
|
7049
|
-
line: 12,
|
|
7050
|
-
column: 46
|
|
7051
|
-
}
|
|
7052
|
-
},
|
|
7053
|
-
"5": {
|
|
7054
|
-
start: {
|
|
7055
|
-
line: 14,
|
|
7056
|
-
column: 25
|
|
7057
|
-
},
|
|
7058
|
-
end: {
|
|
7059
|
-
line: 17,
|
|
7060
|
-
column: 1
|
|
7061
|
-
}
|
|
7062
|
-
}
|
|
7063
|
-
},
|
|
7064
|
-
fnMap: {
|
|
7065
|
-
"0": {
|
|
7066
|
-
name: "(anonymous_0)",
|
|
7067
|
-
decl: {
|
|
7068
|
-
start: {
|
|
7069
|
-
line: 7,
|
|
7070
|
-
column: 15
|
|
7071
|
-
},
|
|
7072
|
-
end: {
|
|
7073
|
-
line: 7,
|
|
7074
|
-
column: 16
|
|
7075
|
-
}
|
|
7076
|
-
},
|
|
7077
|
-
loc: {
|
|
7078
|
-
start: {
|
|
7079
|
-
line: 8,
|
|
7080
|
-
column: 2
|
|
7081
|
-
},
|
|
7082
|
-
end: {
|
|
7083
|
-
line: 10,
|
|
7084
|
-
column: 4
|
|
7085
|
-
}
|
|
7086
|
-
},
|
|
7087
|
-
line: 8
|
|
7088
|
-
},
|
|
7089
|
-
"1": {
|
|
7090
|
-
name: "(anonymous_1)",
|
|
7091
|
-
decl: {
|
|
7092
|
-
start: {
|
|
7093
|
-
line: 12,
|
|
7094
|
-
column: 13
|
|
7095
|
-
},
|
|
7096
|
-
end: {
|
|
7097
|
-
line: 12,
|
|
7098
|
-
column: 14
|
|
7099
|
-
}
|
|
7100
|
-
},
|
|
7101
|
-
loc: {
|
|
7102
|
-
start: {
|
|
7103
|
-
line: 12,
|
|
7104
|
-
column: 19
|
|
7105
|
-
},
|
|
7106
|
-
end: {
|
|
7107
|
-
line: 12,
|
|
7108
|
-
column: 46
|
|
7109
|
-
}
|
|
7110
|
-
},
|
|
7111
|
-
line: 12
|
|
7112
|
-
}
|
|
7113
|
-
},
|
|
7114
|
-
branchMap: {},
|
|
7115
|
-
s: {
|
|
7116
|
-
"0": 0,
|
|
7117
|
-
"1": 0,
|
|
7118
|
-
"2": 0,
|
|
7119
|
-
"3": 0,
|
|
7120
|
-
"4": 0,
|
|
7121
|
-
"5": 0
|
|
7122
|
-
},
|
|
7123
|
-
f: {
|
|
7124
|
-
"0": 0,
|
|
7125
|
-
"1": 0
|
|
7126
|
-
},
|
|
7127
|
-
b: {},
|
|
7128
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7129
|
-
hash: "937c7bc2f11a6f722062271f79940fd341cfb692"
|
|
7130
|
-
};
|
|
7131
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
7132
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
7133
|
-
coverage[path] = coverageData;
|
|
7134
|
-
}
|
|
7135
|
-
var actualCoverage = coverage[path];
|
|
7136
|
-
{
|
|
7137
|
-
// @ts-ignore
|
|
7138
|
-
cov_4ic7e8uyx = function () {
|
|
7139
|
-
return actualCoverage;
|
|
7140
|
-
};
|
|
7141
|
-
}
|
|
7142
|
-
return actualCoverage;
|
|
7143
|
-
}
|
|
7144
|
-
cov_4ic7e8uyx();
|
|
7145
|
-
var ipRestrictionUrl = (cov_4ic7e8uyx().s[0]++, "".concat(IP_RESTRICTIONS_ENGINE_BASE_URL, "/ip_restriction"));
|
|
7146
|
-
cov_4ic7e8uyx().s[1]++;
|
|
3601
|
+
var ipRestrictionUrl = "".concat(IP_RESTRICTIONS_ENGINE_BASE_URL, "/ip_restriction");
|
|
7147
3602
|
var update = function update(params) {
|
|
7148
|
-
cov_4ic7e8uyx().f[0]++;
|
|
7149
|
-
cov_4ic7e8uyx().s[2]++;
|
|
7150
3603
|
return axios.patch(ipRestrictionUrl, {
|
|
7151
3604
|
ipRestriction: params
|
|
7152
3605
|
});
|
|
7153
3606
|
};
|
|
7154
|
-
cov_4ic7e8uyx().s[3]++;
|
|
7155
3607
|
var show = function show() {
|
|
7156
|
-
cov_4ic7e8uyx().f[1]++;
|
|
7157
|
-
cov_4ic7e8uyx().s[4]++;
|
|
7158
3608
|
return axios.get(ipRestrictionUrl);
|
|
7159
3609
|
};
|
|
7160
|
-
var ipRestrictionApi =
|
|
3610
|
+
var ipRestrictionApi = {
|
|
7161
3611
|
update: update,
|
|
7162
3612
|
show: show
|
|
7163
|
-
}
|
|
3613
|
+
};
|
|
7164
3614
|
|
|
7165
|
-
|
|
7166
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/hooks/reactQuery/useIpRestrictions.js";
|
|
7167
|
-
var hash = "15acf40bf1b3cb12c58227ffa492f754d707b8a4";
|
|
7168
|
-
var global = new Function("return this")();
|
|
7169
|
-
var gcv = "__coverage__";
|
|
7170
|
-
var coverageData = {
|
|
7171
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/hooks/reactQuery/useIpRestrictions.js",
|
|
7172
|
-
statementMap: {
|
|
7173
|
-
"0": {
|
|
7174
|
-
start: {
|
|
7175
|
-
line: 6,
|
|
7176
|
-
column: 27
|
|
7177
|
-
},
|
|
7178
|
-
end: {
|
|
7179
|
-
line: 6,
|
|
7180
|
-
column: 37
|
|
7181
|
-
}
|
|
7182
|
-
},
|
|
7183
|
-
"1": {
|
|
7184
|
-
start: {
|
|
7185
|
-
line: 8,
|
|
7186
|
-
column: 29
|
|
7187
|
-
},
|
|
7188
|
-
end: {
|
|
7189
|
-
line: 9,
|
|
7190
|
-
column: 59
|
|
7191
|
-
}
|
|
7192
|
-
},
|
|
7193
|
-
"2": {
|
|
7194
|
-
start: {
|
|
7195
|
-
line: 9,
|
|
7196
|
-
column: 2
|
|
7197
|
-
},
|
|
7198
|
-
end: {
|
|
7199
|
-
line: 9,
|
|
7200
|
-
column: 59
|
|
7201
|
-
}
|
|
7202
|
-
},
|
|
7203
|
-
"3": {
|
|
7204
|
-
start: {
|
|
7205
|
-
line: 9,
|
|
7206
|
-
column: 35
|
|
7207
|
-
},
|
|
7208
|
-
end: {
|
|
7209
|
-
line: 9,
|
|
7210
|
-
column: 58
|
|
7211
|
-
}
|
|
7212
|
-
},
|
|
7213
|
-
"4": {
|
|
7214
|
-
start: {
|
|
7215
|
-
line: 11,
|
|
7216
|
-
column: 31
|
|
7217
|
-
},
|
|
7218
|
-
end: {
|
|
7219
|
-
line: 17,
|
|
7220
|
-
column: 1
|
|
7221
|
-
}
|
|
7222
|
-
},
|
|
7223
|
-
"5": {
|
|
7224
|
-
start: {
|
|
7225
|
-
line: 12,
|
|
7226
|
-
column: 22
|
|
7227
|
-
},
|
|
7228
|
-
end: {
|
|
7229
|
-
line: 12,
|
|
7230
|
-
column: 38
|
|
7231
|
-
}
|
|
7232
|
-
},
|
|
7233
|
-
"6": {
|
|
7234
|
-
start: {
|
|
7235
|
-
line: 14,
|
|
7236
|
-
column: 2
|
|
7237
|
-
},
|
|
7238
|
-
end: {
|
|
7239
|
-
line: 16,
|
|
7240
|
-
column: 5
|
|
7241
|
-
}
|
|
7242
|
-
},
|
|
7243
|
-
"7": {
|
|
7244
|
-
start: {
|
|
7245
|
-
line: 15,
|
|
7246
|
-
column: 21
|
|
7247
|
-
},
|
|
7248
|
-
end: {
|
|
7249
|
-
line: 15,
|
|
7250
|
-
column: 66
|
|
7251
|
-
}
|
|
7252
|
-
}
|
|
7253
|
-
},
|
|
7254
|
-
fnMap: {
|
|
7255
|
-
"0": {
|
|
7256
|
-
name: "(anonymous_0)",
|
|
7257
|
-
decl: {
|
|
7258
|
-
start: {
|
|
7259
|
-
line: 8,
|
|
7260
|
-
column: 29
|
|
7261
|
-
},
|
|
7262
|
-
end: {
|
|
7263
|
-
line: 8,
|
|
7264
|
-
column: 30
|
|
7265
|
-
}
|
|
7266
|
-
},
|
|
7267
|
-
loc: {
|
|
7268
|
-
start: {
|
|
7269
|
-
line: 9,
|
|
7270
|
-
column: 2
|
|
7271
|
-
},
|
|
7272
|
-
end: {
|
|
7273
|
-
line: 9,
|
|
7274
|
-
column: 59
|
|
7275
|
-
}
|
|
7276
|
-
},
|
|
7277
|
-
line: 9
|
|
7278
|
-
},
|
|
7279
|
-
"1": {
|
|
7280
|
-
name: "(anonymous_1)",
|
|
7281
|
-
decl: {
|
|
7282
|
-
start: {
|
|
7283
|
-
line: 9,
|
|
7284
|
-
column: 29
|
|
7285
|
-
},
|
|
7286
|
-
end: {
|
|
7287
|
-
line: 9,
|
|
7288
|
-
column: 30
|
|
7289
|
-
}
|
|
7290
|
-
},
|
|
7291
|
-
loc: {
|
|
7292
|
-
start: {
|
|
7293
|
-
line: 9,
|
|
7294
|
-
column: 35
|
|
7295
|
-
},
|
|
7296
|
-
end: {
|
|
7297
|
-
line: 9,
|
|
7298
|
-
column: 58
|
|
7299
|
-
}
|
|
7300
|
-
},
|
|
7301
|
-
line: 9
|
|
7302
|
-
},
|
|
7303
|
-
"2": {
|
|
7304
|
-
name: "(anonymous_2)",
|
|
7305
|
-
decl: {
|
|
7306
|
-
start: {
|
|
7307
|
-
line: 11,
|
|
7308
|
-
column: 31
|
|
7309
|
-
},
|
|
7310
|
-
end: {
|
|
7311
|
-
line: 11,
|
|
7312
|
-
column: 32
|
|
7313
|
-
}
|
|
7314
|
-
},
|
|
7315
|
-
loc: {
|
|
7316
|
-
start: {
|
|
7317
|
-
line: 11,
|
|
7318
|
-
column: 37
|
|
7319
|
-
},
|
|
7320
|
-
end: {
|
|
7321
|
-
line: 17,
|
|
7322
|
-
column: 1
|
|
7323
|
-
}
|
|
7324
|
-
},
|
|
7325
|
-
line: 11
|
|
7326
|
-
},
|
|
7327
|
-
"3": {
|
|
7328
|
-
name: "(anonymous_3)",
|
|
7329
|
-
decl: {
|
|
7330
|
-
start: {
|
|
7331
|
-
line: 15,
|
|
7332
|
-
column: 15
|
|
7333
|
-
},
|
|
7334
|
-
end: {
|
|
7335
|
-
line: 15,
|
|
7336
|
-
column: 16
|
|
7337
|
-
}
|
|
7338
|
-
},
|
|
7339
|
-
loc: {
|
|
7340
|
-
start: {
|
|
7341
|
-
line: 15,
|
|
7342
|
-
column: 21
|
|
7343
|
-
},
|
|
7344
|
-
end: {
|
|
7345
|
-
line: 15,
|
|
7346
|
-
column: 66
|
|
7347
|
-
}
|
|
7348
|
-
},
|
|
7349
|
-
line: 15
|
|
7350
|
-
}
|
|
7351
|
-
},
|
|
7352
|
-
branchMap: {},
|
|
7353
|
-
s: {
|
|
7354
|
-
"0": 0,
|
|
7355
|
-
"1": 0,
|
|
7356
|
-
"2": 0,
|
|
7357
|
-
"3": 0,
|
|
7358
|
-
"4": 0,
|
|
7359
|
-
"5": 0,
|
|
7360
|
-
"6": 0,
|
|
7361
|
-
"7": 0
|
|
7362
|
-
},
|
|
7363
|
-
f: {
|
|
7364
|
-
"0": 0,
|
|
7365
|
-
"1": 0,
|
|
7366
|
-
"2": 0,
|
|
7367
|
-
"3": 0
|
|
7368
|
-
},
|
|
7369
|
-
b: {},
|
|
7370
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7371
|
-
hash: "15acf40bf1b3cb12c58227ffa492f754d707b8a4"
|
|
7372
|
-
};
|
|
7373
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
7374
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
7375
|
-
coverage[path] = coverageData;
|
|
7376
|
-
}
|
|
7377
|
-
var actualCoverage = coverage[path];
|
|
7378
|
-
{
|
|
7379
|
-
// @ts-ignore
|
|
7380
|
-
cov_o3uf69qz8 = function () {
|
|
7381
|
-
return actualCoverage;
|
|
7382
|
-
};
|
|
7383
|
-
}
|
|
7384
|
-
return actualCoverage;
|
|
7385
|
-
}
|
|
7386
|
-
cov_o3uf69qz8();
|
|
7387
|
-
var _ref = (cov_o3uf69qz8().s[0]++, QUERY_KEYS),
|
|
7388
|
-
IP_RESTRICTION = _ref.IP_RESTRICTION;
|
|
7389
|
-
cov_o3uf69qz8().s[1]++;
|
|
3615
|
+
var IP_RESTRICTION = QUERY_KEYS.IP_RESTRICTION;
|
|
7390
3616
|
var useShowIpRestriction = function useShowIpRestriction() {
|
|
7391
|
-
cov_o3uf69qz8().f[0]++;
|
|
7392
|
-
cov_o3uf69qz8().s[2]++;
|
|
7393
3617
|
return useQuery([IP_RESTRICTION], function () {
|
|
7394
|
-
cov_o3uf69qz8().f[1]++;
|
|
7395
|
-
cov_o3uf69qz8().s[3]++;
|
|
7396
3618
|
return ipRestrictionApi.show();
|
|
7397
3619
|
});
|
|
7398
3620
|
};
|
|
7399
|
-
cov_o3uf69qz8().s[4]++;
|
|
7400
3621
|
var useUpdateIpRestriction = function useUpdateIpRestriction() {
|
|
7401
|
-
|
|
7402
|
-
var queryClient = (cov_o3uf69qz8().s[5]++, useQueryClient());
|
|
7403
|
-
cov_o3uf69qz8().s[6]++;
|
|
3622
|
+
var queryClient = useQueryClient();
|
|
7404
3623
|
return useMutation(ipRestrictionApi.update, {
|
|
7405
3624
|
onSuccess: function onSuccess() {
|
|
7406
|
-
cov_o3uf69qz8().f[3]++;
|
|
7407
|
-
cov_o3uf69qz8().s[7]++;
|
|
7408
3625
|
return queryClient.invalidateQueries(IP_RESTRICTION);
|
|
7409
3626
|
}
|
|
7410
3627
|
});
|
|
7411
3628
|
};
|
|
7412
3629
|
|
|
7413
|
-
function cov_1b8sztxw7r() {
|
|
7414
|
-
var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/index.jsx";
|
|
7415
|
-
var hash = "2b34e2afa675e1db2a8142640a0752e0f131bd1f";
|
|
7416
|
-
var global = new Function("return this")();
|
|
7417
|
-
var gcv = "__coverage__";
|
|
7418
|
-
var coverageData = {
|
|
7419
|
-
path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/index.jsx",
|
|
7420
|
-
statementMap: {
|
|
7421
|
-
"0": {
|
|
7422
|
-
start: {
|
|
7423
|
-
line: 15,
|
|
7424
|
-
column: 22
|
|
7425
|
-
},
|
|
7426
|
-
end: {
|
|
7427
|
-
line: 58,
|
|
7428
|
-
column: 1
|
|
7429
|
-
}
|
|
7430
|
-
},
|
|
7431
|
-
"1": {
|
|
7432
|
-
start: {
|
|
7433
|
-
line: 16,
|
|
7434
|
-
column: 42
|
|
7435
|
-
},
|
|
7436
|
-
end: {
|
|
7437
|
-
line: 16,
|
|
7438
|
-
column: 64
|
|
7439
|
-
}
|
|
7440
|
-
},
|
|
7441
|
-
"2": {
|
|
7442
|
-
start: {
|
|
7443
|
-
line: 18,
|
|
7444
|
-
column: 4
|
|
7445
|
-
},
|
|
7446
|
-
end: {
|
|
7447
|
-
line: 18,
|
|
7448
|
-
column: 28
|
|
7449
|
-
}
|
|
7450
|
-
},
|
|
7451
|
-
"3": {
|
|
7452
|
-
start: {
|
|
7453
|
-
line: 19,
|
|
7454
|
-
column: 16
|
|
7455
|
-
},
|
|
7456
|
-
end: {
|
|
7457
|
-
line: 19,
|
|
7458
|
-
column: 32
|
|
7459
|
-
}
|
|
7460
|
-
},
|
|
7461
|
-
"4": {
|
|
7462
|
-
start: {
|
|
7463
|
-
line: 21,
|
|
7464
|
-
column: 35
|
|
7465
|
-
},
|
|
7466
|
-
end: {
|
|
7467
|
-
line: 26,
|
|
7468
|
-
column: 3
|
|
7469
|
-
}
|
|
7470
|
-
},
|
|
7471
|
-
"5": {
|
|
7472
|
-
start: {
|
|
7473
|
-
line: 22,
|
|
7474
|
-
column: 20
|
|
7475
|
-
},
|
|
7476
|
-
end: {
|
|
7477
|
-
line: 24,
|
|
7478
|
-
column: 5
|
|
7479
|
-
}
|
|
7480
|
-
},
|
|
7481
|
-
"6": {
|
|
7482
|
-
start: {
|
|
7483
|
-
line: 25,
|
|
7484
|
-
column: 4
|
|
7485
|
-
},
|
|
7486
|
-
end: {
|
|
7487
|
-
line: 25,
|
|
7488
|
-
column: 33
|
|
7489
|
-
}
|
|
7490
|
-
},
|
|
7491
|
-
"7": {
|
|
7492
|
-
start: {
|
|
7493
|
-
line: 28,
|
|
7494
|
-
column: 2
|
|
7495
|
-
},
|
|
7496
|
-
end: {
|
|
7497
|
-
line: 34,
|
|
7498
|
-
column: 3
|
|
7499
|
-
}
|
|
7500
|
-
},
|
|
7501
|
-
"8": {
|
|
7502
|
-
start: {
|
|
7503
|
-
line: 29,
|
|
7504
|
-
column: 4
|
|
7505
|
-
},
|
|
7506
|
-
end: {
|
|
7507
|
-
line: 33,
|
|
7508
|
-
column: 6
|
|
7509
|
-
}
|
|
7510
|
-
},
|
|
7511
|
-
"9": {
|
|
7512
|
-
start: {
|
|
7513
|
-
line: 36,
|
|
7514
|
-
column: 2
|
|
7515
|
-
},
|
|
7516
|
-
end: {
|
|
7517
|
-
line: 57,
|
|
7518
|
-
column: 4
|
|
7519
|
-
}
|
|
7520
|
-
}
|
|
7521
|
-
},
|
|
7522
|
-
fnMap: {
|
|
7523
|
-
"0": {
|
|
7524
|
-
name: "(anonymous_0)",
|
|
7525
|
-
decl: {
|
|
7526
|
-
start: {
|
|
7527
|
-
line: 15,
|
|
7528
|
-
column: 22
|
|
7529
|
-
},
|
|
7530
|
-
end: {
|
|
7531
|
-
line: 15,
|
|
7532
|
-
column: 23
|
|
7533
|
-
}
|
|
7534
|
-
},
|
|
7535
|
-
loc: {
|
|
7536
|
-
start: {
|
|
7537
|
-
line: 15,
|
|
7538
|
-
column: 28
|
|
7539
|
-
},
|
|
7540
|
-
end: {
|
|
7541
|
-
line: 58,
|
|
7542
|
-
column: 1
|
|
7543
|
-
}
|
|
7544
|
-
},
|
|
7545
|
-
line: 15
|
|
7546
|
-
},
|
|
7547
|
-
"1": {
|
|
7548
|
-
name: "(anonymous_1)",
|
|
7549
|
-
decl: {
|
|
7550
|
-
start: {
|
|
7551
|
-
line: 21,
|
|
7552
|
-
column: 35
|
|
7553
|
-
},
|
|
7554
|
-
end: {
|
|
7555
|
-
line: 21,
|
|
7556
|
-
column: 36
|
|
7557
|
-
}
|
|
7558
|
-
},
|
|
7559
|
-
loc: {
|
|
7560
|
-
start: {
|
|
7561
|
-
line: 21,
|
|
7562
|
-
column: 40
|
|
7563
|
-
},
|
|
7564
|
-
end: {
|
|
7565
|
-
line: 26,
|
|
7566
|
-
column: 3
|
|
7567
|
-
}
|
|
7568
|
-
},
|
|
7569
|
-
line: 21
|
|
7570
|
-
}
|
|
7571
|
-
},
|
|
7572
|
-
branchMap: {
|
|
7573
|
-
"0": {
|
|
7574
|
-
loc: {
|
|
7575
|
-
start: {
|
|
7576
|
-
line: 28,
|
|
7577
|
-
column: 2
|
|
7578
|
-
},
|
|
7579
|
-
end: {
|
|
7580
|
-
line: 34,
|
|
7581
|
-
column: 3
|
|
7582
|
-
}
|
|
7583
|
-
},
|
|
7584
|
-
type: "if",
|
|
7585
|
-
locations: [{
|
|
7586
|
-
start: {
|
|
7587
|
-
line: 28,
|
|
7588
|
-
column: 2
|
|
7589
|
-
},
|
|
7590
|
-
end: {
|
|
7591
|
-
line: 34,
|
|
7592
|
-
column: 3
|
|
7593
|
-
}
|
|
7594
|
-
}, {
|
|
7595
|
-
start: {
|
|
7596
|
-
line: undefined,
|
|
7597
|
-
column: undefined
|
|
7598
|
-
},
|
|
7599
|
-
end: {
|
|
7600
|
-
line: undefined,
|
|
7601
|
-
column: undefined
|
|
7602
|
-
}
|
|
7603
|
-
}],
|
|
7604
|
-
line: 28
|
|
7605
|
-
},
|
|
7606
|
-
"1": {
|
|
7607
|
-
loc: {
|
|
7608
|
-
start: {
|
|
7609
|
-
line: 42,
|
|
7610
|
-
column: 20
|
|
7611
|
-
},
|
|
7612
|
-
end: {
|
|
7613
|
-
line: 42,
|
|
7614
|
-
column: 44
|
|
7615
|
-
}
|
|
7616
|
-
},
|
|
7617
|
-
type: "binary-expr",
|
|
7618
|
-
locations: [{
|
|
7619
|
-
start: {
|
|
7620
|
-
line: 42,
|
|
7621
|
-
column: 20
|
|
7622
|
-
},
|
|
7623
|
-
end: {
|
|
7624
|
-
line: 42,
|
|
7625
|
-
column: 30
|
|
7626
|
-
}
|
|
7627
|
-
}, {
|
|
7628
|
-
start: {
|
|
7629
|
-
line: 42,
|
|
7630
|
-
column: 34
|
|
7631
|
-
},
|
|
7632
|
-
end: {
|
|
7633
|
-
line: 42,
|
|
7634
|
-
column: 44
|
|
7635
|
-
}
|
|
7636
|
-
}],
|
|
7637
|
-
line: 42
|
|
7638
|
-
},
|
|
7639
|
-
"2": {
|
|
7640
|
-
loc: {
|
|
7641
|
-
start: {
|
|
7642
|
-
line: 50,
|
|
7643
|
-
column: 7
|
|
7644
|
-
},
|
|
7645
|
-
end: {
|
|
7646
|
-
line: 55,
|
|
7647
|
-
column: 7
|
|
7648
|
-
}
|
|
7649
|
-
},
|
|
7650
|
-
type: "binary-expr",
|
|
7651
|
-
locations: [{
|
|
7652
|
-
start: {
|
|
7653
|
-
line: 50,
|
|
7654
|
-
column: 7
|
|
7655
|
-
},
|
|
7656
|
-
end: {
|
|
7657
|
-
line: 50,
|
|
7658
|
-
column: 34
|
|
7659
|
-
}
|
|
7660
|
-
}, {
|
|
7661
|
-
start: {
|
|
7662
|
-
line: 51,
|
|
7663
|
-
column: 8
|
|
7664
|
-
},
|
|
7665
|
-
end: {
|
|
7666
|
-
line: 54,
|
|
7667
|
-
column: 14
|
|
7668
|
-
}
|
|
7669
|
-
}],
|
|
7670
|
-
line: 50
|
|
7671
|
-
}
|
|
7672
|
-
},
|
|
7673
|
-
s: {
|
|
7674
|
-
"0": 0,
|
|
7675
|
-
"1": 0,
|
|
7676
|
-
"2": 0,
|
|
7677
|
-
"3": 0,
|
|
7678
|
-
"4": 0,
|
|
7679
|
-
"5": 0,
|
|
7680
|
-
"6": 0,
|
|
7681
|
-
"7": 0,
|
|
7682
|
-
"8": 0,
|
|
7683
|
-
"9": 0
|
|
7684
|
-
},
|
|
7685
|
-
f: {
|
|
7686
|
-
"0": 0,
|
|
7687
|
-
"1": 0
|
|
7688
|
-
},
|
|
7689
|
-
b: {
|
|
7690
|
-
"0": [0, 0],
|
|
7691
|
-
"1": [0, 0],
|
|
7692
|
-
"2": [0, 0]
|
|
7693
|
-
},
|
|
7694
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7695
|
-
hash: "2b34e2afa675e1db2a8142640a0752e0f131bd1f"
|
|
7696
|
-
};
|
|
7697
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
7698
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
7699
|
-
coverage[path] = coverageData;
|
|
7700
|
-
}
|
|
7701
|
-
var actualCoverage = coverage[path];
|
|
7702
|
-
{
|
|
7703
|
-
// @ts-ignore
|
|
7704
|
-
cov_1b8sztxw7r = function () {
|
|
7705
|
-
return actualCoverage;
|
|
7706
|
-
};
|
|
7707
|
-
}
|
|
7708
|
-
return actualCoverage;
|
|
7709
|
-
}
|
|
7710
|
-
cov_1b8sztxw7r();
|
|
7711
|
-
cov_1b8sztxw7r().s[0]++;
|
|
7712
3630
|
var IpRestriction = function IpRestriction() {
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
t = _ref3.t;
|
|
7722
|
-
cov_1b8sztxw7r().s[4]++;
|
|
3631
|
+
var _useShowIpRestriction = useShowIpRestriction(),
|
|
3632
|
+
data = _useShowIpRestriction.data,
|
|
3633
|
+
isFetching = _useShowIpRestriction.isLoading;
|
|
3634
|
+
var _useUpdateIpRestricti = useUpdateIpRestriction(),
|
|
3635
|
+
updateIpRestriction = _useUpdateIpRestricti.mutate,
|
|
3636
|
+
isUpdating = _useUpdateIpRestricti.isLoading;
|
|
3637
|
+
var _useTranslation = useTranslation(),
|
|
3638
|
+
t = _useTranslation.t;
|
|
7723
3639
|
var handleSwitchButtonChange = function handleSwitchButtonChange(e) {
|
|
7724
|
-
|
|
7725
|
-
var payload = (cov_1b8sztxw7r().s[5]++, {
|
|
3640
|
+
var payload = {
|
|
7726
3641
|
isIpRestrictionEnabled: e.target.checked
|
|
7727
|
-
}
|
|
7728
|
-
cov_1b8sztxw7r().s[6]++;
|
|
3642
|
+
};
|
|
7729
3643
|
updateIpRestriction(payload);
|
|
7730
3644
|
};
|
|
7731
|
-
cov_1b8sztxw7r().s[7]++;
|
|
7732
3645
|
if (isFetching) {
|
|
7733
|
-
cov_1b8sztxw7r().b[0][0]++;
|
|
7734
|
-
cov_1b8sztxw7r().s[8]++;
|
|
7735
3646
|
return /*#__PURE__*/React.createElement("div", {
|
|
7736
3647
|
className: "h-screen"
|
|
7737
3648
|
}, /*#__PURE__*/React.createElement(PageLoader, null));
|
|
7738
|
-
} else {
|
|
7739
|
-
cov_1b8sztxw7r().b[0][1]++;
|
|
7740
3649
|
}
|
|
7741
|
-
cov_1b8sztxw7r().s[9]++;
|
|
7742
3650
|
return (
|
|
7743
3651
|
/*#__PURE__*/
|
|
7744
3652
|
// eslint-disable-next-line @bigbinary/neeto/use-neetoui-classes
|
|
@@ -7748,14 +3656,14 @@ var IpRestriction = function IpRestriction() {
|
|
|
7748
3656
|
className: "space-y-1 p-4"
|
|
7749
3657
|
}, /*#__PURE__*/React.createElement(Switch, {
|
|
7750
3658
|
checked: data.isIpRestrictionEnabled,
|
|
7751
|
-
disabled:
|
|
3659
|
+
disabled: isFetching || isUpdating,
|
|
7752
3660
|
label: t("neetoMolecules.ipRestriction.switchLabel"),
|
|
7753
3661
|
onChange: handleSwitchButtonChange
|
|
7754
3662
|
}), /*#__PURE__*/React.createElement(Typography, {
|
|
7755
3663
|
style: "body3"
|
|
7756
|
-
}, t("neetoMolecules.ipRestriction.description"))),
|
|
3664
|
+
}, t("neetoMolecules.ipRestriction.description"))), data.isIpRestrictionEnabled && /*#__PURE__*/React.createElement("div", {
|
|
7757
3665
|
className: "neeto-ui-bg-gray-100 w-full space-y-4 p-4"
|
|
7758
|
-
}, /*#__PURE__*/React.createElement(CurrentIp, null), /*#__PURE__*/React.createElement(AllowedIpRanges, null)))
|
|
3666
|
+
}, /*#__PURE__*/React.createElement(CurrentIp, null), /*#__PURE__*/React.createElement(AllowedIpRanges, null)))
|
|
7759
3667
|
);
|
|
7760
3668
|
};
|
|
7761
3669
|
|