oa-componentbook 1.0.1-stage.36 → 1.0.1-stage.361

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