@itilite/iui-user-management 0.4.33 → 0.4.34

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.js CHANGED
@@ -1105,12 +1105,6 @@ var setSignUpRequestList = function setSignUpRequestList(payload) {
1105
1105
  payload: payload
1106
1106
  };
1107
1107
  };
1108
- var setUserActiveStatus = function setUserActiveStatus(payload) {
1109
- return {
1110
- type: SET_ACTIVE_STATUS,
1111
- payload: payload
1112
- };
1113
- };
1114
1108
  var setBulkDeactivatedUsers = function setBulkDeactivatedUsers(payload) {
1115
1109
  return {
1116
1110
  type: SET_BULK_DEACTIVATED_USERS,
@@ -1203,27 +1197,6 @@ var updateTabValue = function updateTabValue(tabId) {
1203
1197
  payload: tabId
1204
1198
  };
1205
1199
  };
1206
- var updateActiveStatus = function updateActiveStatus(activateVal, id) {
1207
- return function (dispatch) {
1208
- return new Promise(function (resolve, reject) {
1209
- api$1.get(userListUrl.updateActiveStatus + 'user_id=' + id + '&activate=' + activateVal).then(function (res) {
1210
- dispatch(setUserActiveStatus({
1211
- is_active: activateVal !== 0,
1212
- id: id
1213
- }));
1214
- IUIToastMessageService.sNotify(res.data.message);
1215
- resolve(res);
1216
- })["catch"](function (err) {
1217
- if (!err.response.data.status) {
1218
- IUIToastMessageService.warningNotify(err.response.data.message);
1219
- reject(err);
1220
- return;
1221
- }
1222
- reject(err);
1223
- });
1224
- });
1225
- };
1226
- };
1227
1200
 
1228
1201
  var api$2 = utils.configs.api;
1229
1202
  var IUIToastMessageService$1 = utils.services.IUIToastMessageService,
@@ -4293,8 +4266,49 @@ function withStore(Component) {
4293
4266
  return WrappedComponent;
4294
4267
  }
4295
4268
 
4269
+ var ExpandMoreIcon = function ExpandMoreIcon(props) {
4270
+ return /*#__PURE__*/React__default.createElement("svg", {
4271
+ xmlns: "http://www.w3.org/2000/svg",
4272
+ width: props.width,
4273
+ height: props.height,
4274
+ fill: "none",
4275
+ viewBox: "0 0 12 7"
4276
+ }, /*#__PURE__*/React__default.createElement("path", {
4277
+ fill: "#6B7280",
4278
+ d: "M.293.294a1 1 0 011.414 0L6 4.587 10.293.294a1 1 0 111.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z"
4279
+ }));
4280
+ };
4281
+
4282
+ var ExpandLessIcon = function ExpandLessIcon(props) {
4283
+ return /*#__PURE__*/React__default.createElement("svg", {
4284
+ xmlns: "http://www.w3.org/2000/svg",
4285
+ width: props.width,
4286
+ height: props.height,
4287
+ fill: "none",
4288
+ viewBox: "0 0 10 6"
4289
+ }, /*#__PURE__*/React__default.createElement("path", {
4290
+ fill: "#6B7280",
4291
+ d: "M.293.293a1 1 0 011.414 0L5 3.586 8.293.293a1 1 0 011.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
4292
+ }));
4293
+ };
4294
+
4295
+ var CrossIcon = function CrossIcon(props) {
4296
+ var _props$color = props.color,
4297
+ color = _props$color === void 0 ? '#6B7280' : _props$color;
4298
+ return /*#__PURE__*/React__default.createElement("svg", {
4299
+ xmlns: "http://www.w3.org/2000/svg",
4300
+ width: props.width,
4301
+ height: props.height,
4302
+ fill: "none",
4303
+ viewBox: "0 0 14 14"
4304
+ }, /*#__PURE__*/React__default.createElement("path", {
4305
+ fill: color,
4306
+ d: "M.293.292a1 1 0 011.414 0L7 5.585 12.293.292a1 1 0 111.414 1.415L8.414 7l5.293 5.292a1 1 0 01-1.414 1.415L7 8.414l-5.293 5.293a1 1 0 01-1.414-1.415L5.586 7 .293 1.707a1 1 0 010-1.415z"
4307
+ }));
4308
+ };
4309
+
4296
4310
  var AdditionalInfo = function AdditionalInfo(_ref) {
4297
- var _clsx2;
4311
+ var _clsx;
4298
4312
  var membershipInfoInput = _ref.membershipInfoInput,
4299
4313
  onMemInfoInputChange = _ref.onMemInfoInputChange,
4300
4314
  addMemInfoInput = _ref.addMemInfoInput,
@@ -4323,10 +4337,6 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
4323
4337
  setAdditionalInfoFlag(defaultExpand ? panel : false);
4324
4338
  };
4325
4339
  };
