kitchen-simulator 5.0.0-test.5 → 5.0.0-test.6
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 +24 -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 +5687 -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 +5172 -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/hooks/useCheckCart.js +38 -0
- package/src/hooks/useGetPricesBySku.js +59 -0
- package/src/hooks/useValidateToken.js +181 -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/styles/export.js +7 -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/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
- /package/{es → src}/styles/tabs.css +0 -0
|
@@ -1,4612 +0,0 @@
|
|
|
1
|
-
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); }
|
|
2
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
|
-
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."); }
|
|
4
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
-
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 }; })(); }
|
|
7
|
-
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); }
|
|
8
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
9
|
-
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; } }
|
|
10
|
-
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; }
|
|
11
|
-
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); }
|
|
12
|
-
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); }); }; }
|
|
13
|
-
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; }
|
|
14
|
-
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; }
|
|
15
|
-
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; }
|
|
16
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
-
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); } }
|
|
18
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
-
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); }
|
|
21
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
|
-
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); }
|
|
23
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
26
|
-
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); }
|
|
27
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
28
|
-
import Tooltip from '@material-ui/core/Tooltip';
|
|
29
|
-
import { withStyles } from '@material-ui/core/styles';
|
|
30
|
-
import ErrorIcon from '@material-ui/icons/Error';
|
|
31
|
-
import convert from 'convert-units';
|
|
32
|
-
import { Map } from 'immutable';
|
|
33
|
-
import PropTypes from 'prop-types';
|
|
34
|
-
import React, { PureComponent } from 'react';
|
|
35
|
-
import { FaPlayCircle } from 'react-icons/fa';
|
|
36
|
-
var testJsonData = {};
|
|
37
|
-
Object.freeze(testJsonData);
|
|
38
|
-
import * as door_closet from '../../../../demo/src/catalog/holes/door-closet/planner-element';
|
|
39
|
-
import * as door_exterior from '../../../../demo/src/catalog/holes/door-exterior/planner-element';
|
|
40
|
-
import * as door_interior from '../../../../demo/src/catalog/holes/door-interior/planner-element';
|
|
41
|
-
import * as door_sliding from '../../../../demo/src/catalog/holes/door-sliding/planner-element';
|
|
42
|
-
import * as door_framed from '../../../../demo/src/catalog/holes/doorway-framed/planner-element';
|
|
43
|
-
import * as door_frameless from '../../../../demo/src/catalog/holes/doorway-frameless/planner-element';
|
|
44
|
-
import * as window_clear from '../../../../demo/src/catalog/holes/window-clear/planner-element';
|
|
45
|
-
import * as window_cross from '../../../../demo/src/catalog/holes/window-cross/planner-element';
|
|
46
|
-
import * as window_double_hung from '../../../../demo/src/catalog/holes/window-double-hung/planner-element';
|
|
47
|
-
import * as window_vertical from '../../../../demo/src/catalog/holes/window-vertical/planner-element';
|
|
48
|
-
import { formatNumber, toFixedFloat } from '../../../utils/math';
|
|
49
|
-
import FormNumberInput from '../../style/form-number-input';
|
|
50
|
-
import PlgItem from '../plugin-item.jsx';
|
|
51
|
-
import * as PS from '../popup/styles';
|
|
52
|
-
import PanelElementEditor from './../../sidebar/panel-element-editor/panel-element-editor';
|
|
53
|
-
import ConfirmPopup from './confirm-popup';
|
|
54
|
-
import * as lShaped from './lShaped.json';
|
|
55
|
-
import * as longNarrow from './longNarrow.json';
|
|
56
|
-
import { StyledAlert } from './myComponents';
|
|
57
|
-
import * as oRectangle from './oRectangle.json';
|
|
58
|
-
import * as rectangleData from './rectangle.json';
|
|
59
|
-
import { getInstallationSuffix, getToeKickSKU, isEmpty, isEqualInstallationType, makeSKUForMagento, returnReplaceableDeepSearchType } from '../../viewer2d/utils';
|
|
60
|
-
import { ADD_APPLIANCES, ADD_CABINETS, ARRAY_3D_MODES, BASE_CABINET_LAYOUTPOS, BG_COLOR_1, DECIMAL_PLACES_2, DEFAULT_FONT_FAMILY, FINISHING_TOUCH, INSTALLATION_SUFFIX_TYPE, INSTALLATION_TYPE_NAME, ITEM_TYPE, KEYBOARD_BUTTON_CODE, MAKE_FLOOR_PLAN, MODE_2D_PAN, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM_3D, MODE_DRAWING_LINE, MODE_ELEVATION_VIEW, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, REVIEW_AND_QUOTE, SECONDARY_PURPLE_COLOR, SELECT_DOOR_STYLE, STATUS_NEGATIVE_COLOR, TEXT_COLOR_NEUTRAL_0, TEXT_COLOR_NEUTRAL_1, TEXT_COLOR_NEUTRAL_2, TEXT_COLOR_NEUTRAL_5, TOE_KICK_MOLDING, WARNING_MESSAGE } from '../../../constants';
|
|
61
|
-
import * as SharedStyle from '../../../shared-style';
|
|
62
|
-
import { GeometryUtils, MoldingUtils } from '../../../utils/export';
|
|
63
|
-
import { getSignedUrl, isCeilLimitation, isElevationView } from '../../../utils/helper';
|
|
64
|
-
import SnackBar from '../../atoms/Snackbar/index';
|
|
65
|
-
import ToggleMeasureButton from '../../button/ToggleMeasureButton';
|
|
66
|
-
import SetDoorStyleOptionPopup from '../popup/setDoorStyleOption';
|
|
67
|
-
import * as S from './styles';
|
|
68
|
-
import DoorStyleMenu from '../components/DoorStyleMenu';
|
|
69
|
-
import { ReviewForQuote } from '../../../../src/components/toolbar/components/ReviewForQuote';
|
|
70
|
-
import { Pricing } from '../../../../src/components/toolbar/components/Pricing';
|
|
71
|
-
import { findCatalogElement } from '../../../utils/geometry';
|
|
72
|
-
import { buildCurrentCabinetObject } from '../../../../src/utils/process-black-list';
|
|
73
|
-
var unitData = [{
|
|
74
|
-
_name: 'inch',
|
|
75
|
-
_unit: 'in'
|
|
76
|
-
}, {
|
|
77
|
-
_name: 'centimeter',
|
|
78
|
-
_unit: 'cm'
|
|
79
|
-
}, {
|
|
80
|
-
_name: 'millimeter',
|
|
81
|
-
_unit: 'mm'
|
|
82
|
-
}, {
|
|
83
|
-
_name: 'meter',
|
|
84
|
-
_unit: 'm'
|
|
85
|
-
}, {
|
|
86
|
-
_name: 'feet',
|
|
87
|
-
_unit: 'ft'
|
|
88
|
-
}];
|
|
89
|
-
var ASIDE_STYLE = {
|
|
90
|
-
marginTop: '85px'
|
|
91
|
-
};
|
|
92
|
-
var StyledTooltip = withStyles(function () {
|
|
93
|
-
return {
|
|
94
|
-
tooltip: {
|
|
95
|
-
backgroundColor: TEXT_COLOR_NEUTRAL_0,
|
|
96
|
-
color: BG_COLOR_1,
|
|
97
|
-
maxWidth: 180,
|
|
98
|
-
fontSize: 9,
|
|
99
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
100
|
-
boxShadow: '0px 3px 5px -1px rgba(156, 154, 154, 0.2), 0px 6px 10px 0px rgba(156, 154, 154, 0.39), 0px 1px 18px 0px rgba(156, 154, 154, 0.12)',
|
|
101
|
-
padding: '2px 15px'
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
})(Tooltip);
|
|
105
|
-
var searchInput = {
|
|
106
|
-
width: 'calc( 100% - 2em )',
|
|
107
|
-
height: '2em',
|
|
108
|
-
marginTop: '15px',
|
|
109
|
-
padding: '0 1em',
|
|
110
|
-
margin: '0 1em',
|
|
111
|
-
border: '1px solid #EEE'
|
|
112
|
-
};
|
|
113
|
-
var hintText = '';
|
|
114
|
-
var Toolbar = /*#__PURE__*/function (_PureComponent) {
|
|
115
|
-
function Toolbar(props, context) {
|
|
116
|
-
var _this;
|
|
117
|
-
_classCallCheck(this, Toolbar);
|
|
118
|
-
_this = _callSuper(this, Toolbar, [props, context]);
|
|
119
|
-
var layer = props.layers.get(props.selectedLayer);
|
|
120
|
-
var elements = {
|
|
121
|
-
lines: layer.lines,
|
|
122
|
-
holes: layer.holes,
|
|
123
|
-
items: layer.items,
|
|
124
|
-
molding: layer.molding
|
|
125
|
-
};
|
|
126
|
-
var ceilingHeight = props.state.scene.layers.get(props.selectedLayer).ceilHeight;
|
|
127
|
-
var measurementUnit = unitData.filter(function (unit) {
|
|
128
|
-
return unit._unit === props.state.scene.layers.get(props.selectedLayer).unit;
|
|
129
|
-
})[0];
|
|
130
|
-
_this.state = {
|
|
131
|
-
elements: elements,
|
|
132
|
-
appliancesData: [],
|
|
133
|
-
doorHandle: [],
|
|
134
|
-
wallColors: [],
|
|
135
|
-
floorStyles: [],
|
|
136
|
-
lighting: [],
|
|
137
|
-
counterTop: [],
|
|
138
|
-
molding: [],
|
|
139
|
-
backsplash: [],
|
|
140
|
-
furnishing: [],
|
|
141
|
-
opened: false,
|
|
142
|
-
vData: [],
|
|
143
|
-
toData: [],
|
|
144
|
-
vDataArray: [],
|
|
145
|
-
dData: [],
|
|
146
|
-
oData: [],
|
|
147
|
-
DoorStyles: [],
|
|
148
|
-
dDataArray: [],
|
|
149
|
-
currentTexture: layer.doorStyle !== null || layer.doorStyle !== undefined ? layer.doorStyle : props.state.doorStyle.toJS(),
|
|
150
|
-
changeTexture: undefined,
|
|
151
|
-
doorTitle: [],
|
|
152
|
-
cabinetTitle: [],
|
|
153
|
-
cabinetCollapse: true,
|
|
154
|
-
doorCollapse: true,
|
|
155
|
-
doorExpand: false,
|
|
156
|
-
searchCabinet: '',
|
|
157
|
-
searchDoor: '',
|
|
158
|
-
floorCollapse: true,
|
|
159
|
-
animOpened: false,
|
|
160
|
-
closeover: false,
|
|
161
|
-
animover: false,
|
|
162
|
-
plgItems: [],
|
|
163
|
-
plgUrls: [],
|
|
164
|
-
filter: '',
|
|
165
|
-
activeButton: 'Floor Plan',
|
|
166
|
-
search: '',
|
|
167
|
-
controlButton: '',
|
|
168
|
-
topButton: '',
|
|
169
|
-
recentStyle: [],
|
|
170
|
-
selectAll: false,
|
|
171
|
-
cabinetSubCategoryData: [],
|
|
172
|
-
cabinetExpand: -1,
|
|
173
|
-
applianceSubCategoryData: [],
|
|
174
|
-
applianceCategoryCollapse: true,
|
|
175
|
-
applianceExpand: -1,
|
|
176
|
-
finishingSubCategoryData: [],
|
|
177
|
-
finishingCategoryCollapse: true,
|
|
178
|
-
finishingProductCollapse: true,
|
|
179
|
-
floorSubCategoryData: [],
|
|
180
|
-
floorCategoryCollapse: true,
|
|
181
|
-
floorProductCollapse: true,
|
|
182
|
-
doorStyleSubCategoryData: [],
|
|
183
|
-
doorStyleCategoryCollapse: true,
|
|
184
|
-
doorStyleProductCollapse: true,
|
|
185
|
-
doorStyleStep: 0,
|
|
186
|
-
stepSource: [],
|
|
187
|
-
doorStyleExpand: -1,
|
|
188
|
-
reviewCollapse: true,
|
|
189
|
-
isMolding: false,
|
|
190
|
-
editWidthVisible: false,
|
|
191
|
-
isModalVisible: false,
|
|
192
|
-
setDoorStylePopupVisible: false,
|
|
193
|
-
imageUri: '',
|
|
194
|
-
image: '',
|
|
195
|
-
croppedImage: '',
|
|
196
|
-
isMouseDown: false,
|
|
197
|
-
firstMousePoint: {
|
|
198
|
-
x: 0,
|
|
199
|
-
y: 0
|
|
200
|
-
},
|
|
201
|
-
lastMousePoint: {
|
|
202
|
-
x: 1000,
|
|
203
|
-
y: 1000
|
|
204
|
-
},
|
|
205
|
-
mouse: {
|
|
206
|
-
p: {
|
|
207
|
-
x: 0,
|
|
208
|
-
y: 0
|
|
209
|
-
},
|
|
210
|
-
frame: 0,
|
|
211
|
-
frames: 30
|
|
212
|
-
},
|
|
213
|
-
topLeft: {
|
|
214
|
-
x: _this.percentToPxHor(17.275),
|
|
215
|
-
y: _this.percentToPxVert(59.691)
|
|
216
|
-
},
|
|
217
|
-
bottomLeft: {
|
|
218
|
-
x: _this.percentToPxHor(17.275),
|
|
219
|
-
y: _this.percentToPxVert(60.72)
|
|
220
|
-
},
|
|
221
|
-
topRight: {
|
|
222
|
-
x: _this.percentToPxHor(71.459),
|
|
223
|
-
y: _this.percentToPxVert(61.407)
|
|
224
|
-
},
|
|
225
|
-
bottomRight: {
|
|
226
|
-
x: _this.percentToPxHor(71.352),
|
|
227
|
-
y: _this.percentToPxVert(62.436)
|
|
228
|
-
},
|
|
229
|
-
ceilingHeight: ceilingHeight,
|
|
230
|
-
measurementUnit: measurementUnit,
|
|
231
|
-
cabinetCategory: {
|
|
232
|
-
name: '',
|
|
233
|
-
data: []
|
|
234
|
-
},
|
|
235
|
-
subCabinetCategory: {
|
|
236
|
-
name: '',
|
|
237
|
-
data: []
|
|
238
|
-
},
|
|
239
|
-
selectedFinishing: '',
|
|
240
|
-
selectedRoomElement: '',
|
|
241
|
-
checkedRoomElement: {},
|
|
242
|
-
selectedProject: '',
|
|
243
|
-
isPopupOpen: false,
|
|
244
|
-
resetFilters: false,
|
|
245
|
-
toggleFilters: false,
|
|
246
|
-
cabinetStyleChanging: true,
|
|
247
|
-
cabinetStyle: {
|
|
248
|
-
name: '',
|
|
249
|
-
data: []
|
|
250
|
-
},
|
|
251
|
-
subCabinetStyle: {
|
|
252
|
-
name: '',
|
|
253
|
-
data: []
|
|
254
|
-
},
|
|
255
|
-
cabinetColor: {
|
|
256
|
-
name: '',
|
|
257
|
-
data: []
|
|
258
|
-
},
|
|
259
|
-
install: INSTALLATION_TYPE_NAME.RTA,
|
|
260
|
-
viewMoreDoorstyle: false,
|
|
261
|
-
searchName: '',
|
|
262
|
-
replaceCabinetFlag: false,
|
|
263
|
-
chosenReplacedItem: {},
|
|
264
|
-
isSnackBarOpen: false,
|
|
265
|
-
snackBarMessage: '',
|
|
266
|
-
addingJson: false,
|
|
267
|
-
helpViewNum: 1,
|
|
268
|
-
notes: '',
|
|
269
|
-
videoUrl: '',
|
|
270
|
-
moldingData: []
|
|
271
|
-
};
|
|
272
|
-
_this.onMouseUp_On_New_Save_SQ_DA = _this.onMouseUp_On_New_Save_SQ_DA.bind(_this);
|
|
273
|
-
_this.onMouseDown = _this.onMouseDown.bind(_this);
|
|
274
|
-
_this.onMouseMove = _this.onMouseMove.bind(_this);
|
|
275
|
-
_this.onKeyDown = _this.onKeyDown.bind(_this);
|
|
276
|
-
_this.onMouseUp = _this.onMouseUp.bind(_this);
|
|
277
|
-
return _this;
|
|
278
|
-
}
|
|
279
|
-
_inherits(Toolbar, _PureComponent);
|
|
280
|
-
return _createClass(Toolbar, [{
|
|
281
|
-
key: "hideModal",
|
|
282
|
-
value: function hideModal() {
|
|
283
|
-
this.setState({
|
|
284
|
-
isModalVisible: false
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
}, {
|
|
288
|
-
key: "editWidth",
|
|
289
|
-
value: function editWidth() {
|
|
290
|
-
this.setState({
|
|
291
|
-
editWidthVisible: true
|
|
292
|
-
});
|
|
293
|
-
}
|
|
294
|
-
}, {
|
|
295
|
-
key: "handleEditWidth",
|
|
296
|
-
value: function handleEditWidth(newWidth, layerID, itemID) {
|
|
297
|
-
this.setState({
|
|
298
|
-
editWidthVisible: false
|
|
299
|
-
});
|
|
300
|
-
this.context.itemsActions.editWidth(newWidth, layerID, itemID);
|
|
301
|
-
}
|
|
302
|
-
}, {
|
|
303
|
-
key: "componentDidMount",
|
|
304
|
-
value: function componentDidMount() {
|
|
305
|
-
document.addEventListener('keydown', this.onKeyDown, false);
|
|
306
|
-
var self = this;
|
|
307
|
-
var data = self.props.categoryData;
|
|
308
|
-
if (data.success === true) {
|
|
309
|
-
var _data$data = data.data,
|
|
310
|
-
appliances = _data$data.appliances,
|
|
311
|
-
cabinets = _data$data.cabinets,
|
|
312
|
-
doorStyles = _data$data.doorStyles,
|
|
313
|
-
doorHandle = _data$data.doorHandle,
|
|
314
|
-
wallColors = _data$data.wallColors,
|
|
315
|
-
floorStyles = _data$data.floorStyles,
|
|
316
|
-
lighting = _data$data.lighting,
|
|
317
|
-
counterTop = _data$data.counterTop,
|
|
318
|
-
backsplash = _data$data.backsplash,
|
|
319
|
-
furnishing = _data$data.furnishing,
|
|
320
|
-
doorColorFamily = _data$data.doorColorFamily;
|
|
321
|
-
var molding = [];
|
|
322
|
-
data.data.cabinets.forEach(function (cabinet) {
|
|
323
|
-
cabinet.items.forEach(function (index) {
|
|
324
|
-
if (index.name.toLowerCase().includes('molding')) {
|
|
325
|
-
index.items.forEach(function (item) {
|
|
326
|
-
molding.push(item);
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
});
|
|
331
|
-
var tmp = [];
|
|
332
|
-
doorStyles.items.forEach(function (item) {
|
|
333
|
-
var t = [];
|
|
334
|
-
item.items.forEach(function (item1) {
|
|
335
|
-
var t2 = [];
|
|
336
|
-
item1.items.forEach(function (item2) {
|
|
337
|
-
t2.push(_objectSpread(_objectSpread({}, item2), {}, {
|
|
338
|
-
install: item.name
|
|
339
|
-
}));
|
|
340
|
-
});
|
|
341
|
-
t.push(_objectSpread(_objectSpread({}, item1), {}, {
|
|
342
|
-
items: [].concat(t2)
|
|
343
|
-
}));
|
|
344
|
-
});
|
|
345
|
-
tmp.push(_objectSpread(_objectSpread({}, item), {}, {
|
|
346
|
-
items: t
|
|
347
|
-
}));
|
|
348
|
-
});
|
|
349
|
-
self.setState({
|
|
350
|
-
appliancesData: appliances,
|
|
351
|
-
vData: cabinets,
|
|
352
|
-
doorHandle: doorHandle,
|
|
353
|
-
wallColors: wallColors,
|
|
354
|
-
floorStyles: floorStyles,
|
|
355
|
-
lighting: lighting,
|
|
356
|
-
counterTop: counterTop,
|
|
357
|
-
backsplash: backsplash,
|
|
358
|
-
furnishing: furnishing,
|
|
359
|
-
toData: cabinets,
|
|
360
|
-
molding: molding,
|
|
361
|
-
DoorStyles: tmp,
|
|
362
|
-
dData: tmp,
|
|
363
|
-
stepSource: tmp,
|
|
364
|
-
cabinetStyle: {
|
|
365
|
-
name: '',
|
|
366
|
-
data: tmp[0].items
|
|
367
|
-
},
|
|
368
|
-
cabinetColor: {
|
|
369
|
-
name: '',
|
|
370
|
-
data: doorColorFamily
|
|
371
|
-
},
|
|
372
|
-
subCabinetStyle: {
|
|
373
|
-
name: '',
|
|
374
|
-
data: tmp.flatMap(function (item) {
|
|
375
|
-
return item.items.flatMap(function (sub) {
|
|
376
|
-
return sub.items;
|
|
377
|
-
});
|
|
378
|
-
})
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
var _doorCategory = function doorCategory(result, data, path) {
|
|
382
|
-
if (data.some(function (element) {
|
|
383
|
-
return element.type === 'door-category';
|
|
384
|
-
})) {
|
|
385
|
-
var temp = data.filter(function (element) {
|
|
386
|
-
return element.type === 'door-category';
|
|
387
|
-
});
|
|
388
|
-
temp.forEach(function (t) {
|
|
389
|
-
if (t.items !== undefined) {
|
|
390
|
-
_doorCategory(result, t.items, path != '' ? path + ',' + t.name : t.name);
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
} else {
|
|
394
|
-
var _temp = data.filter(function (element) {
|
|
395
|
-
return element.type !== 'door-category';
|
|
396
|
-
});
|
|
397
|
-
_temp.forEach(function (t) {
|
|
398
|
-
result.push({
|
|
399
|
-
name: t.name,
|
|
400
|
-
path: path != '' ? path + ',' + t.name : t.name,
|
|
401
|
-
data: t
|
|
402
|
-
});
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
return result;
|
|
406
|
-
};
|
|
407
|
-
var oStyle = _doorCategory([], tmp, '');
|
|
408
|
-
if (self.state.currentTexture == null) {
|
|
409
|
-
var _findDefault = function findDefault(data) {
|
|
410
|
-
if (!data || data.length === 0) return undefined;
|
|
411
|
-
var brilliantWhiteShaker = data.find(function (item) {
|
|
412
|
-
return item.name === 'Brilliant White Shaker';
|
|
413
|
-
});
|
|
414
|
-
if (brilliantWhiteShaker) {
|
|
415
|
-
return _objectSpread({}, brilliantWhiteShaker);
|
|
416
|
-
}
|
|
417
|
-
var result = undefined;
|
|
418
|
-
for (var i = 0; i < data.length; i++) {
|
|
419
|
-
if (data[i].type === 'door-category') {
|
|
420
|
-
result = _findDefault(data[i].items);
|
|
421
|
-
if (result !== undefined) {
|
|
422
|
-
break;
|
|
423
|
-
}
|
|
424
|
-
} else if (data[i].type === 'door') {
|
|
425
|
-
if (data[i].install) {
|
|
426
|
-
return data[i];
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
return result;
|
|
431
|
-
};
|
|
432
|
-
var findFinishing = function findFinishing(data) {
|
|
433
|
-
var isSelected = false;
|
|
434
|
-
var temp = {
|
|
435
|
-
counterTop: [],
|
|
436
|
-
floorStyles: []
|
|
437
|
-
};
|
|
438
|
-
if (data.counterTop) {
|
|
439
|
-
data.counterTop.forEach(function (element) {
|
|
440
|
-
if (element.selected) isSelected = true;
|
|
441
|
-
});
|
|
442
|
-
if (!isSelected) data.counterTop[0].selected = true;
|
|
443
|
-
temp.counterTop = data.counterTop;
|
|
444
|
-
} else {
|
|
445
|
-
console.log('There are no counterTops.');
|
|
446
|
-
}
|
|
447
|
-
isSelected = false;
|
|
448
|
-
if (data.floorStyles) {
|
|
449
|
-
data.floorStyles.forEach(function (element) {
|
|
450
|
-
if (element.selected) isSelected = true;
|
|
451
|
-
});
|
|
452
|
-
if (!isSelected) data.floorStyles[0].selected = true;
|
|
453
|
-
temp.floorStyles = data.floorStyles;
|
|
454
|
-
} else {
|
|
455
|
-
console.log('There are no floorStyles.');
|
|
456
|
-
}
|
|
457
|
-
temp = {
|
|
458
|
-
counterTop: temp.counterTop.filter(function (e) {
|
|
459
|
-
return e.selected == true;
|
|
460
|
-
}),
|
|
461
|
-
floorStyles: temp.floorStyles.filter(function (e) {
|
|
462
|
-
return e.selected == true;
|
|
463
|
-
})
|
|
464
|
-
};
|
|
465
|
-
return temp;
|
|
466
|
-
};
|
|
467
|
-
var dStyle = _findDefault(tmp);
|
|
468
|
-
var finishing = findFinishing({
|
|
469
|
-
counterTop: counterTop,
|
|
470
|
-
floorStyles: floorStyles
|
|
471
|
-
});
|
|
472
|
-
// let oStyle = doorCategory([], tmp, '');
|
|
473
|
-
self.context.itemsActions.setInitialDoorStyle(dStyle, oStyle);
|
|
474
|
-
self.context.itemsActions.setCounterTop({
|
|
475
|
-
uri: finishing.counterTop[0].texture
|
|
476
|
-
});
|
|
477
|
-
self.context.areaActions.setFloorStyles({
|
|
478
|
-
uri: finishing.floorStyles[0].texture
|
|
479
|
-
});
|
|
480
|
-
if (dStyle !== undefined) {
|
|
481
|
-
self.setState({
|
|
482
|
-
currentTexture: dStyle,
|
|
483
|
-
oData: oStyle
|
|
484
|
-
});
|
|
485
|
-
} else {
|
|
486
|
-
self.setState({
|
|
487
|
-
currentTexture: tmp[0].items[0].items[0],
|
|
488
|
-
oData: oStyle
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
} else {
|
|
492
|
-
self.context.itemsActions.setInitialDoorStyle(self.state.currentTexture, oStyle);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}, {
|
|
497
|
-
key: "componentWillReceiveProps",
|
|
498
|
-
value: function componentWillReceiveProps(nextProps) {
|
|
499
|
-
var layer = nextProps.layers.get(nextProps.selectedLayer);
|
|
500
|
-
this.setState({
|
|
501
|
-
measurementUnit: unitData.filter(function (unit) {
|
|
502
|
-
return unit._unit === layer.unit;
|
|
503
|
-
})[0],
|
|
504
|
-
ceilingHeight: layer.ceilHeight
|
|
505
|
-
});
|
|
506
|
-
var tmp = [];
|
|
507
|
-
this.props.categoryData.data.doorStyles.items.forEach(function (item) {
|
|
508
|
-
var t = [];
|
|
509
|
-
item.items.forEach(function (item1) {
|
|
510
|
-
var t2 = [];
|
|
511
|
-
item1.items.forEach(function (item2) {
|
|
512
|
-
t2.push(_objectSpread(_objectSpread({}, item2), {}, {
|
|
513
|
-
install: item.name
|
|
514
|
-
}));
|
|
515
|
-
});
|
|
516
|
-
t.push(_objectSpread(_objectSpread({}, item1), {}, {
|
|
517
|
-
items: [].concat(t2)
|
|
518
|
-
}));
|
|
519
|
-
});
|
|
520
|
-
tmp.push(_objectSpread(_objectSpread({}, item), {}, {
|
|
521
|
-
items: t
|
|
522
|
-
}));
|
|
523
|
-
});
|
|
524
|
-
if (layer.doorStyle !== null && layer.doorStyle !== undefined && this.state.currentTexture !== undefined) {
|
|
525
|
-
this.setState({
|
|
526
|
-
currentTexture: layer.doorStyle
|
|
527
|
-
});
|
|
528
|
-
} else if (layer.doorStyle === null || layer.doorStyle === undefined) {
|
|
529
|
-
this.setState({
|
|
530
|
-
currentTexture: this.props.state.doorStyle === null || this.props.state.doorStyle === undefined ? tmp.filter(function (item) {
|
|
531
|
-
return item.items.filter(function (item1) {
|
|
532
|
-
return item1.items.length !== 0;
|
|
533
|
-
}).length !== 0;
|
|
534
|
-
})[0].items.filter(function (item) {
|
|
535
|
-
return item.items.length !== 0;
|
|
536
|
-
})[0].items[0] : this.props.state.doorStyle.toJS()
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
var activeButton = '';
|
|
540
|
-
if (nextProps.reviewQuotePopupOpened) {
|
|
541
|
-
activeButton = REVIEW_AND_QUOTE;
|
|
542
|
-
} else if (nextProps.floorOpened) {
|
|
543
|
-
activeButton = MAKE_FLOOR_PLAN;
|
|
544
|
-
} else if (nextProps.cabinetOpened) {
|
|
545
|
-
activeButton = ADD_CABINETS;
|
|
546
|
-
} else if (nextProps.applianceOpened) {
|
|
547
|
-
activeButton = ADD_APPLIANCES;
|
|
548
|
-
} else if (nextProps.finishingOpened) {
|
|
549
|
-
activeButton = FINISHING_TOUCH;
|
|
550
|
-
} else if (nextProps.doorStyleOpen) {
|
|
551
|
-
activeButton = SELECT_DOOR_STYLE;
|
|
552
|
-
}
|
|
553
|
-
this.setState({
|
|
554
|
-
activeButton: activeButton
|
|
555
|
-
});
|
|
556
|
-
var propLayer = this.props.layers.get(this.props.selectedLayer);
|
|
557
|
-
if (this.props.layers.hashCode() === nextProps.layers.hashCode()) return;
|
|
558
|
-
var elements = {
|
|
559
|
-
lines: layer.lines,
|
|
560
|
-
holes: layer.holes,
|
|
561
|
-
items: layer.items,
|
|
562
|
-
molding: layer.molding
|
|
563
|
-
};
|
|
564
|
-
this.setState({
|
|
565
|
-
elements: elements
|
|
566
|
-
});
|
|
567
|
-
if (nextProps.state.get('isOpen') === true) {
|
|
568
|
-
this.context.holesActions.endCreatingHole();
|
|
569
|
-
this.context.itemsActions.endCreatingCabinet();
|
|
570
|
-
this.context.projectActions.setIsCabinetDrawing(false);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}, {
|
|
574
|
-
key: "componentDidUpdate",
|
|
575
|
-
value: function componentDidUpdate(prevProps, prevState) {
|
|
576
|
-
var _this$state$cabinetCo,
|
|
577
|
-
_this2 = this;
|
|
578
|
-
var allData = this.state.DoorStyles.flatMap(function (item) {
|
|
579
|
-
return item.items.flatMap(function (item1) {
|
|
580
|
-
return item1.items.map(function (item2) {
|
|
581
|
-
return _objectSpread(_objectSpread({}, item2), {}, {
|
|
582
|
-
install: item.name
|
|
583
|
-
});
|
|
584
|
-
});
|
|
585
|
-
});
|
|
586
|
-
});
|
|
587
|
-
var selectedColorId = ((_this$state$cabinetCo = this.state.cabinetColor.data.find(function (color) {
|
|
588
|
-
return color.name === _this2.state.cabinetColor.name;
|
|
589
|
-
})) === null || _this$state$cabinetCo === void 0 ? void 0 : _this$state$cabinetCo.id) || '';
|
|
590
|
-
var selectedDoorStyleName = this.state.subCabinetStyle.name;
|
|
591
|
-
var selectedInstallationName = this.state.cabinetStyle.name;
|
|
592
|
-
var filteredData = !this.state.subCabinetStyle.name && !this.state.cabinetStyle.name && !this.state.cabinetColor.name && !this.state.searchName ? allData : allData.filter(function (item) {
|
|
593
|
-
var matchesSearch = item.name.toLowerCase().search(_this2.state.searchName.toLowerCase()) !== -1;
|
|
594
|
-
return (!selectedDoorStyleName || item.door_style_name === selectedDoorStyleName) && (!_this2.state.cabinetStyle.name || item.install === selectedInstallationName) && (!_this2.state.cabinetColor.name || item.color_family === ",".concat(selectedColorId, ",")) && matchesSearch;
|
|
595
|
-
});
|
|
596
|
-
|
|
597
|
-
// Only update state if filteredData actually changed
|
|
598
|
-
if (JSON.stringify(filteredData) !== JSON.stringify(this.state.subCabinetStyle.data)) {
|
|
599
|
-
this.setState({
|
|
600
|
-
subCabinetStyle: _objectSpread(_objectSpread({}, this.state.subCabinetStyle), {}, {
|
|
601
|
-
data: filteredData
|
|
602
|
-
})
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
if (this.state.resetFilters) {
|
|
606
|
-
this.setState({
|
|
607
|
-
cabinetStyle: _objectSpread(_objectSpread({}, this.state.cabinetStyle), {}, {
|
|
608
|
-
name: ''
|
|
609
|
-
}),
|
|
610
|
-
subCabinetStyle: _objectSpread(_objectSpread({}, this.state.subCabinetStyle), {}, {
|
|
611
|
-
name: ''
|
|
612
|
-
}),
|
|
613
|
-
cabinetColor: _objectSpread(_objectSpread({}, this.state.cabinetColor), {}, {
|
|
614
|
-
name: ''
|
|
615
|
-
}),
|
|
616
|
-
searchName: '',
|
|
617
|
-
resetFilters: false
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
// sessionStorage.setItem('usedObjects', JSON.stringify(usedObjects));
|
|
622
|
-
}
|
|
623
|
-
}, {
|
|
624
|
-
key: "toggleOpen",
|
|
625
|
-
value: function toggleOpen() {
|
|
626
|
-
var replacingSupport = this.props.state.replacingSupport;
|
|
627
|
-
var layerID = replacingSupport.getIn(['layerID']);
|
|
628
|
-
var itemID = replacingSupport.getIn(['itemID']);
|
|
629
|
-
var iName = null;
|
|
630
|
-
if (layerID !== undefined) {
|
|
631
|
-
var obj = this.props.state.scene.getIn(['layers', layerID, 'items', itemID]);
|
|
632
|
-
if (obj === undefined) {
|
|
633
|
-
this.PanelClose();
|
|
634
|
-
return;
|
|
635
|
-
}
|
|
636
|
-
iName = obj.name;
|
|
637
|
-
this.setState({
|
|
638
|
-
plgUrls: [iName]
|
|
639
|
-
});
|
|
640
|
-
this.updateplgItems([iName]);
|
|
641
|
-
if (ARRAY_3D_MODES.includes(this.props.state.mode) && !this.state.opened) this.PanelOpen();else this.PanelClose();
|
|
642
|
-
} else {
|
|
643
|
-
this.PanelClose();
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
}, {
|
|
647
|
-
key: "Animate",
|
|
648
|
-
value: function Animate() {
|
|
649
|
-
this.context.itemsActions.animateObject(this.state.animValue);
|
|
650
|
-
}
|
|
651
|
-
}, {
|
|
652
|
-
key: "toggleAnimationOpen",
|
|
653
|
-
value: function toggleAnimationOpen() {
|
|
654
|
-
var replacingSupport = this.props.state.replacingSupport;
|
|
655
|
-
var layerID = replacingSupport.getIn(['layerID']);
|
|
656
|
-
var itemID = replacingSupport.getIn(['itemID']);
|
|
657
|
-
var planData = window.planData;
|
|
658
|
-
var iName = null;
|
|
659
|
-
if (layerID !== undefined) {
|
|
660
|
-
var obj = this.props.state.scene.getIn(['layers', layerID, 'items', itemID]);
|
|
661
|
-
if (obj === undefined) {
|
|
662
|
-
this.PanelAnimClose();
|
|
663
|
-
return;
|
|
664
|
-
}
|
|
665
|
-
iName = obj.name;
|
|
666
|
-
var item3D = planData.sceneGraph.layers[layerID].items[itemID];
|
|
667
|
-
var userData = item3D.children[0].userData;
|
|
668
|
-
this.setState({
|
|
669
|
-
animData: userData.animation,
|
|
670
|
-
animValue: 0
|
|
671
|
-
});
|
|
672
|
-
this.setState({
|
|
673
|
-
plgUrls: [iName]
|
|
674
|
-
});
|
|
675
|
-
this.updateplgItems([iName]);
|
|
676
|
-
if (ARRAY_3D_MODES.includes(this.props.state.mode) && !this.state.animOpened) this.PanelAnimOpen();else this.PanelAnimClose();
|
|
677
|
-
} else {
|
|
678
|
-
this.PanelAnimClose();
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
}, {
|
|
682
|
-
key: "PanelOpen",
|
|
683
|
-
value: function PanelOpen() {
|
|
684
|
-
this.setState({
|
|
685
|
-
opened: true,
|
|
686
|
-
animOpened: false
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
}, {
|
|
690
|
-
key: "PanelClose",
|
|
691
|
-
value: function PanelClose() {
|
|
692
|
-
this.setState({
|
|
693
|
-
opened: false,
|
|
694
|
-
closeover: false
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
}, {
|
|
698
|
-
key: "PanelAnimOpen",
|
|
699
|
-
value: function PanelAnimOpen() {
|
|
700
|
-
this.setState({
|
|
701
|
-
animOpened: true,
|
|
702
|
-
opened: false
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
}, {
|
|
706
|
-
key: "PanelAnimClose",
|
|
707
|
-
value: function PanelAnimClose() {
|
|
708
|
-
this.setState({
|
|
709
|
-
animOpened: false,
|
|
710
|
-
closeover: false
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
}, {
|
|
714
|
-
key: "getStyle",
|
|
715
|
-
value: function getStyle(texture) {
|
|
716
|
-
texture = _objectSpread({}, texture);
|
|
717
|
-
var doorTitle = this.state.doorTitle;
|
|
718
|
-
var recentStyle = this.state.recentStyle;
|
|
719
|
-
var rStyle = {
|
|
720
|
-
doorTitle: doorTitle,
|
|
721
|
-
textureData: texture
|
|
722
|
-
};
|
|
723
|
-
if (recentStyle.length == 2) {
|
|
724
|
-
recentStyle[1] = recentStyle[0];
|
|
725
|
-
recentStyle[0] = rStyle;
|
|
726
|
-
} else {
|
|
727
|
-
recentStyle.unshift(rStyle);
|
|
728
|
-
}
|
|
729
|
-
this.setState({
|
|
730
|
-
recentStyle: recentStyle
|
|
731
|
-
});
|
|
732
|
-
this.setState({
|
|
733
|
-
currentTexture: texture,
|
|
734
|
-
doorStyleStep: 0,
|
|
735
|
-
doorStyleExpand: -1,
|
|
736
|
-
doorStyleSubCategoryData: [],
|
|
737
|
-
stepSource: this.state.DoorStyles,
|
|
738
|
-
doorTitle: [],
|
|
739
|
-
changeTexture: texture
|
|
740
|
-
});
|
|
741
|
-
var scene = this.props.state.scene;
|
|
742
|
-
var layerID = scene.get('selectedLayer');
|
|
743
|
-
var itemIDs = scene.layers.getIn([layerID, 'selected', 'items']).toJS();
|
|
744
|
-
if (itemIDs.length > 0) {
|
|
745
|
-
this.setState({
|
|
746
|
-
setDoorStylePopupVisible: true
|
|
747
|
-
});
|
|
748
|
-
} else {
|
|
749
|
-
this.context.itemsActions.setDoorStyle(texture, doorTitle, true);
|
|
750
|
-
}
|
|
751
|
-
this.props.setToolbar('');
|
|
752
|
-
}
|
|
753
|
-
}, {
|
|
754
|
-
key: "applyMaterial",
|
|
755
|
-
value: function applyMaterial(category, metalness, roughness) {
|
|
756
|
-
if (category === 'floor_style') this.context.areaActions.setFloorStyles({
|
|
757
|
-
metalness: metalness,
|
|
758
|
-
roughness: roughness
|
|
759
|
-
});else if (category === 'backsplash') this.context.itemsActions.setBacksplash({
|
|
760
|
-
metalness: metalness,
|
|
761
|
-
roughness: roughness
|
|
762
|
-
});else if (category === 'counter_top') this.context.itemsActions.setCounterTop({
|
|
763
|
-
metalness: metalness,
|
|
764
|
-
roughness: roughness
|
|
765
|
-
});else if (category === 'handle') this.context.itemsActions.setHandleMaterial({
|
|
766
|
-
metalness: metalness,
|
|
767
|
-
roughness: roughness
|
|
768
|
-
});else if (category === 'appliance') this.context.itemsActions.setApplianceMaterial({
|
|
769
|
-
metalness: metalness,
|
|
770
|
-
roughness: roughness
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
}, {
|
|
774
|
-
key: "setFinishing",
|
|
775
|
-
value: function setFinishing(texture) {
|
|
776
|
-
var _texture$category;
|
|
777
|
-
if (texture.category === 'modelling') {
|
|
778
|
-
this.context.itemsActions.setModelling(texture.name);
|
|
779
|
-
} else if (texture !== null && texture !== void 0 && (_texture$category = texture.category) !== null && _texture$category !== void 0 && (_texture$category = _texture$category.toLowerCase()) !== null && _texture$category !== void 0 && _texture$category.includes('molding')) {
|
|
780
|
-
this.context.itemsActions.setMolding(texture, true);
|
|
781
|
-
} else if (texture.category === 'wall_color') {
|
|
782
|
-
// it doesn't have to do this action in elevation mode
|
|
783
|
-
if (isElevationView(this.props.state.mode)) {
|
|
784
|
-
this.setState({
|
|
785
|
-
snackBarMessage: WARNING_MESSAGE.ELEVATION_VIEW_ACTION_DISABLED,
|
|
786
|
-
isSnackBarOpen: true
|
|
787
|
-
});
|
|
788
|
-
} else this.context.itemsActions.setWallColor(texture.color);
|
|
789
|
-
} else if (texture.category === 'counter_top') {
|
|
790
|
-
this.context.itemsActions.setCounterTop({
|
|
791
|
-
uri: texture.texture
|
|
792
|
-
});
|
|
793
|
-
} else if (texture.category === 'floor_style') {
|
|
794
|
-
// it doesn't have to do this action in elevation mode
|
|
795
|
-
if (isElevationView(this.props.state.mode)) {
|
|
796
|
-
this.setState({
|
|
797
|
-
snackBarMessage: WARNING_MESSAGE.ELEVATION_VIEW_ACTION_DISABLED,
|
|
798
|
-
isSnackBarOpen: true
|
|
799
|
-
});
|
|
800
|
-
} else this.context.areaActions.setFloorStyles({
|
|
801
|
-
uri: texture.texture
|
|
802
|
-
});
|
|
803
|
-
} else if (texture.category === 'backsplash') {
|
|
804
|
-
// it doesn't have to do this action in elevation mode
|
|
805
|
-
if (isElevationView(this.props.state.mode)) {
|
|
806
|
-
this.setState({
|
|
807
|
-
snackBarMessage: WARNING_MESSAGE.ELEVATION_VIEW_ACTION_DISABLED,
|
|
808
|
-
isSnackBarOpen: true
|
|
809
|
-
});
|
|
810
|
-
} else this.context.itemsActions.setBacksplash({
|
|
811
|
-
uri: texture.texture
|
|
812
|
-
});
|
|
813
|
-
} else if (texture.category === 'lighting' || texture.category === 'furnishing') {
|
|
814
|
-
this.context.itemsActions.updatePopupOpen(2);
|
|
815
|
-
if (texture.category === 'lighting' && [MODE_IDLE_3D, MODE_DRAWING_ITEM_3D, MODE_DRAGGING_ITEM_3D, MODE_ROTATING_ITEM_3D].includes(this.props.state.mode))
|
|
816
|
-
// props.itemsActions.selectToolDrawingItem(dataSource[i].name);
|
|
817
|
-
this.context.itemsActions.selectToolDrawingItem3D(texture.name);else {
|
|
818
|
-
[MODE_IDLE_3D, MODE_DRAWING_ITEM_3D, MODE_DRAGGING_ITEM_3D, MODE_ROTATING_ITEM_3D].includes(this.props.state.mode) ? this.context.itemsActions.selectToolDrawingItem3D(texture.name) : this.context.itemsActions.selectToolDrawingItem(texture.name);
|
|
819
|
-
}
|
|
820
|
-
this.context.projectActions.pushLastSelectedCatalogElementToHistory(this.props.catalog.elements[texture.name]);
|
|
821
|
-
if (document.getElementsByClassName('popup-content').length > 0) document.getElementsByClassName('popup-content')[0].style.display = 'none';
|
|
822
|
-
this.context.projectActions.setIsCabinetDrawing(true);
|
|
823
|
-
} else {
|
|
824
|
-
var gltfJSON = JSON.parse(texture.gltf);
|
|
825
|
-
if (gltfJSON.gltf.some(function (el) {
|
|
826
|
-
return el.endsWith('gltf');
|
|
827
|
-
})) {
|
|
828
|
-
this.context.itemsActions.setDoorHandle(gltfJSON.gltf.find(function (el) {
|
|
829
|
-
return el.endsWith('gltf');
|
|
830
|
-
}));
|
|
831
|
-
if (document.getElementsByClassName('popup-content').length > 0) document.getElementsByClassName('popup-content')[0].style.display = 'none';
|
|
832
|
-
} else {
|
|
833
|
-
this.setState({
|
|
834
|
-
snackBarMessage: 'Invalid Door Handle!!!',
|
|
835
|
-
isSnackBarOpen: true
|
|
836
|
-
});
|
|
837
|
-
console.log('There are no gltf file in ' + texture.name + 'handle!');
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
this.props.setToolbar('');
|
|
841
|
-
}
|
|
842
|
-
}, {
|
|
843
|
-
key: "setDoorStyleOption",
|
|
844
|
-
value: function setDoorStyleOption(value) {
|
|
845
|
-
this.setState({
|
|
846
|
-
setDoorStylePopupVisible: false
|
|
847
|
-
});
|
|
848
|
-
this.context.itemsActions.setDoorStyle(this.state.changeTexture, this.state.doorTitle, value);
|
|
849
|
-
}
|
|
850
|
-
}, {
|
|
851
|
-
key: "loadProject",
|
|
852
|
-
value: function loadProject(data) {
|
|
853
|
-
this.context.projectActions.loadProject(data || this.state.selectedProject, this.props.categoryData);
|
|
854
|
-
}
|
|
855
|
-
}, {
|
|
856
|
-
key: "_submit",
|
|
857
|
-
value: function _submit() {
|
|
858
|
-
this.loadProject();
|
|
859
|
-
this.handleConfirmLoad();
|
|
860
|
-
}
|
|
861
|
-
}, {
|
|
862
|
-
key: "isProjectEmpty",
|
|
863
|
-
value: function isProjectEmpty(scene) {
|
|
864
|
-
var layers = scene.layers,
|
|
865
|
-
selectedLayer = scene.selectedLayer;
|
|
866
|
-
var layer = layers.get(selectedLayer);
|
|
867
|
-
return layer.areas.size + layer.lines.size + layer.holes.size + layer.items.size === 0;
|
|
868
|
-
}
|
|
869
|
-
}, {
|
|
870
|
-
key: "loadProjectFromData",
|
|
871
|
-
value: function loadProjectFromData(item, event) {
|
|
872
|
-
event.preventDefault();
|
|
873
|
-
if (this.isProjectEmpty(this.props.state.scene)) {
|
|
874
|
-
this.loadProject(item.data, this.props.categoryData);
|
|
875
|
-
} else {
|
|
876
|
-
this.setState({
|
|
877
|
-
selectedProject: item.data,
|
|
878
|
-
isPopupOpen: true
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
|
-
this.props.setToolbar('');
|
|
882
|
-
}
|
|
883
|
-
}, {
|
|
884
|
-
key: "handleConfirmLoad",
|
|
885
|
-
value: function handleConfirmLoad() {
|
|
886
|
-
this.setState({
|
|
887
|
-
isPopupOpen: false
|
|
888
|
-
});
|
|
889
|
-
this.props.setToolbar('');
|
|
890
|
-
}
|
|
891
|
-
}, {
|
|
892
|
-
key: "cabinetselect",
|
|
893
|
-
value: function cabinetselect(name) {
|
|
894
|
-
this.select(this.props.catalog.elements[name]);
|
|
895
|
-
}
|
|
896
|
-
}, {
|
|
897
|
-
key: "select",
|
|
898
|
-
value: function select(element) {
|
|
899
|
-
this.context.projectActions.unselectAll();
|
|
900
|
-
switch (element.prototype) {
|
|
901
|
-
case 'lines':
|
|
902
|
-
this.context.linesActions.selectToolDrawingLine(element.name);
|
|
903
|
-
break;
|
|
904
|
-
case 'items':
|
|
905
|
-
ARRAY_3D_MODES.includes(this.props.state.mode) ? this.context.itemsActions.selectToolDrawingItem3D(element.name) : this.context.itemsActions.selectToolDrawingItem(element.name);
|
|
906
|
-
break;
|
|
907
|
-
case 'holes':
|
|
908
|
-
this.context.holesActions.selectToolDrawingHole(element.name);
|
|
909
|
-
break;
|
|
910
|
-
}
|
|
911
|
-
this.context.projectActions.pushLastSelectedCatalogElementToHistory(element);
|
|
912
|
-
this.context.projectActions.setIsCabinetDrawing(true);
|
|
913
|
-
}
|
|
914
|
-
}, {
|
|
915
|
-
key: "collapseAction",
|
|
916
|
-
value: function collapseAction(i) {
|
|
917
|
-
if (i == 0) {
|
|
918
|
-
if (this.state.cabinetCollapse == false) this.setState({
|
|
919
|
-
cabinetCollapse: true,
|
|
920
|
-
doorCollapse: true
|
|
921
|
-
});else this.setState({
|
|
922
|
-
cabinetCollapse: false,
|
|
923
|
-
doorCollapse: true
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
if (i == 1) {
|
|
927
|
-
if (this.state.doorCollapse == false) this.setState({
|
|
928
|
-
cabinetCollapse: true,
|
|
929
|
-
doorCollapse: true
|
|
930
|
-
});else this.setState({
|
|
931
|
-
cabinetCollapse: true,
|
|
932
|
-
doorCollapse: false
|
|
933
|
-
});
|
|
934
|
-
}
|
|
935
|
-
if (i == 2) this.setState({
|
|
936
|
-
floorCollapse: !this.state.floorCollapse
|
|
937
|
-
});
|
|
938
|
-
if (i == 3) this.setState({
|
|
939
|
-
doorExpand: !this.state.doorExpand
|
|
940
|
-
});
|
|
941
|
-
if (i == 4) {}
|
|
942
|
-
}
|
|
943
|
-
}, {
|
|
944
|
-
key: "expandDoorStyleAction",
|
|
945
|
-
value: function expandDoorStyleAction() {
|
|
946
|
-
this.setState({
|
|
947
|
-
doorStyleExpand: (this.state.doorStyleExpand + 1) % 2
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
}, {
|
|
951
|
-
key: "expandCabinetAction",
|
|
952
|
-
value: function expandCabinetAction() {
|
|
953
|
-
this.setState({
|
|
954
|
-
cabinetExpand: (this.state.cabinetExpand + 1) % 2
|
|
955
|
-
});
|
|
956
|
-
}
|
|
957
|
-
}, {
|
|
958
|
-
key: "expandApplianceAction",
|
|
959
|
-
value: function expandApplianceAction() {
|
|
960
|
-
this.setState({
|
|
961
|
-
applianceExpand: (this.state.applianceExpand + 1) % 2
|
|
962
|
-
});
|
|
963
|
-
}
|
|
964
|
-
}, {
|
|
965
|
-
key: "plgItemAction",
|
|
966
|
-
value: function plgItemAction(url, name, gltfUrl, self) {
|
|
967
|
-
var purls = this.state.plgUrls;
|
|
968
|
-
if (url == 'dir') {
|
|
969
|
-
purls.push(name);
|
|
970
|
-
}
|
|
971
|
-
if (url == 'before') purls.pop();
|
|
972
|
-
if (url != 'dir' && url != 'before') {
|
|
973
|
-
this.context.itemsActions.replaceSubmodule(gltfUrl);
|
|
974
|
-
}
|
|
975
|
-
this.updateplgItems(this.state.plgUrls);
|
|
976
|
-
}
|
|
977
|
-
}, {
|
|
978
|
-
key: "updateplgItems",
|
|
979
|
-
value: function updateplgItems(urls) {
|
|
980
|
-
var getUrl = '';
|
|
981
|
-
for (var i = 0; i < urls.length; i++) {
|
|
982
|
-
getUrl += '/';
|
|
983
|
-
getUrl += urls[i];
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
}, {
|
|
987
|
-
key: "filterChange",
|
|
988
|
-
value: function filterChange(self) {
|
|
989
|
-
var setValue = self.target.value;
|
|
990
|
-
this.setState({
|
|
991
|
-
filter: setValue
|
|
992
|
-
});
|
|
993
|
-
}
|
|
994
|
-
}, {
|
|
995
|
-
key: "setAnimValue",
|
|
996
|
-
value: function setAnimValue(event) {
|
|
997
|
-
var value = event.target.value;
|
|
998
|
-
this.setState({
|
|
999
|
-
animValue: value
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
}, {
|
|
1003
|
-
key: "selectFromRecent",
|
|
1004
|
-
value: function selectFromRecent(i) {
|
|
1005
|
-
var doorTitle = this.state.recentStyle[i].doorTitle;
|
|
1006
|
-
doorTitle.pop();
|
|
1007
|
-
var textureData = this.state.recentStyle[i].textureData;
|
|
1008
|
-
this.context.itemsActions.setDoorStyle(textureData, doorTitle);
|
|
1009
|
-
this.setState({
|
|
1010
|
-
cabinetStyle: 0,
|
|
1011
|
-
currentTexture: textureData,
|
|
1012
|
-
dData: this.state.DoorStyles,
|
|
1013
|
-
doorTitle: [],
|
|
1014
|
-
dDataArray: []
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
}, {
|
|
1018
|
-
key: "selected",
|
|
1019
|
-
value: function selected(doorId) {
|
|
1020
|
-
var texture = this.state.currentTexture;
|
|
1021
|
-
if (texture) return texture.id === doorId && getInstallationSuffix(INSTALLATION_SUFFIX_TYPE.NAME, texture) === this.state.install ? 1 : 0;else return 0;
|
|
1022
|
-
}
|
|
1023
|
-
}, {
|
|
1024
|
-
key: "onSearch",
|
|
1025
|
-
value: function onSearch(e, i) {
|
|
1026
|
-
if (i == 0) this.setState({
|
|
1027
|
-
searchCabinet: e.target.value
|
|
1028
|
-
});else this.setState({
|
|
1029
|
-
searchDoor: e.target.value
|
|
1030
|
-
});
|
|
1031
|
-
}
|
|
1032
|
-
}, {
|
|
1033
|
-
key: "onUpdate",
|
|
1034
|
-
value: function onUpdate(e) {
|
|
1035
|
-
this.setState({
|
|
1036
|
-
search: e.target.value
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
}, {
|
|
1040
|
-
key: "drawCircle",
|
|
1041
|
-
value: function drawCircle(ctx, p, color, radius) {
|
|
1042
|
-
if (typeof radius == 'undefined') radius = 2;
|
|
1043
|
-
if (typeof color == 'undefined') color = 'red';
|
|
1044
|
-
ctx.beginPath();
|
|
1045
|
-
ctx.fillStyle = color;
|
|
1046
|
-
ctx.arc(p.x, p.y, radius, 0, 2 * Math.PI);
|
|
1047
|
-
ctx.fill();
|
|
1048
|
-
}
|
|
1049
|
-
}, {
|
|
1050
|
-
key: "drawPoly",
|
|
1051
|
-
value: function drawPoly(ctx, points, color) {
|
|
1052
|
-
ctx.globalAlpha = 1;
|
|
1053
|
-
ctx.strokeStyle = color ? color : 'red';
|
|
1054
|
-
ctx.beginPath();
|
|
1055
|
-
var p = points[points.length - 1];
|
|
1056
|
-
ctx.moveTo(p.x, p.y);
|
|
1057
|
-
for (var i = 0; i < points.length; i++) {
|
|
1058
|
-
var p = points[i];
|
|
1059
|
-
ctx.lineTo(p.x, p.y);
|
|
1060
|
-
}
|
|
1061
|
-
ctx.stroke();
|
|
1062
|
-
}
|
|
1063
|
-
}, {
|
|
1064
|
-
key: "percentToPxHor",
|
|
1065
|
-
value: function percentToPxHor(canvas, intPx) {
|
|
1066
|
-
return intPx * canvas.width / 100;
|
|
1067
|
-
}
|
|
1068
|
-
}, {
|
|
1069
|
-
key: "percentToPxVert",
|
|
1070
|
-
value: function percentToPxVert(canvas, intPx) {
|
|
1071
|
-
return intPx * canvas.height / 100;
|
|
1072
|
-
}
|
|
1073
|
-
}, {
|
|
1074
|
-
key: "canvasUpdate",
|
|
1075
|
-
value: function canvasUpdate(ctx, canvas) {
|
|
1076
|
-
var _this3 = this;
|
|
1077
|
-
if (ctx === undefined || this.state.image === '') return;
|
|
1078
|
-
// clear canvas
|
|
1079
|
-
ctx.fillStyle = 'white';
|
|
1080
|
-
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
1081
|
-
ctx.globalAlpha = 0.3;
|
|
1082
|
-
ctx.drawImage(this.state.image, 0, 0, canvas.width, canvas.height);
|
|
1083
|
-
if (this.state.isMouseDown) {
|
|
1084
|
-
ctx.globalAlpha = 1;
|
|
1085
|
-
ctx.drawImage(this.state.image, this.state.firstMousePoint.x, this.state.firstMousePoint.y, this.state.mouse.p.x - this.state.firstMousePoint.x, this.state.mouse.p.y - this.state.firstMousePoint.y, this.state.firstMousePoint.x, this.state.firstMousePoint.y, this.state.mouse.p.x - this.state.firstMousePoint.x, this.state.mouse.p.y - this.state.firstMousePoint.y);
|
|
1086
|
-
var img = new Image();
|
|
1087
|
-
img.crossOrigin = 'anonymous';
|
|
1088
|
-
img.src = canvas.toDataURL();
|
|
1089
|
-
img.onload = function () {
|
|
1090
|
-
_this3.setState({
|
|
1091
|
-
croppedImage: img
|
|
1092
|
-
});
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
// draw points and connect
|
|
1097
|
-
this.drawCircle(ctx, this.state.topLeft, 'blue');
|
|
1098
|
-
this.drawCircle(ctx, this.state.bottomLeft, 'green');
|
|
1099
|
-
this.drawCircle(ctx, this.state.topRight, 'red');
|
|
1100
|
-
this.drawCircle(ctx, this.state.bottomRight, 'orange');
|
|
1101
|
-
this.drawPoly(ctx, [this.state.topLeft, this.state.bottomLeft, this.state.bottomRight, this.state.topRight]);
|
|
1102
|
-
|
|
1103
|
-
// draw mouse circle
|
|
1104
|
-
// this.drawCircle(ctx, this.state.mouse.p, 'rgba(255,200,0,.75)', 10);
|
|
1105
|
-
|
|
1106
|
-
// draw mouse lines
|
|
1107
|
-
var h1 = {
|
|
1108
|
-
x: 0,
|
|
1109
|
-
y: this.state.mouse.p.y
|
|
1110
|
-
};
|
|
1111
|
-
var h2 = {
|
|
1112
|
-
x: canvas.width,
|
|
1113
|
-
y: this.state.mouse.p.y
|
|
1114
|
-
};
|
|
1115
|
-
var v1 = {
|
|
1116
|
-
x: this.state.mouse.p.x,
|
|
1117
|
-
y: 0
|
|
1118
|
-
};
|
|
1119
|
-
var v2 = {
|
|
1120
|
-
x: this.state.mouse.p.x,
|
|
1121
|
-
y: canvas.height
|
|
1122
|
-
};
|
|
1123
|
-
if (Math.abs(this.state.mouse.p.x - this.state.firstMousePoint.x) < 60 && this.state.isMouseDown) {
|
|
1124
|
-
this.drawPoly(ctx, [v1, v2]);
|
|
1125
|
-
} else {
|
|
1126
|
-
this.drawPoly(ctx, [v1, v2], 'rgba(64, 155, 197, 1)');
|
|
1127
|
-
}
|
|
1128
|
-
if (Math.abs(this.state.mouse.p.y - this.state.firstMousePoint.y) < 60 && this.state.isMouseDown) {
|
|
1129
|
-
this.drawPoly(ctx, [h1, h2]);
|
|
1130
|
-
} else {
|
|
1131
|
-
this.drawPoly(ctx, [h1, h2], 'rgba(64, 155, 197, 1)');
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
}, {
|
|
1135
|
-
key: "imageBrowserDownload",
|
|
1136
|
-
value: function imageBrowserDownload(canvas, imageUri) {
|
|
1137
|
-
var fileOutputLink = document.createElement('a');
|
|
1138
|
-
var filename = 'output' + Date.now() + '.png';
|
|
1139
|
-
filename = window.prompt('Insert output filename', filename);
|
|
1140
|
-
if (!filename) return;
|
|
1141
|
-
fileOutputLink.setAttribute('download', filename);
|
|
1142
|
-
fileOutputLink.href = imageUri;
|
|
1143
|
-
fileOutputLink.style.display = 'none';
|
|
1144
|
-
document.body.appendChild(fileOutputLink);
|
|
1145
|
-
setTimeout(function () {
|
|
1146
|
-
fileOutputLink.click();
|
|
1147
|
-
}, 100);
|
|
1148
|
-
document.body.removeChild(fileOutputLink);
|
|
1149
|
-
this.setState({
|
|
1150
|
-
isModalVisible: false,
|
|
1151
|
-
imageUri: '',
|
|
1152
|
-
image: ''
|
|
1153
|
-
});
|
|
1154
|
-
canvas.style.zIndex = -1;
|
|
1155
|
-
document.removeEventListener('keydown', this.onKeyDown, false);
|
|
1156
|
-
document.removeEventListener('mouseup', this.onMouseUp_On_New_Save_SQ_DA, false);
|
|
1157
|
-
canvas.style.display = 'none';
|
|
1158
|
-
}
|
|
1159
|
-
}, {
|
|
1160
|
-
key: "makeCroppedImage",
|
|
1161
|
-
value: function makeCroppedImage(ctx, canvas) {
|
|
1162
|
-
// clear canvas
|
|
1163
|
-
ctx.fillStyle = 'white';
|
|
1164
|
-
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
1165
|
-
ctx.drawImage(this.state.croppedImage, 0, 0, canvas.width, canvas.height);
|
|
1166
|
-
var croppedCanvas = document.createElement('canvas');
|
|
1167
|
-
var croppedCtx = croppedCanvas.getContext('2d');
|
|
1168
|
-
|
|
1169
|
-
// Set width and height for the new croppedCanvas
|
|
1170
|
-
var heightAtt = document.createAttribute('height');
|
|
1171
|
-
heightAtt.value = Math.abs(this.state.mouse.p.y - this.state.firstMousePoint.y);
|
|
1172
|
-
croppedCanvas.setAttributeNode(heightAtt);
|
|
1173
|
-
var widthAtt = document.createAttribute('width');
|
|
1174
|
-
widthAtt.value = Math.abs(this.state.mouse.p.x - this.state.firstMousePoint.x);
|
|
1175
|
-
croppedCanvas.setAttributeNode(widthAtt);
|
|
1176
|
-
croppedCtx.fillStyle = 'white';
|
|
1177
|
-
croppedCtx.fillRect(0, 0, croppedCanvas.width, croppedCanvas.height);
|
|
1178
|
-
croppedCtx.drawImage(this.state.image, this.state.mouse.p.x - this.state.firstMousePoint.x < 0 ? this.state.mouse.p.x : this.state.firstMousePoint.x, this.state.mouse.p.y - this.state.firstMousePoint.y < 0 ? this.state.mouse.p.y : this.state.firstMousePoint.y, croppedCanvas.width, croppedCanvas.height, 0, 0, croppedCanvas.width, croppedCanvas.height);
|
|
1179
|
-
this.imageBrowserDownload(canvas, croppedCanvas.toDataURL());
|
|
1180
|
-
}
|
|
1181
|
-
}, {
|
|
1182
|
-
key: "setMousePoint",
|
|
1183
|
-
value: function setMousePoint(e, canvas, type) {
|
|
1184
|
-
var ctx = canvas.getContext('2d');
|
|
1185
|
-
var rectCanvas = canvas.getBoundingClientRect();
|
|
1186
|
-
var positionX = Math.round((e.clientX - rectCanvas.left) / canvas.width * 100 * 1000) / 1000;
|
|
1187
|
-
var positionY = Math.round((e.clientY - rectCanvas.top) / canvas.height * 100 * 1000) / 1000;
|
|
1188
|
-
switch (type) {
|
|
1189
|
-
case 'down':
|
|
1190
|
-
this.setState({
|
|
1191
|
-
firstMousePoint: {
|
|
1192
|
-
x: this.percentToPxHor(canvas, positionX),
|
|
1193
|
-
y: this.percentToPxVert(canvas, positionY)
|
|
1194
|
-
}
|
|
1195
|
-
});
|
|
1196
|
-
break;
|
|
1197
|
-
case 'move':
|
|
1198
|
-
this.setState({
|
|
1199
|
-
mouse: {
|
|
1200
|
-
p: {
|
|
1201
|
-
x: this.percentToPxHor(canvas, positionX),
|
|
1202
|
-
y: this.percentToPxVert(canvas, positionY)
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
});
|
|
1206
|
-
break;
|
|
1207
|
-
case 'up':
|
|
1208
|
-
this.setState({
|
|
1209
|
-
lastMousePoint: {
|
|
1210
|
-
x: this.percentToPxHor(canvas, positionX),
|
|
1211
|
-
y: this.percentToPxVert(canvas, positionY)
|
|
1212
|
-
}
|
|
1213
|
-
});
|
|
1214
|
-
if (!(Math.abs(this.state.mouse.p.x - this.state.firstMousePoint.x) < 60 || Math.abs(this.state.mouse.p.y - this.state.firstMousePoint.y) < 60) && ctx !== undefined) {
|
|
1215
|
-
this.makeCroppedImage(ctx, canvas);
|
|
1216
|
-
} else {
|
|
1217
|
-
this.setState({
|
|
1218
|
-
isModalVisible: false,
|
|
1219
|
-
imageUri: '',
|
|
1220
|
-
image: ''
|
|
1221
|
-
});
|
|
1222
|
-
canvas.style.zIndex = -1;
|
|
1223
|
-
document.removeEventListener('keydown', this.onKeyDown, false);
|
|
1224
|
-
document.removeEventListener('mouseup', this.onMouseUp_On_New_Save_SQ_DA, false);
|
|
1225
|
-
canvas.style.display = 'none';
|
|
1226
|
-
}
|
|
1227
|
-
break;
|
|
1228
|
-
default:
|
|
1229
|
-
break;
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
}, {
|
|
1233
|
-
key: "onMouseUp_On_New_Save_SQ_DA",
|
|
1234
|
-
value: function onMouseUp_On_New_Save_SQ_DA(e) {
|
|
1235
|
-
var canvas = document.getElementById('canvas_crop_image');
|
|
1236
|
-
switch (e.target.textContent) {
|
|
1237
|
-
case 'New':
|
|
1238
|
-
case 'Save':
|
|
1239
|
-
case 'Submit for Quote':
|
|
1240
|
-
case 'Designer Assistance':
|
|
1241
|
-
canvas.style.zIndex = -1;
|
|
1242
|
-
document.removeEventListener('keydown', this.onKeyDown, false);
|
|
1243
|
-
document.removeEventListener('mouseup', this.onMouseUp_On_New_Save_SQ_DA, false);
|
|
1244
|
-
canvas.style.display = 'none';
|
|
1245
|
-
this.setState({
|
|
1246
|
-
isModalVisible: false,
|
|
1247
|
-
isMouseDown: false,
|
|
1248
|
-
imageUri: '',
|
|
1249
|
-
image: ''
|
|
1250
|
-
});
|
|
1251
|
-
break;
|
|
1252
|
-
default:
|
|
1253
|
-
break;
|
|
1254
|
-
}
|
|
1255
|
-
if (e.target.outerHTML.includes('review_quote.svg') || e.target.outerHTML.includes('consult_designer.svg')) {
|
|
1256
|
-
canvas.style.zIndex = -1;
|
|
1257
|
-
document.removeEventListener('keydown', this.onKeyDown, false);
|
|
1258
|
-
document.removeEventListener('mouseup', this.onMouseUp_On_New_Save_SQ_DA, false);
|
|
1259
|
-
canvas.style.display = 'none';
|
|
1260
|
-
this.setState({
|
|
1261
|
-
isModalVisible: false,
|
|
1262
|
-
isMouseDown: false,
|
|
1263
|
-
imageUri: '',
|
|
1264
|
-
image: ''
|
|
1265
|
-
});
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
}, {
|
|
1269
|
-
key: "onKeyDown",
|
|
1270
|
-
value: function onKeyDown(e) {
|
|
1271
|
-
if (e.keyCode === KEYBOARD_BUTTON_CODE.ESC) {
|
|
1272
|
-
// Escape
|
|
1273
|
-
var canvas = document.getElementById('canvas_crop_image');
|
|
1274
|
-
document.removeEventListener('mouseup', this.onMouseUp_On_New_Save_SQ_DA, false);
|
|
1275
|
-
canvas.style.display = 'none';
|
|
1276
|
-
if (this.props.state.isCabinetDrawing) {
|
|
1277
|
-
this.context.projectActions.setIsCabinetDrawing(false);
|
|
1278
|
-
} else {
|
|
1279
|
-
this.props.setToolbar('');
|
|
1280
|
-
}
|
|
1281
|
-
this.setState({
|
|
1282
|
-
isModalVisible: false,
|
|
1283
|
-
isMouseDown: false,
|
|
1284
|
-
imageUri: '',
|
|
1285
|
-
image: ''
|
|
1286
|
-
});
|
|
1287
|
-
}
|
|
1288
|
-
if (e.keyCode == KEYBOARD_BUTTON_CODE.DELETE) {
|
|
1289
|
-
this.context.projectActions.remove();
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}, {
|
|
1293
|
-
key: "onMouseDown",
|
|
1294
|
-
value: function onMouseDown(e) {
|
|
1295
|
-
var canvas = document.getElementById('canvas_crop_image');
|
|
1296
|
-
this.setMousePoint(e, canvas, 'down');
|
|
1297
|
-
this.setState({
|
|
1298
|
-
isMouseDown: true
|
|
1299
|
-
});
|
|
1300
|
-
}
|
|
1301
|
-
}, {
|
|
1302
|
-
key: "onMouseMove",
|
|
1303
|
-
value: function onMouseMove(e) {
|
|
1304
|
-
var canvas = document.getElementById('canvas_crop_image');
|
|
1305
|
-
var ctx = canvas.getContext('2d');
|
|
1306
|
-
this.setMousePoint(e, canvas, 'move');
|
|
1307
|
-
this.canvasUpdate(ctx, canvas);
|
|
1308
|
-
}
|
|
1309
|
-
}, {
|
|
1310
|
-
key: "onMouseUp",
|
|
1311
|
-
value: function onMouseUp(e) {
|
|
1312
|
-
var canvas = document.getElementById('canvas_crop_image');
|
|
1313
|
-
this.setMousePoint(e, canvas, 'up');
|
|
1314
|
-
this.setState({
|
|
1315
|
-
isMouseDown: false
|
|
1316
|
-
});
|
|
1317
|
-
}
|
|
1318
|
-
}, {
|
|
1319
|
-
key: "openTab",
|
|
1320
|
-
value: function openTab(name) {
|
|
1321
|
-
var i, tabcontent, tablinks;
|
|
1322
|
-
tabcontent = document.getElementsByClassName('tabcontent');
|
|
1323
|
-
for (i = 0; i < tabcontent.length; i++) {
|
|
1324
|
-
tabcontent[i].style.display = 'none';
|
|
1325
|
-
}
|
|
1326
|
-
tablinks = document.getElementsByClassName('tablinks');
|
|
1327
|
-
for (i = 0; i < tablinks.length; i++) {
|
|
1328
|
-
tablinks[i].className = tablinks[i].className.replace(' selected', '');
|
|
1329
|
-
}
|
|
1330
|
-
document.getElementById(name).style.display = 'flex';
|
|
1331
|
-
document.getElementById(name + '_link').className += ' selected';
|
|
1332
|
-
}
|
|
1333
|
-
}, {
|
|
1334
|
-
key: "render",
|
|
1335
|
-
value: function render() {
|
|
1336
|
-
var _this4 = this,
|
|
1337
|
-
_this$state$DoorStyle,
|
|
1338
|
-
_this$state$DoorStyle2,
|
|
1339
|
-
_this$state$DoorStyle3;
|
|
1340
|
-
var _this$props = this.props,
|
|
1341
|
-
state = _this$props.state,
|
|
1342
|
-
width = _this$props.width,
|
|
1343
|
-
height = _this$props.height,
|
|
1344
|
-
isShowProperty = _this$props.isShowProperty,
|
|
1345
|
-
_this$context = this.context,
|
|
1346
|
-
projectActions = _this$context.projectActions,
|
|
1347
|
-
viewer2DActions = _this$context.viewer2DActions,
|
|
1348
|
-
linesActions = _this$context.linesActions,
|
|
1349
|
-
viewer3DActions = _this$context.viewer3DActions,
|
|
1350
|
-
itemsActions = _this$context.itemsActions;
|
|
1351
|
-
var products = this.props.products;
|
|
1352
|
-
var _this$state = this.state,
|
|
1353
|
-
cabinetCategory = _this$state.cabinetCategory,
|
|
1354
|
-
subCabinetCategory = _this$state.subCabinetCategory,
|
|
1355
|
-
selectedFinishing = _this$state.selectedFinishing,
|
|
1356
|
-
cabinetStyleChanging = _this$state.cabinetStyleChanging,
|
|
1357
|
-
cabinetStyle = _this$state.cabinetStyle,
|
|
1358
|
-
subCabinetStyle = _this$state.subCabinetStyle,
|
|
1359
|
-
cabinetColor = _this$state.cabinetColor,
|
|
1360
|
-
currentTexture = _this$state.currentTexture,
|
|
1361
|
-
ceilingHeight = _this$state.ceilingHeight,
|
|
1362
|
-
measurementUnit = _this$state.measurementUnit,
|
|
1363
|
-
viewMoreDoorstyle = _this$state.viewMoreDoorstyle,
|
|
1364
|
-
selectedRoomElement = _this$state.selectedRoomElement,
|
|
1365
|
-
searchName = _this$state.searchName,
|
|
1366
|
-
chosenReplacedItem = _this$state.chosenReplacedItem,
|
|
1367
|
-
helpViewNum = _this$state.helpViewNum,
|
|
1368
|
-
notes = _this$state.notes,
|
|
1369
|
-
videoUrl = _this$state.videoUrl,
|
|
1370
|
-
moldingData = _this$state.moldingData;
|
|
1371
|
-
var scene = state.get('scene');
|
|
1372
|
-
var layerID = scene.get('selectedLayer');
|
|
1373
|
-
var panel;
|
|
1374
|
-
var dirUrl = '';
|
|
1375
|
-
var mode = state.get('mode');
|
|
1376
|
-
var tt = this;
|
|
1377
|
-
this.state.counterTop.forEach(function (data) {
|
|
1378
|
-
var scene = tt.props.state.get('scene');
|
|
1379
|
-
var layerID = scene.get('selectedLayer');
|
|
1380
|
-
var layers = scene.layers.get(layerID);
|
|
1381
|
-
var counterTop = layers.get('counterTop');
|
|
1382
|
-
data.selected = (counterTop && counterTop.uri) == data.texture;
|
|
1383
|
-
});
|
|
1384
|
-
var userInfo = [];
|
|
1385
|
-
if (this.props.match) userInfo = this.props.match.params;
|
|
1386
|
-
var update = function update(LengthInput, unit, type) {
|
|
1387
|
-
var newLength = toFixedFloat(LengthInput);
|
|
1388
|
-
if (type === 0) {
|
|
1389
|
-
_this4.setState({
|
|
1390
|
-
ceilingHeight: newLength
|
|
1391
|
-
});
|
|
1392
|
-
viewer2DActions.updateCeilHeight(newLength);
|
|
1393
|
-
viewer2DActions.updateCeilHeightUnit(unit._unit);
|
|
1394
|
-
viewer3DActions.update3DCeilHeight(newLength);
|
|
1395
|
-
viewer3DActions.update3DCeilHeightUnit(unit._unit);
|
|
1396
|
-
} else {
|
|
1397
|
-
_this4.setState({
|
|
1398
|
-
ceilingHeight: convert(newLength).from(_this4.state.measurementUnit._unit).to(unit._unit),
|
|
1399
|
-
measurementUnit: unit
|
|
1400
|
-
});
|
|
1401
|
-
viewer2DActions.updateCeilHeight(convert(newLength).from(_this4.state.measurementUnit._unit).to(unit._unit));
|
|
1402
|
-
viewer2DActions.updateCeilHeightUnit(unit._unit);
|
|
1403
|
-
viewer3DActions.update3DCeilHeightUnit(unit._unit);
|
|
1404
|
-
viewer3DActions.update3DCeilHeight(convert(newLength).from(_this4.state.measurementUnit._unit).to(unit._unit));
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
var openReplacedItemToolbar = function openReplacedItemToolbar(oldItems, newItems) {
|
|
1408
|
-
var newItemsIds = Object.keys(newItems);
|
|
1409
|
-
var oldItemIds = Object.keys(oldItems);
|
|
1410
|
-
var replacedItemId = newItemsIds.find(function (id) {
|
|
1411
|
-
return !oldItemIds.includes(id);
|
|
1412
|
-
});
|
|
1413
|
-
// closes the setting dialog
|
|
1414
|
-
document.getElementById('setting_dialog').style.display = 'none';
|
|
1415
|
-
itemsActions.selectItem(layerID, replacedItemId);
|
|
1416
|
-
};
|
|
1417
|
-
this.state.backsplash.forEach(function (data) {
|
|
1418
|
-
var scene = tt.props.state.get('scene');
|
|
1419
|
-
var layerID = scene.get('selectedLayer');
|
|
1420
|
-
var layers = scene.layers.get(layerID);
|
|
1421
|
-
var backsplash = layers.get('backsplash');
|
|
1422
|
-
data.selected = (backsplash && backsplash.uri) == data.texture;
|
|
1423
|
-
});
|
|
1424
|
-
this.state.molding.forEach(function (data) {
|
|
1425
|
-
var scene = tt.props.state.get('scene');
|
|
1426
|
-
var layerID = scene.get('selectedLayer');
|
|
1427
|
-
var layers = scene.layers.get(layerID);
|
|
1428
|
-
var molding = layers.get('molding');
|
|
1429
|
-
data.selected = molding && molding.some(function (m) {
|
|
1430
|
-
return m.name === data.name;
|
|
1431
|
-
});
|
|
1432
|
-
});
|
|
1433
|
-
this.state.wallColors.forEach(function (data) {
|
|
1434
|
-
var scene = tt.props.state.get('scene');
|
|
1435
|
-
var layerID = scene.get('selectedLayer');
|
|
1436
|
-
var layers = scene.layers.get(layerID);
|
|
1437
|
-
var wallColor = layers.get('wallColor');
|
|
1438
|
-
data.selected = wallColor == data.color;
|
|
1439
|
-
});
|
|
1440
|
-
this.state.floorStyles.forEach(function (data) {
|
|
1441
|
-
var scene = tt.props.state.get('scene');
|
|
1442
|
-
var layerID = scene.get('selectedLayer');
|
|
1443
|
-
var layers = scene.layers.get(layerID);
|
|
1444
|
-
var floorStyles = layers.get('floorStyle');
|
|
1445
|
-
data.selected = (floorStyles && floorStyles.uri) == data.texture;
|
|
1446
|
-
});
|
|
1447
|
-
this.state.doorHandle.forEach(function (data) {
|
|
1448
|
-
var scene = tt.props.state.get('scene');
|
|
1449
|
-
var layerID = scene.get('selectedLayer');
|
|
1450
|
-
var layers = scene.layers.get(layerID);
|
|
1451
|
-
var doorHandle = layers.get('doorHandle');
|
|
1452
|
-
data.selected = doorHandle && data.gltf.includes(doorHandle);
|
|
1453
|
-
});
|
|
1454
|
-
var alterate = state.get('alterate');
|
|
1455
|
-
var topBtnAction = state.mode == MODE_IDLE || state.mode == MODE_2D_PAN ? function () {
|
|
1456
|
-
linesActions.selectToolDrawingLine('wall');
|
|
1457
|
-
_this4.props.setToolbar('');
|
|
1458
|
-
} : function () {
|
|
1459
|
-
projectActions.setMode(MODE_IDLE);
|
|
1460
|
-
linesActions.selectToolDrawingLine('wall');
|
|
1461
|
-
_this4.props.setToolbar('');
|
|
1462
|
-
};
|
|
1463
|
-
var saveScreenshotToFile = function saveScreenshotToFile(event) {
|
|
1464
|
-
event.preventDefault();
|
|
1465
|
-
var canvas = document.getElementsByTagName('canvas')[1];
|
|
1466
|
-
var canvas_crop_image = document.getElementById('canvas_crop_image');
|
|
1467
|
-
var ctx = canvas_crop_image.getContext('2d');
|
|
1468
|
-
|
|
1469
|
-
// Set width and height for the new canvas
|
|
1470
|
-
var heightAtt = document.createAttribute('height');
|
|
1471
|
-
heightAtt.value = canvas.height;
|
|
1472
|
-
canvas_crop_image.setAttributeNode(heightAtt);
|
|
1473
|
-
var widthAtt = document.createAttribute('width');
|
|
1474
|
-
widthAtt.value = canvas.width;
|
|
1475
|
-
canvas_crop_image.setAttributeNode(widthAtt);
|
|
1476
|
-
ctx.fillStyle = 'white';
|
|
1477
|
-
ctx.fillRect(0, 0, canvas_crop_image.width, canvas_crop_image.height);
|
|
1478
|
-
var img = new Image();
|
|
1479
|
-
img.crossOrigin = 'anonymous';
|
|
1480
|
-
img.src = canvas.toDataURL();
|
|
1481
|
-
img.onload = function () {
|
|
1482
|
-
ctx.globalAlpha = 0.3;
|
|
1483
|
-
ctx.drawImage(img, 0, 0, canvas_crop_image.width, canvas_crop_image.height);
|
|
1484
|
-
_this4.setState({
|
|
1485
|
-
isModalVisible: true,
|
|
1486
|
-
imageUri: canvas.toDataURL(),
|
|
1487
|
-
image: img
|
|
1488
|
-
});
|
|
1489
|
-
canvas_crop_image.style.zIndex = 11;
|
|
1490
|
-
document.addEventListener('keydown', _this4.onKeyDown, false);
|
|
1491
|
-
document.addEventListener('mouseup', _this4.onMouseUp_On_New_Save_SQ_DA, false);
|
|
1492
|
-
canvas_crop_image.style.display = 'block';
|
|
1493
|
-
};
|
|
1494
|
-
};
|
|
1495
|
-
var saveSVGScreenshotToFile = /*#__PURE__*/function () {
|
|
1496
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(event) {
|
|
1497
|
-
var _maxWidthSVGElement;
|
|
1498
|
-
var svgElements, maxWidthSVGElement, i, images, readBlob, _iterator, _step, image, url, response, blob, content, serializer, img, canvas, ctx, heightAtt, widthAtt, _t, _t2;
|
|
1499
|
-
return _regenerator().w(function (_context) {
|
|
1500
|
-
while (1) switch (_context.p = _context.n) {
|
|
1501
|
-
case 0:
|
|
1502
|
-
event.preventDefault();
|
|
1503
|
-
svgElements = document.getElementsByTagName('svg');
|
|
1504
|
-
maxWidthSVGElement = svgElements[0];
|
|
1505
|
-
for (i = 1; i < svgElements.length; i++) {
|
|
1506
|
-
if (svgElements[i].width.baseVal.value > maxWidthSVGElement.width.baseVal.value) {
|
|
1507
|
-
maxWidthSVGElement = svgElements[i];
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
images = (_maxWidthSVGElement = maxWidthSVGElement) === null || _maxWidthSVGElement === void 0 ? void 0 : _maxWidthSVGElement.getElementsByTagName('image');
|
|
1511
|
-
readBlob = function readBlob(b) {
|
|
1512
|
-
return new Promise(function (res) {
|
|
1513
|
-
var reader = new FileReader();
|
|
1514
|
-
reader.onloadend = function () {
|
|
1515
|
-
res(reader.result);
|
|
1516
|
-
};
|
|
1517
|
-
reader.onerror = function () {
|
|
1518
|
-
res(b);
|
|
1519
|
-
};
|
|
1520
|
-
reader.readAsDataURL(b);
|
|
1521
|
-
});
|
|
1522
|
-
};
|
|
1523
|
-
_context.p = 1;
|
|
1524
|
-
_iterator = _createForOfIteratorHelper(images);
|
|
1525
|
-
_context.p = 2;
|
|
1526
|
-
_iterator.s();
|
|
1527
|
-
case 3:
|
|
1528
|
-
if ((_step = _iterator.n()).done) {
|
|
1529
|
-
_context.n = 8;
|
|
1530
|
-
break;
|
|
1531
|
-
}
|
|
1532
|
-
image = _step.value;
|
|
1533
|
-
url = getSignedUrl(image.getAttribute('href'));
|
|
1534
|
-
_context.n = 4;
|
|
1535
|
-
return fetch(url, {
|
|
1536
|
-
cache: 'no-store'
|
|
1537
|
-
});
|
|
1538
|
-
case 4:
|
|
1539
|
-
response = _context.v;
|
|
1540
|
-
_context.n = 5;
|
|
1541
|
-
return response.blob();
|
|
1542
|
-
case 5:
|
|
1543
|
-
blob = _context.v;
|
|
1544
|
-
_context.n = 6;
|
|
1545
|
-
return readBlob(blob);
|
|
1546
|
-
case 6:
|
|
1547
|
-
content = _context.v;
|
|
1548
|
-
image.setAttribute('href', content);
|
|
1549
|
-
case 7:
|
|
1550
|
-
_context.n = 3;
|
|
1551
|
-
break;
|
|
1552
|
-
case 8:
|
|
1553
|
-
_context.n = 10;
|
|
1554
|
-
break;
|
|
1555
|
-
case 9:
|
|
1556
|
-
_context.p = 9;
|
|
1557
|
-
_t = _context.v;
|
|
1558
|
-
_iterator.e(_t);
|
|
1559
|
-
case 10:
|
|
1560
|
-
_context.p = 10;
|
|
1561
|
-
_iterator.f();
|
|
1562
|
-
return _context.f(10);
|
|
1563
|
-
case 11:
|
|
1564
|
-
_context.n = 13;
|
|
1565
|
-
break;
|
|
1566
|
-
case 12:
|
|
1567
|
-
_context.p = 12;
|
|
1568
|
-
_t2 = _context.v;
|
|
1569
|
-
case 13:
|
|
1570
|
-
serializer = new XMLSerializer();
|
|
1571
|
-
img = new Image();
|
|
1572
|
-
canvas = document.getElementById('canvas_crop_image');
|
|
1573
|
-
ctx = canvas.getContext('2d');
|
|
1574
|
-
heightAtt = document.createAttribute('height');
|
|
1575
|
-
heightAtt.value = maxWidthSVGElement.height.baseVal.value;
|
|
1576
|
-
canvas.setAttributeNode(heightAtt);
|
|
1577
|
-
widthAtt = document.createAttribute('width');
|
|
1578
|
-
widthAtt.value = maxWidthSVGElement.width.baseVal.value;
|
|
1579
|
-
canvas.setAttributeNode(widthAtt);
|
|
1580
|
-
ctx.fillStyle = 'white';
|
|
1581
|
-
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
1582
|
-
img.crossOrigin = 'anonymous';
|
|
1583
|
-
img.src = "data:image/svg+xml;base64,".concat(window.btoa(serializer.serializeToString(maxWidthSVGElement)));
|
|
1584
|
-
img.onload = function () {
|
|
1585
|
-
ctx.globalAlpha = 0.3;
|
|
1586
|
-
ctx.drawImage(img, 0, 0, maxWidthSVGElement.width.baseVal.value, maxWidthSVGElement.height.baseVal.value);
|
|
1587
|
-
_this4.setState({
|
|
1588
|
-
isModalVisible: true,
|
|
1589
|
-
imageUri: canvas.toDataURL(),
|
|
1590
|
-
image: img
|
|
1591
|
-
});
|
|
1592
|
-
};
|
|
1593
|
-
canvas.style.zIndex = 11;
|
|
1594
|
-
document.addEventListener('keydown', _this4.onKeyDown, false);
|
|
1595
|
-
document.addEventListener('mouseup', _this4.onMouseUp_On_New_Save_SQ_DA, false);
|
|
1596
|
-
canvas_crop_image.style.display = 'block';
|
|
1597
|
-
case 14:
|
|
1598
|
-
return _context.a(2);
|
|
1599
|
-
}
|
|
1600
|
-
}, _callee, null, [[2, 9, 10, 11], [1, 12]]);
|
|
1601
|
-
}));
|
|
1602
|
-
return function saveSVGScreenshotToFile(_x) {
|
|
1603
|
-
return _ref.apply(this, arguments);
|
|
1604
|
-
};
|
|
1605
|
-
}();
|
|
1606
|
-
|
|
1607
|
-
// control button active remove//
|
|
1608
|
-
var control = this.state.controlButton;
|
|
1609
|
-
var objectProperty = '';
|
|
1610
|
-
var item_warning = '';
|
|
1611
|
-
var layer = state.scene.layers.get(state.scene.selectedLayer);
|
|
1612
|
-
var selected = [];
|
|
1613
|
-
layer.selected.forEach(function (data, key) {
|
|
1614
|
-
if (key == 'vertices') return;
|
|
1615
|
-
if (data.size > 0) {
|
|
1616
|
-
var values = data.toJS();
|
|
1617
|
-
for (var i = 0; i < values.length; i++) {
|
|
1618
|
-
selected.push({
|
|
1619
|
-
type: key,
|
|
1620
|
-
id: values[i]
|
|
1621
|
-
});
|
|
1622
|
-
}
|
|
1623
|
-
}
|
|
1624
|
-
});
|
|
1625
|
-
if (mode.indexOf('DRAW') != -1) {
|
|
1626
|
-
// hintText = (<S.hintText>Press ESC key to finish drawing!</S.hintText>);
|
|
1627
|
-
hintText = /*#__PURE__*/React.createElement(StyledAlert, {
|
|
1628
|
-
text: /*#__PURE__*/React.createElement("span", {
|
|
1629
|
-
style: {
|
|
1630
|
-
fontSize: 16,
|
|
1631
|
-
fontFamily: DEFAULT_FONT_FAMILY
|
|
1632
|
-
}
|
|
1633
|
-
}, "Press ", /*#__PURE__*/React.createElement("strong", null, "Enter"), " key to finish drawing, or", ' ', /*#__PURE__*/React.createElement("strong", null, "ESC"), " to cancel"),
|
|
1634
|
-
onClose: function onClose() {
|
|
1635
|
-
return hintText = '';
|
|
1636
|
-
}
|
|
1637
|
-
});
|
|
1638
|
-
// if (mode.indexOf("DRAW") != -1) {
|
|
1639
|
-
// hintText = <StyledAlert text = "Hit ESC to complete the current wall" />;
|
|
1640
|
-
} else if (this.state.isModalVisible) {
|
|
1641
|
-
hintText = /*#__PURE__*/React.createElement(StyledAlert, {
|
|
1642
|
-
text: /*#__PURE__*/React.createElement("span", {
|
|
1643
|
-
style: {
|
|
1644
|
-
fontSize: 16,
|
|
1645
|
-
fontFamily: DEFAULT_FONT_FAMILY
|
|
1646
|
-
}
|
|
1647
|
-
}, "Press ", /*#__PURE__*/React.createElement("strong", null, "ESC"), " key to stop clipping!"),
|
|
1648
|
-
onClose: function onClose() {
|
|
1649
|
-
return hintText = '';
|
|
1650
|
-
}
|
|
1651
|
-
});
|
|
1652
|
-
} else {
|
|
1653
|
-
hintText = '';
|
|
1654
|
-
}
|
|
1655
|
-
if (selected.length === 1) {
|
|
1656
|
-
var planData = window.planData;
|
|
1657
|
-
var selData = selected[0];
|
|
1658
|
-
var currentObject;
|
|
1659
|
-
switch (selData.type) {
|
|
1660
|
-
case 'holes':
|
|
1661
|
-
currentObject = layer.holes.get(selData.id);
|
|
1662
|
-
break;
|
|
1663
|
-
case 'items':
|
|
1664
|
-
currentObject = layer.items.get(selData.id);
|
|
1665
|
-
break;
|
|
1666
|
-
case 'lines':
|
|
1667
|
-
currentObject = layer.lines.get(selData.id);
|
|
1668
|
-
break;
|
|
1669
|
-
}
|
|
1670
|
-
if (currentObject !== undefined) {
|
|
1671
|
-
var _currentObject2;
|
|
1672
|
-
var select = findCatalogElement(this.props.catalog, (_currentObject2 = currentObject) === null || _currentObject2 === void 0 ? void 0 : _currentObject2.type);
|
|
1673
|
-
var replaceCabinetData;
|
|
1674
|
-
if (select) {
|
|
1675
|
-
var attrPorpSeparatorStyle = {
|
|
1676
|
-
position: 'relative',
|
|
1677
|
-
height: '50px',
|
|
1678
|
-
display: 'flex',
|
|
1679
|
-
alignItems: 'center',
|
|
1680
|
-
width: '100%'
|
|
1681
|
-
};
|
|
1682
|
-
if (select.prototype === 'items') {
|
|
1683
|
-
var _currentTexture$doorS3, _currentTexture$doorS4, _currentTexture$doorS5, _currentTexture$doorS6;
|
|
1684
|
-
this.props.categoryData.data.cabinets.map(function (value) {
|
|
1685
|
-
value.items.map(function (category) {
|
|
1686
|
-
if (category.name == select.obj.cabinet_category) {
|
|
1687
|
-
replaceCabinetData = category.items;
|
|
1688
|
-
}
|
|
1689
|
-
});
|
|
1690
|
-
});
|
|
1691
|
-
var objSKU = select.obj.sku_number;
|
|
1692
|
-
if (this.state.currentTexture !== null && select.obj.skuArray.length !== 0) {
|
|
1693
|
-
var doorStyle = currentObject.doorStyle,
|
|
1694
|
-
dcId;
|
|
1695
|
-
if (doorStyle instanceof Map) {
|
|
1696
|
-
dcId = currentObject.doorStyle.get('id');
|
|
1697
|
-
} else {
|
|
1698
|
-
dcId = currentObject.doorStyle.id;
|
|
1699
|
-
}
|
|
1700
|
-
var tempSKU = select.obj.skuArray.find(function (el) {
|
|
1701
|
-
return el.door_color_id === dcId;
|
|
1702
|
-
});
|
|
1703
|
-
if (tempSKU !== undefined) {
|
|
1704
|
-
objSKU = tempSKU.sku;
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
var isFiller = select.long_name.toUpperCase().includes('FILLER') || select.long_name.toUpperCase().includes('PANEL');
|
|
1708
|
-
var tempWidth = currentObject.properties.get('width');
|
|
1709
|
-
var tempDepth = currentObject.properties.get('depth');
|
|
1710
|
-
var tempHeight = currentObject.properties.get('height');
|
|
1711
|
-
var itemHeight = select.info.sizeinfo.height;
|
|
1712
|
-
var itemWidth = select.info.sizeinfo.width;
|
|
1713
|
-
var itemDepth = select.info.sizeinfo.depth;
|
|
1714
|
-
var _currentObject = currentObject.toJS();
|
|
1715
|
-
if (_currentObject.doorStyle.doorStyles !== undefined) {
|
|
1716
|
-
if (_currentObject.doorStyle.doorStyles.is_euro_cds !== undefined) {
|
|
1717
|
-
if (_currentObject.doorStyle.doorStyles.is_euro_cds && _currentObject.doorStyle.door_style_name === 'Euro & Frameless') {
|
|
1718
|
-
tempWidth = new Map({
|
|
1719
|
-
_length: _currentObject.doorStyle.doorStyles.euro_width,
|
|
1720
|
-
_unit: _currentObject.doorStyle.doorStyles.width_unit.substr(0, 2)
|
|
1721
|
-
});
|
|
1722
|
-
tempDepth = new Map({
|
|
1723
|
-
_length: _currentObject.doorStyle.doorStyles.euro_length,
|
|
1724
|
-
_unit: _currentObject.doorStyle.doorStyles.length_unit.substr(0, 2)
|
|
1725
|
-
});
|
|
1726
|
-
tempHeight = new Map({
|
|
1727
|
-
_length: _currentObject.doorStyle.doorStyles.euro_height,
|
|
1728
|
-
_unit: _currentObject.doorStyle.doorStyles.height_unit.substr(0, 2)
|
|
1729
|
-
});
|
|
1730
|
-
itemHeight = tempHeight.get('_length');
|
|
1731
|
-
itemWidth = tempWidth.get('_length');
|
|
1732
|
-
itemDepth = tempDepth.get('_length');
|
|
1733
|
-
}
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
var doorStyleThumbnail, doorStyleName, _installation;
|
|
1737
|
-
if (_currentObject.doorStyle.thumbnail) doorStyleThumbnail = _currentObject.doorStyle.thumbnail;
|
|
1738
|
-
if (_currentObject.doorStyle.name) {
|
|
1739
|
-
doorStyleName = _currentObject.doorStyle.name;
|
|
1740
|
-
_installation = getInstallationSuffix(INSTALLATION_SUFFIX_TYPE.NAME, _currentObject.doorStyle);
|
|
1741
|
-
}
|
|
1742
|
-
var _width = tempWidth ? formatNumber(convert(tempWidth.get('_length')).from(tempWidth.get('_unit')).to('in'), DECIMAL_PLACES_2) : itemWidth;
|
|
1743
|
-
if (tempWidth.get('_unit') === 'in') _width = itemWidth;
|
|
1744
|
-
var _height = tempHeight ? formatNumber(convert(tempHeight.get('_length')).from(tempHeight.get('_unit')).to('in'), DECIMAL_PLACES_2) : itemHeight;
|
|
1745
|
-
if (tempHeight.get('_unit') === 'in') _height = itemHeight;
|
|
1746
|
-
var depth = tempDepth ? formatNumber(convert(tempDepth.get('_length')).from(tempDepth.get('_unit')).to('in'), DECIMAL_PLACES_2) : itemDepth;
|
|
1747
|
-
if (tempDepth.get('_unit') === 'in') depth = itemDepth;
|
|
1748
|
-
var doorColor = currentObject.doorStyle;
|
|
1749
|
-
if (currentObject.doorStyle.size) doorColor = currentObject.doorStyle.toJS();
|
|
1750
|
-
var internalSKU = makeSKUForMagento(currentObject, this.props.catalog, this.props.categoryData);
|
|
1751
|
-
var shouldHideSkuNumber = select.type === 'appliance' || select.type === 'furnishing' || select.type === 'lighting' || select.long_name.toLowerCase().includes('wall') && select.type !== 'cabinet';
|
|
1752
|
-
item_warning = /*#__PURE__*/React.createElement(S.ItemCustomImageWrapper, {
|
|
1753
|
-
id: "item_warning"
|
|
1754
|
-
}, /*#__PURE__*/React.createElement(S.ItemCustomImage, {
|
|
1755
|
-
src: "/assets/img/svg/3d_item_warning_info.svg",
|
|
1756
|
-
onMouseOver: function onMouseOver() {
|
|
1757
|
-
return document.getElementById('warning_box').style.display = 'flex';
|
|
1758
|
-
},
|
|
1759
|
-
onMouseOut: function onMouseOut() {
|
|
1760
|
-
return document.getElementById('warning_box').style.display = 'none';
|
|
1761
|
-
}
|
|
1762
|
-
}), /*#__PURE__*/React.createElement(S.WarningItem, {
|
|
1763
|
-
id: "warning_box"
|
|
1764
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
1765
|
-
maskImage: "/assets/img/svg/3d_item_warning_info.svg",
|
|
1766
|
-
style: {
|
|
1767
|
-
backgroundColor: BG_COLOR_1,
|
|
1768
|
-
marginRight: 10,
|
|
1769
|
-
height: 30,
|
|
1770
|
-
width: 30
|
|
1771
|
-
}
|
|
1772
|
-
}), "This item is not available in the current door style. Replace it with another one."), /*#__PURE__*/React.createElement(S.ItemCustomImage, {
|
|
1773
|
-
src: "/assets/img/svg/3d_item_warning_edit.svg",
|
|
1774
|
-
style: {
|
|
1775
|
-
marginTop: 10
|
|
1776
|
-
},
|
|
1777
|
-
onClick: function onClick() {
|
|
1778
|
-
_this4.props.setToolbar('door-style');
|
|
1779
|
-
_this4.setState({
|
|
1780
|
-
cabinetStyleChanging: true
|
|
1781
|
-
});
|
|
1782
|
-
}
|
|
1783
|
-
}));
|
|
1784
|
-
objectProperty = this.props.replaceCabinetFlag == true ?
|
|
1785
|
-
/*#__PURE__*/
|
|
1786
|
-
// replace cabinet list
|
|
1787
|
-
React.createElement(PS.ContentObjectWrapper, {
|
|
1788
|
-
headerH: this.props.headerH,
|
|
1789
|
-
style: {
|
|
1790
|
-
width: 'fit-content',
|
|
1791
|
-
height: '100%'
|
|
1792
|
-
}
|
|
1793
|
-
}, /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
1794
|
-
style: {
|
|
1795
|
-
alignItems: 'flex-start',
|
|
1796
|
-
marginLeft: 20,
|
|
1797
|
-
minWidth: 250
|
|
1798
|
-
}
|
|
1799
|
-
}, /*#__PURE__*/React.createElement(PS.DesignValue, {
|
|
1800
|
-
style: {
|
|
1801
|
-
margin: 0,
|
|
1802
|
-
fontSize: 20,
|
|
1803
|
-
fontWeight: 700
|
|
1804
|
-
}
|
|
1805
|
-
}, "Replace Cabinet"), /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, {
|
|
1806
|
-
style: {
|
|
1807
|
-
overflowY: 'scroll',
|
|
1808
|
-
maxHeight: 'calc(100vh - 320px)'
|
|
1809
|
-
}
|
|
1810
|
-
}, replaceCabinetData ? replaceCabinetData.map(function (item, key) {
|
|
1811
|
-
var _currentTexture$doorS, _currentTexture$doorS2;
|
|
1812
|
-
return ((_currentTexture$doorS = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS2 = currentTexture.doorStyles) === null || _currentTexture$doorS2 === void 0 ? void 0 : _currentTexture$doorS2.cds) !== null && _currentTexture$doorS !== void 0 ? _currentTexture$doorS : []).filter(function (cd) {
|
|
1813
|
-
return cd.itemID === item.itemID;
|
|
1814
|
-
}).length != 0 && /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
1815
|
-
onClick: function onClick() {
|
|
1816
|
-
var selectedItemId = _this4.props.layers.get(_this4.props.selectedLayer).selected.items.toJS()[0];
|
|
1817
|
-
var selectedPos = {
|
|
1818
|
-
x: _this4.props.layers.get(_this4.props.selectedLayer).items.get(selectedItemId).x,
|
|
1819
|
-
y: _this4.props.layers.get(_this4.props.selectedLayer).items.get(selectedItemId).y,
|
|
1820
|
-
rotation: _this4.props.layers.get(_this4.props.selectedLayer).items.get(selectedItemId).rotation,
|
|
1821
|
-
selectedItemId: selectedItemId
|
|
1822
|
-
};
|
|
1823
|
-
_this4.setState({
|
|
1824
|
-
chosenReplacedItem: {
|
|
1825
|
-
selectedPos: selectedPos,
|
|
1826
|
-
select: select,
|
|
1827
|
-
item: item
|
|
1828
|
-
}
|
|
1829
|
-
});
|
|
1830
|
-
},
|
|
1831
|
-
style: {
|
|
1832
|
-
cursor: 'pointer',
|
|
1833
|
-
paddingLeft: 0,
|
|
1834
|
-
backgroundColor: chosenReplacedItem.item && chosenReplacedItem.item.itemID === item.itemID && '#D9E8FF'
|
|
1835
|
-
},
|
|
1836
|
-
key: key
|
|
1837
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
1838
|
-
style: {
|
|
1839
|
-
height: 70,
|
|
1840
|
-
width: 70
|
|
1841
|
-
},
|
|
1842
|
-
src: item.thumbnail
|
|
1843
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
1844
|
-
style: {
|
|
1845
|
-
textAlign: 'left'
|
|
1846
|
-
}
|
|
1847
|
-
}, item.long_name, " ", /*#__PURE__*/React.createElement("br", null), "Width: ", item.info.width, "\" ", /*#__PURE__*/React.createElement("br", null), "Depth: ", item.info.height, "\" ", /*#__PURE__*/React.createElement("br", null), "Height: ", item.info.tall, "\""));
|
|
1848
|
-
}) : /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, null, "No options found"))), /*#__PURE__*/React.createElement(PS.ButtonBox, {
|
|
1849
|
-
style: {
|
|
1850
|
-
marginTop: 20,
|
|
1851
|
-
marginLeft: 0,
|
|
1852
|
-
opacity: !chosenReplacedItem.item && '0.6',
|
|
1853
|
-
cursor: !chosenReplacedItem.item && 'not-allowed'
|
|
1854
|
-
},
|
|
1855
|
-
onClick: function onClick() {
|
|
1856
|
-
if (chosenReplacedItem.item) {
|
|
1857
|
-
var oldItems = _this4.state.elements.items.toJS();
|
|
1858
|
-
var selectedPos = chosenReplacedItem.selectedPos,
|
|
1859
|
-
_select = chosenReplacedItem.select,
|
|
1860
|
-
item = chosenReplacedItem.item;
|
|
1861
|
-
itemsActions.replaceItem(selectedPos, _select, item);
|
|
1862
|
-
_this4.props.replaceCabinet(false);
|
|
1863
|
-
_this4.setState({
|
|
1864
|
-
chosenReplacedItem: {}
|
|
1865
|
-
}, function () {
|
|
1866
|
-
var newItems = _this4.state.elements.items.toJS();
|
|
1867
|
-
openReplacedItemToolbar(oldItems, newItems);
|
|
1868
|
-
});
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
1872
|
-
height: 20,
|
|
1873
|
-
width: 20,
|
|
1874
|
-
src: "/assets/img/svg/check.svg"
|
|
1875
|
-
}), /*#__PURE__*/React.createElement(PS.ButtonTitle, {
|
|
1876
|
-
style: {
|
|
1877
|
-
color: SECONDARY_PURPLE_COLOR,
|
|
1878
|
-
paddingLeft: 10,
|
|
1879
|
-
margin: 0,
|
|
1880
|
-
fontSize: 16
|
|
1881
|
-
}
|
|
1882
|
-
}, "Replace"))) :
|
|
1883
|
-
/*#__PURE__*/
|
|
1884
|
-
// normal property window
|
|
1885
|
-
React.createElement(PS.ContentObjectWrapper, {
|
|
1886
|
-
headerH: this.props.headerH,
|
|
1887
|
-
style: {
|
|
1888
|
-
height: '100%'
|
|
1889
|
-
}
|
|
1890
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
1891
|
-
style: attrPorpSeparatorStyle
|
|
1892
|
-
}, /*#__PURE__*/React.createElement(PS.ButtonBox, {
|
|
1893
|
-
style: {
|
|
1894
|
-
width: '100%',
|
|
1895
|
-
justifyContent: 'center'
|
|
1896
|
-
}
|
|
1897
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
1898
|
-
height: 20,
|
|
1899
|
-
width: 20,
|
|
1900
|
-
src: "/assets/img/svg/copy.svg"
|
|
1901
|
-
}), /*#__PURE__*/React.createElement(PS.ButtonTitle, {
|
|
1902
|
-
style: {
|
|
1903
|
-
color: SECONDARY_PURPLE_COLOR,
|
|
1904
|
-
paddingLeft: 10,
|
|
1905
|
-
margin: 0,
|
|
1906
|
-
fontSize: 16
|
|
1907
|
-
},
|
|
1908
|
-
onClick: function onClick() {
|
|
1909
|
-
return itemsActions.duplicateSelected(currentObject);
|
|
1910
|
-
}
|
|
1911
|
-
}, ' Duplicate')), /*#__PURE__*/React.createElement(PS.ButtonBox, {
|
|
1912
|
-
style: {
|
|
1913
|
-
width: '100%'
|
|
1914
|
-
}
|
|
1915
|
-
}, /*#__PURE__*/React.createElement(PS.ButtonTitle, {
|
|
1916
|
-
style: {
|
|
1917
|
-
color: STATUS_NEGATIVE_COLOR,
|
|
1918
|
-
fontSize: 16
|
|
1919
|
-
},
|
|
1920
|
-
onClick: function onClick() {
|
|
1921
|
-
projectActions.setIsCabinetDrawing(false);
|
|
1922
|
-
projectActions.remove();
|
|
1923
|
-
}
|
|
1924
|
-
}, 'Delete'))), /*#__PURE__*/React.createElement("div", {
|
|
1925
|
-
style: {
|
|
1926
|
-
overflowY: 'scroll',
|
|
1927
|
-
paddingRight: 5,
|
|
1928
|
-
height: 'calc(100% - 85px)'
|
|
1929
|
-
}
|
|
1930
|
-
}, !shouldHideSkuNumber && /*#__PURE__*/React.createElement(PS.DesignValue, {
|
|
1931
|
-
style: {
|
|
1932
|
-
margin: 0,
|
|
1933
|
-
marginTop: '15px'
|
|
1934
|
-
}
|
|
1935
|
-
}, "SKU: ".concat(select.obj.sku_number)), /*#__PURE__*/React.createElement(PS.SelectedBox, {
|
|
1936
|
-
style: {
|
|
1937
|
-
position: 'relative',
|
|
1938
|
-
margin: '15px 0'
|
|
1939
|
-
}
|
|
1940
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
1941
|
-
src: select.info.image,
|
|
1942
|
-
style: {
|
|
1943
|
-
objectFit: 'contain'
|
|
1944
|
-
}
|
|
1945
|
-
}), doorStyleThumbnail && select.type === 'cabinet' && /*#__PURE__*/React.createElement("img", {
|
|
1946
|
-
src: doorStyleThumbnail,
|
|
1947
|
-
style: {
|
|
1948
|
-
objectFit: 'contain',
|
|
1949
|
-
padding: '28px'
|
|
1950
|
-
}
|
|
1951
|
-
}), select.type === 'cabinet' && ((_currentTexture$doorS3 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS4 = currentTexture.doorStyles) === null || _currentTexture$doorS4 === void 0 ? void 0 : _currentTexture$doorS4.cds) !== null && _currentTexture$doorS3 !== void 0 ? _currentTexture$doorS3 : []).filter(function (cd) {
|
|
1952
|
-
return cd.itemID === select.itemID;
|
|
1953
|
-
}).length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
1954
|
-
style: {
|
|
1955
|
-
position: 'absolute',
|
|
1956
|
-
width: 'calc(50% - 10px)',
|
|
1957
|
-
height: 'calc(100% - 10px)',
|
|
1958
|
-
backgroundColor: 'rgba(232,187,47,0.7)',
|
|
1959
|
-
left: 0,
|
|
1960
|
-
borderRadius: '10px',
|
|
1961
|
-
border: '3px solid orange',
|
|
1962
|
-
margin: 5
|
|
1963
|
-
}
|
|
1964
|
-
}), select.type === 'cabinet' && ((_currentTexture$doorS5 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS6 = currentTexture.doorStyles) === null || _currentTexture$doorS6 === void 0 ? void 0 : _currentTexture$doorS6.cds) !== null && _currentTexture$doorS5 !== void 0 ? _currentTexture$doorS5 : []).filter(function (cd) {
|
|
1965
|
-
return cd.itemID === select.itemID;
|
|
1966
|
-
}).length === 0 && /*#__PURE__*/React.createElement("img", {
|
|
1967
|
-
src: "/assets/img/svg/3d_item_warning_edit.svg",
|
|
1968
|
-
onClick: function onClick() {
|
|
1969
|
-
_this4.props.replaceCabinet(true);
|
|
1970
|
-
},
|
|
1971
|
-
style: {
|
|
1972
|
-
position: 'absolute',
|
|
1973
|
-
left: 15,
|
|
1974
|
-
top: 15,
|
|
1975
|
-
width: 30,
|
|
1976
|
-
height: 30,
|
|
1977
|
-
backgroundColor: 'white',
|
|
1978
|
-
borderRadius: 15,
|
|
1979
|
-
cursor: 'pointer'
|
|
1980
|
-
}
|
|
1981
|
-
})), /*#__PURE__*/React.createElement(PS.PropteryValue1, {
|
|
1982
|
-
style: {
|
|
1983
|
-
fontWeight: 600
|
|
1984
|
-
}
|
|
1985
|
-
}, select.long_name), /*#__PURE__*/React.createElement(PS.PropteryValue, {
|
|
1986
|
-
style: {
|
|
1987
|
-
fontWeight: 400
|
|
1988
|
-
}
|
|
1989
|
-
}, "W", ' ', /*#__PURE__*/React.createElement("strong", null, formatNumber(convert(_width).from('in').to(measurementUnit._unit), DECIMAL_PLACES_2)), measurementUnit._unit === 'in' ? '"' : measurementUnit._unit, ' ', "x D", ' ', /*#__PURE__*/React.createElement("strong", null, formatNumber(convert(depth).from('in').to(measurementUnit._unit), DECIMAL_PLACES_2)), measurementUnit._unit === 'in' ? '"' : measurementUnit._unit, ' ', "x H", ' ', /*#__PURE__*/React.createElement("strong", null, formatNumber(convert(_height).from('in').to(measurementUnit._unit), DECIMAL_PLACES_2)), measurementUnit._unit === 'in' ? '"' : measurementUnit._unit), select.type === 'cabinet' && /*#__PURE__*/React.createElement(PS.PropteryValue1, null, "Door Style: ", /*#__PURE__*/React.createElement("strong", null, doorStyleName)), select.type === 'cabinet' && /*#__PURE__*/React.createElement(PS.PropteryValue1, null, "Installation: ", /*#__PURE__*/React.createElement("strong", null, _installation)), /*#__PURE__*/React.createElement(Pricing, {
|
|
1990
|
-
internalSKU: internalSKU,
|
|
1991
|
-
accessToken: this.props.accessToken
|
|
1992
|
-
}), isFiller && this.state.editWidthVisible && /*#__PURE__*/React.createElement(PS.ChildTitle1, null, /*#__PURE__*/React.createElement(FormNumberInput, {
|
|
1993
|
-
style: {
|
|
1994
|
-
width: 88,
|
|
1995
|
-
height: 24.95,
|
|
1996
|
-
marginTop: 10
|
|
1997
|
-
},
|
|
1998
|
-
value: _width,
|
|
1999
|
-
onChange: function onChange(event) {
|
|
2000
|
-
return _this4.handleEditWidth(event.target.value, layerID, selData.id);
|
|
2001
|
-
},
|
|
2002
|
-
precision: 2
|
|
2003
|
-
})), /*#__PURE__*/React.createElement(PS.DesignValue, null, "Design"), /*#__PURE__*/React.createElement(PanelElementEditor, {
|
|
2004
|
-
state: state,
|
|
2005
|
-
categoryData: this.props.categoryData,
|
|
2006
|
-
getLinearOfMolding: this.getLinearOfMolding,
|
|
2007
|
-
planData: planData
|
|
2008
|
-
})));
|
|
2009
|
-
} else if (select.prototype === 'holes') {
|
|
2010
|
-
objectProperty = /*#__PURE__*/React.createElement(PS.ContentObjectWrapper, {
|
|
2011
|
-
headerH: this.props.headerH
|
|
2012
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2013
|
-
style: attrPorpSeparatorStyle
|
|
2014
|
-
}, /*#__PURE__*/React.createElement(PS.ButtonBox, {
|
|
2015
|
-
style: {
|
|
2016
|
-
width: '100%',
|
|
2017
|
-
justifyContent: 'center'
|
|
2018
|
-
}
|
|
2019
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2020
|
-
height: 20,
|
|
2021
|
-
width: 20,
|
|
2022
|
-
src: "/assets/img/svg/copy.svg"
|
|
2023
|
-
}), /*#__PURE__*/React.createElement(PS.ButtonTitle, {
|
|
2024
|
-
style: {
|
|
2025
|
-
color: '${SECONDARY_PURPLE_COLOR}',
|
|
2026
|
-
margin: 0,
|
|
2027
|
-
paddingLeft: 10,
|
|
2028
|
-
fontSize: 16
|
|
2029
|
-
},
|
|
2030
|
-
onClick: function onClick() {
|
|
2031
|
-
return itemsActions.duplicateSelected(currentObject);
|
|
2032
|
-
}
|
|
2033
|
-
}, ' Duplicate')), /*#__PURE__*/React.createElement(PS.ButtonBox, {
|
|
2034
|
-
style: {
|
|
2035
|
-
width: '100%'
|
|
2036
|
-
}
|
|
2037
|
-
}, /*#__PURE__*/React.createElement(PS.ButtonTitle, {
|
|
2038
|
-
style: {
|
|
2039
|
-
color: 'red',
|
|
2040
|
-
fontSize: 16
|
|
2041
|
-
},
|
|
2042
|
-
onClick: function onClick() {
|
|
2043
|
-
return projectActions.remove();
|
|
2044
|
-
}
|
|
2045
|
-
}, 'Delete'))), /*#__PURE__*/React.createElement(PS.SelectedBox, {
|
|
2046
|
-
style: {
|
|
2047
|
-
margin: 0
|
|
2048
|
-
}
|
|
2049
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2050
|
-
src: select.info.image,
|
|
2051
|
-
style: {
|
|
2052
|
-
objectFit: 'contain'
|
|
2053
|
-
}
|
|
2054
|
-
})), /*#__PURE__*/React.createElement(PS.PropteryValue, {
|
|
2055
|
-
style: {
|
|
2056
|
-
marginTop: 10
|
|
2057
|
-
}
|
|
2058
|
-
}, select.name), /*#__PURE__*/React.createElement(PS.ChildTitle, null, " "), /*#__PURE__*/React.createElement(PS.DesignValue, null, "Design"), /*#__PURE__*/React.createElement(PanelElementEditor, {
|
|
2059
|
-
state: state,
|
|
2060
|
-
categoryData: this.props.categoryData,
|
|
2061
|
-
getLinearOfMolding: this.getLinearOfMolding,
|
|
2062
|
-
planData: planData
|
|
2063
|
-
}));
|
|
2064
|
-
} else if (select.prototype === 'lines') {
|
|
2065
|
-
objectProperty = /*#__PURE__*/React.createElement(PS.ContentObjectWrapper, {
|
|
2066
|
-
headerH: this.props.headerH
|
|
2067
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2068
|
-
style: attrPorpSeparatorStyle
|
|
2069
|
-
}, /*#__PURE__*/React.createElement(PS.ButtonBox, {
|
|
2070
|
-
style: {
|
|
2071
|
-
justifyContent: 'center'
|
|
2072
|
-
}
|
|
2073
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2074
|
-
height: 16,
|
|
2075
|
-
width: 16,
|
|
2076
|
-
src: "/assets/img/svg/bottombar/elevation.svg"
|
|
2077
|
-
}), /*#__PURE__*/React.createElement(PS.ButtonTitle, {
|
|
2078
|
-
style: {
|
|
2079
|
-
color: SECONDARY_PURPLE_COLOR,
|
|
2080
|
-
paddingLeft: 10,
|
|
2081
|
-
margin: 0,
|
|
2082
|
-
fontSize: 16
|
|
2083
|
-
},
|
|
2084
|
-
onClick: function onClick() {
|
|
2085
|
-
return projectActions.setMode(MODE_ELEVATION_VIEW);
|
|
2086
|
-
}
|
|
2087
|
-
}, 'Elevation View')), /*#__PURE__*/React.createElement(PS.ButtonBox, null, /*#__PURE__*/React.createElement(PS.ButtonTitle, {
|
|
2088
|
-
style: {
|
|
2089
|
-
color: STATUS_NEGATIVE_COLOR,
|
|
2090
|
-
fontSize: 16
|
|
2091
|
-
},
|
|
2092
|
-
onClick: function onClick() {
|
|
2093
|
-
return projectActions.remove();
|
|
2094
|
-
}
|
|
2095
|
-
}, 'Delete'))), /*#__PURE__*/React.createElement(PS.SelectedBox, {
|
|
2096
|
-
style: {
|
|
2097
|
-
margin: 0
|
|
2098
|
-
}
|
|
2099
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2100
|
-
src: select.info.image["default"],
|
|
2101
|
-
style: {
|
|
2102
|
-
objectFit: 'contain'
|
|
2103
|
-
}
|
|
2104
|
-
})), /*#__PURE__*/React.createElement(PS.PropteryValue, {
|
|
2105
|
-
style: {
|
|
2106
|
-
marginTop: 10
|
|
2107
|
-
}
|
|
2108
|
-
}, select.name), /*#__PURE__*/React.createElement(PS.ChildTitle, null, /*#__PURE__*/React.createElement("span", {
|
|
2109
|
-
style: {
|
|
2110
|
-
fontWeight: 600
|
|
2111
|
-
}
|
|
2112
|
-
}, select.info.description)), /*#__PURE__*/React.createElement(PS.DesignValue, null, "Design"), /*#__PURE__*/React.createElement(PanelElementEditor, {
|
|
2113
|
-
state: state,
|
|
2114
|
-
categoryData: this.props.categoryData,
|
|
2115
|
-
getLinearOfMolding: this.getLinearOfMolding,
|
|
2116
|
-
planData: planData
|
|
2117
|
-
}));
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
}
|
|
2122
|
-
var plgUrls = this.state.plgUrls;
|
|
2123
|
-
for (var i = 0; i < plgUrls.length; i++) {
|
|
2124
|
-
dirUrl += '>';
|
|
2125
|
-
dirUrl += plgUrls[i];
|
|
2126
|
-
}
|
|
2127
|
-
var beforeItem;
|
|
2128
|
-
var plgItems;
|
|
2129
|
-
if (this.state.filter == '') plgItems = this.state.plgItems;else {
|
|
2130
|
-
plgItems = [];
|
|
2131
|
-
for (var _i = 0; _i < this.state.plgItems.length; _i++) {
|
|
2132
|
-
if (this.state.plgItems[_i].name.indexOf(this.state.filter) != -1) plgItems.push(this.state.plgItems[_i]);
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
if (plgUrls.length > 1) beforeItem = /*#__PURE__*/React.createElement(PlgItem, {
|
|
2136
|
-
url: "before",
|
|
2137
|
-
gltfUrl: null,
|
|
2138
|
-
onClick: this.plgItemAction.bind(this),
|
|
2139
|
-
name: "..."
|
|
2140
|
-
});
|
|
2141
|
-
if (this.state.opened) {
|
|
2142
|
-
var multiMark = String.fromCharCode(215); //x Mark
|
|
2143
|
-
panel = /*#__PURE__*/React.createElement(S.PanelWrapper, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
2144
|
-
style: {
|
|
2145
|
-
backgroundColor: SharedStyle.TOOLBAR_COLOR.active
|
|
2146
|
-
}
|
|
2147
|
-
}, /*#__PURE__*/React.createElement(S.Title, null, /*#__PURE__*/React.createElement("b", null, "choose room features")), /*#__PURE__*/React.createElement(S.Head, null, /*#__PURE__*/React.createElement(S.Close, null, /*#__PURE__*/React.createElement("a", {
|
|
2148
|
-
onClick: this.PanelClose.bind(this),
|
|
2149
|
-
className: "roundButton",
|
|
2150
|
-
onMouseOut: function onMouseOut() {
|
|
2151
|
-
return _this4.setState({
|
|
2152
|
-
closeover: false
|
|
2153
|
-
});
|
|
2154
|
-
},
|
|
2155
|
-
onMouseOver: function onMouseOver() {
|
|
2156
|
-
return _this4.setState({
|
|
2157
|
-
closeover: true
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
}, /*#__PURE__*/React.createElement("span", null, multiMark)))), /*#__PURE__*/React.createElement("div", {
|
|
2161
|
-
style: {
|
|
2162
|
-
clear: 'both'
|
|
2163
|
-
}
|
|
2164
|
-
})), /*#__PURE__*/React.createElement("input", {
|
|
2165
|
-
value: this.state.filter,
|
|
2166
|
-
onChange: this.filterChange.bind(this),
|
|
2167
|
-
placeholder: "filter",
|
|
2168
|
-
style: searchInput,
|
|
2169
|
-
type: "text"
|
|
2170
|
-
}), /*#__PURE__*/React.createElement("p", {
|
|
2171
|
-
style: {
|
|
2172
|
-
"float": 'left',
|
|
2173
|
-
fontSize: '80%',
|
|
2174
|
-
paddingLeft: '8px'
|
|
2175
|
-
}
|
|
2176
|
-
}, /*#__PURE__*/React.createElement("b", null, 'features' + dirUrl)), /*#__PURE__*/React.createElement("div", {
|
|
2177
|
-
style: {
|
|
2178
|
-
clear: 'both'
|
|
2179
|
-
}
|
|
2180
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
2181
|
-
style: {
|
|
2182
|
-
padding: '0 12px'
|
|
2183
|
-
}
|
|
2184
|
-
}, beforeItem, plgItems.map(function (data, key) {
|
|
2185
|
-
return /*#__PURE__*/React.createElement(PlgItem, {
|
|
2186
|
-
url: data.url,
|
|
2187
|
-
gltfUrl: data.gltf_url,
|
|
2188
|
-
onClick: _this4.plgItemAction.bind(_this4),
|
|
2189
|
-
name: data.name,
|
|
2190
|
-
key: key
|
|
2191
|
-
});
|
|
2192
|
-
}))));
|
|
2193
|
-
}
|
|
2194
|
-
if (this.state.animOpened) {
|
|
2195
|
-
var _multiMark = String.fromCharCode(215);
|
|
2196
|
-
panel = /*#__PURE__*/React.createElement("div", {
|
|
2197
|
-
style: {
|
|
2198
|
-
position: 'fixed',
|
|
2199
|
-
zIndex: 9,
|
|
2200
|
-
top: '615px',
|
|
2201
|
-
left: '10px',
|
|
2202
|
-
marginLeft: '100px',
|
|
2203
|
-
width: '310px',
|
|
2204
|
-
backgroundColor: SharedStyle.TOOLBAR_COLOR.focus
|
|
2205
|
-
}
|
|
2206
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
2207
|
-
style: {
|
|
2208
|
-
backgroundColor: SharedStyle.TOOLBAR_COLOR.active
|
|
2209
|
-
}
|
|
2210
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
2211
|
-
style: {
|
|
2212
|
-
"float": 'left',
|
|
2213
|
-
fontSize: '80%',
|
|
2214
|
-
paddingLeft: '8px',
|
|
2215
|
-
color: 'white'
|
|
2216
|
-
}
|
|
2217
|
-
}, /*#__PURE__*/React.createElement("b", null, "Animation")), /*#__PURE__*/React.createElement("p", {
|
|
2218
|
-
style: {
|
|
2219
|
-
display: 'inline-block',
|
|
2220
|
-
"float": 'right',
|
|
2221
|
-
paddingRight: '12px',
|
|
2222
|
-
fontSize: '80%'
|
|
2223
|
-
}
|
|
2224
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
2225
|
-
onClick: this.PanelAnimClose.bind(this),
|
|
2226
|
-
className: "roundButton",
|
|
2227
|
-
onMouseOut: function onMouseOut() {
|
|
2228
|
-
return _this4.setState({
|
|
2229
|
-
closeover: false
|
|
2230
|
-
});
|
|
2231
|
-
},
|
|
2232
|
-
onMouseOver: function onMouseOver() {
|
|
2233
|
-
return _this4.setState({
|
|
2234
|
-
closeover: true
|
|
2235
|
-
});
|
|
2236
|
-
},
|
|
2237
|
-
style: {
|
|
2238
|
-
borderRadius: '50%',
|
|
2239
|
-
width: '15px',
|
|
2240
|
-
height: '15px',
|
|
2241
|
-
color: this.state.closeover ? 'black' : 'white',
|
|
2242
|
-
backgroundColor: SharedStyle.MATERIAL_COLORS['500'].red,
|
|
2243
|
-
cursor: 'pointer',
|
|
2244
|
-
display: 'inline-block',
|
|
2245
|
-
textAlign: 'center'
|
|
2246
|
-
}
|
|
2247
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
2248
|
-
style: {
|
|
2249
|
-
fontSize: '15px',
|
|
2250
|
-
lineHeight: '15px'
|
|
2251
|
-
}
|
|
2252
|
-
}, _multiMark))), /*#__PURE__*/React.createElement("div", {
|
|
2253
|
-
style: {
|
|
2254
|
-
clear: 'both'
|
|
2255
|
-
}
|
|
2256
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
2257
|
-
style: {
|
|
2258
|
-
marginTop: '15px'
|
|
2259
|
-
}
|
|
2260
|
-
}, /*#__PURE__*/React.createElement("select", {
|
|
2261
|
-
value: this.state.animValue,
|
|
2262
|
-
onChange: this.setAnimValue.bind(this),
|
|
2263
|
-
style: searchInput
|
|
2264
|
-
}, this.state.animData.map(function (data, key) {
|
|
2265
|
-
return /*#__PURE__*/React.createElement("option", {
|
|
2266
|
-
key: key,
|
|
2267
|
-
value: key
|
|
2268
|
-
}, data.name + ' animation');
|
|
2269
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
2270
|
-
style: {
|
|
2271
|
-
padding: '0 12px',
|
|
2272
|
-
textAlign: 'center',
|
|
2273
|
-
marginTop: '15px'
|
|
2274
|
-
}
|
|
2275
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
2276
|
-
onMouseOut: function onMouseOut() {
|
|
2277
|
-
return _this4.setState({
|
|
2278
|
-
animover: false
|
|
2279
|
-
});
|
|
2280
|
-
},
|
|
2281
|
-
onMouseOver: function onMouseOver() {
|
|
2282
|
-
return _this4.setState({
|
|
2283
|
-
animover: true
|
|
2284
|
-
});
|
|
2285
|
-
},
|
|
2286
|
-
style: {
|
|
2287
|
-
color: this.state.animover ? 'white' : 'black',
|
|
2288
|
-
textAlign: 'center'
|
|
2289
|
-
}
|
|
2290
|
-
}, /*#__PURE__*/React.createElement(FaPlayCircle, {
|
|
2291
|
-
onClick: this.Animate.bind(this),
|
|
2292
|
-
style: {
|
|
2293
|
-
fontSize: '40px'
|
|
2294
|
-
}
|
|
2295
|
-
})))));
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
// control buttons of right side
|
|
2299
|
-
|
|
2300
|
-
var regexp = new RegExp("^-?([0-9]+)?\\.?([0-9]{0,2})?$");
|
|
2301
|
-
var settingDialog = /*#__PURE__*/React.createElement(PS.SettingDialog, {
|
|
2302
|
-
id: "setting_dialog",
|
|
2303
|
-
headerH: this.props.headerH
|
|
2304
|
-
}, /*#__PURE__*/React.createElement(PS.TitleBarIconButton, {
|
|
2305
|
-
onClick: function onClick() {
|
|
2306
|
-
document.getElementById('setting_dialog').style.display = 'none';
|
|
2307
|
-
// projectActions.unselectAll();
|
|
2308
|
-
}
|
|
2309
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2310
|
-
style: {
|
|
2311
|
-
"float": 'right',
|
|
2312
|
-
height: 35,
|
|
2313
|
-
transform: 'rotate(45deg)'
|
|
2314
|
-
},
|
|
2315
|
-
src: "/assets/img/svg/bottombar/arrow-plus.svg"
|
|
2316
|
-
})), /*#__PURE__*/React.createElement(S.Title, null, "Settings"), /*#__PURE__*/React.createElement(S.NumberInputWrapper, null, /*#__PURE__*/React.createElement(S.NumberInputTitle, null, "Measurement Unit"), /*#__PURE__*/React.createElement(S.MeasurementUnitSelect, {
|
|
2317
|
-
id: "measurement_select",
|
|
2318
|
-
onClick: function onClick() {
|
|
2319
|
-
document.getElementById('measurement_option').style.display = document.getElementById('measurement_option').style.display === 'none' ? 'flex' : 'none';
|
|
2320
|
-
document.getElementById('measurement_select').style.borderColor = SECONDARY_PURPLE_COLOR;
|
|
2321
|
-
document.getElementById('arrow-down').style.display = document.getElementById('arrow-down').style.display === 'none' ? 'block' : 'none';
|
|
2322
|
-
document.getElementById('arrow-up').style.display = document.getElementById('arrow-up').style.display === 'block' ? 'none' : 'block';
|
|
2323
|
-
}
|
|
2324
|
-
}, "".concat(measurementUnit._name, "(").concat(measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', ")")), /*#__PURE__*/React.createElement(S.SelectArrow, {
|
|
2325
|
-
id: "arrow-down",
|
|
2326
|
-
style: {
|
|
2327
|
-
display: 'block'
|
|
2328
|
-
},
|
|
2329
|
-
maskImage: "/assets/img/svg/bottombar/arrow-down.svg"
|
|
2330
|
-
}), /*#__PURE__*/React.createElement(S.SelectArrow, {
|
|
2331
|
-
id: "arrow-up",
|
|
2332
|
-
style: {
|
|
2333
|
-
display: 'none'
|
|
2334
|
-
},
|
|
2335
|
-
maskImage: "/assets/img/svg/bottombar/arrow-up.svg"
|
|
2336
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
2337
|
-
id: "measurement_option",
|
|
2338
|
-
style: {
|
|
2339
|
-
display: 'none',
|
|
2340
|
-
flexDirection: 'column',
|
|
2341
|
-
width: 150,
|
|
2342
|
-
zIndex: 3,
|
|
2343
|
-
top: 55,
|
|
2344
|
-
right: 0,
|
|
2345
|
-
position: 'absolute',
|
|
2346
|
-
borderRadius: 5,
|
|
2347
|
-
backgroundColor: 'white',
|
|
2348
|
-
boxShadow: '0px 3px 5px -1px rgba(156, 154, 154, 0.2), 0px 6px 10px 0px rgba(156, 154, 154, 0.39), 0px 1px 18px 0px rgba(156, 154, 154, 0.12)'
|
|
2349
|
-
}
|
|
2350
|
-
}, unitData.map(function (unit, key) {
|
|
2351
|
-
return /*#__PURE__*/React.createElement(S.MeasurementUnitOption, {
|
|
2352
|
-
onClick: function onClick() {
|
|
2353
|
-
document.getElementById('measurement_option').style.display = 'none';
|
|
2354
|
-
document.getElementById('arrow-down').style.display = 'block';
|
|
2355
|
-
document.getElementById('arrow-up').style.display = 'none';
|
|
2356
|
-
update(ceilingHeight, unit, 1);
|
|
2357
|
-
},
|
|
2358
|
-
key: key
|
|
2359
|
-
}, "".concat(unit._name, "(").concat(unit._unit, ")"));
|
|
2360
|
-
}))), /*#__PURE__*/React.createElement(S.NumberInputWrapper, null, /*#__PURE__*/React.createElement(S.NumberInputTitle, null, "Ceiling Height"), /*#__PURE__*/React.createElement(FormNumberInput, {
|
|
2361
|
-
style: {
|
|
2362
|
-
width: 167,
|
|
2363
|
-
textAlign: 'left',
|
|
2364
|
-
padding: '15px 15px',
|
|
2365
|
-
color: '#000f33',
|
|
2366
|
-
fontSize: '13px',
|
|
2367
|
-
lineHeight: '18px',
|
|
2368
|
-
border: '2px solid #8791ab',
|
|
2369
|
-
borderRadius: '5px',
|
|
2370
|
-
outline: 0,
|
|
2371
|
-
fontWeight: 600,
|
|
2372
|
-
paddingRight: 90
|
|
2373
|
-
},
|
|
2374
|
-
value: ceilingHeight,
|
|
2375
|
-
isCeiling: true,
|
|
2376
|
-
onChange: function onChange(evt) {
|
|
2377
|
-
if (regexp.test(evt.target.value)) {
|
|
2378
|
-
if (isCeilLimitation(_this4.props.state.scene, evt.target.value, measurementUnit)) {
|
|
2379
|
-
_this4.setState({
|
|
2380
|
-
snackBarMessage: WARNING_MESSAGE.CEILING_HEIGHT_NOT_VALID,
|
|
2381
|
-
isSnackBarOpen: true
|
|
2382
|
-
});
|
|
2383
|
-
} else update(evt.target.value, measurementUnit, 0);
|
|
2384
|
-
} else update(ceilingHeight, measurementUnit, 0);
|
|
2385
|
-
},
|
|
2386
|
-
precision: 2
|
|
2387
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
2388
|
-
style: {
|
|
2389
|
-
position: 'absolute',
|
|
2390
|
-
color: TEXT_COLOR_NEUTRAL_2,
|
|
2391
|
-
fontSize: 16,
|
|
2392
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
2393
|
-
fontWeight: 400,
|
|
2394
|
-
lineHeight: '22px',
|
|
2395
|
-
textAlign: 'left',
|
|
2396
|
-
right: 15
|
|
2397
|
-
}
|
|
2398
|
-
}, measurementUnit._unit === 'in' ? "".concat(measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', "(default)") : measurementUnit._unit)), /*#__PURE__*/React.createElement(S.Title, {
|
|
2399
|
-
style: {
|
|
2400
|
-
fontSize: 14
|
|
2401
|
-
}
|
|
2402
|
-
}, "Show/Hide Measurements"), /*#__PURE__*/React.createElement(S.ToggleWrapper, {
|
|
2403
|
-
style: {
|
|
2404
|
-
display: 'flex',
|
|
2405
|
-
justifyContent: 'space-between'
|
|
2406
|
-
}
|
|
2407
|
-
}, /*#__PURE__*/React.createElement(S.ToggleLabel, null, "Wall length"), /*#__PURE__*/React.createElement(ToggleMeasureButton, {
|
|
2408
|
-
style: {
|
|
2409
|
-
marginRight: 10,
|
|
2410
|
-
height: 30
|
|
2411
|
-
},
|
|
2412
|
-
key: 'S/H Measure',
|
|
2413
|
-
showMeasure: this.props.state.scene.showWallLengthMeasure,
|
|
2414
|
-
active: control === 'show/hide toggle measure ',
|
|
2415
|
-
settingMode: mode,
|
|
2416
|
-
state: this.props.state,
|
|
2417
|
-
backgroundImage: /*#__PURE__*/React.createElement("img", {
|
|
2418
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showWallLengthMeasure === 0 ? '2d3d_toggle.svg' : '2d3d_toggle_active.svg'),
|
|
2419
|
-
style: {
|
|
2420
|
-
width: '55px',
|
|
2421
|
-
height: '30px'
|
|
2422
|
-
}
|
|
2423
|
-
}),
|
|
2424
|
-
onClick: function onClick() {
|
|
2425
|
-
if (!_this4.props.layers.get(_this4.props.selectedLayer).areas.size) {
|
|
2426
|
-
_this4.setState({
|
|
2427
|
-
snackBarMessage: 'No Floor plan',
|
|
2428
|
-
isSnackBarOpen: true
|
|
2429
|
-
});
|
|
2430
|
-
return;
|
|
2431
|
-
}
|
|
2432
|
-
viewer2DActions.changeWallLengthMeasure(1 - _this4.props.state.scene.get('showWallLengthMeasure'));
|
|
2433
|
-
},
|
|
2434
|
-
icon: /*#__PURE__*/React.createElement("img", {
|
|
2435
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showWallLengthMeasure === 0 ? '2d3d_button.svg' : '2d3d_button_active.svg'),
|
|
2436
|
-
style: {
|
|
2437
|
-
width: '30px',
|
|
2438
|
-
height: '30px'
|
|
2439
|
-
}
|
|
2440
|
-
})
|
|
2441
|
-
})), /*#__PURE__*/React.createElement(S.ToggleWrapper, {
|
|
2442
|
-
style: {
|
|
2443
|
-
display: 'flex',
|
|
2444
|
-
justifyContent: 'space-between'
|
|
2445
|
-
}
|
|
2446
|
-
}, /*#__PURE__*/React.createElement(S.ToggleLabel, null, "Base cabinets"), /*#__PURE__*/React.createElement(ToggleMeasureButton, {
|
|
2447
|
-
style: {
|
|
2448
|
-
marginRight: 10,
|
|
2449
|
-
height: 30
|
|
2450
|
-
},
|
|
2451
|
-
key: 'S/H Measure',
|
|
2452
|
-
active: control === 'show/hide toggle measure ',
|
|
2453
|
-
settingMode: mode,
|
|
2454
|
-
showMeasure: this.props.state.scene.showBaseCabinetMeasure,
|
|
2455
|
-
backgroundImage: /*#__PURE__*/React.createElement("img", {
|
|
2456
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showBaseCabinetMeasure === 0 ? '2d3d_toggle.svg' : '2d3d_toggle_active.svg'),
|
|
2457
|
-
style: {
|
|
2458
|
-
width: '55px',
|
|
2459
|
-
height: '30px'
|
|
2460
|
-
}
|
|
2461
|
-
}),
|
|
2462
|
-
onClick: function onClick() {
|
|
2463
|
-
if (!_this4.props.layers.get(_this4.props.selectedLayer).areas.size) {
|
|
2464
|
-
_this4.setState({
|
|
2465
|
-
snackBarMessage: 'No Floor plan',
|
|
2466
|
-
isSnackBarOpen: true
|
|
2467
|
-
});
|
|
2468
|
-
return;
|
|
2469
|
-
}
|
|
2470
|
-
viewer2DActions.changeBaseCabinetMeasure(1 - _this4.props.state.scene.get('showBaseCabinetMeasure'));
|
|
2471
|
-
},
|
|
2472
|
-
icon: /*#__PURE__*/React.createElement("img", {
|
|
2473
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showBaseCabinetMeasure === 0 ? '2d3d_button.svg' : '2d3d_button_active.svg'),
|
|
2474
|
-
style: {
|
|
2475
|
-
width: '30px',
|
|
2476
|
-
height: '30px'
|
|
2477
|
-
}
|
|
2478
|
-
})
|
|
2479
|
-
})), /*#__PURE__*/React.createElement(S.ToggleWrapper, {
|
|
2480
|
-
style: {
|
|
2481
|
-
display: 'flex',
|
|
2482
|
-
justifyContent: 'space-between'
|
|
2483
|
-
}
|
|
2484
|
-
}, /*#__PURE__*/React.createElement(S.ToggleLabel, null, "Wall cabinets"), /*#__PURE__*/React.createElement(ToggleMeasureButton, {
|
|
2485
|
-
style: {
|
|
2486
|
-
marginRight: 10,
|
|
2487
|
-
height: 30
|
|
2488
|
-
},
|
|
2489
|
-
key: 'S/H Measure',
|
|
2490
|
-
active: control === 'show/hide toggle measure ',
|
|
2491
|
-
settingMode: mode,
|
|
2492
|
-
showMeasure: this.props.state.scene.showWallCabinetMeasure,
|
|
2493
|
-
backgroundImage: /*#__PURE__*/React.createElement("img", {
|
|
2494
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showWallCabinetMeasure === 0 ? '2d3d_toggle.svg' : '2d3d_toggle_active.svg'),
|
|
2495
|
-
style: {
|
|
2496
|
-
width: '55px',
|
|
2497
|
-
height: '30px'
|
|
2498
|
-
}
|
|
2499
|
-
}),
|
|
2500
|
-
onClick: function onClick() {
|
|
2501
|
-
if (!_this4.props.layers.get(_this4.props.selectedLayer).areas.size) {
|
|
2502
|
-
_this4.setState({
|
|
2503
|
-
snackBarMessage: 'No Floor plan',
|
|
2504
|
-
isSnackBarOpen: true
|
|
2505
|
-
});
|
|
2506
|
-
return;
|
|
2507
|
-
}
|
|
2508
|
-
viewer2DActions.changeWallCabinetMeasure(1 - _this4.props.state.scene.get('showWallCabinetMeasure'));
|
|
2509
|
-
},
|
|
2510
|
-
icon: /*#__PURE__*/React.createElement("img", {
|
|
2511
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showWallCabinetMeasure === 0 ? '2d3d_button.svg' : '2d3d_button_active.svg'),
|
|
2512
|
-
style: {
|
|
2513
|
-
width: '30px',
|
|
2514
|
-
height: '30px'
|
|
2515
|
-
}
|
|
2516
|
-
})
|
|
2517
|
-
})), /*#__PURE__*/React.createElement(S.ToggleWrapper, {
|
|
2518
|
-
style: {
|
|
2519
|
-
display: 'flex',
|
|
2520
|
-
justifyContent: 'space-between'
|
|
2521
|
-
}
|
|
2522
|
-
}, /*#__PURE__*/React.createElement(S.ToggleLabel, null, "Windows & Doors"), /*#__PURE__*/React.createElement(ToggleMeasureButton, {
|
|
2523
|
-
style: {
|
|
2524
|
-
marginRight: 10,
|
|
2525
|
-
height: 30
|
|
2526
|
-
},
|
|
2527
|
-
key: 'S/H Measure',
|
|
2528
|
-
active: control === 'show/hide toggle measure ',
|
|
2529
|
-
settingMode: mode,
|
|
2530
|
-
showMeasure: this.props.state.scene.showWindowDoorMeasure,
|
|
2531
|
-
backgroundImage: /*#__PURE__*/React.createElement("img", {
|
|
2532
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showWindowDoorMeasure === 0 ? '2d3d_toggle.svg' : '2d3d_toggle_active.svg'),
|
|
2533
|
-
style: {
|
|
2534
|
-
width: '55px',
|
|
2535
|
-
height: '30px'
|
|
2536
|
-
}
|
|
2537
|
-
}),
|
|
2538
|
-
onClick: function onClick() {
|
|
2539
|
-
if (!_this4.props.layers.get(_this4.props.selectedLayer).areas.size) {
|
|
2540
|
-
_this4.setState({
|
|
2541
|
-
snackBarMessage: 'No Floor plan',
|
|
2542
|
-
isSnackBarOpen: true
|
|
2543
|
-
});
|
|
2544
|
-
return;
|
|
2545
|
-
}
|
|
2546
|
-
viewer2DActions.changeWindowDoorMeasure(1 - _this4.props.state.scene.get('showWindowDoorMeasure'));
|
|
2547
|
-
},
|
|
2548
|
-
icon: /*#__PURE__*/React.createElement("img", {
|
|
2549
|
-
src: "/assets/img/svg/bottombar/".concat(this.props.state.scene.showWindowDoorMeasure === 0 ? '2d3d_button.svg' : '2d3d_button_active.svg'),
|
|
2550
|
-
style: {
|
|
2551
|
-
width: '30px',
|
|
2552
|
-
height: '30px'
|
|
2553
|
-
}
|
|
2554
|
-
})
|
|
2555
|
-
})));
|
|
2556
|
-
var helpDialog = '';
|
|
2557
|
-
helpDialog = this.props.state.isHelp ? /*#__PURE__*/React.createElement(PS.HelpDialog, {
|
|
2558
|
-
id: "help_dialog"
|
|
2559
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2560
|
-
style: {
|
|
2561
|
-
overflowY: 'auto',
|
|
2562
|
-
maxHeight: 'calc(100vh - 230px)',
|
|
2563
|
-
padding: '10px'
|
|
2564
|
-
}
|
|
2565
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2566
|
-
style: {
|
|
2567
|
-
display: 'flex',
|
|
2568
|
-
justifyContent: 'space-between'
|
|
2569
|
-
}
|
|
2570
|
-
}, /*#__PURE__*/React.createElement(PS.HCTitle, null, "Help Center"), /*#__PURE__*/React.createElement(PS.Support, {
|
|
2571
|
-
onClick: function onClick() {
|
|
2572
|
-
_this4.setState({
|
|
2573
|
-
helpViewNum: 3
|
|
2574
|
-
});
|
|
2575
|
-
}
|
|
2576
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2577
|
-
src: "/assets/img/svg/lefttoolbar/room-shape-custom.svg"
|
|
2578
|
-
}), "Tech Support")), helpViewNum === 1 ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.Video, null, /*#__PURE__*/React.createElement("div", {
|
|
2579
|
-
style: {
|
|
2580
|
-
backgroundImage: 'url("/assets/img/png/helper/video_preview_start.png")',
|
|
2581
|
-
backgroundSize: 'cover',
|
|
2582
|
-
width: '100%',
|
|
2583
|
-
height: '150px',
|
|
2584
|
-
borderRadius: '10px'
|
|
2585
|
-
}
|
|
2586
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2587
|
-
style: {
|
|
2588
|
-
backgroundImage: 'linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0))',
|
|
2589
|
-
width: '100%',
|
|
2590
|
-
height: '100%',
|
|
2591
|
-
borderRadius: '10px'
|
|
2592
|
-
}
|
|
2593
|
-
})), /*#__PURE__*/React.createElement(PS.VideoText, null, /*#__PURE__*/React.createElement(PS.VideoTitle, null, "How to get Started"), /*#__PURE__*/React.createElement(PS.VideoTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.VideoButton, {
|
|
2594
|
-
onClick: function onClick() {
|
|
2595
|
-
_this4.setState({
|
|
2596
|
-
videoUrl: '/assets/001.Welcome-To-The-Course.mp4'
|
|
2597
|
-
});
|
|
2598
|
-
document.getElementById('videoModal').style.display = 'flex';
|
|
2599
|
-
}
|
|
2600
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2601
|
-
src: "/assets/img/svg/lefttoolbar/room-shape-custom.svg",
|
|
2602
|
-
style: {
|
|
2603
|
-
width: '100%',
|
|
2604
|
-
height: '100%'
|
|
2605
|
-
}
|
|
2606
|
-
}))), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "Getting Started Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The introductory tutorial showing you the bare bones of the DIY Design Software"), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "How can we help?"), /*#__PURE__*/React.createElement(PS.SearchBox, null, /*#__PURE__*/React.createElement(PS.SearchInput, {
|
|
2607
|
-
placeholder: "Search for help"
|
|
2608
|
-
}), /*#__PURE__*/React.createElement(PS.SearchIcon, null, /*#__PURE__*/React.createElement("img", {
|
|
2609
|
-
src: "/assets/img/svg/help/search.svg"
|
|
2610
|
-
}))), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "Tutorials"), /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement(PS.Video, null, /*#__PURE__*/React.createElement("div", {
|
|
2611
|
-
style: {
|
|
2612
|
-
backgroundImage: 'url("/assets/img/png/helper/video_preview_3d.png")',
|
|
2613
|
-
backgroundSize: 'cover',
|
|
2614
|
-
width: '100%',
|
|
2615
|
-
height: '150px',
|
|
2616
|
-
borderRadius: '10px'
|
|
2617
|
-
}
|
|
2618
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2619
|
-
style: {
|
|
2620
|
-
backgroundImage: 'linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0))',
|
|
2621
|
-
width: '100%',
|
|
2622
|
-
height: '100%',
|
|
2623
|
-
borderRadius: '10px'
|
|
2624
|
-
}
|
|
2625
|
-
})), /*#__PURE__*/React.createElement(PS.VideoText, null, /*#__PURE__*/React.createElement(PS.VideoTitle, null, "3D Viewport"), /*#__PURE__*/React.createElement(PS.VideoTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.VideoButton, {
|
|
2626
|
-
onClick: function onClick() {
|
|
2627
|
-
_this4.setState({
|
|
2628
|
-
videoUrl: '/assets/002.A-Look-At-The-Main-App.mp4'
|
|
2629
|
-
});
|
|
2630
|
-
document.getElementById('videoModal').style.display = 'flex';
|
|
2631
|
-
}
|
|
2632
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2633
|
-
src: "/assets/img/svg/lefttoolbar/room-shape-custom.svg",
|
|
2634
|
-
style: {
|
|
2635
|
-
width: '100%',
|
|
2636
|
-
height: '100%'
|
|
2637
|
-
}
|
|
2638
|
-
}))), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "3D Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The tutorial showing you the fundamentals of 3D viewport feature."), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement("div", {
|
|
2639
|
-
style: {
|
|
2640
|
-
display: 'flex',
|
|
2641
|
-
justifyContent: 'space-between'
|
|
2642
|
-
}
|
|
2643
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "Layout Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The tutorial showing you how to create layouts, dynamically and with presets."), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCCardButton, null, /*#__PURE__*/React.createElement("img", {
|
|
2644
|
-
style: {
|
|
2645
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2646
|
-
backgroundColor: BG_COLOR_1,
|
|
2647
|
-
WebkitMaskSize: '100%',
|
|
2648
|
-
WebkitMaskPosition: 'center',
|
|
2649
|
-
width: '20px',
|
|
2650
|
-
height: '20px'
|
|
2651
|
-
}
|
|
2652
|
-
})))), /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement("div", {
|
|
2653
|
-
style: {
|
|
2654
|
-
display: 'flex',
|
|
2655
|
-
justifyContent: 'space-between'
|
|
2656
|
-
}
|
|
2657
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "Island Walls Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The tutorial showing you how to create island walls."), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCCardButton, null, /*#__PURE__*/React.createElement("img", {
|
|
2658
|
-
style: {
|
|
2659
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2660
|
-
backgroundColor: BG_COLOR_1,
|
|
2661
|
-
WebkitMaskSize: '100%',
|
|
2662
|
-
WebkitMaskPosition: 'center',
|
|
2663
|
-
width: '20px',
|
|
2664
|
-
height: '20px'
|
|
2665
|
-
}
|
|
2666
|
-
})))), /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement("div", {
|
|
2667
|
-
style: {
|
|
2668
|
-
display: 'flex',
|
|
2669
|
-
justifyContent: 'space-between'
|
|
2670
|
-
}
|
|
2671
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "Measurements Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The tutorial showing you theMeasurementsFeature."), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCCardButton, {
|
|
2672
|
-
onClick: function onClick() {
|
|
2673
|
-
_this4.setState({
|
|
2674
|
-
helpViewNum: 2
|
|
2675
|
-
});
|
|
2676
|
-
}
|
|
2677
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2678
|
-
style: {
|
|
2679
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2680
|
-
backgroundColor: BG_COLOR_1,
|
|
2681
|
-
WebkitMaskSize: '100%',
|
|
2682
|
-
WebkitMaskPosition: 'center',
|
|
2683
|
-
width: '20px',
|
|
2684
|
-
height: '20px'
|
|
2685
|
-
}
|
|
2686
|
-
})))), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "FAQ"), /*#__PURE__*/React.createElement(PS.HCCollapse, null, /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement("button", {
|
|
2687
|
-
className: "collapsible",
|
|
2688
|
-
type: "button",
|
|
2689
|
-
onClick: function onClick() {
|
|
2690
|
-
var coll = document.getElementsByClassName('collapsible');
|
|
2691
|
-
coll[0].classList.toggle('active');
|
|
2692
|
-
var content = coll[0].nextElementSibling;
|
|
2693
|
-
if (content.style.maxHeight) {
|
|
2694
|
-
content.style.maxHeight = null;
|
|
2695
|
-
} else {
|
|
2696
|
-
content.style.maxHeight = content.scrollHeight + 'px';
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2700
|
-
style: {
|
|
2701
|
-
display: 'flex',
|
|
2702
|
-
justifyContent: 'space-between'
|
|
2703
|
-
}
|
|
2704
|
-
}, /*#__PURE__*/React.createElement("span", null, "Question here"), /*#__PURE__*/React.createElement("img", {
|
|
2705
|
-
style: {
|
|
2706
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2707
|
-
backgroundColor: SECONDARY_PURPLE_COLOR,
|
|
2708
|
-
WebkitMaskSize: '100%',
|
|
2709
|
-
WebkitMaskPosition: 'center',
|
|
2710
|
-
width: '20px',
|
|
2711
|
-
height: '20px'
|
|
2712
|
-
}
|
|
2713
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
2714
|
-
className: "content"
|
|
2715
|
-
}, "Answer displayed here... the tutorial showing you how to create layouts, dynamically and with presets...")), /*#__PURE__*/React.createElement(PS.HCCollapse, null, /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement("button", {
|
|
2716
|
-
className: "collapsible",
|
|
2717
|
-
type: "button",
|
|
2718
|
-
onClick: function onClick() {
|
|
2719
|
-
var coll = document.getElementsByClassName('collapsible');
|
|
2720
|
-
coll[1].classList.toggle('active');
|
|
2721
|
-
var content = coll[1].nextElementSibling;
|
|
2722
|
-
if (content.style.maxHeight) {
|
|
2723
|
-
content.style.maxHeight = null;
|
|
2724
|
-
} else {
|
|
2725
|
-
content.style.maxHeight = content.scrollHeight + 'px';
|
|
2726
|
-
}
|
|
2727
|
-
}
|
|
2728
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2729
|
-
style: {
|
|
2730
|
-
display: 'flex',
|
|
2731
|
-
justifyContent: 'space-between'
|
|
2732
|
-
}
|
|
2733
|
-
}, /*#__PURE__*/React.createElement("span", null, "Question here"), /*#__PURE__*/React.createElement("img", {
|
|
2734
|
-
style: {
|
|
2735
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2736
|
-
backgroundColor: SECONDARY_PURPLE_COLOR,
|
|
2737
|
-
WebkitMaskSize: '100%',
|
|
2738
|
-
WebkitMaskPosition: 'center',
|
|
2739
|
-
width: '20px',
|
|
2740
|
-
height: '20px'
|
|
2741
|
-
}
|
|
2742
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
2743
|
-
className: "content"
|
|
2744
|
-
}, "Answer displayed here... the tutorial showing you how to create layouts, dynamically and with presets...")), /*#__PURE__*/React.createElement(PS.HCCollapse, null, /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement("button", {
|
|
2745
|
-
className: "collapsible",
|
|
2746
|
-
type: "button",
|
|
2747
|
-
onClick: function onClick() {
|
|
2748
|
-
var coll = document.getElementsByClassName('collapsible');
|
|
2749
|
-
coll[2].classList.toggle('active');
|
|
2750
|
-
var content = coll[2].nextElementSibling;
|
|
2751
|
-
if (content.style.maxHeight) {
|
|
2752
|
-
content.style.maxHeight = null;
|
|
2753
|
-
} else {
|
|
2754
|
-
content.style.maxHeight = content.scrollHeight + 'px';
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
2758
|
-
style: {
|
|
2759
|
-
display: 'flex',
|
|
2760
|
-
justifyContent: 'space-between'
|
|
2761
|
-
}
|
|
2762
|
-
}, /*#__PURE__*/React.createElement("span", null, "Question here"), /*#__PURE__*/React.createElement("img", {
|
|
2763
|
-
style: {
|
|
2764
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2765
|
-
backgroundColor: SECONDARY_PURPLE_COLOR,
|
|
2766
|
-
WebkitMaskSize: '100%',
|
|
2767
|
-
WebkitMaskPosition: 'center',
|
|
2768
|
-
width: '20px',
|
|
2769
|
-
height: '20px'
|
|
2770
|
-
}
|
|
2771
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
2772
|
-
className: "content"
|
|
2773
|
-
}, "Answer displayed here... the tutorial showing you how to create layouts, dynamically and with presets..."))) : helpViewNum === 2 ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.TitleBarButton, {
|
|
2774
|
-
onClick: function onClick() {
|
|
2775
|
-
_this4.setState({
|
|
2776
|
-
helpViewNum: 1
|
|
2777
|
-
});
|
|
2778
|
-
}
|
|
2779
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2780
|
-
style: {
|
|
2781
|
-
paddingRight: 10
|
|
2782
|
-
},
|
|
2783
|
-
height: "10px",
|
|
2784
|
-
src: "/assets/img/svg/toolbar/undo_button.svg"
|
|
2785
|
-
}), "Back"), /*#__PURE__*/React.createElement(PS.HCTitle, null, "Measurements Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "Here you willfid how to use theMeasurement Tool"), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "1. Defiition"), /*#__PURE__*/React.createElement(PS.HCLable, null, "Every object has8 red dots around it.Four of them are located on the edges and other four are between the edges"), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "2. StartMeasuring"), /*#__PURE__*/React.createElement(PS.HCLable, null, "To start measuring, click on the starting point. It will turn dark blue."), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "3. Measure"), /*#__PURE__*/React.createElement(PS.HCLable, null, "To measure the distance click on the ending point."), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "4. Outcome"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The measurement tool outputs 2 outcomes."), /*#__PURE__*/React.createElement(PS.HCLable, null, "The first outcome is when the angle between points is not big. You only see the distance between the points."), /*#__PURE__*/React.createElement("img", {
|
|
2786
|
-
src: "/assets/img/png/helper/outcome.png",
|
|
2787
|
-
style: {
|
|
2788
|
-
width: '100%'
|
|
2789
|
-
}
|
|
2790
|
-
}), /*#__PURE__*/React.createElement(PS.HCLable, null, "The second outcome is when the angle between points is bigger. You will see the x and y distance as well as the distance between points."), /*#__PURE__*/React.createElement(PS.HCHr, {
|
|
2791
|
-
style: {
|
|
2792
|
-
marginTop: '50px'
|
|
2793
|
-
}
|
|
2794
|
-
}), /*#__PURE__*/React.createElement(PS.HCSubTitle, null, "Related Tutorials"), /*#__PURE__*/React.createElement(PS.HCHr, {
|
|
2795
|
-
style: {
|
|
2796
|
-
marginTop: '20px'
|
|
2797
|
-
}
|
|
2798
|
-
}), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement("div", {
|
|
2799
|
-
style: {
|
|
2800
|
-
display: 'flex',
|
|
2801
|
-
justifyContent: 'space-between'
|
|
2802
|
-
}
|
|
2803
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "Layout Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The tutorial showing you how to create layouts, dynamically and with presets."), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCCardButton, null, /*#__PURE__*/React.createElement("img", {
|
|
2804
|
-
style: {
|
|
2805
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2806
|
-
backgroundColor: BG_COLOR_1,
|
|
2807
|
-
WebkitMaskSize: '100%',
|
|
2808
|
-
WebkitMaskPosition: 'center',
|
|
2809
|
-
width: '20px',
|
|
2810
|
-
height: '20px'
|
|
2811
|
-
}
|
|
2812
|
-
})))), /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement("div", {
|
|
2813
|
-
style: {
|
|
2814
|
-
display: 'flex',
|
|
2815
|
-
justifyContent: 'space-between'
|
|
2816
|
-
}
|
|
2817
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "Island Walls Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The tutorial showing you how to create island walls."), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCCardButton, null, /*#__PURE__*/React.createElement("img", {
|
|
2818
|
-
style: {
|
|
2819
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2820
|
-
backgroundColor: BG_COLOR_1,
|
|
2821
|
-
WebkitMaskSize: '100%',
|
|
2822
|
-
WebkitMaskPosition: 'center',
|
|
2823
|
-
width: '20px',
|
|
2824
|
-
height: '20px'
|
|
2825
|
-
}
|
|
2826
|
-
})))), /*#__PURE__*/React.createElement(PS.HCHr, null), /*#__PURE__*/React.createElement(PS.HCCard, null, /*#__PURE__*/React.createElement("div", {
|
|
2827
|
-
style: {
|
|
2828
|
-
display: 'flex',
|
|
2829
|
-
justifyContent: 'space-between'
|
|
2830
|
-
}
|
|
2831
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.HCCardTitle, null, "Measurements Tutorial"), /*#__PURE__*/React.createElement(PS.HCLable, null, "The tutorial showing you theMeasurementsFeature."), /*#__PURE__*/React.createElement(PS.HCTag, null, "Posted 2 days ago")), /*#__PURE__*/React.createElement(PS.HCCardButton, {
|
|
2832
|
-
onClick: function onClick() {
|
|
2833
|
-
_this4.setState({
|
|
2834
|
-
helpViewNum: 2
|
|
2835
|
-
});
|
|
2836
|
-
}
|
|
2837
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2838
|
-
style: {
|
|
2839
|
-
WebkitMaskImage: 'url(/assets/img/svg/help/check.svg)',
|
|
2840
|
-
backgroundColor: BG_COLOR_1,
|
|
2841
|
-
WebkitMaskSize: '100%',
|
|
2842
|
-
WebkitMaskPosition: 'center',
|
|
2843
|
-
width: '20px',
|
|
2844
|
-
height: '20px'
|
|
2845
|
-
}
|
|
2846
|
-
}))))) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PS.TitleBarButton, {
|
|
2847
|
-
onClick: function onClick() {
|
|
2848
|
-
_this4.setState({
|
|
2849
|
-
helpViewNum: 1
|
|
2850
|
-
});
|
|
2851
|
-
}
|
|
2852
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
2853
|
-
style: {
|
|
2854
|
-
paddingRight: 10
|
|
2855
|
-
},
|
|
2856
|
-
height: "10px",
|
|
2857
|
-
src: "/assets/img/svg/toolbar/undo_button.svg"
|
|
2858
|
-
}), "Back"), /*#__PURE__*/React.createElement(PS.HCTitle, null, "Tech Support"), /*#__PURE__*/React.createElement(PS.HCLable, null, "Support text here."), /*#__PURE__*/React.createElement("div", {
|
|
2859
|
-
style: {
|
|
2860
|
-
margin: '0 10px'
|
|
2861
|
-
}
|
|
2862
|
-
}, /*#__PURE__*/React.createElement(PS.HCSelect, null, /*#__PURE__*/React.createElement("div", null, "Select Subject"), /*#__PURE__*/React.createElement("select", {
|
|
2863
|
-
defaultValue: ""
|
|
2864
|
-
}, /*#__PURE__*/React.createElement("option", {
|
|
2865
|
-
key: 0,
|
|
2866
|
-
value: "",
|
|
2867
|
-
disabled: true
|
|
2868
|
-
}, "What issue do you occur"), /*#__PURE__*/React.createElement("option", {
|
|
2869
|
-
key: 1,
|
|
2870
|
-
value: "1"
|
|
2871
|
-
}, "Item 1"), /*#__PURE__*/React.createElement("option", {
|
|
2872
|
-
key: 2,
|
|
2873
|
-
value: "2"
|
|
2874
|
-
}, "Item 2"), /*#__PURE__*/React.createElement("option", {
|
|
2875
|
-
key: 3,
|
|
2876
|
-
value: "3"
|
|
2877
|
-
}, "Item 3"))), /*#__PURE__*/React.createElement(PS.HCUpload, null, /*#__PURE__*/React.createElement("div", {
|
|
2878
|
-
className: "upload"
|
|
2879
|
-
}, /*#__PURE__*/React.createElement("label", null, /*#__PURE__*/React.createElement("p", null, "Drag and drop files or ", /*#__PURE__*/React.createElement("u", null, "Browse")), /*#__PURE__*/React.createElement("input", {
|
|
2880
|
-
type: "file"
|
|
2881
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
2882
|
-
className: "upload-label"
|
|
2883
|
-
}, "Please upload files under 5MB, other supporting text.")), /*#__PURE__*/React.createElement("div", {
|
|
2884
|
-
style: {
|
|
2885
|
-
width: '100%',
|
|
2886
|
-
marginTop: 10
|
|
2887
|
-
}
|
|
2888
|
-
}, /*#__PURE__*/React.createElement(PS.HCTextArea, {
|
|
2889
|
-
value: notes,
|
|
2890
|
-
maxLength: 200,
|
|
2891
|
-
placeholder: "Describe your problem",
|
|
2892
|
-
onChange: function onChange(e) {
|
|
2893
|
-
return _this4.setState({
|
|
2894
|
-
notes: e.target.value
|
|
2895
|
-
});
|
|
2896
|
-
}
|
|
2897
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
2898
|
-
style: {
|
|
2899
|
-
fontSize: 13,
|
|
2900
|
-
color: TEXT_COLOR_NEUTRAL_1,
|
|
2901
|
-
"float": 'right',
|
|
2902
|
-
lineHeight: '18px',
|
|
2903
|
-
fontWeight: 400,
|
|
2904
|
-
marginRight: '20px'
|
|
2905
|
-
}
|
|
2906
|
-
}, notes.length, "/200 characters"))), /*#__PURE__*/React.createElement(PS.HCCardButton, {
|
|
2907
|
-
style: {
|
|
2908
|
-
width: '130px'
|
|
2909
|
-
}
|
|
2910
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
2911
|
-
style: {
|
|
2912
|
-
margin: 'auto'
|
|
2913
|
-
}
|
|
2914
|
-
}, "Submit Ticket"))))) : '';
|
|
2915
|
-
|
|
2916
|
-
// property window
|
|
2917
|
-
var tabDialog = /*#__PURE__*/React.createElement(PS.Tab, null, /*#__PURE__*/React.createElement(PS.TopLine, null, /*#__PURE__*/React.createElement(PS.TabLine, null, objectProperty === '' ? null : /*#__PURE__*/React.createElement(PS.TabLabel, {
|
|
2918
|
-
onClick: function onClick() {
|
|
2919
|
-
_this4.openTab('object');
|
|
2920
|
-
projectActions.setIsHelp(false);
|
|
2921
|
-
},
|
|
2922
|
-
id: "object_link",
|
|
2923
|
-
className: "tablinks ".concat(helpDialog === '' ? 'selected' : '')
|
|
2924
|
-
}, /*#__PURE__*/React.createElement("label", null, "Object Properties"), /*#__PURE__*/React.createElement("img", {
|
|
2925
|
-
style: {
|
|
2926
|
-
"float": 'right',
|
|
2927
|
-
height: 20,
|
|
2928
|
-
width: 20,
|
|
2929
|
-
transform: 'rotate(45deg)',
|
|
2930
|
-
WebkitMaskImage: 'url(/assets/img/svg/bottombar/arrow-plus.svg)',
|
|
2931
|
-
WebkitMaskSize: '100%',
|
|
2932
|
-
WebkitMaskPosition: 'center'
|
|
2933
|
-
},
|
|
2934
|
-
onClick: function onClick(e) {
|
|
2935
|
-
e.stopPropagation();
|
|
2936
|
-
projectActions.unselectAll();
|
|
2937
|
-
helpDialog !== '' && _this4.openTab('help');
|
|
2938
|
-
}
|
|
2939
|
-
})), helpDialog !== '' ? /*#__PURE__*/React.createElement(PS.TabLabel, {
|
|
2940
|
-
onClick: function onClick() {
|
|
2941
|
-
return _this4.openTab('help');
|
|
2942
|
-
},
|
|
2943
|
-
id: "help_link",
|
|
2944
|
-
className: "tablinks selected"
|
|
2945
|
-
}, /*#__PURE__*/React.createElement("label", null, "Help Center"), /*#__PURE__*/React.createElement("img", {
|
|
2946
|
-
style: {
|
|
2947
|
-
"float": 'right',
|
|
2948
|
-
height: 20,
|
|
2949
|
-
width: 20,
|
|
2950
|
-
transform: 'rotate(45deg)',
|
|
2951
|
-
WebkitMaskImage: 'url(/assets/img/svg/bottombar/arrow-plus.svg)',
|
|
2952
|
-
WebkitMaskSize: '100%',
|
|
2953
|
-
WebkitMaskPosition: 'center'
|
|
2954
|
-
},
|
|
2955
|
-
onClick: function onClick() {
|
|
2956
|
-
return projectActions.setIsHelp(false);
|
|
2957
|
-
}
|
|
2958
|
-
})) : null), helpDialog === '' && objectProperty === '' ? null : /*#__PURE__*/React.createElement(PS.ToolLine, null, /*#__PURE__*/React.createElement(PS.TitleBarIconButton, null, /*#__PURE__*/React.createElement("img", {
|
|
2959
|
-
style: {
|
|
2960
|
-
"float": 'left',
|
|
2961
|
-
height: 24,
|
|
2962
|
-
marginLeft: 10
|
|
2963
|
-
},
|
|
2964
|
-
onClick: function onClick() {
|
|
2965
|
-
_this4.props.setShowProperty(false);
|
|
2966
|
-
},
|
|
2967
|
-
src: "/assets/img/svg/bottombar/collapse.svg"
|
|
2968
|
-
})), /*#__PURE__*/React.createElement(PS.TitleBarIconButton, null, /*#__PURE__*/React.createElement("img", {
|
|
2969
|
-
style: {
|
|
2970
|
-
"float": 'right',
|
|
2971
|
-
height: 24,
|
|
2972
|
-
transform: 'rotate(45deg)',
|
|
2973
|
-
marginRight: 10
|
|
2974
|
-
},
|
|
2975
|
-
onClick: function onClick() {
|
|
2976
|
-
if (mode === MODE_DRAWING_LINE) {
|
|
2977
|
-
projectActions.rollback();
|
|
2978
|
-
}
|
|
2979
|
-
projectActions.unselectAll();
|
|
2980
|
-
projectActions.setIsHelp(false);
|
|
2981
|
-
},
|
|
2982
|
-
src: "/assets/img/svg/bottombar/arrow-plus.svg"
|
|
2983
|
-
})))), /*#__PURE__*/React.createElement("div", {
|
|
2984
|
-
id: "help",
|
|
2985
|
-
className: "tabcontent",
|
|
2986
|
-
style: {
|
|
2987
|
-
display: helpDialog === '' ? 'none' : 'flex'
|
|
2988
|
-
}
|
|
2989
|
-
}, helpDialog), /*#__PURE__*/React.createElement("div", {
|
|
2990
|
-
id: "object",
|
|
2991
|
-
className: "tabcontent",
|
|
2992
|
-
style: {
|
|
2993
|
-
display: "".concat(helpDialog === '' ? 'flex' : 'none')
|
|
2994
|
-
}
|
|
2995
|
-
}, objectProperty));
|
|
2996
|
-
var controlView = isElevationView(mode) ? [/*#__PURE__*/React.createElement("div", {
|
|
2997
|
-
key: 'section1',
|
|
2998
|
-
onKeyDown: function onKeyDown(event) {
|
|
2999
|
-
return event.stopPropagation();
|
|
3000
|
-
},
|
|
3001
|
-
onKeyUp: function onKeyUp(event) {
|
|
3002
|
-
return event.stopPropagation();
|
|
3003
|
-
},
|
|
3004
|
-
style: {
|
|
3005
|
-
display: 'flex',
|
|
3006
|
-
position: 'absolute',
|
|
3007
|
-
right: 10,
|
|
3008
|
-
top: this.props.headerH + 10,
|
|
3009
|
-
zIndex: 10,
|
|
3010
|
-
maxHeight: 0
|
|
3011
|
-
}
|
|
3012
|
-
}, settingDialog)] : !ARRAY_3D_MODES.includes(mode) ? [
|
|
3013
|
-
/*#__PURE__*/
|
|
3014
|
-
/**
|
|
3015
|
-
*undo/redo button
|
|
3016
|
-
*/
|
|
3017
|
-
React.createElement("div", {
|
|
3018
|
-
key: 'section1',
|
|
3019
|
-
onKeyDown: function onKeyDown(event) {
|
|
3020
|
-
return event.stopPropagation();
|
|
3021
|
-
},
|
|
3022
|
-
onKeyUp: function onKeyUp(event) {
|
|
3023
|
-
return event.stopPropagation();
|
|
3024
|
-
},
|
|
3025
|
-
style: {
|
|
3026
|
-
display: 'flex',
|
|
3027
|
-
position: 'absolute',
|
|
3028
|
-
right: 10,
|
|
3029
|
-
top: this.props.headerH + 10,
|
|
3030
|
-
zIndex: 10,
|
|
3031
|
-
maxHeight: 0
|
|
3032
|
-
}
|
|
3033
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3034
|
-
style: {
|
|
3035
|
-
textAlign: 'right',
|
|
3036
|
-
display: 'flex'
|
|
3037
|
-
}
|
|
3038
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3039
|
-
style: {
|
|
3040
|
-
display: 'flex',
|
|
3041
|
-
left: 10,
|
|
3042
|
-
zIndex: 1,
|
|
3043
|
-
flexDirection: 'row'
|
|
3044
|
-
}
|
|
3045
|
-
}, /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3046
|
-
style: {
|
|
3047
|
-
padding: '0px 18px',
|
|
3048
|
-
marginLeft: 10,
|
|
3049
|
-
marginRight: 'unset'
|
|
3050
|
-
},
|
|
3051
|
-
onClick: function onClick() {
|
|
3052
|
-
_this4.props.setToolbar('');
|
|
3053
|
-
projectActions.undo();
|
|
3054
|
-
}
|
|
3055
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3056
|
-
src: "/assets/img/svg/toolbar/undo_button.svg",
|
|
3057
|
-
style: {
|
|
3058
|
-
height: 10,
|
|
3059
|
-
width: 14
|
|
3060
|
-
}
|
|
3061
|
-
})), /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3062
|
-
style: {
|
|
3063
|
-
padding: '0px 18px',
|
|
3064
|
-
marginLeft: 10,
|
|
3065
|
-
marginRight: 'unset'
|
|
3066
|
-
},
|
|
3067
|
-
onClick: function onClick() {
|
|
3068
|
-
_this4.props.setToolbar('');
|
|
3069
|
-
projectActions.redo();
|
|
3070
|
-
}
|
|
3071
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3072
|
-
src: "/assets/img/svg/toolbar/redo_button.svg",
|
|
3073
|
-
style: {
|
|
3074
|
-
height: 10,
|
|
3075
|
-
width: 14
|
|
3076
|
-
}
|
|
3077
|
-
}))), /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3078
|
-
onClick: topBtnAction
|
|
3079
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3080
|
-
src: "/assets/img/svg/lefttoolbar/room-shape-custom.svg"
|
|
3081
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
3082
|
-
style: {
|
|
3083
|
-
color: SECONDARY_PURPLE_COLOR,
|
|
3084
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
3085
|
-
textAlign: 'left',
|
|
3086
|
-
fontSize: 16,
|
|
3087
|
-
fontWeight: 600,
|
|
3088
|
-
lineHeight: '18px',
|
|
3089
|
-
paddingLeft: 5
|
|
3090
|
-
}
|
|
3091
|
-
}, "Add Walls")), /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3092
|
-
onClick: saveSVGScreenshotToFile,
|
|
3093
|
-
style: {
|
|
3094
|
-
padding: '0px 17px'
|
|
3095
|
-
}
|
|
3096
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3097
|
-
src: "/assets/img/svg/toolbar/take_picture.svg",
|
|
3098
|
-
style: {
|
|
3099
|
-
height: 14,
|
|
3100
|
-
width: 16
|
|
3101
|
-
}
|
|
3102
|
-
})), !isShowProperty && /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3103
|
-
onClick: function onClick() {
|
|
3104
|
-
return _this4.props.setShowProperty(true);
|
|
3105
|
-
},
|
|
3106
|
-
style: {
|
|
3107
|
-
padding: '0px 17px'
|
|
3108
|
-
}
|
|
3109
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3110
|
-
src: "/assets/img/svg/bottombar/expand.svg",
|
|
3111
|
-
style: {
|
|
3112
|
-
height: 14,
|
|
3113
|
-
width: 16
|
|
3114
|
-
}
|
|
3115
|
-
}))), isShowProperty && tabDialog, settingDialog)] : [/*#__PURE__*/React.createElement("div", {
|
|
3116
|
-
key: 'section1',
|
|
3117
|
-
onKeyDown: function onKeyDown(event) {
|
|
3118
|
-
return event.stopPropagation();
|
|
3119
|
-
},
|
|
3120
|
-
onKeyUp: function onKeyUp(event) {
|
|
3121
|
-
return event.stopPropagation();
|
|
3122
|
-
},
|
|
3123
|
-
style: {
|
|
3124
|
-
display: 'flex',
|
|
3125
|
-
position: 'absolute',
|
|
3126
|
-
right: 10,
|
|
3127
|
-
top: this.props.headerH + 10,
|
|
3128
|
-
zIndex: 10,
|
|
3129
|
-
maxHeight: 0
|
|
3130
|
-
}
|
|
3131
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3132
|
-
style: {
|
|
3133
|
-
display: 'flex',
|
|
3134
|
-
left: 10,
|
|
3135
|
-
zIndex: 1,
|
|
3136
|
-
flexDirection: 'row'
|
|
3137
|
-
}
|
|
3138
|
-
}, /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3139
|
-
style: {
|
|
3140
|
-
padding: '0px 18px',
|
|
3141
|
-
marginLeft: 10,
|
|
3142
|
-
marginRight: 'unset'
|
|
3143
|
-
},
|
|
3144
|
-
onClick: function onClick() {
|
|
3145
|
-
_this4.props.setToolbar('');
|
|
3146
|
-
projectActions.undo();
|
|
3147
|
-
}
|
|
3148
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3149
|
-
src: "/assets/img/svg/toolbar/undo_button.svg",
|
|
3150
|
-
style: {
|
|
3151
|
-
height: 10,
|
|
3152
|
-
width: 14
|
|
3153
|
-
}
|
|
3154
|
-
})), /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3155
|
-
style: {
|
|
3156
|
-
padding: '0px 18px',
|
|
3157
|
-
marginLeft: 10,
|
|
3158
|
-
marginRight: 'unset'
|
|
3159
|
-
},
|
|
3160
|
-
onClick: function onClick() {
|
|
3161
|
-
_this4.props.setToolbar('');
|
|
3162
|
-
projectActions.redo();
|
|
3163
|
-
}
|
|
3164
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3165
|
-
src: "/assets/img/svg/toolbar/redo_button.svg",
|
|
3166
|
-
style: {
|
|
3167
|
-
height: 10,
|
|
3168
|
-
width: 14
|
|
3169
|
-
}
|
|
3170
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
3171
|
-
style: {
|
|
3172
|
-
textAlign: 'right',
|
|
3173
|
-
display: 'flex'
|
|
3174
|
-
}
|
|
3175
|
-
}, /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3176
|
-
onClick: saveScreenshotToFile,
|
|
3177
|
-
style: {
|
|
3178
|
-
padding: '0px 16px'
|
|
3179
|
-
}
|
|
3180
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3181
|
-
src: "/assets/img/svg/toolbar/take_picture.svg"
|
|
3182
|
-
})), !isShowProperty && /*#__PURE__*/React.createElement(S.RightButton, {
|
|
3183
|
-
onClick: function onClick() {
|
|
3184
|
-
return _this4.props.setShowProperty(true);
|
|
3185
|
-
},
|
|
3186
|
-
style: {
|
|
3187
|
-
padding: '0px 17px'
|
|
3188
|
-
}
|
|
3189
|
-
}, /*#__PURE__*/React.createElement(S.RightButtonImage, {
|
|
3190
|
-
src: "/assets/img/svg/bottombar/expand.svg",
|
|
3191
|
-
style: {
|
|
3192
|
-
height: 14,
|
|
3193
|
-
width: 16
|
|
3194
|
-
}
|
|
3195
|
-
}))), isShowProperty && tabDialog, settingDialog)];
|
|
3196
|
-
var temp = [];
|
|
3197
|
-
cabinetCategory.data.forEach(function (type) {
|
|
3198
|
-
(type.type !== 'cabinet_category' || type.name == 'Molding' || type.items.filter(function (item) {
|
|
3199
|
-
var _currentTexture$doorS7, _currentTexture$doorS8;
|
|
3200
|
-
return ((_currentTexture$doorS7 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS8 = currentTexture.doorStyles) === null || _currentTexture$doorS8 === void 0 ? void 0 : _currentTexture$doorS8.cds) !== null && _currentTexture$doorS7 !== void 0 ? _currentTexture$doorS7 : []).filter(function (cd) {
|
|
3201
|
-
return cd.itemID === item.itemID;
|
|
3202
|
-
}).length !== 0;
|
|
3203
|
-
}).length !== 0) && temp.push(/*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3204
|
-
style: {
|
|
3205
|
-
paddingLeft: 50,
|
|
3206
|
-
backgroundColor: subCabinetCategory.name === type.name && TEXT_COLOR_NEUTRAL_5
|
|
3207
|
-
},
|
|
3208
|
-
onClick: function onClick() {
|
|
3209
|
-
return setSubData(type.name, type.items);
|
|
3210
|
-
}
|
|
3211
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3212
|
-
style: {
|
|
3213
|
-
fontWeight: subCabinetCategory.name === type.name && 700
|
|
3214
|
-
}
|
|
3215
|
-
}, type.name)));
|
|
3216
|
-
});
|
|
3217
|
-
var finishingData = [{
|
|
3218
|
-
name: 'Handles',
|
|
3219
|
-
thumbnail: '/assets/img/svg/toolbar/handles.svg',
|
|
3220
|
-
data: this.props.categoryData.data.doorHandle
|
|
3221
|
-
}, {
|
|
3222
|
-
name: 'Countertop',
|
|
3223
|
-
thumbnail: '/assets/img/svg/toolbar/countertop.svg',
|
|
3224
|
-
data: this.props.categoryData.data.counterTop
|
|
3225
|
-
}, {
|
|
3226
|
-
name: 'Backsplash',
|
|
3227
|
-
thumbnail: '/assets/img/svg/toolbar/backsplash.svg',
|
|
3228
|
-
data: this.props.categoryData.data.backsplash
|
|
3229
|
-
}, {
|
|
3230
|
-
name: 'Wall Color',
|
|
3231
|
-
thumbnail: '/assets/img/svg/toolbar/wall_color_icon.svg',
|
|
3232
|
-
data: this.props.categoryData.data.wallColors
|
|
3233
|
-
}, {
|
|
3234
|
-
name: 'Floor Styles',
|
|
3235
|
-
thumbnail: '/assets/img/svg/toolbar/floorstyle.svg',
|
|
3236
|
-
data: this.props.categoryData.data.floorStyles
|
|
3237
|
-
}, {
|
|
3238
|
-
name: 'Lighting',
|
|
3239
|
-
thumbnail: '/assets/img/svg/toolbar/lighting.svg',
|
|
3240
|
-
data: this.props.categoryData.data.lighting
|
|
3241
|
-
}, {
|
|
3242
|
-
name: 'Furnishing',
|
|
3243
|
-
thumbnail: '/assets/img/svg/toolbar/furnishings_icon.svg',
|
|
3244
|
-
data: this.props.categoryData.data.furnishing
|
|
3245
|
-
}];
|
|
3246
|
-
var roomShapeData = [{
|
|
3247
|
-
title: 'Square',
|
|
3248
|
-
url: '/assets/img/svg/lefttoolbar/room-shape-square.svg',
|
|
3249
|
-
data: rectangleData
|
|
3250
|
-
}, {
|
|
3251
|
-
title: 'L-Shaped',
|
|
3252
|
-
url: '/assets/img/svg/lefttoolbar/room-shape-L.svg',
|
|
3253
|
-
data: lShaped
|
|
3254
|
-
}, {
|
|
3255
|
-
title: 'Irregular',
|
|
3256
|
-
url: '/assets/img/svg/lefttoolbar/room-shape-irregular.svg',
|
|
3257
|
-
data: longNarrow
|
|
3258
|
-
}, {
|
|
3259
|
-
title: 'Open',
|
|
3260
|
-
url: '/assets/img/svg/lefttoolbar/room-shape-open.svg',
|
|
3261
|
-
data: oRectangle
|
|
3262
|
-
}, {
|
|
3263
|
-
title: 'Custom',
|
|
3264
|
-
url: '/assets/img/svg/lefttoolbar/room-shape-custom.svg'
|
|
3265
|
-
}];
|
|
3266
|
-
var roomElementsData = [{
|
|
3267
|
-
title: 'Windows',
|
|
3268
|
-
url: '/assets/img/svg/lefttoolbar/window.svg',
|
|
3269
|
-
data: [window_clear, window_cross, window_double_hung, window_vertical]
|
|
3270
|
-
}, {
|
|
3271
|
-
title: 'Doors',
|
|
3272
|
-
url: '/assets/img/svg/lefttoolbar/door.svg',
|
|
3273
|
-
data: [door_interior, door_exterior, door_closet, door_sliding, door_framed, door_frameless]
|
|
3274
|
-
}];
|
|
3275
|
-
var setSubData = function setSubData(name, data) {
|
|
3276
|
-
if (data.find(function (item) {
|
|
3277
|
-
return item.type === 'cabinet';
|
|
3278
|
-
})) _this4.setState({
|
|
3279
|
-
subCabinetCategory: {
|
|
3280
|
-
name: subCabinetCategory.name === name ? '' : name,
|
|
3281
|
-
data: subCabinetCategory.data === data ? [] : data
|
|
3282
|
-
}
|
|
3283
|
-
});else _this4.setState({
|
|
3284
|
-
cabinetCategory: {
|
|
3285
|
-
name: cabinetCategory.name === name ? '' : name,
|
|
3286
|
-
data: cabinetCategory.data === data ? [] : data
|
|
3287
|
-
},
|
|
3288
|
-
subCabinetCategory: {
|
|
3289
|
-
name: '',
|
|
3290
|
-
data: []
|
|
3291
|
-
}
|
|
3292
|
-
});
|
|
3293
|
-
};
|
|
3294
|
-
var setRoomElement = function setRoomElement() {
|
|
3295
|
-
_this4.context.projectActions.setIsCabinetDrawing(true);
|
|
3296
|
-
if (selectedRoomElement === 'Doors') {}
|
|
3297
|
-
};
|
|
3298
|
-
var testData = [];
|
|
3299
|
-
if (process.env.MODE === 'staging') {
|
|
3300
|
-
var _loop = function _loop(testJson) {
|
|
3301
|
-
testData.push(/*#__PURE__*/React.createElement(S.testJsonItemWrapper, {
|
|
3302
|
-
onClick: function onClick() {
|
|
3303
|
-
if (window.confirm("Do you really load ".concat(testJson, ".json for KC test?"))) {
|
|
3304
|
-
_this4.context.projectActions.loadProject(JSON.parse(testJsonData[testJson].project_data), _this4.props.categoryData);
|
|
3305
|
-
_this4.setState({
|
|
3306
|
-
addingJson: false
|
|
3307
|
-
});
|
|
3308
|
-
_this4.props.setToolbar('');
|
|
3309
|
-
}
|
|
3310
|
-
}
|
|
3311
|
-
}, testJson));
|
|
3312
|
-
};
|
|
3313
|
-
for (var testJson in testJsonData) {
|
|
3314
|
-
_loop(testJson);
|
|
3315
|
-
}
|
|
3316
|
-
}
|
|
3317
|
-
var isShowMoldingMenuItem = function isShowMoldingMenuItem(subCabinetCategory, item) {
|
|
3318
|
-
var _currentTexture$doorS9, _currentTexture$doorS0;
|
|
3319
|
-
if (subCabinetCategory.name === TOE_KICK_MOLDING) {
|
|
3320
|
-
var _this4$state$elements, _this4$state$elements2;
|
|
3321
|
-
var items = (_this4$state$elements = (_this4$state$elements2 = _this4.state.elements.items) === null || _this4$state$elements2 === void 0 ? void 0 : _this4$state$elements2.toArray()) !== null && _this4$state$elements !== void 0 ? _this4$state$elements : [];
|
|
3322
|
-
for (var _i2 = 0; _i2 < items.length; _i2++) {
|
|
3323
|
-
var _items$_i2$toJS$doorS, _items$_i;
|
|
3324
|
-
if (((_items$_i2$toJS$doorS = (_items$_i = items[_i2]) === null || _items$_i === void 0 || (_items$_i = _items$_i.toJS()) === null || _items$_i === void 0 || (_items$_i = _items$_i.doorStyle) === null || _items$_i === void 0 || (_items$_i = _items$_i.doorStyles) === null || _items$_i === void 0 ? void 0 : _items$_i.cds) !== null && _items$_i2$toJS$doorS !== void 0 ? _items$_i2$toJS$doorS : []).filter(function (cd) {
|
|
3325
|
-
return cd.itemID === item.itemID;
|
|
3326
|
-
}).length > 0) return true;
|
|
3327
|
-
}
|
|
3328
|
-
}
|
|
3329
|
-
if (((_currentTexture$doorS9 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS0 = currentTexture.doorStyles) === null || _currentTexture$doorS0 === void 0 ? void 0 : _currentTexture$doorS0.cds) !== null && _currentTexture$doorS9 !== void 0 ? _currentTexture$doorS9 : []).filter(function (cd) {
|
|
3330
|
-
return cd.itemID === item.itemID;
|
|
3331
|
-
}).length > 0) return true;
|
|
3332
|
-
return false;
|
|
3333
|
-
};
|
|
3334
|
-
var installation = getInstallationSuffix(INSTALLATION_SUFFIX_TYPE.NAME, currentTexture);
|
|
3335
|
-
var categories = [{
|
|
3336
|
-
toolbar: 'room-shape',
|
|
3337
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
3338
|
-
style: {
|
|
3339
|
-
display: 'flex'
|
|
3340
|
-
}
|
|
3341
|
-
}, /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
3342
|
-
style: {
|
|
3343
|
-
alignItems: 'flex-start'
|
|
3344
|
-
}
|
|
3345
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryTitle, null, "Change room shape"), /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, roomShapeData.map(function (item, key) {
|
|
3346
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3347
|
-
style: {
|
|
3348
|
-
marginRight: 0
|
|
3349
|
-
},
|
|
3350
|
-
onClick: function onClick(event) {
|
|
3351
|
-
if (item.title === 'Custom') {
|
|
3352
|
-
topBtnAction();
|
|
3353
|
-
_this4.props.setToolbar('');
|
|
3354
|
-
} else _this4.loadProjectFromData(item, event);
|
|
3355
|
-
},
|
|
3356
|
-
key: key
|
|
3357
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
3358
|
-
style: {
|
|
3359
|
-
height: 25,
|
|
3360
|
-
width: 25
|
|
3361
|
-
},
|
|
3362
|
-
maskImage: item.url
|
|
3363
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, null, item.title));
|
|
3364
|
-
})), /*#__PURE__*/React.createElement(S.SubCategoryTitle, {
|
|
3365
|
-
style: {
|
|
3366
|
-
marginTop: 15
|
|
3367
|
-
}
|
|
3368
|
-
}, "Add room elements"), /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, {
|
|
3369
|
-
style: {
|
|
3370
|
-
marginTop: 10
|
|
3371
|
-
}
|
|
3372
|
-
}, roomElementsData.map(function (item, key) {
|
|
3373
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3374
|
-
style: {
|
|
3375
|
-
marginRight: 0
|
|
3376
|
-
},
|
|
3377
|
-
onClick: function onClick() {
|
|
3378
|
-
return _this4.setState({
|
|
3379
|
-
selectedRoomElement: selectedRoomElement === item.title ? '' : item.title
|
|
3380
|
-
});
|
|
3381
|
-
},
|
|
3382
|
-
key: key
|
|
3383
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
3384
|
-
style: {
|
|
3385
|
-
height: 25,
|
|
3386
|
-
width: 25
|
|
3387
|
-
},
|
|
3388
|
-
maskImage: item.url
|
|
3389
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, null, item.title));
|
|
3390
|
-
})), process.env.MODE === 'staging' && !!Object.keys(testJsonData).length && /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, {
|
|
3391
|
-
onClick: function onClick() {
|
|
3392
|
-
return _this4.setState({
|
|
3393
|
-
addingJson: !_this4.state.addingJson,
|
|
3394
|
-
selectedRoomElement: ''
|
|
3395
|
-
});
|
|
3396
|
-
}
|
|
3397
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItem, null, /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3398
|
-
style: {
|
|
3399
|
-
marginLeft: 15,
|
|
3400
|
-
color: TEXT_COLOR_NEUTRAL_0
|
|
3401
|
-
}
|
|
3402
|
-
}, "Test JSONs")))), selectedRoomElement && /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
3403
|
-
style: {
|
|
3404
|
-
alignItems: 'flex-start',
|
|
3405
|
-
marginLeft: 20,
|
|
3406
|
-
minWidth: 250
|
|
3407
|
-
}
|
|
3408
|
-
}, roomElementsData.find(function (item) {
|
|
3409
|
-
return item.title === selectedRoomElement;
|
|
3410
|
-
}).data.map(function (thing, key) {
|
|
3411
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, {
|
|
3412
|
-
onClick: function onClick() {
|
|
3413
|
-
return setRoomElement({
|
|
3414
|
-
type: selectedRoomElement,
|
|
3415
|
-
item: thing
|
|
3416
|
-
});
|
|
3417
|
-
},
|
|
3418
|
-
key: key
|
|
3419
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3420
|
-
style: {
|
|
3421
|
-
minWidth: 250
|
|
3422
|
-
},
|
|
3423
|
-
onClick: function onClick() {
|
|
3424
|
-
return ARRAY_3D_MODES.includes(mode) ? _this4.props.holesActions.selectToolDrawingHole3D(thing["default"].name) : _this4.props.holesActions.selectToolDrawingHole(thing["default"].name);
|
|
3425
|
-
}
|
|
3426
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
3427
|
-
style: {
|
|
3428
|
-
height: 50,
|
|
3429
|
-
width: 50
|
|
3430
|
-
},
|
|
3431
|
-
maskImage: thing["default"].info.image
|
|
3432
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3433
|
-
style: {
|
|
3434
|
-
marginLeft: 15
|
|
3435
|
-
}
|
|
3436
|
-
}, thing["default"].info.title)));
|
|
3437
|
-
})), process.env.MODE === 'staging' && !!Object.keys(testJsonData).length && this.state.addingJson && /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
3438
|
-
id: "test_json_datas",
|
|
3439
|
-
style: {
|
|
3440
|
-
alignItems: 'flex-start',
|
|
3441
|
-
marginLeft: 20,
|
|
3442
|
-
minWidth: 250
|
|
3443
|
-
}
|
|
3444
|
-
}, testData))
|
|
3445
|
-
}, {
|
|
3446
|
-
toolbar: 'door-style',
|
|
3447
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
3448
|
-
style: {
|
|
3449
|
-
display: 'flex'
|
|
3450
|
-
}
|
|
3451
|
-
}, /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
3452
|
-
style: {
|
|
3453
|
-
justifyContent: cabinetStyleChanging ? 'unset' : 'center'
|
|
3454
|
-
}
|
|
3455
|
-
}, cabinetStyleChanging ? /*#__PURE__*/React.createElement("div", {
|
|
3456
|
-
style: {
|
|
3457
|
-
width: '100%',
|
|
3458
|
-
display: 'flex',
|
|
3459
|
-
flexDirection: 'column',
|
|
3460
|
-
height: '100%'
|
|
3461
|
-
}
|
|
3462
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryTitle, null, "Choose Door Style"), /*#__PURE__*/React.createElement("div", {
|
|
3463
|
-
style: {
|
|
3464
|
-
marginTop: 15,
|
|
3465
|
-
width: '90%',
|
|
3466
|
-
position: 'relative',
|
|
3467
|
-
display: 'flex',
|
|
3468
|
-
alignItems: 'center'
|
|
3469
|
-
}
|
|
3470
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
3471
|
-
style: {
|
|
3472
|
-
height: 50,
|
|
3473
|
-
width: '100%',
|
|
3474
|
-
paddingLeft: 50,
|
|
3475
|
-
border: '1px solid',
|
|
3476
|
-
borderRadius: 7,
|
|
3477
|
-
outline: 0
|
|
3478
|
-
},
|
|
3479
|
-
placeholder: "Search Doors",
|
|
3480
|
-
value: searchName,
|
|
3481
|
-
onChange: function onChange(e) {
|
|
3482
|
-
_this4.setState({
|
|
3483
|
-
searchName: e.target.value
|
|
3484
|
-
});
|
|
3485
|
-
}
|
|
3486
|
-
}), /*#__PURE__*/React.createElement("img", {
|
|
3487
|
-
src: "/assets/img/svg/lefttoolbar/search.svg",
|
|
3488
|
-
style: {
|
|
3489
|
-
position: 'absolute',
|
|
3490
|
-
left: 0,
|
|
3491
|
-
width: 45,
|
|
3492
|
-
height: 45,
|
|
3493
|
-
padding: 10
|
|
3494
|
-
}
|
|
3495
|
-
}), /*#__PURE__*/React.createElement("img", {
|
|
3496
|
-
src: this.state.toggleFilters ? '/assets/img/svg/filtersActive.svg' : '/assets/img/svg/toggleFilters.svg',
|
|
3497
|
-
style: {
|
|
3498
|
-
position: 'absolute',
|
|
3499
|
-
right: '10px',
|
|
3500
|
-
top: '50%',
|
|
3501
|
-
transform: 'translateY(-50%)',
|
|
3502
|
-
cursor: 'pointer',
|
|
3503
|
-
width: '35px'
|
|
3504
|
-
},
|
|
3505
|
-
onClick: function onClick() {
|
|
3506
|
-
if (_this4.state.toggleFilters) {
|
|
3507
|
-
_this4.setState({
|
|
3508
|
-
resetFilters: true
|
|
3509
|
-
});
|
|
3510
|
-
}
|
|
3511
|
-
_this4.setState({
|
|
3512
|
-
toggleFilters: !_this4.state.toggleFilters
|
|
3513
|
-
});
|
|
3514
|
-
}
|
|
3515
|
-
})), this.state.toggleFilters && /*#__PURE__*/React.createElement("div", {
|
|
3516
|
-
style: {
|
|
3517
|
-
marginTop: '2rem',
|
|
3518
|
-
width: '90%',
|
|
3519
|
-
position: 'relative',
|
|
3520
|
-
display: 'flex',
|
|
3521
|
-
alignItems: 'center',
|
|
3522
|
-
flexDirection: 'column',
|
|
3523
|
-
gap: '1rem'
|
|
3524
|
-
}
|
|
3525
|
-
}, /*#__PURE__*/React.createElement(DoorStyleMenu, {
|
|
3526
|
-
iconStyle: {
|
|
3527
|
-
marginLeft: 'auto'
|
|
3528
|
-
},
|
|
3529
|
-
placeholder: "Instalation",
|
|
3530
|
-
selected: this.state.cabinetStyle,
|
|
3531
|
-
onChange: function onChange(installationType) {
|
|
3532
|
-
_this4.setState({
|
|
3533
|
-
install: installationType,
|
|
3534
|
-
cabinetStyle: _objectSpread(_objectSpread({}, cabinetStyle), {}, {
|
|
3535
|
-
name: installationType
|
|
3536
|
-
})
|
|
3537
|
-
});
|
|
3538
|
-
},
|
|
3539
|
-
data: this.state.DoorStyles,
|
|
3540
|
-
getValue: function getValue(item) {
|
|
3541
|
-
return item.name;
|
|
3542
|
-
}
|
|
3543
|
-
}), /*#__PURE__*/React.createElement(DoorStyleMenu, {
|
|
3544
|
-
iconStyle: {
|
|
3545
|
-
border: '1px solid rgba(193, 202, 228, 1)',
|
|
3546
|
-
borderRadius: '24px',
|
|
3547
|
-
marginLeft: 'auto'
|
|
3548
|
-
},
|
|
3549
|
-
placeholder: "Color",
|
|
3550
|
-
selected: cabinetColor,
|
|
3551
|
-
onChange: function onChange(cabinetColor) {
|
|
3552
|
-
_this4.setState({
|
|
3553
|
-
cabinetColor: _objectSpread(_objectSpread({}, _this4.state.cabinetColor), {}, {
|
|
3554
|
-
name: cabinetColor
|
|
3555
|
-
})
|
|
3556
|
-
});
|
|
3557
|
-
},
|
|
3558
|
-
data: cabinetColor.data,
|
|
3559
|
-
getValue: function getValue(item) {
|
|
3560
|
-
return item.name;
|
|
3561
|
-
}
|
|
3562
|
-
})), /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, cabinetStyle.data.map(function (type, key) {
|
|
3563
|
-
var removedFilter = type.name === subCabinetStyle.name;
|
|
3564
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3565
|
-
style: {
|
|
3566
|
-
backgroundColor: removedFilter && TEXT_COLOR_NEUTRAL_5
|
|
3567
|
-
},
|
|
3568
|
-
onClick: function onClick() {
|
|
3569
|
-
_this4.setState({
|
|
3570
|
-
subCabinetStyle: _objectSpread(_objectSpread({}, subCabinetStyle), {}, {
|
|
3571
|
-
name: removedFilter ? '' : type.name
|
|
3572
|
-
})
|
|
3573
|
-
});
|
|
3574
|
-
},
|
|
3575
|
-
key: key
|
|
3576
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
3577
|
-
maskImage: type.thumbnail
|
|
3578
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3579
|
-
style: {
|
|
3580
|
-
fontWeight: subCabinetStyle.name === type.name && 700
|
|
3581
|
-
}
|
|
3582
|
-
}, type.name));
|
|
3583
|
-
}))) : /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, {
|
|
3584
|
-
style: {
|
|
3585
|
-
maxWidth: 250,
|
|
3586
|
-
rowGap: 30,
|
|
3587
|
-
margin: 0
|
|
3588
|
-
}
|
|
3589
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3590
|
-
style: {
|
|
3591
|
-
display: 'flex',
|
|
3592
|
-
flexDirection: 'column',
|
|
3593
|
-
rowGap: 30
|
|
3594
|
-
}
|
|
3595
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryTitle, {
|
|
3596
|
-
style: {
|
|
3597
|
-
fontSize: 26,
|
|
3598
|
-
fontWeight: 700,
|
|
3599
|
-
padding: 'unset',
|
|
3600
|
-
lineHeight: '36px',
|
|
3601
|
-
textAlign: 'center',
|
|
3602
|
-
color: '#000F33'
|
|
3603
|
-
}
|
|
3604
|
-
}, currentTexture && currentTexture.name || currentTexture.toJS().name), /*#__PURE__*/React.createElement("img", {
|
|
3605
|
-
src: currentTexture && (currentTexture.thumbnail || currentTexture.toJS().thumbnail),
|
|
3606
|
-
alt: "door",
|
|
3607
|
-
width: 150,
|
|
3608
|
-
style: {
|
|
3609
|
-
margin: 'auto'
|
|
3610
|
-
}
|
|
3611
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
3612
|
-
style: {
|
|
3613
|
-
display: 'block'
|
|
3614
|
-
}
|
|
3615
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
3616
|
-
style: {
|
|
3617
|
-
fontFamily: 'Open Sans',
|
|
3618
|
-
fontSize: 13,
|
|
3619
|
-
fontWeight: 600,
|
|
3620
|
-
padding: '3px 10px',
|
|
3621
|
-
textAlign: 'center',
|
|
3622
|
-
lineHeight: '13px',
|
|
3623
|
-
display: 'flex',
|
|
3624
|
-
justifyContent: 'center',
|
|
3625
|
-
alignItems: 'center',
|
|
3626
|
-
marginBottom: 10,
|
|
3627
|
-
background: '#FAFAFF',
|
|
3628
|
-
width: 'fit-content',
|
|
3629
|
-
margin: '0 auto 2px'
|
|
3630
|
-
}
|
|
3631
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
3632
|
-
style: {
|
|
3633
|
-
color: '#565F77'
|
|
3634
|
-
}
|
|
3635
|
-
}, "Installation:"), /*#__PURE__*/React.createElement("div", {
|
|
3636
|
-
style: {
|
|
3637
|
-
display: 'flex',
|
|
3638
|
-
alignItems: 'center'
|
|
3639
|
-
}
|
|
3640
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3641
|
-
src: this.state.DoorStyles && currentTexture && ((_this$state$DoorStyle = this.state.DoorStyles.filter(function (item) {
|
|
3642
|
-
return item.name === installation;
|
|
3643
|
-
})[0]) === null || _this$state$DoorStyle === void 0 ? void 0 : _this$state$DoorStyle.thumbnail),
|
|
3644
|
-
style: {
|
|
3645
|
-
height: 14,
|
|
3646
|
-
margin: 3
|
|
3647
|
-
}
|
|
3648
|
-
}), /*#__PURE__*/React.createElement("b", {
|
|
3649
|
-
style: {
|
|
3650
|
-
color: SECONDARY_PURPLE_COLOR
|
|
3651
|
-
}
|
|
3652
|
-
}, getInstallationSuffix(INSTALLATION_SUFFIX_TYPE.NAME, currentTexture)))), /*#__PURE__*/React.createElement("div", {
|
|
3653
|
-
style: {
|
|
3654
|
-
fontFamily: 'Open Sans',
|
|
3655
|
-
fontSize: 13,
|
|
3656
|
-
fontWeight: 600,
|
|
3657
|
-
padding: '3px 10px',
|
|
3658
|
-
textAlign: 'center',
|
|
3659
|
-
lineHeight: '13px',
|
|
3660
|
-
display: 'flex',
|
|
3661
|
-
justifyContent: 'center',
|
|
3662
|
-
alignItems: 'center',
|
|
3663
|
-
marginBottom: 10,
|
|
3664
|
-
background: '#FAFAFF',
|
|
3665
|
-
width: 'fit-content',
|
|
3666
|
-
margin: '0 auto 0px'
|
|
3667
|
-
}
|
|
3668
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
3669
|
-
style: {
|
|
3670
|
-
color: '#565F77'
|
|
3671
|
-
}
|
|
3672
|
-
}, "Door:"), /*#__PURE__*/React.createElement("div", {
|
|
3673
|
-
style: {
|
|
3674
|
-
display: 'flex',
|
|
3675
|
-
alignItems: 'center'
|
|
3676
|
-
}
|
|
3677
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3678
|
-
src: this.state.DoorStyles && currentTexture && ((_this$state$DoorStyle2 = this.state.DoorStyles.filter(function (item) {
|
|
3679
|
-
return item.name === installation;
|
|
3680
|
-
})[0]) === null || _this$state$DoorStyle2 === void 0 || (_this$state$DoorStyle2 = _this$state$DoorStyle2.items.filter(function (i) {
|
|
3681
|
-
return i.name === (currentTexture.door_style_name || currentTexture.toJS().door_style_name);
|
|
3682
|
-
})[0]) === null || _this$state$DoorStyle2 === void 0 ? void 0 : _this$state$DoorStyle2.thumbnail),
|
|
3683
|
-
style: {
|
|
3684
|
-
height: 14,
|
|
3685
|
-
margin: 3
|
|
3686
|
-
}
|
|
3687
|
-
}), /*#__PURE__*/React.createElement("b", {
|
|
3688
|
-
style: {
|
|
3689
|
-
color: SECONDARY_PURPLE_COLOR
|
|
3690
|
-
}
|
|
3691
|
-
}, currentTexture && (currentTexture.name || currentTexture.toJS().name)))))), /*#__PURE__*/React.createElement(S.SubCategoryTitle, {
|
|
3692
|
-
style: {
|
|
3693
|
-
fontSize: 13,
|
|
3694
|
-
fontWeight: 400,
|
|
3695
|
-
padding: 'unset',
|
|
3696
|
-
textAlign: 'center',
|
|
3697
|
-
lineHeight: '18px',
|
|
3698
|
-
color: '#000F33'
|
|
3699
|
-
}
|
|
3700
|
-
}, "Door selection for all cabinets. To browse the entire collection of doors see below."), /*#__PURE__*/React.createElement(S.Button, {
|
|
3701
|
-
style: {
|
|
3702
|
-
width: '95%',
|
|
3703
|
-
border: '1px solid',
|
|
3704
|
-
fontSize: 14
|
|
3705
|
-
},
|
|
3706
|
-
onClick: function onClick() {
|
|
3707
|
-
return _this4.setState({
|
|
3708
|
-
cabinetStyleChanging: true
|
|
3709
|
-
});
|
|
3710
|
-
}
|
|
3711
|
-
}, "Change Door"))), cabinetStyleChanging && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.DoorStyleSubToolBarWrapper, {
|
|
3712
|
-
style: {
|
|
3713
|
-
width: viewMoreDoorstyle ? 765 : 500
|
|
3714
|
-
}
|
|
3715
|
-
}, !subCabinetStyle.data.length && /*#__PURE__*/React.createElement("div", {
|
|
3716
|
-
style: {
|
|
3717
|
-
display: 'flex',
|
|
3718
|
-
flexDirection: 'column',
|
|
3719
|
-
gap: '1rem',
|
|
3720
|
-
margin: 'auto',
|
|
3721
|
-
marginTop: '50%',
|
|
3722
|
-
justifyContent: 'center',
|
|
3723
|
-
alignItems: 'center'
|
|
3724
|
-
}
|
|
3725
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
3726
|
-
style: {
|
|
3727
|
-
color: 'lightgray'
|
|
3728
|
-
}
|
|
3729
|
-
}, "No results found. Try changing / resetting the filters."), /*#__PURE__*/React.createElement("span", {
|
|
3730
|
-
style: {
|
|
3731
|
-
color: '#4C12A1',
|
|
3732
|
-
cursor: 'pointer'
|
|
3733
|
-
},
|
|
3734
|
-
onClick: function onClick() {
|
|
3735
|
-
return _this4.setState({
|
|
3736
|
-
resetFilters: true
|
|
3737
|
-
});
|
|
3738
|
-
}
|
|
3739
|
-
}, "Reset Filters")), this.state.currentTexture && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.DoorstyleCategoryItem, {
|
|
3740
|
-
style: {
|
|
3741
|
-
position: 'fixed',
|
|
3742
|
-
zIndex: 1,
|
|
3743
|
-
backgroundColor: 'white'
|
|
3744
|
-
}
|
|
3745
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3746
|
-
style: {
|
|
3747
|
-
width: viewMoreDoorstyle ? 150 : 60,
|
|
3748
|
-
height: viewMoreDoorstyle ? 300 : 120,
|
|
3749
|
-
padding: 5
|
|
3750
|
-
},
|
|
3751
|
-
src: this.state.currentTexture.thumbnail
|
|
3752
|
-
}), /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
3753
|
-
style: {
|
|
3754
|
-
width: viewMoreDoorstyle ? 150 : 60,
|
|
3755
|
-
height: viewMoreDoorstyle ? 300 : 120,
|
|
3756
|
-
padding: viewMoreDoorstyle ? 57 : 12
|
|
3757
|
-
},
|
|
3758
|
-
src: "/assets/img/svg/wizardstep/check-active.svg"
|
|
3759
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3760
|
-
style: {
|
|
3761
|
-
width: 120,
|
|
3762
|
-
marginLeft: 0,
|
|
3763
|
-
marginTop: 15,
|
|
3764
|
-
fontWeight: 700
|
|
3765
|
-
}
|
|
3766
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, this.state.currentTexture.name, /*#__PURE__*/React.createElement(Tooltip, {
|
|
3767
|
-
title: getInstallationSuffix(INSTALLATION_SUFFIX_TYPE.NAME, this.state.currentTexture)
|
|
3768
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3769
|
-
style: {
|
|
3770
|
-
fontWeight: 'normal',
|
|
3771
|
-
marginLeft: '0.5rem'
|
|
3772
|
-
},
|
|
3773
|
-
height: "18",
|
|
3774
|
-
src: (_this$state$DoorStyle3 = this.state.DoorStyles.find(function (doorStyle) {
|
|
3775
|
-
var _getInstallationSuffi;
|
|
3776
|
-
return doorStyle.name.toLowerCase() === ((_getInstallationSuffi = getInstallationSuffix(INSTALLATION_SUFFIX_TYPE.NAME, _this4.state.currentTexture)) === null || _getInstallationSuffi === void 0 ? void 0 : _getInstallationSuffi.toLowerCase());
|
|
3777
|
-
})) === null || _this$state$DoorStyle3 === void 0 ? void 0 : _this$state$DoorStyle3.thumbnail,
|
|
3778
|
-
alt: ""
|
|
3779
|
-
}))))), /*#__PURE__*/React.createElement(S.DoorstyleCategoryItem, null, /*#__PURE__*/React.createElement("div", {
|
|
3780
|
-
style: {
|
|
3781
|
-
width: viewMoreDoorstyle ? 150 : 60,
|
|
3782
|
-
height: viewMoreDoorstyle ? 300 : 120,
|
|
3783
|
-
padding: 5
|
|
3784
|
-
}
|
|
3785
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
3786
|
-
style: {
|
|
3787
|
-
width: 120
|
|
3788
|
-
}
|
|
3789
|
-
}))), subCabinetStyle.data.filter(function (item) {
|
|
3790
|
-
return !(item.name === _this4.state.currentTexture.name && isEqualInstallationType(item, _this4.state.currentTexture));
|
|
3791
|
-
}).map(function (item, key) {
|
|
3792
|
-
var installation = _this4.state.DoorStyles.find(function (doorStyle) {
|
|
3793
|
-
var _doorStyle$name, _getInstallationSuffi2;
|
|
3794
|
-
return ((_doorStyle$name = doorStyle.name) === null || _doorStyle$name === void 0 ? void 0 : _doorStyle$name.toLowerCase()) === ((_getInstallationSuffi2 = getInstallationSuffix(INSTALLATION_SUFFIX_TYPE.NAME, item)) === null || _getInstallationSuffi2 === void 0 ? void 0 : _getInstallationSuffi2.toLowerCase());
|
|
3795
|
-
});
|
|
3796
|
-
var installationThumbnail = installation === null || installation === void 0 ? void 0 : installation.thumbnail;
|
|
3797
|
-
return /*#__PURE__*/React.createElement(S.DoorstyleCategoryItem, {
|
|
3798
|
-
onClick: function onClick() {
|
|
3799
|
-
_this4.setState({
|
|
3800
|
-
cabinetStyleChanging: false,
|
|
3801
|
-
cabinetStyle: _objectSpread(_objectSpread({}, cabinetStyle), {}, {
|
|
3802
|
-
name: ''
|
|
3803
|
-
}),
|
|
3804
|
-
subCabinetStyle: _objectSpread(_objectSpread({}, subCabinetStyle), {}, {
|
|
3805
|
-
name: ''
|
|
3806
|
-
}),
|
|
3807
|
-
cabinetColor: _objectSpread(_objectSpread({}, cabinetColor), {}, {
|
|
3808
|
-
name: ''
|
|
3809
|
-
}),
|
|
3810
|
-
searchName: ''
|
|
3811
|
-
});
|
|
3812
|
-
_this4.getStyle(item);
|
|
3813
|
-
},
|
|
3814
|
-
key: key
|
|
3815
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3816
|
-
style: {
|
|
3817
|
-
width: viewMoreDoorstyle ? 150 : 60,
|
|
3818
|
-
height: viewMoreDoorstyle ? 300 : 120,
|
|
3819
|
-
padding: 5
|
|
3820
|
-
},
|
|
3821
|
-
src: item.thumbnail
|
|
3822
|
-
}), /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
3823
|
-
style: {
|
|
3824
|
-
width: viewMoreDoorstyle ? 150 : 60,
|
|
3825
|
-
height: viewMoreDoorstyle ? 300 : 120,
|
|
3826
|
-
padding: viewMoreDoorstyle ? 57 : 12
|
|
3827
|
-
},
|
|
3828
|
-
id: "check",
|
|
3829
|
-
src: "/assets/img/svg/wizardstep/check-normal.svg"
|
|
3830
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3831
|
-
style: {
|
|
3832
|
-
width: 120,
|
|
3833
|
-
marginLeft: 0,
|
|
3834
|
-
marginTop: 15,
|
|
3835
|
-
fontWeight: 'normal'
|
|
3836
|
-
}
|
|
3837
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, item.name, /*#__PURE__*/React.createElement(Tooltip, {
|
|
3838
|
-
title: installation === null || installation === void 0 ? void 0 : installation.name
|
|
3839
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3840
|
-
style: {
|
|
3841
|
-
fontWeight: 'normal',
|
|
3842
|
-
marginLeft: '0.5rem'
|
|
3843
|
-
},
|
|
3844
|
-
height: "18",
|
|
3845
|
-
src: installationThumbnail,
|
|
3846
|
-
alt: ""
|
|
3847
|
-
})))));
|
|
3848
|
-
})), subCabinetStyle.data.length > 0 && /*#__PURE__*/React.createElement(S.Button, {
|
|
3849
|
-
style: {
|
|
3850
|
-
padding: 10,
|
|
3851
|
-
borderRadius: '50%',
|
|
3852
|
-
border: "3px solid ".concat(BG_COLOR_1),
|
|
3853
|
-
marginTop: 'unset',
|
|
3854
|
-
marginLeft: 10,
|
|
3855
|
-
height: 'max-content'
|
|
3856
|
-
}
|
|
3857
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3858
|
-
src: "\\assets\\img\\svg\\lefttoolbar\\view_more.svg",
|
|
3859
|
-
onClick: function onClick() {
|
|
3860
|
-
return _this4.setState({
|
|
3861
|
-
viewMoreDoorstyle: !viewMoreDoorstyle
|
|
3862
|
-
});
|
|
3863
|
-
},
|
|
3864
|
-
style: {
|
|
3865
|
-
height: 18,
|
|
3866
|
-
transform: "rotate(".concat(viewMoreDoorstyle ? -90 : 90, "deg)")
|
|
3867
|
-
}
|
|
3868
|
-
}))))
|
|
3869
|
-
}, {
|
|
3870
|
-
toolbar: 'cabinet',
|
|
3871
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
3872
|
-
style: {
|
|
3873
|
-
display: 'flex'
|
|
3874
|
-
}
|
|
3875
|
-
}, /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
3876
|
-
style: {
|
|
3877
|
-
alignItems: 'flex-start'
|
|
3878
|
-
}
|
|
3879
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryTitle, null, "Add Cabinets"), /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, this.props.categoryData.data.cabinets.map(function (cabinet, key) {
|
|
3880
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
3881
|
-
style: {
|
|
3882
|
-
display: 'flex',
|
|
3883
|
-
flexDirection: 'column'
|
|
3884
|
-
},
|
|
3885
|
-
key: key
|
|
3886
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3887
|
-
onClick: function onClick() {
|
|
3888
|
-
return setSubData(cabinet.name, cabinet.items);
|
|
3889
|
-
},
|
|
3890
|
-
style: {
|
|
3891
|
-
backgroundColor: cabinetCategory.name === cabinet.name && TEXT_COLOR_NEUTRAL_5
|
|
3892
|
-
}
|
|
3893
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
3894
|
-
maskImage: cabinet.thumbnail
|
|
3895
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3896
|
-
style: {
|
|
3897
|
-
fontWeight: cabinetCategory.name === cabinet.name && 700
|
|
3898
|
-
}
|
|
3899
|
-
}, cabinet.name)), cabinetCategory.name === cabinet.name && temp);
|
|
3900
|
-
}))), subCabinetCategory.name && /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
3901
|
-
style: {
|
|
3902
|
-
alignItems: 'flex-start',
|
|
3903
|
-
marginLeft: 20,
|
|
3904
|
-
minWidth: 250
|
|
3905
|
-
}
|
|
3906
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, subCabinetCategory.data.filter(function (cabinet) {
|
|
3907
|
-
var _this4$props$configDa;
|
|
3908
|
-
var cabinetObject = buildCurrentCabinetObject(cabinet, currentTexture);
|
|
3909
|
-
var internalSKU = makeSKUForMagento(cabinetObject, _this4.props.catalog);
|
|
3910
|
-
if (!((_this4$props$configDa = _this4.props.configData) !== null && _this4$props$configDa !== void 0 && _this4$props$configDa.productBlacklist)) {
|
|
3911
|
-
return true;
|
|
3912
|
-
}
|
|
3913
|
-
return !_this4.props.configData.productBlacklist.includes(internalSKU);
|
|
3914
|
-
}).map(function (item, key) {
|
|
3915
|
-
var _currentTexture$doorS1, _currentTexture$doorS10, _currentTexture$doorS11, _currentTexture$doorS12, _currentTexture$doorS13, _currentTexture$doorS14, _currentTexture$doorS15, _currentTexture$doorS16, _currentTexture$doorS17, _currentTexture$doorS18;
|
|
3916
|
-
var blMolding = item.category === ITEM_TYPE.MOLDING;
|
|
3917
|
-
return blMolding ? /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3918
|
-
id: item.id,
|
|
3919
|
-
style: {
|
|
3920
|
-
display: !isShowMoldingMenuItem(subCabinetCategory, item) && 'none',
|
|
3921
|
-
minWidth: 250,
|
|
3922
|
-
opacity: subCabinetCategory.name === TOE_KICK_MOLDING ? 0.5 : 1
|
|
3923
|
-
},
|
|
3924
|
-
onClick: function onClick() {
|
|
3925
|
-
if (subCabinetCategory.name !== TOE_KICK_MOLDING) {
|
|
3926
|
-
_this4.setFinishing(item);
|
|
3927
|
-
}
|
|
3928
|
-
},
|
|
3929
|
-
key: key
|
|
3930
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3931
|
-
id: "molding&".concat(item.id),
|
|
3932
|
-
style: {
|
|
3933
|
-
height: 70,
|
|
3934
|
-
width: 70,
|
|
3935
|
-
padding: 5
|
|
3936
|
-
},
|
|
3937
|
-
src: item.thumbnail
|
|
3938
|
-
}), /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
3939
|
-
id: "check",
|
|
3940
|
-
src: "/assets/img/svg/wizardstep/check-normal.svg"
|
|
3941
|
-
}), (item.selected || subCabinetCategory.name === TOE_KICK_MOLDING) && /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
3942
|
-
src: "/assets/img/svg/wizardstep/check-active.svg"
|
|
3943
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3944
|
-
style: {
|
|
3945
|
-
fontWeight: item.selected && 700
|
|
3946
|
-
}
|
|
3947
|
-
}, item.name)) : /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
3948
|
-
style: {
|
|
3949
|
-
display: ((_currentTexture$doorS1 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS10 = currentTexture.doorStyles) === null || _currentTexture$doorS10 === void 0 ? void 0 : _currentTexture$doorS10.cds) !== null && _currentTexture$doorS1 !== void 0 ? _currentTexture$doorS1 : []).filter(function (cd) {
|
|
3950
|
-
return cd.itemID === item.itemID;
|
|
3951
|
-
}).length === 0 && 'none',
|
|
3952
|
-
minWidth: 400,
|
|
3953
|
-
cursor: ((_currentTexture$doorS11 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS12 = currentTexture.doorStyles) === null || _currentTexture$doorS12 === void 0 ? void 0 : _currentTexture$doorS12.cds) !== null && _currentTexture$doorS11 !== void 0 ? _currentTexture$doorS11 : []).filter(function (cd) {
|
|
3954
|
-
return cd.itemID === item.itemID;
|
|
3955
|
-
}).length === 0 && 'no-drop',
|
|
3956
|
-
paddingLeft: 0
|
|
3957
|
-
},
|
|
3958
|
-
onClick: function onClick() {
|
|
3959
|
-
return currentTexture.doorStyles.cds.filter(function (cd) {
|
|
3960
|
-
return cd.itemID === item.itemID;
|
|
3961
|
-
}).length !== 0 && _this4.cabinetselect(item.name);
|
|
3962
|
-
},
|
|
3963
|
-
key: key
|
|
3964
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
3965
|
-
style: {
|
|
3966
|
-
height: 90,
|
|
3967
|
-
width: 90
|
|
3968
|
-
},
|
|
3969
|
-
src: item.thumbnail
|
|
3970
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3971
|
-
style: {
|
|
3972
|
-
textAlign: 'left'
|
|
3973
|
-
}
|
|
3974
|
-
}, item.long_name, " ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("span", {
|
|
3975
|
-
style: {
|
|
3976
|
-
fontSize: 14
|
|
3977
|
-
}
|
|
3978
|
-
}, "Width:", ' ', Math.round(convert(item.info.width).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', /*#__PURE__*/React.createElement("br", null), "Depth:", ' ', Math.round(convert(item.info.height).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', /*#__PURE__*/React.createElement("br", null), "Height:", ' ', Math.round(convert(item.info.tall).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"')), ((_currentTexture$doorS13 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS14 = currentTexture.doorStyles) === null || _currentTexture$doorS14 === void 0 ? void 0 : _currentTexture$doorS14.cds) !== null && _currentTexture$doorS13 !== void 0 ? _currentTexture$doorS13 : []).filter(function (cd) {
|
|
3979
|
-
return cd.itemID === item.itemID;
|
|
3980
|
-
}).length === 0 && /*#__PURE__*/React.createElement(StyledTooltip, {
|
|
3981
|
-
id: "warning_unavailable",
|
|
3982
|
-
title: "This item is not available in the finish you have selected. Please contact us for alternate options in the finish you want."
|
|
3983
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
3984
|
-
style: {
|
|
3985
|
-
position: 'absolute',
|
|
3986
|
-
right: 8,
|
|
3987
|
-
bottom: 15,
|
|
3988
|
-
color: 'red',
|
|
3989
|
-
zIndex: 1,
|
|
3990
|
-
opacity: 0.5
|
|
3991
|
-
}
|
|
3992
|
-
}, /*#__PURE__*/React.createElement("u", null, "Unavailable"))), ((_currentTexture$doorS15 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS16 = currentTexture.doorStyles) === null || _currentTexture$doorS16 === void 0 ? void 0 : _currentTexture$doorS16.cds) !== null && _currentTexture$doorS15 !== void 0 ? _currentTexture$doorS15 : []).filter(function (cd) {
|
|
3993
|
-
return cd.itemID === item.itemID;
|
|
3994
|
-
}).length === 0 && /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
3995
|
-
style: {
|
|
3996
|
-
position: 'absolute',
|
|
3997
|
-
right: 100,
|
|
3998
|
-
bottom: 18,
|
|
3999
|
-
color: 'red',
|
|
4000
|
-
fontSize: '1rem'
|
|
4001
|
-
}
|
|
4002
|
-
}), ((_currentTexture$doorS17 = currentTexture === null || currentTexture === void 0 || (_currentTexture$doorS18 = currentTexture.doorStyles) === null || _currentTexture$doorS18 === void 0 ? void 0 : _currentTexture$doorS18.cds) !== null && _currentTexture$doorS17 !== void 0 ? _currentTexture$doorS17 : []).filter(function (cd) {
|
|
4003
|
-
return cd.itemID === item.itemID;
|
|
4004
|
-
}).length === 0 && /*#__PURE__*/React.createElement("div", {
|
|
4005
|
-
style: {
|
|
4006
|
-
position: 'absolute',
|
|
4007
|
-
width: '100%',
|
|
4008
|
-
height: '100%',
|
|
4009
|
-
backgroundColor: 'rgba(255, 255, 255, 0.7)'
|
|
4010
|
-
}
|
|
4011
|
-
}));
|
|
4012
|
-
}))))
|
|
4013
|
-
}, {
|
|
4014
|
-
toolbar: 'appliance',
|
|
4015
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
4016
|
-
style: {
|
|
4017
|
-
display: 'flex'
|
|
4018
|
-
}
|
|
4019
|
-
}, /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
4020
|
-
style: {
|
|
4021
|
-
alignItems: 'flex-start'
|
|
4022
|
-
}
|
|
4023
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryTitle, null, "Add Appliances"), /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, this.props.categoryData.data.appliances.map(function (appliance, key) {
|
|
4024
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
4025
|
-
style: {
|
|
4026
|
-
display: 'flex',
|
|
4027
|
-
flexDirection: 'column'
|
|
4028
|
-
},
|
|
4029
|
-
key: key
|
|
4030
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
4031
|
-
style: {
|
|
4032
|
-
backgroundColor: appliance.items.find(function (item) {
|
|
4033
|
-
return item.type === 'cabinet';
|
|
4034
|
-
}) ? subCabinetCategory.name === appliance.name && TEXT_COLOR_NEUTRAL_5 : cabinetCategory.name === appliance.name && TEXT_COLOR_NEUTRAL_5
|
|
4035
|
-
},
|
|
4036
|
-
onClick: function onClick() {
|
|
4037
|
-
return setSubData(appliance.name, appliance.items);
|
|
4038
|
-
}
|
|
4039
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
4040
|
-
maskImage: appliance.thumbnail
|
|
4041
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
4042
|
-
style: {
|
|
4043
|
-
fontWeight: appliance.items.find(function (item) {
|
|
4044
|
-
return item.type === 'cabinet';
|
|
4045
|
-
}) ? subCabinetCategory.name === appliance.name && 700 : cabinetCategory.name === appliance.name && 700
|
|
4046
|
-
}
|
|
4047
|
-
}, appliance.name)), cabinetCategory.name === appliance.name && temp);
|
|
4048
|
-
}))), subCabinetCategory.name && /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
4049
|
-
style: {
|
|
4050
|
-
alignItems: 'flex-start',
|
|
4051
|
-
marginLeft: 20,
|
|
4052
|
-
minWidth: 350
|
|
4053
|
-
}
|
|
4054
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, subCabinetCategory.data.map(function (item, key) {
|
|
4055
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
4056
|
-
onClick: function onClick() {
|
|
4057
|
-
return _this4.cabinetselect(item.name);
|
|
4058
|
-
},
|
|
4059
|
-
key: key
|
|
4060
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
4061
|
-
style: {
|
|
4062
|
-
height: 70,
|
|
4063
|
-
width: 70
|
|
4064
|
-
},
|
|
4065
|
-
src: item.thumbnail
|
|
4066
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
4067
|
-
style: {
|
|
4068
|
-
textAlign: 'left'
|
|
4069
|
-
}
|
|
4070
|
-
}, item.name, " ", /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("span", {
|
|
4071
|
-
style: {
|
|
4072
|
-
fontSize: 14
|
|
4073
|
-
}
|
|
4074
|
-
}, "Width:", ' ', Math.round(convert(item.info.width).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', /*#__PURE__*/React.createElement("br", null), "Depth:", ' ', Math.round(convert(item.info.height).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', /*#__PURE__*/React.createElement("br", null), "Height:", ' ', Math.round(convert(item.info.tall).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"')));
|
|
4075
|
-
}))))
|
|
4076
|
-
}, {
|
|
4077
|
-
toolbar: 'finishing',
|
|
4078
|
-
content: /*#__PURE__*/React.createElement("div", {
|
|
4079
|
-
style: {
|
|
4080
|
-
display: 'flex'
|
|
4081
|
-
}
|
|
4082
|
-
}, /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
4083
|
-
style: {
|
|
4084
|
-
alignItems: 'flex-start'
|
|
4085
|
-
}
|
|
4086
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryTitle, null, "Add Finishings"), /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, finishingData.map(function (finishing, key) {
|
|
4087
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
4088
|
-
style: {
|
|
4089
|
-
backgroundColor: selectedFinishing === finishing.name && TEXT_COLOR_NEUTRAL_5
|
|
4090
|
-
},
|
|
4091
|
-
onClick: function onClick() {
|
|
4092
|
-
return _this4.setState({
|
|
4093
|
-
selectedFinishing: selectedFinishing === finishing.name ? '' : finishing.name
|
|
4094
|
-
});
|
|
4095
|
-
},
|
|
4096
|
-
key: key
|
|
4097
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
4098
|
-
maskImage: finishing.thumbnail
|
|
4099
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
4100
|
-
style: {
|
|
4101
|
-
fontWeight: selectedFinishing === finishing.name && 700
|
|
4102
|
-
}
|
|
4103
|
-
}, finishing.name));
|
|
4104
|
-
}))), selectedFinishing && /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
4105
|
-
style: {
|
|
4106
|
-
alignItems: 'flex-start',
|
|
4107
|
-
marginLeft: 20,
|
|
4108
|
-
minWidth: 250
|
|
4109
|
-
}
|
|
4110
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemWrapper, null, finishingData.filter(function (element) {
|
|
4111
|
-
return element.name === selectedFinishing;
|
|
4112
|
-
})[0].data.map(function (item, key) {
|
|
4113
|
-
if (selectedFinishing === 'Wall Color') {
|
|
4114
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
4115
|
-
style: {
|
|
4116
|
-
minWidth: 250
|
|
4117
|
-
},
|
|
4118
|
-
onClick: function onClick() {
|
|
4119
|
-
return _this4.setFinishing(item);
|
|
4120
|
-
},
|
|
4121
|
-
key: key
|
|
4122
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
4123
|
-
style: {
|
|
4124
|
-
height: 70,
|
|
4125
|
-
width: 70,
|
|
4126
|
-
backgroundColor: item.color,
|
|
4127
|
-
padding: 2
|
|
4128
|
-
}
|
|
4129
|
-
}), /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
4130
|
-
id: "check",
|
|
4131
|
-
src: "/assets/img/svg/wizardstep/check-normal.svg"
|
|
4132
|
-
}), item.selected && /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
4133
|
-
src: "/assets/img/svg/wizardstep/check-active.svg"
|
|
4134
|
-
}), /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
4135
|
-
style: {
|
|
4136
|
-
fontWeight: item.selected && 700
|
|
4137
|
-
}
|
|
4138
|
-
}, item.name));
|
|
4139
|
-
} else {
|
|
4140
|
-
return /*#__PURE__*/React.createElement(S.SubCategoryItem, {
|
|
4141
|
-
id: item.id,
|
|
4142
|
-
style: {
|
|
4143
|
-
minWidth: 250
|
|
4144
|
-
},
|
|
4145
|
-
onClick: function onClick() {
|
|
4146
|
-
return _this4.setFinishing(item);
|
|
4147
|
-
},
|
|
4148
|
-
key: key
|
|
4149
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
4150
|
-
id: "finishing&".concat(item.id),
|
|
4151
|
-
style: {
|
|
4152
|
-
height: 70,
|
|
4153
|
-
width: 70,
|
|
4154
|
-
padding: 5
|
|
4155
|
-
},
|
|
4156
|
-
src: item.thumbnail
|
|
4157
|
-
}), selectedFinishing !== 'Lighting' && selectedFinishing !== 'Furnishing' && /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
4158
|
-
id: "check",
|
|
4159
|
-
src: "/assets/img/svg/wizardstep/check-normal.svg"
|
|
4160
|
-
}), selectedFinishing !== 'Lighting' && selectedFinishing !== 'Furnishing' && item.selected && /*#__PURE__*/React.createElement(S.ContentCheckImage, {
|
|
4161
|
-
src: "/assets/img/svg/wizardstep/check-active.svg"
|
|
4162
|
-
}), selectedFinishing !== 'Lighting' && selectedFinishing !== 'Furnishing' ? /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
4163
|
-
style: {
|
|
4164
|
-
fontWeight: item.selected && 700
|
|
4165
|
-
}
|
|
4166
|
-
}, item.name) : /*#__PURE__*/React.createElement(S.SubCategoryItemLabel, {
|
|
4167
|
-
style: {
|
|
4168
|
-
textAlign: 'left'
|
|
4169
|
-
}
|
|
4170
|
-
}, item.name, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("span", {
|
|
4171
|
-
style: {
|
|
4172
|
-
fontSize: 14
|
|
4173
|
-
}
|
|
4174
|
-
}, "Width:", ' ', Math.round(convert(item.width).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', /*#__PURE__*/React.createElement("br", null), "Depth:", ' ', Math.round(convert(item.length).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"', /*#__PURE__*/React.createElement("br", null), "Height:", ' ', Math.round(convert(item.height).from('in').to(measurementUnit._unit) * 100) / 100, measurementUnit._unit !== 'in' ? measurementUnit._unit : '"')));
|
|
4175
|
-
}
|
|
4176
|
-
}))))
|
|
4177
|
-
}, {
|
|
4178
|
-
toolbar: 'reviewforquote',
|
|
4179
|
-
content: /*#__PURE__*/React.createElement(ReviewForQuote, {
|
|
4180
|
-
accessToken: this.props.accessToken,
|
|
4181
|
-
isTokenPresent: !!this.props.match.params.token,
|
|
4182
|
-
currentTexture: currentTexture,
|
|
4183
|
-
userInfo: userInfo,
|
|
4184
|
-
doorStyles: this.state.DoorStyles,
|
|
4185
|
-
catalog: this.props.catalog,
|
|
4186
|
-
categoryData: this.props.categoryData,
|
|
4187
|
-
items: this.state.elements.items,
|
|
4188
|
-
moldingData: this.state.moldingData,
|
|
4189
|
-
handleSubmitPrompt: this.props.handleSubmitPrompt,
|
|
4190
|
-
handleSubmitForQuote: this.props.handleSubmitForQuote,
|
|
4191
|
-
measurementUnit: measurementUnit,
|
|
4192
|
-
setDownloadPopupVisible: this.props.setDownloadPopupVisible
|
|
4193
|
-
})
|
|
4194
|
-
}];
|
|
4195
|
-
var toolbarData = [{
|
|
4196
|
-
key: 'room-shape',
|
|
4197
|
-
label: 'Room Shape',
|
|
4198
|
-
url: '/assets/img/svg/lefttoolbar/room-shape.svg'
|
|
4199
|
-
}, {
|
|
4200
|
-
key: 'door-style',
|
|
4201
|
-
label: 'Door Style',
|
|
4202
|
-
url: '/assets/img/svg/lefttoolbar/door-style.svg'
|
|
4203
|
-
}, {
|
|
4204
|
-
key: 'cabinet',
|
|
4205
|
-
label: 'Cabinets',
|
|
4206
|
-
url: '/assets/img/svg/lefttoolbar/cabinet.svg'
|
|
4207
|
-
}, {
|
|
4208
|
-
key: 'appliance',
|
|
4209
|
-
label: 'Appliances',
|
|
4210
|
-
url: '/assets/img/svg/lefttoolbar/appliance.svg'
|
|
4211
|
-
}, {
|
|
4212
|
-
key: 'finishing',
|
|
4213
|
-
label: 'Finishing',
|
|
4214
|
-
url: '/assets/img/svg/lefttoolbar/finishing.svg'
|
|
4215
|
-
}, {
|
|
4216
|
-
key: 'reviewforquote',
|
|
4217
|
-
label: 'Review & Quote',
|
|
4218
|
-
url: '/assets/img/svg/lefttoolbar/reviewforquote.svg'
|
|
4219
|
-
}];
|
|
4220
|
-
return /*#__PURE__*/React.createElement("aside", {
|
|
4221
|
-
style: _objectSpread(_objectSpread({}, ASIDE_STYLE), {}, {
|
|
4222
|
-
maxWidth: !ARRAY_3D_MODES.includes(mode) ? width : 90,
|
|
4223
|
-
maxHeight: height,
|
|
4224
|
-
marginTop: this.props.headerH + 10
|
|
4225
|
-
})
|
|
4226
|
-
}, /*#__PURE__*/React.createElement(SnackBar, {
|
|
4227
|
-
isOpen: this.state.isSnackBarOpen,
|
|
4228
|
-
message: this.state.snackBarMessage,
|
|
4229
|
-
handleClose: function handleClose() {
|
|
4230
|
-
return _this4.setState({
|
|
4231
|
-
isSnackBarOpen: false,
|
|
4232
|
-
snackBarMessage: ''
|
|
4233
|
-
});
|
|
4234
|
-
}
|
|
4235
|
-
}), /*#__PURE__*/React.createElement(ConfirmPopup, {
|
|
4236
|
-
visible: this.state.isPopupOpen,
|
|
4237
|
-
handleConfirmLoad: function handleConfirmLoad() {
|
|
4238
|
-
return _this4.handleConfirmLoad();
|
|
4239
|
-
},
|
|
4240
|
-
submit: function submit() {
|
|
4241
|
-
return _this4._submit();
|
|
4242
|
-
}
|
|
4243
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
4244
|
-
style: {
|
|
4245
|
-
position: 'absolute',
|
|
4246
|
-
display: 'flex',
|
|
4247
|
-
left: 10,
|
|
4248
|
-
zIndex: 1,
|
|
4249
|
-
flexDirection: 'row'
|
|
4250
|
-
}
|
|
4251
|
-
}, /*#__PURE__*/React.createElement(S.ToolbarWrapper, null, /*#__PURE__*/React.createElement(S.SubToolbarWrapper, {
|
|
4252
|
-
style: {
|
|
4253
|
-
marginLeft: 0,
|
|
4254
|
-
minWidth: 'unset'
|
|
4255
|
-
}
|
|
4256
|
-
}, toolbarData.map(function (data, key) {
|
|
4257
|
-
return /*#__PURE__*/React.createElement(S.ToolbarButton, {
|
|
4258
|
-
onClick: function onClick() {
|
|
4259
|
-
_this4.props.setToolbar(_this4.props.toolBar === data.key ? '' : data.key);
|
|
4260
|
-
_this4.setState({
|
|
4261
|
-
cabinetCategory: {
|
|
4262
|
-
name: '',
|
|
4263
|
-
data: []
|
|
4264
|
-
},
|
|
4265
|
-
subCabinetCategory: {
|
|
4266
|
-
name: '',
|
|
4267
|
-
data: []
|
|
4268
|
-
},
|
|
4269
|
-
cabinetStyleChanging: false,
|
|
4270
|
-
searchName: ''
|
|
4271
|
-
});
|
|
4272
|
-
if (_this4.props.toolBar !== data.key && data.key === 'reviewforquote') {
|
|
4273
|
-
var _moldingData = [];
|
|
4274
|
-
var cabinetData = _this4.props.categoryData.data.cabinets;
|
|
4275
|
-
var moldings = [];
|
|
4276
|
-
// get all moldings info
|
|
4277
|
-
cabinetData.forEach(function (itemCat) {
|
|
4278
|
-
itemCat.items.forEach(function (item) {
|
|
4279
|
-
item.items.forEach(function (it) {
|
|
4280
|
-
if (it.category === 'molding') {
|
|
4281
|
-
moldings.push(it);
|
|
4282
|
-
}
|
|
4283
|
-
});
|
|
4284
|
-
});
|
|
4285
|
-
});
|
|
4286
|
-
var items = layer.items.toArray();
|
|
4287
|
-
moldings.forEach(function (molding) {
|
|
4288
|
-
var itemGroups = [];
|
|
4289
|
-
var temp_items = [];
|
|
4290
|
-
items.forEach(function (item) {
|
|
4291
|
-
if (item.molding.some(function (mol) {
|
|
4292
|
-
return mol.itemID === molding.itemID;
|
|
4293
|
-
}) && MoldingUtils.isEnableItemForMolding(layer, item)) {
|
|
4294
|
-
temp_items.push(item);
|
|
4295
|
-
}
|
|
4296
|
-
});
|
|
4297
|
-
if (temp_items.length) {
|
|
4298
|
-
while (temp_items.length > 0) {
|
|
4299
|
-
var itemGroup = [temp_items[0]];
|
|
4300
|
-
var _loop2 = function _loop2(_idx) {
|
|
4301
|
-
if (!itemGroup.some(function (it) {
|
|
4302
|
-
return it.id === temp_items[_idx].id;
|
|
4303
|
-
}) && MoldingUtils.isItemSnappedGroup(temp_items[_idx], itemGroup)) {
|
|
4304
|
-
itemGroup.push(temp_items[_idx]);
|
|
4305
|
-
_idx = 0;
|
|
4306
|
-
}
|
|
4307
|
-
idx = _idx;
|
|
4308
|
-
};
|
|
4309
|
-
for (var idx = 0; idx < temp_items.length; idx++) {
|
|
4310
|
-
_loop2(idx);
|
|
4311
|
-
}
|
|
4312
|
-
itemGroup.forEach(function (item) {
|
|
4313
|
-
var index = temp_items.findIndex(function (it) {
|
|
4314
|
-
return it.id === item.id;
|
|
4315
|
-
});
|
|
4316
|
-
if (index > -1) {
|
|
4317
|
-
temp_items.splice(index, 1);
|
|
4318
|
-
}
|
|
4319
|
-
});
|
|
4320
|
-
itemGroups.push(itemGroup);
|
|
4321
|
-
}
|
|
4322
|
-
var molding_totalLength = 0;
|
|
4323
|
-
itemGroups.forEach(function (itemgroup) {
|
|
4324
|
-
var allLineRects = GeometryUtils.buildRectFromLines(layer, GeometryUtils.getAllLines(layer));
|
|
4325
|
-
var items = _toConsumableArray(itemgroup);
|
|
4326
|
-
var MGlines = MoldingUtils.getLinesOfItem(items[0], allLineRects, _this4.props.catalog);
|
|
4327
|
-
items = MoldingUtils.sortItemsByDistance(items, items[0]);
|
|
4328
|
-
var _loop3 = function _loop3() {
|
|
4329
|
-
var itemLines = MoldingUtils.getLinesOfItem(items[_i3], allLineRects, _this4.props.catalog);
|
|
4330
|
-
var temp_MGLines = [];
|
|
4331
|
-
MGlines.forEach(function (line) {
|
|
4332
|
-
var idx = itemLines.findIndex(function (itemLine) {
|
|
4333
|
-
return MoldingUtils.isLinesOverlapped(line, itemLine);
|
|
4334
|
-
});
|
|
4335
|
-
var curItemLine = itemLines[idx];
|
|
4336
|
-
if (idx > -1) {
|
|
4337
|
-
if (!(GeometryUtils.samePoints(line[0], curItemLine[0]) && GeometryUtils.samePoints(line[1], curItemLine[1]) || GeometryUtils.samePoints(line[0], curItemLine[1]) && GeometryUtils.samePoints(line[1], curItemLine[0]))) {
|
|
4338
|
-
var MGLine = MoldingUtils.mergeOverlappedLines(line, curItemLine);
|
|
4339
|
-
temp_MGLines.push(MGLine);
|
|
4340
|
-
}
|
|
4341
|
-
itemLines.splice(idx, 1);
|
|
4342
|
-
} else {
|
|
4343
|
-
temp_MGLines.push(line);
|
|
4344
|
-
}
|
|
4345
|
-
});
|
|
4346
|
-
itemLines.forEach(function (itemLine) {
|
|
4347
|
-
return temp_MGLines.push(itemLine);
|
|
4348
|
-
});
|
|
4349
|
-
MGlines = [].concat(temp_MGLines);
|
|
4350
|
-
};
|
|
4351
|
-
for (var _i3 = 1; _i3 < items.length; _i3++) {
|
|
4352
|
-
_loop3();
|
|
4353
|
-
}
|
|
4354
|
-
MGlines.forEach(function (line) {
|
|
4355
|
-
molding_totalLength += GeometryUtils.verticesDistance(line[0], line[1]);
|
|
4356
|
-
});
|
|
4357
|
-
});
|
|
4358
|
-
molding_totalLength = convert(molding_totalLength).from('cm').to('in');
|
|
4359
|
-
_moldingData.push(_objectSpread(_objectSpread({}, molding), {}, {
|
|
4360
|
-
doorStyle: _this4.state.currentTexture,
|
|
4361
|
-
count: Math.ceil(molding_totalLength * 1.1 / 96)
|
|
4362
|
-
}));
|
|
4363
|
-
}
|
|
4364
|
-
});
|
|
4365
|
-
|
|
4366
|
-
// calc toe kick molding
|
|
4367
|
-
var tmp = [];
|
|
4368
|
-
items.forEach(function (item) {
|
|
4369
|
-
if (item.category === 'cabinet' && !item.cabinet_category.toLowerCase().includes('microwave')) {
|
|
4370
|
-
tmp.push(item);
|
|
4371
|
-
}
|
|
4372
|
-
});
|
|
4373
|
-
var tmpMoldingData = [];
|
|
4374
|
-
var toedoorStyles = [];
|
|
4375
|
-
tmp.map(function (item) {
|
|
4376
|
-
var _item$molding;
|
|
4377
|
-
if (item.layoutpos === BASE_CABINET_LAYOUTPOS && (isEmpty(item.molding) || ((_item$molding = item.molding) === null || _item$molding === void 0 ? void 0 : _item$molding.length) < 1 || !MoldingUtils.isEnableItemForMolding(layer, item))) {
|
|
4378
|
-
// let layer = state.scene.layers.get(
|
|
4379
|
-
// state.scene.selectedLayer
|
|
4380
|
-
// );
|
|
4381
|
-
// let allLines = GeometryUtils.getAllLines(layer);
|
|
4382
|
-
// let x = item.x;
|
|
4383
|
-
// let y = item.y;
|
|
4384
|
-
// let rotRad = (item.rotation / 180) * Math.PI;
|
|
4385
|
-
var w = item.properties.get('width').get('_length');
|
|
4386
|
-
var wUnit = item.properties.get('width').get('_unit') || 'cm';
|
|
4387
|
-
w = convert(w / 2).from(wUnit).to('cm');
|
|
4388
|
-
var h = item.properties.get('depth').get('_length');
|
|
4389
|
-
var hUnit = item.properties.get('depth').get('_unit') || 'cm';
|
|
4390
|
-
h = convert(h / 2).from(hUnit).to('cm');
|
|
4391
|
-
// let mx = x - w * Math.cos(rotRad);
|
|
4392
|
-
// let my = y - w * Math.sin(rotRad);
|
|
4393
|
-
// let x0 = mx + h * Math.sin(rotRad);
|
|
4394
|
-
// let y0 = my - h * Math.cos(rotRad);
|
|
4395
|
-
// let x3 = mx * 2 - x0;
|
|
4396
|
-
// let y3 = my * 2 - y0;
|
|
4397
|
-
// if (
|
|
4398
|
-
// !GeometryUtils.isSnappedLine(
|
|
4399
|
-
// {
|
|
4400
|
-
// rect: [
|
|
4401
|
-
// { x: x0, y: y0 },
|
|
4402
|
-
// { x: x1, y: y1 },
|
|
4403
|
-
// {
|
|
4404
|
-
// x: x2,
|
|
4405
|
-
// y: y2
|
|
4406
|
-
// },
|
|
4407
|
-
// { x: x3, y: y3 }
|
|
4408
|
-
// ]
|
|
4409
|
-
// },
|
|
4410
|
-
// allLineRects
|
|
4411
|
-
// )
|
|
4412
|
-
// )
|
|
4413
|
-
// return false;
|
|
4414
|
-
var outline = null;
|
|
4415
|
-
var element = _this4.context.catalog.elements[item.get('type')];
|
|
4416
|
-
if (!element) element = _this4.context.catalog.elements[returnReplaceableDeepSearchType(item.get('type'))];
|
|
4417
|
-
outline = element.info.outline;
|
|
4418
|
-
var len = 0;
|
|
4419
|
-
if (outline) {
|
|
4420
|
-
// Extract Points from `outline`
|
|
4421
|
-
var outlinePaths = outline.paths;
|
|
4422
|
-
var outlineWidth = outline.svgWidth;
|
|
4423
|
-
var outlineHeight = outline.svgHeight;
|
|
4424
|
-
var outlinePoints = []; // Hold Points Of SVG
|
|
4425
|
-
var _iterator2 = _createForOfIteratorHelper(outlinePaths),
|
|
4426
|
-
_step2;
|
|
4427
|
-
try {
|
|
4428
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
4429
|
-
var path = _step2.value;
|
|
4430
|
-
var _iterator3 = _createForOfIteratorHelper(path.subPaths),
|
|
4431
|
-
_step3;
|
|
4432
|
-
try {
|
|
4433
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
4434
|
-
var subPath = _step3.value;
|
|
4435
|
-
outlinePoints = outlinePoints.concat(subPath.getPoints());
|
|
4436
|
-
}
|
|
4437
|
-
} catch (err) {
|
|
4438
|
-
_iterator3.e(err);
|
|
4439
|
-
} finally {
|
|
4440
|
-
_iterator3.f();
|
|
4441
|
-
}
|
|
4442
|
-
}
|
|
4443
|
-
} catch (err) {
|
|
4444
|
-
_iterator2.e(err);
|
|
4445
|
-
} finally {
|
|
4446
|
-
_iterator2.f();
|
|
4447
|
-
}
|
|
4448
|
-
var maxX = outlinePoints[0].x,
|
|
4449
|
-
minX = outlinePoints[0].x;
|
|
4450
|
-
var maxY = outlinePoints[0].y,
|
|
4451
|
-
minY = outlinePoints[0].y;
|
|
4452
|
-
outlinePoints.forEach(function (point) {
|
|
4453
|
-
if (point.x > maxX) {
|
|
4454
|
-
maxX = point.x;
|
|
4455
|
-
}
|
|
4456
|
-
if (point.x < minX) {
|
|
4457
|
-
minX = point.x;
|
|
4458
|
-
}
|
|
4459
|
-
if (point.y > maxY) {
|
|
4460
|
-
maxY = point.y;
|
|
4461
|
-
}
|
|
4462
|
-
if (point.y < minY) {
|
|
4463
|
-
minY = point.y;
|
|
4464
|
-
}
|
|
4465
|
-
});
|
|
4466
|
-
outlinePoints.forEach(function (point) {
|
|
4467
|
-
if (GeometryUtils.isPointInRect([{
|
|
4468
|
-
x: minX,
|
|
4469
|
-
y: minY
|
|
4470
|
-
}, {
|
|
4471
|
-
x: minX,
|
|
4472
|
-
y: maxY
|
|
4473
|
-
}, {
|
|
4474
|
-
x: maxX,
|
|
4475
|
-
y: maxY
|
|
4476
|
-
}, {
|
|
4477
|
-
x: maxX,
|
|
4478
|
-
y: minY
|
|
4479
|
-
}], point)) {
|
|
4480
|
-
if (point.x > 10) len += (point.x / outlineWidth - 0.5) * w * 2 + h * 2 - (point.y / outlineHeight - 0.5) * h * 2;
|
|
4481
|
-
}
|
|
4482
|
-
});
|
|
4483
|
-
len = convert(len).from('cm').to('in');
|
|
4484
|
-
} else {
|
|
4485
|
-
w = convert(w * 2).from('cm').to('in');
|
|
4486
|
-
len += w;
|
|
4487
|
-
}
|
|
4488
|
-
var doorIndex = toedoorStyles.findIndex(function (a) {
|
|
4489
|
-
var iDS = item === null || item === void 0 ? void 0 : item.doorStyle;
|
|
4490
|
-
if (!iDS) return false;
|
|
4491
|
-
if (!iDS.hasOwnProperty('id')) {
|
|
4492
|
-
iDS = iDS.toJS();
|
|
4493
|
-
}
|
|
4494
|
-
return a.doorStyle.id === iDS.id && isEqualInstallationType(a.doorStyle, iDS);
|
|
4495
|
-
});
|
|
4496
|
-
if (doorIndex > -1) {
|
|
4497
|
-
toedoorStyles[doorIndex].totalLength += len;
|
|
4498
|
-
} else {
|
|
4499
|
-
toedoorStyles.push({
|
|
4500
|
-
doorStyle: item.doorStyle.hasOwnProperty('id') ? item.doorStyle : item.doorStyle && item.doorStyle.toJS(),
|
|
4501
|
-
totalLength: len
|
|
4502
|
-
});
|
|
4503
|
-
}
|
|
4504
|
-
}
|
|
4505
|
-
});
|
|
4506
|
-
toedoorStyles.forEach(function (doorStyle) {
|
|
4507
|
-
var thumbnail = '';
|
|
4508
|
-
moldings.forEach(function (molding) {
|
|
4509
|
-
if (molding.name === getToeKickSKU(doorStyle.doorStyle, _this4.props.catalog, true)) thumbnail = molding.thumbnail;
|
|
4510
|
-
});
|
|
4511
|
-
doorStyle.totalLength && tmpMoldingData.push({
|
|
4512
|
-
name: TOE_KICK_MOLDING,
|
|
4513
|
-
sku: getToeKickSKU(doorStyle.doorStyle, _this4.props.catalog),
|
|
4514
|
-
thumbnail: thumbnail,
|
|
4515
|
-
category: 'molding',
|
|
4516
|
-
type: 'cabinet',
|
|
4517
|
-
doorStyle: doorStyle.doorStyle,
|
|
4518
|
-
count: Math.ceil(doorStyle.totalLength * 1.1 / 96)
|
|
4519
|
-
});
|
|
4520
|
-
});
|
|
4521
|
-
if (tmpMoldingData.length > 0) _this4.setState({
|
|
4522
|
-
moldingData: [].concat(_moldingData, tmpMoldingData)
|
|
4523
|
-
});else _this4.setState({
|
|
4524
|
-
moldingData: _moldingData
|
|
4525
|
-
});
|
|
4526
|
-
}
|
|
4527
|
-
},
|
|
4528
|
-
key: key
|
|
4529
|
-
}, /*#__PURE__*/React.createElement(S.ToolbarButtonImageWrapper, {
|
|
4530
|
-
style: {
|
|
4531
|
-
backgroundColor: _this4.props.toolBar === data.key && SECONDARY_PURPLE_COLOR
|
|
4532
|
-
}
|
|
4533
|
-
}, /*#__PURE__*/React.createElement(S.ToolbarButtonImage, {
|
|
4534
|
-
maskImage: data.url,
|
|
4535
|
-
style: {
|
|
4536
|
-
backgroundColor: _this4.props.toolBar === data.key ? BG_COLOR_1 : SECONDARY_PURPLE_COLOR
|
|
4537
|
-
}
|
|
4538
|
-
})), /*#__PURE__*/React.createElement(S.ToolbarButtonTitle, {
|
|
4539
|
-
style: {
|
|
4540
|
-
fontWeight: _this4.props.toolBar === data.key && 700
|
|
4541
|
-
}
|
|
4542
|
-
}, data.label));
|
|
4543
|
-
})), toolbar && !this.props.state.isCabinetDrawing && categories.filter(function (category) {
|
|
4544
|
-
return category.toolbar === _this4.props.toolBar;
|
|
4545
|
-
}).length !== 0 && categories.filter(function (category) {
|
|
4546
|
-
return category.toolbar === _this4.props.toolBar;
|
|
4547
|
-
})[0].content)), panel, hintText, controlView, /*#__PURE__*/React.createElement("canvas", {
|
|
4548
|
-
id: "canvas_crop_image",
|
|
4549
|
-
style: {
|
|
4550
|
-
zIndex: -1,
|
|
4551
|
-
position: 'fixed',
|
|
4552
|
-
top: '0px',
|
|
4553
|
-
left: '0px'
|
|
4554
|
-
},
|
|
4555
|
-
onMouseDown: function onMouseDown(e) {
|
|
4556
|
-
return _this4.onMouseDown(e);
|
|
4557
|
-
},
|
|
4558
|
-
onMouseMove: function onMouseMove(e) {
|
|
4559
|
-
return _this4.onMouseMove(e);
|
|
4560
|
-
},
|
|
4561
|
-
onMouseUp: function onMouseUp(e) {
|
|
4562
|
-
return _this4.onMouseUp(e);
|
|
4563
|
-
}
|
|
4564
|
-
}, ' ', "The SCREENSHOT is not available in this browser!!!"), /*#__PURE__*/React.createElement(SetDoorStyleOptionPopup, {
|
|
4565
|
-
content: 'Do you want to change current cabinet or change ALL?',
|
|
4566
|
-
handle: function handle(value) {
|
|
4567
|
-
return _this4.setDoorStyleOption(value);
|
|
4568
|
-
},
|
|
4569
|
-
visible: this.state.setDoorStylePopupVisible,
|
|
4570
|
-
setVisible: function setVisible(value) {
|
|
4571
|
-
return _this4.setState({
|
|
4572
|
-
setDoorStylePopupVisible: value
|
|
4573
|
-
});
|
|
4574
|
-
}
|
|
4575
|
-
}), item_warning, /*#__PURE__*/React.createElement(S.WarningItem, {
|
|
4576
|
-
id: "warning_box_2d",
|
|
4577
|
-
style: {
|
|
4578
|
-
display: 'none'
|
|
4579
|
-
}
|
|
4580
|
-
}, /*#__PURE__*/React.createElement(S.SubCategoryItemImage, {
|
|
4581
|
-
maskImage: "/assets/img/svg/3d_item_warning_info.svg",
|
|
4582
|
-
style: {
|
|
4583
|
-
backgroundColor: BG_COLOR_1,
|
|
4584
|
-
marginRight: 10,
|
|
4585
|
-
height: 30,
|
|
4586
|
-
width: 30
|
|
4587
|
-
}
|
|
4588
|
-
}), "This item is not available in the current door style. Replace it with another one."));
|
|
4589
|
-
}
|
|
4590
|
-
}]);
|
|
4591
|
-
}(PureComponent);
|
|
4592
|
-
export { Toolbar as default };
|
|
4593
|
-
Toolbar.propTypes = {
|
|
4594
|
-
state: PropTypes.object.isRequired,
|
|
4595
|
-
width: PropTypes.number.isRequired,
|
|
4596
|
-
content: PropTypes.number.isRequired,
|
|
4597
|
-
height: PropTypes.number.isRequired,
|
|
4598
|
-
allowProjectFileSupport: PropTypes.bool.isRequired,
|
|
4599
|
-
toolbarButtons: PropTypes.array
|
|
4600
|
-
};
|
|
4601
|
-
Toolbar.contextTypes = {
|
|
4602
|
-
projectActions: PropTypes.object.isRequired,
|
|
4603
|
-
viewer2DActions: PropTypes.object.isRequired,
|
|
4604
|
-
viewer3DActions: PropTypes.object.isRequired,
|
|
4605
|
-
linesActions: PropTypes.object.isRequired,
|
|
4606
|
-
holesActions: PropTypes.object.isRequired,
|
|
4607
|
-
itemsActions: PropTypes.object.isRequired,
|
|
4608
|
-
areaActions: PropTypes.object.isRequired,
|
|
4609
|
-
translator: PropTypes.object.isRequired,
|
|
4610
|
-
catalog: PropTypes.object.isRequired
|
|
4611
|
-
};
|
|
4612
|
-
//# sourceMappingURL=index.js.map
|