@bigbinary/neeto-team-members-frontend 2.6.14 → 2.6.15
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 +1380 -1334
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +1380 -1334
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs.js
CHANGED
|
@@ -6258,7 +6258,7 @@ var hasPermission = function hasPermission() {
|
|
|
6258
6258
|
|
|
6259
6259
|
function cov_a5y9dvwc7() {
|
|
6260
6260
|
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/common/constants.js";
|
|
6261
|
-
var hash = "
|
|
6261
|
+
var hash = "56304a3d1d459ec7cf9ddfda7721ac7bcd9e1310";
|
|
6262
6262
|
var global = new Function("return this")();
|
|
6263
6263
|
var gcv = "__coverage__";
|
|
6264
6264
|
var coverageData = {
|
|
@@ -6313,6 +6313,36 @@ function cov_a5y9dvwc7() {
|
|
|
6313
6313
|
line: 8,
|
|
6314
6314
|
column: 35
|
|
6315
6315
|
}
|
|
6316
|
+
},
|
|
6317
|
+
"5": {
|
|
6318
|
+
start: {
|
|
6319
|
+
line: 9,
|
|
6320
|
+
column: 31
|
|
6321
|
+
},
|
|
6322
|
+
end: {
|
|
6323
|
+
line: 9,
|
|
6324
|
+
column: 38
|
|
6325
|
+
}
|
|
6326
|
+
},
|
|
6327
|
+
"6": {
|
|
6328
|
+
start: {
|
|
6329
|
+
line: 10,
|
|
6330
|
+
column: 31
|
|
6331
|
+
},
|
|
6332
|
+
end: {
|
|
6333
|
+
line: 10,
|
|
6334
|
+
column: 38
|
|
6335
|
+
}
|
|
6336
|
+
},
|
|
6337
|
+
"7": {
|
|
6338
|
+
start: {
|
|
6339
|
+
line: 11,
|
|
6340
|
+
column: 27
|
|
6341
|
+
},
|
|
6342
|
+
end: {
|
|
6343
|
+
line: 11,
|
|
6344
|
+
column: 61
|
|
6345
|
+
}
|
|
6316
6346
|
}
|
|
6317
6347
|
},
|
|
6318
6348
|
fnMap: {},
|
|
@@ -6322,12 +6352,15 @@ function cov_a5y9dvwc7() {
|
|
|
6322
6352
|
"1": 0,
|
|
6323
6353
|
"2": 0,
|
|
6324
6354
|
"3": 0,
|
|
6325
|
-
"4": 0
|
|
6355
|
+
"4": 0,
|
|
6356
|
+
"5": 0,
|
|
6357
|
+
"6": 0,
|
|
6358
|
+
"7": 0
|
|
6326
6359
|
},
|
|
6327
6360
|
f: {},
|
|
6328
6361
|
b: {},
|
|
6329
6362
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
6330
|
-
hash: "
|
|
6363
|
+
hash: "56304a3d1d459ec7cf9ddfda7721ac7bcd9e1310"
|
|
6331
6364
|
};
|
|
6332
6365
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
6333
6366
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -6352,6 +6385,9 @@ var PLURAL = (cov_a5y9dvwc7().s[1]++, {
|
|
|
6352
6385
|
var MANAGE_MEMBER_PERMISSIONS = (cov_a5y9dvwc7().s[2]++, ["members.manage_members", "agents.manage_agents"]);
|
|
6353
6386
|
var DEFAULT_PERMISSION = (cov_a5y9dvwc7().s[3]++, true); // Until we add permission prop to all neeto apps, this is the default permission.
|
|
6354
6387
|
var DEFAULT_PAGE_SIZE = (cov_a5y9dvwc7().s[4]++, 45);
|
|
6388
|
+
var ADMIN_ROLE_NAME = (cov_a5y9dvwc7().s[5]++, "Admin");
|
|
6389
|
+
var OWNER_ROLE_NAME = (cov_a5y9dvwc7().s[6]++, "Owner");
|
|
6390
|
+
var ADMIN_ROLES = (cov_a5y9dvwc7().s[7]++, [ADMIN_ROLE_NAME, OWNER_ROLE_NAME]);
|
|
6355
6391
|
|
|
6356
6392
|
function cov_9aoa8n4lf() {
|
|
6357
6393
|
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/apis/query_client.js";
|
|
@@ -12540,7 +12576,7 @@ var Permissions = function Permissions(_ref) {
|
|
|
12540
12576
|
|
|
12541
12577
|
function cov_2228flljf7() {
|
|
12542
12578
|
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/Roles/ManageRoles.jsx";
|
|
12543
|
-
var hash = "
|
|
12579
|
+
var hash = "563c09c5b10a45e144202aa0f9b9d0b7d8c147f3";
|
|
12544
12580
|
var global = new Function("return this")();
|
|
12545
12581
|
var gcv = "__coverage__";
|
|
12546
12582
|
var coverageData = {
|
|
@@ -12683,7 +12719,7 @@ function cov_2228flljf7() {
|
|
|
12683
12719
|
},
|
|
12684
12720
|
end: {
|
|
12685
12721
|
line: 60,
|
|
12686
|
-
column:
|
|
12722
|
+
column: 51
|
|
12687
12723
|
}
|
|
12688
12724
|
},
|
|
12689
12725
|
"14": {
|
|
@@ -12693,7 +12729,7 @@ function cov_2228flljf7() {
|
|
|
12693
12729
|
},
|
|
12694
12730
|
end: {
|
|
12695
12731
|
line: 61,
|
|
12696
|
-
column:
|
|
12732
|
+
column: 74
|
|
12697
12733
|
}
|
|
12698
12734
|
},
|
|
12699
12735
|
"15": {
|
|
@@ -12964,6 +13000,39 @@ function cov_2228flljf7() {
|
|
|
12964
13000
|
line: 52
|
|
12965
13001
|
},
|
|
12966
13002
|
"6": {
|
|
13003
|
+
loc: {
|
|
13004
|
+
start: {
|
|
13005
|
+
line: 61,
|
|
13006
|
+
column: 21
|
|
13007
|
+
},
|
|
13008
|
+
end: {
|
|
13009
|
+
line: 61,
|
|
13010
|
+
column: 74
|
|
13011
|
+
}
|
|
13012
|
+
},
|
|
13013
|
+
type: "binary-expr",
|
|
13014
|
+
locations: [{
|
|
13015
|
+
start: {
|
|
13016
|
+
line: 61,
|
|
13017
|
+
column: 21
|
|
13018
|
+
},
|
|
13019
|
+
end: {
|
|
13020
|
+
line: 61,
|
|
13021
|
+
column: 60
|
|
13022
|
+
}
|
|
13023
|
+
}, {
|
|
13024
|
+
start: {
|
|
13025
|
+
line: 61,
|
|
13026
|
+
column: 64
|
|
13027
|
+
},
|
|
13028
|
+
end: {
|
|
13029
|
+
line: 61,
|
|
13030
|
+
column: 74
|
|
13031
|
+
}
|
|
13032
|
+
}],
|
|
13033
|
+
line: 61
|
|
13034
|
+
},
|
|
13035
|
+
"7": {
|
|
12967
13036
|
loc: {
|
|
12968
13037
|
start: {
|
|
12969
13038
|
line: 67,
|
|
@@ -12996,7 +13065,7 @@ function cov_2228flljf7() {
|
|
|
12996
13065
|
}],
|
|
12997
13066
|
line: 67
|
|
12998
13067
|
},
|
|
12999
|
-
"
|
|
13068
|
+
"8": {
|
|
13000
13069
|
loc: {
|
|
13001
13070
|
start: {
|
|
13002
13071
|
line: 108,
|
|
@@ -13029,7 +13098,7 @@ function cov_2228flljf7() {
|
|
|
13029
13098
|
}],
|
|
13030
13099
|
line: 108
|
|
13031
13100
|
},
|
|
13032
|
-
"
|
|
13101
|
+
"9": {
|
|
13033
13102
|
loc: {
|
|
13034
13103
|
start: {
|
|
13035
13104
|
line: 117,
|
|
@@ -13105,10 +13174,11 @@ function cov_2228flljf7() {
|
|
|
13105
13174
|
"5": [0, 0],
|
|
13106
13175
|
"6": [0, 0],
|
|
13107
13176
|
"7": [0, 0],
|
|
13108
|
-
"8": [0, 0,
|
|
13177
|
+
"8": [0, 0],
|
|
13178
|
+
"9": [0, 0, 0]
|
|
13109
13179
|
},
|
|
13110
13180
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
13111
|
-
hash: "
|
|
13181
|
+
hash: "563c09c5b10a45e144202aa0f9b9d0b7d8c147f3"
|
|
13112
13182
|
};
|
|
13113
13183
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
13114
13184
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -13173,8 +13243,8 @@ var ManageRoles = function ManageRoles(_ref) {
|
|
|
13173
13243
|
initialValues: initialValues,
|
|
13174
13244
|
onSubmit: handleSubmit
|
|
13175
13245
|
}));
|
|
13176
|
-
var
|
|
13177
|
-
var
|
|
13246
|
+
var isReadOnly = (cov_2228flljf7().s[13]++, selectedRole.kind === "system");
|
|
13247
|
+
var isDisabled = (cov_2228flljf7().s[14]++, (cov_2228flljf7().b[6][0]++, ADMIN_ROLES.includes(selectedRole.name)) && (cov_2228flljf7().b[6][1]++, isReadOnly));
|
|
13178
13248
|
cov_2228flljf7().s[15]++;
|
|
13179
13249
|
return /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
|
|
13180
13250
|
initialFocusRef: inputReference,
|
|
@@ -13183,9 +13253,9 @@ var ManageRoles = function ManageRoles(_ref) {
|
|
|
13183
13253
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
13184
13254
|
"data-cy": "ntm-add-role-title",
|
|
13185
13255
|
style: "h2"
|
|
13186
|
-
}, isEdit ? (cov_2228flljf7().b[
|
|
13256
|
+
}, isEdit ? (cov_2228flljf7().b[7][0]++, t("common.edit_", {
|
|
13187
13257
|
what: t("common.role", SINGULAR).toLocaleLowerCase()
|
|
13188
|
-
})) : (cov_2228flljf7().b[
|
|
13258
|
+
})) : (cov_2228flljf7().b[7][1]++, t("common.addNew_", {
|
|
13189
13259
|
what: t("common.role", SINGULAR).toLocaleLowerCase()
|
|
13190
13260
|
})))), /*#__PURE__*/React__default["default"].createElement(formik$1.Form, {
|
|
13191
13261
|
formikProps: formikProps,
|
|
@@ -13223,13 +13293,13 @@ var ManageRoles = function ManageRoles(_ref) {
|
|
|
13223
13293
|
})
|
|
13224
13294
|
})), /*#__PURE__*/React__default["default"].createElement(Permissions, {
|
|
13225
13295
|
isDisabled: isDisabled,
|
|
13226
|
-
permissionRelationConfig: (_ref6 = (cov_2228flljf7().b[
|
|
13296
|
+
permissionRelationConfig: (_ref6 = (cov_2228flljf7().b[8][0]++, config === null || config === void 0 ? void 0 : config.permissionRelation)) !== null && _ref6 !== void 0 ? _ref6 : (cov_2228flljf7().b[8][1]++, {}),
|
|
13227
13297
|
permissions: permissions
|
|
13228
13298
|
}))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Footer, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
13229
13299
|
className: "ntm-roles-pane__footer"
|
|
13230
13300
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
13231
13301
|
"data-cy": "ntm-add-role-submit-button",
|
|
13232
|
-
disabled: (cov_2228flljf7().b[
|
|
13302
|
+
disabled: (cov_2228flljf7().b[9][0]++, !dirty) || (cov_2228flljf7().b[9][1]++, isSubmitting) || (cov_2228flljf7().b[9][2]++, isDisabled),
|
|
13233
13303
|
label: t("buttons.saveChanges"),
|
|
13234
13304
|
loading: isSubmitting,
|
|
13235
13305
|
type: "submit"
|
|
@@ -27598,344 +27668,272 @@ var AppList = function AppList(_ref) {
|
|
|
27598
27668
|
})));
|
|
27599
27669
|
};
|
|
27600
27670
|
|
|
27601
|
-
|
|
27602
|
-
|
|
27603
|
-
|
|
27604
|
-
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/Page/index.jsx";
|
|
27605
|
-
var hash = "f6981d4181ec005451a70426069e003995891658";
|
|
27671
|
+
function cov_oxacgfc93() {
|
|
27672
|
+
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/utils.js";
|
|
27673
|
+
var hash = "57213eac81789537131dab690e02afc34690ccb8";
|
|
27606
27674
|
var global = new Function("return this")();
|
|
27607
27675
|
var gcv = "__coverage__";
|
|
27608
27676
|
var coverageData = {
|
|
27609
|
-
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/
|
|
27677
|
+
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/utils.js",
|
|
27610
27678
|
statementMap: {
|
|
27611
27679
|
"0": {
|
|
27612
27680
|
start: {
|
|
27613
|
-
line:
|
|
27614
|
-
column:
|
|
27681
|
+
line: 9,
|
|
27682
|
+
column: 23
|
|
27615
27683
|
},
|
|
27616
27684
|
end: {
|
|
27617
|
-
line:
|
|
27618
|
-
column:
|
|
27685
|
+
line: 12,
|
|
27686
|
+
column: 25
|
|
27619
27687
|
}
|
|
27620
27688
|
},
|
|
27621
27689
|
"1": {
|
|
27622
27690
|
start: {
|
|
27623
|
-
line:
|
|
27691
|
+
line: 10,
|
|
27624
27692
|
column: 2
|
|
27625
27693
|
},
|
|
27626
27694
|
end: {
|
|
27627
|
-
line:
|
|
27628
|
-
column:
|
|
27695
|
+
line: 12,
|
|
27696
|
+
column: 25
|
|
27629
27697
|
}
|
|
27630
27698
|
},
|
|
27631
27699
|
"2": {
|
|
27632
27700
|
start: {
|
|
27633
|
-
line:
|
|
27634
|
-
column:
|
|
27701
|
+
line: 14,
|
|
27702
|
+
column: 22
|
|
27635
27703
|
},
|
|
27636
27704
|
end: {
|
|
27637
|
-
line:
|
|
27638
|
-
column:
|
|
27705
|
+
line: 15,
|
|
27706
|
+
column: 41
|
|
27639
27707
|
}
|
|
27640
27708
|
},
|
|
27641
27709
|
"3": {
|
|
27642
27710
|
start: {
|
|
27643
|
-
line:
|
|
27711
|
+
line: 15,
|
|
27644
27712
|
column: 2
|
|
27645
27713
|
},
|
|
27646
27714
|
end: {
|
|
27647
|
-
line:
|
|
27648
|
-
column:
|
|
27715
|
+
line: 15,
|
|
27716
|
+
column: 41
|
|
27649
27717
|
}
|
|
27650
27718
|
},
|
|
27651
27719
|
"4": {
|
|
27652
27720
|
start: {
|
|
27653
|
-
line:
|
|
27654
|
-
column:
|
|
27721
|
+
line: 17,
|
|
27722
|
+
column: 23
|
|
27655
27723
|
},
|
|
27656
27724
|
end: {
|
|
27657
|
-
line:
|
|
27658
|
-
column:
|
|
27725
|
+
line: 27,
|
|
27726
|
+
column: 1
|
|
27659
27727
|
}
|
|
27660
27728
|
},
|
|
27661
27729
|
"5": {
|
|
27662
27730
|
start: {
|
|
27663
|
-
line:
|
|
27664
|
-
column:
|
|
27731
|
+
line: 18,
|
|
27732
|
+
column: 2
|
|
27665
27733
|
},
|
|
27666
27734
|
end: {
|
|
27667
|
-
line:
|
|
27668
|
-
column:
|
|
27735
|
+
line: 20,
|
|
27736
|
+
column: 3
|
|
27669
27737
|
}
|
|
27670
27738
|
},
|
|
27671
27739
|
"6": {
|
|
27672
27740
|
start: {
|
|
27673
|
-
line:
|
|
27674
|
-
column:
|
|
27741
|
+
line: 19,
|
|
27742
|
+
column: 4
|
|
27675
27743
|
},
|
|
27676
27744
|
end: {
|
|
27677
|
-
line:
|
|
27745
|
+
line: 19,
|
|
27678
27746
|
column: 26
|
|
27679
27747
|
}
|
|
27680
|
-
}
|
|
27681
|
-
|
|
27682
|
-
|
|
27683
|
-
|
|
27684
|
-
|
|
27685
|
-
decl: {
|
|
27686
|
-
start: {
|
|
27687
|
-
line: 3,
|
|
27688
|
-
column: 20
|
|
27689
|
-
},
|
|
27690
|
-
end: {
|
|
27691
|
-
line: 3,
|
|
27692
|
-
column: 21
|
|
27693
|
-
}
|
|
27748
|
+
},
|
|
27749
|
+
"7": {
|
|
27750
|
+
start: {
|
|
27751
|
+
line: 22,
|
|
27752
|
+
column: 20
|
|
27694
27753
|
},
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27698
|
-
|
|
27699
|
-
|
|
27700
|
-
|
|
27701
|
-
|
|
27702
|
-
|
|
27703
|
-
|
|
27754
|
+
end: {
|
|
27755
|
+
line: 22,
|
|
27756
|
+
column: 47
|
|
27757
|
+
}
|
|
27758
|
+
},
|
|
27759
|
+
"8": {
|
|
27760
|
+
start: {
|
|
27761
|
+
line: 24,
|
|
27762
|
+
column: 15
|
|
27704
27763
|
},
|
|
27705
|
-
|
|
27764
|
+
end: {
|
|
27765
|
+
line: 24,
|
|
27766
|
+
column: 50
|
|
27767
|
+
}
|
|
27706
27768
|
},
|
|
27707
|
-
"
|
|
27708
|
-
|
|
27709
|
-
|
|
27710
|
-
|
|
27711
|
-
line: 9,
|
|
27712
|
-
column: 13
|
|
27713
|
-
},
|
|
27714
|
-
end: {
|
|
27715
|
-
line: 9,
|
|
27716
|
-
column: 14
|
|
27717
|
-
}
|
|
27769
|
+
"9": {
|
|
27770
|
+
start: {
|
|
27771
|
+
line: 26,
|
|
27772
|
+
column: 2
|
|
27718
27773
|
},
|
|
27719
|
-
|
|
27720
|
-
|
|
27721
|
-
|
|
27722
|
-
|
|
27723
|
-
|
|
27724
|
-
|
|
27725
|
-
|
|
27726
|
-
|
|
27727
|
-
|
|
27774
|
+
end: {
|
|
27775
|
+
line: 26,
|
|
27776
|
+
column: 42
|
|
27777
|
+
}
|
|
27778
|
+
},
|
|
27779
|
+
"10": {
|
|
27780
|
+
start: {
|
|
27781
|
+
line: 29,
|
|
27782
|
+
column: 38
|
|
27728
27783
|
},
|
|
27729
|
-
|
|
27730
|
-
|
|
27731
|
-
|
|
27732
|
-
|
|
27733
|
-
|
|
27734
|
-
"
|
|
27735
|
-
"1": 0,
|
|
27736
|
-
"2": 0,
|
|
27737
|
-
"3": 0,
|
|
27738
|
-
"4": 0,
|
|
27739
|
-
"5": 0,
|
|
27740
|
-
"6": 0
|
|
27741
|
-
},
|
|
27742
|
-
f: {
|
|
27743
|
-
"0": 0,
|
|
27744
|
-
"1": 0
|
|
27745
|
-
},
|
|
27746
|
-
b: {},
|
|
27747
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
27748
|
-
hash: "f6981d4181ec005451a70426069e003995891658"
|
|
27749
|
-
};
|
|
27750
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
27751
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
27752
|
-
coverage[path] = coverageData;
|
|
27753
|
-
}
|
|
27754
|
-
var actualCoverage = coverage[path];
|
|
27755
|
-
{
|
|
27756
|
-
// @ts-ignore
|
|
27757
|
-
cov_1da0jjdkik = function () {
|
|
27758
|
-
return actualCoverage;
|
|
27759
|
-
};
|
|
27760
|
-
}
|
|
27761
|
-
return actualCoverage;
|
|
27762
|
-
}
|
|
27763
|
-
cov_1da0jjdkik();
|
|
27764
|
-
cov_1da0jjdkik().s[0]++;
|
|
27765
|
-
var PageWrapper = function PageWrapper(_ref) {
|
|
27766
|
-
var className = _ref.className,
|
|
27767
|
-
children = _ref.children,
|
|
27768
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
27769
|
-
cov_1da0jjdkik().f[0]++;
|
|
27770
|
-
cov_1da0jjdkik().s[1]++;
|
|
27771
|
-
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
27772
|
-
className: className
|
|
27773
|
-
}, otherProps), children);
|
|
27774
|
-
};
|
|
27775
|
-
cov_1da0jjdkik().s[2]++;
|
|
27776
|
-
var Page = function Page(_ref2) {
|
|
27777
|
-
var className = _ref2.className,
|
|
27778
|
-
children = _ref2.children,
|
|
27779
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
27780
|
-
cov_1da0jjdkik().f[1]++;
|
|
27781
|
-
cov_1da0jjdkik().s[3]++;
|
|
27782
|
-
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
27783
|
-
className: className
|
|
27784
|
-
}, otherProps), children);
|
|
27785
|
-
};
|
|
27786
|
-
cov_1da0jjdkik().s[4]++;
|
|
27787
|
-
Page.Header = PageWrapper;
|
|
27788
|
-
cov_1da0jjdkik().s[5]++;
|
|
27789
|
-
Page.Body = PageWrapper;
|
|
27790
|
-
cov_1da0jjdkik().s[6]++;
|
|
27791
|
-
Page.Footer = PageWrapper;
|
|
27792
|
-
|
|
27793
|
-
function cov_82lke0lxh() {
|
|
27794
|
-
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/constants.js";
|
|
27795
|
-
var hash = "394ec9c6fc4239f35855bda4243a2d7c04ab027b";
|
|
27796
|
-
var global = new Function("return this")();
|
|
27797
|
-
var gcv = "__coverage__";
|
|
27798
|
-
var coverageData = {
|
|
27799
|
-
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/constants.js",
|
|
27800
|
-
statementMap: {
|
|
27801
|
-
"0": {
|
|
27784
|
+
end: {
|
|
27785
|
+
line: 43,
|
|
27786
|
+
column: 1
|
|
27787
|
+
}
|
|
27788
|
+
},
|
|
27789
|
+
"11": {
|
|
27802
27790
|
start: {
|
|
27803
|
-
line:
|
|
27804
|
-
column:
|
|
27791
|
+
line: 30,
|
|
27792
|
+
column: 2
|
|
27805
27793
|
},
|
|
27806
27794
|
end: {
|
|
27807
|
-
line:
|
|
27808
|
-
column:
|
|
27795
|
+
line: 30,
|
|
27796
|
+
column: 30
|
|
27809
27797
|
}
|
|
27810
27798
|
},
|
|
27811
|
-
"
|
|
27799
|
+
"12": {
|
|
27812
27800
|
start: {
|
|
27813
|
-
line:
|
|
27814
|
-
column:
|
|
27801
|
+
line: 30,
|
|
27802
|
+
column: 20
|
|
27815
27803
|
},
|
|
27816
27804
|
end: {
|
|
27817
|
-
line:
|
|
27818
|
-
column:
|
|
27805
|
+
line: 30,
|
|
27806
|
+
column: 30
|
|
27819
27807
|
}
|
|
27820
27808
|
},
|
|
27821
|
-
"
|
|
27809
|
+
"13": {
|
|
27822
27810
|
start: {
|
|
27823
|
-
line:
|
|
27824
|
-
column:
|
|
27811
|
+
line: 32,
|
|
27812
|
+
column: 19
|
|
27825
27813
|
},
|
|
27826
27814
|
end: {
|
|
27827
|
-
line:
|
|
27828
|
-
column:
|
|
27815
|
+
line: 32,
|
|
27816
|
+
column: 43
|
|
27829
27817
|
}
|
|
27830
27818
|
},
|
|
27831
|
-
"
|
|
27819
|
+
"14": {
|
|
27832
27820
|
start: {
|
|
27833
|
-
line:
|
|
27834
|
-
column:
|
|
27821
|
+
line: 33,
|
|
27822
|
+
column: 30
|
|
27835
27823
|
},
|
|
27836
27824
|
end: {
|
|
27837
|
-
line:
|
|
27838
|
-
column:
|
|
27825
|
+
line: 35,
|
|
27826
|
+
column: 3
|
|
27839
27827
|
}
|
|
27840
27828
|
},
|
|
27841
|
-
"
|
|
27829
|
+
"15": {
|
|
27842
27830
|
start: {
|
|
27843
|
-
line:
|
|
27844
|
-
column:
|
|
27831
|
+
line: 36,
|
|
27832
|
+
column: 25
|
|
27845
27833
|
},
|
|
27846
27834
|
end: {
|
|
27847
|
-
line:
|
|
27848
|
-
column:
|
|
27835
|
+
line: 36,
|
|
27836
|
+
column: 63
|
|
27849
27837
|
}
|
|
27850
27838
|
},
|
|
27851
|
-
"
|
|
27839
|
+
"16": {
|
|
27852
27840
|
start: {
|
|
27841
|
+
line: 38,
|
|
27842
|
+
column: 2
|
|
27843
|
+
},
|
|
27844
|
+
end: {
|
|
27853
27845
|
line: 42,
|
|
27854
|
-
column:
|
|
27846
|
+
column: 6
|
|
27847
|
+
}
|
|
27848
|
+
},
|
|
27849
|
+
"17": {
|
|
27850
|
+
start: {
|
|
27851
|
+
line: 38,
|
|
27852
|
+
column: 40
|
|
27855
27853
|
},
|
|
27856
27854
|
end: {
|
|
27857
27855
|
line: 42,
|
|
27858
|
-
column:
|
|
27856
|
+
column: 3
|
|
27859
27857
|
}
|
|
27860
27858
|
},
|
|
27861
|
-
"
|
|
27859
|
+
"18": {
|
|
27862
27860
|
start: {
|
|
27863
|
-
line:
|
|
27864
|
-
column:
|
|
27861
|
+
line: 45,
|
|
27862
|
+
column: 27
|
|
27865
27863
|
},
|
|
27866
27864
|
end: {
|
|
27867
|
-
line:
|
|
27868
|
-
column:
|
|
27865
|
+
line: 48,
|
|
27866
|
+
column: 32
|
|
27869
27867
|
}
|
|
27870
27868
|
},
|
|
27871
|
-
"
|
|
27869
|
+
"19": {
|
|
27872
27870
|
start: {
|
|
27873
27871
|
line: 46,
|
|
27874
|
-
column:
|
|
27872
|
+
column: 2
|
|
27875
27873
|
},
|
|
27876
27874
|
end: {
|
|
27877
27875
|
line: 48,
|
|
27878
|
-
column:
|
|
27876
|
+
column: 32
|
|
27879
27877
|
}
|
|
27880
27878
|
},
|
|
27881
|
-
"
|
|
27879
|
+
"20": {
|
|
27882
27880
|
start: {
|
|
27883
27881
|
line: 50,
|
|
27884
|
-
column:
|
|
27882
|
+
column: 35
|
|
27885
27883
|
},
|
|
27886
27884
|
end: {
|
|
27887
|
-
line:
|
|
27888
|
-
column:
|
|
27885
|
+
line: 66,
|
|
27886
|
+
column: 2
|
|
27889
27887
|
}
|
|
27890
27888
|
},
|
|
27891
|
-
"
|
|
27889
|
+
"21": {
|
|
27892
27890
|
start: {
|
|
27893
|
-
line:
|
|
27894
|
-
column:
|
|
27891
|
+
line: 50,
|
|
27892
|
+
column: 76
|
|
27895
27893
|
},
|
|
27896
27894
|
end: {
|
|
27897
|
-
line:
|
|
27895
|
+
line: 66,
|
|
27898
27896
|
column: 1
|
|
27899
27897
|
}
|
|
27900
27898
|
},
|
|
27901
|
-
"
|
|
27899
|
+
"22": {
|
|
27902
27900
|
start: {
|
|
27903
|
-
line:
|
|
27904
|
-
column:
|
|
27901
|
+
line: 68,
|
|
27902
|
+
column: 29
|
|
27905
27903
|
},
|
|
27906
27904
|
end: {
|
|
27907
|
-
line:
|
|
27908
|
-
column:
|
|
27905
|
+
line: 85,
|
|
27906
|
+
column: 7
|
|
27909
27907
|
}
|
|
27910
27908
|
},
|
|
27911
|
-
"
|
|
27909
|
+
"23": {
|
|
27912
27910
|
start: {
|
|
27913
|
-
line:
|
|
27914
|
-
column:
|
|
27911
|
+
line: 72,
|
|
27912
|
+
column: 2
|
|
27915
27913
|
},
|
|
27916
27914
|
end: {
|
|
27917
|
-
line:
|
|
27918
|
-
column:
|
|
27915
|
+
line: 85,
|
|
27916
|
+
column: 7
|
|
27919
27917
|
}
|
|
27920
27918
|
},
|
|
27921
|
-
"
|
|
27919
|
+
"24": {
|
|
27922
27920
|
start: {
|
|
27923
|
-
line:
|
|
27924
|
-
column:
|
|
27921
|
+
line: 87,
|
|
27922
|
+
column: 51
|
|
27925
27923
|
},
|
|
27926
27924
|
end: {
|
|
27927
|
-
line:
|
|
27928
|
-
column:
|
|
27925
|
+
line: 96,
|
|
27926
|
+
column: 2
|
|
27929
27927
|
}
|
|
27930
27928
|
},
|
|
27931
|
-
"
|
|
27929
|
+
"25": {
|
|
27932
27930
|
start: {
|
|
27933
|
-
line:
|
|
27934
|
-
column:
|
|
27931
|
+
line: 91,
|
|
27932
|
+
column: 7
|
|
27935
27933
|
},
|
|
27936
27934
|
end: {
|
|
27937
|
-
line:
|
|
27938
|
-
column:
|
|
27935
|
+
line: 96,
|
|
27936
|
+
column: 1
|
|
27939
27937
|
}
|
|
27940
27938
|
}
|
|
27941
27939
|
},
|
|
@@ -27944,1037 +27942,1008 @@ function cov_82lke0lxh() {
|
|
|
27944
27942
|
name: "(anonymous_0)",
|
|
27945
27943
|
decl: {
|
|
27946
27944
|
start: {
|
|
27947
|
-
line:
|
|
27948
|
-
column:
|
|
27945
|
+
line: 9,
|
|
27946
|
+
column: 23
|
|
27949
27947
|
},
|
|
27950
27948
|
end: {
|
|
27951
|
-
line:
|
|
27952
|
-
column:
|
|
27949
|
+
line: 9,
|
|
27950
|
+
column: 24
|
|
27953
27951
|
}
|
|
27954
27952
|
},
|
|
27955
27953
|
loc: {
|
|
27956
27954
|
start: {
|
|
27957
|
-
line:
|
|
27958
|
-
column:
|
|
27955
|
+
line: 10,
|
|
27956
|
+
column: 2
|
|
27959
27957
|
},
|
|
27960
27958
|
end: {
|
|
27961
|
-
line:
|
|
27962
|
-
column:
|
|
27959
|
+
line: 12,
|
|
27960
|
+
column: 25
|
|
27963
27961
|
}
|
|
27964
27962
|
},
|
|
27965
|
-
line:
|
|
27966
|
-
}
|
|
27967
|
-
},
|
|
27968
|
-
branchMap: {},
|
|
27969
|
-
s: {
|
|
27970
|
-
"0": 0,
|
|
27971
|
-
"1": 0,
|
|
27972
|
-
"2": 0,
|
|
27973
|
-
"3": 0,
|
|
27974
|
-
"4": 0,
|
|
27975
|
-
"5": 0,
|
|
27976
|
-
"6": 0,
|
|
27977
|
-
"7": 0,
|
|
27978
|
-
"8": 0,
|
|
27979
|
-
"9": 0,
|
|
27980
|
-
"10": 0,
|
|
27981
|
-
"11": 0,
|
|
27982
|
-
"12": 0,
|
|
27983
|
-
"13": 0
|
|
27984
|
-
},
|
|
27985
|
-
f: {
|
|
27986
|
-
"0": 0
|
|
27987
|
-
},
|
|
27988
|
-
b: {},
|
|
27989
|
-
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
27990
|
-
hash: "394ec9c6fc4239f35855bda4243a2d7c04ab027b"
|
|
27991
|
-
};
|
|
27992
|
-
var coverage = global[gcv] || (global[gcv] = {});
|
|
27993
|
-
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
27994
|
-
coverage[path] = coverageData;
|
|
27995
|
-
}
|
|
27996
|
-
var actualCoverage = coverage[path];
|
|
27997
|
-
{
|
|
27998
|
-
// @ts-ignore
|
|
27999
|
-
cov_82lke0lxh = function () {
|
|
28000
|
-
return actualCoverage;
|
|
28001
|
-
};
|
|
28002
|
-
}
|
|
28003
|
-
return actualCoverage;
|
|
28004
|
-
}
|
|
28005
|
-
cov_82lke0lxh();
|
|
28006
|
-
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28007
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28008
|
-
var NAME_INPUT_VALIDATION_SCHEMA = (cov_82lke0lxh().s[0]++, {
|
|
28009
|
-
firstName: yup__namespace.string(),
|
|
28010
|
-
lastName: yup__namespace.string()
|
|
28011
|
-
});
|
|
28012
|
-
var MULTIPLE_EMAIL_INPUT_VALIDATION_SCHEMA = (cov_82lke0lxh().s[1]++, {
|
|
28013
|
-
emails: yup__namespace.array().min(1, instance.t("validations.minOneEmail")).test("are-all-emails-valid", instance.t("validations.validEmail"), function (emails) {
|
|
28014
|
-
cov_82lke0lxh().f[0]++;
|
|
28015
|
-
cov_82lke0lxh().s[2]++;
|
|
28016
|
-
return emails.every(ramda.prop("valid"));
|
|
28017
|
-
}).nullable()
|
|
28018
|
-
});
|
|
28019
|
-
var ROLES_RADIO_GROUP_VALIDATION_SCHEMA = (cov_82lke0lxh().s[3]++, {
|
|
28020
|
-
role: yup__namespace.string().required(instance.t("validations.roleRequired"))
|
|
28021
|
-
});
|
|
28022
|
-
var VALIDATION_SCHEMA = (cov_82lke0lxh().s[4]++, yup__namespace.object().shape(_objectSpread$3(_objectSpread$3(_objectSpread$3(_objectSpread$3({}, NAME_INPUT_VALIDATION_SCHEMA), MULTIPLE_EMAIL_INPUT_VALIDATION_SCHEMA), ROLES_RADIO_GROUP_VALIDATION_SCHEMA), {}, {
|
|
28023
|
-
appsRoles: yup__namespace.array().of(yup__namespace.object().shape({
|
|
28024
|
-
appName: yup__namespace.string(),
|
|
28025
|
-
isEnabled: yup__namespace["boolean"](),
|
|
28026
|
-
role: yup__namespace.string().required(instance.t("validations.roleRequired"))
|
|
28027
|
-
}))
|
|
28028
|
-
})));
|
|
28029
|
-
var ADMIN_ROLE = (cov_82lke0lxh().s[5]++, "Admin");
|
|
28030
|
-
var OWNER_ROLE = (cov_82lke0lxh().s[6]++, "Owner");
|
|
28031
|
-
var FILTER_INVALID_EMAILS = (cov_82lke0lxh().s[7]++, {
|
|
28032
|
-
label: instance.t("validations.filterInvalidEmails")
|
|
28033
|
-
});
|
|
28034
|
-
var COUNTER_PROPS = (cov_82lke0lxh().s[8]++, {
|
|
28035
|
-
label: instance.t("common.email", PLURAL),
|
|
28036
|
-
startsFrom: 4
|
|
28037
|
-
});
|
|
28038
|
-
var MANAGE_MEMBERS_FORMIK_PROPS = (cov_82lke0lxh().s[9]++, {
|
|
28039
|
-
enableReinitialize: true,
|
|
28040
|
-
validationSchema: VALIDATION_SCHEMA
|
|
28041
|
-
});
|
|
28042
|
-
var DEFAULT_COMPONENT_CONFIG = (cov_82lke0lxh().s[10]++, {
|
|
28043
|
-
type: "pane",
|
|
28044
|
-
isOpen: false,
|
|
28045
|
-
className: "",
|
|
28046
|
-
headerProps: {},
|
|
28047
|
-
bodyProps: {},
|
|
28048
|
-
footerProps: {}
|
|
28049
|
-
});
|
|
28050
|
-
var MEMBERS_FORM_COMPONENT_MAPPER = (cov_82lke0lxh().s[11]++, {
|
|
28051
|
-
pane: neetoui.Pane,
|
|
28052
|
-
modal: neetoui.Modal,
|
|
28053
|
-
page: Page
|
|
28054
|
-
});
|
|
28055
|
-
var FORM_PAGES = (cov_82lke0lxh().s[12]++, {
|
|
28056
|
-
MAIN: "main",
|
|
28057
|
-
APP_LIST: "appList",
|
|
28058
|
-
CONFIRMATION: "confirmation"
|
|
28059
|
-
});
|
|
28060
|
-
var OWNER_CANT_CHANGE_USER_EMAIL_KB_ARTICLE_URL = (cov_82lke0lxh().s[13]++, "https://neetoauthhelp.neetokb.com/articles/owner-cant-change-other-users-email");
|
|
28061
|
-
|
|
28062
|
-
function cov_oxacgfc93() {
|
|
28063
|
-
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/utils.js";
|
|
28064
|
-
var hash = "606b358f599c0f0dd00841b8d8d9a41713401450";
|
|
28065
|
-
var global = new Function("return this")();
|
|
28066
|
-
var gcv = "__coverage__";
|
|
28067
|
-
var coverageData = {
|
|
28068
|
-
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/utils.js",
|
|
28069
|
-
statementMap: {
|
|
28070
|
-
"0": {
|
|
28071
|
-
start: {
|
|
28072
|
-
line: 10,
|
|
28073
|
-
column: 23
|
|
28074
|
-
},
|
|
28075
|
-
end: {
|
|
28076
|
-
line: 13,
|
|
28077
|
-
column: 25
|
|
28078
|
-
}
|
|
27963
|
+
line: 10
|
|
28079
27964
|
},
|
|
28080
27965
|
"1": {
|
|
28081
|
-
|
|
28082
|
-
|
|
28083
|
-
|
|
27966
|
+
name: "(anonymous_1)",
|
|
27967
|
+
decl: {
|
|
27968
|
+
start: {
|
|
27969
|
+
line: 14,
|
|
27970
|
+
column: 22
|
|
27971
|
+
},
|
|
27972
|
+
end: {
|
|
27973
|
+
line: 14,
|
|
27974
|
+
column: 23
|
|
27975
|
+
}
|
|
28084
27976
|
},
|
|
28085
|
-
|
|
28086
|
-
|
|
28087
|
-
|
|
28088
|
-
|
|
27977
|
+
loc: {
|
|
27978
|
+
start: {
|
|
27979
|
+
line: 15,
|
|
27980
|
+
column: 2
|
|
27981
|
+
},
|
|
27982
|
+
end: {
|
|
27983
|
+
line: 15,
|
|
27984
|
+
column: 41
|
|
27985
|
+
}
|
|
27986
|
+
},
|
|
27987
|
+
line: 15
|
|
28089
27988
|
},
|
|
28090
27989
|
"2": {
|
|
28091
|
-
|
|
28092
|
-
|
|
28093
|
-
|
|
27990
|
+
name: "(anonymous_2)",
|
|
27991
|
+
decl: {
|
|
27992
|
+
start: {
|
|
27993
|
+
line: 17,
|
|
27994
|
+
column: 23
|
|
27995
|
+
},
|
|
27996
|
+
end: {
|
|
27997
|
+
line: 17,
|
|
27998
|
+
column: 24
|
|
27999
|
+
}
|
|
28094
28000
|
},
|
|
28095
|
-
|
|
28096
|
-
|
|
28097
|
-
|
|
28098
|
-
|
|
28001
|
+
loc: {
|
|
28002
|
+
start: {
|
|
28003
|
+
line: 17,
|
|
28004
|
+
column: 59
|
|
28005
|
+
},
|
|
28006
|
+
end: {
|
|
28007
|
+
line: 27,
|
|
28008
|
+
column: 1
|
|
28009
|
+
}
|
|
28010
|
+
},
|
|
28011
|
+
line: 17
|
|
28099
28012
|
},
|
|
28100
28013
|
"3": {
|
|
28101
|
-
|
|
28102
|
-
|
|
28103
|
-
|
|
28014
|
+
name: "(anonymous_3)",
|
|
28015
|
+
decl: {
|
|
28016
|
+
start: {
|
|
28017
|
+
line: 29,
|
|
28018
|
+
column: 38
|
|
28019
|
+
},
|
|
28020
|
+
end: {
|
|
28021
|
+
line: 29,
|
|
28022
|
+
column: 39
|
|
28023
|
+
}
|
|
28104
28024
|
},
|
|
28105
|
-
|
|
28106
|
-
|
|
28107
|
-
|
|
28108
|
-
|
|
28025
|
+
loc: {
|
|
28026
|
+
start: {
|
|
28027
|
+
line: 29,
|
|
28028
|
+
column: 71
|
|
28029
|
+
},
|
|
28030
|
+
end: {
|
|
28031
|
+
line: 43,
|
|
28032
|
+
column: 1
|
|
28033
|
+
}
|
|
28034
|
+
},
|
|
28035
|
+
line: 29
|
|
28109
28036
|
},
|
|
28110
28037
|
"4": {
|
|
28111
|
-
|
|
28112
|
-
|
|
28113
|
-
|
|
28038
|
+
name: "(anonymous_4)",
|
|
28039
|
+
decl: {
|
|
28040
|
+
start: {
|
|
28041
|
+
line: 38,
|
|
28042
|
+
column: 28
|
|
28043
|
+
},
|
|
28044
|
+
end: {
|
|
28045
|
+
line: 38,
|
|
28046
|
+
column: 29
|
|
28047
|
+
}
|
|
28114
28048
|
},
|
|
28115
|
-
|
|
28116
|
-
|
|
28117
|
-
|
|
28118
|
-
|
|
28049
|
+
loc: {
|
|
28050
|
+
start: {
|
|
28051
|
+
line: 38,
|
|
28052
|
+
column: 40
|
|
28053
|
+
},
|
|
28054
|
+
end: {
|
|
28055
|
+
line: 42,
|
|
28056
|
+
column: 3
|
|
28057
|
+
}
|
|
28058
|
+
},
|
|
28059
|
+
line: 38
|
|
28119
28060
|
},
|
|
28120
28061
|
"5": {
|
|
28121
|
-
|
|
28122
|
-
|
|
28123
|
-
|
|
28062
|
+
name: "(anonymous_5)",
|
|
28063
|
+
decl: {
|
|
28064
|
+
start: {
|
|
28065
|
+
line: 45,
|
|
28066
|
+
column: 27
|
|
28067
|
+
},
|
|
28068
|
+
end: {
|
|
28069
|
+
line: 45,
|
|
28070
|
+
column: 28
|
|
28071
|
+
}
|
|
28124
28072
|
},
|
|
28125
|
-
|
|
28126
|
-
|
|
28127
|
-
|
|
28128
|
-
|
|
28073
|
+
loc: {
|
|
28074
|
+
start: {
|
|
28075
|
+
line: 46,
|
|
28076
|
+
column: 2
|
|
28077
|
+
},
|
|
28078
|
+
end: {
|
|
28079
|
+
line: 48,
|
|
28080
|
+
column: 32
|
|
28081
|
+
}
|
|
28082
|
+
},
|
|
28083
|
+
line: 46
|
|
28129
28084
|
},
|
|
28130
28085
|
"6": {
|
|
28131
|
-
|
|
28132
|
-
|
|
28133
|
-
|
|
28086
|
+
name: "(anonymous_6)",
|
|
28087
|
+
decl: {
|
|
28088
|
+
start: {
|
|
28089
|
+
line: 50,
|
|
28090
|
+
column: 35
|
|
28091
|
+
},
|
|
28092
|
+
end: {
|
|
28093
|
+
line: 50,
|
|
28094
|
+
column: 36
|
|
28095
|
+
}
|
|
28134
28096
|
},
|
|
28135
|
-
|
|
28136
|
-
|
|
28137
|
-
|
|
28138
|
-
|
|
28097
|
+
loc: {
|
|
28098
|
+
start: {
|
|
28099
|
+
line: 50,
|
|
28100
|
+
column: 76
|
|
28101
|
+
},
|
|
28102
|
+
end: {
|
|
28103
|
+
line: 66,
|
|
28104
|
+
column: 1
|
|
28105
|
+
}
|
|
28106
|
+
},
|
|
28107
|
+
line: 50
|
|
28139
28108
|
},
|
|
28140
28109
|
"7": {
|
|
28141
|
-
|
|
28142
|
-
|
|
28143
|
-
|
|
28110
|
+
name: "(anonymous_7)",
|
|
28111
|
+
decl: {
|
|
28112
|
+
start: {
|
|
28113
|
+
line: 68,
|
|
28114
|
+
column: 29
|
|
28115
|
+
},
|
|
28116
|
+
end: {
|
|
28117
|
+
line: 68,
|
|
28118
|
+
column: 30
|
|
28119
|
+
}
|
|
28144
28120
|
},
|
|
28145
|
-
|
|
28146
|
-
|
|
28147
|
-
|
|
28148
|
-
|
|
28149
|
-
|
|
28150
|
-
|
|
28151
|
-
|
|
28152
|
-
|
|
28153
|
-
|
|
28121
|
+
loc: {
|
|
28122
|
+
start: {
|
|
28123
|
+
line: 72,
|
|
28124
|
+
column: 2
|
|
28125
|
+
},
|
|
28126
|
+
end: {
|
|
28127
|
+
line: 85,
|
|
28128
|
+
column: 7
|
|
28129
|
+
}
|
|
28154
28130
|
},
|
|
28155
|
-
|
|
28156
|
-
line: 25,
|
|
28157
|
-
column: 50
|
|
28158
|
-
}
|
|
28131
|
+
line: 72
|
|
28159
28132
|
},
|
|
28160
|
-
"
|
|
28161
|
-
|
|
28162
|
-
|
|
28163
|
-
|
|
28133
|
+
"8": {
|
|
28134
|
+
name: "(anonymous_8)",
|
|
28135
|
+
decl: {
|
|
28136
|
+
start: {
|
|
28137
|
+
line: 87,
|
|
28138
|
+
column: 51
|
|
28139
|
+
},
|
|
28140
|
+
end: {
|
|
28141
|
+
line: 87,
|
|
28142
|
+
column: 52
|
|
28143
|
+
}
|
|
28164
28144
|
},
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28168
|
-
|
|
28169
|
-
|
|
28170
|
-
|
|
28171
|
-
|
|
28172
|
-
|
|
28173
|
-
|
|
28174
|
-
},
|
|
28175
|
-
end: {
|
|
28176
|
-
line: 44,
|
|
28177
|
-
column: 1
|
|
28178
|
-
}
|
|
28179
|
-
},
|
|
28180
|
-
"11": {
|
|
28181
|
-
start: {
|
|
28182
|
-
line: 31,
|
|
28183
|
-
column: 2
|
|
28184
|
-
},
|
|
28185
|
-
end: {
|
|
28186
|
-
line: 31,
|
|
28187
|
-
column: 30
|
|
28188
|
-
}
|
|
28189
|
-
},
|
|
28190
|
-
"12": {
|
|
28191
|
-
start: {
|
|
28192
|
-
line: 31,
|
|
28193
|
-
column: 20
|
|
28194
|
-
},
|
|
28195
|
-
end: {
|
|
28196
|
-
line: 31,
|
|
28197
|
-
column: 30
|
|
28198
|
-
}
|
|
28199
|
-
},
|
|
28200
|
-
"13": {
|
|
28201
|
-
start: {
|
|
28202
|
-
line: 33,
|
|
28203
|
-
column: 19
|
|
28204
|
-
},
|
|
28205
|
-
end: {
|
|
28206
|
-
line: 33,
|
|
28207
|
-
column: 43
|
|
28208
|
-
}
|
|
28209
|
-
},
|
|
28210
|
-
"14": {
|
|
28211
|
-
start: {
|
|
28212
|
-
line: 34,
|
|
28213
|
-
column: 30
|
|
28214
|
-
},
|
|
28215
|
-
end: {
|
|
28216
|
-
line: 36,
|
|
28217
|
-
column: 3
|
|
28218
|
-
}
|
|
28219
|
-
},
|
|
28220
|
-
"15": {
|
|
28221
|
-
start: {
|
|
28222
|
-
line: 37,
|
|
28223
|
-
column: 25
|
|
28224
|
-
},
|
|
28225
|
-
end: {
|
|
28226
|
-
line: 37,
|
|
28227
|
-
column: 63
|
|
28228
|
-
}
|
|
28229
|
-
},
|
|
28230
|
-
"16": {
|
|
28231
|
-
start: {
|
|
28232
|
-
line: 39,
|
|
28233
|
-
column: 2
|
|
28234
|
-
},
|
|
28235
|
-
end: {
|
|
28236
|
-
line: 43,
|
|
28237
|
-
column: 6
|
|
28238
|
-
}
|
|
28239
|
-
},
|
|
28240
|
-
"17": {
|
|
28241
|
-
start: {
|
|
28242
|
-
line: 39,
|
|
28243
|
-
column: 40
|
|
28244
|
-
},
|
|
28245
|
-
end: {
|
|
28246
|
-
line: 43,
|
|
28247
|
-
column: 3
|
|
28248
|
-
}
|
|
28249
|
-
},
|
|
28250
|
-
"18": {
|
|
28251
|
-
start: {
|
|
28252
|
-
line: 46,
|
|
28253
|
-
column: 27
|
|
28254
|
-
},
|
|
28255
|
-
end: {
|
|
28256
|
-
line: 49,
|
|
28257
|
-
column: 27
|
|
28258
|
-
}
|
|
28259
|
-
},
|
|
28260
|
-
"19": {
|
|
28261
|
-
start: {
|
|
28262
|
-
line: 47,
|
|
28263
|
-
column: 2
|
|
28264
|
-
},
|
|
28265
|
-
end: {
|
|
28266
|
-
line: 49,
|
|
28267
|
-
column: 27
|
|
28268
|
-
}
|
|
28269
|
-
},
|
|
28270
|
-
"20": {
|
|
28271
|
-
start: {
|
|
28272
|
-
line: 51,
|
|
28273
|
-
column: 35
|
|
28274
|
-
},
|
|
28275
|
-
end: {
|
|
28276
|
-
line: 67,
|
|
28277
|
-
column: 2
|
|
28278
|
-
}
|
|
28279
|
-
},
|
|
28280
|
-
"21": {
|
|
28281
|
-
start: {
|
|
28282
|
-
line: 51,
|
|
28283
|
-
column: 76
|
|
28284
|
-
},
|
|
28285
|
-
end: {
|
|
28286
|
-
line: 67,
|
|
28287
|
-
column: 1
|
|
28288
|
-
}
|
|
28289
|
-
},
|
|
28290
|
-
"22": {
|
|
28291
|
-
start: {
|
|
28292
|
-
line: 69,
|
|
28293
|
-
column: 29
|
|
28294
|
-
},
|
|
28295
|
-
end: {
|
|
28296
|
-
line: 86,
|
|
28297
|
-
column: 7
|
|
28298
|
-
}
|
|
28299
|
-
},
|
|
28300
|
-
"23": {
|
|
28301
|
-
start: {
|
|
28302
|
-
line: 73,
|
|
28303
|
-
column: 2
|
|
28304
|
-
},
|
|
28305
|
-
end: {
|
|
28306
|
-
line: 86,
|
|
28307
|
-
column: 7
|
|
28308
|
-
}
|
|
28309
|
-
},
|
|
28310
|
-
"24": {
|
|
28311
|
-
start: {
|
|
28312
|
-
line: 88,
|
|
28313
|
-
column: 51
|
|
28314
|
-
},
|
|
28315
|
-
end: {
|
|
28316
|
-
line: 97,
|
|
28317
|
-
column: 2
|
|
28318
|
-
}
|
|
28319
|
-
},
|
|
28320
|
-
"25": {
|
|
28321
|
-
start: {
|
|
28322
|
-
line: 92,
|
|
28323
|
-
column: 7
|
|
28145
|
+
loc: {
|
|
28146
|
+
start: {
|
|
28147
|
+
line: 91,
|
|
28148
|
+
column: 7
|
|
28149
|
+
},
|
|
28150
|
+
end: {
|
|
28151
|
+
line: 96,
|
|
28152
|
+
column: 1
|
|
28153
|
+
}
|
|
28324
28154
|
},
|
|
28325
|
-
|
|
28326
|
-
line: 97,
|
|
28327
|
-
column: 1
|
|
28328
|
-
}
|
|
28155
|
+
line: 91
|
|
28329
28156
|
}
|
|
28330
28157
|
},
|
|
28331
|
-
|
|
28158
|
+
branchMap: {
|
|
28332
28159
|
"0": {
|
|
28333
|
-
|
|
28334
|
-
decl: {
|
|
28160
|
+
loc: {
|
|
28335
28161
|
start: {
|
|
28336
28162
|
line: 10,
|
|
28337
|
-
column:
|
|
28163
|
+
column: 2
|
|
28338
28164
|
},
|
|
28339
28165
|
end: {
|
|
28340
|
-
line:
|
|
28341
|
-
column:
|
|
28166
|
+
line: 12,
|
|
28167
|
+
column: 25
|
|
28342
28168
|
}
|
|
28343
28169
|
},
|
|
28344
|
-
|
|
28170
|
+
type: "cond-expr",
|
|
28171
|
+
locations: [{
|
|
28345
28172
|
start: {
|
|
28346
28173
|
line: 11,
|
|
28347
|
-
column:
|
|
28174
|
+
column: 6
|
|
28348
28175
|
},
|
|
28349
28176
|
end: {
|
|
28350
|
-
line:
|
|
28177
|
+
line: 11,
|
|
28178
|
+
column: 72
|
|
28179
|
+
}
|
|
28180
|
+
}, {
|
|
28181
|
+
start: {
|
|
28182
|
+
line: 12,
|
|
28183
|
+
column: 6
|
|
28184
|
+
},
|
|
28185
|
+
end: {
|
|
28186
|
+
line: 12,
|
|
28351
28187
|
column: 25
|
|
28352
28188
|
}
|
|
28353
|
-
},
|
|
28354
|
-
line:
|
|
28189
|
+
}],
|
|
28190
|
+
line: 10
|
|
28355
28191
|
},
|
|
28356
28192
|
"1": {
|
|
28357
|
-
|
|
28358
|
-
decl: {
|
|
28193
|
+
loc: {
|
|
28359
28194
|
start: {
|
|
28360
28195
|
line: 15,
|
|
28361
|
-
column:
|
|
28196
|
+
column: 2
|
|
28362
28197
|
},
|
|
28363
28198
|
end: {
|
|
28364
28199
|
line: 15,
|
|
28365
|
-
column:
|
|
28200
|
+
column: 41
|
|
28366
28201
|
}
|
|
28367
28202
|
},
|
|
28368
|
-
|
|
28203
|
+
type: "binary-expr",
|
|
28204
|
+
locations: [{
|
|
28369
28205
|
start: {
|
|
28370
|
-
line:
|
|
28206
|
+
line: 15,
|
|
28371
28207
|
column: 2
|
|
28372
28208
|
},
|
|
28373
28209
|
end: {
|
|
28374
|
-
line:
|
|
28210
|
+
line: 15,
|
|
28211
|
+
column: 33
|
|
28212
|
+
}
|
|
28213
|
+
}, {
|
|
28214
|
+
start: {
|
|
28215
|
+
line: 15,
|
|
28216
|
+
column: 37
|
|
28217
|
+
},
|
|
28218
|
+
end: {
|
|
28219
|
+
line: 15,
|
|
28375
28220
|
column: 41
|
|
28376
28221
|
}
|
|
28377
|
-
},
|
|
28378
|
-
line:
|
|
28222
|
+
}],
|
|
28223
|
+
line: 15
|
|
28379
28224
|
},
|
|
28380
28225
|
"2": {
|
|
28381
|
-
|
|
28382
|
-
decl: {
|
|
28226
|
+
loc: {
|
|
28383
28227
|
start: {
|
|
28384
28228
|
line: 18,
|
|
28385
|
-
column:
|
|
28229
|
+
column: 2
|
|
28386
28230
|
},
|
|
28387
28231
|
end: {
|
|
28388
|
-
line:
|
|
28389
|
-
column:
|
|
28232
|
+
line: 20,
|
|
28233
|
+
column: 3
|
|
28390
28234
|
}
|
|
28391
28235
|
},
|
|
28392
|
-
|
|
28236
|
+
type: "if",
|
|
28237
|
+
locations: [{
|
|
28393
28238
|
start: {
|
|
28394
28239
|
line: 18,
|
|
28395
|
-
column:
|
|
28240
|
+
column: 2
|
|
28396
28241
|
},
|
|
28397
28242
|
end: {
|
|
28398
|
-
line:
|
|
28399
|
-
column:
|
|
28243
|
+
line: 20,
|
|
28244
|
+
column: 3
|
|
28400
28245
|
}
|
|
28401
|
-
},
|
|
28402
|
-
line: 18
|
|
28403
|
-
},
|
|
28404
|
-
"3": {
|
|
28405
|
-
name: "(anonymous_3)",
|
|
28406
|
-
decl: {
|
|
28246
|
+
}, {
|
|
28407
28247
|
start: {
|
|
28408
|
-
line:
|
|
28409
|
-
column:
|
|
28248
|
+
line: undefined,
|
|
28249
|
+
column: undefined
|
|
28410
28250
|
},
|
|
28411
28251
|
end: {
|
|
28412
|
-
line:
|
|
28413
|
-
column:
|
|
28414
|
-
}
|
|
28415
|
-
},
|
|
28416
|
-
loc: {
|
|
28417
|
-
start: {
|
|
28418
|
-
line: 30,
|
|
28419
|
-
column: 71
|
|
28420
|
-
},
|
|
28421
|
-
end: {
|
|
28422
|
-
line: 44,
|
|
28423
|
-
column: 1
|
|
28252
|
+
line: undefined,
|
|
28253
|
+
column: undefined
|
|
28424
28254
|
}
|
|
28425
|
-
},
|
|
28426
|
-
line:
|
|
28255
|
+
}],
|
|
28256
|
+
line: 18
|
|
28427
28257
|
},
|
|
28428
|
-
"
|
|
28429
|
-
name: "(anonymous_4)",
|
|
28430
|
-
decl: {
|
|
28431
|
-
start: {
|
|
28432
|
-
line: 39,
|
|
28433
|
-
column: 28
|
|
28434
|
-
},
|
|
28435
|
-
end: {
|
|
28436
|
-
line: 39,
|
|
28437
|
-
column: 29
|
|
28438
|
-
}
|
|
28439
|
-
},
|
|
28258
|
+
"3": {
|
|
28440
28259
|
loc: {
|
|
28441
28260
|
start: {
|
|
28442
|
-
line:
|
|
28443
|
-
column:
|
|
28261
|
+
line: 26,
|
|
28262
|
+
column: 9
|
|
28444
28263
|
},
|
|
28445
28264
|
end: {
|
|
28446
|
-
line:
|
|
28447
|
-
column:
|
|
28265
|
+
line: 26,
|
|
28266
|
+
column: 41
|
|
28448
28267
|
}
|
|
28449
28268
|
},
|
|
28450
|
-
|
|
28451
|
-
|
|
28452
|
-
"5": {
|
|
28453
|
-
name: "(anonymous_5)",
|
|
28454
|
-
decl: {
|
|
28269
|
+
type: "cond-expr",
|
|
28270
|
+
locations: [{
|
|
28455
28271
|
start: {
|
|
28456
|
-
line:
|
|
28457
|
-
column:
|
|
28272
|
+
line: 26,
|
|
28273
|
+
column: 16
|
|
28458
28274
|
},
|
|
28459
28275
|
end: {
|
|
28460
|
-
line:
|
|
28461
|
-
column:
|
|
28276
|
+
line: 26,
|
|
28277
|
+
column: 25
|
|
28462
28278
|
}
|
|
28463
|
-
},
|
|
28464
|
-
loc: {
|
|
28279
|
+
}, {
|
|
28465
28280
|
start: {
|
|
28466
|
-
line:
|
|
28467
|
-
column:
|
|
28281
|
+
line: 26,
|
|
28282
|
+
column: 28
|
|
28468
28283
|
},
|
|
28469
28284
|
end: {
|
|
28470
|
-
line:
|
|
28471
|
-
column:
|
|
28285
|
+
line: 26,
|
|
28286
|
+
column: 41
|
|
28472
28287
|
}
|
|
28473
|
-
},
|
|
28474
|
-
line:
|
|
28288
|
+
}],
|
|
28289
|
+
line: 26
|
|
28475
28290
|
},
|
|
28476
|
-
"
|
|
28477
|
-
name: "(anonymous_6)",
|
|
28478
|
-
decl: {
|
|
28479
|
-
start: {
|
|
28480
|
-
line: 51,
|
|
28481
|
-
column: 35
|
|
28482
|
-
},
|
|
28483
|
-
end: {
|
|
28484
|
-
line: 51,
|
|
28485
|
-
column: 36
|
|
28486
|
-
}
|
|
28487
|
-
},
|
|
28291
|
+
"4": {
|
|
28488
28292
|
loc: {
|
|
28489
28293
|
start: {
|
|
28490
|
-
line:
|
|
28491
|
-
column:
|
|
28492
|
-
},
|
|
28493
|
-
end: {
|
|
28494
|
-
line: 67,
|
|
28495
|
-
column: 1
|
|
28496
|
-
}
|
|
28497
|
-
},
|
|
28498
|
-
line: 51
|
|
28499
|
-
},
|
|
28500
|
-
"7": {
|
|
28501
|
-
name: "(anonymous_7)",
|
|
28502
|
-
decl: {
|
|
28503
|
-
start: {
|
|
28504
|
-
line: 69,
|
|
28505
|
-
column: 29
|
|
28294
|
+
line: 30,
|
|
28295
|
+
column: 2
|
|
28506
28296
|
},
|
|
28507
28297
|
end: {
|
|
28508
|
-
line:
|
|
28298
|
+
line: 30,
|
|
28509
28299
|
column: 30
|
|
28510
28300
|
}
|
|
28511
28301
|
},
|
|
28512
|
-
|
|
28302
|
+
type: "if",
|
|
28303
|
+
locations: [{
|
|
28513
28304
|
start: {
|
|
28514
|
-
line:
|
|
28305
|
+
line: 30,
|
|
28515
28306
|
column: 2
|
|
28516
28307
|
},
|
|
28517
28308
|
end: {
|
|
28518
|
-
line:
|
|
28519
|
-
column:
|
|
28520
|
-
}
|
|
28521
|
-
},
|
|
28522
|
-
line: 73
|
|
28523
|
-
},
|
|
28524
|
-
"8": {
|
|
28525
|
-
name: "(anonymous_8)",
|
|
28526
|
-
decl: {
|
|
28527
|
-
start: {
|
|
28528
|
-
line: 88,
|
|
28529
|
-
column: 51
|
|
28530
|
-
},
|
|
28531
|
-
end: {
|
|
28532
|
-
line: 88,
|
|
28533
|
-
column: 52
|
|
28309
|
+
line: 30,
|
|
28310
|
+
column: 30
|
|
28534
28311
|
}
|
|
28535
|
-
},
|
|
28536
|
-
loc: {
|
|
28312
|
+
}, {
|
|
28537
28313
|
start: {
|
|
28538
|
-
line:
|
|
28539
|
-
column:
|
|
28314
|
+
line: undefined,
|
|
28315
|
+
column: undefined
|
|
28540
28316
|
},
|
|
28541
28317
|
end: {
|
|
28542
|
-
line:
|
|
28543
|
-
column:
|
|
28318
|
+
line: undefined,
|
|
28319
|
+
column: undefined
|
|
28544
28320
|
}
|
|
28545
|
-
},
|
|
28546
|
-
line:
|
|
28547
|
-
}
|
|
28548
|
-
|
|
28549
|
-
branchMap: {
|
|
28550
|
-
"0": {
|
|
28321
|
+
}],
|
|
28322
|
+
line: 30
|
|
28323
|
+
},
|
|
28324
|
+
"5": {
|
|
28551
28325
|
loc: {
|
|
28552
28326
|
start: {
|
|
28553
|
-
line:
|
|
28327
|
+
line: 46,
|
|
28554
28328
|
column: 2
|
|
28555
28329
|
},
|
|
28556
28330
|
end: {
|
|
28557
|
-
line:
|
|
28558
|
-
column:
|
|
28331
|
+
line: 48,
|
|
28332
|
+
column: 32
|
|
28559
28333
|
}
|
|
28560
28334
|
},
|
|
28561
28335
|
type: "cond-expr",
|
|
28562
28336
|
locations: [{
|
|
28563
28337
|
start: {
|
|
28564
|
-
line:
|
|
28338
|
+
line: 47,
|
|
28565
28339
|
column: 6
|
|
28566
28340
|
},
|
|
28567
28341
|
end: {
|
|
28568
|
-
line:
|
|
28569
|
-
column:
|
|
28342
|
+
line: 47,
|
|
28343
|
+
column: 29
|
|
28570
28344
|
}
|
|
28571
28345
|
}, {
|
|
28572
28346
|
start: {
|
|
28573
|
-
line:
|
|
28347
|
+
line: 48,
|
|
28574
28348
|
column: 6
|
|
28575
28349
|
},
|
|
28576
28350
|
end: {
|
|
28577
|
-
line:
|
|
28578
|
-
column:
|
|
28351
|
+
line: 48,
|
|
28352
|
+
column: 32
|
|
28579
28353
|
}
|
|
28580
28354
|
}],
|
|
28581
|
-
line:
|
|
28355
|
+
line: 46
|
|
28582
28356
|
},
|
|
28583
|
-
"
|
|
28357
|
+
"6": {
|
|
28584
28358
|
loc: {
|
|
28585
28359
|
start: {
|
|
28586
|
-
line:
|
|
28587
|
-
column:
|
|
28360
|
+
line: 51,
|
|
28361
|
+
column: 13
|
|
28588
28362
|
},
|
|
28589
28363
|
end: {
|
|
28590
|
-
line:
|
|
28591
|
-
column:
|
|
28364
|
+
line: 51,
|
|
28365
|
+
column: 44
|
|
28592
28366
|
}
|
|
28593
28367
|
},
|
|
28594
28368
|
type: "binary-expr",
|
|
28595
28369
|
locations: [{
|
|
28596
28370
|
start: {
|
|
28597
|
-
line:
|
|
28598
|
-
column:
|
|
28371
|
+
line: 51,
|
|
28372
|
+
column: 13
|
|
28599
28373
|
},
|
|
28600
28374
|
end: {
|
|
28601
|
-
line:
|
|
28602
|
-
column:
|
|
28375
|
+
line: 51,
|
|
28376
|
+
column: 38
|
|
28603
28377
|
}
|
|
28604
28378
|
}, {
|
|
28605
28379
|
start: {
|
|
28606
|
-
line:
|
|
28607
|
-
column:
|
|
28380
|
+
line: 51,
|
|
28381
|
+
column: 42
|
|
28608
28382
|
},
|
|
28609
28383
|
end: {
|
|
28610
|
-
line:
|
|
28611
|
-
column:
|
|
28384
|
+
line: 51,
|
|
28385
|
+
column: 44
|
|
28612
28386
|
}
|
|
28613
28387
|
}],
|
|
28614
|
-
line:
|
|
28388
|
+
line: 51
|
|
28615
28389
|
},
|
|
28616
|
-
"
|
|
28390
|
+
"7": {
|
|
28617
28391
|
loc: {
|
|
28618
28392
|
start: {
|
|
28619
|
-
line:
|
|
28620
|
-
column:
|
|
28393
|
+
line: 52,
|
|
28394
|
+
column: 12
|
|
28621
28395
|
},
|
|
28622
28396
|
end: {
|
|
28623
|
-
line:
|
|
28624
|
-
column:
|
|
28397
|
+
line: 52,
|
|
28398
|
+
column: 42
|
|
28625
28399
|
}
|
|
28626
28400
|
},
|
|
28627
|
-
type: "
|
|
28401
|
+
type: "binary-expr",
|
|
28628
28402
|
locations: [{
|
|
28629
28403
|
start: {
|
|
28630
|
-
line:
|
|
28631
|
-
column:
|
|
28404
|
+
line: 52,
|
|
28405
|
+
column: 12
|
|
28632
28406
|
},
|
|
28633
28407
|
end: {
|
|
28634
|
-
line:
|
|
28635
|
-
column:
|
|
28408
|
+
line: 52,
|
|
28409
|
+
column: 36
|
|
28636
28410
|
}
|
|
28637
28411
|
}, {
|
|
28638
28412
|
start: {
|
|
28639
|
-
line:
|
|
28640
|
-
column:
|
|
28413
|
+
line: 52,
|
|
28414
|
+
column: 40
|
|
28641
28415
|
},
|
|
28642
28416
|
end: {
|
|
28643
|
-
line:
|
|
28644
|
-
column:
|
|
28417
|
+
line: 52,
|
|
28418
|
+
column: 42
|
|
28645
28419
|
}
|
|
28646
28420
|
}],
|
|
28647
|
-
line:
|
|
28421
|
+
line: 52
|
|
28648
28422
|
},
|
|
28649
|
-
"
|
|
28423
|
+
"8": {
|
|
28650
28424
|
loc: {
|
|
28651
28425
|
start: {
|
|
28652
|
-
line:
|
|
28653
|
-
column:
|
|
28426
|
+
line: 53,
|
|
28427
|
+
column: 10
|
|
28654
28428
|
},
|
|
28655
28429
|
end: {
|
|
28656
|
-
line:
|
|
28657
|
-
column:
|
|
28430
|
+
line: 61,
|
|
28431
|
+
column: 8
|
|
28658
28432
|
}
|
|
28659
28433
|
},
|
|
28660
28434
|
type: "cond-expr",
|
|
28661
28435
|
locations: [{
|
|
28662
28436
|
start: {
|
|
28663
|
-
line:
|
|
28664
|
-
column:
|
|
28437
|
+
line: 54,
|
|
28438
|
+
column: 6
|
|
28665
28439
|
},
|
|
28666
28440
|
end: {
|
|
28667
|
-
line:
|
|
28668
|
-
column:
|
|
28441
|
+
line: 60,
|
|
28442
|
+
column: 7
|
|
28669
28443
|
}
|
|
28670
28444
|
}, {
|
|
28671
28445
|
start: {
|
|
28672
|
-
line:
|
|
28673
|
-
column:
|
|
28446
|
+
line: 61,
|
|
28447
|
+
column: 6
|
|
28674
28448
|
},
|
|
28675
28449
|
end: {
|
|
28676
|
-
line:
|
|
28677
|
-
column:
|
|
28450
|
+
line: 61,
|
|
28451
|
+
column: 8
|
|
28678
28452
|
}
|
|
28679
28453
|
}],
|
|
28680
|
-
line:
|
|
28454
|
+
line: 53
|
|
28681
28455
|
},
|
|
28682
|
-
"
|
|
28456
|
+
"9": {
|
|
28683
28457
|
loc: {
|
|
28684
28458
|
start: {
|
|
28685
|
-
line:
|
|
28686
|
-
column:
|
|
28459
|
+
line: 62,
|
|
28460
|
+
column: 8
|
|
28687
28461
|
},
|
|
28688
28462
|
end: {
|
|
28689
|
-
line:
|
|
28690
|
-
column:
|
|
28463
|
+
line: 62,
|
|
28464
|
+
column: 52
|
|
28691
28465
|
}
|
|
28692
28466
|
},
|
|
28693
|
-
type: "
|
|
28467
|
+
type: "binary-expr",
|
|
28694
28468
|
locations: [{
|
|
28695
28469
|
start: {
|
|
28696
|
-
line:
|
|
28697
|
-
column:
|
|
28470
|
+
line: 62,
|
|
28471
|
+
column: 8
|
|
28698
28472
|
},
|
|
28699
28473
|
end: {
|
|
28700
|
-
line:
|
|
28701
|
-
column:
|
|
28474
|
+
line: 62,
|
|
28475
|
+
column: 28
|
|
28702
28476
|
}
|
|
28703
28477
|
}, {
|
|
28704
28478
|
start: {
|
|
28705
|
-
line:
|
|
28706
|
-
column:
|
|
28479
|
+
line: 62,
|
|
28480
|
+
column: 32
|
|
28707
28481
|
},
|
|
28708
28482
|
end: {
|
|
28709
|
-
line:
|
|
28710
|
-
column:
|
|
28483
|
+
line: 62,
|
|
28484
|
+
column: 46
|
|
28485
|
+
}
|
|
28486
|
+
}, {
|
|
28487
|
+
start: {
|
|
28488
|
+
line: 62,
|
|
28489
|
+
column: 50
|
|
28490
|
+
},
|
|
28491
|
+
end: {
|
|
28492
|
+
line: 62,
|
|
28493
|
+
column: 52
|
|
28711
28494
|
}
|
|
28712
28495
|
}],
|
|
28713
|
-
line:
|
|
28496
|
+
line: 62
|
|
28714
28497
|
},
|
|
28715
|
-
"
|
|
28498
|
+
"10": {
|
|
28716
28499
|
loc: {
|
|
28717
28500
|
start: {
|
|
28718
|
-
line:
|
|
28501
|
+
line: 63,
|
|
28502
|
+
column: 6
|
|
28503
|
+
},
|
|
28504
|
+
end: {
|
|
28505
|
+
line: 65,
|
|
28506
|
+
column: 3
|
|
28507
|
+
}
|
|
28508
|
+
},
|
|
28509
|
+
type: "binary-expr",
|
|
28510
|
+
locations: [{
|
|
28511
|
+
start: {
|
|
28512
|
+
line: 63,
|
|
28513
|
+
column: 6
|
|
28514
|
+
},
|
|
28515
|
+
end: {
|
|
28516
|
+
line: 63,
|
|
28517
|
+
column: 21
|
|
28518
|
+
}
|
|
28519
|
+
}, {
|
|
28520
|
+
start: {
|
|
28521
|
+
line: 63,
|
|
28522
|
+
column: 25
|
|
28523
|
+
},
|
|
28524
|
+
end: {
|
|
28525
|
+
line: 65,
|
|
28526
|
+
column: 3
|
|
28527
|
+
}
|
|
28528
|
+
}],
|
|
28529
|
+
line: 63
|
|
28530
|
+
},
|
|
28531
|
+
"11": {
|
|
28532
|
+
loc: {
|
|
28533
|
+
start: {
|
|
28534
|
+
line: 70,
|
|
28719
28535
|
column: 2
|
|
28720
28536
|
},
|
|
28721
28537
|
end: {
|
|
28722
|
-
line:
|
|
28723
|
-
column:
|
|
28538
|
+
line: 70,
|
|
28539
|
+
column: 23
|
|
28540
|
+
}
|
|
28541
|
+
},
|
|
28542
|
+
type: "default-arg",
|
|
28543
|
+
locations: [{
|
|
28544
|
+
start: {
|
|
28545
|
+
line: 70,
|
|
28546
|
+
column: 19
|
|
28547
|
+
},
|
|
28548
|
+
end: {
|
|
28549
|
+
line: 70,
|
|
28550
|
+
column: 23
|
|
28724
28551
|
}
|
|
28552
|
+
}],
|
|
28553
|
+
line: 70
|
|
28554
|
+
},
|
|
28555
|
+
"12": {
|
|
28556
|
+
loc: {
|
|
28557
|
+
start: {
|
|
28558
|
+
line: 72,
|
|
28559
|
+
column: 2
|
|
28560
|
+
},
|
|
28561
|
+
end: {
|
|
28562
|
+
line: 85,
|
|
28563
|
+
column: 7
|
|
28564
|
+
}
|
|
28565
|
+
},
|
|
28566
|
+
type: "cond-expr",
|
|
28567
|
+
locations: [{
|
|
28568
|
+
start: {
|
|
28569
|
+
line: 73,
|
|
28570
|
+
column: 6
|
|
28571
|
+
},
|
|
28572
|
+
end: {
|
|
28573
|
+
line: 78,
|
|
28574
|
+
column: 7
|
|
28575
|
+
}
|
|
28576
|
+
}, {
|
|
28577
|
+
start: {
|
|
28578
|
+
line: 79,
|
|
28579
|
+
column: 6
|
|
28580
|
+
},
|
|
28581
|
+
end: {
|
|
28582
|
+
line: 85,
|
|
28583
|
+
column: 7
|
|
28584
|
+
}
|
|
28585
|
+
}],
|
|
28586
|
+
line: 72
|
|
28587
|
+
}
|
|
28588
|
+
},
|
|
28589
|
+
s: {
|
|
28590
|
+
"0": 0,
|
|
28591
|
+
"1": 0,
|
|
28592
|
+
"2": 0,
|
|
28593
|
+
"3": 0,
|
|
28594
|
+
"4": 0,
|
|
28595
|
+
"5": 0,
|
|
28596
|
+
"6": 0,
|
|
28597
|
+
"7": 0,
|
|
28598
|
+
"8": 0,
|
|
28599
|
+
"9": 0,
|
|
28600
|
+
"10": 0,
|
|
28601
|
+
"11": 0,
|
|
28602
|
+
"12": 0,
|
|
28603
|
+
"13": 0,
|
|
28604
|
+
"14": 0,
|
|
28605
|
+
"15": 0,
|
|
28606
|
+
"16": 0,
|
|
28607
|
+
"17": 0,
|
|
28608
|
+
"18": 0,
|
|
28609
|
+
"19": 0,
|
|
28610
|
+
"20": 0,
|
|
28611
|
+
"21": 0,
|
|
28612
|
+
"22": 0,
|
|
28613
|
+
"23": 0,
|
|
28614
|
+
"24": 0,
|
|
28615
|
+
"25": 0
|
|
28616
|
+
},
|
|
28617
|
+
f: {
|
|
28618
|
+
"0": 0,
|
|
28619
|
+
"1": 0,
|
|
28620
|
+
"2": 0,
|
|
28621
|
+
"3": 0,
|
|
28622
|
+
"4": 0,
|
|
28623
|
+
"5": 0,
|
|
28624
|
+
"6": 0,
|
|
28625
|
+
"7": 0,
|
|
28626
|
+
"8": 0
|
|
28627
|
+
},
|
|
28628
|
+
b: {
|
|
28629
|
+
"0": [0, 0],
|
|
28630
|
+
"1": [0, 0],
|
|
28631
|
+
"2": [0, 0],
|
|
28632
|
+
"3": [0, 0],
|
|
28633
|
+
"4": [0, 0],
|
|
28634
|
+
"5": [0, 0],
|
|
28635
|
+
"6": [0, 0],
|
|
28636
|
+
"7": [0, 0],
|
|
28637
|
+
"8": [0, 0],
|
|
28638
|
+
"9": [0, 0, 0],
|
|
28639
|
+
"10": [0, 0],
|
|
28640
|
+
"11": [0],
|
|
28641
|
+
"12": [0, 0]
|
|
28642
|
+
},
|
|
28643
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
28644
|
+
hash: "57213eac81789537131dab690e02afc34690ccb8"
|
|
28645
|
+
};
|
|
28646
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
28647
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
28648
|
+
coverage[path] = coverageData;
|
|
28649
|
+
}
|
|
28650
|
+
var actualCoverage = coverage[path];
|
|
28651
|
+
{
|
|
28652
|
+
// @ts-ignore
|
|
28653
|
+
cov_oxacgfc93 = function () {
|
|
28654
|
+
return actualCoverage;
|
|
28655
|
+
};
|
|
28656
|
+
}
|
|
28657
|
+
return actualCoverage;
|
|
28658
|
+
}
|
|
28659
|
+
cov_oxacgfc93();
|
|
28660
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28661
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
28662
|
+
cov_oxacgfc93().s[0]++;
|
|
28663
|
+
var getProductName = function getProductName(activeAppRoles) {
|
|
28664
|
+
var _activeAppRoles$;
|
|
28665
|
+
cov_oxacgfc93().f[0]++;
|
|
28666
|
+
cov_oxacgfc93().s[1]++;
|
|
28667
|
+
return activeAppRoles !== null && activeAppRoles !== void 0 && (_activeAppRoles$ = activeAppRoles[0]) !== null && _activeAppRoles$ !== void 0 && _activeAppRoles$.appName ? (cov_oxacgfc93().b[0][0]++, instance.t("labels.neeto_", {
|
|
28668
|
+
product: activeAppRoles[0].appName
|
|
28669
|
+
})) : (cov_oxacgfc93().b[0][1]++, initializers.globalProps.appName);
|
|
28670
|
+
};
|
|
28671
|
+
cov_oxacgfc93().s[2]++;
|
|
28672
|
+
var getActiveRole = function getActiveRole(activeAppRoles, role) {
|
|
28673
|
+
var _activeAppRoles$2;
|
|
28674
|
+
cov_oxacgfc93().f[1]++;
|
|
28675
|
+
cov_oxacgfc93().s[3]++;
|
|
28676
|
+
return (cov_oxacgfc93().b[1][0]++, activeAppRoles === null || activeAppRoles === void 0 ? void 0 : (_activeAppRoles$2 = activeAppRoles[0]) === null || _activeAppRoles$2 === void 0 ? void 0 : _activeAppRoles$2.activeRole) || (cov_oxacgfc93().b[1][1]++, role);
|
|
28677
|
+
};
|
|
28678
|
+
cov_oxacgfc93().s[4]++;
|
|
28679
|
+
var getDefaultRole = function getDefaultRole(roles, currentAppRole, appName) {
|
|
28680
|
+
var _globalProps$appName;
|
|
28681
|
+
cov_oxacgfc93().f[2]++;
|
|
28682
|
+
cov_oxacgfc93().s[5]++;
|
|
28683
|
+
if (appName === ((_globalProps$appName = initializers.globalProps.appName) === null || _globalProps$appName === void 0 ? void 0 : _globalProps$appName.substring(5))) {
|
|
28684
|
+
cov_oxacgfc93().b[2][0]++;
|
|
28685
|
+
cov_oxacgfc93().s[6]++;
|
|
28686
|
+
return currentAppRole;
|
|
28687
|
+
} else {
|
|
28688
|
+
cov_oxacgfc93().b[2][1]++;
|
|
28689
|
+
}
|
|
28690
|
+
var condition = (cov_oxacgfc93().s[7]++, isAdminRole(currentAppRole));
|
|
28691
|
+
var role = (cov_oxacgfc93().s[8]++, pure._findBy({
|
|
28692
|
+
name: condition
|
|
28693
|
+
}, roles));
|
|
28694
|
+
cov_oxacgfc93().s[9]++;
|
|
28695
|
+
return role ? (cov_oxacgfc93().b[3][0]++, role.name) : (cov_oxacgfc93().b[3][1]++, roles[0].name);
|
|
28696
|
+
};
|
|
28697
|
+
cov_oxacgfc93().s[10]++;
|
|
28698
|
+
var generateAppsRolesInitialValue = function generateAppsRolesInitialValue(globalRoles, currentAppRole) {
|
|
28699
|
+
var _globalProps$appName2;
|
|
28700
|
+
cov_oxacgfc93().f[3]++;
|
|
28701
|
+
cov_oxacgfc93().s[11]++;
|
|
28702
|
+
if (!globalRoles) {
|
|
28703
|
+
cov_oxacgfc93().b[4][0]++;
|
|
28704
|
+
cov_oxacgfc93().s[12]++;
|
|
28705
|
+
return [];
|
|
28706
|
+
} else {
|
|
28707
|
+
cov_oxacgfc93().b[4][1]++;
|
|
28708
|
+
}
|
|
28709
|
+
var appNames = (cov_oxacgfc93().s[13]++, Object.keys(globalRoles));
|
|
28710
|
+
var currentAppNameIndex = (cov_oxacgfc93().s[14]++, appNames.indexOf((_globalProps$appName2 = initializers.globalProps.appName) === null || _globalProps$appName2 === void 0 ? void 0 : _globalProps$appName2.substring(5)));
|
|
28711
|
+
var appNamesSorted = (cov_oxacgfc93().s[15]++, ramda.move(currentAppNameIndex, 0, appNames));
|
|
28712
|
+
cov_oxacgfc93().s[16]++;
|
|
28713
|
+
return appNamesSorted.map(function (appName) {
|
|
28714
|
+
cov_oxacgfc93().f[4]++;
|
|
28715
|
+
cov_oxacgfc93().s[17]++;
|
|
28716
|
+
return {
|
|
28717
|
+
appName: appName,
|
|
28718
|
+
activeRole: getDefaultRole(globalRoles[appName], currentAppRole, appName),
|
|
28719
|
+
isEnabled: true
|
|
28720
|
+
};
|
|
28721
|
+
});
|
|
28722
|
+
};
|
|
28723
|
+
cov_oxacgfc93().s[18]++;
|
|
28724
|
+
var isAdminRole = function isAdminRole(role) {
|
|
28725
|
+
cov_oxacgfc93().f[5]++;
|
|
28726
|
+
cov_oxacgfc93().s[19]++;
|
|
28727
|
+
return ramda.includes(role, ADMIN_ROLES) ? (cov_oxacgfc93().b[5][0]++, ramda.equals(ADMIN_ROLE_NAME)) : (cov_oxacgfc93().b[5][1]++, pure.notEquals(ADMIN_ROLE_NAME));
|
|
28728
|
+
};
|
|
28729
|
+
cov_oxacgfc93().s[20]++;
|
|
28730
|
+
var renderInitialValues = function renderInitialValues(selectedMember, roles, globalRoles) {
|
|
28731
|
+
var _roles$, _roles$2;
|
|
28732
|
+
cov_oxacgfc93().f[6]++;
|
|
28733
|
+
cov_oxacgfc93().s[21]++;
|
|
28734
|
+
return _objectSpread$3({
|
|
28735
|
+
firstName: (cov_oxacgfc93().b[6][0]++, selectedMember === null || selectedMember === void 0 ? void 0 : selectedMember.firstName) || (cov_oxacgfc93().b[6][1]++, ""),
|
|
28736
|
+
lastName: (cov_oxacgfc93().b[7][0]++, selectedMember === null || selectedMember === void 0 ? void 0 : selectedMember.lastName) || (cov_oxacgfc93().b[7][1]++, ""),
|
|
28737
|
+
emails: selectedMember ? (cov_oxacgfc93().b[8][0]++, [{
|
|
28738
|
+
label: selectedMember.email,
|
|
28739
|
+
value: selectedMember.email,
|
|
28740
|
+
valid: true
|
|
28741
|
+
}]) : (cov_oxacgfc93().b[8][1]++, []),
|
|
28742
|
+
role: (cov_oxacgfc93().b[9][0]++, selectedMember === null || selectedMember === void 0 ? void 0 : selectedMember.role) || (cov_oxacgfc93().b[9][1]++, (_roles$ = roles[1]) === null || _roles$ === void 0 ? void 0 : _roles$.name) || (cov_oxacgfc93().b[9][2]++, "")
|
|
28743
|
+
}, (cov_oxacgfc93().b[10][0]++, !selectedMember) && (cov_oxacgfc93().b[10][1]++, {
|
|
28744
|
+
appRoles: generateAppsRolesInitialValue(globalRoles, (_roles$2 = roles[1]) === null || _roles$2 === void 0 ? void 0 : _roles$2.name)
|
|
28745
|
+
}));
|
|
28746
|
+
};
|
|
28747
|
+
cov_oxacgfc93().s[22]++;
|
|
28748
|
+
var renderPayload = function renderPayload(_ref) {
|
|
28749
|
+
var appRoles = _ref.appRoles,
|
|
28750
|
+
emails = _ref.emails,
|
|
28751
|
+
firstName = _ref.firstName,
|
|
28752
|
+
lastName = _ref.lastName,
|
|
28753
|
+
role = _ref.role;
|
|
28754
|
+
var selectedMember = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_oxacgfc93().b[11][0]++, null);
|
|
28755
|
+
cov_oxacgfc93().f[7]++;
|
|
28756
|
+
cov_oxacgfc93().s[23]++;
|
|
28757
|
+
return selectedMember ? (cov_oxacgfc93().b[12][0]++, {
|
|
28758
|
+
active: true,
|
|
28759
|
+
firstName: firstName,
|
|
28760
|
+
lastName: lastName,
|
|
28761
|
+
organizationRole: role
|
|
28762
|
+
}) : (cov_oxacgfc93().b[12][1]++, {
|
|
28763
|
+
user: {
|
|
28764
|
+
emails: ramda.pluck("value", emails),
|
|
28765
|
+
organizationRole: role,
|
|
28766
|
+
appRoles: appRoles
|
|
28767
|
+
}
|
|
28768
|
+
});
|
|
28769
|
+
};
|
|
28770
|
+
cov_oxacgfc93().s[24]++;
|
|
28771
|
+
var getSingleInvitationTranslationProps = function getSingleInvitationTranslationProps(_ref2) {
|
|
28772
|
+
var activeAppRoles = _ref2.activeAppRoles,
|
|
28773
|
+
role = _ref2.role,
|
|
28774
|
+
selectedEmail = _ref2.selectedEmail;
|
|
28775
|
+
cov_oxacgfc93().f[8]++;
|
|
28776
|
+
cov_oxacgfc93().s[25]++;
|
|
28777
|
+
return {
|
|
28778
|
+
count: selectedEmail.length,
|
|
28779
|
+
emails: selectedEmail,
|
|
28780
|
+
product: getProductName(activeAppRoles),
|
|
28781
|
+
role: getActiveRole(activeAppRoles, role)
|
|
28782
|
+
};
|
|
28783
|
+
};
|
|
28784
|
+
|
|
28785
|
+
function cov_d1gg5em61() {
|
|
28786
|
+
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/Confirmation.jsx";
|
|
28787
|
+
var hash = "93d79f32d8119513d8cb875480fa2209118ed0b9";
|
|
28788
|
+
var global = new Function("return this")();
|
|
28789
|
+
var gcv = "__coverage__";
|
|
28790
|
+
var coverageData = {
|
|
28791
|
+
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/Confirmation.jsx",
|
|
28792
|
+
statementMap: {
|
|
28793
|
+
"0": {
|
|
28794
|
+
start: {
|
|
28795
|
+
line: 14,
|
|
28796
|
+
column: 21
|
|
28797
|
+
},
|
|
28798
|
+
end: {
|
|
28799
|
+
line: 74,
|
|
28800
|
+
column: 1
|
|
28801
|
+
}
|
|
28802
|
+
},
|
|
28803
|
+
"1": {
|
|
28804
|
+
start: {
|
|
28805
|
+
line: 15,
|
|
28806
|
+
column: 16
|
|
28807
|
+
},
|
|
28808
|
+
end: {
|
|
28809
|
+
line: 15,
|
|
28810
|
+
column: 32
|
|
28811
|
+
}
|
|
28812
|
+
},
|
|
28813
|
+
"2": {
|
|
28814
|
+
start: {
|
|
28815
|
+
line: 18,
|
|
28816
|
+
column: 6
|
|
28817
|
+
},
|
|
28818
|
+
end: {
|
|
28819
|
+
line: 18,
|
|
28820
|
+
column: 24
|
|
28821
|
+
}
|
|
28822
|
+
},
|
|
28823
|
+
"3": {
|
|
28824
|
+
start: {
|
|
28825
|
+
line: 20,
|
|
28826
|
+
column: 24
|
|
28725
28827
|
},
|
|
28726
|
-
|
|
28727
|
-
|
|
28728
|
-
|
|
28729
|
-
|
|
28730
|
-
column: 6
|
|
28731
|
-
},
|
|
28732
|
-
end: {
|
|
28733
|
-
line: 48,
|
|
28734
|
-
column: 24
|
|
28735
|
-
}
|
|
28736
|
-
}, {
|
|
28737
|
-
start: {
|
|
28738
|
-
line: 49,
|
|
28739
|
-
column: 6
|
|
28740
|
-
},
|
|
28741
|
-
end: {
|
|
28742
|
-
line: 49,
|
|
28743
|
-
column: 27
|
|
28744
|
-
}
|
|
28745
|
-
}],
|
|
28746
|
-
line: 47
|
|
28828
|
+
end: {
|
|
28829
|
+
line: 20,
|
|
28830
|
+
column: 46
|
|
28831
|
+
}
|
|
28747
28832
|
},
|
|
28748
|
-
"
|
|
28749
|
-
|
|
28750
|
-
|
|
28751
|
-
|
|
28752
|
-
column: 13
|
|
28753
|
-
},
|
|
28754
|
-
end: {
|
|
28755
|
-
line: 52,
|
|
28756
|
-
column: 44
|
|
28757
|
-
}
|
|
28833
|
+
"4": {
|
|
28834
|
+
start: {
|
|
28835
|
+
line: 21,
|
|
28836
|
+
column: 25
|
|
28758
28837
|
},
|
|
28759
|
-
|
|
28760
|
-
|
|
28761
|
-
|
|
28762
|
-
|
|
28763
|
-
column: 13
|
|
28764
|
-
},
|
|
28765
|
-
end: {
|
|
28766
|
-
line: 52,
|
|
28767
|
-
column: 38
|
|
28768
|
-
}
|
|
28769
|
-
}, {
|
|
28770
|
-
start: {
|
|
28771
|
-
line: 52,
|
|
28772
|
-
column: 42
|
|
28773
|
-
},
|
|
28774
|
-
end: {
|
|
28775
|
-
line: 52,
|
|
28776
|
-
column: 44
|
|
28777
|
-
}
|
|
28778
|
-
}],
|
|
28779
|
-
line: 52
|
|
28838
|
+
end: {
|
|
28839
|
+
line: 21,
|
|
28840
|
+
column: 64
|
|
28841
|
+
}
|
|
28780
28842
|
},
|
|
28781
|
-
"
|
|
28782
|
-
|
|
28783
|
-
|
|
28784
|
-
|
|
28785
|
-
column: 12
|
|
28786
|
-
},
|
|
28787
|
-
end: {
|
|
28788
|
-
line: 53,
|
|
28789
|
-
column: 42
|
|
28790
|
-
}
|
|
28843
|
+
"5": {
|
|
28844
|
+
start: {
|
|
28845
|
+
line: 23,
|
|
28846
|
+
column: 2
|
|
28791
28847
|
},
|
|
28792
|
-
|
|
28793
|
-
|
|
28794
|
-
|
|
28795
|
-
|
|
28796
|
-
column: 12
|
|
28797
|
-
},
|
|
28798
|
-
end: {
|
|
28799
|
-
line: 53,
|
|
28800
|
-
column: 36
|
|
28801
|
-
}
|
|
28802
|
-
}, {
|
|
28803
|
-
start: {
|
|
28804
|
-
line: 53,
|
|
28805
|
-
column: 40
|
|
28806
|
-
},
|
|
28807
|
-
end: {
|
|
28808
|
-
line: 53,
|
|
28809
|
-
column: 42
|
|
28810
|
-
}
|
|
28811
|
-
}],
|
|
28812
|
-
line: 53
|
|
28848
|
+
end: {
|
|
28849
|
+
line: 73,
|
|
28850
|
+
column: 4
|
|
28851
|
+
}
|
|
28813
28852
|
},
|
|
28814
|
-
"
|
|
28815
|
-
|
|
28816
|
-
|
|
28817
|
-
|
|
28818
|
-
column: 10
|
|
28819
|
-
},
|
|
28820
|
-
end: {
|
|
28821
|
-
line: 62,
|
|
28822
|
-
column: 8
|
|
28823
|
-
}
|
|
28853
|
+
"6": {
|
|
28854
|
+
start: {
|
|
28855
|
+
line: 46,
|
|
28856
|
+
column: 12
|
|
28824
28857
|
},
|
|
28825
|
-
|
|
28826
|
-
|
|
28827
|
-
|
|
28828
|
-
|
|
28829
|
-
|
|
28830
|
-
|
|
28831
|
-
|
|
28832
|
-
|
|
28833
|
-
|
|
28834
|
-
|
|
28835
|
-
}, {
|
|
28858
|
+
end: {
|
|
28859
|
+
line: 57,
|
|
28860
|
+
column: 17
|
|
28861
|
+
}
|
|
28862
|
+
}
|
|
28863
|
+
},
|
|
28864
|
+
fnMap: {
|
|
28865
|
+
"0": {
|
|
28866
|
+
name: "(anonymous_0)",
|
|
28867
|
+
decl: {
|
|
28836
28868
|
start: {
|
|
28837
|
-
line:
|
|
28838
|
-
column:
|
|
28869
|
+
line: 14,
|
|
28870
|
+
column: 21
|
|
28839
28871
|
},
|
|
28840
28872
|
end: {
|
|
28841
|
-
line:
|
|
28842
|
-
column:
|
|
28873
|
+
line: 14,
|
|
28874
|
+
column: 22
|
|
28843
28875
|
}
|
|
28844
|
-
}
|
|
28845
|
-
line: 54
|
|
28846
|
-
},
|
|
28847
|
-
"9": {
|
|
28876
|
+
},
|
|
28848
28877
|
loc: {
|
|
28849
28878
|
start: {
|
|
28850
|
-
line:
|
|
28851
|
-
column:
|
|
28879
|
+
line: 14,
|
|
28880
|
+
column: 27
|
|
28852
28881
|
},
|
|
28853
28882
|
end: {
|
|
28854
|
-
line:
|
|
28855
|
-
column:
|
|
28883
|
+
line: 74,
|
|
28884
|
+
column: 1
|
|
28856
28885
|
}
|
|
28857
28886
|
},
|
|
28858
|
-
|
|
28859
|
-
locations: [{
|
|
28860
|
-
start: {
|
|
28861
|
-
line: 63,
|
|
28862
|
-
column: 8
|
|
28863
|
-
},
|
|
28864
|
-
end: {
|
|
28865
|
-
line: 63,
|
|
28866
|
-
column: 28
|
|
28867
|
-
}
|
|
28868
|
-
}, {
|
|
28869
|
-
start: {
|
|
28870
|
-
line: 63,
|
|
28871
|
-
column: 32
|
|
28872
|
-
},
|
|
28873
|
-
end: {
|
|
28874
|
-
line: 63,
|
|
28875
|
-
column: 46
|
|
28876
|
-
}
|
|
28877
|
-
}, {
|
|
28878
|
-
start: {
|
|
28879
|
-
line: 63,
|
|
28880
|
-
column: 50
|
|
28881
|
-
},
|
|
28882
|
-
end: {
|
|
28883
|
-
line: 63,
|
|
28884
|
-
column: 52
|
|
28885
|
-
}
|
|
28886
|
-
}],
|
|
28887
|
-
line: 63
|
|
28887
|
+
line: 14
|
|
28888
28888
|
},
|
|
28889
|
-
"
|
|
28890
|
-
|
|
28889
|
+
"1": {
|
|
28890
|
+
name: "(anonymous_1)",
|
|
28891
|
+
decl: {
|
|
28891
28892
|
start: {
|
|
28892
|
-
line:
|
|
28893
|
-
column:
|
|
28893
|
+
line: 45,
|
|
28894
|
+
column: 30
|
|
28894
28895
|
},
|
|
28895
28896
|
end: {
|
|
28896
|
-
line:
|
|
28897
|
-
column:
|
|
28897
|
+
line: 45,
|
|
28898
|
+
column: 31
|
|
28898
28899
|
}
|
|
28899
28900
|
},
|
|
28900
|
-
type: "binary-expr",
|
|
28901
|
-
locations: [{
|
|
28902
|
-
start: {
|
|
28903
|
-
line: 64,
|
|
28904
|
-
column: 6
|
|
28905
|
-
},
|
|
28906
|
-
end: {
|
|
28907
|
-
line: 64,
|
|
28908
|
-
column: 21
|
|
28909
|
-
}
|
|
28910
|
-
}, {
|
|
28911
|
-
start: {
|
|
28912
|
-
line: 64,
|
|
28913
|
-
column: 25
|
|
28914
|
-
},
|
|
28915
|
-
end: {
|
|
28916
|
-
line: 66,
|
|
28917
|
-
column: 3
|
|
28918
|
-
}
|
|
28919
|
-
}],
|
|
28920
|
-
line: 64
|
|
28921
|
-
},
|
|
28922
|
-
"11": {
|
|
28923
28901
|
loc: {
|
|
28924
28902
|
start: {
|
|
28925
|
-
line:
|
|
28926
|
-
column:
|
|
28903
|
+
line: 46,
|
|
28904
|
+
column: 12
|
|
28927
28905
|
},
|
|
28928
28906
|
end: {
|
|
28929
|
-
line:
|
|
28930
|
-
column:
|
|
28907
|
+
line: 57,
|
|
28908
|
+
column: 17
|
|
28931
28909
|
}
|
|
28932
28910
|
},
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
},
|
|
28939
|
-
end: {
|
|
28940
|
-
line: 71,
|
|
28941
|
-
column: 23
|
|
28942
|
-
}
|
|
28943
|
-
}],
|
|
28944
|
-
line: 71
|
|
28945
|
-
},
|
|
28946
|
-
"12": {
|
|
28911
|
+
line: 46
|
|
28912
|
+
}
|
|
28913
|
+
},
|
|
28914
|
+
branchMap: {
|
|
28915
|
+
"0": {
|
|
28947
28916
|
loc: {
|
|
28948
28917
|
start: {
|
|
28949
|
-
line:
|
|
28950
|
-
column:
|
|
28918
|
+
line: 23,
|
|
28919
|
+
column: 9
|
|
28951
28920
|
},
|
|
28952
28921
|
end: {
|
|
28953
|
-
line:
|
|
28954
|
-
column:
|
|
28922
|
+
line: 73,
|
|
28923
|
+
column: 3
|
|
28955
28924
|
}
|
|
28956
28925
|
},
|
|
28957
28926
|
type: "cond-expr",
|
|
28958
28927
|
locations: [{
|
|
28959
28928
|
start: {
|
|
28960
|
-
line:
|
|
28961
|
-
column:
|
|
28929
|
+
line: 24,
|
|
28930
|
+
column: 4
|
|
28962
28931
|
},
|
|
28963
28932
|
end: {
|
|
28964
|
-
line:
|
|
28965
|
-
column:
|
|
28933
|
+
line: 61,
|
|
28934
|
+
column: 10
|
|
28966
28935
|
}
|
|
28967
28936
|
}, {
|
|
28968
28937
|
start: {
|
|
28969
|
-
line:
|
|
28970
|
-
column:
|
|
28938
|
+
line: 63,
|
|
28939
|
+
column: 4
|
|
28971
28940
|
},
|
|
28972
28941
|
end: {
|
|
28973
|
-
line:
|
|
28974
|
-
column:
|
|
28942
|
+
line: 72,
|
|
28943
|
+
column: 17
|
|
28975
28944
|
}
|
|
28976
28945
|
}],
|
|
28977
|
-
line:
|
|
28946
|
+
line: 23
|
|
28978
28947
|
}
|
|
28979
28948
|
},
|
|
28980
28949
|
s: {
|
|
@@ -28984,55 +28953,245 @@ function cov_oxacgfc93() {
|
|
|
28984
28953
|
"3": 0,
|
|
28985
28954
|
"4": 0,
|
|
28986
28955
|
"5": 0,
|
|
28987
|
-
"6": 0
|
|
28988
|
-
|
|
28989
|
-
|
|
28990
|
-
"
|
|
28991
|
-
"
|
|
28992
|
-
|
|
28993
|
-
|
|
28994
|
-
"
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29000
|
-
|
|
29001
|
-
|
|
29002
|
-
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
28956
|
+
"6": 0
|
|
28957
|
+
},
|
|
28958
|
+
f: {
|
|
28959
|
+
"0": 0,
|
|
28960
|
+
"1": 0
|
|
28961
|
+
},
|
|
28962
|
+
b: {
|
|
28963
|
+
"0": [0, 0]
|
|
28964
|
+
},
|
|
28965
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
28966
|
+
hash: "93d79f32d8119513d8cb875480fa2209118ed0b9"
|
|
28967
|
+
};
|
|
28968
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
28969
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
28970
|
+
coverage[path] = coverageData;
|
|
28971
|
+
}
|
|
28972
|
+
var actualCoverage = coverage[path];
|
|
28973
|
+
{
|
|
28974
|
+
// @ts-ignore
|
|
28975
|
+
cov_d1gg5em61 = function () {
|
|
28976
|
+
return actualCoverage;
|
|
28977
|
+
};
|
|
28978
|
+
}
|
|
28979
|
+
return actualCoverage;
|
|
28980
|
+
}
|
|
28981
|
+
cov_d1gg5em61();
|
|
28982
|
+
cov_d1gg5em61().s[0]++;
|
|
28983
|
+
var Confirmation = function Confirmation() {
|
|
28984
|
+
var _globalProps$organiza;
|
|
28985
|
+
cov_d1gg5em61().f[0]++;
|
|
28986
|
+
var _ref = (cov_d1gg5em61().s[1]++, useTranslation()),
|
|
28987
|
+
t = _ref.t;
|
|
28988
|
+
var _ref2 = (cov_d1gg5em61().s[2]++, formik.useFormikContext()),
|
|
28989
|
+
_ref2$values = _ref2.values,
|
|
28990
|
+
emails = _ref2$values.emails,
|
|
28991
|
+
role = _ref2$values.role,
|
|
28992
|
+
appRoles = _ref2$values.appRoles;
|
|
28993
|
+
var selectedEmail = (cov_d1gg5em61().s[3]++, ramda.pluck("value", emails));
|
|
28994
|
+
var activeAppRoles = (cov_d1gg5em61().s[4]++, pure.filterBy({
|
|
28995
|
+
isEnabled: true
|
|
28996
|
+
}, appRoles));
|
|
28997
|
+
cov_d1gg5em61().s[5]++;
|
|
28998
|
+
return activeAppRoles.length > 1 ? (cov_d1gg5em61().b[0][0]++, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28999
|
+
className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-gap-6"
|
|
29000
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29001
|
+
className: "neeto-ui-w-full"
|
|
29002
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
29003
|
+
component: "span",
|
|
29004
|
+
lineHeight: "relaxed",
|
|
29005
|
+
style: "body2"
|
|
29006
|
+
}, /*#__PURE__*/React__default["default"].createElement(Trans, {
|
|
29007
|
+
i18nKey: "helpers.multipleProductInvitation",
|
|
29008
|
+
values: {
|
|
29009
|
+
count: selectedEmail.length,
|
|
29010
|
+
emails: selectedEmail,
|
|
29011
|
+
orgName: (_globalProps$organiza = initializers.globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.name
|
|
29012
|
+
}
|
|
29013
|
+
}))), /*#__PURE__*/React__default["default"].createElement("table", {
|
|
29014
|
+
className: "neeto-ui-w-full ntm-product-roles-table"
|
|
29015
|
+
}, /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", null, /*#__PURE__*/React__default["default"].createElement("th", null, t("common.productName")), /*#__PURE__*/React__default["default"].createElement("th", null, t("common.role", SINGULAR)))), /*#__PURE__*/React__default["default"].createElement("tbody", null, activeAppRoles.map(function (_ref3) {
|
|
29016
|
+
var appName = _ref3.appName,
|
|
29017
|
+
activeRole = _ref3.activeRole;
|
|
29018
|
+
cov_d1gg5em61().f[1]++;
|
|
29019
|
+
cov_d1gg5em61().s[6]++;
|
|
29020
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
29021
|
+
key: appName
|
|
29022
|
+
}, /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
29023
|
+
component: "span",
|
|
29024
|
+
lineHeight: "relaxed",
|
|
29025
|
+
style: "body2"
|
|
29026
|
+
}, t("labels.neeto_", {
|
|
29027
|
+
product: appName
|
|
29028
|
+
}))), /*#__PURE__*/React__default["default"].createElement("td", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
29029
|
+
component: "span",
|
|
29030
|
+
lineHeight: "relaxed",
|
|
29031
|
+
style: "body2"
|
|
29032
|
+
}, activeRole)));
|
|
29033
|
+
}))))) : (cov_d1gg5em61().b[0][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
29034
|
+
component: "span",
|
|
29035
|
+
lineHeight: "relaxed",
|
|
29036
|
+
style: "body2"
|
|
29037
|
+
}, /*#__PURE__*/React__default["default"].createElement(Trans, {
|
|
29038
|
+
i18nKey: "helpers.singleProductInvitation",
|
|
29039
|
+
values: getSingleInvitationTranslationProps({
|
|
29040
|
+
activeAppRoles: activeAppRoles,
|
|
29041
|
+
role: role,
|
|
29042
|
+
selectedEmail: selectedEmail
|
|
29043
|
+
})
|
|
29044
|
+
})));
|
|
29045
|
+
};
|
|
29046
|
+
|
|
29047
|
+
var _excluded = ["className", "children"],
|
|
29048
|
+
_excluded2 = ["className", "children"];
|
|
29049
|
+
function cov_1da0jjdkik() {
|
|
29050
|
+
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/Page/index.jsx";
|
|
29051
|
+
var hash = "f6981d4181ec005451a70426069e003995891658";
|
|
29052
|
+
var global = new Function("return this")();
|
|
29053
|
+
var gcv = "__coverage__";
|
|
29054
|
+
var coverageData = {
|
|
29055
|
+
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/Page/index.jsx",
|
|
29056
|
+
statementMap: {
|
|
29057
|
+
"0": {
|
|
29058
|
+
start: {
|
|
29059
|
+
line: 3,
|
|
29060
|
+
column: 20
|
|
29061
|
+
},
|
|
29062
|
+
end: {
|
|
29063
|
+
line: 7,
|
|
29064
|
+
column: 1
|
|
29065
|
+
}
|
|
29066
|
+
},
|
|
29067
|
+
"1": {
|
|
29068
|
+
start: {
|
|
29069
|
+
line: 4,
|
|
29070
|
+
column: 2
|
|
29071
|
+
},
|
|
29072
|
+
end: {
|
|
29073
|
+
line: 6,
|
|
29074
|
+
column: 8
|
|
29075
|
+
}
|
|
29076
|
+
},
|
|
29077
|
+
"2": {
|
|
29078
|
+
start: {
|
|
29079
|
+
line: 9,
|
|
29080
|
+
column: 13
|
|
29081
|
+
},
|
|
29082
|
+
end: {
|
|
29083
|
+
line: 13,
|
|
29084
|
+
column: 1
|
|
29085
|
+
}
|
|
29086
|
+
},
|
|
29087
|
+
"3": {
|
|
29088
|
+
start: {
|
|
29089
|
+
line: 10,
|
|
29090
|
+
column: 2
|
|
29091
|
+
},
|
|
29092
|
+
end: {
|
|
29093
|
+
line: 12,
|
|
29094
|
+
column: 8
|
|
29095
|
+
}
|
|
29096
|
+
},
|
|
29097
|
+
"4": {
|
|
29098
|
+
start: {
|
|
29099
|
+
line: 15,
|
|
29100
|
+
column: 0
|
|
29101
|
+
},
|
|
29102
|
+
end: {
|
|
29103
|
+
line: 15,
|
|
29104
|
+
column: 26
|
|
29105
|
+
}
|
|
29106
|
+
},
|
|
29107
|
+
"5": {
|
|
29108
|
+
start: {
|
|
29109
|
+
line: 16,
|
|
29110
|
+
column: 0
|
|
29111
|
+
},
|
|
29112
|
+
end: {
|
|
29113
|
+
line: 16,
|
|
29114
|
+
column: 24
|
|
29115
|
+
}
|
|
29116
|
+
},
|
|
29117
|
+
"6": {
|
|
29118
|
+
start: {
|
|
29119
|
+
line: 17,
|
|
29120
|
+
column: 0
|
|
29121
|
+
},
|
|
29122
|
+
end: {
|
|
29123
|
+
line: 17,
|
|
29124
|
+
column: 26
|
|
29125
|
+
}
|
|
29126
|
+
}
|
|
29127
|
+
},
|
|
29128
|
+
fnMap: {
|
|
29129
|
+
"0": {
|
|
29130
|
+
name: "(anonymous_0)",
|
|
29131
|
+
decl: {
|
|
29132
|
+
start: {
|
|
29133
|
+
line: 3,
|
|
29134
|
+
column: 20
|
|
29135
|
+
},
|
|
29136
|
+
end: {
|
|
29137
|
+
line: 3,
|
|
29138
|
+
column: 21
|
|
29139
|
+
}
|
|
29140
|
+
},
|
|
29141
|
+
loc: {
|
|
29142
|
+
start: {
|
|
29143
|
+
line: 4,
|
|
29144
|
+
column: 2
|
|
29145
|
+
},
|
|
29146
|
+
end: {
|
|
29147
|
+
line: 6,
|
|
29148
|
+
column: 8
|
|
29149
|
+
}
|
|
29150
|
+
},
|
|
29151
|
+
line: 4
|
|
29152
|
+
},
|
|
29153
|
+
"1": {
|
|
29154
|
+
name: "(anonymous_1)",
|
|
29155
|
+
decl: {
|
|
29156
|
+
start: {
|
|
29157
|
+
line: 9,
|
|
29158
|
+
column: 13
|
|
29159
|
+
},
|
|
29160
|
+
end: {
|
|
29161
|
+
line: 9,
|
|
29162
|
+
column: 14
|
|
29163
|
+
}
|
|
29164
|
+
},
|
|
29165
|
+
loc: {
|
|
29166
|
+
start: {
|
|
29167
|
+
line: 10,
|
|
29168
|
+
column: 2
|
|
29169
|
+
},
|
|
29170
|
+
end: {
|
|
29171
|
+
line: 12,
|
|
29172
|
+
column: 8
|
|
29173
|
+
}
|
|
29174
|
+
},
|
|
29175
|
+
line: 10
|
|
29176
|
+
}
|
|
29007
29177
|
},
|
|
29008
|
-
|
|
29178
|
+
branchMap: {},
|
|
29179
|
+
s: {
|
|
29009
29180
|
"0": 0,
|
|
29010
29181
|
"1": 0,
|
|
29011
29182
|
"2": 0,
|
|
29012
29183
|
"3": 0,
|
|
29013
29184
|
"4": 0,
|
|
29014
29185
|
"5": 0,
|
|
29015
|
-
"6": 0
|
|
29016
|
-
"7": 0,
|
|
29017
|
-
"8": 0
|
|
29186
|
+
"6": 0
|
|
29018
29187
|
},
|
|
29019
|
-
|
|
29020
|
-
"0":
|
|
29021
|
-
"1":
|
|
29022
|
-
"2": [0, 0],
|
|
29023
|
-
"3": [0, 0],
|
|
29024
|
-
"4": [0, 0],
|
|
29025
|
-
"5": [0, 0],
|
|
29026
|
-
"6": [0, 0],
|
|
29027
|
-
"7": [0, 0],
|
|
29028
|
-
"8": [0, 0],
|
|
29029
|
-
"9": [0, 0, 0],
|
|
29030
|
-
"10": [0, 0],
|
|
29031
|
-
"11": [0],
|
|
29032
|
-
"12": [0, 0]
|
|
29188
|
+
f: {
|
|
29189
|
+
"0": 0,
|
|
29190
|
+
"1": 0
|
|
29033
29191
|
},
|
|
29192
|
+
b: {},
|
|
29034
29193
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
29035
|
-
hash: "
|
|
29194
|
+
hash: "f6981d4181ec005451a70426069e003995891658"
|
|
29036
29195
|
};
|
|
29037
29196
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
29038
29197
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -29041,214 +29200,168 @@ function cov_oxacgfc93() {
|
|
|
29041
29200
|
var actualCoverage = coverage[path];
|
|
29042
29201
|
{
|
|
29043
29202
|
// @ts-ignore
|
|
29044
|
-
|
|
29203
|
+
cov_1da0jjdkik = function () {
|
|
29045
29204
|
return actualCoverage;
|
|
29046
29205
|
};
|
|
29047
29206
|
}
|
|
29048
29207
|
return actualCoverage;
|
|
29049
29208
|
}
|
|
29050
|
-
|
|
29051
|
-
|
|
29052
|
-
|
|
29053
|
-
|
|
29054
|
-
|
|
29055
|
-
|
|
29056
|
-
|
|
29057
|
-
|
|
29058
|
-
return
|
|
29059
|
-
|
|
29060
|
-
}
|
|
29061
|
-
};
|
|
29062
|
-
cov_oxacgfc93().s[2]++;
|
|
29063
|
-
var getActiveRole = function getActiveRole(activeAppRoles, role) {
|
|
29064
|
-
var _activeAppRoles$2;
|
|
29065
|
-
cov_oxacgfc93().f[1]++;
|
|
29066
|
-
cov_oxacgfc93().s[3]++;
|
|
29067
|
-
return (cov_oxacgfc93().b[1][0]++, activeAppRoles === null || activeAppRoles === void 0 ? void 0 : (_activeAppRoles$2 = activeAppRoles[0]) === null || _activeAppRoles$2 === void 0 ? void 0 : _activeAppRoles$2.activeRole) || (cov_oxacgfc93().b[1][1]++, role);
|
|
29068
|
-
};
|
|
29069
|
-
cov_oxacgfc93().s[4]++;
|
|
29070
|
-
var getDefaultRole = function getDefaultRole(roles, currentAppRole, appName) {
|
|
29071
|
-
var _globalProps$appName;
|
|
29072
|
-
cov_oxacgfc93().f[2]++;
|
|
29073
|
-
cov_oxacgfc93().s[5]++;
|
|
29074
|
-
if (appName === ((_globalProps$appName = initializers.globalProps.appName) === null || _globalProps$appName === void 0 ? void 0 : _globalProps$appName.substring(5))) {
|
|
29075
|
-
cov_oxacgfc93().b[2][0]++;
|
|
29076
|
-
cov_oxacgfc93().s[6]++;
|
|
29077
|
-
return currentAppRole;
|
|
29078
|
-
} else {
|
|
29079
|
-
cov_oxacgfc93().b[2][1]++;
|
|
29080
|
-
}
|
|
29081
|
-
var condition = (cov_oxacgfc93().s[7]++, isAdminRole(currentAppRole));
|
|
29082
|
-
var role = (cov_oxacgfc93().s[8]++, pure._findBy({
|
|
29083
|
-
name: condition
|
|
29084
|
-
}, roles));
|
|
29085
|
-
cov_oxacgfc93().s[9]++;
|
|
29086
|
-
return role ? (cov_oxacgfc93().b[3][0]++, role.name) : (cov_oxacgfc93().b[3][1]++, roles[0].name);
|
|
29087
|
-
};
|
|
29088
|
-
cov_oxacgfc93().s[10]++;
|
|
29089
|
-
var generateAppsRolesInitialValue = function generateAppsRolesInitialValue(globalRoles, currentAppRole) {
|
|
29090
|
-
var _globalProps$appName2;
|
|
29091
|
-
cov_oxacgfc93().f[3]++;
|
|
29092
|
-
cov_oxacgfc93().s[11]++;
|
|
29093
|
-
if (!globalRoles) {
|
|
29094
|
-
cov_oxacgfc93().b[4][0]++;
|
|
29095
|
-
cov_oxacgfc93().s[12]++;
|
|
29096
|
-
return [];
|
|
29097
|
-
} else {
|
|
29098
|
-
cov_oxacgfc93().b[4][1]++;
|
|
29099
|
-
}
|
|
29100
|
-
var appNames = (cov_oxacgfc93().s[13]++, Object.keys(globalRoles));
|
|
29101
|
-
var currentAppNameIndex = (cov_oxacgfc93().s[14]++, appNames.indexOf((_globalProps$appName2 = initializers.globalProps.appName) === null || _globalProps$appName2 === void 0 ? void 0 : _globalProps$appName2.substring(5)));
|
|
29102
|
-
var appNamesSorted = (cov_oxacgfc93().s[15]++, ramda.move(currentAppNameIndex, 0, appNames));
|
|
29103
|
-
cov_oxacgfc93().s[16]++;
|
|
29104
|
-
return appNamesSorted.map(function (appName) {
|
|
29105
|
-
cov_oxacgfc93().f[4]++;
|
|
29106
|
-
cov_oxacgfc93().s[17]++;
|
|
29107
|
-
return {
|
|
29108
|
-
appName: appName,
|
|
29109
|
-
activeRole: getDefaultRole(globalRoles[appName], currentAppRole, appName),
|
|
29110
|
-
isEnabled: true
|
|
29111
|
-
};
|
|
29112
|
-
});
|
|
29113
|
-
};
|
|
29114
|
-
cov_oxacgfc93().s[18]++;
|
|
29115
|
-
var isAdminRole = function isAdminRole(role) {
|
|
29116
|
-
cov_oxacgfc93().f[5]++;
|
|
29117
|
-
cov_oxacgfc93().s[19]++;
|
|
29118
|
-
return ramda.includes(role, [ADMIN_ROLE, OWNER_ROLE]) ? (cov_oxacgfc93().b[5][0]++, ramda.equals(ADMIN_ROLE)) : (cov_oxacgfc93().b[5][1]++, pure.notEquals(ADMIN_ROLE));
|
|
29119
|
-
};
|
|
29120
|
-
cov_oxacgfc93().s[20]++;
|
|
29121
|
-
var renderInitialValues = function renderInitialValues(selectedMember, roles, globalRoles) {
|
|
29122
|
-
var _roles$, _roles$2;
|
|
29123
|
-
cov_oxacgfc93().f[6]++;
|
|
29124
|
-
cov_oxacgfc93().s[21]++;
|
|
29125
|
-
return _objectSpread$2({
|
|
29126
|
-
firstName: (cov_oxacgfc93().b[6][0]++, selectedMember === null || selectedMember === void 0 ? void 0 : selectedMember.firstName) || (cov_oxacgfc93().b[6][1]++, ""),
|
|
29127
|
-
lastName: (cov_oxacgfc93().b[7][0]++, selectedMember === null || selectedMember === void 0 ? void 0 : selectedMember.lastName) || (cov_oxacgfc93().b[7][1]++, ""),
|
|
29128
|
-
emails: selectedMember ? (cov_oxacgfc93().b[8][0]++, [{
|
|
29129
|
-
label: selectedMember.email,
|
|
29130
|
-
value: selectedMember.email,
|
|
29131
|
-
valid: true
|
|
29132
|
-
}]) : (cov_oxacgfc93().b[8][1]++, []),
|
|
29133
|
-
role: (cov_oxacgfc93().b[9][0]++, selectedMember === null || selectedMember === void 0 ? void 0 : selectedMember.role) || (cov_oxacgfc93().b[9][1]++, (_roles$ = roles[1]) === null || _roles$ === void 0 ? void 0 : _roles$.name) || (cov_oxacgfc93().b[9][2]++, "")
|
|
29134
|
-
}, (cov_oxacgfc93().b[10][0]++, !selectedMember) && (cov_oxacgfc93().b[10][1]++, {
|
|
29135
|
-
appRoles: generateAppsRolesInitialValue(globalRoles, (_roles$2 = roles[1]) === null || _roles$2 === void 0 ? void 0 : _roles$2.name)
|
|
29136
|
-
}));
|
|
29137
|
-
};
|
|
29138
|
-
cov_oxacgfc93().s[22]++;
|
|
29139
|
-
var renderPayload = function renderPayload(_ref) {
|
|
29140
|
-
var appRoles = _ref.appRoles,
|
|
29141
|
-
emails = _ref.emails,
|
|
29142
|
-
firstName = _ref.firstName,
|
|
29143
|
-
lastName = _ref.lastName,
|
|
29144
|
-
role = _ref.role;
|
|
29145
|
-
var selectedMember = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_oxacgfc93().b[11][0]++, null);
|
|
29146
|
-
cov_oxacgfc93().f[7]++;
|
|
29147
|
-
cov_oxacgfc93().s[23]++;
|
|
29148
|
-
return selectedMember ? (cov_oxacgfc93().b[12][0]++, {
|
|
29149
|
-
active: true,
|
|
29150
|
-
firstName: firstName,
|
|
29151
|
-
lastName: lastName,
|
|
29152
|
-
organizationRole: role
|
|
29153
|
-
}) : (cov_oxacgfc93().b[12][1]++, {
|
|
29154
|
-
user: {
|
|
29155
|
-
emails: ramda.pluck("value", emails),
|
|
29156
|
-
organizationRole: role,
|
|
29157
|
-
appRoles: appRoles
|
|
29158
|
-
}
|
|
29159
|
-
});
|
|
29209
|
+
cov_1da0jjdkik();
|
|
29210
|
+
cov_1da0jjdkik().s[0]++;
|
|
29211
|
+
var PageWrapper = function PageWrapper(_ref) {
|
|
29212
|
+
var className = _ref.className,
|
|
29213
|
+
children = _ref.children,
|
|
29214
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
29215
|
+
cov_1da0jjdkik().f[0]++;
|
|
29216
|
+
cov_1da0jjdkik().s[1]++;
|
|
29217
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
29218
|
+
className: className
|
|
29219
|
+
}, otherProps), children);
|
|
29160
29220
|
};
|
|
29161
|
-
|
|
29162
|
-
var
|
|
29163
|
-
var
|
|
29164
|
-
|
|
29165
|
-
|
|
29166
|
-
|
|
29167
|
-
|
|
29168
|
-
return {
|
|
29169
|
-
|
|
29170
|
-
|
|
29171
|
-
product: getProductName(activeAppRoles),
|
|
29172
|
-
role: getActiveRole(activeAppRoles, role)
|
|
29173
|
-
};
|
|
29221
|
+
cov_1da0jjdkik().s[2]++;
|
|
29222
|
+
var Page = function Page(_ref2) {
|
|
29223
|
+
var className = _ref2.className,
|
|
29224
|
+
children = _ref2.children,
|
|
29225
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
29226
|
+
cov_1da0jjdkik().f[1]++;
|
|
29227
|
+
cov_1da0jjdkik().s[3]++;
|
|
29228
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
29229
|
+
className: className
|
|
29230
|
+
}, otherProps), children);
|
|
29174
29231
|
};
|
|
29232
|
+
cov_1da0jjdkik().s[4]++;
|
|
29233
|
+
Page.Header = PageWrapper;
|
|
29234
|
+
cov_1da0jjdkik().s[5]++;
|
|
29235
|
+
Page.Body = PageWrapper;
|
|
29236
|
+
cov_1da0jjdkik().s[6]++;
|
|
29237
|
+
Page.Footer = PageWrapper;
|
|
29175
29238
|
|
|
29176
|
-
function
|
|
29177
|
-
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/
|
|
29178
|
-
var hash = "
|
|
29239
|
+
function cov_82lke0lxh() {
|
|
29240
|
+
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/constants.js";
|
|
29241
|
+
var hash = "674b2db9d2607cb4d2acb03471712c967538997c";
|
|
29179
29242
|
var global = new Function("return this")();
|
|
29180
29243
|
var gcv = "__coverage__";
|
|
29181
29244
|
var coverageData = {
|
|
29182
|
-
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/
|
|
29245
|
+
path: "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/constants.js",
|
|
29183
29246
|
statementMap: {
|
|
29184
29247
|
"0": {
|
|
29185
29248
|
start: {
|
|
29186
|
-
line:
|
|
29187
|
-
column:
|
|
29249
|
+
line: 10,
|
|
29250
|
+
column: 37
|
|
29188
29251
|
},
|
|
29189
29252
|
end: {
|
|
29190
|
-
line:
|
|
29253
|
+
line: 13,
|
|
29191
29254
|
column: 1
|
|
29192
29255
|
}
|
|
29193
29256
|
},
|
|
29194
29257
|
"1": {
|
|
29195
29258
|
start: {
|
|
29196
29259
|
line: 15,
|
|
29197
|
-
column:
|
|
29260
|
+
column: 47
|
|
29198
29261
|
},
|
|
29199
29262
|
end: {
|
|
29200
|
-
line:
|
|
29201
|
-
column:
|
|
29263
|
+
line: 23,
|
|
29264
|
+
column: 1
|
|
29265
|
+
}
|
|
29266
|
+
},
|
|
29267
|
+
"2": {
|
|
29268
|
+
start: {
|
|
29269
|
+
line: 20,
|
|
29270
|
+
column: 6
|
|
29271
|
+
},
|
|
29272
|
+
end: {
|
|
29273
|
+
line: 20,
|
|
29274
|
+
column: 33
|
|
29275
|
+
}
|
|
29276
|
+
},
|
|
29277
|
+
"3": {
|
|
29278
|
+
start: {
|
|
29279
|
+
line: 25,
|
|
29280
|
+
column: 44
|
|
29281
|
+
},
|
|
29282
|
+
end: {
|
|
29283
|
+
line: 27,
|
|
29284
|
+
column: 1
|
|
29285
|
+
}
|
|
29286
|
+
},
|
|
29287
|
+
"4": {
|
|
29288
|
+
start: {
|
|
29289
|
+
line: 29,
|
|
29290
|
+
column: 26
|
|
29291
|
+
},
|
|
29292
|
+
end: {
|
|
29293
|
+
line: 40,
|
|
29294
|
+
column: 2
|
|
29295
|
+
}
|
|
29296
|
+
},
|
|
29297
|
+
"5": {
|
|
29298
|
+
start: {
|
|
29299
|
+
line: 42,
|
|
29300
|
+
column: 37
|
|
29301
|
+
},
|
|
29302
|
+
end: {
|
|
29303
|
+
line: 44,
|
|
29304
|
+
column: 1
|
|
29305
|
+
}
|
|
29306
|
+
},
|
|
29307
|
+
"6": {
|
|
29308
|
+
start: {
|
|
29309
|
+
line: 46,
|
|
29310
|
+
column: 29
|
|
29311
|
+
},
|
|
29312
|
+
end: {
|
|
29313
|
+
line: 49,
|
|
29314
|
+
column: 1
|
|
29202
29315
|
}
|
|
29203
29316
|
},
|
|
29204
|
-
"
|
|
29317
|
+
"7": {
|
|
29205
29318
|
start: {
|
|
29206
|
-
line:
|
|
29207
|
-
column:
|
|
29319
|
+
line: 51,
|
|
29320
|
+
column: 43
|
|
29208
29321
|
},
|
|
29209
29322
|
end: {
|
|
29210
|
-
line:
|
|
29211
|
-
column:
|
|
29323
|
+
line: 54,
|
|
29324
|
+
column: 1
|
|
29212
29325
|
}
|
|
29213
29326
|
},
|
|
29214
|
-
"
|
|
29327
|
+
"8": {
|
|
29215
29328
|
start: {
|
|
29216
|
-
line:
|
|
29217
|
-
column:
|
|
29329
|
+
line: 56,
|
|
29330
|
+
column: 40
|
|
29218
29331
|
},
|
|
29219
29332
|
end: {
|
|
29220
|
-
line:
|
|
29221
|
-
column:
|
|
29333
|
+
line: 63,
|
|
29334
|
+
column: 1
|
|
29222
29335
|
}
|
|
29223
29336
|
},
|
|
29224
|
-
"
|
|
29337
|
+
"9": {
|
|
29225
29338
|
start: {
|
|
29226
|
-
line:
|
|
29227
|
-
column:
|
|
29339
|
+
line: 65,
|
|
29340
|
+
column: 45
|
|
29228
29341
|
},
|
|
29229
29342
|
end: {
|
|
29230
|
-
line:
|
|
29231
|
-
column:
|
|
29343
|
+
line: 69,
|
|
29344
|
+
column: 1
|
|
29232
29345
|
}
|
|
29233
29346
|
},
|
|
29234
|
-
"
|
|
29347
|
+
"10": {
|
|
29235
29348
|
start: {
|
|
29236
|
-
line:
|
|
29237
|
-
column:
|
|
29349
|
+
line: 71,
|
|
29350
|
+
column: 26
|
|
29238
29351
|
},
|
|
29239
29352
|
end: {
|
|
29240
|
-
line:
|
|
29241
|
-
column:
|
|
29353
|
+
line: 75,
|
|
29354
|
+
column: 1
|
|
29242
29355
|
}
|
|
29243
29356
|
},
|
|
29244
|
-
"
|
|
29357
|
+
"11": {
|
|
29245
29358
|
start: {
|
|
29246
|
-
line:
|
|
29247
|
-
column:
|
|
29359
|
+
line: 78,
|
|
29360
|
+
column: 2
|
|
29248
29361
|
},
|
|
29249
29362
|
end: {
|
|
29250
|
-
line:
|
|
29251
|
-
column:
|
|
29363
|
+
line: 78,
|
|
29364
|
+
column: 82
|
|
29252
29365
|
}
|
|
29253
29366
|
}
|
|
29254
29367
|
},
|
|
@@ -29257,86 +29370,28 @@ function cov_d1gg5em61() {
|
|
|
29257
29370
|
name: "(anonymous_0)",
|
|
29258
29371
|
decl: {
|
|
29259
29372
|
start: {
|
|
29260
|
-
line:
|
|
29261
|
-
column:
|
|
29262
|
-
},
|
|
29263
|
-
end: {
|
|
29264
|
-
line: 14,
|
|
29265
|
-
column: 22
|
|
29266
|
-
}
|
|
29267
|
-
},
|
|
29268
|
-
loc: {
|
|
29269
|
-
start: {
|
|
29270
|
-
line: 14,
|
|
29271
|
-
column: 27
|
|
29272
|
-
},
|
|
29273
|
-
end: {
|
|
29274
|
-
line: 74,
|
|
29275
|
-
column: 1
|
|
29276
|
-
}
|
|
29277
|
-
},
|
|
29278
|
-
line: 14
|
|
29279
|
-
},
|
|
29280
|
-
"1": {
|
|
29281
|
-
name: "(anonymous_1)",
|
|
29282
|
-
decl: {
|
|
29283
|
-
start: {
|
|
29284
|
-
line: 45,
|
|
29285
|
-
column: 30
|
|
29286
|
-
},
|
|
29287
|
-
end: {
|
|
29288
|
-
line: 45,
|
|
29289
|
-
column: 31
|
|
29290
|
-
}
|
|
29291
|
-
},
|
|
29292
|
-
loc: {
|
|
29293
|
-
start: {
|
|
29294
|
-
line: 46,
|
|
29295
|
-
column: 12
|
|
29373
|
+
line: 19,
|
|
29374
|
+
column: 71
|
|
29296
29375
|
},
|
|
29297
29376
|
end: {
|
|
29298
|
-
line:
|
|
29299
|
-
column:
|
|
29377
|
+
line: 19,
|
|
29378
|
+
column: 72
|
|
29300
29379
|
}
|
|
29301
29380
|
},
|
|
29302
|
-
line: 46
|
|
29303
|
-
}
|
|
29304
|
-
},
|
|
29305
|
-
branchMap: {
|
|
29306
|
-
"0": {
|
|
29307
29381
|
loc: {
|
|
29308
29382
|
start: {
|
|
29309
|
-
line:
|
|
29310
|
-
column:
|
|
29383
|
+
line: 20,
|
|
29384
|
+
column: 6
|
|
29311
29385
|
},
|
|
29312
29386
|
end: {
|
|
29313
|
-
line:
|
|
29314
|
-
column:
|
|
29387
|
+
line: 20,
|
|
29388
|
+
column: 33
|
|
29315
29389
|
}
|
|
29316
29390
|
},
|
|
29317
|
-
|
|
29318
|
-
locations: [{
|
|
29319
|
-
start: {
|
|
29320
|
-
line: 24,
|
|
29321
|
-
column: 4
|
|
29322
|
-
},
|
|
29323
|
-
end: {
|
|
29324
|
-
line: 61,
|
|
29325
|
-
column: 10
|
|
29326
|
-
}
|
|
29327
|
-
}, {
|
|
29328
|
-
start: {
|
|
29329
|
-
line: 63,
|
|
29330
|
-
column: 4
|
|
29331
|
-
},
|
|
29332
|
-
end: {
|
|
29333
|
-
line: 72,
|
|
29334
|
-
column: 17
|
|
29335
|
-
}
|
|
29336
|
-
}],
|
|
29337
|
-
line: 23
|
|
29391
|
+
line: 20
|
|
29338
29392
|
}
|
|
29339
29393
|
},
|
|
29394
|
+
branchMap: {},
|
|
29340
29395
|
s: {
|
|
29341
29396
|
"0": 0,
|
|
29342
29397
|
"1": 0,
|
|
@@ -29344,17 +29399,19 @@ function cov_d1gg5em61() {
|
|
|
29344
29399
|
"3": 0,
|
|
29345
29400
|
"4": 0,
|
|
29346
29401
|
"5": 0,
|
|
29347
|
-
"6": 0
|
|
29402
|
+
"6": 0,
|
|
29403
|
+
"7": 0,
|
|
29404
|
+
"8": 0,
|
|
29405
|
+
"9": 0,
|
|
29406
|
+
"10": 0,
|
|
29407
|
+
"11": 0
|
|
29348
29408
|
},
|
|
29349
29409
|
f: {
|
|
29350
|
-
"0": 0
|
|
29351
|
-
"1": 0
|
|
29352
|
-
},
|
|
29353
|
-
b: {
|
|
29354
|
-
"0": [0, 0]
|
|
29410
|
+
"0": 0
|
|
29355
29411
|
},
|
|
29412
|
+
b: {},
|
|
29356
29413
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
29357
|
-
hash: "
|
|
29414
|
+
hash: "674b2db9d2607cb4d2acb03471712c967538997c"
|
|
29358
29415
|
};
|
|
29359
29416
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
29360
29417
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -29363,77 +29420,66 @@ function cov_d1gg5em61() {
|
|
|
29363
29420
|
var actualCoverage = coverage[path];
|
|
29364
29421
|
{
|
|
29365
29422
|
// @ts-ignore
|
|
29366
|
-
|
|
29423
|
+
cov_82lke0lxh = function () {
|
|
29367
29424
|
return actualCoverage;
|
|
29368
29425
|
};
|
|
29369
29426
|
}
|
|
29370
29427
|
return actualCoverage;
|
|
29371
29428
|
}
|
|
29372
|
-
|
|
29373
|
-
|
|
29374
|
-
var
|
|
29375
|
-
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29379
|
-
|
|
29380
|
-
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
|
|
29390
|
-
|
|
29391
|
-
|
|
29392
|
-
|
|
29393
|
-
|
|
29394
|
-
|
|
29395
|
-
|
|
29396
|
-
|
|
29397
|
-
|
|
29398
|
-
|
|
29399
|
-
|
|
29400
|
-
|
|
29401
|
-
|
|
29402
|
-
|
|
29403
|
-
|
|
29404
|
-
|
|
29405
|
-
|
|
29406
|
-
|
|
29407
|
-
|
|
29408
|
-
|
|
29409
|
-
|
|
29410
|
-
|
|
29411
|
-
|
|
29412
|
-
|
|
29413
|
-
|
|
29414
|
-
|
|
29415
|
-
|
|
29416
|
-
|
|
29417
|
-
|
|
29418
|
-
|
|
29419
|
-
|
|
29420
|
-
|
|
29421
|
-
|
|
29422
|
-
|
|
29423
|
-
|
|
29424
|
-
|
|
29425
|
-
|
|
29426
|
-
lineHeight: "relaxed",
|
|
29427
|
-
style: "body2"
|
|
29428
|
-
}, /*#__PURE__*/React__default["default"].createElement(Trans, {
|
|
29429
|
-
i18nKey: "helpers.singleProductInvitation",
|
|
29430
|
-
values: getSingleInvitationTranslationProps({
|
|
29431
|
-
activeAppRoles: activeAppRoles,
|
|
29432
|
-
role: role,
|
|
29433
|
-
selectedEmail: selectedEmail
|
|
29434
|
-
})
|
|
29435
|
-
})));
|
|
29436
|
-
};
|
|
29429
|
+
cov_82lke0lxh();
|
|
29430
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29431
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29432
|
+
var NAME_INPUT_VALIDATION_SCHEMA = (cov_82lke0lxh().s[0]++, {
|
|
29433
|
+
firstName: yup__namespace.string(),
|
|
29434
|
+
lastName: yup__namespace.string()
|
|
29435
|
+
});
|
|
29436
|
+
var MULTIPLE_EMAIL_INPUT_VALIDATION_SCHEMA = (cov_82lke0lxh().s[1]++, {
|
|
29437
|
+
emails: yup__namespace.array().min(1, instance.t("validations.minOneEmail")).test("are-all-emails-valid", instance.t("validations.validEmail"), function (emails) {
|
|
29438
|
+
cov_82lke0lxh().f[0]++;
|
|
29439
|
+
cov_82lke0lxh().s[2]++;
|
|
29440
|
+
return emails.every(ramda.prop("valid"));
|
|
29441
|
+
}).nullable()
|
|
29442
|
+
});
|
|
29443
|
+
var ROLES_RADIO_GROUP_VALIDATION_SCHEMA = (cov_82lke0lxh().s[3]++, {
|
|
29444
|
+
role: yup__namespace.string().required(instance.t("validations.roleRequired"))
|
|
29445
|
+
});
|
|
29446
|
+
var VALIDATION_SCHEMA = (cov_82lke0lxh().s[4]++, yup__namespace.object().shape(_objectSpread$2(_objectSpread$2(_objectSpread$2(_objectSpread$2({}, NAME_INPUT_VALIDATION_SCHEMA), MULTIPLE_EMAIL_INPUT_VALIDATION_SCHEMA), ROLES_RADIO_GROUP_VALIDATION_SCHEMA), {}, {
|
|
29447
|
+
appsRoles: yup__namespace.array().of(yup__namespace.object().shape({
|
|
29448
|
+
appName: yup__namespace.string(),
|
|
29449
|
+
isEnabled: yup__namespace["boolean"](),
|
|
29450
|
+
role: yup__namespace.string().required(instance.t("validations.roleRequired"))
|
|
29451
|
+
}))
|
|
29452
|
+
})));
|
|
29453
|
+
var FILTER_INVALID_EMAILS = (cov_82lke0lxh().s[5]++, {
|
|
29454
|
+
label: instance.t("validations.filterInvalidEmails")
|
|
29455
|
+
});
|
|
29456
|
+
var COUNTER_PROPS = (cov_82lke0lxh().s[6]++, {
|
|
29457
|
+
label: instance.t("common.email", PLURAL),
|
|
29458
|
+
startsFrom: 4
|
|
29459
|
+
});
|
|
29460
|
+
var MANAGE_MEMBERS_FORMIK_PROPS = (cov_82lke0lxh().s[7]++, {
|
|
29461
|
+
enableReinitialize: true,
|
|
29462
|
+
validationSchema: VALIDATION_SCHEMA
|
|
29463
|
+
});
|
|
29464
|
+
var DEFAULT_COMPONENT_CONFIG = (cov_82lke0lxh().s[8]++, {
|
|
29465
|
+
type: "pane",
|
|
29466
|
+
isOpen: false,
|
|
29467
|
+
className: "",
|
|
29468
|
+
headerProps: {},
|
|
29469
|
+
bodyProps: {},
|
|
29470
|
+
footerProps: {}
|
|
29471
|
+
});
|
|
29472
|
+
var MEMBERS_FORM_COMPONENT_MAPPER = (cov_82lke0lxh().s[9]++, {
|
|
29473
|
+
pane: neetoui.Pane,
|
|
29474
|
+
modal: neetoui.Modal,
|
|
29475
|
+
page: Page
|
|
29476
|
+
});
|
|
29477
|
+
var FORM_PAGES = (cov_82lke0lxh().s[10]++, {
|
|
29478
|
+
MAIN: "main",
|
|
29479
|
+
APP_LIST: "appList",
|
|
29480
|
+
CONFIRMATION: "confirmation"
|
|
29481
|
+
});
|
|
29482
|
+
var OWNER_CANT_CHANGE_USER_EMAIL_KB_ARTICLE_URL = (cov_82lke0lxh().s[11]++, "https://neetoauthhelp.neetokb.com/articles/owner-cant-change-other-users-email");
|
|
29437
29483
|
|
|
29438
29484
|
function cov_2ba7t6w9ch() {
|
|
29439
29485
|
var path = "/home/runner/work/neeto-team-members-frontend/neeto-team-members-frontend/src/components/TeamMembers/ManageMember/MultipleEmailInput.jsx";
|