@itilite/iui-user-management 0.4.33 → 0.4.35
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.css +27 -24
- package/dist/index.js +358 -338
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +359 -339
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckboxButton, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIDivider, IUIGrid, IUITypography, IUIRadio, IUIButton, IUIModal,
|
|
1
|
+
import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckboxButton, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIDivider, IUIGrid, IUITypography, IUIRadio, IUIButton, IUIModal, IUIAccordion, IUIAccordionSummary, IUIAccordionDetails, IUIIconButton, IUICard, IUIBackdrop, IUICircularProgress, IUIBreadCrumb, IUIDropzone, IUIStepper, IUIFormControlLabel, IUICheckBox, IUIPrimaryRadio, IUITable, IUISkeleton, IUIProfileBox, IUIFormGroup, IUISearch, IUIDropdownButton, IUITabs } from '@itilite/iuistyles';
|
|
2
2
|
import React, { useState, useEffect, useRef, Fragment as Fragment$1 } from 'react';
|
|
3
3
|
import { configs, services, utilUrls } from '@itilite/utils';
|
|
4
4
|
import axios from 'axios';
|
|
@@ -4290,8 +4290,49 @@ function withStore(Component) {
|
|
|
4290
4290
|
return WrappedComponent;
|
|
4291
4291
|
}
|
|
4292
4292
|
|
|
4293
|
+
var ExpandMoreIcon = function ExpandMoreIcon(props) {
|
|
4294
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4295
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4296
|
+
width: props.width,
|
|
4297
|
+
height: props.height,
|
|
4298
|
+
fill: "none",
|
|
4299
|
+
viewBox: "0 0 12 7"
|
|
4300
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4301
|
+
fill: "#6B7280",
|
|
4302
|
+
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"
|
|
4303
|
+
}));
|
|
4304
|
+
};
|
|
4305
|
+
|
|
4306
|
+
var ExpandLessIcon = function ExpandLessIcon(props) {
|
|
4307
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4308
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4309
|
+
width: props.width,
|
|
4310
|
+
height: props.height,
|
|
4311
|
+
fill: "none",
|
|
4312
|
+
viewBox: "0 0 10 6"
|
|
4313
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4314
|
+
fill: "#6B7280",
|
|
4315
|
+
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"
|
|
4316
|
+
}));
|
|
4317
|
+
};
|
|
4318
|
+
|
|
4319
|
+
var CrossIcon = function CrossIcon(props) {
|
|
4320
|
+
var _props$color = props.color,
|
|
4321
|
+
color = _props$color === void 0 ? '#6B7280' : _props$color;
|
|
4322
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4324
|
+
width: props.width,
|
|
4325
|
+
height: props.height,
|
|
4326
|
+
fill: "none",
|
|
4327
|
+
viewBox: "0 0 14 14"
|
|
4328
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4329
|
+
fill: color,
|
|
4330
|
+
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"
|
|
4331
|
+
}));
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4293
4334
|
var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
4294
|
-
var
|
|
4335
|
+
var _clsx;
|
|
4295
4336
|
var membershipInfoInput = _ref.membershipInfoInput,
|
|
4296
4337
|
onMemInfoInputChange = _ref.onMemInfoInputChange,
|
|
4297
4338
|
addMemInfoInput = _ref.addMemInfoInput,
|
|
@@ -4320,10 +4361,6 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4320
4361
|
setAdditionalInfoFlag(defaultExpand ? panel : false);
|
|
4321
4362
|
};
|
|
4322
4363
|
};
|
|
4323
|
-
var ExpandMore = icons.ExpandMore,
|
|
4324
|
-
ExpandLess = icons.ExpandLess,
|
|
4325
|
-
Add = icons.Add,
|
|
4326
|
-
Cross = icons.Cross;
|
|
4327
4364
|
var _useSelector = useSelector(function (state) {
|
|
4328
4365
|
return state.userAddEdit.renderFields;
|
|
4329
4366
|
}),
|
|
@@ -4381,316 +4418,312 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
|
|
|
4381
4418
|
}
|
|
4382
4419
|
return null;
|
|
4383
4420
|
};
|
|
4384
|
-
|
|
4421
|
+
return /*#__PURE__*/React.createElement(IUIAccordion, {
|
|
4422
|
+
expanded: defaultExpand === 'open',
|
|
4423
|
+
onChange: handleChange('open'),
|
|
4424
|
+
className: styles.additionalInfoContainer
|
|
4425
|
+
}, /*#__PURE__*/React.createElement(IUIAccordionSummary, {
|
|
4426
|
+
expandIcon: defaultExpand ? /*#__PURE__*/React.createElement(ExpandLessIcon, {
|
|
4427
|
+
width: "12px",
|
|
4428
|
+
height: "7px"
|
|
4429
|
+
}) : /*#__PURE__*/React.createElement(ExpandMoreIcon, {
|
|
4430
|
+
width: "12px",
|
|
4431
|
+
height: "7px"
|
|
4432
|
+
}),
|
|
4433
|
+
"aria-controls": "panel1bh-content",
|
|
4434
|
+
id: "panel1bh-header",
|
|
4435
|
+
className: clsx(styles.additionalInfoTitle, (_clsx = {}, _clsx[styles.expandIconAlign] = defaultExpand === 'open', _clsx))
|
|
4436
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4437
|
+
container: true,
|
|
4438
|
+
className: clsx(styles.product_info, styles.sectionWrapper)
|
|
4439
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4440
|
+
item: true,
|
|
4441
|
+
sm: 12,
|
|
4442
|
+
md: 4,
|
|
4443
|
+
className: styles.titleContainer
|
|
4444
|
+
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4445
|
+
label: "Additional information",
|
|
4446
|
+
headerType: true,
|
|
4447
|
+
description: "Passport, Membership, Travel preferences..."
|
|
4448
|
+
})))), /*#__PURE__*/React.createElement(IUIAccordionDetails, {
|
|
4449
|
+
className: styles.detailsContainer
|
|
4450
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4451
|
+
container: true,
|
|
4452
|
+
className: clsx(styles.work_info, styles.sectionWrapper)
|
|
4453
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4454
|
+
item: true,
|
|
4455
|
+
sm: 12,
|
|
4456
|
+
md: 4
|
|
4457
|
+
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4458
|
+
label: "Passport information",
|
|
4459
|
+
headerType: true
|
|
4460
|
+
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4461
|
+
item: true,
|
|
4462
|
+
sm: 12,
|
|
4463
|
+
md: 8,
|
|
4464
|
+
lg: 8,
|
|
4465
|
+
xl: 6
|
|
4466
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4467
|
+
container: true,
|
|
4468
|
+
className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
|
|
4469
|
+
}, passportInfo.map(function (p, i) {
|
|
4470
|
+
var _clsx2;
|
|
4471
|
+
if (!p.visibility) {
|
|
4472
|
+
return null;
|
|
4473
|
+
}
|
|
4385
4474
|
return /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4386
|
-
container: true,
|
|
4387
|
-
className: clsx(styles.product_info, styles.sectionWrapper)
|
|
4388
|
-
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4389
4475
|
item: true,
|
|
4390
4476
|
sm: 12,
|
|
4391
|
-
md:
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4477
|
+
md: 12,
|
|
4478
|
+
lg: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
|
|
4479
|
+
xl: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
|
|
4480
|
+
key: i,
|
|
4481
|
+
className: clsx(styles.margin, (_clsx2 = {}, _clsx2[styles.minGridWidth] = p.type === 'datepicker', _clsx2))
|
|
4482
|
+
}, /*#__PURE__*/React.createElement(GetInputType, {
|
|
4483
|
+
_p: p,
|
|
4484
|
+
inputState: passportInfoInput,
|
|
4485
|
+
onValueChange: onPassportInfoInputChange,
|
|
4486
|
+
dropdownList: dropdownList,
|
|
4487
|
+
errorArray: errorArray,
|
|
4488
|
+
errorMsg: errorMsgs[p.name],
|
|
4489
|
+
dateFormat: dateFormat
|
|
4490
|
+
}));
|
|
4491
|
+
})))), /*#__PURE__*/React.createElement(IUIDivider, {
|
|
4492
|
+
className: styles.dividerColor
|
|
4493
|
+
}), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4494
|
+
container: true,
|
|
4495
|
+
className: clsx(styles.personal_info, styles.sectionWrapper)
|
|
4496
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4497
|
+
item: true,
|
|
4498
|
+
sm: 12,
|
|
4499
|
+
md: 4
|
|
4500
|
+
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4501
|
+
label: "Membership information",
|
|
4502
|
+
headerType: true,
|
|
4503
|
+
description: "You can add up to " + maxMembershipInput + " membership details"
|
|
4504
|
+
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4505
|
+
item: true,
|
|
4506
|
+
sm: 12,
|
|
4507
|
+
md: 8,
|
|
4508
|
+
lg: 8,
|
|
4509
|
+
xl: 6
|
|
4510
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4511
|
+
container: true,
|
|
4512
|
+
className: styles.formFieldsWrapper
|
|
4513
|
+
}, membershipInfoInput.length === 0 && /*#__PURE__*/React.createElement(IUIBox, {
|
|
4514
|
+
className: styles.emptyFieldContainer
|
|
4515
|
+
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
4516
|
+
className: styles.emptyFieldDescription
|
|
4517
|
+
}, "No membership details added yet"), /*#__PURE__*/React.createElement(IUIBox, {
|
|
4518
|
+
className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
|
|
4519
|
+
display: "flex"
|
|
4520
|
+
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
4521
|
+
buttonText: "Add airline",
|
|
4522
|
+
type: "text",
|
|
4523
|
+
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4524
|
+
width: "10",
|
|
4525
|
+
height: "10",
|
|
4526
|
+
color: "#EC5D25"
|
|
4527
|
+
}),
|
|
4528
|
+
className: styles.paddingTop,
|
|
4529
|
+
onClick: function onClick(e) {
|
|
4530
|
+
return addMemInfoInput('flight');
|
|
4531
|
+
}
|
|
4532
|
+
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4533
|
+
buttonText: "Add hotel",
|
|
4534
|
+
type: "text",
|
|
4535
|
+
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4536
|
+
width: "10",
|
|
4537
|
+
height: "10",
|
|
4538
|
+
color: "#EC5D25"
|
|
4539
|
+
}),
|
|
4540
|
+
className: styles.paddingTop,
|
|
4541
|
+
onClick: function onClick(e) {
|
|
4542
|
+
return addMemInfoInput('hotel');
|
|
4543
|
+
}
|
|
4544
|
+
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4545
|
+
buttonText: "Add car rental",
|
|
4546
|
+
type: "text",
|
|
4547
|
+
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4548
|
+
width: "10",
|
|
4549
|
+
height: "10",
|
|
4550
|
+
color: "#EC5D25"
|
|
4551
|
+
}),
|
|
4552
|
+
className: styles.paddingTop,
|
|
4553
|
+
onClick: function onClick(e) {
|
|
4554
|
+
return addMemInfoInput('rental_car');
|
|
4555
|
+
}
|
|
4556
|
+
}))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
|
|
4557
|
+
if (index >= maxMembershipInput) {
|
|
4558
|
+
return null;
|
|
4559
|
+
}
|
|
4560
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
4561
|
+
key: index.toString()
|
|
4403
4562
|
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4404
4563
|
item: true,
|
|
4405
|
-
sm: 12,
|
|
4406
|
-
md: 4
|
|
4407
|
-
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4408
|
-
label: "Passport information",
|
|
4409
|
-
headerType: true
|
|
4410
|
-
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4411
|
-
item: true,
|
|
4412
|
-
sm: 12,
|
|
4413
4564
|
md: 8,
|
|
4414
|
-
lg:
|
|
4565
|
+
lg: 6,
|
|
4415
4566
|
xl: 6
|
|
4416
|
-
}, /*#__PURE__*/React.createElement(
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
var _clsx;
|
|
4421
|
-
if (!p.visibility) {
|
|
4422
|
-
return null;
|
|
4423
|
-
}
|
|
4424
|
-
return /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4425
|
-
item: true,
|
|
4426
|
-
sm: 12,
|
|
4427
|
-
md: 12,
|
|
4428
|
-
lg: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
|
|
4429
|
-
xl: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
|
|
4430
|
-
key: i,
|
|
4431
|
-
className: clsx(styles.margin, (_clsx = {}, _clsx[styles.minGridWidth] = p.type === 'datepicker', _clsx))
|
|
4432
|
-
}, /*#__PURE__*/React.createElement(GetInputType, {
|
|
4433
|
-
_p: p,
|
|
4434
|
-
inputState: passportInfoInput,
|
|
4435
|
-
onValueChange: onPassportInfoInputChange,
|
|
4436
|
-
dropdownList: dropdownList,
|
|
4437
|
-
errorArray: errorArray,
|
|
4438
|
-
errorMsg: errorMsgs[p.name],
|
|
4439
|
-
dateFormat: dateFormat
|
|
4440
|
-
}));
|
|
4441
|
-
})))), /*#__PURE__*/React.createElement(IUIDivider, {
|
|
4442
|
-
className: styles.dividerColor
|
|
4443
|
-
}), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4444
|
-
container: true,
|
|
4445
|
-
className: clsx(styles.personal_info, styles.sectionWrapper)
|
|
4446
|
-
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4447
|
-
item: true,
|
|
4448
|
-
sm: 12,
|
|
4449
|
-
md: 4
|
|
4450
|
-
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4451
|
-
label: "Membership information",
|
|
4452
|
-
headerType: true,
|
|
4453
|
-
description: "You can add up to " + maxMembershipInput + " membership details"
|
|
4567
|
+
}, /*#__PURE__*/React.createElement(MembershipField, {
|
|
4568
|
+
val: val,
|
|
4569
|
+
index: index,
|
|
4570
|
+
key: index.toString()
|
|
4454
4571
|
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4455
4572
|
item: true,
|
|
4456
|
-
sm: 12,
|
|
4457
4573
|
md: 8,
|
|
4458
|
-
lg:
|
|
4574
|
+
lg: 6,
|
|
4459
4575
|
xl: 6
|
|
4460
|
-
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4461
|
-
container: true,
|
|
4462
|
-
className: styles.formFieldsWrapper
|
|
4463
|
-
}, membershipInfoInput.length === 0 && /*#__PURE__*/React.createElement(IUIBox, {
|
|
4464
|
-
className: styles.emptyFieldContainer
|
|
4465
|
-
}, /*#__PURE__*/React.createElement(IUITypography, {
|
|
4466
|
-
className: styles.emptyFieldDescription
|
|
4467
|
-
}, "No membership details added yet"), /*#__PURE__*/React.createElement(IUIBox, {
|
|
4468
|
-
className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
|
|
4469
|
-
display: "flex"
|
|
4470
|
-
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
4471
|
-
buttonText: "Add airline",
|
|
4472
|
-
type: "text",
|
|
4473
|
-
startIcon: /*#__PURE__*/React.createElement(icons.Add, {
|
|
4474
|
-
width: "10",
|
|
4475
|
-
height: "10",
|
|
4476
|
-
color: "#EC5D25"
|
|
4477
|
-
}),
|
|
4478
|
-
className: styles.paddingTop,
|
|
4479
|
-
onClick: function onClick(e) {
|
|
4480
|
-
return addMemInfoInput('flight');
|
|
4481
|
-
}
|
|
4482
|
-
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4483
|
-
buttonText: "Add hotel",
|
|
4484
|
-
type: "text",
|
|
4485
|
-
startIcon: /*#__PURE__*/React.createElement(icons.Add, {
|
|
4486
|
-
width: "10",
|
|
4487
|
-
height: "10",
|
|
4488
|
-
color: "#EC5D25"
|
|
4489
|
-
}),
|
|
4490
|
-
className: styles.paddingTop,
|
|
4491
|
-
onClick: function onClick(e) {
|
|
4492
|
-
return addMemInfoInput('hotel');
|
|
4493
|
-
}
|
|
4494
|
-
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4495
|
-
buttonText: "Add car rental",
|
|
4496
|
-
type: "text",
|
|
4497
|
-
startIcon: /*#__PURE__*/React.createElement(icons.Add, {
|
|
4498
|
-
width: "10",
|
|
4499
|
-
height: "10",
|
|
4500
|
-
color: "#EC5D25"
|
|
4501
|
-
}),
|
|
4502
|
-
className: styles.paddingTop,
|
|
4503
|
-
onClick: function onClick(e) {
|
|
4504
|
-
return addMemInfoInput('rental_car');
|
|
4505
|
-
}
|
|
4506
|
-
}))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
|
|
4507
|
-
if (index >= maxMembershipInput) {
|
|
4508
|
-
return null;
|
|
4509
|
-
}
|
|
4510
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
4511
|
-
key: index.toString()
|
|
4512
|
-
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4513
|
-
item: true,
|
|
4514
|
-
md: 8,
|
|
4515
|
-
lg: 6,
|
|
4516
|
-
xl: 6
|
|
4517
|
-
}, /*#__PURE__*/React.createElement(MembershipField, {
|
|
4518
|
-
val: val,
|
|
4519
|
-
index: index,
|
|
4520
|
-
key: index.toString()
|
|
4521
|
-
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4522
|
-
item: true,
|
|
4523
|
-
md: 8,
|
|
4524
|
-
lg: 6,
|
|
4525
|
-
xl: 6
|
|
4526
|
-
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
4527
|
-
component: "div",
|
|
4528
|
-
display: "flex"
|
|
4529
|
-
}, /*#__PURE__*/React.createElement(IUIInput, {
|
|
4530
|
-
label: "Membership number",
|
|
4531
|
-
placeholder: "Enter membership number",
|
|
4532
|
-
fullwidth: false,
|
|
4533
|
-
defaultValue: val.number,
|
|
4534
|
-
onValueChange: function onValueChange(_ref6) {
|
|
4535
|
-
var _value = _ref6._value;
|
|
4536
|
-
return onMemInfoInputChange(index, 'number', _value);
|
|
4537
|
-
}
|
|
4538
|
-
}), /*#__PURE__*/React.createElement(IUIIconButton, {
|
|
4539
|
-
style: {
|
|
4540
|
-
marginTop: '30px'
|
|
4541
|
-
},
|
|
4542
|
-
disableRipple: true,
|
|
4543
|
-
onClick: function onClick() {
|
|
4544
|
-
return handleRemoveMemFields(index);
|
|
4545
|
-
},
|
|
4546
|
-
className: styles.backGrdColorOnHover
|
|
4547
|
-
}, /*#__PURE__*/React.createElement(Cross, {
|
|
4548
|
-
width: "14",
|
|
4549
|
-
height: "14"
|
|
4550
|
-
})))));
|
|
4551
|
-
}), membershipInfoInput.length < maxMembershipInput && membershipInfoInput.length > 0 && /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4552
|
-
item: true,
|
|
4553
|
-
md: 8,
|
|
4554
|
-
lg: 8,
|
|
4555
|
-
xl: 8
|
|
4556
4576
|
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
4557
|
-
|
|
4577
|
+
component: "div",
|
|
4558
4578
|
display: "flex"
|
|
4559
|
-
}, /*#__PURE__*/React.createElement(
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
className: styles.paddingTop,
|
|
4568
|
-
onClick: function onClick(e) {
|
|
4569
|
-
return addMemInfoInput('flight');
|
|
4570
|
-
}
|
|
4571
|
-
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4572
|
-
buttonText: "Add hotel",
|
|
4573
|
-
type: "text",
|
|
4574
|
-
startIcon: /*#__PURE__*/React.createElement(Add, {
|
|
4575
|
-
width: "10",
|
|
4576
|
-
height: "10",
|
|
4577
|
-
color: "#EC5D25"
|
|
4578
|
-
}),
|
|
4579
|
-
className: styles.paddingTop,
|
|
4580
|
-
onClick: function onClick(e) {
|
|
4581
|
-
return addMemInfoInput('hotel');
|
|
4582
|
-
}
|
|
4583
|
-
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4584
|
-
buttonText: "Add car rental",
|
|
4585
|
-
type: "text",
|
|
4586
|
-
startIcon: /*#__PURE__*/React.createElement(icons.Add, {
|
|
4587
|
-
width: "10",
|
|
4588
|
-
height: "10",
|
|
4589
|
-
color: "#EC5D25"
|
|
4590
|
-
}),
|
|
4591
|
-
className: styles.paddingTop,
|
|
4592
|
-
onClick: function onClick(e) {
|
|
4593
|
-
return addMemInfoInput('rental_car');
|
|
4594
|
-
}
|
|
4595
|
-
})))))), /*#__PURE__*/React.createElement(IUIDivider, {
|
|
4596
|
-
className: styles.dividerColor
|
|
4597
|
-
}), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4598
|
-
container: true,
|
|
4599
|
-
className: clsx(styles.personal_info, styles.sectionWrapper)
|
|
4600
|
-
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4601
|
-
item: true,
|
|
4602
|
-
sm: 12,
|
|
4603
|
-
md: 4
|
|
4604
|
-
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4605
|
-
label: "Travel preferences",
|
|
4606
|
-
headerType: true
|
|
4607
|
-
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4608
|
-
item: true,
|
|
4609
|
-
sm: 12,
|
|
4610
|
-
md: 8,
|
|
4611
|
-
lg: 8,
|
|
4612
|
-
xl: 6
|
|
4613
|
-
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4614
|
-
container: true,
|
|
4615
|
-
className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
|
|
4616
|
-
}, travelPreference.map(function (p, i) {
|
|
4617
|
-
if (!p.visibility) {
|
|
4618
|
-
return null;
|
|
4579
|
+
}, /*#__PURE__*/React.createElement(IUIInput, {
|
|
4580
|
+
label: "Membership number",
|
|
4581
|
+
placeholder: "Enter membership number",
|
|
4582
|
+
fullwidth: false,
|
|
4583
|
+
defaultValue: val.number,
|
|
4584
|
+
onValueChange: function onValueChange(_ref6) {
|
|
4585
|
+
var _value = _ref6._value;
|
|
4586
|
+
return onMemInfoInputChange(index, 'number', _value);
|
|
4619
4587
|
}
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4588
|
+
}), /*#__PURE__*/React.createElement(IUIIconButton, {
|
|
4589
|
+
style: {
|
|
4590
|
+
marginTop: '30px'
|
|
4591
|
+
},
|
|
4592
|
+
disableRipple: true,
|
|
4593
|
+
onClick: function onClick() {
|
|
4594
|
+
return handleRemoveMemFields(index);
|
|
4595
|
+
},
|
|
4596
|
+
className: styles.backGrdColorOnHover
|
|
4597
|
+
}, /*#__PURE__*/React.createElement(CrossIcon, {
|
|
4598
|
+
width: "14",
|
|
4599
|
+
height: "14"
|
|
4600
|
+
})))));
|
|
4601
|
+
}), membershipInfoInput.length < maxMembershipInput && membershipInfoInput.length > 0 && /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4602
|
+
item: true,
|
|
4603
|
+
md: 8,
|
|
4604
|
+
lg: 8,
|
|
4605
|
+
xl: 8
|
|
4606
|
+
}, /*#__PURE__*/React.createElement(IUIBox, {
|
|
4607
|
+
className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
|
|
4608
|
+
display: "flex"
|
|
4609
|
+
}, /*#__PURE__*/React.createElement(IUIButton, {
|
|
4610
|
+
buttonText: "Add airline",
|
|
4611
|
+
type: "text",
|
|
4612
|
+
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4613
|
+
width: "10",
|
|
4614
|
+
height: "10",
|
|
4615
|
+
color: "#EC5D25"
|
|
4616
|
+
}),
|
|
4617
|
+
className: styles.paddingTop,
|
|
4618
|
+
onClick: function onClick(e) {
|
|
4619
|
+
return addMemInfoInput('flight');
|
|
4620
|
+
}
|
|
4621
|
+
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4622
|
+
buttonText: "Add hotel",
|
|
4623
|
+
type: "text",
|
|
4624
|
+
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4625
|
+
width: "10",
|
|
4626
|
+
height: "10",
|
|
4627
|
+
color: "#EC5D25"
|
|
4628
|
+
}),
|
|
4629
|
+
className: styles.paddingTop,
|
|
4630
|
+
onClick: function onClick(e) {
|
|
4631
|
+
return addMemInfoInput('hotel');
|
|
4632
|
+
}
|
|
4633
|
+
}), /*#__PURE__*/React.createElement(IUIButton, {
|
|
4634
|
+
buttonText: "Add car rental",
|
|
4635
|
+
type: "text",
|
|
4636
|
+
startIcon: /*#__PURE__*/React.createElement(AddIcon, {
|
|
4637
|
+
width: "10",
|
|
4638
|
+
height: "10",
|
|
4639
|
+
color: "#EC5D25"
|
|
4640
|
+
}),
|
|
4641
|
+
className: styles.paddingTop,
|
|
4642
|
+
onClick: function onClick(e) {
|
|
4643
|
+
return addMemInfoInput('rental_car');
|
|
4644
|
+
}
|
|
4645
|
+
})))))), /*#__PURE__*/React.createElement(IUIDivider, {
|
|
4646
|
+
className: styles.dividerColor
|
|
4647
|
+
}), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4648
|
+
container: true,
|
|
4649
|
+
className: clsx(styles.personal_info, styles.sectionWrapper)
|
|
4650
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4651
|
+
item: true,
|
|
4652
|
+
sm: 12,
|
|
4653
|
+
md: 4
|
|
4654
|
+
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4655
|
+
label: "Travel preferences",
|
|
4656
|
+
headerType: true
|
|
4657
|
+
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4658
|
+
item: true,
|
|
4659
|
+
sm: 12,
|
|
4660
|
+
md: 8,
|
|
4661
|
+
lg: 8,
|
|
4662
|
+
xl: 6
|
|
4663
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4664
|
+
container: true,
|
|
4665
|
+
className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
|
|
4666
|
+
}, travelPreference.map(function (p, i) {
|
|
4667
|
+
if (!p.visibility) {
|
|
4668
|
+
return null;
|
|
4669
|
+
}
|
|
4670
|
+
return /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4642
4671
|
item: true,
|
|
4643
4672
|
sm: 12,
|
|
4644
|
-
md:
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4673
|
+
md: 12,
|
|
4674
|
+
lg: p.fullWidth ? 12 : 6,
|
|
4675
|
+
xl: p.fullWidth ? 12 : 6,
|
|
4676
|
+
key: i,
|
|
4677
|
+
className: clsx(styles.margin)
|
|
4678
|
+
}, /*#__PURE__*/React.createElement(GetInputType, {
|
|
4679
|
+
_p: p,
|
|
4680
|
+
inputState: travelPreferenceInfo,
|
|
4681
|
+
onValueChange: travelPreferenceOnChange,
|
|
4682
|
+
dropdownList: dropdownList,
|
|
4683
|
+
errorArray: errorArray,
|
|
4684
|
+
errorMsg: errorMsgs[p.name]
|
|
4685
|
+
}));
|
|
4686
|
+
})))), /*#__PURE__*/React.createElement(IUIDivider, {
|
|
4687
|
+
className: styles.dividerColor
|
|
4688
|
+
}), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4689
|
+
container: true,
|
|
4690
|
+
className: clsx(styles.personal_info, styles.sectionWrapper)
|
|
4691
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4692
|
+
item: true,
|
|
4693
|
+
sm: 12,
|
|
4694
|
+
md: 4
|
|
4695
|
+
}, /*#__PURE__*/React.createElement(IUILabel, {
|
|
4696
|
+
label: "Secure traveler information",
|
|
4697
|
+
headerType: true
|
|
4698
|
+
})), /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4699
|
+
item: true,
|
|
4700
|
+
sm: 12,
|
|
4701
|
+
md: 8,
|
|
4702
|
+
lg: 8,
|
|
4703
|
+
xl: 6
|
|
4704
|
+
}, /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4705
|
+
container: true,
|
|
4706
|
+
className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
|
|
4707
|
+
}, secureTravelInfo.map(function (p, i) {
|
|
4708
|
+
if (!p.visibility) {
|
|
4709
|
+
return null;
|
|
4710
|
+
}
|
|
4711
|
+
return /*#__PURE__*/React.createElement(IUIGrid, {
|
|
4649
4712
|
item: true,
|
|
4650
4713
|
sm: 12,
|
|
4651
|
-
md:
|
|
4652
|
-
lg:
|
|
4653
|
-
xl: 6
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
md: 12,
|
|
4665
|
-
lg: p.fullWidth ? 12 : 6,
|
|
4666
|
-
xl: p.fullWidth ? 12 : 6,
|
|
4667
|
-
key: i,
|
|
4668
|
-
className: clsx(styles.margin)
|
|
4669
|
-
}, /*#__PURE__*/React.createElement(GetInputType, {
|
|
4670
|
-
_p: p,
|
|
4671
|
-
inputState: secureTravelInputInfo,
|
|
4672
|
-
onValueChange: onSecureTraveelerInfoInputChange,
|
|
4673
|
-
errorArray: errorArray,
|
|
4674
|
-
errorMsg: errorMsgs[p.name]
|
|
4675
|
-
}));
|
|
4676
|
-
})))));
|
|
4677
|
-
};
|
|
4678
|
-
return /*#__PURE__*/React.createElement(IUIAccordionMain, {
|
|
4679
|
-
expanded: defaultExpand === 'open',
|
|
4680
|
-
onChange: handleChange('open'),
|
|
4681
|
-
accordionClass: styles.additionalInfoContainer,
|
|
4682
|
-
summaryComponent: getAccordianSummary(),
|
|
4683
|
-
summaryClass: clsx(styles.additionalInfoTitle, (_clsx2 = {}, _clsx2[styles.expandIconAlign] = defaultExpand === 'open', _clsx2)),
|
|
4684
|
-
expandIcon: defaultExpand ? /*#__PURE__*/React.createElement(ExpandLess, {
|
|
4685
|
-
width: "12px",
|
|
4686
|
-
height: "7px"
|
|
4687
|
-
}) : /*#__PURE__*/React.createElement(ExpandMore, {
|
|
4688
|
-
width: "12px",
|
|
4689
|
-
height: "7px"
|
|
4690
|
-
}),
|
|
4691
|
-
detailsComponent: getAccordianDetails(),
|
|
4692
|
-
detailsClass: styles.detailsContainer
|
|
4693
|
-
});
|
|
4714
|
+
md: 12,
|
|
4715
|
+
lg: p.fullWidth ? 12 : 6,
|
|
4716
|
+
xl: p.fullWidth ? 12 : 6,
|
|
4717
|
+
key: i,
|
|
4718
|
+
className: clsx(styles.margin)
|
|
4719
|
+
}, /*#__PURE__*/React.createElement(GetInputType, {
|
|
4720
|
+
_p: p,
|
|
4721
|
+
inputState: secureTravelInputInfo,
|
|
4722
|
+
onValueChange: onSecureTraveelerInfoInputChange,
|
|
4723
|
+
errorArray: errorArray,
|
|
4724
|
+
errorMsg: errorMsgs[p.name]
|
|
4725
|
+
}));
|
|
4726
|
+
}))))));
|
|
4694
4727
|
};
|
|
4695
4728
|
|
|
4696
4729
|
var styles$3 = {"root":"_b_muK","minWidth":"_3OQXs","bullet":"_1Q5vL","pos":"_6wGWA","cardHeader":"_SWCfJ","pageHeader":"_2ZeWp","buttonHover":"_2Iuy1","cardHeaderBackground":"_3NJWF","actionCustom":"_3Kbfm"};
|
|
@@ -6774,7 +6807,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
|
|
|
6774
6807
|
};
|
|
6775
6808
|
};
|
|
6776
6809
|
|
|
6777
|
-
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","
|
|
6810
|
+
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"};
|
|
6778
6811
|
|
|
6779
6812
|
var BulkUploadModal = function BulkUploadModal(props) {
|
|
6780
6813
|
var isOpenImportUsersModal = props.isOpenImportUsersModal,
|
|
@@ -8035,19 +8068,6 @@ var BulkDownloadIcon = function BulkDownloadIcon(props) {
|
|
|
8035
8068
|
|
|
8036
8069
|
var classes = {"containedBtn":"_2A4_u","customMiniBox":"_QGIKG","muiBtn":"_3iFbO","outlinedBtn":"_3lQYD","menuList":"_1C8bJ","menuListContainer":"_1N83W","menuItemContainer":"_3VtcE","menuItemtext":"_2xqnU","subTxt":"_3CVzX"};
|
|
8037
8070
|
|
|
8038
|
-
var ExpandMoreIcon = function ExpandMoreIcon(props) {
|
|
8039
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
8040
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8041
|
-
width: props.width,
|
|
8042
|
-
height: props.height,
|
|
8043
|
-
fill: "none",
|
|
8044
|
-
viewBox: "0 0 12 7"
|
|
8045
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
8046
|
-
fill: "#6B7280",
|
|
8047
|
-
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"
|
|
8048
|
-
}));
|
|
8049
|
-
};
|
|
8050
|
-
|
|
8051
8071
|
var DropdownBtn = function DropdownBtn(props) {
|
|
8052
8072
|
var _clsx;
|
|
8053
8073
|
var _props$buttonText = props.buttonText,
|
|
@@ -8682,12 +8702,18 @@ var UserList = function UserList(_ref2) {
|
|
|
8682
8702
|
var _useState10 = useState(false),
|
|
8683
8703
|
isApiFetching = _useState10[0],
|
|
8684
8704
|
setisApiFetching = _useState10[1];
|
|
8685
|
-
var _useState11 = useState(
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8705
|
+
var _useState11 = useState({
|
|
8706
|
+
value: '',
|
|
8707
|
+
label: 'Select approver'
|
|
8708
|
+
}),
|
|
8709
|
+
travelFYI = _useState11[0],
|
|
8710
|
+
setTravelFYI = _useState11[1];
|
|
8711
|
+
var _useState12 = useState(false),
|
|
8712
|
+
showInviteModal = _useState12[0],
|
|
8713
|
+
setToggleInviteModal = _useState12[1];
|
|
8714
|
+
var _useState13 = useState(''),
|
|
8715
|
+
userIds = _useState13[0],
|
|
8716
|
+
setUserIds = _useState13[1];
|
|
8691
8717
|
var _React$useState6 = React.useState(false),
|
|
8692
8718
|
overlayMenu = _React$useState6[0],
|
|
8693
8719
|
setOverlayMenu = _React$useState6[1];
|
|
@@ -8714,40 +8740,34 @@ var UserList = function UserList(_ref2) {
|
|
|
8714
8740
|
var _React$useState7 = React.useState(1),
|
|
8715
8741
|
signup_page = _React$useState7[0],
|
|
8716
8742
|
setSignUpPage = _React$useState7[1];
|
|
8717
|
-
var
|
|
8718
|
-
signup_rowsPerPage =
|
|
8719
|
-
setSignUpRowsPerPage =
|
|
8743
|
+
var _useState14 = useState(5),
|
|
8744
|
+
signup_rowsPerPage = _useState14[0],
|
|
8745
|
+
setSignUpRowsPerPage = _useState14[1];
|
|
8720
8746
|
var _React$useState8 = React.useState('asc'),
|
|
8721
8747
|
signup_order = _React$useState8[0],
|
|
8722
8748
|
setSignUpOrder = _React$useState8[1];
|
|
8723
8749
|
var _React$useState9 = React.useState('fname'),
|
|
8724
8750
|
signup_orderBy = _React$useState9[0],
|
|
8725
8751
|
setSignUpOrderBy = _React$useState9[1];
|
|
8726
|
-
var
|
|
8727
|
-
signup_searchValue =
|
|
8728
|
-
set_signup_SearchValue =
|
|
8729
|
-
var _useState15 = useState(false),
|
|
8730
|
-
isSignUpSortingChange = _useState15[0],
|
|
8731
|
-
setSignUpSortingChange = _useState15[1];
|
|
8752
|
+
var _useState15 = useState(''),
|
|
8753
|
+
signup_searchValue = _useState15[0],
|
|
8754
|
+
set_signup_SearchValue = _useState15[1];
|
|
8732
8755
|
var _useState16 = useState(false),
|
|
8733
|
-
|
|
8734
|
-
|
|
8756
|
+
isSignUpSortingChange = _useState16[0],
|
|
8757
|
+
setSignUpSortingChange = _useState16[1];
|
|
8735
8758
|
var _useState17 = useState(false),
|
|
8736
|
-
|
|
8737
|
-
|
|
8759
|
+
isSignUpSearchingChange = _useState17[0],
|
|
8760
|
+
setSignUpSearchingChange = _useState17[1];
|
|
8738
8761
|
var _useState18 = useState(false),
|
|
8739
|
-
|
|
8740
|
-
|
|
8762
|
+
isSignUpSortingChangeTemp = _useState18[0],
|
|
8763
|
+
setSignUpSortingChangeTemp = _useState18[1];
|
|
8764
|
+
var _useState19 = useState(false),
|
|
8765
|
+
isSignUpSearchingChangeTemp = _useState19[0],
|
|
8766
|
+
setSignUpSearchingChangeTemp = _useState19[1];
|
|
8741
8767
|
var _useSelector3 = useSelector(function (state) {
|
|
8742
8768
|
return state.userList;
|
|
8743
8769
|
}),
|
|
8744
8770
|
signupRequestListInfo = _useSelector3.signupRequestListInfo;
|
|
8745
|
-
var _useState19 = useState({
|
|
8746
|
-
value: '',
|
|
8747
|
-
label: 'Select approver'
|
|
8748
|
-
}),
|
|
8749
|
-
travelFYI = _useState19[0],
|
|
8750
|
-
setTravelFYI = _useState19[1];
|
|
8751
8771
|
var openDeactivateModal = function openDeactivateModal() {
|
|
8752
8772
|
if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
|
|
8753
8773
|
IUIToastMessageService$7.warningNotify('Select at least one user to deactivate.');
|