@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.
@@ -1,15 +1,254 @@
1
1
  import React, { useState } from 'react';
2
- import { Button as Button$1, Typography, Alert, PageLoader, Switch } from '@bigbinary/neetoui';
2
+ import { Typography, Button as Button$1, Alert, Switch } from '@bigbinary/neetoui';
3
3
  import { useTranslation } from 'react-i18next';
4
+ import { Neeto } from '@bigbinary/neeto-icons/logos';
4
5
  import { Check, Close, Delete, Edit, Plus } from '@bigbinary/neeto-icons';
5
6
  import { Form, Input, Button } from '@bigbinary/neetoui/formik';
6
7
  import { useQuery, useQueryClient, useMutation } from 'react-query';
7
8
  import axios from 'axios';
8
- import { t } from 'i18next';
9
+ import { t as t$1 } from 'i18next';
9
10
  import { isNotNil } from '@bigbinary/neeto-commons-frontend/pure';
10
11
  import { isNil } from 'ramda';
11
12
  import * as yup from 'yup';
12
13
 
14
+ function _extends() {
15
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
16
+ for (var i = 1; i < arguments.length; i++) {
17
+ var source = arguments[i];
18
+ for (var key in source) {
19
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
20
+ target[key] = source[key];
21
+ }
22
+ }
23
+ }
24
+ return target;
25
+ };
26
+ return _extends.apply(this, arguments);
27
+ }
28
+
29
+ function _objectWithoutPropertiesLoose(source, excluded) {
30
+ if (source == null) return {};
31
+ var target = {};
32
+ var sourceKeys = Object.keys(source);
33
+ var key, i;
34
+ for (i = 0; i < sourceKeys.length; i++) {
35
+ key = sourceKeys[i];
36
+ if (excluded.indexOf(key) >= 0) continue;
37
+ target[key] = source[key];
38
+ }
39
+ return target;
40
+ }
41
+
42
+ function _objectWithoutProperties(source, excluded) {
43
+ if (source == null) return {};
44
+ var target = _objectWithoutPropertiesLoose(source, excluded);
45
+ var key, i;
46
+ if (Object.getOwnPropertySymbols) {
47
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
48
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
49
+ key = sourceSymbolKeys[i];
50
+ if (excluded.indexOf(key) >= 0) continue;
51
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
52
+ target[key] = source[key];
53
+ }
54
+ }
55
+ return target;
56
+ }
57
+
58
+ 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}}
59
+
60
+ 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)}}";
61
+ n(css,{});
62
+
63
+ var _excluded = ["text"];
64
+ function cov_1rnptrlqih() {
65
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PageLoader/index.jsx";
66
+ var hash = "40cda882f932d7a0fcac6bc5ec150d93c0420b62";
67
+ var global = new Function("return this")();
68
+ var gcv = "__coverage__";
69
+ var coverageData = {
70
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/PageLoader/index.jsx",
71
+ statementMap: {
72
+ "0": {
73
+ start: {
74
+ line: 9,
75
+ column: 19
76
+ },
77
+ end: {
78
+ line: 29,
79
+ column: 1
80
+ }
81
+ },
82
+ "1": {
83
+ start: {
84
+ line: 10,
85
+ column: 2
86
+ },
87
+ end: {
88
+ line: 28,
89
+ column: 8
90
+ }
91
+ },
92
+ "2": {
93
+ start: {
94
+ line: 31,
95
+ column: 0
96
+ },
97
+ end: {
98
+ line: 36,
99
+ column: 2
100
+ }
101
+ }
102
+ },
103
+ fnMap: {
104
+ "0": {
105
+ name: "(anonymous_0)",
106
+ decl: {
107
+ start: {
108
+ line: 9,
109
+ column: 19
110
+ },
111
+ end: {
112
+ line: 9,
113
+ column: 20
114
+ }
115
+ },
116
+ loc: {
117
+ start: {
118
+ line: 10,
119
+ column: 2
120
+ },
121
+ end: {
122
+ line: 28,
123
+ column: 8
124
+ }
125
+ },
126
+ line: 10
127
+ }
128
+ },
129
+ branchMap: {
130
+ "0": {
131
+ loc: {
132
+ start: {
133
+ line: 9,
134
+ column: 22
135
+ },
136
+ end: {
137
+ line: 9,
138
+ column: 31
139
+ }
140
+ },
141
+ type: "default-arg",
142
+ locations: [{
143
+ start: {
144
+ line: 9,
145
+ column: 29
146
+ },
147
+ end: {
148
+ line: 9,
149
+ column: 31
150
+ }
151
+ }],
152
+ line: 9
153
+ },
154
+ "1": {
155
+ loc: {
156
+ start: {
157
+ line: 22,
158
+ column: 7
159
+ },
160
+ end: {
161
+ line: 26,
162
+ column: 7
163
+ }
164
+ },
165
+ type: "binary-expr",
166
+ locations: [{
167
+ start: {
168
+ line: 22,
169
+ column: 7
170
+ },
171
+ end: {
172
+ line: 22,
173
+ column: 11
174
+ }
175
+ }, {
176
+ start: {
177
+ line: 23,
178
+ column: 8
179
+ },
180
+ end: {
181
+ line: 25,
182
+ column: 21
183
+ }
184
+ }],
185
+ line: 22
186
+ }
187
+ },
188
+ s: {
189
+ "0": 0,
190
+ "1": 0,
191
+ "2": 0
192
+ },
193
+ f: {
194
+ "0": 0
195
+ },
196
+ b: {
197
+ "0": [0],
198
+ "1": [0, 0]
199
+ },
200
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
201
+ hash: "40cda882f932d7a0fcac6bc5ec150d93c0420b62"
202
+ };
203
+ var coverage = global[gcv] || (global[gcv] = {});
204
+ if (!coverage[path] || coverage[path].hash !== hash) {
205
+ coverage[path] = coverageData;
206
+ }
207
+ var actualCoverage = coverage[path];
208
+ {
209
+ // @ts-ignore
210
+ cov_1rnptrlqih = function () {
211
+ return actualCoverage;
212
+ };
213
+ }
214
+ return actualCoverage;
215
+ }
216
+ cov_1rnptrlqih();
217
+ cov_1rnptrlqih().s[0]++;
218
+ var PageLoader = function PageLoader(_ref) {
219
+ var _ref$text = _ref.text,
220
+ text = _ref$text === void 0 ? (cov_1rnptrlqih().b[0][0]++, "") : _ref$text,
221
+ otherProps = _objectWithoutProperties(_ref, _excluded);
222
+ cov_1rnptrlqih().f[0]++;
223
+ cov_1rnptrlqih().s[1]++;
224
+ return /*#__PURE__*/React.createElement("div", _extends({
225
+ className: "neeto-molecules-pageloader__wrapper"
226
+ }, otherProps), /*#__PURE__*/React.createElement("div", {
227
+ className: "neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center"
228
+ }, /*#__PURE__*/React.createElement("div", {
229
+ className: "neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center"
230
+ }, /*#__PURE__*/React.createElement(Neeto, {
231
+ className: "neeto-molecules-pageloader__logo",
232
+ size: 50
233
+ }), /*#__PURE__*/React.createElement("div", {
234
+ className: "neeto-molecules-pageloader__spinner"
235
+ }, /*#__PURE__*/React.createElement("div", {
236
+ className: "neeto-molecules-pageloader__rect1"
237
+ }), /*#__PURE__*/React.createElement("div", {
238
+ className: "neeto-molecules-pageloader__rect2"
239
+ }), /*#__PURE__*/React.createElement("div", {
240
+ className: "neeto-molecules-pageloader__rect3"
241
+ }), /*#__PURE__*/React.createElement("div", {
242
+ className: "neeto-molecules-pageloader__rect4"
243
+ }), /*#__PURE__*/React.createElement("div", {
244
+ className: "neeto-molecules-pageloader__rect5"
245
+ }))), (cov_1rnptrlqih().b[1][0]++, text) && (cov_1rnptrlqih().b[1][1]++, /*#__PURE__*/React.createElement(Typography, {
246
+ style: "h5",
247
+ weight: "semibold"
248
+ }, text))));
249
+ };
250
+ cov_1rnptrlqih().s[2]++;
251
+
13
252
  function _arrayWithHoles(arr) {
14
253
  if (Array.isArray(arr)) return arr;
15
254
  }