4326
- var ExpandMore = iuistyles.icons.ExpandMore,
4327
- ExpandLess = iuistyles.icons.ExpandLess,
4328
- Add = iuistyles.icons.Add,
4329
- Cross = iuistyles.icons.Cross;
4330
4340
  var _useSelector = reactRedux.useSelector(function (state) {
4331
4341
  return state.userAddEdit.renderFields;
4332
4342
  }),
@@ -4384,316 +4394,312 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
4384
4394
  }
4385
4395
  return null;
4386
4396
  };
4387
- var getAccordianSummary = function getAccordianSummary() {
4397
+ return /*#__PURE__*/React__default.createElement(iuistyles.IUIAccordion, {
4398
+ expanded: defaultExpand === 'open',
4399
+ onChange: handleChange('open'),
4400
+ className: styles.additionalInfoContainer
4401
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIAccordionSummary, {
4402
+ expandIcon: defaultExpand ? /*#__PURE__*/React__default.createElement(ExpandLessIcon, {
4403
+ width: "12px",
4404
+ height: "7px"
4405
+ }) : /*#__PURE__*/React__default.createElement(ExpandMoreIcon, {
4406
+ width: "12px",
4407
+ height: "7px"
4408
+ }),
4409
+ "aria-controls": "panel1bh-content",
4410
+ id: "panel1bh-header",
4411
+ className: clsx(styles.additionalInfoTitle, (_clsx = {}, _clsx[styles.expandIconAlign] = defaultExpand === 'open', _clsx))
4412
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4413
+ container: true,
4414
+ className: clsx(styles.product_info, styles.sectionWrapper)
4415
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4416
+ item: true,
4417
+ sm: 12,
4418
+ md: 4,
4419
+ className: styles.titleContainer
4420
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4421
+ label: "Additional information",
4422
+ headerType: true,
4423
+ description: "Passport, Membership, Travel preferences..."
4424
+ })))), /*#__PURE__*/React__default.createElement(iuistyles.IUIAccordionDetails, {
4425
+ className: styles.detailsContainer
4426
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4427
+ container: true,
4428
+ className: clsx(styles.work_info, styles.sectionWrapper)
4429
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4430
+ item: true,
4431
+ sm: 12,
4432
+ md: 4
4433
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4434
+ label: "Passport information",
4435
+ headerType: true
4436
+ })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4437
+ item: true,
4438
+ sm: 12,
4439
+ md: 8,
4440
+ lg: 8,
4441
+ xl: 6
4442
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4443
+ container: true,
4444
+ className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4445
+ }, passportInfo.map(function (p, i) {
4446
+ var _clsx2;
4447
+ if (!p.visibility) {
4448
+ return null;
4449
+ }
4388
4450
  return /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4389
- container: true,
4390
- className: clsx(styles.product_info, styles.sectionWrapper)
4391
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4392
4451
  item: true,
4393
4452
  sm: 12,
4394
- md: 4,
4395
- className: styles.titleContainer
4396
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4397
- label: "Additional information",
4398
- headerType: true,
4399
- description: "Passport, Membership, Travel preferences..."
4400
- })));
4401
- };
4402
- var getAccordianDetails = function getAccordianDetails() {
4403
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4404
- container: true,
4405
- className: clsx(styles.work_info, styles.sectionWrapper)
4453
+ md: 12,
4454
+ lg: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4455
+ xl: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4456
+ key: i,
4457
+ className: clsx(styles.margin, (_clsx2 = {}, _clsx2[styles.minGridWidth] = p.type === 'datepicker', _clsx2))
4458
+ }, /*#__PURE__*/React__default.createElement(GetInputType, {
4459
+ _p: p,
4460
+ inputState: passportInfoInput,
4461
+ onValueChange: onPassportInfoInputChange,
4462
+ dropdownList: dropdownList,
4463
+ errorArray: errorArray,
4464
+ errorMsg: errorMsgs[p.name],
4465
+ dateFormat: dateFormat
4466
+ }));
4467
+ })))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
4468
+ className: styles.dividerColor
4469
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4470
+ container: true,
4471
+ className: clsx(styles.personal_info, styles.sectionWrapper)
4472
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4473
+ item: true,
4474
+ sm: 12,
4475
+ md: 4
4476
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4477
+ label: "Membership information",
4478
+ headerType: true,
4479
+ description: "You can add up to " + maxMembershipInput + " membership details"
4480
+ })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4481
+ item: true,
4482
+ sm: 12,
4483
+ md: 8,
4484
+ lg: 8,
4485
+ xl: 6
4486
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4487
+ container: true,
4488
+ className: styles.formFieldsWrapper
4489
+ }, membershipInfoInput.length === 0 && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
4490
+ className: styles.emptyFieldContainer
4491
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
4492
+ className: styles.emptyFieldDescription
4493
+ }, "No membership details added yet"), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
4494
+ className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4495
+ display: "flex"
4496
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4497
+ buttonText: "Add airline",
4498
+ type: "text",
4499
+ startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
4500
+ width: "10",
4501
+ height: "10",
4502
+ color: "#EC5D25"
4503
+ }),
4504
+ className: styles.paddingTop,
4505
+ onClick: function onClick(e) {
4506
+ return addMemInfoInput('flight');
4507
+ }
4508
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4509
+ buttonText: "Add hotel",
4510
+ type: "text",
4511
+ startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
4512
+ width: "10",
4513
+ height: "10",
4514
+ color: "#EC5D25"
4515
+ }),
4516
+ className: styles.paddingTop,
4517
+ onClick: function onClick(e) {
4518
+ return addMemInfoInput('hotel');
4519
+ }
4520
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4521
+ buttonText: "Add car rental",
4522
+ type: "text",
4523
+ startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
4524
+ width: "10",
4525
+ height: "10",
4526
+ color: "#EC5D25"
4527
+ }),
4528
+ className: styles.paddingTop,
4529
+ onClick: function onClick(e) {
4530
+ return addMemInfoInput('rental_car');
4531
+ }
4532
+ }))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
4533
+ if (index >= maxMembershipInput) {
4534
+ return null;
4535
+ }
4536
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
4537
+ key: index.toString()
4406
4538
  }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4407
