kitchen-simulator 5.0.0-test.7 → 5.0.0-test.70
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/README.md +1 -1
- package/package.json +22 -63
- package/src/KitchenConfiguratorApp.jsx +5 -5
- package/src/_KitchenConfigurator.jsx +578 -0
- package/src/actions/export.js +2 -5
- package/src/assets/Window.hdr +2100 -0
- package/src/assets/brown_photostudio_02_1k.hdr +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Black Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Black.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Bold Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Bold.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Book Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Book.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard ExtraBold Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard ExtraBold.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard ExtraLight Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard ExtraLight.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Hairline Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Hairline.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Heavy Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Heavy.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Light Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Light.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Medium Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Medium.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard SemiBold Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard SemiBold.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Thin Italic.woff +0 -0
- package/src/assets/fonts/Rene Bieder Milliard Thin.woff +0 -0
- package/src/assets/fonts/style.css +177 -0
- package/src/assets/gltf/door_closet.bin +0 -0
- package/src/assets/gltf/door_closet.fbx +0 -0
- package/src/assets/gltf/door_closet.gltf +1 -0
- package/src/assets/gltf/door_exterior.bin +0 -0
- package/src/assets/gltf/door_exterior.fbx +0 -0
- package/src/assets/gltf/door_exterior.gltf +1 -0
- package/src/assets/gltf/door_interior.bin +0 -0
- package/src/assets/gltf/door_interior.fbx +0 -0
- package/src/assets/gltf/door_interior.gltf +1 -0
- package/src/assets/gltf/door_sliding.bin +0 -0
- package/src/assets/gltf/door_sliding.fbx +0 -0
- package/src/assets/gltf/door_sliding.gltf +1 -0
- package/src/assets/gltf/doorway_framed.bin +0 -0
- package/src/assets/gltf/doorway_framed.fbx +0 -0
- package/src/assets/gltf/doorway_framed.gltf +1 -0
- package/src/assets/gltf/window_clear.bin +0 -0
- package/src/assets/gltf/window_clear.fbx +0 -0
- package/src/assets/gltf/window_clear.gltf +1 -0
- package/src/assets/gltf/window_cross.bin +0 -0
- package/src/assets/gltf/window_cross.fbx +0 -0
- package/src/assets/gltf/window_cross.gltf +1 -0
- package/src/assets/gltf/window_double_hung.bin +0 -0
- package/src/assets/gltf/window_double_hung.fbx +0 -0
- package/src/assets/gltf/window_double_hung.gltf +1 -0
- package/src/assets/gltf/window_vertical.bin +0 -0
- package/src/assets/gltf/window_vertical.fbx +0 -0
- package/src/assets/gltf/window_vertical.gltf +1 -0
- package/src/assets/img/1.jpg +0 -0
- package/src/assets/img/TKC_thumbnail.png +0 -0
- package/src/assets/img/Toggle.png +0 -0
- package/src/assets/img/loading/loading.gif +0 -0
- package/src/assets/img/loading/loading_1.svg +11 -0
- package/src/assets/img/loading_large.gif +0 -0
- package/src/assets/img/png/door/closet.png +0 -0
- package/src/assets/img/png/door/doorwaysframed.png +0 -0
- package/src/assets/img/png/door/doorwaysframeles.png +0 -0
- package/src/assets/img/png/door/doorwaysframeless.png +0 -0
- package/src/assets/img/png/door/exterior.png +0 -0
- package/src/assets/img/png/door/interior.png +0 -0
- package/src/assets/img/png/door/sliding.png +0 -0
- package/src/assets/img/png/helper/outcome.png +0 -0
- package/src/assets/img/png/helper/video_preview_3d.png +0 -0
- package/src/assets/img/png/helper/video_preview_start.png +0 -0
- package/src/assets/img/project_img.png +0 -0
- package/src/assets/img/rta/rta_logo_box_blue.jpg +0 -0
- package/src/assets/img/rta/rta_logo_box_blue_ico.jpg +0 -0
- package/src/assets/img/rta/rta_logo_box_blue_ico.svg +55 -0
- package/src/assets/img/rta/rta_logo_box_darkGray.jpg +0 -0
- package/src/assets/img/rta/rta_logo_box_lightblue.png +0 -0
- package/src/assets/img/rta/rta_logo_box_lightmaroon.png +0 -0
- package/src/assets/img/rta/rta_logo_box_maroon.png +0 -0
- package/src/assets/img/rta/rta_logo_box_white.png +0 -0
- package/src/assets/img/rta_menu.png +0 -0
- package/src/assets/img/step2.jpg +0 -0
- package/src/assets/img/step3.jpg +0 -0
- package/src/assets/img/step4.jpg +0 -0
- package/src/assets/img/step5.jpg +0 -0
- package/src/assets/img/step6.jpg +0 -0
- package/src/assets/img/step7.jpg +0 -0
- package/src/assets/img/step8.jpg +0 -0
- package/src/assets/img/svg/2d_delete_object.svg +33 -0
- package/src/assets/img/svg/2d_delete_object1.svg +33 -0
- package/src/assets/img/svg/2d_lock_object.svg +33 -0
- package/src/assets/img/svg/3d_item_move.svg +106 -0
- package/src/assets/img/svg/3d_item_rotation.svg +76 -0
- package/src/assets/img/svg/3d_item_warning_edit.svg +77 -0
- package/src/assets/img/svg/3d_item_warning_info.svg +81 -0
- package/src/assets/img/svg/accessories.svg +4 -0
- package/src/assets/img/svg/angle_icon.svg +39 -0
- package/src/assets/img/svg/blank_div.svg +14 -0
- package/src/assets/img/svg/bottombar/2d3d_button.svg +3 -0
- package/src/assets/img/svg/bottombar/2d3d_button_active.svg +3 -0
- package/src/assets/img/svg/bottombar/2d3d_toggle.svg +4 -0
- package/src/assets/img/svg/bottombar/2d3d_toggle_active.svg +4 -0
- package/src/assets/img/svg/bottombar/arrow-down.svg +3 -0
- package/src/assets/img/svg/bottombar/arrow-left.svg +3 -0
- package/src/assets/img/svg/bottombar/arrow-minus.svg +3 -0
- package/src/assets/img/svg/bottombar/arrow-plus.svg +11 -0
- package/src/assets/img/svg/bottombar/arrow-right.svg +3 -0
- package/src/assets/img/svg/bottombar/arrow-up.svg +3 -0
- package/src/assets/img/svg/bottombar/collapse.svg +3 -0
- package/src/assets/img/svg/bottombar/elevation-back.svg +6 -0
- package/src/assets/img/svg/bottombar/elevation-front.svg +6 -0
- package/src/assets/img/svg/bottombar/elevation-left.svg +6 -0
- package/src/assets/img/svg/bottombar/elevation-right.svg +7 -0
- package/src/assets/img/svg/bottombar/elevation.svg +6 -0
- package/src/assets/img/svg/bottombar/expand.svg +3 -0
- package/src/assets/img/svg/bottombar/help.svg +72 -0
- package/src/assets/img/svg/bottombar/incm_toggle.svg +39 -0
- package/src/assets/img/svg/bottombar/pan_1.svg +57 -0
- package/src/assets/img/svg/bottombar/pan_2.svg +27 -0
- package/src/assets/img/svg/bottombar/pan_3.svg +27 -0
- package/src/assets/img/svg/bottombar/pan_4.svg +27 -0
- package/src/assets/img/svg/bottombar/pan_5.svg +27 -0
- package/src/assets/img/svg/bottombar/settings.svg +23 -0
- package/src/assets/img/svg/bottombar/spin-down.svg +76 -0
- package/src/assets/img/svg/bottombar/spin-left.svg +75 -0
- package/src/assets/img/svg/bottombar/spin-right.svg +75 -0
- package/src/assets/img/svg/bottombar/spin-up.svg +76 -0
- package/src/assets/img/svg/bottombar/spin_1.svg +48 -0
- package/src/assets/img/svg/bottombar/spin_2.svg +31 -0
- package/src/assets/img/svg/bottombar/spin_3.svg +31 -0
- package/src/assets/img/svg/bottombar/spin_4.svg +31 -0
- package/src/assets/img/svg/bottombar/spin_5.svg +31 -0
- package/src/assets/img/svg/bottombar/zoomin.svg +29 -0
- package/src/assets/img/svg/bottombar/zoomout.svg +26 -0
- package/src/assets/img/svg/check.svg +10 -0
- package/src/assets/img/svg/close.svg +11 -0
- package/src/assets/img/svg/color/Black.svg +3 -0
- package/src/assets/img/svg/color/Blue.svg +3 -0
- package/src/assets/img/svg/color/Brown.svg +9 -0
- package/src/assets/img/svg/color/Cream.svg +3 -0
- package/src/assets/img/svg/color/Dark.svg +9 -0
- package/src/assets/img/svg/color/Gray.svg +3 -0
- package/src/assets/img/svg/color/Green.svg +3 -0
- package/src/assets/img/svg/color/Light.svg +9 -0
- package/src/assets/img/svg/color/Medium.svg +9 -0
- package/src/assets/img/svg/color/Unfinished.svg +9 -0
- package/src/assets/img/svg/color/White.svg +3 -0
- package/src/assets/img/svg/color/White.svg.bak +3 -0
- package/src/assets/img/svg/color/stone2.jpg +0 -0
- package/src/assets/img/svg/color/wood2.jpg +0 -0
- package/src/assets/img/svg/copy.svg +11 -0
- package/src/assets/img/svg/delete.svg +3 -0
- package/src/assets/img/svg/detail.svg +77 -0
- package/src/assets/img/svg/door/Closet.svg +11 -0
- package/src/assets/img/svg/door/Exterior.svg +5 -0
- package/src/assets/img/svg/door/Framed_dorway.svg +5 -0
- package/src/assets/img/svg/door/Frameless_dorway.svg +5 -0
- package/src/assets/img/svg/door/Interior.svg +7 -0
- package/src/assets/img/svg/door/Sliding.svg +5 -0
- package/src/assets/img/svg/doors_closet.svg +47 -0
- package/src/assets/img/svg/doors_exterior.svg +25 -0
- package/src/assets/img/svg/doors_interior.svg +29 -0
- package/src/assets/img/svg/doors_patio.svg +26 -0
- package/src/assets/img/svg/duplicate.svg +11 -0
- package/src/assets/img/svg/duplicate_object_left.svg +32 -0
- package/src/assets/img/svg/duplicate_object_right.svg +32 -0
- package/src/assets/img/svg/filtersActive.svg +19 -0
- package/src/assets/img/svg/firstsetting/L.svg +3 -0
- package/src/assets/img/svg/firstsetting/L2.svg +3 -0
- package/src/assets/img/svg/firstsetting/Open.svg +3 -0
- package/src/assets/img/svg/firstsetting/Square.svg +3 -0
- package/src/assets/img/svg/firstsetting/bar-active.svg +9 -0
- package/src/assets/img/svg/firstsetting/bar-normal.svg +3 -0
- package/src/assets/img/svg/firstsetting/bullet-current.svg +3 -0
- package/src/assets/img/svg/firstsetting/bullet-done.svg +3 -0
- package/src/assets/img/svg/firstsetting/bullet-not-done.svg +3 -0
- package/src/assets/img/svg/firstsetting/check-active.svg +3 -0
- package/src/assets/img/svg/firstsetting/check-normal.svg +3 -0
- package/src/assets/img/svg/firstsetting/pencil.svg +11 -0
- package/src/assets/img/svg/green_checkmark.svg +27 -0
- package/src/assets/img/svg/headerbar/assist.svg +3 -0
- package/src/assets/img/svg/headerbar/cart.svg +3 -0
- package/src/assets/img/svg/headerbar/check.svg +10 -0
- package/src/assets/img/svg/headerbar/consult_designer.svg +45 -0
- package/src/assets/img/svg/headerbar/edit_name.svg +26 -0
- package/src/assets/img/svg/headerbar/file-dollar.svg +13 -0
- package/src/assets/img/svg/headerbar/hamburger_menu.svg +32 -0
- package/src/assets/img/svg/headerbar/plus.svg +11 -0
- package/src/assets/img/svg/headerbar/review_quote.svg +44 -0
- package/src/assets/img/svg/headerbar/ruler-measure.svg +11 -0
- package/src/assets/img/svg/headerbar/save.svg +3 -0
- package/src/assets/img/svg/headerbar/setting.svg +75 -0
- package/src/assets/img/svg/help/check.svg +10 -0
- package/src/assets/img/svg/help/search.svg +76 -0
- package/src/assets/img/svg/intro/1-start-with-floorplan-whole.svg +27 -0
- package/src/assets/img/svg/intro/1-start-with-floorplan.svg +26 -0
- package/src/assets/img/svg/intro/2-start-from-scratch-whole.svg +28 -0
- package/src/assets/img/svg/intro/2-start-from-scratch.svg +27 -0
- package/src/assets/img/svg/intro/3-retrieve-project-whole.svg +19 -0
- package/src/assets/img/svg/intro/3-retrieve-project.svg +18 -0
- package/src/assets/img/svg/invert.svg +127 -0
- package/src/assets/img/svg/lefttoolbar/appliance-active.svg +13 -0
- package/src/assets/img/svg/lefttoolbar/appliance.svg +13 -0
- package/src/assets/img/svg/lefttoolbar/cabinet-active.svg +10 -0
- package/src/assets/img/svg/lefttoolbar/cabinet-category.svg +3 -0
- package/src/assets/img/svg/lefttoolbar/cabinet-one.svg +3 -0
- package/src/assets/img/svg/lefttoolbar/cabinet.svg +10 -0
- package/src/assets/img/svg/lefttoolbar/disigner_assistance.svg +89 -0
- package/src/assets/img/svg/lefttoolbar/door-style-active.svg +20 -0
- package/src/assets/img/svg/lefttoolbar/door-style.svg +20 -0
- package/src/assets/img/svg/lefttoolbar/door.svg +12 -0
- package/src/assets/img/svg/lefttoolbar/error_icon.svg +81 -0
- package/src/assets/img/svg/lefttoolbar/finishing-active.svg +13 -0
- package/src/assets/img/svg/lefttoolbar/finishing.svg +13 -0
- package/src/assets/img/svg/lefttoolbar/reviewforquote-active.svg +86 -0
- package/src/assets/img/svg/lefttoolbar/reviewforquote.svg +12 -0
- package/src/assets/img/svg/lefttoolbar/room-shape-L.svg +3 -0
- package/src/assets/img/svg/lefttoolbar/room-shape-active.svg +18 -0
- package/src/assets/img/svg/lefttoolbar/room-shape-custom.svg +12 -0
- package/src/assets/img/svg/lefttoolbar/room-shape-irregular.svg +3 -0
- package/src/assets/img/svg/lefttoolbar/room-shape-open.svg +3 -0
- package/src/assets/img/svg/lefttoolbar/room-shape-square.svg +3 -0
- package/src/assets/img/svg/lefttoolbar/room-shape.svg +18 -0
- package/src/assets/img/svg/lefttoolbar/search.svg +76 -0
- package/src/assets/img/svg/lefttoolbar/view_more.svg +86 -0
- package/src/assets/img/svg/lefttoolbar/warning_icon.svg +81 -0
- package/src/assets/img/svg/lefttoolbar/window.svg +12 -0
- package/src/assets/img/svg/menubar/login.svg +84 -0
- package/src/assets/img/svg/menubar/my_projects.svg +85 -0
- package/src/assets/img/svg/menubar/new_project.svg +110 -0
- package/src/assets/img/svg/menubar/save_project.svg +84 -0
- package/src/assets/img/svg/options.svg +3 -0
- package/src/assets/img/svg/positioning.svg +3 -0
- package/src/assets/img/svg/rotate.png +0 -0
- package/src/assets/img/svg/rotate.svg +17 -0
- package/src/assets/img/svg/rotate_object_clockwise.svg +26 -0
- package/src/assets/img/svg/rotate_object_counterclockwise.svg +26 -0
- package/src/assets/img/svg/toggleFilters.svg +19 -0
- package/src/assets/img/svg/toolbar/add_appliances_active.svg +64 -0
- package/src/assets/img/svg/toolbar/add_appliances_inactive.svg +52 -0
- package/src/assets/img/svg/toolbar/add_button.svg +36 -0
- package/src/assets/img/svg/toolbar/add_cabinets_active.svg +59 -0
- package/src/assets/img/svg/toolbar/add_cabinets_inactive.svg +49 -0
- package/src/assets/img/svg/toolbar/add_items_doors.svg +25 -0
- package/src/assets/img/svg/toolbar/add_items_doorways.svg +24 -0
- package/src/assets/img/svg/toolbar/add_items_refrigerator.svg +32 -0
- package/src/assets/img/svg/toolbar/add_items_windows.svg +28 -0
- package/src/assets/img/svg/toolbar/apply_button.svg +38 -0
- package/src/assets/img/svg/toolbar/arrow-plus.svg +11 -0
- package/src/assets/img/svg/toolbar/backsplash.svg +8 -0
- package/src/assets/img/svg/toolbar/cancel_button.svg +37 -0
- package/src/assets/img/svg/toolbar/consult_a_designer_button.svg +47 -0
- package/src/assets/img/svg/toolbar/countertop.svg +7 -0
- package/src/assets/img/svg/toolbar/dcm.png +0 -0
- package/src/assets/img/svg/toolbar/dcm_off.svg +12 -0
- package/src/assets/img/svg/toolbar/dcm_on.svg +474 -0
- package/src/assets/img/svg/toolbar/delete_button.svg +37 -0
- package/src/assets/img/svg/toolbar/download.svg +77 -0
- package/src/assets/img/svg/toolbar/draw_custom_floor.svg +31 -0
- package/src/assets/img/svg/toolbar/edit_button.svg +75 -0
- package/src/assets/img/svg/toolbar/email_quote_button.svg +44 -0
- package/src/assets/img/svg/toolbar/fbm.png +0 -0
- package/src/assets/img/svg/toolbar/finishing_touches_active.svg +54 -0
- package/src/assets/img/svg/toolbar/finishing_touches_inactive.svg +42 -0
- package/src/assets/img/svg/toolbar/floorstyle.svg +9 -0
- package/src/assets/img/svg/toolbar/fmb.png +0 -0
- package/src/assets/img/svg/toolbar/fmb_off.svg +12 -0
- package/src/assets/img/svg/toolbar/fmb_on.svg +489 -0
- package/src/assets/img/svg/toolbar/furnishings_icon.svg +6 -0
- package/src/assets/img/svg/toolbar/get_started_button.svg +41 -0
- package/src/assets/img/svg/toolbar/handles.svg +5 -0
- package/src/assets/img/svg/toolbar/lighting.svg +7 -0
- package/src/assets/img/svg/toolbar/lrm.png +0 -0
- package/src/assets/img/svg/toolbar/lrm_off.svg +12 -0
- package/src/assets/img/svg/toolbar/lrm_on.svg +470 -0
- package/src/assets/img/svg/toolbar/make_floorplan_active.svg +66 -0
- package/src/assets/img/svg/toolbar/make_floorplan_inactive.svg +52 -0
- package/src/assets/img/svg/toolbar/predefined_room_l_shaped.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_layout.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_long_narrow.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_open_l_shape.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_open_pentagon.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_open_rectangle.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_open_rectangle_2.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_pentagon.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_rectangle.svg +20 -0
- package/src/assets/img/svg/toolbar/predefined_room_rectangle_with_alcove.svg +20 -0
- package/src/assets/img/svg/toolbar/redo_button.svg +75 -0
- package/src/assets/img/svg/toolbar/redo_button1.svg +75 -0
- package/src/assets/img/svg/toolbar/review_quote_active.svg +14 -0
- package/src/assets/img/svg/toolbar/review_quote_inactive.svg +44 -0
- package/src/assets/img/svg/toolbar/save_project_button.svg +44 -0
- package/src/assets/img/svg/toolbar/select_doorstyle_active.svg +67 -0
- package/src/assets/img/svg/toolbar/select_doorstyle_inactive.svg +57 -0
- package/src/assets/img/svg/toolbar/shopping-cart.svg +13 -0
- package/src/assets/img/svg/toolbar/style_change_button.svg +47 -0
- package/src/assets/img/svg/toolbar/take_picture.svg +75 -0
- package/src/assets/img/svg/toolbar/undo_button.svg +76 -0
- package/src/assets/img/svg/toolbar/undo_button1.svg +76 -0
- package/src/assets/img/svg/toolbar/use_button.svg +37 -0
- package/src/assets/img/svg/toolbar/wall_color_icon.svg +6 -0
- package/src/assets/img/svg/topbar/edit_active.svg +10 -0
- package/src/assets/img/svg/topbar/edit_inactive.svg +10 -0
- package/src/assets/img/svg/topbar/redo_active.svg +42 -0
- package/src/assets/img/svg/topbar/redo_inactive.svg +23 -0
- package/src/assets/img/svg/topbar/select_all_active.svg +50 -0
- package/src/assets/img/svg/topbar/select_all_inactive.svg +32 -0
- package/src/assets/img/svg/topbar/take_picture_active.svg +51 -0
- package/src/assets/img/svg/topbar/take_picture_inactive.svg +26 -0
- package/src/assets/img/svg/topbar/undo_active.svg +42 -0
- package/src/assets/img/svg/topbar/undo_inactive.svg +23 -0
- package/src/assets/img/svg/warning_info_2d.svg +81 -0
- package/src/assets/img/svg/window/Clear.svg +3 -0
- package/src/assets/img/svg/window/Cross.svg +5 -0
- package/src/assets/img/svg/window/Double_hung.svg +4 -0
- package/src/assets/img/svg/window/Vertical.svg +4 -0
- package/src/assets/img/svg/windows_clear.svg +23 -0
- package/src/assets/img/svg/windows_cross.svg +28 -0
- package/src/assets/img/svg/windows_double_hung.svg +24 -0
- package/src/assets/img/svg/windows_vertical.svg +24 -0
- package/src/assets/img/svg/wizardstep/Custom.svg +3 -0
- package/src/assets/img/svg/wizardstep/Dashed_line.svg +3 -0
- package/src/assets/img/svg/wizardstep/L.svg +3 -0
- package/src/assets/img/svg/wizardstep/L2.svg +3 -0
- package/src/assets/img/svg/wizardstep/Open.svg +3 -0
- package/src/assets/img/svg/wizardstep/Square.svg +3 -0
- package/src/assets/img/svg/wizardstep/bar-active.svg +9 -0
- package/src/assets/img/svg/wizardstep/bar-normal.svg +3 -0
- package/src/assets/img/svg/wizardstep/bullet-current.svg +3 -0
- package/src/assets/img/svg/wizardstep/bullet-done.svg +3 -0
- package/src/assets/img/svg/wizardstep/bullet-not-done.svg +3 -0
- package/src/assets/img/svg/wizardstep/check-active.svg +3 -0
- package/src/assets/img/svg/wizardstep/check-normal.svg +3 -0
- package/src/assets/img/svg/wizardstep/detail_view.svg +87 -0
- package/src/assets/img/svg/wizardstep/pencil.svg +11 -0
- package/src/assets/img/svg/wizardstep/tile_view.svg +95 -0
- package/src/assets/img/texture/glass.jpg +0 -0
- package/src/assets/img/texture/steel.jpg +0 -0
- package/src/assets/img/texture/white1px.jpg +0 -0
- package/src/assets/img/texture/wood.jpg +0 -0
- package/src/assets/model/DCM.bin +0 -0
- package/src/assets/model/DCM.fbx +0 -0
- package/src/assets/model/DCM.gltf +1 -0
- package/src/assets/model/FBM.bin +0 -0
- package/src/assets/model/FBM.fbx +0 -0
- package/src/assets/model/FBM.gltf +1 -0
- package/src/assets/model/LRM.bin +0 -0
- package/src/assets/model/LRM.fbx +0 -0
- package/src/assets/model/LRM.gltf +1 -0
- package/src/assets/rtastore_logo.png +0 -0
- package/src/catalog/areas/area/planner-element.jsx +1 -1
- package/src/catalog/factories/wall-factory-3d.js +11 -18
- package/src/catalog/holes/index.js +13 -0
- package/src/catalog/lines/wall/planner-element.jsx +1 -1
- package/src/catalog/mycatalog.js +26 -0
- package/src/catalog/properties/property-checkbox.jsx +64 -68
- package/src/catalog/properties/property-color.jsx +1 -1
- package/src/catalog/properties/property-enum.jsx +37 -40
- package/src/catalog/properties/property-hidden.jsx +1 -1
- package/src/catalog/properties/property-lenght-measure.jsx +2 -2
- package/src/catalog/properties/property-length-measure.jsx +37 -40
- package/src/catalog/properties/property-length-measure_hole.jsx +2 -2
- package/src/catalog/properties/property-number.jsx +1 -1
- package/src/catalog/properties/property-read-only.jsx +1 -1
- package/src/catalog/properties/property-string.jsx +1 -1
- package/src/catalog/properties/property-toggle.jsx +1 -1
- package/src/catalog/utils/exporter.js +1 -1
- package/src/catalog/utils/item-loader.jsx +1 -1
- package/src/class/item.js +1 -1
- package/src/components/content.jsx +1 -19
- package/src/components/export.js +2 -29
- package/src/components/style/button.jsx +1 -1
- package/src/components/style/export.js +24 -0
- package/src/components/style/form-number-input.jsx +3 -29
- package/src/components/style/form-select.jsx +2 -31
- package/src/components/style/form-text-input.jsx +20 -22
- package/src/components/viewer2d/area.jsx +2 -2
- package/src/components/viewer2d/grids/grid-horizontal-streak.jsx +2 -2
- package/src/components/viewer2d/grids/grid-streak.jsx +2 -2
- package/src/components/viewer2d/grids/grid-vertical-streak.jsx +2 -2
- package/src/components/viewer2d/grids/grids.jsx +1 -1
- package/src/components/viewer2d/group.jsx +1 -1
- package/src/components/viewer2d/item.jsx +3 -11
- package/src/components/viewer2d/layer.jsx +1 -1
- package/src/components/viewer2d/line.jsx +30 -33
- package/src/components/viewer2d/ruler.jsx +2 -3
- package/src/components/viewer2d/rulerDist.jsx +6 -6
- package/src/components/viewer2d/rulerX.jsx +1 -1
- package/src/components/viewer2d/rulerY.jsx +1 -1
- package/src/components/viewer2d/scene.jsx +1 -1
- package/src/components/viewer2d/snap.jsx +1 -1
- package/src/components/viewer2d/state.jsx +1 -1
- package/src/components/viewer2d/vertex.jsx +2 -2
- package/src/components/viewer2d/viewer2d.jsx +3 -3
- package/src/components/viewer3d/pointer-lock-navigation.js +1 -1
- package/src/components/viewer3d/ruler-utils/itemRect.jsx +91 -91
- package/src/components/viewer3d/ruler-utils/layer3D.jsx +528 -528
- package/src/components/viewer3d/ruler-utils/scene3D.jsx +85 -87
- package/src/components/viewer3d/scene-creator.js +1 -1
- package/src/components/viewer3d/viewer3d-first-person.js +1 -1
- package/src/components/viewer3d/{viewer3d.js → viewer3d.jsx} +2 -2
- package/src/constants.js +3 -0
- package/src/index.js +0 -2
- package/src/models.js +1 -1
- package/src/reducers/viewer2d-reducer.js +1 -1
- package/src/reducers/viewer3d-reducer.js +1 -1
- package/src/styles/export.js +7 -0
- package/src/styles/tabs.css +40 -0
- package/src/utils/geometry.js +2 -2
- package/src/utils/graph-inner-cycles.js +3 -3
- package/src/utils/helper.js +1 -1
- package/src/utils/molding.js +973 -973
- package/src/utils/react-if.jsx +1 -1
- package/src/KitchenConfigurator.jsx +0 -1517
- package/src/actions/user-actions.js +0 -75
- package/src/components/atoms/Snackbar/index.jsx +0 -43
- package/src/components/atoms/radio-button/index.jsx +0 -20
- package/src/components/atoms/radio-button/styles.js +0 -56
- package/src/components/button/MainButton.jsx +0 -157
- package/src/components/button/ToggleMeasureButton.jsx +0 -65
- package/src/components/catalog-view/catalog-breadcrumb.jsx +0 -53
- package/src/components/catalog-view/catalog-item.jsx +0 -229
- package/src/components/catalog-view/catalog-list.jsx +0 -173
- package/src/components/catalog-view/catalog-page-item.jsx +0 -110
- package/src/components/catalog-view/catalog-turn-back-page-item.jsx +0 -80
- package/src/components/configurator/custom-configurator.jsx +0 -77
- package/src/components/configurator/project-configurator.jsx +0 -120
- package/src/components/firstsetting/button/styles.js +0 -223
- package/src/components/firstsetting/export.js +0 -9
- package/src/components/firstsetting/firstsetting-content-button.jsx +0 -198
- package/src/components/firstsetting/firstsetting-toggle-button.jsx +0 -101
- package/src/components/firstsetting/firstsetting.jsx +0 -814
- package/src/components/footerbar/button/ControlButton.jsx +0 -43
- package/src/components/footerbar/button/DirectionButton.jsx +0 -54
- package/src/components/footerbar/button/DirectionPanSpinButton.jsx +0 -36
- package/src/components/footerbar/button/ToggleButton.jsx +0 -58
- package/src/components/footerbar/button/ToggleConvertButton.jsx +0 -48
- package/src/components/footerbar/button/ToggleMeasureButton.jsx +0 -33
- package/src/components/footerbar/button/styles.js +0 -217
- package/src/components/footerbar/export.js +0 -9
- package/src/components/footerbar/footer-content-button.jsx +0 -198
- package/src/components/footerbar/footer-toggle-button.jsx +0 -101
- package/src/components/footerbar/footerbar.jsx +0 -1103
- package/src/components/footerbar/styles.js +0 -263
- package/src/components/header/button/MenuButton.jsx +0 -46
- package/src/components/header/button/SaveButton.jsx +0 -54
- package/src/components/header/button/styles.js +0 -181
- package/src/components/header/export.js +0 -5
- package/src/components/header/header.jsx +0 -631
- package/src/components/header/header.style.css +0 -47
- package/src/components/header/styles.js +0 -320
- package/src/components/login/Login.js +0 -77
- package/src/components/login/LoginForm/index.js +0 -108
- package/src/components/login/Register.js +0 -83
- package/src/components/login/RegisterForm/index.js +0 -171
- package/src/components/login/jwtService.js +0 -201
- package/src/components/login/style.css +0 -158
- package/src/components/login/style.scss +0 -260
- package/src/components/molecules/slider/index.jsx +0 -15
- package/src/components/molecules/slider/styles.js +0 -0
- package/src/components/molecules/slider/styles.scss +0 -3
- package/src/components/myprojects/export.js +0 -5
- package/src/components/myprojects/index.jsx +0 -445
- package/src/components/myprojects/styles.js +0 -241
- package/src/components/sidebar/custom-accordion.jsx +0 -48
- package/src/components/sidebar/export.js +0 -15
- package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +0 -73
- package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +0 -101
- package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +0 -149
- package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +0 -316
- package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +0 -108
- package/src/components/sidebar/panel-element-editor/element-editor.jsx +0 -1070
- package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
- package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +0 -104
- package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +0 -155
- package/src/components/sidebar/panel-group-editor.jsx +0 -272
- package/src/components/sidebar/panel-groups.jsx +0 -310
- package/src/components/sidebar/panel-guides.jsx +0 -192
- package/src/components/sidebar/panel-layer-elements.jsx +0 -298
- package/src/components/sidebar/panel-layers.jsx +0 -381
- package/src/components/sidebar/panel.jsx +0 -71
- package/src/components/sidebar/sidebar.jsx +0 -106
- package/src/components/sidebar/toolbar-panel.jsx +0 -139
- package/src/components/sign/export.js +0 -7
- package/src/components/sign/main/index.jsx +0 -523
- package/src/components/sign/main/styles.js +0 -163
- package/src/components/style/cancel-button.jsx +0 -20
- package/src/components/style/content-container.jsx +0 -29
- package/src/components/style/content-title.jsx +0 -20
- package/src/components/style/delete-button.jsx +0 -23
- package/src/components/style/export.jsx +0 -48
- package/src/components/style/form-block.jsx +0 -13
- package/src/components/style/form-number-input_2.jsx +0 -191
- package/src/components/style/form-slider.jsx +0 -36
- package/src/components/style/form-submit-button.jsx +0 -23
- package/src/components/toolbar/button/ControlButton.jsx +0 -41
- package/src/components/toolbar/button/DirectionButton.jsx +0 -34
- package/src/components/toolbar/button/RightButton.jsx +0 -103
- package/src/components/toolbar/button/ToggleButton.jsx +0 -41
- package/src/components/toolbar/button/index.jsx +0 -55
- package/src/components/toolbar/button/styles.js +0 -127
- package/src/components/toolbar/components/DoorStyleMenu.jsx +0 -103
- package/src/components/toolbar/components/Pricing.jsx +0 -126
- package/src/components/toolbar/components/ReviewForQuote.jsx +0 -635
- package/src/components/toolbar/export.js +0 -21
- package/src/components/toolbar/main/Alert.js +0 -122
- package/src/components/toolbar/main/TakePictureModal.jsx +0 -104
- package/src/components/toolbar/main/confirm-popup.jsx +0 -99
- package/src/components/toolbar/main/index.jsx +0 -5627
- package/src/components/toolbar/main/lShaped.json +0 -311
- package/src/components/toolbar/main/longNarrow.json +0 -238
- package/src/components/toolbar/main/myComponents.js +0 -123
- package/src/components/toolbar/main/oRectangle.json +0 -220
- package/src/components/toolbar/main/rectangle.json +0 -238
- package/src/components/toolbar/main/style.css +0 -107
- package/src/components/toolbar/main/styles.js +0 -696
- package/src/components/toolbar/plugin-item.jsx +0 -123
- package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +0 -73
- package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +0 -102
- package/src/components/toolbar/popup/appliance/index.jsx +0 -83
- package/src/components/toolbar/popup/autosaveprompt/index.jsx +0 -150
- package/src/components/toolbar/popup/autosaveprompt/styles.css +0 -64
- package/src/components/toolbar/popup/autosaveprompt/styles.js +0 -40
- package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +0 -73
- package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +0 -119
- package/src/components/toolbar/popup/cabinet/index.jsx +0 -85
- package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +0 -63
- package/src/components/toolbar/popup/doorStyle/index.jsx +0 -71
- package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +0 -139
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -2
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +0 -157
- package/src/components/toolbar/popup/downloadsummary/index.jsx +0 -643
- package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +0 -51
- package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +0 -175
- package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +0 -283
- package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +0 -2257
- package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -93
- package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +0 -132
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +0 -2198
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +0 -152
- package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +0 -149
- package/src/components/toolbar/popup/downloadsummary/styles.css +0 -177
- package/src/components/toolbar/popup/downloadsummary/styles.js +0 -453
- package/src/components/toolbar/popup/finishingtouch/category/index.jsx +0 -34
- package/src/components/toolbar/popup/finishingtouch/index.jsx +0 -58
- package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +0 -112
- package/src/components/toolbar/popup/finishingtouch/product/index.jsx +0 -116
- package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +0 -101
- package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +0 -254
- package/src/components/toolbar/popup/floorplan/choose-floor/lShaped.json +0 -311
- package/src/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +0 -238
- package/src/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +0 -220
- package/src/components/toolbar/popup/floorplan/choose-floor/rectangle.json +0 -238
- package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -86
- package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +0 -109
- package/src/components/toolbar/popup/floorplan/index.jsx +0 -60
- package/src/components/toolbar/popup/index.jsx +0 -241
- package/src/components/toolbar/popup/newproject/index.jsx +0 -59
- package/src/components/toolbar/popup/newproject/styles.css +0 -64
- package/src/components/toolbar/popup/newproject/styles.js +0 -41
- package/src/components/toolbar/popup/product/appliance.jsx +0 -54
- package/src/components/toolbar/popup/product/cabinetproduct.jsx +0 -15
- package/src/components/toolbar/popup/product/doorstyle.jsx +0 -58
- package/src/components/toolbar/popup/product/doorstyleproduct.jsx +0 -47
- package/src/components/toolbar/popup/product/floor.jsx +0 -36
- package/src/components/toolbar/popup/product/floorproduct.jsx +0 -42
- package/src/components/toolbar/popup/product/index.jsx +0 -36
- package/src/components/toolbar/popup/product/primary.jsx +0 -77
- package/src/components/toolbar/popup/product/productline.jsx +0 -93
- package/src/components/toolbar/popup/product/reviewItem.jsx +0 -427
- package/src/components/toolbar/popup/product/reviewMolding.jsx +0 -310
- package/src/components/toolbar/popup/product/style.css +0 -54
- package/src/components/toolbar/popup/product/styles.js +0 -260
- package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +0 -146
- package/src/components/toolbar/popup/savedesign/index.jsx +0 -495
- package/src/components/toolbar/popup/savedesign/savedesign.style.css +0 -16
- package/src/components/toolbar/popup/savedesign/styles.js +0 -151
- package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +0 -87
- package/src/components/toolbar/popup/styles.js +0 -909
- package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +0 -192
- package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +0 -96
- package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +0 -54
- package/src/components/toolbar/popup/submitforquote/StepDots.jsx +0 -25
- package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +0 -116
- package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -38
- package/src/components/toolbar/popup/submitforquote/index.jsx +0 -698
- package/src/components/toolbar/popup/submitforquote/styles.css +0 -105
- package/src/components/toolbar/popup/submitforquote/styles.js +0 -294
- package/src/components/toolbar/popup/submitprompt/index.jsx +0 -89
- package/src/components/toolbar/popup/submitprompt/styles.css +0 -64
- package/src/components/toolbar/popup/submitprompt/styles.js +0 -42
- package/src/components/toolbar/toolbar-button.jsx +0 -90
- package/src/components/toolbar/toolbar-load-button.jsx +0 -36
- package/src/components/toolbar/toolbar-save-button.jsx +0 -32
- package/src/components/tutorial-view/Modal.jsx +0 -584
- package/src/components/tutorial-view/style.css +0 -111
- package/src/components/tutorial-view/styles.js +0 -65
- package/src/components/wizardstep/button/styles.js +0 -677
- package/src/components/wizardstep/export.js +0 -5
- package/src/components/wizardstep/index.jsx +0 -1372
- package/src/components/wizardstep/styles.js +0 -688
- package/src/components/wizardstep/wizardstep-content-button.jsx +0 -198
- package/src/components/wizardstep/wizardstep-toggle-button.jsx +0 -101
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Typography,
|
|
4
|
-
FormControl,
|
|
5
|
-
InputLabel,
|
|
6
|
-
Select,
|
|
7
|
-
MenuItem,
|
|
8
|
-
Button,
|
|
9
|
-
Box,
|
|
10
|
-
CircularProgress
|
|
11
|
-
} from '@material-ui/core';
|
|
12
|
-
import * as S from './styles';
|
|
13
|
-
|
|
14
|
-
const FullPictureForm = ({ onComplete, onSkip, isLoading, initialValues }) => {
|
|
15
|
-
const [form, setForm] = React.useState(initialValues);
|
|
16
|
-
|
|
17
|
-
const handleChange = e => {
|
|
18
|
-
const { name, value } = e.target;
|
|
19
|
-
setForm(prev => ({
|
|
20
|
-
...prev,
|
|
21
|
-
[name]: value
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Box position="relative">
|
|
27
|
-
{isLoading && (
|
|
28
|
-
<Box
|
|
29
|
-
position="absolute"
|
|
30
|
-
top={0}
|
|
31
|
-
left={0}
|
|
32
|
-
width="100%"
|
|
33
|
-
height="100%"
|
|
34
|
-
display="flex"
|
|
35
|
-
alignItems="center"
|
|
36
|
-
justifyContent="center"
|
|
37
|
-
zIndex={2}
|
|
38
|
-
style={{ opacity: 0.5 }}
|
|
39
|
-
>
|
|
40
|
-
<CircularProgress size={40} style={{ color: '#4C12A1' }} />
|
|
41
|
-
</Box>
|
|
42
|
-
)}
|
|
43
|
-
<form
|
|
44
|
-
style={isLoading ? { pointerEvents: 'none', opacity: 0.5 } : undefined}
|
|
45
|
-
>
|
|
46
|
-
<FormControl
|
|
47
|
-
style={{
|
|
48
|
-
marginTop: '10px'
|
|
49
|
-
}}
|
|
50
|
-
variant="outlined"
|
|
51
|
-
fullWidth
|
|
52
|
-
margin="normal"
|
|
53
|
-
>
|
|
54
|
-
<InputLabel>What best describes you?</InputLabel>
|
|
55
|
-
<Select
|
|
56
|
-
name="userType"
|
|
57
|
-
value={form.userType}
|
|
58
|
-
onChange={handleChange}
|
|
59
|
-
label="What best describes you?"
|
|
60
|
-
>
|
|
61
|
-
<MenuItem value="">
|
|
62
|
-
<em>Select an option</em>
|
|
63
|
-
</MenuItem>
|
|
64
|
-
<MenuItem value="homeowner">Homeowner</MenuItem>
|
|
65
|
-
<MenuItem value="contractor">Contractor</MenuItem>
|
|
66
|
-
<MenuItem value="design-professional">Design Professional</MenuItem>
|
|
67
|
-
<MenuItem value="real-estate-investor">
|
|
68
|
-
Real Estate Investor
|
|
69
|
-
</MenuItem>
|
|
70
|
-
<MenuItem value="other">Other</MenuItem>
|
|
71
|
-
</Select>
|
|
72
|
-
</FormControl>
|
|
73
|
-
|
|
74
|
-
<FormControl
|
|
75
|
-
style={{
|
|
76
|
-
marginTop: '10px'
|
|
77
|
-
}}
|
|
78
|
-
variant="outlined"
|
|
79
|
-
fullWidth
|
|
80
|
-
margin="normal"
|
|
81
|
-
>
|
|
82
|
-
<InputLabel>What are you designing today?</InputLabel>
|
|
83
|
-
<Select
|
|
84
|
-
name="designType"
|
|
85
|
-
value={form.designType}
|
|
86
|
-
onChange={handleChange}
|
|
87
|
-
label="What are you designing today?"
|
|
88
|
-
>
|
|
89
|
-
<MenuItem value="">
|
|
90
|
-
<em>Select an option</em>
|
|
91
|
-
</MenuItem>
|
|
92
|
-
<MenuItem value="kitchen">Kitchen</MenuItem>
|
|
93
|
-
<MenuItem value="bathroom">Bathroom</MenuItem>
|
|
94
|
-
<MenuItem value="laundry-room">Laundry Room</MenuItem>
|
|
95
|
-
<MenuItem value="tv-room">TV Room</MenuItem>
|
|
96
|
-
<MenuItem value="bar-room">Bar Room</MenuItem>
|
|
97
|
-
<MenuItem value="office">Office</MenuItem>
|
|
98
|
-
<MenuItem value="mudroom">Mudroom</MenuItem>
|
|
99
|
-
<MenuItem value="pantry">Pantry</MenuItem>
|
|
100
|
-
<MenuItem value="closet">Closet</MenuItem>
|
|
101
|
-
<MenuItem value="garage">Garage</MenuItem>
|
|
102
|
-
<MenuItem value="outdoor-cabinetry">Outdoor Cabinetry</MenuItem>
|
|
103
|
-
<MenuItem value="other">Other</MenuItem>
|
|
104
|
-
</Select>
|
|
105
|
-
</FormControl>
|
|
106
|
-
|
|
107
|
-
<FormControl
|
|
108
|
-
style={{
|
|
109
|
-
marginTop: '10px'
|
|
110
|
-
}}
|
|
111
|
-
variant="outlined"
|
|
112
|
-
fullWidth
|
|
113
|
-
margin="normal"
|
|
114
|
-
>
|
|
115
|
-
<InputLabel>When do you plan to start your project?</InputLabel>
|
|
116
|
-
<Select
|
|
117
|
-
name="startTime"
|
|
118
|
-
value={form.startTime}
|
|
119
|
-
onChange={handleChange}
|
|
120
|
-
label="When do you plan to start your project?"
|
|
121
|
-
>
|
|
122
|
-
<MenuItem value="">
|
|
123
|
-
<em>Select an option</em>
|
|
124
|
-
</MenuItem>
|
|
125
|
-
<MenuItem value="asap">As soon as possible</MenuItem>
|
|
126
|
-
<MenuItem value="1-2-months">1–2 months</MenuItem>
|
|
127
|
-
<MenuItem value="2-4-months">2–4 months</MenuItem>
|
|
128
|
-
<MenuItem value="4-plus-months">4+ months</MenuItem>
|
|
129
|
-
<MenuItem value="other">Other</MenuItem>
|
|
130
|
-
</Select>
|
|
131
|
-
</FormControl>
|
|
132
|
-
|
|
133
|
-
<Box display="flex" justifyContent="flex-end" mt={2}>
|
|
134
|
-
<S.Button onClick={() => onSkip(form)} disabled={isLoading}>
|
|
135
|
-
Skip
|
|
136
|
-
</S.Button>
|
|
137
|
-
<S.Button onClick={() => onComplete(form)} disabled={isLoading}>
|
|
138
|
-
Complete
|
|
139
|
-
</S.Button>
|
|
140
|
-
</Box>
|
|
141
|
-
</form>
|
|
142
|
-
</Box>
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export default FullPictureForm;
|
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as S from './styles';
|
|
3
|
-
import {
|
|
4
|
-
DEFAULT_FONT_FAMILY,
|
|
5
|
-
PROJECT_NAME_LENGTH_LIMIT,
|
|
6
|
-
TEXT_COLOR_NEUTRAL_1,
|
|
7
|
-
TEXT_COLOR_NEUTRAL_0,
|
|
8
|
-
TEXT_COLOR_NEUTRAL_2,
|
|
9
|
-
LOCAL_STORAGE_CUSTOMER_INFO,
|
|
10
|
-
CLIENTS_NAME
|
|
11
|
-
} from '../../../../constants';
|
|
12
|
-
import { emailValidation } from '../../../../utils/email-validator';
|
|
13
|
-
import Dialog from '@material-ui/core/Dialog';
|
|
14
|
-
import CircularProgress from '@material-ui/core/CircularProgress';
|
|
15
|
-
import styled from 'styled-components';
|
|
16
|
-
import SnackBar from '../../../atoms/Snackbar/index';
|
|
17
|
-
import { phoneValidation } from '../../../../utils/phone-validator';
|
|
18
|
-
import ls from 'localstorage-slim';
|
|
19
|
-
import FullPictureForm from '../../../../../src/components/toolbar/popup/savedesign/FullPictureForm';
|
|
20
|
-
|
|
21
|
-
const StyledDialog = styled(Dialog)`
|
|
22
|
-
.MuiDialog-paperWidthSm {
|
|
23
|
-
border-radius: 10px;
|
|
24
|
-
width: 480px;
|
|
25
|
-
padding: 32px;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
class SaveDesignPopup extends React.Component {
|
|
30
|
-
constructor(props) {
|
|
31
|
-
super(props);
|
|
32
|
-
let customerInfo = {};
|
|
33
|
-
try {
|
|
34
|
-
customerInfo = ls.get(LOCAL_STORAGE_CUSTOMER_INFO);
|
|
35
|
-
} catch (e) {
|
|
36
|
-
customerInfo = {};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const email = props.match.params.token
|
|
40
|
-
? sessionStorage.getItem('email')
|
|
41
|
-
: customerInfo?.email;
|
|
42
|
-
const firstName = props.match.params.token
|
|
43
|
-
? sessionStorage.getItem('firstName')
|
|
44
|
-
: customerInfo?.firstName;
|
|
45
|
-
const lastName = props.match.params.token
|
|
46
|
-
? sessionStorage.getItem('lastName')
|
|
47
|
-
: customerInfo?.lastName;
|
|
48
|
-
this.state = {
|
|
49
|
-
email: email || '',
|
|
50
|
-
emailfocusOn: false,
|
|
51
|
-
phone: sessionStorage.getItem('phone') || '',
|
|
52
|
-
phonefocusOn: false,
|
|
53
|
-
notes: '',
|
|
54
|
-
notefocusOn: false,
|
|
55
|
-
firstName: firstName || '',
|
|
56
|
-
firstNamefocusOn: false,
|
|
57
|
-
lastNamefocusOn: false,
|
|
58
|
-
lastName: lastName || '',
|
|
59
|
-
projectNamefocusOn: false,
|
|
60
|
-
projectName: 'Untitled',
|
|
61
|
-
|
|
62
|
-
// error handling
|
|
63
|
-
pjNameLimit: false,
|
|
64
|
-
isSnackBarOpen: false,
|
|
65
|
-
snackBarMessage: '',
|
|
66
|
-
isLoading: false,
|
|
67
|
-
showFullForm: false
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
this.timeoutId = null;
|
|
71
|
-
|
|
72
|
-
functionBinder.call(this);
|
|
73
|
-
|
|
74
|
-
function functionBinder() {
|
|
75
|
-
this.closePanel = this.closePanel.bind(this);
|
|
76
|
-
this.projectNameChangeHandler = this.projectNameChangeHandler.bind(this);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
componentWillReceiveProps(newProps) {
|
|
81
|
-
let customerInfo = {};
|
|
82
|
-
try {
|
|
83
|
-
customerInfo = ls.get(LOCAL_STORAGE_CUSTOMER_INFO);
|
|
84
|
-
} catch (e) {
|
|
85
|
-
customerInfo = {};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const email = customerInfo?.email || sessionStorage.getItem('email');
|
|
89
|
-
const phone = sessionStorage.getItem('phone');
|
|
90
|
-
const firstName =
|
|
91
|
-
customerInfo?.firstName || sessionStorage.getItem('firstName');
|
|
92
|
-
const lastName =
|
|
93
|
-
customerInfo?.lastName || sessionStorage.getItem('lastName');
|
|
94
|
-
let projectName = sessionStorage.getItem('projectTitle');
|
|
95
|
-
if (newProps.state.scene.title !== '') {
|
|
96
|
-
projectName =
|
|
97
|
-
newProps.state.scene.title || sessionStorage.getItem('projectTitle');
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (newProps.visible !== this.props.visible && newProps.visible) {
|
|
101
|
-
if (email !== null && email !== 'temp_xxx@yyy.com') {
|
|
102
|
-
this.setState({ email: email });
|
|
103
|
-
}
|
|
104
|
-
if (phone !== null) {
|
|
105
|
-
this.setState({ phone: phone });
|
|
106
|
-
}
|
|
107
|
-
if (firstName !== null) {
|
|
108
|
-
this.setState({ firstName: firstName });
|
|
109
|
-
}
|
|
110
|
-
if (lastName !== null) {
|
|
111
|
-
this.setState({ lastName: lastName });
|
|
112
|
-
}
|
|
113
|
-
if (projectName !== null) {
|
|
114
|
-
this.setState({ projectName });
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
closePanel() {
|
|
120
|
-
this.props.handleSaveDesign(false);
|
|
121
|
-
setTimeout(() => {
|
|
122
|
-
this.setState({
|
|
123
|
-
firstName: '',
|
|
124
|
-
lastName: '',
|
|
125
|
-
email: '',
|
|
126
|
-
projectName: '',
|
|
127
|
-
notes: '',
|
|
128
|
-
phone: '',
|
|
129
|
-
showFullForm: false
|
|
130
|
-
});
|
|
131
|
-
}, 500);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
projectNameChangeHandler(e) {
|
|
135
|
-
if (e.target.value.length >= PROJECT_NAME_LENGTH_LIMIT) {
|
|
136
|
-
this.setState({ pjNameLimit: true });
|
|
137
|
-
clearTimeout(this.timeoutId);
|
|
138
|
-
this.timeoutId = setTimeout(
|
|
139
|
-
() => this.setState({ pjNameLimit: false }),
|
|
140
|
-
2000
|
|
141
|
-
);
|
|
142
|
-
} else {
|
|
143
|
-
this.setState({ projectName: e.target.value });
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
submitFinalData = async payload => {
|
|
148
|
-
this.setState({ isLoading: true });
|
|
149
|
-
const result = await this.props.saveProject(payload);
|
|
150
|
-
if (result?.success) {
|
|
151
|
-
this.closePanel(); // Reset state, close modal
|
|
152
|
-
}
|
|
153
|
-
this.setState({ isLoading: false });
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
render() {
|
|
157
|
-
let { visible } = this.props;
|
|
158
|
-
let {
|
|
159
|
-
email,
|
|
160
|
-
emailfocusOn,
|
|
161
|
-
phone,
|
|
162
|
-
phonefocusOn,
|
|
163
|
-
notes,
|
|
164
|
-
firstName,
|
|
165
|
-
firstNamefocusOn,
|
|
166
|
-
lastName,
|
|
167
|
-
lastNamefocusOn,
|
|
168
|
-
projectName,
|
|
169
|
-
projectNamefocusOn,
|
|
170
|
-
notefocusOn,
|
|
171
|
-
isLoading
|
|
172
|
-
} = this.state;
|
|
173
|
-
|
|
174
|
-
const initialFullFormValues = {
|
|
175
|
-
userType: sessionStorage.getItem('user_type') || '',
|
|
176
|
-
designType: sessionStorage.getItem('project_type') || '',
|
|
177
|
-
startTime: sessionStorage.getItem('project_timeline') || ''
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
const visualizerName = sessionStorage.getItem('visualizerName');
|
|
181
|
-
|
|
182
|
-
if (this.state.showFullForm) {
|
|
183
|
-
return (
|
|
184
|
-
<StyledDialog
|
|
185
|
-
open={visible}
|
|
186
|
-
onClose={!isLoading ? this.closePanel.bind(this) : undefined}
|
|
187
|
-
>
|
|
188
|
-
<SnackBar
|
|
189
|
-
isOpen={this.state.isSnackBarOpen}
|
|
190
|
-
message={this.state.snackBarMessage}
|
|
191
|
-
handleClose={() =>
|
|
192
|
-
this.setState({ isSnackBarOpen: false, snackBarMessage: '' })
|
|
193
|
-
}
|
|
194
|
-
/>
|
|
195
|
-
<S.DialogTitle>Give Us the Full Picture</S.DialogTitle>
|
|
196
|
-
<S.DialogContent>
|
|
197
|
-
<div>
|
|
198
|
-
<b>Thanks for saving your project!</b>
|
|
199
|
-
</div>
|
|
200
|
-
<br />
|
|
201
|
-
<div>
|
|
202
|
-
Sharing a few details helps us guide you based on your goals and
|
|
203
|
-
experience.
|
|
204
|
-
</div>
|
|
205
|
-
</S.DialogContent>
|
|
206
|
-
<S.DialogContentSelection>
|
|
207
|
-
<FullPictureForm
|
|
208
|
-
isLoading={isLoading}
|
|
209
|
-
initialValues={initialFullFormValues}
|
|
210
|
-
onComplete={extraFormData => {
|
|
211
|
-
sessionStorage.setItem('user_type', extraFormData.userType);
|
|
212
|
-
sessionStorage.setItem(
|
|
213
|
-
'project_type',
|
|
214
|
-
extraFormData.designType
|
|
215
|
-
);
|
|
216
|
-
sessionStorage.setItem(
|
|
217
|
-
'project_timeline',
|
|
218
|
-
extraFormData.startTime
|
|
219
|
-
);
|
|
220
|
-
|
|
221
|
-
const payload = {
|
|
222
|
-
...this.state,
|
|
223
|
-
user_type: extraFormData.userType,
|
|
224
|
-
project_type: extraFormData.designType,
|
|
225
|
-
project_timeline: extraFormData.startTime,
|
|
226
|
-
...extraFormData
|
|
227
|
-
};
|
|
228
|
-
this.submitFinalData(payload);
|
|
229
|
-
}}
|
|
230
|
-
onSkip={extraFormData => {
|
|
231
|
-
const payload = {
|
|
232
|
-
...this.state,
|
|
233
|
-
user_type: extraFormData.userType,
|
|
234
|
-
project_type: extraFormData.designType,
|
|
235
|
-
project_timeline: extraFormData.startTime,
|
|
236
|
-
...extraFormData
|
|
237
|
-
};
|
|
238
|
-
this.submitFinalData(payload);
|
|
239
|
-
}}
|
|
240
|
-
/>
|
|
241
|
-
</S.DialogContentSelection>
|
|
242
|
-
</StyledDialog>
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
return (
|
|
247
|
-
<StyledDialog
|
|
248
|
-
open={visible}
|
|
249
|
-
onClose={!isLoading ? this.closePanel.bind(this) : undefined}
|
|
250
|
-
>
|
|
251
|
-
<SnackBar
|
|
252
|
-
isOpen={this.state.isSnackBarOpen}
|
|
253
|
-
message={this.state.snackBarMessage}
|
|
254
|
-
handleClose={() =>
|
|
255
|
-
this.setState({ isSnackBarOpen: false, snackBarMessage: '' })
|
|
256
|
-
}
|
|
257
|
-
/>
|
|
258
|
-
<S.DialogTitle>Save your project</S.DialogTitle>
|
|
259
|
-
<S.DialogContent>
|
|
260
|
-
Save your project in order to request Designer Assistance and/or Add
|
|
261
|
-
to Cart, and to be able to access it later via the email link.
|
|
262
|
-
</S.DialogContent>
|
|
263
|
-
<S.DialogContentSelection>
|
|
264
|
-
<div
|
|
265
|
-
style={{
|
|
266
|
-
display: 'flex',
|
|
267
|
-
alignItems: 'center',
|
|
268
|
-
gap: '1rem'
|
|
269
|
-
}}
|
|
270
|
-
>
|
|
271
|
-
<S.StyledInputWrapper>
|
|
272
|
-
<S.StyledInput
|
|
273
|
-
id="first_name_input"
|
|
274
|
-
value={firstName}
|
|
275
|
-
onChange={e => this.setState({ firstName: e.target.value })}
|
|
276
|
-
onFocus={e => this.setState({ firstNamefocusOn: true })}
|
|
277
|
-
onBlur={e => this.setState({ firstNamefocusOn: false })}
|
|
278
|
-
placeholder={
|
|
279
|
-
firstNamefocusOn ? 'Enter first name' : 'First name'
|
|
280
|
-
}
|
|
281
|
-
required
|
|
282
|
-
></S.StyledInput>
|
|
283
|
-
{(firstNamefocusOn || !!firstName.length) && (
|
|
284
|
-
<S.StyledInputHeadLabel
|
|
285
|
-
style={{ color: !firstNamefocusOn && TEXT_COLOR_NEUTRAL_2 }}
|
|
286
|
-
>
|
|
287
|
-
First Name
|
|
288
|
-
</S.StyledInputHeadLabel>
|
|
289
|
-
)}
|
|
290
|
-
{!!firstName.length && (
|
|
291
|
-
<S.PlusImage
|
|
292
|
-
maskImage="/assets/img/svg/bottombar/arrow-plus.svg"
|
|
293
|
-
onClick={() => this.setState({ firstName: '' })}
|
|
294
|
-
/>
|
|
295
|
-
)}
|
|
296
|
-
</S.StyledInputWrapper>
|
|
297
|
-
<S.StyledInputWrapper>
|
|
298
|
-
<S.StyledInput
|
|
299
|
-
value={lastName}
|
|
300
|
-
onChange={e => this.setState({ lastName: e.target.value })}
|
|
301
|
-
onFocus={e => this.setState({ lastNamefocusOn: true })}
|
|
302
|
-
onBlur={e => this.setState({ lastNamefocusOn: false })}
|
|
303
|
-
placeholder={lastNamefocusOn ? 'Enter last name' : 'Last name'}
|
|
304
|
-
required
|
|
305
|
-
/>
|
|
306
|
-
{(lastNamefocusOn || !!lastName.length) && (
|
|
307
|
-
<S.StyledInputHeadLabel
|
|
308
|
-
style={{ color: !lastNamefocusOn && TEXT_COLOR_NEUTRAL_2 }}
|
|
309
|
-
>
|
|
310
|
-
Last Name
|
|
311
|
-
</S.StyledInputHeadLabel>
|
|
312
|
-
)}
|
|
313
|
-
{!!lastName.length && (
|
|
314
|
-
<S.PlusImage
|
|
315
|
-
maskImage="/assets/img/svg/bottombar/arrow-plus.svg"
|
|
316
|
-
onClick={() => this.setState({ lastName: '' })}
|
|
317
|
-
/>
|
|
318
|
-
)}
|
|
319
|
-
</S.StyledInputWrapper>
|
|
320
|
-
</div>
|
|
321
|
-
<S.StyledInputWrapper>
|
|
322
|
-
<S.StyledInput
|
|
323
|
-
value={email}
|
|
324
|
-
onChange={e => this.setState({ email: e.target.value })}
|
|
325
|
-
onFocus={e => this.setState({ emailfocusOn: true })}
|
|
326
|
-
onBlur={e => this.setState({ emailfocusOn: false })}
|
|
327
|
-
placeholder={
|
|
328
|
-
emailfocusOn ? 'Enter email address' : 'Email Address'
|
|
329
|
-
}
|
|
330
|
-
required
|
|
331
|
-
/>
|
|
332
|
-
{(emailfocusOn || !!email.length) && (
|
|
333
|
-
<S.StyledInputHeadLabel
|
|
334
|
-
style={{ color: !emailfocusOn && TEXT_COLOR_NEUTRAL_2 }}
|
|
335
|
-
>
|
|
336
|
-
Email Address
|
|
337
|
-
</S.StyledInputHeadLabel>
|
|
338
|
-
)}
|
|
339
|
-
{!!email.length && (
|
|
340
|
-
<S.PlusImage
|
|
341
|
-
maskImage="/assets/img/svg/bottombar/arrow-plus.svg"
|
|
342
|
-
onClick={() => this.setState({ email: '' })}
|
|
343
|
-
/>
|
|
344
|
-
)}
|
|
345
|
-
</S.StyledInputWrapper>
|
|
346
|
-
<S.StyledInputWrapper>
|
|
347
|
-
<S.StyledInput
|
|
348
|
-
value={phone}
|
|
349
|
-
onChange={e => {
|
|
350
|
-
this.setState({ phone: e.target.value });
|
|
351
|
-
}}
|
|
352
|
-
onFocus={e => this.setState({ phonefocusOn: true })}
|
|
353
|
-
onBlur={e => this.setState({ phonefocusOn: false })}
|
|
354
|
-
maxLength={50}
|
|
355
|
-
placeholder={phonefocusOn ? 'Enter phone number' : 'Phone Number'}
|
|
356
|
-
required
|
|
357
|
-
/>
|
|
358
|
-
{(phonefocusOn || !!phone.length) && (
|
|
359
|
-
<S.StyledInputHeadLabel
|
|
360
|
-
style={{ color: !phonefocusOn && TEXT_COLOR_NEUTRAL_2 }}
|
|
361
|
-
>
|
|
362
|
-
Phone Number
|
|
363
|
-
</S.StyledInputHeadLabel>
|
|
364
|
-
)}
|
|
365
|
-
{!!phone.length && (
|
|
366
|
-
<S.PlusImage
|
|
367
|
-
maskImage="/assets/img/svg/bottombar/arrow-plus.svg"
|
|
368
|
-
onClick={() => this.setState({ phone: '' })}
|
|
369
|
-
/>
|
|
370
|
-
)}
|
|
371
|
-
</S.StyledInputWrapper>
|
|
372
|
-
<S.StyledInputWrapper>
|
|
373
|
-
<S.StyledInput
|
|
374
|
-
style={{ fontWeight: 700, color: TEXT_COLOR_NEUTRAL_0 }}
|
|
375
|
-
value={projectName}
|
|
376
|
-
onChange={e => this.setState({ projectName: e.target.value })}
|
|
377
|
-
onFocus={e => this.setState({ projectNamefocusOn: true })}
|
|
378
|
-
onBlur={e => this.setState({ projectNamefocusOn: false })}
|
|
379
|
-
placeholder={
|
|
380
|
-
projectNamefocusOn ? 'Enter project name' : 'Project Name'
|
|
381
|
-
}
|
|
382
|
-
required
|
|
383
|
-
/>
|
|
384
|
-
{(projectNamefocusOn || !!projectName.length) && (
|
|
385
|
-
<S.StyledInputHeadLabel
|
|
386
|
-
style={{ color: !projectNamefocusOn && TEXT_COLOR_NEUTRAL_2 }}
|
|
387
|
-
>
|
|
388
|
-
Project Name
|
|
389
|
-
</S.StyledInputHeadLabel>
|
|
390
|
-
)}
|
|
391
|
-
{!!projectName.length && (
|
|
392
|
-
<S.PlusImage
|
|
393
|
-
maskImage="/assets/img/svg/bottombar/arrow-plus.svg"
|
|
394
|
-
onClick={() => this.setState({ projectName: '' })}
|
|
395
|
-
/>
|
|
396
|
-
)}
|
|
397
|
-
</S.StyledInputWrapper>
|
|
398
|
-
<div style={{ width: '100%', marginTop: 10, display: 'none' }}>
|
|
399
|
-
<S.StyledInputWrapper>
|
|
400
|
-
<S.DialogTextArea
|
|
401
|
-
value={notes}
|
|
402
|
-
maxLength={200}
|
|
403
|
-
onFocus={e => this.setState({ notefocusOn: true })}
|
|
404
|
-
onBlur={e => this.setState({ notefocusOn: false })}
|
|
405
|
-
placeholder={notefocusOn ? 'Input' : 'Notes (optional)'}
|
|
406
|
-
onChange={e => this.setState({ notes: e.target.value })}
|
|
407
|
-
/>
|
|
408
|
-
{(notefocusOn || !!notes.length) && (
|
|
409
|
-
<S.StyledInputHeadLabel
|
|
410
|
-
style={{
|
|
411
|
-
color: !notefocusOn && TEXT_COLOR_NEUTRAL_2,
|
|
412
|
-
left: 7
|
|
413
|
-
}}
|
|
414
|
-
>
|
|
415
|
-
Notes (optional)
|
|
416
|
-
</S.StyledInputHeadLabel>
|
|
417
|
-
)}
|
|
418
|
-
</S.StyledInputWrapper>
|
|
419
|
-
<span
|
|
420
|
-
style={{
|
|
421
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
422
|
-
fontSize: 13,
|
|
423
|
-
color: TEXT_COLOR_NEUTRAL_1,
|
|
424
|
-
float: 'right',
|
|
425
|
-
lineHeight: '18px',
|
|
426
|
-
fontWeight: 400
|
|
427
|
-
}}
|
|
428
|
-
>
|
|
429
|
-
{notes.length}/200 characters
|
|
430
|
-
</span>
|
|
431
|
-
</div>
|
|
432
|
-
<span
|
|
433
|
-
style={{
|
|
434
|
-
fontFamily: DEFAULT_FONT_FAMILY,
|
|
435
|
-
fontSize: 12,
|
|
436
|
-
color: TEXT_COLOR_NEUTRAL_1,
|
|
437
|
-
lineHeight: '16px',
|
|
438
|
-
marginTop: 10
|
|
439
|
-
}}
|
|
440
|
-
>
|
|
441
|
-
{`By entering your email, you agree to receive marketing
|
|
442
|
-
communications from ${CLIENTS_NAME[visualizerName]}. We respect your privacy and
|
|
443
|
-
will never share your information with third parties. You can
|
|
444
|
-
unsubscribe at any time.`}
|
|
445
|
-
</span>
|
|
446
|
-
</S.DialogContentSelection>
|
|
447
|
-
<S.DialogAction>
|
|
448
|
-
<S.Button onClick={() => this.closePanel()}>Cancel</S.Button>
|
|
449
|
-
<S.Button
|
|
450
|
-
style={{
|
|
451
|
-
marginRight: 0
|
|
452
|
-
}}
|
|
453
|
-
onClick={() => {
|
|
454
|
-
const { firstName, lastName, email, projectName, phone } =
|
|
455
|
-
this.state;
|
|
456
|
-
if (
|
|
457
|
-
firstName === '' ||
|
|
458
|
-
lastName === '' ||
|
|
459
|
-
email === '' ||
|
|
460
|
-
projectName === '' ||
|
|
461
|
-
!emailValidation(email) ||
|
|
462
|
-
phone === '' ||
|
|
463
|
-
!phoneValidation(phone) ||
|
|
464
|
-
projectName.trim() === '' ||
|
|
465
|
-
firstName.trim() === '' ||
|
|
466
|
-
lastName.trim() === ''
|
|
467
|
-
) {
|
|
468
|
-
let msg;
|
|
469
|
-
if (firstName === '' || firstName.trim() === '')
|
|
470
|
-
msg = 'Type your first name';
|
|
471
|
-
else if (lastName === '' || lastName.trim() === '')
|
|
472
|
-
msg = 'Type your last name';
|
|
473
|
-
else if (email === '') msg = 'Type your email address';
|
|
474
|
-
else if (phone === '') msg = 'Type your phone number';
|
|
475
|
-
else if (projectName === '' || projectName.trim() === '')
|
|
476
|
-
msg = 'Type your project name';
|
|
477
|
-
else if (!emailValidation(email))
|
|
478
|
-
msg = 'Type your valid email address';
|
|
479
|
-
else if (!phoneValidation(phone)) msg = 'Type your valid phone';
|
|
480
|
-
this.setState({ isSnackBarOpen: true, snackBarMessage: msg });
|
|
481
|
-
return;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
this.setState({ showFullForm: true });
|
|
485
|
-
}}
|
|
486
|
-
>
|
|
487
|
-
{isLoading ? <CircularProgress size={20} /> : 'Save'}
|
|
488
|
-
</S.Button>
|
|
489
|
-
</S.DialogAction>
|
|
490
|
-
</StyledDialog>
|
|
491
|
-
);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export default SaveDesignPopup;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.savedesign-row {
|
|
2
|
-
position: relative;
|
|
3
|
-
padding-top: 20px;
|
|
4
|
-
width: 360px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.savedesign-warning {
|
|
8
|
-
word-break: keep-all;
|
|
9
|
-
margin-top: 3px;
|
|
10
|
-
color: #ff7373;
|
|
11
|
-
font-size: 11px;
|
|
12
|
-
padding-right: 3px;
|
|
13
|
-
position: absolute;
|
|
14
|
-
right: 0px;
|
|
15
|
-
top: 40px;
|
|
16
|
-
}
|