@itilite/iui-user-management 0.4.32 → 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.
@@ -1,4 +1,4 @@
1
- import { IUIAsyncSelect, IUIBox, IUILabel, IUIFileUpload, IUICheckboxButton, IUIPhone, IUISelect, IUIDatePicker, IUIInput, IUIDivider, IUIGrid, IUITypography, IUIRadio, IUIButton, IUIModal, IUIAccordionMain, icons, IUIIconButton, IUICard, IUIBackdrop, IUICircularProgress, IUIBreadCrumb, IUIDropzone, IUIStepper, IUIFormControlLabel, IUICheckBox, IUIPrimaryRadio, IUITable, IUISkeleton, IUIProfileBox, IUIFormGroup, IUISearch, IUIDropdownButton, IUITabs } from '@itilite/iuistyles';
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';
@@ -4263,8 +4263,49 @@ function withStore(Component) {
4263
4263
  return WrappedComponent;
4264
4264
  }
4265
4265
 
4266
+ var ExpandMoreIcon = function ExpandMoreIcon(props) {
4267
+ return /*#__PURE__*/React.createElement("svg", {
4268
+ xmlns: "http://www.w3.org/2000/svg",
4269
+ width: props.width,
4270
+ height: props.height,
4271
+ fill: "none",
4272
+ viewBox: "0 0 12 7"
4273
+ }, /*#__PURE__*/React.createElement("path", {
4274
+ fill: "#6B7280",
4275
+ 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"
4276
+ }));
4277
+ };
4278
+
4279
+ var ExpandLessIcon = function ExpandLessIcon(props) {
4280
+ return /*#__PURE__*/React.createElement("svg", {
4281
+ xmlns: "http://www.w3.org/2000/svg",
4282
+ width: props.width,
4283
+ height: props.height,
4284
+ fill: "none",
4285
+ viewBox: "0 0 10 6"
4286
+ }, /*#__PURE__*/React.createElement("path", {
4287
+ fill: "#6B7280",
4288
+ 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"
4289
+ }));
4290
+ };
4291
+
4292
+ var CrossIcon = function CrossIcon(props) {
4293
+ var _props$color = props.color,
4294
+ color = _props$color === void 0 ? '#6B7280' : _props$color;
4295
+ return /*#__PURE__*/React.createElement("svg", {
4296
+ xmlns: "http://www.w3.org/2000/svg",
4297
+ width: props.width,
4298
+ height: props.height,
4299
+ fill: "none",
4300
+ viewBox: "0 0 14 14"
4301
+ }, /*#__PURE__*/React.createElement("path", {
4302
+ fill: color,
4303
+ 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"
4304
+ }));
4305
+ };
4306
+
4266
4307
  var AdditionalInfo = function AdditionalInfo(_ref) {
4267
- var _clsx2;
4308
+ var _clsx;
4268
4309
  var membershipInfoInput = _ref.membershipInfoInput,
4269
4310
  onMemInfoInputChange = _ref.onMemInfoInputChange,
4270
4311
  addMemInfoInput = _ref.addMemInfoInput,
@@ -4293,10 +4334,6 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
4293
4334
  setAdditionalInfoFlag(defaultExpand ? panel : false);
4294
4335
  };
4295
4336
  };
4296
- var ExpandMore = icons.ExpandMore,
4297
- ExpandLess = icons.ExpandLess,
4298
- Add = icons.Add,
4299
- Cross = icons.Cross;
4300
4337
  var _useSelector = useSelector(function (state) {
4301
4338
  return state.userAddEdit.renderFields;
4302
4339
  }),
@@ -4354,316 +4391,312 @@ var AdditionalInfo = function AdditionalInfo(_ref) {
4354
4391
  }
4355
4392
  return null;
4356
4393
  };
