oa-componentbook 1.0.1-stage.35 → 1.0.1-stage.351

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 (136) hide show
  1. package/build/components/oa-component-accordion/Accordion.js +16 -5
  2. package/build/components/oa-component-checkbox/CustomCheckBox.js +20 -17
  3. package/build/components/oa-component-checkbox/styles.js +1 -1
  4. package/build/components/oa-component-datepicker/CustomDatePicker.js +25 -22
  5. package/build/components/oa-component-drawer/CustomDrawer.js +2 -0
  6. package/build/components/oa-component-dropdown/CustomDropdown.js +16 -4
  7. package/build/components/oa-component-info/CustomInfo.js +9 -4
  8. package/build/components/oa-component-info/styles.js +3 -3
  9. package/build/components/oa-component-modal/styles.js +3 -2
  10. package/build/components/oa-component-pagination/CustomPagination.js +111 -0
  11. package/build/components/oa-component-pagination/styles.js +12 -0
  12. package/build/components/oa-component-select/CustomSelect.js +116 -56
  13. package/build/components/oa-component-steps/CustomSteps.js +117 -0
  14. package/build/components/oa-component-steps/styles.js +12 -0
  15. package/build/components/oa-component-table/CustomTable.js +28 -5
  16. package/build/components/oa-component-table/CustomTableV1.js +520 -0
  17. package/build/components/oa-component-table/styles.js +1 -1
  18. package/build/components/oa-component-table/stylesV1.js +19 -0
  19. package/build/components/oa-component-tabs/CustomTabs.js +1 -1
  20. package/build/components/oa-component-tag/CustomTag.js +17 -5
  21. package/build/components/oa-component-tag/styles.js +30 -3
  22. package/build/components/oa-component-textarea/{TextArea.js → CustomTextArea.js} +4 -4
  23. package/build/components/oa-component-tooltip/CustomTooltip.js +8 -4
  24. package/build/components/oa-component-upload/CustomUpload.js +120 -40
  25. package/build/components/oa-component-viewer/CustomViewer.js +3 -1
  26. package/build/dev/oa-component-document-viewer/CustomDocumentViewer.js +367 -0
  27. package/build/dev/oa-component-document-viewer/styles.js +12 -0
  28. package/build/dev/oa-component-upload/CustomUpload.js +3 -0
  29. package/build/dev/oa-widget-document-modal/DocumentSideModal.js +166 -0
  30. package/build/dev/oa-widget-document-modal/styles.js +12 -0
  31. package/build/dev/oa-widget-document-side-drawer/DocumentSideDrawer.js +196 -0
  32. package/build/dev/oa-widget-document-side-drawer/styles.js +12 -0
  33. package/build/global-css/GlobalCss.js +2 -1
  34. package/build/global-css/GridLayout.js +1 -1
  35. package/build/global-css/commonStyles.js +11 -0
  36. package/build/images/Car.png +0 -0
  37. package/build/images/TwoWheeler.png +0 -0
  38. package/build/images/astronaut_emptystate.png +0 -0
  39. package/build/images/exportGrp01.png +0 -0
  40. package/build/images/exportGrp02.png +0 -0
  41. package/build/images/exportGrp03.png +0 -0
  42. package/build/images/outOfStock.png +0 -0
  43. package/build/index.js +110 -5
  44. package/build/layout/DetailDataLayout/DetailDataLayout.js +20 -0
  45. package/build/layout/DetailDataLayout/components/Form.js +22 -0
  46. package/build/layout/DetailDataLayout/components/Header.js +32 -0
  47. package/build/layout/DetailDataLayout/style.css +9 -0
  48. package/build/layout/DetailDataLayout/styles.js +12 -0
  49. package/build/layout/GenricLayOut/GenricLayOut.js +2185 -0
  50. package/build/layout/GenricLayOut/components/AppliedFilters.js +84 -0
  51. package/build/layout/GenricLayOut/components/CardList.js +34 -0
  52. package/build/layout/GenricLayOut/components/DropdownSearch.js +48 -0
  53. package/build/layout/GenricLayOut/components/Header.js +74 -0
  54. package/build/layout/GenricLayOut/components/Modal.js +85 -0
  55. package/build/layout/GenricLayOut/components/Search.js +51 -0
  56. package/build/layout/GenricLayOut/components/StaticFilter.css +73 -0
  57. package/build/layout/GenricLayOut/components/StaticFilter.js +37 -0
  58. package/build/layout/GenricLayOut/reducer/layoutReducer.js +290 -0
  59. package/build/layout/GenricLayOut/resolver/staticConfigResolver.js +98 -0
  60. package/build/layout/GenricLayOut/styles.js +22 -0
  61. package/build/layout/paymentAndConsent/CancelScreen.js +46 -0
  62. package/build/layout/paymentAndConsent/ConsentCard.js +68 -0
  63. package/build/layout/paymentAndConsent/DetailsCard.js +75 -0
  64. package/build/layout/paymentAndConsent/DetailsList.js +38 -0
  65. package/build/layout/paymentAndConsent/Header.js +33 -0
  66. package/build/layout/paymentAndConsent/InProgressScreen.js +46 -0
  67. package/build/layout/paymentAndConsent/Loader.js +21 -0
  68. package/build/layout/paymentAndConsent/Modal.js +28 -0
  69. package/build/layout/paymentAndConsent/PaymentAndConsent.js +22 -0
  70. package/build/layout/paymentAndConsent/PaymentCard.js +83 -0
  71. package/build/layout/paymentAndConsent/Section.js +34 -0
  72. package/build/layout/paymentAndConsent/SuccessScreen.js +46 -0
  73. package/build/layout/paymentAndConsent/TimeLineCard.js +28 -0
  74. package/build/layout/paymentAndConsent/TncList.js +32 -0
  75. package/build/layout/paymentAndConsent/style.js +12 -0
  76. package/build/utils/download-file.js +23 -0
  77. package/build/widgets/oa-form-widget/FormWidget.js +487 -0
  78. package/build/widgets/oa-form-widget/FormWidgetStyle.js +18 -0
  79. package/build/widgets/oa-widget-add-spare-part/AddSparePartCollapseWidget.js +73 -12
  80. package/build/widgets/oa-widget-add-spare-part/AddSparePartWidget.js +51 -7
  81. package/build/widgets/oa-widget-address/AddressWidget.js +12 -17
  82. package/build/widgets/oa-widget-approval/ApprovalWidgetNew.js +481 -0
  83. package/build/widgets/oa-widget-approval/styles.js +2 -2
  84. package/build/widgets/oa-widget-chat/ChatWidget.js +5 -5
  85. package/build/widgets/oa-widget-close-claim/CloseClaimWidget.js +17 -5
  86. package/build/widgets/oa-widget-collapsible-key-value/CollapsibleKeyValueWidget.js +399 -0
  87. package/build/widgets/oa-widget-collapsible-key-value/styles.js +16 -0
  88. package/build/widgets/oa-widget-content-panel/ContentPanel.js +82 -0
  89. package/build/widgets/oa-widget-content-panel/styles.js +12 -0
  90. package/build/widgets/oa-widget-customer-rating-card/CustomerRatingCard.js +5 -5
  91. package/build/widgets/oa-widget-detailcard/styles.js +1 -1
  92. package/build/widgets/oa-widget-document-upload/DocUploadWidget.js +6 -9
  93. package/build/widgets/oa-widget-dropdown-search-input/DropdownSearchInput.js +56 -19
  94. package/build/widgets/oa-widget-dropdown-search-input/styles.js +1 -1
  95. package/build/widgets/oa-widget-guide/GuideWidget.js +70 -0
  96. package/build/widgets/oa-widget-guide/GuideWidgetStyle.js +12 -0
  97. package/build/widgets/oa-widget-hub-automation-modal/HubAutomationDeleteBiker.js +24 -0
  98. package/build/widgets/oa-widget-hub-automation-modal/HubAutomationModal.js +34 -0
  99. package/build/widgets/oa-widget-hub-automation-modal/HubAutomationModalStyle.js +13 -0
  100. package/build/widgets/oa-widget-image-carousel/ImageCarouselWidget.js +257 -0
  101. package/build/widgets/oa-widget-image-carousel/styles.js +23 -0
  102. package/build/widgets/oa-widget-image-gallery/FullscreenViewer.js +169 -0
  103. package/build/widgets/oa-widget-image-gallery/ImageGallery.js +87 -0
  104. package/build/widgets/oa-widget-image-gallery/ThumbnailGrid.js +146 -0
  105. package/build/widgets/oa-widget-image-gallery/imageCache.js +15 -0
  106. package/build/widgets/oa-widget-image-gallery/imageGalleryStyle.js +16 -0
  107. package/build/widgets/oa-widget-item-info-card/InfoCardListWidget.js +60 -0
  108. package/build/widgets/oa-widget-item-info-card/ItemInfoCardWidget.js +77 -0
  109. package/build/widgets/oa-widget-item-info-card/styles.css +50 -0
  110. package/build/widgets/oa-widget-item-info-card/styles.js +14 -0
  111. package/build/widgets/oa-widget-key-value/KeyValueWidget.js +37 -10
  112. package/build/widgets/oa-widget-kpi/KPICardWidget.js +86 -0
  113. package/build/widgets/oa-widget-kpi/styles.js +12 -0
  114. package/build/widgets/oa-widget-map-base-location/AddressDetails.js +21 -7
  115. package/build/widgets/oa-widget-map-base-location/AddressForm.js +32 -5
  116. package/build/widgets/oa-widget-map-base-location/MapBaseLocation.js +9 -3
  117. package/build/widgets/oa-widget-map-base-location/MapComponent.js +17 -2
  118. package/build/widgets/oa-widget-membershipcard/MembershipCard.js +14 -3
  119. package/build/widgets/oa-widget-membershipcard/styles.js +1 -1
  120. package/build/widgets/oa-widget-notes/NotesWidget.js +2 -1
  121. package/build/widgets/oa-widget-progressive-steps/ProgressiveStepsWidget.js +396 -0
  122. package/build/widgets/oa-widget-progressive-steps/styles.js +12 -0
  123. package/build/widgets/oa-widget-reimbursement-breakup/ReimbursementBreakupWidget.js +18 -9
  124. package/build/widgets/oa-widget-reimbursement-breakup/styles.js +1 -1
  125. package/build/widgets/oa-widget-reupload-drawer/ReUploadDrawer.js +164 -0
  126. package/build/widgets/oa-widget-sidebar/SidebarWidget.js +87 -0
  127. package/build/widgets/oa-widget-sidebar/components/Header.js +30 -0
  128. package/build/widgets/oa-widget-sidebar/sidebar.css +0 -0
  129. package/build/widgets/oa-widget-sidebar/styles.js +12 -0
  130. package/build/widgets/oa-widget-spare-part/SparePartsWidget.js +57 -29
  131. package/build/widgets/oa-widget-track-shipment/TrackShipmentWidget.js +28 -6
  132. package/build/widgets/oa-widget-track-shipment-list/TrackShipmentWidgetList.js +103 -0
  133. package/build/widgets/oa-widget-track-shipment-list/fn.js +81 -0
  134. package/package.json +4 -2
  135. package/build/dev/oa-widget-track-shipment/TrackShipmentWidget.js +0 -195
  136. /package/build/{dev/oa-widget-track-shipment → widgets/oa-widget-track-shipment-list}/styles.js +0 -0