@@ -5179,8 +5418,8 @@ var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema
5179
5418
  cov_58ap1ki41().f[9]++;
5180
5419
  cov_58ap1ki41().s[29]++;
5181
5420
  return yup.object().shape({
5182
- ipStart: yup.string().validIp(t("neetoMolecules.ipRestriction.validations.invalidIp")).required(),
5183
- ipEnd: yup.string().validIp(t("neetoMolecules.ipRestriction.validations.invalidIp")).when("ipStart", function (ipStart, schema) {
5421
+ ipStart: yup.string().validIp(t$1("neetoMolecules.ipRestriction.validations.invalidIp")).required(t$1("neetoMolecules.ipRestriction.validations.ipStartRequired")),
5422
+ ipEnd: yup.string().validIp(t$1("neetoMolecules.ipRestriction.validations.invalidIp")).when("ipStart", function (ipStart, schema) {
5184
5423
  cov_58ap1ki41().f[10]++;
5185
5424
  cov_58ap1ki41().s[30]++;
5186
5425
  return schema.test({
@@ -5189,7 +5428,7 @@ var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema
5189
5428
  cov_58ap1ki41().s[31]++;
5190
5429
  return areIpAddressesInSameFormat(ipStart, ipEnd);
5191
5430
  },
5192
- message: t("neetoMolecules.ipRestriction.validations.eitherIpv4OrIpv6")
5431
+ message: t$1("neetoMolecules.ipRestriction.validations.eitherIpv4OrIpv6")
5193
5432
  });
5194
5433
  }).when("ipStart", function (ipStart, schema) {
5195
5434
  cov_58ap1ki41().f[12]++;
@@ -5200,9 +5439,9 @@ var getIpRestrictionValidationSchema = function getIpRestrictionValidationSchema
5200
5439
  cov_58ap1ki41().s[33]++;
5201
5440
  return isValidIPRange(ipStart, ipEnd);
5202
5441
  },
5203
- message: t("neetoMolecules.ipRestriction.validations.ipEndGreaterThanIpStart")
5442
+ message: t$1("neetoMolecules.ipRestriction.validations.ipEndGreaterThanIpStart")
5204
5443
  });
5205
- }).required()
5444
+ }).required(t$1("neetoMolecules.ipRestriction.validations.ipEndRequired"))
5206
5445
  });