4357
- var getAccordianSummary = function getAccordianSummary() {
4394
+ return /*#__PURE__*/React.createElement(IUIAccordion, {
4395
+ expanded: defaultExpand === 'open',
4396
+ onChange: handleChange('open'),
4397
+ className: styles.additionalInfoContainer
4398
+ }, /*#__PURE__*/React.createElement(IUIAccordionSummary, {
4399
+ expandIcon: defaultExpand ? /*#__PURE__*/React.createElement(ExpandLessIcon, {
4400
+ width: "12px",
4401
+ height: "7px"
4402
+ }) : /*#__PURE__*/React.createElement(ExpandMoreIcon, {
4403
+ width: "12px",
4404
+ height: "7px"
4405
+ }),
4406
+ "aria-controls": "panel1bh-content",
4407
+ id: "panel1bh-header",
4408
+ className: clsx(styles.additionalInfoTitle, (_clsx = {}, _clsx[styles.expandIconAlign] = defaultExpand === 'open', _clsx))
4409
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4410
+ container: true,
4411
+ className: clsx(styles.product_info, styles.sectionWrapper)
4412
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4413
+ item: true,
4414
+ sm: 12,
4415
+ md: 4,
4416
+ className: styles.titleContainer
4417
+ }, /*#__PURE__*/React.createElement(IUILabel, {
4418
+ label: "Additional information",
4419
+ headerType: true,
4420
+ description: "Passport, Membership, Travel preferences..."
4421
+ })))), /*#__PURE__*/React.createElement(IUIAccordionDetails, {
4422
+ className: styles.detailsContainer
4423
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4424
+ container: true,
4425
+ className: clsx(styles.work_info, styles.sectionWrapper)
4426
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4427
+ item: true,
4428
+ sm: 12,
4429
+ md: 4
4430
+ }, /*#__PURE__*/React.createElement(IUILabel, {
4431
+ label: "Passport information",
4432
+ headerType: true
4433
+ })), /*#__PURE__*/React.createElement(IUIGrid, {
4434
+ item: true,
4435
+ sm: 12,
4436
+ md: 8,
4437
+ lg: 8,
4438
+ xl: 6
4439
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4440
+ container: true,
4441
+ className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4442
+ }, passportInfo.map(function (p, i) {
4443
+ var _clsx2;
4444
+ if (!p.visibility) {
4445
+ return null;
4446
+ }
4358
4447
  return /*#__PURE__*/React.createElement(IUIGrid, {
4359
- container: true,
4360
- className: clsx(styles.product_info, styles.sectionWrapper)
4361
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4362
4448
  item: true,
4363
4449
  sm: 12,
4364
- md: 4,
4365
- className: styles.titleContainer
4366
- }, /*#__PURE__*/React.createElement(IUILabel, {
4367
- label: "Additional information",
4368
- headerType: true,
4369
- description: "Passport, Membership, Travel preferences..."
4370
- })));
4371
- };
4372
- var getAccordianDetails = function getAccordianDetails() {
4373
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(IUIGrid, {
4374
- container: true,
4375
- className: clsx(styles.work_info, styles.sectionWrapper)
4450
+ md: 12,
4451
+ lg: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4452
+ xl: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4453
+ key: i,
4454
+ className: clsx(styles.margin, (_clsx2 = {}, _clsx2[styles.minGridWidth] = p.type === 'datepicker', _clsx2))
4455
+ }, /*#__PURE__*/React.createElement(GetInputType, {
4456
+ _p: p,
4457
+ inputState: passportInfoInput,
4458
+ onValueChange: onPassportInfoInputChange,
4459
+ dropdownList: dropdownList,
4460
+ errorArray: errorArray,
4461
+ errorMsg: errorMsgs[p.name],
4462
+ dateFormat: dateFormat
4463
+ }));
4464
+ })))), /*#__PURE__*/React.createElement(IUIDivider, {
4465
+ className: styles.dividerColor
4466
+ }), /*#__PURE__*/React.createElement(IUIGrid, {
4467
+ container: true,
4468
+ className: clsx(styles.personal_info, styles.sectionWrapper)
4469
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4470
+ item: true,
4471
+ sm: 12,
4472
+ md: 4
4473
+ }, /*#__PURE__*/React.createElement(IUILabel, {
4474
+ label: "Membership information",
4475
+ headerType: true,
4476
+ description: "You can add up to " + maxMembershipInput + " membership details"
4477
+ })), /*#__PURE__*/React.createElement(IUIGrid, {
4478
+ item: true,
4479
+ sm: 12,
4480
+ md: 8,
4481
+ lg: 8,
4482
+ xl: 6
4483
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4484
+ container: true,
4485
+ className: styles.formFieldsWrapper
4486
+ }, membershipInfoInput.length === 0 && /*#__PURE__*/React.createElement(IUIBox, {
4487
+ className: styles.emptyFieldContainer
4488
+ }, /*#__PURE__*/React.createElement(IUITypography, {
4489
+ className: styles.emptyFieldDescription
4490
+ }, "No membership details added yet"), /*#__PURE__*/React.createElement(IUIBox, {
4491
+ className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4492
+ display: "flex"
4493
+ }, /*#__PURE__*/React.createElement(IUIButton, {
4494
+ buttonText: "Add airline",
4495
+ type: "text",
4496
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4497
+ width: "10",
4498
+ height: "10",
4499
+ color: "#EC5D25"
4500
+ }),
4501
+ className: styles.paddingTop,
4502
+ onClick: function onClick(e) {
4503
+ return addMemInfoInput('flight');
4504
+ }
4505
+ }), /*#__PURE__*/React.createElement(IUIButton, {
4506
+ buttonText: "Add hotel",
4507
+ type: "text",
4508
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4509
+ width: "10",
4510
+ height: "10",
4511
+ color: "#EC5D25"
4512
+ }),
4513
+ className: styles.paddingTop,
4514
+ onClick: function onClick(e) {
4515
+ return addMemInfoInput('hotel');
4516
+ }
4517
+ }), /*#__PURE__*/React.createElement(IUIButton, {
4518
+ buttonText: "Add car rental",
4519
+ type: "text",
4520
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4521
+ width: "10",
4522
+ height: "10",
4523
+ color: "#EC5D25"
4524
+ }),
4525
+ className: styles.paddingTop,
4526
+ onClick: function onClick(e) {
4527
+ return addMemInfoInput('rental_car');
4528
+ }
4529
+ }))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
4530
+ if (index >= maxMembershipInput) {
4531
+ return null;
4532
+ }
4533
+ return /*#__PURE__*/React.createElement(React.Fragment, {
4534
+ key: index.toString()
4376
4535
  }, /*#__PURE__*/React.createElement(IUIGrid, {
4377
4536
  item: true,
4378
- sm: 12,
4379
- md: 4
4380
- }, /*#__PURE__*/React.createElement(IUILabel, {
4381
- label: "Passport information",
4382
- headerType: true
4383
- })), /*#__PURE__*/React.createElement(IUIGrid, {
4384
- item: true,
4385
- sm: 12,
4386
4537
  md: 8,
4387
- lg: 8,
4538
+ lg: 6,
4388
4539
  xl: 6
4389
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4390
- container: true,
4391
- className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4392
- }, passportInfo.map(function (p, i) {
4393
- var _clsx;
4394
- if (!p.visibility) {
4395
- return null;
4396
- }
4397
- return /*#__PURE__*/React.createElement(IUIGrid, {
4398
- item: true,
4399
- sm: 12,
4400
- md: 12,
4401
- lg: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4402
- xl: p.type === 'datepicker' ? 2 : p.fullWidth ? 12 : 6,
4403
- key: i,
4404
- className: clsx(styles.margin, (_clsx = {}, _clsx[styles.minGridWidth] = p.type === 'datepicker', _clsx))
4405
- }, /*#__PURE__*/React.createElement(GetInputType, {
4406
- _p: p,
4407
- inputState: passportInfoInput,
4408
- onValueChange: onPassportInfoInputChange,
4409
- dropdownList: dropdownList,
4410
- errorArray: errorArray,
4411
- errorMsg: errorMsgs[p.name],
4412
- dateFormat: dateFormat
4413
- }));
4414
- })))), /*#__PURE__*/React.createElement(IUIDivider, {
4415
- className: styles.dividerColor
4416
- }), /*#__PURE__*/React.createElement(IUIGrid, {
4417
- container: true,
4418
- className: clsx(styles.personal_info, styles.sectionWrapper)
4419
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4420
- item: true,
4421
- sm: 12,
4422
- md: 4
4423
- }, /*#__PURE__*/React.createElement(IUILabel, {
4424
- label: "Membership information",
4425
- headerType: true,
4426
- description: "You can add up to " + maxMembershipInput + " membership details"
4540
+ }, /*#__PURE__*/React.createElement(MembershipField, {
4541
+ val: val,
4542
+ index: index,
4543
+ key: index.toString()
4427
4544
  })), /*#__PURE__*/React.createElement(IUIGrid, {
4428
4545
  item: true,
4429
- sm: 12,
4430
4546
  md: 8,
4431
- lg: 8,
4547
+ lg: 6,
4432
4548
  xl: 6
4433
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4434
- container: true,
4435
- className: styles.formFieldsWrapper
4436
- }, membershipInfoInput.length === 0 && /*#__PURE__*/React.createElement(IUIBox, {
4437
- className: styles.emptyFieldContainer
4438
- }, /*#__PURE__*/React.createElement(IUITypography, {
4439
- className: styles.emptyFieldDescription
4440
- }, "No membership details added yet"), /*#__PURE__*/React.createElement(IUIBox, {
4441
- className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4442
- display: "flex"
4443
- }, /*#__PURE__*/React.createElement(IUIButton, {
4444
- buttonText: "Add airline",
4445
- type: "text",
4446
- startIcon: /*#__PURE__*/React.createElement(icons.Add, {
4447
- width: "10",
4448
- height: "10",
4449
- color: "#EC5D25"
4450
- }),
4451
- className: styles.paddingTop,
4452
- onClick: function onClick(e) {
4453
- return addMemInfoInput('flight');
4454
- }
4455
- }), /*#__PURE__*/React.createElement(IUIButton, {
4456
- buttonText: "Add hotel",
4457
- type: "text",
4458
- startIcon: /*#__PURE__*/React.createElement(icons.Add, {
4459
- width: "10",
4460
- height: "10",
4461
- color: "#EC5D25"
4462
- }),
4463
- className: styles.paddingTop,
4464
- onClick: function onClick(e) {
4465
- return addMemInfoInput('hotel');
4466
- }
4467
- }), /*#__PURE__*/React.createElement(IUIButton, {
4468
- buttonText: "Add car rental",
4469
- type: "text",
4470
- startIcon: /*#__PURE__*/React.createElement(icons.Add, {
4471
- width: "10",
4472
- height: "10",
4473
- color: "#EC5D25"
4474
- }),
4475
- className: styles.paddingTop,
4476
- onClick: function onClick(e) {
4477
- return addMemInfoInput('rental_car');
4478
- }
4479
- }))), membershipInfoInput.length > 0 && membershipInfoInput.map(function (val, index) {
4480
- if (index >= maxMembershipInput) {
4481
- return null;
4482
- }
4483
- return /*#__PURE__*/React.createElement(React.Fragment, {
4484
- key: index.toString()
4485
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4486
- item: true,
4487
- md: 8,
4488
- lg: 6,
4489
- xl: 6
4490
- }, /*#__PURE__*/React.createElement(MembershipField, {
4491
- val: val,
4492
- index: index,
4493
- key: index.toString()
4494
- })), /*#__PURE__*/React.createElement(IUIGrid, {
4495
- item: true,
4496
- md: 8,
4497
- lg: 6,
4498
- xl: 6
4499
- }, /*#__PURE__*/React.createElement(IUIBox, {
4500
- component: "div",
4501
- display: "flex"
4502
- }, /*#__PURE__*/React.createElement(IUIInput, {
4503
- label: "Membership number",
4504
- placeholder: "Enter membership number",
4505
- fullwidth: false,
4506
- defaultValue: val.number,
4507
- onValueChange: function onValueChange(_ref6) {
4508
- var _value = _ref6._value;
4509
- return onMemInfoInputChange(index, 'number', _value);
4510
- }
4511
- }), /*#__PURE__*/React.createElement(IUIIconButton, {
4512
- style: {
4513
- marginTop: '30px'
4514
- },
4515
- disableRipple: true,
4516
- onClick: function onClick() {
4517
- return handleRemoveMemFields(index);
4518
- },
4519
- className: styles.backGrdColorOnHover
4520
- }, /*#__PURE__*/React.createElement(Cross, {
4521
- width: "14",
4522
- height: "14"
4523
- })))));
4524
- }), membershipInfoInput.length < maxMembershipInput && membershipInfoInput.length > 0 && /*#__PURE__*/React.createElement(IUIGrid, {
4525
- item: true,
4526
- md: 8,
4527
- lg: 8,
4528
- xl: 8
4529
4549
  }, /*#__PURE__*/React.createElement(IUIBox, {
4530
- className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4550
+ component: "div",
4531
4551
  display: "flex"
4532
- }, /*#__PURE__*/React.createElement(IUIButton, {
4533
- buttonText: "Add airline",
4534
- type: "text",
4535
- startIcon: /*#__PURE__*/React.createElement(Add, {
4536
- width: "10",
4537
- height: "10",
4538
- color: "#EC5D25"
4539
- }),
4540
- className: styles.paddingTop,
4541
- onClick: function onClick(e) {
4542
- return addMemInfoInput('flight');
4543
- }
4544
- }), /*#__PURE__*/React.createElement(IUIButton, {
4545
- buttonText: "Add hotel",
4546
- type: "text",
4547
- startIcon: /*#__PURE__*/React.createElement(Add, {
4548
- width: "10",
4549
- height: "10",
4550
- color: "#EC5D25"
4551
- }),
4552
- className: styles.paddingTop,
4553
- onClick: function onClick(e) {
4554
- return addMemInfoInput('hotel');
4555
- }
4556
- }), /*#__PURE__*/React.createElement(IUIButton, {
4557
- buttonText: "Add car rental",
4558
- type: "text",
4559
- startIcon: /*#__PURE__*/React.createElement(icons.Add, {
4560
- width: "10",
4561
- height: "10",
4562
- color: "#EC5D25"
4563
- }),
4564
- className: styles.paddingTop,
4565
- onClick: function onClick(e) {
4566
- return addMemInfoInput('rental_car');
4567
- }
4568
- })))))), /*#__PURE__*/React.createElement(IUIDivider, {
4569
- className: styles.dividerColor
4570
- }), /*#__PURE__*/React.createElement(IUIGrid, {
4571
- container: true,
4572
- className: clsx(styles.personal_info, styles.sectionWrapper)
4573
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4574
- item: true,
4575
- sm: 12,
4576
- md: 4
4577
- }, /*#__PURE__*/React.createElement(IUILabel, {
4578
- label: "Travel preferences",
4579
- headerType: true
4580
- })), /*#__PURE__*/React.createElement(IUIGrid, {
4581
- item: true,
4582
- sm: 12,
4583
- md: 8,
4584
- lg: 8,
4585
- xl: 6
4586
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4587
- container: true,
4588
- className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4589
- }, travelPreference.map(function (p, i) {
4590
- if (!p.visibility) {
4591
- return null;
4552
+ }, /*#__PURE__*/React.createElement(IUIInput, {
4553
+ label: "Membership number",
4554
+ placeholder: "Enter membership number",
4555
+ fullwidth: false,
4556
+ defaultValue: val.number,
4557
+ onValueChange: function onValueChange(_ref6) {
4558
+ var _value = _ref6._value;
4559
+ return onMemInfoInputChange(index, 'number', _value);
4592
4560
  }
4593
- return /*#__PURE__*/React.createElement(IUIGrid, {
4594
- item: true,
4595
- sm: 12,
4596
- md: 12,
4597
- lg: p.fullWidth ? 12 : 6,
4598
- xl: p.fullWidth ? 12 : 6,
4599
- key: i,
4600
- className: clsx(styles.margin)
4601
- }, /*#__PURE__*/React.createElement(GetInputType, {
4602
- _p: p,
4603
- inputState: travelPreferenceInfo,
4604
- onValueChange: travelPreferenceOnChange,
4605
- dropdownList: dropdownList,
4606
- errorArray: errorArray,
4607
- errorMsg: errorMsgs[p.name]
4608
- }));
4609
- })))), /*#__PURE__*/React.createElement(IUIDivider, {
4610
- className: styles.dividerColor
4611
- }), /*#__PURE__*/React.createElement(IUIGrid, {
4612
- container: true,
4613
- className: clsx(styles.personal_info, styles.sectionWrapper)
4614
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4561
+ }), /*#__PURE__*/React.createElement(IUIIconButton, {
4562
+ style: {
4563
+ marginTop: '30px'
4564
+ },
4565
+ disableRipple: true,
4566
+ onClick: function onClick() {
4567
+ return handleRemoveMemFields(index);
4568
+ },
4569
+ className: styles.backGrdColorOnHover
4570
+ }, /*#__PURE__*/React.createElement(CrossIcon, {
4571
+ width: "14",
4572
+ height: "14"
4573
+ })))));
4574
+ }), membershipInfoInput.length < maxMembershipInput && membershipInfoInput.length > 0 && /*#__PURE__*/React.createElement(IUIGrid, {
4575
+ item: true,
4576
+ md: 8,
4577
+ lg: 8,
4578
+ xl: 8
4579
+ }, /*#__PURE__*/React.createElement(IUIBox, {
4580
+ className: clsx(styles.emptyFieldBtnContainer, styles.rowGap),
4581
+ display: "flex"
4582
+ }, /*#__PURE__*/React.createElement(IUIButton, {
4583
+ buttonText: "Add airline",
4584
+ type: "text",
4585
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4586
+ width: "10",
4587
+ height: "10",
4588
+ color: "#EC5D25"
4589
+ }),
4590
+ className: styles.paddingTop,
4591
+ onClick: function onClick(e) {
4592
+ return addMemInfoInput('flight');
4593
+ }
4594
+ }), /*#__PURE__*/React.createElement(IUIButton, {
4595
+ buttonText: "Add hotel",
4596
+ type: "text",
4597
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4598
+ width: "10",
4599
+ height: "10",
4600
+ color: "#EC5D25"
4601
+ }),
4602
+ className: styles.paddingTop,
4603
+ onClick: function onClick(e) {
4604
+ return addMemInfoInput('hotel');
4605
+ }
4606
+ }), /*#__PURE__*/React.createElement(IUIButton, {
4607
+ buttonText: "Add car rental",
4608
+ type: "text",
4609
+ startIcon: /*#__PURE__*/React.createElement(AddIcon, {
4610
+ width: "10",
4611
+ height: "10",
4612
+ color: "#EC5D25"
4613
+ }),
4614
+ className: styles.paddingTop,
4615
+ onClick: function onClick(e) {
4616
+ return addMemInfoInput('rental_car');
4617
+ }
4618
+ })))))), /*#__PURE__*/React.createElement(IUIDivider, {
4619
+ className: styles.dividerColor
4620
+ }), /*#__PURE__*/React.createElement(IUIGrid, {
4621
+ container: true,
4622
+ className: clsx(styles.personal_info, styles.sectionWrapper)
4623
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4624
+ item: true,
4625
+ sm: 12,
4626
+ md: 4
4627
+ }, /*#__PURE__*/React.createElement(IUILabel, {
4628
+ label: "Travel preferences",
4629
+ headerType: true
4630
+ })), /*#__PURE__*/React.createElement(IUIGrid, {
4631
+ item: true,
4632
+ sm: 12,
4633
+ md: 8,
4634
+ lg: 8,
4635
+ xl: 6
4636
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4637
+ container: true,
4638
+ className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4639
+ }, travelPreference.map(function (p, i) {
4640
+ if (!p.visibility) {
4641
+ return null;
4642
+ }
4643
+ return /*#__PURE__*/React.createElement(IUIGrid, {
4615
4644
  item: true,
4616
4645
  sm: 12,
4617
- md: 4
4618
- }, /*#__PURE__*/React.createElement(IUILabel, {
4619
- label: "Secure traveler information",
4620
- headerType: true
4621
- })), /*#__PURE__*/React.createElement(IUIGrid, {
4646
+ md: 12,
4647
+ lg: p.fullWidth ? 12 : 6,
4648
+ xl: p.fullWidth ? 12 : 6,
4649
+ key: i,
4650
+ className: clsx(styles.margin)
4651
+ }, /*#__PURE__*/React.createElement(GetInputType, {
4652
+ _p: p,
4653
+ inputState: travelPreferenceInfo,
4654
+ onValueChange: travelPreferenceOnChange,
4655
+ dropdownList: dropdownList,
4656
+ errorArray: errorArray,
4657
+ errorMsg: errorMsgs[p.name]
4658
+ }));
4659
+ })))), /*#__PURE__*/React.createElement(IUIDivider, {
4660
+ className: styles.dividerColor
4661
+ }), /*#__PURE__*/React.createElement(IUIGrid, {
4662
+ container: true,
4663
+ className: clsx(styles.personal_info, styles.sectionWrapper)
4664
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4665
+ item: true,
4666
+ sm: 12,
4667
+ md: 4
4668
+ }, /*#__PURE__*/React.createElement(IUILabel, {
4669
+ label: "Secure traveler information",
4670
+ headerType: true
4671
+ })), /*#__PURE__*/React.createElement(IUIGrid, {
4672
+ item: true,
4673
+ sm: 12,
4674
+ md: 8,
4675
+ lg: 8,
4676
+ xl: 6
4677
+ }, /*#__PURE__*/React.createElement(IUIGrid, {
4678
+ container: true,
4679
+ className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4680
+ }, secureTravelInfo.map(function (p, i) {
4681
+ if (!p.visibility) {
4682
+ return null;
4683
+ }
4684
+ return /*#__PURE__*/React.createElement(IUIGrid, {
4622
4685
  item: true,
4623
4686
  sm: 12,
4624
- md: 8,
4625
- lg: 8,
4626
- xl: 6
4627
- }, /*#__PURE__*/React.createElement(IUIGrid, {
4628
- container: true,
4629
- className: clsx(styles.formFieldsWrapper, styles.firstRowMargin)
4630
- }, secureTravelInfo.map(function (p, i) {
4631
- if (!p.visibility) {
4632
- return null;
4633
- }
4634
- return /*#__PURE__*/React.createElement(IUIGrid, {
4635
- item: true,
4636
- sm: 12,
4637
- md: 12,
4638
- lg: p.fullWidth ? 12 : 6,
4639
- xl: p.fullWidth ? 12 : 6,
4640
- key: i,
4641
- className: clsx(styles.margin)
4642
- }, /*#__PURE__*/React.createElement(GetInputType, {
4643
- _p: p,
4644
- inputState: secureTravelInputInfo,
4645
- onValueChange: onSecureTraveelerInfoInputChange,
4646
- errorArray: errorArray,
4647
- errorMsg: errorMsgs[p.name]
4648
- }));
4649
- })))));
4650
- };
4651
- return /*#__PURE__*/React.createElement(IUIAccordionMain, {
4652
- expanded: defaultExpand === 'open',
4653
- onChange: handleChange('open'),
4654
- accordionClass: styles.additionalInfoContainer,
4655
- summaryComponent: getAccordianSummary(),
4656
- summaryClass: clsx(styles.additionalInfoTitle, (_clsx2 = {}, _clsx2[styles.expandIconAlign] = defaultExpand === 'open', _clsx2)),
4657
- expandIcon: defaultExpand ? /*#__PURE__*/React.createElement(ExpandLess, {
4658
- width: "12px",
4659
- height: "7px"
4660
- }) : /*#__PURE__*/React.createElement(ExpandMore, {
4661
- width: "12px",
4662
- height: "7px"
4663
- }),
4664
- detailsComponent: getAccordianDetails(),
4665
- detailsClass: styles.detailsContainer
4666
- });
4687
+ md: 12,
4688
+ lg: p.fullWidth ? 12 : 6,
4689
+ xl: p.fullWidth ? 12 : 6,
4690
+ key: i,
4691
+ className: clsx(styles.margin)
4692
+ }, /*#__PURE__*/React.createElement(GetInputType, {
4693
+ _p: p,
4694
+ inputState: secureTravelInputInfo,
4695
+ onValueChange: onSecureTraveelerInfoInputChange,
4696
+ errorArray: errorArray,
4697
+ errorMsg: errorMsgs[p.name]
4698
+ }));
4699
+ }))))));
4667
4700
  };
