oa-componentbook 1.0.1-stage.4 → 1.0.1-stage.400

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.
Files changed (157) hide show
  1. package/build/components/oa-component-accordion/Accordion.js +129 -40
  2. package/build/components/oa-component-accordion/styles.js +2 -2
  3. package/build/components/oa-component-button/CustomButton.js +24 -19
  4. package/build/components/oa-component-button/styles.js +1 -1
  5. package/build/components/oa-component-checkbox/CustomCheckBox.js +20 -17
  6. package/build/components/oa-component-checkbox/styles.js +1 -1
  7. package/build/components/oa-component-datepicker/CustomDatePicker.js +37 -26
  8. package/build/components/oa-component-drawer/CustomDrawer.js +2 -0
  9. package/build/components/oa-component-dropdown/CustomDropdown.js +16 -4
  10. package/build/components/oa-component-feedback-form/FeedbackForm.js +75 -0
  11. package/build/components/oa-component-feedback-tooltip/FeedbackTooltip.js +69 -0
  12. package/build/components/oa-component-icons/MaterialIcon.js +1 -1
  13. package/build/components/oa-component-info/CustomInfo.js +9 -4
  14. package/build/components/oa-component-info/styles.js +3 -3
  15. package/build/components/oa-component-modal/CustomModal.js +51 -46
  16. package/build/components/oa-component-modal/styles.js +3 -2
  17. package/build/components/oa-component-pagination/CustomPagination.js +111 -0
  18. package/build/components/oa-component-pagination/styles.js +12 -0
  19. package/build/components/oa-component-select/CustomSelect.js +116 -56
  20. package/build/components/oa-component-steps/CustomSteps.js +117 -0
  21. package/build/components/oa-component-steps/styles.js +12 -0
  22. package/build/components/oa-component-table/CustomTable.js +28 -5
  23. package/build/components/oa-component-table/CustomTableV1.js +610 -0
  24. package/build/components/oa-component-table/styles.js +1 -1
  25. package/build/components/oa-component-table/stylesV1.js +19 -0
  26. package/build/components/oa-component-tabs/CustomTabs.js +1 -1
  27. package/build/components/oa-component-tag/CustomTag.js +29 -11
  28. package/build/components/oa-component-tag/styles.js +30 -3
  29. package/build/components/oa-component-textarea/{TextArea.js → CustomTextArea.js} +4 -4
  30. package/build/components/oa-component-tooltip/CustomTooltip.js +8 -4
  31. package/build/components/oa-component-upload/CustomUpload.js +120 -40
  32. package/build/components/oa-component-viewer/CustomViewer.js +3 -1
  33. package/build/dev/oa-component-document-viewer/CustomDocumentViewer.js +367 -0
  34. package/build/dev/oa-component-document-viewer/styles.js +12 -0
  35. package/build/dev/oa-component-upload/CustomUpload.js +3 -0
  36. package/build/dev/oa-widget-document-modal/DocumentSideModal.js +166 -0
  37. package/build/dev/oa-widget-document-modal/styles.js +12 -0
  38. package/build/dev/oa-widget-document-side-drawer/DocumentSideDrawer.js +196 -0
  39. package/build/dev/oa-widget-document-side-drawer/styles.js +12 -0
  40. package/build/global-css/GlobalCss.js +2 -1
  41. package/build/global-css/GridLayout.js +1 -1
  42. package/build/global-css/commonStyles.js +11 -0
  43. package/build/images/Car.png +0 -0
  44. package/build/images/TwoWheeler.png +0 -0
  45. package/build/images/astronaut_emptystate.png +0 -0
  46. package/build/images/exportGrp01.png +0 -0
  47. package/build/images/exportGrp02.png +0 -0
  48. package/build/images/exportGrp03.png +0 -0
  49. package/build/images/oaChat.svg +5 -0
  50. package/build/images/outOfStock.png +0 -0
  51. package/build/index.js +131 -5
  52. package/build/layout/DetailDataLayout/DetailDataLayout.js +20 -0
  53. package/build/layout/DetailDataLayout/components/Form.js +22 -0
  54. package/build/layout/DetailDataLayout/components/Header.js +32 -0
  55. package/build/layout/DetailDataLayout/style.css +9 -0
  56. package/build/layout/DetailDataLayout/styles.js +12 -0
  57. package/build/layout/EntityOverviewLayout/EntityOverviewLayout.js +235 -0
  58. package/build/layout/EntityOverviewLayout/reducer/entityOverviewLayoutReducer.js +63 -0
  59. package/build/layout/EntityOverviewLayout/styles.js +13 -0
  60. package/build/layout/GenricLayOut/GenricLayOut.js +2314 -0
  61. package/build/layout/GenricLayOut/components/AppliedFilters.js +91 -0
  62. package/build/layout/GenricLayOut/components/CardList.js +34 -0
  63. package/build/layout/GenricLayOut/components/DropdownSearch.js +48 -0
  64. package/build/layout/GenricLayOut/components/Header.js +74 -0
  65. package/build/layout/GenricLayOut/components/Modal.js +93 -0
  66. package/build/layout/GenricLayOut/components/ProfileSection.js +87 -0
  67. package/build/layout/GenricLayOut/components/Search.js +51 -0
  68. package/build/layout/GenricLayOut/components/StaticFilter.css +73 -0
  69. package/build/layout/GenricLayOut/components/StaticFilter.js +37 -0
  70. package/build/layout/GenricLayOut/reducer/layoutReducer.js +294 -0
  71. package/build/layout/GenricLayOut/resolver/staticConfigResolver.js +98 -0
  72. package/build/layout/GenricLayOut/styles.js +30 -0
  73. package/build/layout/paymentAndConsent/CancelScreen.js +46 -0
  74. package/build/layout/paymentAndConsent/ConsentCard.js +68 -0
  75. package/build/layout/paymentAndConsent/DetailsCard.js +75 -0
  76. package/build/layout/paymentAndConsent/DetailsList.js +38 -0
  77. package/build/layout/paymentAndConsent/Header.js +33 -0
  78. package/build/layout/paymentAndConsent/InProgressScreen.js +46 -0
  79. package/build/layout/paymentAndConsent/Loader.js +21 -0
  80. package/build/layout/paymentAndConsent/Modal.js +28 -0
  81. package/build/layout/paymentAndConsent/PaymentAndConsent.js +22 -0
  82. package/build/layout/paymentAndConsent/PaymentCard.js +83 -0
  83. package/build/layout/paymentAndConsent/Section.js +34 -0
  84. package/build/layout/paymentAndConsent/SuccessScreen.js +46 -0
  85. package/build/layout/paymentAndConsent/TimeLineCard.js +28 -0
  86. package/build/layout/paymentAndConsent/TncList.js +32 -0
  87. package/build/layout/paymentAndConsent/style.js +12 -0
  88. package/build/utils/download-file.js +23 -0
  89. package/build/widgets/oa-form-widget/FormWidget.js +576 -0
  90. package/build/widgets/oa-form-widget/FormWidgetStyle.js +18 -0
  91. package/build/widgets/oa-widget-add-spare-part/AddSparePartCollapseWidget.js +80 -16
  92. package/build/widgets/oa-widget-add-spare-part/AddSparePartWidget.js +50 -7
  93. package/build/widgets/oa-widget-address/AddressWidget.js +12 -17
  94. package/build/widgets/oa-widget-approval/ApprovalWidget.js +19 -11
  95. package/build/widgets/oa-widget-approval/ApprovalWidgetNew.js +492 -0
  96. package/build/widgets/oa-widget-approval/styles.js +2 -2
  97. package/build/widgets/oa-widget-chat/ChatWidget.js +5 -5
  98. package/build/widgets/oa-widget-close-claim/CloseClaimWidget.js +17 -5
  99. package/build/widgets/oa-widget-collapsible-key-value/CollapsibleKeyValueWidget.js +396 -0
  100. package/build/widgets/oa-widget-collapsible-key-value/styles.js +16 -0
  101. package/build/widgets/oa-widget-content-panel/ContentPanel.js +82 -0
  102. package/build/widgets/oa-widget-content-panel/styles.js +12 -0
  103. package/build/widgets/oa-widget-customer-rating-card/CustomerRatingCard.js +5 -5
  104. package/build/widgets/oa-widget-detailcard/styles.js +1 -1
  105. package/build/widgets/oa-widget-document-upload/DocUploadWidget.js +6 -9
  106. package/build/widgets/oa-widget-dropdown-search-input/DropdownSearchInput.js +53 -19
  107. package/build/widgets/oa-widget-dropdown-search-input/styles.js +1 -1
  108. package/build/widgets/oa-widget-feedback/FeedbackWidget.js +83 -0
  109. package/build/widgets/oa-widget-feedback/styles.js +13 -0
  110. package/build/widgets/oa-widget-guide/GuideWidget.js +70 -0
  111. package/build/widgets/oa-widget-guide/GuideWidgetStyle.js +12 -0
  112. package/build/widgets/oa-widget-hub-automation-modal/HubAutomationDeleteBiker.js +24 -0
  113. package/build/widgets/oa-widget-hub-automation-modal/HubAutomationModal.js +34 -0
  114. package/build/widgets/oa-widget-hub-automation-modal/HubAutomationModalStyle.js +13 -0
  115. package/build/widgets/oa-widget-image-carousel/ImageCarouselWidget.js +256 -0
  116. package/build/widgets/oa-widget-image-carousel/styles.js +23 -0
  117. package/build/widgets/oa-widget-image-gallery/FullscreenViewer.js +169 -0
  118. package/build/widgets/oa-widget-image-gallery/ImageGallery.js +87 -0
  119. package/build/widgets/oa-widget-image-gallery/ThumbnailGrid.js +146 -0
  120. package/build/widgets/oa-widget-image-gallery/imageCache.js +15 -0
  121. package/build/widgets/oa-widget-image-gallery/imageGalleryStyle.js +16 -0
  122. package/build/widgets/oa-widget-item-info-card/InfoCardListWidget.js +60 -0
  123. package/build/widgets/oa-widget-item-info-card/ItemInfoCardWidget.js +77 -0
  124. package/build/widgets/oa-widget-item-info-card/styles.css +50 -0
  125. package/build/widgets/oa-widget-item-info-card/styles.js +14 -0
  126. package/build/widgets/oa-widget-key-value/KeyValueWidget.js +46 -12
  127. package/build/widgets/oa-widget-key-value/styles.js +1 -1
  128. package/build/widgets/oa-widget-kpi/KPICardWidget.js +86 -0
  129. package/build/widgets/oa-widget-kpi/styles.js +12 -0
  130. package/build/widgets/oa-widget-map-base-location/AddressDetails.js +21 -7
  131. package/build/widgets/oa-widget-map-base-location/AddressForm.js +32 -5
  132. package/build/widgets/oa-widget-map-base-location/MapBaseLocation.js +9 -3
  133. package/build/widgets/oa-widget-map-base-location/MapComponent.js +17 -2
  134. package/build/widgets/oa-widget-membershipcard/MembershipCard.js +14 -3
  135. package/build/widgets/oa-widget-membershipcard/styles.js +1 -1
  136. package/build/widgets/oa-widget-notes/NotesWidget.js +32 -30
  137. package/build/widgets/oa-widget-notes/styles.js +4 -3
  138. package/build/widgets/oa-widget-profile-data/ProfileDataWidget.js +117 -0
  139. package/build/widgets/oa-widget-profile-data/styles.js +13 -0
  140. package/build/widgets/oa-widget-progressive-steps/ProgressiveStepsWidget.js +362 -0
  141. package/build/widgets/oa-widget-progressive-steps/styles.js +12 -0
  142. package/build/widgets/oa-widget-reimbursement-breakup/ReimbursementBreakupWidget.js +18 -9
  143. package/build/widgets/oa-widget-reimbursement-breakup/styles.js +1 -1
  144. package/build/widgets/oa-widget-reupload-drawer/ReUploadDrawer.js +164 -0
  145. package/build/widgets/oa-widget-select-list-item-modal/SelectListItemModal.js +79 -0
  146. package/build/widgets/oa-widget-sidebar/SidebarWidget.js +175 -0
  147. package/build/widgets/oa-widget-sidebar/components/Header.js +33 -0
  148. package/build/widgets/oa-widget-sidebar/styles.js +13 -0
  149. package/build/widgets/oa-widget-spare-part/SparePartsWidget.js +57 -29
  150. package/build/widgets/oa-widget-track-shipment/TrackShipmentWidget.js +28 -6
  151. package/build/widgets/oa-widget-track-shipment-list/TrackShipmentWidgetList.js +103 -0
  152. package/build/widgets/oa-widget-track-shipment-list/fn.js +81 -0
  153. package/build/widgets/oa-widget-user-management/UserManagementWidget.js +352 -0
  154. package/build/widgets/oa-widget-user-management/styles.js +15 -0
  155. package/package.json +7 -2
  156. package/build/dev/oa-widget-track-shipment/TrackShipmentWidget.js +0 -195
  157. /package/build/{dev/oa-widget-track-shipment → widgets/oa-widget-track-shipment-list}/styles.js +0 -0