5207
5446
  };
5208
5447
 
@@ -7153,7 +7392,7 @@ var useUpdateIpRestriction = function useUpdateIpRestriction() {
7153
7392
 
7154
7393
  function cov_1b8sztxw7r() {
7155
7394
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/IpRestriction/index.jsx";
7156
- var hash = "4543572cffac14c44347452e1aa4d7e914fc27a6";
7395
+ var hash = "2b34e2afa675e1db2a8142640a0752e0f131bd1f";
7157
7396
  var global = new Function("return this")();
7158
7397
  var gcv = "__coverage__";
7159
7398
  var coverageData = {
@@ -7161,101 +7400,101 @@ function cov_1b8sztxw7r() {
7161
7400
  statementMap: {
7162
7401
  "0": {
7163
7402
  start: {
7164
- line: 13,
7403
+ line: 15,
7165
7404
  column: 22
7166
7405
  },
7167
7406
  end: {
7168
- line: 55,
7407
+ line: 58,
7169
7408
  column: 1
7170
7409
  }
7171
7410
  },
7172
7411
  "1": {
7173
7412
  start: {
7174
- line: 14,
7413
+ line: 16,
7175
7414
  column: 42
7176
7415
  },
7177
7416
  end: {
7178
- line: 14,
7417
+ line: 16,
7179
7418
  column: 64
7180
7419
  }
7181
7420
  },
7182
7421
  "2": {
7183
7422
  start: {
7184
- line: 16,
7423
+ line: 18,
7185
7424
  column: 4
7186
7425
  },
7187
7426
  end: {
7188
- line: 16,
7427
+ line: 18,
7189
7428
  column: 28
7190
7429
  }
7191
7430
  },
7192
7431
  "3": {
7193
7432
  start: {
7194
- line: 17,
7433
+ line: 19,
7195
7434
  column: 16
7196
7435
  },
7197
7436
  end: {
7198
- line: 17,
7437
+ line: 19,
7199
7438
  column: 32
7200
7439
  }
7201
7440
  },
7202
7441
  "4": {
7203
7442
  start: {
7204
- line: 19,
7443
+ line: 21,
7205
7444
  column: 35
7206
7445
  },
7207
7446
  end: {
7208
- line: 24,
7447
+ line: 26,
7209
7448
  column: 3
7210
7449
  }
7211
7450
  },
7212
7451
  "5": {
7213
7452
  start: {
7214
- line: 20,
7453
+ line: 22,
7215
7454
  column: 20
7216
7455
  },
7217
7456
  end: {
7218
- line: 22,
7457
+ line: 24,
7219
7458
  column: 5
7220
7459
  }
7221
7460
  },
7222
7461
  "6": {
7223
7462
  start: {
7224
- line: 23,
7463
+ line: 25,
7225
7464
  column: 4
7226
7465
  },
7227
7466
  end: {
7228
- line: 23,
7467
+ line: 25,
7229
7468
  column: 33
7230
7469
  }
7231
7470
  },
7232
7471
  "7": {
7233
7472
  start: {
7234
- line: 26,
7473
+ line: 28,
7235
7474
  column: 2
7236
7475
  },
7237
7476
  end: {
7238
- line: 32,
7477
+ line: 34,
7239
7478
  column: 3
7240
7479
  }
7241
7480
  },
7242
7481
  "8": {
7243
7482
  start: {
7244
- line: 27,
7483
+ line: 29,
7245
7484
  column: 4
7246
7485
  },
7247
7486
  end: {
7248
- line: 31,
7487
+ line: 33,
7249
7488
  column: 6
7250
7489
  }
7251
7490
  },
7252
7491
  "9": {
7253
7492
  start: {
7254
- line: 34,
7493
+ line: 36,
7255
7494
  column: 2
7256
7495
  },
7257
7496
  end: {
7258
- line: 54,
7497
+ line: 57,
7259
7498
  column: 4
7260
7499
  }
7261
7500
  }
@@ -7265,71 +7504,71 @@ function cov_1b8sztxw7r() {
7265
7504
  name: "(anonymous_0)",
7266
7505
  decl: {
7267
7506
  start: {
7268
- line: 13,
7507
+ line: 15,
7269
7508
  column: 22
7270
7509
  },
7271
7510
  end: {
7272
- line: 13,
7511
+ line: 15,
7273
7512
  column: 23
7274
7513
  }
7275
7514
  },
7276
7515
  loc: {
7277
7516
  start: {
7278
- line: 13,
7517
+ line: 15,
7279
7518
  column: 28
7280
7519
  },
7281
7520
  end: {
7282
- line: 55,
7521
+ line: 58,
7283
7522
  column: 1
7284
7523
  }
7285
7524
  },
7286
- line: 13
7525
+ line: 15
7287
7526
  },
7288
7527
  "1": {
7289
7528
  name: "(anonymous_1)",
7290
7529
  decl: {
7291
7530
  start: {
7292
- line: 19,
7531
+ line: 21,
7293
7532
  column: 35
7294
7533
  },
7295
7534
  end: {
7296
- line: 19,
7535
+ line: 21,
7297
7536
  column: 36
7298
7537
  }
7299
7538
  },
7300
7539
  loc: {
7301
7540
  start: {
7302
- line: 19,
7541
+ line: 21,
7303
7542
  column: 40
7304
7543
  },
7305
7544
  end: {
7306
- line: 24,
7545
+ line: 26,
7307
7546
  column: 3
7308
7547
  }
7309
7548
  },
7310
- line: 19
7549
+ line: 21
7311
7550
  }
7312
7551
  },
7313
7552
  branchMap: {
7314
7553
  "0": {
7315
7554
  loc: {
7316
7555
  start: {
7317
- line: 26,
7556
+ line: 28,
7318
7557
  column: 2
7319
7558
  },
7320
7559
  end: {
7321
- line: 32,
7560
+ line: 34,
7322
7561
  column: 3
7323
7562
  }
7324
7563
  },
7325
7564
  type: "if",
7326
7565
  locations: [{
7327
7566
  start: {
7328
- line: 26,
7567
+ line: 28,
7329
7568
  column: 2
7330
7569
  },
7331
7570
  end: {
7332
- line: 32,
7571
+ line: 34,
7333
7572
  column: 3
7334
7573
  }
7335
7574
  }, {
@@ -7342,73 +7581,73 @@ function cov_1b8sztxw7r() {
7342
7581
  column: undefined
7343
7582
  }
7344
7583
  }],
7345
- line: 26
7584
+ line: 28
7346
7585
  },
7347
7586
  "1": {
7348
7587
  loc: {
7349
7588
  start: {
7350
- line: 39,
7589
+ line: 42,
7351
7590
  column: 20
7352
7591
  },
7353
7592
  end: {
7354
- line: 39,
7593
+ line: 42,
7355
7594
  column: 44
7356
7595
  }
7357
7596
  },
7358
7597
  type: "binary-expr",
7359
7598
  locations: [{
7360
7599
  start: {
7361
- line: 39,
7600
+ line: 42,
7362
7601
  column: 20
7363
7602
  },
7364
7603
  end: {
7365
- line: 39,
7604
+ line: 42,
7366
7605
  column: 30
7367
7606
  }
7368
7607
  }, {
7369
7608
  start: {
7370
- line: 39,
7609
+ line: 42,
7371
7610
  column: 34
7372
7611
  },
7373
7612
  end: {
7374
- line: 39,
7613
+ line: 42,
7375
7614
  column: 44
7376
7615
  }
7377
7616
  }],
7378
- line: 39
7617
+ line: 42
7379
7618
  },
7380
7619
  "2": {
7381
7620
  loc: {
7382
7621
  start: {
7383
- line: 47,
7622
+ line: 50,
7384
7623
  column: 7
7385
7624
  },
7386
7625
  end: {
7387
- line: 52,
7626
+ line: 55,
7388
7627
  column: 7
7389
7628
  }
7390
7629
  },
7391
7630
  type: "binary-expr",
7392
7631
  locations: [{
7393
7632
  start: {
7394
- line: 47,
7633
+ line: 50,
7395
7634
  column: 7
7396
7635
  },
7397
7636
  end: {
7398
- line: 47,
7637
+ line: 50,
7399
7638
  column: 34
7400
7639
  }
7401
7640
  }, {
7402
7641
  start: {
7403
- line: 48,
7642
+ line: 51,
7404
7643
  column: 8
7405
7644
  },
7406
7645
  end: {
7407
- line: 51,
7646
+ line: 54,
7408
7647
  column: 14
7409
7648
  }
7410
7649
  }],
7411
- line: 47
7650
+ line: 50
7412
7651
  }
7413
7652
  },
7414
7653
  s: {
@@ -7433,7 +7672,7 @@ function cov_1b8sztxw7r() {
7433
7672
  "2": [0, 0]
7434
7673
  },
7435
7674
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
7436
- hash: "4543572cffac14c44347452e1aa4d7e914fc27a6"
7675
+ hash: "2b34e2afa675e1db2a8142640a0752e0f131bd1f"
7437
7676
  };
7438
7677
  var coverage = global[gcv] || (global[gcv] = {});
7439
7678
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -7480,20 +7719,24 @@ var IpRestriction = function IpRestriction() {
7480
7719
  cov_1b8sztxw7r().b[0][1]++;
7481
7720
  }
7482
7721
  cov_1b8sztxw7r().s[9]++;
7483
- return /*#__PURE__*/React.createElement("div", {
7484
- 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"
7485
- }, /*#__PURE__*/React.createElement("div", {
7486
- className: "space-y-1 p-4"
7487
- }, /*#__PURE__*/React.createElement(Switch, {
7488
- checked: data.isIpRestrictionEnabled,
7489
- disabled: (cov_1b8sztxw7r().b[1][0]++, isFetching) || (cov_1b8sztxw7r().b[1][1]++, isUpdating),
7490
- label: t("neetoMolecules.ipRestriction.switchLabel"),
7491
- onChange: handleSwitchButtonChange
7492
- }), /*#__PURE__*/React.createElement(Typography, {
7493
- style: "body3"
7494
- }, t("neetoMolecules.ipRestriction.description"))), (cov_1b8sztxw7r().b[2][0]++, data.isIpRestrictionEnabled) && (cov_1b8sztxw7r().b[2][1]++, /*#__PURE__*/React.createElement("div", {
7495
- className: "neeto-ui-bg-gray-100 w-full space-y-4 p-4"
7496
- }, /*#__PURE__*/React.createElement(CurrentIp, null), /*#__PURE__*/React.createElement(AllowedIpRanges, null))));
7722
+ return (
7723
+ /*#__PURE__*/
7724
+ // eslint-disable-next-line @bigbinary/neeto/use-neetoui-classes
7725
+ React.createElement("div", {
7726
+ 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"
7727
+ }, /*#__PURE__*/React.createElement("div", {
7728
+ className: "space-y-1 p-4"
7729
+ }, /*#__PURE__*/React.createElement(Switch, {
7730
+ checked: data.isIpRestrictionEnabled,
7731
+ disabled: (cov_1b8sztxw7r().b[1][0]++, isFetching) || (cov_1b8sztxw7r().b[1][1]++, isUpdating),
7732
+ label: t("neetoMolecules.ipRestriction.switchLabel"),
7733
+ onChange: handleSwitchButtonChange
7734
+ }), /*#__PURE__*/React.createElement(Typography, {
7735
+ style: "body3"
7736
+ }, t("neetoMolecules.ipRestriction.description"))), (cov_1b8sztxw7r().b[2][0]++, data.isIpRestrictionEnabled) && (cov_1b8sztxw7r().b[2][1]++, /*#__PURE__*/React.createElement("div", {
7737
+ className: "neeto-ui-bg-gray-100 w-full space-y-4 p-4"
7738
+ }, /*#__PURE__*/React.createElement(CurrentIp, null), /*#__PURE__*/React.createElement(AllowedIpRanges, null))))
7739
+ );
7497
7740
  };
7498
7741
 
7499
7742
  export { IpRestriction as default };