@@ -0,0 +1,487 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.symbol.description.js");
4
+ require("core-js/modules/es.object.assign.js");
5
+ require("core-js/modules/es.weak-map.js");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.default = FormWidget;
10
+ require("core-js/modules/web.dom-collections.iterator.js");
11
+ require("core-js/modules/es.array.includes.js");
12
+ require("core-js/modules/es.string.includes.js");
13
+ var _antd = require("antd");
14
+ var _react = _interopRequireWildcard(require("react"));
15
+ var _CustomButton = _interopRequireDefault(require("../../components/oa-component-button/CustomButton"));
16
+ var _CustomDatePicker = _interopRequireDefault(require("../../components/oa-component-datepicker/CustomDatePicker"));
17
+ var _CustomInput = _interopRequireDefault(require("../../components/oa-component-input/CustomInput"));
18
+ var _CustomSelect = _interopRequireDefault(require("../../components/oa-component-select/CustomSelect"));
19
+ var _CustomTextArea = _interopRequireDefault(require("../../components/oa-component-textarea/CustomTextArea"));
20
+ var _Typography = _interopRequireDefault(require("../../components/oa-component-typography/Typography"));
21
+ var _CustomUpload = _interopRequireDefault(require("../../components/oa-component-upload/CustomUpload"));
22
+ var _ColorVariablesMap = _interopRequireDefault(require("../../global-css/ColorVariablesMap"));
23
+ var _ItemInfoCardWidget = _interopRequireDefault(require("../oa-widget-item-info-card/ItemInfoCardWidget"));
24
+ var _KeyValueWidget = _interopRequireDefault(require("../oa-widget-key-value/KeyValueWidget"));
25
+ var _CustomCheckBox = _interopRequireDefault(require("../../components/oa-component-checkbox/CustomCheckBox"));
26
+ var _CustomRadio = _interopRequireDefault(require("../../components/oa-component-radio/CustomRadio"));
27
+ var _FormWidgetStyle = require("./FormWidgetStyle");
28
+ var _styles = require("../../layout/GenricLayOut/styles");
29
+ var _CustomTag = _interopRequireDefault(require("../../components/oa-component-tag/CustomTag"));
30
+ var _CustomInfo = _interopRequireDefault(require("../../components/oa-component-info/CustomInfo"));
31
+ var _MaterialIcon = _interopRequireDefault(require("../../components/oa-component-icons/MaterialIcon"));
32
+ var _CustomTooltip = _interopRequireDefault(require("../../components/oa-component-tooltip/CustomTooltip"));
33
+ var _InfoOutlined = _interopRequireDefault(require("@material-ui/icons/InfoOutlined"));
34
+ var _InfoRounded = _interopRequireDefault(require("@material-ui/icons/InfoRounded"));
35
+ var _CollapsibleKeyValueWidget = _interopRequireDefault(require("../oa-widget-collapsible-key-value/CollapsibleKeyValueWidget"));
36
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
37
+ 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); }
38
+ 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; }
39
+ 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); }
40
+ 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; }
41
+ 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; }
42
+ 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; }
43
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
44
+ 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 */
45
+ function FormWidget(props) {
46
+ var _cancel$type, _cancel$size, _clear$type, _clear$size, _submit$type;
47
+ const [form] = _antd.Form.useForm();
48
+ const [dynamicRules, setDynamicRules] = (0, _react.useState)({});
49
+ const {
50
+ groups,
51
+ cta,
52
+ handleDrawerFormOnFinish,
53
+ downloadFileOnS3,
54
+ generateS3Url,
55
+ uploadOnS3,
56
+ handleCollapsibleKeyData
57
+ } = props;
58
+ const {
59
+ cancel,
60
+ submit,
61
+ visible,
62
+ clear
63
+ } = cta !== null && cta !== void 0 ? cta : {};
64
+ const getFieldRules = item => {
65
+ return dynamicRules[item === null || item === void 0 ? void 0 : item.name] || (item === null || item === void 0 ? void 0 : item.rules) || [];
66
+ };
67
+ const getInputRules = (itemData, item) => {
68
+ var _ref;
69
+ if (itemData !== null && itemData !== void 0 && itemData.customRules) {
70
+ for (const key in itemData === null || itemData === void 0 ? void 0 : itemData.customRules) {
71
+ if (item[key]) {
72
+ var _itemData$customRules;
73
+ return itemData === null || itemData === void 0 || (_itemData$customRules = itemData.customRules[key]) === null || _itemData$customRules === void 0 ? void 0 : _itemData$customRules.map(r => (r === null || r === void 0 ? void 0 : r.checkValidator) && (r === null || r === void 0 ? void 0 : r.rule));
74
+ }
75
+ }
76
+ }
77
+ return (_ref = itemData || item) === null || _ref === void 0 || (_ref = _ref.rules) === null || _ref === void 0 ? void 0 : _ref.map(r => (r === null || r === void 0 ? void 0 : r.checkValidator) && (r === null || r === void 0 ? void 0 : r.rule));
78
+ };
79
+ const handleDynamicRuleUpdate = (fieldName, value, dynamicRulesConfig) => {
80
+ if (!dynamicRulesConfig) return;
81
+ Object.entries(dynamicRulesConfig).forEach(_ref2 => {
82
+ var _config$conditions;
83
+ let [targetField, config] = _ref2;
84
+ const condition = (_config$conditions = config.conditions) === null || _config$conditions === void 0 ? void 0 : _config$conditions.find(c => c.type === "equals" ? value == c.value : c.type == "not_equals" ? value != c.value : c.type == "includes" ? value === null || value === void 0 ? void 0 : value.includes(c.value) : c.validator ? c.validator(value) : false);
85
+ const newRules = condition ? condition.rules : config.defaultRules || [];
86
+ setDynamicRules(prev => _objectSpread(_objectSpread({}, prev), {}, {
87
+ [targetField]: newRules
88
+ }));
89
+ if (condition !== null && condition !== void 0 && condition.clearField) {
90
+ form.setFieldsValue({
91
+ [targetField]: undefined
92
+ });
93
+ }
94
+ });
95
+ };
96
+ const dynamicClassInCaseOfUpload = item => {
97
+ if ((item === null || item === void 0 ? void 0 : item.width) === "full") {
98
+ return "cstUplaodWithFullWidth";
99
+ } else if (item !== null && item !== void 0 && item.heading) {
100
+ if ((item === null || item === void 0 ? void 0 : item.headingVariant) === "top") return "cstUplaodWithTextTop";
101
+ return "cstUplaodWithText";
102
+ }
103
+ };
104
+ const renderLabelWithTooltip = (label, tooltip) => {
105
+ if (!tooltip) return label;
106
+ return /*#__PURE__*/_react.default.createElement(_FormWidgetStyle.TooltipLabel, null, /*#__PURE__*/_react.default.createElement("span", null, label), /*#__PURE__*/_react.default.createElement(_CustomTooltip.default, {
107
+ title: tooltip,
108
+ placement: "top"
109
+ }, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
110
+ color: "primary-content",
111
+ size: 20,
112
+ icon: _InfoRounded.default
113
+ })));
114
+ };
115
+ const renderFieldWidget = (item, index, itemData) => {
116
+ if ((item === null || item === void 0 ? void 0 : item.widget) === "date" && (item === null || item === void 0 ? void 0 : item.visible) !== false) {
117
+ var _item$props, _item$props$getDisabl;
118
+ return /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
119
+ value: item === null || item === void 0 ? void 0 : item.value,
120
+ name: item === null || item === void 0 ? void 0 : item.name,
121
+ label: item === null || item === void 0 ? void 0 : item.label,
122
+ rules: item === null || item === void 0 ? void 0 : item.rules,
123
+ extra: item === null || item === void 0 ? void 0 : item.helpText,
124
+ initialValue: item === null || item === void 0 ? void 0 : item.defaultValue
125
+ }, /*#__PURE__*/_react.default.createElement(_CustomDatePicker.default, _extends({
126
+ style: {
127
+ width: "100%"
128
+ },
129
+ disabledDateFunction: item === null || item === void 0 || (_item$props = item.props) === null || _item$props === void 0 || (_item$props$getDisabl = _item$props.getDisabledDateLogic) === null || _item$props$getDisabl === void 0 ? void 0 : _item$props$getDisabl.call(_item$props, item.valueProp),
130
+ defaultValue: item.defaultValue
131
+ }, item === null || item === void 0 ? void 0 : item.props)));
132
+ }
133
+ if ((item === null || item === void 0 ? void 0 : item.widget) === "select" && (item === null || item === void 0 ? void 0 : item.visible) !== false) {
134
+ var _item$disabled, _item$showSearch, _item$optionLabelProp;
135
+ return /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
136
+ name: item === null || item === void 0 ? void 0 : item.name,
137
+ label: item === null || item === void 0 ? void 0 : item.label,
138
+ rules: item === null || item === void 0 ? void 0 : item.rules,
139
+ initialValue: item.defaultValueRequired ? item === null || item === void 0 ? void 0 : item.defaultValue : undefined
140
+ }, /*#__PURE__*/_react.default.createElement(_CustomSelect.default, _extends({
141
+ options: item === null || item === void 0 ? void 0 : item.value,
142
+ placeholder: item === null || item === void 0 ? void 0 : item.placeholder,
143
+ defaultValue: item.defaultValueRequired && (item === null || item === void 0 ? void 0 : item.defaultValue) !== "" ? item === null || item === void 0 ? void 0 : item.defaultValue : undefined,
144
+ disabled: (_item$disabled = item.disabled) !== null && _item$disabled !== void 0 ? _item$disabled : false
145
+ }, (item === null || item === void 0 ? void 0 : item.onChange) && {
146
+ onChange: value => {
147
+ // Call the original onChange if provided
148
+ if (item.onChange) {
149
+ item.onChange(value);
150
+ }
151
+
152
+ // Handle dynamic rule updates using generic approach
153
+ if (item.dynamicRules) {
154
+ handleDynamicRuleUpdate(item.name, value, item.dynamicRules);
155
+ }
156
+ }
157
+ }, {
158
+ onCustomSelect: arg => {
159
+ if (typeof (props === null || props === void 0 ? void 0 : props.onSelectHandlers) === "function") {
160
+ props.onSelectHandlers(arg, item === null || item === void 0 ? void 0 : item.key, item === null || item === void 0 ? void 0 : item.action);
161
+ }
162
+ },
163
+ showSearch: (_item$showSearch = item === null || item === void 0 ? void 0 : item.showSearch) !== null && _item$showSearch !== void 0 ? _item$showSearch : false,
164
+ filterOption: (input, option) => {
165
+ var _toLowerCase, _ref3, _option$label$props$t, _option$label, _input$toLowerCase;
166
+ return (_toLowerCase = (_ref3 = (_option$label$props$t = option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 || (_option$label = _option$label.props) === null || _option$label === void 0 ? void 0 : _option$label.title) !== null && _option$label$props$t !== void 0 ? _option$label$props$t : "").toLowerCase) === null || _toLowerCase === void 0 || (_toLowerCase = _toLowerCase.call(_ref3)) === null || _toLowerCase === void 0 ? void 0 : _toLowerCase.includes(input === null || input === void 0 || (_input$toLowerCase = input.toLowerCase) === null || _input$toLowerCase === void 0 ? void 0 : _input$toLowerCase.call(input));
167
+ }
168
+ }, item.optionLabelProp && {
169
+ optionLabelProp: (_item$optionLabelProp = item === null || item === void 0 ? void 0 : item.optionLabelProp) !== null && _item$optionLabelProp !== void 0 ? _item$optionLabelProp : ""
170
+ })));
171
+ }
172
+ if ((item === null || item === void 0 ? void 0 : item.widget) === "textArea") {
173
+ return /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
174
+ name: item === null || item === void 0 ? void 0 : item.name,
175
+ label: item === null || item === void 0 ? void 0 : item.label,
176
+ rules: item === null || item === void 0 ? void 0 : item.rules
177
+ }, /*#__PURE__*/_react.default.createElement(_CustomTextArea.default, {
178
+ rows: 4,
179
+ placeholder: item === null || item === void 0 ? void 0 : item.placeholder
180
+ }));
181
+ }
182
+ if ((item === null || item === void 0 ? void 0 : item.widget) === "radio" && (item === null || item === void 0 ? void 0 : item.visible) !== false) {
183
+ return /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
184
+ name: item === null || item === void 0 ? void 0 : item.name,
185
+ initialValue: item === null || item === void 0 ? void 0 : item.defaultValue,
186
+ label: item === null || item === void 0 ? void 0 : item.label,
187
+ rules: item === null || item === void 0 ? void 0 : item.rules
188
+ }, /*#__PURE__*/_react.default.createElement(_CustomRadio.default.Group, {
189
+ defaultValue: item.defaultValue
190
+ }, item === null || item === void 0 ? void 0 : item.value.map(v => /*#__PURE__*/_react.default.createElement(_CustomRadio.default, {
191
+ value: v.value,
192
+ label: v.label
193
+ }))));
194
+ }
195
+ if ((item === null || item === void 0 ? void 0 : item.widget) === "input") {
196
+ return /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
197
+ name: "".concat(item === null || item === void 0 ? void 0 : item.name).concat(index ? index : ""),
198
+ label: renderLabelWithTooltip(item === null || item === void 0 ? void 0 : item.label, item === null || item === void 0 ? void 0 : item.tooltip),
199
+ rules: getInputRules(itemData, item),
200
+ extra: item === null || item === void 0 ? void 0 : item.helpText,
201
+ initialValue: item === null || item === void 0 ? void 0 : item.value
202
+ }, /*#__PURE__*/_react.default.createElement(_CustomInput.default, _extends({}, item === null || item === void 0 ? void 0 : item.props, {
203
+ placeholder: item === null || item === void 0 ? void 0 : item.placeholder,
204
+ onInput: e => {
205
+ var _item$validateInput;
206
+ return item === null || item === void 0 || (_item$validateInput = item.validateInput) === null || _item$validateInput === void 0 ? void 0 : _item$validateInput.call(item, e, 10);
207
+ },
208
+ prefix: item === null || item === void 0 ? void 0 : item.prefix
209
+ })));
210
+ }
211
+ if ((item === null || item === void 0 ? void 0 : item.widget) === "checkbox") {
212
+ var _item$rules, _item$className;
213
+ return /*#__PURE__*/_react.default.createElement(_FormWidgetStyle.BgColorCheckBox, null, /*#__PURE__*/_react.default.createElement(_antd.Form.Item, {
214
+ name: "".concat(item === null || item === void 0 ? void 0 : item.name).concat(index ? index : ""),
215
+ rules: item === null || item === void 0 || (_item$rules = item.rules) === null || _item$rules === void 0 ? void 0 : _item$rules.map(r => (r === null || r === void 0 ? void 0 : r.checkValidator) && (r === null || r === void 0 ? void 0 : r.rule)).filter(Boolean),
216
+ valuePropName: "checked",
217
+ initialValue: item === null || item === void 0 ? void 0 : item.checked
218
+ }, /*#__PURE__*/_react.default.createElement(_CustomCheckBox.default, {
219
+ size: "large",
220
+ label: item === null || item === void 0 ? void 0 : item.label,
221
+ className: (_item$className = item === null || item === void 0 ? void 0 : item.className) !== null && _item$className !== void 0 ? _item$className : ""
222
+ })));
223
+ }
224
+ const handleS3Response = (res, fieldName) => {
225
+ var _res$data;
226
+ const docId = res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.uuid;
227
+ if (docId != null) {
228
+ form.setFieldsValue({
229
+ [fieldName]: docId
230
+ });
231
+ }
232
+ };
233
+ if (item.widget === "upload") {
234
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
235
+ className: dynamicClassInCaseOfUpload(item)
236
+ }, " ", /*#__PURE__*/_react.default.createElement(_CustomUpload.default, _extends({
237
+ label: (item === null || item === void 0 ? void 0 : item.heading) && /*#__PURE__*/_react.default.createElement(_Typography.default, {
238
+ color: "primary-content",
239
+ typography: item !== null && item !== void 0 && item.headingTypography ? item === null || item === void 0 ? void 0 : item.headingTypography : "type-t2-700"
240
+ }, item === null || item === void 0 ? void 0 : item.heading),
241
+ isS3Upload: true,
242
+ form: form,
243
+ generateS3Url: generateS3Url,
244
+ uploadOnS3: uploadOnS3,
245
+ formName: item === null || item === void 0 ? void 0 : item.name,
246
+ formRules: item === null || item === void 0 ? void 0 : item.rules,
247
+ allowedMediaType: item === null || item === void 0 ? void 0 : item.allowedMediaType,
248
+ maxAllowedSize: item === null || item === void 0 ? void 0 : item.maxAllowedSize,
249
+ downloadCallback: downloadFileOnS3,
250
+ beforeUploadFileValidations: item === null || item === void 0 ? void 0 : item.beforeUploadFileValidations,
251
+ s3ResponseReturn: res => handleS3Response(res, item.name)
252
+ }, item === null || item === void 0 ? void 0 : item.uploadProps))));
253
+ }
254
+ };
255
+ const renderWidget = item => {
256
+ var _item$value, _item$value2, _item$value2$map, _item$value3, _item$value4, _item$value5, _item$value6, _item$iconConfig, _item$subType, _item$disabled2;
257
+ switch (item === null || item === void 0 ? void 0 : item.type) {
258
+ case "simpleList":
259
+ if ((item === null || item === void 0 || (_item$value = item.value) === null || _item$value === void 0 ? void 0 : _item$value.length) === 0) return null;
260
+ return /*#__PURE__*/_react.default.createElement(_styles.ListofDamageParts, null, /*#__PURE__*/_react.default.createElement("ul", {
261
+ className: "damagedParts"
262
+ }, item === null || item === void 0 || (_item$value2 = item.value) === null || _item$value2 === void 0 || (_item$value2$map = _item$value2.map) === null || _item$value2$map === void 0 ? void 0 : _item$value2$map.call(_item$value2, v => /*#__PURE__*/_react.default.createElement("li", {
263
+ key: v
264
+ }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
265
+ color: "secondary-content",
266
+ typography: "type-b2-400"
267
+ }, v)))));
268
+ case "questionAnsList":
269
+ if ((item === null || item === void 0 || (_item$value3 = item.value) === null || _item$value3 === void 0 ? void 0 : _item$value3.length) === 0) return null;
270
+ return /*#__PURE__*/_react.default.createElement(_styles.IncidentListParts, null, /*#__PURE__*/_react.default.createElement("div", {
271
+ className: "qaSec"
272
+ }, /*#__PURE__*/_react.default.createElement("dl", null, item === null || item === void 0 || (_item$value4 = item.value) === null || _item$value4 === void 0 ? void 0 : _item$value4.map(v => /*#__PURE__*/_react.default.createElement("dt", {
273
+ key: v === null || v === void 0 ? void 0 : v.question
274
+ }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
275
+ color: "premary-content",
276
+ typography: "type-t2-700"
277
+ }, v === null || v === void 0 ? void 0 : v.question), /*#__PURE__*/_react.default.createElement("div", {
278
+ className: "margin-top-4"
279
+ }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
280
+ color: "premary-content",
281
+ typography: "type-b2-400"
282
+ }, v === null || v === void 0 ? void 0 : v.answer)))))));
283
+ case "infoCardWithInput":
284
+ return item === null || item === void 0 || (_item$value5 = item.value) === null || _item$value5 === void 0 ? void 0 : _item$value5.map((value, i) => {
285
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ItemInfoCardWidget.default, _extends({
286
+ key: i
287
+ }, value)), (value === null || value === void 0 ? void 0 : value.field) && renderFieldWidget(value === null || value === void 0 ? void 0 : value.field, i, item));
288
+ });
289
+ case "infoCard":
290
+ return Array.isArray(item === null || item === void 0 ? void 0 : item.value) && (item === null || item === void 0 || (_item$value6 = item.value) === null || _item$value6 === void 0 ? void 0 : _item$value6.map((v, i) => /*#__PURE__*/_react.default.createElement(_ItemInfoCardWidget.default, _extends({
291
+ key: i
292
+ }, v))));
293
+ case "infoCardFooter":
294
+ return /*#__PURE__*/_react.default.createElement(_FormWidgetStyle.TotalRow, null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
295
+ typography: "type-t1-500",
296
+ style: {
297
+ color: _ColorVariablesMap.default["--color-positive"]
298
+ }
299
+ }, item === null || item === void 0 ? void 0 : item.text), /*#__PURE__*/_react.default.createElement("div", {
300
+ className: "gstAndCost"
301
+ }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
302
+ typography: "type-t1-500",
303
+ style: {
304
+ color: _ColorVariablesMap.default["--color-positive"]
305
+ }
306
+ }, "\u20B9", item.value), (item === null || item === void 0 ? void 0 : item.subText) && /*#__PURE__*/_react.default.createElement(_Typography.default, {
307
+ className: "margin-top-4",
308
+ typography: "type-button-500",
309
+ color: "secondary-content"
310
+ }, item.subText)));
311
+ case "keyValue":
312
+ const keyValueInfo = item !== null && item !== void 0 && item.info ? {
313
+ infoKey: item.info.infoKey,
314
+ infoData: /*#__PURE__*/_react.default.createElement(_CustomTooltip.default, {
315
+ title: item.info.tooltipTitle,
316
+ placement: "top"
317
+ }, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
318
+ color: item.info.color || "secondary",
319
+ size: item.info.size || 16,
320
+ icon: _InfoOutlined.default
321
+ }))
322
+ } : undefined;
323
+ return /*#__PURE__*/_react.default.createElement(_KeyValueWidget.default, {
324
+ key: item.key,
325
+ data: item.value,
326
+ info: keyValueInfo,
327
+ customClassName: item.className
328
+ });
329
+ case "tag":
330
+ return /*#__PURE__*/_react.default.createElement("div", {
331
+ className: "margin-bottom-32"
332
+ }, /*#__PURE__*/_react.default.createElement(_CustomTag.default, {
333
+ type: item.tagType,
334
+ label: item.label
335
+ }));
336
+ case "customInfo":
337
+ return /*#__PURE__*/_react.default.createElement("div", {
338
+ className: "margin-bottom-24"
339
+ }, " ", /*#__PURE__*/_react.default.createElement(_CustomInfo.default, _extends({
340
+ description: item === null || item === void 0 ? void 0 : item.value,
341
+ color: item === null || item === void 0 ? void 0 : item.bgcolor
342
+ }, (item === null || item === void 0 ? void 0 : item.iconConfig) && {
343
+ iconConfig: {
344
+ icon: /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
345
+ color: item === null || item === void 0 || (_item$iconConfig = item.iconConfig) === null || _item$iconConfig === void 0 ? void 0 : _item$iconConfig.color,
346
+ size: 24,
347
+ icon: item.iconConfig.icon
348
+ }),
349
+ position: item.iconConfig.position
350
+ }
351
+ })));
352
+ case "button":
353
+ return /*#__PURE__*/_react.default.createElement("div", {
354
+ className: "margin-bottom-16"
355
+ }, /*#__PURE__*/_react.default.createElement(_CustomButton.default, _extends({
356
+ type: (_item$subType = item === null || item === void 0 ? void 0 : item.subType) !== null && _item$subType !== void 0 ? _item$subType : "primary",
357
+ label: item === null || item === void 0 ? void 0 : item.label,
358
+ disabled: (_item$disabled2 = item === null || item === void 0 ? void 0 : item.disabled) !== null && _item$disabled2 !== void 0 ? _item$disabled2 : false,
359
+ onClick: () => {
360
+ if (item !== null && item !== void 0 && item.onClick) {
361
+ item.onClick(item === null || item === void 0 ? void 0 : item.action, item === null || item === void 0 ? void 0 : item.key);
362
+ }
363
+ }
364
+ }, item === null || item === void 0 ? void 0 : item.props)));
365
+ case "collapsibleKeyValue":
366
+ return /*#__PURE__*/_react.default.createElement("div", {
367
+ className: "margin-bottom-16"
368
+ }, /*#__PURE__*/_react.default.createElement(_CollapsibleKeyValueWidget.default, {
369
+ items: (item === null || item === void 0 ? void 0 : item.items) || [],
370
+ title: item === null || item === void 0 ? void 0 : item.title,
371
+ expandButtonText: item === null || item === void 0 ? void 0 : item.expandButtonText,
372
+ collapseButtonText: item === null || item === void 0 ? void 0 : item.collapseButtonText,
373
+ expandButtonType: item === null || item === void 0 ? void 0 : item.expandButtonType,
374
+ collapseButtonType: item === null || item === void 0 ? void 0 : item.collapseButtonType,
375
+ expandButtonSize: item === null || item === void 0 ? void 0 : item.expandButtonSize,
376
+ collapseButtonSize: item === null || item === void 0 ? void 0 : item.collapseButtonSize,
377
+ onItemToggle: item === null || item === void 0 ? void 0 : item.onItemToggle,
378
+ onFetchMoreInfo: item === null || item === void 0 ? void 0 : item.onFetchMoreInfo,
379
+ handleCollapsibleKeyData: handleCollapsibleKeyData
380
+ }));
381
+ case "field":
382
+ return renderFieldWidget(item);
383
+ default:
384
+ null;
385
+ }
386
+ };
387
+ const Heading = (heading, headingInfo) => /*#__PURE__*/_react.default.createElement("div", {
388
+ className: "margin-bottom-12",
389
+ style: {
390
+ display: "flex",
391
+ alignItems: "center",
392
+ gap: "8px"
393
+ }
394
+ }, /*#__PURE__*/_react.default.createElement(_Typography.default, {
395
+ typography: "type-sl1-700",
396
+ color: "secondary-content"
397
+ }, heading), headingInfo && /*#__PURE__*/_react.default.createElement(_CustomTooltip.default, {
398
+ title: headingInfo,
399
+ placement: "top"
400
+ }, /*#__PURE__*/_react.default.createElement(_MaterialIcon.default, {
401
+ icon: _InfoOutlined.default
402
+ })));
403
+ return /*#__PURE__*/_react.default.createElement(_FormWidgetStyle.FormWidgetStyleStyle, null, /*#__PURE__*/_react.default.createElement(_antd.Form, {
404
+ form: form,
405
+ layout: "vertical"
406
+ }, groups === null || groups === void 0 ? void 0 : groups.map((group, index) => {
407
+ if (typeof group !== "object" || group === null || !Array.isArray(group.items)) {
408
+ return null; // Skip invalid group
409
+ }
410
+ const {
411
+ bordered,
412
+ heading,
413
+ headingInfo,
414
+ items,
415
+ topDividerRequired = true
416
+ } = group;
417
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
418
+ key: index
419
+ }, bordered ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, Heading(heading, headingInfo), /*#__PURE__*/_react.default.createElement(_FormWidgetStyle.FieldBoxBorder, null, items.map((item, i) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
420
+ key: i
421
+ }, renderWidget(item))))) : /*#__PURE__*/_react.default.createElement(_FormWidgetStyle.FieldWithoutBorder, null, topDividerRequired && /*#__PURE__*/_react.default.createElement(_antd.Divider, {
422
+ className: "dividerLine"
423
+ }), Heading(heading, headingInfo), items.map((item, i) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
424
+ key: i
425
+ }, renderWidget(item)))));
426
+ }), /*#__PURE__*/_react.default.createElement(_FormWidgetStyle.FormWidgetStyle, null, visible && /*#__PURE__*/_react.default.createElement("div", {
427
+ className: "formBottomAction"
428
+ }, cancel && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, null, /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
429
+ type: (_cancel$type = cancel === null || cancel === void 0 ? void 0 : cancel.type) !== null && _cancel$type !== void 0 ? _cancel$type : "danger-secondary",
430
+ size: (_cancel$size = cancel === null || cancel === void 0 ? void 0 : cancel.size) !== null && _cancel$size !== void 0 ? _cancel$size : "medium",
431
+ label: cancel === null || cancel === void 0 ? void 0 : cancel.text,
432
+ onClick: () => {
433
+ var _form$validateFields;
434
+ if ((cancel === null || cancel === void 0 ? void 0 : cancel.buttonClickType) === "openNestedDrawer") {
435
+ handleDrawerFormOnFinish({
436
+ type: cancel === null || cancel === void 0 ? void 0 : cancel.buttonClickType,
437
+ call: cancel === null || cancel === void 0 ? void 0 : cancel.call,
438
+ action: cancel === null || cancel === void 0 ? void 0 : cancel.action
439
+ });
440
+ return;
441
+ }
442
+ form === null || form === void 0 || (_form$validateFields = form.validateFields()) === null || _form$validateFields === void 0 || _form$validateFields.then(value => {
443
+ handleDrawerFormOnFinish(_objectSpread(_objectSpread({}, value), {}, {
444
+ type: cancel === null || cancel === void 0 ? void 0 : cancel.buttonClickType
445
+ }));
446
+ }).catch(errorInfo => {
447
+ // errorInfo contains form validation errors
448
+ // Optionally log or handle validation errors here
449
+ console.log("Validation Failed:", errorInfo);
450
+ });
451
+ }
452
+ })), clear && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, null, /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
453
+ type: (_clear$type = clear === null || clear === void 0 ? void 0 : clear.type) !== null && _clear$type !== void 0 ? _clear$type : "text-only",
454
+ size: (_clear$size = clear === null || clear === void 0 ? void 0 : clear.size) !== null && _clear$size !== void 0 ? _clear$size : "medium",
455
+ label: clear === null || clear === void 0 ? void 0 : clear.text,
456
+ onClick: () => {
457
+ var _form$validateFields2;
458
+ form === null || form === void 0 || (_form$validateFields2 = form.validateFields()) === null || _form$validateFields2 === void 0 || _form$validateFields2.then(value => {
459
+ handleDrawerFormOnFinish(_objectSpread(_objectSpread({}, value), {}, {
460
+ type: clear === null || clear === void 0 ? void 0 : clear.buttonClickType
461
+ }));
462
+ }).catch(errorInfo => {
463
+ // errorInfo contains form validation errors
464
+ // Optionally log or handle validation errors here
465
+ console.log("Validation Failed:", errorInfo);
466
+ });
467
+ }
468
+ })), submit && /*#__PURE__*/_react.default.createElement(_antd.Form.Item, null, /*#__PURE__*/_react.default.createElement(_CustomButton.default, {
469
+ type: (_submit$type = submit === null || submit === void 0 ? void 0 : submit.type) !== null && _submit$type !== void 0 ? _submit$type : "primary",
470
+ onClick: () => {
471
+ var _form$validateFields3;
472
+ form === null || form === void 0 || (_form$validateFields3 = form.validateFields()) === null || _form$validateFields3 === void 0 || _form$validateFields3.then(value => {
473
+ var _submit$drawerKey, _submit$fileName;
474
+ handleDrawerFormOnFinish(_objectSpread(_objectSpread({}, value), {}, {
475
+ type: submit === null || submit === void 0 ? void 0 : submit.buttonClickType,
476
+ drawerKey: (_submit$drawerKey = submit === null || submit === void 0 ? void 0 : submit.drawerKey) !== null && _submit$drawerKey !== void 0 ? _submit$drawerKey : undefined,
477
+ fileName: (_submit$fileName = submit === null || submit === void 0 ? void 0 : submit.fileName) !== null && _submit$fileName !== void 0 ? _submit$fileName : undefined
478
+ }));
479
+ }).catch(errorInfo => {
480
+ // errorInfo contains form validation errors
481
+ // Optionally log or handle validation errors here
482
+ console.log("Validation Failed:", errorInfo);
483
+ });
484
+ },
485
+ label: submit === null || submit === void 0 ? void 0 : submit.text
486
+ }))))));
487
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.TotalRow = exports.TooltipLabel = exports.FormWidgetStyleStyle = exports.FormWidgetStyle = exports.FieldWithoutBorder = exports.FieldBoxBorder = exports.BgColorCheckBox = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
11
+ const FormWidgetStyle = exports.FormWidgetStyle = _styledComponents.default.div(_templateObject || (_templateObject = _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"])));
12
+ const FormWidgetStyleStyle = exports.FormWidgetStyleStyle = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ant-form-vertical\n .ant-form-item:not(.ant-form-item-horizontal)\n .ant-form-item-label {\n padding: 0 0 4px 0;\n }\n .ant-form-item-margin-offset {\n margin-bottom: 0px !important;\n }\n"])));
13
+ const FieldBoxBorder = exports.FieldBoxBorder = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: 12px;\n border: 1px solid #e0e0e0;\n padding: 16px;\n"])));
14
+ const FieldWithoutBorder = exports.FieldWithoutBorder = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n .cstUplaodWithText {\n display: flex;\n width: 100%;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 24px;\n }\n\n .cstUplaodWithText .uploadDiv,\n .cstUplaodWithText > div,\n .cstUplaodWithText > div > section {\n width: 100%;\n }\n\n .cstUplaodWithText .ant-form-item-row {\n justify-content: space-between;\n flex-direction: row;\n flex-flow: row !important;\n width: 100%;\n }\n\n .cstUplaodWithText .ant-form-item-control {\n flex-grow: 0;\n width: auto !important;\n }\n\n .cstUplaodWithTextTop {\n display: flex;\n width: 100%;\n flex-direction: column;\n justify-content: space-between;\n margin-bottom: 24px;\n gap: 4px;\n }\n"])));
15
+ const TotalRow = exports.TotalRow = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n border-top: 1px solid #e0e0e0;\n padding: 16px 16px 0 16px;\n margin: 0 0 0 -16px;\n width: calc(100% + 32px);\n\n.gstAndCost{display: flex;\n flex-direction: column;\n align-items: flex-end;\n justify-content: center;}\n\n\n\n\n"])));
16
+ const BgColorCheckBox = exports.BgColorCheckBox = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n\n.bottomLabelCheckboxNotFix {\n padding: 16px;\n background: #DEF1FB;\n border-radius: 4px;\n}\n"])));
17
+ const TooltipLabel = exports.TooltipLabel = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 8px;\n\n .tooltip-icon {\n transition: opacity 0.2s ease;\n\n &:hover {\n opacity: 0.8;\n }\n }\n"])));
18
+ var _default = exports.default = {};