@@ -0,0 +1,294 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.initialState = exports.genericLayoutReducer = exports.actionTypes = void 0;
7
+ require("core-js/modules/web.dom-collections.iterator.js");
8
+ require("core-js/modules/es.symbol.description.js");
9
+ var _immer = require("immer");
10
+ var _staticConfigResolver = require("../resolver/staticConfigResolver");
11
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
15
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /* eslint-disable */
16
+ const initialState = exports.initialState = {};
17
+ const actionTypes = exports.actionTypes = {
18
+ INIT: "INIT",
19
+ SET_LOADING: "SET_LOADING",
20
+ SET_DROPDOWN_SEARCH_VALUE: "SET_DROPDOWN_SEARCH_VALUE",
21
+ SET_DROPDOWN_SEARCH_ERROR: "SET_DROPDOWN_SEARCH_ERROR",
22
+ SET_INPUT_SEARCH_VALUE: "SET_INPUT_SEARCH_VALUE",
23
+ SET_INPUT_SEARCH_ERROR: "SET_INPUT_SEARCH_ERROR",
24
+ SET_DROPDOWN_SEARCH_OPTION: "SET_DROPDOWN_SEARCH_OPTION",
25
+ SET_DRAWER: "SET_DRAWER",
26
+ SET_NESTED_DRAWER: "SET_NESTED_DRAWER",
27
+ TOGGLE_IMAGE_VIEW: "TOGGLE_IMAGE_VIEW",
28
+ SET_TABLE_DATA: "SET_TABLE_DATA",
29
+ SET_TABLE_EMPTY: "SET_TABLE_EMPTY",
30
+ SET_PAGINATION: "SET_PAGINATION",
31
+ SET_SORTING: "SET_SORTING",
32
+ TAB_CLICK: "TAB_CLICK",
33
+ TOGGLE_DRAWER: "TOGGLE_DRAWER",
34
+ CLOSE_DRAWER: "CLOSE_DRAWER",
35
+ NESTED_DRAWER_OPEN: "NESTED_DRAWER_OPEN",
36
+ NESTED_DRAWER_CLOSED: "NESTED_DRAWER_CLOSED",
37
+ TABLE_FOOTER_TOGGLE: "TABLE_FOOTER_TOGGLE",
38
+ // Use to show hide the footer of the table
39
+ TABLE_ROW_SELECTED_DATA: "TABLE_ROW_SELECTED_DATA",
40
+ // Use to store the selected rows of the table
41
+ TOGGLE_MODAL: "TOGGLE_MODAL",
42
+ // Use to show hide the modal
43
+ SET_MODAL: "SET_MODAL",
44
+ SET_TABLE_FILTER: "SET_TABLE_FILTER",
45
+ SET_CUSTOM_DRAWER_DATA_SELECT: "SET_CUSTOM_DRAWER_DATA_SELECT",
46
+ SET_SUBHEADING_SELECTED_CONFIG: "SET_SUBHEADING_SELECTED_CONFIG",
47
+ SET_CUSTOM_DRAWER: "SET_CUSTOM_DRAWER",
48
+ CUSTOM_DRAWER_OPEN: "CUSTOM_DRAWER_OPEN",
49
+ CUSTOM_DRAWER_CLOSED: "CUSTOM_DRAWER_CLOSED",
50
+ UPDATE_FILTER_DEFAULT_VALUES: "UPDATE_FILTER_DEFAULT_VALUES",
51
+ SET_STATIC_FILTER_SELECTION: "SET_STATIC_FILTER_SELECTION",
52
+ SET_STATIC_FILTER_VISIBILITY: "SET_STATIC_FILTER_VISIBILITY",
53
+ SET_TABLE_COLUMNS_RESET: "SET_TABLE_COLUMNS_RESET",
54
+ SET_APPLIED_FILTERS: "SET_APPLIED_FILTERS",
55
+ REMOVE_APPLIED_FILTER: "REMOVE_APPLIED_FILTER",
56
+ CLEAR_ALL_APPLIED_FILTERS: "CLEAR_ALL_APPLIED_FILTERS",
57
+ UPDATE_FILTER_FORM_VALUES: "UPDATE_FILTER_FORM_VALUES",
58
+ SET_STATIC_FILTER: "SET_STATIC_FILTER",
59
+ SET_PROFILE_DATA: "SET_PROFILE_DATA"
60
+ };
61
+ function getFieldDefaultValue(widget) {
62
+ switch (widget) {
63
+ case "select":
64
+ case "radio":
65
+ return undefined;
66
+ case "date":
67
+ return "";
68
+ case "input":
69
+ case "textArea":
70
+ return "";
71
+ default:
72
+ return "";
73
+ }
74
+ }
75
+ const genericLayoutReducer = exports.genericLayoutReducer = (0, _immer.produce)((draft, action) => {
76
+ var _draft$imageViewer, _action$payload, _action$payload2, _draft$tabs, _draft$customDrawer$d, _draft$tables, _action$payload3, _action$payload4, _action$payload5, _draft$tabs$active, _draft$tabs2, _action$payload6, _action$payload7, _action$payload8, _draft$staticFilter, _draft$tables2, _draft$customDrawer$d2, _draft$customDrawer$d3, _draft$customDrawer$d4;
77
+ switch (action.type) {
78
+ case actionTypes.INIT:
79
+ return (0, _staticConfigResolver.removeHidden)(action.payload);
80
+ case actionTypes.SET_LOADING:
81
+ draft.isLoading = action.payload;
82
+ break;
83
+ case actionTypes.SET_DROPDOWN_SEARCH_VALUE:
84
+ draft.dropdownSearch.value = action.payload;
85
+ draft.dropdownSearch.error = null;
86
+ break;
87
+ case actionTypes.SET_DROPDOWN_SEARCH_ERROR:
88
+ draft.dropdownSearch.error = action.payload;
89
+ break;
90
+ case actionTypes.TOGGLE_IMAGE_VIEW:
91
+ draft.imageViewer.visible = !((_draft$imageViewer = draft.imageViewer) !== null && _draft$imageViewer !== void 0 && _draft$imageViewer.visible);
92
+ draft.imageViewer.content = action === null || action === void 0 ? void 0 : action.payload;
93
+ break;
94
+ case actionTypes.SET_INPUT_SEARCH_VALUE:
95
+ draft.inputSearch.value = action.payload;
96
+ draft.inputSearch.error = null;
97
+ break;
98
+ case actionTypes.SET_INPUT_SEARCH_ERROR:
99
+ draft.inputSearch.error = action.payload;
100
+ break;
101
+ case actionTypes.SET_TABLE_EMPTY:
102
+ draft.tables.data = [];
103
+ case actionTypes.SET_DROPDOWN_SEARCH_OPTION:
104
+ draft.dropdownSearch.selectedOption = action === null || action === void 0 ? void 0 : action.payload;
105
+ draft.dropdownSearch.value = null;
106
+ draft.dropdownSearch.error = null;
107
+ break;
108
+ case actionTypes.SET_TABLE_DATA:
109
+ draft.tables.data = (_action$payload = action.payload) === null || _action$payload === void 0 ? void 0 : _action$payload.dataSource;
110
+ draft.tables.pagination = _objectSpread(_objectSpread({}, draft.tables.pagination), {}, {
111
+ total: (_action$payload2 = action.payload) === null || _action$payload2 === void 0 ? void 0 : _action$payload2.totalRecords
112
+ });
113
+ (_draft$tabs = draft.tabs) === null || _draft$tabs === void 0 || (_draft$tabs = _draft$tabs.list) === null || _draft$tabs === void 0 || _draft$tabs.map(l => {
114
+ l.value = action.payload[l === null || l === void 0 ? void 0 : l.tabKey];
115
+ return l;
116
+ });
117
+ break;
118
+ case actionTypes.SET_PAGINATION:
119
+ draft.tables.pagination = _objectSpread(_objectSpread({}, draft.tables.pagination), action.payload);
120
+ break;
121
+ case actionTypes.SET_TABLE_FILTER:
122
+ draft.tables.filter = _objectSpread(_objectSpread({}, draft.tables.filter), action.payload);
123
+ break;
124
+ case actionTypes.UPDATE_FILTER_DEFAULT_VALUES:
125
+ if ((_draft$customDrawer$d = draft.customDrawer.data) !== null && _draft$customDrawer$d !== void 0 && (_draft$customDrawer$d = _draft$customDrawer$d.groups) !== null && _draft$customDrawer$d !== void 0 && (_draft$customDrawer$d = _draft$customDrawer$d[0]) !== null && _draft$customDrawer$d !== void 0 && _draft$customDrawer$d.items) {
126
+ draft.customDrawer.data.groups[0].items.forEach(item => {
127
+ if (action.payload[item.name] !== undefined) {
128
+ item.defaultValue = action.payload[item.name];
129
+ }
130
+ });
131
+ }
132
+ break;
133
+ case actionTypes.SET_SORTING:
134
+ draft.tables.sorting = _objectSpread(_objectSpread({}, (_draft$tables = draft.tables) === null || _draft$tables === void 0 ? void 0 : _draft$tables.sorting), action.payload);
135
+ break;
136
+ case actionTypes.TAB_CLICK:
137
+ draft.tabs.active = (_action$payload3 = action.payload) === null || _action$payload3 === void 0 ? void 0 : _action$payload3.active;
138
+ const shouldShowStaticFilter = ((_action$payload4 = action.payload) === null || _action$payload4 === void 0 ? void 0 : _action$payload4.active) === "HR-CANCELLED" || ((_action$payload5 = action.payload) === null || _action$payload5 === void 0 ? void 0 : _action$payload5.active) === "FINANCIER-CANCELLED";
139
+ if (draft.staticFilter) {
140
+ draft.staticFilter.visible = shouldShowStaticFilter;
141
+ }
142
+ break;
143
+ case actionTypes.SET_DRAWER:
144
+ draft.drawer.data[(_draft$tabs$active = draft === null || draft === void 0 || (_draft$tabs2 = draft.tabs) === null || _draft$tabs2 === void 0 ? void 0 : _draft$tabs2.active) !== null && _draft$tabs$active !== void 0 ? _draft$tabs$active : "default"][(_action$payload6 = action.payload) === null || _action$payload6 === void 0 ? void 0 : _action$payload6.active] = action.payload.dynamicConfig;
145
+ break;
146
+ case actionTypes.SET_MODAL:
147
+ draft.modal.modalContent = (_action$payload7 = action.payload) === null || _action$payload7 === void 0 || (_action$payload7 = _action$payload7.modalData) === null || _action$payload7 === void 0 ? void 0 : _action$payload7.modalContent;
148
+ draft.modal.value = (_action$payload8 = action.payload) === null || _action$payload8 === void 0 || (_action$payload8 = _action$payload8.modalData) === null || _action$payload8 === void 0 ? void 0 : _action$payload8.value;
149
+ break;
150
+ case actionTypes.SET_NESTED_DRAWER:
151
+ draft.nestedDrawer.data.cancelOrder = action.payload;
152
+ break;
153
+ case actionTypes.TOGGLE_DRAWER:
154
+ draft.drawer.visible = true;
155
+ draft.drawer.active = action.payload;
156
+ break;
157
+ case actionTypes.NESTED_DRAWER_OPEN:
158
+ draft.nestedDrawer.visible = true;
159
+ break;
160
+ case actionTypes.NESTED_DRAWER_CLOSED:
161
+ draft.nestedDrawer.visible = false;
162
+ break;
163
+ case actionTypes.SET_CUSTOM_DRAWER:
164
+ draft.customDrawer.data = action.payload;
165
+ break;
166
+ case actionTypes.CUSTOM_DRAWER_OPEN:
167
+ draft.customDrawer.visible = true;
168
+ break;
169
+ case actionTypes.CUSTOM_DRAWER_CLOSED:
170
+ draft.customDrawer.visible = false;
171
+ break;
172
+ case actionTypes.CLOSE_DRAWER:
173
+ draft.drawer.visible = false;
174
+ break;
175
+ case actionTypes.TABLE_FOOTER_TOGGLE:
176
+ draft.tables.tableFooter.visible = action.payload;
177
+ break;
178
+ case actionTypes.TABLE_ROW_SELECTED_DATA:
179
+ draft.tables.selectedRowKeys = action.payload;
180
+ break;
181
+ case actionTypes.TOGGLE_MODAL:
182
+ draft.modal.visible = action.payload;
183
+ break;
184
+ case actionTypes.SET_CUSTOM_DRAWER_DATA_SELECT:
185
+ {
186
+ var _draft$tabs$active2, _draft$tabs3, _draft$drawer;
187
+ const tabKey = (_draft$tabs$active2 = draft === null || draft === void 0 || (_draft$tabs3 = draft.tabs) === null || _draft$tabs3 === void 0 ? void 0 : _draft$tabs3.active) !== null && _draft$tabs$active2 !== void 0 ? _draft$tabs$active2 : "default";
188
+ const record = draft === null || draft === void 0 || (_draft$drawer = draft.drawer) === null || _draft$drawer === void 0 || (_draft$drawer = _draft$drawer.data) === null || _draft$drawer === void 0 || (_draft$drawer = _draft$drawer[tabKey]) === null || _draft$drawer === void 0 ? void 0 : _draft$drawer[action.payload.key];
189
+ if (!(record !== null && record !== void 0 && record.groups)) break;
190
+
191
+ // Loop through all groups
192
+ for (const group of record.groups) {
193
+ // Look for a `keyValue` type item containing `Billing Address`
194
+ const targetItem = (group.items || []).find(item => (item === null || item === void 0 ? void 0 : item.type) === "keyValue" && (item === null || item === void 0 ? void 0 : item.value) && Object.prototype.hasOwnProperty.call(item.value, "Billing Address"));
195
+
196
+ // If found, update the value
197
+ if (targetItem) {
198
+ targetItem.value["Billing Address"] = action.payload.value;
199
+ break; // Stop after updating
200
+ }
201
+ }
202
+ break;
203
+ }
204
+ case actionTypes.SET_SUBHEADING_SELECTED_CONFIG:
205
+ draft.header.subHeading.jsxConfig.value = action.payload;
206
+ draft.dropdownSearch.error = null;
207
+ break;
208
+ case actionTypes.SET_STATIC_FILTER_SELECTION:
209
+ if ((_draft$staticFilter = draft.staticFilter) !== null && _draft$staticFilter !== void 0 && _draft$staticFilter.data) {
210
+ draft.staticFilter.data = draft.staticFilter.data.map(filter => _objectSpread(_objectSpread({}, filter), {}, {
211
+ selected: filter.value === action.payload
212
+ }));
213
+ }
214
+ break;
215
+ case actionTypes.SET_STATIC_FILTER:
216
+ draft.staticFilter.data = action.payload;
217
+ break;
218
+ case actionTypes.SET_STATIC_FILTER_VISIBILITY:
219
+ if (draft.staticFilter) {
220
+ draft.staticFilter.visible = action.payload;
221
+ }
222
+ break;
223
+ case actionTypes.SET_TABLE_COLUMNS_RESET:
224
+ if ((_draft$tables2 = draft.tables) !== null && _draft$tables2 !== void 0 && (_draft$tables2 = _draft$tables2.columns) !== null && _draft$tables2 !== void 0 && _draft$tables2[action.payload.tabKey]) {
225
+ draft.tables.columns[action.payload.tabKey] = action.payload.columns;
226
+ }
227
+ break;
228
+ case actionTypes.SET_APPLIED_FILTERS:
229
+ draft.customDrawer.appliedFilters = action.payload;
230
+ break;
231
+ case actionTypes.REMOVE_APPLIED_FILTER:
232
+ const {
233
+ filterKey
234
+ } = action.payload;
235
+ if (draft.customDrawer.appliedFilters[filterKey]) {
236
+ delete draft.customDrawer.appliedFilters[filterKey];
237
+ }
238
+
239
+ // Reset the corresponding form field in custom drawer
240
+ if ((_draft$customDrawer$d2 = draft.customDrawer.data) !== null && _draft$customDrawer$d2 !== void 0 && _draft$customDrawer$d2.groups) {
241
+ draft.customDrawer.data.groups.forEach(group => {
242
+ group.items.forEach(item => {
243
+ if (item.name === filterKey) {
244
+ // Reset to original default value based on widget type
245
+ item.defaultValue = getFieldDefaultValue(item.widget);
246
+ }
247
+ });
248
+ });
249
+ }
250
+ break;
251
+ case actionTypes.CLEAR_ALL_APPLIED_FILTERS:
252
+ draft.customDrawer.appliedFilters = {};
253
+
254
+ // Reset all form fields to original default values
255
+ if ((_draft$customDrawer$d3 = draft.customDrawer.data) !== null && _draft$customDrawer$d3 !== void 0 && _draft$customDrawer$d3.groups) {
256
+ draft.customDrawer.data.groups.forEach(group => {
257
+ group.items.forEach(item => {
258
+ if (item.name === "filterBy") {
259
+ item.defaultValue = draft.customDrawer.defaultAppliedFilter; // Reset to default
260
+ } else if (item.name === "fromDate" || item.name === "toDate") {
261
+ item.defaultValue = ""; // Reset dates to empty
262
+ }
263
+ });
264
+ });
265
+ }
266
+ break;
267
+ case actionTypes.UPDATE_FILTER_FORM_VALUES:
268
+ if ((_draft$customDrawer$d4 = draft.customDrawer.data) !== null && _draft$customDrawer$d4 !== void 0 && _draft$customDrawer$d4.groups) {
269
+ const {
270
+ formValues
271
+ } = action.payload;
272
+ draft.customDrawer.data.groups.forEach(group => {
273
+ group.items.forEach(item => {
274
+ if (item.name && formValues.hasOwnProperty(item.name)) {
275
+ item.defaultValue = formValues[item.name];
276
+ } else if (item.name && !formValues.hasOwnProperty(item.name)) {
277
+ // Reset to original default if not in applied filters
278
+ if (item.name === "filterBy") {
279
+ item.defaultValue = draft.customDrawer.defaultAppliedFilter;
280
+ } else {
281
+ item.defaultValue = "";
282
+ }
283
+ }
284
+ });
285
+ });
286
+ }
287
+ break;
288
+ case actionTypes.SET_PROFILE_DATA:
289
+ draft.profileData = _objectSpread(_objectSpread({}, draft.profileData), action.payload);
290
+ break;
291
+ default:
292
+ break;
293
+ }
294
+ });
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ exports.removeHidden = removeHidden;
8
+ require("core-js/modules/es.string.trim.js");
9
+ require("core-js/modules/web.dom-collections.iterator.js");
10
+ require("core-js/modules/es.regexp.exec.js");
11
+ require("core-js/modules/es.string.match.js");
12
+ require("core-js/modules/es.string.replace.js");
13
+ require("core-js/modules/es.array.includes.js");
14
+ require("core-js/modules/es.string.includes.js");
15
+ /* eslint-disable */
16
+ function replaceVariables(config) {
17
+ for (var _len = arguments.length, dataSources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
18
+ dataSources[_key - 1] = arguments[_key];
19
+ }
20
+ // Resolve value from multiple data sources using dot notation
21
+ const getValueFromSources = key => {
22
+ const path = key.trim().split(".");
23
+ for (const dataSource of dataSources) {
24
+ let current = dataSource;
25
+ for (const segment of path) {
26
+ if (current && typeof current === "object" && segment in current) {
27
+ current = current[segment];
28
+ } else {
29
+ current = undefined;
30
+ break;
31
+ }
32
+ }
33
+ if (current !== undefined) {
34
+ return current;
35
+ }
36
+ }
37
+ return undefined; // ← Don't default to ""
38
+ };
39
+
40
+ // Replace placeholders in a string
41
+ const replacePlaceholders = value => {
42
+ const fullMatch = value.match(/^{{\s*([^}]+)\s*}}$/);
43
+ if (fullMatch) {
44
+ const replacement = getValueFromSources(fullMatch[1]);
45
+ return replacement !== undefined ? replacement : ""; // ← Keep original if not found
46
+ }
47
+
48
+ // Inline replacements: convert only primitive values
49
+ return value.replace(/{{\s*([^}]+)\s*}}/g, (_, key) => {
50
+ const replacement = getValueFromSources(key);
51
+ if (replacement === undefined || typeof replacement === "object" || typeof replacement === "function") {
52
+ return ""; // ← Keep the placeholder intact
53
+ }
54
+ return String(replacement);
55
+ });
56
+ };
57
+
58
+ // Recursively process entire config object
59
+ const processValue = value => {
60
+ if (Array.isArray(value)) {
61
+ return value.map(processValue);
62
+ }
63
+ if (typeof value === "object" && value !== null) {
64
+ const newObj = {};
65
+ for (const key in value) {
66
+ if (Object.hasOwn(value, key)) {
67
+ newObj[key] = processValue(value[key]);
68
+ }
69
+ }
70
+ return newObj;
71
+ }
72
+ if (typeof value === "string" && value.includes("{{")) {
73
+ return replacePlaceholders(value);
74
+ }
75
+ return value;
76
+ };
77
+ return processValue(config);
78
+ }
79
+ function removeHidden(obj) {
80
+ if (typeof obj !== "object" || obj === null) return obj;
81
+
82
+ // If the object has isShow: false, remove it entirely
83
+ if (obj.isShow === false) return undefined;
84
+
85
+ // Create a new object to hold filtered keys
86
+ const result = Array.isArray(obj) ? [] : {};
87
+ for (const key in obj) {
88
+ const value = obj[key];
89
+ const cleanedValue = removeHidden(value);
90
+
91
+ // Only add if cleanedValue is not undefined
92
+ if (cleanedValue !== undefined) {
93
+ result[key] = cleanedValue;
94
+ }
95
+ }
96
+ return result;
97
+ }
98
+ var _default = exports.default = replaceVariables;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.weak-map.js");
4
+ require("core-js/modules/web.dom-collections.iterator.js");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.Tooltip = exports.TableDataStyle = exports.ProfileSectionContainer = exports.ProfileIcon = exports.OapageWithDataStyle = exports.ListofDamageParts = exports.IncidentListParts = exports.FormWidgetStyle = exports.DrawerWithOutFooter = void 0;
9
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
11
+ /* eslint-disable */
12
+ // styles.js
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
+ const DrawerWithOutFooter = exports.DrawerWithOutFooter = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.hubAutomationContainer .fullPageLayout {padding: 0 !important; background: #fff !important;}\n.hubAutomationContainer .fullPageLayout .oaRightLayouts{\n max-width: 1154px;\n margin: 24px auto;\n padding: 0 16px;\n box-shadow: none;}\n.oaDrawer div + div.ant-drawer-body{padding-bottom:100px !important;}\n\n.ant-checkbox-indeterminate .ant-checkbox-inner:after {\n background-color: #014fc5;\n}\n\n.ant-form-item .ant-form-item-label >label.ant-form-item-required::before {display:none;}\n.ant-form-item .ant-form-item-label >label.ant-form-item-required::after{ content: \"*\"; color: #DE350B; visibility: visible !important;}\n\n\n.cstUplaodWithFullWidth{margin-bottom:24px;}\n.cstUplaodWithFullWidth:last-child{margin-bottom:0;}\n.cstUplaodWithFullWidth .uploadDiv{width:100%;}\n.cstUplaodWithFullWidth .uploadDiv .ant-upload-list-item-container, .cstUplaodWithFullWidth .uploadDiv .ant-upload-wrapper .ant-upload-list-picture-card .ant-upload-select, .cstUplaodWithFullWidth .uploadDiv .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container {\n width: 100%; \n height: 120px;\n}\n\n\n\n\n.oaDrawer .ant-form-item .ant-form-item-explain-error {\n color: #DE350B;\n font-size: 12px;\n margin: 4px 0 0 0;\n}\n.bottomSelectedSecion{background: #F6F6F6; padding: 16px 36px; position: fixed; bottom: 0; left: 0; right: 0;\nbox-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.14);\n display: flex; z-index: 2;\n align-items: center;\n justify-content: end;\n gap: 24px;}\n\n\n\n.listOfItems{ border-radius: 12px;\n border: 1px solid #E0E0E0;\n padding: 24px;\n margin: 24px 0 0 0;}\n modalSubheading{\n padding: 24px;\n margin: 24px 0 0 0;}\n\n.listOfItemsWithoutBorder{\n padding: 24px 0;\n margin: 24px 0 0 0;}\n\n modalSubheading{\n padding: 24px;\n margin: 24px 0 0 0;}\n\n\n\n\n.modalIconAndTextBox{display:flex; flex-direction:row; align-items: center; margin: 0 0 16px 0; gap:4px;}\n\n/* Select List Item Styles */\n.select-list-container {\n padding: 0;\n margin: 16px 0 0 0;\n}\n\n.select-list-item {\n display: flex;\n align-items: center;\n padding: 16px 0;\n cursor: pointer;\n transition: background-color 0.2s ease;\n border-bottom: 1px solid #f0f0f0;\n position: relative;\n}\n\n.select-list-item:hover {\n background-color: #f8f9fa;\n}\n\n.select-list-item:last-child {\n border-bottom: none;\n}\n\n.item-avatar {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background-color: #f0f0f0;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n font-size: 20px;\n font-weight: 500;\n color: #333;\n flex-shrink: 0;\n}\n\n/* Different avatar colors for different items */\n.select-list-item:nth-child(1) .item-avatar {\n background-color: #717171;\n color: #fff;\n}\n\n.select-list-item:nth-child(2) .item-avatar {\n background-color: #014fc5;\n color: #fff;\n}\n\n.item-content {\n flex: 1;\n min-width: 0;\n}\n\n.item-arrow {\n flex-shrink: 0;\n margin-left: 8px;\n color: #014fc5;\n}\n"])));
17
+ const FormWidgetStyle = exports.FormWidgetStyle = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .formBottomAction {\n position: absolute;\n bottom: 0px;\n background-color: rgb(249, 249, 249);\n box-shadow: rgba(0, 0, 0, 0.1) 0px -2px 8px;\n padding: 16px;\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n z-index: 10;\n left: 0;\n right: 0;\n }\n\n .formBottomAction .ant-form-item {\n margin-bottom: 0px;\n }\n\n .searchErrorMsg {\n font-size: 12px;\n }\n .searchErrorMsg {\n font-size: 12px;\n }\n"])));
18
+ const TableDataStyle = exports.TableDataStyle = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .tableContainerList th,\n button {\n white-space: nowrap;\n }\n .tableContainerList th,\n button {\n white-space: nowrap;\n }\n"])));
19
+ const OapageWithDataStyle = exports.OapageWithDataStyle = _styledComponents.default.aside(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .oaTopHeaderAndBtnSec {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n .headerContent {\n display: flex;\n align-items: flex-start; // Changed from 'center' to 'flex-start'\n justify-content: space-between;\n width: 100%;\n\n .headerLeft {\n flex: 1;\n }\n\n .headerRight {\n display: flex;\n align-items: flex-start; // Changed from 'center' to 'flex-start'\n justify-content: flex-end;\n }\n }\n }\n\n .fullPageLayout {\n display: flex;\n padding: 8px;\n background: #f6f6f6;\n }\n .ant-pagination {\n padding: 0 16px;\n justify-content: end;\n }\n .layoutHeadingPage {\n display: flex;\n gap: 8px;\n margin: 0 0 32px 0;\n flex-direction: column;\n justify-content: flex-start;\n }\n\n .topHadingWithIcon span {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n }\n\n .subHadingText {\n margin: 0 0 0 36px;\n }\n\n .subHading1Text {\n margin: 0 0 ", " 40px;\n }\n\n .marginNone {\n margin: 0 !important;\n }\n\n .subHadingText > span {\n display: flex;\n flex-direction: row;\n gap: 4px;\n align-items: center;\n }\n\n .oaRightLayouts {\n width: 100%;\n min-height: calc(100vh - 16px);\n padding: 76px 48px;\n overflow-y: auto;\n border-radius: 16px;\n background: #fff;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.14);\n }\n\n .oaheaderSearchAndFilter {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 0 0 16px 0;\n gap: 16px;\n }\n\n .oaRightLayouts .iconAndTextSecBox {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n }\n .inLine {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 4px;\n }\n\n .customeSelectDropdown {\n margin: 4px 0 0 8px;\n }\n\n .cardData {\n padding: 28px 0 48px 0;\n }\n\n .ant-carousel .slick-dots {\n position: static;\n margin: 20px auto 12px 0;\n }\n .ant-carousel .slick-dots li {\n width: 8px;\n height: 8px;\n }\n .ant-carousel .slick-dots li button {\n width: 8px;\n height: 8px;\n background: #cacaca;\n border-radius: 50%;\n opacity: 0.5;\n }\n .ant-carousel .slick-dots li.slick-active {\n width: 8px;\n height: 8px;\n }\n .ant-carousel .slick-dots li.slick-active button {\n width: 8px;\n height: 8px;\n opacity: 1;\n }\n .ant-carousel .slick-dots li::after {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n opacity: 1;\n background: #717171;\n }\n\n .oaTabs .ant-tabs-nav {\n border-top: 1px solid #e0e0e0;\n border-left: 1px solid #e0e0e0;\n border-right: 1px solid #e0e0e0;\n padding: 12px 22px 0 22px;\n margin: 0 0 8px 0;\n background: #fff;\n border-radius: 4px 4px 0 0;\n }\n .ant-card-body {\n padding: 24px 16px !important;\n border-radius: 16px;\n background: #f6f6f6;\n }\n .cardContainer {\n display: flex;\n gap: 24px;\n }\n .selectAndSearch .noClear {\n border-radius: 0 4px 4px 0;\n width: 320px;\n }\n\n .searchErrorMsg {\n font-size: 12px;\n margin: 4px 0px 0px;\n color: #de350b;\n }\n .searchOnly {\n margin: 0px 0px 16px;\n position: relative;\n }\n .searchOnly .ant-input-affix-wrapper {\n border-radius: 4px;\n max-width: 420px;\n padding-left: 44px;\n }\n .searchOnly .cstSearchIcon {\n position: absolute;\n left: 16px;\n top: 14px;\n z-index: 2;\n }\n\n .selectAndSearch .ant-input-affix-wrapper {\n border-radius: 0 4px 4px 0;\n width: 320px;\n }\n\n .selectAndSearch {\n flex-shrink: 0;\n }\n\n .customeSelectDropdown .ant-select-selector {\n border: none;\n padding: 0;\n max-width: 83vw;\n }\n .customeSelectDropdown .ant-select-selection-item > span {\n font-size: 24px;\n font-weight: 500;\n line-height: 32px;\n }\n\n .customeSelectDropdown .ant-select {\n margin: 0 0 0 32px;\n }\n\n .customeSelectDropdown .ant-select .ant-select-arrow {\n color: #014fc5;\n inset-inline-end: -6px;\n }\n\n .customeSelectDropdown .ant-select-selector {\n box-shadow: none !important;\n }\n\n.customeSelectDropdown .ant-select-selection-item {\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n vertical-align: bottom;\n}\n\n .oaheaderButtons {\n display: flex;\n gap: 24px;\n align-items: center;\n position: relative;\n flex-grow: 1;\n justify-content: space-between;\n }\n\n .oaheaderButtons.single-child {\n justify-content: flex-end;\n }\n\n .oaheaderButtonsRight {\n display: flex;\n flex-direction: row;\n gap: 16px;\n }\n\n .oaheaderButtons .notifyDot {\n width: 12px;\n height: 12px;\n background: #de350b;\n position: absolute;\n top: -4px;\n right: -4px;\n border-radius: 50%;\n }\n\n @media only screen and (max-width: 600px) {\n .selectAndSearch .ant-input-affix-wrapper {\n width: calc(100% - 84px);\n }\n .oaheaderSearchAndFilter .dropDownSearchContainer {\n width: 100%;\n }\n\n .oaheaderSearchAndFilter {\n align-items: flex-end;\n flex-direction: column;\n gap: 16px;\n }\n\n .inLine {\n flex-direction: column;\n gap: 0;\n align-items: flex-start;\n }\n\n .subHadingText > span {\n flex-direction: column;\n align-items: flex-start;\n }\n\n .customeSelectDropdown {\n margin: 4px 0 0 0;\n }\n\n .customeSelectDropdown .ant-select {\n margin: 0 0 0 0;\n }\n\n .fullPageLayout {\n flex-direction: column;\n padding: 0;\n }\n .oaRightLayouts {\n padding: 16px;\n border-radius: 0;\n background: #fff;\n box-shadow: none;\n height: auto;\n background: #f6f6f6;\n }\n .oaTabs .ant-tabs-nav {\n margin: 0 0 28px 0;\n padding: 12px 0 0 0;\n }\n .layoutHeadingPage {\n margin: 0 0 16px 0;\n background: #fff;\n padding: 16px;\n border-radius: 8px;\n width: 100%;\n }\n .layoutHeadingAndSearch {\n background: #fff;\n padding: 20px 16px;\n margin: 0;\n width: 100%;\n border-radius: 8px;\n }\n \n /* Hide profile section on mobile when sidebar has profile icon */\n .hideProfileOnMobile {\n display: none !important;\n }\n }\n"])), _ref => {
20
+ let {
21
+ marginBottom
22
+ } = _ref;
23
+ return marginBottom || "0";
24
+ });
25
+ const ListofDamageParts = exports.ListofDamageParts = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ul.damagedParts {\n display: flex;\n flex-direction: column;\n margin: 8px 0 0 16px;\n list-style-type: disc;\n }\n ul.damagedParts li {\n padding: 4px 0;\n width: 100%;\n }\n ul.damagedParts li::marker {\n color: #717171;\n font-size: 20px;\n }\n"])));
26
+ const IncidentListParts = exports.IncidentListParts = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n .qaSec dl {\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n }\n .qaSec dl dt {\n display: flex;\n flex-direction: column;\n margin: 16px 0 0 0;\n }\n .qaSec dl dt:first-child {\n margin-top: 8px;\n }\n"])));
27
+ const ProfileSectionContainer = exports.ProfileSectionContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n margin-left: auto;\n\n .profile-icon-container {\n position: relative;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n"])));
28
+ const ProfileIcon = exports.ProfileIcon = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 48px;\n height: 48px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: all 0.2s ease;\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--color-primary);\n\n &:hover {\n transform: scale(1.05);\n }\n"])));
29
+ const Tooltip = exports.Tooltip = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n top: 100%;\n right: 0;\n margin-top: 8px;\n background: #000000;\n color: #ffffff;\n padding: 8px 12px;\n border-radius: 6px;\n font-size: 12px;\n white-space: nowrap;\n z-index: 1000;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\n &::before {\n content: \"\";\n position: absolute;\n top: -4px;\n right: 12px;\n width: 0;\n height: 0;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-bottom: 4px solid #000000;\n }\n"])));
30
+ var _default = exports.default = {};
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ require("core-js/modules/es.symbol.description.js");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _Typography = _interopRequireDefault(require("../../components/oa-component-typography/Typography"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+ function CancelScreen(props) {
12
+ const {
13
+ cancelScreen
14
+ } = props !== null && props !== void 0 ? props : {};
15
+ const {
16
+ image,
17
+ title,
18
+ description,
19
+ subDescription
20
+ } = cancelScreen !== null && cancelScreen !== void 0 ? cancelScreen : {};
21
+ const {
22
+ src,
23
+ alt
24
+ } = image !== null && image !== void 0 ? image : {};
25
+ if (!(cancelScreen !== null && cancelScreen !== void 0 && cancelScreen.showCancelScreen)) return null;
26
+ return /*#__PURE__*/_react.default.createElement("div", {
27
+ className: "icRepairBox"
28
+ }, src && /*#__PURE__*/_react.default.createElement("img", {
29
+ src: src,
30
+ alt: alt
31
+ }), title && /*#__PURE__*/_react.default.createElement("div", {
32
+ className: "margin-top-16 margin-bottom-16"
33
+ }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
34
+ color: "primary-content",
35
+ className: "type-t1-500"
36
+ }, title)), description && /*#__PURE__*/_react.default.createElement("div", {
37
+ className: "margin-bottom-16"
38
+ }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
39
+ color: "primary-content",
40
+ className: "type-b2-400"
41
+ }, description)), subDescription && /*#__PURE__*/_react.default.createElement(_Typography.default, {
42
+ color: "primary-content",
43
+ className: "type-b2-400"
44
+ }, subDescription));
45
+ }
46
+ var _default = exports.default = CancelScreen;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _CustomButton = _interopRequireDefault(require("../../components/oa-component-button/CustomButton"));
9
+ var _CustomCheckBox = _interopRequireDefault(require("../../components/oa-component-checkbox/CustomCheckBox"));
10
+ var _CustomTag = _interopRequireDefault(require("../../components/oa-component-tag/CustomTag"));
11
+ var _Typography = _interopRequireDefault(require("../../components/oa-component-typography/Typography"));
12
+ var _TncList = _interopRequireDefault(require("./TncList"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function ConsentCard(props) {
15
+ const {
16
+ consentCard
17
+ } = props !== null && props !== void 0 ? props : {};
18
+ const {
19
+ title,
20
+ image = {},
21
+ checkBox = {},
22
+ tag,
23
+ action2
24
+ } = consentCard;
25
+ const {
26
+ src,
27
+ alt
28
+ } = image !== null && image !== void 0 ? image : {};
29
+ const {
30
+ label,
31
+ type
32
+ } = tag !== null && tag !== void 0 ? tag : {};
33
+ if (!(consentCard !== null && consentCard !== void 0 && consentCard.showConsentCard)) return null;
34
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
35
+ className: "cromaCardHeader"
36
+ }, src && /*#__PURE__*/_react.default.createElement("div", {
37
+ className: "iconBox"
38
+ }, /*#__PURE__*/_react.default.createElement("img", {
39
+ src: src,
40
+ alt: alt
41
+ })), /*#__PURE__*/_react.default.createElement("div", {
42
+ className: "textAreaSecBox"
43
+ }, title && /*#__PURE__*/_react.default.createElement(_Typography.default, {
44
+ color: "primary-content",
45
+ className: "type-t2-700"
46
+ }, title), label && /*#__PURE__*/_react.default.createElement("div", {
47
+ className: "margin-top-8 margin-bottom-8"
48
+ }, /*#__PURE__*/_react.default.createElement(_CustomTag.default, {
49
+ label: label,
50
+ type: type
51
+ })))), /*#__PURE__*/_react.default.createElement("div", {
52
+ className: "grayBoxSec"
53
+ }, /*#__PURE__*/_react.default.createElement(_TncList.default, props), (checkBox === null || checkBox === void 0 ? void 0 : checkBox.label) && /*#__PURE__*/_react.default.createElement("div", {
54
+ className: "checkBoxSec"
55
+ }, /*#__PURE__*/_react.default.createElement(_CustomCheckBox.default, {
56
+ label: /*#__PURE__*/_react.default.createElement("p", null, checkBox === null || checkBox === void 0 ? void 0 : checkBox.label),
57
+ onChange: checkBox === null || checkBox === void 0 ? void 0 : checkBox.onChange,
58
+ size: "large"
59
+ })), action2 && /*#__PURE__*/_react.default.createElement("div", {
60
+ className: "margin-top-32 makePayment"
61
+ }, /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
62
+ "data-test": "button",
63
+ disabled: action2 === null || action2 === void 0 ? void 0 : action2.isDisabled,
64
+ label: action2 === null || action2 === void 0 ? void 0 : action2.label,
65
+ onClick: action2 === null || action2 === void 0 ? void 0 : action2.onClick
66
+ }))));
67
+ }
68
+ var _default = exports.default = ConsentCard;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ require("core-js/modules/es.symbol.description.js");
8
+ var _react = _interopRequireDefault(require("react"));
9
+ var _ExpandLess = _interopRequireDefault(require("@material-ui/icons/ExpandLess"));
10
+ var _ExpandMore = _interopRequireDefault(require("@material-ui/icons/ExpandMore"));
11
+ var _MaterialIcon = _interopRequireDefault(require("../../components/oa-component-icons/MaterialIcon"));
12
+ var _Typography = _interopRequireDefault(require("../../components/oa-component-typography/Typography"));
13
+ var _DetailsList = _interopRequireDefault(require("./DetailsList"));
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ function DetailsCard(props) {
16
+ var _detailsCard$detailsS, _detailsCard$detailsS2, _detailsCard$detailsS3;
17
+ const {
18
+ detailsCard
19
+ } = props !== null && props !== void 0 ? props : {};
20
+ const {
21
+ title,
22
+ image,
23
+ description,
24
+ action1
25
+ } = detailsCard !== null && detailsCard !== void 0 ? detailsCard : {};
26
+ const {
27
+ src,
28
+ alt
29
+ } = image !== null && image !== void 0 ? image : {};
30
+ const {
31
+ text,
32
+ showDescription
33
+ } = description !== null && description !== void 0 ? description : {};
34
+ if (!(detailsCard !== null && detailsCard !== void 0 && detailsCard.showDetailsCard)) return null;
35
+ return /*#__PURE__*/_react.default.createElement("div", {
36
+ className: "serviceRequestBox"
37
+ }, /*#__PURE__*/_react.default.createElement("div", {
38
+ className: "serviceRequestBoxHeader"
39
+ }, src && /*#__PURE__*/_react.default.createElement("img", {
40
+ src: src,
41
+ alt: alt
42
+ }), title && /*#__PURE__*/_react.default.createElement(_Typography.default, {
43
+ color: "primary-content",
44
+ className: "type-button-500"
45
+ }, title)), /*#__PURE__*/_react.default.createElement("div", {
46
+ className: "serviceRequestBoxBody"
47
+ }, /*#__PURE__*/_react.default.createElement("div", {
48
+ className: "margin-top-4 margin-bottom-4 hideDetails",
49
+ onClick: action1 === null || action1 === void 0 ? void 0 : action1.onClick,
50
+ onKeyDown: e => {
51
+ var _action1$onClick;
52
+ if (e.key === 'Enter' || e.key === ' ') action1 === null || action1 === void 0 || (_action1$onClick = action1.onClick) === null || _action1$onClick === void 0 || _action1$onClick.call(action1, e);
53
+ },
54
+ role: "button",
55
+ tabIndex: 0
56
+ }, /*#__PURE__*/_react.default.createElement("div", {
57
+ className: "bar-ddm"
58
+ }, (action1 === null || action1 === void 0 ? void 0 : action1.label) && (action1 === null || action1 === void 0 ? void 0 : action1.label), /*#__PURE__*/_react.default.createElement("span", {
59
+ className: "textAlign"
60
+ }, (action1 === null || action1 === void 0 ? void 0 : action1.showExpandedLessIcon) && /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
61
+ color: "color-primary",
62
+ size: 16,
63
+ icon: _ExpandLess.default
64
+ }), ' ', (action1 === null || action1 === void 0 ? void 0 : action1.showExpandedIcon) && /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
65
+ color: "color-primary",
66
+ size: 16,
67
+ icon: _ExpandMore.default
68
+ })))), showDescription && /*#__PURE__*/_react.default.createElement(_Typography.default, {
69
+ color: "secondary-content",
70
+ className: "type-b1-400"
71
+ }, text), (detailsCard === null || detailsCard === void 0 || (_detailsCard$detailsS = detailsCard.detailsSection) === null || _detailsCard$detailsS === void 0 ? void 0 : _detailsCard$detailsS.showDetailsSection) && /*#__PURE__*/_react.default.createElement("div", {
72
+ className: "grayBoxList"
73
+ }, /*#__PURE__*/_react.default.createElement(_DetailsList.default, detailsCard === null || detailsCard === void 0 || (_detailsCard$detailsS2 = detailsCard.detailsSection) === null || _detailsCard$detailsS2 === void 0 ? void 0 : _detailsCard$detailsS2.firstDetail), /*#__PURE__*/_react.default.createElement(_DetailsList.default, detailsCard === null || detailsCard === void 0 || (_detailsCard$detailsS3 = detailsCard.detailsSection) === null || _detailsCard$detailsS3 === void 0 ? void 0 : _detailsCard$detailsS3.secondDetail))));
74
+ }
75
+ var _default = exports.default = DetailsCard;