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,539 +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"] = KitchenConfiguratorApp;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _reactRedux = require("react-redux");
|
|
11
|
-
var _redux = require("redux");
|
|
12
|
-
var Models = _interopRequireWildcard(require("./models"));
|
|
13
|
-
var _KitchenConfigurator = _interopRequireDefault(require("./KitchenConfigurator"));
|
|
14
|
-
var _AppContext = _interopRequireDefault(require("./AppContext"));
|
|
15
|
-
var _catalog = _interopRequireDefault(require("./catalog/catalog"));
|
|
16
|
-
var _SVGLoader = require("three/addons/loaders/SVGLoader");
|
|
17
|
-
var _helper = require("../src/utils/helper");
|
|
18
|
-
var _constants = require("../src/constants");
|
|
19
|
-
var _plannerElement = _interopRequireDefault(require("./catalog/areas/area/planner-element.jsx"));
|
|
20
|
-
var _plannerElement2 = _interopRequireDefault(require("./catalog/lines/wall/planner-element.jsx"));
|
|
21
|
-
var _plannerElement3 = _interopRequireDefault(require("./catalog/holes/door-closet/planner-element.jsx"));
|
|
22
|
-
var _plannerElement4 = _interopRequireDefault(require("./catalog/holes/door-double/planner-element.jsx"));
|
|
23
|
-
var _plannerElement5 = _interopRequireDefault(require("./catalog/holes/door-exterior/planner-element.jsx"));
|
|
24
|
-
var _plannerElement6 = _interopRequireDefault(require("./catalog/holes/door-interior/planner-element.jsx"));
|
|
25
|
-
var _plannerElement7 = _interopRequireDefault(require("./catalog/holes/door-panic-double/planner-element.jsx"));
|
|
26
|
-
var _plannerElement8 = _interopRequireDefault(require("./catalog/holes/door-panic/planner-element.jsx"));
|
|
27
|
-
var _plannerElement9 = _interopRequireDefault(require("./catalog/holes/door-sliding/planner-element.jsx"));
|
|
28
|
-
var _plannerElement0 = _interopRequireDefault(require("./catalog/holes/doorway-framed/planner-element.jsx"));
|
|
29
|
-
var _plannerElement1 = _interopRequireDefault(require("./catalog/holes/doorway-frameless/planner-element.jsx"));
|
|
30
|
-
var _plannerElement10 = _interopRequireDefault(require("./catalog/holes/window-clear/planner-element.jsx"));
|
|
31
|
-
var _plannerElement11 = _interopRequireDefault(require("./catalog/holes/window-cross/planner-element.jsx"));
|
|
32
|
-
var _plannerElement12 = _interopRequireDefault(require("./catalog/holes/window-double-hung/planner-element.jsx"));
|
|
33
|
-
var _plannerElement13 = _interopRequireDefault(require("./catalog/holes/window-vertical/planner-element.jsx"));
|
|
34
|
-
var _itemLoader = require("./catalog/utils/item-loader");
|
|
35
|
-
var _index = require("../src/index");
|
|
36
|
-
var _immutable = require("immutable");
|
|
37
|
-
var _reactGa = _interopRequireDefault(require("react-ga4"));
|
|
38
|
-
var _reactHotjar = require("react-hotjar");
|
|
39
|
-
var Sentry = _interopRequireWildcard(require("@sentry/react"));
|
|
40
|
-
var _projectActions = require("../src/actions/project-actions");
|
|
41
|
-
var _exporter = _interopRequireDefault(require("../src/catalog/utils/exporter"));
|
|
42
|
-
var _excluded = ["width", "height", "projectElement", "categoryData", "dataBundle", "configData", "toolbarButtons", "options", "user", "auth", "featureFlags", "sentry", "analytics", "onEvent", "onSave", "onError"];
|
|
43
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
44
|
-
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 _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
45
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
46
|
-
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; }
|
|
47
|
-
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; }
|
|
48
|
-
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; }
|
|
49
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
50
|
-
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); }
|
|
51
|
-
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 }; })(); }
|
|
52
|
-
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); }
|
|
53
|
-
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); }
|
|
54
|
-
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); }); }; }
|
|
55
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
56
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
57
|
-
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; } }
|
|
58
|
-
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; }
|
|
59
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
60
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
61
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
62
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
63
|
-
var Areas = {
|
|
64
|
-
area: _plannerElement["default"]
|
|
65
|
-
};
|
|
66
|
-
Object.freeze(Areas);
|
|
67
|
-
var Lines = {
|
|
68
|
-
wall: _plannerElement2["default"]
|
|
69
|
-
};
|
|
70
|
-
Object.freeze(Lines);
|
|
71
|
-
var Holes = {
|
|
72
|
-
doorCloset: _plannerElement3["default"],
|
|
73
|
-
doorDouble: _plannerElement4["default"],
|
|
74
|
-
doorExterior: _plannerElement5["default"],
|
|
75
|
-
doorInterior: _plannerElement6["default"],
|
|
76
|
-
doorPanicDouble: _plannerElement7["default"],
|
|
77
|
-
doorPanic: _plannerElement8["default"],
|
|
78
|
-
doorSliding: _plannerElement9["default"],
|
|
79
|
-
doorwayFramed: _plannerElement0["default"],
|
|
80
|
-
doorwayFrameless: _plannerElement1["default"],
|
|
81
|
-
windowClear: _plannerElement10["default"],
|
|
82
|
-
windowCross: _plannerElement11["default"],
|
|
83
|
-
windowDoubleHung: _plannerElement12["default"],
|
|
84
|
-
windowVertical: _plannerElement13["default"]
|
|
85
|
-
};
|
|
86
|
-
Object.freeze(Holes);
|
|
87
|
-
/* ============================== component ============================= */
|
|
88
|
-
var MyCatalog = new _catalog["default"]();
|
|
89
|
-
var AppState = (0, _immutable.Map)({
|
|
90
|
-
KitchenConfigurator: new _index.Models.State()
|
|
91
|
-
});
|
|
92
|
-
console.log('Version: 378.45-202509_DIY-364-mbox-crash');
|
|
93
|
-
_reactGa["default"].initialize([{
|
|
94
|
-
trackingId: 'G-YK2JCC9F9G' // https://dev.addovisuals.com
|
|
95
|
-
}, {
|
|
96
|
-
trackingId: 'G-3Y44W0RY2E' // https://demo.kc.addovisuals.com/
|
|
97
|
-
}, {
|
|
98
|
-
trackingId: 'G-M2VD74KP44' // https://rtastore.diydesignspace.com/
|
|
99
|
-
}]);
|
|
100
|
-
_reactHotjar.hotjar.initialize('3010506', '6');
|
|
101
|
-
isProduction && Sentry.init({
|
|
102
|
-
dsn: process.env.SENTRY_DSN,
|
|
103
|
-
environment: process.env.SENTRY_ENVIRONMENT
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
//define reducer
|
|
107
|
-
var reducer = function reducer(state, action) {
|
|
108
|
-
state = state || AppState;
|
|
109
|
-
state = state.update('KitchenConfigurator', function (plannerState) {
|
|
110
|
-
return (0, _index.reducer)(plannerState, action);
|
|
111
|
-
});
|
|
112
|
-
return state;
|
|
113
|
-
};
|
|
114
|
-
var store = (0, _redux.createStore)(reducer, null, !isProduction && window.devToolsExtension ? window.devToolsExtension({
|
|
115
|
-
features: {
|
|
116
|
-
pause: true,
|
|
117
|
-
// start/pause recording of dispatched actions
|
|
118
|
-
lock: true,
|
|
119
|
-
// lock/unlock dispatching actions and side effects
|
|
120
|
-
persist: true,
|
|
121
|
-
// persist states on page reloading
|
|
122
|
-
"export": true,
|
|
123
|
-
// export history of actions in a file
|
|
124
|
-
"import": 'custom',
|
|
125
|
-
// import history of actions from a file
|
|
126
|
-
jump: true,
|
|
127
|
-
// jump back and forth (time travelling)
|
|
128
|
-
skip: true,
|
|
129
|
-
// skip (cancel) actions
|
|
130
|
-
reorder: true,
|
|
131
|
-
// drag and drop actions in the history list
|
|
132
|
-
dispatch: true,
|
|
133
|
-
// dispatch custom actions or action creators
|
|
134
|
-
test: true // generate tests for the selected actions
|
|
135
|
-
},
|
|
136
|
-
maxAge: 999999
|
|
137
|
-
}) : function (f) {
|
|
138
|
-
return f;
|
|
139
|
-
});
|
|
140
|
-
var plugins = [_index.Plugins.Keyboard(), _index.Plugins.ConsoleDebugger()];
|
|
141
|
-
function KitchenConfiguratorApp(props) {
|
|
142
|
-
var width = props.width,
|
|
143
|
-
height = props.height,
|
|
144
|
-
projectElement = props.projectElement,
|
|
145
|
-
categoryData = props.categoryData,
|
|
146
|
-
dataBundle = props.dataBundle,
|
|
147
|
-
configData = props.configData,
|
|
148
|
-
toolbarButtons = props.toolbarButtons,
|
|
149
|
-
options = props.options,
|
|
150
|
-
user = props.user,
|
|
151
|
-
auth = props.auth,
|
|
152
|
-
featureFlags = props.featureFlags,
|
|
153
|
-
sentry = props.sentry,
|
|
154
|
-
analytics = props.analytics,
|
|
155
|
-
onEvent = props.onEvent,
|
|
156
|
-
onSave = props.onSave,
|
|
157
|
-
onError = props.onError,
|
|
158
|
-
passThrough = _objectWithoutProperties(props, _excluded);
|
|
159
|
-
var _ref = categoryData && categoryData.data || {},
|
|
160
|
-
catalogs = _ref.catalogs,
|
|
161
|
-
colorAlias = _ref.colorAlias,
|
|
162
|
-
subgroups = _ref.subgroups;
|
|
163
|
-
var _ref2 = dataBundle || {},
|
|
164
|
-
_ref2$data = _ref2.data,
|
|
165
|
-
data = _ref2$data === void 0 ? [] : _ref2$data,
|
|
166
|
-
_ref2$appliances = _ref2.appliances,
|
|
167
|
-
appliances = _ref2$appliances === void 0 ? [] : _ref2$appliances,
|
|
168
|
-
_ref2$furnishing = _ref2.furnishing,
|
|
169
|
-
furnishing = _ref2$furnishing === void 0 ? [] : _ref2$furnishing,
|
|
170
|
-
_ref2$lighting = _ref2.lighting,
|
|
171
|
-
lighting = _ref2$lighting === void 0 ? [] : _ref2$lighting;
|
|
172
|
-
var _projectElement = _slicedToArray(projectElement, 1),
|
|
173
|
-
project_data = _projectElement[0].project_data;
|
|
174
|
-
var id = configData.id,
|
|
175
|
-
logoImg = configData.logoImg,
|
|
176
|
-
companyUrl = configData.companyUrl;
|
|
177
|
-
var _React$useState = _react["default"].useState([]),
|
|
178
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
179
|
-
outlineSVGData = _React$useState2[0],
|
|
180
|
-
setOutlineSVGData = _React$useState2[1];
|
|
181
|
-
var _React$useState3 = _react["default"].useState(false),
|
|
182
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
183
|
-
catalogInitiated = _React$useState4[0],
|
|
184
|
-
setCatalogInitiated = _React$useState4[1];
|
|
185
|
-
(0, _react.useEffect)(function () {
|
|
186
|
-
var initMyCatalog = /*#__PURE__*/function () {
|
|
187
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
188
|
-
var x, _x, _x2;
|
|
189
|
-
return _regenerator().w(function (_context) {
|
|
190
|
-
while (1) switch (_context.n) {
|
|
191
|
-
case 0:
|
|
192
|
-
for (x in Areas) MyCatalog.registerElement(Areas[x]);
|
|
193
|
-
for (_x in Lines) MyCatalog.registerElement(Lines[_x]);
|
|
194
|
-
for (_x2 in Holes) MyCatalog.registerElement(Holes[_x2]);
|
|
195
|
-
MyCatalog.registerCategory('Windows', 'Windows', [Holes.windowClear, Holes.windowCross, Holes.windowDoubleHung, Holes.windowVertical]);
|
|
196
|
-
MyCatalog.registerCategory('Doors', 'Doors', [Holes.doorInterior, Holes.doorExterior, Holes.doorCloset, Holes.doorSliding, Holes.doorwayFramed, Holes.doorwayFrameless]);
|
|
197
|
-
case 1:
|
|
198
|
-
return _context.a(2);
|
|
199
|
-
}
|
|
200
|
-
}, _callee);
|
|
201
|
-
}));
|
|
202
|
-
return function initMyCatalog() {
|
|
203
|
-
return _ref3.apply(this, arguments);
|
|
204
|
-
};
|
|
205
|
-
}();
|
|
206
|
-
var loadMoldings = /*#__PURE__*/function () {
|
|
207
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
208
|
-
var door_color_alias, subgroup_ids, door_color_alias_ids, doorStyleData, molding, toeMoldingData, cabinets, promises;
|
|
209
|
-
return _regenerator().w(function (_context2) {
|
|
210
|
-
while (1) switch (_context2.n) {
|
|
211
|
-
case 0:
|
|
212
|
-
door_color_alias = [];
|
|
213
|
-
subgroup_ids = catalogs.filter(function (item) {
|
|
214
|
-
return item.id == id;
|
|
215
|
-
})[0].manufacturer_subgroup_ids.split(',');
|
|
216
|
-
door_color_alias_ids = [];
|
|
217
|
-
subgroups.forEach(function (subgroup) {
|
|
218
|
-
if (subgroup_ids.some(function (id) {
|
|
219
|
-
return id == subgroup.id.toString();
|
|
220
|
-
})) {
|
|
221
|
-
subgroup.door_color_alias_ids.split(',').forEach(function (item) {
|
|
222
|
-
item != '' && door_color_alias_ids.push(item);
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
colorAlias.forEach(function (color) {
|
|
227
|
-
return door_color_alias_ids.some(function (id) {
|
|
228
|
-
return id == color.id.toString();
|
|
229
|
-
}) && door_color_alias.push(color);
|
|
230
|
-
});
|
|
231
|
-
doorStyleData = categoryData.data.doorStyles.items;
|
|
232
|
-
categoryData.data.doorStyles.items = doorStyleData.treeStruct;
|
|
233
|
-
door_color_alias.forEach(function (dca) {
|
|
234
|
-
doorStyleData.doorColorData.forEach(function (dc) {
|
|
235
|
-
dc.door_style_id = parseInt(dc.door_style_id);
|
|
236
|
-
if (dc.id !== dca.door_color_id) return;
|
|
237
|
-
dc.name = dca.alias_name;
|
|
238
|
-
dc.color_sku_alias = dca.sku_alias_name;
|
|
239
|
-
doorStyleData.treeStruct.forEach(function (el) {
|
|
240
|
-
el.items.forEach(function (elem) {
|
|
241
|
-
return dc.door_style_id === elem.id && (dc.door_style_name = elem.name);
|
|
242
|
-
});
|
|
243
|
-
});
|
|
244
|
-
dca.alias_installation_type = (0, _helper.isEmpty)(dca.alias_installation_type) ? [] : dca.alias_installation_type.split(',').map(function (n) {
|
|
245
|
-
return parseInt(n);
|
|
246
|
-
});
|
|
247
|
-
categoryData.data.doorStyles.items.forEach(function (item) {
|
|
248
|
-
if (dca.alias_installation_type.some(function (ait) {
|
|
249
|
-
return ait === item.id;
|
|
250
|
-
})) item.items.forEach(function (ds) {
|
|
251
|
-
if (ds.name === dc.door_style_name) ds.items.push(dc);
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
});
|
|
256
|
-
molding = [];
|
|
257
|
-
toeMoldingData = [];
|
|
258
|
-
cabinets = categoryData.data.cabinets;
|
|
259
|
-
cabinets[cabinets.length - 1].items.forEach(function (index) {
|
|
260
|
-
if (index.name.toLowerCase().includes('molding')) {
|
|
261
|
-
index.items.forEach(function (item) {
|
|
262
|
-
return molding.push(item);
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
if (index.name.includes(_constants.TOE_KICK_MOLDING)) {
|
|
266
|
-
index.items.forEach(function (item) {
|
|
267
|
-
return toeMoldingData.push(item);
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
categoryData.data.toeMoldingData = toeMoldingData;
|
|
272
|
-
promises = molding.map(function (child) {
|
|
273
|
-
return new Promise(function (resolve, reject) {
|
|
274
|
-
var url = child === null || child === void 0 ? void 0 : child.shape_svg;
|
|
275
|
-
if (!url) return resolve();
|
|
276
|
-
var loader = new _SVGLoader.SVGLoader();
|
|
277
|
-
loader.load(url, function (data) {
|
|
278
|
-
var _data$xml$viewBox$ani, _data$xml, _data$xml$viewBox$ani2, _data$xml2;
|
|
279
|
-
child.data = {
|
|
280
|
-
paths: data.paths,
|
|
281
|
-
svg_width: (_data$xml$viewBox$ani = (_data$xml = data.xml) === null || _data$xml === void 0 || (_data$xml = _data$xml.viewBox) === null || _data$xml === void 0 || (_data$xml = _data$xml.animVal) === null || _data$xml === void 0 ? void 0 : _data$xml.width) !== null && _data$xml$viewBox$ani !== void 0 ? _data$xml$viewBox$ani : 0,
|
|
282
|
-
svg_height: (_data$xml$viewBox$ani2 = (_data$xml2 = data.xml) === null || _data$xml2 === void 0 || (_data$xml2 = _data$xml2.viewBox) === null || _data$xml2 === void 0 || (_data$xml2 = _data$xml2.animVal) === null || _data$xml2 === void 0 ? void 0 : _data$xml2.height) !== null && _data$xml$viewBox$ani2 !== void 0 ? _data$xml$viewBox$ani2 : 0
|
|
283
|
-
};
|
|
284
|
-
resolve();
|
|
285
|
-
}, null, function (error) {
|
|
286
|
-
console.error(error);
|
|
287
|
-
reject(error);
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
});
|
|
291
|
-
return _context2.a(2, Promise.all(promises));
|
|
292
|
-
}
|
|
293
|
-
}, _callee2);
|
|
294
|
-
}));
|
|
295
|
-
return function loadMoldings() {
|
|
296
|
-
return _ref4.apply(this, arguments);
|
|
297
|
-
};
|
|
298
|
-
}();
|
|
299
|
-
var loadSVGs = /*#__PURE__*/function () {
|
|
300
|
-
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
301
|
-
var svgLoadPromises, outlineData;
|
|
302
|
-
return _regenerator().w(function (_context4) {
|
|
303
|
-
while (1) switch (_context4.n) {
|
|
304
|
-
case 0:
|
|
305
|
-
svgLoadPromises = data.map(/*#__PURE__*/function () {
|
|
306
|
-
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(item) {
|
|
307
|
-
var _parsed$xml$viewBox, _parsed$xml$viewBox2, response, svgText, loader, parsed, _t;
|
|
308
|
-
return _regenerator().w(function (_context3) {
|
|
309
|
-
while (1) switch (_context3.p = _context3.n) {
|
|
310
|
-
case 0:
|
|
311
|
-
if (item.outline) {
|
|
312
|
-
_context3.n = 1;
|
|
313
|
-
break;
|
|
314
|
-
}
|
|
315
|
-
return _context3.a(2, null);
|
|
316
|
-
case 1:
|
|
317
|
-
_context3.p = 1;
|
|
318
|
-
_context3.n = 2;
|
|
319
|
-
return fetch(item.outline, {
|
|
320
|
-
cache: 'no-store'
|
|
321
|
-
});
|
|
322
|
-
case 2:
|
|
323
|
-
response = _context3.v;
|
|
324
|
-
_context3.n = 3;
|
|
325
|
-
return response.text();
|
|
326
|
-
case 3:
|
|
327
|
-
svgText = _context3.v;
|
|
328
|
-
loader = new _SVGLoader.SVGLoader();
|
|
329
|
-
parsed = loader.parse(svgText);
|
|
330
|
-
if (!(0, _helper.isEmpty)(parsed.paths)) {
|
|
331
|
-
_context3.n = 4;
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
return _context3.a(2, null);
|
|
335
|
-
case 4:
|
|
336
|
-
return _context3.a(2, {
|
|
337
|
-
paths: parsed.paths,
|
|
338
|
-
svgWidth: parseFloat(parsed.xml.getAttribute('width')) || ((_parsed$xml$viewBox = parsed.xml.viewBox) === null || _parsed$xml$viewBox === void 0 || (_parsed$xml$viewBox = _parsed$xml$viewBox.animVal) === null || _parsed$xml$viewBox === void 0 ? void 0 : _parsed$xml$viewBox.width) || 0,
|
|
339
|
-
svgHeight: parseFloat(parsed.xml.getAttribute('height')) || ((_parsed$xml$viewBox2 = parsed.xml.viewBox) === null || _parsed$xml$viewBox2 === void 0 || (_parsed$xml$viewBox2 = _parsed$xml$viewBox2.animVal) === null || _parsed$xml$viewBox2 === void 0 ? void 0 : _parsed$xml$viewBox2.height) || 0,
|
|
340
|
-
reverse: !parseFloat(parsed.xml.getAttribute('height'))
|
|
341
|
-
});
|
|
342
|
-
case 5:
|
|
343
|
-
_context3.p = 5;
|
|
344
|
-
_t = _context3.v;
|
|
345
|
-
console.error('Failed to load SVG:', item.outline, _t);
|
|
346
|
-
return _context3.a(2, null);
|
|
347
|
-
}
|
|
348
|
-
}, _callee3, null, [[1, 5]]);
|
|
349
|
-
}));
|
|
350
|
-
return function (_x3) {
|
|
351
|
-
return _ref6.apply(this, arguments);
|
|
352
|
-
};
|
|
353
|
-
}());
|
|
354
|
-
_context4.n = 1;
|
|
355
|
-
return Promise.all(svgLoadPromises);
|
|
356
|
-
case 1:
|
|
357
|
-
outlineData = _context4.v;
|
|
358
|
-
setOutlineSVGData(outlineData);
|
|
359
|
-
case 2:
|
|
360
|
-
return _context4.a(2);
|
|
361
|
-
}
|
|
362
|
-
}, _callee4);
|
|
363
|
-
}));
|
|
364
|
-
return function loadSVGs() {
|
|
365
|
-
return _ref5.apply(this, arguments);
|
|
366
|
-
};
|
|
367
|
-
}();
|
|
368
|
-
var initCatalog = /*#__PURE__*/function () {
|
|
369
|
-
var _ref7 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5() {
|
|
370
|
-
return _regenerator().w(function (_context5) {
|
|
371
|
-
while (1) switch (_context5.n) {
|
|
372
|
-
case 0:
|
|
373
|
-
setCatalogInitiated(false);
|
|
374
|
-
_context5.n = 1;
|
|
375
|
-
return initMyCatalog();
|
|
376
|
-
case 1:
|
|
377
|
-
_context5.n = 2;
|
|
378
|
-
return loadMoldings();
|
|
379
|
-
case 2:
|
|
380
|
-
_context5.n = 3;
|
|
381
|
-
return loadSVGs();
|
|
382
|
-
case 3:
|
|
383
|
-
setCatalogInitiated(true);
|
|
384
|
-
case 4:
|
|
385
|
-
return _context5.a(2);
|
|
386
|
-
}
|
|
387
|
-
}, _callee5);
|
|
388
|
-
}));
|
|
389
|
-
return function initCatalog() {
|
|
390
|
-
return _ref7.apply(this, arguments);
|
|
391
|
-
};
|
|
392
|
-
}();
|
|
393
|
-
initCatalog();
|
|
394
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
395
|
-
}, [categoryData, data, id, catalogs, colorAlias, subgroups]);
|
|
396
|
-
|
|
397
|
-
// Register items once SVGs are loaded
|
|
398
|
-
(0, _react.useEffect)(function () {
|
|
399
|
-
if (!outlineSVGData.length) return;
|
|
400
|
-
var Item = [];
|
|
401
|
-
data.forEach(function (obj, index) {
|
|
402
|
-
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
403
|
-
type: 'cabinet',
|
|
404
|
-
outlineSVGData: outlineSVGData[index],
|
|
405
|
-
render2DItem: _itemLoader.render2DItem,
|
|
406
|
-
render3DItem: _itemLoader.render3DItem
|
|
407
|
-
})));
|
|
408
|
-
});
|
|
409
|
-
appliances.forEach(function (obj) {
|
|
410
|
-
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
411
|
-
render2DItem: _itemLoader.render2DItem,
|
|
412
|
-
render3DItem: _itemLoader.render3DApplianceItem,
|
|
413
|
-
type: 'appliance'
|
|
414
|
-
})));
|
|
415
|
-
});
|
|
416
|
-
lighting.forEach(function (obj) {
|
|
417
|
-
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
418
|
-
type: 'lighting',
|
|
419
|
-
render2DItem: _itemLoader.render2DItem,
|
|
420
|
-
render3DItem: _itemLoader.render3DLightingItem
|
|
421
|
-
})));
|
|
422
|
-
});
|
|
423
|
-
furnishing.forEach(function (obj) {
|
|
424
|
-
Item.push((0, _exporter["default"])(_objectSpread(_objectSpread({}, obj), {}, {
|
|
425
|
-
type: 'furnishing',
|
|
426
|
-
render2DItem: _itemLoader.render2DItem,
|
|
427
|
-
render3DItem: _itemLoader.render3DApplianceItem
|
|
428
|
-
})));
|
|
429
|
-
});
|
|
430
|
-
for (var x in Item) MyCatalog.registerElement(Item[x]);
|
|
431
|
-
}, [outlineSVGData, data, appliances, furnishing, lighting]);
|
|
432
|
-
|
|
433
|
-
// Forward updates/save moments to host
|
|
434
|
-
(0, _react.useEffect)(function () {
|
|
435
|
-
if (!onEvent && !onSave && !onError) return;
|
|
436
|
-
var unsubscribe = store.subscribe(function () {
|
|
437
|
-
var _state$get, _state$get$get, _state$get$get$get;
|
|
438
|
-
var state = store.getState();
|
|
439
|
-
onEvent === null || onEvent === void 0 || onEvent({
|
|
440
|
-
type: 'state-update',
|
|
441
|
-
payload: {
|
|
442
|
-
state: state
|
|
443
|
-
}
|
|
444
|
-
});
|
|
445
|
-
var pendingSave = state === null || state === void 0 || (_state$get = state.get) === null || _state$get === void 0 || (_state$get = _state$get.call(state, 'KitchenConfigurator')) === null || _state$get === void 0 || (_state$get$get = _state$get.get) === null || _state$get$get === void 0 || (_state$get$get = _state$get$get.call(_state$get, 'misc')) === null || _state$get$get === void 0 || (_state$get$get$get = _state$get$get.get) === null || _state$get$get$get === void 0 ? void 0 : _state$get$get$get.call(_state$get$get, 'pendingSave');
|
|
446
|
-
if (pendingSave && onSave) {
|
|
447
|
-
try {
|
|
448
|
-
var _planner$get, _planner$get2;
|
|
449
|
-
var planner = state.get('KitchenConfigurator');
|
|
450
|
-
var currentScene = planner !== null && planner !== void 0 && (_planner$get = planner.get) !== null && _planner$get !== void 0 && (_planner$get = _planner$get.call(planner, 'scene')) !== null && _planner$get !== void 0 && _planner$get.toJS ? planner.get('scene').toJS() : (planner === null || planner === void 0 || (_planner$get2 = planner.get) === null || _planner$get2 === void 0 ? void 0 : _planner$get2.call(planner, 'scene')) || null;
|
|
451
|
-
onSave({
|
|
452
|
-
type: 'save',
|
|
453
|
-
payload: {
|
|
454
|
-
scene: currentScene
|
|
455
|
-
}
|
|
456
|
-
});
|
|
457
|
-
} catch (e) {
|
|
458
|
-
onError === null || onError === void 0 || onError({
|
|
459
|
-
type: 'save-error',
|
|
460
|
-
error: e
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
return function () {
|
|
466
|
-
return unsubscribe();
|
|
467
|
-
};
|
|
468
|
-
}, [store, onEvent, onSave, onError]);
|
|
469
|
-
(0, _react.useEffect)(function () {
|
|
470
|
-
if (projectElement.length === 0) return;
|
|
471
|
-
if (!catalogInitiated) return;
|
|
472
|
-
sessionStorage.setItem('projectTitle', projectElement[0].title);
|
|
473
|
-
store.dispatch((0, _projectActions.rename)(projectElement[0].title));
|
|
474
|
-
sessionStorage.setItem('projectId', projectElement[0].id);
|
|
475
|
-
sessionStorage.setItem('email', projectElement[0].email);
|
|
476
|
-
sessionStorage.setItem('firstName', projectElement[0].firstName);
|
|
477
|
-
sessionStorage.setItem('lastName', projectElement[0].lastName);
|
|
478
|
-
sessionStorage.setItem('phone', projectElement[0].phone);
|
|
479
|
-
var jsonData;
|
|
480
|
-
jsonData = JSON.parse(projectElement[0].project_data);
|
|
481
|
-
jsonData.isLoadingCabinet = false;
|
|
482
|
-
store.dispatch((0, _projectActions.loadProject)(jsonData, categoryData));
|
|
483
|
-
}, [project_data, catalogInitiated]);
|
|
484
|
-
return /*#__PURE__*/_react["default"].createElement(_AppContext["default"].Provider, null, /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
|
|
485
|
-
store: store
|
|
486
|
-
}, /*#__PURE__*/_react["default"].createElement(_KitchenConfigurator["default"], _extends({
|
|
487
|
-
catalog: MyCatalog,
|
|
488
|
-
width: width,
|
|
489
|
-
height: height,
|
|
490
|
-
logoImage: logoImg,
|
|
491
|
-
companyURL: companyUrl,
|
|
492
|
-
plugins: plugins,
|
|
493
|
-
toolbarButtons: toolbarButtons,
|
|
494
|
-
stateExtractor: function stateExtractor(state) {
|
|
495
|
-
return state.get('KitchenConfigurator');
|
|
496
|
-
},
|
|
497
|
-
categoryData: categoryData,
|
|
498
|
-
data: data,
|
|
499
|
-
configData: configData,
|
|
500
|
-
onEvent: onEvent,
|
|
501
|
-
onSave: onSave,
|
|
502
|
-
onError: onError
|
|
503
|
-
}, passThrough))));
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
/* ============================== prop types ============================== */
|
|
507
|
-
|
|
508
|
-
KitchenConfiguratorApp.propTypes = {
|
|
509
|
-
width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
510
|
-
height: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
511
|
-
projectElement: _propTypes["default"].arrayOf(_propTypes["default"].object),
|
|
512
|
-
categoryData: _propTypes["default"].any,
|
|
513
|
-
dataBundle: _propTypes["default"].any,
|
|
514
|
-
configData: _propTypes["default"].any,
|
|
515
|
-
catalog: _propTypes["default"].oneOfType([_propTypes["default"].object, _propTypes["default"].instanceOf(Models.Catalog)]),
|
|
516
|
-
logoImg: _propTypes["default"].any,
|
|
517
|
-
companyUrl: _propTypes["default"].string,
|
|
518
|
-
toolbarButtons: _propTypes["default"].any,
|
|
519
|
-
options: _propTypes["default"].object,
|
|
520
|
-
user: _propTypes["default"].object,
|
|
521
|
-
auth: _propTypes["default"].object,
|
|
522
|
-
featureFlags: _propTypes["default"].object,
|
|
523
|
-
sentry: _propTypes["default"].shape({
|
|
524
|
-
dsn: _propTypes["default"].string,
|
|
525
|
-
environment: _propTypes["default"].string
|
|
526
|
-
}),
|
|
527
|
-
analytics: _propTypes["default"].shape({
|
|
528
|
-
ga4Id: _propTypes["default"].string,
|
|
529
|
-
hotjar: _propTypes["default"].shape({
|
|
530
|
-
id: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
531
|
-
sv: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
532
|
-
})
|
|
533
|
-
}),
|
|
534
|
-
onEvent: _propTypes["default"].func,
|
|
535
|
-
onSave: _propTypes["default"].func,
|
|
536
|
-
onError: _propTypes["default"].func,
|
|
537
|
-
store: _propTypes["default"].object
|
|
538
|
-
};
|
|
539
|
-
//# sourceMappingURL=KitchenConfiguratorApp.js.map
|