@bigbinary/neeto-webhooks-frontend 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -7,7 +7,7 @@ var reactRouterDom = require('react-router-dom');
7
7
  var classNames = require('classnames');
8
8
  var utils = require('@bigbinary/neeto-commons-frontend/utils');
9
9
  var neetoIcons = require('@bigbinary/neeto-icons');
10
- var Header = require('@bigbinary/neeto-molecules/Header');
10
+ var Header$2 = require('@bigbinary/neeto-molecules/Header');
11
11
  var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
12
12
  var neetoui = require('@bigbinary/neetoui');
13
13
  var ramda = require('ramda');
@@ -40,7 +40,7 @@ function _interopNamespace(e) {
40
40
 
41
41
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
42
42
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
43
- var Header__default = /*#__PURE__*/_interopDefaultLegacy(Header);
43
+ var Header__default = /*#__PURE__*/_interopDefaultLegacy(Header$2);
44
44
  var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
45
45
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
46
46
  var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
@@ -3123,21 +3123,6 @@ var Deliveries = function Deliveries(_ref) {
3123
3123
  };
3124
3124
  var Deliveries$1 = withReactQuery(Deliveries);
3125
3125
 
3126
- function _extends() {
3127
- _extends = Object.assign ? Object.assign.bind() : function (target) {
3128
- for (var i = 1; i < arguments.length; i++) {
3129
- var source = arguments[i];
3130
- for (var key in source) {
3131
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3132
- target[key] = source[key];
3133
- }
3134
- }
3135
- }
3136
- return target;
3137
- };
3138
- return _extends.apply(this, arguments);
3139
- }
3140
-
3141
3126
  function cov_cwo9u0u8() {
3142
3127
  var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/apis/webhooks.js";
3143
3128
  var hash = "4c6df2421c6afd3d737f2c4fbcb067181b817141";
@@ -7642,6 +7627,225 @@ var AddWebhookPane = function AddWebhookPane(_ref) {
7642
7627
  }));
7643
7628
  };
7644
7629
 