4539
  item: true,
4408
- sm: 12,
4409
- md: 4
4410
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4411
- label: "Passport information",
4412
- headerType: true
4413
- })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4414
- item: true,
4415
- sm: 12,
4416
4540
  md: 8,
4417
- lg: 8,
4541
+ lg: 6,
4418
4542
  xl: 6
4419
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4420
- container: true,
4421
- className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4422
- }, passportInfo.map(function (p, i) {
4423
- var _clsx;
4424
- if (!p.visibility) {
4425
- return null;
4426
- }
4427
- return /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4428
- item: true,
4429
- sm: 12,
4430
- md: 12,
4431
- lg: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4432
- xl: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4433
- key: i,
4434
- className: clsx(styles.margin, (_clsx = {}, _clsx[styles.minGridWidth] = p.type === 'datepicker', _clsx))
4435
- }, /*#__PURE__*/React__default.createElement(GetInputType, {
4436
- _p: p,
4437
- inputState: passportInfoInput,
4438
- onValueChange: onPassportInfoInputChange,
4439
- dropdownList: dropdownList,
4440
- errorArray: errorArray,
4441
- errorMsg: errorMsgs[p.name],
4442
- dateFormat: dateFormat
4443
- }));
4444
- })))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
4445
- className: styles.dividerColor
4446
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4447
- container: true,
4448
- className: clsx(styles.personal_info, styles.sectionWrapper)
4449
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4450
- item: true,
4451
- sm: 12,
4452
- md: 4
4453
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4454
- label: "Membership information",
4455
- headerType: true,
4456
- description: "You can add up to " + maxMembershipInput + " membership details"
4543
+ }, /*#__PURE__*/React__default.createElement(MembershipField, {
4544
+ val: val,
4545
+ index: index,
4546
+ key: index.toString()
4457
4547
  })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4458
4548
  item: true,
4459
- sm: 12,
4460
4549
  md: 8,
4461
- lg: 8,
4550
+ lg: 6,
4462
4551
  xl: 6
