kitchen-simulator 5.0.0-test.3 → 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/package.json +8 -12
- package/src/KitchenConfigurator.jsx +1 -1
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useValidateToken.js","names":["_axios","_interopRequireDefault","require","_reactQuery","_localstorageSlim","_constants","_CrossSignOn","e","__esModule","_regenerator","t","r","Symbol","n","iterator","o","toStringTag","i","c","prototype","Generator","u","Object","create","_regeneratorDefine2","f","p","y","G","v","a","d","bind","length","l","TypeError","call","done","value","GeneratorFunction","GeneratorFunctionPrototype","getPrototypeOf","setPrototypeOf","__proto__","displayName","w","m","defineProperty","_regeneratorDefine","_invoke","enumerable","configurable","writable","_typeof","constructor","asyncGeneratorStep","Promise","resolve","then","_asyncToGenerator","arguments","apply","_next","_throw","LOG_PREFIX","persistAccessToken","accessToken","url","URL","window","location","href","token","searchParams","get","QUERY_PARAM_TOKEN","encodedToken","ENCODED_QUERY_PARAM_TOKEN","set","console","log","concat","ls","LOCAL_STORAGE_TOKEN_VALUE","toString","history","replaceState","document","title","persistCustomerInfo","customerInfo","LOCAL_STORAGE_CUSTOMER_INFO","refreshToken","_x","_refreshToken","_callee","currentToken","visualizerName","_yield$axios$post","refreshData","_t","_context","sessionStorage","getItem","axios","post","process","env","API_URL","client_name","data","status","refreshed","raw","error","message","Error","fetchValidateToken","_x2","_fetchValidateToken","_callee2","_yield$axios$post2","customer","_refreshed","_t2","_context2","email","firstName","lastName","tier","LOCAL_STORAGE_ORIGINAL_TOKEN","source","toLowerCase","includes","dispatchEvent","CustomEvent","detail","useValidateToken","exports","useQuery","queryKey","queryFn","retry","onError","initialData"],"sources":["../../src/hooks/useValidateToken.js"],"sourcesContent":["// hooks/useValidateToken.js\r\nimport axios from 'axios';\r\nimport { useQuery } from 'react-query';\r\nimport ls from 'localstorage-slim';\r\nimport {\r\n LOCAL_STORAGE_TOKEN_VALUE,\r\n LOCAL_STORAGE_CUSTOMER_INFO,\r\n LOCAL_STORAGE_ORIGINAL_TOKEN\r\n} from '../../src/constants';\r\nimport {\r\n ENCODED_QUERY_PARAM_TOKEN,\r\n QUERY_PARAM_TOKEN\r\n} from '../../demo/src/CrossSignOn';\r\n\r\nconst LOG_PREFIX = `[Cross Sign On]`;\r\n\r\nfunction persistAccessToken(accessToken) {\r\n const url = new URL(window.location.href);\r\n const token = url.searchParams.get(QUERY_PARAM_TOKEN);\r\n const encodedToken = url.searchParams.get(ENCODED_QUERY_PARAM_TOKEN);\r\n\r\n if (!accessToken) return;\r\n\r\n if (!token && !encodedToken) {\r\n return;\r\n }\r\n\r\n if (token) {\r\n url.searchParams.set(QUERY_PARAM_TOKEN, accessToken);\r\n }\r\n\r\n if (encodedToken) {\r\n url.searchParams.set(ENCODED_QUERY_PARAM_TOKEN, accessToken);\r\n }\r\n\r\n console.log(`${LOG_PREFIX} Persisting access token`);\r\n ls.set(LOCAL_STORAGE_TOKEN_VALUE, accessToken);\r\n\r\n if (window.location.href !== url.toString()) {\r\n window.history.replaceState({}, document.title, url.toString());\r\n }\r\n}\r\n\r\nfunction persistCustomerInfo(customerInfo) {\r\n if (!customerInfo) return;\r\n\r\n console.log(`${LOG_PREFIX} Persisting customer info`);\r\n ls.set(LOCAL_STORAGE_CUSTOMER_INFO, customerInfo);\r\n}\r\n\r\nasync function refreshToken(currentToken) {\r\n const visualizerName = sessionStorage.getItem('visualizerName');\r\n\r\n try {\r\n const { data: refreshData } = await axios.post(\r\n `${process.env.API_URL}/api/token/refresh`,\r\n {\r\n client_name: visualizerName,\r\n token: currentToken\r\n }\r\n );\r\n\r\n if (\r\n refreshData &&\r\n refreshData.status === 'success' &&\r\n refreshData.accessToken\r\n ) {\r\n return {\r\n refreshed: true,\r\n token: refreshData.accessToken,\r\n raw: refreshData\r\n };\r\n }\r\n\r\n console.error(`${LOG_PREFIX} Token refresh failed`, refreshData?.message);\r\n throw new Error(refreshData?.message || 'Token refresh failed');\r\n } catch (err) {\r\n console.error(`${LOG_PREFIX} Error refreshing token`, err);\r\n throw err;\r\n }\r\n}\r\n\r\n/**\r\n * Normalizes validate/refresh results so consumers have a predictable shape.\r\n * Returns:\r\n * {\r\n * token: string | null,\r\n * customer: { email, firstName, lastName, tier } | null,\r\n * source: 'validated' | 'refreshed' | 'object' | 'unknown' | 'none'\r\n * }\r\n */\r\nasync function fetchValidateToken(accessToken) {\r\n const visualizerName = sessionStorage.getItem('visualizerName');\r\n // Case: string token flow\r\n if (typeof accessToken === 'string' && accessToken) {\r\n try {\r\n const { data } = await axios.post(\r\n `${process.env.API_URL}/api/token/validate`,\r\n {\r\n client_name: visualizerName,\r\n token: accessToken\r\n }\r\n );\r\n\r\n if (data && data.status !== 'error' && data.email) {\r\n const customer = {\r\n email: data.email,\r\n firstName: data.firstName,\r\n lastName: data.lastName,\r\n tier: data.tier\r\n };\r\n ls.set(LOCAL_STORAGE_ORIGINAL_TOKEN, accessToken);\r\n persistAccessToken(accessToken);\r\n persistCustomerInfo(customer);\r\n\r\n return {\r\n token: accessToken,\r\n customer,\r\n source: 'validated'\r\n };\r\n }\r\n\r\n // If API returns an error status, try refresh\r\n if (\r\n data?.status === 'error' &&\r\n data.message.toLowerCase().includes('expired')\r\n ) {\r\n console.log(`${LOG_PREFIX} Token validation failed`, data.message);\r\n const refreshed = await refreshToken(accessToken);\r\n\r\n if (refreshed.token && typeof refreshed.token === 'string') {\r\n ls.set(LOCAL_STORAGE_ORIGINAL_TOKEN, refreshed.token);\r\n persistAccessToken(refreshed.token);\r\n\r\n window.dispatchEvent(\r\n new CustomEvent('token-changed', { detail: refreshed.token })\r\n );\r\n }\r\n\r\n return {\r\n token: refreshed.token,\r\n customer: null, // customer not returned by refresh; will be filled by next authenticated fetch\r\n source: 'refreshed'\r\n };\r\n }\r\n\r\n // If no email but not an explicit error, just return token\r\n return {\r\n token: accessToken,\r\n customer: null,\r\n source: 'validated'\r\n };\r\n } catch (e) {\r\n console.log(`${LOG_PREFIX} Failed fetching customer info`, e);\r\n const refreshed = await refreshToken(accessToken);\r\n return {\r\n token: refreshed.token ? refreshed.token : accessToken,\r\n customer: null,\r\n source: 'refreshed'\r\n };\r\n }\r\n }\r\n\r\n // No token\r\n return { token: null, customer: null, source: 'unknown' };\r\n}\r\n\r\nexport const useValidateToken = accessToken => {\r\n return useQuery({\r\n queryKey: [\r\n 'validate-token',\r\n typeof accessToken === 'object' ? accessToken?.token : accessToken\r\n ],\r\n queryFn: () => fetchValidateToken(accessToken),\r\n retry: 1,\r\n onError: error => {\r\n console.error(`[useValidateToken] Validation failed`, error);\r\n },\r\n initialData: { token: null, customer: null, source: 'none' }\r\n });\r\n};\r\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAKA,IAAAI,YAAA,GAAAJ,OAAA;AAGoC,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,gBAAAA,CAAA;AAAA,SAAAE,aAAA,IAXpC,uKAAAF,CAAA,EAAAG,CAAA,EAAAC,CAAA,wBAAAC,MAAA,GAAAA,MAAA,OAAAC,CAAA,GAAAF,CAAA,CAAAG,QAAA,kBAAAC,CAAA,GAAAJ,CAAA,CAAAK,WAAA,8BAAAC,EAAAN,CAAA,EAAAE,CAAA,EAAAE,CAAA,EAAAE,CAAA,QAAAC,CAAA,GAAAL,CAAA,IAAAA,CAAA,CAAAM,SAAA,YAAAC,SAAA,GAAAP,CAAA,GAAAO,SAAA,EAAAC,CAAA,GAAAC,MAAA,CAAAC,MAAA,CAAAL,CAAA,CAAAC,SAAA,UAAAK,mBAAA,CAAAH,CAAA,uBAAAV,CAAA,EAAAE,CAAA,EAAAE,CAAA,QAAAE,CAAA,EAAAC,CAAA,EAAAG,CAAA,EAAAI,CAAA,MAAAC,CAAA,GAAAX,CAA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D,QAAQ,EAAE,IAAI;YACdS,MAAM,EAAE;UACV,CAAC;QAAA;UAAA,OAAAN,SAAA,CAAA/F,CAAA,IAKE;YAAE0C,KAAK,EAAE,IAAI;YAAEkD,QAAQ,EAAE,IAAI;YAAES,MAAM,EAAE;UAAU,CAAC;MAAA;IAAA,GAAAX,QAAA;EAAA,CAC1D;EAAA,OAAAD,mBAAA,CAAA1D,KAAA,OAAAD,SAAA;AAAA;AAEM,IAAM6E,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,SAAnBA,gBAAgBA,CAAGvE,WAAW,EAAI;EAC7C,OAAO,IAAAyE,oBAAQ,EAAC;IACdC,QAAQ,EAAE,CACR,gBAAgB,EAChBvF,OAAA,CAAOa,WAAW,MAAK,QAAQ,GAAGA,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAEM,KAAK,GAAGN,WAAW,CACnE;IACD2E,OAAO,EAAE,SAATA,OAAOA,CAAA;MAAA,OAAQxB,kBAAkB,CAACnD,WAAW,CAAC;IAAA;IAC9C4E,KAAK,EAAE,CAAC;IACRC,OAAO,EAAE,SAATA,OAAOA,CAAE7B,KAAK,EAAI;MAChBnC,OAAO,CAACmC,KAAK,yCAAyCA,KAAK,CAAC;IAC9D,CAAC;IACD8B,WAAW,EAAE;MAAExE,KAAK,EAAE,IAAI;MAAEkD,QAAQ,EAAE,IAAI;MAAES,MAAM,EAAE;IAAO;EAC7D,CAAC,CAAC;AACJ,CAAC","ignoreList":[]}
|
package/lib/index.js
DELETED
|
@@ -1,102 +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
|
-
Object.defineProperty(exports, "Catalog", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function get() {
|
|
10
|
-
return _catalog["default"];
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "ElementsFactories", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function get() {
|
|
16
|
-
return _export6["default"];
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "KitchenConfigurator", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function get() {
|
|
22
|
-
return _KitchenConfigurator["default"];
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "KitchenConfiguratorActions", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function get() {
|
|
28
|
-
return _export3["default"];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "KitchenConfiguratorClasses", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function get() {
|
|
34
|
-
return _export5["default"];
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "KitchenConfiguratorComponents", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function get() {
|
|
40
|
-
return _export2["default"];
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
exports.KitchenConfiguratorConstants = void 0;
|
|
44
|
-
Object.defineProperty(exports, "KitchenConfiguratorReducers", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function get() {
|
|
47
|
-
return _export4["default"];
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
exports.KitchenConfiguratorSharedStyle = void 0;
|
|
51
|
-
Object.defineProperty(exports, "KitchenConfiguratorUtils", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function get() {
|
|
54
|
-
return _export7["default"];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
exports.Models = void 0;
|
|
58
|
-
Object.defineProperty(exports, "Plugins", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function get() {
|
|
61
|
-
return _export["default"];
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "Translator", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function get() {
|
|
67
|
-
return _translator["default"];
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, "default", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function get() {
|
|
73
|
-
return _KitchenConfiguratorApp["default"];
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, "reducer", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function get() {
|
|
79
|
-
return _reducer["default"];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
var _catalog = _interopRequireDefault(require("./catalog/catalog"));
|
|
83
|
-
var _translator = _interopRequireDefault(require("./translator/translator"));
|
|
84
|
-
var Models = _interopRequireWildcard(require("./models"));
|
|
85
|
-
exports.Models = Models;
|
|
86
|
-
var _reducer = _interopRequireDefault(require("./reducers/reducer"));
|
|
87
|
-
var _KitchenConfigurator = _interopRequireDefault(require("./KitchenConfigurator"));
|
|
88
|
-
var _export = _interopRequireDefault(require("./plugins/export"));
|
|
89
|
-
var KitchenConfiguratorConstants = _interopRequireWildcard(require("./constants"));
|
|
90
|
-
exports.KitchenConfiguratorConstants = KitchenConfiguratorConstants;
|
|
91
|
-
var KitchenConfiguratorSharedStyle = _interopRequireWildcard(require("./shared-style"));
|
|
92
|
-
exports.KitchenConfiguratorSharedStyle = KitchenConfiguratorSharedStyle;
|
|
93
|
-
var _export2 = _interopRequireDefault(require("./components/export"));
|
|
94
|
-
var _export3 = _interopRequireDefault(require("./actions/export"));
|
|
95
|
-
var _export4 = _interopRequireDefault(require("./reducers/export"));
|
|
96
|
-
var _export5 = _interopRequireDefault(require("./class/export"));
|
|
97
|
-
var _export6 = _interopRequireDefault(require("./catalog/factories/export"));
|
|
98
|
-
var _export7 = _interopRequireDefault(require("./utils/export"));
|
|
99
|
-
var _KitchenConfiguratorApp = _interopRequireDefault(require("./KitchenConfiguratorApp"));
|
|
100
|
-
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); }
|
|
101
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
102
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_catalog","_interopRequireDefault","require","_translator","Models","_interopRequireWildcard","exports","_reducer","_KitchenConfigurator","_export","KitchenConfiguratorConstants","KitchenConfiguratorSharedStyle","_export2","_export3","_export4","_export5","_export6","_export7","_KitchenConfiguratorApp","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sources":["../src/index.js"],"sourcesContent":["import Catalog from './catalog/catalog';\r\nimport Translator from './translator/translator';\r\nimport * as Models from './models';\r\nimport reducer from './reducers/reducer';\r\nimport KitchenConfigurator from './KitchenConfigurator';\r\nimport Plugins from './plugins/export';\r\nimport * as KitchenConfiguratorConstants from './constants';\r\nimport * as KitchenConfiguratorSharedStyle from './shared-style';\r\nimport KitchenConfiguratorComponents from './components/export';\r\nimport KitchenConfiguratorActions from './actions/export';\r\nimport KitchenConfiguratorReducers from './reducers/export';\r\nimport KitchenConfiguratorClasses from './class/export';\r\nimport ElementsFactories from './catalog/factories/export';\r\nimport KitchenConfiguratorUtils from './utils/export';\r\nexport {\r\n Catalog,\r\n Translator,\r\n Models,\r\n reducer,\r\n KitchenConfigurator,\r\n Plugins,\r\n KitchenConfiguratorConstants,\r\n KitchenConfiguratorSharedStyle,\r\n KitchenConfiguratorComponents,\r\n KitchenConfiguratorActions,\r\n KitchenConfiguratorReducers,\r\n KitchenConfiguratorClasses,\r\n ElementsFactories,\r\n KitchenConfiguratorUtils\r\n};\r\n\r\nexport { default } from './KitchenConfiguratorApp';\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AAAmCI,OAAA,CAAAF,MAAA,GAAAA,MAAA;AACnC,IAAAG,QAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,oBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,OAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,4BAAA,GAAAL,uBAAA,CAAAH,OAAA;AAA4DI,OAAA,CAAAI,4BAAA,GAAAA,4BAAA;AAC5D,IAAAC,8BAAA,GAAAN,uBAAA,CAAAH,OAAA;AAAiEI,OAAA,CAAAK,8BAAA,GAAAA,8BAAA;AACjE,IAAAC,QAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,QAAA,GAAAZ,sBAAA,CAAAC,OAAA;AACA,IAAAY,QAAA,GAAAb,sBAAA,CAAAC,OAAA;AACA,IAAAa,QAAA,GAAAd,sBAAA,CAAAC,OAAA;AACA,IAAAc,QAAA,GAAAf,sBAAA,CAAAC,OAAA;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|
-
|
|
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.Vertex = exports.State = exports.Scene = exports.Line = exports.Layer = exports.Item = exports.Hole = exports.HistoryStructure = exports.Group = exports.Grid = exports.ElementsSet = exports.DefaultLayers = exports.DefaultGrids = exports.CatalogElement = exports.Catalog = exports.Area = void 0;
|
|
8
|
-
var _immutable = require("immutable");
|
|
9
|
-
var _constants = require("./constants");
|
|
10
|
-
var _snap = require("./utils/snap");
|
|
11
|
-
var _helper = require("./utils/helper");
|
|
12
|
-
var _convertUnits = _interopRequireDefault(require("convert-units"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
-
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; }
|
|
15
|
-
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; }
|
|
16
|
-
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; }
|
|
17
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
18
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
22
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
23
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
24
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
25
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
27
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
28
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
29
|
-
var safeLoadMapList = function safeLoadMapList(mapList, Model, defaultMap) {
|
|
30
|
-
return mapList ? new _immutable.Map(mapList).map(function (m) {
|
|
31
|
-
return new Model(m);
|
|
32
|
-
}).toMap() : defaultMap || new _immutable.Map();
|
|
33
|
-
};
|
|
34
|
-
var Grid = exports.Grid = /*#__PURE__*/function (_Record) {
|
|
35
|
-
function Grid() {
|
|
36
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
37
|
-
_classCallCheck(this, Grid);
|
|
38
|
-
return _callSuper(this, Grid, [_objectSpread(_objectSpread({}, json), {}, {
|
|
39
|
-
properties: (0, _immutable.fromJS)(json.properties || {})
|
|
40
|
-
})]);
|
|
41
|
-
}
|
|
42
|
-
_inherits(Grid, _Record);
|
|
43
|
-
return _createClass(Grid);
|
|
44
|
-
}((0, _immutable.Record)({
|
|
45
|
-
id: '',
|
|
46
|
-
type: '',
|
|
47
|
-
properties: (0, _immutable.Map)()
|
|
48
|
-
}, 'Grid'));
|
|
49
|
-
var DefaultGrids = exports.DefaultGrids = new _immutable.Map({
|
|
50
|
-
h1: new Grid({
|
|
51
|
-
id: 'h1',
|
|
52
|
-
type: 'horizontal-streak',
|
|
53
|
-
properties: {
|
|
54
|
-
step: 30.48,
|
|
55
|
-
colors: ['#bbb', '#bbb', '#bbb', '#bbb', '#bbb'] // dot's color
|
|
56
|
-
}
|
|
57
|
-
}),
|
|
58
|
-
v1: new Grid({
|
|
59
|
-
id: 'v1',
|
|
60
|
-
type: 'vertical-streak',
|
|
61
|
-
properties: {
|
|
62
|
-
step: 30.48,
|
|
63
|
-
colors: ['#bbb', '#bbb', '#bbb', '#bbb', '#bbb'] // dot's color
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
var ElementsSet = exports.ElementsSet = /*#__PURE__*/function (_Record2) {
|
|
68
|
-
function ElementsSet() {
|
|
69
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
70
|
-
_classCallCheck(this, ElementsSet);
|
|
71
|
-
return _callSuper(this, ElementsSet, [{
|
|
72
|
-
vertices: new _immutable.List(json.vertices || []),
|
|
73
|
-
lines: new _immutable.List(json.lines || []),
|
|
74
|
-
holes: new _immutable.List(json.holes || []),
|
|
75
|
-
areas: new _immutable.List(json.areas || []),
|
|
76
|
-
items: new _immutable.List(json.items || [])
|
|
77
|
-
}]);
|
|
78
|
-
}
|
|
79
|
-
_inherits(ElementsSet, _Record2);
|
|
80
|
-
return _createClass(ElementsSet);
|
|
81
|
-
}((0, _immutable.Record)({
|
|
82
|
-
vertices: new _immutable.List(),
|
|
83
|
-
lines: new _immutable.List(),
|
|
84
|
-
holes: new _immutable.List(),
|
|
85
|
-
areas: new _immutable.List(),
|
|
86
|
-
items: new _immutable.List()
|
|
87
|
-
}, 'ElementsSet'));
|
|
88
|
-
var sharedAttributes = {
|
|
89
|
-
id: '',
|
|
90
|
-
type: '',
|
|
91
|
-
prototype: '',
|
|
92
|
-
name: '',
|
|
93
|
-
misc: new _immutable.Map(),
|
|
94
|
-
selected: false,
|
|
95
|
-
properties: new _immutable.Map(),
|
|
96
|
-
style: '',
|
|
97
|
-
category: '',
|
|
98
|
-
visible: true
|
|
99
|
-
};
|
|
100
|
-
var Vertex = exports.Vertex = /*#__PURE__*/function (_Record3) {
|
|
101
|
-
function Vertex() {
|
|
102
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
103
|
-
_classCallCheck(this, Vertex);
|
|
104
|
-
return _callSuper(this, Vertex, [_objectSpread(_objectSpread({}, json), {}, {
|
|
105
|
-
lines: new _immutable.List(json.lines || []),
|
|
106
|
-
areas: new _immutable.List(json.areas || [])
|
|
107
|
-
})]);
|
|
108
|
-
}
|
|
109
|
-
_inherits(Vertex, _Record3);
|
|
110
|
-
return _createClass(Vertex);
|
|
111
|
-
}((0, _immutable.Record)(_objectSpread(_objectSpread({}, sharedAttributes), {}, {
|
|
112
|
-
x: -1,
|
|
113
|
-
y: -1,
|
|
114
|
-
prototype: 'vertices',
|
|
115
|
-
lines: new _immutable.List(),
|
|
116
|
-
areas: new _immutable.List()
|
|
117
|
-
}), 'Vertex'));
|
|
118
|
-
var Line = exports.Line = /*#__PURE__*/function (_Record4) {
|
|
119
|
-
function Line() {
|
|
120
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
121
|
-
_classCallCheck(this, Line);
|
|
122
|
-
return _callSuper(this, Line, [_objectSpread(_objectSpread({}, json), {}, {
|
|
123
|
-
createdDateTime: json.createdDateTime !== undefined ? json.createdDateTime : new Date().getTime(),
|
|
124
|
-
properties: (0, _immutable.fromJS)(json.properties || {}),
|
|
125
|
-
vertices: new _immutable.List(json.vertices || []),
|
|
126
|
-
holes: new _immutable.List(json.holes || []),
|
|
127
|
-
relatedVertices: new _immutable.List(json.relatedVertices || []),
|
|
128
|
-
userData: {}
|
|
129
|
-
})]);
|
|
130
|
-
}
|
|
131
|
-
_inherits(Line, _Record4);
|
|
132
|
-
return _createClass(Line);
|
|
133
|
-
}((0, _immutable.Record)(_objectSpread(_objectSpread({}, sharedAttributes), {}, {
|
|
134
|
-
createdDateTime: new Date().getTime(),
|
|
135
|
-
prototype: 'lines',
|
|
136
|
-
vertices: new _immutable.List(),
|
|
137
|
-
relatedVertices: new _immutable.List(),
|
|
138
|
-
holes: new _immutable.List(),
|
|
139
|
-
focus: false,
|
|
140
|
-
wallColor: '#dddddd',
|
|
141
|
-
userData: {}
|
|
142
|
-
}), 'Line'));
|
|
143
|
-
var Hole = exports.Hole = /*#__PURE__*/function (_Record5) {
|
|
144
|
-
function Hole() {
|
|
145
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
146
|
-
_classCallCheck(this, Hole);
|
|
147
|
-
return _callSuper(this, Hole, [_objectSpread(_objectSpread({}, json), {}, {
|
|
148
|
-
properties: (0, _immutable.fromJS)(json.properties || {}),
|
|
149
|
-
userData: {}
|
|
150
|
-
})]);
|
|
151
|
-
}
|
|
152
|
-
_inherits(Hole, _Record5);
|
|
153
|
-
return _createClass(Hole);
|
|
154
|
-
}((0, _immutable.Record)(_objectSpread(_objectSpread({}, sharedAttributes), {}, {
|
|
155
|
-
prototype: 'holes',
|
|
156
|
-
offset: -1,
|
|
157
|
-
x: 0,
|
|
158
|
-
y: 0,
|
|
159
|
-
rotation: 0,
|
|
160
|
-
line: '',
|
|
161
|
-
url: '',
|
|
162
|
-
userData: {}
|
|
163
|
-
}), 'Hole'));
|
|
164
|
-
var Area = exports.Area = /*#__PURE__*/function (_Record6) {
|
|
165
|
-
function Area() {
|
|
166
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
167
|
-
_classCallCheck(this, Area);
|
|
168
|
-
return _callSuper(this, Area, [_objectSpread(_objectSpread({}, json), {}, {
|
|
169
|
-
properties: (0, _immutable.fromJS)(json.properties || {}),
|
|
170
|
-
vertices: new _immutable.List(json.vertices || [])
|
|
171
|
-
})]);
|
|
172
|
-
}
|
|
173
|
-
_inherits(Area, _Record6);
|
|
174
|
-
return _createClass(Area);
|
|
175
|
-
}((0, _immutable.Record)(_objectSpread(_objectSpread({}, sharedAttributes), {}, {
|
|
176
|
-
prototype: 'areas',
|
|
177
|
-
vertices: new _immutable.List(),
|
|
178
|
-
holes: new _immutable.List(),
|
|
179
|
-
texture: {
|
|
180
|
-
roughness: 0.9,
|
|
181
|
-
metalness: 0,
|
|
182
|
-
uri: ''
|
|
183
|
-
}
|
|
184
|
-
}), 'Area'));
|
|
185
|
-
var Item = exports.Item = /*#__PURE__*/function (_Record7) {
|
|
186
|
-
function Item() {
|
|
187
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
188
|
-
_classCallCheck(this, Item);
|
|
189
|
-
return _callSuper(this, Item, [_objectSpread(_objectSpread({}, json), {}, {
|
|
190
|
-
properties: (0, _immutable.fromJS)(json.properties || {})
|
|
191
|
-
})]);
|
|
192
|
-
}
|
|
193
|
-
_inherits(Item, _Record7);
|
|
194
|
-
return _createClass(Item);
|
|
195
|
-
}((0, _immutable.Record)(_objectSpread(_objectSpread({}, sharedAttributes), {}, {
|
|
196
|
-
prototype: 'items',
|
|
197
|
-
x: 0,
|
|
198
|
-
y: 0,
|
|
199
|
-
rotation: 0,
|
|
200
|
-
submodule: new _immutable.List(),
|
|
201
|
-
normalMap: new _immutable.List(),
|
|
202
|
-
doorStyle: new _immutable.Map(),
|
|
203
|
-
animate: 0,
|
|
204
|
-
animValue: 0,
|
|
205
|
-
itemID: -1,
|
|
206
|
-
sku_number: '',
|
|
207
|
-
layoutpos: '',
|
|
208
|
-
cabinet_category: '',
|
|
209
|
-
counterTop: {
|
|
210
|
-
roughness: 0.9,
|
|
211
|
-
metalness: 0.1,
|
|
212
|
-
uri: ''
|
|
213
|
-
},
|
|
214
|
-
molding: [],
|
|
215
|
-
backsplashVisible: false,
|
|
216
|
-
applianceMaterial: {
|
|
217
|
-
roughness: 0.4,
|
|
218
|
-
metalness: 0.3
|
|
219
|
-
},
|
|
220
|
-
distArray: [[0, 0], [0, 0], [0, 0], [0, 0]]
|
|
221
|
-
}), 'Item'));
|
|
222
|
-
var Layer = exports.Layer = /*#__PURE__*/function (_Record8) {
|
|
223
|
-
function Layer() {
|
|
224
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
225
|
-
_classCallCheck(this, Layer);
|
|
226
|
-
return _callSuper(this, Layer, [_objectSpread(_objectSpread({}, json), {}, {
|
|
227
|
-
vertices: safeLoadMapList(json.vertices, Vertex),
|
|
228
|
-
lines: safeLoadMapList(json.lines, Line),
|
|
229
|
-
holes: safeLoadMapList(json.holes, Hole),
|
|
230
|
-
areas: safeLoadMapList(json.areas, Area),
|
|
231
|
-
items: safeLoadMapList(json.items, Item),
|
|
232
|
-
doorStyle: json.doorStyle !== null ? json.doorStyle : null,
|
|
233
|
-
selected: new ElementsSet(json.selected)
|
|
234
|
-
})]);
|
|
235
|
-
}
|
|
236
|
-
_inherits(Layer, _Record8);
|
|
237
|
-
return _createClass(Layer);
|
|
238
|
-
}((0, _immutable.Record)({
|
|
239
|
-
id: '',
|
|
240
|
-
altitude: 0,
|
|
241
|
-
order: 0,
|
|
242
|
-
opacity: 1,
|
|
243
|
-
name: '',
|
|
244
|
-
visible: true,
|
|
245
|
-
vertices: new _immutable.Map(),
|
|
246
|
-
lines: new _immutable.Map(),
|
|
247
|
-
holes: new _immutable.Map(),
|
|
248
|
-
areas: new _immutable.Map(),
|
|
249
|
-
items: new _immutable.Map(),
|
|
250
|
-
selected: new ElementsSet(),
|
|
251
|
-
counterTop: {},
|
|
252
|
-
wallColor: {},
|
|
253
|
-
floorStyle: {},
|
|
254
|
-
doorHandle: '',
|
|
255
|
-
doorStyle: null,
|
|
256
|
-
molding: [],
|
|
257
|
-
backsplash: {
|
|
258
|
-
roughness: 0.2,
|
|
259
|
-
metalness: 0.1,
|
|
260
|
-
uri: ''
|
|
261
|
-
},
|
|
262
|
-
backsplashApplied: false,
|
|
263
|
-
ceilHeight: 96,
|
|
264
|
-
unit: _constants.UNIT_INCH
|
|
265
|
-
}, 'Layer'));
|
|
266
|
-
var Group = exports.Group = /*#__PURE__*/function (_Record9) {
|
|
267
|
-
function Group() {
|
|
268
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
269
|
-
_classCallCheck(this, Group);
|
|
270
|
-
return _callSuper(this, Group, [_objectSpread(_objectSpread({}, json), {}, {
|
|
271
|
-
properties: (0, _immutable.fromJS)(json.properties || {}),
|
|
272
|
-
elements: (0, _immutable.fromJS)(json.elements || {})
|
|
273
|
-
})]);
|
|
274
|
-
}
|
|
275
|
-
_inherits(Group, _Record9);
|
|
276
|
-
return _createClass(Group);
|
|
277
|
-
}((0, _immutable.Record)(_objectSpread(_objectSpread({}, sharedAttributes), {}, {
|
|
278
|
-
prototype: 'groups',
|
|
279
|
-
x: 0,
|
|
280
|
-
y: 0,
|
|
281
|
-
rotation: 0,
|
|
282
|
-
elements: new _immutable.Map()
|
|
283
|
-
}), 'Group'));
|
|
284
|
-
var DefaultLayers = exports.DefaultLayers = new _immutable.Map({
|
|
285
|
-
'layer-1': new Layer({
|
|
286
|
-
id: 'layer-1',
|
|
287
|
-
name: 'default'
|
|
288
|
-
})
|
|
289
|
-
});
|
|
290
|
-
var Scene = exports.Scene = /*#__PURE__*/function (_Record0) {
|
|
291
|
-
function Scene() {
|
|
292
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
293
|
-
_classCallCheck(this, Scene);
|
|
294
|
-
var layers = safeLoadMapList(json.layers, Layer, DefaultLayers);
|
|
295
|
-
return _callSuper(this, Scene, [_objectSpread(_objectSpread({}, json), {}, {
|
|
296
|
-
// grids: safeLoadMapList(json.grids, Grid, DefaultGrids),
|
|
297
|
-
grids: DefaultGrids,
|
|
298
|
-
layers: layers,
|
|
299
|
-
selectedLayer: layers.first().id,
|
|
300
|
-
groups: safeLoadMapList(json.groups || {}, Group),
|
|
301
|
-
meta: json.meta ? (0, _immutable.fromJS)(json.meta) : new _immutable.Map(),
|
|
302
|
-
guides: !(0, _helper.isEmpty)(json.guides) ? (0, _immutable.fromJS)(json.guides) : new _immutable.Map({
|
|
303
|
-
horizontal: new _immutable.Map(),
|
|
304
|
-
vertical: new _immutable.Map(),
|
|
305
|
-
circular: new _immutable.Map()
|
|
306
|
-
})
|
|
307
|
-
})]);
|
|
308
|
-
}
|
|
309
|
-
_inherits(Scene, _Record0);
|
|
310
|
-
return _createClass(Scene);
|
|
311
|
-
}((0, _immutable.Record)({
|
|
312
|
-
unit: 'cm',
|
|
313
|
-
rulerUnit: 'in',
|
|
314
|
-
layers: new _immutable.Map(),
|
|
315
|
-
grids: new _immutable.Map(),
|
|
316
|
-
selectedLayer: null,
|
|
317
|
-
groups: new _immutable.Map(),
|
|
318
|
-
width: 3000,
|
|
319
|
-
height: 2000,
|
|
320
|
-
meta: new _immutable.Map(),
|
|
321
|
-
//additional info
|
|
322
|
-
guides: new _immutable.Map(),
|
|
323
|
-
title: '',
|
|
324
|
-
currentProjectID: null,
|
|
325
|
-
showfg: true,
|
|
326
|
-
showWallLengthMeasure: 1,
|
|
327
|
-
showBaseCabinetMeasure: 1,
|
|
328
|
-
showWallCabinetMeasure: 1,
|
|
329
|
-
showWindowDoorMeasure: 1,
|
|
330
|
-
isLoadingCabinet: false,
|
|
331
|
-
loadFlag: false,
|
|
332
|
-
isEndDragging: false,
|
|
333
|
-
setLineAttributes: false
|
|
334
|
-
}, 'Scene'));
|
|
335
|
-
var CatalogElement = exports.CatalogElement = /*#__PURE__*/function (_Record1) {
|
|
336
|
-
function CatalogElement() {
|
|
337
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
338
|
-
_classCallCheck(this, CatalogElement);
|
|
339
|
-
return _callSuper(this, CatalogElement, [_objectSpread(_objectSpread({}, json), {}, {
|
|
340
|
-
info: (0, _immutable.fromJS)(json.info),
|
|
341
|
-
properties: (0, _immutable.fromJS)(json.properties),
|
|
342
|
-
obj: (0, _immutable.fromJS)(json.obj)
|
|
343
|
-
})]);
|
|
344
|
-
}
|
|
345
|
-
_inherits(CatalogElement, _Record1);
|
|
346
|
-
return _createClass(CatalogElement);
|
|
347
|
-
}((0, _immutable.Record)({
|
|
348
|
-
itemID: -1,
|
|
349
|
-
name: '',
|
|
350
|
-
prototype: '',
|
|
351
|
-
info: new _immutable.Map(),
|
|
352
|
-
properties: new _immutable.Map(),
|
|
353
|
-
obj: new _immutable.Map(),
|
|
354
|
-
type: ''
|
|
355
|
-
}, 'CatalogElement'));
|
|
356
|
-
var Catalog = exports.Catalog = /*#__PURE__*/function (_Record10) {
|
|
357
|
-
function Catalog() {
|
|
358
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
359
|
-
_classCallCheck(this, Catalog);
|
|
360
|
-
var elements = safeLoadMapList(json.elements, CatalogElement);
|
|
361
|
-
return _callSuper(this, Catalog, [{
|
|
362
|
-
elements: elements,
|
|
363
|
-
ready: !elements.isEmpty()
|
|
364
|
-
}]);
|
|
365
|
-
}
|
|
366
|
-
_inherits(Catalog, _Record10);
|
|
367
|
-
return _createClass(Catalog, [{
|
|
368
|
-
key: "factoryElement",
|
|
369
|
-
value: function factoryElement(type, options, initialProperties, state) {
|
|
370
|
-
if (!this.elements.has(type)) {
|
|
371
|
-
var catList = this.elements.map(function (element) {
|
|
372
|
-
return element.name;
|
|
373
|
-
}).toArray();
|
|
374
|
-
throw new Error("Element ".concat(type, " does not exist in catalog ").concat(catList));
|
|
375
|
-
}
|
|
376
|
-
var element = this.elements.get(type);
|
|
377
|
-
var properties = element.properties.map(function (value, key) {
|
|
378
|
-
return initialProperties && initialProperties.has(key) ? initialProperties.get(key) : value.get('defaultValue');
|
|
379
|
-
});
|
|
380
|
-
if (options) {
|
|
381
|
-
if (options.isDuplication) {
|
|
382
|
-
var layerID = state.scene.selectedLayer;
|
|
383
|
-
var currentItemID = state.scene.getIn(['layers', layerID, 'selected', 'items'])._tail.array[0];
|
|
384
|
-
var currentItem = state.scene.getIn(['layers', layerID, 'items', currentItemID]);
|
|
385
|
-
var sizeinfo = {
|
|
386
|
-
width: currentItem.properties.get('width'),
|
|
387
|
-
height: currentItem.properties.get('height'),
|
|
388
|
-
depth: currentItem.properties.get('depth')
|
|
389
|
-
};
|
|
390
|
-
properties = properties.set('width', sizeinfo.width).set('height', sizeinfo.height).set('depth', sizeinfo.depth);
|
|
391
|
-
if (currentItem.properties.get('oldDepth') !== undefined) properties = properties.set('oldDepth', currentItem.properties.get('oldDepth'));
|
|
392
|
-
if (currentItem.properties.get('oldWidth') !== undefined) properties = properties.set('oldWidth', currentItem.properties.get('oldWidth'));
|
|
393
|
-
if (currentItem.properties.get('oldHeight') !== undefined) properties = properties.set('oldHeight', currentItem.properties.get('oldHeight'));
|
|
394
|
-
} else if (element.prototype === 'holes') {} else {
|
|
395
|
-
var temp = {
|
|
396
|
-
width: element.getIn(['info', 'sizeinfo', 'width']),
|
|
397
|
-
height: element.getIn(['info', 'sizeinfo', 'height']),
|
|
398
|
-
depth: element.getIn(['info', 'sizeinfo', 'depth'])
|
|
399
|
-
};
|
|
400
|
-
var _sizeinfo = {
|
|
401
|
-
width: new _immutable.Map({
|
|
402
|
-
_length: temp.width,
|
|
403
|
-
_unit: 'in',
|
|
404
|
-
length: (0, _convertUnits["default"])(temp.width).from('in').to('cm')
|
|
405
|
-
}),
|
|
406
|
-
height: new _immutable.Map({
|
|
407
|
-
_length: temp.height,
|
|
408
|
-
_unit: 'in',
|
|
409
|
-
length: (0, _convertUnits["default"])(temp.height).from('in').to('cm')
|
|
410
|
-
}),
|
|
411
|
-
depth: new _immutable.Map({
|
|
412
|
-
_length: temp.depth,
|
|
413
|
-
_unit: 'in',
|
|
414
|
-
length: (0, _convertUnits["default"])(temp.depth).from('in').to('cm')
|
|
415
|
-
})
|
|
416
|
-
};
|
|
417
|
-
properties = properties.set('width', _sizeinfo.width).set('height', _sizeinfo.height).set('depth', _sizeinfo.depth);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
switch (element.prototype) {
|
|
421
|
-
case 'lines':
|
|
422
|
-
return new Line(options).merge({
|
|
423
|
-
properties: properties
|
|
424
|
-
});
|
|
425
|
-
case 'holes':
|
|
426
|
-
return new Hole(options).merge({
|
|
427
|
-
properties: properties
|
|
428
|
-
});
|
|
429
|
-
case 'areas':
|
|
430
|
-
return new Area(options).merge({
|
|
431
|
-
properties: properties
|
|
432
|
-
});
|
|
433
|
-
case 'items':
|
|
434
|
-
return new Item(options).merge({
|
|
435
|
-
properties: properties
|
|
436
|
-
});
|
|
437
|
-
default:
|
|
438
|
-
throw new Error('prototype not valid');
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
}]);
|
|
442
|
-
}((0, _immutable.Record)({
|
|
443
|
-
ready: false,
|
|
444
|
-
page: 'root',
|
|
445
|
-
path: new _immutable.List(),
|
|
446
|
-
elements: new _immutable.Map()
|
|
447
|
-
}, 'Catalog'));
|
|
448
|
-
var HistoryStructure = exports.HistoryStructure = /*#__PURE__*/function (_Record11) {
|
|
449
|
-
function HistoryStructure() {
|
|
450
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
451
|
-
_classCallCheck(this, HistoryStructure);
|
|
452
|
-
return _callSuper(this, HistoryStructure, [{
|
|
453
|
-
list: (0, _immutable.fromJS)(json.list || []),
|
|
454
|
-
first: new Scene(json.scene),
|
|
455
|
-
last: new Scene(json.last || json.scene)
|
|
456
|
-
}]);
|
|
457
|
-
}
|
|
458
|
-
_inherits(HistoryStructure, _Record11);
|
|
459
|
-
return _createClass(HistoryStructure);
|
|
460
|
-
}((0, _immutable.Record)({
|
|
461
|
-
list: new _immutable.List(),
|
|
462
|
-
first: null,
|
|
463
|
-
last: null
|
|
464
|
-
}, 'HistoryStructure'));
|
|
465
|
-
var State = exports.State = /*#__PURE__*/function (_Record12) {
|
|
466
|
-
function State() {
|
|
467
|
-
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
468
|
-
_classCallCheck(this, State);
|
|
469
|
-
return _callSuper(this, State, [_objectSpread(_objectSpread({}, json), {}, {
|
|
470
|
-
scene: new Scene(json.scene),
|
|
471
|
-
sceneHistory: new HistoryStructure(json),
|
|
472
|
-
catalog: new Catalog(json.catalog || {}),
|
|
473
|
-
viewer2D: new _immutable.Map(json.viewer2D || {}),
|
|
474
|
-
replacingSupport: new _immutable.Map(json.drawingSupport || {}),
|
|
475
|
-
drawingSupport: new _immutable.Map(json.drawingSupport || {}),
|
|
476
|
-
draggingSupport: new _immutable.Map(json.draggingSupport || {}),
|
|
477
|
-
rotatingSupport: new _immutable.Map(json.rotatingSupport || {}),
|
|
478
|
-
misc: json.misc ? (0, _immutable.fromJS)(json.misc) : new _immutable.Map()
|
|
479
|
-
})]);
|
|
480
|
-
}
|
|
481
|
-
_inherits(State, _Record12);
|
|
482
|
-
return _createClass(State);
|
|
483
|
-
}((0, _immutable.Record)({
|
|
484
|
-
mode: _constants.MODE_IDLE,
|
|
485
|
-
scene: new Scene(),
|
|
486
|
-
sceneHistory: new HistoryStructure(),
|
|
487
|
-
catalog: new Catalog(),
|
|
488
|
-
viewer2D: new _immutable.Map(),
|
|
489
|
-
mouse: new _immutable.Map({
|
|
490
|
-
x: 0,
|
|
491
|
-
y: 0
|
|
492
|
-
}),
|
|
493
|
-
zoom: 0,
|
|
494
|
-
snapMask: _snap.SNAP_MASK,
|
|
495
|
-
snapElements: new _immutable.List(),
|
|
496
|
-
activeSnapElement: null,
|
|
497
|
-
replacingSupport: new _immutable.Map(),
|
|
498
|
-
drawingSupport: new _immutable.Map(),
|
|
499
|
-
draggingSupport: new _immutable.Map(),
|
|
500
|
-
rotatingSupport: new _immutable.Map(),
|
|
501
|
-
doorStyle: null,
|
|
502
|
-
oStyle: null,
|
|
503
|
-
errors: new _immutable.List(),
|
|
504
|
-
warnings: new _immutable.List(),
|
|
505
|
-
clipboardProperties: new _immutable.Map(),
|
|
506
|
-
selectedElementsHistory: new _immutable.List(),
|
|
507
|
-
misc: new _immutable.Map(),
|
|
508
|
-
//additional info
|
|
509
|
-
alterate: false,
|
|
510
|
-
isOpen: false,
|
|
511
|
-
popup: false,
|
|
512
|
-
openedType: 0,
|
|
513
|
-
login: false,
|
|
514
|
-
userId: 0,
|
|
515
|
-
isHelp: false,
|
|
516
|
-
isCabinetDrawing: false
|
|
517
|
-
}, 'State'));
|
|
518
|
-
//# sourceMappingURL=models.js.map
|