oa-componentbook 1.0.1-stage.34 → 1.0.1-stage.36
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/build/components/oa-component-accordion/Accordion.js +17 -6
- package/build/components/oa-component-accordion/styles.js +2 -2
- package/build/components/oa-component-auto-complete/CustomAutoComplete.js +8 -11
- package/build/components/oa-component-bar-chart/BarChart.js +4 -8
- package/build/components/oa-component-bread-crumb/CustomBreadCrumb.js +1 -1
- package/build/components/oa-component-button/CustomButton.js +6 -10
- package/build/components/oa-component-button/styles.js +2 -2
- package/build/components/oa-component-checkbox/CustomCheckBox.js +4 -4
- package/build/components/oa-component-checkbox/styles.js +2 -2
- package/build/components/oa-component-count-card/CustomCountCard.js +1 -1
- package/build/components/oa-component-count-card/styles.js +2 -2
- package/build/components/oa-component-datepicker/CustomDatePicker.js +5 -5
- package/build/components/oa-component-demo-border-radius/BorderRadiusDemo.js +1 -1
- package/build/components/oa-component-demo-border-radius/styles.js +2 -2
- package/build/components/oa-component-demo-color-variables/ColorVariablesDemo.js +1 -1
- package/build/components/oa-component-demo-color-variables/styles.js +2 -2
- package/build/components/oa-component-demo-elevation/ElevationDemo.js +1 -1
- package/build/components/oa-component-demo-elevation/styles.js +2 -2
- package/build/components/oa-component-demo-spacing/SpacingScales.js +1 -1
- package/build/components/oa-component-demo-spacing/styles.js +2 -2
- package/build/components/oa-component-drawer/CustomDrawer.js +5 -7
- package/build/components/oa-component-drawer/styles.js +2 -2
- package/build/components/oa-component-dropdown/CustomDropdown.js +1 -1
- package/build/components/oa-component-dropdown/styles.js +2 -2
- package/build/components/oa-component-feedback-form/FeedbackForm.js +2 -2
- package/build/components/oa-component-feedback-tooltip/FeedbackTooltip.js +1 -1
- package/build/components/oa-component-form-item/CustomFormItem.js +9 -11
- package/build/components/oa-component-header/CustomHeader.js +1 -1
- package/build/components/oa-component-header/styles.js +2 -2
- package/build/components/oa-component-icons/CustomIcon.js +9 -11
- package/build/components/oa-component-icons/MaterialIcon.js +9 -11
- package/build/components/oa-component-icons/SizedSvg.js +2 -2
- package/build/components/oa-component-info/CustomInfo.js +10 -5
- package/build/components/oa-component-info/styles.js +5 -5
- package/build/components/oa-component-input/CustomInput.js +5 -5
- package/build/components/oa-component-input-number/CustomInputNumber.js +5 -5
- package/build/components/oa-component-lable/CustomLable.js +1 -1
- package/build/components/oa-component-lable/styles.js +2 -2
- package/build/components/oa-component-loader/CustomLoader.js +4 -4
- package/build/components/oa-component-modal/CustomModal.js +4 -6
- package/build/components/oa-component-modal/styles.js +2 -2
- package/build/components/oa-component-notification/CustomNotification.js +8 -11
- package/build/components/oa-component-notification/styles.js +2 -2
- package/build/components/oa-component-popover/CustomPopover.js +4 -6
- package/build/components/oa-component-progress-bar/CustomProgressBar.js +1 -1
- package/build/components/oa-component-progress-bar/styles.js +2 -2
- package/build/components/oa-component-radio/CustomRadio.js +4 -4
- package/build/components/oa-component-radio/styles.js +2 -2
- package/build/components/oa-component-rating/CustomRating.js +1 -1
- package/build/components/oa-component-select/CustomSelect.js +13 -17
- package/build/components/oa-component-table/CustomTable.js +11 -14
- package/build/components/oa-component-table/styles.js +2 -2
- package/build/components/oa-component-tabs/CustomTabs.js +8 -11
- package/build/components/oa-component-tabs/styles.js +2 -2
- package/build/components/oa-component-tag/CustomTag.js +1 -1
- package/build/components/oa-component-tag/styles.js +2 -2
- package/build/components/oa-component-textarea/TextArea.js +4 -4
- package/build/components/oa-component-textarea/styles.js +2 -2
- package/build/components/oa-component-timeline/CustomTimeline.js +4 -4
- package/build/components/oa-component-timeline/styles.js +2 -2
- package/build/components/oa-component-timepicker/CustomTimePicker.js +5 -5
- package/build/components/oa-component-toggle/CustomToggle.js +5 -5
- package/build/components/oa-component-toggle/styles.js +2 -2
- package/build/components/oa-component-tooltip/CustomTooltip.js +4 -4
- package/build/components/oa-component-typography/Typography.js +4 -4
- package/build/components/oa-component-typography/styles.js +2 -2
- package/build/components/oa-component-upload/CustomUpload.js +5 -8
- package/build/components/oa-component-upload/styles.js +2 -2
- package/build/components/oa-component-viewer/CustomViewer.js +6 -7
- package/build/components/oa-component-viewer/styles.js +2 -2
- package/build/dev/oa-component-timeline/CustomTimeline.js +4 -4
- package/build/dev/oa-component-timeline/styles.js +2 -2
- package/build/dev/oa-component-upload/CustomUpload.js +5 -8
- package/build/dev/oa-component-upload/styles.js +2 -2
- package/build/dev/oa-component-viewer/CustomViewer.js +6 -7
- package/build/dev/oa-component-viewer/styles.js +2 -2
- package/build/dev/oa-widget-document-upload-card/DocUploadCardWidget.js +2 -2
- package/build/dev/oa-widget-document-upload-card/styles.js +2 -2
- package/build/global-css/BorderRadius.js +1 -1
- package/build/global-css/ColorVariables.js +2 -2
- package/build/global-css/CustomDropDownThemes.js +1 -1
- package/build/global-css/Elevation.js +1 -1
- package/build/global-css/GlobalCss.js +1 -1
- package/build/global-css/GridLayout.js +1 -1
- package/build/global-css/SpacingScales.js +1 -1
- package/build/global-css/Typographies.js +2 -2
- package/build/index.js +12 -5
- package/build/layout/paymentAndConsent/CancelScreen.js +46 -0
- package/build/layout/paymentAndConsent/ConsentCard.js +68 -0
- package/build/layout/paymentAndConsent/DetailsCard.js +75 -0
- package/build/layout/paymentAndConsent/DetailsList.js +38 -0
- package/build/layout/paymentAndConsent/Header.js +33 -0
- package/build/layout/paymentAndConsent/InProgressScreen.js +46 -0
- package/build/layout/paymentAndConsent/Loader.js +21 -0
- package/build/layout/paymentAndConsent/Modal.js +28 -0
- package/build/layout/paymentAndConsent/PaymentAndConsent.js +22 -0
- package/build/layout/paymentAndConsent/PaymentCard.js +83 -0
- package/build/layout/paymentAndConsent/Section.js +34 -0
- package/build/layout/paymentAndConsent/SuccessScreen.js +46 -0
- package/build/layout/paymentAndConsent/TimeLineCard.js +28 -0
- package/build/layout/paymentAndConsent/TncList.js +32 -0
- package/build/layout/paymentAndConsent/style.js +12 -0
- package/build/utils/fix-decimal-places.js +1 -1
- package/build/utils/get-uuid.js +1 -1
- package/build/utils/hex-to-rgb.js +3 -5
- package/build/utils/index.js +1 -1
- package/build/utils/rupee-formatters.js +1 -1
- package/build/widgets/oa-widget-add-spare-part/AddSparePartCollapseWidget.js +9 -16
- package/build/widgets/oa-widget-add-spare-part/AddSparePartWidget.js +10 -15
- package/build/widgets/oa-widget-add-spare-part/styles.js +2 -2
- package/build/widgets/oa-widget-address/AddressWidget.js +1 -1
- package/build/widgets/oa-widget-address/styles.js +2 -2
- package/build/widgets/oa-widget-approval/ApprovalWidget.js +5 -5
- package/build/widgets/oa-widget-approval/styles.js +2 -2
- package/build/widgets/oa-widget-chat/ChatWidget.js +7 -10
- package/build/widgets/oa-widget-chat/styles.js +2 -2
- package/build/widgets/oa-widget-close-claim/CloseClaimWidget.js +4 -6
- package/build/widgets/oa-widget-close-claim/styles.js +2 -2
- package/build/widgets/oa-widget-custom-details/CustomDetails.js +2 -2
- package/build/widgets/oa-widget-customer-rating-card/CustomerRatingCard.js +4 -4
- package/build/widgets/oa-widget-customer-rating-card/styles.js +2 -2
- package/build/widgets/oa-widget-date-dropdown/DateDropDown.js +7 -9
- package/build/widgets/oa-widget-date-dropdown/styles.js +2 -2
- package/build/widgets/oa-widget-detailcard/MembershipDetailCard.js +1 -3
- package/build/widgets/oa-widget-detailcard/styles.js +2 -2
- package/build/widgets/oa-widget-document-upload/DocUploadWidget.js +2 -5
- package/build/widgets/oa-widget-document-upload/styles.js +2 -2
- package/build/widgets/oa-widget-document-upload-card/DocUploadCardWidget.js +2 -2
- package/build/widgets/oa-widget-document-upload-card/styles.js +2 -2
- package/build/widgets/oa-widget-dropdown-search-input/DropdownSearchInput.js +5 -8
- package/build/widgets/oa-widget-dropdown-search-input/styles.js +2 -2
- package/build/widgets/oa-widget-feedback/FeedbackWidget.js +2 -2
- package/build/widgets/oa-widget-feedback/styles.js +2 -2
- package/build/widgets/oa-widget-form/CustomFormWidget.js +1 -3
- package/build/widgets/oa-widget-form/styles.js +2 -2
- package/build/widgets/oa-widget-googlerating/GoogleRating.js +1 -1
- package/build/widgets/oa-widget-googlerating/styles.js +2 -2
- package/build/widgets/oa-widget-header/CustomHeaderWidget.js +1 -3
- package/build/widgets/oa-widget-header/styles.js +2 -2
- package/build/widgets/oa-widget-input-pattern-pin/CustomPinPatternCaptureWidget.js +4 -6
- package/build/widgets/oa-widget-input-pattern-pin/styles.js +2 -2
- package/build/widgets/oa-widget-key-value/KeyValueWidget.js +1 -3
- package/build/widgets/oa-widget-key-value/styles.js +2 -2
- package/build/widgets/oa-widget-location-access/LocationAccessWidget.js +1 -1
- package/build/widgets/oa-widget-location-access/styles.js +2 -2
- package/build/widgets/oa-widget-map-base-location/AddressDetails.js +1 -1
- package/build/widgets/oa-widget-map-base-location/AddressForm.js +1 -1
- package/build/widgets/oa-widget-map-base-location/CustomModalComponent.js +1 -1
- package/build/widgets/oa-widget-map-base-location/MapBaseLocation.js +1 -1
- package/build/widgets/oa-widget-map-base-location/MapComponent.js +4 -4
- package/build/widgets/oa-widget-map-base-location/styles.js +2 -2
- package/build/widgets/oa-widget-membershipcard/MembershipCard.js +3 -5
- package/build/widgets/oa-widget-membershipcard/styles.js +2 -2
- package/build/widgets/oa-widget-multiple-collapse-with-slots/MultipleCollapseWithSlots.js +1 -3
- package/build/widgets/oa-widget-multiple-collapse-with-slots/styles.js +2 -2
- package/build/widgets/oa-widget-notes/NotesWidget.js +5 -7
- package/build/widgets/oa-widget-notes/styles.js +2 -2
- package/build/widgets/oa-widget-pincode-base-location/PincodeBaseLocation.js +1 -3
- package/build/widgets/oa-widget-pincode-base-location/styles.js +2 -2
- package/build/widgets/oa-widget-plan-card/PlanCard.js +2 -4
- package/build/widgets/oa-widget-plan-card/styles.js +2 -2
- package/build/widgets/oa-widget-preview/Preview.js +2 -4
- package/build/widgets/oa-widget-preview/ZoomImageComponent.js +2 -2
- package/build/widgets/oa-widget-preview/styles.js +2 -2
- package/build/widgets/oa-widget-reimbursement-breakup/ReimbursementBreakupWidget.js +1 -3
- package/build/widgets/oa-widget-reimbursement-breakup/styles.js +2 -2
- package/build/widgets/oa-widget-repair-service/RepairServiceWidget.js +1 -1
- package/build/widgets/oa-widget-repair-service/styles.js +2 -2
- package/build/widgets/oa-widget-send-payment-link/SendPaymentLinkWidget.js +6 -9
- package/build/widgets/oa-widget-send-payment-link/styles.js +2 -2
- package/build/widgets/oa-widget-servicecard/ServiceCard.js +3 -5
- package/build/widgets/oa-widget-servicecard/styles.js +2 -2
- package/build/widgets/oa-widget-spare-part/SparePartsCollapseWidget.js +2 -4
- package/build/widgets/oa-widget-spare-part/SparePartsWidget.js +5 -8
- package/build/widgets/oa-widget-spare-part/styles.js +2 -2
- package/build/widgets/oa-widget-stage-timeline/StageTimelineWidget.js +2 -4
- package/build/widgets/oa-widget-stage-timeline/styles.js +2 -2
- package/build/widgets/oa-widget-track-shipment/TrackShipmentWidget.js +30 -11
- package/build/widgets/oa-widget-track-shipment/styles.js +2 -2
- package/build/widgets/oa-widget-track-shipment-list/TrackShipmentWidgetList.js +103 -0
- package/build/widgets/oa-widget-track-shipment-list/fn.js +69 -0
- package/build/{dev/oa-widget-track-shipment → widgets/oa-widget-track-shipment-list}/styles.js +2 -2
- package/build/widgets/oa-widget-upload-download/UploadDownloadWidget.js +4 -6
- package/build/widgets/oa-widget-upload-download/styles.js +2 -2
- package/build/widgets/oa-widget-view-history/ViewHistoryWidget.js +5 -5
- package/build/widgets/oa-widget-view-history/styles.js +2 -2
- package/build/widgets/oa-widget-view-previous-description/ViewPreviousDescriptionWidget.js +7 -10
- package/build/widgets/oa-widget-view-previous-description/styles.js +2 -2
- package/package.json +1 -1
- package/build/dev/oa-widget-track-shipment/TrackShipmentWidget.js +0 -198
|
@@ -7,7 +7,7 @@ exports.StyledSection = exports.MainStyleSec = void 0;
|
|
|
7
7
|
var _antd = require("antd");
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _templateObject, _templateObject2;
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _taggedTemplateLiteral(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
const MainStyleSec = exports.MainStyleSec = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.ant-upload-list{\n display: flex !important;\n gap: 16px !important;\n flex-wrap: wrap !important;\n}\n.ant-upload-wrapper .ant-upload-list::before {\n display: none;\n}\n.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select,.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container{\n width: 96px;\n height: 96px;\n margin-block: 0;\n margin-inline: 0;\n}\n.ant-upload-select button > span.UploadImg{\n width: 24px !important;\n height: 24px;\n}\n.ant-upload-select button > span.UploadImg > img{\n width: 100% !important;\n}\n.ant-upload-list-item-container:last-child{\n margin: 0 !important;\n}\n.ant-form-item{\n margin-bottom: 0;\n}\n.ant-upload button{\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n} \n\n.uploadSecPad div{\n padding: 0 0 8px;\n}\n.anticon-upload{\n font-size: 24px;\n}\n.ant-upload-disabled .button{\n cursor: not-allowed;\n}\n.uploadSecPad{\n width: 100%;\n}\n.uploadSecPad div:last-child{\n padding: 0;\n}\n display: flex;\n flex-direction: column;\n gap: 24px;\n .ant-upload-list-item-done,.ant-upload-list-item-A{\n border: 1px solid var(--color-divider) !important;\n }\n \n .ant-upload-list-item-actions{\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 16px;\n }\n \n.ant-upload-list-item-actions button{\n background: #212121;\n border-radius: 50px;\n height: 24px !important;\n display: flex;\n align-items: center;\n}\n.ant-btn-text:not(:disabled):not(.ant-btn-disabled):hover{\n background: #212121;\n}\n .ant-upload-list-item-actions a{\n background: #212121;\n border-radius: 50px;\n height: 24px;\n display: flex;\n }\n \n .ant-upload-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item{\n opacity: 1 !important;\n }\n \n @media only screen and (max-width: 600px) {\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container,.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select{\n width: 64px;\n height: 64px;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item::before,.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions,.ant-upload-wrapper .ant-upload-list .ant-upload-list-item .ant-upload-list-item-actions .ant-upload-list-item-action {\n opacity: 1;\n }\n .ant-upload-list-item-actions a {\n height: 16px;\n align-items: center;\n justify-content: center;\n width: 16px !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye, .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete {\n font-size: 12px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0px !important;\n padding: 0px !important;\n color: #fff;\n}\n }\n"])));
|
|
13
13
|
const StyledSection = exports.StyledSection = _styledComponents.default.section(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n gap: 16px;\n justify-content: space-between;\n h2{\n margin: 0;\n }\n \n @media only screen and (max-width: 600px) {\n \n .ant-upload-list-item-actions button {\n height: 16px!important;\n width: 16px !important;\n justify-content: center;\n }\n .ant-upload-list-item-actions a {\n height: 16px;\n width: 16px !important;\n align-items: center;\n justify-content: center;\n}\n .ant-upload-list-item-actions {\n gap: 8px;\n }\n .ant-upload button span + div{\n display: none;\n }\n }\n"])));
|
|
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
require("core-js/modules/es.array.includes.js");
|
|
10
9
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
11
10
|
require("core-js/modules/web.url.js");
|
|
12
|
-
require("core-js/modules/web.url.to-json.js");
|
|
13
11
|
require("core-js/modules/web.url-search-params.js");
|
|
12
|
+
require("core-js/modules/es.array.includes.js");
|
|
14
13
|
var _Add = _interopRequireDefault(require("@material-ui/icons/Add"));
|
|
15
14
|
var _ArrowBackIos = _interopRequireDefault(require("@material-ui/icons/ArrowBackIos"));
|
|
16
15
|
var _ArrowForwardIos = _interopRequireDefault(require("@material-ui/icons/ArrowForwardIos"));
|
|
@@ -30,11 +29,11 @@ var _styles = require("./styles");
|
|
|
30
29
|
const _excluded = ["downloadCallback", "deleteCallback", "title", "selectedDocumentData", "previewFile", "fileName", "showDownloadButton", "showDeleteButton", "showRoateButton", "showZoomInButton", "showZoomOutButton"],
|
|
31
30
|
_excluded2 = ["zoomIn", "zoomOut"];
|
|
32
31
|
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); }
|
|
33
|
-
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 &&
|
|
34
|
-
function _interopRequireDefault(
|
|
35
|
-
function _extends() {
|
|
36
|
-
function _objectWithoutProperties(
|
|
37
|
-
function _objectWithoutPropertiesLoose(
|
|
32
|
+
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; }
|
|
33
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
34
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
35
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
38
37
|
_reactPdf.pdfjs.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(_reactPdf.pdfjs.version, "/pdf.worker.js");
|
|
39
38
|
const supportedImage = ['png', 'jpeg', 'jpg'];
|
|
40
39
|
const supportedPdf = ['pdf'];
|
|
@@ -7,8 +7,8 @@ exports.mainStyle = exports.StyledZoom = exports.PdfStyles = void 0;
|
|
|
7
7
|
var _antd = require("antd");
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _templateObject, _templateObject2, _templateObject3;
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _taggedTemplateLiteral(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
const mainStyle = exports.mainStyle = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\nposition: relative;\nbackground: red;\n"])));
|
|
13
13
|
const StyledZoom = exports.StyledZoom = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n.flextBodyContain{\n position: absolute;\n right: 52px;\n bottom: 116px;\n flex-direction: column;\n z-index: 9999;\n display: flex;\n border-radius: 4px;\n overflow: hidden;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.14);\n}\n.posroated{\n position: absolute;\n right: 52px;\n box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.14);\n top: 68px;\n z-index: 999;\n border-radius: 4px;\n}\n.iconWidthPad{\n cursor: pointer;\n background: var(--color-primary-background); \n padding: 6px;\n height: 32px;\n width: 32px;\n border-bottom: 1px solid var(--color-divider);\n}\n.iconWidthPad:last-child{\n border: none;\n}\n@media screen and (max-width: 992px) {\n .posroated,.flextBodyContain{\n right: 38px;\n }\n }\n"])));
|
|
14
14
|
const PdfStyles = exports.PdfStyles = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\ncanvas{\n margin: 0 auto;\n}\n.pdfFlexStyles{\n left: 0;\n right: 0;\n bottom: 92px;\n width: fit-content;\n display: flex;\n flex-direction: row;\n align-items: center;\n background: #fff;\n margin-left: auto;\n margin-right: auto;\n padding: 8px;\n gap: 12px;\n}\n.iconWidthPadPdf {\n width: auto;\n height: auto;\n padding: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 8px;\n border: none;\n border-bottom: none;\n}\n\nbutton:disabled {\n color: var(--color-disabled-button);\n cursor: not-allowed; \n border:none;\n }\n button{\n color: var(--color-primary-content);\n }\n@media screen and (max-width: 600px) {\n\n canvas {\n width: 100% !important;\n height: auto !important;\n }\n }\n"])));
|
|
@@ -19,9 +19,9 @@ var _PdfSampleImage = _interopRequireDefault(require("../../images/PdfSampleImag
|
|
|
19
19
|
var _upload = _interopRequireDefault(require("../../images/upload.svg"));
|
|
20
20
|
var _CustomIcon = _interopRequireDefault(require("../../components/oa-component-icons/CustomIcon"));
|
|
21
21
|
var _CustomUpload = _interopRequireDefault(require("../oa-component-upload/CustomUpload"));
|
|
22
|
-
function _interopRequireDefault(
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
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); }
|
|
24
|
-
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 &&
|
|
24
|
+
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; }
|
|
25
25
|
/**
|
|
26
26
|
* Takes a file and returns a Promise that resolves with the file as a base64 encoded string.
|
|
27
27
|
* The Promise is rejected if there is an error reading the file.
|
|
@@ -7,7 +7,7 @@ exports.StyledSection = exports.MainStyleSec = void 0;
|
|
|
7
7
|
var _antd = require("antd");
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
var _templateObject, _templateObject2;
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _taggedTemplateLiteral(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
const MainStyleSec = exports.MainStyleSec = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.ant-form-item{\n margin-bottom: 0;\n}\n.ant-upload button{\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n} \n.uploadDiv{\n width: 96px;\n position: relative;\n}\n.uploadDiv em{\n position: absolute;\n right: -9px;\n top: -9px;\n font-style: normal;\n width: 20px;\n height: 20px;\n background: var(--color-warning);\n z-index: 9;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 50%;\n color: #fff;\n font-size: 12px;\n line-height: 0;\n}\n.UploadImg img{\n height: 24px;\n width: 24px;\n\n}\n.UploadImg{\n justify-content: center;\n cursor: pointer;\n}\n.uploadSecPad div{\n padding: 0 0 8px;\n}\n.anticon-upload{\n font-size: 24px;\n}\n.uploadSecPad{\n width: 100%;\n}\n.uploadSecPad div:last-child{\n padding: 0;\n}\n display: flex;\n flex-direction: column;\n gap: 24px;\n .ant-upload-list-item-done,.ant-upload-list-item-A{\n border: 1px solid var(--color-divider) !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item:hover::before{\n opacity: 1 !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item:hover::before ant-upload-list-item-actions > a\n {\n background: red !important;\n }\n .ant-upload-list-item-actions{\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 16px;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item::before{\n background: transparent;\n opacity: 1;\n }\n.ant-upload-list-item-actions button{\n background: #212121;\n border-radius: 50px;\n height: 24px !important;\n display: flex;\n align-items: center;\n}\n.ant-btn-text:not(:disabled):not(.ant-btn-disabled):hover{\n background: #212121;\n}\n .ant-upload-list-item-actions a{\n background: #212121;\n border-radius: 50px;\n height: 24px;\n display: flex;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions,.ant-upload-wrapper .ant-upload-list .ant-upload-list-item .ant-upload-list-item-actions .ant-upload-list-item-action {\n opacity: 1;\n }\n .ant-upload-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item{\n opacity: 1 !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete{\n color: #fff;\n }\n @media only screen and (max-width: 600px) {\n .uploadDiv {\n width: 64px;\n }\n .uploadDiv em{\n width: 16px;\n height: 16px;\n }\n }\n"])));
|
|
13
13
|
const StyledSection = exports.StyledSection = _styledComponents.default.section(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n gap: 16px;\n justify-content: space-between;\n h2{\n margin: 0;\n }\n .ant-upload-select, .ant-upload-wrapper, .ant-upload-wrapper, .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container{\n width: 96px;\n height: 96px;\n margin: 0;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select{\n width: 96px !important;\n height: 96px !important;\n margin: 0;\n }\n @media only screen and (max-width: 600px) {\n .ant-upload-select, .ant-upload-wrapper, .ant-upload-wrapper, .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-container{\n width: 64px;\n height: 64px;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload.ant-upload-select{\n width: 64px !important;\n height: 64px !important;\n }\n .ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,.ant-upload-wrapper.ant-upload-picture-card-wrapper .ant-upload-list.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete{\n font-size:12px;\n margin: 0 !important;\n padding: 0 !important;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .ant-upload-list-item-actions button {\n height: 16px!important;\n width: 16px !important;\n justify-content: center;\n }\n .ant-upload-list-item-actions a {\n height: 16px;\n width: 16px !important;\n align-items: center;\n justify-content: center;\n}\n .ant-upload-list-item-actions {\n gap: 8px;\n }\n .ant-upload button span + div{\n display: none;\n }\n }\n"])));
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(
|
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
10
10
|
/*
|
|
11
11
|
? Keep this at the top level of the app using any of these components.
|
|
12
12
|
* Do not add any children to it because this element does NOT render any of its children
|
|
@@ -7,8 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _ColorVariablesMap = _interopRequireDefault(require("./ColorVariablesMap"));
|
|
9
9
|
var _templateObject;
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _taggedTemplateLiteral(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
/*
|
|
13
13
|
? Keep this at the top level of the app using any of these components.
|
|
14
14
|
* Do not add any children to it because this element does NOT render any of its children
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _ColorVariablesMap = _interopRequireDefault(require("./ColorVariablesMap"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const TypographiesMap = {
|
|
10
10
|
default: {
|
|
11
11
|
colorText: _ColorVariablesMap.default['--color-primary-content'],
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = exports.ElevationMap = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(
|
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
10
10
|
/*
|
|
11
11
|
? Keep this at the top level of the app using any of these components.
|
|
12
12
|
* Do not add any children to it because this element does NOT render any of its children
|
|
@@ -13,7 +13,7 @@ var _GridLayout = _interopRequireDefault(require("./GridLayout"));
|
|
|
13
13
|
var _SpacingScales = _interopRequireDefault(require("./SpacingScales"));
|
|
14
14
|
var _Typographies = _interopRequireDefault(require("./Typographies"));
|
|
15
15
|
require("antd/dist/reset.css");
|
|
16
|
-
function _interopRequireDefault(
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
function GlobalCss(_ref) {
|
|
18
18
|
let {
|
|
19
19
|
children
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(
|
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
10
10
|
/*
|
|
11
11
|
? Keep this at the top level of the app using any of these components.
|
|
12
12
|
* Do not add any children to it because this element does NOT render any of its children
|
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(
|
|
9
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
10
10
|
const SpacingScales = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.padding-top-4 {\n padding-top: 4px;\n }\n \n .padding-left-4 {\n padding-left: 4px;\n }\n \n .padding-right-4 {\n padding-right: 4px;\n }\n \n .padding-bottom-4 {\n padding-bottom: 4px;\n }\n \n .padding-top-8 {\n padding-top: 8px;\n }\n \n .padding-left-8 {\n padding-left: 8px;\n }\n \n .padding-right-8 {\n padding-right: 8px;\n }\n \n .padding-bottom-8 {\n padding-bottom: 8px;\n }\n \n .padding-top-12 {\n padding-top: 12px;\n }\n \n .padding-left-12 {\n padding-left: 12px;\n }\n \n .padding-right-12 {\n padding-right: 12px;\n }\n \n .padding-bottom-12 {\n padding-bottom: 12px;\n }\n \n .padding-top-16 {\n padding-top: 16px;\n }\n \n .padding-left-16 {\n padding-left: 16px;\n }\n \n .padding-right-16 {\n padding-right: 16px;\n }\n \n .padding-bottom-16 {\n padding-bottom: 16px;\n }\n \n .padding-top-24 {\n padding-top: 24px;\n }\n \n .padding-left-24 {\n padding-left: 24px;\n }\n \n .padding-right-24 {\n padding-right: 24px;\n }\n \n .padding-bottom-24 {\n padding-bottom: 24px;\n }\n \n .padding-top-32 {\n padding-top: 32px;\n }\n \n .padding-left-32 {\n padding-left: 32px;\n }\n \n .padding-right-32 {\n padding-right: 32px;\n }\n \n .padding-bottom-32 {\n padding-bottom: 32px;\n }\n \n .padding-top-40 {\n padding-top: 40px;\n }\n \n .padding-left-40 {\n padding-left: 40px;\n }\n \n .padding-right-40 {\n padding-right: 40px;\n }\n \n .padding-bottom-40 {\n padding-bottom: 40px;\n }\n \n .padding-top-48 {\n padding-top: 48px;\n }\n \n .padding-left-48 {\n padding-left: 48px;\n }\n \n .padding-right-48 {\n padding-right: 48px;\n }\n \n .padding-bottom-48 {\n padding-bottom: 48px;\n }\n \n .padding-top-56 {\n padding-top: 56px;\n }\n \n .padding-left-56 {\n padding-left: 56px;\n }\n \n .padding-right-56 {\n padding-right: 56px;\n }\n \n .padding-bottom-56 {\n padding-bottom: 56px;\n }\n \n .padding-top-64 {\n padding-top: 64px;\n }\n \n .padding-left-64 {\n padding-left: 64px;\n }\n \n .padding-right-64 {\n padding-right: 64px;\n }\n \n .padding-bottom-64 {\n padding-bottom: 64px;\n }\n \n .padding-top-72 {\n padding-top: 72px;\n }\n \n .padding-left-72 {\n padding-left: 72px;\n }\n \n .padding-right-72 {\n padding-right: 72px;\n }\n \n .padding-bottom-72 {\n padding-bottom: 72px;\n }\n \n .padding-top-80 {\n padding-top: 80px;\n }\n \n .padding-left-80 {\n padding-left: 80px;\n }\n \n .padding-right-80 {\n padding-right: 80px;\n }\n \n .padding-bottom-80 {\n padding-bottom: 80px;\n }\n \n .padding-top-96 {\n padding-top: 96px;\n }\n \n .padding-left-96 {\n padding-left: 96px;\n }\n \n .padding-right-96 {\n padding-right: 96px;\n }\n \n .padding-bottom-96 {\n padding-bottom: 96px;\n }\n \n .padding-top-108 {\n padding-top: 108px;\n }\n \n .padding-left-108 {\n padding-left: 108px;\n }\n \n .padding-right-108 {\n padding-right: 108px;\n }\n \n .padding-bottom-108 {\n padding-bottom: 108px;\n }\n \n .margin-top-4 {\n margin-top: 4px;\n }\n \n .margin-left-4 {\n margin-left: 4px;\n }\n \n .margin-right-4 {\n margin-right: 4px;\n }\n \n .margin-bottom-4 {\n margin-bottom: 4px;\n }\n \n .margin-top-8 {\n margin-top: 8px;\n }\n \n .margin-left-8 {\n margin-left: 8px;\n }\n \n .margin-right-8 {\n margin-right: 8px;\n }\n \n .margin-bottom-8 {\n margin-bottom: 8px;\n }\n \n .margin-top-12 {\n margin-top: 12px;\n }\n \n .margin-left-12 {\n margin-left: 12px;\n }\n \n .margin-right-12 {\n margin-right: 12px;\n }\n \n .margin-bottom-12 {\n margin-bottom: 12px;\n }\n \n .margin-top-16 {\n margin-top: 16px;\n }\n \n .margin-left-16 {\n margin-left: 16px;\n }\n \n .margin-right-16 {\n margin-right: 16px;\n }\n \n .margin-bottom-16 {\n margin-bottom: 16px;\n }\n \n .margin-top-24 {\n margin-top: 24px;\n }\n \n .margin-left-24 {\n margin-left: 24px;\n }\n \n .margin-right-24 {\n margin-right: 24px;\n }\n \n .margin-bottom-24 {\n margin-bottom: 24px;\n }\n \n .margin-top-32 {\n margin-top: 32px;\n }\n \n .margin-left-32 {\n margin-left: 32px;\n }\n \n .margin-right-32 {\n margin-right: 32px;\n }\n \n .margin-bottom-32 {\n margin-bottom: 32px;\n }\n \n .margin-top-40 {\n margin-top: 40px;\n }\n \n .margin-left-40 {\n margin-left: 40px;\n }\n \n .margin-right-40 {\n margin-right: 40px;\n }\n \n .margin-bottom-40 {\n margin-bottom: 40px;\n }\n \n .margin-top-48 {\n margin-top: 48px;\n }\n \n .margin-left-48 {\n margin-left: 48px;\n }\n \n .margin-right-48 {\n margin-right: 48px;\n }\n \n .margin-bottom-48 {\n margin-bottom: 48px;\n }\n \n .margin-top-56 {\n margin-top: 56px;\n }\n \n .margin-left-56 {\n margin-left: 56px;\n }\n \n .margin-right-56 {\n margin-right: 56px;\n }\n \n .margin-bottom-56 {\n margin-bottom: 56px;\n }\n \n .margin-top-64 {\n margin-top: 64px;\n }\n \n .margin-left-64 {\n margin-left: 64px;\n }\n \n .margin-right-64 {\n margin-right: 64px;\n }\n \n .margin-bottom-64 {\n margin-bottom: 64px;\n }\n \n .margin-top-72 {\n margin-top: 72px;\n }\n \n .margin-left-72 {\n margin-left: 72px;\n }\n \n .margin-right-72 {\n margin-right: 72px;\n }\n \n .margin-bottom-72 {\n margin-bottom: 72px;\n }\n \n .margin-top-80 {\n margin-top: 80px;\n }\n \n .margin-left-80 {\n margin-left: 80px;\n }\n \n .margin-right-80 {\n margin-right: 80px;\n }\n \n .margin-bottom-80 {\n margin-bottom: 80px;\n }\n \n .margin-top-96 {\n margin-top: 96px;\n }\n \n .margin-left-96 {\n margin-left: 96px;\n }\n \n .margin-right-96 {\n margin-right: 96px;\n }\n \n .margin-bottom-96 {\n margin-bottom: 96px;\n }\n \n .margin-top-108 {\n margin-top: 108px;\n }\n \n .margin-left-108 {\n margin-left: 108px;\n }\n \n .margin-right-108 {\n margin-right: 108px;\n }\n \n .margin-bottom-108 {\n margin-bottom: 108px;\n } \n.spacing-4 {\n padding: 4px;\n}\n.spacing-8 {\n padding: 8px;\n }\n .spacing-12 {\n padding: 12px;\n }\n .spacing-16 {\n padding: 16px;\n }\n .spacing-24 {\n padding: 24px;\n }\n .spacing-32 {\n padding: 32px;\n }\n @media screen and (max-width: 1024px) {\n .padding-left-96, .padding-right-96, .padding-top-56, .padding-bottom-56{\n padding: 16px;\n }\n}\n"])));
|
|
11
11
|
var _default = exports.default = SpacingScales;
|
|
@@ -7,8 +7,8 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _TypographiesMap = _interopRequireDefault(require("./TypographiesMap"));
|
|
9
9
|
var _templateObject;
|
|
10
|
-
function _interopRequireDefault(
|
|
11
|
-
function _taggedTemplateLiteral(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
12
12
|
/*
|
|
13
13
|
? Keep this at the top level of the app using any of these components.
|
|
14
14
|
* Do not add any children to it because this element does NOT render any of its children
|
package/build/index.js
CHANGED
|
@@ -401,6 +401,12 @@ Object.defineProperty(exports, "NotesWidget", {
|
|
|
401
401
|
return _NotesWidget.default;
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
|
+
Object.defineProperty(exports, "PaymentAndConsent", {
|
|
405
|
+
enumerable: true,
|
|
406
|
+
get: function get() {
|
|
407
|
+
return _PaymentAndConsent.default;
|
|
408
|
+
}
|
|
409
|
+
});
|
|
404
410
|
Object.defineProperty(exports, "PincodeBaseLocation", {
|
|
405
411
|
enumerable: true,
|
|
406
412
|
get: function get() {
|
|
@@ -491,10 +497,10 @@ Object.defineProperty(exports, "TrackShipmentWidget", {
|
|
|
491
497
|
return _TrackShipmentWidget.default;
|
|
492
498
|
}
|
|
493
499
|
});
|
|
494
|
-
Object.defineProperty(exports, "
|
|
500
|
+
Object.defineProperty(exports, "TrackShipmentWidgetList", {
|
|
495
501
|
enumerable: true,
|
|
496
502
|
get: function get() {
|
|
497
|
-
return
|
|
503
|
+
return _TrackShipmentWidgetList.default;
|
|
498
504
|
}
|
|
499
505
|
});
|
|
500
506
|
Object.defineProperty(exports, "Typographies", {
|
|
@@ -616,6 +622,7 @@ var _SparePartsWidget = _interopRequireDefault(require("./widgets/oa-widget-spar
|
|
|
616
622
|
var _SparePartsCollapseWidget = _interopRequireDefault(require("./widgets/oa-widget-spare-part/SparePartsCollapseWidget"));
|
|
617
623
|
var _StageTimelineWidget = _interopRequireWildcard(require("./widgets/oa-widget-stage-timeline/StageTimelineWidget"));
|
|
618
624
|
var _TrackShipmentWidget = _interopRequireDefault(require("./widgets/oa-widget-track-shipment/TrackShipmentWidget"));
|
|
625
|
+
var _TrackShipmentWidgetList = _interopRequireDefault(require("./widgets/oa-widget-track-shipment-list/TrackShipmentWidgetList"));
|
|
619
626
|
var _UploadDownloadWidget = _interopRequireDefault(require("./widgets/oa-widget-upload-download/UploadDownloadWidget"));
|
|
620
627
|
var _ViewHistoryWidget = _interopRequireDefault(require("./widgets/oa-widget-view-history/ViewHistoryWidget"));
|
|
621
628
|
var _ViewPreviousDescriptionWidget = _interopRequireDefault(require("./widgets/oa-widget-view-previous-description/ViewPreviousDescriptionWidget"));
|
|
@@ -636,9 +643,9 @@ var _Preview = _interopRequireDefault(require("./widgets/oa-widget-preview/Previ
|
|
|
636
643
|
var _PincodeBaseLocation = _interopRequireDefault(require("./widgets/oa-widget-pincode-base-location/PincodeBaseLocation"));
|
|
637
644
|
var _MapBaseLocation = _interopRequireDefault(require("./widgets/oa-widget-map-base-location/MapBaseLocation"));
|
|
638
645
|
var _CustomTimeline2 = _interopRequireDefault(require("./dev/oa-component-timeline/CustomTimeline"));
|
|
639
|
-
var _TrackShipmentWidget2 = _interopRequireDefault(require("./dev/oa-widget-track-shipment/TrackShipmentWidget"));
|
|
640
646
|
var _DocUploadCardWidget2 = _interopRequireDefault(require("./dev/oa-widget-document-upload-card/DocUploadCardWidget"));
|
|
641
647
|
var _CustomUpload2 = _interopRequireDefault(require("./dev/oa-component-upload/CustomUpload"));
|
|
648
|
+
var _PaymentAndConsent = _interopRequireDefault(require("./layout/paymentAndConsent/PaymentAndConsent"));
|
|
642
649
|
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); }
|
|
643
|
-
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 &&
|
|
644
|
-
function _interopRequireDefault(
|
|
650
|
+
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; }
|
|
651
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -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;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 _Typography = _interopRequireDefault(require("../../components/oa-component-typography/Typography"));
|
|
9
|
+
var _utils = require("../../utils");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
function DetailsList(props) {
|
|
12
|
+
const {
|
|
13
|
+
detail
|
|
14
|
+
} = props !== null && props !== void 0 ? props : {};
|
|
15
|
+
const {
|
|
16
|
+
title,
|
|
17
|
+
list,
|
|
18
|
+
className
|
|
19
|
+
} = detail !== null && detail !== void 0 ? detail : {};
|
|
20
|
+
if (!(detail !== null && detail !== void 0 && detail.showDetail)) return null;
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, title && /*#__PURE__*/_react.default.createElement("div", {
|
|
22
|
+
className: "".concat(className)
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
24
|
+
color: "primary-content",
|
|
25
|
+
className: "type-sl1-700"
|
|
26
|
+
}, title)), /*#__PURE__*/_react.default.createElement("ul", {
|
|
27
|
+
className: "listofDetails"
|
|
28
|
+
}, list === null || list === void 0 ? void 0 : list.map((_ref, index) => {
|
|
29
|
+
let {
|
|
30
|
+
label,
|
|
31
|
+
value
|
|
32
|
+
} = _ref;
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
34
|
+
key: (0, _utils.getUUID)()
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement("p", null, label), /*#__PURE__*/_react.default.createElement("span", null, value));
|
|
36
|
+
})));
|
|
37
|
+
}
|
|
38
|
+
var _default = exports.default = DetailsList;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
+
function Header(props) {
|
|
10
|
+
const {
|
|
11
|
+
header
|
|
12
|
+
} = props !== null && props !== void 0 ? props : {};
|
|
13
|
+
const {
|
|
14
|
+
logo
|
|
15
|
+
} = header !== null && header !== void 0 ? header : {};
|
|
16
|
+
const {
|
|
17
|
+
image
|
|
18
|
+
} = logo !== null && logo !== void 0 ? logo : {};
|
|
19
|
+
const {
|
|
20
|
+
src,
|
|
21
|
+
alt
|
|
22
|
+
} = image !== null && image !== void 0 ? image : {};
|
|
23
|
+
if (!(header !== null && header !== void 0 && header.showHeader)) return null;
|
|
24
|
+
return src && /*#__PURE__*/_react.default.createElement("div", {
|
|
25
|
+
className: "header"
|
|
26
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
+
className: "container"
|
|
28
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
29
|
+
src: src,
|
|
30
|
+
alt: alt
|
|
31
|
+
})));
|
|
32
|
+
}
|
|
33
|
+
var _default = exports.default = Header;
|
|
@@ -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 InProgressScreen(props) {
|
|
12
|
+
const {
|
|
13
|
+
inProgressScreen
|
|
14
|
+
} = props !== null && props !== void 0 ? props : {};
|
|
15
|
+
const {
|
|
16
|
+
image,
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
subDescription
|
|
20
|
+
} = inProgressScreen !== null && inProgressScreen !== void 0 ? inProgressScreen : {};
|
|
21
|
+
const {
|
|
22
|
+
src,
|
|
23
|
+
alt
|
|
24
|
+
} = image !== null && image !== void 0 ? image : {};
|
|
25
|
+
if (!(inProgressScreen !== null && inProgressScreen !== void 0 && inProgressScreen.showInProgressScreen)) 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 = InProgressScreen;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 _CustomLoader = _interopRequireDefault(require("../../components/oa-component-loader/CustomLoader"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
+
function Loader(props) {
|
|
11
|
+
const {
|
|
12
|
+
showLoader
|
|
13
|
+
} = props !== null && props !== void 0 ? props : {};
|
|
14
|
+
if (!showLoader) return null;
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
16
|
+
className: "loader-container-dashboard"
|
|
17
|
+
}, /*#__PURE__*/_react.default.createElement(_CustomLoader.default, {
|
|
18
|
+
spinning: true
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
var _default = exports.default = Loader;
|