4463
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4464
- container: true,
4465
- className: styles.formFieldsWrapper
4466
- }, membershipInfoInput.length === 0 && /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
4467
- className: styles.emptyFieldContainer
4468
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUITypography, {
4469
- className: styles.emptyFieldDescription
4470
- }, "No membership details added yet"), /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
4471
- className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4472
- display: "flex"
4473
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4474
- buttonText: "Add airline",
4475
- type: "text",
4476
- startIcon: /*#__PURE__*/React__default.createElement(iuistyles.icons.Add, {
4477
- width: "10",
4478
- height: "10",
4479
- color: "#EC5D25"
4480
- }),
4481
- className: styles.paddingTop,
4482
- onClick: function onClick(e) {
4483
- return addMemInfoInput('flight');
4484
- }
4485
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4486
- buttonText: "Add hotel",
4487
- type: "text",
4488
- startIcon: /*#__PURE__*/React__default.createElement(iuistyles.icons.Add, {
4489
- width: "10",
4490
- height: "10",
4491
- color: "#EC5D25"
4492
- }),
4493
- className: styles.paddingTop,
4494
- onClick: function onClick(e) {
4495
- return addMemInfoInput('hotel');
4496
- }
4497
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4498
- buttonText: "Add car rental",
4499
- type: "text",
4500
- startIcon: /*#__PURE__*/React__default.createElement(iuistyles.icons.Add, {
4501
- width: "10",
4502
- height: "10",
4503
- color: "#EC5D25"
4504
- }),
4505
- className: styles.paddingTop,
4506
- onClick: function onClick(e) {
4507
- return addMemInfoInput('rental_car');
4508
- }
4509
- }))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
4510
- if (index >= maxMembershipInput) {
4511
- return null;
4512
- }
4513
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
4514
- key: index.toString()
4515
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4516
- item: true,
4517
- md: 8,
4518
- lg: 6,
4519
- xl: 6
4520
- }, /*#__PURE__*/React__default.createElement(MembershipField, {
4521
- val: val,
4522
- index: index,
4523
- key: index.toString()
4524
- })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4525
- item: true,
4526
- md: 8,
4527
- lg: 6,
4528
- xl: 6
4529
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
4530
- component: "div",
4531
- display: "flex"
4532
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIInput, {
4533
- label: "Membership number",
4534
- placeholder: "Enter membership number",
4535
- fullwidth: false,
4536
- defaultValue: val.number,
4537
- onValueChange: function onValueChange(_ref6) {
4538
- var _value = _ref6._value;
4539
- return onMemInfoInputChange(index, 'number', _value);
4540
- }
4541
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIIconButton, {
4542
- style: {
4543
- marginTop: '30px'
4544
- },
4545
- disableRipple: true,
4546
- onClick: function onClick() {
4547
- return handleRemoveMemFields(index);
4548
- },
4549
- className: styles.backGrdColorOnHover
4550
- }, /*#__PURE__*/React__default.createElement(Cross, {
4551
- width: "14",
4552
- height: "14"
4553
- })))));
4554
- }), membershipInfoInput.length < maxMembershipInput && membershipInfoInput.length > 0 && /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4555
- item: true,
4556
- md: 8,
4557
- lg: 8,
4558
- xl: 8
4559
4552
  }, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
4560
- className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4553
+ component: "div",
4561
4554
  display: "flex"
