kitchen-simulator 5.0.0-test.17 → 5.0.0-test.19

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 (206) hide show
  1. package/package.json +8 -18
  2. package/src/@history.js +3 -0
  3. package/src/CrossSignOn.jsx +94 -0
  4. package/src/KitchenConfigurator.jsx +1526 -0
  5. package/src/KitchenConfiguratorApp.jsx +1 -1
  6. package/src/_KitchenConfigurator.jsx +3 -91
  7. package/src/components/atoms/Snackbar/index.jsx +43 -0
  8. package/src/components/atoms/radio-button/index.jsx +20 -0
  9. package/src/components/atoms/radio-button/styles.js +56 -0
  10. package/src/components/button/MainButton.jsx +157 -0
  11. package/src/components/button/ToggleMeasureButton.jsx +65 -0
  12. package/src/components/catalog-view/catalog-breadcrumb.jsx +53 -0
  13. package/src/components/catalog-view/catalog-item.jsx +229 -0
  14. package/src/components/catalog-view/catalog-list.jsx +173 -0
  15. package/src/components/catalog-view/catalog-page-item.jsx +110 -0
  16. package/src/components/catalog-view/catalog-turn-back-page-item.jsx +80 -0
  17. package/src/components/configurator/custom-configurator.jsx +77 -0
  18. package/src/components/configurator/project-configurator.jsx +120 -0
  19. package/src/components/content.jsx +136 -0
  20. package/src/components/export.js +36 -0
  21. package/src/components/firstsetting/button/styles.js +223 -0
  22. package/src/components/firstsetting/export.js +9 -0
  23. package/src/components/firstsetting/firstsetting-content-button.jsx +198 -0
  24. package/src/components/firstsetting/firstsetting-toggle-button.jsx +101 -0
  25. package/src/components/firstsetting/firstsetting.jsx +814 -0
  26. package/src/components/footerbar/button/ControlButton.jsx +43 -0
  27. package/src/components/footerbar/button/DirectionButton.jsx +54 -0
  28. package/src/components/footerbar/button/DirectionPanSpinButton.jsx +36 -0
  29. package/src/components/footerbar/button/ToggleButton.jsx +58 -0
  30. package/src/components/footerbar/button/ToggleConvertButton.jsx +48 -0
  31. package/src/components/footerbar/button/ToggleMeasureButton.jsx +33 -0
  32. package/src/components/footerbar/button/styles.js +217 -0
  33. package/src/components/footerbar/export.js +9 -0
  34. package/src/components/footerbar/footer-content-button.jsx +198 -0
  35. package/src/components/footerbar/footer-toggle-button.jsx +101 -0
  36. package/src/components/footerbar/footerbar.jsx +1103 -0
  37. package/src/components/footerbar/styles.js +263 -0
  38. package/src/components/header/button/MenuButton.jsx +46 -0
  39. package/src/components/header/button/SaveButton.jsx +54 -0
  40. package/src/components/header/button/styles.js +181 -0
  41. package/src/components/header/export.js +5 -0
  42. package/src/components/header/header.jsx +631 -0
  43. package/src/components/header/header.style.css +47 -0
  44. package/src/components/header/styles.js +320 -0
  45. package/src/components/login/Login.js +77 -0
  46. package/src/components/login/LoginForm/index.js +108 -0
  47. package/src/components/login/Register.js +82 -0
  48. package/src/components/login/RegisterForm/index.js +171 -0
  49. package/src/components/login/jwtService.js +201 -0
  50. package/src/components/login/style.css +158 -0
  51. package/src/components/login/style.scss +260 -0
  52. package/src/components/molecules/slider/index.jsx +15 -0
  53. package/src/components/molecules/slider/styles.js +0 -0
  54. package/src/components/molecules/slider/styles.scss +3 -0
  55. package/src/components/myprojects/export.js +5 -0
  56. package/src/components/myprojects/index.jsx +445 -0
  57. package/src/components/myprojects/styles.js +241 -0
  58. package/src/components/sidebar/custom-accordion.jsx +48 -0
  59. package/src/components/sidebar/export.js +15 -0
  60. package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +73 -0
  61. package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +101 -0
  62. package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +149 -0
  63. package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +316 -0
  64. package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +108 -0
  65. package/src/components/sidebar/panel-element-editor/element-editor.jsx +1070 -0
  66. package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
  67. package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +104 -0
  68. package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +155 -0
  69. package/src/components/sidebar/panel-group-editor.jsx +272 -0
  70. package/src/components/sidebar/panel-groups.jsx +310 -0
  71. package/src/components/sidebar/panel-guides.jsx +192 -0
  72. package/src/components/sidebar/panel-layer-elements.jsx +298 -0
  73. package/src/components/sidebar/panel-layers.jsx +381 -0
  74. package/src/components/sidebar/panel.jsx +71 -0
  75. package/src/components/sidebar/sidebar.jsx +106 -0
  76. package/src/components/sidebar/toolbar-panel.jsx +139 -0
  77. package/src/components/sign/export.js +7 -0
  78. package/src/components/sign/main/index.jsx +523 -0
  79. package/src/components/sign/main/styles.js +163 -0
  80. package/src/components/style/button.jsx +95 -0
  81. package/src/components/style/cancel-button.jsx +20 -0
  82. package/src/components/style/content-container.jsx +29 -0
  83. package/src/components/style/content-title.jsx +20 -0
  84. package/src/components/style/delete-button.jsx +23 -0
  85. package/src/components/style/export.jsx +48 -0
  86. package/src/components/style/form-block.jsx +13 -0
  87. package/src/components/style/form-color-input.jsx +27 -0
  88. package/src/components/style/form-label.jsx +15 -0
  89. package/src/components/style/form-number-input.jsx +196 -0
  90. package/src/components/style/form-number-input_2.jsx +191 -0
  91. package/src/components/style/form-select.jsx +38 -0
  92. package/src/components/style/form-slider.jsx +36 -0
  93. package/src/components/style/form-submit-button.jsx +23 -0
  94. package/src/components/style/form-text-input.jsx +65 -0
  95. package/src/components/toolbar/button/ControlButton.jsx +41 -0
  96. package/src/components/toolbar/button/DirectionButton.jsx +34 -0
  97. package/src/components/toolbar/button/RightButton.jsx +103 -0
  98. package/src/components/toolbar/button/ToggleButton.jsx +41 -0
  99. package/src/components/toolbar/button/index.jsx +55 -0
  100. package/src/components/toolbar/button/styles.js +127 -0
  101. package/src/components/toolbar/components/DoorStyleMenu.jsx +103 -0
  102. package/src/components/toolbar/components/Pricing.jsx +126 -0
  103. package/src/components/toolbar/components/ReviewForQuote.jsx +635 -0
  104. package/src/components/toolbar/export.js +21 -0
  105. package/src/components/toolbar/main/Alert.js +122 -0
  106. package/src/components/toolbar/main/TakePictureModal.jsx +104 -0
  107. package/src/components/toolbar/main/confirm-popup.jsx +99 -0
  108. package/src/components/toolbar/main/index.jsx +5627 -0
  109. package/src/components/toolbar/main/lShaped.json +311 -0
  110. package/src/components/toolbar/main/longNarrow.json +238 -0
  111. package/src/components/toolbar/main/myComponents.js +123 -0
  112. package/src/components/toolbar/main/oRectangle.json +220 -0
  113. package/src/components/toolbar/main/rectangle.json +238 -0
  114. package/src/components/toolbar/main/style.css +107 -0
  115. package/src/components/toolbar/main/styles.js +696 -0
  116. package/src/components/toolbar/plugin-item.jsx +123 -0
  117. package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +73 -0
  118. package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +102 -0
  119. package/src/components/toolbar/popup/appliance/index.jsx +83 -0
  120. package/src/components/toolbar/popup/autosaveprompt/index.jsx +150 -0
  121. package/src/components/toolbar/popup/autosaveprompt/styles.css +64 -0
  122. package/src/components/toolbar/popup/autosaveprompt/styles.js +40 -0
  123. package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +73 -0
  124. package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +119 -0
  125. package/src/components/toolbar/popup/cabinet/index.jsx +85 -0
  126. package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +63 -0
  127. package/src/components/toolbar/popup/doorStyle/index.jsx +71 -0
  128. package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +139 -0
  129. package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +2 -0
  130. package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +157 -0
  131. package/src/components/toolbar/popup/downloadsummary/index.jsx +643 -0
  132. package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +51 -0
  133. package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +175 -0
  134. package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +283 -0
  135. package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +2257 -0
  136. package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +93 -0
  137. package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +132 -0
  138. package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +2198 -0
  139. package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +152 -0
  140. package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +149 -0
  141. package/src/components/toolbar/popup/downloadsummary/styles.css +177 -0
  142. package/src/components/toolbar/popup/downloadsummary/styles.js +453 -0
  143. package/src/components/toolbar/popup/finishingtouch/category/index.jsx +34 -0
  144. package/src/components/toolbar/popup/finishingtouch/index.jsx +58 -0
  145. package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +112 -0
  146. package/src/components/toolbar/popup/finishingtouch/product/index.jsx +116 -0
  147. package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +101 -0
  148. package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +254 -0
  149. package/src/components/toolbar/popup/floorplan/choose-floor/lShaped.json +311 -0
  150. package/src/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +238 -0
  151. package/src/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +220 -0
  152. package/src/components/toolbar/popup/floorplan/choose-floor/rectangle.json +238 -0
  153. package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +86 -0
  154. package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +109 -0
  155. package/src/components/toolbar/popup/floorplan/index.jsx +60 -0
  156. package/src/components/toolbar/popup/index.jsx +241 -0
  157. package/src/components/toolbar/popup/newproject/index.jsx +59 -0
  158. package/src/components/toolbar/popup/newproject/styles.css +64 -0
  159. package/src/components/toolbar/popup/newproject/styles.js +41 -0
  160. package/src/components/toolbar/popup/product/appliance.jsx +54 -0
  161. package/src/components/toolbar/popup/product/cabinetproduct.jsx +15 -0
  162. package/src/components/toolbar/popup/product/doorstyle.jsx +58 -0
  163. package/src/components/toolbar/popup/product/doorstyleproduct.jsx +47 -0
  164. package/src/components/toolbar/popup/product/floor.jsx +36 -0
  165. package/src/components/toolbar/popup/product/floorproduct.jsx +42 -0
  166. package/src/components/toolbar/popup/product/index.jsx +36 -0
  167. package/src/components/toolbar/popup/product/primary.jsx +77 -0
  168. package/src/components/toolbar/popup/product/productline.jsx +93 -0
  169. package/src/components/toolbar/popup/product/reviewItem.jsx +427 -0
  170. package/src/components/toolbar/popup/product/reviewMolding.jsx +310 -0
  171. package/src/components/toolbar/popup/product/style.css +54 -0
  172. package/src/components/toolbar/popup/product/styles.js +260 -0
  173. package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +146 -0
  174. package/src/components/toolbar/popup/savedesign/index.jsx +495 -0
  175. package/src/components/toolbar/popup/savedesign/savedesign.style.css +16 -0
  176. package/src/components/toolbar/popup/savedesign/styles.js +151 -0
  177. package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +87 -0
  178. package/src/components/toolbar/popup/styles.js +909 -0
  179. package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +192 -0
  180. package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +96 -0
  181. package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +54 -0
  182. package/src/components/toolbar/popup/submitforquote/StepDots.jsx +25 -0
  183. package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +116 -0
  184. package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +38 -0
  185. package/src/components/toolbar/popup/submitforquote/index.jsx +698 -0
  186. package/src/components/toolbar/popup/submitforquote/styles.css +105 -0
  187. package/src/components/toolbar/popup/submitforquote/styles.js +294 -0
  188. package/src/components/toolbar/popup/submitprompt/index.jsx +89 -0
  189. package/src/components/toolbar/popup/submitprompt/styles.css +64 -0
  190. package/src/components/toolbar/popup/submitprompt/styles.js +42 -0
  191. package/src/components/toolbar/toolbar-button.jsx +90 -0
  192. package/src/components/toolbar/toolbar-load-button.jsx +36 -0
  193. package/src/components/toolbar/toolbar-save-button.jsx +32 -0
  194. package/src/components/tutorial-view/Modal.jsx +584 -0
  195. package/src/components/tutorial-view/style.css +111 -0
  196. package/src/components/tutorial-view/styles.js +65 -0
  197. package/src/components/wizardstep/button/styles.js +677 -0
  198. package/src/components/wizardstep/export.js +5 -0
  199. package/src/components/wizardstep/index.jsx +1372 -0
  200. package/src/components/wizardstep/styles.js +688 -0
  201. package/src/components/wizardstep/wizardstep-content-button.jsx +198 -0
  202. package/src/components/wizardstep/wizardstep-toggle-button.jsx +101 -0
  203. package/src/{_index.js → index.js} +4 -4
  204. package/src/renderer.jsx +466 -0
  205. package/src/actions/_export.js +0 -35
  206. package/src/components/_export.js +0 -11
