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