@crystaldesign/diva-web-planner-react 25.7.0-beta.3 → 25.7.0-beta.5

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 (263) hide show
  1. package/build/esm/{ArticleProperties-b7ea9915.js → ArticleProperties-61c0f567.js} +1 -1
  2. package/build/esm/{CatalogProperties-6e7ca74d.js → CatalogProperties-5f5916b4.js} +1 -1
  3. package/build/esm/{DecisionVizualizer-17926e8c.js → DecisionVizualizer-cd1807eb.js} +3 -3
  4. package/build/esm/{IconHandler-bee78647.js → IconHandler-2d1e9e75.js} +1 -1
  5. package/build/esm/{OptionProperties-9a3a2546.js → OptionProperties-f35df5d1.js} +1 -1
  6. package/build/esm/{OptionValueProperties-02718d1c.js → OptionValueProperties-0178be6e.js} +1 -1
  7. package/build/esm/{Planner2DGrid-6af69c47.js → Planner2DGrid-9c91b43c.js} +1 -1
  8. package/build/esm/{Planner3DImage-efcd80ed.js → Planner3DImage-6b613d9a.js} +1 -1
  9. package/build/esm/{index-adfb50c1.js → index-011b223f.js} +2 -2
  10. package/build/esm/{index-37d0747e.js → index-03977f62.js} +1 -1
  11. package/build/esm/{index-43a72b6f.js → index-03e26563.js} +17 -17
  12. package/build/esm/{index-9583a2cc.js → index-06e6c8ff.js} +49 -49
  13. package/build/esm/{index-18d63d40.js → index-08c4e090.js} +1 -1
  14. package/build/esm/{index-67e478a8.js → index-08e669d0.js} +64 -64
  15. package/build/esm/{index-1dc5c7cc.js → index-0a60f4d9.js} +1 -1
  16. package/build/esm/{index-0d8752c0.js → index-0b035747.js} +1 -1
  17. package/build/esm/{index-ee10d185.js → index-0cf5fd26.js} +1 -1
  18. package/build/esm/{index-1a5048b6.js → index-0d78f170.js} +1 -1
  19. package/build/esm/{index-dd8d6b22.js → index-0d9e3725.js} +44 -44
  20. package/build/esm/{index-fd4e9f46.js → index-0eeeac4d.js} +1 -1
  21. package/build/esm/{index-e87209c2.js → index-11a1185f.js} +9 -9
  22. package/build/esm/{index-058c0dd8.js → index-12c07978.js} +1 -1
  23. package/build/esm/{index-065ce04e.js → index-13634eb2.js} +5 -5
  24. package/build/esm/{index-2de8cebf.js → index-1623f598.js} +2 -2
  25. package/build/esm/{index-b1732c81.js → index-16af9a18.js} +1 -1
  26. package/build/esm/{index-beb9e5fd.js → index-1a4ebae9.js} +1 -1
  27. package/build/esm/{index-d3410a3b.js → index-1a9d20cb.js} +5 -5
  28. package/build/esm/{index-1bfde383.js → index-1b4f6e2e.js} +3 -3
  29. package/build/esm/{index-f6b945a4.js → index-1c676007.js} +78 -78
  30. package/build/esm/{index-ff63bb1a.js → index-1ce4b3cc.js} +236 -236
  31. package/build/esm/{index-7f537a46.js → index-1da3fbe5.js} +1 -1
  32. package/build/esm/{index-28f9c342.js → index-1e87e75d.js} +5 -5
  33. package/build/esm/{index-c96b51c6.js → index-1f9af9cb.js} +1 -1
  34. package/build/esm/{index-c6a4d1be.js → index-1fb023ea.js} +1 -1
  35. package/build/esm/{index-2ebd97b2.js → index-22f8b19d.js} +2 -2
  36. package/build/esm/{index-7fdcfafb.js → index-24d99d23.js} +1 -1
  37. package/build/esm/{index-41aea822.js → index-25ba6027.js} +2 -2
  38. package/build/esm/{index-645c6dac.js → index-26eee892.js} +1 -1
  39. package/build/esm/{index-8640015d.js → index-2896e433.js} +2 -2
  40. package/build/esm/{index-202da70e.js → index-2bedbc0f.js} +1 -1
  41. package/build/esm/{index-3c65836d.js → index-2c94c2ea.js} +1 -1
  42. package/build/esm/{index-44c5400e.js → index-2d05efb6.js} +1 -1
  43. package/build/esm/{index-5be22c92.js → index-2d22a3a1.js} +2 -2
  44. package/build/esm/{index-4ebade9b.js → index-2ed7d34d.js} +19 -19
  45. package/build/esm/{index-a447212b.js → index-2fae1ecb.js} +3 -3
  46. package/build/esm/{index-93495363.js → index-30441e4a.js} +1 -1
  47. package/build/esm/{index-4d72180f.js → index-3177399a.js} +21 -21
  48. package/build/esm/{index-49050e5e.js → index-3223015c.js} +1 -1
  49. package/build/esm/{index-5775d580.js → index-3267c001.js} +1 -1
  50. package/build/esm/{index-97db2d3f.js → index-32f2e517.js} +5 -5
  51. package/build/esm/{index-bfb6f2d5.js → index-33048aaf.js} +1 -1
  52. package/build/esm/{index-8193df83.js → index-346009c6.js} +1 -1
  53. package/build/esm/{index-e3b2c07f.js → index-35a8b2a9.js} +50 -50
  54. package/build/esm/{index-6e738a8d.js → index-35e4930e.js} +8 -8
  55. package/build/esm/{index-27bed3f1.js → index-3aa3514f.js} +2 -2
  56. package/build/esm/{index-b7c30035.js → index-3b6dc775.js} +1 -1
  57. package/build/esm/{index-ed0bcaed.js → index-3b9fc000.js} +9 -9
  58. package/build/esm/{index-d89e8bc2.js → index-3bf74a54.js} +1 -1
  59. package/build/esm/{index-0d068b7a.js → index-3c144058.js} +1 -1
  60. package/build/esm/{index-dbd6aa8a.js → index-3da73dff.js} +4 -4
  61. package/build/esm/{index-137c9b29.js → index-3dc16cec.js} +1 -1
  62. package/build/esm/{index-3442442a.js → index-3ddbb547.js} +1 -1
  63. package/build/esm/{index-fad89ca3.js → index-3e442d7c.js} +2 -2
  64. package/build/esm/{index-b016c08a.js → index-3eea9ab8.js} +101 -101
  65. package/build/esm/{index-89326dc3.js → index-3fd42ea2.js} +1 -1
  66. package/build/esm/{index-2ad43f54.js → index-4023d8a5.js} +1 -1
  67. package/build/esm/{index-2de5904e.js → index-4033b58a.js} +2 -2
  68. package/build/esm/{index-deb4b98c.js → index-4268a493.js} +1 -1
  69. package/build/esm/{index-312955c0.js → index-4383cd77.js} +65 -65
  70. package/build/esm/{index-442e579d.js → index-43e110a2.js} +1 -1
  71. package/build/esm/{index-eb32a926.js → index-4461e1d8.js} +6 -6
  72. package/build/esm/{index-93a10e50.js → index-467fcb77.js} +20 -20
  73. package/build/esm/{index-bf5c3f16.js → index-479e552b.js} +1 -1
  74. package/build/esm/{index-debaeb81.js → index-48de9a76.js} +2 -2
  75. package/build/esm/{index-46a984d1.js → index-48f6cf43.js} +5 -5
  76. package/build/esm/{index-9587b1fa.js → index-494271dc.js} +43 -43
  77. package/build/esm/{index-b9f314fe.js → index-4d8fcb8f.js} +1 -1
  78. package/build/esm/{index-39ea5e08.js → index-4f01e1df.js} +7 -7
  79. package/build/esm/{index-ca30f7c6.js → index-4f0f9326.js} +3 -3
  80. package/build/esm/{index-76405796.js → index-4f2ab421.js} +58 -58
  81. package/build/esm/{index-5fc7fdb9.js → index-504b65a5.js} +4 -4
  82. package/build/esm/{index-d246cb47.js → index-514098da.js} +3 -3
  83. package/build/esm/{index-250c374e.js → index-54eb127e.js} +1 -1
  84. package/build/esm/{index-d06fefe6.js → index-5664efa3.js} +1 -1
  85. package/build/esm/{index-5d21f231.js → index-59170dfa.js} +1 -1
  86. package/build/esm/{index-49d1055e.js → index-59f0bf63.js} +2 -2
  87. package/build/esm/{index-196639f7.js → index-5be1ab1f.js} +1 -1
  88. package/build/esm/{index-8e1eb5c0.js → index-5e93e1ea.js} +1 -1
  89. package/build/esm/{index-ca7780d3.js → index-5e9a9094.js} +1 -1
  90. package/build/esm/{index-57ec6df5.js → index-5fc63a46.js} +13 -13
  91. package/build/esm/{index-250da920.js → index-602c9cde.js} +1 -1
  92. package/build/esm/{index-7d19db2c.js → index-611175a2.js} +1 -1
  93. package/build/esm/{index-74dfd6c0.js → index-64b14b51.js} +2 -2
  94. package/build/esm/{index-2f80ef80.js → index-6512c45c.js} +1 -1
  95. package/build/esm/{index-1df92a2d.js → index-651c7ae8.js} +1 -1
  96. package/build/esm/{index-57649d99.js → index-66329f3c.js} +7 -7
  97. package/build/esm/{index-a95df504.js → index-667b4996.js} +1 -1
  98. package/build/esm/{index-d410cac6.js → index-6809defd.js} +1 -1
  99. package/build/esm/{index-8fb6c7af.js → index-688fba3f.js} +4 -4
  100. package/build/esm/{index-59658bdd.js → index-6a3ac0e2.js} +3 -3
  101. package/build/esm/{index-c9982bd3.js → index-6b574978.js} +3 -3
  102. package/build/esm/{index-22657203.js → index-6dbe9007.js} +62 -62
  103. package/build/esm/{index-4a6d8694.js → index-6debc845.js} +1 -1
  104. package/build/esm/{index-9674e279.js → index-706d5c64.js} +1 -1
  105. package/build/esm/{index-1128263a.js → index-7168a7e9.js} +15 -15
  106. package/build/esm/{index-ec3e384c.js → index-71e71fcd.js} +1 -1
  107. package/build/esm/{index-573fb986.js → index-72f8e9bb.js} +2 -2
  108. package/build/esm/{index-4bcc9fb5.js → index-73381b90.js} +1 -1
  109. package/build/esm/{index-7c9bda18.js → index-747d4145.js} +20 -20
  110. package/build/esm/{index-3369d518.js → index-767e3c3a.js} +1 -1
  111. package/build/esm/{index-70f20315.js → index-77bcf079.js} +4 -4
  112. package/build/esm/{index-d41c8283.js → index-78db4a9b.js} +5 -5
  113. package/build/esm/{index-b37d305f.js → index-78f42b30.js} +2 -2
  114. package/build/esm/{index-e2f18ad8.js → index-7ade8f36.js} +2 -2
  115. package/build/esm/{index-f448c72f.js → index-7b086fa6.js} +1 -1
  116. package/build/esm/{index-9adbba4a.js → index-7c2a0896.js} +4 -4
  117. package/build/esm/{index-9780f736.js → index-7dfbd36d.js} +1 -1
  118. package/build/esm/{index-e68364ed.js → index-7eac4834.js} +1 -1
  119. package/build/esm/{index-f3c929f7.js → index-7fb7c2b1.js} +1 -1
  120. package/build/esm/{index-c7ab2a21.js → index-834fd2ca.js} +6 -6
  121. package/build/esm/{index-b06d95d9.js → index-8365a710.js} +1 -1
  122. package/build/esm/{index-5043a912.js → index-836907b5.js} +5 -5
  123. package/build/esm/{index-c0b946dc.js → index-84154446.js} +1 -1
  124. package/build/esm/{index-bace0ec3.js → index-864e9b17.js} +1 -1
  125. package/build/esm/{index-4622978c.js → index-88d38b5b.js} +2 -2
  126. package/build/esm/{index-ba0922ee.js → index-8c66c190.js} +1 -1
  127. package/build/esm/{index-61fb9949.js → index-8f106468.js} +1 -1
  128. package/build/esm/{index-cfdb0d16.js → index-90503726.js} +1 -1
  129. package/build/esm/{index-fe08bb4a.js → index-93a207a5.js} +6 -6
  130. package/build/esm/{index-52eb4c15.js → index-95f1e271.js} +2 -2
  131. package/build/esm/{index-6ce8e155.js → index-98bd4fdd.js} +2 -2
  132. package/build/esm/{index-c7762345.js → index-98dce2b2.js} +1 -1
  133. package/build/esm/{index-47a13cc1.js → index-9932ec46.js} +1 -1
  134. package/build/esm/{index-4e0f80e6.js → index-99dc0ad3.js} +5 -5
  135. package/build/esm/{index-60c30492.js → index-9bbf0f41.js} +1 -1
  136. package/build/esm/{index-556c02a6.js → index-9c362b3f.js} +1 -1
  137. package/build/esm/{index-398f6daf.js → index-9c9a5ff1.js} +3 -3
  138. package/build/esm/{index-32a3ce59.js → index-9cc46bb0.js} +2 -2
  139. package/build/esm/{index-5a6480c5.js → index-9cc7ef50.js} +1 -1
  140. package/build/esm/{index-f3cfa1bb.js → index-9d29ff0b.js} +3 -3
  141. package/build/esm/{index-5d10686c.js → index-9e178392.js} +1 -1
  142. package/build/esm/{index-b44177b7.js → index-9e406c0a.js} +6 -6
  143. package/build/esm/{index-9d8aa332.js → index-a171da12.js} +5 -5
  144. package/build/esm/{index-dcafa922.js → index-a1cca4ec.js} +1 -1
  145. package/build/esm/{index-eef444ed.js → index-a22bde7e.js} +4 -4
  146. package/build/esm/{index-c3146e43.js → index-a3ea867f.js} +1 -1
  147. package/build/esm/{index-57956b95.js → index-a45e8827.js} +1 -1
  148. package/build/esm/{index-6cb6be8a.js → index-a50c873e.js} +2 -2
  149. package/build/esm/{index-d52cc82d.js → index-a5656e1d.js} +3 -3
  150. package/build/esm/{index-c2f95b94.js → index-a5711d1d.js} +1 -1
  151. package/build/esm/{index-cec700ce.js → index-a6448d76.js} +2 -2
  152. package/build/esm/{index-7524523c.js → index-a683674b.js} +18 -18
  153. package/build/esm/{index-5fb08d6d.js → index-a6c8cd65.js} +1 -1
  154. package/build/esm/{index-27ffd353.js → index-a7425b83.js} +1 -1
  155. package/build/esm/{index-7075be49.js → index-a8e5089d.js} +1 -1
  156. package/build/esm/{index-d2d69bf9.js → index-ab96ab43.js} +3 -3
  157. package/build/esm/{index-42f088af.js → index-aed9c71a.js} +105 -105
  158. package/build/esm/{index-03c6a6f9.js → index-b0caddd0.js} +1 -1
  159. package/build/esm/{index-74e4420f.js → index-b109740c.js} +1 -1
  160. package/build/esm/{index-e8d92223.js → index-b2e5f918.js} +2 -2
  161. package/build/esm/{index-0af9df8d.js → index-b44ebe7c.js} +1 -1
  162. package/build/esm/{index-d56f662d.js → index-b49477a9.js} +1 -1
  163. package/build/esm/{index-bde55505.js → index-b5a8eaff.js} +4 -4
  164. package/build/esm/{index-cf312665.js → index-b5eaf9fc.js} +1 -1
  165. package/build/esm/{index-378af6ed.js → index-b6377210.js} +1 -1
  166. package/build/esm/{index-f3deb3b5.js → index-b741a469.js} +2 -2
  167. package/build/esm/{index-a457886a.js → index-b7430f3e.js} +5 -5
  168. package/build/esm/{index-0b1e8d30.js → index-b8d308fe.js} +48 -48
  169. package/build/esm/{index-4293c69c.js → index-b8efdcbc.js} +3 -3
  170. package/build/esm/{index-12ca351e.js → index-b92f1714.js} +1 -1
  171. package/build/esm/{index-ef10c67d.js → index-b9337d2e.js} +1 -1
  172. package/build/esm/{index-f8ab5f6e.js → index-bb4e3250.js} +46 -46
  173. package/build/esm/{index-4831e232.js → index-bc93c23d.js} +1 -1
  174. package/build/esm/{index-840fbba4.js → index-bd622728.js} +24 -24
  175. package/build/esm/{index-8fc2e974.js → index-be57ed57.js} +3 -3
  176. package/build/esm/{index-d410ac7a.js → index-beae16a0.js} +4 -4
  177. package/build/esm/{index-4b780f8f.js → index-bf58fcd0.js} +1 -1
  178. package/build/esm/{index-3b33bb3d.js → index-bf7adc3c.js} +2 -2
  179. package/build/esm/{index-7d9546bb.js → index-c084cedd.js} +3 -3
  180. package/build/esm/{index-5d21c9fd.js → index-c1f2fb8b.js} +6 -6
  181. package/build/esm/{index-10898d75.js → index-c228317f.js} +3 -3
  182. package/build/esm/{index-822fa737.js → index-c321ecac.js} +2 -2
  183. package/build/esm/{index-e2b45892.js → index-c381b1d3.js} +62 -62
  184. package/build/esm/{index-367cb344.js → index-c6892ccc.js} +3 -3
  185. package/build/esm/{index-5dc53560.js → index-c8aa7acd.js} +1 -1
  186. package/build/esm/{index-34be7a7d.js → index-cac3a5a4.js} +4 -4
  187. package/build/esm/{index-e0ce1a65.js → index-cb1c5014.js} +1 -1
  188. package/build/esm/{index-bbdcdeb7.js → index-cb23838c.js} +1 -1
  189. package/build/esm/{index-9c013cb4.js → index-cb4121b1.js} +1 -1
  190. package/build/esm/{index-72b1a5e0.js → index-cda059eb.js} +2 -2
  191. package/build/esm/{index-3eb8e401.js → index-cdc0a624.js} +2 -2
  192. package/build/esm/{index-5fa626ac.js → index-ce41caf0.js} +21 -21
  193. package/build/esm/{index-0ee9860e.js → index-ce5c6d3e.js} +1 -1
  194. package/build/esm/{index-516f553d.js → index-cf5d5bb6.js} +2 -2
  195. package/build/esm/{index-b0a7d93b.js → index-cfa36482.js} +6 -6
  196. package/build/esm/{index-aba1e587.js → index-d08f8ddb.js} +3 -3
  197. package/build/esm/{index-81fb1a0b.js → index-d58f675e.js} +1 -1
  198. package/build/esm/{index-76fa20e8.js → index-d823eb5f.js} +2 -2
  199. package/build/esm/{index-2e06ffee.js → index-d90f0be2.js} +1 -1
  200. package/build/esm/{index-79ce7ad9.js → index-d9691816.js} +5 -5
  201. package/build/esm/{index-9efb7d07.js → index-dacbf50d.js} +6 -6
  202. package/build/esm/{index-6dd6145c.js → index-dc52f7e0.js} +1 -1
  203. package/build/esm/{index-027e1caf.js → index-defb19e3.js} +79 -79
  204. package/build/esm/{index-9712d651.js → index-dfa42edc.js} +2 -2
  205. package/build/esm/{index-a99d5d90.js → index-dff3e86d.js} +1 -1
  206. package/build/esm/{index-2d48c089.js → index-e2e518dd.js} +2 -2
  207. package/build/esm/{index-73c6bba4.js → index-e30e6b8d.js} +20 -20
  208. package/build/esm/{index-f21921d2.js → index-e437e7a7.js} +1 -1
  209. package/build/esm/{index-f09847a7.js → index-e5f6ac0f.js} +45 -45
  210. package/build/esm/{index-eb054657.js → index-e6b8d5d5.js} +6 -6
  211. package/build/esm/{index-d6e21ae4.js → index-e6bebad6.js} +1 -1
  212. package/build/esm/{index-58ce477d.js → index-e7b0a07f.js} +3 -3
  213. package/build/esm/{index-afbd8f89.js → index-e86f30cb.js} +1 -1
  214. package/build/esm/{index-bf3cea20.js → index-e9005a7a.js} +7 -7
  215. package/build/esm/{index-171248e5.js → index-eab36d23.js} +43 -43
  216. package/build/esm/{index-e8d892ab.js → index-eb4f9209.js} +1 -1
  217. package/build/esm/{index-057c3858.js → index-eb50a397.js} +3 -3
  218. package/build/esm/{index-6355a56f.js → index-ec5ce478.js} +1 -1
  219. package/build/esm/{index-d103b90c.js → index-ed0a6e5d.js} +2 -2
  220. package/build/esm/{index-ef4d7c77.js → index-ee94f87a.js} +3 -3
  221. package/build/esm/{index-be07fe68.js → index-ef36ac79.js} +1 -1
  222. package/build/esm/{index-3e64fd27.js → index-f17595da.js} +1 -1
  223. package/build/esm/{index-7090c19a.js → index-f2044118.js} +1 -1
  224. package/build/esm/{index-07cebc38.js → index-f2da13bb.js} +9 -9
  225. package/build/esm/{index-536de631.js → index-f2de89e7.js} +4 -4
  226. package/build/esm/{index-8b7dc949.js → index-f41ff9a3.js} +42 -42
  227. package/build/esm/{index-99a1a43a.js → index-f4420e63.js} +4 -4
  228. package/build/esm/{index-c0e69905.js → index-f450e39c.js} +2 -2
  229. package/build/esm/{index-d7e3b706.js → index-f689eabb.js} +9 -9
  230. package/build/esm/{index-2c488d7e.js → index-f7e4d411.js} +3 -3
  231. package/build/esm/{index-0bfbfe1b.js → index-f989c4f2.js} +1 -1
  232. package/build/esm/{index-1bd75a77.js → index-f9ed62fb.js} +5 -5
  233. package/build/esm/{index-cb0f6a8c.js → index-fa41bfbb.js} +1 -1
  234. package/build/esm/{index-1f4b3b8d.js → index-fa68b670.js} +1 -1
  235. package/build/esm/{index-705fb477.js → index-fa7b375a.js} +1 -1
  236. package/build/esm/{index-442d3953.js → index-fc09d111.js} +3 -3
  237. package/build/esm/{index-289cc2af.js → index-fcad23d7.js} +2 -2
  238. package/build/esm/{index-32530130.js → index-fe8429d1.js} +1 -1
  239. package/build/esm/index.js +1 -1
  240. package/build/esm/{index.module-5f7ae981.js → index.module-0bf052b5.js} +1 -1
  241. package/build/esm/{index.module-b5380649.js → index.module-0eace41e.js} +1 -1
  242. package/build/esm/{index.module-903d51c9.js → index.module-1c27d7cd.js} +1 -1
  243. package/build/esm/{index.module-a2e1da10.js → index.module-2a0314b0.js} +1 -1
  244. package/build/esm/{index.module-1653b161.js → index.module-376c5233.js} +1 -1
  245. package/build/esm/{index.module-4bd7b0b4.js → index.module-439f2158.js} +1 -1
  246. package/build/esm/{index.module-d239ad58.js → index.module-46b11533.js} +1 -1
  247. package/build/esm/{index.module-af8c7a4e.js → index.module-5c8d492f.js} +1 -1
  248. package/build/esm/{index.module-7985ae8a.js → index.module-76bbbc32.js} +1 -1
  249. package/build/esm/{index.module-b442ca52.js → index.module-a8b74e7e.js} +1 -1
  250. package/build/esm/{index.module-72ec5db4.js → index.module-b3e7d49c.js} +1 -1
  251. package/build/esm/{index.module-1a32fcd2.js → index.module-c7ef3642.js} +1 -1
  252. package/build/esm/{index.module-4a6b2e2a.js → index.module-f73baa0e.js} +1 -1
  253. package/build/esm/{react-json-viewer-b0e5efc6.js → react-json-viewer-b8601dca.js} +1 -1
  254. package/build/types/web-planner-react/src/components/Product/Product/catalog/Components/DecisionAnalyzer/DecisionVizualizer.d.ts.map +1 -1
  255. package/build/umd/304.diva-web-planner-react.umd.min.js +1 -1
  256. package/build/umd/3222.diva-web-planner-react.umd.min.js +1 -1
  257. package/build/umd/658.diva-web-planner-react.umd.min.js +1 -1
  258. package/build/umd/7078.diva-web-planner-react.umd.min.js +1 -1
  259. package/build/umd/9603.diva-web-planner-react.umd.min.js +1 -1
  260. package/build/umd/9874.diva-web-planner-react.umd.min.js +1 -1
  261. package/build/umd/diva-web-planner-react.umd.min.js +1 -1
  262. package/build/umd/report.html +1 -1
  263. package/package.json +8 -8
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 304.diva-web-planner-react.umd.min.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[304,997,3222,8291],{59165:(e,n,t)=>{t.d(n,{_l:()=>l,gc:()=>JsonView});var o=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:i,lastElement:r,openBracket:l,closeBracket:a,level:s,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p}=e;const x=(0,o.useRef)(!1),[f,m,g]=function useBool(e){const[n,t]=(0,o.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>c(s,t,n))),b=(0,o.useRef)(null);(0,o.useEffect)((()=>{x.current?g(c(s,t,n)):x.current=!0}),[c]);const h=f?d.collapseIcon:d.expandIcon,N=f?"collapse JSON":"expand JSON",v=(0,o.useId)(),j=s+1,y=i.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let o=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){o=e;break}if(o<0)return;const i=(o+n+t.length)%t.length;t[o].tabIndex=-1,t[i].tabIndex=0,t[i].focus()}},onClick=()=>{var e;m();const n=b.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,o.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":f,"aria-selected":void 0},(0,o.createElement)("span",{className:h,onClick,onKeyDown,role:"button","aria-label":N,"aria-expanded":f,"aria-controls":f?v:void 0,ref:b,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,o.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,o.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,o.createElement)("span",{className:d.punctuation},l),f?(0,o.createElement)("ul",{id:v,role:"group"},i.map(((e,n)=>(0,o.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===y,level:j,shouldExpandNode:c,clickToExpandNode:u,outerRef:p})))):(0,o.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,o.createElement)("span",{className:d.punctuation},a),!r&&(0,o.createElement)("span",{className:d.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:i,lastElement:r,style:l}=e;return(0,o.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,o.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,o.createElement)("span",{className:l.punctuation},t),(0,o.createElement)("span",{className:l.punctuation},i),!r&&(0,o.createElement)("span",{className:l.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:o,lastElement:i,shouldExpandNode:r,clickToExpandNode:l,level:a,outerRef:s}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:a,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:r,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s})}function JsonArray(e){let{field:n,value:t,style:o,lastElement:i,level:r,shouldExpandNode:l,clickToExpandNode:a,outerRef:s}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:r,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:l,clickToExpandNode:a,data:t.map((e=>[void 0,e])),outerRef:s})}function JsonPrimitiveValue(e){let n,{field:t,value:i,style:r,lastElement:l}=e,a=r.otherValue;var s;return null===i?(n="null",a=r.nullValue):void 0===i?(n="undefined",a=r.undefinedValue):"string"==typeof(s=i)||s instanceof String?(n=quoteString(i,!r.noQuotesForStringValues),a=r.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(i)?(n=i?"true":"false",a=r.booleanValue):(e=>"number"==typeof e||e instanceof Number)(i)?(n=i.toString(),a=r.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(i)?(n=`${i.toString()}n`,a=r.numberValue):n=isDate(i)?i.toISOString():i.toString(),(0,o.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,o.createElement)("span",{className:r.label},quoteString(t,r.quotesForFieldNames),":"),(0,o.createElement)("span",{className:a},n),!l&&(0,o.createElement)("span",{className:r.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,o.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,o.createElement)(JsonObject,Object.assign({},e)):(0,o.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var i="_2bkNM";const r={container:"_2IvMF _GzYRV",basicChildStyle:i,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},l={container:"_11RoI _GzYRV",basicChildStyle:i,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=r,shouldExpandNode:i=allExpanded,clickToExpandNode:l=!1,...a}=e;const s=(0,o.useRef)(null);return(0,o.createElement)("div",Object.assign({"aria-label":"JSON view"},a,{className:t.container,ref:s,role:"tree"}),(0,o.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:l,outerRef:s}))}},20997:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var o=t(34988),i=t(91923),r=(t(87363),t(71393)),l=t(93379),a=t.n(l),s=t(7795),d=t.n(s),c=t(90569),u=t.n(c),p=t(3565),x=t.n(p),f=t(19216),m=t.n(f),g=t(44589),b=t.n(g),h=t(73751),N={};N.styleTagTransform=b(),N.setAttributes=x(),N.insert=u().bind(null,"head"),N.domAPI=d(),N.insertStyleElement=m();a()(h.Z,N);h.Z&&h.Z.locals&&h.Z.locals;var v=t(47514);const j=function ArticleSelector(e){var n,t=(0,o.Z)(e.articleState,2),l=t[0],a=t[1],s=(0,i.NP)(),d=Object.values(null!==(n=s.divaWebPlanner.getDivaArticles(void 0,!0))&&void 0!==n?n:{}),c=d.map((function(e){return{value:e.basketId,label:e.name+" "+e.posNr}}));return 1==c.length||0==c.length?(0,v.jsx)(v.Fragment,{}):(0,v.jsx)(r.ZP,{value:c.find((function(e){return e.value===(null==l?void 0:l.basketId)})),options:c,onChange:function onChange(e){a(d.find((function(n){return n.basketId==e.value})))},className:h.Y})}},13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var o=t(34988),i=t(87363),r=t(36115),l=t(59165),a=t(65515),s=t.n(a),d=t(22976),c=t.n(d),u=t(47514);const p=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,a=e.matchingOptions,d=void 0===a?{}:a,p=e.anyData,x=e.onClose,f=(0,i.useRef)(null),m=(0,i.useState)(),g=(0,o.Z)(m,2),b=g[0],h=g[1],N=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,i.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[o],i=t.after[o];e[o]={after:i,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!i.visibleOPVs.includes(e)}))}};for(var o in t.before)n();h(e)}else h(void 0)}),[t]);var v=function isExpanded(e,n,t){var o=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(b&&o&&b[o]&&JSON.stringify(b[o].before)!==JSON.stringify(b[o].after))};if(void 0!==n.priceFeatureGroupNo){var j,y,D=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:r.ii,ref:f,children:[(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["PriceFeatureGroup #",D.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("div",{children:[N(D.catalogId,"Catalog ID"),N(D._id,"priceFeatureGroup ID"),N(null===(j=D.priceFeatureGroupText)||void 0===j?void 0:j.DE,"priceFeatureGroupText"),N(D.percentageSurcharges,"percentageSurcharges"),N(D.isPercentage,"isPercentage"),N(D.comment,"comment"),N(D.featureNos,"Feature References"),N(D.additionalPrice,"Additional Price"),N(D.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(y=D.finishes)||void 0===y?void 0:y.map((function(e){return(0,u.jsxs)("tr",{className:s()(e.sequence===D.activeCombination?r.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",D.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!b&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:v,data:b,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}if(void 0!==n.Number){var _=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:f,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",N(_.Number,"Number")]}),N(_.Type,"Type"),N(_.Prio,"Priority"),N(_.Options,"Options"),N(_.enabled?"Yes":"No","Enabled"),N(_.Number,"Decision Number"),N(_.activeCombination,"Active Combination Index"),N(_.disableHistory,"Disabled History"),_.DOC&&_.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),_.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[N(n,"doc Index"),N(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:N(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[N(e.Type,"Action Type"),N(e.FeatureRef,"Feature Ref"),N(e.OptionCodex,"OptionCodex"),N(e.OptionRef,"OptionRef"),N(e.OptionRefCodex,"OptionRefCodex"),N(e.OptionValueRefCodex,"OptionValueRefCodex"),N(e.DecisionNr,"DecisionNr")]},n)}))})]}),N(e.ValidOptionValues,"Valid Option Values"),N(e.ValidOptions,"Valid Options")]},n)}))]}),N(_.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",_.DOC&&_.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!b&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:v,data:b,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}var O,S=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:f,className:r.ii,children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["Decision #",S.decisionNo]}),(0,u.jsxs)("div",{children:[N(S.catalogId,"Catalog ID"),N(S._id,"Decision ID"),N(S.prio,"Priority"),N(S.decisionType,"Decision Type"),N(S.enabled?"Enabled":"Disabled","Status"),N(S.deleted?"Yes":"No","Deleted"),N(S.featureRefs,"Feature References"),N(S.disableHistory,"Disable History"),N(S.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(O=S.optionCombinations)||void 0===O?void 0:O.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!b&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:v,data:b,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}},304:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var o=t(12952),i=t(80248),r=t(84658),l=t(34988),a=t(88291),s=t(50747),d=t.n(s),c=t(87363),u=t(51203),p=t(36115),x=t(91923),f=t(9420),m=t(65515),g=t.n(m),b=t(88683),h=(t(76839),t(13222)),N=t(20997),v=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const j=(0,f.Pi)((function DecisionAnalyzer(e){var n,t=Object.assign({},((0,a.Z)(e),e)),i=(0,x.NP)(),s=i.divaWebPlanner.getDivaArticles(),f=(0,c.useState)(!1),m=(0,l.Z)(f,2),j=m[0],y=m[1];(0,c.useEffect)((function(){var e=function(){var e=(0,r.Z)(d().mark((function _callee(){return d().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.DivaUtils.Sleep(1e3);case 2:y(!j);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[i.tabGroupState.allTabGroups]),(0,c.useEffect)((function(){var e=i.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=i.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[i.uiState.isLoading]);var D=(0,c.useState)(Object.values(null!=s?s:{}).find((function(e){return 1==e.posNr}))),_=(0,l.Z)(D,2),O=_[0],S=_[1],w=(0,c.useState)(),k=(0,l.Z)(w,2),E=k[0],A=k[1],C=(0,c.useState)(),T=(0,l.Z)(C,2),M=T[0],z=T[1];if(!O)return(0,v.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,v.jsx)("a",{className:p.Fs,children:"Decision analyzer - plann article"}),(0,v.jsx)(N.default,{articleState:[O,S]})]}));var I=O.CatalogData.isIDMFormat,F=null===(n=O.decisionDebugStacks)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.stack)||void 0===n?void 0:n.length;if(!F)return(0,v.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,v.jsx)("a",{className:p.Fs,children:"Decision analyzer - change config"}),(0,v.jsx)(N.default,{articleState:[O,S]})]}));var Q=(0,o.Z)(Array(F).keys()),R=[];return R=I?O.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n,t;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===M||!(null!==(n=e.decision.featureRefs)&&void 0!==n&&n.includes(M)||null!==(t=e.decision.optionCombinations)&&void 0!==t&&t.find((function(e){var n;return null===(n=e.actions)||void 0===n?void 0:n.find((function(e){return function parseAction(e){try{var n,t,o=e.split(":"),i=(0,l.Z)(o,2),r=i[0],a=i[1].split("="),s=(0,l.Z)(a,2),d=s[0],c=s[1];if(c){var u=c.split("#"),p=(0,l.Z)(u,2);n=p[0],t=p[1]}return{actionType:r,target:d,ref:n,value:t}}catch(e){throw e}}(e).target==M||e==M}))}))))})}))})):O.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n,t;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===M||!(null!==(n=e.decision.DOC)&&void 0!==n&&n.find((function(e){var n,t;return(null===(n=e.DA)||void 0===n?void 0:n.find((function(e){return e.OptionCodex==M||e.DecisionNr==M})))||(null===(t=e.JsFormula)||void 0===t?void 0:t.includes("'OPT"+M+"'"))}))||null!==(t=e.decision.Options)&&void 0!==t&&t.includes("OPT"+M)))})}))})),(0,v.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm,i.uiState.configSettingsIsExpanded?u.NF:void 0),style:{zIndex:800},children:[(0,v.jsxs)("a",{className:p.Fs,children:["Decision history",(0,v.jsx)("input",{value:M,onChange:function onChange(e){return z(e.target.value)},placeholder:"filter option ohne OPT",className:p.hX})]}),(0,v.jsx)(N.default,{articleState:[O,S]}),(0,v.jsxs)("table",{className:p.Kz,children:[(0,v.jsx)("thead",{children:(0,v.jsx)("tr",{className:p.$Q,children:R.map((function(e,n){return(0,v.jsx)("th",{children:n},n)}))})}),(0,v.jsx)("tbody",{children:Q.map((function(e,n){return(0,v.jsx)("tr",{className:p.$Q,children:R.map((function(e,t){var o,i;return(0,v.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t,o;e==((null==E||null===(t=E.decision)||void 0===t?void 0:t.Number)||(null==E||null===(o=E.decision)||void 0===o?void 0:o.decisionNo))?A(void 0):A(n)}(e[n].nr,e[n])},children:e[n].bold?(0,v.jsx)("strong",{children:null===(o=e[n])||void 0===o?void 0:o.text}):null===(i=e[n])||void 0===i?void 0:i.text},t)}))},n)}))})]}),E&&(0,v.jsx)("div",{className:p.EC,children:(0,v.jsx)(h.default,{decision:E.decision,snapshots:E.snapshots,onClose:function onClose(){return A(void 0)}})})]}))}))},73751:(e,n,t)=>{t.d(n,{Y:()=>a,Z:()=>s});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--_Tl9c {\n width: 200px;\n font-size: 12px;\n}\n.index-module--_Tl9c div {\n border-color: grey !important;\n}\n.index-module--_Tl9c div {\n box-shadow: none;\n box-shadow: initial;\n}\n",""]);var a="index-module--_Tl9c";const s=l},33981:(e,n,t)=>{t.d(n,{$Q:()=>x,EC:()=>N,Fs:()=>h,Kz:()=>p,Se:()=>f,UF:()=>g,ZP:()=>_,ao:()=>D,dY:()=>y,fm:()=>b,hX:()=>m,ii:()=>v,uR:()=>j});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r),a=t(61667),s=t.n(a),d=new URL(t(76380),t.b),c=l()(i()),u=s()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n left: 500px;\n z-index: 100000;\n width: calc(100vw - 500px);\n pointer-events: none;\n height: calc(100vh - 60px);\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var p="index-module--sS9Y_",x="index-module--O5GJU",f="index-module--xNfvC",m="index-module--oALcg",g="index-module--HpoCh",b="index-module--bBk4P",h="index-module--sBWMs",N="index-module--XrXfq",v="index-module--uzZoJ",j="index-module--wrmAf",y="index-module--GsJQn",D="index-module--gf_Q8";const _=c},89965:(e,n,t)=>{t.d(n,{NF:()=>s,ZP:()=>c,ec:()=>a,pb:()=>d});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var a="index-module--NA4Nc",s="index-module--zxgl3",d="index-module--WGNyK";const c=l},72035:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const a=l},36115:(e,n,t)=>{t.d(n,{$Q:()=>m.$Q,EC:()=>m.EC,Fs:()=>m.Fs,Kz:()=>m.Kz,Se:()=>m.Se,UF:()=>m.UF,ao:()=>m.ao,dY:()=>m.dY,fm:()=>m.fm,hX:()=>m.hX,ii:()=>m.ii,uR:()=>m.uR});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),f=t.n(x),m=t(33981),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(m.ZP,g),m.ZP&&m.ZP.locals&&m.ZP.locals},51203:(e,n,t)=>{t.d(n,{NF:()=>m.NF,ec:()=>m.ec,pb:()=>m.pb});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),f=t.n(x),m=t(89965),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(m.ZP,g),m.ZP&&m.ZP.locals&&m.ZP.locals},76839:(e,n,t)=>{var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),f=t.n(x),m=t(72035),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},76380:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMzUzNTUgMC42NDY0NDdDMS4xNTgyOSAwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAwLjY0NjQ0NyAwLjY0NjQ0N0MwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAxLjE1ODI5IDAuNjQ2NDQ3IDEuMzUzNTVMMS4zNTM1NSAwLjY0NjQ0N1pNOC42NDY0NSA5LjM1MzU1QzguODQxNzEgOS41NDg4MiA5LjE1ODI5IDkuNTQ4ODIgOS4zNTM1NSA5LjM1MzU1QzkuNTQ4ODIgOS4xNTgyOSA5LjU0ODgyIDguODQxNzEgOS4zNTM1NSA4LjY0NjQ1TDguNjQ2NDUgOS4zNTM1NVpNOS4zNTM1NSAxLjM1MzU1QzkuNTQ4ODIgMS4xNTgyOSA5LjU0ODgyIDAuODQxNzA5IDkuMzUzNTUgMC42NDY0NDdDOS4xNTgyOSAwLjQ1MTE4NCA4Ljg0MTcxIDAuNDUxMTg0IDguNjQ2NDUgMC42NDY0NDdMOS4zNTM1NSAxLjM1MzU1Wk0wLjY0NjQ0NyA4LjY0NjQ1QzAuNDUxMTg1IDguODQxNzEgMC40NTExODUgOS4xNTgyOSAwLjY0NjQ0NyA5LjM1MzU1QzAuODQxNzA5IDkuNTQ4ODEgMS4xNTgyOSA5LjU0ODgxIDEuMzUzNTUgOS4zNTM1NUwwLjY0NjQ0NyA4LjY0NjQ1Wk0wLjY0NjQ0NyAxLjM1MzU1TDguNjQ2NDUgOS4zNTM1NUw5LjM1MzU1IDguNjQ2NDVMMS4zNTM1NSAwLjY0NjQ0N0wwLjY0NjQ0NyAxLjM1MzU1Wk04LjY0NjQ1IDAuNjQ2NDQ3TDAuNjQ2NDQ3IDguNjQ2NDVMMS4zNTM1NSA5LjM1MzU1TDkuMzUzNTUgMS4zNTM1NUw4LjY0NjQ1IDAuNjQ2NDQ3WiIgZmlsbD0iIzRGNEY0RiIvPgo8L3N2Zz4K"},88291:(e,n,t)=>{function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
2
+ "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[304,997,3222,8291],{59165:(e,n,t)=>{t.d(n,{_l:()=>l,gc:()=>JsonView});var o=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:i,lastElement:r,openBracket:l,closeBracket:a,level:s,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p}=e;const x=(0,o.useRef)(!1),[f,m,g]=function useBool(e){const[n,t]=(0,o.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>c(s,t,n))),b=(0,o.useRef)(null);(0,o.useEffect)((()=>{x.current?g(c(s,t,n)):x.current=!0}),[c]);const h=f?d.collapseIcon:d.expandIcon,N=f?"collapse JSON":"expand JSON",v=(0,o.useId)(),j=s+1,y=i.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let o=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){o=e;break}if(o<0)return;const i=(o+n+t.length)%t.length;t[o].tabIndex=-1,t[i].tabIndex=0,t[i].focus()}},onClick=()=>{var e;m();const n=b.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,o.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":f,"aria-selected":void 0},(0,o.createElement)("span",{className:h,onClick,onKeyDown,role:"button","aria-label":N,"aria-expanded":f,"aria-controls":f?v:void 0,ref:b,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,o.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,o.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,o.createElement)("span",{className:d.punctuation},l),f?(0,o.createElement)("ul",{id:v,role:"group"},i.map(((e,n)=>(0,o.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===y,level:j,shouldExpandNode:c,clickToExpandNode:u,outerRef:p})))):(0,o.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,o.createElement)("span",{className:d.punctuation},a),!r&&(0,o.createElement)("span",{className:d.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:i,lastElement:r,style:l}=e;return(0,o.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,o.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,o.createElement)("span",{className:l.punctuation},t),(0,o.createElement)("span",{className:l.punctuation},i),!r&&(0,o.createElement)("span",{className:l.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:o,lastElement:i,shouldExpandNode:r,clickToExpandNode:l,level:a,outerRef:s}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:a,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:r,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s})}function JsonArray(e){let{field:n,value:t,style:o,lastElement:i,level:r,shouldExpandNode:l,clickToExpandNode:a,outerRef:s}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:r,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:l,clickToExpandNode:a,data:t.map((e=>[void 0,e])),outerRef:s})}function JsonPrimitiveValue(e){let n,{field:t,value:i,style:r,lastElement:l}=e,a=r.otherValue;var s;return null===i?(n="null",a=r.nullValue):void 0===i?(n="undefined",a=r.undefinedValue):"string"==typeof(s=i)||s instanceof String?(n=quoteString(i,!r.noQuotesForStringValues),a=r.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(i)?(n=i?"true":"false",a=r.booleanValue):(e=>"number"==typeof e||e instanceof Number)(i)?(n=i.toString(),a=r.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(i)?(n=`${i.toString()}n`,a=r.numberValue):n=isDate(i)?i.toISOString():i.toString(),(0,o.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,o.createElement)("span",{className:r.label},quoteString(t,r.quotesForFieldNames),":"),(0,o.createElement)("span",{className:a},n),!l&&(0,o.createElement)("span",{className:r.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,o.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,o.createElement)(JsonObject,Object.assign({},e)):(0,o.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var i="_2bkNM";const r={container:"_2IvMF _GzYRV",basicChildStyle:i,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},l={container:"_11RoI _GzYRV",basicChildStyle:i,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=r,shouldExpandNode:i=allExpanded,clickToExpandNode:l=!1,...a}=e;const s=(0,o.useRef)(null);return(0,o.createElement)("div",Object.assign({"aria-label":"JSON view"},a,{className:t.container,ref:s,role:"tree"}),(0,o.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:l,outerRef:s}))}},20997:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var o=t(34988),i=t(91923),r=(t(87363),t(71393)),l=t(93379),a=t.n(l),s=t(7795),d=t.n(s),c=t(90569),u=t.n(c),p=t(3565),x=t.n(p),f=t(19216),m=t.n(f),g=t(44589),b=t.n(g),h=t(73751),N={};N.styleTagTransform=b(),N.setAttributes=x(),N.insert=u().bind(null,"head"),N.domAPI=d(),N.insertStyleElement=m();a()(h.Z,N);h.Z&&h.Z.locals&&h.Z.locals;var v=t(47514);const j=function ArticleSelector(e){var n,t=(0,o.Z)(e.articleState,2),l=t[0],a=t[1],s=(0,i.NP)(),d=Object.values(null!==(n=s.divaWebPlanner.getDivaArticles(void 0,!0))&&void 0!==n?n:{}),c=d.map((function(e){return{value:e.basketId,label:e.name+" "+e.posNr}}));return 1==c.length||0==c.length?(0,v.jsx)(v.Fragment,{}):(0,v.jsx)(r.ZP,{value:c.find((function(e){return e.value===(null==l?void 0:l.basketId)})),options:c,onChange:function onChange(e){a(d.find((function(n){return n.basketId==e.value})))},className:h.Y})}},13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var o=t(34988),i=t(87363),r=t(36115),l=t(59165),a=t(65515),s=t.n(a),d=t(22976),c=t.n(d),u=t(47514);const p=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,a=e.matchingOptions,d=void 0===a?{}:a,p=e.anyData,x=e.onClose,f=(0,i.useRef)(null),m=(0,i.useState)(),g=(0,o.Z)(m,2),b=g[0],h=g[1],N=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,i.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[o],i=t.after[o];e[o]={after:i,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!i.visibleOPVs.includes(e)}))}};for(var o in t.before)n();h(e)}else h(void 0)}),[t]);var v=function isExpanded(e,n,t){var o=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(b&&o&&b[o]&&JSON.stringify(b[o].before)!==JSON.stringify(b[o].after))};if(void 0!==n.priceFeatureGroupNo){var j,y,D=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:r.ii,ref:f,children:[(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["PriceFeatureGroup #",D.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("div",{children:[N(D.catalogId,"Catalog ID"),N(D._id,"priceFeatureGroup ID"),N(null===(j=D.priceFeatureGroupText)||void 0===j?void 0:j.DE,"priceFeatureGroupText"),N(D.percentageSurcharges,"percentageSurcharges"),N(D.isPercentage,"isPercentage"),N(D.comment,"comment"),N(D.featureNos,"Feature References"),N(D.additionalPrice,"Additional Price"),N(D.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(y=D.finishes)||void 0===y?void 0:y.map((function(e){return(0,u.jsxs)("tr",{className:s()(e.sequence===D.activeCombination?r.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",D.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!b&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:v,data:b,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}if(void 0!==n.Number){var _=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:f,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",N(_.Number,"Number")]}),N(_.Type,"Type"),N(_.Prio,"Priority"),N(_.Options,"Options"),N(_.enabled?"Yes":"No","Enabled"),N(_.Number,"Decision Number"),N(_.activeCombination,"Active Combination Index"),N(_.disableHistory,"Disabled History"),_.DOC&&_.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),_.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[N(n,"doc Index"),N(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:N(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[N(e.Type,"Action Type"),N(e.FeatureRef,"Feature Ref"),N(e.OptionCodex,"OptionCodex"),N(e.OptionRef,"OptionRef"),N(e.OptionRefCodex,"OptionRefCodex"),N(e.OptionValueRefCodex,"OptionValueRefCodex"),N(e.DecisionNr,"DecisionNr")]},n)}))})]}),N(e.ValidOptionValues,"Valid Option Values"),N(e.RefLevel,"RefLevel"),N(e.ValidOptions,"Valid Options")]},n)}))]}),N(_.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",_.DOC&&_.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!b&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:v,data:b,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}var O,S=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:f,className:r.ii,children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["Decision #",S.decisionNo]}),(0,u.jsxs)("div",{children:[N(S.catalogId,"Catalog ID"),N(S._id,"Decision ID"),N(S.prio,"Priority"),N(S.decisionType,"Decision Type"),N(S.enabled?"Enabled":"Disabled","Status"),N(S.deleted?"Yes":"No","Deleted"),N(S.featureRefs,"Feature References"),N(S.disableHistory,"Disable History"),N(S.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(O=S.optionCombinations)||void 0===O?void 0:O.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!b&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:v,data:b,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}},304:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var o=t(12952),i=t(80248),r=t(84658),l=t(34988),a=t(88291),s=t(50747),d=t.n(s),c=t(87363),u=t(51203),p=t(36115),x=t(91923),f=t(9420),m=t(65515),g=t.n(m),b=t(88683),h=(t(76839),t(13222)),N=t(20997),v=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const j=(0,f.Pi)((function DecisionAnalyzer(e){var n,t=Object.assign({},((0,a.Z)(e),e)),i=(0,x.NP)(),s=i.divaWebPlanner.getDivaArticles(),f=(0,c.useState)(!1),m=(0,l.Z)(f,2),j=m[0],y=m[1];(0,c.useEffect)((function(){var e=function(){var e=(0,r.Z)(d().mark((function _callee(){return d().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b.DivaUtils.Sleep(1e3);case 2:y(!j);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[i.tabGroupState.allTabGroups]),(0,c.useEffect)((function(){var e=i.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=i.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[i.uiState.isLoading]);var D=(0,c.useState)(Object.values(null!=s?s:{}).find((function(e){return 1==e.posNr}))),_=(0,l.Z)(D,2),O=_[0],S=_[1],w=(0,c.useState)(),k=(0,l.Z)(w,2),E=k[0],A=k[1],C=(0,c.useState)(),T=(0,l.Z)(C,2),M=T[0],z=T[1];if(!O)return(0,v.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,v.jsx)("a",{className:p.Fs,children:"Decision analyzer - plann article"}),(0,v.jsx)(N.default,{articleState:[O,S]})]}));var I=O.CatalogData.isIDMFormat,F=null===(n=O.decisionDebugStacks)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.stack)||void 0===n?void 0:n.length;if(!F)return(0,v.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm),style:{zIndex:800},children:[(0,v.jsx)("a",{className:p.Fs,children:"Decision analyzer - change config"}),(0,v.jsx)(N.default,{articleState:[O,S]})]}));var Q=(0,o.Z)(Array(F).keys()),R=[];return R=I?O.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n,t;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===M||!(null!==(n=e.decision.featureRefs)&&void 0!==n&&n.includes(M)||null!==(t=e.decision.optionCombinations)&&void 0!==t&&t.find((function(e){var n;return null===(n=e.actions)||void 0===n?void 0:n.find((function(e){return function parseAction(e){try{var n,t,o=e.split(":"),i=(0,l.Z)(o,2),r=i[0],a=i[1].split("="),s=(0,l.Z)(a,2),d=s[0],c=s[1];if(c){var u=c.split("#"),p=(0,l.Z)(u,2);n=p[0],t=p[1]}return{actionType:r,target:d,ref:n,value:t}}catch(e){throw e}}(e).target==M||e==M}))}))))})}))})):O.decisionDebugStacks.map((function(e){return e.stack.map((function(e){var n,t;return _objectSpread(_objectSpread({},e),{},{bold:!(void 0===M||!(null!==(n=e.decision.DOC)&&void 0!==n&&n.find((function(e){var n,t;return(null===(n=e.DA)||void 0===n?void 0:n.find((function(e){return e.OptionCodex==M||e.DecisionNr==M})))||(null===(t=e.JsFormula)||void 0===t?void 0:t.includes("'OPT"+M+"'"))}))||null!==(t=e.decision.Options)&&void 0!==t&&t.includes("OPT"+M)))})}))})),(0,v.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:g()(t.className,p.fm,i.uiState.configSettingsIsExpanded?u.NF:void 0),style:{zIndex:800},children:[(0,v.jsxs)("a",{className:p.Fs,children:["Decision history",(0,v.jsx)("input",{value:M,onChange:function onChange(e){return z(e.target.value)},placeholder:"filter option ohne OPT",className:p.hX})]}),(0,v.jsx)(N.default,{articleState:[O,S]}),(0,v.jsxs)("table",{className:p.Kz,children:[(0,v.jsx)("thead",{children:(0,v.jsx)("tr",{className:p.$Q,children:R.map((function(e,n){return(0,v.jsx)("th",{children:n},n)}))})}),(0,v.jsx)("tbody",{children:Q.map((function(e,n){return(0,v.jsx)("tr",{className:p.$Q,children:R.map((function(e,t){var o,i;return(0,v.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t,o;e==((null==E||null===(t=E.decision)||void 0===t?void 0:t.Number)||(null==E||null===(o=E.decision)||void 0===o?void 0:o.decisionNo))?A(void 0):A(n)}(e[n].nr,e[n])},children:e[n].bold?(0,v.jsx)("strong",{children:null===(o=e[n])||void 0===o?void 0:o.text}):null===(i=e[n])||void 0===i?void 0:i.text},t)}))},n)}))})]}),E&&(0,v.jsx)("div",{className:p.EC,children:(0,v.jsx)(h.default,{decision:E.decision,snapshots:E.snapshots,onClose:function onClose(){return A(void 0)}})})]}))}))},73751:(e,n,t)=>{t.d(n,{Y:()=>a,Z:()=>s});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--_Tl9c {\n width: 200px;\n font-size: 12px;\n}\n.index-module--_Tl9c div {\n border-color: grey !important;\n}\n.index-module--_Tl9c div {\n box-shadow: none;\n box-shadow: initial;\n}\n",""]);var a="index-module--_Tl9c";const s=l},33981:(e,n,t)=>{t.d(n,{$Q:()=>x,EC:()=>N,Fs:()=>h,Kz:()=>p,Se:()=>f,UF:()=>g,ZP:()=>_,ao:()=>D,dY:()=>y,fm:()=>b,hX:()=>m,ii:()=>v,uR:()=>j});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r),a=t(61667),s=t.n(a),d=new URL(t(76380),t.b),c=l()(i()),u=s()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n right: 0px;\n z-index: 100000;\n width: 600px;\n height: calc(100vh - 60px);\n background-color: #fff;\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var p="index-module--sS9Y_",x="index-module--O5GJU",f="index-module--xNfvC",m="index-module--oALcg",g="index-module--HpoCh",b="index-module--bBk4P",h="index-module--sBWMs",N="index-module--XrXfq",v="index-module--uzZoJ",j="index-module--wrmAf",y="index-module--GsJQn",D="index-module--gf_Q8";const _=c},89965:(e,n,t)=>{t.d(n,{NF:()=>s,ZP:()=>c,ec:()=>a,pb:()=>d});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var a="index-module--NA4Nc",s="index-module--zxgl3",d="index-module--WGNyK";const c=l},72035:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const a=l},36115:(e,n,t)=>{t.d(n,{$Q:()=>m.$Q,EC:()=>m.EC,Fs:()=>m.Fs,Kz:()=>m.Kz,Se:()=>m.Se,UF:()=>m.UF,ao:()=>m.ao,dY:()=>m.dY,fm:()=>m.fm,hX:()=>m.hX,ii:()=>m.ii,uR:()=>m.uR});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),f=t.n(x),m=t(33981),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(m.ZP,g),m.ZP&&m.ZP.locals&&m.ZP.locals},51203:(e,n,t)=>{t.d(n,{NF:()=>m.NF,ec:()=>m.ec,pb:()=>m.pb});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),f=t.n(x),m=t(89965),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(m.ZP,g),m.ZP&&m.ZP.locals&&m.ZP.locals},76839:(e,n,t)=>{var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),f=t.n(x),m=t(72035),g={};g.styleTagTransform=f(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(m.Z,g),m.Z&&m.Z.locals&&m.Z.locals},76380:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMzUzNTUgMC42NDY0NDdDMS4xNTgyOSAwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAwLjY0NjQ0NyAwLjY0NjQ0N0MwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAxLjE1ODI5IDAuNjQ2NDQ3IDEuMzUzNTVMMS4zNTM1NSAwLjY0NjQ0N1pNOC42NDY0NSA5LjM1MzU1QzguODQxNzEgOS41NDg4MiA5LjE1ODI5IDkuNTQ4ODIgOS4zNTM1NSA5LjM1MzU1QzkuNTQ4ODIgOS4xNTgyOSA5LjU0ODgyIDguODQxNzEgOS4zNTM1NSA4LjY0NjQ1TDguNjQ2NDUgOS4zNTM1NVpNOS4zNTM1NSAxLjM1MzU1QzkuNTQ4ODIgMS4xNTgyOSA5LjU0ODgyIDAuODQxNzA5IDkuMzUzNTUgMC42NDY0NDdDOS4xNTgyOSAwLjQ1MTE4NCA4Ljg0MTcxIDAuNDUxMTg0IDguNjQ2NDUgMC42NDY0NDdMOS4zNTM1NSAxLjM1MzU1Wk0wLjY0NjQ0NyA4LjY0NjQ1QzAuNDUxMTg1IDguODQxNzEgMC40NTExODUgOS4xNTgyOSAwLjY0NjQ0NyA5LjM1MzU1QzAuODQxNzA5IDkuNTQ4ODEgMS4xNTgyOSA5LjU0ODgxIDEuMzUzNTUgOS4zNTM1NUwwLjY0NjQ0NyA4LjY0NjQ1Wk0wLjY0NjQ0NyAxLjM1MzU1TDguNjQ2NDUgOS4zNTM1NUw5LjM1MzU1IDguNjQ2NDVMMS4zNTM1NSAwLjY0NjQ0N0wwLjY0NjQ0NyAxLjM1MzU1Wk04LjY0NjQ1IDAuNjQ2NDQ3TDAuNjQ2NDQ3IDguNjQ2NDVMMS4zNTM1NSA5LjM1MzU1TDkuMzUzNTUgMS4zNTM1NUw4LjY0NjQ1IDAuNjQ2NDQ3WiIgZmlsbD0iIzRGNEY0RiIvPgo8L3N2Zz4K"},88291:(e,n,t)=>{function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 3222.diva-web-planner-react.umd.min.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[3222],{59165:(e,n,t)=>{t.d(n,{_l:()=>a,gc:()=>JsonView});var o=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:i,lastElement:l,openBracket:a,closeBracket:s,level:r,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p}=e;const x=(0,o.useRef)(!1),[m,N,f]=function useBool(e){const[n,t]=(0,o.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>c(r,t,n))),h=(0,o.useRef)(null);(0,o.useEffect)((()=>{x.current?f(c(r,t,n)):x.current=!0}),[c]);const g=m?d.collapseIcon:d.expandIcon,b=m?"collapse JSON":"expand JSON",j=(0,o.useId)(),v=r+1,D=i.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),f("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let o=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){o=e;break}if(o<0)return;const i=(o+n+t.length)%t.length;t[o].tabIndex=-1,t[i].tabIndex=0,t[i].focus()}},onClick=()=>{var e;N();const n=h.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,o.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":m,"aria-selected":void 0},(0,o.createElement)("span",{className:g,onClick,onKeyDown,role:"button","aria-label":b,"aria-expanded":m,"aria-controls":m?j:void 0,ref:h,tabIndex:0===r?0:-1}),(n||""===n)&&(u?(0,o.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,o.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,o.createElement)("span",{className:d.punctuation},a),m?(0,o.createElement)("ul",{id:j,role:"group"},i.map(((e,n)=>(0,o.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===D,level:v,shouldExpandNode:c,clickToExpandNode:u,outerRef:p})))):(0,o.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,o.createElement)("span",{className:d.punctuation},s),!l&&(0,o.createElement)("span",{className:d.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:i,lastElement:l,style:a}=e;return(0,o.createElement)("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,o.createElement)("span",{className:a.label},quoteString(n,a.quotesForFieldNames),":"),(0,o.createElement)("span",{className:a.punctuation},t),(0,o.createElement)("span",{className:a.punctuation},i),!l&&(0,o.createElement)("span",{className:a.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:o,lastElement:i,shouldExpandNode:l,clickToExpandNode:a,level:s,outerRef:r}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:s,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:l,clickToExpandNode:a,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:r})}function JsonArray(e){let{field:n,value:t,style:o,lastElement:i,level:l,shouldExpandNode:a,clickToExpandNode:s,outerRef:r}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:l,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:a,clickToExpandNode:s,data:t.map((e=>[void 0,e])),outerRef:r})}function JsonPrimitiveValue(e){let n,{field:t,value:i,style:l,lastElement:a}=e,s=l.otherValue;var r;return null===i?(n="null",s=l.nullValue):void 0===i?(n="undefined",s=l.undefinedValue):"string"==typeof(r=i)||r instanceof String?(n=quoteString(i,!l.noQuotesForStringValues),s=l.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(i)?(n=i?"true":"false",s=l.booleanValue):(e=>"number"==typeof e||e instanceof Number)(i)?(n=i.toString(),s=l.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(i)?(n=`${i.toString()}n`,s=l.numberValue):n=isDate(i)?i.toISOString():i.toString(),(0,o.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,o.createElement)("span",{className:l.label},quoteString(t,l.quotesForFieldNames),":"),(0,o.createElement)("span",{className:s},n),!a&&(0,o.createElement)("span",{className:l.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,o.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,o.createElement)(JsonObject,Object.assign({},e)):(0,o.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var i="_2bkNM";const l={container:"_2IvMF _GzYRV",basicChildStyle:i,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},a={container:"_11RoI _GzYRV",basicChildStyle:i,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=l,shouldExpandNode:i=allExpanded,clickToExpandNode:a=!1,...s}=e;const r=(0,o.useRef)(null);return(0,o.createElement)("div",Object.assign({"aria-label":"JSON view"},s,{className:t.container,ref:r,role:"tree"}),(0,o.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:a,outerRef:r}))}},13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var o=t(34988),i=t(87363),l=t(36115),a=t(59165),s=t(65515),r=t.n(s),d=t(22976),c=t.n(d),u=t(47514);const p=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,s=e.matchingOptions,d=void 0===s?{}:s,p=e.anyData,x=e.onClose,m=(0,i.useRef)(null),N=(0,i.useState)(),f=(0,o.Z)(N,2),h=f[0],g=f[1],b=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,i.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[o],i=t.after[o];e[o]={after:i,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!i.visibleOPVs.includes(e)}))}};for(var o in t.before)n();g(e)}else g(void 0)}),[t]);var j=function isExpanded(e,n,t){var o=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(h&&o&&h[o]&&JSON.stringify(h[o].before)!==JSON.stringify(h[o].after))};if(void 0!==n.priceFeatureGroupNo){var v,D,y=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:l.ii,ref:m,children:[(0,u.jsxs)("h2",{className:r()(l.uR,"handle"),children:["PriceFeatureGroup #",y.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:l.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("div",{children:[b(y.catalogId,"Catalog ID"),b(y._id,"priceFeatureGroup ID"),b(null===(v=y.priceFeatureGroupText)||void 0===v?void 0:v.DE,"priceFeatureGroupText"),b(y.percentageSurcharges,"percentageSurcharges"),b(y.isPercentage,"isPercentage"),b(y.comment,"comment"),b(y.featureNos,"Feature References"),b(y.additionalPrice,"Additional Price"),b(y.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:l.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:l.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(D=y.finishes)||void 0===D?void 0:D.map((function(e){return(0,u.jsxs)("tr",{className:r()(e.sequence===y.activeCombination?l.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",y.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(a.gc,{shouldExpandNode:j,data:h,style:a._l})]}),!!p&&(0,u.jsx)(a.gc,{data:p,style:a._l})]})})}if(void 0!==n.Number){var O=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:l.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",b(O.Number,"Number")]}),b(O.Type,"Type"),b(O.Prio,"Priority"),b(O.Options,"Options"),b(O.enabled?"Yes":"No","Enabled"),b(O.Number,"Decision Number"),b(O.activeCombination,"Active Combination Index"),b(O.disableHistory,"Disabled History"),O.DOC&&O.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),O.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[b(n,"doc Index"),b(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:b(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[b(e.Type,"Action Type"),b(e.FeatureRef,"Feature Ref"),b(e.OptionCodex,"OptionCodex"),b(e.OptionRef,"OptionRef"),b(e.OptionRefCodex,"OptionRefCodex"),b(e.OptionValueRefCodex,"OptionValueRefCodex"),b(e.DecisionNr,"DecisionNr")]},n)}))})]}),b(e.ValidOptionValues,"Valid Option Values"),b(e.ValidOptions,"Valid Options")]},n)}))]}),b(O.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",O.DOC&&O.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(a.gc,{shouldExpandNode:j,data:h,style:a._l})]}),!!p&&(0,u.jsx)(a.gc,{data:p,style:a._l})]})})}var S,E=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,className:l.ii,children:[(0,u.jsx)("div",{className:l.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:r()(l.uR,"handle"),children:["Decision #",E.decisionNo]}),(0,u.jsxs)("div",{children:[b(E.catalogId,"Catalog ID"),b(E._id,"Decision ID"),b(E.prio,"Priority"),b(E.decisionType,"Decision Type"),b(E.enabled?"Enabled":"Disabled","Status"),b(E.deleted?"Yes":"No","Deleted"),b(E.featureRefs,"Feature References"),b(E.disableHistory,"Disable History"),b(E.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:l.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:l.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(S=E.optionCombinations)||void 0===S?void 0:S.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(a.gc,{shouldExpandNode:j,data:h,style:a._l})]}),!!p&&(0,u.jsx)(a.gc,{data:p,style:a._l})]})})}},33981:(e,n,t)=>{t.d(n,{$Q:()=>x,EC:()=>b,Fs:()=>g,Kz:()=>p,Se:()=>m,UF:()=>f,ZP:()=>O,ao:()=>y,dY:()=>D,fm:()=>h,hX:()=>N,ii:()=>j,uR:()=>v});var o=t(8081),i=t.n(o),l=t(23645),a=t.n(l),s=t(61667),r=t.n(s),d=new URL(t(76380),t.b),c=a()(i()),u=r()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n left: 500px;\n z-index: 100000;\n width: calc(100vw - 500px);\n pointer-events: none;\n height: calc(100vh - 60px);\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var p="index-module--sS9Y_",x="index-module--O5GJU",m="index-module--xNfvC",N="index-module--oALcg",f="index-module--HpoCh",h="index-module--bBk4P",g="index-module--sBWMs",b="index-module--XrXfq",j="index-module--uzZoJ",v="index-module--wrmAf",D="index-module--GsJQn",y="index-module--gf_Q8";const O=c},36115:(e,n,t)=>{t.d(n,{$Q:()=>N.$Q,EC:()=>N.EC,Fs:()=>N.Fs,Kz:()=>N.Kz,Se:()=>N.Se,UF:()=>N.UF,ao:()=>N.ao,dY:()=>N.dY,fm:()=>N.fm,hX:()=>N.hX,ii:()=>N.ii,uR:()=>N.uR});var o=t(93379),i=t.n(o),l=t(7795),a=t.n(l),s=t(90569),r=t.n(s),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),N=t(33981),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=r().bind(null,"head"),f.domAPI=a(),f.insertStyleElement=p();i()(N.ZP,f),N.ZP&&N.ZP.locals&&N.ZP.locals},76380:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMzUzNTUgMC42NDY0NDdDMS4xNTgyOSAwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAwLjY0NjQ0NyAwLjY0NjQ0N0MwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAxLjE1ODI5IDAuNjQ2NDQ3IDEuMzUzNTVMMS4zNTM1NSAwLjY0NjQ0N1pNOC42NDY0NSA5LjM1MzU1QzguODQxNzEgOS41NDg4MiA5LjE1ODI5IDkuNTQ4ODIgOS4zNTM1NSA5LjM1MzU1QzkuNTQ4ODIgOS4xNTgyOSA5LjU0ODgyIDguODQxNzEgOS4zNTM1NSA4LjY0NjQ1TDguNjQ2NDUgOS4zNTM1NVpNOS4zNTM1NSAxLjM1MzU1QzkuNTQ4ODIgMS4xNTgyOSA5LjU0ODgyIDAuODQxNzA5IDkuMzUzNTUgMC42NDY0NDdDOS4xNTgyOSAwLjQ1MTE4NCA4Ljg0MTcxIDAuNDUxMTg0IDguNjQ2NDUgMC42NDY0NDdMOS4zNTM1NSAxLjM1MzU1Wk0wLjY0NjQ0NyA4LjY0NjQ1QzAuNDUxMTg1IDguODQxNzEgMC40NTExODUgOS4xNTgyOSAwLjY0NjQ0NyA5LjM1MzU1QzAuODQxNzA5IDkuNTQ4ODEgMS4xNTgyOSA5LjU0ODgxIDEuMzUzNTUgOS4zNTM1NUwwLjY0NjQ0NyA4LjY0NjQ1Wk0wLjY0NjQ0NyAxLjM1MzU1TDguNjQ2NDUgOS4zNTM1NUw5LjM1MzU1IDguNjQ2NDVMMS4zNTM1NSAwLjY0NjQ0N0wwLjY0NjQ0NyAxLjM1MzU1Wk04LjY0NjQ1IDAuNjQ2NDQ3TDAuNjQ2NDQ3IDguNjQ2NDVMMS4zNTM1NSA5LjM1MzU1TDkuMzUzNTUgMS4zNTM1NUw4LjY0NjQ1IDAuNjQ2NDQ3WiIgZmlsbD0iIzRGNEY0RiIvPgo8L3N2Zz4K"}}]);
2
+ "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[3222],{59165:(e,n,t)=>{t.d(n,{_l:()=>a,gc:()=>JsonView});var o=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:i,lastElement:l,openBracket:a,closeBracket:s,level:r,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p}=e;const x=(0,o.useRef)(!1),[m,f,N]=function useBool(e){const[n,t]=(0,o.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>c(r,t,n))),g=(0,o.useRef)(null);(0,o.useEffect)((()=>{x.current?N(c(r,t,n)):x.current=!0}),[c]);const h=m?d.collapseIcon:d.expandIcon,b=m?"collapse JSON":"expand JSON",j=(0,o.useId)(),v=r+1,D=i.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),N("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let o=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){o=e;break}if(o<0)return;const i=(o+n+t.length)%t.length;t[o].tabIndex=-1,t[i].tabIndex=0,t[i].focus()}},onClick=()=>{var e;f();const n=g.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,o.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":m,"aria-selected":void 0},(0,o.createElement)("span",{className:h,onClick,onKeyDown,role:"button","aria-label":b,"aria-expanded":m,"aria-controls":m?j:void 0,ref:g,tabIndex:0===r?0:-1}),(n||""===n)&&(u?(0,o.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,o.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,o.createElement)("span",{className:d.punctuation},a),m?(0,o.createElement)("ul",{id:j,role:"group"},i.map(((e,n)=>(0,o.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===D,level:v,shouldExpandNode:c,clickToExpandNode:u,outerRef:p})))):(0,o.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,o.createElement)("span",{className:d.punctuation},s),!l&&(0,o.createElement)("span",{className:d.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:i,lastElement:l,style:a}=e;return(0,o.createElement)("div",{className:a.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,o.createElement)("span",{className:a.label},quoteString(n,a.quotesForFieldNames),":"),(0,o.createElement)("span",{className:a.punctuation},t),(0,o.createElement)("span",{className:a.punctuation},i),!l&&(0,o.createElement)("span",{className:a.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:o,lastElement:i,shouldExpandNode:l,clickToExpandNode:a,level:s,outerRef:r}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:s,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:l,clickToExpandNode:a,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:r})}function JsonArray(e){let{field:n,value:t,style:o,lastElement:i,level:l,shouldExpandNode:a,clickToExpandNode:s,outerRef:r}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:l,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:a,clickToExpandNode:s,data:t.map((e=>[void 0,e])),outerRef:r})}function JsonPrimitiveValue(e){let n,{field:t,value:i,style:l,lastElement:a}=e,s=l.otherValue;var r;return null===i?(n="null",s=l.nullValue):void 0===i?(n="undefined",s=l.undefinedValue):"string"==typeof(r=i)||r instanceof String?(n=quoteString(i,!l.noQuotesForStringValues),s=l.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(i)?(n=i?"true":"false",s=l.booleanValue):(e=>"number"==typeof e||e instanceof Number)(i)?(n=i.toString(),s=l.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(i)?(n=`${i.toString()}n`,s=l.numberValue):n=isDate(i)?i.toISOString():i.toString(),(0,o.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,o.createElement)("span",{className:l.label},quoteString(t,l.quotesForFieldNames),":"),(0,o.createElement)("span",{className:s},n),!a&&(0,o.createElement)("span",{className:l.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,o.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,o.createElement)(JsonObject,Object.assign({},e)):(0,o.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var i="_2bkNM";const l={container:"_2IvMF _GzYRV",basicChildStyle:i,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},a={container:"_11RoI _GzYRV",basicChildStyle:i,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=l,shouldExpandNode:i=allExpanded,clickToExpandNode:a=!1,...s}=e;const r=(0,o.useRef)(null);return(0,o.createElement)("div",Object.assign({"aria-label":"JSON view"},s,{className:t.container,ref:r,role:"tree"}),(0,o.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:a,outerRef:r}))}},13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var o=t(34988),i=t(87363),l=t(36115),a=t(59165),s=t(65515),r=t.n(s),d=t(22976),c=t.n(d),u=t(47514);const p=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,s=e.matchingOptions,d=void 0===s?{}:s,p=e.anyData,x=e.onClose,m=(0,i.useRef)(null),f=(0,i.useState)(),N=(0,o.Z)(f,2),g=N[0],h=N[1],b=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,i.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[o],i=t.after[o];e[o]={after:i,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!i.visibleOPVs.includes(e)}))}};for(var o in t.before)n();h(e)}else h(void 0)}),[t]);var j=function isExpanded(e,n,t){var o=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(g&&o&&g[o]&&JSON.stringify(g[o].before)!==JSON.stringify(g[o].after))};if(void 0!==n.priceFeatureGroupNo){var v,D,y=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:l.ii,ref:m,children:[(0,u.jsxs)("h2",{className:r()(l.uR,"handle"),children:["PriceFeatureGroup #",y.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:l.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("div",{children:[b(y.catalogId,"Catalog ID"),b(y._id,"priceFeatureGroup ID"),b(null===(v=y.priceFeatureGroupText)||void 0===v?void 0:v.DE,"priceFeatureGroupText"),b(y.percentageSurcharges,"percentageSurcharges"),b(y.isPercentage,"isPercentage"),b(y.comment,"comment"),b(y.featureNos,"Feature References"),b(y.additionalPrice,"Additional Price"),b(y.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:l.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:l.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(D=y.finishes)||void 0===D?void 0:D.map((function(e){return(0,u.jsxs)("tr",{className:r()(e.sequence===y.activeCombination?l.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",y.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(a.gc,{shouldExpandNode:j,data:g,style:a._l})]}),!!p&&(0,u.jsx)(a.gc,{data:p,style:a._l})]})})}if(void 0!==n.Number){var O=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:l.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",b(O.Number,"Number")]}),b(O.Type,"Type"),b(O.Prio,"Priority"),b(O.Options,"Options"),b(O.enabled?"Yes":"No","Enabled"),b(O.Number,"Decision Number"),b(O.activeCombination,"Active Combination Index"),b(O.disableHistory,"Disabled History"),O.DOC&&O.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),O.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[b(n,"doc Index"),b(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:b(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[b(e.Type,"Action Type"),b(e.FeatureRef,"Feature Ref"),b(e.OptionCodex,"OptionCodex"),b(e.OptionRef,"OptionRef"),b(e.OptionRefCodex,"OptionRefCodex"),b(e.OptionValueRefCodex,"OptionValueRefCodex"),b(e.DecisionNr,"DecisionNr")]},n)}))})]}),b(e.ValidOptionValues,"Valid Option Values"),b(e.RefLevel,"RefLevel"),b(e.ValidOptions,"Valid Options")]},n)}))]}),b(O.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",O.DOC&&O.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(a.gc,{shouldExpandNode:j,data:g,style:a._l})]}),!!p&&(0,u.jsx)(a.gc,{data:p,style:a._l})]})})}var S,E=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,className:l.ii,children:[(0,u.jsx)("div",{className:l.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:r()(l.uR,"handle"),children:["Decision #",E.decisionNo]}),(0,u.jsxs)("div",{children:[b(E.catalogId,"Catalog ID"),b(E._id,"Decision ID"),b(E.prio,"Priority"),b(E.decisionType,"Decision Type"),b(E.enabled?"Enabled":"Disabled","Status"),b(E.deleted?"Yes":"No","Deleted"),b(E.featureRefs,"Feature References"),b(E.disableHistory,"Disable History"),b(E.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:l.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:l.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(S=E.optionCombinations)||void 0===S?void 0:S.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(a.gc,{shouldExpandNode:j,data:g,style:a._l})]}),!!p&&(0,u.jsx)(a.gc,{data:p,style:a._l})]})})}},33981:(e,n,t)=>{t.d(n,{$Q:()=>x,EC:()=>b,Fs:()=>h,Kz:()=>p,Se:()=>m,UF:()=>N,ZP:()=>O,ao:()=>y,dY:()=>D,fm:()=>g,hX:()=>f,ii:()=>j,uR:()=>v});var o=t(8081),i=t.n(o),l=t(23645),a=t.n(l),s=t(61667),r=t.n(s),d=new URL(t(76380),t.b),c=a()(i()),u=r()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n right: 0px;\n z-index: 100000;\n width: 600px;\n height: calc(100vh - 60px);\n background-color: #fff;\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var p="index-module--sS9Y_",x="index-module--O5GJU",m="index-module--xNfvC",f="index-module--oALcg",N="index-module--HpoCh",g="index-module--bBk4P",h="index-module--sBWMs",b="index-module--XrXfq",j="index-module--uzZoJ",v="index-module--wrmAf",D="index-module--GsJQn",y="index-module--gf_Q8";const O=c},36115:(e,n,t)=>{t.d(n,{$Q:()=>f.$Q,EC:()=>f.EC,Fs:()=>f.Fs,Kz:()=>f.Kz,Se:()=>f.Se,UF:()=>f.UF,ao:()=>f.ao,dY:()=>f.dY,fm:()=>f.fm,hX:()=>f.hX,ii:()=>f.ii,uR:()=>f.uR});var o=t(93379),i=t.n(o),l=t(7795),a=t.n(l),s=t(90569),r=t.n(s),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),f=t(33981),N={};N.styleTagTransform=m(),N.setAttributes=c(),N.insert=r().bind(null,"head"),N.domAPI=a(),N.insertStyleElement=p();i()(f.ZP,N),f.ZP&&f.ZP.locals&&f.ZP.locals},76380:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMzUzNTUgMC42NDY0NDdDMS4xNTgyOSAwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAwLjY0NjQ0NyAwLjY0NjQ0N0MwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAxLjE1ODI5IDAuNjQ2NDQ3IDEuMzUzNTVMMS4zNTM1NSAwLjY0NjQ0N1pNOC42NDY0NSA5LjM1MzU1QzguODQxNzEgOS41NDg4MiA5LjE1ODI5IDkuNTQ4ODIgOS4zNTM1NSA5LjM1MzU1QzkuNTQ4ODIgOS4xNTgyOSA5LjU0ODgyIDguODQxNzEgOS4zNTM1NSA4LjY0NjQ1TDguNjQ2NDUgOS4zNTM1NVpNOS4zNTM1NSAxLjM1MzU1QzkuNTQ4ODIgMS4xNTgyOSA5LjU0ODgyIDAuODQxNzA5IDkuMzUzNTUgMC42NDY0NDdDOS4xNTgyOSAwLjQ1MTE4NCA4Ljg0MTcxIDAuNDUxMTg0IDguNjQ2NDUgMC42NDY0NDdMOS4zNTM1NSAxLjM1MzU1Wk0wLjY0NjQ0NyA4LjY0NjQ1QzAuNDUxMTg1IDguODQxNzEgMC40NTExODUgOS4xNTgyOSAwLjY0NjQ0NyA5LjM1MzU1QzAuODQxNzA5IDkuNTQ4ODEgMS4xNTgyOSA5LjU0ODgxIDEuMzUzNTUgOS4zNTM1NUwwLjY0NjQ0NyA4LjY0NjQ1Wk0wLjY0NjQ0NyAxLjM1MzU1TDguNjQ2NDUgOS4zNTM1NUw5LjM1MzU1IDguNjQ2NDVMMS4zNTM1NSAwLjY0NjQ0N0wwLjY0NjQ0NyAxLjM1MzU1Wk04LjY0NjQ1IDAuNjQ2NDQ3TDAuNjQ2NDQ3IDguNjQ2NDVMMS4zNTM1NSA5LjM1MzU1TDkuMzUzNTUgMS4zNTM1NUw4LjY0NjQ1IDAuNjQ2NDQ3WiIgZmlsbD0iIzRGNEY0RiIvPgo8L3N2Zz4K"}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 658.diva-web-planner-react.umd.min.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[658,3222,8291],{59165:(e,n,t)=>{t.d(n,{_l:()=>l,gc:()=>JsonView});var o=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:i,lastElement:r,openBracket:l,closeBracket:a,level:s,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p}=e;const x=(0,o.useRef)(!1),[m,g,f]=function useBool(e){const[n,t]=(0,o.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>c(s,t,n))),h=(0,o.useRef)(null);(0,o.useEffect)((()=>{x.current?f(c(s,t,n)):x.current=!0}),[c]);const b=m?d.collapseIcon:d.expandIcon,N=m?"collapse JSON":"expand JSON",j=(0,o.useId)(),v=s+1,y=i.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),f("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let o=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){o=e;break}if(o<0)return;const i=(o+n+t.length)%t.length;t[o].tabIndex=-1,t[i].tabIndex=0,t[i].focus()}},onClick=()=>{var e;g();const n=h.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,o.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":m,"aria-selected":void 0},(0,o.createElement)("span",{className:b,onClick,onKeyDown,role:"button","aria-label":N,"aria-expanded":m,"aria-controls":m?j:void 0,ref:h,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,o.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,o.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,o.createElement)("span",{className:d.punctuation},l),m?(0,o.createElement)("ul",{id:j,role:"group"},i.map(((e,n)=>(0,o.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===y,level:v,shouldExpandNode:c,clickToExpandNode:u,outerRef:p})))):(0,o.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,o.createElement)("span",{className:d.punctuation},a),!r&&(0,o.createElement)("span",{className:d.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:i,lastElement:r,style:l}=e;return(0,o.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,o.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,o.createElement)("span",{className:l.punctuation},t),(0,o.createElement)("span",{className:l.punctuation},i),!r&&(0,o.createElement)("span",{className:l.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:o,lastElement:i,shouldExpandNode:r,clickToExpandNode:l,level:a,outerRef:s}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:a,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:r,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s})}function JsonArray(e){let{field:n,value:t,style:o,lastElement:i,level:r,shouldExpandNode:l,clickToExpandNode:a,outerRef:s}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:r,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:l,clickToExpandNode:a,data:t.map((e=>[void 0,e])),outerRef:s})}function JsonPrimitiveValue(e){let n,{field:t,value:i,style:r,lastElement:l}=e,a=r.otherValue;var s;return null===i?(n="null",a=r.nullValue):void 0===i?(n="undefined",a=r.undefinedValue):"string"==typeof(s=i)||s instanceof String?(n=quoteString(i,!r.noQuotesForStringValues),a=r.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(i)?(n=i?"true":"false",a=r.booleanValue):(e=>"number"==typeof e||e instanceof Number)(i)?(n=i.toString(),a=r.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(i)?(n=`${i.toString()}n`,a=r.numberValue):n=isDate(i)?i.toISOString():i.toString(),(0,o.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,o.createElement)("span",{className:r.label},quoteString(t,r.quotesForFieldNames),":"),(0,o.createElement)("span",{className:a},n),!l&&(0,o.createElement)("span",{className:r.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,o.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,o.createElement)(JsonObject,Object.assign({},e)):(0,o.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var i="_2bkNM";const r={container:"_2IvMF _GzYRV",basicChildStyle:i,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},l={container:"_11RoI _GzYRV",basicChildStyle:i,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=r,shouldExpandNode:i=allExpanded,clickToExpandNode:l=!1,...a}=e;const s=(0,o.useRef)(null);return(0,o.createElement)("div",Object.assign({"aria-label":"JSON view"},a,{className:t.container,ref:s,role:"tree"}),(0,o.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:l,outerRef:s}))}},13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var o=t(34988),i=t(87363),r=t(36115),l=t(59165),a=t(65515),s=t.n(a),d=t(22976),c=t.n(d),u=t(47514);const p=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,a=e.matchingOptions,d=void 0===a?{}:a,p=e.anyData,x=e.onClose,m=(0,i.useRef)(null),g=(0,i.useState)(),f=(0,o.Z)(g,2),h=f[0],b=f[1],N=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,i.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[o],i=t.after[o];e[o]={after:i,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!i.visibleOPVs.includes(e)}))}};for(var o in t.before)n();b(e)}else b(void 0)}),[t]);var j=function isExpanded(e,n,t){var o=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(h&&o&&h[o]&&JSON.stringify(h[o].before)!==JSON.stringify(h[o].after))};if(void 0!==n.priceFeatureGroupNo){var v,y,D=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:r.ii,ref:m,children:[(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["PriceFeatureGroup #",D.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("div",{children:[N(D.catalogId,"Catalog ID"),N(D._id,"priceFeatureGroup ID"),N(null===(v=D.priceFeatureGroupText)||void 0===v?void 0:v.DE,"priceFeatureGroupText"),N(D.percentageSurcharges,"percentageSurcharges"),N(D.isPercentage,"isPercentage"),N(D.comment,"comment"),N(D.featureNos,"Feature References"),N(D.additionalPrice,"Additional Price"),N(D.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(y=D.finishes)||void 0===y?void 0:y.map((function(e){return(0,u.jsxs)("tr",{className:s()(e.sequence===D.activeCombination?r.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",D.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:j,data:h,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}if(void 0!==n.Number){var O=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",N(O.Number,"Number")]}),N(O.Type,"Type"),N(O.Prio,"Priority"),N(O.Options,"Options"),N(O.enabled?"Yes":"No","Enabled"),N(O.Number,"Decision Number"),N(O.activeCombination,"Active Combination Index"),N(O.disableHistory,"Disabled History"),O.DOC&&O.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),O.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[N(n,"doc Index"),N(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:N(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[N(e.Type,"Action Type"),N(e.FeatureRef,"Feature Ref"),N(e.OptionCodex,"OptionCodex"),N(e.OptionRef,"OptionRef"),N(e.OptionRefCodex,"OptionRefCodex"),N(e.OptionValueRefCodex,"OptionValueRefCodex"),N(e.DecisionNr,"DecisionNr")]},n)}))})]}),N(e.ValidOptionValues,"Valid Option Values"),N(e.ValidOptions,"Valid Options")]},n)}))]}),N(O.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",O.DOC&&O.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:j,data:h,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}var w,_=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,className:r.ii,children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["Decision #",_.decisionNo]}),(0,u.jsxs)("div",{children:[N(_.catalogId,"Catalog ID"),N(_._id,"Decision ID"),N(_.prio,"Priority"),N(_.decisionType,"Decision Type"),N(_.enabled?"Enabled":"Disabled","Status"),N(_.deleted?"Yes":"No","Deleted"),N(_.featureRefs,"Feature References"),N(_.disableHistory,"Disable History"),N(_.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(w=_.optionCombinations)||void 0===w?void 0:w.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:j,data:h,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}},70658:(e,n,t)=>{t.r(n),t.d(n,{default:()=>z});var o=t(80248),i=t(84658),r=t(34988),l=t(88291),a=t(50747),s=t.n(a),d=t(87363),c=t(51203),u=t(93379),p=t.n(u),x=t(7795),m=t.n(x),g=t(90569),f=t.n(g),h=t(3565),b=t.n(h),N=t(19216),j=t.n(N),v=t(44589),y=t.n(v),D=t(69288),O={};O.styleTagTransform=y(),O.setAttributes=b(),O.insert=f().bind(null,"head"),O.domAPI=m(),O.insertStyleElement=j();p()(D.ZP,O);D.ZP&&D.ZP.locals&&D.ZP.locals;var w=t(91923),_=t(9420),S=t(65515),E=t.n(S),k=t(88683),A=(t(76839),t(13222)),M=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const z=(0,_.Pi)((function PriceAnalyzer(e){var n=Object.assign({},((0,l.Z)(e),e)),t=(0,w.NP)(),o=t.divaWebPlanner.getDivaArticles(),a=(0,d.useState)(!1),u=(0,r.Z)(a,2),p=u[0],x=u[1];(0,d.useEffect)((function(){var e=function(){var e=(0,i.Z)(s().mark((function _callee(){return s().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.DivaUtils.Sleep(1e3);case 2:x(!p);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[t.tabGroupState.allTabGroups]),(0,d.useEffect)((function(){var e=t.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=t.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[t.uiState.isLoading]);var m=Object.values(null!=o?o:{}).find((function(e){return 1==e.posNr})),g=(0,d.useState)(),f=(0,r.Z)(g,2),h=f[0],b=f[1],N=(0,d.useState)(),j=(0,r.Z)(N,2),v=j[0],y=j[1];if(!m)return(0,M.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:E()(n.className,D.fm),style:{zIndex:800},children:(0,M.jsx)("a",{className:D.Fs,children:"Price analyzer - plann article"})}));var O=m.CatalogData.isIDMFormat,_=Object.values(m.decisionDebugStacks).findLast((function(e){return e})),S=null==_?void 0:_.prices;if(!S)return(0,M.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:E()(n.className,D.fm),style:{zIndex:800},children:(0,M.jsx)("a",{className:D.Fs,children:"Price analyzer - change config"})}));return O?S?(0,M.jsxs)("div",_objectSpread(_objectSpread({},n),{},{className:E()(n.className,D.fm,t.uiState.configSettingsIsExpanded?c.NF:void 0),children:[(0,M.jsxs)("a",{className:D.Fs,children:["Price history",(0,M.jsx)("input",{value:v,onChange:function onChange(e){return y(e.target.value)},placeholder:"filter option ohne OPT",className:D.hX})]}),(0,M.jsxs)("div",{children:[(0,M.jsxs)("table",{className:D.Kz,children:[(0,M.jsx)("thead",{children:(0,M.jsx)("tr",{className:D.$Q,children:(0,M.jsx)("th",{children:1})})}),(0,M.jsx)("tbody",{children:S.map((function(e,n){return(0,M.jsx)("tr",{className:D.$Q,children:(0,M.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t;e==(null==h||null===(t=h.priceFeatureGroup)||void 0===t?void 0:t.priceFeatureGroupNo)?b(void 0):b(n)}(e.nr,e)},children:e.text})},n)}))})]}),h&&(0,M.jsx)("div",{className:D.EC,children:(0,M.jsx)(A.default,{decision:h.priceFeatureGroup,anyData:{prices:m.catalogArticle.idmPrices,variantData:h.variantValues},onClose:function onClose(){return b(void 0)}})})]})]})):(0,M.jsx)(M.Fragment,{children:" "}):(0,M.jsx)(M.Fragment,{children:"only implemented for IDM enricher data"})}))},33981:(e,n,t)=>{t.d(n,{$Q:()=>x,EC:()=>N,Fs:()=>b,Kz:()=>p,Se:()=>m,UF:()=>f,ZP:()=>O,ao:()=>D,dY:()=>y,fm:()=>h,hX:()=>g,ii:()=>j,uR:()=>v});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r),a=t(61667),s=t.n(a),d=new URL(t(76380),t.b),c=l()(i()),u=s()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n left: 500px;\n z-index: 100000;\n width: calc(100vw - 500px);\n pointer-events: none;\n height: calc(100vh - 60px);\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var p="index-module--sS9Y_",x="index-module--O5GJU",m="index-module--xNfvC",g="index-module--oALcg",f="index-module--HpoCh",h="index-module--bBk4P",b="index-module--sBWMs",N="index-module--XrXfq",j="index-module--uzZoJ",v="index-module--wrmAf",y="index-module--GsJQn",D="index-module--gf_Q8";const O=c},69288:(e,n,t)=>{t.d(n,{$Q:()=>d,EC:()=>p,Fs:()=>u,Kz:()=>a,ZP:()=>x,fm:()=>c,hX:()=>s});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--TMuWx {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.index-module--YulNJ {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--TMuWx thead {\n font-weight: bold !important;\n}\n\n.index-module--TMuWx thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--aAXou {\n text-align: left;\n}\n.index-module--aAXou:first-child {\n height: 20px;\n}\n\n.index-module--aAXou th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--gR4ES {\n overflow: auto;\n left: 50px;\n height: 100%;\n}\n.index-module--E6gUV {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--FCFmD {\n z-index: 100;\n position: fixed;\n top: 60px;\n left: 500px;\n z-index: 100000;\n width: calc(100vw - 500px);\n pointer-events: none;\n height: calc(100vh - 60px);\n overflow: auto;\n}\n\n.index-module--aeMhl {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n}\n\n.index-module--NUFfA {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--sd0v0 {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--YZIPe {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--YZIPe th,\n.index-module--YZIPe td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--YZIPe th {\n background-color: #f2f2f2;\n}\n",""]);var a="index-module--TMuWx",s="index-module--YulNJ",d="index-module--aAXou",c="index-module--gR4ES",u="index-module--E6gUV",p="index-module--FCFmD";const x=l},89965:(e,n,t)=>{t.d(n,{NF:()=>s,ZP:()=>c,ec:()=>a,pb:()=>d});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var a="index-module--NA4Nc",s="index-module--zxgl3",d="index-module--WGNyK";const c=l},72035:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const a=l},36115:(e,n,t)=>{t.d(n,{$Q:()=>g.$Q,EC:()=>g.EC,Fs:()=>g.Fs,Kz:()=>g.Kz,Se:()=>g.Se,UF:()=>g.UF,ao:()=>g.ao,dY:()=>g.dY,fm:()=>g.fm,hX:()=>g.hX,ii:()=>g.ii,uR:()=>g.uR});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),g=t(33981),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p();i()(g.ZP,f),g.ZP&&g.ZP.locals&&g.ZP.locals},51203:(e,n,t)=>{t.d(n,{NF:()=>g.NF,ec:()=>g.ec,pb:()=>g.pb});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),g=t(89965),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p();i()(g.ZP,f),g.ZP&&g.ZP.locals&&g.ZP.locals},76839:(e,n,t)=>{var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),g=t(72035),f={};f.styleTagTransform=m(),f.setAttributes=c(),f.insert=s().bind(null,"head"),f.domAPI=l(),f.insertStyleElement=p();i()(g.Z,f),g.Z&&g.Z.locals&&g.Z.locals},76380:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMzUzNTUgMC42NDY0NDdDMS4xNTgyOSAwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAwLjY0NjQ0NyAwLjY0NjQ0N0MwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAxLjE1ODI5IDAuNjQ2NDQ3IDEuMzUzNTVMMS4zNTM1NSAwLjY0NjQ0N1pNOC42NDY0NSA5LjM1MzU1QzguODQxNzEgOS41NDg4MiA5LjE1ODI5IDkuNTQ4ODIgOS4zNTM1NSA5LjM1MzU1QzkuNTQ4ODIgOS4xNTgyOSA5LjU0ODgyIDguODQxNzEgOS4zNTM1NSA4LjY0NjQ1TDguNjQ2NDUgOS4zNTM1NVpNOS4zNTM1NSAxLjM1MzU1QzkuNTQ4ODIgMS4xNTgyOSA5LjU0ODgyIDAuODQxNzA5IDkuMzUzNTUgMC42NDY0NDdDOS4xNTgyOSAwLjQ1MTE4NCA4Ljg0MTcxIDAuNDUxMTg0IDguNjQ2NDUgMC42NDY0NDdMOS4zNTM1NSAxLjM1MzU1Wk0wLjY0NjQ0NyA4LjY0NjQ1QzAuNDUxMTg1IDguODQxNzEgMC40NTExODUgOS4xNTgyOSAwLjY0NjQ0NyA5LjM1MzU1QzAuODQxNzA5IDkuNTQ4ODEgMS4xNTgyOSA5LjU0ODgxIDEuMzUzNTUgOS4zNTM1NUwwLjY0NjQ0NyA4LjY0NjQ1Wk0wLjY0NjQ0NyAxLjM1MzU1TDguNjQ2NDUgOS4zNTM1NUw5LjM1MzU1IDguNjQ2NDVMMS4zNTM1NSAwLjY0NjQ0N0wwLjY0NjQ0NyAxLjM1MzU1Wk04LjY0NjQ1IDAuNjQ2NDQ3TDAuNjQ2NDQ3IDguNjQ2NDVMMS4zNTM1NSA5LjM1MzU1TDkuMzUzNTUgMS4zNTM1NUw4LjY0NjQ1IDAuNjQ2NDQ3WiIgZmlsbD0iIzRGNEY0RiIvPgo8L3N2Zz4K"},88291:(e,n,t)=>{function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
2
+ "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[658,3222,8291],{59165:(e,n,t)=>{t.d(n,{_l:()=>l,gc:()=>JsonView});var o=t(87363);const isDate=e=>!!e&&e instanceof Date;function quoteString(e,n){return void 0===n&&(n=!1),!e||n?`"${e}"`:e}function ExpandableObject(e){let{field:n,value:t,data:i,lastElement:r,openBracket:l,closeBracket:a,level:s,style:d,shouldExpandNode:c,clickToExpandNode:u,outerRef:p}=e;const x=(0,o.useRef)(!1),[m,f,g]=function useBool(e){const[n,t]=(0,o.useState)(e());return[n,()=>t((e=>!e)),t]}((()=>c(s,t,n))),h=(0,o.useRef)(null);(0,o.useEffect)((()=>{x.current?g(c(s,t,n)):x.current=!0}),[c]);const b=m?d.collapseIcon:d.expandIcon,N=m?"collapse JSON":"expand JSON",j=(0,o.useId)(),v=s+1,y=i.length-1,onKeyDown=e=>{if("ArrowRight"===e.key||"ArrowLeft"===e.key)e.preventDefault(),g("ArrowRight"===e.key);else if("ArrowUp"===e.key||"ArrowDown"===e.key){e.preventDefault();const n="ArrowUp"===e.key?-1:1;if(!p.current)return;const t=p.current.querySelectorAll("[role=button]");let o=-1;for(let e=0;e<t.length;e++)if(0===t[e].tabIndex){o=e;break}if(o<0)return;const i=(o+n+t.length)%t.length;t[o].tabIndex=-1,t[i].tabIndex=0,t[i].focus()}},onClick=()=>{var e;f();const n=h.current;if(!n)return;const t=null===(e=p.current)||void 0===e?void 0:e.querySelector('[role=button][tabindex="0"]');t&&(t.tabIndex=-1),n.tabIndex=0,n.focus()};return(0,o.createElement)("div",{className:d.basicChildStyle,role:"treeitem","aria-expanded":m,"aria-selected":void 0},(0,o.createElement)("span",{className:b,onClick,onKeyDown,role:"button","aria-label":N,"aria-expanded":m,"aria-controls":m?j:void 0,ref:h,tabIndex:0===s?0:-1}),(n||""===n)&&(u?(0,o.createElement)("span",{className:d.clickableLabel,onClick,onKeyDown},quoteString(n,d.quotesForFieldNames),":"):(0,o.createElement)("span",{className:d.label},quoteString(n,d.quotesForFieldNames),":")),(0,o.createElement)("span",{className:d.punctuation},l),m?(0,o.createElement)("ul",{id:j,role:"group"},i.map(((e,n)=>(0,o.createElement)(DataRender,{key:e[0]||n,field:e[0],value:e[1],style:d,lastElement:n===y,level:v,shouldExpandNode:c,clickToExpandNode:u,outerRef:p})))):(0,o.createElement)("span",{className:d.collapsedContent,onClick,onKeyDown}),(0,o.createElement)("span",{className:d.punctuation},a),!r&&(0,o.createElement)("span",{className:d.punctuation},","))}function EmptyObject(e){let{field:n,openBracket:t,closeBracket:i,lastElement:r,style:l}=e;return(0,o.createElement)("div",{className:l.basicChildStyle,role:"treeitem","aria-selected":void 0},(n||""===n)&&(0,o.createElement)("span",{className:l.label},quoteString(n,l.quotesForFieldNames),":"),(0,o.createElement)("span",{className:l.punctuation},t),(0,o.createElement)("span",{className:l.punctuation},i),!r&&(0,o.createElement)("span",{className:l.punctuation},","))}function JsonObject(e){let{field:n,value:t,style:o,lastElement:i,shouldExpandNode:r,clickToExpandNode:l,level:a,outerRef:s}=e;return 0===Object.keys(t).length?EmptyObject({field:n,openBracket:"{",closeBracket:"}",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:a,openBracket:"{",closeBracket:"}",style:o,shouldExpandNode:r,clickToExpandNode:l,data:Object.keys(t).map((e=>[e,t[e]])),outerRef:s})}function JsonArray(e){let{field:n,value:t,style:o,lastElement:i,level:r,shouldExpandNode:l,clickToExpandNode:a,outerRef:s}=e;return 0===t.length?EmptyObject({field:n,openBracket:"[",closeBracket:"]",lastElement:i,style:o}):ExpandableObject({field:n,value:t,lastElement:i||!1,level:r,openBracket:"[",closeBracket:"]",style:o,shouldExpandNode:l,clickToExpandNode:a,data:t.map((e=>[void 0,e])),outerRef:s})}function JsonPrimitiveValue(e){let n,{field:t,value:i,style:r,lastElement:l}=e,a=r.otherValue;var s;return null===i?(n="null",a=r.nullValue):void 0===i?(n="undefined",a=r.undefinedValue):"string"==typeof(s=i)||s instanceof String?(n=quoteString(i,!r.noQuotesForStringValues),a=r.stringValue):(e=>"boolean"==typeof e||e instanceof Boolean)(i)?(n=i?"true":"false",a=r.booleanValue):(e=>"number"==typeof e||e instanceof Number)(i)?(n=i.toString(),a=r.numberValue):(e=>"bigint"==typeof e||e instanceof BigInt)(i)?(n=`${i.toString()}n`,a=r.numberValue):n=isDate(i)?i.toISOString():i.toString(),(0,o.createElement)("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||""===t)&&(0,o.createElement)("span",{className:r.label},quoteString(t,r.quotesForFieldNames),":"),(0,o.createElement)("span",{className:a},n),!l&&(0,o.createElement)("span",{className:r.punctuation},","))}function DataRender(e){const n=e.value;return t=n,Array.isArray(t)?(0,o.createElement)(JsonArray,Object.assign({},e)):(e=>e instanceof Object&&null!==e)(n)&&!isDate(n)?(0,o.createElement)(JsonObject,Object.assign({},e)):(0,o.createElement)(JsonPrimitiveValue,Object.assign({},e));var t}var i="_2bkNM";const r={container:"_2IvMF _GzYRV",basicChildStyle:i,label:"_1MGIk",clickableLabel:"_2YKJg _1MGIk _1MFti",nullValue:"_2T6PJ",undefinedValue:"_1Gho6",stringValue:"_vGjyY",booleanValue:"_3zQKs",numberValue:"_1bQdo",otherValue:"_1xvuR",punctuation:"_3uHL6 _3eOF8",collapseIcon:"_oLqym _f10Tu _1MFti _1LId0",expandIcon:"_2AXVT _f10Tu _1MFti _1UmXx",collapsedContent:"_2KJWg _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},l={container:"_11RoI _GzYRV",basicChildStyle:i,label:"_2bSDX",clickableLabel:"_1RQEj _2bSDX _1MFti",nullValue:"_LaAZe",undefinedValue:"_GTKgm",stringValue:"_Chy1W",booleanValue:"_2vRm-",numberValue:"_2bveF",otherValue:"_1prJR",punctuation:"_gsbQL _3eOF8",collapseIcon:"_3QHg2 _f10Tu _1MFti _1LId0",expandIcon:"_17H2C _f10Tu _1MFti _1UmXx",collapsedContent:"_3fDAz _1pNG9 _1MFti",noQuotesForStringValues:!1,quotesForFieldNames:!1},allExpanded=()=>!0,JsonView=e=>{let{data:n,style:t=r,shouldExpandNode:i=allExpanded,clickToExpandNode:l=!1,...a}=e;const s=(0,o.useRef)(null);return(0,o.createElement)("div",Object.assign({"aria-label":"JSON view"},a,{className:t.container,ref:s,role:"tree"}),(0,o.createElement)(DataRender,{value:n,style:t,lastElement:!0,level:0,shouldExpandNode:i,clickToExpandNode:l,outerRef:s}))}},13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var o=t(34988),i=t(87363),r=t(36115),l=t(59165),a=t(65515),s=t.n(a),d=t(22976),c=t.n(d),u=t(47514);const p=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,a=e.matchingOptions,d=void 0===a?{}:a,p=e.anyData,x=e.onClose,m=(0,i.useRef)(null),f=(0,i.useState)(),g=(0,o.Z)(f,2),h=g[0],b=g[1],N=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,i.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[o],i=t.after[o];e[o]={after:i,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!i.visibleOPVs.includes(e)}))}};for(var o in t.before)n();b(e)}else b(void 0)}),[t]);var j=function isExpanded(e,n,t){var o=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(h&&o&&h[o]&&JSON.stringify(h[o].before)!==JSON.stringify(h[o].after))};if(void 0!==n.priceFeatureGroupNo){var v,y,D=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:r.ii,ref:m,children:[(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["PriceFeatureGroup #",D.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("div",{children:[N(D.catalogId,"Catalog ID"),N(D._id,"priceFeatureGroup ID"),N(null===(v=D.priceFeatureGroupText)||void 0===v?void 0:v.DE,"priceFeatureGroupText"),N(D.percentageSurcharges,"percentageSurcharges"),N(D.isPercentage,"isPercentage"),N(D.comment,"comment"),N(D.featureNos,"Feature References"),N(D.additionalPrice,"Additional Price"),N(D.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(y=D.finishes)||void 0===y?void 0:y.map((function(e){return(0,u.jsxs)("tr",{className:s()(e.sequence===D.activeCombination?r.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",D.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:j,data:h,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}if(void 0!==n.Number){var O=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",N(O.Number,"Number")]}),N(O.Type,"Type"),N(O.Prio,"Priority"),N(O.Options,"Options"),N(O.enabled?"Yes":"No","Enabled"),N(O.Number,"Decision Number"),N(O.activeCombination,"Active Combination Index"),N(O.disableHistory,"Disabled History"),O.DOC&&O.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),O.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[N(n,"doc Index"),N(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:N(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[N(e.Type,"Action Type"),N(e.FeatureRef,"Feature Ref"),N(e.OptionCodex,"OptionCodex"),N(e.OptionRef,"OptionRef"),N(e.OptionRefCodex,"OptionRefCodex"),N(e.OptionValueRefCodex,"OptionValueRefCodex"),N(e.DecisionNr,"DecisionNr")]},n)}))})]}),N(e.ValidOptionValues,"Valid Option Values"),N(e.RefLevel,"RefLevel"),N(e.ValidOptions,"Valid Options")]},n)}))]}),N(O.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",O.DOC&&O.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:j,data:h,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}var _,w=n;return(0,u.jsx)(c(),{nodeRef:m,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:m,className:r.ii,children:[(0,u.jsx)("div",{className:r.UF,onClick:function onClick(){return null==x?void 0:x()}}),(0,u.jsxs)("h2",{className:s()(r.uR,"handle"),children:["Decision #",w.decisionNo]}),(0,u.jsxs)("div",{children:[N(w.catalogId,"Catalog ID"),N(w._id,"Decision ID"),N(w.prio,"Priority"),N(w.decisionType,"Decision Type"),N(w.enabled?"Enabled":"Disabled","Status"),N(w.deleted?"Yes":"No","Deleted"),N(w.featureRefs,"Feature References"),N(w.disableHistory,"Disable History"),N(w.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:r.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:r.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(_=w.optionCombinations)||void 0===_?void 0:_.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return N(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!h&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(l.gc,{shouldExpandNode:j,data:h,style:l._l})]}),!!p&&(0,u.jsx)(l.gc,{data:p,style:l._l})]})})}},70658:(e,n,t)=>{t.r(n),t.d(n,{default:()=>z});var o=t(80248),i=t(84658),r=t(34988),l=t(88291),a=t(50747),s=t.n(a),d=t(87363),c=t(51203),u=t(93379),p=t.n(u),x=t(7795),m=t.n(x),f=t(90569),g=t.n(f),h=t(3565),b=t.n(h),N=t(19216),j=t.n(N),v=t(44589),y=t.n(v),D=t(69288),O={};O.styleTagTransform=y(),O.setAttributes=b(),O.insert=g().bind(null,"head"),O.domAPI=m(),O.insertStyleElement=j();p()(D.ZP,O);D.ZP&&D.ZP.locals&&D.ZP.locals;var _=t(91923),w=t(9420),S=t(65515),E=t.n(S),k=t(88683),A=(t(76839),t(13222)),M=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const z=(0,w.Pi)((function PriceAnalyzer(e){var n=Object.assign({},((0,l.Z)(e),e)),t=(0,_.NP)(),o=t.divaWebPlanner.getDivaArticles(),a=(0,d.useState)(!1),u=(0,r.Z)(a,2),p=u[0],x=u[1];(0,d.useEffect)((function(){var e=function(){var e=(0,i.Z)(s().mark((function _callee(){return s().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.DivaUtils.Sleep(1e3);case 2:x(!p);case 3:case"end":return e.stop()}}),_callee)})));return function asyncFunct(){return e.apply(this,arguments)}}();e()}),[t.tabGroupState.allTabGroups]),(0,d.useEffect)((function(){var e=t.divaWebPlanner.actSet();return e&&!e.logDecisions&&(e.logDecisions=!0),function(){var e=t.divaWebPlanner.actSet();e&&(e.logDecisions=!1)}}),[t.uiState.isLoading]);var m=Object.values(null!=o?o:{}).find((function(e){return 1==e.posNr})),f=(0,d.useState)(),g=(0,r.Z)(f,2),h=g[0],b=g[1],N=(0,d.useState)(),j=(0,r.Z)(N,2),v=j[0],y=j[1];if(!m)return(0,M.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:E()(n.className,D.fm),style:{zIndex:800},children:(0,M.jsx)("a",{className:D.Fs,children:"Price analyzer - plann article"})}));var O=m.CatalogData.isIDMFormat,w=Object.values(m.decisionDebugStacks).findLast((function(e){return e})),S=null==w?void 0:w.prices;if(!S)return(0,M.jsx)("div",_objectSpread(_objectSpread({},n),{},{className:E()(n.className,D.fm),style:{zIndex:800},children:(0,M.jsx)("a",{className:D.Fs,children:"Price analyzer - change config"})}));return O?S?(0,M.jsxs)("div",_objectSpread(_objectSpread({},n),{},{className:E()(n.className,D.fm,t.uiState.configSettingsIsExpanded?c.NF:void 0),children:[(0,M.jsxs)("a",{className:D.Fs,children:["Price history",(0,M.jsx)("input",{value:v,onChange:function onChange(e){return y(e.target.value)},placeholder:"filter option ohne OPT",className:D.hX})]}),(0,M.jsxs)("div",{children:[(0,M.jsxs)("table",{className:D.Kz,children:[(0,M.jsx)("thead",{children:(0,M.jsx)("tr",{className:D.$Q,children:(0,M.jsx)("th",{children:1})})}),(0,M.jsx)("tbody",{children:S.map((function(e,n){return(0,M.jsx)("tr",{className:D.$Q,children:(0,M.jsx)("th",{onClick:function onClick(){return function onClick(e,n){var t;e==(null==h||null===(t=h.priceFeatureGroup)||void 0===t?void 0:t.priceFeatureGroupNo)?b(void 0):b(n)}(e.nr,e)},children:e.text})},n)}))})]}),h&&(0,M.jsx)("div",{className:D.EC,children:(0,M.jsx)(A.default,{decision:h.priceFeatureGroup,anyData:{prices:m.catalogArticle.idmPrices,variantData:h.variantValues},onClose:function onClose(){return b(void 0)}})})]})]})):(0,M.jsx)(M.Fragment,{children:" "}):(0,M.jsx)(M.Fragment,{children:"only implemented for IDM enricher data"})}))},33981:(e,n,t)=>{t.d(n,{$Q:()=>x,EC:()=>N,Fs:()=>b,Kz:()=>p,Se:()=>m,UF:()=>g,ZP:()=>O,ao:()=>D,dY:()=>y,fm:()=>h,hX:()=>f,ii:()=>j,uR:()=>v});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r),a=t(61667),s=t.n(a),d=new URL(t(76380),t.b),c=l()(i()),u=s()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n right: 0px;\n z-index: 100000;\n width: 600px;\n height: calc(100vh - 60px);\n background-color: #fff;\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var p="index-module--sS9Y_",x="index-module--O5GJU",m="index-module--xNfvC",f="index-module--oALcg",g="index-module--HpoCh",h="index-module--bBk4P",b="index-module--sBWMs",N="index-module--XrXfq",j="index-module--uzZoJ",v="index-module--wrmAf",y="index-module--GsJQn",D="index-module--gf_Q8";const O=c},69288:(e,n,t)=>{t.d(n,{$Q:()=>d,EC:()=>p,Fs:()=>u,Kz:()=>a,ZP:()=>x,fm:()=>c,hX:()=>s});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--TMuWx {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.index-module--YulNJ {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--TMuWx thead {\n font-weight: bold !important;\n}\n\n.index-module--TMuWx thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--aAXou {\n text-align: left;\n}\n.index-module--aAXou:first-child {\n height: 20px;\n}\n\n.index-module--aAXou th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--gR4ES {\n overflow: auto;\n left: 50px;\n height: 100%;\n}\n.index-module--E6gUV {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--FCFmD {\n z-index: 100;\n position: fixed;\n top: 60px;\n right: 0px;\n z-index: 100000;\n width: 600px;\n height: calc(100vh - 60px);\n background-color: #fff;\n overflow: auto;\n}\n\n.index-module--aeMhl {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n}\n\n.index-module--NUFfA {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--sd0v0 {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--YZIPe {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--YZIPe th,\n.index-module--YZIPe td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--YZIPe th {\n background-color: #f2f2f2;\n}\n",""]);var a="index-module--TMuWx",s="index-module--YulNJ",d="index-module--aAXou",c="index-module--gR4ES",u="index-module--E6gUV",p="index-module--FCFmD";const x=l},89965:(e,n,t)=>{t.d(n,{NF:()=>s,ZP:()=>c,ec:()=>a,pb:()=>d});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,".index-module--NA4Nc {\n position: absolute;\n margin-left: 50px;\n height: 92%;\n background-color: var(--settingsBackgroundColor);\n padding-left: 5px;\n overflow: auto;\n display: flex;\n flex-direction: column;\n box-shadow: inset 0px 4px 40px 1px rgba(0, 0, 0, 0.1);\n border-right: 2px solid;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--zxgl3 {\n width: calc(25.5%) !important;\n}\n.index-module--zxgl3 {\n background-color: white;\n}\n.index-module--WGNyK {\n z-index: 590;\n background-color: rgba(250, 250, 250, 0.5);\n width: calc(63% - 50px);\n /*width: calc(69% - 50px); pfister*/\n}\n",""]);var a="index-module--NA4Nc",s="index-module--zxgl3",d="index-module--WGNyK";const c=l},72035:(e,n,t)=>{t.d(n,{Z:()=>a});var o=t(8081),i=t.n(o),r=t(23645),l=t.n(r)()(i());l.push([e.id,"/* base styles */\n\n._GzYRV {\n line-height: 1.2;\n white-space: pre-wrap;\n white-space: -moz-pre-wrap;\n white-space: -pre-wrap;\n white-space: -o-pre-wrap;\n word-wrap: break-word;\n}\n\n._3eOF8 {\n margin-right: 5px;\n font-weight: bold;\n}\n\n._3eOF8 + ._3eOF8 {\n margin-left: -5px;\n}\n\n._1MFti {\n cursor: pointer;\n}\n\n._f10Tu {\n font-size: 1.2em;\n margin-right: 5px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n._1UmXx::after {\n content: '\\25B8';\n}\n\n._1LId0::after {\n content: '\\25BE';\n}\n\n._1pNG9 {\n margin-right: 5px;\n}\n\n._1pNG9::after {\n content: '...';\n font-size: 0.8em;\n}\n\n._2IvMF {\n background: #eee;\n}\n\n._2bkNM {\n margin: 0 10px;\n padding: 0;\n}\n\n._2bkNM > ul {\n margin: 0;\n padding: 0;\n}\n\n/* default light style */\n._1MGIk {\n font-weight: 600;\n margin-right: 5px;\n color: #000000;\n}\n\n._2YKJg {\n}\n\n._3uHL6 {\n color: #000000;\n}\n\n._2T6PJ {\n color: #df113a;\n}\n\n._1Gho6 {\n color: #df113a;\n}\n\n._vGjyY {\n color: rgb(42, 63, 60);\n}\n\n._1bQdo {\n color: #0b75f5;\n}\n\n._3zQKs {\n color: rgb(70, 144, 56);\n}\n\n._1xvuR {\n color: #43413d;\n}\n\n._oLqym {\n color: #000000;\n}\n\n._2AXVT {\n color: #000000;\n}\n\n._2KJWg {\n color: #000000;\n}\n\n/* default dark style */\n._11RoI {\n background: rgb(0, 43, 54);\n}\n\n._17H2C {\n color: rgb(253, 246, 227);\n}\n\n._3QHg2 {\n color: rgb(253, 246, 227);\n}\n\n._3fDAz {\n color: rgb(253, 246, 227);\n}\n\n._2bSDX {\n font-weight: bolder;\n margin-right: 5px;\n color: rgb(253, 246, 227);\n}\n\n._1RQEj {\n}\n\n._gsbQL {\n color: rgb(253, 246, 227);\n}\n\n._LaAZe {\n color: rgb(129, 181, 172);\n}\n\n._GTKgm {\n color: rgb(129, 181, 172);\n}\n\n._Chy1W {\n color: rgb(203, 75, 22);\n}\n\n._2bveF {\n color: rgb(211, 54, 130);\n}\n\n._2vRm- {\n color: rgb(174, 129, 255);\n}\n\n._1prJR {\n color: rgb(38, 139, 210);\n}\n",""]);const a=l},36115:(e,n,t)=>{t.d(n,{$Q:()=>f.$Q,EC:()=>f.EC,Fs:()=>f.Fs,Kz:()=>f.Kz,Se:()=>f.Se,UF:()=>f.UF,ao:()=>f.ao,dY:()=>f.dY,fm:()=>f.fm,hX:()=>f.hX,ii:()=>f.ii,uR:()=>f.uR});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),f=t(33981),g={};g.styleTagTransform=m(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(f.ZP,g),f.ZP&&f.ZP.locals&&f.ZP.locals},51203:(e,n,t)=>{t.d(n,{NF:()=>f.NF,ec:()=>f.ec,pb:()=>f.pb});var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),f=t(89965),g={};g.styleTagTransform=m(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(f.ZP,g),f.ZP&&f.ZP.locals&&f.ZP.locals},76839:(e,n,t)=>{var o=t(93379),i=t.n(o),r=t(7795),l=t.n(r),a=t(90569),s=t.n(a),d=t(3565),c=t.n(d),u=t(19216),p=t.n(u),x=t(44589),m=t.n(x),f=t(72035),g={};g.styleTagTransform=m(),g.setAttributes=c(),g.insert=s().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=p();i()(f.Z,g),f.Z&&f.Z.locals&&f.Z.locals},76380:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMzUzNTUgMC42NDY0NDdDMS4xNTgyOSAwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAwLjY0NjQ0NyAwLjY0NjQ0N0MwLjQ1MTE4NCAwLjg0MTcwOSAwLjQ1MTE4NCAxLjE1ODI5IDAuNjQ2NDQ3IDEuMzUzNTVMMS4zNTM1NSAwLjY0NjQ0N1pNOC42NDY0NSA5LjM1MzU1QzguODQxNzEgOS41NDg4MiA5LjE1ODI5IDkuNTQ4ODIgOS4zNTM1NSA5LjM1MzU1QzkuNTQ4ODIgOS4xNTgyOSA5LjU0ODgyIDguODQxNzEgOS4zNTM1NSA4LjY0NjQ1TDguNjQ2NDUgOS4zNTM1NVpNOS4zNTM1NSAxLjM1MzU1QzkuNTQ4ODIgMS4xNTgyOSA5LjU0ODgyIDAuODQxNzA5IDkuMzUzNTUgMC42NDY0NDdDOS4xNTgyOSAwLjQ1MTE4NCA4Ljg0MTcxIDAuNDUxMTg0IDguNjQ2NDUgMC42NDY0NDdMOS4zNTM1NSAxLjM1MzU1Wk0wLjY0NjQ0NyA4LjY0NjQ1QzAuNDUxMTg1IDguODQxNzEgMC40NTExODUgOS4xNTgyOSAwLjY0NjQ0NyA5LjM1MzU1QzAuODQxNzA5IDkuNTQ4ODEgMS4xNTgyOSA5LjU0ODgxIDEuMzUzNTUgOS4zNTM1NUwwLjY0NjQ0NyA4LjY0NjQ1Wk0wLjY0NjQ0NyAxLjM1MzU1TDguNjQ2NDUgOS4zNTM1NUw5LjM1MzU1IDguNjQ2NDVMMS4zNTM1NSAwLjY0NjQ0N0wwLjY0NjQ0NyAxLjM1MzU1Wk04LjY0NjQ1IDAuNjQ2NDQ3TDAuNjQ2NDQ3IDguNjQ2NDVMMS4zNTM1NSA5LjM1MzU1TDkuMzUzNTUgMS4zNTM1NUw4LjY0NjQ1IDAuNjQ2NDQ3WiIgZmlsbD0iIzRGNEY0RiIvPgo8L3N2Zz4K"},88291:(e,n,t)=>{function _objectDestructuringEmpty(e){if(null==e)throw new TypeError("Cannot destructure "+e)}t.d(n,{Z:()=>_objectDestructuringEmpty})}}]);
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 7078.diva-web-planner-react.umd.min.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7078],{13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>h});var i=t(34988),r=t(87363),o=t(36115),s=t(59165),l=t(65515),a=t.n(l),d=t(22976),c=t.n(d),u=t(47514);const h=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,l=e.matchingOptions,d=void 0===l?{}:l,h=e.anyData,p=e.onClose,f=(0,r.useRef)(null),x=(0,r.useState)(),m=(0,i.Z)(x,2),g=m[0],v=m[1],j=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,r.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[i],r=t.after[i];e[i]={after:r,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!r.visibleOPVs.includes(e)}))}};for(var i in t.before)n();v(e)}else v(void 0)}),[t]);var b=function isExpanded(e,n,t){var i=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(g&&i&&g[i]&&JSON.stringify(g[i].before)!==JSON.stringify(g[i].after))};if(void 0!==n.priceFeatureGroupNo){var y,O,C=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:o.ii,ref:f,children:[(0,u.jsxs)("h2",{className:a()(o.uR,"handle"),children:["PriceFeatureGroup #",C.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:o.UF,onClick:function onClick(){return null==p?void 0:p()}}),(0,u.jsxs)("div",{children:[j(C.catalogId,"Catalog ID"),j(C._id,"priceFeatureGroup ID"),j(null===(y=C.priceFeatureGroupText)||void 0===y?void 0:y.DE,"priceFeatureGroupText"),j(C.percentageSurcharges,"percentageSurcharges"),j(C.isPercentage,"isPercentage"),j(C.comment,"comment"),j(C.featureNos,"Feature References"),j(C.additionalPrice,"Additional Price"),j(C.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:o.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:o.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(O=C.finishes)||void 0===O?void 0:O.map((function(e){return(0,u.jsxs)("tr",{className:a()(e.sequence===C.activeCombination?o.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",C.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return j(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(s.gc,{shouldExpandNode:b,data:g,style:s._l})]}),!!h&&(0,u.jsx)(s.gc,{data:h,style:s._l})]})})}if(void 0!==n.Number){var N=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:f,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:o.UF,onClick:function onClick(){return null==p?void 0:p()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",j(N.Number,"Number")]}),j(N.Type,"Type"),j(N.Prio,"Priority"),j(N.Options,"Options"),j(N.enabled?"Yes":"No","Enabled"),j(N.Number,"Decision Number"),j(N.activeCombination,"Active Combination Index"),j(N.disableHistory,"Disabled History"),N.DOC&&N.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),N.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[j(n,"doc Index"),j(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:j(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[j(e.Type,"Action Type"),j(e.FeatureRef,"Feature Ref"),j(e.OptionCodex,"OptionCodex"),j(e.OptionRef,"OptionRef"),j(e.OptionRefCodex,"OptionRefCodex"),j(e.OptionValueRefCodex,"OptionValueRefCodex"),j(e.DecisionNr,"DecisionNr")]},n)}))})]}),j(e.ValidOptionValues,"Valid Option Values"),j(e.ValidOptions,"Valid Options")]},n)}))]}),j(N.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",N.DOC&&N.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return j(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(s.gc,{shouldExpandNode:b,data:g,style:s._l})]}),!!h&&(0,u.jsx)(s.gc,{data:h,style:s._l})]})})}var S,w=n;return(0,u.jsx)(c(),{nodeRef:f,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:f,className:o.ii,children:[(0,u.jsx)("div",{className:o.UF,onClick:function onClick(){return null==p?void 0:p()}}),(0,u.jsxs)("h2",{className:a()(o.uR,"handle"),children:["Decision #",w.decisionNo]}),(0,u.jsxs)("div",{children:[j(w.catalogId,"Catalog ID"),j(w._id,"Decision ID"),j(w.prio,"Priority"),j(w.decisionType,"Decision Type"),j(w.enabled?"Enabled":"Disabled","Status"),j(w.deleted?"Yes":"No","Deleted"),j(w.featureRefs,"Feature References"),j(w.disableHistory,"Disable History"),j(w.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:o.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:o.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(S=w.optionCombinations)||void 0===S?void 0:S.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return j(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(s.gc,{shouldExpandNode:b,data:g,style:s._l})]}),!!h&&(0,u.jsx)(s.gc,{data:h,style:s._l})]})})}},52654:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});t(87363);var i=t(28317),r=t(9420),o=t(47514);const s=(0,r.Pi)((function AsyncRender(e){var n=e.optionSnapshot,t=e.onClick,r=e.showDiffOnly,s=e.allOpen,l=function use(e){if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:("pending"===e.status||(e.status="pending",e.then((function(n){e.status="fulfilled",e.value=n}),(function(n){e.status="rejected",e.reason=n}))),e)}(n.promise);return l?(0,o.jsx)(i.default,{onClick:t,articles:l.articleSnapshot,price:l.price,title:n.title,allOpen:s,showDiffOnly:r,configStepKey:n.key}):(0,o.jsx)(o.Fragment,{})}))},28317:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});var i=t(80248),r=t(34988),o=t(87363),s=t(9420),l=t(93476),a=t(57446),d=t.n(a),c=t(91923),u=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=function getPartlistArticles(e,n){for(var t in e.partlistArticles){var i=e.partlistArticles[t];if(i.hasPartlistArticle)n.push(p(i,!0)),n=h(i,n);else{for(var r=!1,o=0;o<n.length;o++)if(i.articleCodex===n[o].articleCodex&&i.retailArticleNr===n[o].retailArticleNr&&i.retailPrefix===n[o].retailPrefix&&i.catalogCodex===n[o].catalogCodex&&JSON.stringify(i.VariantValues)==JSON.stringify(n[o].VariantValues)){r=!0,n[o].quantity+=i.quantity;break}r||n.push(p(i))}}return n},p=function getPartlsitArticleObj(e,n){var t,i,r,o,s,l;return{name:(n?"Hülse: ":"")+e.posNr+" "+e.name,price:n?"---":e.price,retailArticleNr:null!==(t=e.retailArticleNr)&&void 0!==t?t:"",retailPrefix:null!==(i=e.retailPrefix)&&void 0!==i?i:"",quantity:e.quantity,ruleDesc:null!==(r=e.ruleDesc)&&void 0!==r?r:"",articleCodex:e.articleCodex,catalogCodex:null!==(o=e.catalogCodex)&&void 0!==o?o:"",codex:e.articleCodex,rule:e.ruleDesc,decision:e.partlistDecisionNo?null!==(s=null===(l=e.partListParentArticle)||void 0===l||null===(l=l.catalogArticle.partlistDecisions)||void 0===l?void 0:l["D"+e.partlistDecisionNo])&&void 0!==s?s:e.CatalogData.loadedDecisions.find((function(n){return n.decisionNo===e.partlistDecisionNo})):void 0,partlistRule:e.partlistRule}};const f=(0,s.Pi)((function PartlistTable(e){var n=e.onClick,t=e.articles,i=e.price,s=e.title,a=e.allOpen,p=e.configStepKey,f=e.showDiffOnly,x=(0,o.useState)(),m=(0,r.Z)(x,2),g=m[0],v=m[1],j=(0,c.NP)();return(0,o.useEffect)((function(){var e,n=j.settingsState.partlistArticlesInOverview[p];if((void 0===g||!n||n.totalCount===n.items.length)&&(void 0===g||f)){var i=[];for(var r in t)i=h(t[r],i);f&&n&&n.totalCount===n.items.length&&(i=i.map((function(e){return _objectSpread(_objectSpread({},e),{},{visible:n.items.filter((function(n){return n.articles.find((function(n){return n.plaCodex==e.articleCodex&&e.retailArticleNr==n.retailArticleNr}))})).length!==n.items.length})})));var o=_objectSpread({},j.settingsState.partlistArticlesInOverview);null!==(e=o[p])&&void 0!==e&&e.items&&!o[p].items.find((function(e){return e.opv===s}))&&(o[p].items.push({opv:s,articles:i.map((function(e){return{plaCodex:e.articleCodex,retailArticleNr:e.retailArticleNr,quantity:e.quantity}}))}),j.settingsState.setPartlistArticlesInOverview(o)),v(i)}}),[j.settingsState.partlistArticlesInOverview]),(0,u.jsx)(d(),{trigger:(0,u.jsx)("div",{style:{cursor:"pointer"},children:"Stücklistenartikel: "+(null!=g?g:[]).length+" preis: "+i+" -- "+s}),open:""==s||a,easing:"ease",transitionTime:100,children:(0,u.jsxs)("table",{className:l.Kz,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{className:l.$Q,children:[(0,u.jsx)("th",{children:"Name"}),(0,u.jsx)("th",{children:"Artikle Nr."}),(0,u.jsx)("th",{children:"CatalogCodex"}),(0,u.jsx)("th",{children:"Preis"}),(0,u.jsx)("th",{children:"Nr"}),(0,u.jsx)("th",{children:"Prefix"}),(0,u.jsx)("th",{children:"Menge"}),(0,u.jsx)("th",{children:"Rule"}),(0,u.jsx)("th",{children:"decision"})]})}),(0,u.jsx)("tbody",{children:(null!=g?g:[]).filter((function(e){return!f||e.visible||void 0===e.visible})).map((function(e){var t,i,r;return(0,u.jsxs)("tr",{className:l.$Q,children:[(0,u.jsxs)("th",{children:[" ",e.name]}),(0,u.jsxs)("th",{children:[e.articleCodex," "]}),(0,u.jsxs)("th",{children:[e.catalogCodex," "]}),(0,u.jsxs)("th",{children:[" ",null!==(t=e.price)&&void 0!==t?t:0," "]}),(0,u.jsxs)("th",{children:[" ",e.retailArticleNr," "]}),(0,u.jsxs)("th",{children:[e.retailPrefix," "]}),(0,u.jsxs)("th",{children:[e.quantity," "]}),(0,u.jsx)("th",{children:e.rule}),e.decision&&(0,u.jsx)("th",{onClick:function onClick(){return n({decision:e.decision,rule:e.partlistRule})},children:(null===(i=e.decision)||void 0===i?void 0:i.Number)||(null===(r=e.decision)||void 0===r?void 0:r.decisionNo)})]},e.articleCodex+e.retailArticleNr)}))})]})})}))},97078:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var i=t(80248),r=t(34988),o=t(72874),s=t(87363),l=t(51203),a=t(93476),d=t(36115),c=t(91923),u=t(9420),h=t(65515),p=t.n(h),f=t(13222),x=t(32142),m=t(52654),g=t(47514),v=["onMouseDown"];function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const j=(0,u.Pi)((function PartList(e){var n=e.onMouseDown,t=(0,o.Z)(e,v),i=(0,c.NP)(),u=(0,s.useState)(),h=(0,r.Z)(u,2),j=h[0],b=h[1],y=(0,s.useState)(),O=(0,r.Z)(y,2),C=O[0],N=O[1],S=(0,s.useState)(!1),w=(0,r.Z)(S,2),P=w[0],D=w[1],k=(0,s.useState)(!1),A=(0,r.Z)(k,2),F=A[0],R=A[1],_=(0,s.useState)(!0),z=(0,r.Z)(_,2),E=z[0],I=z[1],V=function onClick(e){var n,t,i=e.decision;(i.decisionNo||i.Number)==((null==j||null===(n=j.decision)||void 0===n?void 0:n.Number)||(null==j||null===(t=j.decision)||void 0===t?void 0:t.decisionNo))?b(void 0):b(e)};(0,s.useEffect)((function(){P?setTimeout((function(){return Z()}),400):N([{snapshots:[{promise:new Promise((function(e){var n,t,r;e({articleSnapshot:null!==(n=i.divaWebPlanner.getDivaArticles())&&void 0!==n?n:{},price:null!==(t=null===(r=i.divaWebPlanner.actSet())||void 0===r?void 0:r.getSetPrice())&&void 0!==t?t:0})})),title:"",key:i.settingsState.configChanged.toString()}]}])}),[i.settingsState.configChanged,i.tabGroupState.curConfigStep]);var Z=function updateVariants(){for(var e=[],n={},t=i.settingsState.itemPaletteArr.filter((function(e){return e[1].visible})).map((function(e){return{items:e[1].groups.flatMap((function(e){return e.items.flatMap((function(e){return e}))})),palette:e[1]}})),r=0;r<t.length;r++){for(var o=t[r].items,s=t[r].palette,l=[],a=0;a<o.length;a++){var d=o[a];d.pricePreviewPromise&&(d.text||d.name)&&l.push({promise:d.pricePreviewPromise.promise,title:d.text||d.name,key:s.configStepKey})}n[s.configStepKey]={items:[],totalCount:o.length},e.push({snapshots:l,palette:s})}i.settingsState.setPartlistArticlesInOverview(n),N(e)};return(0,s.useEffect)((function(){var e=i.divaWebPlanner.actSet();e&&(e.logTotalStateForVariants=P)}),[P]),null!=C&&C.length?(0,g.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:p()(t.className,a.fm,i.uiState.configSettingsIsExpanded?l.NF:void 0),style:{zIndex:800},children:[(0,g.jsxs)("a",{className:a.Fs,onMouseDown:n,children:["Stücklisten Übersicht",(0,g.jsxs)("div",{className:a.US,children:[(0,g.jsx)(x.default,{state:P,onChange:function onChange(e){return D(e)},on:"alle",off:"einzeln",width:100}),P&&(0,g.jsx)(x.default,{state:F,onChange:function onChange(e){return R(e)},on:"offen",off:"zu",width:100}),P&&(0,g.jsx)(x.default,{state:E,onChange:function onChange(e){return I(e)},on:"schnittm.",off:"alle",width:100})]})]}),C.map((function(e,n){var t;return(0,g.jsxs)("div",{className:a.EM,children:[!(null===(t=e.palette)||void 0===t||!t.name)&&(0,g.jsx)("div",{children:e.palette.name}),e.snapshots.map((function(e){return(0,g.jsx)(s.Suspense,{children:(0,g.jsx)(m.default,{onClick:V,optionSnapshot:e,allOpen:F,showDiffOnly:E},e.key)})}))]},n)})),j&&(0,g.jsx)("div",{className:d.EC,style:{right:0,zIndex:100},children:(0,g.jsx)(f.default,{decision:j.decision,matchingOptions:j.rule})})]})):(0,g.jsx)(g.Fragment,{})}))},33981:(e,n,t)=>{t.d(n,{$Q:()=>p,EC:()=>j,Fs:()=>v,Kz:()=>h,Se:()=>f,UF:()=>m,ZP:()=>N,ao:()=>C,dY:()=>O,fm:()=>g,hX:()=>x,ii:()=>b,uR:()=>y});var i=t(8081),r=t.n(i),o=t(23645),s=t.n(o),l=t(61667),a=t.n(l),d=new URL(t(76380),t.b),c=s()(r()),u=a()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n left: 500px;\n z-index: 100000;\n width: calc(100vw - 500px);\n pointer-events: none;\n height: calc(100vh - 60px);\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var h="index-module--sS9Y_",p="index-module--O5GJU",f="index-module--xNfvC",x="index-module--oALcg",m="index-module--HpoCh",g="index-module--bBk4P",v="index-module--sBWMs",j="index-module--XrXfq",b="index-module--uzZoJ",y="index-module--wrmAf",O="index-module--GsJQn",C="index-module--gf_Q8";const N=c},36115:(e,n,t)=>{t.d(n,{$Q:()=>x.$Q,EC:()=>x.EC,Fs:()=>x.Fs,Kz:()=>x.Kz,Se:()=>x.Se,UF:()=>x.UF,ao:()=>x.ao,dY:()=>x.dY,fm:()=>x.fm,hX:()=>x.hX,ii:()=>x.ii,uR:()=>x.uR});var i=t(93379),r=t.n(i),o=t(7795),s=t.n(o),l=t(90569),a=t.n(l),d=t(3565),c=t.n(d),u=t(19216),h=t.n(u),p=t(44589),f=t.n(p),x=t(33981),m={};m.styleTagTransform=f(),m.setAttributes=c(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=h();r()(x.ZP,m),x.ZP&&x.ZP.locals&&x.ZP.locals}}]);
2
+ "use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7078],{13222:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});var i=t(34988),r=t(87363),o=t(36115),s=t(59165),l=t(65515),a=t.n(l),d=t(22976),c=t.n(d),u=t(47514);const f=function DecisionVisualization(e){var n=e.decision,t=e.snapshots,l=e.matchingOptions,d=void 0===l?{}:l,f=e.anyData,h=e.onClose,p=(0,r.useRef)(null),x=(0,r.useState)(),m=(0,i.Z)(x,2),g=m[0],v=m[1],b=function renderIfDefined(e,n){return null!=e&&""!==e?(0,u.jsxs)("p",{children:[(0,u.jsxs)("strong",{children:[n,n?":":""]}),Array.isArray(e)?e.join(", "):e]}):null};(0,r.useEffect)((function(){if(t){var e={},n=function _loop(){var n=t.before[i],r=t.after[i];e[i]={after:r,before:n,removedOpvs:n.visibleOPVs.filter((function(e){return!r.visibleOPVs.includes(e)}))}};for(var i in t.before)n();v(e)}else v(void 0)}),[t]);var j=function isExpanded(e,n,t){var i=t;return!(void 0!==t&&!["removedOpvs","after","before"].includes(t))||!!(g&&i&&g[i]&&JSON.stringify(g[i].before)!==JSON.stringify(g[i].after))};if(void 0!==n.priceFeatureGroupNo){var y,O,C=n;return(0,u.jsx)(c(),{nodeRef:p,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{className:o.ii,ref:p,children:[(0,u.jsxs)("h2",{className:a()(o.uR,"handle"),children:["PriceFeatureGroup #",C.priceFeatureGroupNo]}),(0,u.jsx)("div",{className:o.UF,onClick:function onClick(){return null==h?void 0:h()}}),(0,u.jsxs)("div",{children:[b(C.catalogId,"Catalog ID"),b(C._id,"priceFeatureGroup ID"),b(null===(y=C.priceFeatureGroupText)||void 0===y?void 0:y.DE,"priceFeatureGroupText"),b(C.percentageSurcharges,"percentageSurcharges"),b(C.isPercentage,"isPercentage"),b(C.comment,"comment"),b(C.featureNos,"Feature References"),b(C.additionalPrice,"Additional Price"),b(C.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:o.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:o.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"condition"}),(0,u.jsx)("th",{children:"priceField"})]})}),(0,u.jsx)("tbody",{children:null===(O=C.finishes)||void 0===O?void 0:O.map((function(e){return(0,u.jsxs)("tr",{className:a()(e.sequence===C.activeCombination?o.Se:void 0),children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)}),(0,u.jsxs)("td",{children:["PRFG",C.priceFeatureGroupNo+"_"+e.priceField]})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(s.gc,{shouldExpandNode:j,data:g,style:s._l})]}),!!f&&(0,u.jsx)(s.gc,{data:f,style:s._l})]})})}if(void 0!==n.Number){var N=n;return(0,u.jsx)(c(),{nodeRef:p,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:p,style:{userSelect:"text"},children:[(0,u.jsx)("div",{className:o.UF,onClick:function onClick(){return null==h?void 0:h()}}),(0,u.jsxs)("h2",{className:"handle",children:[" Decision Details ",b(N.Number,"Number")]}),b(N.Type,"Type"),b(N.Prio,"Priority"),b(N.Options,"Options"),b(N.enabled?"Yes":"No","Enabled"),b(N.Number,"Decision Number"),b(N.activeCombination,"Active Combination Index"),b(N.disableHistory,"Disabled History"),N.DOC&&N.DOC.length>0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("h3",{children:"Decision Option Combinations:"}),N.DOC.map((function(e,n){var t;return(0,u.jsxs)("div",{className:"decision-option-combination",children:[b(n,"doc Index"),b(e.JsFormula,"Formula"),Object.values(null!==(t=e.Row)&&void 0!==t?t:{}).map((function(e){return(0,u.jsx)(u.Fragment,{children:b(e.join(";"),"Doc Row")})})),e.DA&&e.DA.length>0&&(0,u.jsxs)("div",{children:[(0,u.jsx)("h6",{children:"Decision Actions:"}),(0,u.jsx)("ul",{children:e.DA.map((function(e,n){return(0,u.jsxs)("li",{children:[b(e.Type,"Action Type"),b(e.FeatureRef,"Feature Ref"),b(e.OptionCodex,"OptionCodex"),b(e.OptionRef,"OptionRef"),b(e.OptionRefCodex,"OptionRefCodex"),b(e.OptionValueRefCodex,"OptionValueRefCodex"),b(e.DecisionNr,"DecisionNr")]},n)}))})]}),b(e.ValidOptionValues,"Valid Option Values"),b(e.RefLevel,"RefLevel"),b(e.ValidOptions,"Valid Options")]},n)}))]}),b(N.disableHistory,"Disabled History"),(0,u.jsx)("strong",{children:"Is Valid DOC:"})," ",N.DOC&&N.DOC.length>0?"Yes":"No",(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(s.gc,{shouldExpandNode:j,data:g,style:s._l})]}),!!f&&(0,u.jsx)(s.gc,{data:f,style:s._l})]})})}var S,P=n;return(0,u.jsx)(c(),{nodeRef:p,handle:".handle",bounds:"parent",defaultPosition:void 0,children:(0,u.jsxs)("div",{ref:p,className:o.ii,children:[(0,u.jsx)("div",{className:o.UF,onClick:function onClick(){return null==h?void 0:h()}}),(0,u.jsxs)("h2",{className:a()(o.uR,"handle"),children:["Decision #",P.decisionNo]}),(0,u.jsxs)("div",{children:[b(P.catalogId,"Catalog ID"),b(P._id,"Decision ID"),b(P.prio,"Priority"),b(P.decisionType,"Decision Type"),b(P.enabled?"Enabled":"Disabled","Status"),b(P.deleted?"Yes":"No","Deleted"),b(P.featureRefs,"Feature References"),b(P.disableHistory,"Disable History"),b(P.activeCombination,"Active Combination Seqence")]}),(0,u.jsx)("h3",{className:o.dY,children:"Option Combinations"}),(0,u.jsxs)("table",{className:o.ao,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{children:[(0,u.jsx)("th",{children:"Sequence"}),(0,u.jsx)("th",{children:"Actions"}),(0,u.jsx)("th",{children:"Options Set References"})]})}),(0,u.jsx)("tbody",{children:null===(S=P.optionCombinations)||void 0===S?void 0:S.map((function(e){return(0,u.jsxs)("tr",{children:[(0,u.jsx)("td",{children:e.sequence}),(0,u.jsx)("td",{children:e.actions.join(", ")}),(0,u.jsx)("td",{children:JSON.stringify(e.optionsSetRefs)})]},e._id)}))})]}),(0,u.jsx)("br",{}),!!Object.values(d).length&&(0,u.jsxs)(u.Fragment,{children:["matching conditions",Object.keys(d).map((function(e){return b(e+": "+d[e],"")})),(0,u.jsx)("br",{})]}),!!g&&(0,u.jsxs)(u.Fragment,{children:["snapshot",(0,u.jsx)(s.gc,{shouldExpandNode:j,data:g,style:s._l})]}),!!f&&(0,u.jsx)(s.gc,{data:f,style:s._l})]})})}},52654:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});t(87363);var i=t(28317),r=t(9420),o=t(47514);const s=(0,r.Pi)((function AsyncRender(e){var n=e.optionSnapshot,t=e.onClick,r=e.showDiffOnly,s=e.allOpen,l=function use(e){if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:("pending"===e.status||(e.status="pending",e.then((function(n){e.status="fulfilled",e.value=n}),(function(n){e.status="rejected",e.reason=n}))),e)}(n.promise);return l?(0,o.jsx)(i.default,{onClick:t,articles:l.articleSnapshot,price:l.price,title:n.title,allOpen:s,showDiffOnly:r,configStepKey:n.key}):(0,o.jsx)(o.Fragment,{})}))},28317:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var i=t(80248),r=t(34988),o=t(87363),s=t(9420),l=t(93476),a=t(57446),d=t.n(a),c=t(91923),u=t(47514);function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=function getPartlistArticles(e,n){for(var t in e.partlistArticles){var i=e.partlistArticles[t];if(i.hasPartlistArticle)n.push(h(i,!0)),n=f(i,n);else{for(var r=!1,o=0;o<n.length;o++)if(i.articleCodex===n[o].articleCodex&&i.retailArticleNr===n[o].retailArticleNr&&i.retailPrefix===n[o].retailPrefix&&i.catalogCodex===n[o].catalogCodex&&JSON.stringify(i.VariantValues)==JSON.stringify(n[o].VariantValues)){r=!0,n[o].quantity+=i.quantity;break}r||n.push(h(i))}}return n},h=function getPartlsitArticleObj(e,n){var t,i,r,o,s,l;return{name:(n?"Hülse: ":"")+e.posNr+" "+e.name,price:n?"---":e.price,retailArticleNr:null!==(t=e.retailArticleNr)&&void 0!==t?t:"",retailPrefix:null!==(i=e.retailPrefix)&&void 0!==i?i:"",quantity:e.quantity,ruleDesc:null!==(r=e.ruleDesc)&&void 0!==r?r:"",articleCodex:e.articleCodex,catalogCodex:null!==(o=e.catalogCodex)&&void 0!==o?o:"",codex:e.articleCodex,rule:e.ruleDesc,decision:e.partlistDecisionNo?null!==(s=null===(l=e.partListParentArticle)||void 0===l||null===(l=l.catalogArticle.partlistDecisions)||void 0===l?void 0:l["D"+e.partlistDecisionNo])&&void 0!==s?s:e.CatalogData.loadedDecisions.find((function(n){return n.decisionNo===e.partlistDecisionNo})):void 0,partlistRule:e.partlistRule}};const p=(0,s.Pi)((function PartlistTable(e){var n=e.onClick,t=e.articles,i=e.price,s=e.title,a=e.allOpen,h=e.configStepKey,p=e.showDiffOnly,x=(0,o.useState)(),m=(0,r.Z)(x,2),g=m[0],v=m[1],b=(0,c.NP)();return(0,o.useEffect)((function(){var e,n=b.settingsState.partlistArticlesInOverview[h];if((void 0===g||!n||n.totalCount===n.items.length)&&(void 0===g||p)){var i=[];for(var r in t)i=f(t[r],i);p&&n&&n.totalCount===n.items.length&&(i=i.map((function(e){return _objectSpread(_objectSpread({},e),{},{visible:n.items.filter((function(n){return n.articles.find((function(n){return n.plaCodex==e.articleCodex&&e.retailArticleNr==n.retailArticleNr}))})).length!==n.items.length})})));var o=_objectSpread({},b.settingsState.partlistArticlesInOverview);null!==(e=o[h])&&void 0!==e&&e.items&&!o[h].items.find((function(e){return e.opv===s}))&&(o[h].items.push({opv:s,articles:i.map((function(e){return{plaCodex:e.articleCodex,retailArticleNr:e.retailArticleNr,quantity:e.quantity}}))}),b.settingsState.setPartlistArticlesInOverview(o)),v(i)}}),[b.settingsState.partlistArticlesInOverview]),(0,u.jsx)(d(),{trigger:(0,u.jsx)("div",{style:{cursor:"pointer"},children:"Stücklistenartikel: "+(null!=g?g:[]).length+" preis: "+i+" -- "+s}),open:""==s||a,easing:"ease",transitionTime:100,children:(0,u.jsxs)("table",{className:l.Kz,children:[(0,u.jsx)("thead",{children:(0,u.jsxs)("tr",{className:l.$Q,children:[(0,u.jsx)("th",{children:"Name"}),(0,u.jsx)("th",{children:"Artikle Nr."}),(0,u.jsx)("th",{children:"CatalogCodex"}),(0,u.jsx)("th",{children:"Preis"}),(0,u.jsx)("th",{children:"Nr"}),(0,u.jsx)("th",{children:"Prefix"}),(0,u.jsx)("th",{children:"Menge"}),(0,u.jsx)("th",{children:"Rule"}),(0,u.jsx)("th",{children:"decision"})]})}),(0,u.jsx)("tbody",{children:(null!=g?g:[]).filter((function(e){return!p||e.visible||void 0===e.visible})).map((function(e){var t,i,r;return(0,u.jsxs)("tr",{className:l.$Q,children:[(0,u.jsxs)("th",{children:[" ",e.name]}),(0,u.jsxs)("th",{children:[e.articleCodex," "]}),(0,u.jsxs)("th",{children:[e.catalogCodex," "]}),(0,u.jsxs)("th",{children:[" ",null!==(t=e.price)&&void 0!==t?t:0," "]}),(0,u.jsxs)("th",{children:[" ",e.retailArticleNr," "]}),(0,u.jsxs)("th",{children:[e.retailPrefix," "]}),(0,u.jsxs)("th",{children:[e.quantity," "]}),(0,u.jsx)("th",{children:e.rule}),e.decision&&(0,u.jsx)("th",{onClick:function onClick(){return n({decision:e.decision,rule:e.partlistRule})},children:(null===(i=e.decision)||void 0===i?void 0:i.Number)||(null===(r=e.decision)||void 0===r?void 0:r.decisionNo)})]},e.articleCodex+e.retailArticleNr)}))})]})})}))},97078:(e,n,t)=>{t.r(n),t.d(n,{default:()=>b});var i=t(80248),r=t(34988),o=t(72874),s=t(87363),l=t(51203),a=t(93476),d=t(36115),c=t(91923),u=t(9420),f=t(65515),h=t.n(f),p=t(13222),x=t(32142),m=t(52654),g=t(47514),v=["onMouseDown"];function ownKeys(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}const b=(0,u.Pi)((function PartList(e){var n=e.onMouseDown,t=(0,o.Z)(e,v),i=(0,c.NP)(),u=(0,s.useState)(),f=(0,r.Z)(u,2),b=f[0],j=f[1],y=(0,s.useState)(),O=(0,r.Z)(y,2),C=O[0],N=O[1],S=(0,s.useState)(!1),P=(0,r.Z)(S,2),w=P[0],D=P[1],k=(0,s.useState)(!1),A=(0,r.Z)(k,2),F=A[0],R=A[1],_=(0,s.useState)(!0),z=(0,r.Z)(_,2),E=z[0],I=z[1],V=function onClick(e){var n,t,i=e.decision;(i.decisionNo||i.Number)==((null==b||null===(n=b.decision)||void 0===n?void 0:n.Number)||(null==b||null===(t=b.decision)||void 0===t?void 0:t.decisionNo))?j(void 0):j(e)};(0,s.useEffect)((function(){w?setTimeout((function(){return Z()}),400):N([{snapshots:[{promise:new Promise((function(e){var n,t,r;e({articleSnapshot:null!==(n=i.divaWebPlanner.getDivaArticles())&&void 0!==n?n:{},price:null!==(t=null===(r=i.divaWebPlanner.actSet())||void 0===r?void 0:r.getSetPrice())&&void 0!==t?t:0})})),title:"",key:i.settingsState.configChanged.toString()}]}])}),[i.settingsState.configChanged,i.tabGroupState.curConfigStep]);var Z=function updateVariants(){for(var e=[],n={},t=i.settingsState.itemPaletteArr.filter((function(e){return e[1].visible})).map((function(e){return{items:e[1].groups.flatMap((function(e){return e.items.flatMap((function(e){return e}))})),palette:e[1]}})),r=0;r<t.length;r++){for(var o=t[r].items,s=t[r].palette,l=[],a=0;a<o.length;a++){var d=o[a];d.pricePreviewPromise&&(d.text||d.name)&&l.push({promise:d.pricePreviewPromise.promise,title:d.text||d.name,key:s.configStepKey})}n[s.configStepKey]={items:[],totalCount:o.length},e.push({snapshots:l,palette:s})}i.settingsState.setPartlistArticlesInOverview(n),N(e)};return(0,s.useEffect)((function(){var e=i.divaWebPlanner.actSet();e&&(e.logTotalStateForVariants=w)}),[w]),null!=C&&C.length?(0,g.jsxs)("div",_objectSpread(_objectSpread({},t),{},{className:h()(t.className,a.fm,i.uiState.configSettingsIsExpanded?l.NF:void 0),style:{zIndex:800},children:[(0,g.jsxs)("a",{className:a.Fs,onMouseDown:n,children:["Stücklisten Übersicht",(0,g.jsxs)("div",{className:a.US,children:[(0,g.jsx)(x.default,{state:w,onChange:function onChange(e){return D(e)},on:"alle",off:"einzeln",width:100}),w&&(0,g.jsx)(x.default,{state:F,onChange:function onChange(e){return R(e)},on:"offen",off:"zu",width:100}),w&&(0,g.jsx)(x.default,{state:E,onChange:function onChange(e){return I(e)},on:"schnittm.",off:"alle",width:100})]})]}),C.map((function(e,n){var t;return(0,g.jsxs)("div",{className:a.EM,children:[!(null===(t=e.palette)||void 0===t||!t.name)&&(0,g.jsx)("div",{children:e.palette.name}),e.snapshots.map((function(e){return(0,g.jsx)(s.Suspense,{children:(0,g.jsx)(m.default,{onClick:V,optionSnapshot:e,allOpen:F,showDiffOnly:E},e.key)})}))]},n)})),b&&(0,g.jsx)("div",{className:d.EC,style:{right:0,zIndex:100},children:(0,g.jsx)(p.default,{decision:b.decision,matchingOptions:b.rule})})]})):(0,g.jsx)(g.Fragment,{})}))},33981:(e,n,t)=>{t.d(n,{$Q:()=>h,EC:()=>b,Fs:()=>v,Kz:()=>f,Se:()=>p,UF:()=>m,ZP:()=>N,ao:()=>C,dY:()=>O,fm:()=>g,hX:()=>x,ii:()=>j,uR:()=>y});var i=t(8081),r=t.n(i),o=t(23645),s=t.n(o),l=t(61667),a=t.n(l),d=new URL(t(76380),t.b),c=s()(r()),u=a()(d);c.push([e.id,".index-module--sS9Y_ {\n position: relative;\n width: 100%;\n height: 100%;\n background-color: #ffffff;\n border-collapse: collapse;\n border-width: 0px;\n border-color: #e7eaf8;\n border-style: solid;\n color: #000000;\n font-weight: normal;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n overflow-y: auto;\n top: 73px;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n.index-module--sS9Y_ thead {\n font-weight: bold !important;\n}\n.index-module--sS9Y_ thead {\n border-bottom: 1px solid;\n background-color: var(--thirdColor);\n font-size: 16px;\n padding-top: 1%;\n color: white;\n}\n.index-module--O5GJU {\n text-align: left;\n}\n.index-module--O5GJU:first-child {\n height: 20px;\n}\n.index-module--xNfvC {\n font-weight: bold;\n}\n.index-module--oALcg {\n height: 12px;\n font-size: 10px;\n}\n\n.index-module--HpoCh {\n position: absolute;\n right: 12px;\n top: 12px;\n z-index: 1002;\n width: -moz-max-content;\n width: max-content;\n width: 36px;\n height: 36px;\n background-repeat: no-repeat;\n background-position: center center;\n background-size: 28%;\n background-image: url("+u+");\n transition: background-size 100ms ease-in;\n cursor: pointer;\n}\n.index-module--O5GJU th {\n border-bottom: 1px solid;\n padding-right: 10px;\n margin-bottom: 1%;\n font-weight: normal;\n}\n.index-module--bBk4P {\n overflow: auto;\n left: 50px;\n}\n.index-module--sBWMs {\n height: 8%;\n width: 100%;\n padding-top: 0.7%;\n text-align: center;\n position: absolute;\n background-color: var(--primaryColor);\n font-size: 30px;\n color: white;\n font-weight: 600;\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 10px;\n}\n\n.index-module--XrXfq {\n z-index: 100;\n position: fixed;\n top: 60px;\n right: 0px;\n z-index: 100000;\n width: 600px;\n height: calc(100vh - 60px);\n background-color: #fff;\n overflow: auto;\n}\n\n.index-module--uzZoJ {\n padding: 16px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n border: 1px solid #ddd;\n border-radius: 8px;\n pointer-events: all;\n background-color: #fff;\n width: 600px;\n}\n\n.index-module--uzZoJ h2 {\n cursor: move;\n}\n\n.index-module--wrmAf {\n font-size: 1.5em;\n font-weight: bold;\n}\n\n.index-module--GsJQn {\n margin-top: 16px;\n font-size: 1.2em;\n font-weight: bold;\n}\n\n.index-module--gf_Q8 {\n width: 100%;\n border-collapse: collapse;\n margin-top: 8px;\n}\n\n.index-module--gf_Q8 th,\n.index-module--gf_Q8 td {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n line-break: anywhere;\n}\n\n.index-module--gf_Q8 th {\n background-color: #f2f2f2;\n}\n",""]);var f="index-module--sS9Y_",h="index-module--O5GJU",p="index-module--xNfvC",x="index-module--oALcg",m="index-module--HpoCh",g="index-module--bBk4P",v="index-module--sBWMs",b="index-module--XrXfq",j="index-module--uzZoJ",y="index-module--wrmAf",O="index-module--GsJQn",C="index-module--gf_Q8";const N=c},36115:(e,n,t)=>{t.d(n,{$Q:()=>x.$Q,EC:()=>x.EC,Fs:()=>x.Fs,Kz:()=>x.Kz,Se:()=>x.Se,UF:()=>x.UF,ao:()=>x.ao,dY:()=>x.dY,fm:()=>x.fm,hX:()=>x.hX,ii:()=>x.ii,uR:()=>x.uR});var i=t(93379),r=t.n(i),o=t(7795),s=t.n(o),l=t(90569),a=t.n(l),d=t(3565),c=t.n(d),u=t(19216),f=t.n(u),h=t(44589),p=t.n(h),x=t(33981),m={};m.styleTagTransform=p(),m.setAttributes=c(),m.insert=a().bind(null,"head"),m.domAPI=s(),m.insertStyleElement=f();r()(x.ZP,m),x.ZP&&x.ZP.locals&&x.ZP.locals}}]);