7630
+ function _extends() {
7631
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
7632
+ for (var i = 1; i < arguments.length; i++) {
7633
+ var source = arguments[i];
7634
+ for (var key in source) {
7635
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7636
+ target[key] = source[key];
7637
+ }
7638
+ }
7639
+ }
7640
+ return target;
7641
+ };
7642
+ return _extends.apply(this, arguments);
7643
+ }
7644
+
7645
+ function cov_x9ae6ht1m() {
7646
+ var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/Header.jsx";
7647
+ var hash = "ec18f7f02d5d62f288a6cc08ec1fc03d89aae51c";
7648
+ var global = new Function("return this")();
7649
+ var gcv = "__coverage__";
7650
+ var coverageData = {
7651
+ path: "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/Header.jsx",
7652
+ statementMap: {
7653
+ "0": {
7654
+ start: {
7655
+ line: 10,
7656
+ column: 15
7657
+ },
7658
+ end: {
7659
+ line: 52,
7660
+ column: 1
7661
+ }
7662
+ },
7663
+ "1": {
7664
+ start: {
7665
+ line: 17,
7666
+ column: 16
7667
+ },
7668
+ end: {
7669
+ line: 17,
7670
+ column: 32
7671
+ }
7672
+ },
7673
+ "2": {
7674
+ start: {
7675
+ line: 19,
7676
+ column: 2
7677
+ },
7678
+ end: {
7679
+ line: 51,
7680
+ column: 4
7681
+ }
7682
+ },
7683
+ "3": {
7684
+ start: {
7685
+ line: 38,
7686
+ column: 27
7687
+ },
7688
+ end: {
7689
+ line: 38,
7690
+ column: 56
7691
+ }
7692
+ }
7693
+ },
7694
+ fnMap: {
7695
+ "0": {
7696
+ name: "(anonymous_0)",
7697
+ decl: {
7698
+ start: {
7699
+ line: 10,
7700
+ column: 15
7701
+ },
7702
+ end: {
7703
+ line: 10,
7704
+ column: 16
7705
+ }
7706
+ },
7707
+ loc: {
7708
+ start: {
7709
+ line: 16,
7710
+ column: 6
7711
+ },
7712
+ end: {
7713
+ line: 52,
7714
+ column: 1
7715
+ }
7716
+ },
7717
+ line: 16
7718
+ },
7719
+ "1": {
7720
+ name: "(anonymous_1)",
7721
+ decl: {
7722
+ start: {
7723
+ line: 38,
7724
+ column: 21
7725
+ },
7726
+ end: {
7727
+ line: 38,
7728
+ column: 22
7729
+ }
7730
+ },
7731
+ loc: {
7732
+ start: {
7733
+ line: 38,
7734
+ column: 27
7735
+ },
7736
+ end: {
7737
+ line: 38,
7738
+ column: 56
7739
+ }
7740
+ },
7741
+ line: 38
7742
+ }
7743
+ },
7744
+ branchMap: {
7745
+ "0": {
7746
+ loc: {
7747
+ start: {
7748
+ line: 23,
7749
+ column: 13
7750
+ },
7751
+ end: {
7752
+ line: 33,
7753
+ column: 9
7754
+ }
7755
+ },
7756
+ type: "binary-expr",
7757
+ locations: [{
7758
+ start: {
7759
+ line: 23,
7760
+ column: 13
7761
+ },
7762
+ end: {
7763
+ line: 23,
7764
+ column: 34
7765
+ }
7766
+ }, {
7767
+ start: {
7768
+ line: 23,
7769
+ column: 38
7770
+ },
7771
+ end: {
7772
+ line: 33,
7773
+ column: 9
7774
+ }
7775
+ }],
7776
+ line: 23
7777
+ }
7778
+ },
7779
+ s: {
7780
+ "0": 0,
7781
+ "1": 0,
7782
+ "2": 0,
7783
+ "3": 0
7784
+ },
7785
+ f: {
7786
+ "0": 0,
7787
+ "1": 0
7788
+ },
7789
+ b: {
7790
+ "0": [0, 0]
7791
+ },
7792
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
7793
+ hash: "ec18f7f02d5d62f288a6cc08ec1fc03d89aae51c"
7794
+ };
7795
+ var coverage = global[gcv] || (global[gcv] = {});
7796
+ if (!coverage[path] || coverage[path].hash !== hash) {
7797
+ coverage[path] = coverageData;
7798
+ }
7799
+ var actualCoverage = coverage[path];
7800
+ {
7801
+ // @ts-ignore
7802
+ cov_x9ae6ht1m = function () {
7803
+ return actualCoverage;
7804
+ };
7805
+ }
7806
+ return actualCoverage;
7807
+ }
7808
+ cov_x9ae6ht1m();
7809
+ cov_x9ae6ht1m().s[0]++;
7810
+ var Header = function Header(_ref) {
7811
+ var shouldShowBreadcrumbs = _ref.shouldShowBreadcrumbs,
7812
+ deliveriesPath = _ref.deliveriesPath,
7813
+ id = _ref.id,
7814
+ formId = _ref.formId,
7815
+ setIsAddWebhookPaneOpen = _ref.setIsAddWebhookPaneOpen;
7816
+ cov_x9ae6ht1m().f[0]++;
7817
+ var _ref2 = (cov_x9ae6ht1m().s[1]++, useTranslation()),
7818
+ t = _ref2.t;
7819
+ cov_x9ae6ht1m().s[2]++;
7820
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Header__default["default"], _extends({
7821
+ title: t("webhook.title")
7822
+ }, (cov_x9ae6ht1m().b[0][0]++, shouldShowBreadcrumbs) && (cov_x9ae6ht1m().b[0][1]++, {
7823
+ breadcrumbs: [{
7824
+ link: utils.buildUrl(getConfigurePath(deliveriesPath), {
7825
+ id: id,
7826
+ formId: formId
7827
+ }),
7828
+ text: t("entity.configure")
7829
+ }]
7830
+ }), {
7831
+ actionBlock: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
7832
+ "data-cy": "add-new-webhook-button",
7833
+ label: t("webhook.add"),
7834
+ onClick: function onClick() {
7835
+ cov_x9ae6ht1m().f[1]++;
7836
+ cov_x9ae6ht1m().s[3]++;
7837
+ return setIsAddWebhookPaneOpen(true);
7838
+ }
7839
+ })
7840
+ })), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
7841
+ className: "neeto-ui-text-gray-700",
7842
+ "data-cy": "webhook-description-header",
7843
+ style: "h5",
7844
+ weight: "normal"
7845
+ }, t("webhook.description")));
7846
+ };
7847
+ var Header$1 = /*#__PURE__*/React__default["default"].memo(Header);
7848
+
7645
7849
  function cov_2bmhbwr5yc() {
7646
7850
  var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/WebhookItem.jsx";
7647
7851
  var hash = "e4d2b0cc05c38418eb7544429ebb4dbe6a6c7cfe";
@@ -7927,10 +8131,11 @@ var WebhookItem = function WebhookItem(_ref2) {
7927
8131
  }
7928
8132
  }, t("operation.delete"))))));
7929
8133
  };
8134
+ var WebhookItem$1 = /*#__PURE__*/React__default["default"].memo(WebhookItem);
7930
8135
 
