@itilite/iui-user-management 1.4.482 → 1.4.484
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 +72 -60
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +72 -60
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -4502,62 +4502,6 @@ var ChevronNext = function ChevronNext() {
|
|
|
4502
4502
|
}));
|
|
4503
4503
|
};
|
|
4504
4504
|
|
|
4505
|
-
var TravelModeIcon = function TravelModeIcon(_ref) {
|
|
4506
|
-
var type = _ref.type;
|
|
4507
|
-
var FlightIcon = memo(function () {
|
|
4508
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
4509
|
-
width: "24",
|
|
4510
|
-
height: "24",
|
|
4511
|
-
viewBox: "0 0 24 24",
|
|
4512
|
-
fill: "none",
|
|
4513
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4514
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
4515
|
-
d: "M3 15.7694L8.3033 21.0727L8.81769 20.5583C9.15248 20.2235 9.26938 19.7283 9.11966 19.2791L8.65685 17.8907L12.5459 14.0016L16.7886 21.0727L17.6745 20.1867C18.2231 19.6382 18.4504 18.8457 18.2759 18.0898L16.435 10.1125L20.0906 6.45695C20.2454 6.30211 20.3775 6.12609 20.4713 5.92822C20.7764 5.28463 21.4051 3.76894 20.8544 3.21824C20.3037 2.66754 18.7881 3.29628 18.1445 3.60138C17.9466 3.69518 17.7706 3.82724 17.6157 3.98208L13.9602 7.63766L5.98289 5.79675C5.22698 5.62231 4.43452 5.84959 3.88596 6.39814L3 7.28411L10.0711 11.5267L6.18198 15.4158L4.79356 14.953C4.34439 14.8033 3.84918 14.9202 3.51439 15.255L3 15.7694Z",
|
|
4516
|
-
stroke: "#EC5D25",
|
|
4517
|
-
strokeWidth: "1.5",
|
|
4518
|
-
strokeLinejoin: "round"
|
|
4519
|
-
}));
|
|
4520
|
-
});
|
|
4521
|
-
var HotelIcon = memo(function () {
|
|
4522
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
4523
|
-
width: "24",
|
|
4524
|
-
height: "24",
|
|
4525
|
-
viewBox: "0 0 24 24",
|
|
4526
|
-
fill: "none",
|
|
4527
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4528
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
4529
|
-
fillRule: "evenodd",
|
|
4530
|
-
clipRule: "evenodd",
|
|
4531
|
-
d: "M2.75 5C3.16421 5 3.5 5.33579 3.5 5.75V14H11V9C11 7.89543 11.8954 7 13 7H19C20.6569 7 22 8.34315 22 10V18.25C22 18.6642 21.6642 19 21.25 19C20.8358 19 20.5 18.6642 20.5 18.25V15.5H3.5V18.25C3.5 18.6642 3.16421 19 2.75 19C2.33579 19 2 18.6642 2 18.25V5.75C2 5.33579 2.33579 5 2.75 5ZM20.5 14V10C20.5 9.17157 19.8284 8.5 19 8.5H13C12.7239 8.5 12.5 8.72386 12.5 9V14H20.5ZM7.5 9.5C6.94772 9.5 6.5 9.94772 6.5 10.5C6.5 11.0523 6.94772 11.5 7.5 11.5C8.05228 11.5 8.5 11.0523 8.5 10.5C8.5 9.94772 8.05228 9.5 7.5 9.5ZM5 10.5C5 9.11929 6.11929 8 7.5 8C8.88071 8 10 9.11929 10 10.5C10 11.8807 8.88071 13 7.5 13C6.11929 13 5 11.8807 5 10.5Z",
|
|
4532
|
-
fill: "#EC5D25"
|
|
4533
|
-
}));
|
|
4534
|
-
});
|
|
4535
|
-
var CarIcon = memo(function () {
|
|
4536
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
4537
|
-
width: "24",
|
|
4538
|
-
height: "24",
|
|
4539
|
-
viewBox: "0 0 24 24",
|
|
4540
|
-
fill: "none",
|
|
4541
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4542
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
4543
|
-
d: "M8 14C8 14.5523 7.55228 15 7 15C6.44772 15 6 14.5523 6 14C6 13.4477 6.44772 13 7 13C7.55228 13 8 13.4477 8 14Z",
|
|
4544
|
-
fill: "#EC5D25"
|
|
4545
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
4546
|
-
d: "M18 14C18 14.5523 17.5523 15 17 15C16.4477 15 16 14.5523 16 14C16 13.4477 16.4477 13 17 13C17.5523 13 18 13.4477 18 14Z",
|
|
4547
|
-
fill: "#EC5D25"
|
|
4548
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
4549
|
-
fillRule: "evenodd",
|
|
4550
|
-
clipRule: "evenodd",
|
|
4551
|
-
d: "M7.69288 5.5C7.46964 5.5 7.27344 5.64799 7.21211 5.86264L6.03001 10H17.97L16.7879 5.86264C16.7266 5.64799 16.5304 5.5 16.3071 5.5H7.69288ZM19.6762 10.5117C20.4737 11.05 21 11.963 21 13V18.75C21 19.4404 20.4404 20 19.75 20C19.0596 20 18.5 19.4404 18.5 18.75V18H5.5V18.75C5.5 19.4404 4.94036 20 4.25 20C3.55964 20 3 19.4404 3 18.75V13C3 11.963 3.52626 11.05 4.32378 10.5117L4.46999 10H3.75C3.33579 10 3 9.66421 3 9.25C3 8.83579 3.33579 8.5 3.75 8.5H4.89856L5.76983 5.45056C6.01514 4.59196 6.79992 4 7.69288 4H16.3071C17.2001 4 17.9849 4.59196 18.2302 5.45056L19.1014 8.5H20.25C20.6642 8.5 21 8.83579 21 9.25C21 9.66421 20.6642 10 20.25 10H19.53L19.6762 10.5117ZM4.5 16.5H19.5V13C19.5 12.4218 19.173 11.9187 18.6904 11.6678C18.4846 11.5608 18.2505 11.5 18 11.5H6C5.7495 11.5 5.51541 11.5608 5.30955 11.6678C4.82695 11.9187 4.5 12.4218 4.5 13V16.5Z",
|
|
4552
|
-
fill: "#EC5D25"
|
|
4553
|
-
}));
|
|
4554
|
-
});
|
|
4555
|
-
if (type === 'flight') return /*#__PURE__*/React.createElement(FlightIcon, null);
|
|
4556
|
-
if (type === 'hotel') return /*#__PURE__*/React.createElement(HotelIcon, null);
|
|
4557
|
-
if (type === 'rental_car') return /*#__PURE__*/React.createElement(CarIcon, null);
|
|
4558
|
-
return null;
|
|
4559
|
-
};
|
|
4560
|
-
|
|
4561
4505
|
var MembershipForm = function MembershipForm(_ref) {
|
|
4562
4506
|
var selectedMembershipChain = _ref.selectedMembershipChain,
|
|
4563
4507
|
isOtherMembership = _ref.isOtherMembership,
|
|
@@ -4568,10 +4512,18 @@ var MembershipForm = function MembershipForm(_ref) {
|
|
|
4568
4512
|
type = _ref.type,
|
|
4569
4513
|
isEdit = _ref.isEdit;
|
|
4570
4514
|
var FallbackIcon = function FallbackIcon() {
|
|
4515
|
+
var url = '';
|
|
4516
|
+
if (type === 'flight') {
|
|
4517
|
+
url = 'https://i.imghippo.com/files/Tcd6723qtY.png';
|
|
4518
|
+
} else if (type === 'hotel') {
|
|
4519
|
+
url = 'https://i.imghippo.com/files/CWoy5950wU.png';
|
|
4520
|
+
} else {
|
|
4521
|
+
url = 'https://i.imghippo.com/files/MNQI7762nvk.png';
|
|
4522
|
+
}
|
|
4571
4523
|
return /*#__PURE__*/React.createElement("div", {
|
|
4572
4524
|
className: styles$3.newMembershipIcon
|
|
4573
|
-
}, /*#__PURE__*/React.createElement(
|
|
4574
|
-
|
|
4525
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
4526
|
+
src: url
|
|
4575
4527
|
}));
|
|
4576
4528
|
};
|
|
4577
4529
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -4602,7 +4554,11 @@ var MembershipForm = function MembershipForm(_ref) {
|
|
|
4602
4554
|
var fallbackContainer = e.target.nextElementSibling;
|
|
4603
4555
|
if (fallbackContainer) fallbackContainer.style.display = 'block';
|
|
4604
4556
|
}
|
|
4605
|
-
}) : /*#__PURE__*/React.createElement(FallbackIcon, null), /*#__PURE__*/React.createElement("
|
|
4557
|
+
}) : /*#__PURE__*/React.createElement(FallbackIcon, null), /*#__PURE__*/React.createElement("div", {
|
|
4558
|
+
style: {
|
|
4559
|
+
display: 'none'
|
|
4560
|
+
}
|
|
4561
|
+
}, /*#__PURE__*/React.createElement(FallbackIcon, null)), /*#__PURE__*/React.createElement("p", null, isEdit ? 'Edit' : 'Add', ' ', (selectedMembershipChain === null || selectedMembershipChain === void 0 ? void 0 : selectedMembershipChain.loyalty_program_name) || (selectedMembershipChain === null || selectedMembershipChain === void 0 ? void 0 : selectedMembershipChain.program_name))), /*#__PURE__*/React.createElement(IUILabel, {
|
|
4606
4562
|
label: "Membership number",
|
|
4607
4563
|
required: true
|
|
4608
4564
|
}), /*#__PURE__*/React.createElement(IUISearch, {
|
|
@@ -4619,6 +4575,62 @@ var MembershipForm = function MembershipForm(_ref) {
|
|
|
4619
4575
|
}));
|
|
4620
4576
|
};
|
|
4621
4577
|
|
|
4578
|
+
var TravelModeIcon = function TravelModeIcon(_ref) {
|
|
4579
|
+
var type = _ref.type;
|
|
4580
|
+
var FlightIcon = memo(function () {
|
|
4581
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4582
|
+
width: "24",
|
|
4583
|
+
height: "24",
|
|
4584
|
+
viewBox: "0 0 24 24",
|
|
4585
|
+
fill: "none",
|
|
4586
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4587
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4588
|
+
d: "M3 15.7694L8.3033 21.0727L8.81769 20.5583C9.15248 20.2235 9.26938 19.7283 9.11966 19.2791L8.65685 17.8907L12.5459 14.0016L16.7886 21.0727L17.6745 20.1867C18.2231 19.6382 18.4504 18.8457 18.2759 18.0898L16.435 10.1125L20.0906 6.45695C20.2454 6.30211 20.3775 6.12609 20.4713 5.92822C20.7764 5.28463 21.4051 3.76894 20.8544 3.21824C20.3037 2.66754 18.7881 3.29628 18.1445 3.60138C17.9466 3.69518 17.7706 3.82724 17.6157 3.98208L13.9602 7.63766L5.98289 5.79675C5.22698 5.62231 4.43452 5.84959 3.88596 6.39814L3 7.28411L10.0711 11.5267L6.18198 15.4158L4.79356 14.953C4.34439 14.8033 3.84918 14.9202 3.51439 15.255L3 15.7694Z",
|
|
4589
|
+
stroke: "#EC5D25",
|
|
4590
|
+
strokeWidth: "1.5",
|
|
4591
|
+
strokeLinejoin: "round"
|
|
4592
|
+
}));
|
|
4593
|
+
});
|
|
4594
|
+
var HotelIcon = memo(function () {
|
|
4595
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4596
|
+
width: "24",
|
|
4597
|
+
height: "24",
|
|
4598
|
+
viewBox: "0 0 24 24",
|
|
4599
|
+
fill: "none",
|
|
4600
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4601
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4602
|
+
fillRule: "evenodd",
|
|
4603
|
+
clipRule: "evenodd",
|
|
4604
|
+
d: "M2.75 5C3.16421 5 3.5 5.33579 3.5 5.75V14H11V9C11 7.89543 11.8954 7 13 7H19C20.6569 7 22 8.34315 22 10V18.25C22 18.6642 21.6642 19 21.25 19C20.8358 19 20.5 18.6642 20.5 18.25V15.5H3.5V18.25C3.5 18.6642 3.16421 19 2.75 19C2.33579 19 2 18.6642 2 18.25V5.75C2 5.33579 2.33579 5 2.75 5ZM20.5 14V10C20.5 9.17157 19.8284 8.5 19 8.5H13C12.7239 8.5 12.5 8.72386 12.5 9V14H20.5ZM7.5 9.5C6.94772 9.5 6.5 9.94772 6.5 10.5C6.5 11.0523 6.94772 11.5 7.5 11.5C8.05228 11.5 8.5 11.0523 8.5 10.5C8.5 9.94772 8.05228 9.5 7.5 9.5ZM5 10.5C5 9.11929 6.11929 8 7.5 8C8.88071 8 10 9.11929 10 10.5C10 11.8807 8.88071 13 7.5 13C6.11929 13 5 11.8807 5 10.5Z",
|
|
4605
|
+
fill: "#EC5D25"
|
|
4606
|
+
}));
|
|
4607
|
+
});
|
|
4608
|
+
var CarIcon = memo(function () {
|
|
4609
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
4610
|
+
width: "24",
|
|
4611
|
+
height: "24",
|
|
4612
|
+
viewBox: "0 0 24 24",
|
|
4613
|
+
fill: "none",
|
|
4614
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4615
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
4616
|
+
d: "M8 14C8 14.5523 7.55228 15 7 15C6.44772 15 6 14.5523 6 14C6 13.4477 6.44772 13 7 13C7.55228 13 8 13.4477 8 14Z",
|
|
4617
|
+
fill: "#EC5D25"
|
|
4618
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
4619
|
+
d: "M18 14C18 14.5523 17.5523 15 17 15C16.4477 15 16 14.5523 16 14C16 13.4477 16.4477 13 17 13C17.5523 13 18 13.4477 18 14Z",
|
|
4620
|
+
fill: "#EC5D25"
|
|
4621
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
4622
|
+
fillRule: "evenodd",
|
|
4623
|
+
clipRule: "evenodd",
|
|
4624
|
+
d: "M7.69288 5.5C7.46964 5.5 7.27344 5.64799 7.21211 5.86264L6.03001 10H17.97L16.7879 5.86264C16.7266 5.64799 16.5304 5.5 16.3071 5.5H7.69288ZM19.6762 10.5117C20.4737 11.05 21 11.963 21 13V18.75C21 19.4404 20.4404 20 19.75 20C19.0596 20 18.5 19.4404 18.5 18.75V18H5.5V18.75C5.5 19.4404 4.94036 20 4.25 20C3.55964 20 3 19.4404 3 18.75V13C3 11.963 3.52626 11.05 4.32378 10.5117L4.46999 10H3.75C3.33579 10 3 9.66421 3 9.25C3 8.83579 3.33579 8.5 3.75 8.5H4.89856L5.76983 5.45056C6.01514 4.59196 6.79992 4 7.69288 4H16.3071C17.2001 4 17.9849 4.59196 18.2302 5.45056L19.1014 8.5H20.25C20.6642 8.5 21 8.83579 21 9.25C21 9.66421 20.6642 10 20.25 10H19.53L19.6762 10.5117ZM4.5 16.5H19.5V13C19.5 12.4218 19.173 11.9187 18.6904 11.6678C18.4846 11.5608 18.2505 11.5 18 11.5H6C5.7495 11.5 5.51541 11.5608 5.30955 11.6678C4.82695 11.9187 4.5 12.4218 4.5 13V16.5Z",
|
|
4625
|
+
fill: "#EC5D25"
|
|
4626
|
+
}));
|
|
4627
|
+
});
|
|
4628
|
+
if (type === 'flight') return /*#__PURE__*/React.createElement(FlightIcon, null);
|
|
4629
|
+
if (type === 'hotel') return /*#__PURE__*/React.createElement(HotelIcon, null);
|
|
4630
|
+
if (type === 'rental_car') return /*#__PURE__*/React.createElement(CarIcon, null);
|
|
4631
|
+
return null;
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4622
4634
|
var Loader = function Loader() {
|
|
4623
4635
|
return /*#__PURE__*/React.createElement(IUICircularProgress, {
|
|
4624
4636
|
color: "inherit",
|
|
@@ -5058,7 +5070,7 @@ var Membership = function Membership(_ref) {
|
|
|
5058
5070
|
setLoading(true);
|
|
5059
5071
|
var url = 'api/v1/user-management/loyalty-program/' + ("?page=" + pageNo + "&travel_type=" + type);
|
|
5060
5072
|
if (query) {
|
|
5061
|
-
url += "&search_term=" + query;
|
|
5073
|
+
url += "&search_term=" + query.toLowerCase();
|
|
5062
5074
|
}
|
|
5063
5075
|
if (reset) setPage(1);else setPage(function (prevPage) {
|
|
5064
5076
|
return prevPage + 1;
|