4668
4701
 
4669
4702
  var styles$3 = {"root":"_b_muK","minWidth":"_3OQXs","bullet":"_1Q5vL","pos":"_6wGWA","cardHeader":"_SWCfJ","pageHeader":"_2ZeWp","buttonHover":"_2Iuy1","cardHeaderBackground":"_3NJWF","actionCustom":"_3Kbfm"};
@@ -6747,7 +6780,7 @@ var fetchBulkactionHistory = function fetchBulkactionHistory(url) {
6747
6780
  };
6748
6781
  };
6749
6782
 
6750
- 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"};
6783
+ 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"};
6751
6784
 
6752
6785
  var BulkUploadModal = function BulkUploadModal(props) {
6753
6786
  var isOpenImportUsersModal = props.isOpenImportUsersModal,
@@ -8008,19 +8041,6 @@ var BulkDownloadIcon = function BulkDownloadIcon(props) {
8008
8041
 
8009
8042
  var classes = {"containedBtn":"_2A4_u","customMiniBox":"_QGIKG","muiBtn":"_3iFbO","outlinedBtn":"_3lQYD","menuList":"_1C8bJ","menuListContainer":"_1N83W","menuItemContainer":"_3VtcE","menuItemtext":"_2xqnU","subTxt":"_3CVzX"};
8010
8043
 
8011
- var ExpandMoreIcon = function ExpandMoreIcon(props) {
8012
- return /*#__PURE__*/React.createElement("svg", {
8013
- xmlns: "http://www.w3.org/2000/svg",
8014
- width: props.width,
8015
- height: props.height,
8016
- fill: "none",
8017
- viewBox: "0 0 12 7"
8018
- }, /*#__PURE__*/React.createElement("path", {
8019
- fill: "#6B7280",
8020
- 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"
8021
- }));
8022
- };
8023
-
8024
8044
  var DropdownBtn = function DropdownBtn(props) {
8025
8045
  var _clsx;
8026
8046
  var _props$buttonText = props.buttonText,
@@ -8655,12 +8675,18 @@ var UserList = function UserList(_ref2) {
8655
8675
  var _useState10 = useState(false),
8656
8676
  isApiFetching = _useState10[0],
8657
8677
  setisApiFetching = _useState10[1];
8658
- var _useState11 = useState(false),
8659
- showInviteModal = _useState11[0],
8660
- setToggleInviteModal = _useState11[1];
8661
- var _useState12 = useState(''),
8662
- userIds = _useState12[0],
8663
- setUserIds = _useState12[1];
8678
+ var _useState11 = useState({
8679
+ value: '',
8680
+ label: 'Select approver'
8681
+ }),
8682
+ travelFYI = _useState11[0],
8683
+ setTravelFYI = _useState11[1];
8684
+ var _useState12 = useState(false),
8685
+ showInviteModal = _useState12[0],
8686
+ setToggleInviteModal = _useState12[1];
8687
+ var _useState13 = useState(''),
8688
+ userIds = _useState13[0],
8689
+ setUserIds = _useState13[1];
8664
8690
  var _React$useState6 = React.useState(false),
8665
8691
  overlayMenu = _React$useState6[0],
8666
8692
  setOverlayMenu = _React$useState6[1];
@@ -8687,40 +8713,34 @@ var UserList = function UserList(_ref2) {
8687
8713
  var _React$useState7 = React.useState(1),
8688
8714
  signup_page = _React$useState7[0],
8689
8715
  setSignUpPage = _React$useState7[1];
8690
- var _useState13 = useState(5),
8691
- signup_rowsPerPage = _useState13[0],
8692
- setSignUpRowsPerPage = _useState13[1];
8716
+ var _useState14 = useState(5),
8717
+ signup_rowsPerPage = _useState14[0],
8718
+ setSignUpRowsPerPage = _useState14[1];
8693
8719
  var _React$useState8 = React.useState('asc'),
8694
8720
  signup_order = _React$useState8[0],
8695
8721
  setSignUpOrder = _React$useState8[1];
8696
8722
  var _React$useState9 = React.useState('fname'),
8697
8723
  signup_orderBy = _React$useState9[0],
8698
8724
  setSignUpOrderBy = _React$useState9[1];
8699
- var _useState14 = useState(''),
8700
- signup_searchValue = _useState14[0],
8701
- set_signup_SearchValue = _useState14[1];
8702
- var _useState15 = useState(false),
8703
- isSignUpSortingChange = _useState15[0],
8704
- setSignUpSortingChange = _useState15[1];
8725
+ var _useState15 = useState(''),
8726
+ signup_searchValue = _useState15[0],
8727
+ set_signup_SearchValue = _useState15[1];
8705
8728
  var _useState16 = useState(false),
8706
- isSignUpSearchingChange = _useState16[0],
8707
- setSignUpSearchingChange = _useState16[1];
8729
+ isSignUpSortingChange = _useState16[0],
8730
+ setSignUpSortingChange = _useState16[1];
8708
8731
  var _useState17 = useState(false),
8709
- isSignUpSortingChangeTemp = _useState17[0],
8710
- setSignUpSortingChangeTemp = _useState17[1];
8732
+ isSignUpSearchingChange = _useState17[0],
8733
+ setSignUpSearchingChange = _useState17[1];
8711
8734
  var _useState18 = useState(false),
8712
- isSignUpSearchingChangeTemp = _useState18[0],
8713
- setSignUpSearchingChangeTemp = _useState18[1];
8735
+ isSignUpSortingChangeTemp = _useState18[0],
8736
+ setSignUpSortingChangeTemp = _useState18[1];
8737
+ var _useState19 = useState(false),
8738
+ isSignUpSearchingChangeTemp = _useState19[0],
8739
+ setSignUpSearchingChangeTemp = _useState19[1];
8714
8740
  var _useSelector3 = useSelector(function (state) {
8715
8741
  return state.userList;
8716
8742
  }),
8717
8743
  signupRequestListInfo = _useSelector3.signupRequestListInfo;
8718
- var _useState19 = useState({
8719
- value: '',
8720
- label: 'Select approver'
8721
- }),
8722
- travelFYI = _useState19[0],
8723
- setTravelFYI = _useState19[1];
8724
8744
  var openDeactivateModal = function openDeactivateModal() {
8725
8745
  if (Object.values(selected).flat().length === 0 || Object.values(selected).flat() === undefined) {
8726
8746
  IUIToastMessageService$7.warningNotify('Select at least one user to deactivate.');