4562
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4563
- buttonText: "Add airline",
4564
- type: "text",
4565
- startIcon: /*#__PURE__*/React__default.createElement(Add, {
4566
- width: "10",
4567
- height: "10",
4568
- color: "#EC5D25"
4569
- }),
4570
- className: styles.paddingTop,
4571
- onClick: function onClick(e) {
4572
- return addMemInfoInput('flight');
4573
- }
4574
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4575
- buttonText: "Add hotel",
4576
- type: "text",
4577
- startIcon: /*#__PURE__*/React__default.createElement(Add, {
4578
- width: "10",
4579
- height: "10",
4580
- color: "#EC5D25"
4581
- }),
4582
- className: styles.paddingTop,
4583
- onClick: function onClick(e) {
4584
- return addMemInfoInput('hotel');
4585
- }
4586
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4587
- buttonText: "Add car rental",
4588
- type: "text",
4589
- startIcon: /*#__PURE__*/React__default.createElement(iuistyles.icons.Add, {
4590
- width: "10",
4591
- height: "10",
4592
- color: "#EC5D25"
4593
- }),
4594
- className: styles.paddingTop,
4595
- onClick: function onClick(e) {
4596
- return addMemInfoInput('rental_car');
4597
- }
4598
- })))))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
4599
- className: styles.dividerColor
4600
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4601
- container: true,
4602
- className: clsx(styles.personal_info, styles.sectionWrapper)
4603
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4604
- item: true,
4605
- sm: 12,
4606
- md: 4
4607
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4608
- label: "Travel preferences",
4609
- headerType: true
4610
- })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4611
- item: true,
4612
- sm: 12,
4613
- md: 8,
4614
- lg: 8,
4615
- xl: 6
4616
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4617
- container: true,
4618
- className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4619
- }, travelPreference.map(function (p, i) {
4620
- if (!p.visibility) {
4621
- return null;
4555
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIInput, {
4556
+ label: "Membership number",
4557
+ placeholder: "Enter membership number",
4558
+ fullwidth: false,
4559
+ defaultValue: val.number,
4560
+ onValueChange: function onValueChange(_ref6) {
4561
+ var _value = _ref6._value;
4562
+ return onMemInfoInputChange(index, 'number', _value);
4622
4563
  }
4623
- return /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4624
- item: true,
4625
- sm: 12,
4626
- md: 12,
4627
- lg: p.fullWidth ? 12 : 6,
4628
- xl: p.fullWidth ? 12 : 6,
4629
- key: i,
4630
- className: clsx(styles.margin)
4631
- }, /*#__PURE__*/React__default.createElement(GetInputType, {
4632
- _p: p,
4633
- inputState: travelPreferenceInfo,
4634
- onValueChange: travelPreferenceOnChange,
4635
- dropdownList: dropdownList,
4636
- errorArray: errorArray,
4637
- errorMsg: errorMsgs[p.name]
4638
- }));
4639
- })))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
4640
- className: styles.dividerColor
4641
- }), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4642
- container: true,
4643
- className: clsx(styles.personal_info, styles.sectionWrapper)
4644
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4564
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIIconButton, {
4565
+ style: {
4566
+ marginTop: '30px'
4567
+ },
4568
+ disableRipple: true,
4569
+ onClick: function onClick() {
4570
+ return handleRemoveMemFields(index);
4571
+ },
4572
+ className: styles.backGrdColorOnHover
4573
+ }, /*#__PURE__*/React__default.createElement(CrossIcon, {
4574
+ width: "14",
4575
+ height: "14"
4576
+ })))));
4577
+ }), membershipInfoInput.length < maxMembershipInput && membershipInfoInput.length > 0 && /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4578
+ item: true,
4579
+ md: 8,
4580
+ lg: 8,
4581
+ xl: 8
4582
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIBox, {
4583
+ className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4584
+ display: "flex"
4585
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4586
+ buttonText: "Add airline",
4587
+ type: "text",
4588
+ startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
4589
+ width: "10",
4590
+ height: "10",
4591
+ color: "#EC5D25"
4592
+ }),
4593
+ className: styles.paddingTop,
4594
+ onClick: function onClick(e) {
4595
+ return addMemInfoInput('flight');
4596
+ }
4597
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4598
+ buttonText: "Add hotel",
4599
+ type: "text",
4600
+ startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
4601
+ width: "10",
4602
+ height: "10",
4603
+ color: "#EC5D25"
4604
+ }),
4605
+ className: styles.paddingTop,
4606
+ onClick: function onClick(e) {
4607
+ return addMemInfoInput('hotel');
4608
+ }
4609
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIButton, {
4610
+ buttonText: "Add car rental",
4611
+ type: "text",
4612
+ startIcon: /*#__PURE__*/React__default.createElement(AddIcon, {
4613
+ width: "10",
4614
+ height: "10",
4615
+ color: "#EC5D25"
4616
+ }),
4617
+ className: styles.paddingTop,
4618
+ onClick: function onClick(e) {
4619
+ return addMemInfoInput('rental_car');
4620
+ }
4621
+ })))))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
4622
+ className: styles.dividerColor
4623
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4624
+ container: true,
4625
+ className: clsx(styles.personal_info, styles.sectionWrapper)
4626
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4627
+ item: true,
4628
+ sm: 12,
4629
+ md: 4
4630
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4631
+ label: "Travel preferences",
4632
+ headerType: true
4633
+ })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4634
+ item: true,
4635
+ sm: 12,
4636
+ md: 8,
4637
+ lg: 8,
4638
+ xl: 6
4639
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4640
+ container: true,
4641
+ className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4642
+ }, travelPreference.map(function (p, i) {
4643
+ if (!p.visibility) {
4644
+ return null;
4645
+ }
4646
+ return /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4645
4647
  item: true,
4646
4648
  sm: 12,
4647
- md: 4
4648
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4649
- label: "Secure traveler information",
4650
- headerType: true
4651
- })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4649
+ md: 12,
4650
+ lg: p.fullWidth ? 12 : 6,
4651
+ xl: p.fullWidth ? 12 : 6,
4652
+ key: i,
4653
+ className: clsx(styles.margin)
4654
+ }, /*#__PURE__*/React__default.createElement(GetInputType, {
4655
+ _p: p,
4656
+ inputState: travelPreferenceInfo,
4657
+ onValueChange: travelPreferenceOnChange,
4658
+ dropdownList: dropdownList,
4659
+ errorArray: errorArray,
4660
+ errorMsg: errorMsgs[p.name]
4661
+ }));
4662
+ })))), /*#__PURE__*/React__default.createElement(iuistyles.IUIDivider, {
4663
+ className: styles.dividerColor
4664
+ }), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4665
+ container: true,
4666
+ className: clsx(styles.personal_info, styles.sectionWrapper)
4667
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4668
+ item: true,
4669
+ sm: 12,
4670
+ md: 4
4671
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUILabel, {
4672
+ label: "Secure traveler information",
4673
+ headerType: true
4674
+ })), /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4675
+ item: true,
4676
+ sm: 12,
4677
+ md: 8,
4678
+ lg: 8,
4679
+ xl: 6
4680
+ }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4681
+ container: true,
4682
+ className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4683
+ }, secureTravelInfo.map(function (p, i) {
4684
+ if (!p.visibility) {
4685
+ return null;
4686
+ }
4687
+ return /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4652
4688
  item: true,
4653
4689
  sm: 12,
4654
- md: 8,
4655
- lg: 8,
4656
- xl: 6
4657
- }, /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4658
- container: true,
4659
- className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4660
- }, secureTravelInfo.map(function (p, i) {
4661
- if (!p.visibility) {
4662
- return null;
4663
- }
4664
- return /*#__PURE__*/React__default.createElement(iuistyles.IUIGrid, {
4665
- item: true,
4666
- sm: 12,
4667
- md: 12,
4668
- lg: p.fullWidth ? 12 : 6,
4669
- xl: p.fullWidth ? 12 : 6,
4670
- key: i,
4671
- className: clsx(styles.margin)
4672
- }, /*#__PURE__*/React__default.createElement(GetInputType, {
4673
- _p: p,
4674
- inputState: secureTravelInputInfo,
4675
- onValueChange: onSecureTraveelerInfoInputChange,
4676
- errorArray: errorArray,
4677
- errorMsg: errorMsgs[p.name]
4678
- }));
4679
- })))));
4680
- };
4681
- return /*#__PURE__*/React__default.createElement(iuistyles.IUIAccordionMain, {
4682
- expanded: defaultExpand === 'open',
4683
- onChange: handleChange('open'),
4684
- accordionClass: styles.additionalInfoContainer,
4685
- summaryComponent: getAccordianSummary(),
4686
- summaryClass: clsx(styles.additionalInfoTitle, (_clsx2 = {}, _clsx2[styles.expandIconAlign] = defaultExpand === 'open', _clsx2)),
4687
- expandIcon: defaultExpand ? /*#__PURE__*/React__default.createElement(ExpandLess, {
4688
- width: "12px",
4689
- height: "7px"
4690
- }) : /*#__PURE__*/React__default.createElement(ExpandMore, {
4691
- width: "12px",
4692
- height: "7px"
4693
- }),
4694
- detailsComponent: getAccordianDetails(),
4695
- detailsClass: styles.detailsContainer
4696
- });
4690
+ md: 12,
4691
+ lg: p.fullWidth ? 12 : 6,
4692
+ xl: p.fullWidth ? 12 : 6,
4693
+ key: i,
4694
+ className: clsx(styles.margin)
4695
+ }, /*#__PURE__*/React__default.createElement(GetInputType, {
4696
+ _p: p,
4697
+ inputState: secureTravelInputInfo,
4698
+ onValueChange: onSecureTraveelerInfoInputChange,
4699
+ errorArray: errorArray,
4700
+ errorMsg: errorMsgs[p.name]
4701
+ }));
4702
+ }))))));
4697
4703
  };