7931
8136
  function cov_une6dfv6o() {
7932
8137
  var path = "/home/runner/work/neeto-webhooks-frontend/neeto-webhooks-frontend/src/components/Webhooks/index.jsx";
7933
- var hash = "5b41c778caf20030622d832ae2adaa3f5f3cb845";
8138
+ var hash = "7d2a07f57600a4e9e086eaaf2e051ad55f6d7566";
7934
8139
  var global = new Function("return this")();
7935
8140
  var gcv = "__coverage__";
7936
8141
  var coverageData = {
@@ -7938,271 +8143,261 @@ function cov_une6dfv6o() {
7938
8143
  statementMap: {
7939
8144
  "0": {
7940
8145
  start: {
7941
- line: 21,
8146
+ line: 19,
7942
8147
  column: 17
7943
8148
  },
7944
8149
  end: {
7945
- line: 127,
8150
+ line: 102,
7946
8151
  column: 1
7947
8152
  }
7948
8153
  },
7949
8154
  "1": {
7950
8155
  start: {
7951
- line: 22,
8156
+ line: 20,
7952
8157
  column: 50
7953
8158
  },
7954
8159
  end: {
7955
- line: 22,
8160
+ line: 20,
7956
8161
  column: 60
7957
8162
  }
7958
8163
  },
7959
8164
  "2": {
7960
8165
  start: {
7961
- line: 23,
8166
+ line: 21,
7962
8167
  column: 52
7963
8168
  },
7964
8169
  end: {
7965
- line: 23,
8170
+ line: 21,
7966
8171
  column: 62
7967
8172
  }
7968
8173
  },
7969
8174
  "3": {
7970
8175
  start: {
7971
- line: 24,
8176
+ line: 22,
7972
8177
  column: 58
7973
8178
  },
7974
8179
  end: {
7975
- line: 24,
8180
+ line: 22,
7976
8181
  column: 73
7977
8182
  }
7978
8183
  },
7979
8184
  "4": {
7980
8185
  start: {
7981
- line: 25,
8186
+ line: 23,
7982
8187
  column: 52
7983
8188
  },
7984
8189
  end: {
7985
- line: 25,
8190
+ line: 23,
7986
8191
  column: 67
7987
8192
  }
7988
8193
  },
7989
8194
  "5": {
7990
8195
  start: {
7991
- line: 27,
8196
+ line: 25,
7992
8197
  column: 16
7993
8198
  },
7994
8199
  end: {
7995
- line: 27,
8200
+ line: 25,
7996
8201
  column: 32
7997
8202
  }
7998
8203
  },
7999
8204
  "6": {
8000
8205
  start: {
8001
- line: 28,
8206
+ line: 26,
8002
8207
  column: 25
8003
8208
  },
8004
8209
  end: {
8005
- line: 28,
8210
+ line: 26,
8006
8211
  column: 36
8007
8212
  }
8008
8213
  },
8009
8214
  "7": {
8010
8215
  start: {
8011
- line: 29,
8216
+ line: 27,
8012
8217
  column: 19
8013
8218
  },
8014
8219
  end: {
8015
- line: 29,
8220
+ line: 27,
8016
8221
  column: 31
8017
8222
  }
8018
8223
  },
8019
8224
  "8": {
8020
8225
  start: {
8021
- line: 31,
8226
+ line: 29,
8022
8227
  column: 4
8023
8228
  },
8024
8229
  end: {
8025
- line: 31,
8230
+ line: 29,
8026
8231
  column: 30
8027
8232
  }
8028
8233
  },
8029
8234
  "9": {
8030
8235
  start: {
8031
- line: 33,
8236
+ line: 31,
8032
8237
  column: 60
8033
8238
  },
8034
8239
  end: {
8035
- line: 35,
8240
+ line: 33,
8036
8241
  column: 4
8037
8242
  }
8038
8243
  },
8039
8244
  "10": {
8040
8245
  start: {
8041
- line: 34,
8246
+ line: 32,
8042
8247
  column: 21
8043
8248
  },
8044
8249
  end: {
8045
- line: 34,
8250
+ line: 32,
8046
8251
  column: 48
8047
8252
  }
8048
8253
  },
8049
8254
  "11": {
8050
8255
  start: {
8051
- line: 37,
8256
+ line: 35,
8052
8257
  column: 26
8053
8258
  },
8054
8259
  end: {
8055
- line: 40,
8260
+ line: 38,
8056
8261
  column: 3
8057
8262
  }
8058
8263
  },
8059
8264
  "12": {
8060
8265
  start: {
8061
- line: 38,
8266
+ line: 36,
8062
8267
  column: 4
8063
8268
  },
8064
8269
  end: {
8065
- line: 38,
8270
+ line: 36,
8066
8271
  column: 30
8067
8272
  }
8068
8273
  },
8069
8274
  "13": {
8070
8275
  start: {
8071
- line: 39,
8276
+ line: 37,
8072
8277
  column: 4
8073
8278
  },
8074
8279
  end: {
8075
- line: 39,
8280
+ line: 37,
8076
8281
  column: 35
8077
8282
  }
8078
8283
  },
8079
8284
  "14": {
8080
8285
  start: {
8081
- line: 42,
8286
+ line: 40,
8082
8287
  column: 21
8083
8288
  },
8084
8289
  end: {
8085
- line: 45,
8086
- column: 3
8290
+ line: 43,
8291
+ column: 8
8087
8292
  }
8088
8293
  },
8089
8294
  "15": {
8090
8295
  start: {
8091
- line: 43,
8296
+ line: 41,
8092
8297
  column: 4
8093
8298
  },
8094
8299
  end: {
8095
- line: 43,
8300
+ line: 41,
8096
8301
  column: 28
8097
8302
  }
8098
8303
  },
8099
8304
  "16": {
8100
8305
  start: {
8101
- line: 44,
8306
+ line: 42,
8102
8307
  column: 4
8103
8308
  },
8104
8309
  end: {
8105
- line: 44,
8310
+ line: 42,
8106
8311
  column: 34
8107
8312
  }
8108
8313
  },
8109
8314
  "17": {
8110
8315
  start: {
8111
- line: 47,
8316
+ line: 45,
8112
8317
  column: 23
8113
8318
  },
8114
8319
  end: {
8115
- line: 50,
8116
- column: 3
8320
+ line: 48,
8321
+ column: 8
8117
8322
  }
8118
8323
  },
8119
8324
  "18": {
8120
8325
  start: {
8121
- line: 48,
8326
+ line: 46,
8122
8327
  column: 4
8123
8328
  },
8124
8329
  end: {
8125
- line: 48,
8330
+ line: 46,
8126
8331
  column: 29
8127
8332
  }
8128
8333
  },
8129
8334
  "19": {
8130
8335
  start: {
8131
- line: 49,
8336
+ line: 47,
8132
8337
  column: 4
8133
8338
  },
8134
8339
  end: {
8135
- line: 49,
8340
+ line: 47,
8136
8341
  column: 31
8137
8342
  }
8138
8343
  },
8139
8344
  "20": {
8140
8345
  start: {
8141
- line: 52,
8346
+ line: 50,
8142
8347
  column: 2
8143
8348
  },
8144
8349
  end: {
8145
- line: 54,
8350
+ line: 52,
8146
8351
  column: 3
8147
8352
  }
8148
8353
  },
8149
8354
  "21": {
8150
8355
  start: {
8151
- line: 53,
8356
+ line: 51,
8152
8357
  column: 4
8153
8358
  },
8154
8359
  end: {
8155
- line: 53,
8360
+ line: 51,
8156
8361
  column: 26
8157
8362
  }
8158
8363
  },
8159
8364
  "22": {
8160
8365
  start: {
8161
- line: 56,
8366
+ line: 54,
8162
8367
  column: 2
8163
8368
  },
8164
8369
  end: {
8165
- line: 126,
8370
+ line: 101,
8166
8371
  column: 4
8167
8372
  }
8168
8373
  },
8169
8374
  "23": {
8170
8375
  start: {
8171
- line: 76,
8172
- column: 29
8173
- },
8174
- end: {
8175
- line: 76,
8176
- column: 58
8177
- }
8178
- },
8179
- "24": {
8180
- start: {
8181
- line: 91,
8376
+ line: 66,
8182
8377
  column: 10
8183
8378
  },
8184
8379
  end: {
8185
- line: 97,
8380
+ line: 72,
8186
8381
  column: 12
8187
8382
  }
8188
8383
  },
8189
- "25": {
8384
+ "24": {
8190
8385
  start: {
8191
- line: 122,
8386
+ line: 97,
8192
8387
  column: 23
8193
8388
  },
8194
8389
  end: {
8195
- line: 122,
8390
+ line: 97,
8196
8391
  column: 50
8197
8392
  }
8198
8393
  },
8199
- "26": {
8394
+ "25": {
8200
8395
  start: {
8201
- line: 123,
8396
+ line: 98,
8202
8397
  column: 24
8203
8398
  },
8204
8399
  end: {
8205
- line: 123,
8400
+ line: 98,
8206
8401
  column: 57
8207
8402
  }
8208
8403
  }
@@ -8212,320 +8407,296 @@ function cov_une6dfv6o() {
8212
8407
  name: "(anonymous_0)",
8213
8408
  decl: {
8214
8409
  start: {
8215
- line: 21,
8410
+ line: 19,
8216
8411
  column: 17
8217
8412
  },
8218
8413
  end: {
8219
- line: 21,
8414
+ line: 19,
8220
8415
  column: 18
8221
8416
  }
8222
8417
  },
8223
8418
  loc: {
8224
8419
  start: {
8225
- line: 21,
8420
+ line: 19,
8226
8421
  column: 76
8227
8422
  },
8228
8423
  end: {
8229
- line: 127,
8424
+ line: 102,
8230
8425
  column: 1
8231
8426
  }
8232
8427
  },
8233
- line: 21
8428
+ line: 19
8234
8429
  },
8235
8430
  "1": {
8236
8431
  name: "(anonymous_1)",
8237
8432
  decl: {
8238
8433
  start: {
8239
- line: 34,
8434
+ line: 32,
8240
8435
  column: 15
8241
8436
  },
8242
8437
  end: {
8243
- line: 34,
8438
+ line: 32,
8244
8439
  column: 16
8245
8440
  }
8246
8441
  },
8247
8442
  loc: {
8248
8443
  start: {
8249
- line: 34,
8444
+ line: 32,
8250
8445
  column: 21
8251
8446
  },
8252
8447
  end: {
8253
- line: 34,
8448
+ line: 32,
8254
8449
  column: 48
8255
8450
  }
8256
8451
  },
8257
- line: 34
8452
+ line: 32
8258
8453
  },
8259
8454
  "2": {
8260
8455
  name: "(anonymous_2)",
8261
8456
  decl: {
8262
8457
  start: {
8263
- line: 37,
8458
+ line: 35,
8264
8459
  column: 26
8265
8460
  },
8266
8461
  end: {
8267
- line: 37,
8462
+ line: 35,
8268
8463
  column: 27
8269
8464
  }
8270
8465
  },
8271
8466
  loc: {
8272
8467
  start: {
8273
- line: 37,
8468
+ line: 35,
8274
8469
  column: 32
8275
8470
  },
8276
8471
  end: {
8277
- line: 40,
8472
+ line: 38,
8278
8473
  column: 3
8279
8474
  }
8280
8475
  },
8281
- line: 37
8476
+ line: 35
8282
8477
  },
8283
8478
  "3": {
8284
8479
  name: "(anonymous_3)",
8285
8480
  decl: {
8286
8481
  start: {
8287
- line: 42,
8288
- column: 21
8482
+ line: 40,
8483
+ column: 33
8289
8484
  },
8290
8485
  end: {
8291
- line: 42,
8292
- column: 22
8486
+ line: 40,
8487
+ column: 34
8293
8488
  }
8294
8489
  },
8295
8490
  loc: {
8296
8491
  start: {
8297
- line: 42,
8298
- column: 27
8492
+ line: 40,
8493
+ column: 39
8299
8494
  },
8300
8495
  end: {
8301
- line: 45,
8496
+ line: 43,
8302
8497
  column: 3
8303
8498
  }
8304
8499
  },
8305
- line: 42
8500
+ line: 40
8306
8501
  },
8307
8502
  "4": {
8308
8503
  name: "(anonymous_4)",
8309
8504
  decl: {
8310
8505
  start: {
8311
- line: 47,
8312
- column: 23
8506
+ line: 45,
8507
+ column: 35
8313
8508
  },
8314
8509
  end: {
8315
- line: 47,
8316
- column: 24
8510
+ line: 45,
8511
+ column: 36
8317
8512
  }
8318
8513
  },
8319
8514
  loc: {
8320
8515
  start: {
8321
- line: 47,
8322
- column: 29
8516
+ line: 45,
8517
+ column: 41
8323
8518
  },
8324
8519
  end: {
8325
- line: 50,
8520
+ line: 48,
8326
8521
  column: 3
8327
8522
  }
8328
8523
  },
8329
- line: 47
8524
+ line: 45
8330
8525
  },
8331
8526
  "5": {
8332
8527
  name: "(anonymous_5)",
8333
8528
  decl: {
8334
8529
  start: {
8335
- line: 76,
8336
- column: 23
8337
- },
8338
- end: {
8339
- line: 76,
8340
- column: 24
8341
- }
8342
- },
8343
- loc: {
8344
- start: {
8345
- line: 76,
8346
- column: 29
8347
- },
8348
- end: {
8349
- line: 76,
8350
- column: 58
8351
- }
8352
- },
8353
- line: 76
8354
- },
8355
- "6": {
8356
- name: "(anonymous_6)",
8357
- decl: {
8358
- start: {
8359
- line: 90,
8530
+ line: 65,
8360
8531
  column: 22
8361
8532
  },
8362
8533
  end: {
8363
- line: 90,
8534
+ line: 65,
8364
8535
  column: 23
8365
8536
  }
8366
8537
  },
8367
8538
  loc: {
8368
8539
  start: {
8369
- line: 91,
8540
+ line: 66,
8370
8541
  column: 10
8371
8542
  },
8372
8543
  end: {
8373
- line: 97,
8544
+ line: 72,
8374
8545
  column: 12
8375
8546
  }
8376
8547
  },
8377
- line: 91
8548
+ line: 66
8378
8549
  },
8379
- "7": {
8380
- name: "(anonymous_7)",
8550
+ "6": {
8551
+ name: "(anonymous_6)",
8381
8552
  decl: {
8382
8553
  start: {
8383
- line: 122,
8554
+ line: 97,
8384
8555
  column: 17
8385
8556
  },
8386
8557
  end: {
8387
- line: 122,
8558
+ line: 97,
8388
8559
  column: 18
8389
8560
  }
8390
8561
  },
8391
8562
  loc: {
8392
8563
  start: {
8393
- line: 122,
8564
+ line: 97,
8394
8565
  column: 23
8395
8566
  },
8396
8567
  end: {
8397
- line: 122,
8568
+ line: 97,
8398
8569
  column: 50
8399
8570
  }
8400
8571
  },
8401
- line: 122
8572
+ line: 97
8402
8573
  },
8403
- "8": {
8404
- name: "(anonymous_8)",
8574
+ "7": {
8575
+ name: "(anonymous_7)",
8405
8576
  decl: {
8406
8577
  start: {
8407
- line: 123,
8578
+ line: 98,
8408
8579
  column: 18
8409
8580
  },
8410
8581
  end: {
8411
- line: 123,
8582
+ line: 98,
8412
8583
  column: 19
8413
8584
  }
8414
8585
  },
8415
8586
  loc: {
8416
8587
  start: {
8417
- line: 123,
8588
+ line: 98,
8418
8589
  column: 24
8419
8590
  },
8420
8591
  end: {
8421
- line: 123,
8592
+ line: 98,
8422
8593
  column: 57
8423
8594
  }
8424
8595
  },
8425
- line: 123
8596
+ line: 98
8426
8597
  }
8427
8598
  },
8428
8599
  branchMap: {
8429
8600
  "0": {
8430
8601
  loc: {
8431
8602
  start: {
8432
- line: 29,
8603
+ line: 27,
8433
8604
  column: 19
8434
8605
  },
8435
8606
  end: {
8436
- line: 29,
8607
+ line: 27,
8437
8608
  column: 31
8438
8609
  }
8439
8610
  },
8440
8611
  type: "binary-expr",
8441
8612
  locations: [{
8442
8613
  start: {
8443
- line: 29,
8614
+ line: 27,
8444
8615
  column: 19
8445
8616
  },
8446
8617
  end: {
8447
- line: 29,
8618
+ line: 27,
8448
8619
  column: 21
8449
8620
  }
8450
8621
  }, {
8451
8622
  start: {
8452
- line: 29,
8623
+ line: 27,
8453
8624
  column: 25
8454
8625
  },
8455
8626
  end: {
8456
- line: 29,
8627
+ line: 27,
8457
8628
  column: 31
8458
8629
  }
8459
8630
  }],
8460
- line: 29
8631
+ line: 27
8461
8632
  },
8462
8633
  "1": {
8463
8634
  loc: {
8464
8635
  start: {
8465
- line: 30,
8636
+ line: 28,
8466
8637
  column: 27
8467
8638
  },
8468
8639
  end: {
8469
- line: 30,
8640
+ line: 28,
8470
8641
  column: 49
8471
8642
  }
8472
8643
  },
8473
8644
  type: "default-arg",
8474
8645
  locations: [{
8475
8646
  start: {
8476
- line: 30,
8647
+ line: 28,
8477
8648
  column: 47
8478
8649
  },
8479
8650
  end: {
8480
- line: 30,
8651
+ line: 28,
8481
8652
  column: 49
8482
8653
  }
8483
8654
  }],
8484
- line: 30
8655
+ line: 28
8485
8656
  },
8486
8657
  "2": {
8487
8658
  loc: {
8488
8659
  start: {
8489
- line: 30,
8660
+ line: 28,
8490
8661
  column: 29
8491
8662
  },
8492
8663
  end: {
8493
- line: 30,
8664
+ line: 28,
8494
8665
  column: 42
8495
8666
  }
8496
8667
  },
8497
8668
  type: "default-arg",
8498
8669
  locations: [{
8499
8670
  start: {
8500
- line: 30,
8671
+ line: 28,
8501
8672
  column: 40
8502
8673
  },
8503
8674
  end: {
8504
- line: 30,
8675
+ line: 28,
8505
8676
  column: 42
8506
8677
  }
8507
8678
  }],
8508
- line: 30
8679
+ line: 28
8509
8680
  },
8510
8681
  "3": {
8511
8682
  loc: {
8512
8683
  start: {
8513
- line: 52,
8684
+ line: 50,
8514
8685
  column: 2
8515
8686
  },
8516
8687
  end: {
8517
- line: 54,
8688
+ line: 52,
8518
8689
  column: 3
8519
8690
  }
8520
8691
  },
8521
8692
  type: "if",
8522
8693
  locations: [{
8523
8694
  start: {
8524
- line: 52,
8695
+ line: 50,
8525
8696
  column: 2
8526
8697
  },
8527
8698
  end: {
8528
- line: 54,
8699
+ line: 52,
8529
8700
  column: 3
8530
8701
  }
8531
8702
  }, {
@@ -8538,73 +8709,40 @@ function cov_une6dfv6o() {
8538
8709
  column: undefined
8539
8710
  }
8540
8711
  }],
8541
- line: 52
8712
+ line: 50
8542
8713
  },
8543
8714
  "4": {
8544
8715
  loc: {
8545
8716
  start: {
8546
- line: 61,
8547
- column: 15
8548
- },
8549
- end: {
8550
- line: 71,
8551
- column: 11
8552
- }
8553
- },
8554
- type: "binary-expr",
8555
- locations: [{
8556
- start: {
8557
- line: 61,
8558
- column: 15
8559
- },
8560
- end: {
8561
- line: 61,
8562
- column: 36
8563
- }
8564
- }, {
8565
- start: {
8566
- line: 61,
8567
- column: 40
8568
- },
8569
- end: {
8570
- line: 71,
8571
- column: 11
8572
- }
8573
- }],
8574
- line: 61
8575
- },
8576
- "5": {
8577
- loc: {
8578
- start: {
8579
- line: 99,
8717
+ line: 74,
8580
8718
  column: 9
8581
8719
  },
8582
8720
  end: {
8583
- line: 103,
8721
+ line: 78,
8584
8722
  column: 9
8585
8723
  }
8586
8724
  },
8587
8725
  type: "binary-expr",
8588
8726
  locations: [{
8589
8727
  start: {
8590
- line: 99,
8728
+ line: 74,
8591
8729
  column: 9
8592
8730
  },
8593
8731
  end: {
8594
- line: 99,
8732
+ line: 74,
8595
8733
  column: 26
8596
8734
  }
8597
8735
  }, {
8598
8736
  start: {
8599
- line: 100,
8737
+ line: 75,
8600
8738
  column: 10
8601
8739
  },
8602
8740
  end: {
8603
- line: 102,
8741
+ line: 77,
8604
8742
  column: 16
8605
8743
  }
8606
8744
  }],
8607
- line: 99
8745
+ line: 74
8608
8746
  }
8609
8747
  },
8610
8748
  s: {
@@ -8633,8 +8771,7 @@ function cov_une6dfv6o() {
8633
8771
  "22": 0,
8634
8772
  "23": 0,
8635
8773
  "24": 0,
8636
- "25": 0,
8637
- "26": 0
8774
+ "25": 0
8638
8775
  },
8639
8776
  f: {
8640
8777
  "0": 0,
@@ -8644,19 +8781,17 @@ function cov_une6dfv6o() {
8644
8781
  "4": 0,
8645
8782
  "5": 0,
8646
8783
  "6": 0,
8647
- "7": 0,
8648
- "8": 0
8784
+ "7": 0
8649
8785
  },
8650
8786
  b: {
8651
8787
  "0": [0, 0],
8652
8788
  "1": [0],
8653
8789
  "2": [0],
8654
8790
  "3": [0, 0],
8655
- "4": [0, 0],
8656
- "5": [0, 0]
8791
+ "4": [0, 0]
8657
8792
  },
8658
8793
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
8659
- hash: "5b41c778caf20030622d832ae2adaa3f5f3cb845"
8794
+ hash: "7d2a07f57600a4e9e086eaaf2e051ad55f6d7566"
8660
8795
  };
8661
8796
  var coverage = global[gcv] || (global[gcv] = {});
8662
8797
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -8724,22 +8859,20 @@ var Webhooks = function Webhooks(_ref) {
8724
8859
  cov_une6dfv6o().s[13]++;
8725
8860
  setIsAddWebhookPaneOpen(false);
8726
8861
  };
8727
- cov_une6dfv6o().s[14]++;
8728
- var handleEdit = function handleEdit(id) {
8862
+ var handleEdit = (cov_une6dfv6o().s[14]++, React.useCallback(function (id) {
8729
8863
  cov_une6dfv6o().f[3]++;
8730
8864
  cov_une6dfv6o().s[15]++;
8731
8865
  setEditingWebhookId(id);
8732
8866
  cov_une6dfv6o().s[16]++;
8733
8867
  setIsAddWebhookPaneOpen(true);
8734
- };
8735
- cov_une6dfv6o().s[17]++;
8736
- var handleDelete = function handleDelete(id) {
8868
+ }, []));
8869
+ var handleDelete = (cov_une6dfv6o().s[17]++, React.useCallback(function (id) {
8737
8870
  cov_une6dfv6o().f[4]++;
8738
8871
  cov_une6dfv6o().s[18]++;
8739
8872
  setDeletingWebhookId(id);
8740
8873
  cov_une6dfv6o().s[19]++;
8741
8874
  setIsDeleteAlertOpen(true);
8742
- };
8875
+ }, []));
8743
8876
  cov_une6dfv6o().s[20]++;
8744
8877
  if (isLoading) {
8745
8878
  cov_une6dfv6o().b[3][0]++;
@@ -8753,44 +8886,25 @@ var Webhooks = function Webhooks(_ref) {
8753
8886
  className: "w-full px-6"
8754
8887
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8755
8888
  className: "sticky top-0 z-50 w-full bg-white"
8756
- }, /*#__PURE__*/React__default["default"].createElement(Header__default["default"], _extends({
8757
- title: t("webhook.title")
8758
- }, (cov_une6dfv6o().b[4][0]++, shouldShowBreadcrumbs) && (cov_une6dfv6o().b[4][1]++, {
8759
- breadcrumbs: [{
8760
- link: utils.buildUrl(getConfigurePath(deliveriesPath), {
8761
- id: id,
8762
- formId: formId
8763
- }),
8764
- text: t("entity.configure")
8765
- }]
8766
- }), {
8767
- actionBlock: /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
8768
- "data-cy": "add-new-webhook-button",
8769
- label: t("webhook.add"),
8770
- onClick: function onClick() {
8771
- cov_une6dfv6o().f[5]++;
8772
- cov_une6dfv6o().s[23]++;
8773
- return setIsAddWebhookPaneOpen(true);
8774
- }
8775
- })
8776
- })), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
8777
- className: "neeto-ui-text-gray-700",
8778
- "data-cy": "webhook-description-header",
8779
- style: "h5",
8780
- weight: "normal"
8781
- }, t("webhook.description"))), /*#__PURE__*/React__default["default"].createElement("div", {
8889
+ }), /*#__PURE__*/React__default["default"].createElement(Header$1, {
8890
+ deliveriesPath: deliveriesPath,
8891
+ formId: formId,
8892
+ id: id,
8893
+ setIsAddWebhookPaneOpen: setIsAddWebhookPaneOpen,
8894
+ shouldShowBreadcrumbs: shouldShowBreadcrumbs
8895
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
8782
8896
  className: "webhooks__list space-y-2"
8783
8897
  }, webhooks.map(function (webhook) {
8784
- cov_une6dfv6o().f[6]++;
8785
- cov_une6dfv6o().s[24]++;
8786
- return /*#__PURE__*/React__default["default"].createElement(WebhookItem, {
8898
+ cov_une6dfv6o().f[5]++;
8899
+ cov_une6dfv6o().s[23]++;
8900
+ return /*#__PURE__*/React__default["default"].createElement(WebhookItem$1, {
8787
8901
  deliveriesPath: deliveriesPath,
8788
8902
  key: webhook.id,
8789
8903
  webhook: webhook,
8790
8904
  onDeleteClick: handleDelete,
8791
8905
  onEditClick: handleEdit
8792
8906
  });
8793
- }), (cov_une6dfv6o().b[5][0]++, ramda.isEmpty(webhooks)) && (cov_une6dfv6o().b[5][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
8907
+ }), (cov_une6dfv6o().b[4][0]++, ramda.isEmpty(webhooks)) && (cov_une6dfv6o().b[4][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
8794
8908
  className: "flex h-full items-center justify-center"
8795
8909
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.NoData, {
8796
8910
  title: t("webhook.empty")
@@ -8811,13 +8925,13 @@ var Webhooks = function Webhooks(_ref) {
8811
8925
  entity: t("entity.webhook")
8812
8926
  }),
8813
8927
  onClose: function onClose() {
8814
- cov_une6dfv6o().f[7]++;
8815
- cov_une6dfv6o().s[25]++;
8928
+ cov_une6dfv6o().f[6]++;
8929
+ cov_une6dfv6o().s[24]++;
8816
8930
  return setIsDeleteAlertOpen(false);
8817
8931
  },
8818
8932
  onSubmit: function onSubmit() {
8819
- cov_une6dfv6o().f[8]++;
8820
- cov_une6dfv6o().s[26]++;
8933
+ cov_une6dfv6o().f[7]++;
8934
+ cov_une6dfv6o().s[25]++;
8821
8935
  return destroyWebhook(deletingWebhookId);
8822
8936
  }
8823
8937
  }));
@@ -9060,7 +9174,6 @@ n(css,{});
9060
9174
 
9061
9175
  var entity = {
9062
9176
  webhook: "webhook",
9063
- delivery: "delivery",
9064
9177
  configure: "Configure"
9065
9178
  };
9066
9179
  var buttons = {
@@ -9092,21 +9205,13 @@ var delivery = {
9092
9205
  var webhook = {
9093
9206
  title: "Webhooks",
9094
9207
  description: "All new action event details will be posted to the configured webhook URLs",
9095
- input: "Endpoint URL",
9096
- placeholder: "Enter your endpoint URL",
9097
9208
  empty: "There are no webhooks defined currently",
9098
9209
  add: "Add new webhook",
9099
- create: "Create Webhook",
9100
9210
  endpoint: "Endpoint",
9101
9211
  endpointPlaceholder: "Enter endpoint URL",
9102
9212
  secret: "Secret key",
9103
9213
  secretPlaceholder: "Enter secret key",
9104
- edit: "Edit Webhook",
9105
- secretHelpPopover: {
9106
- title: "What is Secret key?",
9107
- description: "An optional token to ensure your server is only receiving the expected host application requests for security reasons.",
9108
- linkText: "View help article"
9109
- }
9214
+ edit: "Edit Webhook"
9110
9215
  };
9111
9216
  var operation = {
9112
9217
  edit: "Edit",