kitchen-simulator 5.0.0-test.5 → 5.0.0-test.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +34 -41
- package/src/@history.js +3 -0
- package/src/AppContext.js +5 -0
- package/src/KitchenConfigurator.jsx +1517 -0
- package/src/KitchenConfiguratorApp.jsx +443 -0
- package/src/actions/area-actions.js +15 -0
- package/src/actions/export.js +38 -0
- package/src/actions/groups-actions.js +102 -0
- package/src/actions/holes-actions.js +152 -0
- package/src/actions/items-actions.js +393 -0
- package/src/actions/lines-actions.js +103 -0
- package/src/actions/project-actions.js +391 -0
- package/src/actions/scene-actions.js +44 -0
- package/src/actions/user-actions.js +75 -0
- package/src/actions/vertices-actions.js +34 -0
- package/src/actions/viewer2d-actions.js +79 -0
- package/src/actions/viewer3d-actions.js +32 -0
- package/src/catalog/areas/area/planner-element.jsx +43 -0
- package/src/catalog/catalog.js +258 -0
- package/src/catalog/factories/area-factory-3d.js +252 -0
- package/src/catalog/factories/area-factory.jsx +102 -0
- package/src/catalog/factories/export.js +9 -0
- package/src/catalog/factories/wall-factory-3d.js +296 -0
- package/src/catalog/factories/wall-factory.jsx +321 -0
- package/src/catalog/holes/door-closet/planner-element.jsx +251 -0
- package/src/catalog/holes/door-double/planner-element.jsx +391 -0
- package/src/catalog/holes/door-exterior/planner-element.jsx +245 -0
- package/src/catalog/holes/door-interior/planner-element.jsx +256 -0
- package/src/catalog/holes/door-panic/planner-element.jsx +594 -0
- package/src/catalog/holes/door-panic-double/planner-element.jsx +574 -0
- package/src/catalog/holes/door-sliding/planner-element.jsx +256 -0
- package/src/catalog/holes/doorway-framed/planner-element.jsx +169 -0
- package/src/catalog/holes/doorway-frameless/planner-element.jsx +116 -0
- package/src/catalog/holes/window-clear/planner-element.jsx +181 -0
- package/src/catalog/holes/window-cross/planner-element.jsx +180 -0
- package/src/catalog/holes/window-double-hung/planner-element.jsx +366 -0
- package/src/catalog/holes/window-vertical/planner-element.jsx +290 -0
- package/src/catalog/lines/wall/planner-element.jsx +73 -0
- package/src/catalog/molding/molding-dcm/planner-element.jsx +35 -0
- package/src/catalog/molding/molding-fbm/planner-element.jsx +35 -0
- package/src/catalog/molding/molding-lrm/planner-element.jsx +35 -0
- package/src/catalog/properties/export.js +33 -0
- package/src/catalog/properties/property-checkbox.jsx +123 -0
- package/src/catalog/properties/property-color.jsx +52 -0
- package/src/catalog/properties/property-enum.jsx +87 -0
- package/src/catalog/properties/property-hidden.jsx +22 -0
- package/src/catalog/properties/property-lenght-measure.jsx +113 -0
- package/src/catalog/properties/property-length-measure.jsx +129 -0
- package/src/catalog/properties/property-length-measure_hole.jsx +110 -0
- package/src/catalog/properties/property-number.jsx +63 -0
- package/src/catalog/properties/property-read-only.jsx +37 -0
- package/src/catalog/properties/property-string.jsx +59 -0
- package/src/catalog/properties/property-toggle.jsx +51 -0
- package/src/catalog/properties/shared-property-style.js +13 -0
- package/src/catalog/utils/FuseUtils.js +61 -0
- package/src/catalog/utils/exporter.js +173 -0
- package/src/catalog/utils/geom-utils.js +301 -0
- package/src/catalog/utils/item-loader.jsx +2122 -0
- package/src/catalog/utils/load-obj.js +113 -0
- package/src/catalog/utils/mtl-loader.js +462 -0
- package/src/catalog/utils/obj-loader.js +544 -0
- package/src/class/FuseUtils.js +61 -0
- package/src/class/area.js +159 -0
- package/src/class/export.js +37 -0
- package/src/class/group.js +565 -0
- package/src/class/guide.js +44 -0
- package/src/class/hole.js +1359 -0
- package/src/class/item.js +2050 -0
- package/src/class/layer.js +926 -0
- package/src/class/line.js +1780 -0
- package/src/class/project.js +875 -0
- package/src/class/vertex.js +409 -0
- package/src/components/atoms/Snackbar/index.jsx +43 -0
- package/src/components/atoms/radio-button/index.jsx +20 -0
- package/src/components/atoms/radio-button/styles.js +56 -0
- package/src/components/button/MainButton.jsx +157 -0
- package/src/components/button/ToggleMeasureButton.jsx +65 -0
- package/src/components/catalog-view/catalog-breadcrumb.jsx +53 -0
- package/src/components/catalog-view/catalog-item.jsx +229 -0
- package/src/components/catalog-view/catalog-list.jsx +173 -0
- package/src/components/catalog-view/catalog-page-item.jsx +110 -0
- package/src/components/catalog-view/catalog-turn-back-page-item.jsx +80 -0
- package/src/components/configurator/custom-configurator.jsx +77 -0
- package/src/components/configurator/project-configurator.jsx +120 -0
- package/src/components/content.jsx +136 -0
- package/src/components/export.js +36 -0
- package/src/components/firstsetting/button/styles.js +223 -0
- package/src/components/firstsetting/export.js +9 -0
- package/src/components/firstsetting/firstsetting-content-button.jsx +198 -0
- package/src/components/firstsetting/firstsetting-toggle-button.jsx +101 -0
- package/src/components/firstsetting/firstsetting.jsx +814 -0
- package/src/components/footerbar/button/ControlButton.jsx +43 -0
- package/src/components/footerbar/button/DirectionButton.jsx +54 -0
- package/src/components/footerbar/button/DirectionPanSpinButton.jsx +36 -0
- package/src/components/footerbar/button/ToggleButton.jsx +58 -0
- package/src/components/footerbar/button/ToggleConvertButton.jsx +48 -0
- package/src/components/footerbar/button/ToggleMeasureButton.jsx +33 -0
- package/src/components/footerbar/button/styles.js +217 -0
- package/src/components/footerbar/export.js +9 -0
- package/src/components/footerbar/footer-content-button.jsx +198 -0
- package/src/components/footerbar/footer-toggle-button.jsx +101 -0
- package/src/components/footerbar/footerbar.jsx +1103 -0
- package/src/components/footerbar/styles.js +263 -0
- package/src/components/header/button/MenuButton.jsx +46 -0
- package/src/components/header/button/SaveButton.jsx +54 -0
- package/src/components/header/button/styles.js +181 -0
- package/src/components/header/export.js +5 -0
- package/src/components/header/header.jsx +631 -0
- package/src/components/header/styles.js +320 -0
- package/src/components/login/Login.js +77 -0
- package/src/components/login/LoginForm/index.js +108 -0
- package/src/components/login/Register.js +83 -0
- package/src/components/login/RegisterForm/index.js +171 -0
- package/src/components/login/jwtService.js +201 -0
- package/src/components/molecules/slider/index.jsx +15 -0
- package/src/components/molecules/slider/styles.js +0 -0
- package/src/components/myprojects/export.js +5 -0
- package/src/components/myprojects/index.jsx +445 -0
- package/src/components/myprojects/styles.js +241 -0
- package/src/components/sidebar/custom-accordion.jsx +48 -0
- package/src/components/sidebar/export.js +15 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +73 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +101 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +149 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +316 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +108 -0
- package/src/components/sidebar/panel-element-editor/element-editor.jsx +1070 -0
- package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
- package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +104 -0
- package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +155 -0
- package/src/components/sidebar/panel-group-editor.jsx +272 -0
- package/src/components/sidebar/panel-groups.jsx +310 -0
- package/src/components/sidebar/panel-guides.jsx +192 -0
- package/src/components/sidebar/panel-layer-elements.jsx +298 -0
- package/src/components/sidebar/panel-layers.jsx +381 -0
- package/src/components/sidebar/panel.jsx +71 -0
- package/src/components/sidebar/sidebar.jsx +106 -0
- package/src/components/sidebar/toolbar-panel.jsx +139 -0
- package/src/components/sign/export.js +7 -0
- package/src/components/sign/main/index.jsx +523 -0
- package/src/components/sign/main/styles.js +163 -0
- package/src/components/style/button.jsx +95 -0
- package/src/components/style/cancel-button.jsx +20 -0
- package/src/components/style/content-container.jsx +29 -0
- package/src/components/style/content-title.jsx +20 -0
- package/src/components/style/delete-button.jsx +23 -0
- package/src/components/style/export.jsx +48 -0
- package/src/components/style/form-block.jsx +13 -0
- package/src/components/style/form-color-input.jsx +27 -0
- package/src/components/style/form-label.jsx +15 -0
- package/src/components/style/form-number-input.jsx +196 -0
- package/src/components/style/form-number-input_2.jsx +191 -0
- package/src/components/style/form-select.jsx +38 -0
- package/src/components/style/form-slider.jsx +36 -0
- package/src/components/style/form-submit-button.jsx +23 -0
- package/src/components/style/form-text-input.jsx +65 -0
- package/src/components/toolbar/button/ControlButton.jsx +41 -0
- package/src/components/toolbar/button/DirectionButton.jsx +34 -0
- package/src/components/toolbar/button/RightButton.jsx +103 -0
- package/src/components/toolbar/button/ToggleButton.jsx +41 -0
- package/src/components/toolbar/button/index.jsx +55 -0
- package/src/components/toolbar/button/styles.js +127 -0
- package/src/components/toolbar/components/DoorStyleMenu.jsx +103 -0
- package/src/components/toolbar/components/Pricing.jsx +126 -0
- package/src/components/toolbar/components/ReviewForQuote.jsx +635 -0
- package/src/components/toolbar/export.js +21 -0
- package/src/components/toolbar/main/Alert.js +122 -0
- package/src/components/toolbar/main/TakePictureModal.jsx +104 -0
- package/src/components/toolbar/main/confirm-popup.jsx +99 -0
- package/src/components/toolbar/main/index.jsx +5627 -0
- package/src/components/toolbar/main/myComponents.js +123 -0
- package/src/components/toolbar/main/styles.js +696 -0
- package/src/components/toolbar/plugin-item.jsx +123 -0
- package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +73 -0
- package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +102 -0
- package/src/components/toolbar/popup/appliance/index.jsx +83 -0
- package/src/components/toolbar/popup/autosaveprompt/index.jsx +150 -0
- package/src/components/toolbar/popup/autosaveprompt/styles.js +40 -0
- package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +73 -0
- package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +119 -0
- package/src/components/toolbar/popup/cabinet/index.jsx +85 -0
- package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +63 -0
- package/src/components/toolbar/popup/doorStyle/index.jsx +71 -0
- package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +139 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +2 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +157 -0
- package/src/components/toolbar/popup/downloadsummary/index.jsx +643 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +51 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +175 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +283 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +2257 -0
- package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +93 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +132 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +2198 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +152 -0
- package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +149 -0
- package/src/components/toolbar/popup/downloadsummary/styles.js +453 -0
- package/src/components/toolbar/popup/finishingtouch/category/index.jsx +34 -0
- package/src/components/toolbar/popup/finishingtouch/index.jsx +58 -0
- package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +112 -0
- package/src/components/toolbar/popup/finishingtouch/product/index.jsx +116 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +101 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +254 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +86 -0
- package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +109 -0
- package/src/components/toolbar/popup/floorplan/index.jsx +60 -0
- package/src/components/toolbar/popup/index.jsx +241 -0
- package/src/components/toolbar/popup/newproject/index.jsx +59 -0
- package/src/components/toolbar/popup/newproject/styles.js +41 -0
- package/src/components/toolbar/popup/product/appliance.jsx +54 -0
- package/src/components/toolbar/popup/product/cabinetproduct.jsx +15 -0
- package/src/components/toolbar/popup/product/doorstyle.jsx +58 -0
- package/src/components/toolbar/popup/product/doorstyleproduct.jsx +47 -0
- package/src/components/toolbar/popup/product/floor.jsx +36 -0
- package/src/components/toolbar/popup/product/floorproduct.jsx +42 -0
- package/src/components/toolbar/popup/product/index.jsx +36 -0
- package/src/components/toolbar/popup/product/primary.jsx +77 -0
- package/src/components/toolbar/popup/product/productline.jsx +93 -0
- package/src/components/toolbar/popup/product/reviewItem.jsx +427 -0
- package/src/components/toolbar/popup/product/reviewMolding.jsx +310 -0
- package/src/components/toolbar/popup/product/styles.js +260 -0
- package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +146 -0
- package/src/components/toolbar/popup/savedesign/index.jsx +495 -0
- package/src/components/toolbar/popup/savedesign/styles.js +151 -0
- package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +87 -0
- package/src/components/toolbar/popup/styles.js +909 -0
- package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +192 -0
- package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +96 -0
- package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +54 -0
- package/src/components/toolbar/popup/submitforquote/StepDots.jsx +25 -0
- package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +116 -0
- package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +38 -0
- package/src/components/toolbar/popup/submitforquote/index.jsx +698 -0
- package/src/components/toolbar/popup/submitforquote/styles.js +294 -0
- package/src/components/toolbar/popup/submitprompt/index.jsx +89 -0
- package/src/components/toolbar/popup/submitprompt/styles.js +42 -0
- package/src/components/toolbar/toolbar-button.jsx +90 -0
- package/src/components/toolbar/toolbar-load-button.jsx +36 -0
- package/src/components/toolbar/toolbar-save-button.jsx +32 -0
- package/src/components/tutorial-view/Modal.jsx +584 -0
- package/src/components/tutorial-view/styles.js +65 -0
- package/src/components/viewer2d/area.jsx +98 -0
- package/src/components/viewer2d/export.js +48 -0
- package/src/components/viewer2d/grids/grid-horizontal-streak.jsx +40 -0
- package/src/components/viewer2d/grids/grid-streak.jsx +32 -0
- package/src/components/viewer2d/grids/grid-vertical-streak.jsx +41 -0
- package/src/components/viewer2d/grids/grids.jsx +30 -0
- package/src/components/viewer2d/group.jsx +57 -0
- package/src/components/viewer2d/item.jsx +618 -0
- package/src/components/viewer2d/layer.jsx +214 -0
- package/src/components/viewer2d/line.jsx +1358 -0
- package/src/components/viewer2d/ruler.jsx +136 -0
- package/src/components/viewer2d/rulerDist.jsx +192 -0
- package/src/components/viewer2d/rulerX.jsx +141 -0
- package/src/components/viewer2d/rulerY.jsx +138 -0
- package/src/components/viewer2d/scene.jsx +94 -0
- package/src/components/viewer2d/snap.jsx +118 -0
- package/src/components/viewer2d/state.jsx +77 -0
- package/src/components/viewer2d/utils.js +195 -0
- package/src/components/viewer2d/vertex.jsx +76 -0
- package/src/components/viewer2d/viewer2d.jsx +1830 -0
- package/src/components/viewer3d/camera-controls-module/camera-controls.module.js +3078 -0
- package/src/components/viewer3d/dcm.js +226 -0
- package/src/components/viewer3d/fbm.js +383 -0
- package/src/components/viewer3d/front3D.jsx +63 -0
- package/src/components/viewer3d/grid-creator.js +25 -0
- package/src/components/viewer3d/grids/grid-horizontal-streak.js +41 -0
- package/src/components/viewer3d/grids/grid-streak.js +34 -0
- package/src/components/viewer3d/grids/grid-vertical-streak.js +42 -0
- package/src/components/viewer3d/libs/first-person-controls.js +70 -0
- package/src/components/viewer3d/libs/helvetiker_regular.typeface.js +1265 -0
- package/src/components/viewer3d/libs/mtl-loader.js +462 -0
- package/src/components/viewer3d/libs/obj-loader.js +653 -0
- package/src/components/viewer3d/libs/orbit-controls.js +945 -0
- package/src/components/viewer3d/libs/pointer-lock-controls.js +67 -0
- package/src/components/viewer3d/lrm.js +358 -0
- package/src/components/viewer3d/model.js +830 -0
- package/src/components/viewer3d/pointer-lock-navigation.js +140 -0
- package/src/components/viewer3d/ruler-utils/itemRect.jsx +91 -0
- package/src/components/viewer3d/ruler-utils/layer3D.jsx +528 -0
- package/src/components/viewer3d/ruler-utils/ruler3D.jsx +218 -0
- package/src/components/viewer3d/ruler-utils/scene3D.jsx +87 -0
- package/src/components/viewer3d/ruler-utils/state3D.jsx +25 -0
- package/src/components/viewer3d/scene-creator.js +5169 -0
- package/src/components/viewer3d/three-memory-cleaner.js +65 -0
- package/src/components/viewer3d/viewer3d-first-person.js +395 -0
- package/src/components/viewer3d/viewer3d.js +3376 -0
- package/src/components/wizardstep/button/styles.js +677 -0
- package/src/components/wizardstep/export.js +5 -0
- package/src/components/wizardstep/index.jsx +1372 -0
- package/src/components/wizardstep/styles.js +688 -0
- package/src/components/wizardstep/wizardstep-content-button.jsx +198 -0
- package/src/components/wizardstep/wizardstep-toggle-button.jsx +101 -0
- package/src/constants.js +731 -0
- package/src/index.js +32 -0
- package/src/models.js +541 -0
- package/src/plugins/SVGLoader.js +1991 -0
- package/src/plugins/autosave.js +39 -0
- package/src/plugins/console-debugger.js +36 -0
- package/src/plugins/export.js +11 -0
- package/src/plugins/keyboard.js +194 -0
- package/src/reducers/areas-reducer.js +13 -0
- package/src/reducers/export.js +39 -0
- package/src/reducers/groups-reducer.js +73 -0
- package/src/reducers/holes-reducer.js +125 -0
- package/src/reducers/items-reducer.js +286 -0
- package/src/reducers/lines-reducer.js +96 -0
- package/src/reducers/project-reducer.js +239 -0
- package/src/reducers/reducer.js +59 -0
- package/src/reducers/scene-reducer.js +41 -0
- package/src/reducers/user-reducer.js +30 -0
- package/src/reducers/vertices-reducer.js +34 -0
- package/src/reducers/viewer2d-reducer.js +81 -0
- package/src/reducers/viewer3d-reducer.js +65 -0
- package/src/shared-style.js +72 -0
- package/src/translator/en.js +106 -0
- package/src/translator/it.js +80 -0
- package/src/translator/ru.js +80 -0
- package/src/translator/translator.js +81 -0
- package/src/utils/browser.js +36 -0
- package/src/utils/email-validator.js +5 -0
- package/src/utils/export.js +39 -0
- package/src/utils/geometry.js +2572 -0
- package/src/utils/get-edges-of-subgraphs.js +29 -0
- package/src/utils/graph-cycles.js +259 -0
- package/src/utils/graph-inner-cycles.js +49 -0
- package/src/utils/graph.js +147 -0
- package/src/utils/helper.js +431 -0
- package/src/utils/history.js +37 -0
- package/src/utils/id-broker.js +9 -0
- package/src/utils/logger.js +8 -0
- package/src/utils/math.js +51 -0
- package/src/utils/molding.js +973 -0
- package/src/utils/name-generator.js +5 -0
- package/src/utils/objects-utils.js +56 -0
- package/src/utils/phone-validator.js +4 -0
- package/src/utils/process-black-list.js +10 -0
- package/src/utils/react-if.jsx +20 -0
- package/src/utils/snap-scene.js +102 -0
- package/src/utils/snap.js +184 -0
- package/src/utils/threeCSG.es6.js +578 -0
- package/src/version.js +1 -0
- package/es/@history.js +0 -3
- package/es/@history.js.map +0 -1
- package/es/AppContext.js +0 -4
- package/es/AppContext.js.map +0 -1
- package/es/KitchenConfigurator.js +0 -1345
- package/es/KitchenConfigurator.js.map +0 -1
- package/es/KitchenConfiguratorApp.js +0 -532
- package/es/KitchenConfiguratorApp.js.map +0 -1
- package/es/actions/area-actions.js +0 -15
- package/es/actions/area-actions.js.map +0 -1
- package/es/actions/export.js +0 -26
- package/es/actions/export.js.map +0 -1
- package/es/actions/groups-actions.js +0 -90
- package/es/actions/groups-actions.js.map +0 -1
- package/es/actions/holes-actions.js +0 -120
- package/es/actions/holes-actions.js.map +0 -1
- package/es/actions/items-actions.js +0 -314
- package/es/actions/items-actions.js.map +0 -1
- package/es/actions/lines-actions.js +0 -83
- package/es/actions/lines-actions.js.map +0 -1
- package/es/actions/project-actions.js +0 -282
- package/es/actions/project-actions.js.map +0 -1
- package/es/actions/scene-actions.js +0 -34
- package/es/actions/scene-actions.js.map +0 -1
- package/es/actions/user-actions.js +0 -59
- package/es/actions/user-actions.js.map +0 -1
- package/es/actions/vertices-actions.js +0 -28
- package/es/actions/vertices-actions.js.map +0 -1
- package/es/actions/viewer2d-actions.js +0 -59
- package/es/actions/viewer2d-actions.js.map +0 -1
- package/es/actions/viewer3d-actions.js +0 -24
- package/es/actions/viewer3d-actions.js.map +0 -1
- package/es/catalog/areas/area/planner-element.js +0 -41
- package/es/catalog/areas/area/planner-element.js.map +0 -1
- package/es/catalog/catalog.js +0 -278
- package/es/catalog/catalog.js.map +0 -1
- package/es/catalog/factories/area-factory-3d.js +0 -183
- package/es/catalog/factories/area-factory-3d.js.map +0 -1
- package/es/catalog/factories/area-factory.js +0 -82
- package/es/catalog/factories/area-factory.js.map +0 -1
- package/es/catalog/factories/export.js +0 -8
- package/es/catalog/factories/export.js.map +0 -1
- package/es/catalog/factories/wall-factory-3d.js +0 -203
- package/es/catalog/factories/wall-factory-3d.js.map +0 -1
- package/es/catalog/factories/wall-factory.js +0 -269
- package/es/catalog/factories/wall-factory.js.map +0 -1
- package/es/catalog/holes/door-closet/planner-element.js +0 -223
- package/es/catalog/holes/door-closet/planner-element.js.map +0 -1
- package/es/catalog/holes/door-double/planner-element.js +0 -316
- package/es/catalog/holes/door-double/planner-element.js.map +0 -1
- package/es/catalog/holes/door-exterior/planner-element.js +0 -216
- package/es/catalog/holes/door-exterior/planner-element.js.map +0 -1
- package/es/catalog/holes/door-interior/planner-element.js +0 -228
- package/es/catalog/holes/door-interior/planner-element.js.map +0 -1
- package/es/catalog/holes/door-panic/planner-element.js +0 -504
- package/es/catalog/holes/door-panic/planner-element.js.map +0 -1
- package/es/catalog/holes/door-panic-double/planner-element.js +0 -464
- package/es/catalog/holes/door-panic-double/planner-element.js.map +0 -1
- package/es/catalog/holes/door-sliding/planner-element.js +0 -226
- package/es/catalog/holes/door-sliding/planner-element.js.map +0 -1
- package/es/catalog/holes/doorway-framed/planner-element.js +0 -146
- package/es/catalog/holes/doorway-framed/planner-element.js.map +0 -1
- package/es/catalog/holes/doorway-frameless/planner-element.js +0 -105
- package/es/catalog/holes/doorway-frameless/planner-element.js.map +0 -1
- package/es/catalog/holes/window-clear/planner-element.js +0 -167
- package/es/catalog/holes/window-clear/planner-element.js.map +0 -1
- package/es/catalog/holes/window-cross/planner-element.js +0 -166
- package/es/catalog/holes/window-cross/planner-element.js.map +0 -1
- package/es/catalog/holes/window-double-hung/planner-element.js +0 -304
- package/es/catalog/holes/window-double-hung/planner-element.js.map +0 -1
- package/es/catalog/holes/window-vertical/planner-element.js +0 -277
- package/es/catalog/holes/window-vertical/planner-element.js.map +0 -1
- package/es/catalog/lines/wall/planner-element.js +0 -71
- package/es/catalog/lines/wall/planner-element.js.map +0 -1
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -30
- package/es/catalog/molding/molding-dcm/planner-element.js.map +0 -1
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -30
- package/es/catalog/molding/molding-fbm/planner-element.js.map +0 -1
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -30
- package/es/catalog/molding/molding-lrm/planner-element.js.map +0 -1
- package/es/catalog/properties/export.js +0 -22
- package/es/catalog/properties/export.js.map +0 -1
- package/es/catalog/properties/property-checkbox.js +0 -72
- package/es/catalog/properties/property-checkbox.js.map +0 -1
- package/es/catalog/properties/property-color.js +0 -40
- package/es/catalog/properties/property-color.js.map +0 -1
- package/es/catalog/properties/property-enum.js +0 -56
- package/es/catalog/properties/property-enum.js.map +0 -1
- package/es/catalog/properties/property-hidden.js +0 -20
- package/es/catalog/properties/property-hidden.js.map +0 -1
- package/es/catalog/properties/property-lenght-measure.js +0 -102
- package/es/catalog/properties/property-lenght-measure.js.map +0 -1
- package/es/catalog/properties/property-length-measure.js +0 -86
- package/es/catalog/properties/property-length-measure.js.map +0 -1
- package/es/catalog/properties/property-length-measure_hole.js +0 -102
- package/es/catalog/properties/property-length-measure_hole.js.map +0 -1
- package/es/catalog/properties/property-number.js +0 -49
- package/es/catalog/properties/property-number.js.map +0 -1
- package/es/catalog/properties/property-read-only.js +0 -27
- package/es/catalog/properties/property-read-only.js.map +0 -1
- package/es/catalog/properties/property-string.js +0 -49
- package/es/catalog/properties/property-string.js.map +0 -1
- package/es/catalog/properties/property-toggle.js +0 -40
- package/es/catalog/properties/property-toggle.js.map +0 -1
- package/es/catalog/properties/shared-property-style.js +0 -15
- package/es/catalog/properties/shared-property-style.js.map +0 -1
- package/es/catalog/utils/FuseUtils.js +0 -83
- package/es/catalog/utils/FuseUtils.js.map +0 -1
- package/es/catalog/utils/exporter.js +0 -149
- package/es/catalog/utils/exporter.js.map +0 -1
- package/es/catalog/utils/geom-utils.js +0 -190
- package/es/catalog/utils/geom-utils.js.map +0 -1
- package/es/catalog/utils/item-loader.js +0 -1522
- package/es/catalog/utils/item-loader.js.map +0 -1
- package/es/catalog/utils/load-obj.js +0 -92
- package/es/catalog/utils/load-obj.js.map +0 -1
- package/es/catalog/utils/mtl-loader.js +0 -358
- package/es/catalog/utils/mtl-loader.js.map +0 -1
- package/es/catalog/utils/obj-loader.js +0 -477
- package/es/catalog/utils/obj-loader.js.map +0 -1
- package/es/class/FuseUtils.js +0 -83
- package/es/class/FuseUtils.js.map +0 -1
- package/es/class/area.js +0 -146
- package/es/class/area.js.map +0 -1
- package/es/class/export.js +0 -25
- package/es/class/export.js.map +0 -1
- package/es/class/group.js +0 -441
- package/es/class/group.js.map +0 -1
- package/es/class/guide.js +0 -63
- package/es/class/guide.js.map +0 -1
- package/es/class/hole.js +0 -931
- package/es/class/hole.js.map +0 -1
- package/es/class/item.js +0 -1888
- package/es/class/item.js.map +0 -1
- package/es/class/layer.js +0 -668
- package/es/class/layer.js.map +0 -1
- package/es/class/line.js +0 -1290
- package/es/class/line.js.map +0 -1
- package/es/class/project.js +0 -823
- package/es/class/project.js.map +0 -1
- package/es/class/vertex.js +0 -267
- package/es/class/vertex.js.map +0 -1
- package/es/components/atoms/Snackbar/index.js +0 -50
- package/es/components/atoms/Snackbar/index.js.map +0 -1
- package/es/components/atoms/radio-button/index.js +0 -26
- package/es/components/atoms/radio-button/index.js.map +0 -1
- package/es/components/atoms/radio-button/styles.js +0 -5
- package/es/components/atoms/radio-button/styles.js.map +0 -1
- package/es/components/button/MainButton.js +0 -92
- package/es/components/button/MainButton.js.map +0 -1
- package/es/components/button/ToggleMeasureButton.js +0 -56
- package/es/components/button/ToggleMeasureButton.js.map +0 -1
- package/es/components/catalog-view/catalog-breadcrumb.js +0 -53
- package/es/components/catalog-view/catalog-breadcrumb.js.map +0 -1
- package/es/components/catalog-view/catalog-item.js +0 -226
- package/es/components/catalog-view/catalog-item.js.map +0 -1
- package/es/components/catalog-view/catalog-list.js +0 -182
- package/es/components/catalog-view/catalog-list.js.map +0 -1
- package/es/components/catalog-view/catalog-page-item.js +0 -130
- package/es/components/catalog-view/catalog-page-item.js.map +0 -1
- package/es/components/catalog-view/catalog-turn-back-page-item.js +0 -106
- package/es/components/catalog-view/catalog-turn-back-page-item.js.map +0 -1
- package/es/components/configurator/custom-configurator.js +0 -94
- package/es/components/configurator/custom-configurator.js.map +0 -1
- package/es/components/configurator/project-configurator.js +0 -131
- package/es/components/configurator/project-configurator.js.map +0 -1
- package/es/components/content.js +0 -123
- package/es/components/content.js.map +0 -1
- package/es/components/export.js +0 -24
- package/es/components/export.js.map +0 -1
- package/es/components/firstsetting/button/styles.js +0 -27
- package/es/components/firstsetting/button/styles.js.map +0 -1
- package/es/components/firstsetting/export.js +0 -9
- package/es/components/firstsetting/export.js.map +0 -1
- package/es/components/firstsetting/firstsetting-content-button.js +0 -217
- package/es/components/firstsetting/firstsetting-content-button.js.map +0 -1
- package/es/components/firstsetting/firstsetting-toggle-button.js +0 -126
- package/es/components/firstsetting/firstsetting-toggle-button.js.map +0 -1
- package/es/components/firstsetting/firstsetting.js +0 -626
- package/es/components/firstsetting/firstsetting.js.map +0 -1
- package/es/components/footerbar/button/ControlButton.js +0 -72
- package/es/components/footerbar/button/ControlButton.js.map +0 -1
- package/es/components/footerbar/button/DirectionButton.js +0 -69
- package/es/components/footerbar/button/DirectionButton.js.map +0 -1
- package/es/components/footerbar/button/DirectionPanSpinButton.js +0 -50
- package/es/components/footerbar/button/DirectionPanSpinButton.js.map +0 -1
- package/es/components/footerbar/button/ToggleButton.js +0 -76
- package/es/components/footerbar/button/ToggleButton.js.map +0 -1
- package/es/components/footerbar/button/ToggleConvertButton.js +0 -73
- package/es/components/footerbar/button/ToggleConvertButton.js.map +0 -1
- package/es/components/footerbar/button/ToggleMeasureButton.js +0 -52
- package/es/components/footerbar/button/ToggleMeasureButton.js.map +0 -1
- package/es/components/footerbar/button/styles.js +0 -22
- package/es/components/footerbar/button/styles.js.map +0 -1
- package/es/components/footerbar/export.js +0 -9
- package/es/components/footerbar/export.js.map +0 -1
- package/es/components/footerbar/footer-content-button.js +0 -217
- package/es/components/footerbar/footer-content-button.js.map +0 -1
- package/es/components/footerbar/footer-toggle-button.js +0 -126
- package/es/components/footerbar/footer-toggle-button.js.map +0 -1
- package/es/components/footerbar/footerbar.js +0 -801
- package/es/components/footerbar/footerbar.js.map +0 -1
- package/es/components/footerbar/styles.js +0 -34
- package/es/components/footerbar/styles.js.map +0 -1
- package/es/components/header/button/MenuButton.js +0 -70
- package/es/components/header/button/MenuButton.js.map +0 -1
- package/es/components/header/button/SaveButton.js +0 -48
- package/es/components/header/button/SaveButton.js.map +0 -1
- package/es/components/header/button/styles.js +0 -59
- package/es/components/header/button/styles.js.map +0 -1
- package/es/components/header/export.js +0 -5
- package/es/components/header/export.js.map +0 -1
- package/es/components/header/header.js +0 -550
- package/es/components/header/header.js.map +0 -1
- package/es/components/header/styles.js +0 -41
- package/es/components/header/styles.js.map +0 -1
- package/es/components/login/Login.js +0 -86
- package/es/components/login/Login.js.map +0 -1
- package/es/components/login/LoginForm/index.js +0 -132
- package/es/components/login/LoginForm/index.js.map +0 -1
- package/es/components/login/Register.js +0 -96
- package/es/components/login/Register.js.map +0 -1
- package/es/components/login/RegisterForm/index.js +0 -230
- package/es/components/login/RegisterForm/index.js.map +0 -1
- package/es/components/login/jwtService.js +0 -232
- package/es/components/login/jwtService.js.map +0 -1
- package/es/components/molecules/slider/index.js +0 -13
- package/es/components/molecules/slider/index.js.map +0 -1
- package/es/components/molecules/slider/styles.js +0 -2
- package/es/components/molecules/slider/styles.js.map +0 -1
- package/es/components/myprojects/export.js +0 -5
- package/es/components/myprojects/export.js.map +0 -1
- package/es/components/myprojects/index.js +0 -446
- package/es/components/myprojects/index.js.map +0 -1
- package/es/components/myprojects/styles.js +0 -24
- package/es/components/myprojects/styles.js.map +0 -1
- package/es/components/sidebar/custom-accordion.js +0 -38
- package/es/components/sidebar/custom-accordion.js.map +0 -1
- package/es/components/sidebar/export.js +0 -14
- package/es/components/sidebar/export.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js +0 -65
- package/es/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js +0 -116
- package/es/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js +0 -126
- package/es/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js +0 -251
- package/es/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js +0 -75
- package/es/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/element-editor.js +0 -878
- package/es/components/sidebar/panel-element-editor/element-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/multi-elements-editor.js +0 -2
- package/es/components/sidebar/panel-element-editor/multi-elements-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/panel-element-editor.js +0 -49
- package/es/components/sidebar/panel-element-editor/panel-element-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/panel-multi-elements-editor.js +0 -118
- package/es/components/sidebar/panel-element-editor/panel-multi-elements-editor.js.map +0 -1
- package/es/components/sidebar/panel-group-editor.js +0 -211
- package/es/components/sidebar/panel-group-editor.js.map +0 -1
- package/es/components/sidebar/panel-groups.js +0 -267
- package/es/components/sidebar/panel-groups.js.map +0 -1
- package/es/components/sidebar/panel-guides.js +0 -185
- package/es/components/sidebar/panel-guides.js.map +0 -1
- package/es/components/sidebar/panel-layer-elements.js +0 -251
- package/es/components/sidebar/panel-layer-elements.js.map +0 -1
- package/es/components/sidebar/panel-layers.js +0 -340
- package/es/components/sidebar/panel-layers.js.map +0 -1
- package/es/components/sidebar/panel.js +0 -103
- package/es/components/sidebar/panel.js.map +0 -1
- package/es/components/sidebar/sidebar.js +0 -109
- package/es/components/sidebar/sidebar.js.map +0 -1
- package/es/components/sidebar/toolbar-panel.js +0 -164
- package/es/components/sidebar/toolbar-panel.js.map +0 -1
- package/es/components/sign/export.js +0 -6
- package/es/components/sign/export.js.map +0 -1
- package/es/components/sign/main/index.js +0 -560
- package/es/components/sign/main/index.js.map +0 -1
- package/es/components/sign/main/styles.js +0 -20
- package/es/components/sign/main/styles.js.map +0 -1
- package/es/components/style/button.js +0 -114
- package/es/components/style/button.js.map +0 -1
- package/es/components/style/cancel-button.js +0 -23
- package/es/components/style/cancel-button.js.map +0 -1
- package/es/components/style/content-container.js +0 -34
- package/es/components/style/content-container.js.map +0 -1
- package/es/components/style/content-title.js +0 -30
- package/es/components/style/content-title.js.map +0 -1
- package/es/components/style/delete-button.js +0 -26
- package/es/components/style/delete-button.js.map +0 -1
- package/es/components/style/export.js +0 -32
- package/es/components/style/export.js.map +0 -1
- package/es/components/style/form-block.js +0 -25
- package/es/components/style/form-block.js.map +0 -1
- package/es/components/style/form-color-input.js +0 -28
- package/es/components/style/form-color-input.js.map +0 -1
- package/es/components/style/form-label.js +0 -27
- package/es/components/style/form-label.js.map +0 -1
- package/es/components/style/form-number-input.js +0 -190
- package/es/components/style/form-number-input.js.map +0 -1
- package/es/components/style/form-number-input_2.js +0 -207
- package/es/components/style/form-number-input_2.js.map +0 -1
- package/es/components/style/form-select.js +0 -21
- package/es/components/style/form-select.js.map +0 -1
- package/es/components/style/form-slider.js +0 -46
- package/es/components/style/form-slider.js.map +0 -1
- package/es/components/style/form-submit-button.js +0 -27
- package/es/components/style/form-submit-button.js.map +0 -1
- package/es/components/style/form-text-input.js +0 -77
- package/es/components/style/form-text-input.js.map +0 -1
- package/es/components/toolbar/button/ControlButton.js +0 -69
- package/es/components/toolbar/button/ControlButton.js.map +0 -1
- package/es/components/toolbar/button/DirectionButton.js +0 -50
- package/es/components/toolbar/button/DirectionButton.js.map +0 -1
- package/es/components/toolbar/button/RightButton.js +0 -133
- package/es/components/toolbar/button/RightButton.js.map +0 -1
- package/es/components/toolbar/button/ToggleButton.js +0 -59
- package/es/components/toolbar/button/ToggleButton.js.map +0 -1
- package/es/components/toolbar/button/index.js +0 -88
- package/es/components/toolbar/button/index.js.map +0 -1
- package/es/components/toolbar/button/styles.js +0 -14
- package/es/components/toolbar/button/styles.js.map +0 -1
- package/es/components/toolbar/components/DoorStyleMenu.js +0 -105
- package/es/components/toolbar/components/DoorStyleMenu.js.map +0 -1
- package/es/components/toolbar/components/Pricing.js +0 -101
- package/es/components/toolbar/components/Pricing.js.map +0 -1
- package/es/components/toolbar/components/ReviewForQuote.js +0 -476
- package/es/components/toolbar/components/ReviewForQuote.js.map +0 -1
- package/es/components/toolbar/export.js +0 -14
- package/es/components/toolbar/export.js.map +0 -1
- package/es/components/toolbar/main/Alert.js +0 -125
- package/es/components/toolbar/main/Alert.js.map +0 -1
- package/es/components/toolbar/main/TakePictureModal.js +0 -100
- package/es/components/toolbar/main/TakePictureModal.js.map +0 -1
- package/es/components/toolbar/main/confirm-popup.js +0 -88
- package/es/components/toolbar/main/confirm-popup.js.map +0 -1
- package/es/components/toolbar/main/index.js +0 -4612
- package/es/components/toolbar/main/index.js.map +0 -1
- package/es/components/toolbar/main/myComponents.js +0 -118
- package/es/components/toolbar/main/myComponents.js.map +0 -1
- package/es/components/toolbar/main/styles.js +0 -64
- package/es/components/toolbar/main/styles.js.map +0 -1
- package/es/components/toolbar/plugin-item.js +0 -150
- package/es/components/toolbar/plugin-item.js.map +0 -1
- package/es/components/toolbar/popup/appliance/appliance-category/index.js +0 -77
- package/es/components/toolbar/popup/appliance/appliance-category/index.js.map +0 -1
- package/es/components/toolbar/popup/appliance/choose-appliance/index.js +0 -76
- package/es/components/toolbar/popup/appliance/choose-appliance/index.js.map +0 -1
- package/es/components/toolbar/popup/appliance/index.js +0 -81
- package/es/components/toolbar/popup/appliance/index.js.map +0 -1
- package/es/components/toolbar/popup/autosaveprompt/index.js +0 -91
- package/es/components/toolbar/popup/autosaveprompt/index.js.map +0 -1
- package/es/components/toolbar/popup/autosaveprompt/styles.js +0 -9
- package/es/components/toolbar/popup/autosaveprompt/styles.js.map +0 -1
- package/es/components/toolbar/popup/cabinet/cabinet-category/index.js +0 -77
- package/es/components/toolbar/popup/cabinet/cabinet-category/index.js.map +0 -1
- package/es/components/toolbar/popup/cabinet/choose-product/index.js +0 -98
- package/es/components/toolbar/popup/cabinet/choose-product/index.js.map +0 -1
- package/es/components/toolbar/popup/cabinet/index.js +0 -83
- package/es/components/toolbar/popup/cabinet/index.js.map +0 -1
- package/es/components/toolbar/popup/doorStyle/choose-style/index.js +0 -50
- package/es/components/toolbar/popup/doorStyle/choose-style/index.js.map +0 -1
- package/es/components/toolbar/popup/doorStyle/index.js +0 -61
- package/es/components/toolbar/popup/doorStyle/index.js.map +0 -1
- package/es/components/toolbar/popup/doorStyle/style-category/index.js +0 -143
- package/es/components/toolbar/popup/doorStyle/style-category/index.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -3
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryContext.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js +0 -119
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/index.js +0 -564
- package/es/components/toolbar/popup/downloadsummary/index.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show2D/show2DView.js +0 -51
- package/es/components/toolbar/popup/downloadsummary/show2D/show2DView.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js +0 -191
- package/es/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show3D/show3DView.js +0 -245
- package/es/components/toolbar/popup/downloadsummary/show3D/show3DView.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js +0 -1758
- package/es/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -87
- package/es/components/toolbar/popup/downloadsummary/showCabinetInfo.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js +0 -116
- package/es/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js +0 -1710
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js +0 -175
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showWarranty.js +0 -106
- package/es/components/toolbar/popup/downloadsummary/showWarranty.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/styles.js +0 -40
- package/es/components/toolbar/popup/downloadsummary/styles.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/category/index.js +0 -35
- package/es/components/toolbar/popup/finishingtouch/category/index.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/index.js +0 -47
- package/es/components/toolbar/popup/finishingtouch/index.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/material-edit.js +0 -156
- package/es/components/toolbar/popup/finishingtouch/material-edit.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/product/index.js +0 -56
- package/es/components/toolbar/popup/finishingtouch/product/index.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js +0 -116
- package/es/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/choose-floor/index.js +0 -246
- package/es/components/toolbar/popup/floorplan/choose-floor/index.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -11
- package/es/components/toolbar/popup/floorplan/choose-floor/styles.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/floor-category/index.js +0 -90
- package/es/components/toolbar/popup/floorplan/floor-category/index.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/index.js +0 -49
- package/es/components/toolbar/popup/floorplan/index.js.map +0 -1
- package/es/components/toolbar/popup/index.js +0 -188
- package/es/components/toolbar/popup/index.js.map +0 -1
- package/es/components/toolbar/popup/newproject/index.js +0 -67
- package/es/components/toolbar/popup/newproject/index.js.map +0 -1
- package/es/components/toolbar/popup/newproject/styles.js +0 -9
- package/es/components/toolbar/popup/newproject/styles.js.map +0 -1
- package/es/components/toolbar/popup/product/appliance.js +0 -65
- package/es/components/toolbar/popup/product/appliance.js.map +0 -1
- package/es/components/toolbar/popup/product/cabinetproduct.js +0 -25
- package/es/components/toolbar/popup/product/cabinetproduct.js.map +0 -1
- package/es/components/toolbar/popup/product/doorstyle.js +0 -50
- package/es/components/toolbar/popup/product/doorstyle.js.map +0 -1
- package/es/components/toolbar/popup/product/doorstyleproduct.js +0 -51
- package/es/components/toolbar/popup/product/doorstyleproduct.js.map +0 -1
- package/es/components/toolbar/popup/product/floor.js +0 -52
- package/es/components/toolbar/popup/product/floor.js.map +0 -1
- package/es/components/toolbar/popup/product/floorproduct.js +0 -61
- package/es/components/toolbar/popup/product/floorproduct.js.map +0 -1
- package/es/components/toolbar/popup/product/index.js +0 -52
- package/es/components/toolbar/popup/product/index.js.map +0 -1
- package/es/components/toolbar/popup/product/primary.js +0 -63
- package/es/components/toolbar/popup/product/primary.js.map +0 -1
- package/es/components/toolbar/popup/product/productline.js +0 -120
- package/es/components/toolbar/popup/product/productline.js.map +0 -1
- package/es/components/toolbar/popup/product/reviewItem.js +0 -338
- package/es/components/toolbar/popup/product/reviewItem.js.map +0 -1
- package/es/components/toolbar/popup/product/reviewMolding.js +0 -282
- package/es/components/toolbar/popup/product/reviewMolding.js.map +0 -1
- package/es/components/toolbar/popup/product/styles.js +0 -71
- package/es/components/toolbar/popup/product/styles.js.map +0 -1
- package/es/components/toolbar/popup/savedesign/FullPictureForm.js +0 -161
- package/es/components/toolbar/popup/savedesign/FullPictureForm.js.map +0 -1
- package/es/components/toolbar/popup/savedesign/index.js +0 -508
- package/es/components/toolbar/popup/savedesign/index.js.map +0 -1
- package/es/components/toolbar/popup/savedesign/styles.js +0 -19
- package/es/components/toolbar/popup/savedesign/styles.js.map +0 -1
- package/es/components/toolbar/popup/setDoorStyleOption/index.js +0 -57
- package/es/components/toolbar/popup/setDoorStyleOption/index.js.map +0 -1
- package/es/components/toolbar/popup/styles.js +0 -98
- package/es/components/toolbar/popup/styles.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/AddToCartOptions.js +0 -157
- package/es/components/toolbar/popup/submitforquote/AddToCartOptions.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/CustomerRequestsForm.js +0 -85
- package/es/components/toolbar/popup/submitforquote/CustomerRequestsForm.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/SkipDesignerReview.js +0 -36
- package/es/components/toolbar/popup/submitforquote/SkipDesignerReview.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/StepDots.js +0 -33
- package/es/components/toolbar/popup/submitforquote/StepDots.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/cart-choice.js +0 -132
- package/es/components/toolbar/popup/submitforquote/cart-choice.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -43
- package/es/components/toolbar/popup/submitforquote/doorstyle-menus.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/index.js +0 -690
- package/es/components/toolbar/popup/submitforquote/index.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/styles.js +0 -31
- package/es/components/toolbar/popup/submitforquote/styles.js.map +0 -1
- package/es/components/toolbar/popup/submitprompt/index.js +0 -71
- package/es/components/toolbar/popup/submitprompt/index.js.map +0 -1
- package/es/components/toolbar/popup/submitprompt/styles.js +0 -9
- package/es/components/toolbar/popup/submitprompt/styles.js.map +0 -1
- package/es/components/toolbar/toolbar-button.js +0 -105
- package/es/components/toolbar/toolbar-button.js.map +0 -1
- package/es/components/toolbar/toolbar-load-button.js +0 -29
- package/es/components/toolbar/toolbar-load-button.js.map +0 -1
- package/es/components/toolbar/toolbar-save-button.js +0 -27
- package/es/components/toolbar/toolbar-save-button.js.map +0 -1
- package/es/components/tutorial-view/Modal.js +0 -498
- package/es/components/tutorial-view/Modal.js.map +0 -1
- package/es/components/tutorial-view/styles.js +0 -6
- package/es/components/tutorial-view/styles.js.map +0 -1
- package/es/components/viewer2d/area.js +0 -83
- package/es/components/viewer2d/area.js.map +0 -1
- package/es/components/viewer2d/export.js +0 -32
- package/es/components/viewer2d/export.js.map +0 -1
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -38
- package/es/components/viewer2d/grids/grid-horizontal-streak.js.map +0 -1
- package/es/components/viewer2d/grids/grid-streak.js +0 -38
- package/es/components/viewer2d/grids/grid-streak.js.map +0 -1
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -38
- package/es/components/viewer2d/grids/grid-vertical-streak.js.map +0 -1
- package/es/components/viewer2d/grids/grids.js +0 -36
- package/es/components/viewer2d/grids/grids.js.map +0 -1
- package/es/components/viewer2d/group.js +0 -54
- package/es/components/viewer2d/group.js.map +0 -1
- package/es/components/viewer2d/item.js +0 -514
- package/es/components/viewer2d/item.js.map +0 -1
- package/es/components/viewer2d/layer.js +0 -165
- package/es/components/viewer2d/layer.js.map +0 -1
- package/es/components/viewer2d/line.js +0 -889
- package/es/components/viewer2d/line.js.map +0 -1
- package/es/components/viewer2d/ruler.js +0 -101
- package/es/components/viewer2d/ruler.js.map +0 -1
- package/es/components/viewer2d/rulerDist.js +0 -147
- package/es/components/viewer2d/rulerDist.js.map +0 -1
- package/es/components/viewer2d/rulerX.js +0 -152
- package/es/components/viewer2d/rulerX.js.map +0 -1
- package/es/components/viewer2d/rulerY.js +0 -154
- package/es/components/viewer2d/rulerY.js.map +0 -1
- package/es/components/viewer2d/scene.js +0 -141
- package/es/components/viewer2d/scene.js.map +0 -1
- package/es/components/viewer2d/snap.js +0 -75
- package/es/components/viewer2d/snap.js.map +0 -1
- package/es/components/viewer2d/state.js +0 -79
- package/es/components/viewer2d/state.js.map +0 -1
- package/es/components/viewer2d/utils.js +0 -163
- package/es/components/viewer2d/utils.js.map +0 -1
- package/es/components/viewer2d/vertex.js +0 -67
- package/es/components/viewer2d/vertex.js.map +0 -1
- package/es/components/viewer2d/viewer2d.js +0 -1402
- package/es/components/viewer2d/viewer2d.js.map +0 -1
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2593
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js.map +0 -1
- package/es/components/viewer3d/dcm.js +0 -402
- package/es/components/viewer3d/dcm.js.map +0 -1
- package/es/components/viewer3d/fbm.js +0 -415
- package/es/components/viewer3d/fbm.js.map +0 -1
- package/es/components/viewer3d/front3D.js +0 -67
- package/es/components/viewer3d/front3D.js.map +0 -1
- package/es/components/viewer3d/grid-creator.js +0 -26
- package/es/components/viewer3d/grid-creator.js.map +0 -1
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +0 -37
- package/es/components/viewer3d/grids/grid-horizontal-streak.js.map +0 -1
- package/es/components/viewer3d/grids/grid-streak.js +0 -28
- package/es/components/viewer3d/grids/grid-streak.js.map +0 -1
- package/es/components/viewer3d/grids/grid-vertical-streak.js +0 -37
- package/es/components/viewer3d/grids/grid-vertical-streak.js.map +0 -1
- package/es/components/viewer3d/libs/first-person-controls.js +0 -68
- package/es/components/viewer3d/libs/first-person-controls.js.map +0 -1
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1282
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js.map +0 -1
- package/es/components/viewer3d/libs/mtl-loader.js +0 -358
- package/es/components/viewer3d/libs/mtl-loader.js.map +0 -1
- package/es/components/viewer3d/libs/obj-loader.js +0 -463
- package/es/components/viewer3d/libs/obj-loader.js.map +0 -1
- package/es/components/viewer3d/libs/orbit-controls.js +0 -699
- package/es/components/viewer3d/libs/orbit-controls.js.map +0 -1
- package/es/components/viewer3d/libs/pointer-lock-controls.js +0 -46
- package/es/components/viewer3d/libs/pointer-lock-controls.js.map +0 -1
- package/es/components/viewer3d/lrm.js +0 -306
- package/es/components/viewer3d/lrm.js.map +0 -1
- package/es/components/viewer3d/model.js +0 -709
- package/es/components/viewer3d/model.js.map +0 -1
- package/es/components/viewer3d/pointer-lock-navigation.js +0 -116
- package/es/components/viewer3d/pointer-lock-navigation.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/itemRect.js +0 -62
- package/es/components/viewer3d/ruler-utils/itemRect.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +0 -496
- package/es/components/viewer3d/ruler-utils/layer3D.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/ruler3D.js +0 -228
- package/es/components/viewer3d/ruler-utils/ruler3D.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -62
- package/es/components/viewer3d/ruler-utils/scene3D.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/state3D.js +0 -19
- package/es/components/viewer3d/ruler-utils/state3D.js.map +0 -1
- package/es/components/viewer3d/scene-creator.js +0 -3607
- package/es/components/viewer3d/scene-creator.js.map +0 -1
- package/es/components/viewer3d/three-memory-cleaner.js +0 -52
- package/es/components/viewer3d/three-memory-cleaner.js.map +0 -1
- package/es/components/viewer3d/viewer3d-first-person.js +0 -316
- package/es/components/viewer3d/viewer3d-first-person.js.map +0 -1
- package/es/components/viewer3d/viewer3d.js +0 -2504
- package/es/components/viewer3d/viewer3d.js.map +0 -1
- package/es/components/wizardstep/button/styles.js +0 -60
- package/es/components/wizardstep/button/styles.js.map +0 -1
- package/es/components/wizardstep/export.js +0 -5
- package/es/components/wizardstep/export.js.map +0 -1
- package/es/components/wizardstep/index.js +0 -971
- package/es/components/wizardstep/index.js.map +0 -1
- package/es/components/wizardstep/styles.js +0 -61
- package/es/components/wizardstep/styles.js.map +0 -1
- package/es/components/wizardstep/wizardstep-content-button.js +0 -217
- package/es/components/wizardstep/wizardstep-content-button.js.map +0 -1
- package/es/components/wizardstep/wizardstep-toggle-button.js +0 -126
- package/es/components/wizardstep/wizardstep-toggle-button.js.map +0 -1
- package/es/constants.js +0 -637
- package/es/constants.js.map +0 -1
- package/es/hooks/useCheckCart.js +0 -53
- package/es/hooks/useCheckCart.js.map +0 -1
- package/es/hooks/useGetPricesBySku.js +0 -74
- package/es/hooks/useGetPricesBySku.js.map +0 -1
- package/es/hooks/useValidateToken.js +0 -201
- package/es/hooks/useValidateToken.js.map +0 -1
- package/es/index.js +0 -17
- package/es/index.js.map +0 -1
- package/es/models.js +0 -511
- package/es/models.js.map +0 -1
- package/es/plugins/SVGLoader.js +0 -1413
- package/es/plugins/SVGLoader.js.map +0 -1
- package/es/plugins/autosave.js +0 -34
- package/es/plugins/autosave.js.map +0 -1
- package/es/plugins/console-debugger.js +0 -38
- package/es/plugins/console-debugger.js.map +0 -1
- package/es/plugins/export.js +0 -10
- package/es/plugins/export.js.map +0 -1
- package/es/plugins/keyboard.js +0 -102
- package/es/plugins/keyboard.js.map +0 -1
- package/es/reducers/areas-reducer.js +0 -13
- package/es/reducers/areas-reducer.js.map +0 -1
- package/es/reducers/export.js +0 -26
- package/es/reducers/export.js.map +0 -1
- package/es/reducers/groups-reducer.js +0 -39
- package/es/reducers/groups-reducer.js.map +0 -1
- package/es/reducers/holes-reducer.js +0 -63
- package/es/reducers/holes-reducer.js.map +0 -1
- package/es/reducers/items-reducer.js +0 -144
- package/es/reducers/items-reducer.js.map +0 -1
- package/es/reducers/lines-reducer.js +0 -46
- package/es/reducers/lines-reducer.js.map +0 -1
- package/es/reducers/project-reducer.js +0 -130
- package/es/reducers/project-reducer.js.map +0 -1
- package/es/reducers/reducer.js +0 -20
- package/es/reducers/reducer.js.map +0 -1
- package/es/reducers/scene-reducer.js +0 -29
- package/es/reducers/scene-reducer.js.map +0 -1
- package/es/reducers/user-reducer.js +0 -42
- package/es/reducers/user-reducer.js.map +0 -1
- package/es/reducers/vertices-reducer.js +0 -20
- package/es/reducers/vertices-reducer.js.map +0 -1
- package/es/reducers/viewer2d-reducer.js +0 -76
- package/es/reducers/viewer2d-reducer.js.map +0 -1
- package/es/reducers/viewer3d-reducer.js +0 -57
- package/es/reducers/viewer3d-reducer.js.map +0 -1
- package/es/shared-style.js +0 -67
- package/es/shared-style.js.map +0 -1
- package/es/styles/export.js +0 -6
- package/es/styles/export.js.map +0 -1
- package/es/styles/tabs.css +0 -40
- package/es/translator/en.js +0 -105
- package/es/translator/en.js.map +0 -1
- package/es/translator/it.js +0 -80
- package/es/translator/it.js.map +0 -1
- package/es/translator/ru.js +0 -80
- package/es/translator/ru.js.map +0 -1
- package/es/translator/translator.js +0 -85
- package/es/translator/translator.js.map +0 -1
- package/es/utils/browser.js +0 -34
- package/es/utils/browser.js.map +0 -1
- package/es/utils/email-validator.js +0 -5
- package/es/utils/email-validator.js.map +0 -1
- package/es/utils/export.js +0 -26
- package/es/utils/export.js.map +0 -1
- package/es/utils/geometry.js +0 -2237
- package/es/utils/geometry.js.map +0 -1
- package/es/utils/get-edges-of-subgraphs.js +0 -27
- package/es/utils/get-edges-of-subgraphs.js.map +0 -1
- package/es/utils/graph-cycles.js +0 -239
- package/es/utils/graph-cycles.js.map +0 -1
- package/es/utils/graph-inner-cycles.js +0 -47
- package/es/utils/graph-inner-cycles.js.map +0 -1
- package/es/utils/graph.js +0 -150
- package/es/utils/graph.js.map +0 -1
- package/es/utils/helper.js +0 -337
- package/es/utils/helper.js.map +0 -1
- package/es/utils/history.js +0 -30
- package/es/utils/history.js.map +0 -1
- package/es/utils/id-broker.js +0 -20
- package/es/utils/id-broker.js.map +0 -1
- package/es/utils/logger.js +0 -9
- package/es/utils/logger.js.map +0 -1
- package/es/utils/math.js +0 -51
- package/es/utils/math.js.map +0 -1
- package/es/utils/molding.js +0 -840
- package/es/utils/molding.js.map +0 -1
- package/es/utils/name-generator.js +0 -19
- package/es/utils/name-generator.js.map +0 -1
- package/es/utils/objects-utils.js +0 -51
- package/es/utils/objects-utils.js.map +0 -1
- package/es/utils/phone-validator.js +0 -5
- package/es/utils/phone-validator.js.map +0 -1
- package/es/utils/process-black-list.js +0 -19
- package/es/utils/process-black-list.js.map +0 -1
- package/es/utils/react-if.js +0 -19
- package/es/utils/react-if.js.map +0 -1
- package/es/utils/snap-scene.js +0 -100
- package/es/utils/snap-scene.js.map +0 -1
- package/es/utils/snap.js +0 -238
- package/es/utils/snap.js.map +0 -1
- package/es/utils/threeCSG.es6.js +0 -499
- package/es/utils/threeCSG.es6.js.map +0 -1
- package/es/version.js +0 -2
- package/es/version.js.map +0 -1
- /package/{es → src}/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/grass.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/parquet.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/tile1.jpg +0 -0
- /package/{es → src}/catalog/back.png +0 -0
- /package/{es → src}/catalog/doors.png +0 -0
- /package/{es → src}/catalog/doorways.png +0 -0
- /package/{es → src}/catalog/envMap/nx.hdr +0 -0
- /package/{es → src}/catalog/envMap/ny.hdr +0 -0
- /package/{es → src}/catalog/envMap/nz.hdr +0 -0
- /package/{es → src}/catalog/envMap/px.hdr +0 -0
- /package/{es → src}/catalog/envMap/py.hdr +0 -0
- /package/{es → src}/catalog/envMap/pz.hdr +0 -0
- /package/{es → src}/catalog/holes/door-double/door_double.png +0 -0
- /package/{es → src}/catalog/holes/door-panic/panicDoor.png +0 -0
- /package/{es → src}/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- /package/{es → src}/catalog/holes/gate/gate.jpg +0 -0
- /package/{es → src}/catalog/holes/window-clear/texture.png +0 -0
- /package/{es → src}/catalog/holes/window-cross/texture.png +0 -0
- /package/{es → src}/catalog/holes/window-double-hung/texture.png +0 -0
- /package/{es → src}/catalog/holes/window-vertical/texture.png +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks2.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks3.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/morden-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/morden.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/painted.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/plaster.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/wall.png +0 -0
- /package/{es → src}/catalog/molding/molding-dcm/texture.png +0 -0
- /package/{es → src}/catalog/molding/molding-fbm/texture.png +0 -0
- /package/{es → src}/catalog/molding/molding-lrm/texture.png +0 -0
- /package/{es → src}/catalog/windows.png +0 -0
- /package/{es → src}/components/header/header.style.css +0 -0
- /package/{es → src}/components/login/style.css +0 -0
- /package/{es → src}/components/login/style.scss +0 -0
- /package/{es → src}/components/molecules/slider/styles.scss +0 -0
- /package/{es → src}/components/toolbar/main/lShaped.json +0 -0
- /package/{es → src}/components/toolbar/main/longNarrow.json +0 -0
- /package/{es → src}/components/toolbar/main/oRectangle.json +0 -0
- /package/{es → src}/components/toolbar/main/rectangle.json +0 -0
- /package/{es → src}/components/toolbar/main/style.css +0 -0
- /package/{es → src}/components/toolbar/popup/autosaveprompt/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/downloadsummary/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/lShaped.json +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/rectangle.json +0 -0
- /package/{es → src}/components/toolbar/popup/newproject/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/product/style.css +0 -0
- /package/{es → src}/components/toolbar/popup/savedesign/savedesign.style.css +0 -0
- /package/{es → src}/components/toolbar/popup/submitforquote/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/submitprompt/styles.css +0 -0
- /package/{es → src}/components/tutorial-view/style.css +0 -0
|
@@ -1,1345 +0,0 @@
|
|
|
1
|
-
var _excluded = ["width", "height", "state", "stateExtractor"];
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7
|
-
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
8
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
9
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
10
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
11
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
12
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
15
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
16
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
17
|
-
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; }
|
|
18
|
-
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; }
|
|
19
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
20
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
21
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
22
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
23
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
24
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
25
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
27
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
28
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
29
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
30
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
31
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
33
|
-
import Dialog from '@material-ui/core/Dialog';
|
|
34
|
-
import axios from 'axios';
|
|
35
|
-
import convert from 'convert-units';
|
|
36
|
-
import { Plugins as PlannerPlugins } from './index';
|
|
37
|
-
import PropTypes from 'prop-types';
|
|
38
|
-
import React, { Component } from 'react';
|
|
39
|
-
import ReactGA from 'react-ga4';
|
|
40
|
-
import { hotjar } from 'react-hotjar';
|
|
41
|
-
import { connect } from 'react-redux';
|
|
42
|
-
import { bindActionCreators } from 'redux';
|
|
43
|
-
import styled from 'styled-components';
|
|
44
|
-
import SnackBar from './components/atoms/Snackbar';
|
|
45
|
-
import * as constants from './constants';
|
|
46
|
-
import { API_SERVER_URL, BG_COLOR_HOVER, CLIENTS_NAME, DEFAULT_FONT_FAMILY, LOCAL_STORAGE_CART_ACTION, LOCAL_STORAGE_ORIGINAL_TOKEN, LOCAL_STORAGE_TOKEN_NAME, LOCAL_STORAGE_TOKEN_VALUE, MODE, PRIMARY_GREEN_COLOR, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_1 } from './constants';
|
|
47
|
-
import { base64Decode, getPath } from './utils/helper';
|
|
48
|
-
import { isEmpty } from './components/viewer2d/utils';
|
|
49
|
-
import actions from './actions/export';
|
|
50
|
-
import Catalog from './catalog/catalog';
|
|
51
|
-
import { Project } from './class/export';
|
|
52
|
-
import { Content, FooterBarComponents, HeaderComponents, MyProjectsComonents, SignComponents, ToolbarComponents, WizardStepComponents } from './components/export';
|
|
53
|
-
import jwtService from './components/login/jwtService';
|
|
54
|
-
import './styles/export';
|
|
55
|
-
import Translator from './translator/translator';
|
|
56
|
-
import { objectsMap } from './utils/objects-utils';
|
|
57
|
-
import { VERSION } from './version';
|
|
58
|
-
import ls from 'localstorage-slim';
|
|
59
|
-
var AWS = require('aws-sdk');
|
|
60
|
-
var StyledDialog = styled(Dialog)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .MuiDialog-paperWidthSm {\n border-radius: 10px;\n }\n"])));
|
|
61
|
-
export var StyledDialogContent = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-family: ", ";\n color: ", ";\n padding: 10px 30px;\n padding-top: 30px;\n"])), DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_1);
|
|
62
|
-
export var StyledDialogAction = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n padding: 15px 30px 25px;\n"])));
|
|
63
|
-
export var StyledButton = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 10px 20px;\n cursor: pointer;\n margin-right: 10px;\n color: ", ";\n font-weight: bold;\n font-family: ", ";\n font-size: 16px;\n border-radius: 20px;\n :hover {\n background-color: ", ";\n }\n"])), SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY, BG_COLOR_HOVER);
|
|
64
|
-
var s3 = new AWS.S3({
|
|
65
|
-
accessKeyId: process.env.REACT_APP_AWS_ID,
|
|
66
|
-
secretAccessKey: process.env.REACT_APP_AWS_SECRET
|
|
67
|
-
});
|
|
68
|
-
var Header = HeaderComponents.Header;
|
|
69
|
-
var Toolbar = ToolbarComponents.Toolbar;
|
|
70
|
-
var FooterBar = FooterBarComponents.FooterBar;
|
|
71
|
-
var WizardStep = WizardStepComponents.WizardStep;
|
|
72
|
-
var Sign = SignComponents.Sign;
|
|
73
|
-
var MyProjects = MyProjectsComonents.MyProjects;
|
|
74
|
-
var toolbarW = 0;
|
|
75
|
-
var sidebarW = 250;
|
|
76
|
-
var footerBarH = 20;
|
|
77
|
-
var wrapperStyle = {
|
|
78
|
-
display: 'flex',
|
|
79
|
-
flexFlow: 'row nowrap'
|
|
80
|
-
};
|
|
81
|
-
var uploadFiles = function uploadFiles(data, filePath) {
|
|
82
|
-
var p1 = new Promise(function (resolve, reject) {
|
|
83
|
-
var params = {
|
|
84
|
-
Bucket: process.env.REACT_APP_AWS_BUCKET_NAME,
|
|
85
|
-
Key: filePath,
|
|
86
|
-
Body: data,
|
|
87
|
-
ContentType: 'application/json',
|
|
88
|
-
ACL: 'public-read'
|
|
89
|
-
};
|
|
90
|
-
s3.putObject(params, function (err, data) {
|
|
91
|
-
if (err) {
|
|
92
|
-
reject(err);
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
console.log('success');
|
|
96
|
-
resolve([data.Location]);
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
return p1;
|
|
100
|
-
};
|
|
101
|
-
var saveAlert = '';
|
|
102
|
-
var saveInterval = '';
|
|
103
|
-
var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
104
|
-
function KitchenConfigurator(props) {
|
|
105
|
-
var _utmRequestData2, _utmRequestData3, _utmRequestData4, _utmRequestData5, _utmRequestData6, _utmRequestData7, _utmRequestData8, _utmRequestData9, _utmRequestData0;
|
|
106
|
-
var _this;
|
|
107
|
-
_classCallCheck(this, KitchenConfigurator);
|
|
108
|
-
_this = _callSuper(this, KitchenConfigurator, [props]);
|
|
109
|
-
|
|
110
|
-
// utm tracking
|
|
111
|
-
// debouncedSetIsSaved = _.debounce(
|
|
112
|
-
// () => this.setState({ isSaved: false }),
|
|
113
|
-
// 200
|
|
114
|
-
// );
|
|
115
|
-
//
|
|
116
|
-
// componentDidUpdate(prevProps) {
|
|
117
|
-
// // Only strip properties if the object is not null/undefined
|
|
118
|
-
// function stripProperty(obj, properties) {
|
|
119
|
-
// if (!obj) return obj;
|
|
120
|
-
// let changed = false;
|
|
121
|
-
// const newObj = { ...obj };
|
|
122
|
-
// for (const prop of properties) {
|
|
123
|
-
// if (prop in newObj) {
|
|
124
|
-
// delete newObj[prop];
|
|
125
|
-
// changed = true;
|
|
126
|
-
// }
|
|
127
|
-
// }
|
|
128
|
-
// return changed ? newObj : obj;
|
|
129
|
-
// }
|
|
130
|
-
//
|
|
131
|
-
// const prevState = this.props.stateExtractor(prevProps.state);
|
|
132
|
-
// const currState = this.props.stateExtractor(this.props.state);
|
|
133
|
-
//
|
|
134
|
-
// // Only convert to JS once per items/areas/lines
|
|
135
|
-
// const prevLayer = prevState.scene.selectedLayer;
|
|
136
|
-
// const currLayer = currState.scene.selectedLayer;
|
|
137
|
-
//
|
|
138
|
-
// const prevItems = prevState
|
|
139
|
-
// .getIn(['scene', 'layers', prevLayer, 'items'])
|
|
140
|
-
// .toJS();
|
|
141
|
-
// const currItems = currState
|
|
142
|
-
// .getIn(['scene', 'layers', currLayer, 'items'])
|
|
143
|
-
// .toJS();
|
|
144
|
-
//
|
|
145
|
-
// const prevItemsProps = Object.values(prevItems).map(
|
|
146
|
-
// ({ x, y, rotation }) => ({ x, y, rotation })
|
|
147
|
-
// );
|
|
148
|
-
// const currItemsProps = Object.values(currItems).map(
|
|
149
|
-
// ({ x, y, rotation }) => ({ x, y, rotation })
|
|
150
|
-
// );
|
|
151
|
-
//
|
|
152
|
-
// const prevDoorStyleRaw = prevState.getIn([
|
|
153
|
-
// 'scene',
|
|
154
|
-
// 'layers',
|
|
155
|
-
// prevLayer,
|
|
156
|
-
// 'doorStyle'
|
|
157
|
-
// ]);
|
|
158
|
-
// const currDoorStyleRaw = currState.getIn([
|
|
159
|
-
// 'scene',
|
|
160
|
-
// 'layers',
|
|
161
|
-
// currLayer,
|
|
162
|
-
// 'doorStyle'
|
|
163
|
-
// ]);
|
|
164
|
-
// const prevDoorStyle = stripProperty(prevDoorStyleRaw, ['doorStyles']);
|
|
165
|
-
// const currDoorStyle = stripProperty(currDoorStyleRaw, ['doorStyles']);
|
|
166
|
-
//
|
|
167
|
-
// const prevAreasRaw = prevState
|
|
168
|
-
// .getIn(['scene', 'layers', prevLayer, 'areas'])
|
|
169
|
-
// .toJS();
|
|
170
|
-
// const currAreasRaw = currState
|
|
171
|
-
// .getIn(['scene', 'layers', currLayer, 'areas'])
|
|
172
|
-
// .toJS();
|
|
173
|
-
// const prevAreas = stripProperty(Object.values(prevAreasRaw)[0], [
|
|
174
|
-
// 'selected'
|
|
175
|
-
// ]);
|
|
176
|
-
// const currAreas = stripProperty(Object.values(currAreasRaw)[0], [
|
|
177
|
-
// 'selected'
|
|
178
|
-
// ]);
|
|
179
|
-
//
|
|
180
|
-
// const prevLinesRaw = prevState
|
|
181
|
-
// .getIn(['scene', 'layers', prevLayer, 'lines'])
|
|
182
|
-
// .toJS();
|
|
183
|
-
// const currLinesRaw = currState
|
|
184
|
-
// .getIn(['scene', 'layers', currLayer, 'lines'])
|
|
185
|
-
// .toJS();
|
|
186
|
-
// const prevLines = stripProperty(Object.values(prevLinesRaw)[0], [
|
|
187
|
-
// 'selected'
|
|
188
|
-
// ]);
|
|
189
|
-
// const currLines = stripProperty(Object.values(currLinesRaw)[0], [
|
|
190
|
-
// 'selected'
|
|
191
|
-
// ]);
|
|
192
|
-
//
|
|
193
|
-
// const prevCeilingHeight = prevState.getIn([
|
|
194
|
-
// 'scene',
|
|
195
|
-
// 'layers',
|
|
196
|
-
// prevLayer,
|
|
197
|
-
// 'ceilHeight'
|
|
198
|
-
// ]);
|
|
199
|
-
// const currCeilingHeight = currState.getIn([
|
|
200
|
-
// 'scene',
|
|
201
|
-
// 'layers',
|
|
202
|
-
// currLayer,
|
|
203
|
-
// 'ceilHeight'
|
|
204
|
-
// ]);
|
|
205
|
-
//
|
|
206
|
-
// let changed =
|
|
207
|
-
// !_.isEqual(prevItemsProps, currItemsProps) ||
|
|
208
|
-
// !_.isEqual(prevDoorStyle, currDoorStyle) ||
|
|
209
|
-
// !_.isEqual(prevAreas, currAreas) ||
|
|
210
|
-
// !_.isEqual(prevLines, currLines) ||
|
|
211
|
-
// prevCeilingHeight !== currCeilingHeight;
|
|
212
|
-
//
|
|
213
|
-
// if (changed) {
|
|
214
|
-
// this.debouncedSetIsSaved();
|
|
215
|
-
//
|
|
216
|
-
// const currentItemsLength = Object.keys(currItems).length;
|
|
217
|
-
// const prevItemsLength = Object.keys(prevItems).length;
|
|
218
|
-
// // make sure prompt appears only when adding cabinets
|
|
219
|
-
// const allowedItemLengths = [5, 10, 15];
|
|
220
|
-
//
|
|
221
|
-
// if (
|
|
222
|
-
// allowedItemLengths.includes(currentItemsLength) &&
|
|
223
|
-
// prevItemsLength === currentItemsLength - 1 &&
|
|
224
|
-
// !this.props.match.params.token
|
|
225
|
-
// ) {
|
|
226
|
-
// this.setState({ savePromptVisible: true });
|
|
227
|
-
// }
|
|
228
|
-
// }
|
|
229
|
-
// }
|
|
230
|
-
_defineProperty(_this, "handleBeforeUnload", function (e) {
|
|
231
|
-
var areas = _this.props.stateExtractor(_this.props.state).getIn(['scene', 'layers', _this.props.stateExtractor(_this.props.state).scene.selectedLayer, 'areas']);
|
|
232
|
-
if (!_this.state.isSaved && areas.size > 0) {
|
|
233
|
-
setTimeout(function () {
|
|
234
|
-
_this.setState({
|
|
235
|
-
savePromptVisible: true,
|
|
236
|
-
isLeaving: true
|
|
237
|
-
});
|
|
238
|
-
}, 500);
|
|
239
|
-
_this.saveProjectToStorage();
|
|
240
|
-
|
|
241
|
-
// This line is required to trigger the browser confirmation dialog
|
|
242
|
-
e.preventDefault();
|
|
243
|
-
e.returnValue = '';
|
|
244
|
-
return '';
|
|
245
|
-
}
|
|
246
|
-
});
|
|
247
|
-
_defineProperty(_this, "saveScreenshotToFile", function (event) {
|
|
248
|
-
event.preventDefault();
|
|
249
|
-
var canvas = document.getElementsByID('viewer3D')[1];
|
|
250
|
-
var canvas_crop_image = document.getElementById('canvas_crop_image');
|
|
251
|
-
var ctx = canvas_crop_image.getContext('2d');
|
|
252
|
-
|
|
253
|
-
// Set width and height for the new canvas
|
|
254
|
-
var heightAtt = document.createAttribute('height');
|
|
255
|
-
heightAtt.value = canvas.height;
|
|
256
|
-
canvas_crop_image.setAttributeNode(heightAtt);
|
|
257
|
-
var widthAtt = document.createAttribute('width');
|
|
258
|
-
widthAtt.value = canvas.width;
|
|
259
|
-
canvas_crop_image.setAttributeNode(widthAtt);
|
|
260
|
-
ctx.fillStyle = 'white';
|
|
261
|
-
ctx.fillRect(0, 0, canvas_crop_image.width, canvas_crop_image.height);
|
|
262
|
-
var img = new Image();
|
|
263
|
-
img.crossOrigin = 'anonymous';
|
|
264
|
-
img.src = canvas.toDataURL();
|
|
265
|
-
img.onload = function () {
|
|
266
|
-
ctx.globalAlpha = 0.3;
|
|
267
|
-
ctx.drawImage(img, 0, 0, canvas_crop_image.width, canvas_crop_image.height);
|
|
268
|
-
_this.setState({
|
|
269
|
-
isModalVisible: true,
|
|
270
|
-
imageUri: canvas.toDataURL(),
|
|
271
|
-
image: img
|
|
272
|
-
});
|
|
273
|
-
canvas_crop_image.style.zIndex = 11;
|
|
274
|
-
document.addEventListener('keydown', _this.onKeyDown, false);
|
|
275
|
-
document.addEventListener('mouseup', _this.onMouseUp_On_New_Save_SQ_DA, false);
|
|
276
|
-
canvas_crop_image.style.display = 'block';
|
|
277
|
-
};
|
|
278
|
-
});
|
|
279
|
-
var utmDetailParams = new URLSearchParams(_this.props.location && _this.props.location.search);
|
|
280
|
-
var utmStrEncoded = utmDetailParams.get('details');
|
|
281
|
-
var utmRequestData = null;
|
|
282
|
-
if (utmStrEncoded) {
|
|
283
|
-
try {
|
|
284
|
-
var _utmRequestData;
|
|
285
|
-
utmRequestData = JSON.parse(base64Decode(utmStrEncoded));
|
|
286
|
-
utmRequestData = JSON.parse((_utmRequestData = utmRequestData) === null || _utmRequestData === void 0 ? void 0 : _utmRequestData.utm);
|
|
287
|
-
} catch (e) {
|
|
288
|
-
console.error('Cannot parse utm parameter: ', error);
|
|
289
|
-
utmRequestData = null;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
_this.state = {
|
|
293
|
-
savePopupVisible: false,
|
|
294
|
-
quotePopupVisible: false,
|
|
295
|
-
assistPopupVisible: false,
|
|
296
|
-
newProjectPopupVisible: false,
|
|
297
|
-
isModalVisible: false,
|
|
298
|
-
submitPromptVisible: false,
|
|
299
|
-
stateSubmitType: constants.SUBMIT_REQUEST_ASSIST,
|
|
300
|
-
savePromptVisible: false,
|
|
301
|
-
isShowProperty: true,
|
|
302
|
-
submitTosave: false,
|
|
303
|
-
signOpen: false,
|
|
304
|
-
myProjectsOpen: false,
|
|
305
|
-
myProjectsToLogin: false,
|
|
306
|
-
downloadPopupVisible: false,
|
|
307
|
-
// For Toolbar Item
|
|
308
|
-
toolbar: '',
|
|
309
|
-
reviewQuotePopupOpened: false,
|
|
310
|
-
floorOpened: false,
|
|
311
|
-
cabinetOpened: false,
|
|
312
|
-
applianceOpened: false,
|
|
313
|
-
finishingOpened: false,
|
|
314
|
-
doorStyleOpen: false,
|
|
315
|
-
wizardStepOpend: false,
|
|
316
|
-
tutorialMouseEventsAdd: false,
|
|
317
|
-
replaceCabinetFlag: false,
|
|
318
|
-
isSnackBarOpen: false,
|
|
319
|
-
isSnackBar1Open: false,
|
|
320
|
-
redirectURL: '',
|
|
321
|
-
snackBarMessage: '',
|
|
322
|
-
isSaved: false,
|
|
323
|
-
isLeaving: false
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
// For UTM tracking
|
|
327
|
-
_this.utm = {
|
|
328
|
-
utm_source: ((_utmRequestData2 = utmRequestData) === null || _utmRequestData2 === void 0 ? void 0 : _utmRequestData2.source) || 'source',
|
|
329
|
-
utm_medium: ((_utmRequestData3 = utmRequestData) === null || _utmRequestData3 === void 0 ? void 0 : _utmRequestData3.medium) || 'medium',
|
|
330
|
-
utm_campaign: ((_utmRequestData4 = utmRequestData) === null || _utmRequestData4 === void 0 ? void 0 : _utmRequestData4.campaign) || 'campaign',
|
|
331
|
-
utm_term: ((_utmRequestData5 = utmRequestData) === null || _utmRequestData5 === void 0 ? void 0 : _utmRequestData5.term) || 'term',
|
|
332
|
-
utm_content: ((_utmRequestData6 = utmRequestData) === null || _utmRequestData6 === void 0 ? void 0 : _utmRequestData6.content) || 'content',
|
|
333
|
-
gclid: ((_utmRequestData7 = utmRequestData) === null || _utmRequestData7 === void 0 ? void 0 : _utmRequestData7.gclid) || 'gclid',
|
|
334
|
-
msclkid: ((_utmRequestData8 = utmRequestData) === null || _utmRequestData8 === void 0 ? void 0 : _utmRequestData8.msclkid) || 'msclkid',
|
|
335
|
-
fbclid: ((_utmRequestData9 = utmRequestData) === null || _utmRequestData9 === void 0 ? void 0 : _utmRequestData9.fbclid) || 'fbclid',
|
|
336
|
-
ttclid: ((_utmRequestData0 = utmRequestData) === null || _utmRequestData0 === void 0 ? void 0 : _utmRequestData0.ttclid) || 'ttclid'
|
|
337
|
-
};
|
|
338
|
-
_this.jwtCheck();
|
|
339
|
-
_this.openFloor = _this.openFloor.bind(_this);
|
|
340
|
-
_this.openCabinet = _this.openCabinet.bind(_this);
|
|
341
|
-
_this.openFinishing = _this.openFinishing.bind(_this);
|
|
342
|
-
_this.openAppliance = _this.openAppliance.bind(_this);
|
|
343
|
-
_this.toggleDoorStyle = _this.toggleDoorStyle.bind(_this);
|
|
344
|
-
_this.onReviewQuoteClicked = _this.onReviewQuoteClicked.bind(_this);
|
|
345
|
-
_this.closeFloorTB = _this.closeFloorTB.bind(_this);
|
|
346
|
-
_this.closeCabinetTB = _this.closeCabinetTB.bind(_this);
|
|
347
|
-
_this.closeFinishingTB = _this.closeFinishingTB.bind(_this);
|
|
348
|
-
_this.closeApplianceTB = _this.closeApplianceTB.bind(_this);
|
|
349
|
-
_this.setToolbar = _this.setToolbar.bind(_this);
|
|
350
|
-
_this.replaceCabinet = _this.replaceCabinet.bind(_this);
|
|
351
|
-
_this.setSubmitToSave = _this.setSubmitToSave.bind(_this);
|
|
352
|
-
_this.setSignOpen = _this.setSignOpen.bind(_this);
|
|
353
|
-
_this.setMyProjectsOpen = _this.setMyProjectsOpen.bind(_this);
|
|
354
|
-
_this.setMyProjectsToLogin = _this.setMyProjectsToLogin.bind(_this);
|
|
355
|
-
_this.setDownloadPopupVisible = _this.setDownloadPopupVisible.bind(_this);
|
|
356
|
-
_this.neverShowInput = /*#__PURE__*/React.createRef(null);
|
|
357
|
-
_this.setShowProperty = _this.setShowProperty.bind(_this);
|
|
358
|
-
return _this;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
// Toolbar control functions
|
|
362
|
-
_inherits(KitchenConfigurator, _Component);
|
|
363
|
-
return _createClass(KitchenConfigurator, [{
|
|
364
|
-
key: "setToolbar",
|
|
365
|
-
value: function setToolbar(toolBarKey) {
|
|
366
|
-
this.setState({
|
|
367
|
-
toolbar: toolBarKey
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
}, {
|
|
371
|
-
key: "setShowProperty",
|
|
372
|
-
value: function setShowProperty(value) {
|
|
373
|
-
this.setState({
|
|
374
|
-
isShowProperty: value
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
}, {
|
|
378
|
-
key: "setMyProjectsOpen",
|
|
379
|
-
value: function setMyProjectsOpen(value) {
|
|
380
|
-
this.setState({
|
|
381
|
-
myProjectsOpen: value
|
|
382
|
-
});
|
|
383
|
-
this.setState({
|
|
384
|
-
signOpen: false
|
|
385
|
-
});
|
|
386
|
-
this.setState({
|
|
387
|
-
wizardStepOpend: false
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
}, {
|
|
391
|
-
key: "setMyProjectsToLogin",
|
|
392
|
-
value: function setMyProjectsToLogin(value) {
|
|
393
|
-
this.setState({
|
|
394
|
-
myProjectsToLogin: value
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
}, {
|
|
398
|
-
key: "setDownloadPopupVisible",
|
|
399
|
-
value: function setDownloadPopupVisible(value) {
|
|
400
|
-
this.setState({
|
|
401
|
-
reviewQuotePopupOpened: false
|
|
402
|
-
});
|
|
403
|
-
this.setState({
|
|
404
|
-
savePopupVisible: false
|
|
405
|
-
});
|
|
406
|
-
this.setState({
|
|
407
|
-
quotePopupVisible: false
|
|
408
|
-
});
|
|
409
|
-
this.setState({
|
|
410
|
-
submitTosave: false
|
|
411
|
-
});
|
|
412
|
-
this.setState({
|
|
413
|
-
assistPopupVisible: false
|
|
414
|
-
});
|
|
415
|
-
this.setState({
|
|
416
|
-
newProjectPopupVisible: false
|
|
417
|
-
});
|
|
418
|
-
this.setState({
|
|
419
|
-
downloadPopupVisible: value
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
}, {
|
|
423
|
-
key: "setSubmitToSave",
|
|
424
|
-
value: function setSubmitToSave(value) {
|
|
425
|
-
this.setState({
|
|
426
|
-
submitTosave: value
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
}, {
|
|
430
|
-
key: "setSignOpen",
|
|
431
|
-
value: function setSignOpen(value) {
|
|
432
|
-
this.setState({
|
|
433
|
-
wizardStepOpend: false
|
|
434
|
-
});
|
|
435
|
-
this.setState({
|
|
436
|
-
myProjectsOpen: false
|
|
437
|
-
});
|
|
438
|
-
this.setState({
|
|
439
|
-
signOpen: value
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
}, {
|
|
443
|
-
key: "openFloor",
|
|
444
|
-
value: function openFloor() {
|
|
445
|
-
this.setState({
|
|
446
|
-
floorOpened: true
|
|
447
|
-
});
|
|
448
|
-
document.getElementById('make_floorplan_inactive').parentElement.parentElement.style.zIndex = 999;
|
|
449
|
-
}
|
|
450
|
-
}, {
|
|
451
|
-
key: "openCabinet",
|
|
452
|
-
value: function openCabinet() {
|
|
453
|
-
this.setState({
|
|
454
|
-
cabinetOpened: true
|
|
455
|
-
});
|
|
456
|
-
document.getElementById('add_cabinets_inactive').parentElement.parentElement.style.zIndex = 999;
|
|
457
|
-
}
|
|
458
|
-
}, {
|
|
459
|
-
key: "toggleDoorStyle",
|
|
460
|
-
value: function toggleDoorStyle(visible) {
|
|
461
|
-
this.setState({
|
|
462
|
-
doorStyleOpen: visible
|
|
463
|
-
});
|
|
464
|
-
document.getElementById('select_doorstyle_inactive').parentElement.parentElement.style.zIndex = visible ? 999 : 6;
|
|
465
|
-
}
|
|
466
|
-
}, {
|
|
467
|
-
key: "replaceCabinet",
|
|
468
|
-
value: function replaceCabinet(value) {
|
|
469
|
-
this.setState({
|
|
470
|
-
replaceCabinetFlag: value
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
}, {
|
|
474
|
-
key: "openAppliance",
|
|
475
|
-
value: function openAppliance() {
|
|
476
|
-
this.setState({
|
|
477
|
-
applianceOpened: true
|
|
478
|
-
});
|
|
479
|
-
document.getElementById('add_appliances_inactive').parentElement.parentElement.style.zIndex = 999;
|
|
480
|
-
}
|
|
481
|
-
}, {
|
|
482
|
-
key: "openFinishing",
|
|
483
|
-
value: function openFinishing() {
|
|
484
|
-
this.setState({
|
|
485
|
-
finishingOpened: true
|
|
486
|
-
});
|
|
487
|
-
document.getElementById('finishing_touches_inactive').parentElement.parentElement.style.zIndex = 999;
|
|
488
|
-
}
|
|
489
|
-
}, {
|
|
490
|
-
key: "onReviewQuoteClicked",
|
|
491
|
-
value: function onReviewQuoteClicked(visible) {
|
|
492
|
-
this.setState({
|
|
493
|
-
reviewQuotePopupOpened: visible
|
|
494
|
-
});
|
|
495
|
-
document.getElementById('review_quote_inactive').parentElement.parentElement.style.zIndex = visible ? 999 : 6;
|
|
496
|
-
}
|
|
497
|
-
}, {
|
|
498
|
-
key: "closeFloorTB",
|
|
499
|
-
value: function closeFloorTB() {
|
|
500
|
-
this.setState({
|
|
501
|
-
floorOpened: false
|
|
502
|
-
});
|
|
503
|
-
document.getElementById('make_floorplan_inactive') && (document.getElementById('make_floorplan_inactive').parentElement.parentElement.style.zIndex = 6);
|
|
504
|
-
}
|
|
505
|
-
}, {
|
|
506
|
-
key: "closeCabinetTB",
|
|
507
|
-
value: function closeCabinetTB() {
|
|
508
|
-
this.setState({
|
|
509
|
-
cabinetOpened: false
|
|
510
|
-
});
|
|
511
|
-
document.getElementById('add_cabinets_inactive').parentElement.parentElement.style.zIndex = 6;
|
|
512
|
-
}
|
|
513
|
-
}, {
|
|
514
|
-
key: "closeFinishingTB",
|
|
515
|
-
value: function closeFinishingTB() {
|
|
516
|
-
this.setState({
|
|
517
|
-
finishingOpened: false
|
|
518
|
-
});
|
|
519
|
-
document.getElementById('finishing_touches_inactive').parentElement.parentElement.style.zIndex = 6;
|
|
520
|
-
}
|
|
521
|
-
}, {
|
|
522
|
-
key: "closeApplianceTB",
|
|
523
|
-
value: function closeApplianceTB() {
|
|
524
|
-
this.setState({
|
|
525
|
-
applianceOpened: false
|
|
526
|
-
});
|
|
527
|
-
document.getElementById('add_appliances_inactive').parentElement.parentElement.style.zIndex = 6;
|
|
528
|
-
}
|
|
529
|
-
}, {
|
|
530
|
-
key: "closeDoorstyle",
|
|
531
|
-
value: function closeDoorstyle() {
|
|
532
|
-
this.setState({});
|
|
533
|
-
document.getElementById('select_doorstyle_inactive').parentElement.parentElement.style.zIndex = 6;
|
|
534
|
-
}
|
|
535
|
-
}, {
|
|
536
|
-
key: "closeReviewQuote",
|
|
537
|
-
value: function closeReviewQuote() {
|
|
538
|
-
this.setState({});
|
|
539
|
-
document.getElementById('review_quote_inactive').parentElement.parentElement.style.zIndex = 6;
|
|
540
|
-
}
|
|
541
|
-
}, {
|
|
542
|
-
key: "jwtCheck",
|
|
543
|
-
value: function jwtCheck() {
|
|
544
|
-
var _this2 = this;
|
|
545
|
-
jwtService.on('onAutoLogin', function () {
|
|
546
|
-
// this.props.showMessage({message: 'Logging in with JWT'});
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Sign in and retrieve user data from Api
|
|
550
|
-
*/
|
|
551
|
-
jwtService.signInWithToken().then(function (user) {
|
|
552
|
-
//this.props.userActions.setUserData(user);
|
|
553
|
-
_this2.props.userActions.login(user.id, user.role, jwtService.getAccessToken(), _this2.utm);
|
|
554
|
-
//this.props.showMessage(option)
|
|
555
|
-
//this.props.showMessage({message: 'Logged in with token data', variant: 'success'});
|
|
556
|
-
//alert('Logged in with token data');
|
|
557
|
-
})["catch"](function (error) {
|
|
558
|
-
//this.props.showMessage({message: error});
|
|
559
|
-
_this2.setState({
|
|
560
|
-
isSnackBarOpen: true,
|
|
561
|
-
snackBarMessage: error
|
|
562
|
-
});
|
|
563
|
-
});
|
|
564
|
-
});
|
|
565
|
-
jwtService.on('onAutoLogout', function (message) {
|
|
566
|
-
if (message) {
|
|
567
|
-
//this.props.showMessage({message, variant: 'error'});
|
|
568
|
-
}
|
|
569
|
-
_this2.props.userActions.logout();
|
|
570
|
-
});
|
|
571
|
-
jwtService.init();
|
|
572
|
-
}
|
|
573
|
-
}, {
|
|
574
|
-
key: "getChildContext",
|
|
575
|
-
value: function getChildContext() {
|
|
576
|
-
var _this3 = this;
|
|
577
|
-
return _objectSpread(_objectSpread({}, objectsMap(actions, function (actionNamespace) {
|
|
578
|
-
return _this3.props[actionNamespace];
|
|
579
|
-
})), {}, {
|
|
580
|
-
translator: this.props.translator,
|
|
581
|
-
catalog: this.props.catalog
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
}, {
|
|
585
|
-
key: "saveProjectToStorage",
|
|
586
|
-
value: function saveProjectToStorage() {
|
|
587
|
-
var _this$props = this.props,
|
|
588
|
-
state = _this$props.state,
|
|
589
|
-
stateExtractor = _this$props.stateExtractor;
|
|
590
|
-
var extractedState = stateExtractor(state);
|
|
591
|
-
var projectData = JSON.stringify(extractedState.get('scene').toJS());
|
|
592
|
-
sessionStorage.setItem(window.location.href, projectData);
|
|
593
|
-
}
|
|
594
|
-
}, {
|
|
595
|
-
key: "componentDidMount",
|
|
596
|
-
value: function componentDidMount() {
|
|
597
|
-
var _this4 = this;
|
|
598
|
-
ReactGA.send({
|
|
599
|
-
hitType: 'pageview',
|
|
600
|
-
page: getPath()
|
|
601
|
-
});
|
|
602
|
-
hotjar.event && hotjar.event("pageview:".concat(getPath()));
|
|
603
|
-
window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
604
|
-
console.log('context =>', this.context);
|
|
605
|
-
window.forRedo = [];
|
|
606
|
-
var store = this.context.store;
|
|
607
|
-
var _this$props2 = this.props,
|
|
608
|
-
projectActions = _this$props2.projectActions,
|
|
609
|
-
catalog = _this$props2.catalog,
|
|
610
|
-
stateExtractor = _this$props2.stateExtractor,
|
|
611
|
-
state = _this$props2.state,
|
|
612
|
-
plugins = _this$props2.plugins;
|
|
613
|
-
projectActions.initCatalog(catalog);
|
|
614
|
-
var match = this.props.match;
|
|
615
|
-
if (sessionStorage.getItem(window.location.href)) {
|
|
616
|
-
var jsonData = sessionStorage.getItem(window.location.href);
|
|
617
|
-
projectActions.loadProject(JSON.parse(jsonData), this.props.categoryData);
|
|
618
|
-
sessionStorage.removeItem(window.location.href);
|
|
619
|
-
return;
|
|
620
|
-
}
|
|
621
|
-
if (match && match.params.pid === undefined) {
|
|
622
|
-
var newplugins = [].concat(_toConsumableArray(plugins), [PlannerPlugins.Autosave('KitchenConfigurator_v0', false)]);
|
|
623
|
-
newplugins.forEach(function (newplugin) {
|
|
624
|
-
return newplugin(store, stateExtractor);
|
|
625
|
-
});
|
|
626
|
-
projectActions.newProject();
|
|
627
|
-
sessionStorage.setItem('projectTitle', 'Untitled');
|
|
628
|
-
projectActions.rename('Untitled');
|
|
629
|
-
sessionStorage.removeItem('projectId');
|
|
630
|
-
sessionStorage.removeItem('email');
|
|
631
|
-
sessionStorage.removeItem('firstName');
|
|
632
|
-
sessionStorage.removeItem('lastName');
|
|
633
|
-
sessionStorage.removeItem('usedObjects');
|
|
634
|
-
return;
|
|
635
|
-
}
|
|
636
|
-
if (match && match.params.pid !== undefined) {
|
|
637
|
-
if (match.params.pid === 'new') {
|
|
638
|
-
projectActions.newProject();
|
|
639
|
-
sessionStorage.setItem('projectTitle', 'Untitled');
|
|
640
|
-
projectActions.rename('Untitled');
|
|
641
|
-
sessionStorage.removeItem('projectId');
|
|
642
|
-
sessionStorage.removeItem('email');
|
|
643
|
-
sessionStorage.removeItem('firstName');
|
|
644
|
-
sessionStorage.removeItem('lastName');
|
|
645
|
-
sessionStorage.removeItem('usedObjects');
|
|
646
|
-
} else {
|
|
647
|
-
axios.post("".concat(constants.API_SERVER_URL, "/api/project/loadPidProject"), {
|
|
648
|
-
pid: match.params.pid,
|
|
649
|
-
visualizerName: sessionStorage.getItem('visualizerName')
|
|
650
|
-
}).then(/*#__PURE__*/function () {
|
|
651
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
652
|
-
var projectElement, jsonData, _t;
|
|
653
|
-
return _regenerator().w(function (_context) {
|
|
654
|
-
while (1) switch (_context.p = _context.n) {
|
|
655
|
-
case 0:
|
|
656
|
-
projectElement = response.data.projectElement;
|
|
657
|
-
if (!(projectElement.length === 0)) {
|
|
658
|
-
_context.n = 1;
|
|
659
|
-
break;
|
|
660
|
-
}
|
|
661
|
-
return _context.a(2);
|
|
662
|
-
case 1:
|
|
663
|
-
sessionStorage.setItem('projectTitle', projectElement[0].title);
|
|
664
|
-
projectActions.rename(projectElement[0].title);
|
|
665
|
-
sessionStorage.setItem('projectId', projectElement[0].id);
|
|
666
|
-
sessionStorage.setItem('email', projectElement[0].email);
|
|
667
|
-
sessionStorage.setItem('firstName', projectElement[0].firstName);
|
|
668
|
-
sessionStorage.setItem('lastName', projectElement[0].lastName);
|
|
669
|
-
sessionStorage.setItem('phone', projectElement[0].phone);
|
|
670
|
-
if (!projectElement[0].project_data) {
|
|
671
|
-
_context.n = 2;
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
|
-
jsonData = JSON.parse(projectElement[0].project_data);
|
|
675
|
-
_context.n = 5;
|
|
676
|
-
break;
|
|
677
|
-
case 2:
|
|
678
|
-
_context.p = 2;
|
|
679
|
-
_context.n = 3;
|
|
680
|
-
return axios.post("".concat(constants.API_SERVER_URL, "/api/project/loadPidData"), {
|
|
681
|
-
pid: match.params.pid
|
|
682
|
-
}).data.data;
|
|
683
|
-
case 3:
|
|
684
|
-
jsonData = _context.v;
|
|
685
|
-
_context.n = 5;
|
|
686
|
-
break;
|
|
687
|
-
case 4:
|
|
688
|
-
_context.p = 4;
|
|
689
|
-
_t = _context.v;
|
|
690
|
-
_this4.setState({
|
|
691
|
-
isSnackBarOpen: true,
|
|
692
|
-
snackBarMessage: _t
|
|
693
|
-
});
|
|
694
|
-
case 5:
|
|
695
|
-
jsonData.isLoadingCabinet = false;
|
|
696
|
-
projectActions.loadProject(jsonData, _this4.props.categoryData);
|
|
697
|
-
case 6:
|
|
698
|
-
return _context.a(2);
|
|
699
|
-
}
|
|
700
|
-
}, _callee, null, [[2, 4]]);
|
|
701
|
-
}));
|
|
702
|
-
return function (_x) {
|
|
703
|
-
return _ref.apply(this, arguments);
|
|
704
|
-
};
|
|
705
|
-
}());
|
|
706
|
-
}
|
|
707
|
-
sessionStorage.removeItem('user_type');
|
|
708
|
-
sessionStorage.removeItem('project_type');
|
|
709
|
-
sessionStorage.removeItem('project_timeline');
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
}, {
|
|
713
|
-
key: "componentWillUnmount",
|
|
714
|
-
value: function componentWillUnmount() {
|
|
715
|
-
window.addEventListener('beforeunload', this.handleBeforeUnload);
|
|
716
|
-
window.onbeforeunload = null;
|
|
717
|
-
}
|
|
718
|
-
}, {
|
|
719
|
-
key: "componentWillMount",
|
|
720
|
-
value: function componentWillMount() {}
|
|
721
|
-
}, {
|
|
722
|
-
key: "componentWillReceiveProps",
|
|
723
|
-
value: function componentWillReceiveProps(nextProps) {
|
|
724
|
-
var stateExtractor = nextProps.stateExtractor,
|
|
725
|
-
state = nextProps.state,
|
|
726
|
-
projectActions = nextProps.projectActions,
|
|
727
|
-
catalog = nextProps.catalog;
|
|
728
|
-
var plannerState = stateExtractor(state);
|
|
729
|
-
var catalogReady = plannerState.getIn(['catalog', 'ready']);
|
|
730
|
-
if (!catalogReady) {
|
|
731
|
-
projectActions.initCatalog(catalog);
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
}, {
|
|
735
|
-
key: "isProjectEmpty",
|
|
736
|
-
value: function isProjectEmpty(scene) {
|
|
737
|
-
var layers = scene.layers,
|
|
738
|
-
selectedLayer = scene.selectedLayer;
|
|
739
|
-
var layer = layers.get(selectedLayer);
|
|
740
|
-
return layer.areas.size + layer.lines.size + layer.holes.size + layer.items.size === 0;
|
|
741
|
-
}
|
|
742
|
-
}, {
|
|
743
|
-
key: "handleSaveDesign",
|
|
744
|
-
value: function handleSaveDesign(value) {
|
|
745
|
-
var _this$props3 = this.props,
|
|
746
|
-
stateExtractor = _this$props3.stateExtractor,
|
|
747
|
-
state = _this$props3.state;
|
|
748
|
-
var plannerState = stateExtractor(state);
|
|
749
|
-
var items = plannerState.getIn(['scene', 'layers', 'layer-1', 'items']);
|
|
750
|
-
var areas = plannerState.getIn(['scene', 'layers', 'layer-1', 'areas']);
|
|
751
|
-
if (areas.size === 0) {
|
|
752
|
-
this.setState({
|
|
753
|
-
isSnackBarOpen: true,
|
|
754
|
-
snackBarMessage: 'Your project is empty.'
|
|
755
|
-
});
|
|
756
|
-
return;
|
|
757
|
-
}
|
|
758
|
-
// if (items.size === 0) {
|
|
759
|
-
// saveAlert = <StyledAlert text={<span style={{fontSize: 16, fontFamily: DEFAULT_FONT_FAMILY}}>Add at least one item</span>} onClose={() => saveAlert = ""} />
|
|
760
|
-
// return;
|
|
761
|
-
// } else saveAlert = '';
|
|
762
|
-
this.setState({
|
|
763
|
-
reviewQuotePopupOpened: false
|
|
764
|
-
});
|
|
765
|
-
this.setState({
|
|
766
|
-
savePopupVisible: value
|
|
767
|
-
});
|
|
768
|
-
this.setState({
|
|
769
|
-
assistPopupVisible: false
|
|
770
|
-
});
|
|
771
|
-
this.setState({
|
|
772
|
-
newProjectPopupVisible: false
|
|
773
|
-
});
|
|
774
|
-
this.setState({
|
|
775
|
-
savePromptVisible: false
|
|
776
|
-
});
|
|
777
|
-
this.setState({
|
|
778
|
-
submitPromptVisible: false
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
}, {
|
|
782
|
-
key: "handleNewProject",
|
|
783
|
-
value: function handleNewProject(value) {
|
|
784
|
-
this.setState({
|
|
785
|
-
reviewQuotePopupOpened: false
|
|
786
|
-
});
|
|
787
|
-
this.setState({
|
|
788
|
-
savePopupVisible: false
|
|
789
|
-
});
|
|
790
|
-
this.setState({
|
|
791
|
-
quotePopupVisible: false
|
|
792
|
-
});
|
|
793
|
-
this.setState({
|
|
794
|
-
assistPopupVisible: false
|
|
795
|
-
});
|
|
796
|
-
this.setState({
|
|
797
|
-
newProjectPopupVisible: value
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
}, {
|
|
801
|
-
key: "handleSubmitForQuote",
|
|
802
|
-
value: function handleSubmitForQuote(isVisible) {
|
|
803
|
-
var submitType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : constants.SUBMIT_REQUEST_ASSIST;
|
|
804
|
-
var items = this.props.stateExtractor(this.props.state).getIn(['scene', 'layers', this.props.stateExtractor(this.props.state).scene.selectedLayer, 'items']);
|
|
805
|
-
if (submitType === constants.SUBMIT_ADD_CART) {
|
|
806
|
-
this.setToolbar('reviewforquote');
|
|
807
|
-
}
|
|
808
|
-
if (submitType === constants.SUBMIT_ADD_CART && !items.size) {
|
|
809
|
-
this.setState({
|
|
810
|
-
isSnackBarOpen: true,
|
|
811
|
-
snackBarMessage: 'Your project is empty. Please add at least one item.'
|
|
812
|
-
});
|
|
813
|
-
} else {
|
|
814
|
-
this.setState({
|
|
815
|
-
reviewQuotePopupOpened: false
|
|
816
|
-
});
|
|
817
|
-
this.setState({
|
|
818
|
-
savePopupVisible: false
|
|
819
|
-
});
|
|
820
|
-
this.setState({
|
|
821
|
-
quotePopupVisible: isVisible
|
|
822
|
-
});
|
|
823
|
-
this.setState({
|
|
824
|
-
submitTosave: false
|
|
825
|
-
});
|
|
826
|
-
this.setState({
|
|
827
|
-
assistPopupVisible: false
|
|
828
|
-
});
|
|
829
|
-
this.setState({
|
|
830
|
-
newProjectPopupVisible: false
|
|
831
|
-
});
|
|
832
|
-
this.setState({
|
|
833
|
-
stateSubmitType: submitType
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
}, {
|
|
838
|
-
key: "findDelkeys",
|
|
839
|
-
value: function findDelkeys(obj, deleteKeys, path) {
|
|
840
|
-
if (_typeof(obj) === 'object') {
|
|
841
|
-
var allkeys = Object.keys(obj);
|
|
842
|
-
for (var i = 0; i < allkeys.length; i++) {
|
|
843
|
-
var value = obj[allkeys[i]];
|
|
844
|
-
if (isEmpty(value)) {
|
|
845
|
-
deleteKeys.push({
|
|
846
|
-
path: path,
|
|
847
|
-
key: allkeys[i]
|
|
848
|
-
});
|
|
849
|
-
} else if (_typeof(value) === 'object') {
|
|
850
|
-
var newPath = path + allkeys[i] + ',';
|
|
851
|
-
this.findDelkeys(value, deleteKeys, newPath);
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
} else if (isEmpty(obj)) {
|
|
855
|
-
var tmpkey = path.split(',');
|
|
856
|
-
deleteKeys.push({
|
|
857
|
-
path: path,
|
|
858
|
-
key: tmpkey[tmpkey.length - 1]
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}, {
|
|
863
|
-
key: "render",
|
|
864
|
-
value: function render() {
|
|
865
|
-
var _this5 = this;
|
|
866
|
-
var _this$props4 = this.props,
|
|
867
|
-
width = _this$props4.width,
|
|
868
|
-
height = _this$props4.height,
|
|
869
|
-
state = _this$props4.state,
|
|
870
|
-
stateExtractor = _this$props4.stateExtractor,
|
|
871
|
-
props = _objectWithoutProperties(_this$props4, _excluded);
|
|
872
|
-
var _this$state = this.state,
|
|
873
|
-
savePopupVisible = _this$state.savePopupVisible,
|
|
874
|
-
quotePopupVisible = _this$state.quotePopupVisible,
|
|
875
|
-
assistPopupVisible = _this$state.assistPopupVisible,
|
|
876
|
-
newProjectPopupVisible = _this$state.newProjectPopupVisible,
|
|
877
|
-
savePromptVisible = _this$state.savePromptVisible,
|
|
878
|
-
isLeaving = _this$state.isLeaving,
|
|
879
|
-
submitPromptVisible = _this$state.submitPromptVisible,
|
|
880
|
-
stateSubmitType = _this$state.stateSubmitType,
|
|
881
|
-
submitTosave = _this$state.submitTosave,
|
|
882
|
-
signOpen = _this$state.signOpen,
|
|
883
|
-
myProjectsOpen = _this$state.myProjectsOpen,
|
|
884
|
-
myProjectsToLogin = _this$state.myProjectsToLogin,
|
|
885
|
-
downloadPopupVisible = _this$state.downloadPopupVisible;
|
|
886
|
-
var contentW = width - toolbarW;
|
|
887
|
-
var categoryData = this.props.categoryData;
|
|
888
|
-
// console.log(categoryData);
|
|
889
|
-
// let contentW = width - toolbarW - sidebarW;
|
|
890
|
-
// let toolbarH = height - footerBarH;
|
|
891
|
-
// let contentH = height - footerBarH;
|
|
892
|
-
// let sidebarH = height - footerBarH;
|
|
893
|
-
var toolbarH = height;
|
|
894
|
-
var contentH = height;
|
|
895
|
-
var sidebarH = height;
|
|
896
|
-
var headerW = width;
|
|
897
|
-
var headerH = 60;
|
|
898
|
-
|
|
899
|
-
// const userInfo = this.props.match ? this.props.match.params : [];
|
|
900
|
-
var userInfo = [];
|
|
901
|
-
var extractedState = stateExtractor(state);
|
|
902
|
-
var doorStyle = extractedState.get('doorStyle');
|
|
903
|
-
if (extractedState.getIn(['scene', 'layers', extractedState.scene.selectedLayer, 'doorStyle']) !== undefined && extractedState.getIn(['scene', 'layers', extractedState.scene.selectedLayer, 'doorStyle']) !== null) {
|
|
904
|
-
var extractedStateData = extractedState.getIn(['scene', 'layers', extractedState.scene.selectedLayer, 'doorStyle']);
|
|
905
|
-
var doorIdAvailable = false;
|
|
906
|
-
if (this.props.categoryData.doorStyles && this.props.categoryData.doorStyles.items) {
|
|
907
|
-
this.props.categoryData.doorStyles.items.find(function (category) {
|
|
908
|
-
doorIdAvailable = category.items.find(function (style) {
|
|
909
|
-
var item = style.items.find(function (it) {
|
|
910
|
-
return it.id === extractedStateData.id;
|
|
911
|
-
});
|
|
912
|
-
if (item) {
|
|
913
|
-
colorItem = item;
|
|
914
|
-
return true;
|
|
915
|
-
} else {
|
|
916
|
-
return false;
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
if (doorIdAvailable) doorStyle = extractedStateData;
|
|
922
|
-
}
|
|
923
|
-
var firstVisit = this.state.wizardStepOpend && this.isProjectEmpty(extractedState.scene);
|
|
924
|
-
var allVisible = firstVisit || signOpen || myProjectsOpen;
|
|
925
|
-
var _scene = extractedState.getIn(['scene']);
|
|
926
|
-
var len = convert(_scene.width).from(_scene.unit).to('cm');
|
|
927
|
-
var _viewer2D = extractedState.getIn(['viewer2D']);
|
|
928
|
-
if (_viewer2D.size > 0) {
|
|
929
|
-
var scaleX = width / len * 3;
|
|
930
|
-
var scaleY = height / len * 3;
|
|
931
|
-
var scale = scaleX > scaleY ? scaleY : scaleX;
|
|
932
|
-
var _e = width - len * scale,
|
|
933
|
-
_f = height - len * scale;
|
|
934
|
-
var viewer = _viewer2D.toJS();
|
|
935
|
-
if (viewer.e === 0 && viewer.f === 0) {
|
|
936
|
-
_viewer2D = _viewer2D.merge({
|
|
937
|
-
e: viewer.viewerWidth / 2 - viewer.SVGWidth / 2,
|
|
938
|
-
f: viewer.viewerHeight / 2 - viewer.SVGHeight / 2,
|
|
939
|
-
a: 0.99,
|
|
940
|
-
d: 0.99
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
extractedState = extractedState.merge({
|
|
945
|
-
viewer2D: _viewer2D
|
|
946
|
-
});
|
|
947
|
-
var history = this.props.history;
|
|
948
|
-
var handleContinueQuote = function handleContinueQuote() {
|
|
949
|
-
_this5.setToolbar('reviewforquote');
|
|
950
|
-
_this5.setState({
|
|
951
|
-
savePopupVisible: false,
|
|
952
|
-
quotePopupVisible: true
|
|
953
|
-
});
|
|
954
|
-
};
|
|
955
|
-
var newProject = function newProject() {
|
|
956
|
-
_this5.props.projectActions.newProject();
|
|
957
|
-
sessionStorage.setItem('projectTitle', 'Untitled');
|
|
958
|
-
_this5.props.projectActions.rename('Untitled');
|
|
959
|
-
sessionStorage.removeItem('projectId');
|
|
960
|
-
sessionStorage.removeItem('usedObjects');
|
|
961
|
-
var visualizerName = sessionStorage.getItem('visualizerName');
|
|
962
|
-
var originalAccessToken = ls.get(LOCAL_STORAGE_ORIGINAL_TOKEN);
|
|
963
|
-
var tokenName = ls.get(LOCAL_STORAGE_TOKEN_NAME);
|
|
964
|
-
var pathname = "/".concat(visualizerName);
|
|
965
|
-
if (tokenName && originalAccessToken) {
|
|
966
|
-
pathname += "?".concat(tokenName).concat(originalAccessToken);
|
|
967
|
-
}
|
|
968
|
-
history.push({
|
|
969
|
-
pathname: pathname
|
|
970
|
-
});
|
|
971
|
-
_this5.setState({
|
|
972
|
-
wizardStepOpend: false
|
|
973
|
-
});
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* @description Save Projects
|
|
978
|
-
* @param {{email,firstName,lastName,notes,projectName}} param Project information to save
|
|
979
|
-
*/
|
|
980
|
-
var saveProject = /*#__PURE__*/function () {
|
|
981
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(param) {
|
|
982
|
-
var _state2, _state3;
|
|
983
|
-
var rlt, title, projectId, projectTitle, utm, state, _state, scene, itemData, newScene, deleteKeys, i, tmp, deletePath, j, projectData, object_count, originalAccessToken, tokenName, response, _response$data, success, message, userData, access_token, insertId, currentProjectID, _t2;
|
|
984
|
-
return _regenerator().w(function (_context2) {
|
|
985
|
-
while (1) switch (_context2.p = _context2.n) {
|
|
986
|
-
case 0:
|
|
987
|
-
rlt = {
|
|
988
|
-
success: false
|
|
989
|
-
}; // Get storage info
|
|
990
|
-
title = sessionStorage.getItem('projectTitle');
|
|
991
|
-
projectId = sessionStorage.getItem('projectId');
|
|
992
|
-
projectTitle = param && param.projectName || title || "Project-".concat(new Date().toLocaleString());
|
|
993
|
-
utm = _this5.utm; // State
|
|
994
|
-
state = Project.unselectAll(extractedState).updatedState;
|
|
995
|
-
_state = state, scene = _state.scene;
|
|
996
|
-
state = state.merge({
|
|
997
|
-
scene: scene.merge({
|
|
998
|
-
title: projectTitle
|
|
999
|
-
})
|
|
1000
|
-
});
|
|
1001
|
-
|
|
1002
|
-
// Set storage info
|
|
1003
|
-
sessionStorage.setItem('projectTitle', projectTitle);
|
|
1004
|
-
props.projectActions.rename(projectTitle);
|
|
1005
|
-
|
|
1006
|
-
// Filter cds
|
|
1007
|
-
itemData = state.getIn(['scene', 'layers', state.get('scene').toJS().selectedLayer, 'items']).toArray();
|
|
1008
|
-
itemData.forEach(function (it) {
|
|
1009
|
-
var _item$doorStyle;
|
|
1010
|
-
var item = it.toJS();
|
|
1011
|
-
var doorStyles = item === null || item === void 0 || (_item$doorStyle = item.doorStyle) === null || _item$doorStyle === void 0 ? void 0 : _item$doorStyle.doorStyles;
|
|
1012
|
-
|
|
1013
|
-
// Skip if no doorStyles data at all
|
|
1014
|
-
if (!doorStyles) return;
|
|
1015
|
-
var newCDSdata = Array.isArray(doorStyles.cds) ? doorStyles.cds.filter(function (it1) {
|
|
1016
|
-
return it1.cabinet_door_style_id === doorStyles.cabinet_door_style_id;
|
|
1017
|
-
}) : [];
|
|
1018
|
-
var layerId = state.get('scene').toJS().selectedLayer;
|
|
1019
|
-
var basePath = ['scene', 'layers', layerId, 'items', it.id, 'doorStyle', 'doorStyles'];
|
|
1020
|
-
if (state.hasIn(basePath)) {
|
|
1021
|
-
state = state.setIn([].concat(basePath, ['cds']), newCDSdata);
|
|
1022
|
-
}
|
|
1023
|
-
});
|
|
1024
|
-
|
|
1025
|
-
// Delete null values
|
|
1026
|
-
newScene = state.getIn(['scene']);
|
|
1027
|
-
deleteKeys = [];
|
|
1028
|
-
_this5.findDelkeys(newScene.toJS(), deleteKeys, '');
|
|
1029
|
-
for (i = 0; i < deleteKeys.length; i++) {
|
|
1030
|
-
tmp = newScene.toJS();
|
|
1031
|
-
deletePath = deleteKeys[i].path.split(',');
|
|
1032
|
-
for (j = 0; j < deletePath.length; j++) {
|
|
1033
|
-
if (!isEmpty(deletePath[j])) {
|
|
1034
|
-
tmp = tmp[deletePath[j]];
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
if (deletePath.length >= 2) {
|
|
1038
|
-
delete tmp[deleteKeys[i].key];
|
|
1039
|
-
deletePath.pop();
|
|
1040
|
-
if (!isEmpty(newScene.getIn(deletePath))) newScene = newScene.setIn(deletePath, tmp);
|
|
1041
|
-
} else {
|
|
1042
|
-
newScene = newScene["delete"](deleteKeys[i].key);
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
state = state.setIn(['scene'], newScene);
|
|
1046
|
-
|
|
1047
|
-
// Data to save
|
|
1048
|
-
projectData = JSON.stringify(state.get('scene').toJS());
|
|
1049
|
-
object_count = Object.keys(((_state2 = state) === null || _state2 === void 0 || (_state2 = _state2.scene) === null || _state2 === void 0 || (_state2 = _state2.layers) === null || _state2 === void 0 || (_state2 = _state2.get((_state3 = state) === null || _state3 === void 0 || (_state3 = _state3.scene) === null || _state3 === void 0 ? void 0 : _state3.selectedLayer)) === null || _state2 === void 0 ? void 0 : _state2.items) || {}).length;
|
|
1050
|
-
_context2.p = 1;
|
|
1051
|
-
originalAccessToken = ls.get(LOCAL_STORAGE_ORIGINAL_TOKEN);
|
|
1052
|
-
tokenName = ls.get(LOCAL_STORAGE_TOKEN_NAME);
|
|
1053
|
-
_context2.n = 2;
|
|
1054
|
-
return axios.post('/api/project/saveProject', _objectSpread(_objectSpread({
|
|
1055
|
-
pid: projectId,
|
|
1056
|
-
title: projectTitle,
|
|
1057
|
-
mode: MODE,
|
|
1058
|
-
access_token: userInfo.token ? userInfo.token : null,
|
|
1059
|
-
userrole: userInfo.role ? userInfo.role : null,
|
|
1060
|
-
saveData: _objectSpread(_objectSpread(_objectSpread({}, param), utm), {}, {
|
|
1061
|
-
projectData: projectData,
|
|
1062
|
-
object_count: object_count
|
|
1063
|
-
}),
|
|
1064
|
-
url: window.location.hostname,
|
|
1065
|
-
visualizerName: sessionStorage.getItem('visualizerName')
|
|
1066
|
-
}, originalAccessToken ? {
|
|
1067
|
-
original_token: originalAccessToken
|
|
1068
|
-
} : undefined), tokenName ? {
|
|
1069
|
-
query_params_token_prefix: tokenName
|
|
1070
|
-
} : undefined));
|
|
1071
|
-
case 2:
|
|
1072
|
-
response = _context2.v;
|
|
1073
|
-
_response$data = response.data, success = _response$data.success, message = _response$data.message, userData = _response$data.userData, access_token = _response$data.access_token;
|
|
1074
|
-
if (success === true) {
|
|
1075
|
-
rlt.success = true;
|
|
1076
|
-
insertId = response.data.execResult.insertId;
|
|
1077
|
-
currentProjectID = insertId !== 0 ? insertId : state.getIn(['scene', 'currentProjectID']); // Set storage data
|
|
1078
|
-
sessionStorage.setItem('projectId', currentProjectID);
|
|
1079
|
-
sessionStorage.setItem('email', param.email);
|
|
1080
|
-
sessionStorage.setItem('phone', param.phone);
|
|
1081
|
-
sessionStorage.setItem('firstName', param.firstName);
|
|
1082
|
-
sessionStorage.setItem('lastName', param.lastName);
|
|
1083
|
-
props.projectActions.setProjectID({
|
|
1084
|
-
currentProjectID: currentProjectID
|
|
1085
|
-
});
|
|
1086
|
-
actions.userActions.login(userData[0].id, userData[0].role, access_token, utm);
|
|
1087
|
-
_this5.setState({
|
|
1088
|
-
toolbar: _this5.state.toolbar,
|
|
1089
|
-
isSaved: true,
|
|
1090
|
-
isSnackBarOpen: true,
|
|
1091
|
-
snackBarMessage: 'Your project has been saved. </br> You can now request <b>Designer Assistance</b> or <b>Add to Cart</b>'
|
|
1092
|
-
});
|
|
1093
|
-
if (_this5.state.submitTosave) {
|
|
1094
|
-
handleContinueQuote();
|
|
1095
|
-
}
|
|
1096
|
-
} else {
|
|
1097
|
-
rlt.success = false;
|
|
1098
|
-
rlt.message = message;
|
|
1099
|
-
_this5.setState({
|
|
1100
|
-
isSnackBarOpen: true,
|
|
1101
|
-
snackBarMessage: "Failed to add project data: ".concat(message)
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
_context2.n = 4;
|
|
1105
|
-
break;
|
|
1106
|
-
case 3:
|
|
1107
|
-
_context2.p = 3;
|
|
1108
|
-
_t2 = _context2.v;
|
|
1109
|
-
rlt.success = false;
|
|
1110
|
-
console.error(_t2);
|
|
1111
|
-
_this5.setState({
|
|
1112
|
-
isSnackBarOpen: true,
|
|
1113
|
-
snackBarMessage: 'Failed to add project data.'
|
|
1114
|
-
});
|
|
1115
|
-
case 4:
|
|
1116
|
-
return _context2.a(2, rlt);
|
|
1117
|
-
}
|
|
1118
|
-
}, _callee2, null, [[1, 3]]);
|
|
1119
|
-
}));
|
|
1120
|
-
return function saveProject(_x2) {
|
|
1121
|
-
return _ref2.apply(this, arguments);
|
|
1122
|
-
};
|
|
1123
|
-
}();
|
|
1124
|
-
var pidSplit = userInfo.pid && userInfo.pid.indexOf('?');
|
|
1125
|
-
// If pidSplit is undefined pid is undefined
|
|
1126
|
-
var pid = pidSplit === undefined || pidSplit === -1 ? userInfo.pid : userInfo.pid.slice(0, pidSplit);
|
|
1127
|
-
var submitForQuote = /*#__PURE__*/function () {
|
|
1128
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(param) {
|
|
1129
|
-
var rlt, apiUrl, extraFormData, originalAccessToken, tokenName, customerRequests, notes, response, _response$data2, success, message, redirect_url, _t3;
|
|
1130
|
-
return _regenerator().w(function (_context3) {
|
|
1131
|
-
while (1) switch (_context3.p = _context3.n) {
|
|
1132
|
-
case 0:
|
|
1133
|
-
rlt = {
|
|
1134
|
-
success: false
|
|
1135
|
-
};
|
|
1136
|
-
if (userInfo.token) {
|
|
1137
|
-
_context3.n = 1;
|
|
1138
|
-
break;
|
|
1139
|
-
}
|
|
1140
|
-
_this5.setState({
|
|
1141
|
-
isSnackBarOpen: true,
|
|
1142
|
-
snackBarMessage: 'You should save the project first.'
|
|
1143
|
-
});
|
|
1144
|
-
return _context3.a(2);
|
|
1145
|
-
case 1:
|
|
1146
|
-
apiUrl = '';
|
|
1147
|
-
if (param.flag === constants.SUBMIT_REQUEST_ASSIST) {
|
|
1148
|
-
apiUrl = "".concat(API_SERVER_URL, "/api/project/submitProject");
|
|
1149
|
-
} else if (param.flag === constants.SUBMIT_ADD_CART) {
|
|
1150
|
-
apiUrl = "".concat(API_SERVER_URL, "/api/project/addCart");
|
|
1151
|
-
}
|
|
1152
|
-
_context3.p = 2;
|
|
1153
|
-
extraFormData = {
|
|
1154
|
-
userType: sessionStorage.getItem('user_type') || '',
|
|
1155
|
-
designType: sessionStorage.getItem('project_type') || '',
|
|
1156
|
-
startTime: sessionStorage.getItem('project_timeline') || ''
|
|
1157
|
-
};
|
|
1158
|
-
originalAccessToken = ls.get(LOCAL_STORAGE_ORIGINAL_TOKEN);
|
|
1159
|
-
tokenName = ls.get(LOCAL_STORAGE_TOKEN_NAME);
|
|
1160
|
-
customerRequests = param.customer_requests;
|
|
1161
|
-
notes = customerRequests.notes;
|
|
1162
|
-
_context3.n = 3;
|
|
1163
|
-
return axios.post(apiUrl, {
|
|
1164
|
-
access_token: userInfo.token,
|
|
1165
|
-
data: _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, param), extraFormData.userType ? {
|
|
1166
|
-
user_type: extraFormData.userType
|
|
1167
|
-
} : undefined), extraFormData.designType ? {
|
|
1168
|
-
project_type: extraFormData.designType
|
|
1169
|
-
} : undefined), extraFormData.startTime ? {
|
|
1170
|
-
project_timeline: extraFormData.startTime
|
|
1171
|
-
} : undefined), {}, {
|
|
1172
|
-
client_name: sessionStorage.getItem('visualizerName'),
|
|
1173
|
-
user_token: ls.get(LOCAL_STORAGE_TOKEN_VALUE),
|
|
1174
|
-
cart_action_type: ls.get(LOCAL_STORAGE_CART_ACTION),
|
|
1175
|
-
customer_requests: Object.values(customerRequests.reviewOptions).filter(Boolean).join(', ')
|
|
1176
|
-
}, param.flag === constants.SUBMIT_ADD_CART ? {
|
|
1177
|
-
cart_notes: notes
|
|
1178
|
-
} : {
|
|
1179
|
-
designer_notes: notes
|
|
1180
|
-
}), {}, {
|
|
1181
|
-
question_add_to_cart: param.flag === constants.SUBMIT_ADD_CART
|
|
1182
|
-
}, originalAccessToken ? {
|
|
1183
|
-
original_token: originalAccessToken
|
|
1184
|
-
} : undefined), tokenName ? {
|
|
1185
|
-
query_params_token_prefix: tokenName
|
|
1186
|
-
} : undefined),
|
|
1187
|
-
num: true,
|
|
1188
|
-
projectid: pid,
|
|
1189
|
-
search: _this5.props.location.search,
|
|
1190
|
-
userrole: userInfo.role,
|
|
1191
|
-
url: window.location.hostname
|
|
1192
|
-
});
|
|
1193
|
-
case 3:
|
|
1194
|
-
response = _context3.v;
|
|
1195
|
-
_response$data2 = response.data, success = _response$data2.success, message = _response$data2.message, redirect_url = _response$data2.redirect_url;
|
|
1196
|
-
if (success) {
|
|
1197
|
-
rlt.success = true;
|
|
1198
|
-
param.email && sessionStorage.setItem('email', param.email);
|
|
1199
|
-
param.phone && sessionStorage.setItem('phone', param.phone);
|
|
1200
|
-
_this5.setState({
|
|
1201
|
-
redirectURL: redirect_url,
|
|
1202
|
-
isSnackBarOpen: true,
|
|
1203
|
-
snackBarMessage: "".concat(param.flag === constants.SUBMIT_REQUEST_ASSIST ? 'Project submitted' : 'Added to cart', " successfully.").concat(customerRequests.reviewOptions.length > 0 || customerRequests.notes ? ' <br /> A confirmation has been emailed to you and a designer will be in contact shortly' : ''),
|
|
1204
|
-
isSnackBar1Open: param.flag === constants.SUBMIT_ADD_CART
|
|
1205
|
-
});
|
|
1206
|
-
} else {
|
|
1207
|
-
rlt.success = false;
|
|
1208
|
-
rlt.message = message;
|
|
1209
|
-
_this5.setState({
|
|
1210
|
-
isSnackBarOpen: true,
|
|
1211
|
-
snackBarMessage: "".concat(param.flag === constants.SUBMIT_REQUEST_ASSIST ? 'Submitting project' : 'Adding to cart', " failed: ").concat(message)
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
_context3.n = 5;
|
|
1215
|
-
break;
|
|
1216
|
-
case 4:
|
|
1217
|
-
_context3.p = 4;
|
|
1218
|
-
_t3 = _context3.v;
|
|
1219
|
-
rlt.success = false;
|
|
1220
|
-
console.log('err', _t3);
|
|
1221
|
-
_this5.setState({
|
|
1222
|
-
isSnackBarOpen: true,
|
|
1223
|
-
snackBarMessage: "".concat(param.flag === constants.SUBMIT_REQUEST_ASSIST ? 'Submitting project' : 'Adding to cart', " failed.")
|
|
1224
|
-
});
|
|
1225
|
-
case 5:
|
|
1226
|
-
return _context3.a(2, rlt);
|
|
1227
|
-
}
|
|
1228
|
-
}, _callee3, null, [[2, 4]]);
|
|
1229
|
-
}));
|
|
1230
|
-
return function submitForQuote(_x3) {
|
|
1231
|
-
return _ref3.apply(this, arguments);
|
|
1232
|
-
};
|
|
1233
|
-
}();
|
|
1234
|
-
return /*#__PURE__*/React.createElement("section", null, /*#__PURE__*/React.createElement(SnackBar, {
|
|
1235
|
-
isOpen: this.state.isSnackBarOpen,
|
|
1236
|
-
message: this.state.snackBarMessage,
|
|
1237
|
-
handleClose: function handleClose() {
|
|
1238
|
-
return _this5.setState({
|
|
1239
|
-
isSnackBarOpen: false,
|
|
1240
|
-
snackBarMessage: ''
|
|
1241
|
-
});
|
|
1242
|
-
},
|
|
1243
|
-
autoHideDuration: 10000
|
|
1244
|
-
}), /*#__PURE__*/React.createElement(SnackBar, {
|
|
1245
|
-
style: {
|
|
1246
|
-
marginTop: this.state.isSnackBarOpen ? 75 : 'unset'
|
|
1247
|
-
},
|
|
1248
|
-
isOpen: this.state.isSnackBar1Open,
|
|
1249
|
-
message: "The items in your design have been added to your shopping cart at ".concat(CLIENTS_NAME[sessionStorage.getItem('visualizerName')], ". <br />Please log in with the same email address."),
|
|
1250
|
-
autoHideDuration: 20000,
|
|
1251
|
-
action: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("a", {
|
|
1252
|
-
href: this.state.redirectURL,
|
|
1253
|
-
target: "_blank",
|
|
1254
|
-
style: {
|
|
1255
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
1256
|
-
color: PRIMARY_GREEN_COLOR,
|
|
1257
|
-
fontWeight: 700,
|
|
1258
|
-
marginRight: 10
|
|
1259
|
-
}
|
|
1260
|
-
}, "View Cart"), /*#__PURE__*/React.createElement("img", {
|
|
1261
|
-
onClick: function onClick() {
|
|
1262
|
-
return _this5.setState({
|
|
1263
|
-
isSnackBar1Open: false
|
|
1264
|
-
});
|
|
1265
|
-
},
|
|
1266
|
-
style: {
|
|
1267
|
-
"float": 'right',
|
|
1268
|
-
height: 24,
|
|
1269
|
-
cursor: 'pointer'
|
|
1270
|
-
},
|
|
1271
|
-
src: "/assets/img/svg/close.svg"
|
|
1272
|
-
}))
|
|
1273
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
1274
|
-
style: _objectSpread(_objectSpread({}, wrapperStyle), {}, {
|
|
1275
|
-
height: height
|
|
1276
|
-
})
|
|
1277
|
-
}, /*#__PURE__*/React.createElement(Content, _extends({
|
|
1278
|
-
width: contentW,
|
|
1279
|
-
height: contentH,
|
|
1280
|
-
catalog: this.props.catalog,
|
|
1281
|
-
state: extractedState,
|
|
1282
|
-
toolBar: this.state.toolbar,
|
|
1283
|
-
setToolbar: this.setToolbar,
|
|
1284
|
-
replaceCabinet: this.replaceCabinet,
|
|
1285
|
-
keyDownEnable: !savePopupVisible && !quotePopupVisible && !assistPopupVisible
|
|
1286
|
-
}, props, {
|
|
1287
|
-
onWheel: function onWheel(event) {
|
|
1288
|
-
return event.preventDefault();
|
|
1289
|
-
}
|
|
1290
|
-
}))));
|
|
1291
|
-
}
|
|
1292
|
-
}]);
|
|
1293
|
-
}(Component);
|
|
1294
|
-
KitchenConfigurator.propTypes = {
|
|
1295
|
-
translator: PropTypes.instanceOf(Translator),
|
|
1296
|
-
catalog: PropTypes.instanceOf(Catalog),
|
|
1297
|
-
allowProjectFileSupport: PropTypes.bool,
|
|
1298
|
-
plugins: PropTypes.arrayOf(PropTypes.func),
|
|
1299
|
-
autosaveKey: PropTypes.string,
|
|
1300
|
-
autosaveDelay: PropTypes.number,
|
|
1301
|
-
width: PropTypes.number.isRequired,
|
|
1302
|
-
height: PropTypes.number.isRequired,
|
|
1303
|
-
stateExtractor: PropTypes.func.isRequired,
|
|
1304
|
-
toolbarButtons: PropTypes.array,
|
|
1305
|
-
sidebarComponents: PropTypes.array,
|
|
1306
|
-
footerbarComponents: PropTypes.array,
|
|
1307
|
-
customContents: PropTypes.object,
|
|
1308
|
-
softwareSignature: PropTypes.string,
|
|
1309
|
-
configData: PropTypes.object
|
|
1310
|
-
};
|
|
1311
|
-
KitchenConfigurator.contextTypes = {
|
|
1312
|
-
store: PropTypes.object.isRequired
|
|
1313
|
-
};
|
|
1314
|
-
KitchenConfigurator.childContextTypes = _objectSpread(_objectSpread({}, objectsMap(actions, function () {
|
|
1315
|
-
return PropTypes.object;
|
|
1316
|
-
})), {}, {
|
|
1317
|
-
translator: PropTypes.object,
|
|
1318
|
-
catalog: PropTypes.object
|
|
1319
|
-
});
|
|
1320
|
-
KitchenConfigurator.defaultProps = {
|
|
1321
|
-
translator: new Translator(),
|
|
1322
|
-
catalog: new Catalog(),
|
|
1323
|
-
plugins: [],
|
|
1324
|
-
allowProjectFileSupport: true,
|
|
1325
|
-
softwareSignature: "KitchenConfigurator ".concat(VERSION),
|
|
1326
|
-
toolbarButtons: [],
|
|
1327
|
-
sidebarComponents: [],
|
|
1328
|
-
footerbarComponents: [],
|
|
1329
|
-
customContents: {},
|
|
1330
|
-
configData: {}
|
|
1331
|
-
};
|
|
1332
|
-
|
|
1333
|
-
//redux connect
|
|
1334
|
-
function mapStateToProps(reduxState) {
|
|
1335
|
-
return {
|
|
1336
|
-
state: reduxState
|
|
1337
|
-
};
|
|
1338
|
-
}
|
|
1339
|
-
function mapDispatchToProps(dispatch) {
|
|
1340
|
-
return objectsMap(actions, function (actionNamespace) {
|
|
1341
|
-
return bindActionCreators(actions[actionNamespace], dispatch);
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
export default connect(mapStateToProps, mapDispatchToProps)(KitchenConfigurator);
|
|
1345
|
-
//# sourceMappingURL=KitchenConfigurator.js.map
|