4698
4704
 
4699
4705
  var styles$3 = {"root":"_b_muK","minWidth":"_3OQXs","bullet":"_1Q5vL","pos":"_6wGWA","cardHeader":"_SWCfJ","pageHeader":"_2ZeWp","buttonHover":"_2Iuy1","cardHeaderBackground":"_3NJWF","actionCustom":"_3Kbfm"};
@@ -6777,7 +6783,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
6777
6783
  };
6778
6784
  };
6779
6785
 
6780
- var styles$5 = {"UUIUserManagementList":"_3WNHx","scrollOverlayMenu":"_2_WEg","overlaysearch":"_1Pbhb","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","headingSignUpWrapper":"_Q8vqd","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","tooltipText":"_151u_","tooltip":"_-LQNH","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","downloadTemplateButton":"_1qXtq","fileUploaderContainer":"_1YVz2","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if","user_list_page_tabs":"_xWE7K","TabLabelCount":"_13pXn","deactivateAlert":"_3hvWz","departmentHeadText":"_3pOsV","deactivateBtn":"_2v6e4"};
6786
+ var styles$5 = {"UUIUserManagementList":"_3WNHx","scrollOverlayMenu":"_2_WEg","overlaysearch":"_1Pbhb","pageHeader":"_1WLpc","buttonWrapper":"_2egTG","headingWrapper":"_1He01","headingSignUpWrapper":"_Q8vqd","heading":"_1uPaO","headingLarge":"_2FsLd","headingMedium":"_nGXA9","headingSmall":"_2rpwF","description":"_25vb9","headerText":"_1Ny9J","letterImage":"_2hr3R","tablewrapper":"_1-RPw","rowText":"_1LXyO","textTransform":"_3kFQS","lightColor":"_3Ghgw","avatarClassName":"_2qO_X","tooltipText":"_151u_","tooltip":"_-LQNH","importModalBodyContainer":"_25xUk","dividerColor":"_2HZv9","w100":"_3vGmU","downloadTemplateContainer":"_3-Xu_","downloadTemplateDescContainer":"_tLw43","labelContainer":"_7TYUZ","downlTempHeader":"__CZpe","downlTempDescription":"_19jEe","downloadTemplateButton":"_1qXtq","fileUploaderContainer":"_1YVz2","colGap":"_3vnY5","deActivateModalContainer":"_28H9H","backdrop":"_1ky1x","errorText":"_26_if","deactivateAlert":"_3hvWz","departmentHeadText":"_3pOsV","deactivateBtn":"_2v6e4","user_list_page_tabs":"_xWE7K","TabLabelCount":"_13pXn"};
6781
6787
 