@@ -0,0 +1,152 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import State3D from '../../../../viewer3d/ruler-utils/state3D';
3
+ import { getSignedUrl } from '../../../../../utils/helper';
4
+ import Viewer3D from '../../../../viewer3d/viewer3d';
5
+
6
+ const ViewerElevationDownLoad = ({ state, setIsLoadingElevation, catalog }) => {
7
+ const width = 682,
8
+ height = 500;
9
+
10
+ let pdfID = `${state.mode}_pdfID`;
11
+ let svgID = `${state.mode}_svgID`;
12
+
13
+ useEffect(() => {
14
+ if (!window.__elevationImg) {
15
+ window.__elevationImg = {};
16
+ }
17
+ return () => (window.__elevationImg[state.mode] = '');
18
+ }, []);
19
+
20
+ const saveSVGScreenshotToFile = async () => {
21
+ let maxWidthSVGElement = document.getElementById(`${svgID}`);
22
+
23
+ if (maxWidthSVGElement !== null) {
24
+ let images = maxWidthSVGElement.getElementsByTagName('image');
25
+
26
+ let readBlob = b => {
27
+ return new Promise(res => {
28
+ const reader = new FileReader();
29
+ reader.onloadend = () => {
30
+ res(reader.result);
31
+ };
32
+ reader.onerror = () => {
33
+ res(b);
34
+ };
35
+ reader.readAsDataURL(b);
36
+ });
37
+ };
38
+
39
+ try {
40
+ for (let image of images) {
41
+ const url = getSignedUrl(image.getAttribute('href'));
42
+ const response = await fetch(url, { cache: 'no-store' });
43
+ const blob = await response.blob();
44
+ const content = await readBlob(blob);
45
+ image.setAttribute('href', content);
46
+ }
47
+ } catch (e) {}
48
+ // End: Change Image tags' href to local data src
49
+ }
50
+
51
+ let serializer = new XMLSerializer();
52
+
53
+ let img = new Image();
54
+ let img2 = new Image();
55
+ // I create the new canvas to draw
56
+ let canvas2D3DPlain1 = document.getElementById(`${pdfID}`);
57
+
58
+ if (canvas2D3DPlain1 !== null) {
59
+ let canvas2D3DPlain = canvas2D3DPlain1.getElementsByTagName('canvas')[0];
60
+
61
+ let canvas42DPlain = document.createElement('canvas');
62
+ let ctx = canvas42DPlain.getContext('2d');
63
+
64
+ // Set width and height for the new canvas
65
+ let heightAtt = document.createAttribute('height');
66
+ heightAtt.value = maxWidthSVGElement.height.baseVal.value;
67
+ canvas42DPlain.setAttributeNode(heightAtt);
68
+
69
+ let widthAtt = document.createAttribute('width');
70
+ widthAtt.value = maxWidthSVGElement.width.baseVal.value;
71
+ canvas42DPlain.setAttributeNode(widthAtt);
72
+
73
+ ctx.fillStyle = 'white';
74
+ ctx.fillRect(0, 0, canvas42DPlain.width, canvas42DPlain.height);
75
+
76
+ img.crossOrigin = 'anonymous';
77
+ img.src = `data:image/svg+xml;base64,${window.btoa(
78
+ serializer.serializeToString(maxWidthSVGElement)
79
+ )}`;
80
+ img2.crossOrigin = 'anonymous';
81
+ img2.src = canvas2D3DPlain.toDataURL();
82
+
83
+ img2.onload = () => {
84
+ ctx.globalAlpha = 1;
85
+ ctx.drawImage(
86
+ img2,
87
+ 0,
88
+ 0,
89
+ maxWidthSVGElement.width.baseVal.value,
90
+ maxWidthSVGElement.height.baseVal.value
91
+ );
92
+ ctx.drawImage(
93
+ img,
94
+ 0,
95
+ 0,
96
+ maxWidthSVGElement.width.baseVal.value,
97
+ maxWidthSVGElement.height.baseVal.value
98
+ );
99
+
100
+ window.__elevationImg[state.mode] = canvas42DPlain.toDataURL();
101
+ };
102
+ } else {
103
+ window.__elevationImg[state.mode] = '';
104
+ }
105
+ };
106
+
107
+ const _setIsLoadingElevation = (key, value) => {
108
+ if (!value) {
109
+ saveSVGScreenshotToFile();
110
+ }
111
+ setIsLoadingElevation(key, value);
112
+ };
113
+
114
+ return (
115
+ <div
116
+ id={pdfID}
117
+ style={{
118
+ position: 'relative',
119
+ transform: `scale(0.5,0.5)`,
120
+ width: 6,
121
+ height: 0
122
+ }}
123
+ >
124
+ <svg
125
+ id={svgID}
126
+ width={width}
127
+ height={height}
128
+ style={{ position: 'absolute' }}
129
+ >
130
+ <g transform={`translate(${width / 2}, ${height / 2})`}>
131
+ <State3D
132
+ state={state}
133
+ catalog={catalog}
134
+ width={width}
135
+ height={height}
136
+ downloadFlag={true}
137
+ />
138
+ </g>
139
+ </svg>
140
+
141
+ <Viewer3D
142
+ state={state}
143
+ setIsLoadingElevation={_setIsLoadingElevation}
144
+ width={width}
145
+ height={height}
146
+ downloadFlag={true}
147
+ />
148
+ </div>
149
+ );
150
+ };
151
+
152
+ export default ViewerElevationDownLoad;
@@ -0,0 +1,149 @@
1
+ import React from 'react';
2
+ import DownloadSummaryTemp from './downloadSummaryTemp';
3
+ import * as constants from '../../../../constants';
4
+ import moment from 'moment';
5
+
6
+ const styles = {
7
+ viewTitle: {
8
+ color: '#565F77',
9
+ marginBottom: 'inherit',
10
+ fontSize: '9px',
11
+ fontFamily: constants.DEFAULT_FONT_FAMILY,
12
+ fontWeight: '700',
13
+ lineHeight: '12.6px',
14
+ wordWrap: 'break-word'
15
+ },
16
+ viewWarranty: {
17
+ color: '#565F77',
18
+ margin: 'inherit',
19
+ fontSize: '7px',
20
+ fontFamily: constants.DEFAULT_FONT_FAMILY,
21
+ fontWeight: '400',
22
+ lineHeight: '12.6px',
23
+ wordWrap: 'break-word',
24
+ marginTop: '4px'
25
+ },
26
+ viewWarranty_1: {
27
+ color: '#565F77',
28
+ margin: 'inherit',
29
+ fontSize: '7px',
30
+ fontFamily: constants.DEFAULT_FONT_FAMILY,
31
+ fontWeight: '400',
32
+ lineHeight: '12.6px',
33
+ wordWrap: 'break-word',
34
+ marginTop: '20px'
35
+ }
36
+ };
37
+
38
+ const ShowWarranty = props => {
39
+ return (
40
+ <DownloadSummaryTemp config={props}>
41
+ <div style={{ marginBottom: '32px' }}>
42
+ <div
43
+ style={{
44
+ marginTop: '20px',
45
+ color: '#000F33',
46
+ fontSize: '17px',
47
+ fontFamily: constants.DEFAULT_FONT_FAMILY,
48
+ fontWeight: '700',
49
+ lineHeight: '45.9px',
50
+ wordWrap: 'break-word'
51
+ }}
52
+ >
53
+ {constants.WARRANTY_VIEW}
54
+ </div>
55
+ <div
56
+ style={{
57
+ marginTop: 7,
58
+ color: '#434D63',
59
+ fontSize: '9px',
60
+ fontFamily: constants.DEFAULT_FONT_FAMILY,
61
+ fontWeight: '600',
62
+ lineHeight: '15px',
63
+ wordWrap: 'break-word'
64
+ }}
65
+ >
66
+ {constants.WARRANTY_SUPPORT}
67
+ </div>
68
+ <div style={{}}>
69
+ <h5 style={styles.viewTitle}>1. Coverage Period</h5>
70
+ <p style={styles.viewWarranty}>
71
+ This warranty is valid for a period of{' '}
72
+ {moment(new Date()).format('MM-YYYY')}/[XX months/years] from the
73
+ original purchase date, as indicated on the purchase receipt.
74
+ </p>
75
+ <h5 style={styles.viewTitle}>2. Scope of Warranty</h5>
76
+ <p style={styles.viewWarranty}>
77
+ This warranty covers defects in materials and workmanship under
78
+ normal use. It does not cover damage caused by misuse, neglect,
79
+ unauthorized modifications, or external factors such as accidents or
80
+ natural disasters.
81
+ </p>
82
+ <h5 style={styles.viewTitle}>3. Warranty Claim Process</h5>
83
+ <p style={styles.viewWarranty}>
84
+ <span>To file a warranty claim:</span>
85
+ <ul style={{ paddingLeft: '15px', marginTop: '10px' }}>
86
+ <li>
87
+ Contact our support team at [support email or phone number].
88
+ </li>
89
+ <li>
90
+ Provide proof of purchase and a detailed description of the
91
+ issue.
92
+ </li>
93
+ <li>
94
+ Follow instructions for returning the product or scheduling an
95
+ inspection.
96
+ </li>
97
+ </ul>
98
+ </p>
99
+ <h5 style={styles.viewTitle}>4. Remedies</h5>
100
+ <p style={styles.viewWarranty}>
101
+ <span>
102
+ If a defect is confirmed, DIY Design Space will, at its
103
+ discretion:
104
+ </span>
105
+ <ul style={{ paddingLeft: '15px', marginTop: '10px' }}>
106
+ <li>Repair the defective item.</li>
107
+ <li>Replace it with an identical or equivalent product.</li>
108
+ <li>Refund the purchase price.</li>
109
+ </ul>
110
+ </p>
111
+ <h5 style={styles.viewTitle}>5. Limitations</h5>
112
+ <p style={styles.viewWarranty}>
113
+ This warranty is non-transferable and valid only for the original
114
+ purchaser. It excludes liability for incidental or consequential
115
+ damages arising from the use of the product.
116
+ </p>
117
+ <h5 style={styles.viewTitle}>6. Additional Terms</h5>
118
+ <p style={styles.viewWarranty}>
119
+ For products requiring maintenance, adherence to the recommended
120
+ care guidelines is necessary for warranty validity. This warranty
121
+ gives you specific legal rights, and you may also have other rights
122
+ that vary by jurisdiction. For complete details, please visit our
123
+ website at [website link].
124
+ </p>
125
+ <p style={styles.viewWarranty_1}>
126
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in
127
+ erat vitae purus venenatis vestibulum sed id nisi. Vestibulum sit
128
+ amet risus in nibh tempor ullamcorper. Sed porta vestibulum dui, et
129
+ feugiat libero vestibulum quis. Pellentesque habitant morbi
130
+ tristique senectus et netus et malesuada fames ac turpis egestas.
131
+ Quisque sit amet neque augue. Nam ornare nisl sed dui venenatis, a
132
+ accumsan purus imperdiet. Etiam iaculis leo ac risus efficitur
133
+ sollicitudin. Proin tincidunt feugiat lorem, a cursus diam.
134
+ </p>
135
+ <p style={styles.viewWarranty_1}>
136
+ Proin et lobortis lacus. Donec auctor tempor commodo. Morbi
137
+ tristique enim magna, sit amet rutrum metus facilisis lobortis.
138
+ Nullam quam nisi, ultricies nec ultricies ut, faucibus facilisis
139
+ nisi. Aenean eget interdum erat. Mauris efficitur lobortis sem,
140
+ vitae pretium augue luctus consectetur. In in justo eget ante
141
+ dapibus porttitor. Etiam vestibulum tempor mi ac aliquam.
142
+ </p>
143
+ </div>
144
+ </div>
145
+ </DownloadSummaryTemp>
146
+ );
147
+ };
148
+
149
+ export default ShowWarranty;
@@ -0,0 +1,177 @@
1
+ /**
2
+ * Styles for submit for quote panel
3
+ */
4
+
5
+ .submit-for-quote {
6
+ width: 100%;
7
+ height: 100%;
8
+ user-select: none;
9
+ }
10
+
11
+ .submit-for-quote-header {
12
+ background-color: #1183b7;
13
+ height: 30px;
14
+ padding-right: 6px;
15
+ }
16
+
17
+ .submit-for-quote-header-icon {
18
+ float: right;
19
+ margin-top: 4px;
20
+ }
21
+
22
+ .submit-for-quote-desc {
23
+ font-size: 14px;
24
+ margin-top: 20px;
25
+ margin-left: 40px;
26
+ }
27
+
28
+ .submit-for-quote-form {
29
+ font-size: 12px;
30
+ display: flex;
31
+ flex-direction: column;
32
+ align-items: center;
33
+ position: relative;
34
+ }
35
+
36
+ .submit-for-quote-form-item {
37
+ width: 345px;
38
+ margin-top: 20px;
39
+ }
40
+
41
+ .submit-for-quote-footer {
42
+ width: 70px;
43
+ margin-left: 350px;
44
+ margin-top: 15px;
45
+ cursor: pointer;
46
+ }
47
+
48
+ .submit-for-quote-form-item-label {
49
+ padding-left: 3px;
50
+ cursor: pointer;
51
+ -webkit-user-select: none;
52
+ -moz-user-select: none;
53
+ -ms-user-select: none;
54
+ user-select: none;
55
+ }
56
+
57
+ .submit-for-quote-form-item-span {
58
+ display: inline-block;
59
+ width: 92px;
60
+ padding-left: 3px;
61
+ cursor: pointer;
62
+ -webkit-user-select: none;
63
+ -moz-user-select: none;
64
+ -ms-user-select: none;
65
+ user-select: none;
66
+ }
67
+
68
+ .submit-for-quote-form-item-checkbox {
69
+ position: relative;
70
+ margin-right: 4px;
71
+ top: 2px;
72
+ }
73
+
74
+ .submit-for-quote-form-item-input {
75
+ width: 250px;
76
+ margin-left: 5px;
77
+ }
78
+
79
+ .submit-for-quote-form-item-button {
80
+ width: 230px;
81
+ height: 23px;
82
+ margin-left: 20px;
83
+ color: white !important;
84
+ }
85
+
86
+ .submit-for-quote-form-item-button > .MuiSelect-icon {
87
+ color: white !important;
88
+ }
89
+
90
+ .submit-for-quote-form-item-button-icon {
91
+ width: 45px;
92
+ display: inline-block;
93
+ }
94
+
95
+ .submit-for-quote-form-item-button-img {
96
+ display: block;
97
+ margin: auto;
98
+ }
99
+
100
+ .submit-for-quote-form-item-textarea {
101
+ width: 100%;
102
+ height: 100%;
103
+ margin-top: 10px;
104
+ resize: none;
105
+ }
106
+
107
+ * {
108
+ box-sizing: border-box;
109
+ }
110
+
111
+ body {
112
+ width: 80%;
113
+ margin: auto;
114
+ }
115
+
116
+ .container {
117
+ padding: 30px;
118
+ display: flex;
119
+ flex-direction: column;
120
+ justify-content: center;
121
+ }
122
+
123
+ .adImgStyle {
124
+ width: 100%;
125
+ height: 600px;
126
+ margin: auto;
127
+ }
128
+
129
+ .baseFontStyle {
130
+ color: rgba(10, 10, 10, 0.692);
131
+ /* font-size: 12px; */
132
+ font-family: Open Sans;
133
+ /* font-weight: 600; */
134
+ }
135
+
136
+ .headerStyle {
137
+ margin-top: 20px;
138
+ padding: 15px 0;
139
+ display: flex;
140
+ justify-content: space-between;
141
+ border-bottom: 1px solid gray;
142
+ }
143
+
144
+ .footerStyle {
145
+ padding: 15px 0;
146
+ font-size: 12px;
147
+ border-top: 1px solid gray;
148
+ display: flex;
149
+ justify-content: space-between;
150
+ font-family: Open Sans;
151
+ color: #777777;
152
+ }
153
+
154
+ .contentStyle {
155
+ padding: 30px 0;
156
+ }
157
+
158
+ .summaryStore {
159
+ display: flex;
160
+ justify-content: space-between;
161
+ font-family: Open Sans;
162
+ }
163
+
164
+ .summaryStyle {
165
+ font-weight: 600;
166
+ padding-right: 200px;
167
+ }
168
+
169
+ .logoStyle {
170
+ width: 50px;
171
+ height: 50px;
172
+ background-color: steelblue;
173
+ }
174
+
175
+ .dividerStyle {
176
+ padding: 0 20px;
177
+ }