@bigbinary/neeto-molecules 1.0.19 → 1.0.21

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.
@@ -3,6 +3,7 @@
3
3
  var React = require('react');
4
4
  var neetoui = require('@bigbinary/neetoui');
5
5
  var reactI18next = require('react-i18next');
6
+ var logos = require('@bigbinary/neeto-icons/logos');
6
7
  var neetoIcons = require('@bigbinary/neeto-icons');
7
8
  var formik = require('@bigbinary/neetoui/formik');
8
9
  var reactQuery = require('react-query');
@@ -36,6 +37,244 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
36
37
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
37
38
  var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
38
39
 
40
+ function _extends() {
41
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
42
+ for (var i = 1; i < arguments.length; i++) {
43
+ var source = arguments[i];
44
+ for (var key in source) {
45
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
46
+ target[key] = source[key];
47
+ }
48
+ }
49
+ }
50
+ return target;
51
+ };
52
+ return _extends.apply(this, arguments);
53
+ }
54
+
55
+ function _objectWithoutPropertiesLoose(source, excluded) {
56
+ if (source == null) return {};
57
+ var target = {};
58
+ var sourceKeys = Object.keys(source);
59
+ var key, i;
60
+ for (i = 0; i < sourceKeys.length; i++) {
61
+ key = sourceKeys[i];
62
+ if (excluded.indexOf(key) >= 0) continue;
63
+ target[key] = source[key];
64
+ }
65
+ return target;
66
+ }
67
+
68
+ function _objectWithoutProperties(source, excluded) {
69
+ if (source == null) return {};
70
+ var target = _objectWithoutPropertiesLoose(source, excluded);
71
+ var key, i;
72
+ if (Object.getOwnPropertySymbols) {
73
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
74
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
75
+ key = sourceSymbolKeys[i];
76
+ if (excluded.indexOf(key) >= 0) continue;
77
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
78
+ target[key] = source[key];
79
+ }
80
+ }
81
+ return target;
82
+ }
83
+
84
+ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
85
+
86
+ var css = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__content{height:66px;margin-bottom:16px;overflow:hidden;padding:8px;position:relative;width:66px}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__text{color:rgb(var(--neeto-ui-gray-800));font-size:1.25rem;line-height:1.75rem;margin-bottom:4rem;text-align:center}.neeto-molecules-pageloader__spinner{display:flex;gap:2px;height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-molecules-pageloader__spinner>div{animation:neeto-ui-stretch-delay 1.2s ease-in-out infinite;background-color:#fff;border-radius:2px;display:inline-flex;height:100%;width:2px}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect2{animation-delay:-1.1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect3{animation-delay:-1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect4{animation-delay:-.9s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect5{animation-delay:-.8s}@keyframes neeto-ui-stretch-delay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}";
87
+ n(css,{});
88
+
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
+ var PageLoader = function PageLoader(_ref) {
245
+ var _ref$text = _ref.text,
246
+ text = _ref$text === void 0 ? (cov_1rnptrlqih().b[0][0]++, "") : _ref$text,
247
+ otherProps = _objectWithoutProperties(_ref, _excluded);
248
+ cov_1rnptrlqih().f[0]++;
249
+ cov_1rnptrlqih().s[1]++;
250
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends({
251
+ className: "neeto-molecules-pageloader__wrapper"
252
+ }, otherProps), /*#__PURE__*/React__default["default"].createElement("div", {
253
+ className: "neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center"
254
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
255
+ className: "neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center"
256
+ }, /*#__PURE__*/React__default["default"].createElement(logos.Neeto, {
257
+ className: "neeto-molecules-pageloader__logo",
258
+ size: 50
259
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
260
+ className: "neeto-molecules-pageloader__spinner"
261
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
262
+ className: "neeto-molecules-pageloader__rect1"
263
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
264
+ className: "neeto-molecules-pageloader__rect2"
265
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
266
+ className: "neeto-molecules-pageloader__rect3"
267
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
268
+ className: "neeto-molecules-pageloader__rect4"
269
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
270
+ className: "neeto-molecules-pageloader__rect5"
271
+ }))), (cov_1rnptrlqih().b[1][0]++, text) && (cov_1rnptrlqih().b[1][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
272
+ style: "h5",
273
+ weight: "semibold"
274
+ }, text))));
275
+ };
276
+ cov_1rnptrlqih().s[2]++;
277
+
39
278
  function _arrayWithHoles(arr) {
40
279
  if (Array.isArray(arr)) return arr;
41
280
  }
@@ -5205,7 +5444,7 @@ var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema
5205
5444
  cov_58ap1ki41().f[9]++;
