kitchen-simulator 5.0.0-test.2 → 5.0.0-test.4
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/es/KitchenConfigurator.js +1 -1
- package/es/KitchenConfigurator.js.map +1 -1
- package/es/index.js +2 -2
- package/es/index.js.map +1 -1
- package/package.json +8 -16
- package/src/KitchenConfigurator.jsx +1 -1
- package/src/index.js +3 -3
- package/lib/@history.js +0 -11
- package/lib/@history.js.map +0 -1
- package/lib/AppContext.js +0 -11
- package/lib/AppContext.js.map +0 -1
- package/lib/KitchenConfigurator.js +0 -1353
- package/lib/KitchenConfigurator.js.map +0 -1
- package/lib/KitchenConfiguratorApp.js +0 -539
- package/lib/KitchenConfiguratorApp.js.map +0 -1
- package/lib/actions/area-actions.js +0 -22
- package/lib/actions/area-actions.js.map +0 -1
- package/lib/actions/export.js +0 -44
- package/lib/actions/export.js.map +0 -1
- package/lib/actions/groups-actions.js +0 -108
- package/lib/actions/groups-actions.js.map +0 -1
- package/lib/actions/holes-actions.js +0 -141
- package/lib/actions/holes-actions.js.map +0 -1
- package/lib/actions/items-actions.js +0 -365
- package/lib/actions/items-actions.js.map +0 -1
- package/lib/actions/lines-actions.js +0 -98
- package/lib/actions/lines-actions.js.map +0 -1
- package/lib/actions/project-actions.js +0 -333
- package/lib/actions/project-actions.js.map +0 -1
- package/lib/actions/scene-actions.js +0 -44
- package/lib/actions/scene-actions.js.map +0 -1
- package/lib/actions/user-actions.js +0 -69
- package/lib/actions/user-actions.js.map +0 -1
- package/lib/actions/vertices-actions.js +0 -36
- package/lib/actions/vertices-actions.js.map +0 -1
- package/lib/actions/viewer2d-actions.js +0 -74
- package/lib/actions/viewer2d-actions.js.map +0 -1
- package/lib/actions/viewer3d-actions.js +0 -33
- package/lib/actions/viewer3d-actions.js.map +0 -1
- package/lib/catalog/areas/area/planner-element.js +0 -47
- package/lib/catalog/areas/area/planner-element.js.map +0 -1
- package/lib/catalog/catalog.js +0 -283
- package/lib/catalog/catalog.js.map +0 -1
- package/lib/catalog/factories/area-factory-3d.js +0 -192
- package/lib/catalog/factories/area-factory-3d.js.map +0 -1
- package/lib/catalog/factories/area-factory.js +0 -90
- package/lib/catalog/factories/area-factory.js.map +0 -1
- package/lib/catalog/factories/export.js +0 -26
- package/lib/catalog/factories/export.js.map +0 -1
- package/lib/catalog/factories/wall-factory-3d.js +0 -213
- package/lib/catalog/factories/wall-factory-3d.js.map +0 -1
- package/lib/catalog/factories/wall-factory.js +0 -279
- package/lib/catalog/factories/wall-factory.js.map +0 -1
- package/lib/catalog/holes/door-closet/planner-element.js +0 -232
- package/lib/catalog/holes/door-closet/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-double/planner-element.js +0 -325
- package/lib/catalog/holes/door-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-exterior/planner-element.js +0 -225
- package/lib/catalog/holes/door-exterior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-interior/planner-element.js +0 -237
- package/lib/catalog/holes/door-interior/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic/planner-element.js +0 -513
- package/lib/catalog/holes/door-panic/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-panic-double/planner-element.js +0 -473
- package/lib/catalog/holes/door-panic-double/planner-element.js.map +0 -1
- package/lib/catalog/holes/door-sliding/planner-element.js +0 -235
- package/lib/catalog/holes/door-sliding/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-framed/planner-element.js +0 -155
- package/lib/catalog/holes/doorway-framed/planner-element.js.map +0 -1
- package/lib/catalog/holes/doorway-frameless/planner-element.js +0 -114
- package/lib/catalog/holes/doorway-frameless/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-clear/planner-element.js +0 -176
- package/lib/catalog/holes/window-clear/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-cross/planner-element.js +0 -175
- package/lib/catalog/holes/window-cross/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-double-hung/planner-element.js +0 -313
- package/lib/catalog/holes/window-double-hung/planner-element.js.map +0 -1
- package/lib/catalog/holes/window-vertical/planner-element.js +0 -286
- package/lib/catalog/holes/window-vertical/planner-element.js.map +0 -1
- package/lib/catalog/lines/wall/planner-element.js +0 -77
- package/lib/catalog/lines/wall/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-dcm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-dcm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-fbm/planner-element.js.map +0 -1
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -39
- package/lib/catalog/molding/molding-lrm/planner-element.js.map +0 -1
- package/lib/catalog/properties/export.js +0 -82
- package/lib/catalog/properties/export.js.map +0 -1
- package/lib/catalog/properties/property-checkbox.js +0 -79
- package/lib/catalog/properties/property-checkbox.js.map +0 -1
- package/lib/catalog/properties/property-color.js +0 -47
- package/lib/catalog/properties/property-color.js.map +0 -1
- package/lib/catalog/properties/property-enum.js +0 -63
- package/lib/catalog/properties/property-enum.js.map +0 -1
- package/lib/catalog/properties/property-hidden.js +0 -27
- package/lib/catalog/properties/property-hidden.js.map +0 -1
- package/lib/catalog/properties/property-lenght-measure.js +0 -109
- package/lib/catalog/properties/property-lenght-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure.js +0 -93
- package/lib/catalog/properties/property-length-measure.js.map +0 -1
- package/lib/catalog/properties/property-length-measure_hole.js +0 -109
- package/lib/catalog/properties/property-length-measure_hole.js.map +0 -1
- package/lib/catalog/properties/property-number.js +0 -56
- package/lib/catalog/properties/property-number.js.map +0 -1
- package/lib/catalog/properties/property-read-only.js +0 -34
- package/lib/catalog/properties/property-read-only.js.map +0 -1
- package/lib/catalog/properties/property-string.js +0 -56
- package/lib/catalog/properties/property-string.js.map +0 -1
- package/lib/catalog/properties/property-toggle.js +0 -47
- package/lib/catalog/properties/property-toggle.js.map +0 -1
- package/lib/catalog/properties/shared-property-style.js +0 -21
- package/lib/catalog/properties/shared-property-style.js.map +0 -1
- package/lib/catalog/utils/FuseUtils.js +0 -89
- package/lib/catalog/utils/FuseUtils.js.map +0 -1
- package/lib/catalog/utils/exporter.js +0 -156
- package/lib/catalog/utils/exporter.js.map +0 -1
- package/lib/catalog/utils/geom-utils.js +0 -206
- package/lib/catalog/utils/geom-utils.js.map +0 -1
- package/lib/catalog/utils/item-loader.js +0 -1534
- package/lib/catalog/utils/item-loader.js.map +0 -1
- package/lib/catalog/utils/load-obj.js +0 -100
- package/lib/catalog/utils/load-obj.js.map +0 -1
- package/lib/catalog/utils/mtl-loader.js +0 -360
- package/lib/catalog/utils/mtl-loader.js.map +0 -1
- package/lib/catalog/utils/obj-loader.js +0 -479
- package/lib/catalog/utils/obj-loader.js.map +0 -1
- package/lib/class/FuseUtils.js +0 -89
- package/lib/class/FuseUtils.js.map +0 -1
- package/lib/class/area.js +0 -151
- package/lib/class/area.js.map +0 -1
- package/lib/class/export.js +0 -97
- package/lib/class/export.js.map +0 -1
- package/lib/class/group.js +0 -446
- package/lib/class/group.js.map +0 -1
- package/lib/class/guide.js +0 -68
- package/lib/class/guide.js.map +0 -1
- package/lib/class/hole.js +0 -935
- package/lib/class/hole.js.map +0 -1
- package/lib/class/item.js +0 -1894
- package/lib/class/item.js.map +0 -1
- package/lib/class/layer.js +0 -673
- package/lib/class/layer.js.map +0 -1
- package/lib/class/line.js +0 -1296
- package/lib/class/line.js.map +0 -1
- package/lib/class/project.js +0 -829
- package/lib/class/project.js.map +0 -1
- package/lib/class/vertex.js +0 -272
- package/lib/class/vertex.js.map +0 -1
- package/lib/components/atoms/Snackbar/index.js +0 -57
- package/lib/components/atoms/Snackbar/index.js.map +0 -1
- package/lib/components/atoms/radio-button/index.js +0 -33
- package/lib/components/atoms/radio-button/index.js.map +0 -1
- package/lib/components/atoms/radio-button/styles.js +0 -12
- package/lib/components/atoms/radio-button/styles.js.map +0 -1
- package/lib/components/button/MainButton.js +0 -98
- package/lib/components/button/MainButton.js.map +0 -1
- package/lib/components/button/ToggleMeasureButton.js +0 -63
- package/lib/components/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/catalog-view/catalog-breadcrumb.js +0 -61
- package/lib/components/catalog-view/catalog-breadcrumb.js.map +0 -1
- package/lib/components/catalog-view/catalog-item.js +0 -233
- package/lib/components/catalog-view/catalog-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-list.js +0 -189
- package/lib/components/catalog-view/catalog-list.js.map +0 -1
- package/lib/components/catalog-view/catalog-page-item.js +0 -137
- package/lib/components/catalog-view/catalog-page-item.js.map +0 -1
- package/lib/components/catalog-view/catalog-turn-back-page-item.js +0 -113
- package/lib/components/catalog-view/catalog-turn-back-page-item.js.map +0 -1
- package/lib/components/configurator/custom-configurator.js +0 -101
- package/lib/components/configurator/custom-configurator.js.map +0 -1
- package/lib/components/configurator/project-configurator.js +0 -138
- package/lib/components/configurator/project-configurator.js.map +0 -1
- package/lib/components/content.js +0 -132
- package/lib/components/content.js.map +0 -1
- package/lib/components/export.js +0 -90
- package/lib/components/export.js.map +0 -1
- package/lib/components/firstsetting/button/styles.js +0 -34
- package/lib/components/firstsetting/button/styles.js.map +0 -1
- package/lib/components/firstsetting/export.js +0 -16
- package/lib/components/firstsetting/export.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-content-button.js +0 -224
- package/lib/components/firstsetting/firstsetting-content-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting-toggle-button.js +0 -133
- package/lib/components/firstsetting/firstsetting-toggle-button.js.map +0 -1
- package/lib/components/firstsetting/firstsetting.js +0 -633
- package/lib/components/firstsetting/firstsetting.js.map +0 -1
- package/lib/components/footerbar/button/ControlButton.js +0 -79
- package/lib/components/footerbar/button/ControlButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionButton.js +0 -76
- package/lib/components/footerbar/button/DirectionButton.js.map +0 -1
- package/lib/components/footerbar/button/DirectionPanSpinButton.js +0 -57
- package/lib/components/footerbar/button/DirectionPanSpinButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleButton.js +0 -83
- package/lib/components/footerbar/button/ToggleButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleConvertButton.js +0 -80
- package/lib/components/footerbar/button/ToggleConvertButton.js.map +0 -1
- package/lib/components/footerbar/button/ToggleMeasureButton.js +0 -59
- package/lib/components/footerbar/button/ToggleMeasureButton.js.map +0 -1
- package/lib/components/footerbar/button/styles.js +0 -29
- package/lib/components/footerbar/button/styles.js.map +0 -1
- package/lib/components/footerbar/export.js +0 -16
- package/lib/components/footerbar/export.js.map +0 -1
- package/lib/components/footerbar/footer-content-button.js +0 -224
- package/lib/components/footerbar/footer-content-button.js.map +0 -1
- package/lib/components/footerbar/footer-toggle-button.js +0 -133
- package/lib/components/footerbar/footer-toggle-button.js.map +0 -1
- package/lib/components/footerbar/footerbar.js +0 -808
- package/lib/components/footerbar/footerbar.js.map +0 -1
- package/lib/components/footerbar/styles.js +0 -41
- package/lib/components/footerbar/styles.js.map +0 -1
- package/lib/components/header/button/MenuButton.js +0 -77
- package/lib/components/header/button/MenuButton.js.map +0 -1
- package/lib/components/header/button/SaveButton.js +0 -57
- package/lib/components/header/button/SaveButton.js.map +0 -1
- package/lib/components/header/button/styles.js +0 -68
- package/lib/components/header/button/styles.js.map +0 -1
- package/lib/components/header/export.js +0 -12
- package/lib/components/header/export.js.map +0 -1
- package/lib/components/header/header.js +0 -556
- package/lib/components/header/header.js.map +0 -1
- package/lib/components/header/styles.js +0 -47
- package/lib/components/header/styles.js.map +0 -1
- package/lib/components/login/Login.js +0 -94
- package/lib/components/login/Login.js.map +0 -1
- package/lib/components/login/LoginForm/index.js +0 -140
- package/lib/components/login/LoginForm/index.js.map +0 -1
- package/lib/components/login/Register.js +0 -104
- package/lib/components/login/Register.js.map +0 -1
- package/lib/components/login/RegisterForm/index.js +0 -237
- package/lib/components/login/RegisterForm/index.js.map +0 -1
- package/lib/components/login/jwtService.js +0 -239
- package/lib/components/login/jwtService.js.map +0 -1
- package/lib/components/molecules/slider/index.js +0 -22
- package/lib/components/molecules/slider/index.js.map +0 -1
- package/lib/components/molecules/slider/styles.js +0 -2
- package/lib/components/molecules/slider/styles.js.map +0 -1
- package/lib/components/myprojects/export.js +0 -12
- package/lib/components/myprojects/export.js.map +0 -1
- package/lib/components/myprojects/index.js +0 -453
- package/lib/components/myprojects/index.js.map +0 -1
- package/lib/components/myprojects/styles.js +0 -31
- package/lib/components/myprojects/styles.js.map +0 -1
- package/lib/components/sidebar/custom-accordion.js +0 -45
- package/lib/components/sidebar/custom-accordion.js.map +0 -1
- package/lib/components/sidebar/export.js +0 -50
- package/lib/components/sidebar/export.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js +0 -74
- package/lib/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js +0 -124
- package/lib/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js +0 -135
- package/lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js +0 -260
- package/lib/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js +0 -84
- package/lib/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/element-editor.js +0 -884
- package/lib/components/sidebar/panel-element-editor/element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js +0 -2
- package/lib/components/sidebar/panel-element-editor/multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js +0 -56
- package/lib/components/sidebar/panel-element-editor/panel-element-editor.js.map +0 -1
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js +0 -125
- package/lib/components/sidebar/panel-element-editor/panel-multi-elements-editor.js.map +0 -1
- package/lib/components/sidebar/panel-group-editor.js +0 -218
- package/lib/components/sidebar/panel-group-editor.js.map +0 -1
- package/lib/components/sidebar/panel-groups.js +0 -274
- package/lib/components/sidebar/panel-groups.js.map +0 -1
- package/lib/components/sidebar/panel-guides.js +0 -192
- package/lib/components/sidebar/panel-guides.js.map +0 -1
- package/lib/components/sidebar/panel-layer-elements.js +0 -258
- package/lib/components/sidebar/panel-layer-elements.js.map +0 -1
- package/lib/components/sidebar/panel-layers.js +0 -347
- package/lib/components/sidebar/panel-layers.js.map +0 -1
- package/lib/components/sidebar/panel.js +0 -110
- package/lib/components/sidebar/panel.js.map +0 -1
- package/lib/components/sidebar/sidebar.js +0 -117
- package/lib/components/sidebar/sidebar.js.map +0 -1
- package/lib/components/sidebar/toolbar-panel.js +0 -171
- package/lib/components/sidebar/toolbar-panel.js.map +0 -1
- package/lib/components/sign/export.js +0 -18
- package/lib/components/sign/export.js.map +0 -1
- package/lib/components/sign/main/index.js +0 -567
- package/lib/components/sign/main/index.js.map +0 -1
- package/lib/components/sign/main/styles.js +0 -27
- package/lib/components/sign/main/styles.js.map +0 -1
- package/lib/components/style/button.js +0 -121
- package/lib/components/style/button.js.map +0 -1
- package/lib/components/style/cancel-button.js +0 -30
- package/lib/components/style/cancel-button.js.map +0 -1
- package/lib/components/style/content-container.js +0 -41
- package/lib/components/style/content-container.js.map +0 -1
- package/lib/components/style/content-title.js +0 -38
- package/lib/components/style/content-title.js.map +0 -1
- package/lib/components/style/delete-button.js +0 -35
- package/lib/components/style/delete-button.js.map +0 -1
- package/lib/components/style/export.js +0 -122
- package/lib/components/style/export.js.map +0 -1
- package/lib/components/style/form-block.js +0 -32
- package/lib/components/style/form-block.js.map +0 -1
- package/lib/components/style/form-color-input.js +0 -35
- package/lib/components/style/form-color-input.js.map +0 -1
- package/lib/components/style/form-label.js +0 -34
- package/lib/components/style/form-label.js.map +0 -1
- package/lib/components/style/form-number-input.js +0 -197
- package/lib/components/style/form-number-input.js.map +0 -1
- package/lib/components/style/form-number-input_2.js +0 -214
- package/lib/components/style/form-number-input_2.js.map +0 -1
- package/lib/components/style/form-select.js +0 -30
- package/lib/components/style/form-select.js.map +0 -1
- package/lib/components/style/form-slider.js +0 -53
- package/lib/components/style/form-slider.js.map +0 -1
- package/lib/components/style/form-submit-button.js +0 -36
- package/lib/components/style/form-submit-button.js.map +0 -1
- package/lib/components/style/form-text-input.js +0 -84
- package/lib/components/style/form-text-input.js.map +0 -1
- package/lib/components/toolbar/button/ControlButton.js +0 -76
- package/lib/components/toolbar/button/ControlButton.js.map +0 -1
- package/lib/components/toolbar/button/DirectionButton.js +0 -57
- package/lib/components/toolbar/button/DirectionButton.js.map +0 -1
- package/lib/components/toolbar/button/RightButton.js +0 -140
- package/lib/components/toolbar/button/RightButton.js.map +0 -1
- package/lib/components/toolbar/button/ToggleButton.js +0 -66
- package/lib/components/toolbar/button/ToggleButton.js.map +0 -1
- package/lib/components/toolbar/button/index.js +0 -94
- package/lib/components/toolbar/button/index.js.map +0 -1
- package/lib/components/toolbar/button/styles.js +0 -21
- package/lib/components/toolbar/button/styles.js.map +0 -1
- package/lib/components/toolbar/components/DoorStyleMenu.js +0 -112
- package/lib/components/toolbar/components/DoorStyleMenu.js.map +0 -1
- package/lib/components/toolbar/components/Pricing.js +0 -110
- package/lib/components/toolbar/components/Pricing.js.map +0 -1
- package/lib/components/toolbar/components/ReviewForQuote.js +0 -485
- package/lib/components/toolbar/components/ReviewForQuote.js.map +0 -1
- package/lib/components/toolbar/export.js +0 -50
- package/lib/components/toolbar/export.js.map +0 -1
- package/lib/components/toolbar/main/Alert.js +0 -132
- package/lib/components/toolbar/main/Alert.js.map +0 -1
- package/lib/components/toolbar/main/TakePictureModal.js +0 -109
- package/lib/components/toolbar/main/TakePictureModal.js.map +0 -1
- package/lib/components/toolbar/main/confirm-popup.js +0 -95
- package/lib/components/toolbar/main/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/main/index.js +0 -4619
- package/lib/components/toolbar/main/index.js.map +0 -1
- package/lib/components/toolbar/main/myComponents.js +0 -125
- package/lib/components/toolbar/main/myComponents.js.map +0 -1
- package/lib/components/toolbar/main/styles.js +0 -73
- package/lib/components/toolbar/main/styles.js.map +0 -1
- package/lib/components/toolbar/plugin-item.js +0 -156
- package/lib/components/toolbar/plugin-item.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js +0 -86
- package/lib/components/toolbar/popup/appliance/appliance-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js +0 -85
- package/lib/components/toolbar/popup/appliance/choose-appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/appliance/index.js +0 -89
- package/lib/components/toolbar/popup/appliance/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/index.js +0 -99
- package/lib/components/toolbar/popup/autosaveprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/autosaveprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/autosaveprompt/styles.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js +0 -86
- package/lib/components/toolbar/popup/cabinet/cabinet-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js +0 -107
- package/lib/components/toolbar/popup/cabinet/choose-product/index.js.map +0 -1
- package/lib/components/toolbar/popup/cabinet/index.js +0 -91
- package/lib/components/toolbar/popup/cabinet/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js +0 -59
- package/lib/components/toolbar/popup/doorStyle/choose-style/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/index.js +0 -68
- package/lib/components/toolbar/popup/doorStyle/index.js.map +0 -1
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js +0 -152
- package/lib/components/toolbar/popup/doorStyle/style-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -9
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryContext.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js +0 -128
- package/lib/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/index.js +0 -572
- package/lib/components/toolbar/popup/downloadsummary/index.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js +0 -60
- package/lib/components/toolbar/popup/downloadsummary/show2D/show2DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js +0 -200
- package/lib/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js +0 -254
- package/lib/components/toolbar/popup/downloadsummary/show3D/show3DView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js +0 -1762
- package/lib/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -96
- package/lib/components/toolbar/popup/downloadsummary/showCabinetInfo.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js +0 -125
- package/lib/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js +0 -1713
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js +0 -184
- package/lib/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js +0 -115
- package/lib/components/toolbar/popup/downloadsummary/showWarranty.js.map +0 -1
- package/lib/components/toolbar/popup/downloadsummary/styles.js +0 -47
- package/lib/components/toolbar/popup/downloadsummary/styles.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/category/index.js +0 -44
- package/lib/components/toolbar/popup/finishingtouch/category/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/index.js +0 -54
- package/lib/components/toolbar/popup/finishingtouch/index.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js +0 -163
- package/lib/components/toolbar/popup/finishingtouch/material-edit.js.map +0 -1
- package/lib/components/toolbar/popup/finishingtouch/product/index.js +0 -65
- package/lib/components/toolbar/popup/finishingtouch/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js +0 -124
- package/lib/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js +0 -255
- package/lib/components/toolbar/popup/floorplan/choose-floor/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -20
- package/lib/components/toolbar/popup/floorplan/choose-floor/styles.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js +0 -99
- package/lib/components/toolbar/popup/floorplan/floor-category/index.js.map +0 -1
- package/lib/components/toolbar/popup/floorplan/index.js +0 -56
- package/lib/components/toolbar/popup/floorplan/index.js.map +0 -1
- package/lib/components/toolbar/popup/index.js +0 -195
- package/lib/components/toolbar/popup/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/index.js +0 -75
- package/lib/components/toolbar/popup/newproject/index.js.map +0 -1
- package/lib/components/toolbar/popup/newproject/styles.js +0 -16
- package/lib/components/toolbar/popup/newproject/styles.js.map +0 -1
- package/lib/components/toolbar/popup/product/appliance.js +0 -73
- package/lib/components/toolbar/popup/product/appliance.js.map +0 -1
- package/lib/components/toolbar/popup/product/cabinetproduct.js +0 -33
- package/lib/components/toolbar/popup/product/cabinetproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyle.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyle.js.map +0 -1
- package/lib/components/toolbar/popup/product/doorstyleproduct.js +0 -59
- package/lib/components/toolbar/popup/product/doorstyleproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/floor.js +0 -59
- package/lib/components/toolbar/popup/product/floor.js.map +0 -1
- package/lib/components/toolbar/popup/product/floorproduct.js +0 -68
- package/lib/components/toolbar/popup/product/floorproduct.js.map +0 -1
- package/lib/components/toolbar/popup/product/index.js +0 -59
- package/lib/components/toolbar/popup/product/index.js.map +0 -1
- package/lib/components/toolbar/popup/product/primary.js +0 -71
- package/lib/components/toolbar/popup/product/primary.js.map +0 -1
- package/lib/components/toolbar/popup/product/productline.js +0 -128
- package/lib/components/toolbar/popup/product/productline.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewItem.js +0 -346
- package/lib/components/toolbar/popup/product/reviewItem.js.map +0 -1
- package/lib/components/toolbar/popup/product/reviewMolding.js +0 -291
- package/lib/components/toolbar/popup/product/reviewMolding.js.map +0 -1
- package/lib/components/toolbar/popup/product/styles.js +0 -79
- package/lib/components/toolbar/popup/product/styles.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js +0 -169
- package/lib/components/toolbar/popup/savedesign/FullPictureForm.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/index.js +0 -516
- package/lib/components/toolbar/popup/savedesign/index.js.map +0 -1
- package/lib/components/toolbar/popup/savedesign/styles.js +0 -26
- package/lib/components/toolbar/popup/savedesign/styles.js.map +0 -1
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js +0 -64
- package/lib/components/toolbar/popup/setDoorStyleOption/index.js.map +0 -1
- package/lib/components/toolbar/popup/styles.js +0 -104
- package/lib/components/toolbar/popup/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js +0 -166
- package/lib/components/toolbar/popup/submitforquote/AddToCartOptions.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js +0 -93
- package/lib/components/toolbar/popup/submitforquote/CustomerRequestsForm.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js +0 -45
- package/lib/components/toolbar/popup/submitforquote/SkipDesignerReview.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/StepDots.js +0 -40
- package/lib/components/toolbar/popup/submitforquote/StepDots.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js +0 -141
- package/lib/components/toolbar/popup/submitforquote/cart-choice.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -50
- package/lib/components/toolbar/popup/submitforquote/doorstyle-menus.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/index.js +0 -698
- package/lib/components/toolbar/popup/submitforquote/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitforquote/styles.js +0 -38
- package/lib/components/toolbar/popup/submitforquote/styles.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/index.js +0 -79
- package/lib/components/toolbar/popup/submitprompt/index.js.map +0 -1
- package/lib/components/toolbar/popup/submitprompt/styles.js +0 -16
- package/lib/components/toolbar/popup/submitprompt/styles.js.map +0 -1
- package/lib/components/toolbar/toolbar-button.js +0 -111
- package/lib/components/toolbar/toolbar-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-load-button.js +0 -36
- package/lib/components/toolbar/toolbar-load-button.js.map +0 -1
- package/lib/components/toolbar/toolbar-save-button.js +0 -34
- package/lib/components/toolbar/toolbar-save-button.js.map +0 -1
- package/lib/components/tutorial-view/Modal.js +0 -503
- package/lib/components/tutorial-view/Modal.js.map +0 -1
- package/lib/components/tutorial-view/styles.js +0 -13
- package/lib/components/tutorial-view/styles.js.map +0 -1
- package/lib/components/viewer2d/area.js +0 -90
- package/lib/components/viewer2d/area.js.map +0 -1
- package/lib/components/viewer2d/export.js +0 -122
- package/lib/components/viewer2d/export.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer2d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer2d/grids/grids.js +0 -45
- package/lib/components/viewer2d/grids/grids.js.map +0 -1
- package/lib/components/viewer2d/group.js +0 -63
- package/lib/components/viewer2d/group.js.map +0 -1
- package/lib/components/viewer2d/item.js +0 -522
- package/lib/components/viewer2d/item.js.map +0 -1
- package/lib/components/viewer2d/layer.js +0 -172
- package/lib/components/viewer2d/layer.js.map +0 -1
- package/lib/components/viewer2d/line.js +0 -899
- package/lib/components/viewer2d/line.js.map +0 -1
- package/lib/components/viewer2d/ruler.js +0 -108
- package/lib/components/viewer2d/ruler.js.map +0 -1
- package/lib/components/viewer2d/rulerDist.js +0 -154
- package/lib/components/viewer2d/rulerDist.js.map +0 -1
- package/lib/components/viewer2d/rulerX.js +0 -159
- package/lib/components/viewer2d/rulerX.js.map +0 -1
- package/lib/components/viewer2d/rulerY.js +0 -161
- package/lib/components/viewer2d/rulerY.js.map +0 -1
- package/lib/components/viewer2d/scene.js +0 -148
- package/lib/components/viewer2d/scene.js.map +0 -1
- package/lib/components/viewer2d/snap.js +0 -84
- package/lib/components/viewer2d/snap.js.map +0 -1
- package/lib/components/viewer2d/state.js +0 -88
- package/lib/components/viewer2d/state.js.map +0 -1
- package/lib/components/viewer2d/utils.js +0 -174
- package/lib/components/viewer2d/utils.js.map +0 -1
- package/lib/components/viewer2d/vertex.js +0 -76
- package/lib/components/viewer2d/vertex.js.map +0 -1
- package/lib/components/viewer2d/viewer2d.js +0 -1409
- package/lib/components/viewer2d/viewer2d.js.map +0 -1
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2598
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js.map +0 -1
- package/lib/components/viewer3d/dcm.js +0 -408
- package/lib/components/viewer3d/dcm.js.map +0 -1
- package/lib/components/viewer3d/fbm.js +0 -421
- package/lib/components/viewer3d/fbm.js.map +0 -1
- package/lib/components/viewer3d/front3D.js +0 -76
- package/lib/components/viewer3d/front3D.js.map +0 -1
- package/lib/components/viewer3d/grid-creator.js +0 -35
- package/lib/components/viewer3d/grid-creator.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-streak.js +0 -36
- package/lib/components/viewer3d/grids/grid-streak.js.map +0 -1
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +0 -45
- package/lib/components/viewer3d/grids/grid-vertical-streak.js.map +0 -1
- package/lib/components/viewer3d/libs/first-person-controls.js +0 -75
- package/lib/components/viewer3d/libs/first-person-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1288
- package/lib/components/viewer3d/libs/helvetiker_regular.typeface.js.map +0 -1
- package/lib/components/viewer3d/libs/mtl-loader.js +0 -360
- package/lib/components/viewer3d/libs/mtl-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/obj-loader.js +0 -465
- package/lib/components/viewer3d/libs/obj-loader.js.map +0 -1
- package/lib/components/viewer3d/libs/orbit-controls.js +0 -701
- package/lib/components/viewer3d/libs/orbit-controls.js.map +0 -1
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +0 -48
- package/lib/components/viewer3d/libs/pointer-lock-controls.js.map +0 -1
- package/lib/components/viewer3d/lrm.js +0 -312
- package/lib/components/viewer3d/lrm.js.map +0 -1
- package/lib/components/viewer3d/model.js +0 -715
- package/lib/components/viewer3d/model.js.map +0 -1
- package/lib/components/viewer3d/pointer-lock-navigation.js +0 -123
- package/lib/components/viewer3d/pointer-lock-navigation.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/itemRect.js +0 -69
- package/lib/components/viewer3d/ruler-utils/itemRect.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/layer3D.js +0 -503
- package/lib/components/viewer3d/ruler-utils/layer3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +0 -235
- package/lib/components/viewer3d/ruler-utils/ruler3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -70
- package/lib/components/viewer3d/ruler-utils/scene3D.js.map +0 -1
- package/lib/components/viewer3d/ruler-utils/state3D.js +0 -26
- package/lib/components/viewer3d/ruler-utils/state3D.js.map +0 -1
- package/lib/components/viewer3d/scene-creator.js +0 -3641
- package/lib/components/viewer3d/scene-creator.js.map +0 -1
- package/lib/components/viewer3d/three-memory-cleaner.js +0 -61
- package/lib/components/viewer3d/three-memory-cleaner.js.map +0 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +0 -321
- package/lib/components/viewer3d/viewer3d-first-person.js.map +0 -1
- package/lib/components/viewer3d/viewer3d.js +0 -2508
- package/lib/components/viewer3d/viewer3d.js.map +0 -1
- package/lib/components/wizardstep/button/styles.js +0 -67
- package/lib/components/wizardstep/button/styles.js.map +0 -1
- package/lib/components/wizardstep/export.js +0 -12
- package/lib/components/wizardstep/export.js.map +0 -1
- package/lib/components/wizardstep/index.js +0 -978
- package/lib/components/wizardstep/index.js.map +0 -1
- package/lib/components/wizardstep/styles.js +0 -68
- package/lib/components/wizardstep/styles.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-content-button.js +0 -224
- package/lib/components/wizardstep/wizardstep-content-button.js.map +0 -1
- package/lib/components/wizardstep/wizardstep-toggle-button.js +0 -133
- package/lib/components/wizardstep/wizardstep-toggle-button.js.map +0 -1
- package/lib/constants.js +0 -646
- package/lib/constants.js.map +0 -1
- package/lib/hooks/useCheckCart.js +0 -60
- package/lib/hooks/useCheckCart.js.map +0 -1
- package/lib/hooks/useGetPricesBySku.js +0 -81
- package/lib/hooks/useGetPricesBySku.js.map +0 -1
- package/lib/hooks/useValidateToken.js +0 -207
- package/lib/hooks/useValidateToken.js.map +0 -1
- package/lib/index.js +0 -102
- package/lib/index.js.map +0 -1
- package/lib/models.js +0 -518
- package/lib/models.js.map +0 -1
- package/lib/plugins/SVGLoader.js +0 -1418
- package/lib/plugins/SVGLoader.js.map +0 -1
- package/lib/plugins/autosave.js +0 -40
- package/lib/plugins/autosave.js.map +0 -1
- package/lib/plugins/console-debugger.js +0 -45
- package/lib/plugins/console-debugger.js.map +0 -1
- package/lib/plugins/export.js +0 -34
- package/lib/plugins/export.js.map +0 -1
- package/lib/plugins/keyboard.js +0 -108
- package/lib/plugins/keyboard.js.map +0 -1
- package/lib/reducers/areas-reducer.js +0 -19
- package/lib/reducers/areas-reducer.js.map +0 -1
- package/lib/reducers/export.js +0 -98
- package/lib/reducers/export.js.map +0 -1
- package/lib/reducers/groups-reducer.js +0 -45
- package/lib/reducers/groups-reducer.js.map +0 -1
- package/lib/reducers/holes-reducer.js +0 -69
- package/lib/reducers/holes-reducer.js.map +0 -1
- package/lib/reducers/items-reducer.js +0 -147
- package/lib/reducers/items-reducer.js.map +0 -1
- package/lib/reducers/lines-reducer.js +0 -52
- package/lib/reducers/lines-reducer.js.map +0 -1
- package/lib/reducers/project-reducer.js +0 -136
- package/lib/reducers/project-reducer.js.map +0 -1
- package/lib/reducers/reducer.js +0 -27
- package/lib/reducers/reducer.js.map +0 -1
- package/lib/reducers/scene-reducer.js +0 -35
- package/lib/reducers/scene-reducer.js.map +0 -1
- package/lib/reducers/user-reducer.js +0 -48
- package/lib/reducers/user-reducer.js.map +0 -1
- package/lib/reducers/vertices-reducer.js +0 -26
- package/lib/reducers/vertices-reducer.js.map +0 -1
- package/lib/reducers/viewer2d-reducer.js +0 -83
- package/lib/reducers/viewer2d-reducer.js.map +0 -1
- package/lib/reducers/viewer3d-reducer.js +0 -64
- package/lib/reducers/viewer3d-reducer.js.map +0 -1
- package/lib/shared-style.js +0 -73
- package/lib/shared-style.js.map +0 -1
- package/lib/styles/export.js +0 -14
- package/lib/styles/export.js.map +0 -1
- package/lib/translator/en.js +0 -111
- package/lib/translator/en.js.map +0 -1
- package/lib/translator/it.js +0 -86
- package/lib/translator/it.js.map +0 -1
- package/lib/translator/ru.js +0 -86
- package/lib/translator/ru.js.map +0 -1
- package/lib/translator/translator.js +0 -91
- package/lib/translator/translator.js.map +0 -1
- package/lib/utils/browser.js +0 -41
- package/lib/utils/browser.js.map +0 -1
- package/lib/utils/email-validator.js +0 -11
- package/lib/utils/email-validator.js.map +0 -1
- package/lib/utils/export.js +0 -57
- package/lib/utils/export.js.map +0 -1
- package/lib/utils/geometry.js +0 -2329
- package/lib/utils/geometry.js.map +0 -1
- package/lib/utils/get-edges-of-subgraphs.js +0 -29
- package/lib/utils/get-edges-of-subgraphs.js.map +0 -1
- package/lib/utils/graph-cycles.js +0 -241
- package/lib/utils/graph-cycles.js.map +0 -1
- package/lib/utils/graph-inner-cycles.js +0 -55
- package/lib/utils/graph-inner-cycles.js.map +0 -1
- package/lib/utils/graph.js +0 -152
- package/lib/utils/graph.js.map +0 -1
- package/lib/utils/helper.js +0 -360
- package/lib/utils/helper.js.map +0 -1
- package/lib/utils/history.js +0 -37
- package/lib/utils/history.js.map +0 -1
- package/lib/utils/id-broker.js +0 -26
- package/lib/utils/id-broker.js.map +0 -1
- package/lib/utils/logger.js +0 -15
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/math.js +0 -58
- package/lib/utils/math.js.map +0 -1
- package/lib/utils/molding.js +0 -864
- package/lib/utils/molding.js.map +0 -1
- package/lib/utils/name-generator.js +0 -24
- package/lib/utils/name-generator.js.map +0 -1
- package/lib/utils/objects-utils.js +0 -61
- package/lib/utils/objects-utils.js.map +0 -1
- package/lib/utils/phone-validator.js +0 -11
- package/lib/utils/phone-validator.js.map +0 -1
- package/lib/utils/process-black-list.js +0 -25
- package/lib/utils/process-black-list.js.map +0 -1
- package/lib/utils/react-if.js +0 -25
- package/lib/utils/react-if.js.map +0 -1
- package/lib/utils/snap-scene.js +0 -106
- package/lib/utils/snap-scene.js.map +0 -1
- package/lib/utils/snap.js +0 -250
- package/lib/utils/snap.js.map +0 -1
- package/lib/utils/threeCSG.es6.js +0 -504
- package/lib/utils/threeCSG.es6.js.map +0 -1
- package/lib/version.js +0 -8
- package/lib/version.js.map +0 -1
|
@@ -1,556 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
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); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var Icon = _interopRequireWildcard(require("react-icons/fa"));
|
|
11
|
-
var _reactjsPopup = _interopRequireDefault(require("reactjs-popup"));
|
|
12
|
-
var _constants = require("../../constants");
|
|
13
|
-
var _export = require("../style/export");
|
|
14
|
-
require("./header.style.css");
|
|
15
|
-
var PS = _interopRequireWildcard(require("./styles"));
|
|
16
|
-
var _index = _interopRequireDefault(require("../atoms/Snackbar/index"));
|
|
17
|
-
var _SaveButton = require("../../../src/components/header/button/SaveButton");
|
|
18
|
-
var _core = require("@material-ui/core");
|
|
19
|
-
var _Info = _interopRequireDefault(require("@material-ui/icons/Info"));
|
|
20
|
-
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
21
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
22
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
23
|
-
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; }
|
|
24
|
-
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; }
|
|
25
|
-
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; }
|
|
26
|
-
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 }; })(); }
|
|
27
|
-
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); }
|
|
28
|
-
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); }
|
|
29
|
-
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); }); }; }
|
|
30
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
31
|
-
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); } }
|
|
32
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
33
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
|
-
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); }
|
|
35
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
36
|
-
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); }
|
|
37
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
38
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
39
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
40
|
-
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); }
|
|
41
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
42
|
-
var AWS = require('aws-sdk');
|
|
43
|
-
var s3 = new AWS.S3({
|
|
44
|
-
accessKeyId: process.env.REACT_APP_AWS_ID,
|
|
45
|
-
secretAccessKey: process.env.REACT_APP_AWS_SECRET
|
|
46
|
-
});
|
|
47
|
-
var headerBarStyle = {
|
|
48
|
-
position: 'absolute',
|
|
49
|
-
top: 0,
|
|
50
|
-
// fontSize: '12px',
|
|
51
|
-
borderBottom: '1px solid #e8e8e8',
|
|
52
|
-
display: 'flex',
|
|
53
|
-
// backgroundColor: SharedStyle.SECONDARY_COLOR.alt,
|
|
54
|
-
boxShadow: '3px 1px 3px 0px rgba(0,0,0,0.2), -1px -1px 1px 0px rgba(0,0,0,0.14), 0px 2px 1px -1px rgba(0,0,0,0.12)',
|
|
55
|
-
backgroundColor: '#fff',
|
|
56
|
-
padding: '3px 1em',
|
|
57
|
-
textAlign: 'center',
|
|
58
|
-
border: 0,
|
|
59
|
-
margin: 0,
|
|
60
|
-
boxSizing: 'border-box',
|
|
61
|
-
cursor: 'default',
|
|
62
|
-
userSelect: 'none',
|
|
63
|
-
zIndex: '199'
|
|
64
|
-
};
|
|
65
|
-
var inputStyle = {
|
|
66
|
-
textAlign: 'left',
|
|
67
|
-
height: '32px',
|
|
68
|
-
border: 'unset'
|
|
69
|
-
};
|
|
70
|
-
var uploadFiles = function uploadFiles(data, filePath) {
|
|
71
|
-
var p1 = new Promise(function (resolve, reject) {
|
|
72
|
-
var params = {
|
|
73
|
-
Bucket: process.env.REACT_APP_AWS_BUCKET_NAME,
|
|
74
|
-
Key: filePath,
|
|
75
|
-
Body: data,
|
|
76
|
-
ContentType: 'application/json',
|
|
77
|
-
ACL: 'public-read'
|
|
78
|
-
};
|
|
79
|
-
s3.putObject(params, function (err, data) {
|
|
80
|
-
if (err) {
|
|
81
|
-
reject(err);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
console.log('success');
|
|
85
|
-
resolve([data.Location]);
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
return p1;
|
|
89
|
-
};
|
|
90
|
-
var Header = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
91
|
-
function Header(props, context) {
|
|
92
|
-
var _this;
|
|
93
|
-
_classCallCheck(this, Header);
|
|
94
|
-
_this = _callSuper(this, Header, [props, context]);
|
|
95
|
-
_this.state = {
|
|
96
|
-
HamburgerMenuOpen: false,
|
|
97
|
-
renameForm: false,
|
|
98
|
-
renameTitle: ' ',
|
|
99
|
-
saveAsBtnClicked: false,
|
|
100
|
-
isSnackBarOpen: false,
|
|
101
|
-
snackBarMessage: '',
|
|
102
|
-
isLoading: false
|
|
103
|
-
};
|
|
104
|
-
return _this;
|
|
105
|
-
}
|
|
106
|
-
_inherits(Header, _Component);
|
|
107
|
-
return _createClass(Header, [{
|
|
108
|
-
key: "canSubmit",
|
|
109
|
-
value: function canSubmit() {
|
|
110
|
-
return this.state.renameTitle !== '';
|
|
111
|
-
}
|
|
112
|
-
}, {
|
|
113
|
-
key: "renameFormToggle",
|
|
114
|
-
value: function renameFormToggle(data) {
|
|
115
|
-
var saveAsBtnClicked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
116
|
-
if (this.canSubmit()) {
|
|
117
|
-
this.setState({
|
|
118
|
-
renameForm: data,
|
|
119
|
-
saveAsBtnClicked: saveAsBtnClicked
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
this.setState({
|
|
123
|
-
isSnackBarOpen: true,
|
|
124
|
-
snackBarMessage: 'This field is required'
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}, {
|
|
129
|
-
key: "onRenameTitleChange",
|
|
130
|
-
value: function onRenameTitleChange(ev) {
|
|
131
|
-
this.setState({
|
|
132
|
-
renameTitle: ev.target.value
|
|
133
|
-
});
|
|
134
|
-
sessionStorage.setItem('projectTitle', ev.target.value);
|
|
135
|
-
this.context.projectActions.rename(ev.target.value);
|
|
136
|
-
}
|
|
137
|
-
}, {
|
|
138
|
-
key: "renameTitleSubmit",
|
|
139
|
-
value: function renameTitleSubmit(ev) {
|
|
140
|
-
ev.preventDefault();
|
|
141
|
-
if (!this.canSubmit()) {
|
|
142
|
-
this.renameFormToggle(false);
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
this.setState({
|
|
146
|
-
renameForm: false,
|
|
147
|
-
renameTitle: this.state.renameTitle
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
}, {
|
|
151
|
-
key: "handlePopupClose",
|
|
152
|
-
value: function handlePopupClose(e) {
|
|
153
|
-
var HamburgerMenuOpen = this.state.HamburgerMenuOpen;
|
|
154
|
-
this.setState({
|
|
155
|
-
HamburgerMenuOpen: !HamburgerMenuOpen
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}, {
|
|
159
|
-
key: "render",
|
|
160
|
-
value: function render() {
|
|
161
|
-
var _this2 = this;
|
|
162
|
-
var _this$props = this.props,
|
|
163
|
-
state = _this$props.state,
|
|
164
|
-
width = _this$props.width,
|
|
165
|
-
height = _this$props.height,
|
|
166
|
-
_saveProject = _this$props.saveProject,
|
|
167
|
-
newProject = _this$props.newProject,
|
|
168
|
-
handleSaveDesign = _this$props.handleSaveDesign,
|
|
169
|
-
handleSubmitForQuote = _this$props.handleSubmitForQuote,
|
|
170
|
-
handleNewProject = _this$props.handleNewProject,
|
|
171
|
-
isModalVisible = _this$props.isModalVisible,
|
|
172
|
-
handleSubmitPrompt = _this$props.handleSubmitPrompt,
|
|
173
|
-
_this$context = this.context,
|
|
174
|
-
projectActions = _this$context.projectActions,
|
|
175
|
-
userActions = _this$context.userActions,
|
|
176
|
-
translator = _this$context.translator;
|
|
177
|
-
var _this$state = this.state,
|
|
178
|
-
HamburgerMenuOpen = _this$state.HamburgerMenuOpen,
|
|
179
|
-
renameTitle = _this$state.renameTitle,
|
|
180
|
-
renameForm = _this$state.renameForm,
|
|
181
|
-
saveAsBtnClicked = _this$state.saveAsBtnClicked,
|
|
182
|
-
isLoading = _this$state.isLoading;
|
|
183
|
-
var userInfo = [];
|
|
184
|
-
if (this.props.match) userInfo = this.props.match.params;
|
|
185
|
-
// let projectTitle = sessionStorage.getItem('projectTitle');
|
|
186
|
-
var projectTitle = state.scene.title;
|
|
187
|
-
var projectId = sessionStorage.getItem('projectId');
|
|
188
|
-
if (projectTitle == null || projectTitle == '') {
|
|
189
|
-
sessionStorage.setItem('projectTitle', 'Untitled');
|
|
190
|
-
this.context.projectActions.rename('Untitled');
|
|
191
|
-
projectTitle = 'Untitled';
|
|
192
|
-
}
|
|
193
|
-
var _handleSaveBtn = /*#__PURE__*/function () {
|
|
194
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(_ref) {
|
|
195
|
-
var _ref$showPrompt, showPrompt, extraFormData;
|
|
196
|
-
return _regenerator().w(function (_context) {
|
|
197
|
-
while (1) switch (_context.n) {
|
|
198
|
-
case 0:
|
|
199
|
-
_ref$showPrompt = _ref.showPrompt, showPrompt = _ref$showPrompt === void 0 ? true : _ref$showPrompt;
|
|
200
|
-
if (!showPrompt) {
|
|
201
|
-
_context.n = 1;
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
handleSaveDesign(true);
|
|
205
|
-
_context.n = 3;
|
|
206
|
-
break;
|
|
207
|
-
case 1:
|
|
208
|
-
_this2.setState({
|
|
209
|
-
isLoading: true
|
|
210
|
-
});
|
|
211
|
-
extraFormData = {
|
|
212
|
-
userType: sessionStorage.getItem('user_type') || '',
|
|
213
|
-
designType: sessionStorage.getItem('project_type') || '',
|
|
214
|
-
startTime: sessionStorage.getItem('project_timeline') || ''
|
|
215
|
-
}; // It's a saved project, Save the changed project
|
|
216
|
-
_context.n = 2;
|
|
217
|
-
return _this2.props.saveProject({
|
|
218
|
-
projectName: state.scene.title,
|
|
219
|
-
projectId: sessionStorage.getItem('projectId'),
|
|
220
|
-
email: sessionStorage.getItem('email'),
|
|
221
|
-
firstName: sessionStorage.getItem('firstName'),
|
|
222
|
-
lastName: sessionStorage.getItem('lastName'),
|
|
223
|
-
phone: sessionStorage.getItem('phone'),
|
|
224
|
-
user_type: extraFormData.userType,
|
|
225
|
-
project_type: extraFormData.designType,
|
|
226
|
-
project_timeline: extraFormData.startTime
|
|
227
|
-
});
|
|
228
|
-
case 2:
|
|
229
|
-
_this2.setState({
|
|
230
|
-
isLoading: false
|
|
231
|
-
});
|
|
232
|
-
case 3:
|
|
233
|
-
return _context.a(2);
|
|
234
|
-
}
|
|
235
|
-
}, _callee);
|
|
236
|
-
}));
|
|
237
|
-
return function handleSaveBtn(_x) {
|
|
238
|
-
return _ref2.apply(this, arguments);
|
|
239
|
-
};
|
|
240
|
-
}();
|
|
241
|
-
var newProjectBtn = function newProjectBtn() {
|
|
242
|
-
if (sessionStorage.getItem('asking')) newProject();else handleNewProject(true);
|
|
243
|
-
_this2.props.setToolbar('');
|
|
244
|
-
};
|
|
245
|
-
var saveProject = function saveProject(e) {
|
|
246
|
-
e.preventDefault();
|
|
247
|
-
_this2.setState({
|
|
248
|
-
HamburgerMenuOpen: !HamburgerMenuOpen
|
|
249
|
-
});
|
|
250
|
-
_saveProject();
|
|
251
|
-
};
|
|
252
|
-
var saveAsBtnClickEvent = function saveAsBtnClickEvent(e) {
|
|
253
|
-
e.preventDefault();
|
|
254
|
-
_this2.setState({
|
|
255
|
-
HamburgerMenuOpen: !HamburgerMenuOpen
|
|
256
|
-
});
|
|
257
|
-
projectActions.unselectAll();
|
|
258
|
-
_this2.renameFormToggle(true, true);
|
|
259
|
-
};
|
|
260
|
-
var snaplibrary = function snaplibrary(e) {
|
|
261
|
-
e.preventDefault();
|
|
262
|
-
projectActions.openCatalog();
|
|
263
|
-
_this2.setState({
|
|
264
|
-
HamburgerMenuOpen: !HamburgerMenuOpen
|
|
265
|
-
});
|
|
266
|
-
};
|
|
267
|
-
var objectProperty = '';
|
|
268
|
-
if (HamburgerMenuOpen) {
|
|
269
|
-
objectProperty = /*#__PURE__*/_react["default"].createElement(PS.SelectedWrapper, null, /*#__PURE__*/_react["default"].createElement(PS.TitleBar, null, /*#__PURE__*/_react["default"].createElement(PS.TitleBarIconButton, {
|
|
270
|
-
onClick: function onClick(e) {
|
|
271
|
-
_this2.setState({
|
|
272
|
-
HamburgerMenuOpen: !HamburgerMenuOpen
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}, /*#__PURE__*/_react["default"].createElement(Icon.FaTimes, null))), /*#__PURE__*/_react["default"].createElement(PS.ContentWrapper, null, /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
276
|
-
onClick: function onClick(e) {
|
|
277
|
-
_this2.props.history.push('/login');
|
|
278
|
-
userInfo.role !== undefined && userActions.logout();
|
|
279
|
-
}
|
|
280
|
-
}, userInfo.role === undefined ? 'Sign in' : 'Sign out'), /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
281
|
-
onClick: function onClick(e) {
|
|
282
|
-
_this2.props.history.push({
|
|
283
|
-
pathname: '/register',
|
|
284
|
-
state: {
|
|
285
|
-
type: 'register'
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
}, 'Register'), userInfo.role === 'admin' || userInfo.role === 'superadmin' && /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
290
|
-
onClick: function onClick(e) {
|
|
291
|
-
_this2.props.history.push({
|
|
292
|
-
pathname: '/register',
|
|
293
|
-
state: {
|
|
294
|
-
type: 'adduser'
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
}, "Add user"), /*#__PURE__*/_react["default"].createElement(PS.Diver, null), /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
299
|
-
onClick: function onClick(event) {
|
|
300
|
-
_this2.setState({
|
|
301
|
-
HamburgerMenuOpen: !HamburgerMenuOpen
|
|
302
|
-
});
|
|
303
|
-
confirm('Would you want to start a new Project?') ? (projectActions.newProject(), _this2.renameFormToggle(false), sessionStorage.removeItem('projectId'), sessionStorage.setItem('projectTitle', 'Untitled'), projectActions.rename('Untitled')) : null;
|
|
304
|
-
}
|
|
305
|
-
}, "New Project"), /*#__PURE__*/_react["default"].createElement(PS.Diver, null), userInfo.role === 'designer' || userInfo.role === 'customer' || userInfo.role === 'superdesigner' || userInfo.role === 'superadmin' ? /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
306
|
-
onClick: saveProject
|
|
307
|
-
}, "Save Project") : /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
308
|
-
onClick: function onClick(event) {
|
|
309
|
-
_this2.setState({
|
|
310
|
-
HamburgerMenuOpen: !HamburgerMenuOpen,
|
|
311
|
-
isSnackBarOpen: true,
|
|
312
|
-
snackBarMessage: 'You should Login.'
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
}, "Save Project"), /*#__PURE__*/_react["default"].createElement(PS.Diver, null), userInfo.role === 'designer' || userInfo.role === 'customer' || userInfo.role === 'superdesigner' || userInfo.role === 'superadmin' ? /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
316
|
-
onClick: saveAsBtnClickEvent
|
|
317
|
-
}, "Save As...") : /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
318
|
-
onClick: function onClick(event) {
|
|
319
|
-
_this2.setState({
|
|
320
|
-
HamburgerMenuOpen: !HamburgerMenuOpen,
|
|
321
|
-
isSnackBarOpen: true,
|
|
322
|
-
snackBarMessage: 'You should Login.'
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
}, "Save As..."), /*#__PURE__*/_react["default"].createElement(PS.Diver, null), userInfo.role === 'designer' || userInfo.role === 'customer' || userInfo.role === 'superdesigner' || userInfo.role === 'superadmin' ? /*#__PURE__*/_react["default"].createElement(PS.SubTitle, {
|
|
326
|
-
onClick: snaplibrary
|
|
327
|
-
}, "Open Project") : null));
|
|
328
|
-
}
|
|
329
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
330
|
-
style: _objectSpread(_objectSpread({}, headerBarStyle), {}, {
|
|
331
|
-
width: width,
|
|
332
|
-
height: height
|
|
333
|
-
})
|
|
334
|
-
}, /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
335
|
-
isOpen: this.state.isSnackBarOpen,
|
|
336
|
-
message: this.state.snackBarMessage,
|
|
337
|
-
handleClose: function handleClose() {
|
|
338
|
-
return _this2.setState({
|
|
339
|
-
isSnackBarOpen: false,
|
|
340
|
-
snackBarMessage: ''
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
344
|
-
style: {
|
|
345
|
-
display: 'flex',
|
|
346
|
-
alignItems: 'center'
|
|
347
|
-
}
|
|
348
|
-
}, /*#__PURE__*/_react["default"].createElement(PS.LogoBox, {
|
|
349
|
-
style: {
|
|
350
|
-
padding: 'unset'
|
|
351
|
-
}
|
|
352
|
-
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
353
|
-
href: this.props.companyURL,
|
|
354
|
-
target: "_blank"
|
|
355
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
356
|
-
height: "40px",
|
|
357
|
-
src: this.props.logoImage
|
|
358
|
-
}))), /*#__PURE__*/_react["default"].createElement(_reactjsPopup["default"], {
|
|
359
|
-
trigger: objectProperty,
|
|
360
|
-
open: this.state.HamburgerMenuOpen,
|
|
361
|
-
arrow: false
|
|
362
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
363
|
-
style: {
|
|
364
|
-
display: 'flex',
|
|
365
|
-
alignItems: 'center',
|
|
366
|
-
fontFamily: _constants.DEFAULT_FONT_FAMILY,
|
|
367
|
-
fontSize: 13,
|
|
368
|
-
fontWeight: 600,
|
|
369
|
-
lineHeight: '18px',
|
|
370
|
-
textAlign: 'center'
|
|
371
|
-
}
|
|
372
|
-
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
373
|
-
style: {
|
|
374
|
-
color: _constants.TEXT_COLOR_NEUTRAL_3,
|
|
375
|
-
fontSize: '16px',
|
|
376
|
-
fontWeight: 600,
|
|
377
|
-
lineHeight: '22px',
|
|
378
|
-
textAlign: 'center'
|
|
379
|
-
}
|
|
380
|
-
}, "Drafts"), /*#__PURE__*/_react["default"].createElement("p", {
|
|
381
|
-
style: {
|
|
382
|
-
color: _constants.TEXT_COLOR_NEUTRAL_0,
|
|
383
|
-
margin: '0px 3px'
|
|
384
|
-
}
|
|
385
|
-
}, "/"), renameForm ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
386
|
-
className: "header-projectname-wrapper"
|
|
387
|
-
}, /*#__PURE__*/_react["default"].createElement(PS.InputStyle, null, /*#__PURE__*/_react["default"].createElement(_export.FormTextInput, {
|
|
388
|
-
value: projectTitle ? projectTitle : renameTitle,
|
|
389
|
-
onChange: function onChange(e) {
|
|
390
|
-
_this2.onRenameTitleChange(e);
|
|
391
|
-
},
|
|
392
|
-
style: inputStyle,
|
|
393
|
-
onKeyDown: function onKeyDown(e) {
|
|
394
|
-
var keyCode = e.keyCode || e.which;
|
|
395
|
-
if (keyCode == _constants.KEYBOARD_BUTTON_CODE.ENTER) {
|
|
396
|
-
if (saveAsBtnClicked) {
|
|
397
|
-
saveProject(e);
|
|
398
|
-
}
|
|
399
|
-
_this2.renameFormToggle(false, false);
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
403
|
-
className: "header-projectname-wrapper"
|
|
404
|
-
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
405
|
-
style: {
|
|
406
|
-
color: _constants.TEXT_COLOR_NEUTRAL_0
|
|
407
|
-
},
|
|
408
|
-
onClick: isModalVisible ? null : function () {
|
|
409
|
-
return _this2.renameFormToggle(true, saveAsBtnClicked);
|
|
410
|
-
}
|
|
411
|
-
}, projectTitle ? projectTitle : renameTitle)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
412
|
-
style: {
|
|
413
|
-
display: 'flex',
|
|
414
|
-
alignItems: 'center',
|
|
415
|
-
gap: '1rem',
|
|
416
|
-
width: '100%'
|
|
417
|
-
}
|
|
418
|
-
}, !this.props.allVisible && /*#__PURE__*/_react["default"].createElement(_SaveButton.SaveButton, {
|
|
419
|
-
isSaved: this.props.isSaved,
|
|
420
|
-
handleSaveBtn: function handleSaveBtn() {
|
|
421
|
-
var showPrompt = false;
|
|
422
|
-
if (!_this2.props.isTokenPresent) {
|
|
423
|
-
showPrompt = true;
|
|
424
|
-
}
|
|
425
|
-
if (_this2.props.isTokenPresent && _this2.props.isSaved) {
|
|
426
|
-
showPrompt = true;
|
|
427
|
-
}
|
|
428
|
-
return _handleSaveBtn({
|
|
429
|
-
showPrompt: showPrompt
|
|
430
|
-
});
|
|
431
|
-
},
|
|
432
|
-
isLoading: isLoading
|
|
433
|
-
}), !this.props.allVisible && /*#__PURE__*/_react["default"].createElement(PS.SelectedBox, {
|
|
434
|
-
onClick: isModalVisible ? null : newProjectBtn
|
|
435
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
436
|
-
height: "18px",
|
|
437
|
-
src: "/assets/img/svg/headerbar/plus.svg"
|
|
438
|
-
}), /*#__PURE__*/_react["default"].createElement(PS.SelectTitle, {
|
|
439
|
-
style: {
|
|
440
|
-
marginRight: 10
|
|
441
|
-
}
|
|
442
|
-
}, _constants.NEW_DESIGN)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
443
|
-
style: {
|
|
444
|
-
flex: 1
|
|
445
|
-
}
|
|
446
|
-
}), !this.props.allVisible && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
447
|
-
title: !this.props.isTokenPresent ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
448
|
-
style: {
|
|
449
|
-
fontSize: 14
|
|
450
|
-
}
|
|
451
|
-
}, "You need to ", /*#__PURE__*/_react["default"].createElement("b", null, "save the project"), " before requesting Designer Assistance.") : ''
|
|
452
|
-
}, /*#__PURE__*/_react["default"].createElement(PS.SelectedBox, {
|
|
453
|
-
onClick: isModalVisible ? null : function () {
|
|
454
|
-
if (!_this2.props.isTokenPresent) {
|
|
455
|
-
_this2.props.handleSubmitPrompt(_constants.SUBMIT_REQUEST_ASSIST);
|
|
456
|
-
} else {
|
|
457
|
-
if (!_this2.props.isSaved) {
|
|
458
|
-
_handleSaveBtn({
|
|
459
|
-
showPrompt: !_this2.props.isTokenPresent
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
handleSubmitForQuote(true, _constants.SUBMIT_REQUEST_ASSIST);
|
|
463
|
-
}
|
|
464
|
-
_this2.props.setToolbar('');
|
|
465
|
-
}
|
|
466
|
-
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
467
|
-
height: "18px",
|
|
468
|
-
src: "\\assets\\img\\svg\\headerbar\\assist.svg"
|
|
469
|
-
}), /*#__PURE__*/_react["default"].createElement(PS.SelectTitle, null, _constants.SUBMIT_DESIGN), !this.props.isTokenPresent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
470
|
-
style: {
|
|
471
|
-
width: '5px',
|
|
472
|
-
height: '5px',
|
|
473
|
-
position: 'relative'
|
|
474
|
-
}
|
|
475
|
-
}, /*#__PURE__*/_react["default"].createElement(_Info["default"], {
|
|
476
|
-
style: {
|
|
477
|
-
color: 'rgb(76, 18, 161)',
|
|
478
|
-
position: 'absolute',
|
|
479
|
-
width: '15px',
|
|
480
|
-
height: '15px',
|
|
481
|
-
bottom: '8px',
|
|
482
|
-
right: '-16px'
|
|
483
|
-
}
|
|
484
|
-
})))), !this.props.allVisible && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
485
|
-
title: !this.props.isTokenPresent ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
486
|
-
style: {
|
|
487
|
-
fontSize: 14
|
|
488
|
-
}
|
|
489
|
-
}, "You need to ", /*#__PURE__*/_react["default"].createElement("b", null, "save the project"), " before Adding to Cart") : ''
|
|
490
|
-
}, /*#__PURE__*/_react["default"].createElement(_core.Button, {
|
|
491
|
-
variant: "outlined",
|
|
492
|
-
onClick: function onClick() {
|
|
493
|
-
if (!_this2.props.isTokenPresent) {
|
|
494
|
-
handleSubmitPrompt(_constants.SUBMIT_ADD_CART);
|
|
495
|
-
} else {
|
|
496
|
-
if (!_this2.props.isSaved) {
|
|
497
|
-
_handleSaveBtn({
|
|
498
|
-
showPrompt: !_this2.props.isTokenPresent
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
handleSubmitForQuote(true, _constants.SUBMIT_ADD_CART);
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
disabled: isLoading,
|
|
505
|
-
style: {
|
|
506
|
-
pointerEvents: isLoading ? 'none' : 'auto',
|
|
507
|
-
padding: '8px 20px',
|
|
508
|
-
color: 'white',
|
|
509
|
-
backgroundColor: 'rgba(76, 18, 161, 1)',
|
|
510
|
-
border: '1px solid rgba(76, 18, 161, 1)',
|
|
511
|
-
marginLeft: '1rem',
|
|
512
|
-
textTransform: 'none',
|
|
513
|
-
display: 'flex',
|
|
514
|
-
alignItems: 'center'
|
|
515
|
-
},
|
|
516
|
-
startIcon: /*#__PURE__*/_react["default"].createElement("img", {
|
|
517
|
-
style: {
|
|
518
|
-
color: 'white'
|
|
519
|
-
},
|
|
520
|
-
src: "\\assets\\img\\svg\\headerbar\\cart.svg"
|
|
521
|
-
}),
|
|
522
|
-
endIcon: !this.props.isTokenPresent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
523
|
-
style: {
|
|
524
|
-
width: '5px',
|
|
525
|
-
height: '5px',
|
|
526
|
-
position: 'relative'
|
|
527
|
-
}
|
|
528
|
-
}, /*#__PURE__*/_react["default"].createElement(_Info["default"], {
|
|
529
|
-
style: {
|
|
530
|
-
position: 'absolute',
|
|
531
|
-
width: '15px',
|
|
532
|
-
height: '15px',
|
|
533
|
-
bottom: '8px',
|
|
534
|
-
right: '-16px'
|
|
535
|
-
}
|
|
536
|
-
}))
|
|
537
|
-
}, "Add to Cart"))));
|
|
538
|
-
}
|
|
539
|
-
}]);
|
|
540
|
-
}(_react.Component);
|
|
541
|
-
Header.propTypes = {
|
|
542
|
-
state: _propTypes["default"].object.isRequired,
|
|
543
|
-
width: _propTypes["default"].number.isRequired,
|
|
544
|
-
height: _propTypes["default"].number.isRequired
|
|
545
|
-
};
|
|
546
|
-
Header.contextTypes = {
|
|
547
|
-
projectActions: _propTypes["default"].object.isRequired,
|
|
548
|
-
viewer2DActions: _propTypes["default"].object.isRequired,
|
|
549
|
-
viewer3DActions: _propTypes["default"].object.isRequired,
|
|
550
|
-
linesActions: _propTypes["default"].object.isRequired,
|
|
551
|
-
holesActions: _propTypes["default"].object.isRequired,
|
|
552
|
-
itemsActions: _propTypes["default"].object.isRequired,
|
|
553
|
-
userActions: _propTypes["default"].object.isRequired,
|
|
554
|
-
translator: _propTypes["default"].object.isRequired
|
|
555
|
-
};
|
|
556
|
-
//# sourceMappingURL=header.js.map
|