@crystaldesign/diva-web-planner-react 26.5.0-beta.19 → 26.5.0-beta.20
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/build/esm/{Planner2DGrid-5078e487.js → Planner2DGrid-5dc4c978.js} +1 -1
- package/build/esm/{Planner3DImage-9f9d92cd.js → Planner3DImage-baa3a8d2.js} +1 -1
- package/build/esm/UnlockCard-93f532b4.js +205 -0
- package/build/esm/{index-f441d323.js → index-01893a71.js} +1 -1
- package/build/esm/{index-51ae3e31.js → index-04292778.js} +8 -8
- package/build/esm/{index-0423ef07.js → index-057e0d3d.js} +3 -3
- package/build/esm/{index-2e153d4b.js → index-0669ac67.js} +2 -2
- package/build/esm/{index-40682a32.js → index-06a9faa7.js} +2 -2
- package/build/esm/{index-6449a19f.js → index-0826b1ba.js} +1 -1
- package/build/esm/{index-30098684.js → index-091b0512.js} +2 -2
- package/build/esm/{index-ed1407fc.js → index-0ac72756.js} +4 -4
- package/build/esm/{index-4c119da6.js → index-0d924216.js} +1 -1
- package/build/esm/{index-58821836.js → index-0dbe0568.js} +1 -1
- package/build/esm/{index-287d9f15.js → index-0e4c7819.js} +1 -1
- package/build/esm/{index-beacd0a7.js → index-1084009e.js} +3 -3
- package/build/esm/{index-51bae7dc.js → index-110eec5b.js} +4 -4
- package/build/esm/{index-43742eb5.js → index-115445a4.js} +1 -1
- package/build/esm/{index-8d078173.js → index-1254b3da.js} +76 -76
- package/build/esm/{index-7bbf2e25.js → index-14d87209.js} +1 -1
- package/build/esm/{index-0fbbb4ff.js → index-15b522ea.js} +1 -1
- package/build/esm/{index-ea4c50ae.js → index-16b6607b.js} +5 -5
- package/build/esm/{index-c73b2ec2.js → index-173d88a5.js} +1 -1
- package/build/esm/{index-52603147.js → index-17e8ee35.js} +3 -3
- package/build/esm/{index-bbab286a.js → index-19e0abad.js} +6 -6
- package/build/esm/{index-1060a9ca.js → index-19f1c0f6.js} +1 -1
- package/build/esm/{index-99243c11.js → index-1a47eb51.js} +2 -2
- package/build/esm/{index-e1ab2be7.js → index-1b364271.js} +103 -103
- package/build/esm/{index-b08ae74a.js → index-1b6c2740.js} +1 -1
- package/build/esm/{index-634ba0d6.js → index-1d04825d.js} +3 -3
- package/build/esm/{index-b3e09614.js → index-1e81e425.js} +1 -1
- package/build/esm/{index-edfbe27f.js → index-1ebac338.js} +2 -2
- package/build/esm/{index-8fdb5fa9.js → index-2002dc1a.js} +70 -70
- package/build/esm/{index-57eddaa6.js → index-2267ebf4.js} +1 -1
- package/build/esm/{index-9f2c98c7.js → index-22e00eb5.js} +5 -5
- package/build/esm/{index-f55f8605.js → index-24823129.js} +1 -1
- package/build/esm/{index-c61dde43.js → index-24fae85b.js} +1 -1
- package/build/esm/{index-91d633bf.js → index-259b8577.js} +3 -3
- package/build/esm/{index-6a36a7c6.js → index-25ff4a62.js} +1 -1
- package/build/esm/{index-9c7c8718.js → index-262216bf.js} +1 -1
- package/build/esm/{index-944492c6.js → index-2673c90a.js} +2 -2
- package/build/esm/{index-9bf7911e.js → index-2742b0cf.js} +1 -1
- package/build/esm/{index-d8b893fa.js → index-29decd03.js} +4 -4
- package/build/esm/{index-3d0e53fe.js → index-2ad61e67.js} +1 -1
- package/build/esm/{index-14780aa7.js → index-2b79ce0e.js} +1 -1
- package/build/esm/{index-ddc5c540.js → index-2bf2f531.js} +7 -7
- package/build/esm/{index-821f3151.js → index-2d12ea32.js} +2 -2
- package/build/esm/{index-3653de7a.js → index-2d646d3e.js} +5 -5
- package/build/esm/{index-0ab1f7bb.js → index-2da99db3.js} +1 -1
- package/build/esm/{index-162e8903.js → index-2e110e45.js} +7 -7
- package/build/esm/{index-345f5108.js → index-31b1d753.js} +2 -2
- package/build/esm/{index-c6513513.js → index-31bab0be.js} +1 -1
- package/build/esm/{index-85f8c446.js → index-31dec66c.js} +2 -2
- package/build/esm/{index-73397f8d.js → index-31e7ae13.js} +1 -1
- package/build/esm/{index-ebc83cc1.js → index-33aa6167.js} +3 -3
- package/build/esm/{index-f121b683.js → index-345b03a2.js} +25 -25
- package/build/esm/{index-21ec01e4.js → index-353a8e24.js} +1 -1
- package/build/esm/{index-794ab7b8.js → index-3577b1c2.js} +1 -1
- package/build/esm/{index-40bd3186.js → index-35ab84c5.js} +1 -1
- package/build/esm/{index-c160e46d.js → index-36870eba.js} +1 -1
- package/build/esm/{index-c0f9e794.js → index-376f1347.js} +1 -1
- package/build/esm/{index-9a731947.js → index-37b9955a.js} +1 -1
- package/build/esm/{index-690db926.js → index-39228bf1.js} +2 -2
- package/build/esm/{index-ee3835df.js → index-392c3aaf.js} +69 -69
- package/build/esm/{index-3abe15a9.js → index-3a79deba.js} +56 -28
- package/build/esm/{index-9c80edd7.js → index-3ac5ba18.js} +3 -3
- package/build/esm/{index-f6339b4a.js → index-3b777ca2.js} +1 -1
- package/build/esm/{index-27318176.js → index-3c6795e4.js} +1 -1
- package/build/esm/{index-4bb00304.js → index-3ce65528.js} +1 -1
- package/build/esm/{index-976a7399.js → index-3f06cbf5.js} +2 -2
- package/build/esm/{index-0287c0fb.js → index-3f54b55c.js} +2 -2
- package/build/esm/{index-b48861c8.js → index-3fe455d5.js} +3 -3
- package/build/esm/{index-c9564b3f.js → index-40242203.js} +1 -1
- package/build/esm/{index-7e319964.js → index-41e390a7.js} +1 -1
- package/build/esm/{index-14e68522.js → index-44b02707.js} +3 -3
- package/build/esm/{index-62d3b894.js → index-46aeac89.js} +1 -1
- package/build/esm/{index-e130cf78.js → index-46e172e8.js} +3 -3
- package/build/esm/{index-f201d3db.js → index-4704d770.js} +1 -1
- package/build/esm/{index-9b86b1a0.js → index-4806c6b1.js} +73 -73
- package/build/esm/{index-925d88d6.js → index-4902ebb4.js} +1 -1
- package/build/esm/{index-42c5746b.js → index-4aa5e0b2.js} +1 -1
- package/build/esm/{index-2d329be7.js → index-4c3aba2e.js} +1 -1
- package/build/esm/{index-c0dfe8f3.js → index-4ce615d0.js} +102 -102
- package/build/esm/{index-773ce259.js → index-4dc87561.js} +1 -1
- package/build/esm/{index-072268b5.js → index-4e6b3848.js} +1 -1
- package/build/esm/{index-e19b9683.js → index-4f09bf60.js} +3 -3
- package/build/esm/{index-a1e9bb7a.js → index-4f65b024.js} +68 -68
- package/build/esm/{index-7b2b6137.js → index-51d42412.js} +5 -5
- package/build/esm/{index-149e51db.js → index-5275fb75.js} +1 -1
- package/build/esm/{index-b61521bf.js → index-527e2422.js} +2 -2
- package/build/esm/{index-0c636858.js → index-52f1a11e.js} +5 -5
- package/build/esm/{index-7865a6c4.js → index-5422090c.js} +15 -15
- package/build/esm/{index-25ad9d44.js → index-549801cc.js} +3 -3
- package/build/esm/{index-33b3cb31.js → index-54ea29c2.js} +1 -1
- package/build/esm/{index-2ec1a4f6.js → index-55f00393.js} +1 -1
- package/build/esm/{index-0399220e.js → index-56715a50.js} +1 -1
- package/build/esm/{index-7faadd92.js → index-576d724d.js} +1 -1
- package/build/esm/{index-b3038ec2.js → index-577f746d.js} +5 -5
- package/build/esm/{index-1155f423.js → index-5b9b82b6.js} +1 -1
- package/build/esm/{index-036eea5a.js → index-5c51a974.js} +2 -2
- package/build/esm/{index-f4e9408c.js → index-5ce8b994.js} +1 -1
- package/build/esm/{index-99db72cc.js → index-5cf12cac.js} +1 -1
- package/build/esm/{index-b59b8f03.js → index-5d12a5b7.js} +1 -1
- package/build/esm/{index-dc3c2817.js → index-5d9a9cf8.js} +1 -1
- package/build/esm/{index-75da0daa.js → index-5e8583d8.js} +73 -73
- package/build/esm/{index-322cee3c.js → index-626f9585.js} +1 -1
- package/build/esm/{index-09c19bc1.js → index-67d0039e.js} +1 -1
- package/build/esm/{index-d9b15542.js → index-681eb28e.js} +2 -2
- package/build/esm/{index-5e5f7284.js → index-6a5147e5.js} +1 -1
- package/build/esm/{index-91e3472f.js → index-6add71f5.js} +1 -1
- package/build/esm/{index-94714d82.js → index-6e3b7c66.js} +90 -90
- package/build/esm/{index-e2ded695.js → index-70359a4e.js} +70 -70
- package/build/esm/{index-ff7f44d8.js → index-7098bd51.js} +2 -2
- package/build/esm/{index-2743d9e3.js → index-7176987a.js} +1 -1
- package/build/esm/{index-c95e2275.js → index-7263794d.js} +89 -89
- package/build/esm/{index-1cee97a8.js → index-74bf0d06.js} +1 -1
- package/build/esm/{index-3f57a651.js → index-778df7ea.js} +21 -21
- package/build/esm/{index-dc0c558f.js → index-79ce5c71.js} +4 -4
- package/build/esm/{index-182540df.js → index-7a6c5a1d.js} +1 -1
- package/build/esm/{index-a8bf1ed5.js → index-7bffc2c4.js} +20 -20
- package/build/esm/{index-7f5e2298.js → index-8277c6c1.js} +1 -1
- package/build/esm/{index-a352b72e.js → index-828f5031.js} +87 -87
- package/build/esm/{index-2be26cea.js → index-82e94f22.js} +3 -3
- package/build/esm/{index-ee4f6970.js → index-84810841.js} +68 -68
- package/build/esm/{index-d0c3da62.js → index-84b35d15.js} +22 -22
- package/build/esm/{index-34219767.js → index-84de0beb.js} +2 -2
- package/build/esm/{index-845a9b74.js → index-85f553ee.js} +2 -2
- package/build/esm/{index-b5251afa.js → index-8634e357.js} +20 -20
- package/build/esm/{index-3f3ce112.js → index-8871cb64.js} +5 -5
- package/build/esm/{index-252b227d.js → index-890c710e.js} +2 -2
- package/build/esm/{index-86ba1984.js → index-8b4f7b9d.js} +1 -1
- package/build/esm/{index-a887287e.js → index-8b5db5bd.js} +1 -1
- package/build/esm/{index-d96cea48.js → index-8b7b895c.js} +1 -1
- package/build/esm/{index-88131808.js → index-8bf9ddb5.js} +19 -19
- package/build/esm/{index-fb6cd043.js → index-8c72582b.js} +1 -1
- package/build/esm/{index-54171eb4.js → index-8c838591.js} +1 -1
- package/build/esm/{index-aad93bf7.js → index-9079636d.js} +2 -2
- package/build/esm/{index-ff2e4506.js → index-9179265d.js} +1 -1
- package/build/esm/{index-c9e4f716.js → index-91ab9dda.js} +90 -90
- package/build/esm/{index-7e60987c.js → index-91ada6f6.js} +19 -19
- package/build/esm/{index-2421ac76.js → index-92fbbd2e.js} +1 -1
- package/build/esm/{index-4ef7ef64.js → index-930590c1.js} +1 -1
- package/build/esm/{index-f701ef33.js → index-94bc423d.js} +2 -2
- package/build/esm/{index-7a495b04.js → index-95009f0d.js} +928 -497
- package/build/esm/{index-6698ced9.js → index-956a0fd6.js} +3 -3
- package/build/esm/{index-6702a3fe.js → index-958ed4f7.js} +1 -1
- package/build/esm/{index-2002bf45.js → index-95b2ebde.js} +89 -89
- package/build/esm/{index-0dfb067a.js → index-a26248ae.js} +2 -2
- package/build/esm/{index-4af1418d.js → index-a3f46744.js} +1 -1
- package/build/esm/{index-17344200.js → index-a4c7a5d3.js} +1 -1
- package/build/esm/{index-b8a92201.js → index-a587c99f.js} +2 -2
- package/build/esm/{index-53e9a3cf.js → index-a6ad3b22.js} +1 -1
- package/build/esm/{index-00a46403.js → index-a6adcc01.js} +1 -1
- package/build/esm/{index-b27c3bda.js → index-a88a8ba9.js} +2 -2
- package/build/esm/{index-2d19fcbc.js → index-aa6f5145.js} +1 -1
- package/build/esm/{index-175b43fe.js → index-aa86ca78.js} +1 -1
- package/build/esm/{index-a144a6c9.js → index-ab2f47a4.js} +1 -1
- package/build/esm/{index-2b695ac9.js → index-aebf76b8.js} +65 -65
- package/build/esm/{index-f49385ee.js → index-b02004c5.js} +3 -3
- package/build/esm/{index-a9c8907c.js → index-b0da6b0a.js} +5 -5
- package/build/esm/{index-b7d4169b.js → index-b42a9998.js} +1 -1
- package/build/esm/{index-adf16624.js → index-b432732e.js} +5 -5
- package/build/esm/{index-dbd0401f.js → index-b4c4a86c.js} +1 -1
- package/build/esm/{index-68b062a5.js → index-b50c3c8f.js} +1 -1
- package/build/esm/{index-31367a09.js → index-b597373e.js} +1 -1
- package/build/esm/{index-ab26b340.js → index-b609ce81.js} +1 -1
- package/build/esm/{index-06632762.js → index-b822e6af.js} +1 -1
- package/build/esm/{index-3d5fc68b.js → index-b93d482e.js} +1 -1
- package/build/esm/{index-e027f537.js → index-b98353f9.js} +91 -91
- package/build/esm/{index-d301b644.js → index-bae7c5cc.js} +1 -1
- package/build/esm/{index-00bcbbf8.js → index-bb4d390b.js} +8 -8
- package/build/esm/{index-711af4d6.js → index-bd8a2a9e.js} +1 -1
- package/build/esm/{index-f9df13f6.js → index-bf8e308d.js} +3 -3
- package/build/esm/{index-4727590a.js → index-bfdaac34.js} +3 -3
- package/build/esm/{index-947afbd1.js → index-c08fd954.js} +2 -2
- package/build/esm/{index-2b79ab04.js → index-c11f0000.js} +71 -71
- package/build/esm/{index-9da65076.js → index-c1e10d17.js} +4 -4
- package/build/esm/{index-028b1e41.js → index-c57a2a9b.js} +67 -67
- package/build/esm/{index-383f7177.js → index-c71285a3.js} +1 -1
- package/build/esm/{index-d616cfc2.js → index-c7b0e37b.js} +2 -2
- package/build/esm/{index-20116c48.js → index-c914cc01.js} +3 -3
- package/build/esm/{index-a6be1d79.js → index-c953f772.js} +1 -1
- package/build/esm/{index-908a3a4f.js → index-cdd41b9d.js} +1 -1
- package/build/esm/{index-d6cd1b0a.js → index-ce0e819e.js} +21 -21
- package/build/esm/{index-6ecae459.js → index-cfc2bf87.js} +1 -1
- package/build/esm/{index-7f08686f.js → index-d25e143d.js} +1 -1
- package/build/esm/{index-c4087174.js → index-d3b5a1c3.js} +1 -1
- package/build/esm/{index-44153aaa.js → index-d3dbaca3.js} +2 -2
- package/build/esm/{index-ea3e1368.js → index-d4787b4c.js} +1 -1
- package/build/esm/{index-0711ec79.js → index-d5064860.js} +6 -6
- package/build/esm/{index-7e4de1d1.js → index-d6d014a6.js} +5 -5
- package/build/esm/{index-25222dff.js → index-d7a1774e.js} +1 -1
- package/build/esm/{index-8feb111f.js → index-d8a7ff9e.js} +65 -65
- package/build/esm/{index-1ddee210.js → index-d941b156.js} +1 -1
- package/build/esm/{index-1aec1e6a.js → index-d94d71e5.js} +1 -1
- package/build/esm/{index-e00e42e9.js → index-d9514bef.js} +1 -1
- package/build/esm/index-da013ee1.js +304 -0
- package/build/esm/{index-7e573216.js → index-daeca131.js} +1 -1
- package/build/esm/{index-6a953370.js → index-dc7c4dc1.js} +84 -84
- package/build/esm/{index-70a986ff.js → index-dd2f6b18.js} +2 -2
- package/build/esm/{index-47c748a9.js → index-debcca96.js} +20 -20
- package/build/esm/{index-64c865c8.js → index-df815390.js} +1 -1
- package/build/esm/{index-2b95dd4f.js → index-e04d7530.js} +1 -1
- package/build/esm/{index-72b69e9f.js → index-e12367ac.js} +17 -17
- package/build/esm/{index-30c92e22.js → index-e1f7c073.js} +2 -2
- package/build/esm/{index-9099bd70.js → index-e2f8f6ea.js} +4 -4
- package/build/esm/{index-53fd9165.js → index-e4c9a367.js} +10 -10
- package/build/esm/index-e547fdf1.js +72 -0
- package/build/esm/{index-f85d977a.js → index-e60b2b41.js} +1 -1
- package/build/esm/{index-ef2a8418.js → index-e7c533cc.js} +1 -1
- package/build/esm/{index-d940a656.js → index-e83c05fa.js} +5 -5
- package/build/esm/{index-f652b257.js → index-e875f62a.js} +5 -5
- package/build/esm/{index-73d39793.js → index-e9590258.js} +66 -66
- package/build/esm/{index-0560bc67.js → index-eb533b66.js} +66 -66
- package/build/esm/{index-458cbccf.js → index-ec02430b.js} +1 -1
- package/build/esm/{index-acc7f56f.js → index-edeaa5e8.js} +5 -5
- package/build/esm/{index-062d29e9.js → index-eebed5c2.js} +2 -2
- package/build/esm/{index-1e42a09a.js → index-f118b2d4.js} +3 -3
- package/build/esm/{index-fce5c6b0.js → index-f2a9c117.js} +19 -19
- package/build/esm/{index-b630d31a.js → index-f6cb5888.js} +1 -1
- package/build/esm/{index-a1ddccd9.js → index-f7b96c84.js} +1 -1
- package/build/esm/{index-091fc3d4.js → index-fbed9c2c.js} +1 -1
- package/build/esm/{index-9ce76b61.js → index-fe62884a.js} +1 -1
- package/build/esm/{index-3eb9b698.js → index-ff1a3df3.js} +1 -1
- package/build/esm/{index-0afd6595.js → index-ff300f57.js} +2 -2
- package/build/esm/{index-d25e05e7.js → index-ff723156.js} +3 -3
- package/build/esm/index.js +1 -1
- package/build/esm/{index.module-5fee4ca5.js → index.module-678530a2.js} +1 -1
- package/build/esm/{index.module-d904605a.js → index.module-7788c472.js} +1 -1
- package/build/esm/{index.module-68d2cf7b.js → index.module-8f88fa6e.js} +1 -1
- package/build/esm/{index.module-685935cb.js → index.module-a010ae4b.js} +1 -1
- package/build/esm/{index.module-ea3dd840.js → index.module-a657989c.js} +1 -1
- package/build/esm/{index.module-068edecc.js → index.module-b25c3f42.js} +1 -1
- package/build/esm/{index.module-5e19f1cc.js → index.module-ba23ba17.js} +1 -1
- package/build/esm/{index.module-39b84782.js → index.module-c8956b34.js} +2 -2
- package/build/esm/{index.module-f4a44414.js → index.module-eaedca1f.js} +1 -1
- package/build/esm/{useCustomDimensions-6502c72d.js → useCustomDimensions-ee04eedf.js} +1 -1
- package/build/esm/{ussIsSticky-12ddb61c.js → ussIsSticky-921c6a25.js} +1 -1
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Header/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/ConfiguratorQuitModal.d.ts +14 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/ConfiguratorQuitModal.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/openPlannerQuitModal.d.ts +5 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/openPlannerQuitModal.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/quitModalFlow.d.ts +7 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/quitModalFlow.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/handleMail.d.ts +4 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/handleMail.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/index.d.ts +2 -2
- package/build/types/web-planner-react/src/components/GlobalElements/Checkout/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerAIRoom/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductHeader/Functions/StyleIndicator/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Settings/SettingsScroller/SettingsItem/ItemPalette/StyleConsultant/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/DivaViewHandler.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/States/UIState/AI/index.d.ts +5 -1
- package/build/types/web-planner-react/src/model/States/UIState/AI/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/States/UIState/index.d.ts +1 -1
- package/build/types/web-planner-react/src/model/States/UIState/index.d.ts.map +1 -1
- package/build/umd/1451.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/176.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2359.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3543.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/419.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4729.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4874.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4982.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6822.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7692.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8515.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9354.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9638.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9715.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +8 -8
- package/build/esm/UnlockCard-b31524c3.js +0 -191
- package/build/esm/index-c7c4421d.js +0 -216
- package/build/esm/index-cf276c21.js +0 -61
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-web-planner-react",
|
|
3
|
-
"version": "26.5.0-beta.
|
|
3
|
+
"version": "26.5.0-beta.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"react-dom": "18.3.1"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@crystaldesign/content-item": "26.5.0-beta.
|
|
16
|
-
"@crystaldesign/product-detail-page": "26.5.0-beta.
|
|
17
|
-
"@crystaldesign/products-component": "26.5.0-beta.
|
|
18
|
-
"@crystaldesign/real-time-viewer": "26.5.0-beta.
|
|
19
|
-
"@crystaldesign/web-planner-logic": "26.5.0-beta.
|
|
20
|
-
"@crystaldesign/widget-contact-form": "26.5.0-beta.
|
|
15
|
+
"@crystaldesign/content-item": "26.5.0-beta.20",
|
|
16
|
+
"@crystaldesign/product-detail-page": "26.5.0-beta.20",
|
|
17
|
+
"@crystaldesign/products-component": "26.5.0-beta.20",
|
|
18
|
+
"@crystaldesign/real-time-viewer": "26.5.0-beta.20",
|
|
19
|
+
"@crystaldesign/web-planner-logic": "26.5.0-beta.20",
|
|
20
|
+
"@crystaldesign/widget-contact-form": "26.5.0-beta.20",
|
|
21
21
|
"@google/model-viewer": "3.5.0",
|
|
22
22
|
"@react-google-maps/api": "2.20.6",
|
|
23
23
|
"@types/three": "0.163.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"types": "./build/types/web-planner-react/src/index.d.ts"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "9dba3b8bb6752eb31705f735023d5d03eceaa162"
|
|
67
67
|
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
2
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
-
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
4
|
-
import { s as styleInject } from './index-7a495b04.js';
|
|
5
|
-
import { useState } from 'react';
|
|
6
|
-
import { useTranslation, DivaUtils } from '@crystaldesign/diva-core';
|
|
7
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
8
|
-
|
|
9
|
-
var container = "container-uvLa8";
|
|
10
|
-
var emptyText = "emptyText-k7-1y";
|
|
11
|
-
var headline = "headline-VRP8M";
|
|
12
|
-
var subheadline = "subheadline-aM8S8";
|
|
13
|
-
var styleSelection = "styleSelection-iOIY2";
|
|
14
|
-
var styleDescriptionText = "styleDescriptionText-XEUG7";
|
|
15
|
-
var styleButtonsSwiper = "styleButtonsSwiper-zhnww";
|
|
16
|
-
var styleButton = "styleButton-dyuqQ";
|
|
17
|
-
var styleButtonSelected = "styleButtonSelected-uZne1";
|
|
18
|
-
var styleButtonImage = "styleButtonImage-by1s3";
|
|
19
|
-
var styleDescription = "styleDescription-GH09Y";
|
|
20
|
-
var styleName = "styleName-HH3qh";
|
|
21
|
-
var customInputSection = "customInputSection-zwl9g";
|
|
22
|
-
var customInput = "customInput-5jLl3";
|
|
23
|
-
var generateSection = "generateSection-3wiMe";
|
|
24
|
-
var generateButton = "generateButton-TP6yS";
|
|
25
|
-
var remainingText = "remainingText-P3Ibl";
|
|
26
|
-
var errorMessage = "errorMessage-6Dfp4";
|
|
27
|
-
var unlockCard = "unlockCard-zmqvI";
|
|
28
|
-
var unlockTitle = "unlockTitle-ZdltE";
|
|
29
|
-
var unlockText = "unlockText-Jixn2";
|
|
30
|
-
var unlockEmailInput = "unlockEmailInput-z5SXf";
|
|
31
|
-
var unlockSubmitButton = "unlockSubmitButton-XuvH2";
|
|
32
|
-
var unlockSubmitArrow = "unlockSubmitArrow-fCYvp";
|
|
33
|
-
var unlockSuccessCard = "unlockSuccessCard-2ICYg";
|
|
34
|
-
var unlockSuccessIcon = "unlockSuccessIcon-pOmcL";
|
|
35
|
-
var unlockSuccessText = "unlockSuccessText-rtcHE";
|
|
36
|
-
var tryVariantLink = "tryVariantLink-ZX0JF";
|
|
37
|
-
var sceneHistory = "sceneHistory-i3VQY";
|
|
38
|
-
var sceneHistoryTitle = "sceneHistoryTitle-fJPXT";
|
|
39
|
-
var sceneHistorySwiper = "sceneHistorySwiper-oOVFf";
|
|
40
|
-
var sceneThumb = "sceneThumb-mVxuB";
|
|
41
|
-
var sceneThumbSelected = "sceneThumbSelected-MfJxR";
|
|
42
|
-
var css_248z = ".container-uvLa8 {\n padding-top: 16px;\n padding-left: 12px;\n}\n\n.mobile .container-uvLa8 {\n padding-left: 0px;\n}\n\n.emptyText-k7-1y {\n font-size: 14px;\n font-weight: 300;\n color: var(--diva-theme-palette-text-secondary);\n margin: 0;\n}\n\n.headline-VRP8M {\n font-size: 18px;\n font-weight: 300;\n line-height: 1.3;\n letter-spacing: inherit;\n color: var(--diva-theme-palette-text-primary);\n margin: 0 0 8px;\n}\n\n.subheadline-aM8S8 {\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: var(--diva-theme-palette-text-secondary);\n margin: 0 0 16px;\n}\n\n.mobile .subheadline-aM8S8 {\n margin: 0 0 8px;\n}\n\n.styleSelection-iOIY2 {\n margin-bottom: 16px;\n}\n\n.styleDescriptionText-XEUG7 {\n font-size: 14px;\n font-weight: 300;\n line-height: 1.5;\n color: var(--diva-theme-palette-text-secondary);\n margin: 0;\n}\n\n.mobile .styleDescriptionText-XEUG7 {\n font-size: 12px;\n}\n\n.styleButtonsSwiper-zhnww {\n margin-bottom: 16px;\n min-height: 60px;\n overflow: visible;\n}\n\n.styleButtonsSwiper-zhnww .swiper {\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 6px 0;\n z-index: 1;\n}\n\n.styleButtonsSwiper-zhnww .swiper-wrapper {\n position: relative;\n width: calc(100% - 24px);\n height: 100%;\n z-index: 1;\n display: flex;\n align-items: center;\n transition-property: transform;\n justify-content: center;\n padding: 12px;\n}\n\n.styleSelection-iOIY2 .styleButtonsSwiper-zhnww .swiper-slide {\n flex-shrink: 0;\n width: 18%;\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n overflow: visible;\n}\n\n.styleButtonsSwiper-zhnww .swiper-button-prev,\n.styleButtonsSwiper-zhnww .swiper-button-next {\n position: absolute;\n top: 50%;\n width: 24px;\n height: 24px;\n margin-top: -12px;\n z-index: 10;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n -webkit-tap-highlight-color: transparent;\n outline: none;\n}\n.styleButtonsSwiper-zhnww .swiper-button-prev svg,\n.styleButtonsSwiper-zhnww .swiper-button-next svg {\n display: none;\n}\n\n.styleButtonsSwiper-zhnww .swiper-button-prev:focus,\n.styleButtonsSwiper-zhnww .swiper-button-prev:active,\n.styleButtonsSwiper-zhnww .swiper-button-next:focus,\n.styleButtonsSwiper-zhnww .swiper-button-next:active {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.styleButtonsSwiper-zhnww .swiper-button-prev::before,\n.styleButtonsSwiper-zhnww .swiper-button-next::before {\n display: none !important;\n}\n\n.styleButtonsSwiper-zhnww .swiper-button-prev:after,\n.styleButtonsSwiper-zhnww .swiper-button-next:after {\n font-family: swiper-icons;\n font-size: 24px;\n}\n\n.styleButtonsSwiper-zhnww .swiper-button-prev,\n.styleButtonsSwiper-zhnww .swiper-rtl .swiper-button-next {\n left: 4px;\n right: auto;\n}\n\n.styleButtonsSwiper-zhnww .swiper-button-next,\n.styleButtonsSwiper-zhnww .swiper-rtl .swiper-button-prev {\n right: 4px;\n left: auto;\n}\n\n.styleButtonsSwiper-zhnww .swiper-button-disabled {\n display: none;\n}\n\n.styleButton-dyuqQ {\n width: 100%;\n height: 100%;\n min-width: 0;\n padding: 0;\n border: none;\n border-radius: 50%;\n overflow: hidden;\n cursor: pointer;\n background: none;\n transition:\n opacity 0.2s,\n box-shadow 0.2s;\n -webkit-tap-highlight-color: transparent;\n outline: none;\n}\n\n.styleButton-dyuqQ:hover {\n opacity: 0.8;\n}\n\n.styleButton-dyuqQ:focus,\n.styleButton-dyuqQ:active {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.styleButtonSelected-uZne1 {\n box-shadow: 0 0 0 3px var(--diva-theme-palette-primary-main);\n outline-offset: 2px;\n}\n\n.styleButtonImage-by1s3 {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n}\n\n.styleDescription-GH09Y {\n text-align: center;\n}\n\n.styleName-HH3qh {\n font-size: 16px;\n font-weight: 300;\n color: var(--diva-theme-palette-text-primary);\n margin: 0 0 8px;\n}\n\n.customInputSection-zwl9g {\n margin-bottom: 16px;\n}\n\n.customInput-5jLl3 {\n width: calc(100% - 28px);\n padding: 10px 14px;\n font-size: 16px;\n font-weight: 300;\n color: var(--diva-theme-palette-text-primary);\n border: 1px solid #e8e3da;\n border: 1px solid var(--galleryItemBorderColor, #e8e3da);\n border-radius: 4px;\n border-radius: var(--globalBorderRadius, 4px);\n background: var(--settingsBackgroundColor);\n}\n\n.customInput-5jLl3:focus {\n outline: none;\n border-color: var(--diva-theme-palette-primary-main);\n box-shadow: 0 0 0 1px var(--diva-theme-palette-primary-main);\n}\n\n.customInput-5jLl3::-moz-placeholder {\n color: var(--diva-theme-palette-text-secondary);\n}\n\n.customInput-5jLl3::placeholder {\n color: var(--diva-theme-palette-text-secondary);\n}\n\n.generateSection-3wiMe {\n margin-bottom: 24px;\n}\n\n.generateButton-TP6yS {\n width: calc(100% - 48px);\n padding: 14px 24px;\n font-size: 16px;\n font-weight: 300;\n color: #fff;\n color: var(--diva-theme-palette-primary-contrast-text, #fff);\n background: var(--diva-theme-palette-primary-main);\n border: none;\n border-radius: var(--buttons-border-radius);\n cursor: pointer;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n box-shadow: var(--boxShadowHover, 0 4px 6px rgba(0, 0, 0, 0.1));\n transition:\n background 0.2s,\n box-shadow 0.2s;\n -webkit-tap-highlight-color: transparent;\n outline: none;\n}\n\n.generateButton-TP6yS:focus,\n.generateButton-TP6yS:active {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.generateButton-TP6yS:hover:not(:disabled) {\n background: var(--diva-theme-palette-primary-dark);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);\n box-shadow: var(--boxShadowActive, 0 6px 12px rgba(0, 0, 0, 0.15));\n}\n\n.generateButton-TP6yS:disabled {\n cursor: not-allowed;\n opacity: 0.7;\n}\n\n.remainingText-P3Ibl {\n font-size: 12px;\n font-weight: 300;\n color: var(--diva-theme-palette-text-secondary);\n text-align: center;\n margin: 8px 0 0;\n}\n\n.errorMessage-6Dfp4 {\n font-size: 13px;\n font-weight: 400;\n line-height: 1.5;\n color: #d32f2f;\n color: var(--diva-theme-palette-error-main, #d32f2f);\n background: color-mix(in srgb, #d32f2f 8%, transparent);\n background: color-mix(in srgb, var(--diva-theme-palette-error-main, #d32f2f) 8%, transparent);\n border: 1px solid color-mix(in srgb, #d32f2f 25%, transparent);\n border: 1px solid color-mix(in srgb, var(--diva-theme-palette-error-main, #d32f2f) 25%, transparent);\n border-radius: 4px;\n border-radius: var(--globalBorderRadius, 4px);\n padding: 10px 14px;\n margin: 12px 0 0;\n text-align: center;\n}\n\n.unlockCard-zmqvI {\n padding: 24px 20px;\n border: 2px solid color-mix(in srgb, var(--diva-theme-palette-primary-main) 20%, transparent);\n border-radius: 4px;\n border-radius: var(--globalBorderRadius, 4px);\n background: var(--settingsBackgroundColor);\n text-align: center;\n}\n\n.unlockTitle-ZdltE {\n font-size: 18px;\n font-weight: 300;\n\n color: var(--diva-theme-palette-primary-main);\n margin: 0 0 12px;\n}\n\n.unlockText-Jixn2 {\n font-size: 14px;\n font-weight: 300;\n line-height: 1.6;\n color: var(--diva-theme-palette-text-secondary);\n margin: 0 0 16px;\n}\n\n.unlockEmailInput-z5SXf {\n width: calc(100% - 28px);\n padding: 12px 14px;\n font-size: 16px;\n font-weight: 300;\n color: var(--diva-theme-palette-text-primary);\n border: 1px solid #e8e3da;\n border: 1px solid var(--galleryItemBorderColor, #e8e3da);\n border-radius: 4px;\n border-radius: var(--globalBorderRadius, 4px);\n background: var(--settingsBackgroundColor);\n margin-bottom: 12px;\n}\n\n.unlockEmailInput-z5SXf:focus {\n outline: none;\n border-color: var(--diva-theme-palette-primary-main);\n box-shadow: 0 0 0 1px var(--diva-theme-palette-primary-main);\n}\n\n.unlockEmailInput-z5SXf::-moz-placeholder {\n color: var(--diva-theme-palette-text-secondary);\n}\n\n.unlockEmailInput-z5SXf::placeholder {\n color: var(--diva-theme-palette-text-secondary);\n}\n\n.unlockSubmitButton-XuvH2 {\n width: calc(100% - 48px);\n padding: 14px 24px;\n font-size: 14px;\n font-weight: 400;\n color: #fff;\n color: var(--diva-theme-palette-primary-contrast-text, #fff);\n background: var(--diva-theme-palette-primary-main);\n border: none;\n border-radius: var(--buttons-border-radius);\n cursor: pointer;\n transition:\n background 0.2s,\n box-shadow 0.2s;\n -webkit-tap-highlight-color: transparent;\n outline: none;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n}\n\n.unlockSubmitButton-XuvH2:focus,\n.unlockSubmitButton-XuvH2:active {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.unlockSubmitButton-XuvH2:hover:not(:disabled) {\n background: var(--diva-theme-palette-primary-dark);\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);\n box-shadow: var(--boxShadowActive, 0 6px 12px rgba(0, 0, 0, 0.15));\n}\n\n.unlockSubmitButton-XuvH2:disabled {\n cursor: not-allowed;\n opacity: 0.7;\n}\n\n.unlockSubmitArrow-fCYvp {\n font-size: 18px;\n line-height: 1;\n}\n\n.unlockSuccessCard-2ICYg {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 12px;\n min-height: 120px;\n}\n\n.unlockSuccessIcon-pOmcL {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border-radius: 50%;\n background: var(--diva-theme-palette-primary-main);\n color: #fff;\n color: var(--diva-theme-palette-primary-contrast-text, #fff);\n font-size: 20px;\n line-height: 1;\n}\n\n.unlockSuccessText-rtcHE {\n font-size: 15px;\n font-weight: 400;\n color: var(--diva-theme-palette-text-primary);\n margin: 0;\n}\n\n.tryVariantLink-ZX0JF {\n display: block;\n margin: 12px auto 24px;\n padding: 0;\n font-size: 14px;\n font-weight: 300;\n color: var(--diva-theme-palette-primary-main);\n text-decoration: underline;\n text-underline-offset: 3px;\n background: none;\n border: none;\n cursor: pointer;\n transition: color 0.15s;\n -webkit-tap-highlight-color: transparent;\n}\n\n.tryVariantLink-ZX0JF:hover {\n color: var(--diva-theme-palette-primary-dark);\n}\n\n.sceneHistory-i3VQY {\n margin-top: 24px;\n}\n\n.sceneHistoryTitle-fJPXT {\n font-size: 12px;\n font-weight: 300;\n text-transform: uppercase;\n letter-spacing: 0.05em;\n color: var(--diva-theme-palette-text-secondary);\n margin: 0 0 12px;\n}\n\n.sceneHistorySwiper-oOVFf {\n padding-bottom: 8px;\n}\n\n.sceneHistorySwiper-oOVFf .swiper {\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 0;\n z-index: 1;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-wrapper {\n position: relative;\n height: 100%;\n z-index: 1;\n display: flex;\n align-items: center;\n transition-property: transform;\n padding: 12px;\n}\n\n.sceneHistory-i3VQY .sceneHistorySwiper-oOVFf .swiper-slide {\n flex-shrink: 0;\n width: 80px;\n height: 80px;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-prev,\n.sceneHistorySwiper-oOVFf .swiper-button-next {\n position: absolute;\n top: 50%;\n width: 24px;\n height: 24px;\n margin-top: -12px;\n z-index: 10;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n -webkit-tap-highlight-color: transparent;\n outline: none;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-prev svg,\n.sceneHistorySwiper-oOVFf .swiper-button-next svg {\n display: none;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-prev:focus,\n.sceneHistorySwiper-oOVFf .swiper-button-prev:active,\n.sceneHistorySwiper-oOVFf .swiper-button-next:focus,\n.sceneHistorySwiper-oOVFf .swiper-button-next:active {\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-prev::before,\n.sceneHistorySwiper-oOVFf .swiper-button-next::before {\n display: none !important;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-prev:after,\n.sceneHistorySwiper-oOVFf .swiper-button-next:after {\n font-family: swiper-icons;\n font-size: 24px;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-prev,\n.sceneHistorySwiper-oOVFf .swiper-rtl .swiper-button-next {\n left: 4px;\n right: auto;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-next,\n.sceneHistorySwiper-oOVFf .swiper-rtl .swiper-button-prev {\n right: 4px;\n left: auto;\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-prev:after {\n content: 'prev';\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-next:after {\n content: 'next';\n}\n\n.sceneHistorySwiper-oOVFf .swiper-button-disabled {\n display: none;\n}\n\n.sceneThumb-mVxuB {\n width: 80px;\n height: 80px;\n flex-shrink: 0;\n overflow: hidden;\n border-radius: 4px;\n border-radius: var(--globalBorderRadius, 4px);\n border: 2px solid #e8e3da;\n border: 2px solid var(--galleryItemBorderColor, #e8e3da);\n cursor: pointer;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.sceneThumb-mVxuB:hover {\n border-color: var(--diva-theme-palette-primary-main);\n}\n\n.sceneThumbSelected-MfJxR {\n border-color: var(--diva-theme-palette-primary-main);\n box-shadow: 0 0 0 2px var(--diva-theme-palette-primary-main);\n}\n\n.sceneThumb-mVxuB img {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n}\n";
|
|
43
|
-
styleInject(css_248z);
|
|
44
|
-
|
|
45
|
-
var UnlockCard = function UnlockCard(_ref) {
|
|
46
|
-
var budgetTotal = _ref.budgetTotal,
|
|
47
|
-
leadBonus = _ref.leadBonus,
|
|
48
|
-
leadKeyActive = _ref.leadKeyActive,
|
|
49
|
-
onSubmit = _ref.onSubmit,
|
|
50
|
-
onSuccess = _ref.onSuccess;
|
|
51
|
-
var _useTranslation = useTranslation(),
|
|
52
|
-
t = _useTranslation.t;
|
|
53
|
-
var _useState = useState(''),
|
|
54
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
55
|
-
email = _useState2[0],
|
|
56
|
-
setEmail = _useState2[1];
|
|
57
|
-
var _useState3 = useState(leadKeyActive || leadBonus <= 0 ? 'exhausted' : 'form'),
|
|
58
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
59
|
-
phase = _useState4[0],
|
|
60
|
-
setPhase = _useState4[1];
|
|
61
|
-
var _useState5 = useState(''),
|
|
62
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
63
|
-
errorMsg = _useState6[0],
|
|
64
|
-
setErrorMsg = _useState6[1];
|
|
65
|
-
var handleSubmit = /*#__PURE__*/function () {
|
|
66
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
67
|
-
var result, _result$message, _result$message2, _result$message3;
|
|
68
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
69
|
-
while (1) switch (_context.prev = _context.next) {
|
|
70
|
-
case 0:
|
|
71
|
-
setPhase('loading');
|
|
72
|
-
setErrorMsg('');
|
|
73
|
-
_context.next = 4;
|
|
74
|
-
return onSubmit(email);
|
|
75
|
-
case 4:
|
|
76
|
-
result = _context.sent;
|
|
77
|
-
if (result !== null && result !== void 0 && result.success) {
|
|
78
|
-
setPhase('success');
|
|
79
|
-
setTimeout(function () {
|
|
80
|
-
return onSuccess();
|
|
81
|
-
}, 2500);
|
|
82
|
-
} else if ((result === null || result === void 0 ? void 0 : result.reason) === 'LEAD_KEY_BONUS_EXHAUSTED') {
|
|
83
|
-
setErrorMsg((_result$message = result === null || result === void 0 ? void 0 : result.message) !== null && _result$message !== void 0 ? _result$message : '');
|
|
84
|
-
setPhase('leadBonusExhausted');
|
|
85
|
-
} else if ((result === null || result === void 0 ? void 0 : result.reason) === 'EMAIL_ALREADY_USED') {
|
|
86
|
-
setErrorMsg((_result$message2 = result === null || result === void 0 ? void 0 : result.message) !== null && _result$message2 !== void 0 ? _result$message2 : '');
|
|
87
|
-
setPhase('emailAlreadyUsed');
|
|
88
|
-
} else {
|
|
89
|
-
setErrorMsg((_result$message3 = result === null || result === void 0 ? void 0 : result.message) !== null && _result$message3 !== void 0 ? _result$message3 : '');
|
|
90
|
-
setPhase('error');
|
|
91
|
-
}
|
|
92
|
-
case 6:
|
|
93
|
-
case "end":
|
|
94
|
-
return _context.stop();
|
|
95
|
-
}
|
|
96
|
-
}, _callee);
|
|
97
|
-
}));
|
|
98
|
-
return function handleSubmit() {
|
|
99
|
-
return _ref2.apply(this, arguments);
|
|
100
|
-
};
|
|
101
|
-
}();
|
|
102
|
-
if (phase === 'success') {
|
|
103
|
-
return /*#__PURE__*/jsxs("div", {
|
|
104
|
-
className: "".concat(unlockCard, " ").concat(unlockSuccessCard),
|
|
105
|
-
children: [/*#__PURE__*/jsx("span", {
|
|
106
|
-
className: unlockSuccessIcon,
|
|
107
|
-
children: "\u2713"
|
|
108
|
-
}), /*#__PURE__*/jsx("p", {
|
|
109
|
-
className: unlockSuccessText,
|
|
110
|
-
children: t('configurator.inspiration.unlockSuccess', 'Erfolgreich freigeschaltet – jetzt weiter generieren!')
|
|
111
|
-
})]
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
if (phase === 'exhausted') {
|
|
115
|
-
return /*#__PURE__*/jsxs("div", {
|
|
116
|
-
className: unlockCard,
|
|
117
|
-
children: [/*#__PURE__*/jsx("h4", {
|
|
118
|
-
className: unlockTitle,
|
|
119
|
-
children: t('configurator.inspiration.exhaustedTitle', 'Sie haben heute alle Raumbilder genutzt')
|
|
120
|
-
}), /*#__PURE__*/jsx("p", {
|
|
121
|
-
className: unlockText,
|
|
122
|
-
children: t('configurator.inspiration.exhaustedText', 'Ihr Kontingent ist für heute aufgebraucht. Kommen Sie morgen wieder – dann stehen Ihnen neue Raumbilder zur Verfügung.')
|
|
123
|
-
})]
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
if (phase === 'emailAlreadyUsed') {
|
|
127
|
-
return /*#__PURE__*/jsxs("div", {
|
|
128
|
-
className: unlockCard,
|
|
129
|
-
children: [/*#__PURE__*/jsx("h4", {
|
|
130
|
-
className: unlockTitle,
|
|
131
|
-
children: t('configurator.inspiration.emailAlreadyUsedTitle', 'Diese E-Mail-Adresse wurde bereits verwendet')
|
|
132
|
-
}), /*#__PURE__*/jsx("p", {
|
|
133
|
-
className: unlockText,
|
|
134
|
-
children: t('configurator.inspiration.emailAlreadyUsedText', 'Die Freischaltung zusätzlicher Raumbilder ist pro E-Mail-Adresse nur einmal möglich.')
|
|
135
|
-
})]
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
if (phase === 'leadBonusExhausted') {
|
|
139
|
-
return /*#__PURE__*/jsxs("div", {
|
|
140
|
-
className: unlockCard,
|
|
141
|
-
children: [/*#__PURE__*/jsx("h4", {
|
|
142
|
-
className: unlockTitle,
|
|
143
|
-
children: t('configurator.inspiration.leadKeyBonusExhaustedTitle', 'Bonus-Kontingent aufgebraucht')
|
|
144
|
-
}), /*#__PURE__*/jsx("p", {
|
|
145
|
-
className: unlockText,
|
|
146
|
-
children: t('configurator.inspiration.leadKeyBonusExhaustedText', 'Für diese E-Mail-Adresse sind alle zusätzlichen Raumbilder bereits verbraucht. Es können keine weiteren Bilder mehr freigeschaltet werden.')
|
|
147
|
-
})]
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
return /*#__PURE__*/jsxs("div", {
|
|
151
|
-
className: unlockCard,
|
|
152
|
-
children: [/*#__PURE__*/jsx("h4", {
|
|
153
|
-
className: unlockTitle,
|
|
154
|
-
children: t('configurator.inspiration.unlockTitle', 'Gefällt Ihnen, was Sie sehen?')
|
|
155
|
-
}), /*#__PURE__*/jsx("p", {
|
|
156
|
-
className: unlockText,
|
|
157
|
-
children: t('configurator.inspiration.unlockTextLead', {
|
|
158
|
-
budgetTotal: budgetTotal,
|
|
159
|
-
leadBonus: leadBonus
|
|
160
|
-
})
|
|
161
|
-
}), /*#__PURE__*/jsx("input", {
|
|
162
|
-
type: "email",
|
|
163
|
-
className: unlockEmailInput,
|
|
164
|
-
value: email,
|
|
165
|
-
onChange: function onChange(e) {
|
|
166
|
-
return setEmail(e.target.value);
|
|
167
|
-
},
|
|
168
|
-
placeholder: t('configurator.inspiration.emailPlaceholder', 'ihre.email@beispiel.de'),
|
|
169
|
-
disabled: phase === 'loading'
|
|
170
|
-
}), phase === 'error' && errorMsg && /*#__PURE__*/jsx("p", {
|
|
171
|
-
className: unlockText,
|
|
172
|
-
children: errorMsg
|
|
173
|
-
}), /*#__PURE__*/jsxs("button", {
|
|
174
|
-
type: "button",
|
|
175
|
-
className: unlockSubmitButton,
|
|
176
|
-
disabled: phase === 'loading' || !DivaUtils.validateEmail(email),
|
|
177
|
-
onClick: handleSubmit,
|
|
178
|
-
children: [phase === 'loading' ? t('configurator.inspiration.unlocking', 'Wird freigeschaltet…') : t('configurator.inspiration.unlockButton', "".concat(leadBonus, " weitere Raumbilder freischalten")), phase !== 'loading' && /*#__PURE__*/jsx("span", {
|
|
179
|
-
className: unlockSubmitArrow,
|
|
180
|
-
children: "\u2192"
|
|
181
|
-
})]
|
|
182
|
-
})]
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
var UnlockCard$1 = /*#__PURE__*/Object.freeze({
|
|
187
|
-
__proto__: null,
|
|
188
|
-
'default': UnlockCard
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
export { UnlockCard as U, styleSelection as a, styleButtonsSwiper as b, container as c, styleButton as d, emptyText as e, styleButtonSelected as f, styleButtonImage as g, headline as h, styleDescription as i, styleName as j, styleDescriptionText as k, generateSection as l, customInputSection as m, customInput as n, generateButton as o, errorMessage as p, sceneHistory as q, remainingText as r, subheadline as s, sceneHistoryTitle as t, sceneHistorySwiper as u, sceneThumb as v, sceneThumbSelected as w, tryVariantLink as x, UnlockCard$1 as y };
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
2
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
-
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
4
|
-
import { u as useViewHandler } from './index-7a495b04.js';
|
|
5
|
-
import { observer } from 'mobx-react-lite';
|
|
6
|
-
import { useState } from 'react';
|
|
7
|
-
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
8
|
-
import { Navigation } from 'swiper/modules';
|
|
9
|
-
import { useTranslation } from '@crystaldesign/diva-core';
|
|
10
|
-
import { c as container, e as emptyText, h as headline, s as subheadline, a as styleSelection, b as styleButtonsSwiper, d as styleButton, f as styleButtonSelected, g as styleButtonImage, i as styleDescription, j as styleName, k as styleDescriptionText, l as generateSection, m as customInputSection, n as customInput, o as generateButton, p as errorMessage, r as remainingText, U as UnlockCard, q as sceneHistory, t as sceneHistoryTitle, u as sceneHistorySwiper, v as sceneThumb, w as sceneThumbSelected, x as tryVariantLink } from './UnlockCard-b31524c3.js';
|
|
11
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
13
|
-
import 'react-dynamic-multi-render';
|
|
14
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
15
|
-
import '@babel/runtime/helpers/classCallCheck';
|
|
16
|
-
import '@babel/runtime/helpers/createClass';
|
|
17
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
18
|
-
import '@crystaldesign/diva-utils';
|
|
19
|
-
import 'mobx';
|
|
20
|
-
import '@crystaldesign/web-planner-logic';
|
|
21
|
-
import 'classnames';
|
|
22
|
-
import 'qrcode.react';
|
|
23
|
-
import '@babel/runtime/helpers/typeof';
|
|
24
|
-
import 'flat';
|
|
25
|
-
import 'react-switch';
|
|
26
|
-
import 'react-countup';
|
|
27
|
-
|
|
28
|
-
var StyleConsultant = function StyleConsultant(_ref) {
|
|
29
|
-
var _viewHandler$getViewC, _aiState$enrichedAiRo, _budget$remaining, _viewHandler$settings, _viewHandler$settings2, _aiState$aiGeneration, _selectedItem$key, _aiState$customPrompt, _budget$isLimitReache, _budget$total, _budget$leadKeyActive;
|
|
30
|
-
_ref.item;
|
|
31
|
-
var _useTranslation = useTranslation(),
|
|
32
|
-
t = _useTranslation.t;
|
|
33
|
-
var viewHandler = useViewHandler();
|
|
34
|
-
var aiState = viewHandler.aiState;
|
|
35
|
-
var _useState = useState(false),
|
|
36
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
-
keepUnlockVisible = _useState2[0],
|
|
38
|
-
setKeepUnlockVisible = _useState2[1];
|
|
39
|
-
if (!((_viewHandler$getViewC = viewHandler.getViewConfig()) !== null && _viewHandler$getViewC !== void 0 && _viewHandler$getViewC.showStyleConsultant) || !((_aiState$enrichedAiRo = aiState.enrichedAiRoomRenderings) !== null && _aiState$enrichedAiRo !== void 0 && _aiState$enrichedAiRo.length)) {
|
|
40
|
-
return /*#__PURE__*/jsx("div", {
|
|
41
|
-
className: container,
|
|
42
|
-
children: /*#__PURE__*/jsx("p", {
|
|
43
|
-
className: emptyText,
|
|
44
|
-
children: t('configurator.roomRendering.noStylesAvailable', 'Keine Stilwelten verfügbar.')
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
var roomItems = aiState.enrichedAiRoomRenderings;
|
|
49
|
-
var selectedItem = roomItems.find(function (r) {
|
|
50
|
-
return r.key === aiState.selectedRoom;
|
|
51
|
-
});
|
|
52
|
-
var budget = aiState.usageBudget;
|
|
53
|
-
var scenesRemaining = (_budget$remaining = budget === null || budget === void 0 ? void 0 : budget.remaining) !== null && _budget$remaining !== void 0 ? _budget$remaining : 0;
|
|
54
|
-
var leadBonus = (_viewHandler$settings = (_viewHandler$settings2 = viewHandler.settingsState.organizationAISettings) === null || _viewHandler$settings2 === void 0 ? void 0 : _viewHandler$settings2.leadRewardBonus) !== null && _viewHandler$settings !== void 0 ? _viewHandler$settings : 0;
|
|
55
|
-
var generatedImages = aiState.generatedImageHistory;
|
|
56
|
-
var generationErrorKey = (_aiState$aiGeneration = aiState.aiGenerationErrors[(_selectedItem$key = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) !== null && _selectedItem$key !== void 0 ? _selectedItem$key : '']) === null || _aiState$aiGeneration === void 0 ? void 0 : _aiState$aiGeneration[aiState.setHash];
|
|
57
|
-
var hasImageForCurrentPrompt = generatedImages.some(function (e) {
|
|
58
|
-
return e.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) && e.hash === aiState.setHash && (e.customPrompt || '') === (aiState.customPromptInput || '');
|
|
59
|
-
});
|
|
60
|
-
return /*#__PURE__*/jsxs("div", {
|
|
61
|
-
className: container,
|
|
62
|
-
children: [/*#__PURE__*/jsx("h1", {
|
|
63
|
-
className: headline,
|
|
64
|
-
children: t('configurator.inspiration.headline')
|
|
65
|
-
}), /*#__PURE__*/jsx("p", {
|
|
66
|
-
className: subheadline,
|
|
67
|
-
children: t('configurator.inspiration.subheadline')
|
|
68
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
69
|
-
className: styleSelection,
|
|
70
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
71
|
-
className: styleButtonsSwiper,
|
|
72
|
-
children: /*#__PURE__*/jsx(Swiper, {
|
|
73
|
-
modules: [Navigation],
|
|
74
|
-
spaceBetween: 10,
|
|
75
|
-
slidesPerView: "auto",
|
|
76
|
-
navigation: true,
|
|
77
|
-
wrapperClass: "no-swiping",
|
|
78
|
-
resizeObserver: true,
|
|
79
|
-
children: roomItems.map(function (style) {
|
|
80
|
-
return /*#__PURE__*/jsx(SwiperSlide, {
|
|
81
|
-
children: /*#__PURE__*/jsx("button", {
|
|
82
|
-
type: "button",
|
|
83
|
-
className: "".concat(styleButton, " ").concat(aiState.selectedRoom === style.key ? styleButtonSelected : ''),
|
|
84
|
-
onClick: function onClick() {
|
|
85
|
-
return aiState.setSelectedRoom(style.key);
|
|
86
|
-
},
|
|
87
|
-
title: style.name,
|
|
88
|
-
children: /*#__PURE__*/jsx("img", {
|
|
89
|
-
src: style.image,
|
|
90
|
-
alt: style.name,
|
|
91
|
-
className: styleButtonImage
|
|
92
|
-
})
|
|
93
|
-
})
|
|
94
|
-
}, style.key);
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
}), selectedItem && /*#__PURE__*/jsxs("div", {
|
|
98
|
-
className: styleDescription,
|
|
99
|
-
children: [/*#__PURE__*/jsx("h3", {
|
|
100
|
-
className: styleName,
|
|
101
|
-
children: selectedItem.name
|
|
102
|
-
}), !!selectedItem.description && /*#__PURE__*/jsx("p", {
|
|
103
|
-
className: styleDescriptionText,
|
|
104
|
-
children: selectedItem.description
|
|
105
|
-
})]
|
|
106
|
-
})]
|
|
107
|
-
}), /*#__PURE__*/jsx("div", {
|
|
108
|
-
className: generateSection,
|
|
109
|
-
children: scenesRemaining > 0 && !keepUnlockVisible ? /*#__PURE__*/jsxs(Fragment, {
|
|
110
|
-
children: [/*#__PURE__*/jsxs("div", {
|
|
111
|
-
className: customInputSection,
|
|
112
|
-
children: [/*#__PURE__*/jsx("p", {
|
|
113
|
-
className: styleDescriptionText,
|
|
114
|
-
children: t('configurator.inspiration.customPromptDescription')
|
|
115
|
-
}), /*#__PURE__*/jsx("input", {
|
|
116
|
-
type: "text",
|
|
117
|
-
className: customInput,
|
|
118
|
-
value: (_aiState$customPrompt = aiState.customPromptInput) !== null && _aiState$customPrompt !== void 0 ? _aiState$customPrompt : '',
|
|
119
|
-
onChange: function onChange(e) {
|
|
120
|
-
return aiState.setCustomPromptInput(e.target.value);
|
|
121
|
-
},
|
|
122
|
-
placeholder: t('configurator.inspiration.customPlaceholder')
|
|
123
|
-
})]
|
|
124
|
-
}), /*#__PURE__*/jsx("button", {
|
|
125
|
-
type: "button",
|
|
126
|
-
className: generateButton,
|
|
127
|
-
onClick: function onClick() {
|
|
128
|
-
return selectedItem && aiState.handleGenerate(selectedItem.key, true);
|
|
129
|
-
},
|
|
130
|
-
disabled: !selectedItem || aiState.isAnyGenerationInProgress || ((_budget$isLimitReache = budget === null || budget === void 0 ? void 0 : budget.isLimitReached) !== null && _budget$isLimitReache !== void 0 ? _budget$isLimitReache : false) || hasImageForCurrentPrompt,
|
|
131
|
-
children: hasImageForCurrentPrompt ? t('configurator.inspiration.generated') : aiState.isAnyGenerationInProgress ? t('configurator.inspiration.generating') : generationErrorKey ? t('configurator.inspiration.retry') : t('configurator.inspiration.generate')
|
|
132
|
-
}), generationErrorKey && /*#__PURE__*/jsx("p", {
|
|
133
|
-
className: errorMessage,
|
|
134
|
-
children: t(generationErrorKey, generationErrorKey === 'configurator.roomRendering.aiGenerationError.imageSafety' ? t('configurator.inspiration.imageSafetyError') : generationErrorKey === 'configurator.roomRendering.aiGenerationError.resourceExhausted' ? t('configurator.inspiration.resourceExhaustedError') : t('configurator.inspiration.unknownError'))
|
|
135
|
-
}), /*#__PURE__*/jsx("p", {
|
|
136
|
-
className: remainingText,
|
|
137
|
-
children: scenesRemaining === 1 ? t('configurator.inspiration.remainingOne') : t('configurator.inspiration.remaining', {
|
|
138
|
-
scenesRemaining: scenesRemaining
|
|
139
|
-
})
|
|
140
|
-
})]
|
|
141
|
-
}) : /*#__PURE__*/jsx(UnlockCard, {
|
|
142
|
-
budgetTotal: (_budget$total = budget === null || budget === void 0 ? void 0 : budget.total) !== null && _budget$total !== void 0 ? _budget$total : 3,
|
|
143
|
-
leadBonus: leadBonus,
|
|
144
|
-
leadKeyActive: (_budget$leadKeyActive = budget === null || budget === void 0 ? void 0 : budget.leadKeyActive) !== null && _budget$leadKeyActive !== void 0 ? _budget$leadKeyActive : false,
|
|
145
|
-
onSubmit: (/*#__PURE__*/function () {
|
|
146
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(email) {
|
|
147
|
-
var result;
|
|
148
|
-
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
149
|
-
while (1) switch (_context.prev = _context.next) {
|
|
150
|
-
case 0:
|
|
151
|
-
setKeepUnlockVisible(true);
|
|
152
|
-
_context.next = 3;
|
|
153
|
-
return aiState.createLeadKey(email);
|
|
154
|
-
case 3:
|
|
155
|
-
result = _context.sent;
|
|
156
|
-
return _context.abrupt("return", result !== null && result !== void 0 ? result : {
|
|
157
|
-
success: false
|
|
158
|
-
});
|
|
159
|
-
case 5:
|
|
160
|
-
case "end":
|
|
161
|
-
return _context.stop();
|
|
162
|
-
}
|
|
163
|
-
}, _callee);
|
|
164
|
-
}));
|
|
165
|
-
return function (_x) {
|
|
166
|
-
return _ref2.apply(this, arguments);
|
|
167
|
-
};
|
|
168
|
-
}()),
|
|
169
|
-
onSuccess: function onSuccess() {
|
|
170
|
-
return setKeepUnlockVisible(false);
|
|
171
|
-
}
|
|
172
|
-
})
|
|
173
|
-
}), generatedImages.length > 0 && /*#__PURE__*/jsxs("div", {
|
|
174
|
-
className: sceneHistory,
|
|
175
|
-
children: [/*#__PURE__*/jsx("h4", {
|
|
176
|
-
className: sceneHistoryTitle,
|
|
177
|
-
children: t('configurator.inspiration.sceneHistory')
|
|
178
|
-
}), /*#__PURE__*/jsx("div", {
|
|
179
|
-
className: sceneHistorySwiper,
|
|
180
|
-
children: /*#__PURE__*/jsx(Swiper, {
|
|
181
|
-
modules: [Navigation],
|
|
182
|
-
spaceBetween: 8,
|
|
183
|
-
slidesPerView: "auto",
|
|
184
|
-
navigation: true,
|
|
185
|
-
wrapperClass: "no-swiping",
|
|
186
|
-
resizeObserver: true,
|
|
187
|
-
children: generatedImages.map(function (entry, idx) {
|
|
188
|
-
var _aiState$currentlyVis;
|
|
189
|
-
return /*#__PURE__*/jsx(SwiperSlide, {
|
|
190
|
-
onClick: function onClick() {
|
|
191
|
-
return aiState.useAiGeneratedRoom(entry.key, entry.hash, false, entry.src);
|
|
192
|
-
},
|
|
193
|
-
children: /*#__PURE__*/jsx("div", {
|
|
194
|
-
className: "".concat(sceneThumb, " ").concat(((_aiState$currentlyVis = aiState.currentlyVisibleRoom) === null || _aiState$currentlyVis === void 0 ? void 0 : _aiState$currentlyVis.src) === entry.src ? sceneThumbSelected : ''),
|
|
195
|
-
children: /*#__PURE__*/jsx("img", {
|
|
196
|
-
src: entry.src
|
|
197
|
-
})
|
|
198
|
-
})
|
|
199
|
-
}, "".concat(entry.key, "-").concat(entry.hash, "-").concat(idx));
|
|
200
|
-
})
|
|
201
|
-
})
|
|
202
|
-
})]
|
|
203
|
-
}), /*#__PURE__*/jsx("button", {
|
|
204
|
-
type: "button",
|
|
205
|
-
className: tryVariantLink,
|
|
206
|
-
onClick: function onClick() {
|
|
207
|
-
var firstStep = viewHandler.tabGroupState.firstVisibleConfigStep;
|
|
208
|
-
if (firstStep) viewHandler.navigateToConfigStep(firstStep.key);
|
|
209
|
-
},
|
|
210
|
-
children: t('configurator.inspiration.tryVariant')
|
|
211
|
-
})]
|
|
212
|
-
});
|
|
213
|
-
};
|
|
214
|
-
var StyleConsultant$1 = observer(StyleConsultant);
|
|
215
|
-
|
|
216
|
-
export { StyleConsultant$1 as default };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { s as styleInject, u as useViewHandler } from './index-7a495b04.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import { observer } from 'mobx-react-lite';
|
|
4
|
-
import classnames from 'classnames';
|
|
5
|
-
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
6
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
7
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
8
|
-
import 'react-dynamic-multi-render';
|
|
9
|
-
import '@crystaldesign/diva-core';
|
|
10
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
|
-
import '@babel/runtime/helpers/asyncToGenerator';
|
|
12
|
-
import '@babel/runtime/regenerator';
|
|
13
|
-
import '@babel/runtime/helpers/classCallCheck';
|
|
14
|
-
import '@babel/runtime/helpers/createClass';
|
|
15
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
16
|
-
import '@crystaldesign/diva-utils';
|
|
17
|
-
import 'mobx';
|
|
18
|
-
import '@crystaldesign/web-planner-logic';
|
|
19
|
-
import 'qrcode.react';
|
|
20
|
-
import '@babel/runtime/helpers/typeof';
|
|
21
|
-
import 'flat';
|
|
22
|
-
import 'react-switch';
|
|
23
|
-
import 'react-countup';
|
|
24
|
-
|
|
25
|
-
var styleIndicator = "styleIndicator-7N0ZJ";
|
|
26
|
-
var mobile = "mobile-lyZP8";
|
|
27
|
-
var styleIndicatorImage = "styleIndicatorImage-DRo7q";
|
|
28
|
-
var styleIndicatorLabel = "styleIndicatorLabel-8rCfE";
|
|
29
|
-
var css_248z = ".styleIndicator-7N0ZJ {\n border-radius: 100px !important;\n}\n\n.styleIndicator-7N0ZJ {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 12px 4px 4px;\n background: rgba(255, 255, 255, 0.85);\n box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);\n -webkit-backdrop-filter: blur(6px);\n backdrop-filter: blur(6px);\n list-style: none;\n cursor: default;\n animation: styleIndicatorAppear-JwPL- 0.5s ease-out;\n}\n\n.mobile-lyZP8 {\n padding: 0;\n background: none;\n box-shadow: none;\n -webkit-backdrop-filter: none;\n backdrop-filter: none;\n}\n\n.styleIndicatorImage-DRo7q {\n width: 28px;\n height: 28px;\n border-radius: 50%;\n overflow: hidden;\n flex-shrink: 0;\n border: 1px solid rgba(0, 0, 0, 0.06);\n}\n\n.mobile-lyZP8 .styleIndicatorImage-DRo7q {\n width: 32px;\n height: 32px;\n}\n\n.styleIndicatorImage-DRo7q img {\n width: 100%;\n height: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n}\n\n.styleIndicatorLabel-8rCfE {\n font-size: 12px;\n font-weight: 300;\n color: var(--globalColor);\n white-space: nowrap;\n}\n\n@keyframes styleIndicatorAppear-JwPL- {\n 0% {\n opacity: 0;\n transform: scale(0.85);\n }\n 60% {\n transform: scale(1.05);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n";
|
|
30
|
-
styleInject(css_248z);
|
|
31
|
-
|
|
32
|
-
var StyleIndicator = function StyleIndicator() {
|
|
33
|
-
var _aiState$enrichedAiRo;
|
|
34
|
-
var viewHandler = useViewHandler();
|
|
35
|
-
var aiState = viewHandler.aiState;
|
|
36
|
-
var configuratorStructureHandler = viewHandler.configuratorStructureHandler;
|
|
37
|
-
var step = configuratorStructureHandler.getConfigStepByKey('STYLE_CONSULTANT');
|
|
38
|
-
var selectedStyle = aiState.aiStyleKeyInitializedByEvent ? (_aiState$enrichedAiRo = aiState.enrichedAiRoomRenderings) === null || _aiState$enrichedAiRo === void 0 ? void 0 : _aiState$enrichedAiRo.find(function (r) {
|
|
39
|
-
return r.key === aiState.aiSelectedStyleKey;
|
|
40
|
-
}) : undefined;
|
|
41
|
-
if (!selectedStyle || !step) return /*#__PURE__*/jsx(Fragment, {});
|
|
42
|
-
return /*#__PURE__*/jsxs("li", {
|
|
43
|
-
className: classnames(styleIndicator, viewHandler.getIsInMobileView() && !viewHandler.uiState.isTablet ? mobile : undefined),
|
|
44
|
-
onClick: function onClick() {
|
|
45
|
-
return viewHandler.navigateToConfigStep(step.configStep.key);
|
|
46
|
-
},
|
|
47
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
48
|
-
className: styleIndicatorImage,
|
|
49
|
-
children: /*#__PURE__*/jsx("img", {
|
|
50
|
-
src: selectedStyle.image,
|
|
51
|
-
alt: selectedStyle.name
|
|
52
|
-
})
|
|
53
|
-
}), (!viewHandler.getIsInMobileView() || viewHandler.uiState.isTablet) && /*#__PURE__*/jsx("span", {
|
|
54
|
-
className: styleIndicatorLabel,
|
|
55
|
-
children: selectedStyle.name
|
|
56
|
-
})]
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
var StyleIndicator$1 = observer(StyleIndicator);
|
|
60
|
-
|
|
61
|
-
export { StyleIndicator$1 as default };
|