5206
5445
  cov_58ap1ki41().s[29]++;
5207
5446
  return yup__namespace.object().shape({
5208
- ipStart: yup__namespace.string().validIp(i18next.t("neetoMolecules.ipRestriction.validations.invalidIp")).required(),
5447
+ ipStart: yup__namespace.string().validIp(i18next.t("neetoMolecules.ipRestriction.validations.invalidIp")).required(i18next.t("neetoMolecules.ipRestriction.validations.ipStartRequired")),
5209
5448
  ipEnd: yup__namespace.string().validIp(i18next.t("neetoMolecules.ipRestriction.validations.invalidIp")).when("ipStart", function (ipStart, schema) {
5210
5449
  cov_58ap1ki41().f[10]++;
5211
5450
  cov_58ap1ki41().s[30]++;
@@ -5228,7 +5467,7 @@ var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema
5228
5467
  },
5229
5468
  message: i18next.t("neetoMolecules.ipRestriction.validations.ipEndGreaterThanIpStart")
5230
5469
  });
5231
- }).required()
5470
+ }).required(i18next.t("neetoMolecules.ipRestriction.validations.ipEndRequired"))
5232
5471
  });
5233
5472
  };
5234
5473
 
@@ -7179,7 +7418,7 @@ var useUpdateIpRestriction = function useUpdateIpRestriction() {
7179
7418
 
7180
7419
  function cov_1b8sztxw7r() {
7181
7420
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/index.jsx";
7182
- var hash = "4543572cffac14c44347452e1aa4d7e914fc27a6";
7421
+ var hash = "2b34e2afa675e1db2a8142640a0752e0f131bd1f";
7183
7422
  var global = new Function("return this")();
7184
7423
  var gcv = "__coverage__";
7185
7424
  var coverageData = {
@@ -7187,101 +7426,101 @@ function cov_1b8sztxw7r() {
7187
7426
  statementMap: {
7188
7427
  "0": {
7189
7428
  start: {
7190
- line: 13,
7429
+ line: 15,
7191
7430
  column: 22
7192
7431
  },
7193
7432
  end: {
7194
- line: 55,
7433
+ line: 58,
7195
7434
  column: 1
7196
7435
  }
7197
7436
  },
7198
7437
  "1": {
7199
7438
  start: {
7200
- line: 14,
7439
+ line: 16,
7201
7440
  column: 42
7202
7441
  },
7203
7442
  end: {
7204
- line: 14,
7443
+ line: 16,
7205
7444
  column: 64
7206
7445
  }
7207
7446
  },
7208
7447
  "2": {
7209
7448
  start: {
7210
- line: 16,
7449
+ line: 18,
7211
7450
  column: 4
7212
7451
  },
7213
7452
  end: {
7214
- line: 16,
7453
+ line: 18,
7215
7454
  column: 28
7216
7455
  }
7217
7456
  },
7218
7457
  "3": {
7219
7458
  start: {
7220
- line: 17,
7459
+ line: 19,
7221
7460
  column: 16
7222
7461
  },
7223
7462
  end: {
7224
- line: 17,
7463
+ line: 19,
7225
7464
  column: 32
7226
7465
  }
7227
7466
  },
7228
7467
  "4": {
7229
7468
  start: {
7230
- line: 19,
7469
+ line: 21,
7231
7470
  column: 35
7232
7471
  },
7233
7472
  end: {
7234
- line: 24,
7473
+ line: 26,
7235
7474
  column: 3
7236
7475
  }
7237
7476
  },
7238
7477
  "5": {
7239
7478
  start: {
7240
- line: 20,
7479
+ line: 22,
7241
7480
  column: 20
7242
7481
  },
7243
7482
  end: {
7244
- line: 22,
7483
+ line: 24,
7245
7484
  column: 5
7246
7485
  }
7247
7486
  },
7248
7487
  "6": {
7249
7488
  start: {
7250
- line: 23,
7489
+ line: 25,
7251
7490
  column: 4
7252
7491
  },
7253
7492
  end: {
7254
- line: 23,
7493
+ line: 25,
7255
7494
  column: 33
7256
7495
  }
7257
7496
  },
7258
7497
  "7": {
7259
7498
  start: {
7260
- line: 26,
7499
+ line: 28,
7261
7500
  column: 2
7262
7501
  },
7263
7502
  end: {
7264
- line: 32,
7503
+ line: 34,
7265
7504
  column: 3
7266
7505
  }
7267
7506
  },
7268
7507
  "8": {
7269
7508
  start: {
7270
- line: 27,
7509
+ line: 29,
7271
7510
  column: 4
7272
7511
  },
7273
7512
  end: {
7274
- line: 31,
7513
+ line: 33,
7275
7514
  column: 6
7276
7515
  }
7277
7516
  },
7278
7517
  "9": {
7279
7518
  start: {
7280
- line: 34,
7519
+ line: 36,
7281
7520
  column: 2
7282
7521
  },
7283
7522
  end: {
7284
- line: 54,
7523
+ line: 57,
7285
7524
  column: 4
7286
7525
  }
7287
7526
  }
@@ -7291,71 +7530,71 @@ function cov_1b8sztxw7r() {
7291
7530
  name: "(anonymous_0)",
7292
7531
  decl: {
7293
7532
  start: {
7294
- line: 13,
7533
+ line: 15,
7295
7534
  column: 22
7296
7535
  },
7297
7536
  end: {
7298
- line: 13,
7537
+ line: 15,
7299
7538
  column: 23
7300
7539
  }
7301
7540
  },
7302
7541
  loc: {
7303
7542
  start: {
7304
- line: 13,
7543
+ line: 15,
7305
7544
  column: 28
7306
7545
  },
7307
7546
  end: {
7308
- line: 55,
7547
+ line: 58,
7309
7548
  column: 1
7310
7549
  }
7311
7550
  },
7312
- line: 13
7551
+ line: 15
7313
7552
  },
7314
7553
  "1": {
7315
7554
  name: "(anonymous_1)",
7316
7555
  decl: {
7317
7556
  start: {
7318
- line: 19,
7557
+ line: 21,
7319
7558
  column: 35
7320
7559
  },
7321
7560
  end: {
7322
- line: 19,
7561
+ line: 21,
7323
7562
  column: 36
7324
7563
  }
7325
7564
  },
7326
7565
  loc: {
7327
7566
  start: {
7328
- line: 19,
7567
+ line: 21,
7329
7568
  column: 40
7330
7569
  },
7331
7570
  end: {
7332
- line: 24,
7571
+ line: 26,
7333
7572
  column: 3
7334
7573
  }
7335
7574
  },
7336
- line: 19
7575
+ line: 21
7337
7576
  }
7338
7577
  },
7339
7578
  branchMap: {
7340
7579
  "0": {
7341
7580
  loc: {
7342
7581
  start: {
7343
- line: 26,
7582
+ line: 28,
7344
7583
  column: 2
7345
7584
  },
7346
7585
  end: {
7347
- line: 32,
7586
+ line: 34,
7348
7587
  column: 3
7349
7588
  }
7350
7589
  },
7351
7590
  type: "if",
7352
7591
  locations: [{
7353
7592
  start: {
7354
- line: 26,
7593
+ line: 28,
7355
7594
  column: 2
7356
7595
  },
7357
7596
  end: {
7358
- line: 32,
7597
+ line: 34,
7359
7598
  column: 3
7360
7599
  }
7361
7600
  }, {
@@ -7368,73 +7607,73 @@ function cov_1b8sztxw7r() {
7368
7607
  column: undefined
7369
7608
  }
7370
7609
  }],
7371
- line: 26
7610
+ line: 28
7372
7611
  },
7373
7612
  "1": {
7374
7613
  loc: {
7375
7614
  start: {
7376
- line: 39,
7615
+ line: 42,
7377
7616
  column: 20
7378
7617
  },
7379
7618
  end: {
7380
- line: 39,
7619
+ line: 42,
7381
7620
  column: 44
7382
7621
  }
7383
7622
  },
7384
7623
  type: "binary-expr",
7385
7624
  locations: [{
7386
7625
  start: {
7387
- line: 39,
7626
+ line: 42,
7388
7627
  column: 20
7389
7628
  },
7390
7629
  end: {
7391
- line: 39,
7630
+ line: 42,
7392
7631
  column: 30
7393
7632
  }
7394
7633
  }, {
7395
7634
  start: {
7396
- line: 39,
7635
+ line: 42,
7397
7636
  column: 34
7398
7637
  },
7399
7638
  end: {
7400
- line: 39,
7639
+ line: 42,
7401
7640
  column: 44
7402
7641
  }
7403
7642
  }],
7404
- line: 39
7643
+ line: 42
7405
7644
  },
7406
7645
  "2": {
7407
7646
  loc: {
7408
7647
  start: {
7409
- line: 47,
7648
+ line: 50,
7410
7649
  column: 7
7411
7650
  },
7412
7651
  end: {
7413
- line: 52,
7652
+ line: 55,
7414
7653
  column: 7
7415
7654
  }
7416
7655
  },
7417
7656
  type: "binary-expr",
7418
7657
  locations: [{
7419
7658
  start: {
7420
- line: 47,
7659
+ line: 50,
7421
7660
  column: 7
7422
7661
  },
7423
7662
  end: {
7424
- line: 47,
7663
+ line: 50,
7425
7664
  column: 34
7426
7665
  }
7427
7666
  }, {
7428
7667
  start: {
7429
- line: 48,
7668
+ line: 51,
7430
7669
  column: 8
7431
7670
  },
7432
7671
  end: {
7433
- line: 51,
7672
+ line: 54,
7434
7673
  column: 14
7435
7674
  }
7436
7675
  }],
7437
- line: 47
7676
+ line: 50
7438
7677
  }
7439
7678
  },
7440
7679
  s: {
@@ -7459,7 +7698,7 @@ function cov_1b8sztxw7r() {
7459
7698
  "2": [0, 0]
7460
7699
  },
7461
7700
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
7462
- hash: "4543572cffac14c44347452e1aa4d7e914fc27a6"
7701
+ hash: "2b34e2afa675e1db2a8142640a0752e0f131bd1f"
7463
7702
  };
7464
7703
  var coverage = global[gcv] || (global[gcv] = {});
7465
7704
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -7501,25 +7740,29 @@ var IpRestriction = function IpRestriction() {
7501
7740
  cov_1b8sztxw7r().s[8]++;
7502
7741
  return /*#__PURE__*/React__default["default"].createElement("div", {
7503
7742
  className: "h-screen"
7504
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.PageLoader, null));
7743
+ }, /*#__PURE__*/React__default["default"].createElement(PageLoader, null));
7505
7744
  } else {
7506
7745
  cov_1b8sztxw7r().b[0][1]++;
7507
7746
  }
7508
7747
  cov_1b8sztxw7r().s[9]++;
7509
- return /*#__PURE__*/React__default["default"].createElement("div", {
7510
- className: "neeto-ui-bg-white neeto-ui-border-gray-200 mx-auto mb-4 w-full space-y-4 rounded-sm border sm:max-w-sm md:max-w-md lg:max-w-3xl"
7511
- }, /*#__PURE__*/React__default["default"].createElement("div", {
7512
- className: "space-y-1 p-4"
7513
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Switch, {
7514
- checked: data.isIpRestrictionEnabled,
7515
- disabled: (cov_1b8sztxw7r().b[1][0]++, isFetching) || (cov_1b8sztxw7r().b[1][1]++, isUpdating),
7516
- label: t("neetoMolecules.ipRestriction.switchLabel"),
7517
- onChange: handleSwitchButtonChange
7518
- }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
7519
- style: "body3"
7520
- }, t("neetoMolecules.ipRestriction.description"))), (cov_1b8sztxw7r().b[2][0]++, data.isIpRestrictionEnabled) && (cov_1b8sztxw7r().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
7521
- className: "neeto-ui-bg-gray-100 w-full space-y-4 p-4"
7522
- }, /*#__PURE__*/React__default["default"].createElement(CurrentIp, null), /*#__PURE__*/React__default["default"].createElement(AllowedIpRanges, null))));
7748
+ return (
7749
+ /*#__PURE__*/
7750
+ // eslint-disable-next-line @bigbinary/neeto/use-neetoui-classes
7751
+ React__default["default"].createElement("div", {
7752
+ className: "neeto-ui-bg-white neeto-ui-border-gray-200 mx-auto mb-4 w-full space-y-4 rounded-sm border sm:max-w-sm md:max-w-md lg:max-w-3xl"
7753
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
7754
+ className: "space-y-1 p-4"
7755
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Switch, {
7756
+ checked: data.isIpRestrictionEnabled,
7757
+ disabled: (cov_1b8sztxw7r().b[1][0]++, isFetching) || (cov_1b8sztxw7r().b[1][1]++, isUpdating),
7758
+ label: t("neetoMolecules.ipRestriction.switchLabel"),
7759
+ onChange: handleSwitchButtonChange
7760
+ }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
7761
+ style: "body3"
7762
+ }, t("neetoMolecules.ipRestriction.description"))), (cov_1b8sztxw7r().b[2][0]++, data.isIpRestrictionEnabled) && (cov_1b8sztxw7r().b[2][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
7763
+ className: "neeto-ui-bg-gray-100 w-full space-y-4 p-4"
7764
+ }, /*#__PURE__*/React__default["default"].createElement(CurrentIp, null), /*#__PURE__*/React__default["default"].createElement(AllowedIpRanges, null))))
7765
+ );
7523
7766
  };
7524
7767
 
7525
7768
  module.exports = IpRestriction;