6782
6788
  var BulkUploadModal = function BulkUploadModal(props) {
6783
6789
  var isOpenImportUsersModal = props.isOpenImportUsersModal,
@@ -8038,19 +8044,6 @@ var BulkDownloadIcon = function BulkDownloadIcon(props) {
8038
8044
 
8039
8045
  var classes = {"containedBtn":"_2A4_u","customMiniBox":"_QGIKG","muiBtn":"_3iFbO","outlinedBtn":"_3lQYD","menuList":"_1C8bJ","menuListContainer":"_1N83W","menuItemContainer":"_3VtcE","menuItemtext":"_2xqnU","subTxt":"_3CVzX"};
8040
8046
 
8041
- var ExpandMoreIcon = function ExpandMoreIcon(props) {
8042
- return /*#__PURE__*/React__default.createElement("svg", {
8043
- xmlns: "http://www.w3.org/2000/svg",
8044
- width: props.width,
8045
- height: props.height,
8046
- fill: "none",
8047
- viewBox: "0 0 12 7"
8048
- }, /*#__PURE__*/React__default.createElement("path", {
8049
- fill: "#6B7280",
8050
- d: "M.293.294a1 1 0 011.414 0L6 4.587 10.293.294a1 1 0 111.414 1.414l-5 5a1 1 0 01-1.414 0l-5-5a1 1 0 010-1.414z"
8051
- }));
8052
- };
8053
-
8054
8047
  var DropdownBtn = function DropdownBtn(props) {
8055
8048
  var _clsx;
8056
8049
  var _props$buttonText = props.buttonText,
@@ -8685,12 +8678,18 @@ var UserList = function UserList(_ref2) {
8685
8678
  var _useState10 = React.useState(false),
8686
8679
  isApiFetching = _useState10[0],
8687
8680
  setisApiFetching = _useState10[1];
8688
- var _useState11 = React.useState(false),
8689
- showInviteModal = _useState11[0],
8690
- setToggleInviteModal = _useState11[1];
8691
- var _useState12 = React.useState(''),
8692
- userIds = _useState12[0],
8693
- setUserIds = _useState12[1];
8681
+ var _useState11 = React.useState({
8682
+ value: '',
8683
+ label: 'Select approver'
8684
+ }),
8685
+ travelFYI = _useState11[0],
8686
+ setTravelFYI = _useState11[1];
8687
+ var _useState12 = React.useState(false),
8688
+ showInviteModal = _useState12[0],
8689
+ setToggleInviteModal = _useState12[1];
8690
+ var _useState13 = React.useState(''),
8691
+ userIds = _useState13[0],
8692
+ setUserIds = _useState13[1];
8694
8693
  var _React$useState6 = React__default.useState(false),
8695
8694
  overlayMenu = _React$useState6[0],
8696
8695
  setOverlayMenu = _React$useState6[1];
@@ -8717,40 +8716,34 @@ var UserList = function UserList(_ref2) {
8717
8716
  var _React$useState7 = React__default.useState(1),
8718
8717
  signup_page = _React$useState7[0],
8719
8718
  setSignUpPage = _React$useState7[1];
8720
- var _useState13 = React.useState(5),
8721
- signup_rowsPerPage = _useState13[0],
8722
- setSignUpRowsPerPage = _useState13[1];
8719
+ var _useState14 = React.useState(5),
8720
+ signup_rowsPerPage = _useState14[0],
8721
+ setSignUpRowsPerPage = _useState14[1];
8723
8722
  var _React$useState8 = React__default.useState('asc'),
8724
8723
  signup_order = _React$useState8[0],
8725
8724
  setSignUpOrder = _React$useState8[1];
8726
8725
  var _React$useState9 = React__default.useState('fname'),
8727
8726
  signup_orderBy = _React$useState9[0],
8728
8727
  setSignUpOrderBy = _React$useState9[1];
8729
- var _useState14 = React.useState(''),
8730
- signup_searchValue = _useState14[0],
8731
- set_signup_SearchValue = _useState14[1];
8732
- var _useState15 = React.useState(false),
8733
- isSignUpSortingChange = _useState15[0],
8734
- setSignUpSortingChange = _useState15[1];
8728
+ var _useState15 = React.useState(''),
8729
+ signup_searchValue = _useState15[0],
8730
+ set_signup_SearchValue = _useState15[1];
8735
8731
  var _useState16 = React.useState(false),
8736
- isSignUpSearchingChange = _useState16[0],
8737
- setSignUpSearchingChange = _useState16[1];
8732
+ isSignUpSortingChange = _useState16[0],
8733
+ setSignUpSortingChange = _useState16[1];
8738
8734
  var _useState17 = React.useState(false),
8739
- isSignUpSortingChangeTemp = _useState17[0],
8740
- setSignUpSortingChangeTemp = _useState17[1];
8735
+ isSignUpSearchingChange = _useState17[0],
8736
+ setSignUpSearchingChange = _useState17[1];
8741
8737
  var _useState18 = React.useState(false),
8742
- isSignUpSearchingChangeTemp = _useState18[0],
8743
- setSignUpSearchingChangeTemp = _useState18[1];
8738
+ isSignUpSortingChangeTemp = _useState18[0],
8739
+ setSignUpSortingChangeTemp = _useState18[1];
8740
+ var _useState19 = React.useState(false),
8741
+ isSignUpSearchingChangeTemp = _useState19[0],
8742
+ setSignUpSearchingChangeTemp = _useState19[1];
8744
8743
  var _useSelector3 = reactRedux.useSelector(function (state) {
8745
8744
  return state.userList;
8746
8745
  }),
8747
8746
  signupRequestListInfo = _useSelector3.signupRequestListInfo;
8748
- var _useState19 = React.useState({
8749
- value: '',
8750
- label: 'Select approver'
8751
- }),
8752
- travelFYI = _useState19[0],
8753
- setTravelFYI = _useState19[1];
8754
8747
  var openDeactivateModal = function openDeactivateModal() {
8755
8748
  if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
8756
8749
  IUIToastMessageService$7.warningNotify('Select at least one user to deactivate.');
@@ -8867,17 +8860,7 @@ var UserList = function UserList(_ref2) {
8867
8860
  setSortingChangeTemp(!isSortingChangeTemp);
8868
8861
  };
8869
8862
  var handleActiveUser = function handleActiveUser(e, id, page) {
8870
- var isActive = e.target.checked;
8871
- dispatch(updateActiveStatus(e.target.checked ? 1 : 0, e.target.id)).then(function () {
8872
- if (!isActive) {
8873
- if (Object.values(selected).flat().includes(id.toString())) {
8874
- var _extends5;
8875
- var selectedTemp = _extends({}, selected);
8876
- selectedTemp[page].splice(selectedTemp[page].indexOf(id.toString()), 1);
8877
- setSelected(_extends({}, selected, (_extends5 = {}, _extends5[page] = selectedTemp[page], _extends5)));
8878
- }
8879
- }
8880
- });
8863
+ setDeactivateSingle(true);
8881
8864
  };
8882
8865
  var handleDeactivateUsers = function handleDeactivateUsers() {
8883
8866
  dispatch(deActivateUsers(Object.values(selected).flat()));