@crystaldesign/diva-web-planner-react 26.5.0-beta.4 → 26.5.0-beta.40

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.
Files changed (294) hide show
  1. package/build/esm/{Planner2DGrid-2c0ceeb0.js → Planner2DGrid-1cff50b2.js} +1 -1
  2. package/build/esm/{Planner3DImage-9144c26f.js → Planner3DImage-9d9a7568.js} +1 -1
  3. package/build/esm/UnlockCard-c35e6e94.js +205 -0
  4. package/build/esm/{index-b99d64d5.js → index-03e3ed45.js} +73 -73
  5. package/build/esm/{index-2491a713.js → index-048bc1a9.js} +89 -89
  6. package/build/esm/{index-f6259620.js → index-04dac382.js} +2 -2
  7. package/build/esm/{index-e69e8be2.js → index-06c2bb0a.js} +2 -2
  8. package/build/esm/{index-a9560eba.js → index-07a3f2b2.js} +2 -2
  9. package/build/esm/{index-b5ac9dd4.js → index-0809c989.js} +69 -69
  10. package/build/esm/{index-f27c512c.js → index-09e72acd.js} +1 -1
  11. package/build/esm/{index-8c036c70.js → index-0ae144a8.js} +1 -1
  12. package/build/esm/{index-d27a4968.js → index-0badf6bb.js} +1 -1
  13. package/build/esm/{index-886b031a.js → index-0bc7197c.js} +3 -3
  14. package/build/esm/{index-546bb0a3.js → index-0c647fa3.js} +84 -84
  15. package/build/esm/{index-afb9b2ca.js → index-0c69d306.js} +2 -2
  16. package/build/esm/{index-4cc10ba1.js → index-0d93152f.js} +2 -2
  17. package/build/esm/{index-6197964c.js → index-0efc1a83.js} +1 -1
  18. package/build/esm/{index-5386b456.js → index-0f11e170.js} +5 -5
  19. package/build/esm/{index-d8beb961.js → index-0f4d0123.js} +1 -1
  20. package/build/esm/{index-8f0d8f36.js → index-10f7ccb2.js} +3 -3
  21. package/build/esm/{index-7c649945.js → index-1144e0cb.js} +71 -71
  22. package/build/esm/{index-dfd3e059.js → index-116dfc0f.js} +3 -3
  23. package/build/esm/{index-66518c3e.js → index-145071ad.js} +5 -5
  24. package/build/esm/{index-d97139e8.js → index-159eef01.js} +15 -15
  25. package/build/esm/{index-9816d100.js → index-16147c7b.js} +1 -1
  26. package/build/esm/{index-087d21e9.js → index-18a1e6a0.js} +70 -70
  27. package/build/esm/{index-8cfc6016.js → index-1b06988f.js} +1 -1
  28. package/build/esm/{index-a78d98cc.js → index-1c11ad1d.js} +1 -1
  29. package/build/esm/{index-2655f141.js → index-1c2ad039.js} +8 -8
  30. package/build/esm/{index-4e2933c8.js → index-1fa03ec8.js} +4 -4
  31. package/build/esm/{index-01106c57.js → index-209ef448.js} +3 -3
  32. package/build/esm/{index-69e28e87.js → index-20eda7c1.js} +20 -20
  33. package/build/esm/{index-ac45e4d8.js → index-20f5124c.js} +1 -1
  34. package/build/esm/{index-801d8ee2.js → index-2189dc16.js} +1 -1
  35. package/build/esm/{index-a0bd234d.js → index-220afcd1.js} +1 -1
  36. package/build/esm/{index-fd3b6011.js → index-246a8ff3.js} +5 -5
  37. package/build/esm/{index-3284d8b1.js → index-24762a2d.js} +2 -2
  38. package/build/esm/{index-98f03fea.js → index-25c5dbea.js} +1 -1
  39. package/build/esm/{index-c65b99f4.js → index-260f3247.js} +3 -3
  40. package/build/esm/{index-f883880a.js → index-27c57753.js} +21 -21
  41. package/build/esm/{index-b4a09cd0.js → index-28938088.js} +1 -1
  42. package/build/esm/{index-61d21c0a.js → index-2aaddef6.js} +2 -2
  43. package/build/esm/{index-7741200b.js → index-2ca9ac8b.js} +20 -20
  44. package/build/esm/{index-8e6b5d57.js → index-2f561781.js} +2 -2
  45. package/build/esm/{index-c77dfedc.js → index-303ad8ce.js} +5 -5
  46. package/build/esm/{index-185feb74.js → index-30c40b49.js} +1 -1
  47. package/build/esm/{index-9061ab00.js → index-33301eea.js} +76 -76
  48. package/build/esm/{index-5a863528.js → index-34c6bdaa.js} +22 -22
  49. package/build/esm/{index-cb209ba2.js → index-357ca969.js} +2 -2
  50. package/build/esm/{index-43f9adf8.js → index-376934f9.js} +2 -2
  51. package/build/esm/{index-438111e9.js → index-3a16bac8.js} +65 -65
  52. package/build/esm/{index-839f837b.js → index-3b646cb4.js} +66 -66
  53. package/build/esm/{index-85d724d0.js → index-3de77c9b.js} +2 -2
  54. package/build/esm/{index-04d84870.js → index-3f70c39d.js} +1 -1
  55. package/build/esm/{index-06b032d5.js → index-3f8b2a0c.js} +2 -2
  56. package/build/esm/{index-296237c8.js → index-400ec849.js} +1 -1
  57. package/build/esm/{index-b83c1bd7.js → index-407dca69.js} +68 -68
  58. package/build/esm/{index-46b3460b.js → index-42143c53.js} +56 -28
  59. package/build/esm/{index-4fc43ba7.js → index-42482869.js} +3 -3
  60. package/build/esm/{index-21ca6a0d.js → index-44ca960a.js} +70 -70
  61. package/build/esm/{index-ff33e573.js → index-45100406.js} +103 -103
  62. package/build/esm/{index-ab21d29e.js → index-45163972.js} +20 -20
  63. package/build/esm/{index-8de4246c.js → index-460c4b59.js} +19 -19
  64. package/build/esm/{index-9a03a1a0.js → index-47b7938a.js} +1 -1
  65. package/build/esm/{index-cae82cea.js → index-48162377.js} +2 -2
  66. package/build/esm/{index-d83c3992.js → index-49d8b053.js} +1 -1
  67. package/build/esm/{index-7c02270c.js → index-4a67bff2.js} +1 -1
  68. package/build/esm/{index-4ba644a2.js → index-4b3019da.js} +1 -1
  69. package/build/esm/{index-b0b4ab84.js → index-4cf239ef.js} +3 -3
  70. package/build/esm/{index-915c4156.js → index-4db89fdb.js} +25 -25
  71. package/build/esm/{index-52724e7f.js → index-4f9e5584.js} +1 -1
  72. package/build/esm/{index-2eaf035a.js → index-50e6cca8.js} +1 -1
  73. package/build/esm/{index-93cec8b2.js → index-5326b350.js} +1 -1
  74. package/build/esm/{index-f1288a79.js → index-565d8f63.js} +1 -1
  75. package/build/esm/{index-595bef8d.js → index-57768e95.js} +7 -7
  76. package/build/esm/{index-b1ac0d35.js → index-593d4803.js} +1 -1
  77. package/build/esm/{index-91996159.js → index-5a4ff135.js} +3 -3
  78. package/build/esm/{index-1c518ae1.js → index-5d7a678a.js} +1 -1
  79. package/build/esm/{index-fa06f897.js → index-5d966b17.js} +3 -3
  80. package/build/esm/{index-a8c3d1e1.js → index-5da39f46.js} +17 -17
  81. package/build/esm/{index-681a0798.js → index-6122c653.js} +4 -4
  82. package/build/esm/{index-c900d1f9.js → index-619cbdf3.js} +1 -1
  83. package/build/esm/{index-a3048b34.js → index-64582923.js} +4 -4
  84. package/build/esm/{index-4e85ce0f.js → index-64671ad6.js} +1 -1
  85. package/build/esm/{index-9e1d46c9.js → index-650aa5ae.js} +2 -2
  86. package/build/esm/{index-11b3e7da.js → index-67192552.js} +5 -5
  87. package/build/esm/{index-62cc2599.js → index-679a4280.js} +2 -2
  88. package/build/esm/{index-c9e380c6.js → index-68ee789e.js} +1 -1
  89. package/build/esm/{index-4efccdf2.js → index-6981fd18.js} +6 -6
  90. package/build/esm/{index-6f1075f1.js → index-69efdd1c.js} +1 -1
  91. package/build/esm/{index-57409256.js → index-6ad9ffda.js} +19 -19
  92. package/build/esm/{index-0ea8679c.js → index-6b3ef51b.js} +3 -3
  93. package/build/esm/{index-23593530.js → index-6c9cf6a3.js} +3 -3
  94. package/build/esm/{index-f20614f7.js → index-74c5856f.js} +66 -66
  95. package/build/esm/{index-9b538504.js → index-7595aebc.js} +1 -1
  96. package/build/esm/{index-9e5cb781.js → index-77f84657.js} +5 -5
  97. package/build/esm/{index-f158b758.js → index-78ac5baf.js} +3 -3
  98. package/build/esm/{index-0516b1a4.js → index-794ca3ed.js} +3 -3
  99. package/build/esm/{index-aaedcd71.js → index-79b5550e.js} +1 -1
  100. package/build/esm/{index-8c3be754.js → index-7b29c0a5.js} +1 -1
  101. package/build/esm/{index-53b21178.js → index-7bb29d90.js} +1 -1
  102. package/build/esm/{index-e47a7dfc.js → index-7bd7f3d1.js} +90 -90
  103. package/build/esm/{index-25c6143d.js → index-7bf99f03.js} +1 -1
  104. package/build/esm/{index-41969b28.js → index-7e5cbbf7.js} +90 -90
  105. package/build/esm/{index-57f12b2b.js → index-7e66b26c.js} +102 -102
  106. package/build/esm/{index-9a972c55.js → index-7f2912d0.js} +10 -10
  107. package/build/esm/{index-f14387bb.js → index-7f43c60f.js} +1 -1
  108. package/build/esm/{index-a76c51e8.js → index-8064ea78.js} +91 -91
  109. package/build/esm/{index-1133d782.js → index-8080ae17.js} +1 -1
  110. package/build/esm/{index-79e33aba.js → index-818a69d9.js} +1 -1
  111. package/build/esm/{index-6857774f.js → index-84f7ff67.js} +1 -1
  112. package/build/esm/{index-8a31e08f.js → index-8578c954.js} +1 -1
  113. package/build/esm/{index-b630f864.js → index-8670e27e.js} +5 -5
  114. package/build/esm/{index-7fe066bc.js → index-873cf399.js} +1 -1
  115. package/build/esm/{index-054b1c49.js → index-89604d9c.js} +2 -2
  116. package/build/esm/{index-05c4edcb.js → index-89c8658b.js} +19 -19
  117. package/build/esm/index-8a572f76.js +304 -0
  118. package/build/esm/{index-41fbf3af.js → index-8bbe04d1.js} +1 -1
  119. package/build/esm/{index-17a0d152.js → index-8d8afe97.js} +1 -1
  120. package/build/esm/{index-efedeb1f.js → index-8f351cad.js} +1 -1
  121. package/build/esm/{index-2fe552b2.js → index-90a54d7e.js} +1 -1
  122. package/build/esm/{index-7d680794.js → index-934e4d80.js} +1 -1
  123. package/build/esm/{index-a9a26070.js → index-947a870a.js} +3 -3
  124. package/build/esm/{index-cea719c6.js → index-975a74b9.js} +5 -5
  125. package/build/esm/{index-2296a720.js → index-98a49ed0.js} +1 -1
  126. package/build/esm/{index-7b44db4f.js → index-98edd3a9.js} +3 -3
  127. package/build/esm/{index-92b4ba6c.js → index-9926a9fa.js} +2 -2
  128. package/build/esm/{index-53e24191.js → index-99bc2623.js} +2 -2
  129. package/build/esm/{index-36475075.js → index-9bcfc8c7.js} +2 -2
  130. package/build/esm/{index-606e8f78.js → index-9c44a67c.js} +67 -67
  131. package/build/esm/{index-65e3d093.js → index-9d5b747a.js} +5 -5
  132. package/build/esm/{index-00a745dc.js → index-9d6efe78.js} +2 -2
  133. package/build/esm/{index-81bda524.js → index-9d75469c.js} +2 -2
  134. package/build/esm/{index-7fb885d5.js → index-9f9a0c91.js} +2 -2
  135. package/build/esm/{index-7a683a03.js → index-a020b2bf.js} +1 -1
  136. package/build/esm/{index-3c7bdac2.js → index-a05764a4.js} +5 -5
  137. package/build/esm/{index-e69210d3.js → index-a2c4333a.js} +4 -4
  138. package/build/esm/{index-3e626fdf.js → index-a31364af.js} +1 -1
  139. package/build/esm/{index-d1cf9442.js → index-a3b172a2.js} +1 -1
  140. package/build/esm/{index-350fcab0.js → index-a408c596.js} +2 -2
  141. package/build/esm/{index-7ee0ef14.js → index-a47d8213.js} +1 -1
  142. package/build/esm/{index-98a8c79e.js → index-a7d130e1.js} +1 -1
  143. package/build/esm/{index-4fb0315e.js → index-a97038fc.js} +1 -1
  144. package/build/esm/{index-745302ee.js → index-acf35473.js} +1 -1
  145. package/build/esm/{index-3237a8de.js → index-ad254504.js} +1 -1
  146. package/build/esm/{index-4a80ef83.js → index-adaf4f6f.js} +2 -2
  147. package/build/esm/{index-23e05462.js → index-af73caac.js} +2 -2
  148. package/build/esm/{index-9b0fab26.js → index-afe8eb8d.js} +22 -22
  149. package/build/esm/{index-1a1144c1.js → index-b0f50d41.js} +1 -1
  150. package/build/esm/{index-529c67c3.js → index-b148499f.js} +1 -1
  151. package/build/esm/{index-1198bdc0.js → index-b1e0d5b2.js} +1 -1
  152. package/build/esm/{index-9eee8b12.js → index-b242987d.js} +1 -1
  153. package/build/esm/{index-ffa0132c.js → index-b32e5866.js} +1 -1
  154. package/build/esm/{index-a55aef7c.js → index-b4686191.js} +1 -1
  155. package/build/esm/{index-0f1fcea0.js → index-b62b9a27.js} +1 -1
  156. package/build/esm/index-b66d7429.js +96 -0
  157. package/build/esm/{index-64cce079.js → index-b6afe7f4.js} +1 -1
  158. package/build/esm/{index-37e1c5fd.js → index-b74562a8.js} +2 -2
  159. package/build/esm/{index-de4f2487.js → index-ba57147a.js} +1 -1
  160. package/build/esm/{index-a81cae1f.js → index-bc0bb702.js} +1 -1
  161. package/build/esm/{index-2f662326.js → index-bc164b29.js} +1 -1
  162. package/build/esm/{index-74fa8b6c.js → index-be8796e7.js} +1 -1
  163. package/build/esm/{index-ddaf035f.js → index-bfedf676.js} +5 -5
  164. package/build/esm/{index-ed6de348.js → index-c0415065.js} +5 -5
  165. package/build/esm/{index-f3d112e1.js → index-c0ebb2b2.js} +1 -1
  166. package/build/esm/{index-fb597f63.js → index-c29ee7ea.js} +73 -73
  167. package/build/esm/{index-a90eca27.js → index-c2d26c6c.js} +1 -1
  168. package/build/esm/{index-c2948898.js → index-c301fd1a.js} +68 -68
  169. package/build/esm/{index-2744d60b.js → index-c3218ee7.js} +2 -2
  170. package/build/esm/{index-96f20095.js → index-c346ff03.js} +1 -1
  171. package/build/esm/{index-fc3830f4.js → index-c3af4894.js} +1 -1
  172. package/build/esm/{index-72efdb02.js → index-c4be3aab.js} +65 -65
  173. package/build/esm/{index-1f5d7d2b.js → index-c6364abe.js} +1 -1
  174. package/build/esm/{index-2f1ec53e.js → index-c6a1ebd1.js} +1 -1
  175. package/build/esm/{index-f1594f46.js → index-c6aa255d.js} +6 -6
  176. package/build/esm/{index-6e142003.js → index-c6b5409b.js} +8 -8
  177. package/build/esm/{index-753e578b.js → index-c6ed7856.js} +1 -1
  178. package/build/esm/{index-d69bc776.js → index-c7b54e6d.js} +1 -1
  179. package/build/esm/{index-78c30d63.js → index-c823d66f.js} +5 -5
  180. package/build/esm/{index-1aa170f7.js → index-c9569c56.js} +1 -1
  181. package/build/esm/{index-211217c7.js → index-ca7be908.js} +4 -4
  182. package/build/esm/{index-a7e70159.js → index-cb77dd65.js} +1 -1
  183. package/build/esm/{index-fabe67b6.js → index-cc0b0c44.js} +1 -1
  184. package/build/esm/{index-40cf1ca2.js → index-ccc35dd3.js} +2 -2
  185. package/build/esm/{index-df8d5298.js → index-cd576bb2.js} +1 -1
  186. package/build/esm/{index-7bef288c.js → index-cf136eaa.js} +1 -1
  187. package/build/esm/{index-fb4ea3c3.js → index-cf7ec58e.js} +2 -2
  188. package/build/esm/{index-b23b8890.js → index-d32327a1.js} +3 -3
  189. package/build/esm/{index-3669574d.js → index-d4bf3c54.js} +2 -2
  190. package/build/esm/{index-4b7357d5.js → index-d5908bc3.js} +3 -3
  191. package/build/esm/{index-1361ec87.js → index-d5c16c30.js} +2 -2
  192. package/build/esm/{index-7b941005.js → index-d5c6f833.js} +1 -1
  193. package/build/esm/{index-eae71f1a.js → index-d6087d3a.js} +1 -1
  194. package/build/esm/{index-e87d9974.js → index-d67b5aa2.js} +1 -1
  195. package/build/esm/{index-8d0b85c1.js → index-d6d991c0.js} +1 -1
  196. package/build/esm/{index-672ea04a.js → index-d77c3226.js} +1 -1
  197. package/build/esm/{index-60e59034.js → index-d9bf683b.js} +1 -1
  198. package/build/esm/{index-61a5fb85.js → index-d9d0dc36.js} +1 -1
  199. package/build/esm/{index-4dc2ffe8.js → index-e06c7810.js} +1044 -576
  200. package/build/esm/index-e20b821b.js +72 -0
  201. package/build/esm/{index-a92bab60.js → index-e2689021.js} +1 -1
  202. package/build/esm/{index-9ec2575d.js → index-e2d2ebe2.js} +1 -1
  203. package/build/esm/{index-b40bacfe.js → index-e3e5f751.js} +1 -1
  204. package/build/esm/{index-f393e324.js → index-e42df8c1.js} +2 -2
  205. package/build/esm/{index-3b1b3539.js → index-e4430645.js} +1 -1
  206. package/build/esm/{index-9cd6820c.js → index-e6068b69.js} +1 -1
  207. package/build/esm/{index-0ee09835.js → index-e6ad8f91.js} +2 -2
  208. package/build/esm/{index-0e47c63c.js → index-e762d0a9.js} +1 -1
  209. package/build/esm/{index-ff65b3c7.js → index-e90adb8e.js} +1 -1
  210. package/build/esm/{index-3e00a147.js → index-eb14337f.js} +3 -3
  211. package/build/esm/{index-30ef43d4.js → index-eb2a25e5.js} +1 -1
  212. package/build/esm/{index-0d245742.js → index-ebe21a71.js} +89 -89
  213. package/build/esm/{index-5e8706e9.js → index-ec0bd3c9.js} +1 -1
  214. package/build/esm/{index-8e598ac6.js → index-ecaf8f5f.js} +87 -87
  215. package/build/esm/{index-f89f1bb5.js → index-ed33e6cd.js} +3 -3
  216. package/build/esm/{index-f40c43ba.js → index-f012cf0d.js} +1 -1
  217. package/build/esm/{index-f4d95517.js → index-f05a46d0.js} +1 -1
  218. package/build/esm/{index-187d6e33.js → index-f23da432.js} +1 -1
  219. package/build/esm/{index-2337f733.js → index-f38621d7.js} +1 -1
  220. package/build/esm/{index-e19ac221.js → index-f450a476.js} +1 -1
  221. package/build/esm/{index-5be60ddf.js → index-fc74ae2c.js} +4 -4
  222. package/build/esm/{index-24cc916b.js → index-fe134a59.js} +1 -1
  223. package/build/esm/{index-1cc7410c.js → index-fede29f7.js} +3 -3
  224. package/build/esm/{index-795c0fbe.js → index-ff383429.js} +1 -1
  225. package/build/esm/{index-167c00d4.js → index-ffbc155e.js} +1 -1
  226. package/build/esm/index.js +1 -1
  227. package/build/esm/{index.module-dcbfa4a7.js → index.module-0a229c27.js} +1 -1
  228. package/build/esm/{index.module-6743da68.js → index.module-4de2730d.js} +1 -1
  229. package/build/esm/{index.module-79870477.js → index.module-4fe30b30.js} +1 -1
  230. package/build/esm/{index.module-5b205f7f.js → index.module-82a99f62.js} +1 -1
  231. package/build/esm/{index.module-e7cef57b.js → index.module-9cc253f3.js} +1 -1
  232. package/build/esm/{index.module-a0eb99ed.js → index.module-ab3909de.js} +1 -1
  233. package/build/esm/{index.module-16a900be.js → index.module-ab74f403.js} +1 -1
  234. package/build/esm/{index.module-be53d4bf.js → index.module-b93b193b.js} +2 -2
  235. package/build/esm/{index.module-6f4ddb2a.js → index.module-e1111cf1.js} +1 -1
  236. package/build/esm/{useCustomDimensions-79bea366.js → useCustomDimensions-bfa26f17.js} +1 -1
  237. package/build/esm/{ussIsSticky-c40d1d3b.js → ussIsSticky-2ef48633.js} +1 -1
  238. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/CreateAppointment/index.d.ts.map +1 -1
  239. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Header/index.d.ts.map +1 -1
  240. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/ConfiguratorQuitModal.d.ts +14 -0
  241. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/ConfiguratorQuitModal.d.ts.map +1 -0
  242. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/openPlannerQuitModal.d.ts +5 -0
  243. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/openPlannerQuitModal.d.ts.map +1 -0
  244. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/quitModalFlow.d.ts +7 -0
  245. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/QuitModal/quitModalFlow.d.ts.map +1 -0
  246. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Save/index.d.ts +1 -1
  247. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Save/index.d.ts.map +1 -1
  248. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Share/LoadingButton/index.d.ts +3 -2
  249. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Share/LoadingButton/index.d.ts.map +1 -1
  250. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Share/ShareViaEmail/index.d.ts.map +1 -1
  251. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/Share/ShareViaUrl/index.d.ts.map +1 -1
  252. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/handleMail.d.ts +4 -0
  253. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/handleMail.d.ts.map +1 -0
  254. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/index.d.ts +2 -2
  255. package/build/types/web-planner-react/src/components/GlobalElements/Checkout/index.d.ts.map +1 -1
  256. package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerAIRoom/index.d.ts.map +1 -1
  257. package/build/types/web-planner-react/src/components/Product/ProductHeader/Functions/StyleIndicator/index.d.ts.map +1 -1
  258. package/build/types/web-planner-react/src/components/Settings/SettingsScroller/SettingsItem/ItemPalette/StyleConsultant/index.d.ts.map +1 -1
  259. package/build/types/web-planner-react/src/model/DivaViewHandler.d.ts.map +1 -1
  260. package/build/types/web-planner-react/src/model/States/UIState/AI/index.d.ts +5 -1
  261. package/build/types/web-planner-react/src/model/States/UIState/AI/index.d.ts.map +1 -1
  262. package/build/types/web-planner-react/src/model/States/UIState/Settings/index.d.ts +0 -4
  263. package/build/types/web-planner-react/src/model/States/UIState/Settings/index.d.ts.map +1 -1
  264. package/build/types/web-planner-react/src/model/States/UIState/Tabgroups/index.d.ts.map +1 -1
  265. package/build/types/web-planner-react/src/model/States/UIState/index.d.ts +1 -1
  266. package/build/types/web-planner-react/src/model/States/UIState/index.d.ts.map +1 -1
  267. package/build/umd/1451.diva-web-planner-react.umd.min.js +1 -1
  268. package/build/umd/176.diva-web-planner-react.umd.min.js +1 -1
  269. package/build/umd/2359.diva-web-planner-react.umd.min.js +1 -1
  270. package/build/umd/2591.diva-web-planner-react.umd.min.js +1 -1
  271. package/build/umd/3134.diva-web-planner-react.umd.min.js +1 -1
  272. package/build/umd/3543.diva-web-planner-react.umd.min.js +1 -1
  273. package/build/umd/419.diva-web-planner-react.umd.min.js +1 -1
  274. package/build/umd/4729.diva-web-planner-react.umd.min.js +1 -1
  275. package/build/umd/4874.diva-web-planner-react.umd.min.js +1 -1
  276. package/build/umd/4982.diva-web-planner-react.umd.min.js +1 -1
  277. package/build/umd/509.diva-web-planner-react.umd.min.js +1 -1
  278. package/build/umd/5343.diva-web-planner-react.umd.min.js +1 -1
  279. package/build/umd/5974.diva-web-planner-react.umd.min.js +1 -1
  280. package/build/umd/6822.diva-web-planner-react.umd.min.js +1 -1
  281. package/build/umd/7692.diva-web-planner-react.umd.min.js +1 -1
  282. package/build/umd/8410.diva-web-planner-react.umd.min.js +1 -1
  283. package/build/umd/8515.diva-web-planner-react.umd.min.js +1 -1
  284. package/build/umd/8539.diva-web-planner-react.umd.min.js +1 -1
  285. package/build/umd/9354.diva-web-planner-react.umd.min.js +1 -1
  286. package/build/umd/9638.diva-web-planner-react.umd.min.js +1 -1
  287. package/build/umd/9715.diva-web-planner-react.umd.min.js +1 -1
  288. package/build/umd/diva-web-planner-react.umd.min.js +1 -1
  289. package/build/umd/report.html +1 -1
  290. package/package.json +8 -8
  291. package/build/esm/UnlockCard-efefccbf.js +0 -191
  292. package/build/esm/index-3f3646bd.js +0 -96
  293. package/build/esm/index-fa44ac21.js +0 -61
  294. package/build/esm/index-feb7dd9e.js +0 -216
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-web-planner-react",
3
- "version": "26.5.0-beta.4",
3
+ "version": "26.5.0-beta.40",
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.4",
16
- "@crystaldesign/product-detail-page": "26.5.0-beta.4",
17
- "@crystaldesign/products-component": "26.5.0-beta.4",
18
- "@crystaldesign/real-time-viewer": "26.5.0-beta.4",
19
- "@crystaldesign/web-planner-logic": "26.5.0-beta.4",
20
- "@crystaldesign/widget-contact-form": "26.5.0-beta.4",
15
+ "@crystaldesign/content-item": "26.5.0-beta.40",
16
+ "@crystaldesign/product-detail-page": "26.5.0-beta.40",
17
+ "@crystaldesign/products-component": "26.5.0-beta.40",
18
+ "@crystaldesign/real-time-viewer": "26.5.0-beta.40",
19
+ "@crystaldesign/web-planner-logic": "26.5.0-beta.40",
20
+ "@crystaldesign/widget-contact-form": "26.5.0-beta.40",
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": "1edbabc8333b7a88c5dc7da70347e557325ab721"
66
+ "gitHead": "c6311f72589fb3c9a3b65a28117116a391569605"
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-4dc2ffe8.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: 14px;\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,96 +0,0 @@
1
- import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
2
- import { s as styleInject, u as useViewHandler } from './index-4dc2ffe8.js';
3
- import { observer } from 'mobx-react-lite';
4
- import { useState } from 'react';
5
- import { Swiper, SwiperSlide } from 'swiper/react';
6
- import { Navigation, Grid } from 'swiper/modules';
7
- import RoomItem from './index-3e00a147.js';
8
- import classnames from 'classnames';
9
- import InfoBanner from './index-96f20095.js';
10
- import UploadItem from './index-43f9adf8.js';
11
- import CustomInput from './index-24cc916b.js';
12
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
13
- import '@babel/runtime/helpers/defineProperty';
14
- import 'react-dynamic-multi-render';
15
- import '@crystaldesign/diva-core';
16
- import '@babel/runtime/helpers/objectWithoutProperties';
17
- import '@babel/runtime/helpers/asyncToGenerator';
18
- import '@babel/runtime/regenerator';
19
- import '@babel/runtime/helpers/classCallCheck';
20
- import '@babel/runtime/helpers/createClass';
21
- import '@babel/runtime/helpers/toConsumableArray';
22
- import '@crystaldesign/diva-utils';
23
- import 'mobx';
24
- import '@crystaldesign/web-planner-logic';
25
- import 'qrcode.react';
26
- import '@babel/runtime/helpers/typeof';
27
- import 'flat';
28
- import 'react-switch';
29
- import 'react-countup';
30
- import './index.module-dcbfa4a7.js';
31
- import './index-745302ee.js';
32
- import '@babel/runtime/helpers/objectDestructuringEmpty';
33
-
34
- var roomGallery = "room-gallery-6uX3f";
35
- var roomFilter = "room-filter--61x0";
36
- var roomFilterSwiper = "room-filter-swiper-sgtL0";
37
- var css_248z = ".room-gallery-6uX3f {\n display: flex;\n flex-direction: column;\n gap: 8px;\n margin-top: 16px;\n justify-content: center;\n align-items: center;\n background: linear-gradient(to right, #b7cbdc, #e9eff3);\n padding: 16px;\n border-radius: 12px;\n border: 1px solid #e0e0e0;\n}\n\n.room-filter--61x0.room-filter-swiper-sgtL0 {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin: 4px;\n}\n\n/*grid css*/\n\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-grid > .swiper-wrapper {\n flex-wrap: wrap;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-grid-column > .swiper-wrapper {\n flex-wrap: wrap;\n flex-direction: column;\n max-height: 198px;\n height: -moz-fit-content;\n height: fit-content;\n}\n\n/*swiper min css*/\n\n@font-face {\n font-family: swiper-icons;\n src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');\n font-weight: 400;\n font-style: normal;\n}\n\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper {\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 0;\n z-index: 1;\n width: 100%;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-vertical.swiper {\n width: 100%;\n}\n\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-vertical > .swiper-wrapper {\n flex-direction: column;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n align-items: center;\n transition-property: transform;\n box-sizing: content-box;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-android .swiper-slide,\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-wrapper {\n transform: translate3d(0px, 0, 0);\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-pointer-events {\n touch-action: pan-y;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-pointer-events.swiper-vertical {\n touch-action: pan-x;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-slide {\n flex-shrink: 0;\n height: 100%;\n position: relative;\n transition-property: transform;\n}\n\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-vertical .swiper-slide {\n height: auto;\n}\n\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-slide-invisible-blank {\n visibility: hidden;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-autoheight,\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-autoheight .swiper-slide {\n height: auto;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-autoheight .swiper-wrapper {\n align-items: flex-start;\n transition-property: transform, height;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-backface-hidden .swiper-slide {\n transform: translateZ(0);\n backface-visibility: hidden;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-horizontal.swiper-css-mode > .swiper-wrapper {\n scroll-snap-type: x mandatory;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-vertical.swiper-css-mode > .swiper-wrapper {\n scroll-snap-type: y mandatory;\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-centered > .swiper-wrapper::before {\n content: '';\n flex-shrink: 0;\n order: 9999;\n}\n[dir=\"ltr\"] .room-filter--61x0.room-filter-swiper-sgtL0 .swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-left: var(--swiper-centered-offset-before);\n}\n[dir=\"rtl\"] .room-filter--61x0.room-filter-swiper-sgtL0 .swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-right: var(--swiper-centered-offset-before);\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-centered.swiper-horizontal > .swiper-wrapper::before {\n height: 100%;\n min-height: 1px;\n width: var(--swiper-centered-offset-after);\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {\n margin-top: var(--swiper-centered-offset-before);\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-centered.swiper-vertical > .swiper-wrapper::before {\n width: 100%;\n min-width: 1px;\n height: var(--swiper-centered-offset-after);\n}\n.room-filter--61x0.room-filter-swiper-sgtL0 .swiper-centered > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: center center;\n}\n";
38
- styleInject(css_248z);
39
-
40
- var RoomGallery = function RoomGallery(_ref) {
41
- var roomItems = _ref.roomItems,
42
- selectedRoom = _ref.selectedRoom;
43
- var _useState = useState(null),
44
- _useState2 = _slicedToArray(_useState, 2),
45
- swiperRef = _useState2[0],
46
- setSwiperRef = _useState2[1];
47
- var viewHandler = useViewHandler();
48
- var navigateToOnClick = function navigateToOnClick(index) {
49
- swiperRef === null || swiperRef === void 0 || swiperRef.slideTo(index);
50
- };
51
- var timeframeLimitReachedOverOneDay = viewHandler.aiState.isTimeframeLimitReached && viewHandler.aiState.isTimeframeLimitReached !== 'daily';
52
- return /*#__PURE__*/jsxs("div", {
53
- className: roomGallery,
54
- children: [/*#__PURE__*/jsx(InfoBanner, {}), !timeframeLimitReachedOverOneDay && /*#__PURE__*/jsxs(Fragment, {
55
- children: [/*#__PURE__*/jsx("div", {
56
- className: classnames(roomFilterSwiper, roomFilter),
57
- children: /*#__PURE__*/jsx(Swiper, {
58
- onSwiper: setSwiperRef,
59
- resizeObserver: true,
60
- modules: [Navigation, Grid],
61
- spaceBetween: viewHandler.uiState.isInMobileView ? 4 : 8,
62
- scrollbar: true,
63
- slideToClickedSlide: true,
64
- wrapperClass: "no-swiping",
65
- slidesPerView: 3,
66
- style: {
67
- marginTop: '16px'
68
- },
69
- grid: {
70
- rows: 2
71
- },
72
- children: roomItems.map(function (e, index) {
73
- return /*#__PURE__*/jsx(SwiperSlide, {
74
- onClick: function onClick(e) {
75
- var clickRow = (index - index % 2) / 2;
76
- var rowToNavigateTo = clickRow - 1;
77
- navigateToOnClick(rowToNavigateTo >= 0 ? rowToNavigateTo : 0);
78
- e.stopPropagation();
79
- },
80
- children: e.uploadItem ? /*#__PURE__*/jsx(UploadItem, {
81
- item: e
82
- }, e.key) : /*#__PURE__*/jsx(RoomItem, {
83
- item: e
84
- }, e.key)
85
- }, index);
86
- })
87
- })
88
- }), /*#__PURE__*/jsx(CustomInput, {
89
- selectedRoom: selectedRoom
90
- })]
91
- })]
92
- });
93
- };
94
- var RoomGallery$1 = observer(RoomGallery);
95
-
96
- export { RoomGallery$1 as default };
@@ -1,61 +0,0 @@
1
- import { s as styleInject, u as useViewHandler } from './index-4dc2ffe8.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 };
@@ -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-4dc2ffe8.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-efefccbf.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 };