@crystaldesign/diva-web-planner-react 26.14.0-beta.27 → 26.14.0-beta.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/{ArLaunchButton-4a7ec22c.js → ArLaunchButton-b022ba70.js} +2 -2
- package/build/esm/{DrawerSwipeHint-99650fcc.js → DrawerSwipeHint-2c1231c9.js} +2 -2
- package/build/esm/{Planner2DGrid-da86fbd9.js → Planner2DGrid-aeb334a5.js} +1 -1
- package/build/esm/{Planner3DImage-947b44e1.js → Planner3DImage-0f5fd812.js} +1 -1
- package/build/esm/{RoundToggle-33e14bdf.js → RoundToggle-5a868a2d.js} +1 -1
- package/build/esm/{UnlockCard-763f6dec.js → UnlockCard-280d91a2.js} +1 -1
- package/build/esm/WaterToggle-e1f7ae35.js +60 -0
- package/build/esm/{accessoryPlacementMode-74331659.js → accessoryPlacementMode-bd884606.js} +1 -1
- package/build/esm/{doorSwap-a8a8feaf.js → doorSwap-d9f0d348.js} +1 -1
- package/build/esm/{index-ad6230d2.js → index-010fc771.js} +1 -1
- package/build/esm/{index-6dd8b3f6.js → index-029dade8.js} +1 -1
- package/build/esm/{index-fde7e732.js → index-0374efbb.js} +106 -106
- package/build/esm/{index-6ddee204.js → index-046b4843.js} +1 -1
- package/build/esm/{index-073498d6.js → index-06219aa6.js} +1 -1
- package/build/esm/{index-c8a48c2b.js → index-08dcebe2.js} +90 -90
- package/build/esm/{index-cc53141e.js → index-096984a3.js} +5 -5
- package/build/esm/{index-6de92e02.js → index-09f7309c.js} +4 -4
- package/build/esm/{index-6698275e.js → index-0a3fb69d.js} +3 -3
- package/build/esm/{index-0d008ecc.js → index-0aae2ffd.js} +1 -1
- package/build/esm/{index-f9ad230a.js → index-0b97cba5.js} +92 -92
- package/build/esm/{index-32ccf63d.js → index-0c447b2e.js} +1 -1
- package/build/esm/{index-bebe6bdb.js → index-0cb9e29d.js} +5 -5
- package/build/esm/{index-c955a983.js → index-113dbb9f.js} +5 -5
- package/build/esm/{index-fe316719.js → index-122d3a73.js} +1 -1
- package/build/esm/{index-d2cdef46.js → index-1530c1ee.js} +1 -1
- package/build/esm/{index-a9f3fce4.js → index-155fab12.js} +3 -3
- package/build/esm/{index-3dc2efb6.js → index-16340864.js} +1 -1
- package/build/esm/{index-e49e8ca4.js → index-168193d2.js} +1 -1
- package/build/esm/{index-e9d14406.js → index-16cdb440.js} +18 -18
- package/build/esm/{index-3c556683.js → index-172dc531.js} +1 -1
- package/build/esm/{index-282d1445.js → index-197a225f.js} +1 -1
- package/build/esm/{index-d53addb7.js → index-1b661fab.js} +6 -6
- package/build/esm/{index-d68b3de5.js → index-1be81940.js} +1 -1
- package/build/esm/{index-c65df4e3.js → index-1dcd176e.js} +7 -7
- package/build/esm/{index-cb009fd4.js → index-1de5fa96.js} +1 -1
- package/build/esm/{index-856eb52a.js → index-1e343890.js} +5 -5
- package/build/esm/{index-dd171a1f.js → index-24736405.js} +2 -2
- package/build/esm/{index-fd715beb.js → index-247d8743.js} +2 -2
- package/build/esm/{index-965ac8e0.js → index-252bc95f.js} +4 -4
- package/build/esm/{index-a9cd5041.js → index-2588499d.js} +5 -5
- package/build/esm/{index-36bde434.js → index-274cb88e.js} +8 -8
- package/build/esm/{index-dde058a5.js → index-27bcb02c.js} +2 -2
- package/build/esm/{index-9463bbfd.js → index-2c29fb9b.js} +1 -1
- package/build/esm/{index-dc619e77.js → index-2de01a39.js} +5 -5
- package/build/esm/{index-9f555565.js → index-2fa4df81.js} +1 -1
- package/build/esm/{index-eb1b316d.js → index-2febc310.js} +85 -85
- package/build/esm/{index-85817f01.js → index-2ffb7b68.js} +1 -1
- package/build/esm/{index-22bd47ae.js → index-3175d178.js} +1 -1
- package/build/esm/{index-fb153a42.js → index-31782eca.js} +1 -1
- package/build/esm/{index-1acab395.js → index-32c28154.js} +1 -1
- package/build/esm/{index-785e8fb9.js → index-33eace7a.js} +1 -1
- package/build/esm/{index-8ba0457f.js → index-3597f452.js} +1 -1
- package/build/esm/{index-0efa9c0c.js → index-360c873d.js} +3 -3
- package/build/esm/{index-a25ef4b3.js → index-36428461.js} +1 -1
- package/build/esm/{index-0c321d98.js → index-36e8ba7d.js} +1 -1
- package/build/esm/{index-77c80682.js → index-37a1167f.js} +3 -3
- package/build/esm/{index-342d42d4.js → index-3938291c.js} +1 -1
- package/build/esm/{index-b808e21e.js → index-399431d4.js} +1 -1
- package/build/esm/{index-72c7d446.js → index-3a1c9a45.js} +25 -25
- package/build/esm/{index-600c8dfd.js → index-3c5c3630.js} +68 -68
- package/build/esm/{index-73a3ec23.js → index-3dad330c.js} +1 -1
- package/build/esm/{index-e2a89959.js → index-3e321921.js} +1 -1
- package/build/esm/{index-7925df52.js → index-3ed781b8.js} +70 -70
- package/build/esm/{index-8d80ad9d.js → index-3f724197.js} +1 -1
- package/build/esm/{index-2e041eed.js → index-3fcb17c7.js} +1 -1
- package/build/esm/{index-691010fa.js → index-402f5e68.js} +2 -2
- package/build/esm/{index-abfdd7fa.js → index-4213d823.js} +1 -1
- package/build/esm/{index-f8cc8fd8.js → index-44c524f1.js} +1 -1
- package/build/esm/{index-73b5c706.js → index-45337f88.js} +1 -1
- package/build/esm/{index-26a82b37.js → index-49281f43.js} +91 -91
- package/build/esm/{index-e856fe29.js → index-49cc735b.js} +2 -2
- package/build/esm/{index-28c881fc.js → index-4b76849e.js} +3 -3
- package/build/esm/{index-4a0650d0.js → index-4c533d13.js} +3 -3
- package/build/esm/{index-1eedfe54.js → index-4d057fac.js} +74 -74
- package/build/esm/{index-61a77e35.js → index-4d16db42.js} +1 -1
- package/build/esm/{index-2ee45b6c.js → index-4e3229b4.js} +1 -1
- package/build/esm/{index-366bdf4a.js → index-4e470af4.js} +1 -1
- package/build/esm/{index-09d1b029.js → index-4f438905.js} +66 -66
- package/build/esm/{index-692b3ca4.js → index-4f706773.js} +2 -2
- package/build/esm/{index-0fd58834.js → index-4f7156c2.js} +5 -5
- package/build/esm/{index-56edbe85.js → index-517ea464.js} +65 -65
- package/build/esm/{index-eccfe583.js → index-51aa44c5.js} +33 -6
- package/build/esm/{index-0630904f.js → index-5232e89a.js} +1 -1
- package/build/esm/{index-b98da27a.js → index-5243a98e.js} +2 -2
- package/build/esm/{index-231cadc3.js → index-52b1a0df.js} +1 -1
- package/build/esm/{index-1246d70d.js → index-54277210.js} +1 -1
- package/build/esm/{index-1a25ec8d.js → index-56846d3e.js} +2 -2
- package/build/esm/{index-9c2da11a.js → index-56c9e213.js} +1 -1
- package/build/esm/{index-fcd23c89.js → index-570effa4.js} +2 -2
- package/build/esm/{index-c52449a9.js → index-57bf8e66.js} +8 -8
- package/build/esm/{index-773dfb74.js → index-5979f86e.js} +3 -3
- package/build/esm/{index-65d1b2bc.js → index-5a97fbe4.js} +5 -5
- package/build/esm/{index-7c4d78ec.js → index-5b9698bd.js} +1 -1
- package/build/esm/{index-a1e8b495.js → index-5c18e391.js} +4 -4
- package/build/esm/{index-89299b15.js → index-5c30dd2c.js} +91 -91
- package/build/esm/{index-d75784e3.js → index-5d0daa1e.js} +92 -92
- package/build/esm/{index-cba328a5.js → index-5eaef4a2.js} +13 -13
- package/build/esm/{index-143b4d3f.js → index-60050fe7.js} +288 -244
- package/build/esm/{index-ecf86679.js → index-60f3616f.js} +1 -1
- package/build/esm/{index-5d122d85.js → index-6100c04d.js} +68 -68
- package/build/esm/{index-31a8bbe1.js → index-617cf29c.js} +1 -1
- package/build/esm/{index-6f96c863.js → index-62585af9.js} +2 -2
- package/build/esm/{index-9502062d.js → index-627214a1.js} +1 -1
- package/build/esm/{index-9eb0d2f5.js → index-62cd68d3.js} +77 -77
- package/build/esm/{index-2a65cd01.js → index-675e9ad6.js} +2 -2
- package/build/esm/{index-0deabb8e.js → index-67f98df8.js} +1 -1
- package/build/esm/{index-7fdea56d.js → index-6a9f4c69.js} +6 -6
- package/build/esm/{index-82e82674.js → index-6cfbb645.js} +24 -24
- package/build/esm/{index-3a10cc61.js → index-6d7f51e7.js} +1 -1
- package/build/esm/{index-9c057808.js → index-701c36ab.js} +1 -1
- package/build/esm/{index-046a0abb.js → index-70db1cf5.js} +70 -70
- package/build/esm/{index-da3f1bc2.js → index-716815ae.js} +2 -2
- package/build/esm/{index-04e2a147.js → index-73622f5d.js} +2 -2
- package/build/esm/{index-1251b224.js → index-75dd5c7e.js} +6 -6
- package/build/esm/{index-a9b9bb16.js → index-75f6da16.js} +2 -2
- package/build/esm/{index-0e921a83.js → index-778e33eb.js} +3 -3
- package/build/esm/{index-eb928428.js → index-797cf49d.js} +5 -5
- package/build/esm/{index-a521087e.js → index-7a7a0e6f.js} +2 -2
- package/build/esm/{index-38a75451.js → index-7cc5257c.js} +22 -22
- package/build/esm/{index-0bd79cc5.js → index-7d0ddbba.js} +2 -2
- package/build/esm/{index-c41f4ad1.js → index-7f24c913.js} +1 -1
- package/build/esm/{index-7bc30605.js → index-7f5cff5a.js} +1 -1
- package/build/esm/{index-0a592733.js → index-7fbefb4e.js} +3 -3
- package/build/esm/{index-ebf246fc.js → index-803c9526.js} +5 -5
- package/build/esm/{index-921e7dd2.js → index-8254fea4.js} +2 -2
- package/build/esm/{index-5945c845.js → index-83a0f0fb.js} +1 -1
- package/build/esm/{index-786c3afe.js → index-8519c288.js} +8 -8
- package/build/esm/{index-5b480569.js → index-860ed7e7.js} +2 -2
- package/build/esm/{index-891ea1ac.js → index-8626523d.js} +69 -69
- package/build/esm/{index-aaa9e396.js → index-873c242e.js} +1 -1
- package/build/esm/{index-77c206bd.js → index-877cd628.js} +2 -2
- package/build/esm/{index-e2284b3e.js → index-89c04386.js} +1 -1
- package/build/esm/{index-25e4831c.js → index-89ffa924.js} +23 -23
- package/build/esm/{index-1bdc88df.js → index-8bf155db.js} +1 -1
- package/build/esm/{index-303ba480.js → index-8da635e6.js} +1 -1
- package/build/esm/{index-4697e948.js → index-8dc39357.js} +3 -3
- package/build/esm/{index-45624f9d.js → index-905a4961.js} +1 -1
- package/build/esm/{index-483c7012.js → index-9375a298.js} +1 -1
- package/build/esm/{index-d0794c4b.js → index-950bd993.js} +2 -2
- package/build/esm/{index-b3bba7ae.js → index-951facf7.js} +1 -1
- package/build/esm/{index-ff60d796.js → index-958b5c86.js} +2 -2
- package/build/esm/{index-e7fba885.js → index-973d5f7b.js} +3 -3
- package/build/esm/{index-90d43081.js → index-9958d1a2.js} +2 -2
- package/build/esm/{index-7b6286f9.js → index-99f4f96c.js} +3 -3
- package/build/esm/{index-93478908.js → index-9a9606b6.js} +2 -2
- package/build/esm/{index-6c6a8ade.js → index-9ac0ab17.js} +1 -1
- package/build/esm/{index-23538774.js → index-9bd5175f.js} +2 -2
- package/build/esm/{index-404fed2f.js → index-9c26c71c.js} +1 -1
- package/build/esm/{index-a4588f33.js → index-9c5ceb48.js} +90 -90
- package/build/esm/{index-038503b7.js → index-9ee9a5e0.js} +1 -1
- package/build/esm/{index-09a087eb.js → index-a0b0cc51.js} +17 -17
- package/build/esm/{index-6cbc188c.js → index-a0d9523d.js} +1 -1
- package/build/esm/{index-5b34aa0c.js → index-a11680c4.js} +2 -2
- package/build/esm/{index-912607c7.js → index-a1fe221d.js} +1 -1
- package/build/esm/{index-06d09c9c.js → index-a2bb79c9.js} +107 -107
- package/build/esm/{index-0b03b5c3.js → index-a3165946.js} +1 -1
- package/build/esm/{index-9b20e341.js → index-a45ba1f6.js} +5 -5
- package/build/esm/{index-56fba152.js → index-a4c2bdeb.js} +1 -1
- package/build/esm/{index-fedadaa3.js → index-a4d8e613.js} +1 -1
- package/build/esm/{index-a6dbf6ed.js → index-a5582fc7.js} +1 -1
- package/build/esm/{index-12aa8149.js → index-aa953c50.js} +1 -1
- package/build/esm/{index-3104abdb.js → index-ac0aa242.js} +2 -2
- package/build/esm/{index-06eb86ae.js → index-ac60e202.js} +3 -3
- package/build/esm/{index-20325d7c.js → index-ac7153f8.js} +1 -1
- package/build/esm/{index-67958c6c.js → index-acf3937f.js} +2 -2
- package/build/esm/{index-b68a533d.js → index-ae4db76b.js} +1 -1
- package/build/esm/{index-7347fd36.js → index-af0ac3b9.js} +1 -1
- package/build/esm/{index-7c53e20a.js → index-b066ae64.js} +75 -75
- package/build/esm/{index-4ff2a6ec.js → index-b178d468.js} +1 -1
- package/build/esm/{index-1caa9d50.js → index-b1b701df.js} +2 -2
- package/build/esm/{index-1c77ad9e.js → index-b25105f4.js} +1 -1
- package/build/esm/{index-111b2579.js → index-b259bea7.js} +21 -21
- package/build/esm/{index-01f89c65.js → index-b29411ee.js} +1 -1
- package/build/esm/{index-6a401f9b.js → index-b4a162c4.js} +1 -1
- package/build/esm/{index-554f66d1.js → index-b966bc0a.js} +1 -1
- package/build/esm/{index-23a7bf38.js → index-bc3dba44.js} +1 -1
- package/build/esm/{index-04388d0f.js → index-be36c6cd.js} +1 -1
- package/build/esm/{index-42801a9f.js → index-be5785e4.js} +1 -1
- package/build/esm/{index-87c3f666.js → index-be9b537d.js} +1 -1
- package/build/esm/{index-b6778573.js → index-bf437591.js} +1 -1
- package/build/esm/{index-b51673dc.js → index-c00d2746.js} +3 -3
- package/build/esm/{index-e559bb8a.js → index-c0ba87d2.js} +2 -2
- package/build/esm/{index-daf365a8.js → index-c31f1d90.js} +20 -20
- package/build/esm/{index-c89eb719.js → index-c3e2143b.js} +1 -1
- package/build/esm/{index-36e3b857.js → index-c51a1a82.js} +1 -1
- package/build/esm/{index-1bd48896.js → index-c745edd1.js} +1 -1
- package/build/esm/{index-58e5a746.js → index-c8f8284d.js} +1 -1
- package/build/esm/{index-59484527.js → index-c981a6bb.js} +1 -1
- package/build/esm/{index-c6b0191c.js → index-c9e18a69.js} +66 -66
- package/build/esm/{index-c7c72967.js → index-cb0c298a.js} +7 -7
- package/build/esm/{index-32ca9c10.js → index-cb8dff9b.js} +1 -1
- package/build/esm/{index-761f1c3c.js → index-cbb30a0c.js} +441 -28
- package/build/esm/{index-1ee1a7c7.js → index-cbba36b2.js} +1 -1
- package/build/esm/{index-7f115130.js → index-cce01d4a.js} +4 -4
- package/build/esm/{index-1207a3f3.js → index-cd9db368.js} +1 -1
- package/build/esm/{index-c97c2fe9.js → index-cde901fe.js} +2 -2
- package/build/esm/{index-c8b936f5.js → index-d057f592.js} +3 -3
- package/build/esm/{index-7f8e90a3.js → index-d18c2298.js} +15 -15
- package/build/esm/{index-5878dcee.js → index-d28e968b.js} +1 -1
- package/build/esm/{index-5bdec2c3.js → index-d2a857c2.js} +10 -10
- package/build/esm/{index-74b0c155.js → index-d3bca446.js} +2 -2
- package/build/esm/{index-7802193a.js → index-d3d4c2d5.js} +1 -1
- package/build/esm/{index-2056e8fc.js → index-d84d7f3e.js} +67 -67
- package/build/esm/{index-b46d4e06.js → index-db826317.js} +1 -1
- package/build/esm/{index-d90693a4.js → index-dc78678d.js} +1 -1
- package/build/esm/{index-ec988c47.js → index-dd7f273e.js} +1 -1
- package/build/esm/{index-0aee7d69.js → index-df67a142.js} +1 -1
- package/build/esm/{index-09f32d5e.js → index-dfbc4e97.js} +3 -3
- package/build/esm/{index-070732aa.js → index-e12343d9.js} +1 -1
- package/build/esm/{index-4eeef80b.js → index-e248d796.js} +4 -4
- package/build/esm/{index-f82e71c0.js → index-e24f59b7.js} +3 -3
- package/build/esm/{index-afcc7462.js → index-e50bda0e.js} +2 -2
- package/build/esm/{index-f0c6af1e.js → index-e548b8ba.js} +3 -3
- package/build/esm/{index-14c4b717.js → index-e6bef7bb.js} +3 -3
- package/build/esm/{index-d2cc5340.js → index-e75d656a.js} +1 -1
- package/build/esm/{index-12c659e1.js → index-e824f8a0.js} +1 -1
- package/build/esm/{index-42fb084c.js → index-e87202ed.js} +71 -71
- package/build/esm/{index-7cd5b13b.js → index-e96d4e6c.js} +1 -1
- package/build/esm/{index-10673e91.js → index-e9a42822.js} +18 -18
- package/build/esm/{index-24494d56.js → index-ea885e9b.js} +5 -5
- package/build/esm/{index-fbca4320.js → index-ecf10cfc.js} +1 -1
- package/build/esm/{index-fdceff86.js → index-ee329382.js} +1 -1
- package/build/esm/{index-114d554d.js → index-ee6b4f14.js} +2 -2
- package/build/esm/{index-b0df671c.js → index-f05d5341.js} +2 -2
- package/build/esm/{index-6c606208.js → index-f742f0d9.js} +18 -18
- package/build/esm/{index-7b3cc18e.js → index-f76cbdc2.js} +2 -2
- package/build/esm/{index-6fe26542.js → index-f7af4464.js} +1 -1
- package/build/esm/{index-4a47c9bb.js → index-fa562471.js} +1 -1
- package/build/esm/{index-e746b3b5.js → index-fc70c61d.js} +1 -1
- package/build/esm/{index-33639455.js → index-fcaffb99.js} +1 -1
- package/build/esm/{index-aa513642.js → index-fe9e7738.js} +1 -1
- package/build/esm/{index-25e9cc1d.js → index-fed50f1c.js} +1 -1
- package/build/esm/{index-da9eb3d2.js → index-ff6d7128.js} +65 -65
- package/build/esm/index.js +1 -1
- package/build/esm/{index.module-5c74af9f.js → index.module-0453e035.js} +1 -1
- package/build/esm/{index.module-3f9f6441.js → index.module-2a3a1c9f.js} +1 -1
- package/build/esm/{index.module-953b439b.js → index.module-4991c82c.js} +1 -1
- package/build/esm/{index.module-ab484072.js → index.module-90965adf.js} +1 -1
- package/build/esm/{index.module-fbc5faa5.js → index.module-997049cc.js} +1 -1
- package/build/esm/{index.module-d612b21d.js → index.module-b301a37a.js} +1 -1
- package/build/esm/{index.module-09b9c8fa.js → index.module-cecb41c2.js} +1 -1
- package/build/esm/{index.module-2ff44694.js → index.module-dc97d09d.js} +1 -1
- package/build/esm/{useCustomDimensions-e4a01c6a.js → useCustomDimensions-a0745d3c.js} +1 -1
- package/build/esm/{useSteppedWithoutSwipe-475f0f46.js → useSteppedWithoutSwipe-728559df.js} +1 -1
- package/build/esm/{ussIsSticky-d4140b52.js → ussIsSticky-a01be356.js} +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductCenter/MobileNavIcons/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/cameraStep.d.ts +3 -2
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/cameraStep.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/cameraStep.test.d.ts +2 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/cameraStep.test.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/elementParts.d.ts +75 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/elementParts.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/useViewerBridge.d.ts +10 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/useViewerBridge.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/useViewerBridge.test.d.ts +2 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/PlannerRTVNext/useViewerBridge.test.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/ViewerButtonColumn/index.d.ts +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductCenter/ViewerButtonColumn/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/components/Product/ProductCenter/ViewerToggles/WaterToggle.d.ts +10 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/ViewerToggles/WaterToggle.d.ts.map +1 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/ViewerToggles/index.d.ts +4 -0
- package/build/types/web-planner-react/src/components/Product/ProductCenter/ViewerToggles/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/DivaViewHandler.d.ts +3 -1
- package/build/types/web-planner-react/src/model/DivaViewHandler.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/Palette/PaletteViewHandler.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/States/UIState/Product/index.d.ts +3 -0
- package/build/types/web-planner-react/src/model/States/UIState/Product/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/States/UIState/Tabgroups/index.d.ts +3 -0
- package/build/types/web-planner-react/src/model/States/UIState/Tabgroups/index.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/TabGroup/ConfiguratorStructureHandler.d.ts +2 -0
- package/build/types/web-planner-react/src/model/TabGroup/ConfiguratorStructureHandler.d.ts.map +1 -1
- package/build/types/web-planner-react/src/model/doorsToggle.d.ts +11 -0
- package/build/types/web-planner-react/src/model/doorsToggle.d.ts.map +1 -1
- package/build/types/web-planner-react/src/tests/ConfiguratorStructureHandler.navigations.test.d.ts +2 -0
- package/build/types/web-planner-react/src/tests/ConfiguratorStructureHandler.navigations.test.d.ts.map +1 -0
- package/build/types/web-planner-react/src/tests/PaletteViewHandler.changedOption.test.d.ts +2 -0
- package/build/types/web-planner-react/src/tests/PaletteViewHandler.changedOption.test.d.ts.map +1 -0
- package/build/types/web-planner-react/src/tests/TabGroupState.changedOption.test.d.ts +2 -0
- package/build/types/web-planner-react/src/tests/TabGroupState.changedOption.test.d.ts.map +1 -0
- package/build/types/web-planner-react/src/tests/WaterToggle.gate.test.d.ts +2 -0
- package/build/types/web-planner-react/src/tests/WaterToggle.gate.test.d.ts.map +1 -0
- package/build/types/web-planner-react/src/tests/WaterToggle.pressed.test.d.ts +2 -0
- package/build/types/web-planner-react/src/tests/WaterToggle.pressed.test.d.ts.map +1 -0
- package/build/types/web-planner-react/src/tests/planner/elementParts.test.d.ts +2 -0
- package/build/types/web-planner-react/src/tests/planner/elementParts.test.d.ts.map +1 -0
- package/build/umd/226.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2271.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4088.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/4088.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/5115.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5139.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/5139.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/5755.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5808.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/641.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6944.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7818.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8082.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/8082.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/8445.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8689.diva-web-planner-react.umd.min.js +2 -0
- package/build/umd/8689.diva-web-planner-react.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/8701.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9575.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9715.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +10 -10
- package/build/umd/1972.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/1972.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/2336.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/2336.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/5000.diva-web-planner-react.umd.min.js +0 -2
- package/build/umd/5000.diva-web-planner-react.umd.min.js.LICENSE.txt +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 2271.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[2271,9243],{77654:(e,n,i)=>{i.r(n),i.d(n,{default:()=>K});var t=i(84658),o=i(38946),d=i(50747),r=i.n(d),l=i(65515),u=i.n(l),x=i(9420),a=i(87363),c=i(88683),p=i(25327),s=i(93379),m=i.n(s),b=i(7795),C=i.n(b),h=i(90569),y=i.n(h),k=i(3565),v=i.n(k),g=i(19216),f=i.n(g),N=i(44589),O=i.n(N),E=i(56052),B={};B.styleTagTransform=O(),B.setAttributes=v(),B.insert=y().bind(null,"head"),B.domAPI=C(),B.insertStyleElement=f();m()(E.ZP,B);E.ZP&&E.ZP.locals&&E.ZP.locals;var H=i(47514),X=(0,c.getLogger)("Planner","BasketActionSerious");const K=(0,x.Pi)((function BasketActionSerious(e){var n=e.saveIsDisabled,i=e.sendEmailIsDisabled,d=e.onSave,l=(0,p.NP)(),x=(0,c.useTranslation)().t,s=(0,a.useState)(!1),m=(0,o.Z)(s,2),b=m[0],C=m[1],h=(0,c.useDivaCore)().actions,y=h.userHasPermission,k=h.openSnackBar,v=function(){var e=(0,t.Z)(r().mark((function _callee(e){var t,o,u,a,c,p;return r().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next="email"===r.t0?3:"save"===r.t0?8:13;break;case 3:if(n||i){r.next=7;break}return d(),r.next=7,l.actionButtonState.onClickAddToBasket(l,"onSendEmail");case 7:return r.abrupt("break",13);case 8:if(n){r.next=12;break}return d(),r.next=12,l.actionButtonState.onClickAddToBasket(l);case 12:return r.abrupt("break",13);case 13:if(!l.getViewConfig().showPdfQR){r.next=22;break}if("boolean"!=typeof l.getViewConfig().showPdfQR){r.next=18;break}l.divaWebPlanner.getBasket().PDFDocumentURL?k({type:"big",qrCode:l.divaWebPlanner.getBasket().PDFDocumentURL,message:x("basket.checkout.pdfqr"),autoHideDuration:null!==(t=l.getViewConfig().pdfQRAutoHideDuration)&&void 0!==t?t:12e4,clickable:!(null!==(o=l.getViewConfig().pdfQRNotClickable)&&void 0!==o&&o),qrCodeSize:312}):X.warn("Basket is missing a pdf, no QR-Code displayed"),r.next=22;break;case 18:return r.next=20,null===(u=l.divaWebPlanner.actSet())||void 0===u?void 0:u.api.createBasketReport(l.divaWebPlanner.getBasket(),l.getViewConfig().showPdfQR,l.getViewConfig().savePdfQR);case 20:(a=r.sent)?k({type:"big",qrCode:a,qrCodeSize:312,message:x("basket.checkout.pdfqr"),autoHideDuration:null!==(c=l.getViewConfig().pdfQRAutoHideDuration)&&void 0!==c?c:12e4,clickable:!(null!==(p=l.getViewConfig().pdfQRNotClickable)&&void 0!==p&&p)}):X.warn("Could not generate PDF, no QR-Code displayed");case 22:case"end":return r.stop()}}),_callee)})));return function onClickSave(n){return e.apply(this,arguments)}}();return(0,H.jsxs)("div",{className:E.nC,children:[(0,H.jsxs)("div",{className:u()(E.LI,E.SH,n?E.jO:void 0),onClick:function onClick(){n||C(!b)},children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv,E.Nd)}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.ADD_TO_BASKET")]}),(0,H.jsxs)("div",{className:u()(b?E.bA:void 0,E.v),children:[(0,H.jsxs)("div",{className:E.$Q,onClick:function onClick(){return v("save")},id:"wcConfigurator-action-tobasket",children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv,E.Nd)}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.ADD_TO_BASKET")]})]}),(0,H.jsxs)("div",{className:u()(E.$Q,i?E.jO:void 0),onClick:function onClick(){return v("email")},children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv,E.hZ)}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.SendToClient")]})]})]})]}),(0,H.jsxs)("div",{onClick:function onClickReset(){var e;null===(e=l.actions)||void 0===e||e.openModal({title:x("modals.reset"),accept:!0,reject:!0,text:x("modals.are_you_sure_to_reset"),callback:function callback(e){e&&l.productState.onClickReset()}})},className:u()(E.LI,E.nN),children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv),children:(0,H.jsx)("svg",{width:"26",height:"22",viewBox:"0 0 3400 3400",xmlns:"http://www.w3.org/2000/svg",children:(0,H.jsx)("path",{className:E.e2,transform:"scale(1,-1) translate(450,-2600)",strokeWidth:"1",d:"M935 2061l-114 277q135 45 279 57v-300q-85 -9 -165 -34zM1435 2069q-71 19 -135 26v300q131 -11 251 -48zM615 1884l-211 212q119 105 260 176l114 -276q-87 -47 -163 -112zM1737 1921q-43 32 -89 59l115 279q99 -53 187 -125zM2007 -3l-148 204l-6 -4 q-146 -95 -321 -145t-332 -51q-172 0 -331.5 43t-291 120.5t-240 188t-182.5 242.5t-114.5 287t-40.5 318q0 225 80 429.5t224 367.5l212 -212q-103 -120 -159.5 -270t-56.5 -314q0 -123 32 -239.5t90 -215t140.5 -181.5t181.5 -141t216 -90.5t240 -31.5q146 0 256.5 34 t226.5 109l-151 212q-8 11 -8 20q0 20 29 19h683q17 0 27.5 -10t10.5 -25q0 -6 -3 -13l-220 -644q-7 -22 -22 -22q-12 0 -22 15zM1964 1673q-20 32 -43 64l213 213q61 -75 109 -161zM2085 1400q-4 0 -10 27l279 126q4 -14 8.5 -35.5t8 -41t6.5 -37.5t6 -28.5t5 -10.5h-303z "})})}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.ConfigReset")]})]}),y("favorites_lueck")&&(0,H.jsxs)("div",{onClick:function onClickFavorites(){var e,n;null===(e=l.actions)||void 0===e||e.openModal({title:x("modals.favorite"),accept:!0,reject:!0,text:x("modals.are_you_sure_favorite"),callback:(n=(0,t.Z)(r().mark((function _callee2(e){var n;return r().wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:if(!e){i.next=5;break}return d(),i.next=4,l.actionButtonState.onClickAddToBasket(l,"onSaveProduct");case 4:null===(n=l.actions)||void 0===n||n.openModal({title:x("modals.favorite"),accept:!0,text:x("modals.favorites_saved")});case 5:case"end":return i.stop()}}),_callee2)}))),function callback(e){return n.apply(this,arguments)})})},className:u()(E.LI,E.nN),children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv),children:(0,H.jsx)("svg",{width:"26",height:"22",viewBox:"0 0 3400 3400",xmlns:"http://www.w3.org/2000/svg",children:(0,H.jsx)("path",{className:E.e2,transform:"scale(1,-1) translate(450,-2600)",strokeWidth:"1",d:"M2491 1500l-765 -541l291 -885l-768 551l-764 -554l291 883l-776 546h958l294 900h3l292 -900h944zM484 68h-3l4 3z"})})}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.Favorites")]})]})]})}))},42271:(e,n,i)=>{i.r(n),i.d(n,{default:()=>S});var t=i(80248),o=i(38946),d=i(65515),r=i.n(d),l=i(71954),u=i(87363),x=i(10304),a=i(77654),c=i(25327),p=i(93379),s=i.n(p),m=i(7795),b=i.n(m),C=i(90569),h=i.n(C),y=i(3565),k=i.n(y),v=i(19216),g=i.n(v),f=i(44589),N=i.n(f),O=i(69370),E={};E.styleTagTransform=N(),E.setAttributes=k(),E.insert=h().bind(null,"head"),E.domAPI=b(),E.insertStyleElement=g();s()(O.ZP,E);O.ZP&&O.ZP.locals&&O.ZP.locals;var B=i(9420),H=i(88683),X=i(90603),K=i(47514);function ownKeys(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var j=["configurationName","buildService","sellingAdvisor","toProduct","specInformations","firstName","lastName","email","phoneNumber","street","nr","postalCode","location","country"],w=["simple","simple","email","phoneNumber","simple","simple","simple","simple"];const S=(0,B.Pi)((function CheckOutForm(e){var n,i,d,p,s,m,b,C,h,y,k,v,g,f,N,E,B,S,I,D,A,M,z,P,T,Z,_,q,R,W,L,Q,V=(0,c.NP)(),U=V.divaWebPlanner.getBasketData(),J=(0,u.useState)(!1),G=(0,o.Z)(J,2),F=G[0],$=G[1],Y=(0,u.useState)(!1),ee=(0,o.Z)(Y,2),ne=ee[0],ie=ee[1],te=(0,u.useState)(""),oe=(0,o.Z)(te,2),de=oe[0],re=oe[1];function regexCheck(e,n){switch(e){case"simple":return n.length>0;case"email":var i=H.DivaUtils.validateEmail(n);return ie(i),i;case"phoneNumber":return!!(/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/.test(n)&&n.length>0);case"number":return!!(/^[0-9]*$/.test(n)&&n.length>0);case"letters":return!!(/^[\u00C0-\u017Fa-zA-Z'][\u00C0-\u017Fa-zA-Z-' ]+[\u00C0-\u017Fa-zA-Z']?$/.test(n)&&n.length>0)}return!1}function InputCheck(e,n,i){ce(_objectSpread(_objectSpread({},ae),{},(0,t.Z)({},e,n))),be(_objectSpread(_objectSpread({},me),{},"buildService"!==e?(0,t.Z)({},e,regexCheck(i,n)):(0,t.Z)({},e,!0)))}var le=(0,H.useTranslation)().t;(0,u.useEffect)((function(){var e,n=null===(e=V.divaWebPlanner)||void 0===e?void 0:e.actSet();re(n?(0,X.B8)(n):"")}),[V.settingsState.configChanged]);var ue=(0,u.useState)({configurationName:null!==(n=U.ProductSetName)&&void 0!==n?n:"",buildService:null!==(i=null===(d=U.Client)||void 0===d?void 0:d.delivery)&&void 0!==i?i:!(null===(p=U.OrderSets)||void 0===p||!p.find((function(e){return e.OrderLines.find((function(e){var n;return!("JA"!=(null===(n=e.VariantBasketDatas)||void 0===n||null===(n=n.find((function(e){return"SERVICE"===e.OPT})))||void 0===n?void 0:n.OPV))}))}))),sellingAdvisor:null!==(s=U.Salesperson)&&void 0!==s?s:"".concat((null===(m=V.configState.currentUser)||void 0===m?void 0:m.name)||""," ").concat((null===(b=V.configState.currentUser)||void 0===b?void 0:b.familyName)||"").trim(),toProduct:null!==(C=U.ClientRemark)&&void 0!==C?C:"",firstName:null!==(h=null===(y=U.Client)||void 0===y?void 0:y.firstName)&&void 0!==h?h:"",preferredContact:null!==(k=null===(v=U.Client)||void 0===v?void 0:v.preferredContact)&&void 0!==k?k:"email",lastName:null!==(g=null===(f=U.Client)||void 0===f?void 0:f.lastName)&&void 0!==g?g:"",email:null!==(N=null===(E=U.Client)||void 0===E?void 0:E.email)&&void 0!==N?N:"",phoneNumber:null!==(B=null===(S=U.Client)||void 0===S?void 0:S.phone)&&void 0!==B?B:"",street:null!==(I=null===(D=U.Client)||void 0===D?void 0:D.address)&&void 0!==I?I:"",nr:null!==(A=null===(M=U.Client)||void 0===M?void 0:M.addressNr)&&void 0!==A?A:"",postalCode:null!==(z=null===(P=U.Client)||void 0===P?void 0:P.cap)&&void 0!==z?z:"",location:null!==(T=null===(Z=U.Client)||void 0===Z?void 0:Z.city)&&void 0!==T?T:"",country:null!==(_=null===(q=U.Client)||void 0===q?void 0:q.countryCode)&&void 0!==_?_:"Deutschland",dateofdelivery:null!==(R=null===(W=U.Client)||void 0===W||null===(W=W.clientPreferedDeliveryDate)||void 0===W?void 0:W.toString())&&void 0!==R?R:"",specInformations:null!==(L=null===(Q=U.Client)||void 0===Q?void 0:Q.deliveryNotes)&&void 0!==L?L:""}),xe=(0,o.Z)(ue,2),ae=xe[0],ce=xe[1],pe=(0,u.useState)((function(){for(var e=[!1,!1,!1,!1,!1,!1,!1,!1],n=["firstName","lastName","email","phoneNumber","street","nr","postalCode","location"],i=0;i<e.length;i++)e[i]=regexCheck(w[i],ae[n[i]]);return{firstName:e[0],lastName:e[1],email:e[2],phoneNumber:e[3],street:e[4],nr:e[5],postalCode:e[6],location:e[7]}})),se=(0,o.Z)(pe,2),me=se[0],be=se[1];return(0,u.useEffect)((function(){"true"===ae.buildService.toString()?Object.values(me).some((function(e){return!1===e}))?$(!1):$(!0):me.firstName&&me.lastName?$(!0):$(!1)})),(0,K.jsxs)("div",{className:O.gN,children:[(0,K.jsxs)("div",{className:O.rr,children:[(0,K.jsxs)("div",{children:[(0,K.jsx)("a",{className:O.Se,children:le("archive.header.productsetname")}),(0,K.jsx)("input",{placeholder:de,className:r()(O.x8),onChange:function onChange(e){return InputCheck(j[0],e.target.value,"simple")},value:ae.configurationName}),(0,K.jsx)("a",{className:O.Se,children:le("checkout.build_service_title")}),(0,K.jsxs)("div",{className:r()(O.ZN,O._6),children:[(0,K.jsx)(l.default,{onChange:function onChange(e){var n=!ae.buildService;V.paletteViewHandler.changeOnCheckoutConfig({OPTSERVICE:"OPV"+(n?"JA":"NEIN")}),ce(_objectSpread(_objectSpread({},ae),{},{buildService:n}))},state:ae.buildService,on:le("ja"),off:le("nein")}),(0,K.jsx)("a",{className:O.e5,children:le("checkout.build_service_text")})]}),(0,K.jsx)("a",{className:r()(O.Se),children:le("checkout.additional_info")}),(0,K.jsxs)("div",{className:O.jw,children:[(0,K.jsx)("a",{children:le("checkout.selling_advisor")}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[2],e.target.value,"simple")},value:ae.sellingAdvisor})]}),(0,K.jsx)("a",{children:le("checkout.to_product")}),(0,K.jsx)("textarea",{onChange:function onChange(e){return InputCheck(j[3],e.target.value,"simple")},value:ae.toProduct}),ae.buildService&&(0,K.jsxs)("div",{children:[(0,K.jsx)("a",{children:le("checkout.spec_informations")}),(0,K.jsx)("textarea",{onChange:function onChange(e){return InputCheck(j[4],e.target.value,"simple")},value:ae.specInformations})]})]}),(0,K.jsxs)("div",{className:O.MV,children:[(0,K.jsx)("a",{className:O.Se,children:le("checkout.client_info")}),(0,K.jsx)("div",{className:O.di}),(0,K.jsxs)("div",{className:r()(O._6,O.jw),children:[(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.name"),"*"]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[5],e.target.value,w[0])},value:ae.firstName}),(0,K.jsx)("a",{className:r()(O.X_,me.firstName?O.Cp:O.$Z),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.surname"),"*"]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[6],e.target.value,w[1])},value:ae.lastName}),(0,K.jsx)("a",{className:r()(O.X_,me.lastName?O.Cp:O.$Z),children:" "+le("checkout.required")})]})]}),(0,K.jsxs)("div",{className:O.jw,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.email"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[7],e.target.value,w[2])},value:ae.email}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.email?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.jw,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.phone"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[8],e.target.value,w[3])},value:ae.phoneNumber}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.phoneNumber?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),ae.buildService&&(0,K.jsx)("a",{className:r()(O.Se,O.Iw),children:le("checkout.delivery_address")}),(0,K.jsxs)("div",{className:r()(O._6,O.jw),children:[(0,K.jsxs)("div",{className:O.gT,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.address"),ae.buildService?"*":""]}),(0,K.jsx)("input",{className:O.gT,onChange:function onChange(e){return InputCheck(j[9],e.target.value,w[4])},value:ae.street}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.street?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.nr,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.addressNr"),ae.buildService?"*":""]}),(0,K.jsx)("input",{className:O.nr,onChange:function onChange(e){return InputCheck(j[10],e.target.value,w[5])},value:ae.nr}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.nr?O.$Z:O.Cp),children:" "+le("checkout.required")})]})]}),(0,K.jsxs)("div",{className:r()(O._6,O.jw),children:[(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.cap"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[11],e.target.value,w[6])},value:ae.postalCode}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.postalCode?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.city"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[12],e.target.value,w[7])},value:ae.location}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.location?O.$Z:O.Cp),children:" "+le("checkout.required")})]})]}),(0,K.jsxs)("a",{children:[le("basket.clientData.form.countryCode"),ae.buildService?"*":""]}),(0,K.jsx)(x.Z,{menuClassName:O.Kh,value:ae.country,options:["Deutschland","Österreich","Schweiz","Luxemburg","Belgien","Niederlande","Tschechien","Kasachstan"],onChange:function onChange(e){return InputCheck(j[13],e.value,"simple")}})]})]}),(0,K.jsx)("div",{className:O.IH,children:(0,K.jsx)(a.default,{onSave:function saveValues(e){var n;U.Client||(U.Client={});var i=""!==ae.configurationName?ae.configurationName:de;U.ProductSetName=""!==i?i:void 0,U.SetName=""!==de?de:void 0,ae&&(U.Client.firstName=ae.firstName,U.Client.preferredContact=ae.preferredContact,U.Client.lastName=ae.lastName,U.Client.email=ae.email,U.Client.phone=ae.phoneNumber,U.Client.address=ae.street,U.Client.addressNr=ae.nr,U.Client.cap=ae.postalCode,U.Client.city=ae.location,U.Client.countryCode=ae.country,U.Client.clientPreferedDeliveryDate=ae.dateofdelivery?new Date(ae.dateofdelivery):void 0,U.Client.deliveryNotes=ae.specInformations,U.Client.delivery=ae.buildService),U.ClientRemark=ae.toProduct,U.SalespersonOverwrite=ae.sellingAdvisor,U.SalespersonEmail=(null===(n=V.configState.currentUser)||void 0===n?void 0:n.mainEmail)||"",e&&(U.SendIWOBasket=!0,U.OrderStatus="SEND")},saveIsDisabled:!F,sendEmailIsDisabled:!ne})})]})}))},56052:(e,n,i)=>{i.d(n,{$Q:()=>y,LI:()=>k,Nd:()=>E,O7:()=>N,SH:()=>v,ZP:()=>H,bA:()=>C,e2:()=>O,hZ:()=>B,jO:()=>g,nC:()=>m,nN:()=>f,qv:()=>h,v:()=>b});var t=i(8081),o=i.n(t),d=i(23645),r=i.n(d),l=i(61667),u=i.n(l),x=new URL(i(32889),i.b),a=new URL(i(17195),i.b),c=r()(o()),p=u()(x),s=u()(a);c.push([e.id,".index-module--BLUm6 {\n display: flex;\n flex-direction: row;\n margin-left: 16px;\n}\n\n.index-module--HfQcx {\n border: 1px solid #cacaca;\n border-radius: 4px;\n position: absolute;\n bottom: 105%;\n left: 0;\n right: -5px;\n padding: 0.84em 1em;\n color: #000;\n color: initial;\n display: none;\n flex-direction: column;\n}\n\n.index-module--HfQcx.index-module--zBXSm {\n display: flex;\n}\n\n.index-module--HfQcx .index-module--JygIB {\n filter: brightness(0.1);\n}\n.index-module--HfQcx .index-module--GkVFm:hover {\n color: var(--primaryColor);\n}\n\n.index-module--am5Wh {\n position: relative;\n font-weight: 100;\n border-radius: 32px;\n transition: background-color 0.25s ease-out, color 0.25s ease-out;\n font-size: 0.9rem;\n line-height: 18px;\n text-align: center;\n cursor: pointer;\n box-sizing: border-box;\n display: inline-block;\n vertical-align: middle;\n margin: 0 0.5rem 1rem 0;\n padding: 0.85em 1em;\n -webkit-appearance: none;\n border: 1px solid transparent;\n}\n\n.index-module--xqWc8 {\n background-color: var(--primaryColor);\n color: #fefefe;\n}\n\n.index-module--qJM2I {\n opacity: 0.25;\n cursor: not-allowed;\n}\n\n.index-module--xqWc8:hover {\n filter: brightness(0.9);\n}\n\n.index-module--kWTPM {\n background-color: transparent;\n border-color: var(--primaryColor);\n color: var(--primaryColor);\n padding: 0.85em 1em 0.85em 0.25em;\n}\n\n.index-module--kWTPM:hover {\n fill: #202020 !important;\n}\n\n.index-module--kWTPM:hover {\n border-color: #202020;\n color: #202020;\n}\n\n.index-module--fTcws {\n float: left;\n}\n.index-module--kWTPM .index-module--fTcws {\n padding-left: 0.5em;\n}\n\n.index-module--GkVFm {\n margin: 0.5em 0;\n}\n\n.index-module--JygIB {\n background-repeat: no-repeat;\n background-position: center center;\n background-size: contain;\n width: 20px;\n height: 20px;\n}\n.index-module--nUotN {\n fill: var(--primaryColor);\n transition: fill 0.25s ease-out, color 0.25s ease-out;\n}\n\n.index-module--kWTPM:hover .index-module--nUotN {\n fill: black;\n}\n\n.index-module--b4Lgf {\n background-image: url("+p+");\n}\n.index-module--Y3R7R {\n background-image: url("+s+");\n}\n\n.index-module--aWiJp path {\n background-color: var(--primaryColor);\n}\n",""]);var m="index-module--BLUm6",b="index-module--HfQcx",C="index-module--zBXSm",h="index-module--JygIB",y="index-module--GkVFm",k="index-module--am5Wh",v="index-module--xqWc8",g="index-module--qJM2I",f="index-module--kWTPM",N="index-module--fTcws",O="index-module--nUotN",E="index-module--b4Lgf",B="index-module--Y3R7R";const H=c},69370:(e,n,i)=>{i.d(n,{$Z:()=>u,Cp:()=>x,IH:()=>m,Iw:()=>N,Kh:()=>g,MV:()=>O,Se:()=>a,X_:()=>b,ZN:()=>y,ZP:()=>E,_6:()=>p,di:()=>s,e5:()=>f,gN:()=>l,gT:()=>k,jw:()=>h,nr:()=>v,rr:()=>c,x8:()=>C});var t=i(8081),o=i.n(t),d=i(23645),r=i.n(d)()(o());r.push([e.id,"/* form */\n.index-module--r0bx6 {\n top: 100%;\n position: absolute;\n width: 100%;\n}\n.index-module--OE81C {\n display: flex !important;\n}\n.index-module--JzaPK {\n display: none !important;\n}\n\n.index-module--r0bx6 a {\n display: flex;\n color: black;\n cursor: default;\n}\n.index-module--r0bx6 a:hover {\n display: flex;\n color: black;\n cursor: default;\n}\n.index-module--r0bx6 .index-module--_1nxR {\n color: var(--primaryColor);\n font-size: 150%;\n font-weight: 300;\n padding-bottom: 3.7%;\n padding-top: 4%;\n text-align: left;\n}\n.index-module--r0bx6 .index-module--_1nxR:hover {\n color: var(--primaryColor);\n font-size: 150%;\n font-weight: 300;\n padding-bottom: 3.7%;\n padding-top: 4%;\n text-align: left;\n}\n.index-module--NIxyW {\n display: flex;\n gap: 50px;\n padding: 0 50px;\n}\n.index-module--NIxyW > * {\n flex-basis: 100%;\n}\n\n.index-module--Xs4Gf {\n display: flex;\n flex-direction: row;\n align-items: top;\n flex-basis: 100%;\n gap: 3%;\n}\n.index-module--rYbV7 {\n display: flex;\n flex-direction: column;\n align-items: top;\n flex-basis: 100%;\n}\n.index-module--yN7Qk {\n margin-top: 7%;\n margin-left: 1%;\n}\n.index-module--NIxyW .index-module--Kj_nd {\n color: var(--primaryColor);\n font-size: 80%;\n padding-bottom: 2%;\n padding-right: 38%;\n}\n.index-module--NIxyW .index-module--Kj_nd:hover {\n color: var(--primaryColor);\n font-size: 80%;\n padding-bottom: 2%;\n padding-right: 38%;\n}\n.index-module--I5O4a {\n margin-top: 20px;\n}\n.index-module--r0bx6 input[type='checkbox'],.index-module--r0bx6 input[type='Checkbox'],.index-module--r0bx6 input[type='cHeckbox'],.index-module--r0bx6 input[type='CHeckbox'],.index-module--r0bx6 input[type='chEckbox'],.index-module--r0bx6 input[type='ChEckbox'],.index-module--r0bx6 input[type='cHEckbox'],.index-module--r0bx6 input[type='CHEckbox'],.index-module--r0bx6 input[type='cheCkbox'],.index-module--r0bx6 input[type='CheCkbox'],.index-module--r0bx6 input[type='cHeCkbox'],.index-module--r0bx6 input[type='CHeCkbox'],.index-module--r0bx6 input[type='chECkbox'],.index-module--r0bx6 input[type='ChECkbox'],.index-module--r0bx6 input[type='cHECkbox'],.index-module--r0bx6 input[type='CHECkbox'],.index-module--r0bx6 input[type='checKbox'],.index-module--r0bx6 input[type='ChecKbox'],.index-module--r0bx6 input[type='cHecKbox'],.index-module--r0bx6 input[type='CHecKbox'],.index-module--r0bx6 input[type='chEcKbox'],.index-module--r0bx6 input[type='ChEcKbox'],.index-module--r0bx6 input[type='cHEcKbox'],.index-module--r0bx6 input[type='CHEcKbox'],.index-module--r0bx6 input[type='cheCKbox'],.index-module--r0bx6 input[type='CheCKbox'],.index-module--r0bx6 input[type='cHeCKbox'],.index-module--r0bx6 input[type='CHeCKbox'],.index-module--r0bx6 input[type='chECKbox'],.index-module--r0bx6 input[type='ChECKbox'],.index-module--r0bx6 input[type='cHECKbox'],.index-module--r0bx6 input[type='CHECKbox'],.index-module--r0bx6 input[type='checkBox'],.index-module--r0bx6 input[type='CheckBox'],.index-module--r0bx6 input[type='cHeckBox'],.index-module--r0bx6 input[type='CHeckBox'],.index-module--r0bx6 input[type='chEckBox'],.index-module--r0bx6 input[type='ChEckBox'],.index-module--r0bx6 input[type='cHEckBox'],.index-module--r0bx6 input[type='CHEckBox'],.index-module--r0bx6 input[type='cheCkBox'],.index-module--r0bx6 input[type='CheCkBox'],.index-module--r0bx6 input[type='cHeCkBox'],.index-module--r0bx6 input[type='CHeCkBox'],.index-module--r0bx6 input[type='chECkBox'],.index-module--r0bx6 input[type='ChECkBox'],.index-module--r0bx6 input[type='cHECkBox'],.index-module--r0bx6 input[type='CHECkBox'],.index-module--r0bx6 input[type='checKBox'],.index-module--r0bx6 input[type='ChecKBox'],.index-module--r0bx6 input[type='cHecKBox'],.index-module--r0bx6 input[type='CHecKBox'],.index-module--r0bx6 input[type='chEcKBox'],.index-module--r0bx6 input[type='ChEcKBox'],.index-module--r0bx6 input[type='cHEcKBox'],.index-module--r0bx6 input[type='CHEcKBox'],.index-module--r0bx6 input[type='cheCKBox'],.index-module--r0bx6 input[type='CheCKBox'],.index-module--r0bx6 input[type='cHeCKBox'],.index-module--r0bx6 input[type='CHeCKBox'],.index-module--r0bx6 input[type='chECKBox'],.index-module--r0bx6 input[type='ChECKBox'],.index-module--r0bx6 input[type='cHECKBox'],.index-module--r0bx6 input[type='CHECKBox'],.index-module--r0bx6 input[type='checkbOx'],.index-module--r0bx6 input[type='CheckbOx'],.index-module--r0bx6 input[type='cHeckbOx'],.index-module--r0bx6 input[type='CHeckbOx'],.index-module--r0bx6 input[type='chEckbOx'],.index-module--r0bx6 input[type='ChEckbOx'],.index-module--r0bx6 input[type='cHEckbOx'],.index-module--r0bx6 input[type='CHEckbOx'],.index-module--r0bx6 input[type='cheCkbOx'],.index-module--r0bx6 input[type='CheCkbOx'],.index-module--r0bx6 input[type='cHeCkbOx'],.index-module--r0bx6 input[type='CHeCkbOx'],.index-module--r0bx6 input[type='chECkbOx'],.index-module--r0bx6 input[type='ChECkbOx'],.index-module--r0bx6 input[type='cHECkbOx'],.index-module--r0bx6 input[type='CHECkbOx'],.index-module--r0bx6 input[type='checKbOx'],.index-module--r0bx6 input[type='ChecKbOx'],.index-module--r0bx6 input[type='cHecKbOx'],.index-module--r0bx6 input[type='CHecKbOx'],.index-module--r0bx6 input[type='chEcKbOx'],.index-module--r0bx6 input[type='ChEcKbOx'],.index-module--r0bx6 input[type='cHEcKbOx'],.index-module--r0bx6 input[type='CHEcKbOx'],.index-module--r0bx6 input[type='cheCKbOx'],.index-module--r0bx6 input[type='CheCKbOx'],.index-module--r0bx6 input[type='cHeCKbOx'],.index-module--r0bx6 input[type='CHeCKbOx'],.index-module--r0bx6 input[type='chECKbOx'],.index-module--r0bx6 input[type='ChECKbOx'],.index-module--r0bx6 input[type='cHECKbOx'],.index-module--r0bx6 input[type='CHECKbOx'],.index-module--r0bx6 input[type='checkBOx'],.index-module--r0bx6 input[type='CheckBOx'],.index-module--r0bx6 input[type='cHeckBOx'],.index-module--r0bx6 input[type='CHeckBOx'],.index-module--r0bx6 input[type='chEckBOx'],.index-module--r0bx6 input[type='ChEckBOx'],.index-module--r0bx6 input[type='cHEckBOx'],.index-module--r0bx6 input[type='CHEckBOx'],.index-module--r0bx6 input[type='cheCkBOx'],.index-module--r0bx6 input[type='CheCkBOx'],.index-module--r0bx6 input[type='cHeCkBOx'],.index-module--r0bx6 input[type='CHeCkBOx'],.index-module--r0bx6 input[type='chECkBOx'],.index-module--r0bx6 input[type='ChECkBOx'],.index-module--r0bx6 input[type='cHECkBOx'],.index-module--r0bx6 input[type='CHECkBOx'],.index-module--r0bx6 input[type='checKBOx'],.index-module--r0bx6 input[type='ChecKBOx'],.index-module--r0bx6 input[type='cHecKBOx'],.index-module--r0bx6 input[type='CHecKBOx'],.index-module--r0bx6 input[type='chEcKBOx'],.index-module--r0bx6 input[type='ChEcKBOx'],.index-module--r0bx6 input[type='cHEcKBOx'],.index-module--r0bx6 input[type='CHEcKBOx'],.index-module--r0bx6 input[type='cheCKBOx'],.index-module--r0bx6 input[type='CheCKBOx'],.index-module--r0bx6 input[type='cHeCKBOx'],.index-module--r0bx6 input[type='CHeCKBOx'],.index-module--r0bx6 input[type='chECKBOx'],.index-module--r0bx6 input[type='ChECKBOx'],.index-module--r0bx6 input[type='cHECKBOx'],.index-module--r0bx6 input[type='CHECKBOx'],.index-module--r0bx6 input[type='checkboX'],.index-module--r0bx6 input[type='CheckboX'],.index-module--r0bx6 input[type='cHeckboX'],.index-module--r0bx6 input[type='CHeckboX'],.index-module--r0bx6 input[type='chEckboX'],.index-module--r0bx6 input[type='ChEckboX'],.index-module--r0bx6 input[type='cHEckboX'],.index-module--r0bx6 input[type='CHEckboX'],.index-module--r0bx6 input[type='cheCkboX'],.index-module--r0bx6 input[type='CheCkboX'],.index-module--r0bx6 input[type='cHeCkboX'],.index-module--r0bx6 input[type='CHeCkboX'],.index-module--r0bx6 input[type='chECkboX'],.index-module--r0bx6 input[type='ChECkboX'],.index-module--r0bx6 input[type='cHECkboX'],.index-module--r0bx6 input[type='CHECkboX'],.index-module--r0bx6 input[type='checKboX'],.index-module--r0bx6 input[type='ChecKboX'],.index-module--r0bx6 input[type='cHecKboX'],.index-module--r0bx6 input[type='CHecKboX'],.index-module--r0bx6 input[type='chEcKboX'],.index-module--r0bx6 input[type='ChEcKboX'],.index-module--r0bx6 input[type='cHEcKboX'],.index-module--r0bx6 input[type='CHEcKboX'],.index-module--r0bx6 input[type='cheCKboX'],.index-module--r0bx6 input[type='CheCKboX'],.index-module--r0bx6 input[type='cHeCKboX'],.index-module--r0bx6 input[type='CHeCKboX'],.index-module--r0bx6 input[type='chECKboX'],.index-module--r0bx6 input[type='ChECKboX'],.index-module--r0bx6 input[type='cHECKboX'],.index-module--r0bx6 input[type='CHECKboX'],.index-module--r0bx6 input[type='checkBoX'],.index-module--r0bx6 input[type='CheckBoX'],.index-module--r0bx6 input[type='cHeckBoX'],.index-module--r0bx6 input[type='CHeckBoX'],.index-module--r0bx6 input[type='chEckBoX'],.index-module--r0bx6 input[type='ChEckBoX'],.index-module--r0bx6 input[type='cHEckBoX'],.index-module--r0bx6 input[type='CHEckBoX'],.index-module--r0bx6 input[type='cheCkBoX'],.index-module--r0bx6 input[type='CheCkBoX'],.index-module--r0bx6 input[type='cHeCkBoX'],.index-module--r0bx6 input[type='CHeCkBoX'],.index-module--r0bx6 input[type='chECkBoX'],.index-module--r0bx6 input[type='ChECkBoX'],.index-module--r0bx6 input[type='cHECkBoX'],.index-module--r0bx6 input[type='CHECkBoX'],.index-module--r0bx6 input[type='checKBoX'],.index-module--r0bx6 input[type='ChecKBoX'],.index-module--r0bx6 input[type='cHecKBoX'],.index-module--r0bx6 input[type='CHecKBoX'],.index-module--r0bx6 input[type='chEcKBoX'],.index-module--r0bx6 input[type='ChEcKBoX'],.index-module--r0bx6 input[type='cHEcKBoX'],.index-module--r0bx6 input[type='CHEcKBoX'],.index-module--r0bx6 input[type='cheCKBoX'],.index-module--r0bx6 input[type='CheCKBoX'],.index-module--r0bx6 input[type='cHeCKBoX'],.index-module--r0bx6 input[type='CHeCKBoX'],.index-module--r0bx6 input[type='chECKBoX'],.index-module--r0bx6 input[type='ChECKBoX'],.index-module--r0bx6 input[type='cHECKBoX'],.index-module--r0bx6 input[type='CHECKBoX'],.index-module--r0bx6 input[type='checkbOX'],.index-module--r0bx6 input[type='CheckbOX'],.index-module--r0bx6 input[type='cHeckbOX'],.index-module--r0bx6 input[type='CHeckbOX'],.index-module--r0bx6 input[type='chEckbOX'],.index-module--r0bx6 input[type='ChEckbOX'],.index-module--r0bx6 input[type='cHEckbOX'],.index-module--r0bx6 input[type='CHEckbOX'],.index-module--r0bx6 input[type='cheCkbOX'],.index-module--r0bx6 input[type='CheCkbOX'],.index-module--r0bx6 input[type='cHeCkbOX'],.index-module--r0bx6 input[type='CHeCkbOX'],.index-module--r0bx6 input[type='chECkbOX'],.index-module--r0bx6 input[type='ChECkbOX'],.index-module--r0bx6 input[type='cHECkbOX'],.index-module--r0bx6 input[type='CHECkbOX'],.index-module--r0bx6 input[type='checKbOX'],.index-module--r0bx6 input[type='ChecKbOX'],.index-module--r0bx6 input[type='cHecKbOX'],.index-module--r0bx6 input[type='CHecKbOX'],.index-module--r0bx6 input[type='chEcKbOX'],.index-module--r0bx6 input[type='ChEcKbOX'],.index-module--r0bx6 input[type='cHEcKbOX'],.index-module--r0bx6 input[type='CHEcKbOX'],.index-module--r0bx6 input[type='cheCKbOX'],.index-module--r0bx6 input[type='CheCKbOX'],.index-module--r0bx6 input[type='cHeCKbOX'],.index-module--r0bx6 input[type='CHeCKbOX'],.index-module--r0bx6 input[type='chECKbOX'],.index-module--r0bx6 input[type='ChECKbOX'],.index-module--r0bx6 input[type='cHECKbOX'],.index-module--r0bx6 input[type='CHECKbOX'],.index-module--r0bx6 input[type='checkBOX'],.index-module--r0bx6 input[type='CheckBOX'],.index-module--r0bx6 input[type='cHeckBOX'],.index-module--r0bx6 input[type='CHeckBOX'],.index-module--r0bx6 input[type='chEckBOX'],.index-module--r0bx6 input[type='ChEckBOX'],.index-module--r0bx6 input[type='cHEckBOX'],.index-module--r0bx6 input[type='CHEckBOX'],.index-module--r0bx6 input[type='cheCkBOX'],.index-module--r0bx6 input[type='CheCkBOX'],.index-module--r0bx6 input[type='cHeCkBOX'],.index-module--r0bx6 input[type='CHeCkBOX'],.index-module--r0bx6 input[type='chECkBOX'],.index-module--r0bx6 input[type='ChECkBOX'],.index-module--r0bx6 input[type='cHECkBOX'],.index-module--r0bx6 input[type='CHECkBOX'],.index-module--r0bx6 input[type='checKBOX'],.index-module--r0bx6 input[type='ChecKBOX'],.index-module--r0bx6 input[type='cHecKBOX'],.index-module--r0bx6 input[type='CHecKBOX'],.index-module--r0bx6 input[type='chEcKBOX'],.index-module--r0bx6 input[type='ChEcKBOX'],.index-module--r0bx6 input[type='cHEcKBOX'],.index-module--r0bx6 input[type='CHEcKBOX'],.index-module--r0bx6 input[type='cheCKBOX'],.index-module--r0bx6 input[type='CheCKBOX'],.index-module--r0bx6 input[type='cHeCKBOX'],.index-module--r0bx6 input[type='CHeCKBOX'],.index-module--r0bx6 input[type='chECKBOX'],.index-module--r0bx6 input[type='ChECKBOX'],.index-module--r0bx6 input[type='cHECKBOX'],.index-module--r0bx6 input[type='CHECKBOX'] {\n margin-bottom: 18px;\n}\n.index-module--YnLS3 {\n min-height: 86px;\n}\n.index-module--XXGGR {\n margin-top: 5px;\n}\n.index-module--NIxyW input,\n.index-module--NIxyW textarea {\n box-sizing: border-box !important;\n}\n.index-module--NIxyW input,\n.index-module--NIxyW textarea {\n height: 40px;\n width: 100%;\n display: block;\n box-sizing: border-box;\n padding: 0.5rem;\n border: 1px solid #cacaca;\n border-radius: 4px;\n background-color: #fefefe;\n box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);\n font-family: inherit;\n font-size: 1rem;\n font-weight: 100;\n color: #0a0a0a;\n transition:\n box-shadow 0.5s,\n border-color 0.25s ease-in-out;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.index-module--ThUOB {\n flex: 1 1 90%;\n}\n.index-module--Igmhd {\n flex: 1 1 10%;\n}\n.index-module--r0bx6 .index-module--deJ_k {\n max-height: 150px;\n}\n.index-module--xE_Th {\n margin: auto 0px;\n}\n.index-module--XIt2b {\n margin-bottom: 1.8%;\n}\n.index-module--NIxyW textarea {\n height: 87px !important;\n}\n.index-module--NIxyW textarea {\n margin-bottom: 2.5%;\n width: 100%;\n resize: vertical;\n}\n.index-module--r0bx6 div {\n outline: none !important;\n box-shadow: none !important;\n}\n\n.index-module--k8nuf .Dropdown-root {\n position: relative;\n}\n\n.index-module--k8nuf .Dropdown-control {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n color: #333;\n cursor: default;\n outline: none;\n padding: 8px 24px 8px 10px;\n transition: all 200ms ease;\n background-color: #fff;\n border-radius: var(--globalBorderRadius);\n border: 1px solid #ccc;\n font-size: 1rem;\n height: 38px;\n}\n\n.index-module--KQ7du .Dropdown-control {\n font-size: 12px;\n}\n\n.index-module--rcJrD .Dropdown-control {\n font-size: 15px;\n}\n\n.index-module--k8nuf .Dropdown-control:hover {\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);\n}\n\n.index-module--k8nuf .Dropdown-arrow {\n border-color: #999 transparent transparent;\n border-style: solid;\n border-width: 5px 5px 0;\n content: ' ';\n display: block;\n height: 0;\n margin-top: -ceil(2.5);\n position: absolute;\n right: 8px;\n top: 15px;\n width: 0;\n}\n\n.index-module--k8nuf .is-open .Dropdown-arrow {\n border-color: transparent transparent #999;\n border-width: 0 5px 5px;\n}\n\n.index-module--k8nuf .Dropdown-menu {\n background-color: white;\n box-sizing: border-box;\n margin-top: -1px;\n border: 1px solid #ddd;\n max-height: 130px;\n overflow-y: auto;\n position: absolute;\n top: 100%;\n width: 100%;\n z-index: 1100;\n -webkit-overflow-scrolling: touch;\n}\n\n.index-module--k8nuf .Dropdown-menu .Dropdown-group > .Dropdown-title {\n padding: 8px 10px;\n color: rgba(51, 51, 51, 1);\n font-weight: 300;\n text-transform: capitalize;\n}\n\n.index-module--k8nuf .Dropdown-option {\n box-sizing: border-box;\n color: rgba(51, 51, 51, 0.8);\n cursor: pointer;\n display: block;\n padding: 8px 10px;\n}\n\n.index-module--k8nuf .Dropdown-option:last-child {\n border-bottom-right-radius: 2px;\n border-bottom-left-radius: 2px;\n}\n\n.index-module--k8nuf .Dropdown-option:hover {\n background-color: #f2f9fc;\n}\n\n.index-module--k8nuf .Dropdown-option.is-selected {\n background-color: #f2f9fc;\n color: #333;\n}\n\n.index-module--k8nuf .Dropdown-noresults {\n box-sizing: border-box;\n color: #ccc;\n cursor: default;\n display: block;\n padding: 8px 10px;\n}\n",""]);var l="index-module--r0bx6",u="index-module--OE81C",x="index-module--JzaPK",a="index-module--_1nxR",c="index-module--NIxyW",p="index-module--Xs4Gf",s="index-module--rYbV7",m="index-module--yN7Qk",b="index-module--Kj_nd",C="index-module--I5O4a",h="index-module--YnLS3",y="index-module--XXGGR",k="index-module--ThUOB",v="index-module--Igmhd",g="index-module--deJ_k",f="index-module--xE_Th",N="index-module--XIt2b",O="index-module--k8nuf";const E=r},32889:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzNDAwIDM0MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGgKICAgIGZpbGw9IndoaXRlIgogICAgdHJhbnNmb3JtPSJzY2FsZSgxLC0xKSB0cmFuc2xhdGUoNDUwLC0yNjAwKSIKICAgIHN0cm9rZVdpZHRoPSIxIgogICAgZD0iTTc4MyAyNTVsLTMyNSAzMjVsLTcwIDcwbC0zOTEgMzkxcS0xNCAxNSAtMTQgMzUuNXQxNCAzNS41bDMyNSAzMjVxMTQgMTQgMzUgMTR0MzUgLTE0bDM5MSAtMzkxcTE1IC0xNSAzNS41IC0xNXQzNS41IDE1bDEwNDkgMTA0OXExNSAxNSAzNS41IDE1dDM1LjUgLTE1bDMyNyAtMzIycTE1IC0xNSAxNSAtMzVxMCAtMjEgLTE1IC0zNWwtMTQ0NyAtMTQ0OHEtMTUgLTE0IC0zNS41IC0xNHQtMzUuNSAxNHoiCiAgICAgLz4KPC9zdmc+"},17195:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzNDAwIDM0MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGgKICAgIGZpbGw9IndoaXRlIgogICAgdHJhbnNmb3JtPSJzY2FsZSgxLC0xKSB0cmFuc2xhdGUoNDUwLC0yNjAwKSIKICAgIHN0cm9rZVdpZHRoPSIxIgpkPSJNOTIxIDg5cS00MyAtNTQgLTc1IC01NHEtMjIgMCAtMzQgMjUuNXQtMTIgNzIuNXY3NjdoLTcwOHEtOTEgMCAtOTEgMzFxMCAyNiA2MyA2NWwyMDYzIDEyNzhxNDIgMjYgNzkgMjZxNDIgMCA2OCAtMzJ0MjYgLTg4di0xODAwcTAgLTU3IC0yNi41IC04OS41dC02OS41IC0zMi41cS0zNyAwIC03OCAyNWwtNzEyIDQyNXpNMTAwMCA0ODBsMTE4NiAxNzAwbC0xMTg2IC0xMzAwdi00MDB6Ii8+Cjwvc3ZnPg=="}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[2271,9243],{77654:(e,n,i)=>{i.r(n),i.d(n,{default:()=>K});var t=i(84658),o=i(38946),d=i(50747),r=i.n(d),l=i(65515),u=i.n(l),x=i(9420),a=i(87363),c=i(88683),p=i(25327),s=i(93379),m=i.n(s),b=i(7795),C=i.n(b),h=i(90569),y=i.n(h),k=i(3565),v=i.n(k),g=i(19216),f=i.n(g),N=i(44589),O=i.n(N),E=i(56052),B={};B.styleTagTransform=O(),B.setAttributes=v(),B.insert=y().bind(null,"head"),B.domAPI=C(),B.insertStyleElement=f();m()(E.ZP,B);E.ZP&&E.ZP.locals&&E.ZP.locals;var H=i(47514),X=(0,c.getLogger)("Planner","BasketActionSerious");const K=(0,x.Pi)((function BasketActionSerious(e){var n=e.saveIsDisabled,i=e.sendEmailIsDisabled,d=e.onSave,l=(0,p.NP)(),x=(0,c.useTranslation)().t,s=(0,a.useState)(!1),m=(0,o.Z)(s,2),b=m[0],C=m[1],h=(0,c.useDivaCore)().actions,y=h.userHasPermission,k=h.openSnackBar,v=function(){var e=(0,t.Z)(r().mark((function _callee(e){var t,o,u,a,c,p;return r().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next="email"===r.t0?3:"save"===r.t0?8:13;break;case 3:if(n||i){r.next=7;break}return d(),r.next=7,l.actionButtonState.onClickAddToBasket(l,"onSendEmail");case 7:return r.abrupt("break",13);case 8:if(n){r.next=12;break}return d(),r.next=12,l.actionButtonState.onClickAddToBasket(l);case 12:return r.abrupt("break",13);case 13:if(!l.getViewConfig().showPdfQR){r.next=22;break}if("boolean"!=typeof l.getViewConfig().showPdfQR){r.next=18;break}l.divaWebPlanner.getBasket().PDFDocumentURL?k({type:"big",qrCode:l.divaWebPlanner.getBasket().PDFDocumentURL,message:x("basket.checkout.pdfqr"),autoHideDuration:null!==(t=l.getViewConfig().pdfQRAutoHideDuration)&&void 0!==t?t:12e4,clickable:!(null!==(o=l.getViewConfig().pdfQRNotClickable)&&void 0!==o&&o),qrCodeSize:312}):X.warn("Basket is missing a pdf, no QR-Code displayed"),r.next=22;break;case 18:return r.next=20,null===(u=l.divaWebPlanner.actSet())||void 0===u?void 0:u.api.createBasketReport(l.divaWebPlanner.getBasket(),l.getViewConfig().showPdfQR,l.getViewConfig().savePdfQR);case 20:(a=r.sent)?k({type:"big",qrCode:a,qrCodeSize:312,message:x("basket.checkout.pdfqr"),autoHideDuration:null!==(c=l.getViewConfig().pdfQRAutoHideDuration)&&void 0!==c?c:12e4,clickable:!(null!==(p=l.getViewConfig().pdfQRNotClickable)&&void 0!==p&&p)}):X.warn("Could not generate PDF, no QR-Code displayed");case 22:case"end":return r.stop()}}),_callee)})));return function onClickSave(n){return e.apply(this,arguments)}}();return(0,H.jsxs)("div",{className:E.nC,children:[(0,H.jsxs)("div",{className:u()(E.LI,E.SH,n?E.jO:void 0),onClick:function onClick(){n||C(!b)},children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv,E.Nd)}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.ADD_TO_BASKET")]}),(0,H.jsxs)("div",{className:u()(b?E.bA:void 0,E.v),children:[(0,H.jsxs)("div",{className:E.$Q,onClick:function onClick(){return v("save")},id:"wcConfigurator-action-tobasket",children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv,E.Nd)}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.ADD_TO_BASKET")]})]}),(0,H.jsxs)("div",{className:u()(E.$Q,i?E.jO:void 0),onClick:function onClick(){return v("email")},children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv,E.hZ)}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.SendToClient")]})]})]})]}),(0,H.jsxs)("div",{onClick:function onClickReset(){var e;null===(e=l.actions)||void 0===e||e.openModal({title:x("modals.reset"),accept:!0,reject:!0,text:x("modals.are_you_sure_to_reset"),callback:function callback(e){e&&l.productState.onClickReset()}})},className:u()(E.LI,E.nN),children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv),children:(0,H.jsx)("svg",{width:"26",height:"22",viewBox:"0 0 3400 3400",xmlns:"http://www.w3.org/2000/svg",children:(0,H.jsx)("path",{className:E.e2,transform:"scale(1,-1) translate(450,-2600)",strokeWidth:"1",d:"M935 2061l-114 277q135 45 279 57v-300q-85 -9 -165 -34zM1435 2069q-71 19 -135 26v300q131 -11 251 -48zM615 1884l-211 212q119 105 260 176l114 -276q-87 -47 -163 -112zM1737 1921q-43 32 -89 59l115 279q99 -53 187 -125zM2007 -3l-148 204l-6 -4 q-146 -95 -321 -145t-332 -51q-172 0 -331.5 43t-291 120.5t-240 188t-182.5 242.5t-114.5 287t-40.5 318q0 225 80 429.5t224 367.5l212 -212q-103 -120 -159.5 -270t-56.5 -314q0 -123 32 -239.5t90 -215t140.5 -181.5t181.5 -141t216 -90.5t240 -31.5q146 0 256.5 34 t226.5 109l-151 212q-8 11 -8 20q0 20 29 19h683q17 0 27.5 -10t10.5 -25q0 -6 -3 -13l-220 -644q-7 -22 -22 -22q-12 0 -22 15zM1964 1673q-20 32 -43 64l213 213q61 -75 109 -161zM2085 1400q-4 0 -10 27l279 126q4 -14 8.5 -35.5t8 -41t6.5 -37.5t6 -28.5t5 -10.5h-303z "})})}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.ConfigReset")]})]}),y("favorites_lueck")&&(0,H.jsxs)("div",{onClick:function onClickFavorites(){var e,n;null===(e=l.actions)||void 0===e||e.openModal({title:x("modals.favorite"),accept:!0,reject:!0,text:x("modals.are_you_sure_favorite"),callback:(n=(0,t.Z)(r().mark((function _callee2(e){var n;return r().wrap((function _callee2$(i){for(;;)switch(i.prev=i.next){case 0:if(!e){i.next=5;break}return d(),i.next=4,l.actionButtonState.onClickAddToBasket(l,"onSaveProduct");case 4:null===(n=l.actions)||void 0===n||n.openModal({title:x("modals.favorite"),accept:!0,text:x("modals.favorites_saved")});case 5:case"end":return i.stop()}}),_callee2)}))),function callback(e){return n.apply(this,arguments)})})},className:u()(E.LI,E.nN),children:[(0,H.jsx)("div",{className:u()(E.O7,E.qv),children:(0,H.jsx)("svg",{width:"26",height:"22",viewBox:"0 0 3400 3400",xmlns:"http://www.w3.org/2000/svg",children:(0,H.jsx)("path",{className:E.e2,transform:"scale(1,-1) translate(450,-2600)",strokeWidth:"1",d:"M2491 1500l-765 -541l291 -885l-768 551l-764 -554l291 883l-776 546h958l294 900h3l292 -900h944zM484 68h-3l4 3z"})})}),(0,H.jsxs)("div",{className:u()(E.O7),children:[" ",x("configurator.Favorites")]})]})]})}))},42271:(e,n,i)=>{i.r(n),i.d(n,{default:()=>S});var t=i(80248),o=i(38946),d=i(65515),r=i.n(d),l=i(71954),u=i(87363),x=i(10304),a=i(77654),c=i(25327),p=i(93379),s=i.n(p),m=i(7795),b=i.n(m),C=i(90569),h=i.n(C),y=i(3565),k=i.n(y),v=i(19216),g=i.n(v),f=i(44589),N=i.n(f),O=i(69370),E={};E.styleTagTransform=N(),E.setAttributes=k(),E.insert=h().bind(null,"head"),E.domAPI=b(),E.insertStyleElement=g();s()(O.ZP,E);O.ZP&&O.ZP.locals&&O.ZP.locals;var B=i(9420),H=i(88683),X=i(59230),K=i(47514);function ownKeys(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var j=["configurationName","buildService","sellingAdvisor","toProduct","specInformations","firstName","lastName","email","phoneNumber","street","nr","postalCode","location","country"],w=["simple","simple","email","phoneNumber","simple","simple","simple","simple"];const S=(0,B.Pi)((function CheckOutForm(e){var n,i,d,p,s,m,b,C,h,y,k,v,g,f,N,E,B,S,I,D,A,M,z,P,T,Z,_,q,R,W,L,Q,V=(0,c.NP)(),U=V.divaWebPlanner.getBasketData(),J=(0,u.useState)(!1),G=(0,o.Z)(J,2),F=G[0],$=G[1],Y=(0,u.useState)(!1),ee=(0,o.Z)(Y,2),ne=ee[0],ie=ee[1],te=(0,u.useState)(""),oe=(0,o.Z)(te,2),de=oe[0],re=oe[1];function regexCheck(e,n){switch(e){case"simple":return n.length>0;case"email":var i=H.DivaUtils.validateEmail(n);return ie(i),i;case"phoneNumber":return!!(/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/.test(n)&&n.length>0);case"number":return!!(/^[0-9]*$/.test(n)&&n.length>0);case"letters":return!!(/^[\u00C0-\u017Fa-zA-Z'][\u00C0-\u017Fa-zA-Z-' ]+[\u00C0-\u017Fa-zA-Z']?$/.test(n)&&n.length>0)}return!1}function InputCheck(e,n,i){ce(_objectSpread(_objectSpread({},ae),{},(0,t.Z)({},e,n))),be(_objectSpread(_objectSpread({},me),{},"buildService"!==e?(0,t.Z)({},e,regexCheck(i,n)):(0,t.Z)({},e,!0)))}var le=(0,H.useTranslation)().t;(0,u.useEffect)((function(){var e,n=null===(e=V.divaWebPlanner)||void 0===e?void 0:e.actSet();re(n?(0,X.B8)(n):"")}),[V.settingsState.configChanged]);var ue=(0,u.useState)({configurationName:null!==(n=U.ProductSetName)&&void 0!==n?n:"",buildService:null!==(i=null===(d=U.Client)||void 0===d?void 0:d.delivery)&&void 0!==i?i:!(null===(p=U.OrderSets)||void 0===p||!p.find((function(e){return e.OrderLines.find((function(e){var n;return!("JA"!=(null===(n=e.VariantBasketDatas)||void 0===n||null===(n=n.find((function(e){return"SERVICE"===e.OPT})))||void 0===n?void 0:n.OPV))}))}))),sellingAdvisor:null!==(s=U.Salesperson)&&void 0!==s?s:"".concat((null===(m=V.configState.currentUser)||void 0===m?void 0:m.name)||""," ").concat((null===(b=V.configState.currentUser)||void 0===b?void 0:b.familyName)||"").trim(),toProduct:null!==(C=U.ClientRemark)&&void 0!==C?C:"",firstName:null!==(h=null===(y=U.Client)||void 0===y?void 0:y.firstName)&&void 0!==h?h:"",preferredContact:null!==(k=null===(v=U.Client)||void 0===v?void 0:v.preferredContact)&&void 0!==k?k:"email",lastName:null!==(g=null===(f=U.Client)||void 0===f?void 0:f.lastName)&&void 0!==g?g:"",email:null!==(N=null===(E=U.Client)||void 0===E?void 0:E.email)&&void 0!==N?N:"",phoneNumber:null!==(B=null===(S=U.Client)||void 0===S?void 0:S.phone)&&void 0!==B?B:"",street:null!==(I=null===(D=U.Client)||void 0===D?void 0:D.address)&&void 0!==I?I:"",nr:null!==(A=null===(M=U.Client)||void 0===M?void 0:M.addressNr)&&void 0!==A?A:"",postalCode:null!==(z=null===(P=U.Client)||void 0===P?void 0:P.cap)&&void 0!==z?z:"",location:null!==(T=null===(Z=U.Client)||void 0===Z?void 0:Z.city)&&void 0!==T?T:"",country:null!==(_=null===(q=U.Client)||void 0===q?void 0:q.countryCode)&&void 0!==_?_:"Deutschland",dateofdelivery:null!==(R=null===(W=U.Client)||void 0===W||null===(W=W.clientPreferedDeliveryDate)||void 0===W?void 0:W.toString())&&void 0!==R?R:"",specInformations:null!==(L=null===(Q=U.Client)||void 0===Q?void 0:Q.deliveryNotes)&&void 0!==L?L:""}),xe=(0,o.Z)(ue,2),ae=xe[0],ce=xe[1],pe=(0,u.useState)((function(){for(var e=[!1,!1,!1,!1,!1,!1,!1,!1],n=["firstName","lastName","email","phoneNumber","street","nr","postalCode","location"],i=0;i<e.length;i++)e[i]=regexCheck(w[i],ae[n[i]]);return{firstName:e[0],lastName:e[1],email:e[2],phoneNumber:e[3],street:e[4],nr:e[5],postalCode:e[6],location:e[7]}})),se=(0,o.Z)(pe,2),me=se[0],be=se[1];return(0,u.useEffect)((function(){"true"===ae.buildService.toString()?Object.values(me).some((function(e){return!1===e}))?$(!1):$(!0):me.firstName&&me.lastName?$(!0):$(!1)})),(0,K.jsxs)("div",{className:O.gN,children:[(0,K.jsxs)("div",{className:O.rr,children:[(0,K.jsxs)("div",{children:[(0,K.jsx)("a",{className:O.Se,children:le("archive.header.productsetname")}),(0,K.jsx)("input",{placeholder:de,className:r()(O.x8),onChange:function onChange(e){return InputCheck(j[0],e.target.value,"simple")},value:ae.configurationName}),(0,K.jsx)("a",{className:O.Se,children:le("checkout.build_service_title")}),(0,K.jsxs)("div",{className:r()(O.ZN,O._6),children:[(0,K.jsx)(l.default,{onChange:function onChange(e){var n=!ae.buildService;V.paletteViewHandler.changeOnCheckoutConfig({OPTSERVICE:"OPV"+(n?"JA":"NEIN")}),ce(_objectSpread(_objectSpread({},ae),{},{buildService:n}))},state:ae.buildService,on:le("ja"),off:le("nein")}),(0,K.jsx)("a",{className:O.e5,children:le("checkout.build_service_text")})]}),(0,K.jsx)("a",{className:r()(O.Se),children:le("checkout.additional_info")}),(0,K.jsxs)("div",{className:O.jw,children:[(0,K.jsx)("a",{children:le("checkout.selling_advisor")}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[2],e.target.value,"simple")},value:ae.sellingAdvisor})]}),(0,K.jsx)("a",{children:le("checkout.to_product")}),(0,K.jsx)("textarea",{onChange:function onChange(e){return InputCheck(j[3],e.target.value,"simple")},value:ae.toProduct}),ae.buildService&&(0,K.jsxs)("div",{children:[(0,K.jsx)("a",{children:le("checkout.spec_informations")}),(0,K.jsx)("textarea",{onChange:function onChange(e){return InputCheck(j[4],e.target.value,"simple")},value:ae.specInformations})]})]}),(0,K.jsxs)("div",{className:O.MV,children:[(0,K.jsx)("a",{className:O.Se,children:le("checkout.client_info")}),(0,K.jsx)("div",{className:O.di}),(0,K.jsxs)("div",{className:r()(O._6,O.jw),children:[(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.name"),"*"]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[5],e.target.value,w[0])},value:ae.firstName}),(0,K.jsx)("a",{className:r()(O.X_,me.firstName?O.Cp:O.$Z),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.surname"),"*"]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[6],e.target.value,w[1])},value:ae.lastName}),(0,K.jsx)("a",{className:r()(O.X_,me.lastName?O.Cp:O.$Z),children:" "+le("checkout.required")})]})]}),(0,K.jsxs)("div",{className:O.jw,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.email"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[7],e.target.value,w[2])},value:ae.email}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.email?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.jw,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.phone"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[8],e.target.value,w[3])},value:ae.phoneNumber}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.phoneNumber?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),ae.buildService&&(0,K.jsx)("a",{className:r()(O.Se,O.Iw),children:le("checkout.delivery_address")}),(0,K.jsxs)("div",{className:r()(O._6,O.jw),children:[(0,K.jsxs)("div",{className:O.gT,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.address"),ae.buildService?"*":""]}),(0,K.jsx)("input",{className:O.gT,onChange:function onChange(e){return InputCheck(j[9],e.target.value,w[4])},value:ae.street}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.street?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.nr,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.addressNr"),ae.buildService?"*":""]}),(0,K.jsx)("input",{className:O.nr,onChange:function onChange(e){return InputCheck(j[10],e.target.value,w[5])},value:ae.nr}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.nr?O.$Z:O.Cp),children:" "+le("checkout.required")})]})]}),(0,K.jsxs)("div",{className:r()(O._6,O.jw),children:[(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.cap"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[11],e.target.value,w[6])},value:ae.postalCode}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.postalCode?O.$Z:O.Cp),children:" "+le("checkout.required")})]}),(0,K.jsxs)("div",{className:O.di,children:[(0,K.jsxs)("a",{children:[le("basket.clientData.form.city"),ae.buildService?"*":""]}),(0,K.jsx)("input",{onChange:function onChange(e){return InputCheck(j[12],e.target.value,w[7])},value:ae.location}),(0,K.jsx)("a",{className:r()(O.X_,ae.buildService&&!me.location?O.$Z:O.Cp),children:" "+le("checkout.required")})]})]}),(0,K.jsxs)("a",{children:[le("basket.clientData.form.countryCode"),ae.buildService?"*":""]}),(0,K.jsx)(x.Z,{menuClassName:O.Kh,value:ae.country,options:["Deutschland","Österreich","Schweiz","Luxemburg","Belgien","Niederlande","Tschechien","Kasachstan"],onChange:function onChange(e){return InputCheck(j[13],e.value,"simple")}})]})]}),(0,K.jsx)("div",{className:O.IH,children:(0,K.jsx)(a.default,{onSave:function saveValues(e){var n;U.Client||(U.Client={});var i=""!==ae.configurationName?ae.configurationName:de;U.ProductSetName=""!==i?i:void 0,U.SetName=""!==de?de:void 0,ae&&(U.Client.firstName=ae.firstName,U.Client.preferredContact=ae.preferredContact,U.Client.lastName=ae.lastName,U.Client.email=ae.email,U.Client.phone=ae.phoneNumber,U.Client.address=ae.street,U.Client.addressNr=ae.nr,U.Client.cap=ae.postalCode,U.Client.city=ae.location,U.Client.countryCode=ae.country,U.Client.clientPreferedDeliveryDate=ae.dateofdelivery?new Date(ae.dateofdelivery):void 0,U.Client.deliveryNotes=ae.specInformations,U.Client.delivery=ae.buildService),U.ClientRemark=ae.toProduct,U.SalespersonOverwrite=ae.sellingAdvisor,U.SalespersonEmail=(null===(n=V.configState.currentUser)||void 0===n?void 0:n.mainEmail)||"",e&&(U.SendIWOBasket=!0,U.OrderStatus="SEND")},saveIsDisabled:!F,sendEmailIsDisabled:!ne})})]})}))},56052:(e,n,i)=>{i.d(n,{$Q:()=>y,LI:()=>k,Nd:()=>E,O7:()=>N,SH:()=>v,ZP:()=>H,bA:()=>C,e2:()=>O,hZ:()=>B,jO:()=>g,nC:()=>m,nN:()=>f,qv:()=>h,v:()=>b});var t=i(8081),o=i.n(t),d=i(23645),r=i.n(d),l=i(61667),u=i.n(l),x=new URL(i(32889),i.b),a=new URL(i(17195),i.b),c=r()(o()),p=u()(x),s=u()(a);c.push([e.id,".index-module--BLUm6 {\n display: flex;\n flex-direction: row;\n margin-left: 16px;\n}\n\n.index-module--HfQcx {\n border: 1px solid #cacaca;\n border-radius: 4px;\n position: absolute;\n bottom: 105%;\n left: 0;\n right: -5px;\n padding: 0.84em 1em;\n color: #000;\n color: initial;\n display: none;\n flex-direction: column;\n}\n\n.index-module--HfQcx.index-module--zBXSm {\n display: flex;\n}\n\n.index-module--HfQcx .index-module--JygIB {\n filter: brightness(0.1);\n}\n.index-module--HfQcx .index-module--GkVFm:hover {\n color: var(--primaryColor);\n}\n\n.index-module--am5Wh {\n position: relative;\n font-weight: 100;\n border-radius: 32px;\n transition: background-color 0.25s ease-out, color 0.25s ease-out;\n font-size: 0.9rem;\n line-height: 18px;\n text-align: center;\n cursor: pointer;\n box-sizing: border-box;\n display: inline-block;\n vertical-align: middle;\n margin: 0 0.5rem 1rem 0;\n padding: 0.85em 1em;\n -webkit-appearance: none;\n border: 1px solid transparent;\n}\n\n.index-module--xqWc8 {\n background-color: var(--primaryColor);\n color: #fefefe;\n}\n\n.index-module--qJM2I {\n opacity: 0.25;\n cursor: not-allowed;\n}\n\n.index-module--xqWc8:hover {\n filter: brightness(0.9);\n}\n\n.index-module--kWTPM {\n background-color: transparent;\n border-color: var(--primaryColor);\n color: var(--primaryColor);\n padding: 0.85em 1em 0.85em 0.25em;\n}\n\n.index-module--kWTPM:hover {\n fill: #202020 !important;\n}\n\n.index-module--kWTPM:hover {\n border-color: #202020;\n color: #202020;\n}\n\n.index-module--fTcws {\n float: left;\n}\n.index-module--kWTPM .index-module--fTcws {\n padding-left: 0.5em;\n}\n\n.index-module--GkVFm {\n margin: 0.5em 0;\n}\n\n.index-module--JygIB {\n background-repeat: no-repeat;\n background-position: center center;\n background-size: contain;\n width: 20px;\n height: 20px;\n}\n.index-module--nUotN {\n fill: var(--primaryColor);\n transition: fill 0.25s ease-out, color 0.25s ease-out;\n}\n\n.index-module--kWTPM:hover .index-module--nUotN {\n fill: black;\n}\n\n.index-module--b4Lgf {\n background-image: url("+p+");\n}\n.index-module--Y3R7R {\n background-image: url("+s+");\n}\n\n.index-module--aWiJp path {\n background-color: var(--primaryColor);\n}\n",""]);var m="index-module--BLUm6",b="index-module--HfQcx",C="index-module--zBXSm",h="index-module--JygIB",y="index-module--GkVFm",k="index-module--am5Wh",v="index-module--xqWc8",g="index-module--qJM2I",f="index-module--kWTPM",N="index-module--fTcws",O="index-module--nUotN",E="index-module--b4Lgf",B="index-module--Y3R7R";const H=c},69370:(e,n,i)=>{i.d(n,{$Z:()=>u,Cp:()=>x,IH:()=>m,Iw:()=>N,Kh:()=>g,MV:()=>O,Se:()=>a,X_:()=>b,ZN:()=>y,ZP:()=>E,_6:()=>p,di:()=>s,e5:()=>f,gN:()=>l,gT:()=>k,jw:()=>h,nr:()=>v,rr:()=>c,x8:()=>C});var t=i(8081),o=i.n(t),d=i(23645),r=i.n(d)()(o());r.push([e.id,"/* form */\n.index-module--r0bx6 {\n top: 100%;\n position: absolute;\n width: 100%;\n}\n.index-module--OE81C {\n display: flex !important;\n}\n.index-module--JzaPK {\n display: none !important;\n}\n\n.index-module--r0bx6 a {\n display: flex;\n color: black;\n cursor: default;\n}\n.index-module--r0bx6 a:hover {\n display: flex;\n color: black;\n cursor: default;\n}\n.index-module--r0bx6 .index-module--_1nxR {\n color: var(--primaryColor);\n font-size: 150%;\n font-weight: 300;\n padding-bottom: 3.7%;\n padding-top: 4%;\n text-align: left;\n}\n.index-module--r0bx6 .index-module--_1nxR:hover {\n color: var(--primaryColor);\n font-size: 150%;\n font-weight: 300;\n padding-bottom: 3.7%;\n padding-top: 4%;\n text-align: left;\n}\n.index-module--NIxyW {\n display: flex;\n gap: 50px;\n padding: 0 50px;\n}\n.index-module--NIxyW > * {\n flex-basis: 100%;\n}\n\n.index-module--Xs4Gf {\n display: flex;\n flex-direction: row;\n align-items: top;\n flex-basis: 100%;\n gap: 3%;\n}\n.index-module--rYbV7 {\n display: flex;\n flex-direction: column;\n align-items: top;\n flex-basis: 100%;\n}\n.index-module--yN7Qk {\n margin-top: 7%;\n margin-left: 1%;\n}\n.index-module--NIxyW .index-module--Kj_nd {\n color: var(--primaryColor);\n font-size: 80%;\n padding-bottom: 2%;\n padding-right: 38%;\n}\n.index-module--NIxyW .index-module--Kj_nd:hover {\n color: var(--primaryColor);\n font-size: 80%;\n padding-bottom: 2%;\n padding-right: 38%;\n}\n.index-module--I5O4a {\n margin-top: 20px;\n}\n.index-module--r0bx6 input[type='checkbox'],.index-module--r0bx6 input[type='Checkbox'],.index-module--r0bx6 input[type='cHeckbox'],.index-module--r0bx6 input[type='CHeckbox'],.index-module--r0bx6 input[type='chEckbox'],.index-module--r0bx6 input[type='ChEckbox'],.index-module--r0bx6 input[type='cHEckbox'],.index-module--r0bx6 input[type='CHEckbox'],.index-module--r0bx6 input[type='cheCkbox'],.index-module--r0bx6 input[type='CheCkbox'],.index-module--r0bx6 input[type='cHeCkbox'],.index-module--r0bx6 input[type='CHeCkbox'],.index-module--r0bx6 input[type='chECkbox'],.index-module--r0bx6 input[type='ChECkbox'],.index-module--r0bx6 input[type='cHECkbox'],.index-module--r0bx6 input[type='CHECkbox'],.index-module--r0bx6 input[type='checKbox'],.index-module--r0bx6 input[type='ChecKbox'],.index-module--r0bx6 input[type='cHecKbox'],.index-module--r0bx6 input[type='CHecKbox'],.index-module--r0bx6 input[type='chEcKbox'],.index-module--r0bx6 input[type='ChEcKbox'],.index-module--r0bx6 input[type='cHEcKbox'],.index-module--r0bx6 input[type='CHEcKbox'],.index-module--r0bx6 input[type='cheCKbox'],.index-module--r0bx6 input[type='CheCKbox'],.index-module--r0bx6 input[type='cHeCKbox'],.index-module--r0bx6 input[type='CHeCKbox'],.index-module--r0bx6 input[type='chECKbox'],.index-module--r0bx6 input[type='ChECKbox'],.index-module--r0bx6 input[type='cHECKbox'],.index-module--r0bx6 input[type='CHECKbox'],.index-module--r0bx6 input[type='checkBox'],.index-module--r0bx6 input[type='CheckBox'],.index-module--r0bx6 input[type='cHeckBox'],.index-module--r0bx6 input[type='CHeckBox'],.index-module--r0bx6 input[type='chEckBox'],.index-module--r0bx6 input[type='ChEckBox'],.index-module--r0bx6 input[type='cHEckBox'],.index-module--r0bx6 input[type='CHEckBox'],.index-module--r0bx6 input[type='cheCkBox'],.index-module--r0bx6 input[type='CheCkBox'],.index-module--r0bx6 input[type='cHeCkBox'],.index-module--r0bx6 input[type='CHeCkBox'],.index-module--r0bx6 input[type='chECkBox'],.index-module--r0bx6 input[type='ChECkBox'],.index-module--r0bx6 input[type='cHECkBox'],.index-module--r0bx6 input[type='CHECkBox'],.index-module--r0bx6 input[type='checKBox'],.index-module--r0bx6 input[type='ChecKBox'],.index-module--r0bx6 input[type='cHecKBox'],.index-module--r0bx6 input[type='CHecKBox'],.index-module--r0bx6 input[type='chEcKBox'],.index-module--r0bx6 input[type='ChEcKBox'],.index-module--r0bx6 input[type='cHEcKBox'],.index-module--r0bx6 input[type='CHEcKBox'],.index-module--r0bx6 input[type='cheCKBox'],.index-module--r0bx6 input[type='CheCKBox'],.index-module--r0bx6 input[type='cHeCKBox'],.index-module--r0bx6 input[type='CHeCKBox'],.index-module--r0bx6 input[type='chECKBox'],.index-module--r0bx6 input[type='ChECKBox'],.index-module--r0bx6 input[type='cHECKBox'],.index-module--r0bx6 input[type='CHECKBox'],.index-module--r0bx6 input[type='checkbOx'],.index-module--r0bx6 input[type='CheckbOx'],.index-module--r0bx6 input[type='cHeckbOx'],.index-module--r0bx6 input[type='CHeckbOx'],.index-module--r0bx6 input[type='chEckbOx'],.index-module--r0bx6 input[type='ChEckbOx'],.index-module--r0bx6 input[type='cHEckbOx'],.index-module--r0bx6 input[type='CHEckbOx'],.index-module--r0bx6 input[type='cheCkbOx'],.index-module--r0bx6 input[type='CheCkbOx'],.index-module--r0bx6 input[type='cHeCkbOx'],.index-module--r0bx6 input[type='CHeCkbOx'],.index-module--r0bx6 input[type='chECkbOx'],.index-module--r0bx6 input[type='ChECkbOx'],.index-module--r0bx6 input[type='cHECkbOx'],.index-module--r0bx6 input[type='CHECkbOx'],.index-module--r0bx6 input[type='checKbOx'],.index-module--r0bx6 input[type='ChecKbOx'],.index-module--r0bx6 input[type='cHecKbOx'],.index-module--r0bx6 input[type='CHecKbOx'],.index-module--r0bx6 input[type='chEcKbOx'],.index-module--r0bx6 input[type='ChEcKbOx'],.index-module--r0bx6 input[type='cHEcKbOx'],.index-module--r0bx6 input[type='CHEcKbOx'],.index-module--r0bx6 input[type='cheCKbOx'],.index-module--r0bx6 input[type='CheCKbOx'],.index-module--r0bx6 input[type='cHeCKbOx'],.index-module--r0bx6 input[type='CHeCKbOx'],.index-module--r0bx6 input[type='chECKbOx'],.index-module--r0bx6 input[type='ChECKbOx'],.index-module--r0bx6 input[type='cHECKbOx'],.index-module--r0bx6 input[type='CHECKbOx'],.index-module--r0bx6 input[type='checkBOx'],.index-module--r0bx6 input[type='CheckBOx'],.index-module--r0bx6 input[type='cHeckBOx'],.index-module--r0bx6 input[type='CHeckBOx'],.index-module--r0bx6 input[type='chEckBOx'],.index-module--r0bx6 input[type='ChEckBOx'],.index-module--r0bx6 input[type='cHEckBOx'],.index-module--r0bx6 input[type='CHEckBOx'],.index-module--r0bx6 input[type='cheCkBOx'],.index-module--r0bx6 input[type='CheCkBOx'],.index-module--r0bx6 input[type='cHeCkBOx'],.index-module--r0bx6 input[type='CHeCkBOx'],.index-module--r0bx6 input[type='chECkBOx'],.index-module--r0bx6 input[type='ChECkBOx'],.index-module--r0bx6 input[type='cHECkBOx'],.index-module--r0bx6 input[type='CHECkBOx'],.index-module--r0bx6 input[type='checKBOx'],.index-module--r0bx6 input[type='ChecKBOx'],.index-module--r0bx6 input[type='cHecKBOx'],.index-module--r0bx6 input[type='CHecKBOx'],.index-module--r0bx6 input[type='chEcKBOx'],.index-module--r0bx6 input[type='ChEcKBOx'],.index-module--r0bx6 input[type='cHEcKBOx'],.index-module--r0bx6 input[type='CHEcKBOx'],.index-module--r0bx6 input[type='cheCKBOx'],.index-module--r0bx6 input[type='CheCKBOx'],.index-module--r0bx6 input[type='cHeCKBOx'],.index-module--r0bx6 input[type='CHeCKBOx'],.index-module--r0bx6 input[type='chECKBOx'],.index-module--r0bx6 input[type='ChECKBOx'],.index-module--r0bx6 input[type='cHECKBOx'],.index-module--r0bx6 input[type='CHECKBOx'],.index-module--r0bx6 input[type='checkboX'],.index-module--r0bx6 input[type='CheckboX'],.index-module--r0bx6 input[type='cHeckboX'],.index-module--r0bx6 input[type='CHeckboX'],.index-module--r0bx6 input[type='chEckboX'],.index-module--r0bx6 input[type='ChEckboX'],.index-module--r0bx6 input[type='cHEckboX'],.index-module--r0bx6 input[type='CHEckboX'],.index-module--r0bx6 input[type='cheCkboX'],.index-module--r0bx6 input[type='CheCkboX'],.index-module--r0bx6 input[type='cHeCkboX'],.index-module--r0bx6 input[type='CHeCkboX'],.index-module--r0bx6 input[type='chECkboX'],.index-module--r0bx6 input[type='ChECkboX'],.index-module--r0bx6 input[type='cHECkboX'],.index-module--r0bx6 input[type='CHECkboX'],.index-module--r0bx6 input[type='checKboX'],.index-module--r0bx6 input[type='ChecKboX'],.index-module--r0bx6 input[type='cHecKboX'],.index-module--r0bx6 input[type='CHecKboX'],.index-module--r0bx6 input[type='chEcKboX'],.index-module--r0bx6 input[type='ChEcKboX'],.index-module--r0bx6 input[type='cHEcKboX'],.index-module--r0bx6 input[type='CHEcKboX'],.index-module--r0bx6 input[type='cheCKboX'],.index-module--r0bx6 input[type='CheCKboX'],.index-module--r0bx6 input[type='cHeCKboX'],.index-module--r0bx6 input[type='CHeCKboX'],.index-module--r0bx6 input[type='chECKboX'],.index-module--r0bx6 input[type='ChECKboX'],.index-module--r0bx6 input[type='cHECKboX'],.index-module--r0bx6 input[type='CHECKboX'],.index-module--r0bx6 input[type='checkBoX'],.index-module--r0bx6 input[type='CheckBoX'],.index-module--r0bx6 input[type='cHeckBoX'],.index-module--r0bx6 input[type='CHeckBoX'],.index-module--r0bx6 input[type='chEckBoX'],.index-module--r0bx6 input[type='ChEckBoX'],.index-module--r0bx6 input[type='cHEckBoX'],.index-module--r0bx6 input[type='CHEckBoX'],.index-module--r0bx6 input[type='cheCkBoX'],.index-module--r0bx6 input[type='CheCkBoX'],.index-module--r0bx6 input[type='cHeCkBoX'],.index-module--r0bx6 input[type='CHeCkBoX'],.index-module--r0bx6 input[type='chECkBoX'],.index-module--r0bx6 input[type='ChECkBoX'],.index-module--r0bx6 input[type='cHECkBoX'],.index-module--r0bx6 input[type='CHECkBoX'],.index-module--r0bx6 input[type='checKBoX'],.index-module--r0bx6 input[type='ChecKBoX'],.index-module--r0bx6 input[type='cHecKBoX'],.index-module--r0bx6 input[type='CHecKBoX'],.index-module--r0bx6 input[type='chEcKBoX'],.index-module--r0bx6 input[type='ChEcKBoX'],.index-module--r0bx6 input[type='cHEcKBoX'],.index-module--r0bx6 input[type='CHEcKBoX'],.index-module--r0bx6 input[type='cheCKBoX'],.index-module--r0bx6 input[type='CheCKBoX'],.index-module--r0bx6 input[type='cHeCKBoX'],.index-module--r0bx6 input[type='CHeCKBoX'],.index-module--r0bx6 input[type='chECKBoX'],.index-module--r0bx6 input[type='ChECKBoX'],.index-module--r0bx6 input[type='cHECKBoX'],.index-module--r0bx6 input[type='CHECKBoX'],.index-module--r0bx6 input[type='checkbOX'],.index-module--r0bx6 input[type='CheckbOX'],.index-module--r0bx6 input[type='cHeckbOX'],.index-module--r0bx6 input[type='CHeckbOX'],.index-module--r0bx6 input[type='chEckbOX'],.index-module--r0bx6 input[type='ChEckbOX'],.index-module--r0bx6 input[type='cHEckbOX'],.index-module--r0bx6 input[type='CHEckbOX'],.index-module--r0bx6 input[type='cheCkbOX'],.index-module--r0bx6 input[type='CheCkbOX'],.index-module--r0bx6 input[type='cHeCkbOX'],.index-module--r0bx6 input[type='CHeCkbOX'],.index-module--r0bx6 input[type='chECkbOX'],.index-module--r0bx6 input[type='ChECkbOX'],.index-module--r0bx6 input[type='cHECkbOX'],.index-module--r0bx6 input[type='CHECkbOX'],.index-module--r0bx6 input[type='checKbOX'],.index-module--r0bx6 input[type='ChecKbOX'],.index-module--r0bx6 input[type='cHecKbOX'],.index-module--r0bx6 input[type='CHecKbOX'],.index-module--r0bx6 input[type='chEcKbOX'],.index-module--r0bx6 input[type='ChEcKbOX'],.index-module--r0bx6 input[type='cHEcKbOX'],.index-module--r0bx6 input[type='CHEcKbOX'],.index-module--r0bx6 input[type='cheCKbOX'],.index-module--r0bx6 input[type='CheCKbOX'],.index-module--r0bx6 input[type='cHeCKbOX'],.index-module--r0bx6 input[type='CHeCKbOX'],.index-module--r0bx6 input[type='chECKbOX'],.index-module--r0bx6 input[type='ChECKbOX'],.index-module--r0bx6 input[type='cHECKbOX'],.index-module--r0bx6 input[type='CHECKbOX'],.index-module--r0bx6 input[type='checkBOX'],.index-module--r0bx6 input[type='CheckBOX'],.index-module--r0bx6 input[type='cHeckBOX'],.index-module--r0bx6 input[type='CHeckBOX'],.index-module--r0bx6 input[type='chEckBOX'],.index-module--r0bx6 input[type='ChEckBOX'],.index-module--r0bx6 input[type='cHEckBOX'],.index-module--r0bx6 input[type='CHEckBOX'],.index-module--r0bx6 input[type='cheCkBOX'],.index-module--r0bx6 input[type='CheCkBOX'],.index-module--r0bx6 input[type='cHeCkBOX'],.index-module--r0bx6 input[type='CHeCkBOX'],.index-module--r0bx6 input[type='chECkBOX'],.index-module--r0bx6 input[type='ChECkBOX'],.index-module--r0bx6 input[type='cHECkBOX'],.index-module--r0bx6 input[type='CHECkBOX'],.index-module--r0bx6 input[type='checKBOX'],.index-module--r0bx6 input[type='ChecKBOX'],.index-module--r0bx6 input[type='cHecKBOX'],.index-module--r0bx6 input[type='CHecKBOX'],.index-module--r0bx6 input[type='chEcKBOX'],.index-module--r0bx6 input[type='ChEcKBOX'],.index-module--r0bx6 input[type='cHEcKBOX'],.index-module--r0bx6 input[type='CHEcKBOX'],.index-module--r0bx6 input[type='cheCKBOX'],.index-module--r0bx6 input[type='CheCKBOX'],.index-module--r0bx6 input[type='cHeCKBOX'],.index-module--r0bx6 input[type='CHeCKBOX'],.index-module--r0bx6 input[type='chECKBOX'],.index-module--r0bx6 input[type='ChECKBOX'],.index-module--r0bx6 input[type='cHECKBOX'],.index-module--r0bx6 input[type='CHECKBOX'] {\n margin-bottom: 18px;\n}\n.index-module--YnLS3 {\n min-height: 86px;\n}\n.index-module--XXGGR {\n margin-top: 5px;\n}\n.index-module--NIxyW input,\n.index-module--NIxyW textarea {\n box-sizing: border-box !important;\n}\n.index-module--NIxyW input,\n.index-module--NIxyW textarea {\n height: 40px;\n width: 100%;\n display: block;\n box-sizing: border-box;\n padding: 0.5rem;\n border: 1px solid #cacaca;\n border-radius: 4px;\n background-color: #fefefe;\n box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);\n font-family: inherit;\n font-size: 1rem;\n font-weight: 100;\n color: #0a0a0a;\n transition:\n box-shadow 0.5s,\n border-color 0.25s ease-in-out;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.index-module--ThUOB {\n flex: 1 1 90%;\n}\n.index-module--Igmhd {\n flex: 1 1 10%;\n}\n.index-module--r0bx6 .index-module--deJ_k {\n max-height: 150px;\n}\n.index-module--xE_Th {\n margin: auto 0px;\n}\n.index-module--XIt2b {\n margin-bottom: 1.8%;\n}\n.index-module--NIxyW textarea {\n height: 87px !important;\n}\n.index-module--NIxyW textarea {\n margin-bottom: 2.5%;\n width: 100%;\n resize: vertical;\n}\n.index-module--r0bx6 div {\n outline: none !important;\n box-shadow: none !important;\n}\n\n.index-module--k8nuf .Dropdown-root {\n position: relative;\n}\n\n.index-module--k8nuf .Dropdown-control {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n color: #333;\n cursor: default;\n outline: none;\n padding: 8px 24px 8px 10px;\n transition: all 200ms ease;\n background-color: #fff;\n border-radius: var(--globalBorderRadius);\n border: 1px solid #ccc;\n font-size: 1rem;\n height: 38px;\n}\n\n.index-module--KQ7du .Dropdown-control {\n font-size: 12px;\n}\n\n.index-module--rcJrD .Dropdown-control {\n font-size: 15px;\n}\n\n.index-module--k8nuf .Dropdown-control:hover {\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);\n}\n\n.index-module--k8nuf .Dropdown-arrow {\n border-color: #999 transparent transparent;\n border-style: solid;\n border-width: 5px 5px 0;\n content: ' ';\n display: block;\n height: 0;\n margin-top: -ceil(2.5);\n position: absolute;\n right: 8px;\n top: 15px;\n width: 0;\n}\n\n.index-module--k8nuf .is-open .Dropdown-arrow {\n border-color: transparent transparent #999;\n border-width: 0 5px 5px;\n}\n\n.index-module--k8nuf .Dropdown-menu {\n background-color: white;\n box-sizing: border-box;\n margin-top: -1px;\n border: 1px solid #ddd;\n max-height: 130px;\n overflow-y: auto;\n position: absolute;\n top: 100%;\n width: 100%;\n z-index: 1100;\n -webkit-overflow-scrolling: touch;\n}\n\n.index-module--k8nuf .Dropdown-menu .Dropdown-group > .Dropdown-title {\n padding: 8px 10px;\n color: rgba(51, 51, 51, 1);\n font-weight: 300;\n text-transform: capitalize;\n}\n\n.index-module--k8nuf .Dropdown-option {\n box-sizing: border-box;\n color: rgba(51, 51, 51, 0.8);\n cursor: pointer;\n display: block;\n padding: 8px 10px;\n}\n\n.index-module--k8nuf .Dropdown-option:last-child {\n border-bottom-right-radius: 2px;\n border-bottom-left-radius: 2px;\n}\n\n.index-module--k8nuf .Dropdown-option:hover {\n background-color: #f2f9fc;\n}\n\n.index-module--k8nuf .Dropdown-option.is-selected {\n background-color: #f2f9fc;\n color: #333;\n}\n\n.index-module--k8nuf .Dropdown-noresults {\n box-sizing: border-box;\n color: #ccc;\n cursor: default;\n display: block;\n padding: 8px 10px;\n}\n",""]);var l="index-module--r0bx6",u="index-module--OE81C",x="index-module--JzaPK",a="index-module--_1nxR",c="index-module--NIxyW",p="index-module--Xs4Gf",s="index-module--rYbV7",m="index-module--yN7Qk",b="index-module--Kj_nd",C="index-module--I5O4a",h="index-module--YnLS3",y="index-module--XXGGR",k="index-module--ThUOB",v="index-module--Igmhd",g="index-module--deJ_k",f="index-module--xE_Th",N="index-module--XIt2b",O="index-module--k8nuf";const E=r},32889:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzNDAwIDM0MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGgKICAgIGZpbGw9IndoaXRlIgogICAgdHJhbnNmb3JtPSJzY2FsZSgxLC0xKSB0cmFuc2xhdGUoNDUwLC0yNjAwKSIKICAgIHN0cm9rZVdpZHRoPSIxIgogICAgZD0iTTc4MyAyNTVsLTMyNSAzMjVsLTcwIDcwbC0zOTEgMzkxcS0xNCAxNSAtMTQgMzUuNXQxNCAzNS41bDMyNSAzMjVxMTQgMTQgMzUgMTR0MzUgLTE0bDM5MSAtMzkxcTE1IC0xNSAzNS41IC0xNXQzNS41IDE1bDEwNDkgMTA0OXExNSAxNSAzNS41IDE1dDM1LjUgLTE1bDMyNyAtMzIycTE1IC0xNSAxNSAtMzVxMCAtMjEgLTE1IC0zNWwtMTQ0NyAtMTQ0OHEtMTUgLTE0IC0zNS41IC0xNHQtMzUuNSAxNHoiCiAgICAgLz4KPC9zdmc+"},17195:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzNDAwIDM0MDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGgKICAgIGZpbGw9IndoaXRlIgogICAgdHJhbnNmb3JtPSJzY2FsZSgxLC0xKSB0cmFuc2xhdGUoNDUwLC0yNjAwKSIKICAgIHN0cm9rZVdpZHRoPSIxIgpkPSJNOTIxIDg5cS00MyAtNTQgLTc1IC01NHEtMjIgMCAtMzQgMjUuNXQtMTIgNzIuNXY3NjdoLTcwOHEtOTEgMCAtOTEgMzFxMCAyNiA2MyA2NWwyMDYzIDEyNzhxNDIgMjYgNzkgMjZxNDIgMCA2OCAtMzJ0MjYgLTg4di0xODAwcTAgLTU3IC0yNi41IC04OS41dC02OS41IC0zMi41cS0zNyAwIC03OCAyNWwtNzEyIDQyNXpNMTAwMCA0ODBsMTE4NiAxNzAwbC0xMTg2IC0xMzAwdi00MDB6Ii8+Cjwvc3ZnPg=="}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 4088.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[4088,5533,8689],{25533:(e,n,o)=>{o.r(n),o.d(n,{RoundToggle:()=>a,StrokeIcon:()=>s,useViewerButtons:()=>useViewerButtons,viewerButtonsShown:()=>viewerButtonsShown});o(87363);var i=o(9420),t=o(65515),d=o.n(t),r=o(25327),l=o(58114),u=o(47514),s=function StrokeIcon(e){var n=e.children;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:n})},a=(0,i.Pi)((function(e){var n=e.label,o=e.pressed,i=e.locked,t=e.busy,s=e.onToggle,a=e.children,x=(0,r.NP)().uiState,c=function toggle(){i||s()};return(0,u.jsx)("div",{role:"button",tabIndex:0,"aria-label":n,"aria-pressed":o,"aria-disabled":i||void 0,"aria-busy":t,title:n,className:d()(l.Fp,x.isInMobileView?l.ai:l.gv,x.isTablet?l.Mq:void 0,o?l.bB:void 0,i?l.JU:void 0,t?l.n6:void 0),onClick:c,onKeyDown:function onKeyDown(e){e.repeat||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c())},children:a})}));function viewerButtonsShown(e){return e.rtvNext&&!e.hidePlannerUiIcons}function useViewerButtons(){return viewerButtonsShown((0,r.NP)().productState)}},18689:(e,n,o)=>{o.r(n),o.d(n,{default:()=>a});o(87363);var i=o(9420),t=o(95729),d=o(25327),r=o(88683),l=o(25533),u=o(47514),s=function WaterIcon(){return(0,u.jsxs)(l.StrokeIcon,{children:[(0,u.jsx)("path",{d:"M3 9c1.5 0 1.5-1.5 3-1.5S7.5 9 9 9s1.5-1.5 3-1.5S13.5 9 15 9s1.5-1.5 3-1.5S19.5 9 21 9"}),(0,u.jsx)("path",{d:"M3 14c1.5 0 1.5-1.5 3-1.5S7.5 14 9 14s1.5-1.5 3-1.5s1.5 1.5 3 1.5 1.5-1.5 3-1.5 1.5 1.5 3 1.5"}),(0,u.jsx)("path",{d:"M3 19c1.5 0 1.5-1.5 3-1.5S7.5 19 9 19s1.5-1.5 3-1.5 1.5 1.5 3 1.5 1.5-1.5 3-1.5 1.5 1.5 3 1.5"})]})};const a=(0,i.Pi)((function(){var e=(0,d.NP)(),n=(0,r.useTranslation)().t,o=(0,t.useRTVStore)(t.waterToggle);return"none"===o?null:(0,u.jsx)(l.RoundToggle,{label:n("configurator.viewToggle.showWater","Wasser anzeigen"),pressed:"shown"===o,locked:"forced"===o||e.getWaterToggle().locked,onToggle:function onToggle(){return e.productState.setWaterHidden("shown"===o)},children:(0,u.jsx)(s,{})})}))},64282:(e,n,o)=>{o.d(n,{Fp:()=>l,JU:()=>p,Mq:()=>c,PS:()=>w,ZP:()=>h,ai:()=>x,bB:()=>a,gv:()=>s,n6:()=>m,o_:()=>u});var i=o(8081),t=o.n(i),d=o(23645),r=o.n(d)()(t());r.push([e.id,".index-module--YwzwV {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border-radius: 50%;\n color: #4a4543;\n cursor: pointer;\n transition: background-color 0.15s ease;\n}\n\n.index-module--YwzwV.index-module--BjRsw {\n outline: 2px solid #713434;\n outline: 2px solid var(--diva-theme-palette-primary-main, #713434);\n outline-offset: 2px;\n}\n\n.index-module--YwzwV.index-module--BjRsw {\n outline: 2px solid #713434;\n outline: 2px solid #713434;\n outline: 2px solid var(--diva-theme-palette-primary-main, #713434);\n outline-offset: 2px;\n}\n\n.index-module--YwzwV:focus-visible {\n outline: 2px solid #713434;\n outline: 2px solid var(--diva-theme-palette-primary-main, #713434);\n outline-offset: 2px;\n}\n\n.index-module--YwzwV svg {\n width: 60%;\n height: 60%;\n}\n\n/* The desktop buttons' column (`ViewerButtonColumn`): 40px buttons with an 8px gap. Only the buttons take the pointer. */\n.index-module--pGu1x {\n position: absolute;\n left: calc(40px - 1.6rem);\n bottom: 60px;\n z-index: 601;\n display: flex;\n flex-direction: column-reverse;\n gap: 8px;\n pointer-events: none;\n}\n\n.index-module--aOOI5.index-module--YwzwV {\n width: 40px;\n height: 40px;\n background-color: #f5f5f5;\n pointer-events: auto;\n}\n\n.index-module--x1tK7.index-module--YwzwV,\n.index-module--x1tK7.index-module--aOOI5.index-module--YwzwV,\n.index-module--x1tK7.index-module--Rie6C.index-module--YwzwV {\n background-color: #713434;\n background-color: var(--diva-theme-palette-primary-main, #713434);\n color: #fff;\n}\n\n.index-module--aOOI5.index-module--YwzwV:active {\n background-color: #c4c4c4;\n}\n\n.index-module--Rie6C.index-module--YwzwV {\n width: 32px;\n height: 32px;\n background-color: rgba(255,255,255,0.66667);\n border: 1px solid #ddd;\n}\n\n.index-module--Ym26T.index-module--Rie6C.index-module--YwzwV {\n width: 42px;\n height: 42px;\n}\n\n.index-module--Y4zUh.index-module--YwzwV {\n cursor: progress;\n opacity: 0.5;\n}\n\n/* Decided by the step: the button shows the state but a tap does nothing. */\n.index-module--YVSmI.index-module--YwzwV {\n cursor: default;\n opacity: 0.45;\n}\n\n.index-module--rJekD {\n font-size: 13px;\n font-weight: 600;\n line-height: 1;\n}\n\n/* A pressed button keeps its colour under the pointer, so the click shows its result at once. */\n@media (hover: hover) {\n .index-module--aOOI5.index-module--YwzwV:not(.index-module--x1tK7):hover {\n background-color: #c4c4c4;\n }\n\n .index-module--Rie6C.index-module--YwzwV:not(.index-module--x1tK7):hover {\n background-color: rgba(243,243,243,0.66667);\n }\n}\n",""]);var l="index-module--YwzwV",u="index-module--pGu1x",s="index-module--aOOI5",a="index-module--x1tK7",x="index-module--Rie6C",c="index-module--Ym26T",m="index-module--Y4zUh",p="index-module--YVSmI",w="index-module--rJekD";const h=r},58114:(e,n,o)=>{o.d(n,{Fp:()=>w.Fp,JU:()=>w.JU,Mq:()=>w.Mq,PS:()=>w.PS,ai:()=>w.ai,bB:()=>w.bB,gv:()=>w.gv,n6:()=>w.n6,o_:()=>w.o_});var i=o(93379),t=o.n(i),d=o(7795),r=o.n(d),l=o(90569),u=o.n(l),s=o(3565),a=o.n(s),x=o(19216),c=o.n(x),m=o(44589),p=o.n(m),w=o(64282),h={};h.styleTagTransform=p(),h.setAttributes=a(),h.insert=u().bind(null,"head"),h.domAPI=r(),h.insertStyleElement=c();t()(w.ZP,h),w.ZP&&w.ZP.locals&&w.ZP.locals}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! filename:4088 */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 5115.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[5115,8938],{18938:(n,e,o)=>{o.r(e),o.d(e,{default:()=>s});var i=o(65515),t=o.n(i),l=o(9420),c=o(25327),d=(o(87363),o(47514));const s=(0,l.Pi)((function DPACC(n){var e=n.rect,o=n.item,i=n.onElement,l=n.plannerUIProps,s=(0,c._w)(),r=s.getDPUIISSelected(o);return(0,d.jsx)("div",{ref:function ref(n){return i(n)},onClick:function onClick(){var n;s.setDPUISelectionChanged(o,!r),null===(n=o.clickFunction)||void 0===n||n.call(o,o.setId,Number(o.elementId),o.dpId,!r,o.dockToElementId)},style:{left:"percentage"==o.position.interpretation?e.left+"%":e.left+"px",top:"percentage"==o.position.interpretation?e.top+"%":e.top+"px"},className:t()(l.classes.buttonGeneral,"2D"==o.plannerMode?"DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp2DAccDocking:l.classes.dockingPoint.DPACC.dp2DAccNotDocking:void 0,"2D"==o.plannerMode&&r&&"NOT_DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp2DAccNotDockingSel:void 0,"3D"==o.plannerMode?"DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp3DAccDocking:l.classes.dockingPoint.DPACC.dp3DAccNotDocking:void 0,"3D"==o.plannerMode&&r&&"NOT_DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp3DAccNotDockingSel:void 0),children:o.posNr})}))},40053:(n,e,o)=>{o.d(e,{Z:()=>useDockingPointPositioning});var i=o(
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[5115,8938],{18938:(n,e,o)=>{o.r(e),o.d(e,{default:()=>s});var i=o(65515),t=o.n(i),l=o(9420),c=o(25327),d=(o(87363),o(47514));const s=(0,l.Pi)((function DPACC(n){var e=n.rect,o=n.item,i=n.onElement,l=n.plannerUIProps,s=(0,c._w)(),r=s.getDPUIISSelected(o);return(0,d.jsx)("div",{ref:function ref(n){return i(n)},onClick:function onClick(){var n;s.setDPUISelectionChanged(o,!r),null===(n=o.clickFunction)||void 0===n||n.call(o,o.setId,Number(o.elementId),o.dpId,!r,o.dockToElementId)},style:{left:"percentage"==o.position.interpretation?e.left+"%":e.left+"px",top:"percentage"==o.position.interpretation?e.top+"%":e.top+"px"},className:t()(l.classes.buttonGeneral,"2D"==o.plannerMode?"DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp2DAccDocking:l.classes.dockingPoint.DPACC.dp2DAccNotDocking:void 0,"2D"==o.plannerMode&&r&&"NOT_DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp2DAccNotDockingSel:void 0,"3D"==o.plannerMode?"DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp3DAccDocking:l.classes.dockingPoint.DPACC.dp3DAccNotDocking:void 0,"3D"==o.plannerMode&&r&&"NOT_DOCKING"==o.dockingInfo?l.classes.dockingPoint.DPACC.dp3DAccNotDockingSel:void 0),children:o.posNr})}))},40053:(n,e,o)=>{o.d(e,{Z:()=>useDockingPointPositioning});var i=o(59230),t=o(25327);function useDockingPointPositioning(n){var e,o,l,c,d=n.dpElement,s=n.item,r=(0,t._w)(),a=null==d?void 0:d.getBoundingClientRect(),p=null!==(e=null==s?void 0:s.position.x)&&void 0!==e?e:0,u=null!==(o=null==s?void 0:s.position.y)&&void 0!==o?o:0;if(a&&s){var D=new i.FM(p,u),g=r.getViewConfig(),v=new i.FM(0,0);if("AVL"==(null==s?void 0:s.type)||"AVR"==(null==s?void 0:s.type)){if("2D"===s.plannerMode)switch(g.posDPIcon2D){case"CORNER":break;case"SIDE_TOP":"AVL"==(null==s?void 0:s.type)&&(v=new i.FM(-a.width,0),null!=s&&s.rotOfElement&&(v=i.FM.rotateOrigin(v,null==s?void 0:s.rotOfElement)),D=new i.FM(p+v.x,u+v.y,"pixel"))}}else"AccDP"==(null==s?void 0:s.type)&&"3D"==(null==s?void 0:s.plannerMode)?D.y=100-D.y:"BoxCopyLeft"==s.type||"BoxCopyRight"==(null==s?void 0:s.type)||null==s||s.type;p=D.x,u=D.y}return{width:null!==(l=null==a?void 0:a.width)&&void 0!==l?l:0,height:null!==(c=null==a?void 0:a.height)&&void 0!==c?c:0,top:u,left:p}}},85115:(n,e,o)=>{o.r(e),o.d(e,{default:()=>s});var i=o(38946),t=o(87363),l=o(18938),c=o(40053),d=o(47514);const s=function ItemsDPAccContainer(n){var e=n.item,o=n.plannerUIProps,s=(0,t.useState)(null),r=(0,i.Z)(s,2),a=r[0],p=r[1],u=(0,c.Z)({item:e,dpElement:a});return(0,d.jsx)(d.Fragment,{children:e&&(0,d.jsx)(l.default,{item:e,rect:u,onElement:p,plannerUIProps:o},null==e?void 0:e.key)})}}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 5139.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[5139,4414],{79837:(t,r,o)=>{o.d(r,{d:()=>a});var a="autoPlaceDrag"},74414:(t,r,o)=>{o.r(r),o.d(r,{doorPlannerSlots:()=>doorPlannerSlots,findDoorPlannerPalette:()=>findDoorPlannerPalette,hasSwappableDoors:()=>hasSwappableDoors,isDoorSwap3DStep:()=>isDoorSwap3DStep,swapDoorSlots:()=>swapDoorSlots,swapDoorSlotsByKey:()=>swapDoorSlotsByKey,useDoorSwapTexts:()=>useDoorSwapTexts});var a=o(88683);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,i=function F(){};return{s:i,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,u=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){u=!0,l=t},f:function f(){try{c||null==o.return||o.return()}finally{if(u)throw l}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}var i=(0,a.getLogger)("Planner","DoorSwap");function isDoorSwap3DStep(t){var r;return"DOORPLANNER"===(null===(r=t.tabGroupState.curTabGroup)||void 0===r?void 0:r.type)&&t.divaWebPlanner.getRtvFeatures().doorSwap3D}function isDoorPlannerView(t){return"currentDoor"in t&&"door"in t}function findDoorPlannerPalette(t){var r,o=_createForOfIteratorHelper(t.settingsState.itemPalettes.values());try{for(o.s();!(r=o.n()).done;){var a=r.value;if("DOOR_PLANNER"===a.type)return a}}catch(t){o.e(t)}finally{o.f()}}function doorPlannerSlots(t){var r,o;return null!==(r=null==t||null===(o=t.groups[0])||void 0===o?void 0:o.items.filter(isDoorPlannerView))&&void 0!==r?r:[]}function hasSwappableDoors(t){var r,o=new Set,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var i=r.value.door.currentDoor.StrictType;if(o.has(i))return!0;o.add(i)}}catch(t){a.e(t)}finally{a.f()}return!1}function swapDoorSlots(t,r,o){t.divaWebPlanner.moveDoors(r.door,o.door),function refreshDoorPlannerItems(t){var r=findDoorPlannerPalette(t);if(r)try{t.divaWebPlanner.loadDoorPlannerItems(r.configStepKey)}catch(t){i.error(t instanceof Error?t:new Error(String(t)))}}(t)}function swapDoorSlotsByKey(t,r,o){var a=doorPlannerSlots(findDoorPlannerPalette(t)),l=a.find((function(t){return t.key===r})),c=a.find((function(t){return t.key===o}));if(!l||!c||l===c||l.door.currentDoor.StrictType!==c.door.currentDoor.StrictType)return i.warn("Door swap ".concat(r," → ").concat(o," refused: no such slots or different hinge sides")),!1;swapDoorSlots(t,l,c)}function useDoorSwapTexts(){var t=(0,a.useTranslation)().t;return{viewer:{release:t("configurator.DoorSwap_Release"),invalidTarget:t("configurator.DoorSwap_InvalidTarget"),coach:{mouse:t("configurator.DoorSwap_CoachMouse"),touch:t("configurator.DoorSwap_CoachTouch")}},description3D:t("configurator.DoorPlanner_Description3D"),nothingToSwap:t("configurator.DoorPlanner_NothingToSwap")}}},85139:(t,r,o)=>{o.r(r),o.d(r,{default:()=>N});var a=o(80248),i=o(61965),l=o(38946),c=o(25327),u=o(32699),d=o(87363),p=o(9420),v=o(88683),y=o(95729),S=o.n(y),g=o(59230),m=o(79837),b=o(71442);var h=o(84658),P=o(50747),I=o.n(P),w=o(50698);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,i=function F(){};return{s:i,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,u=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){u=!0,l=t},f:function f(){try{c||null==o.return||o.return()}finally{if(u)throw l}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}function ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,a)}return o}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){(0,a.Z)(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var A=(0,v.getLogger)("Planner","CreateImageShot"),E={width:3840,height:2160,formats:["png"],jpegQuality:.92,settleFrames:60,stableMs:800,cameraPadding:1.25};var O=o(94048),D=o(5787),T=o(74414);function doorSwapScene_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function doorSwapScene_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return doorSwapScene_arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?doorSwapScene_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,i=function F(){};return{s:i,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,u=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){u=!0,l=t},f:function f(){try{c||null==o.return||o.return()}finally{if(u)throw l}}}}function doorSwapScene_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}function buildDoorSwapDoors(t,r,o){var a,i=[],l=doorSwapScene_createForOfIteratorHelper(t);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=c.door.currentDoor,d=o(u.BasketId);null==d||d<0||i.push({doorKey:(0,y.doorKeyOf)((0,y.qualifiedElementKey)(r,d),u.Type),slotKey:c.key,strictType:u.StrictType})}}catch(t){l.e(t)}finally{l.f()}return i}function elementParts_ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,a)}return o}function elementParts_objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?elementParts_ownKeys(Object(o),!0).forEach((function(r){(0,a.Z)(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):elementParts_ownKeys(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function elementParts_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function elementParts_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return elementParts_arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?elementParts_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,i=function F(){};return{s:i,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,u=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){u=!0,l=t},f:function f(){try{c||null==o.return||o.return()}finally{if(u)throw l}}}}function elementParts_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}var x=(0,v.getLogger)("Planner","ElementParts"),_=!1,k=new Map,C=new Set(["TOGGLE","TOGGLE_HEADER","TOGGLE_NAME","MULTI_TOGGLE","MULTI_TOGGLE_ROUND","RADIO","RADIO_LIST","DROPDOWN_TEXT"]),R=new Set(["SLIDER","RANGE","NUMBER","TEXTBOX"]);function configuresArticle(t,r){var o,a;return t.targetArticles.includes(r)||null!==(o=null===(a=t.sourceArticles)||void 0===a?void 0:a.includes(r))&&void 0!==o&&o}function partFeatureSteps(t,r,o){var a,l=new Set(r.features),c=[],u=elementParts_createForOfIteratorHelper(t.values());try{for(u.s();!(a=u.n()).done;){var d=a.value;if(!d.hidden){var p,v=null!=r.step&&d.key===r.step,y=elementParts_createForOfIteratorHelper(d.options.values());try{var S=function _loop(){var t=p.value;if(!(l.has(t.codex)||v&&!0!==t.mergesToOPG)||c.some((function(r){return r.codex===t.codex})))return 1;var r=(0,i.Z)(t.configSteps.values()).find((function(t){return!t.notDisplayedInMainConfigTree&&configuresArticle(t,o)}));r&&c.push({codex:t.codex,label:t.title,configStep:r})};for(y.s();!(p=y.n()).done;)S()}catch(t){y.e(t)}finally{y.f()}}}}catch(t){u.e(t)}finally{u.f()}return c.sort((function(t,r){return t.configStep.posNr-r.configStep.posNr}))}function isOptionValue(t){return"op"in t&&"sel"in t&&"codex"in t}function loadedPalette(t,r){var o=t.settingsState.getItemPaletteByConfigStepKey(r.key);return o&&o[1].visible?{id:o[0],palette:o[1]}:void 0}function stepValues(t,r,o){var a=loadedPalette(t,r);if(a){var i=a.palette.groups.flatMap((function(t){return t.items})).filter(isOptionValue);return{type:a.palette.type,items:i,paletteId:a.id}}var l=o.get(r.key);return l?{type:l.paletteType,items:l.values}:void 0}function partFeature(t,r,o){var a={codex:r.codex,label:r.label},i=stepValues(t,r.configStep,o);if(!i||R.has(i.type))return a;if(0===i.items.length||i.items.some((function(t){return t.isFreeText||t.isMultiSelect})))return a;var l,c=i.items.map((function(t){return elementParts_objectSpread(elementParts_objectSpread(elementParts_objectSpread({codex:t.codex,label:t.text},t.image?{image:t.image}:{}),t.hexColor?{color:t.hexColor}:{}),{},{selected:t.sel},t.disabledByConstructionRule?{disabled:!0}:{})}));return elementParts_objectSpread(elementParts_objectSpread({},a),{},{values:c,layout:(l=i.type,C.has(l)?"toggle":"tiles")})}function choosableSteps(t,r,o,a){return partFeatureSteps(t.tabGroupState.configuratorSturucture,r,o).filter((function(r){return function hasChoice(t,r,o){var a=stepValues(t,r,o);return a?!(!a.items.some((function(t){return t.isFreeText}))&&!R.has(a.type))||a.items.filter((function(t){return!t.disabledByConstructionRule})).length>1:!r.singleOPVOnly&&(!r.optionstate||(0,g.eA)(r.optionstate)>1)}(t,r.configStep,a)}))}function partLabel(t,r,o){var a,i,l;if(r.label)return r.label;var c=r.step?t.get(r.step):void 0;return null!==(a=null!==(i=null==c?void 0:c.title)&&void 0!==i?i:null===(l=o[0])||void 0===l?void 0:l.label)&&void 0!==a?a:r.key}function buildElementPartsConfig(t,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_,i=t.tabGroupState.configuratorSturucture,l=r.parts.flatMap((function(l){var c=choosableSteps(t,l,r.basketId,o);return 0===c.length?[]:[elementParts_objectSpread({key:l.key,label:partLabel(i,l,c),nodes:l.nodes,features:c.map((function(r){return a?partFeature(t,r,o):{codex:r.codex,label:r.label}}))},l.pickOnGeometry?{pickOnGeometry:!0}:{})]}));return 0===l.length?null:{setId:r.setId,elementId:r.elementId,parts:l}}function stepsOfPart(t,r,o,a,i){var l=(0,g.bX)(t.divaWebPlanner,r,o),c=null==l?void 0:l.parts.find((function(t){return t.key===a}));return l&&c?choosableSteps(t,c,l.basketId,i):[]}function _chooseElementPartOption(){return(_chooseElementPartOption=(0,h.Z)(I().mark((function _callee(t,r,o){var a,i,l;return I().wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:if(a=stepsOfPart(t,r.setId,r.elementId,r.partKey,o).find((function(t){return t.codex===r.featureCodex})),i=a?stepValues(t,a.configStep,o):void 0,l=null==i?void 0:i.items.find((function(t){return t.codex===r.valueCodex})),a&&i&&l){c.next=6;break}return x.warn("value ".concat(r.valueCodex," of ").concat(r.featureCodex," (part ").concat(r.partKey,") is not at hand")),c.abrupt("return");case 6:return c.prev=6,c.next=9,t.paletteViewHandler.clickedOnConfigPalette(l,void 0,i.paletteId,{configStepKey:a.configStep.key});case 9:c.next=14;break;case 11:c.prev=11,c.t0=c.catch(6),x.error(c.t0 instanceof Error?c.t0:new Error(String(c.t0)));case 14:case"end":return c.stop()}}),_callee,null,[[6,11]])})))).apply(this,arguments)}function useElementParts(t,r){var o=(0,d.useState)(null),a=(0,l.Z)(o,2),i=a[0],c=a[1],u=(0,d.useState)(null),p=(0,l.Z)(u,2),v=p[0],y=(p[1],r?function selectedElementParts(t){var r,o=t.productState,a=o.rtvSelectedElementId,i=o.rtvSelectedSetId,l=null!=i?i:null===(r=t.divaWebPlanner.actSet())||void 0===r?void 0:r.getSetId();return null!=a&&l?(0,g.bX)(t.divaWebPlanner,l,a):null}(t):null),S=y&&(null==i?void 0:i.setId)===y.setId&&i.elementId===y.elementId?y.parts.find((function(t){return t.key===i.partKey})):void 0,m=(y&&S&&partFeatureSteps(t.tabGroupState.configuratorSturucture,S,y.basketId).filter((function(r){return!loadedPalette(t,r.configStep)})).map((function(t){return t.configStep.key})),v&&""===v.signature?v.values:k);(0,d.useEffect)((function(){}),[""]);var b=(0,d.useRef)(m);b.current=m;var h=(0,d.useCallback)((function(r){c(r),function showElementPart(t,r){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t.productState.rtvSelectedElementId!==r.elementId&&t.viewPlannerHandler.onElementSelected(r.setId,r.elementId),o){var a=stepsOfPart(t,r.setId,r.elementId,r.partKey,k)[0];a&&(x.debug("part ".concat(r.partKey," of element ").concat(r.elementId," → step ").concat(a.configStep.key," (").concat(a.codex,")")),t.navigateToConfigStep(a.configStep.key))}}(t,r)}),[t]),P=(0,d.useCallback)((function(r){(function chooseElementPartOption(t,r,o){return _chooseElementPartOption.apply(this,arguments)})(t,r,b.current)}),[t]);return{config:y?buildElementPartsConfig(t,y,m):null,onSelected:h,onOptionSelect:P}}var j=o(47514);function PlannerRTVNext_ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,a)}return o}function PlannerRTVNext_objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?PlannerRTVNext_ownKeys(Object(o),!0).forEach((function(r){(0,a.Z)(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):PlannerRTVNext_ownKeys(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}function PlannerRTVNext_createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function PlannerRTVNext_unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return PlannerRTVNext_arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?PlannerRTVNext_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,i=function F(){};return{s:i,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,u=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){u=!0,l=t},f:function f(){try{c||null==o.return||o.return()}finally{if(u)throw l}}}}function PlannerRTVNext_arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}var L=new Set(["PLANNER","ACC_PLANNER","PLANNER_2.0"]);function isAccessoryDeleteLocked(t,r){var o;return!(null===(o=(0,y.findPlannedAccessory)(t.settingsState.plannedPlacesOnGrids,(0,y.parseAccessoryPath)(null!=r?r:"")))||void 0===o||null===(o=o.accessory)||void 0===o||!o.noDelete)}function resolveAccessoryTargets(t,r){var o,a,i;if(r.setId!==(null===(o=t.divaWebPlanner.actSet())||void 0===o?void 0:o.getSetId()))return null;var l=(0,y.findPlannedAccessory)(t.settingsState.plannedPlacesOnGrids,r);return l?{parentBasketId:l.parent.basketId,accBasketId:null===(a=l.accessory)||void 0===a?void 0:a.basketId,accCodex:null===(i=l.accessory)||void 0===i?void 0:i.articleCodex,gridName:l.gridName}:null}const N=(0,p.Pi)((function PlannerRTVNext(){var t,r,o,a,p,P,x=(0,c.NP)(),_=(0,u.Qv)(),k=(0,v.useDivaCore)(),C=k.state,R=C.apiConfig,N=C.jwt,G=k.actions,M=(0,v.useTranslation)().t,V=(0,d.useRef)(new Set),H=(0,d.useRef)(void 0);(0,d.useEffect)((function(){return function(){return clearTimeout(H.current)}}),[]),(0,d.useEffect)((function(){(0,g.JB)("rtv: PlannerRTVNext mounted")}),[]);var B=(0,d.useRef)(x.hqRenderScript);(0,d.useEffect)((function(){var t=B.current;B.current=x.hqRenderScript,x.hqRenderScript&&!t&&G.toggleLoading("RTV_Assembling",!1,!0)}),[x.hqRenderScript,G]);var W=x.isParentViewVisible;(0,d.useEffect)((function(){if(W)return(0,b.RS)()}),[W]);var K=x.productState.doShowRTV,U=x.productState.doShow3DComb,q=x.productState.doShowGrid,Z="CREATE_IMAGE"===x.configState.initMode,$=!(K||U||q||Z),X=(0,d.useState)(!1),z=(0,l.Z)(X,2),Q=z[0],J=z[1],Y=W&&(Q||!$);Y!==Q&&J(Y),function useViewerBridge(t,r){var o=t.productState.setWaterHidden,a=t.getWaterToggle().hidden;(0,d.useEffect)((function(){r&&y.useRTVStore.getState().setWaterHidden(a)}),[r,a]);var i=(0,y.useRTVStore)((function(t){return t.resolvedEnvironment.water.enabled&&t.resolvedEnvironment.water.startsHidden})),l=(0,d.useRef)(null);(0,d.useEffect)((function(){r&&l.current!==i&&(l.current=i,o(i))}),[r,o,i]);var c=(0,y.useRTVStore)((function(t){var r;return"startsOff"===(null===(r=t.stepBehaviour)||void 0===r?void 0:r.water)}));(0,d.useEffect)((function(){if(r&&c){var a=t.productState.waterHidden;return o(!0),function(){return o(a)}}}),[r,t,o,c])}(x,Y);var ee=(0,d.useState)("3d"),te=(0,l.Z)(ee,2),re=te[0],ne=te[1],oe=$?re:q||Z?"2d":"3d";oe!==re&&ne(oe);var ae=useElementParts(x,Y&&"3d"===oe),ie=(0,d.useMemo)((function(){return{onElementSelected:function onElementSelected(t,r){x.viewPlannerHandler.onElementSelected(t,r)},onElementDeselected:function onElementDeselected(){x.viewPlannerHandler.onClearElementSelection()},updatePlannerTrans:function updatePlannerTrans(t,r,o,a,i,l,c,u){return x.divaWebPlanner.updatePlannerTrans(t,r,{x:o.x,y:o.y,z:o.z},a,i,l,c,u)},getDockSnapPreview:function getDockSnapPreview(t,r,o,a){return x.divaWebPlanner.getDockSnapPreview(r,o,a)},onElementDeleted:function onElementDeleted(t,r){return x.viewPlannerHandler.onElementDeleted(t,r)},onElementCopy:function onElementCopy(t,r,o){return x.viewPlannerHandler.onElementCopy(t,r,o)},onDockingPointInteraction:function onDockingPointInteraction(t,r,o,a,i){return x.viewPlannerHandler.onDockingPointInteraction(t,r,o,a,i)},onAccessoryPlace:function onAccessoryPlace(t,r,o,a){return x.paletteViewHandler.addAccessorieOnShelfPlannerView(t,r,o,a)},onAccessoryDragOver:function onAccessoryDragOver(t){x.settingsState.setDraggedAccessoryHasTarget(t)},onAccessorySelect:function onAccessorySelect(t){var r=resolveAccessoryTargets(x,t);r&&x.paletteViewHandler.selectShelfAccessorie(r.accCodex,r.accBasketId)},onAccessoryDeselect:function onAccessoryDeselect(){x.paletteViewHandler.selectShelfAccessorie(void 0)},onAccessoryDelete:function onAccessoryDelete(t){var r=resolveAccessoryTargets(x,t);return!!r&&x.paletteViewHandler.deleteAccessorieOnShelfPlannerView(t.gridId,t.cellIdx,r.parentBasketId)},onAccessoryMoveStart:function onAccessoryMoveStart(t){var r=resolveAccessoryTargets(x,t);if(r&&r.accBasketId&&r.gridName)return x.divaWebPlanner.getFreeToMovePlacesOnGrids(r.gridName,r.accBasketId,!0)},onAccessoryMove:function onAccessoryMove(t,r){var o=resolveAccessoryTargets(x,t);if(!o||!o.accBasketId)return!1;var a=r.articleCodex&&r.articleCodex!==o.accCodex?r.articleCodex:void 0;return x.divaWebPlanner.moveShelfItemToGrid(o.accBasketId,r.parentBasketId,r.gridName,r.cellIdx,a)},onDoorSwap:function onDoorSwap(t,r){return(0,T.swapDoorSlotsByKey)(x,t,r)},onElementFootprints:function onElementFootprints(t){return x.divaWebPlanner.setElementFootprints(t)},onSceneReady:function onSceneReady(){(0,g.JB)("rtv: onSceneReady"),G.toggleLoading("RTV_Assembling",!1,!1),(0,O.g$)()},onAssetError:function onAssetError(t){var r=t.kind,o=t.source,a=t.message,l=t.severity,c=t.missing;if(x.productState.reportAnalyzerError({source:"3D",kind:r,target:o,message:a,severity:l}),"geo"===r&&c&&x.uiState.isAdvancedConfigurator){var u=o.slice(o.lastIndexOf("/")+1);if(!V.current.has(u)){V.current.add(u);var d=(0,j.jsxs)(j.Fragment,{children:[M("configurator.MISSING_GEO_MSG")," ",(0,j.jsx)("b",{children:(0,i.Z)(V.current).join(", ")})]});x.productState.updatePlannerMsgContainer("MISSING_GEO_MSG",!0,"WARNING",d,!0,1e4),void 0===H.current&&(H.current=setTimeout((function(){V.current.clear(),H.current=void 0}),1e4))}}},onElementPartSelected:ae.onSelected,onElementPartOptionSelect:ae.onOptionSelect}}),[x.viewPlannerHandler,x.divaWebPlanner,x,G,M,ae.onSelected,ae.onOptionSelect]),le=x.productState.rtvSelectedElementId,ce=(0,d.useRef)(void 0),se=Y?$?ce.current:(0,D.I)(x,{buildScene2D:y.buildScene2D,getDimensionConfigs:y.getDimensionConfigs}):void 0;ce.current=se;var ue=null==se?void 0:se.scene2d;q&&x.productState.plannerElementsVersion;var de=null!==(t=null==se?void 0:se.isPoolPlanning)&&void 0!==t&&t,fe=x.productState.setPoolPlanning;(0,d.useEffect)((function(){return fe(de),function(){return fe(!1)}}),[de,fe]);var pe=null!==(r=(0,b.q_)(null===(o=x.divaWebPlanner.getCatalogData())||void 0===o?void 0:o.rtvPreset))&&void 0!==r?r:y.WHITE_ROOM_PRESET;!function useCreateImageShot(t,r,o){var a="CREATE_IMAGE"===t.configState.initMode,i=(0,d.useRef)(!1),c=a&&r?r.elements.map((function(t){return"".concat(t.elementId,":").concat(t.width,"x").concat(t.depth,"@").concat(t.position[0],",").concat(t.position[1])})).join("|"):"";(0,d.useEffect)((function(){if(a&&c&&!i.current){var r=_objectSpread(_objectSpread(_objectSpread({},E),o.createImage),t.configState.createImageConfig),u=window.setTimeout((0,h.Z)(I().mark((function _callee(){var o,a,c,u,d,p,v,S,g,m,b;return I().wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:if(!i.current){h.next=2;break}return h.abrupt("return");case 2:return i.current=!0,h.prev=3,a={id:"plan-2d",viewMode:"2d",showGrid:!1,showDimensionLines:!0,showPosNr:!1,environment:_objectSpread(_objectSpread(_objectSpread(_objectSpread({},(0,y.emitConfig)(y.ENVIRONMENT_CONFIG,y.useRTVStore.getState().resolvedEnvironment)),r.dimensionLineUnit?{dimensionLineUnit:r.dimensionLineUnit}:{}),void 0!==r.dimensionLineHideUnit?{dimensionLineHideUnit:r.dimensionLineHideUnit}:{}),r.dimensionLineColor?{dimensionLineColor:r.dimensionLineColor}:{}),resolution:{width:r.width,height:r.height},camera:{padding:r.cameraPadding},format:"png",settleFrames:r.settleFrames},h.next=7,y.useRTVStore.getState().captureShots({shots:[a]});case 7:if(c=h.sent,u=(0,l.Z)(c,1),d=u[0]){h.next=12;break}throw new Error("captureShots returned no result");case 12:p=[],v=_createForOfIteratorHelper(r.formats),h.prev=14,v.s();case 16:if((S=v.n()).done){h.next=31;break}if("jpeg"!==(g=S.value)){h.next=24;break}return h.next=21,(0,w.N7)(d.blob,r.jpegQuality);case 21:h.t0=h.sent,h.next=27;break;case 24:return h.next=26,(0,w.fL)(d.blob);case 26:h.t0=h.sent;case 27:m=h.t0,p.push({format:g,dataUrl:m,width:d.width,height:d.height});case 29:h.next=16;break;case 31:h.next=36;break;case 33:h.prev=33,h.t1=h.catch(14),v.e(h.t1);case 36:return h.prev=36,v.f(),h.finish(36);case 39:null===(o=t.actions)||void 0===o||o.onEvent({type:"planImageCreated",data:{images:p}}),h.next=47;break;case 42:h.prev=42,h.t2=h.catch(3),A.warn("CREATE_IMAGE capture failed",h.t2),i.current=!1,null===(b=t.actions)||void 0===b||b.onEvent({type:"planImageFailed",data:{message:h.t2 instanceof Error?h.t2.message:String(h.t2)}});case 47:case"end":return h.stop()}}),_callee,null,[[3,42],[14,33,36,39]])}))),r.stableMs);return function(){return window.clearTimeout(u)}}}),[a,c,t,o])}(x,ue,pe);var ve=(0,T.useDoorSwapTexts)().viewer,ye=null===(a=x.tabGroupState.curTabGroup)||void 0===a?void 0:a.type,Se=null!=ye&&L.has(ye);if(!Y)return null;var ge=x.tabGroupState,me=ge.curConfigStep,be=ge.curOption,he=ge.changedOption,Pe=function cameraStepIdentity(t,r,o,a){return{key:t,type:null!=o&&o.startsWith("SHELFARTICLE_")?"SHELFPLANNER":r,optionCodex:o,changedOption:a}}(null==me?void 0:me.key,ye,null==be?void 0:be.codex,he),Ie=de||x.productState.sceneShowsDimensionLines,we=function buildElementsInfoFromArticles(t,r){for(var o,a,i,l=new Map,c=t.settingsState.articleInfos,u=t.viewPlannerHandler.plannedElementsDict,d=t.productState.rtvSelectedElementId,p=t.productState.rtvSelectedSetId,v=null===(o=t.divaWebPlanner.actSet())||void 0===o?void 0:o.getSetId(),S=new Map(t.divaWebPlanner.setsAsArray.map((function(t){return[t.getSetId(),t]}))),g=function shelfStepActive(t){var r=t.tabGroupState,o=r.curTabGroup,a=r.curOption;return!!("SHELFPLANNER"===(null==o?void 0:o.type)||null!=a&&a.codex.startsWith("SHELFARTICLE_"))||t.tabgroupTypeActive("SHELFPLANNER")}(t),m=(0,T.isDoorSwap3DStep)(t),b=null===(a=t.divaWebPlanner.getCatalogData())||void 0===a?void 0:a.elementCopyAVLR,h=null===(i=t.tabGroupState.curOption)||void 0===i?void 0:i.codex,P=null!=b&&(r||Array.isArray(b)&&null!=h&&b.includes(h)),I=function resolveState(t,r,o,a){return m?"active":a?g||o?"selectable":"unselectable":g?"active":void 0===r||d!==r||null!=p&&p!==t?o?"active":"selectable":"selected"},w=new Map,A=0,E=Object.keys(c);A<E.length;A++){var O=c[E[A]];void 0!==O.elementId&&w.set((0,y.qualifiedElementKey)(O.setId,O.elementId),{setId:O.setId,posNr:String(O.posNr),isActive:O.isActive,canDelete:O.isActive,isShelfAccessoire:!!O.isShelfAccessoire,shelfElementId:O.shelfElementId})}var D=function otherSetArticle(t,r){var o;if(t!==v){var a=null===(o=S.get(t))||void 0===o?void 0:o.getArticleByElementId(r);if(a)return{setId:t,posNr:String(a.posNr),isActive:!1,canDelete:!1,isShelfAccessoire:a.isShelfAccessoire,shelfElementId:a.shelfElementId}}};u&&u.forEach((function(r,o){var a,i=PlannerRTVNext_createForOfIteratorHelper(r);try{for(i.s();!(a=i.n()).done;){var c,u,d,p,v=a.value,S=v.getElementId(),g=v.getParentElementId(),m=null!==(c=w.get((0,y.qualifiedElementKey)(o,S)))&&void 0!==c?c:D(o,S),b="BOX"===v.getPlannerType(),h=void 0,A=void 0,E=void 0,O=void 0;if(b){h=!0,A=!0;var T=v.getFreeDockingPointByTypeAndNumber("AVO",1);E=null!=T&&!T.IsDisabled}else!P||null!=g||null!=m&&m.isShelfAccessoire||(h=v.getFreeDockingPointsByType("AVL").some((function(t){return!t.IsDisabled})),A=v.getFreeDockingPointsByType("AVR").some((function(t){return!t.IsDisabled})),O=!0);var x=m?I(o,S,m.isActive,!!m.isShelfAccessoire):"unselectable",_=null!=m&&m.isShelfAccessoire?"shelfAccessoire":b?"boxElement":null!=g?"accessoire":"planned";l.set((0,y.qualifiedElementKey)(o,null!==(u=null==m?void 0:m.shelfElementId)&&void 0!==u?u:String(S)),{setId:null!==(d=null==m?void 0:m.setId)&&void 0!==d?d:o,posNr:null==m?void 0:m.posNr,state:x,type:_,articleCodex:v.ArticleCodex,canDelete:null!=m&&m.isShelfAccessoire?!isAccessoryDeleteLocked(t,m.shelfElementId):!!O||null!==(p=null==m?void 0:m.canDelete)&&void 0!==p&&p,parentElementId:g,canRotate:(null==S||!t.divaWebPlanner.isElementWallBound(o,S))&&void 0,canCopyLeft:h,canCopyRight:A,canCopyTop:E,copyAlwaysVisible:O})}}catch(t){i.e(t)}finally{i.f()}}));for(var x=0,_=Object.keys(c);x<_.length;x++){var k=c[_[x]];k.isShelfAccessoire&&k.shelfElementId&&!l.has((0,y.qualifiedElementKey)(k.setId,k.shelfElementId))&&l.set((0,y.qualifiedElementKey)(k.setId,k.shelfElementId),{setId:k.setId,posNr:String(k.posNr),state:I(k.setId,k.elementId,k.isActive,!0),type:"shelfAccessoire",canDelete:!isAccessoryDeleteLocked(t,k.shelfElementId)})}return l}(x,Se),Ae=x.settingsState.selectedShelfAccessoire,Ee=Ae?Object.values(x.settingsState.articleInfos).find((function(t){return t.basketId===Ae})):void 0,Oe=null!=Ee&&Ee.shelfElementId?(0,y.qualifiedElementKey)(Ee.setId,Ee.shelfElementId):null,De=Oe?null===(p=we.get(Oe))||void 0===p?void 0:p.state:void 0,Te=null!=Oe&&null!=De&&"unselectable"!==De?Oe:null,xe="2d"!==oe,_e=x.divaWebPlanner.getCatalogData(),ke=null!=_e&&_e.catalogCodex?{catalogCodex:_e.catalogCodex,iln:_e.supplierILN}:void 0;x.productState.activeSceneId;var Ce=null!==(P=x.divaWebPlanner.getActiveRoom())&&void 0!==P?P:null,Re=function coachText(t){return{mouse:M("configurator.coach.".concat(t,".mouse")),touch:M("configurator.coach.".concat(t,".touch"))}},je={accessoryPlace:Re("accessoryPlace"),accessoryMove:Re("accessoryMove"),elementMove:Re("elementMove")},Le=x.divaWebPlanner.getRtvFeatures().doorSwap3D&&(0,i.Z)(x.tabGroupState.allTabGroups.values()).some((function(t){return"DOORPLANNER"===t.type})),Ne=x.divaWebPlanner.actSet(),Ge=(0,T.isDoorSwap3DStep)(x)&&Ne?{doors:buildDoorSwapDoors((0,T.doorPlannerSlots)((0,T.findDoorPlannerPalette)(x)),Ne.getSetId(),(function(t){var r;return null===(r=Ne.getArticleByBasketId(t))||void 0===r?void 0:r.elementId})),texts:ve}:null;return(0,j.jsx)(S(),{catalogInfo:xe?ke:void 0,hqRenderScript:xe?x.hqRenderScript:void 0,scene2d:ue,viewMode:oe,stopRender:$,config:{archiveBaseUrl:R.diva3darchive,constructorServiceUrl:R.constructorService,jwt:N,capabilities:{supports3d:!0},profiles:pe.profiles,profileMode:pe.profileMode,camera:pe.camera,uiConfig:PlannerRTVNext_objectSpread({plannerMode:x.productState.isBoxPlanner?"BoxPlanner":"3DCOMB",accessoryPlacement:m.d,catalogAnalyzer:x.uiState.isAdvancedConfigurator},de?{hideUiIcons:!0}:{})},plannerMode:Se,step:Pe,freePlacesOnGrids:x.settingsState.freePlacesOnGrids,plannedPlacesOnGrids:x.settingsState.plannedPlacesOnGrids,shelfGridSetId:null==Ne?void 0:Ne.getSetId(),armedAccessoryCodex:x.settingsState.armedAccessoryToken,draggedAccessoryCodex:x.settingsState.draggedAccessoryCodex,draggedAccessoryPointerId:x.settingsState.draggedAccessoryPointerId,callbacks:ie,analyzerComponents:_,elementsInfo:we,selectedElementId:le,selectedElementSetId:x.productState.rtvSelectedSetId,selectedAccessoryKey:Te,showDimensionLines:Ie,room:Ce,coachTexts:je,coachHints:x.divaWebPlanner.getRtvFeatures().coachHints,doorSwap:Ge,doorSwapAvailable:Le,elementParts:ae.config})}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! filename:5139 */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 5755.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[5755,1067,3455,5533,226],{1067:(e,n,o)=>{o.r(n),o.d(n,{default:()=>u});var t=o(87363),i=o.n(t),r=o(9420),l=o(25327),d=o(30012),s=o(47514),a=i().lazy((function(){return(0,d.Ey)().then((function(){return Promise.all([o.e(2182),o.e(9065)]).then(o.bind(o,59065))})).catch((function(){return{default:function _default(){return null}}}))}));const u=(0,r.Pi)((function ArLaunch(){return(0,l.NP)().productState.rtvNext?(0,s.jsx)(t.Suspense,{fallback:null,children:(0,s.jsx)(a,{})}):null}))},13362:(e,n,o)=>{o.d(n,{o:()=>useDimensionLinesToggle});var t=o(80248),i=o(88683),r=o(25327);function buttonControlProps(e,n){return{role:"button",tabIndex:0,"aria-label":e,title:e,onClick:n,onKeyDown:function onKeyDown(e){e.repeat||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n())}}}function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,t)}return o}function _objectSpread(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?ownKeys(Object(o),!0).forEach((function(n){(0,t.Z)(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}function useDimensionLinesToggle(){var e=(0,r.NP)(),n=(0,i.useTranslation)().t,o=e.productState.doShow3DDimensionLines,t=n("configurator.NAV3DDIMLINE_TT");return{enabled:e.productState.doEnableToShow3DDimensionLines&&!e.productState.poolPlanning,active:o,controlProps:_objectSpread(_objectSpread({},buttonControlProps(t,(function toggle(){return e.productState.onNav3DMenuSelect("Nav3DDimLine")}))),{},{"aria-pressed":o})}}},3455:(e,n,o)=>{o.r(n),o.d(n,{default:()=>u});o(87363);var t=o(9420),i=o(88683),r=o(25327),l=o(25533),d=o(47514),s=function RoomIcon(){return(0,d.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,d.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2.5"}),(0,d.jsx)("rect",{x:"8.5",y:"7.5",width:"7",height:"6"}),(0,d.jsx)("path",{d:"M8.5 13.5L3.9 20.1M15.5 13.5l4.6 6.6M8.5 7.5L3.9 3.9M15.5 7.5l4.6-3.6"})]})},a=function WhiteRoomIcon(){return(0,d.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,d.jsx)("path",{d:"M12 4l6.5 3.25v7.5L12 18l-6.5-3.25v-7.5z"}),(0,d.jsx)("path",{d:"M5.5 7.25L12 10.5l6.5-3.25M12 10.5V18"}),(0,d.jsx)("path",{d:"M3 20.5h18"})]})};const u=(0,t.Pi)((function SceneSelection(){var e=(0,r.NP)(),n=e.productState,o=(0,i.useTranslation)().t;if(!function isSceneSelectionVisible(e){var n=e.productState;return!!(0,l.viewerButtonsShown)(n)&&!!(n.doShowRTV||n.doShow3DComb||n.doShowGrid)&&e.divaWebPlanner.getScenes().length>1}(e))return null;var t=e.divaWebPlanner.getScenes(),u=Math.max(0,t.findIndex((function(e){return e.id===n.activeSceneId}))),c=t[u],h=t[(u+1)%t.length],x=o("configurator.scene.".concat(c.id),{defaultValue:c.label}),g=o("configurator.sceneSelection.title",{scene:x});return(0,d.jsx)(l.RoundToggle,{label:g,onToggle:function onToggle(){return n.setActiveScene(h.id)},children:c.room?(0,d.jsx)(s,{}):(0,d.jsx)(a,{})})}))},95755:(e,n,o)=>{o.r(n),o.d(n,{default:()=>s});o(87363);var t=o(58114),i=o(3455),r=o(1067),l=o(50226),d=o(47514);const s=function ViewerButtonColumn(){return(0,d.jsxs)("div",{className:t.o_,children:[(0,d.jsx)(l.ViewModeToggle,{}),(0,d.jsx)(l.DimensionLinesRoundToggle,{}),(0,d.jsx)(l.DoorsToggle,{}),(0,d.jsx)(l.StateToggles,{}),(0,d.jsx)(r.default,{}),(0,d.jsx)(i.default,{})]})}},25533:(e,n,o)=>{o.r(n),o.d(n,{RoundToggle:()=>u,StrokeIcon:()=>a,useViewerButtons:()=>useViewerButtons,viewerButtonsShown:()=>viewerButtonsShown});o(87363);var t=o(9420),i=o(65515),r=o.n(i),l=o(25327),d=o(58114),s=o(47514),a=function StrokeIcon(e){var n=e.children;return(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:n})},u=(0,t.Pi)((function(e){var n=e.label,o=e.pressed,t=e.locked,i=e.busy,a=e.onToggle,u=e.children,c=(0,l.NP)().uiState,h=function toggle(){t||a()};return(0,s.jsx)("div",{role:"button",tabIndex:0,"aria-label":n,"aria-pressed":o,"aria-disabled":t||void 0,"aria-busy":i,title:n,className:r()(d.Fp,c.isInMobileView?d.ai:d.gv,c.isTablet?d.Mq:void 0,o?d.bB:void 0,t?d.JU:void 0,i?d.n6:void 0),onClick:h,onKeyDown:function onKeyDown(e){e.repeat||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),h())},children:u})}));function viewerButtonsShown(e){return e.rtvNext&&!e.hidePlannerUiIcons}function useViewerButtons(){return viewerButtonsShown((0,l.NP)().productState)}},50226:(e,n,o)=>{o.r(n),o.d(n,{DimensionLinesRoundToggle:()=>j,DoorsToggle:()=>p,StateToggles:()=>m,ViewModeToggle:()=>S});var t=o(38946),i=o(87363),r=o(9420),l=o(88683),d=o(25327),s=o(58114),a=o(13362),u=o(25533),c=o(95929),h=o(47514),x=function RoofIcon(){return(0,h.jsxs)(u.StrokeIcon,{children:[(0,h.jsx)("path",{d:"M2.5 13 12 5l9.5 8"}),(0,h.jsx)("path",{d:"M5 11v8.5h14V11"}),(0,h.jsx)("path",{d:"M15.5 6.5V4h2v4.2"})]})},g=function DoorIcon(){return(0,h.jsxs)(u.StrokeIcon,{children:[(0,h.jsx)("path",{d:"M5 21V4.5A1.5 1.5 0 0 1 6.5 3h11A1.5 1.5 0 0 1 19 4.5V21"}),(0,h.jsx)("path",{d:"M3 21h18"}),(0,h.jsx)("path",{d:"M12 3v18"}),(0,h.jsx)("path",{d:"M9.5 11.5v1.5M14.5 11.5v1.5"})]})},p=(0,r.Pi)((function(){var e=(0,d.NP)(),n=(0,l.useTranslation)().t,o=(0,u.useViewerButtons)(),t=e.getDoorsToggle();return o&&e.productState.doShowRTV&&t?(0,h.jsx)(u.RoundToggle,{label:"roof"===t.kind?n("configurator.viewToggle.roof"):n("configurator.viewToggle.doors"),pressed:t.hidden,locked:t.forced,onToggle:function onToggle(){return e.setDoorsHidden(!t.hidden)},children:"roof"===t.kind?(0,h.jsx)(x,{}):(0,h.jsx)(g,{})}):null})),w=(0,l.getLogger)("Planner","ViewerToggles"),v={"door-closed":(0,h.jsxs)(u.StrokeIcon,{children:[(0,h.jsx)("path",{d:"M6 20V5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v15"}),(0,h.jsx)("path",{d:"M3 20h18"}),(0,h.jsx)("path",{d:"M14.5 11.5v1.5"})]}),"door-open":(0,h.jsxs)(u.StrokeIcon,{children:[(0,h.jsx)("path",{d:"M6 20V4h12v16"}),(0,h.jsx)("path",{d:"M3 20h18"}),(0,h.jsx)("path",{d:"M6 4l6 2.5v15L6 20"}),(0,h.jsx)("path",{d:"M10 12.5V14"})]}),"umbrella-closed":(0,h.jsxs)(u.StrokeIcon,{children:[(0,h.jsx)("path",{d:"M12 3c-1.5 3-2 7-1.5 12h3c.5-5 0-9-1.5-12Z"}),(0,h.jsx)("path",{d:"M12 15v6M9 21h6"})]}),"umbrella-open":(0,h.jsxs)(u.StrokeIcon,{children:[(0,h.jsx)("path",{d:"M3 11a9 7 0 0 1 18 0Z"}),(0,h.jsx)("path",{d:"M12 2.5V4M12 11v10M9 21h6"})]}),toggle:(0,h.jsxs)(u.StrokeIcon,{children:[(0,h.jsx)("rect",{x:"3",y:"7",width:"18",height:"10",rx:"5"}),(0,h.jsx)("circle",{cx:"8",cy:"12",r:"2.5"})]})},f=(0,r.Pi)((function(e){var n=e.state,o=(0,d.NP)(),r=(0,i.useState)(!1),l=(0,t.Z)(r,2),s=l[0],a=l[1];return(0,h.jsx)(u.RoundToggle,{label:n.label,pressed:n.pressed,locked:n.locked,busy:s,onToggle:function toggle(){s||(a(!0),o.setStateToggle(n.optionCodex,n.next).catch((function(e){return w.warn("State toggle ".concat(n.optionCodex," failed: ").concat(String(e)))})).finally((function(){return a(!1)})))},children:v[n.icon]})})),m=(0,r.Pi)((function(){var e=(0,d.NP)();return(0,u.useViewerButtons)()&&e.productState.doShowRTV?(0,h.jsx)(h.Fragment,{children:e.getStateToggles().map((function(e){return(0,h.jsx)(f,{state:e},e.optionCodex)}))}):null})),b=function DimensionLinesIcon(){return(0,h.jsx)("svg",{viewBox:"4 4 24 24",fill:"currentColor","aria-hidden":!0,children:(0,h.jsx)("path",{d:"M8.31 21.5c-.5 0-.93-.18-1.28-.53-.35-.35-.53-.78-.53-1.28v-7.38c0-.5.18-.93.53-1.28.35-.35.78-.53 1.28-.53h15.38c.5 0 .93.18 1.28.53.35.35.53.78.53 1.28v7.38c0 .5-.18.93-.53 1.28-.35.35-.78.53-1.28.53H8.31Zm0-1.5h15.38c.08 0 .15-.03.21-.1.06-.06.1-.13.1-.21v-7.38c0-.08-.03-.15-.1-.21-.06-.06-.13-.1-.21-.1h-2.94v3.62h-1.5V12h-2.5v3.62h-1.5V12h-2.5v3.62h-1.5V12H8.31c-.08 0-.15.03-.21.1-.06.06-.1.13-.1.21v7.38c0 .08.03.15.1.21.06.06.13.1.21.1Z"})})},j=(0,r.Pi)((function(){var e=(0,d.NP)().productState,n=(0,u.useViewerButtons)(),o=(0,a.o)();return n&&o.enabled&&!e.doShowGrid&&(e.doShowRTV||e.doShow3DComb)?(0,h.jsx)(u.RoundToggle,{label:o.controlProps["aria-label"],pressed:o.active,onToggle:o.controlProps.onClick,children:(0,h.jsx)(b,{})}):null})),S=(0,r.Pi)((function(){var e=(0,u.useViewerButtons)(),n=(0,c.p)();return e&&n.visible?(0,h.jsx)(u.RoundToggle,{label:n.title,onToggle:n.onClick,children:(0,h.jsx)("span",{className:s.PS,children:n.label})}):null}))},95929:(e,n,o)=>{o.d(n,{p:()=>useViewSwitcher});var t=o(25327),i=o(88683),r={"viewToggle.to2D":"Zur 2D-Ansicht","viewToggle.to3D":"Zur 3D-Ansicht","viewToggle.toAI":"Zur KI-Ansicht","viewToggle.label2D":"2D","viewToggle.label3D":"3D","viewToggle.labelAI":"KI"};function useViewSwitcher(){var e,n=(0,t.NP)(),o=(0,i.useTranslation)().t,l=n.productState,d=l.doShowGrid,s=l.doShowAIRoom,a=l.allow3DComb,u=l.allowRTV,c=l.allowGrid,h=l.footerVisible,x=!(null===(e=n.aiState)||void 0===e||!e.doAllowAI),g=a?"3DCOMB":u?"RTV":"3D",p=s?"3D":d?x?"AI":"3D":c?"2D":x?"AI":void 0,w=null!=p?p:"2D";return{visible:h.length>1&&void 0!==p,view:w,label:o("configurator.viewToggle.label".concat(w),r["viewToggle.label".concat(w)]),title:o("configurator.viewToggle.to".concat(w),r["viewToggle.to".concat(w)]),onClick:function onClick(){"AI"===w?l.showAIRoom():l.onChangePlannerView("3D"===w?g:"2D")}}}},64282:(e,n,o)=>{o.d(n,{Fp:()=>d,JU:()=>g,Mq:()=>h,PS:()=>p,ZP:()=>w,ai:()=>c,bB:()=>u,gv:()=>a,n6:()=>x,o_:()=>s});var t=o(8081),i=o.n(t),r=o(23645),l=o.n(r)()(i());l.push([e.id,".index-module--YwzwV {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n border-radius: 50%;\n color: #4a4543;\n cursor: pointer;\n transition: background-color 0.15s ease;\n}\n\n.index-module--YwzwV.index-module--BjRsw {\n outline: 2px solid #713434;\n outline: 2px solid var(--diva-theme-palette-primary-main, #713434);\n outline-offset: 2px;\n}\n\n.index-module--YwzwV.index-module--BjRsw {\n outline: 2px solid #713434;\n outline: 2px solid #713434;\n outline: 2px solid var(--diva-theme-palette-primary-main, #713434);\n outline-offset: 2px;\n}\n\n.index-module--YwzwV:focus-visible {\n outline: 2px solid #713434;\n outline: 2px solid var(--diva-theme-palette-primary-main, #713434);\n outline-offset: 2px;\n}\n\n.index-module--YwzwV svg {\n width: 60%;\n height: 60%;\n}\n\n/* The desktop buttons' column (`ViewerButtonColumn`): 40px buttons with an 8px gap. Only the buttons take the pointer. */\n.index-module--pGu1x {\n position: absolute;\n left: calc(40px - 1.6rem);\n bottom: 60px;\n z-index: 601;\n display: flex;\n flex-direction: column-reverse;\n gap: 8px;\n pointer-events: none;\n}\n\n.index-module--aOOI5.index-module--YwzwV {\n width: 40px;\n height: 40px;\n background-color: #f5f5f5;\n pointer-events: auto;\n}\n\n.index-module--x1tK7.index-module--YwzwV,\n.index-module--x1tK7.index-module--aOOI5.index-module--YwzwV,\n.index-module--x1tK7.index-module--Rie6C.index-module--YwzwV {\n background-color: #713434;\n background-color: var(--diva-theme-palette-primary-main, #713434);\n color: #fff;\n}\n\n.index-module--aOOI5.index-module--YwzwV:active {\n background-color: #c4c4c4;\n}\n\n.index-module--Rie6C.index-module--YwzwV {\n width: 32px;\n height: 32px;\n background-color: rgba(255,255,255,0.66667);\n border: 1px solid #ddd;\n}\n\n.index-module--Ym26T.index-module--Rie6C.index-module--YwzwV {\n width: 42px;\n height: 42px;\n}\n\n.index-module--Y4zUh.index-module--YwzwV {\n cursor: progress;\n opacity: 0.5;\n}\n\n/* Decided by the step: the button shows the state but a tap does nothing. */\n.index-module--YVSmI.index-module--YwzwV {\n cursor: default;\n opacity: 0.45;\n}\n\n.index-module--rJekD {\n font-size: 13px;\n font-weight: 600;\n line-height: 1;\n}\n\n/* A pressed button keeps its colour under the pointer, so the click shows its result at once. */\n@media (hover: hover) {\n .index-module--aOOI5.index-module--YwzwV:not(.index-module--x1tK7):hover {\n background-color: #c4c4c4;\n }\n\n .index-module--Rie6C.index-module--YwzwV:not(.index-module--x1tK7):hover {\n background-color: rgba(243,243,243,0.66667);\n }\n}\n",""]);var d="index-module--YwzwV",s="index-module--pGu1x",a="index-module--aOOI5",u="index-module--x1tK7",c="index-module--Rie6C",h="index-module--Ym26T",x="index-module--Y4zUh",g="index-module--YVSmI",p="index-module--rJekD";const w=l},58114:(e,n,o)=>{o.d(n,{Fp:()=>p.Fp,JU:()=>p.JU,Mq:()=>p.Mq,PS:()=>p.PS,ai:()=>p.ai,bB:()=>p.bB,gv:()=>p.gv,n6:()=>p.n6,o_:()=>p.o_});var t=o(93379),i=o.n(t),r=o(7795),l=o.n(r),d=o(90569),s=o.n(d),a=o(3565),u=o.n(a),c=o(19216),h=o.n(c),x=o(44589),g=o.n(x),p=o(64282),w={};w.styleTagTransform=g(),w.setAttributes=u(),w.insert=s().bind(null,"head"),w.domAPI=l(),w.insertStyleElement=h();i()(p.ZP,w),p.ZP&&p.ZP.locals&&p.ZP.locals}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[5755,1067],{1067:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var r=t(87363),o=t.n(r),i=t(9420),l=t(25327),s=t(30012),a=t(47514),u=o().lazy((function(){return(0,s.Ey)().then((function(){return Promise.all([t.e(2182),t.e(9065)]).then(t.bind(t,59065))})).catch((function(){return{default:function _default(){return null}}}))}));const c=(0,i.Pi)((function ArLaunch(){return(0,l.NP)().productState.rtvNext?(0,a.jsx)(r.Suspense,{fallback:null,children:(0,a.jsx)(u,{})}):null}))},3455:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});t(87363);var r=t(9420),o=t(88683),i=t(25327),l=t(25533),s=t(47514),a=function RoomIcon(){return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2.5"}),(0,s.jsx)("rect",{x:"8.5",y:"7.5",width:"7",height:"6"}),(0,s.jsx)("path",{d:"M8.5 13.5L3.9 20.1M15.5 13.5l4.6 6.6M8.5 7.5L3.9 3.9M15.5 7.5l4.6-3.6"})]})},u=function WhiteRoomIcon(){return(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,s.jsx)("path",{d:"M12 4l6.5 3.25v7.5L12 18l-6.5-3.25v-7.5z"}),(0,s.jsx)("path",{d:"M5.5 7.25L12 10.5l6.5-3.25M12 10.5V18"}),(0,s.jsx)("path",{d:"M3 20.5h18"})]})};const c=(0,r.Pi)((function SceneSelection(){var e=(0,i.NP)(),n=e.productState,t=(0,o.useTranslation)().t;if(!function isSceneSelectionVisible(e){var n=e.productState;return!!(0,l.viewerButtonsShown)(n)&&!!(n.doShowRTV||n.doShow3DComb||n.doShowGrid)&&e.divaWebPlanner.getScenes().length>1}(e))return null;var r=e.divaWebPlanner.getScenes(),c=Math.max(0,r.findIndex((function(e){return e.id===n.activeSceneId}))),d=r[c],h=r[(c+1)%r.length],f=t("configurator.scene.".concat(d.id),{defaultValue:d.label}),x=t("configurator.sceneSelection.title",{scene:f});return(0,s.jsx)(l.RoundToggle,{label:x,onToggle:function onToggle(){return n.setActiveScene(h.id)},children:d.room?(0,s.jsx)(a,{}):(0,s.jsx)(u,{})})}))},95755:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});t(87363);var r=t(58114),o=t(3455),i=t(1067),l=t(50226),s=t(47514);const a=function ViewerButtonColumn(){return(0,s.jsxs)("div",{className:r.o_,children:[(0,s.jsx)(l.ViewModeToggle,{}),(0,s.jsx)(l.DimensionLinesRoundToggle,{}),(0,s.jsx)(l.DoorsToggle,{}),(0,s.jsx)(l.WaterToggle,{}),(0,s.jsx)(l.StateToggles,{}),(0,s.jsx)(i.default,{}),(0,s.jsx)(o.default,{})]})}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 5808.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[5808,7801,7348,3525,3090,9290,8938,8445,4580,4723,2352,4516,5115],{37801:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function BoxCopy(e){var t=e.rect,n=e.item,o=e.plannerUIProps,i=e.invertLeftRight;return(0,r.jsx)("div",{onClick:function onClick(){var e;null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),{x:"BoxCopyLeft"==n.type?-1:"BoxCopyRight"==n.type?1:0,y:"BoxCopyTop"==n.type?1:0,z:0})},style:{left:t.left+"%",top:100-t.top+"%"},className:l()(o.classes.buttonGeneral,o.classes.copy.BoxPlannerCopy.copyGlobal,"BoxCopyLeft"==n.type?i?o.classes.copy.BoxPlannerCopy.copyRight:o.classes.copy.BoxPlannerCopy.copyLeft:void 0,"BoxCopyTop"==n.type?o.classes.copy.BoxPlannerCopy.copyTop:void 0,"BoxCopyRight"==n.type?i?o.classes.copy.BoxPlannerCopy.copyLeft:o.classes.copy.BoxPlannerCopy.copyRight:void 0)})}))},67348:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function ElementCopy(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps;return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:n.doUseCalc?n.leftCalc:"percentage"==t.position.interpretation?n.left+"%":n.left+"px",top:n.doUseCalc?n.topCalc:"percentage"==t.position.interpretation?n.top+"%":n.top+"px"},className:l()(i.classes.copy.ElementCopy,i.classes.buttonGeneral)})}))},33525:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function DistanceToGround(e){var t=e.item,n=e.plannerUIProps;return(0,r.jsx)("div",{style:{left:t.position.x+"%",top:100-t.position.y+"%"},id:"distanceToGround",className:l()(n.classes.dimension.distanceToGround),children:(0,r.jsx)("div",{children:t.dimensionVal+" cm"})})}))},53090:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=n(25327),s=(n(87363),n(47514));const c=(0,i.Pi)((function AVL(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=(0,r._w)(),a=c.getDPUIISSelected(n),u=(n.rotOfElement?n.rotOfElement:0)+(n.iconRotDeg?n.iconRotDeg:0);return(0,s.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;c.setDPUISelectionChanged(n,!a),null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),n.dpId,!a,void 0)},style:{left:t.left+"px",top:t.top+"px",transform:"rotate("+u+"deg)"},className:l()(i.classes.buttonGeneral,i.classes.dockingPoint.AVL.avl,a?i.classes.dockingPoint.AVL.avlSel:void 0)})}))},59290:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=n(25327),s=(n(87363),n(47514));const c=(0,i.Pi)((function AVR(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=(0,r._w)(),a=c.getDPUIISSelected(n),u=(n.rotOfElement?n.rotOfElement:0)+(n.iconRotDeg?n.iconRotDeg:0);return(0,s.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;c.setDPUISelectionChanged(n,!a),null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),n.dpId,!a,void 0)},style:{left:t.left+"px",top:t.top+"px",transform:"rotate("+u+"deg)"},className:l()(i.classes.buttonGeneral,i.classes.dockingPoint.AVR.avr,a?i.classes.dockingPoint.AVR.avrSel:void 0),children:n.posNr})}))},18938:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=n(25327),s=(n(87363),n(47514));const c=(0,i.Pi)((function DPACC(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=(0,r._w)(),a=c.getDPUIISSelected(n);return(0,s.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;c.setDPUISelectionChanged(n,!a),null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),n.dpId,!a,n.dockToElementId)},style:{left:"percentage"==n.position.interpretation?t.left+"%":t.left+"px",top:"percentage"==n.position.interpretation?t.top+"%":t.top+"px"},className:l()(i.classes.buttonGeneral,"2D"==n.plannerMode?"DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp2DAccDocking:i.classes.dockingPoint.DPACC.dp2DAccNotDocking:void 0,"2D"==n.plannerMode&&a&&"NOT_DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp2DAccNotDockingSel:void 0,"3D"==n.plannerMode?"DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp3DAccDocking:i.classes.dockingPoint.DPACC.dp3DAccNotDocking:void 0,"3D"==n.plannerMode&&a&&"NOT_DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp3DAccNotDockingSel:void 0),children:n.posNr})}))},88445:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var o=n(38946),l=n(65515),i=n.n(l),r=n(9420),s=n(87363),c=n(90603),a=n(47514),u=new c.FM(0,0);const d=(0,r.Pi)((function Outline(e){var t,n,l=e.item,r=e.plannerUIProps,d=(0,s.useState)(!1),p=(0,o.Z)(d,2),f=p[0],v=p[1],m=(0,s.useState)(l.position.x),h=(0,o.Z)(m,2),g=h[0],y=h[1],C=(0,s.useState)(l.position.y),x=(0,o.Z)(C,2),P=x[0],I=x[1],w=!1;return(0,a.jsx)("div",{onClick:function onClick(){var e;null===(e=l.clickFunction)||void 0===e||e.call(l,l.setId,Number(l.elementId))},onMouseDown:function onMouseDown(e){w=!0,u=new c.FM(e.clientX,e.clientY)},onTouchStart:function onTouchStart(e){1==e.touches.length&&(w=!0,u=new c.FM(e.touches[0].clientX,e.touches[0].clientY))},onMouseMove:function onMouseMove(e){var t,n;w&&!f&&(v(!0),null===(t=l.onDragStartFunction)||void 0===t||t.call(l,l.setId,Number(l.elementId)));f&&(null===(n=l.onDragMoveFunction)||void 0===n||n.call(l,l.setId,Number(l.elementId),new c.FM(e.clientX-u.x,e.clientY-u.y)),y(g+e.clientX-u.x),I(P+e.clientY-u.y),u.x=e.clientX,u.y=e.clientY);w=!1},onTouchMove:function onTouchMove(e){if(1==e.touches.length){var t,n;if(w&&!f)v(!0),null===(t=l.onDragStartFunction)||void 0===t||t.call(l,l.setId,Number(l.elementId));if(f)null===(n=l.onDragMoveFunction)||void 0===n||n.call(l,l.setId,Number(l.elementId),new c.FM(e.touches[0].clientX-u.x,e.touches[0].clientY-u.y)),y(g+e.touches[0].clientX-u.x),I(P+e.touches[0].clientY-u.y),u.x=e.touches[0].clientX,u.y=e.touches[0].clientY;w=!1}},onMouseUp:function onMouseUp(){var e;f&&(v(!1),null===(e=l.onDragEndFunction)||void 0===e||e.call(l,l.setId,Number(l.elementId)));w=!1},onTouchEnd:function onTouchEnd(){var e;f&&(v(!1),null===(e=l.onDragEndFunction)||void 0===e||e.call(l,l.setId,Number(l.elementId)));w=!1},style:{left:g+"px",top:P+"px",width:(null==l||null===(t=l.size)||void 0===t?void 0:t.x)+"px",height:(null==l||null===(n=l.size)||void 0===n?void 0:n.y)+"px",transform:"rotate("+(null==l?void 0:l.rotOfElement)+"deg)"},className:i()(f?r.classes.outline.outline2D.draggableActive:void 0,"selected"==l.elemState?r.classes.outline.outline2D.draggable:void 0,"selectable"==l.elemState?r.classes.outline.outline2D.selectable:void 0)})}))},24580:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(25327)),s=n(47514);const c=(0,i.Pi)((function PosNr(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=e.hasTrash,a=(0,r.NP)(),u="percentage"==n.position.interpretation?t.top+"%":t.top+"px";return u=c&&t.top<4?"calc("+u+" + 35px + var(--globalSize) / 2)":"calc("+u+" + var(--globalSize) / 2)",null==n.posNr?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{ref:function ref(e){return o(e)},style:{left:"percentage"==n.position.interpretation?t.left+"%":t.left,top:u,visibility:a.productState.isBoxPlanner?"hidden":"visible"},className:l()(i.classes.buttonGeneral,i.classes.posNr.posNr,n.isDockedAccessoire?i.classes.posNr.posNrAcc:void 0,"selected"==n.elemState?i.classes.posNr.posNrSelected:void 0,"selectable"==n.elemState?i.classes.posNr.posNrSelectable:void 0,"unselectable"==n.elemState?i.classes.posNr.posNrUnSelectable:void 0,n.posNr.toString().length>1?i.classes.posNr.moreThanOneNr:void 0,n.onHover&&"unselectable"!=n.elemState?i.classes.posNr.posNrOnHover:void 0),children:[n.posNr,(0,s.jsx)("div",{onClick:function onClick(){var e;null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId))},style:{left:"0px",top:"0px",visibility:a.productState.isBoxPlanner?"hidden":"visible"},className:l()("selectable"==n.elemState?i.classes.posNr.posNrSelectableArea:void 0)})]})}))},94723:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function RotationClockwise(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps;return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:n.left+"px",top:n.top+"px"},className:l()(i.classes.rotation.rotClock,i.classes.buttonGeneral),children:t.posNr})}))},72352:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function RotationCounterClockwise(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps;return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:n.left+"px",top:n.top+"px"},className:l()(i.classes.rotation.rotCounterClock,i.classes.buttonGeneral),children:t.posNr})}))},54516:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function Trash(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps,s=n.doUseCalc?n.leftCalc:"percentage"==t.position.interpretation?n.left+"%":n.left+"px",c=n.doUseCalc?n.topCalc:"percentage"==t.position.interpretation?"calc("+n.top+"% )":n.top+"px";return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:s,top:c},className:l()(i.classes.trash.trashClass,i.classes.buttonGeneral,"BOX"==t.plannerMode?i.classes.trash.boxplanner:void 0),id:"testDel",children:t.posNr})}))},40053:(e,t,n)=>{n.d(t,{Z:()=>useDockingPointPositioning});var o=n(90603),l=n(25327);function useDockingPointPositioning(e){var t,n,i,r,s=e.dpElement,c=e.item,a=(0,l._w)(),u=null==s?void 0:s.getBoundingClientRect(),d=null!==(t=null==c?void 0:c.position.x)&&void 0!==t?t:0,p=null!==(n=null==c?void 0:c.position.y)&&void 0!==n?n:0;if(u&&c){var f=new o.FM(d,p),v=a.getViewConfig(),m=new o.FM(0,0);if("AVL"==(null==c?void 0:c.type)||"AVR"==(null==c?void 0:c.type)){if("2D"===c.plannerMode)switch(v.posDPIcon2D){case"CORNER":break;case"SIDE_TOP":"AVL"==(null==c?void 0:c.type)&&(m=new o.FM(-u.width,0),null!=c&&c.rotOfElement&&(m=o.FM.rotateOrigin(m,null==c?void 0:c.rotOfElement)),f=new o.FM(d+m.x,p+m.y,"pixel"))}}else"AccDP"==(null==c?void 0:c.type)&&"3D"==(null==c?void 0:c.plannerMode)?f.y=100-f.y:"BoxCopyLeft"==c.type||"BoxCopyRight"==(null==c?void 0:c.type)||null==c||c.type;d=f.x,p=f.y}return{width:null!==(i=null==u?void 0:u.width)&&void 0!==i?i:0,height:null!==(r=null==u?void 0:u.height)&&void 0!==r?r:0,top:p,left:d}}},85115:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(38946),l=n(87363),i=n(18938),r=n(40053),s=n(47514);const c=function ItemsDPAccContainer(e){var t=e.item,n=e.plannerUIProps,c=(0,l.useState)(null),a=(0,o.Z)(c,2),u=a[0],d=a[1],p=(0,r.Z)({item:t,dpElement:u});return(0,s.jsx)(s.Fragment,{children:t&&(0,s.jsx)(i.default,{item:t,rect:p,onElement:d,plannerUIProps:n},null==t?void 0:t.key)})}},15808:(e,t,n)=>{n.r(t),n.d(t,{default:()=>M});var o=n(38946),l=n(9420),i=n(87363),r=n(53090),s=n(59290),c=n(88445),a=n(94723),u=n(72352),d=n(54516),p=n(40053),f=n(90603),v=n(25327);var m=n(85115),h=n(24580),g=n(37801),y=n(88683),C=n(2221),x=(0,y.getLogger)("Planner","CopyElementPositioning");var P=n(67348),I=n(33525),w=n(47514);const M=(0,l.Pi)((function ItemsContainer(e){for(var t=e.items,n=e.plannerUIProps,l=(0,v.NP)(),y=(0,i.useState)(null),M=(0,o.Z)(y,2),E=M[0],k=M[1],N=(0,i.useState)(null),D=(0,o.Z)(N,2),O=D[0],R=D[1],b=(0,i.useState)(null),S=(0,o.Z)(b,2),F=S[0],U=S[1],T=(0,i.useState)(null),A=(0,o.Z)(T,2),B=A[0],j=(A[1],(0,i.useState)(null)),_=(0,o.Z)(j,2),G=_[0],Z=(_[1],(0,i.useState)(null)),L=(0,o.Z)(Z,2),V=L[0],X=(L[1],(0,i.useState)(null)),z=(0,o.Z)(X,2),K=z[0],Y=z[1],H=(0,i.useState)(null),q=(0,o.Z)(H,2),W=q[0],J=q[1],Q=(0,i.useState)(null),$=(0,o.Z)(Q,2),ee=$[0],te=$[1],ne=(0,i.useState)(null),oe=(0,o.Z)(ne,2),le=(oe[0],oe[1]),ie=t.find((function(e){return"PosNr"==e.type})),re=t.find((function(e){return"AVL"==e.type})),se=t.find((function(e){return"AVR"==e.type})),ce=[],ae=[],ue=0;ue<t.length;ue++)"AccDP"==t[ue].type?ce.push(t[ue]):"DistanceFromGround"==t[ue].type&&ae.push(t[ue]);var de=t.find((function(e){return"Outline"==e.type})),pe=t.find((function(e){return"TrashIcon"==e.type})),fe=t.find((function(e){return"CopyElement"==e.type})),ve=t.find((function(e){return"RotateC"==e.type})),me=t.find((function(e){return"RotateCC"==e.type})),he=t.find((function(e){return"BoxCopyLeft"==e.type})),ge=t.find((function(e){return"BoxCopyTop"==e.type})),ye=t.find((function(e){return"BoxCopyRight"==e.type})),Ce=function usePosNrPositioning(e){var t,n,o,l,i=e.posNrElement,r=e.item,s=(0,v._w)(),c=null==i?void 0:i.getBoundingClientRect(),a=null!==(t=null==r?void 0:r.position.x)&&void 0!==t?t:0,u=null!==(n=null==r?void 0:r.position.y)&&void 0!==n?n:0;if(c){var d=new f.FM(a,u),p=s.getViewConfig(),m=new f.FM(0,0);switch(null==r?void 0:r.plannerMode){case"2D":switch(p.iconPosition2DGrid){case"BORDER":m=new f.FM(c.width,.1*-c.height),null!=r&&r.rotOfElement&&(m=f.FM.rotateOrigin(m,null==r?void 0:r.rotOfElement)),d=new f.FM(a+m.x,u+m.y,"pixel");break;case"OUTSIDE":var h=null!=r&&r.iconZoom?r.iconZoom:1;m=new f.FM(c.width+h,-c.height/2-(c.height/2.5-h)),null!=r&&r.rotOfElement&&(m=f.FM.rotateOrigin(m,null==r?void 0:r.rotOfElement)),d=new f.FM(a+m.x,u+m.y,"pixel")}a=d.x,u=d.y;break;case"3D":(a+=3)<1&&(a=1),(u=100-u-1)<1&&(u=1)}}return{width:null!==(o=null==c?void 0:c.width)&&void 0!==o?o:0,height:null!==(l=null==c?void 0:c.height)&&void 0!==l?l:0,top:u,left:a}}({item:ie,posNrElement:E}),xe=(0,p.Z)({item:re,dpElement:O}),Pe=(0,p.Z)({item:se,dpElement:F}),Ie=(0,p.Z)({item:he,dpElement:B}),we=(0,p.Z)({item:ge,dpElement:G}),Me=(0,p.Z)({item:ye,dpElement:V}),Ee=function useTrashPositioning(e){var t,n,o,l,i=e.trashElement,r=e.posNrRect,s=e.boxPlannerCopyLeftRect,c=e.boxPlannerCopyTopRect,a=e.boxPlannerCopyRightRect,u=e.trashItem,d=(0,v._w)(),p=null==i?void 0:i.getBoundingClientRect(),m=d.getViewConfig(),h=null!==(t=null==u?void 0:u.position.x)&&void 0!==t?t:0,g=null!==(n=null==u?void 0:u.position.y)&&void 0!==n?n:0,y="",C="",x=!1;if(p&&r){var P=new f.FM(0,0);switch(m.posTrashRotIcon){case"POSNUM_TOP":"2D"==(null==u?void 0:u.plannerMode)?(P=new f.FM(0,-r.height-p.height/2),null!=u&&u.rotOfElement&&(P=f.FM.rotateOrigin(P,u.rotOfElement)),h=r.left+P.x,g=r.top+P.y):"3D"!=(null==u?void 0:u.plannerMode)&&"BOX"!=(null==u?void 0:u.plannerMode)||(m.enableElementCopy?(x=!0,y="calc("+r.left.toString()+"% - "+r.width/1.8+"px)",C=r.top<4?"calc("+r.top+"% + 30px - var(--globalSize) / 2":"calc("+r.top+"% - (var(--globalSize) + 5px) / 2"):(x=!0,y=r.left.toString()+"%",C=r.top<4?"calc("+r.top+"% + 30px - var(--globalSize) / 2":"calc("+r.top+"% - (var(--globalSize) + 5px) / 2"));break;case"TOP_RIGHT_BACK":if("2D"==(null==u?void 0:u.plannerMode)){var I=null!=u&&u.iconZoom?u.iconZoom:1;P=new f.FM(-p.width/2-(p.width/3+I),-p.height/2-(p.height/3.7-I)),null!=u&&u.rotOfElement&&(P=f.FM.rotateOrigin(P,u.rotOfElement)),h+=P.x,g+=P.y,Math.sqrt(Math.pow(r.left-h,2)+Math.pow(r.top-g,2))<=r.width&&(P=new f.FM(r.width,0),null!=u&&u.rotOfElement&&(P=f.FM.rotateOrigin(P,u.rotOfElement)),h+=P.x,g+=P.y)}else if("3D"==(null==u?void 0:u.plannerMode)||"BOX"==(null==u?void 0:u.plannerMode)){if(s||a||c){var w=!1;s&&(Math.sqrt(Math.pow(s.left-h,2)+Math.pow(s.top-g,2))<9&&(g+=5,w=!0),!w&&a&&Math.sqrt(Math.pow(a.left-h,2)+Math.pow(a.top-g,2))<9&&(g+=5,w=!0),!w&&c&&Math.sqrt(Math.pow(c.left-h,2)+Math.pow(c.top-g,2))<9&&(g+=5,w=!0))}(h-=1)>99&&(h=99),(g=100-g-2)<1&&(g=1)}}}return{width:null!==(o=null==p?void 0:p.width)&&void 0!==o?o:0,height:null!==(l=null==p?void 0:p.height)&&void 0!==l?l:0,top:g,left:h,doUseCalc:x,topCalc:x?C:void 0,leftCalc:x?y:void 0}}({trashItem:pe,posNrRect:Ce,boxPlannerCopyLeftRect:Ie,boxPlannerCopyTopRect:we,boxPlannerCopyRightRect:Me,trashElement:K}),ke=function useCopyElementPositioning(e){var t,n,o=e.copyElement,l=e.posNrRect,i=e.copyElementItem,r=(0,v._w)(),s=null==o?void 0:o.getBoundingClientRect(),c=r.getViewConfig(),a="",u="",d=!1;if(s&&l)switch(new f.FM(0,0),c.posTrashRotIcon){case"POSNUM_TOP":"3D"==(null==i?void 0:i.plannerMode)&&c.enableElementCopy&&(d=!0,a="calc("+l.left.toString()+"% + "+l.width/1.8+"px)",u="calc("+l.top+"% - "+(l.height+2)+"px)");break;case"TOP_RIGHT_BACK":x.error(new C.GE("Do implement copy Element for TOP_RIGHT_BACK Positioning",{code:"WC_0012"}))}return{width:null!==(t=null==s?void 0:s.width)&&void 0!==t?t:0,height:null!==(n=null==s?void 0:s.height)&&void 0!==n?n:0,top:0,left:0,doUseCalc:d,topCalc:d?u:void 0,leftCalc:d?a:void 0}}({copyElementItem:fe,posNrRect:Ce,copyElement:W}),Ne=function useRotClockwisePositioning(e){var t,n,o,l,i=e.rotElement,r=e.posNrRect,s=e.trashRect,c=e.rotItem,a=(0,v._w)(),u=null==i?void 0:i.getBoundingClientRect(),d=a.getViewConfig(),p=null!==(t=null==c?void 0:c.position.x)&&void 0!==t?t:0,m=null!==(n=null==c?void 0:c.position.y)&&void 0!==n?n:0;if(u&&r&&s){var h=new f.FM(0,0);switch(d.posTrashRotIcon){case"POSNUM_TOP":p=(r.left+s.left)/2,m=(r.top+s.top)/2,h=new f.FM(-u.width,0),null!=c&&c.rotOfElement&&(h=f.FM.rotateOrigin(h,c.rotOfElement)),p+=h.x,m+=h.y;break;case"TOP_RIGHT_BACK":if(Math.sqrt(Math.pow(r.left-s.left,2)+Math.pow(r.top-s.top,2))<=100){var g=new f.FM(0,-u.height-4);null!=c&&c.rotOfElement&&0!=c.rotOfElement&&(g=f.FM.rotateOrigin(g,c.rotOfElement)),p=(null==s?void 0:s.left)+g.x,m=(null==s?void 0:s.top)+g.y}else{var y=new f.FM(-u.width-4,0);null!=c&&c.rotOfElement&&0!=c.rotOfElement&&(y=f.FM.rotateOrigin(y,c.rotOfElement)),p=(null==s?void 0:s.left)+y.x,m=(null==s?void 0:s.top)+y.y}}}return{width:null!==(o=null==u?void 0:u.width)&&void 0!==o?o:0,height:null!==(l=null==u?void 0:u.height)&&void 0!==l?l:0,top:m,left:p}}({rotItem:ve,posNrRect:Ce,trashRect:Ee,rotElement:ee}),De=function useRotCounterClockwisePositioning(e){var t,n,o,l,i=e.rotElement,r=e.posNrRect,s=e.trashRect,c=e.rotClockRect,a=e.rotItem,u=(0,v._w)(),d=null==i?void 0:i.getBoundingClientRect(),p=u.getViewConfig(),m=null!==(t=null==a?void 0:a.position.x)&&void 0!==t?t:0,h=null!==(n=null==a?void 0:a.position.y)&&void 0!==n?n:0;if(d&&r&&s&&c){var g=new f.FM(0,0);switch(p.posTrashRotIcon){case"POSNUM_TOP":m=(r.left+s.left)/2,h=(r.top+s.top)/2,g=new f.FM(d.width,0),null!=a&&a.rotOfElement&&(g=f.FM.rotateOrigin(g,a.rotOfElement)),m+=g.x,h+=g.y;break;case"TOP_RIGHT_BACK":Math.sqrt(Math.pow(r.left-s.left,2)+Math.pow(r.top-s.top,2))<=100?(g=new f.FM(0,-d.height-3),null!=a&&a.rotOfElement&&(g=f.FM.rotateOrigin(g,a.rotOfElement)),m=(null==c?void 0:c.left)+g.x,h=(null==c?void 0:c.top)+g.y):(g=new f.FM(-d.width-3,-0),null!=a&&a.rotOfElement&&(g=f.FM.rotateOrigin(g,a.rotOfElement)),m=(null==c?void 0:c.left)+g.x,h=(null==c?void 0:c.top)+g.y)}}return{width:null!==(o=null==d?void 0:d.width)&&void 0!==o?o:0,height:null!==(l=null==d?void 0:d.height)&&void 0!==l?l:0,top:h,left:m}}({rotItem:ve,posNrRect:Ce,trashRect:Ee,rotClockRect:Ne,rotElement:ee});return(0,w.jsxs)(w.Fragment,{children:[ie&&(0,w.jsx)(h.default,{item:ie,rect:Ce,onElement:k,plannerUIProps:n,hasTrash:!!pe}),de&&(0,w.jsx)(c.default,{item:de,plannerUIProps:n},de.key),re&&(0,w.jsx)(r.default,{item:re,rect:xe,onElement:R,plannerUIProps:n},null==re?void 0:re.key),se&&(0,w.jsx)(s.default,{item:se,rect:Pe,onElement:U,plannerUIProps:n},null==se?void 0:se.key),he&&ye&&(0,w.jsx)(g.default,{item:he,rect:Ie,invertLeftRight:Me.left<Ie.left,plannerUIProps:n},he.key),ge&&(0,w.jsx)(g.default,{item:ge,rect:we,invertLeftRight:!1,plannerUIProps:n},ge.key),ye&&he&&(0,w.jsx)(g.default,{item:ye,rect:Me,invertLeftRight:Me.left<Ie.left,plannerUIProps:n},ye.key),pe&&(0,w.jsx)(d.default,{item:pe,rect:Ee,onElement:Y,plannerUIProps:n}),fe&&(0,w.jsx)(P.default,{item:fe,rect:ke,onElement:J,plannerUIProps:n}),ve&&(0,w.jsx)(a.default,{item:ve,rect:Ne,onElement:te,plannerUIProps:n}),me&&(0,w.jsx)(u.default,{item:me,rect:De,onElement:le,plannerUIProps:n}),ce.map((function(e,t){return(0,w.jsx)(m.default,{item:e,plannerUIProps:n},e.key)})),l.productState.getDoShow3DDimensionLines()&&ae.map((function(e,t){return(0,w.jsx)(I.default,{item:e,plannerUIProps:n},e.key)}))]})}))}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[5808,7801,7348,3525,3090,9290,8938,8445,4580,4723,2352,4516,5115],{37801:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function BoxCopy(e){var t=e.rect,n=e.item,o=e.plannerUIProps,i=e.invertLeftRight;return(0,r.jsx)("div",{onClick:function onClick(){var e;null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),{x:"BoxCopyLeft"==n.type?-1:"BoxCopyRight"==n.type?1:0,y:"BoxCopyTop"==n.type?1:0,z:0})},style:{left:t.left+"%",top:100-t.top+"%"},className:l()(o.classes.buttonGeneral,o.classes.copy.BoxPlannerCopy.copyGlobal,"BoxCopyLeft"==n.type?i?o.classes.copy.BoxPlannerCopy.copyRight:o.classes.copy.BoxPlannerCopy.copyLeft:void 0,"BoxCopyTop"==n.type?o.classes.copy.BoxPlannerCopy.copyTop:void 0,"BoxCopyRight"==n.type?i?o.classes.copy.BoxPlannerCopy.copyLeft:o.classes.copy.BoxPlannerCopy.copyRight:void 0)})}))},67348:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function ElementCopy(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps;return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:n.doUseCalc?n.leftCalc:"percentage"==t.position.interpretation?n.left+"%":n.left+"px",top:n.doUseCalc?n.topCalc:"percentage"==t.position.interpretation?n.top+"%":n.top+"px"},className:l()(i.classes.copy.ElementCopy,i.classes.buttonGeneral)})}))},33525:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function DistanceToGround(e){var t=e.item,n=e.plannerUIProps;return(0,r.jsx)("div",{style:{left:t.position.x+"%",top:100-t.position.y+"%"},id:"distanceToGround",className:l()(n.classes.dimension.distanceToGround),children:(0,r.jsx)("div",{children:t.dimensionVal+" cm"})})}))},53090:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=n(25327),s=(n(87363),n(47514));const c=(0,i.Pi)((function AVL(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=(0,r._w)(),a=c.getDPUIISSelected(n),u=(n.rotOfElement?n.rotOfElement:0)+(n.iconRotDeg?n.iconRotDeg:0);return(0,s.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;c.setDPUISelectionChanged(n,!a),null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),n.dpId,!a,void 0)},style:{left:t.left+"px",top:t.top+"px",transform:"rotate("+u+"deg)"},className:l()(i.classes.buttonGeneral,i.classes.dockingPoint.AVL.avl,a?i.classes.dockingPoint.AVL.avlSel:void 0)})}))},59290:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=n(25327),s=(n(87363),n(47514));const c=(0,i.Pi)((function AVR(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=(0,r._w)(),a=c.getDPUIISSelected(n),u=(n.rotOfElement?n.rotOfElement:0)+(n.iconRotDeg?n.iconRotDeg:0);return(0,s.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;c.setDPUISelectionChanged(n,!a),null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),n.dpId,!a,void 0)},style:{left:t.left+"px",top:t.top+"px",transform:"rotate("+u+"deg)"},className:l()(i.classes.buttonGeneral,i.classes.dockingPoint.AVR.avr,a?i.classes.dockingPoint.AVR.avrSel:void 0),children:n.posNr})}))},18938:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=n(25327),s=(n(87363),n(47514));const c=(0,i.Pi)((function DPACC(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=(0,r._w)(),a=c.getDPUIISSelected(n);return(0,s.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;c.setDPUISelectionChanged(n,!a),null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId),n.dpId,!a,n.dockToElementId)},style:{left:"percentage"==n.position.interpretation?t.left+"%":t.left+"px",top:"percentage"==n.position.interpretation?t.top+"%":t.top+"px"},className:l()(i.classes.buttonGeneral,"2D"==n.plannerMode?"DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp2DAccDocking:i.classes.dockingPoint.DPACC.dp2DAccNotDocking:void 0,"2D"==n.plannerMode&&a&&"NOT_DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp2DAccNotDockingSel:void 0,"3D"==n.plannerMode?"DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp3DAccDocking:i.classes.dockingPoint.DPACC.dp3DAccNotDocking:void 0,"3D"==n.plannerMode&&a&&"NOT_DOCKING"==n.dockingInfo?i.classes.dockingPoint.DPACC.dp3DAccNotDockingSel:void 0),children:n.posNr})}))},88445:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var o=n(38946),l=n(65515),i=n.n(l),r=n(9420),s=n(87363),c=n(59230),a=n(47514),u=new c.FM(0,0);const d=(0,r.Pi)((function Outline(e){var t,n,l=e.item,r=e.plannerUIProps,d=(0,s.useState)(!1),p=(0,o.Z)(d,2),f=p[0],v=p[1],m=(0,s.useState)(l.position.x),h=(0,o.Z)(m,2),g=h[0],y=h[1],C=(0,s.useState)(l.position.y),x=(0,o.Z)(C,2),P=x[0],I=x[1],w=!1;return(0,a.jsx)("div",{onClick:function onClick(){var e;null===(e=l.clickFunction)||void 0===e||e.call(l,l.setId,Number(l.elementId))},onMouseDown:function onMouseDown(e){w=!0,u=new c.FM(e.clientX,e.clientY)},onTouchStart:function onTouchStart(e){1==e.touches.length&&(w=!0,u=new c.FM(e.touches[0].clientX,e.touches[0].clientY))},onMouseMove:function onMouseMove(e){var t,n;w&&!f&&(v(!0),null===(t=l.onDragStartFunction)||void 0===t||t.call(l,l.setId,Number(l.elementId)));f&&(null===(n=l.onDragMoveFunction)||void 0===n||n.call(l,l.setId,Number(l.elementId),new c.FM(e.clientX-u.x,e.clientY-u.y)),y(g+e.clientX-u.x),I(P+e.clientY-u.y),u.x=e.clientX,u.y=e.clientY);w=!1},onTouchMove:function onTouchMove(e){if(1==e.touches.length){var t,n;if(w&&!f)v(!0),null===(t=l.onDragStartFunction)||void 0===t||t.call(l,l.setId,Number(l.elementId));if(f)null===(n=l.onDragMoveFunction)||void 0===n||n.call(l,l.setId,Number(l.elementId),new c.FM(e.touches[0].clientX-u.x,e.touches[0].clientY-u.y)),y(g+e.touches[0].clientX-u.x),I(P+e.touches[0].clientY-u.y),u.x=e.touches[0].clientX,u.y=e.touches[0].clientY;w=!1}},onMouseUp:function onMouseUp(){var e;f&&(v(!1),null===(e=l.onDragEndFunction)||void 0===e||e.call(l,l.setId,Number(l.elementId)));w=!1},onTouchEnd:function onTouchEnd(){var e;f&&(v(!1),null===(e=l.onDragEndFunction)||void 0===e||e.call(l,l.setId,Number(l.elementId)));w=!1},style:{left:g+"px",top:P+"px",width:(null==l||null===(t=l.size)||void 0===t?void 0:t.x)+"px",height:(null==l||null===(n=l.size)||void 0===n?void 0:n.y)+"px",transform:"rotate("+(null==l?void 0:l.rotOfElement)+"deg)"},className:i()(f?r.classes.outline.outline2D.draggableActive:void 0,"selected"==l.elemState?r.classes.outline.outline2D.draggable:void 0,"selectable"==l.elemState?r.classes.outline.outline2D.selectable:void 0)})}))},24580:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(25327)),s=n(47514);const c=(0,i.Pi)((function PosNr(e){var t=e.rect,n=e.item,o=e.onElement,i=e.plannerUIProps,c=e.hasTrash,a=(0,r.NP)(),u="percentage"==n.position.interpretation?t.top+"%":t.top+"px";return u=c&&t.top<4?"calc("+u+" + 35px + var(--globalSize) / 2)":"calc("+u+" + var(--globalSize) / 2)",null==n.posNr?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{ref:function ref(e){return o(e)},style:{left:"percentage"==n.position.interpretation?t.left+"%":t.left,top:u,visibility:a.productState.isBoxPlanner?"hidden":"visible"},className:l()(i.classes.buttonGeneral,i.classes.posNr.posNr,n.isDockedAccessoire?i.classes.posNr.posNrAcc:void 0,"selected"==n.elemState?i.classes.posNr.posNrSelected:void 0,"selectable"==n.elemState?i.classes.posNr.posNrSelectable:void 0,"unselectable"==n.elemState?i.classes.posNr.posNrUnSelectable:void 0,n.posNr.toString().length>1?i.classes.posNr.moreThanOneNr:void 0,n.onHover&&"unselectable"!=n.elemState?i.classes.posNr.posNrOnHover:void 0),children:[n.posNr,(0,s.jsx)("div",{onClick:function onClick(){var e;null===(e=n.clickFunction)||void 0===e||e.call(n,n.setId,Number(n.elementId))},style:{left:"0px",top:"0px",visibility:a.productState.isBoxPlanner?"hidden":"visible"},className:l()("selectable"==n.elemState?i.classes.posNr.posNrSelectableArea:void 0)})]})}))},94723:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function RotationClockwise(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps;return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:n.left+"px",top:n.top+"px"},className:l()(i.classes.rotation.rotClock,i.classes.buttonGeneral),children:t.posNr})}))},72352:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function RotationCounterClockwise(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps;return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:n.left+"px",top:n.top+"px"},className:l()(i.classes.rotation.rotCounterClock,i.classes.buttonGeneral),children:t.posNr})}))},54516:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var o=n(65515),l=n.n(o),i=n(9420),r=(n(87363),n(47514));const s=(0,i.Pi)((function Trash(e){var t=e.item,n=e.rect,o=e.onElement,i=e.plannerUIProps,s=n.doUseCalc?n.leftCalc:"percentage"==t.position.interpretation?n.left+"%":n.left+"px",c=n.doUseCalc?n.topCalc:"percentage"==t.position.interpretation?"calc("+n.top+"% )":n.top+"px";return(0,r.jsx)("div",{ref:function ref(e){return o(e)},onClick:function onClick(){var e;null===(e=t.clickFunction)||void 0===e||e.call(t,t.setId,Number(t.elementId))},style:{left:s,top:c},className:l()(i.classes.trash.trashClass,i.classes.buttonGeneral,"BOX"==t.plannerMode?i.classes.trash.boxplanner:void 0),id:"testDel",children:t.posNr})}))},40053:(e,t,n)=>{n.d(t,{Z:()=>useDockingPointPositioning});var o=n(59230),l=n(25327);function useDockingPointPositioning(e){var t,n,i,r,s=e.dpElement,c=e.item,a=(0,l._w)(),u=null==s?void 0:s.getBoundingClientRect(),d=null!==(t=null==c?void 0:c.position.x)&&void 0!==t?t:0,p=null!==(n=null==c?void 0:c.position.y)&&void 0!==n?n:0;if(u&&c){var f=new o.FM(d,p),v=a.getViewConfig(),m=new o.FM(0,0);if("AVL"==(null==c?void 0:c.type)||"AVR"==(null==c?void 0:c.type)){if("2D"===c.plannerMode)switch(v.posDPIcon2D){case"CORNER":break;case"SIDE_TOP":"AVL"==(null==c?void 0:c.type)&&(m=new o.FM(-u.width,0),null!=c&&c.rotOfElement&&(m=o.FM.rotateOrigin(m,null==c?void 0:c.rotOfElement)),f=new o.FM(d+m.x,p+m.y,"pixel"))}}else"AccDP"==(null==c?void 0:c.type)&&"3D"==(null==c?void 0:c.plannerMode)?f.y=100-f.y:"BoxCopyLeft"==c.type||"BoxCopyRight"==(null==c?void 0:c.type)||null==c||c.type;d=f.x,p=f.y}return{width:null!==(i=null==u?void 0:u.width)&&void 0!==i?i:0,height:null!==(r=null==u?void 0:u.height)&&void 0!==r?r:0,top:p,left:d}}},85115:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(38946),l=n(87363),i=n(18938),r=n(40053),s=n(47514);const c=function ItemsDPAccContainer(e){var t=e.item,n=e.plannerUIProps,c=(0,l.useState)(null),a=(0,o.Z)(c,2),u=a[0],d=a[1],p=(0,r.Z)({item:t,dpElement:u});return(0,s.jsx)(s.Fragment,{children:t&&(0,s.jsx)(i.default,{item:t,rect:p,onElement:d,plannerUIProps:n},null==t?void 0:t.key)})}},15808:(e,t,n)=>{n.r(t),n.d(t,{default:()=>M});var o=n(38946),l=n(9420),i=n(87363),r=n(53090),s=n(59290),c=n(88445),a=n(94723),u=n(72352),d=n(54516),p=n(40053),f=n(59230),v=n(25327);var m=n(85115),h=n(24580),g=n(37801),y=n(88683),C=n(2221),x=(0,y.getLogger)("Planner","CopyElementPositioning");var P=n(67348),I=n(33525),w=n(47514);const M=(0,l.Pi)((function ItemsContainer(e){for(var t=e.items,n=e.plannerUIProps,l=(0,v.NP)(),y=(0,i.useState)(null),M=(0,o.Z)(y,2),E=M[0],k=M[1],N=(0,i.useState)(null),D=(0,o.Z)(N,2),O=D[0],R=D[1],b=(0,i.useState)(null),S=(0,o.Z)(b,2),F=S[0],U=S[1],T=(0,i.useState)(null),A=(0,o.Z)(T,2),B=A[0],j=(A[1],(0,i.useState)(null)),_=(0,o.Z)(j,2),G=_[0],Z=(_[1],(0,i.useState)(null)),L=(0,o.Z)(Z,2),V=L[0],X=(L[1],(0,i.useState)(null)),z=(0,o.Z)(X,2),K=z[0],Y=z[1],H=(0,i.useState)(null),q=(0,o.Z)(H,2),W=q[0],J=q[1],Q=(0,i.useState)(null),$=(0,o.Z)(Q,2),ee=$[0],te=$[1],ne=(0,i.useState)(null),oe=(0,o.Z)(ne,2),le=(oe[0],oe[1]),ie=t.find((function(e){return"PosNr"==e.type})),re=t.find((function(e){return"AVL"==e.type})),se=t.find((function(e){return"AVR"==e.type})),ce=[],ae=[],ue=0;ue<t.length;ue++)"AccDP"==t[ue].type?ce.push(t[ue]):"DistanceFromGround"==t[ue].type&&ae.push(t[ue]);var de=t.find((function(e){return"Outline"==e.type})),pe=t.find((function(e){return"TrashIcon"==e.type})),fe=t.find((function(e){return"CopyElement"==e.type})),ve=t.find((function(e){return"RotateC"==e.type})),me=t.find((function(e){return"RotateCC"==e.type})),he=t.find((function(e){return"BoxCopyLeft"==e.type})),ge=t.find((function(e){return"BoxCopyTop"==e.type})),ye=t.find((function(e){return"BoxCopyRight"==e.type})),Ce=function usePosNrPositioning(e){var t,n,o,l,i=e.posNrElement,r=e.item,s=(0,v._w)(),c=null==i?void 0:i.getBoundingClientRect(),a=null!==(t=null==r?void 0:r.position.x)&&void 0!==t?t:0,u=null!==(n=null==r?void 0:r.position.y)&&void 0!==n?n:0;if(c){var d=new f.FM(a,u),p=s.getViewConfig(),m=new f.FM(0,0);switch(null==r?void 0:r.plannerMode){case"2D":switch(p.iconPosition2DGrid){case"BORDER":m=new f.FM(c.width,.1*-c.height),null!=r&&r.rotOfElement&&(m=f.FM.rotateOrigin(m,null==r?void 0:r.rotOfElement)),d=new f.FM(a+m.x,u+m.y,"pixel");break;case"OUTSIDE":var h=null!=r&&r.iconZoom?r.iconZoom:1;m=new f.FM(c.width+h,-c.height/2-(c.height/2.5-h)),null!=r&&r.rotOfElement&&(m=f.FM.rotateOrigin(m,null==r?void 0:r.rotOfElement)),d=new f.FM(a+m.x,u+m.y,"pixel")}a=d.x,u=d.y;break;case"3D":(a+=3)<1&&(a=1),(u=100-u-1)<1&&(u=1)}}return{width:null!==(o=null==c?void 0:c.width)&&void 0!==o?o:0,height:null!==(l=null==c?void 0:c.height)&&void 0!==l?l:0,top:u,left:a}}({item:ie,posNrElement:E}),xe=(0,p.Z)({item:re,dpElement:O}),Pe=(0,p.Z)({item:se,dpElement:F}),Ie=(0,p.Z)({item:he,dpElement:B}),we=(0,p.Z)({item:ge,dpElement:G}),Me=(0,p.Z)({item:ye,dpElement:V}),Ee=function useTrashPositioning(e){var t,n,o,l,i=e.trashElement,r=e.posNrRect,s=e.boxPlannerCopyLeftRect,c=e.boxPlannerCopyTopRect,a=e.boxPlannerCopyRightRect,u=e.trashItem,d=(0,v._w)(),p=null==i?void 0:i.getBoundingClientRect(),m=d.getViewConfig(),h=null!==(t=null==u?void 0:u.position.x)&&void 0!==t?t:0,g=null!==(n=null==u?void 0:u.position.y)&&void 0!==n?n:0,y="",C="",x=!1;if(p&&r){var P=new f.FM(0,0);switch(m.posTrashRotIcon){case"POSNUM_TOP":"2D"==(null==u?void 0:u.plannerMode)?(P=new f.FM(0,-r.height-p.height/2),null!=u&&u.rotOfElement&&(P=f.FM.rotateOrigin(P,u.rotOfElement)),h=r.left+P.x,g=r.top+P.y):"3D"!=(null==u?void 0:u.plannerMode)&&"BOX"!=(null==u?void 0:u.plannerMode)||(m.enableElementCopy?(x=!0,y="calc("+r.left.toString()+"% - "+r.width/1.8+"px)",C=r.top<4?"calc("+r.top+"% + 30px - var(--globalSize) / 2":"calc("+r.top+"% - (var(--globalSize) + 5px) / 2"):(x=!0,y=r.left.toString()+"%",C=r.top<4?"calc("+r.top+"% + 30px - var(--globalSize) / 2":"calc("+r.top+"% - (var(--globalSize) + 5px) / 2"));break;case"TOP_RIGHT_BACK":if("2D"==(null==u?void 0:u.plannerMode)){var I=null!=u&&u.iconZoom?u.iconZoom:1;P=new f.FM(-p.width/2-(p.width/3+I),-p.height/2-(p.height/3.7-I)),null!=u&&u.rotOfElement&&(P=f.FM.rotateOrigin(P,u.rotOfElement)),h+=P.x,g+=P.y,Math.sqrt(Math.pow(r.left-h,2)+Math.pow(r.top-g,2))<=r.width&&(P=new f.FM(r.width,0),null!=u&&u.rotOfElement&&(P=f.FM.rotateOrigin(P,u.rotOfElement)),h+=P.x,g+=P.y)}else if("3D"==(null==u?void 0:u.plannerMode)||"BOX"==(null==u?void 0:u.plannerMode)){if(s||a||c){var w=!1;s&&(Math.sqrt(Math.pow(s.left-h,2)+Math.pow(s.top-g,2))<9&&(g+=5,w=!0),!w&&a&&Math.sqrt(Math.pow(a.left-h,2)+Math.pow(a.top-g,2))<9&&(g+=5,w=!0),!w&&c&&Math.sqrt(Math.pow(c.left-h,2)+Math.pow(c.top-g,2))<9&&(g+=5,w=!0))}(h-=1)>99&&(h=99),(g=100-g-2)<1&&(g=1)}}}return{width:null!==(o=null==p?void 0:p.width)&&void 0!==o?o:0,height:null!==(l=null==p?void 0:p.height)&&void 0!==l?l:0,top:g,left:h,doUseCalc:x,topCalc:x?C:void 0,leftCalc:x?y:void 0}}({trashItem:pe,posNrRect:Ce,boxPlannerCopyLeftRect:Ie,boxPlannerCopyTopRect:we,boxPlannerCopyRightRect:Me,trashElement:K}),ke=function useCopyElementPositioning(e){var t,n,o=e.copyElement,l=e.posNrRect,i=e.copyElementItem,r=(0,v._w)(),s=null==o?void 0:o.getBoundingClientRect(),c=r.getViewConfig(),a="",u="",d=!1;if(s&&l)switch(new f.FM(0,0),c.posTrashRotIcon){case"POSNUM_TOP":"3D"==(null==i?void 0:i.plannerMode)&&c.enableElementCopy&&(d=!0,a="calc("+l.left.toString()+"% + "+l.width/1.8+"px)",u="calc("+l.top+"% - "+(l.height+2)+"px)");break;case"TOP_RIGHT_BACK":x.error(new C.GE("Do implement copy Element for TOP_RIGHT_BACK Positioning",{code:"WC_0012"}))}return{width:null!==(t=null==s?void 0:s.width)&&void 0!==t?t:0,height:null!==(n=null==s?void 0:s.height)&&void 0!==n?n:0,top:0,left:0,doUseCalc:d,topCalc:d?u:void 0,leftCalc:d?a:void 0}}({copyElementItem:fe,posNrRect:Ce,copyElement:W}),Ne=function useRotClockwisePositioning(e){var t,n,o,l,i=e.rotElement,r=e.posNrRect,s=e.trashRect,c=e.rotItem,a=(0,v._w)(),u=null==i?void 0:i.getBoundingClientRect(),d=a.getViewConfig(),p=null!==(t=null==c?void 0:c.position.x)&&void 0!==t?t:0,m=null!==(n=null==c?void 0:c.position.y)&&void 0!==n?n:0;if(u&&r&&s){var h=new f.FM(0,0);switch(d.posTrashRotIcon){case"POSNUM_TOP":p=(r.left+s.left)/2,m=(r.top+s.top)/2,h=new f.FM(-u.width,0),null!=c&&c.rotOfElement&&(h=f.FM.rotateOrigin(h,c.rotOfElement)),p+=h.x,m+=h.y;break;case"TOP_RIGHT_BACK":if(Math.sqrt(Math.pow(r.left-s.left,2)+Math.pow(r.top-s.top,2))<=100){var g=new f.FM(0,-u.height-4);null!=c&&c.rotOfElement&&0!=c.rotOfElement&&(g=f.FM.rotateOrigin(g,c.rotOfElement)),p=(null==s?void 0:s.left)+g.x,m=(null==s?void 0:s.top)+g.y}else{var y=new f.FM(-u.width-4,0);null!=c&&c.rotOfElement&&0!=c.rotOfElement&&(y=f.FM.rotateOrigin(y,c.rotOfElement)),p=(null==s?void 0:s.left)+y.x,m=(null==s?void 0:s.top)+y.y}}}return{width:null!==(o=null==u?void 0:u.width)&&void 0!==o?o:0,height:null!==(l=null==u?void 0:u.height)&&void 0!==l?l:0,top:m,left:p}}({rotItem:ve,posNrRect:Ce,trashRect:Ee,rotElement:ee}),De=function useRotCounterClockwisePositioning(e){var t,n,o,l,i=e.rotElement,r=e.posNrRect,s=e.trashRect,c=e.rotClockRect,a=e.rotItem,u=(0,v._w)(),d=null==i?void 0:i.getBoundingClientRect(),p=u.getViewConfig(),m=null!==(t=null==a?void 0:a.position.x)&&void 0!==t?t:0,h=null!==(n=null==a?void 0:a.position.y)&&void 0!==n?n:0;if(d&&r&&s&&c){var g=new f.FM(0,0);switch(p.posTrashRotIcon){case"POSNUM_TOP":m=(r.left+s.left)/2,h=(r.top+s.top)/2,g=new f.FM(d.width,0),null!=a&&a.rotOfElement&&(g=f.FM.rotateOrigin(g,a.rotOfElement)),m+=g.x,h+=g.y;break;case"TOP_RIGHT_BACK":Math.sqrt(Math.pow(r.left-s.left,2)+Math.pow(r.top-s.top,2))<=100?(g=new f.FM(0,-d.height-3),null!=a&&a.rotOfElement&&(g=f.FM.rotateOrigin(g,a.rotOfElement)),m=(null==c?void 0:c.left)+g.x,h=(null==c?void 0:c.top)+g.y):(g=new f.FM(-d.width-3,-0),null!=a&&a.rotOfElement&&(g=f.FM.rotateOrigin(g,a.rotOfElement)),m=(null==c?void 0:c.left)+g.x,h=(null==c?void 0:c.top)+g.y)}}return{width:null!==(o=null==d?void 0:d.width)&&void 0!==o?o:0,height:null!==(l=null==d?void 0:d.height)&&void 0!==l?l:0,top:h,left:m}}({rotItem:ve,posNrRect:Ce,trashRect:Ee,rotClockRect:Ne,rotElement:ee});return(0,w.jsxs)(w.Fragment,{children:[ie&&(0,w.jsx)(h.default,{item:ie,rect:Ce,onElement:k,plannerUIProps:n,hasTrash:!!pe}),de&&(0,w.jsx)(c.default,{item:de,plannerUIProps:n},de.key),re&&(0,w.jsx)(r.default,{item:re,rect:xe,onElement:R,plannerUIProps:n},null==re?void 0:re.key),se&&(0,w.jsx)(s.default,{item:se,rect:Pe,onElement:U,plannerUIProps:n},null==se?void 0:se.key),he&&ye&&(0,w.jsx)(g.default,{item:he,rect:Ie,invertLeftRight:Me.left<Ie.left,plannerUIProps:n},he.key),ge&&(0,w.jsx)(g.default,{item:ge,rect:we,invertLeftRight:!1,plannerUIProps:n},ge.key),ye&&he&&(0,w.jsx)(g.default,{item:ye,rect:Me,invertLeftRight:Me.left<Ie.left,plannerUIProps:n},ye.key),pe&&(0,w.jsx)(d.default,{item:pe,rect:Ee,onElement:Y,plannerUIProps:n}),fe&&(0,w.jsx)(P.default,{item:fe,rect:ke,onElement:J,plannerUIProps:n}),ve&&(0,w.jsx)(a.default,{item:ve,rect:Ne,onElement:te,plannerUIProps:n}),me&&(0,w.jsx)(u.default,{item:me,rect:De,onElement:le,plannerUIProps:n}),ce.map((function(e,t){return(0,w.jsx)(m.default,{item:e,plannerUIProps:n},e.key)})),l.productState.getDoShow3DDimensionLines()&&ae.map((function(e,t){return(0,w.jsx)(I.default,{item:e,plannerUIProps:n},e.key)}))]})}))}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 641.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[641],{10641:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var a=n(13125),i=n(43860),o=n(80248),d=n(
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[641],{10641:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var a=n(13125),i=n(43860),o=n(80248),d=n(59230),r=function(){return(0,i.Z)((function Planner3DImageUI(e,t,n){(0,a.Z)(this,Planner3DImageUI),this.settingsState=n,(0,o.Z)(this,"uiHTMLContainer",void 0),(0,o.Z)(this,"classUI","wc3DImageUI"),(0,o.Z)(this,"getConfiguratorState",void 0),(0,o.Z)(this,"plannerPaletteViewInfo",void 0),this.getConfiguratorState=e,this.plannerPaletteViewInfo=t}),[{key:"addDelIcon",value:function addDelIcon(e,t,n,a){n>100||n<0||a>100||a<0||e.addTrashIconUI(t.getSetId(),t.getElementId(),t.getRotDeg(),new d.FM(n,a,"percentage"),"BOX"==t.getPlannerType()?"BOX":"3D")}},{key:"addDimensionInfo",value:function addDimensionInfo(e,t,n,a){var i=a.getAlternateRenderInfo();if(!a.getAlternateRenderingsExist()||null!=i){var o=n.parentElementId+"."+n.shelfGridId+"."+n.shelfRasterHeight,d=a.getLeftBottomFrontUIPos(t,o);if(d&&!(d.x<0||d.x>100||d.y<0||d.y>100)){var r=Math.round(a.getDistanceToGround(t,o));-1!=r&&e.addDistanceFromGround(t,n.parentElementId,r,d)}}}},{key:"addPosNrUI",value:function addPosNrUI(e,t,n,a,i,o){var r;n<0&&(n=0),n>100&&(n=100),a<0&&(a=0),a>100&&(a=100),e.addPosNrUI(t.getSetId(),t.getElementId(),t.getIsDockedAccessoire(),new d.FM(n,a,"percentage"),t.getRotDeg(),1,null===(r=e.getPosNrByBasketId(t.getBasketId()))||void 0===r?void 0:r.toString(),i?"selected":o?"selectable":"unselectable","3D")}},{key:"addBoxPlannerDockingPoints",value:function addBoxPlannerDockingPoints(e,t,n){var a=!1,i=t.getFreeDockingPointByTypeAndNumber("AVO",1);null==i||i.IsDisabled||(a=!0);var o=n.getBoxPlannerCornerUIPos(t.getSetId(),t.getElementId(),"LEFTCENTER");o&&e.addCopy(t.getSetId(),t.getElementId(),"BoxCopyLeft",o,"3D");var d=n.getBoxPlannerCornerUIPos(t.getSetId(),t.getElementId(),"RIGHTCENTER");if(d&&e.addCopy(t.getSetId(),t.getElementId(),"BoxCopyRight",d,"3D"),a){var r=n.getBoxPlannerCornerUIPos(t.getSetId(),t.getElementId(),"TOPCENTER");r&&e.addCopy(t.getSetId(),t.getElementId(),"BoxCopyTop",r,"3D")}}},{key:"addCopyIcon",value:function addCopyIcon(e,t){e.addCopy(t.getSetId(),t.getElementId(),"CopyElement",new d.FM(0,0),"3D")}},{key:"addAccDockingPoints",value:function addAccDockingPoints(e,t,n,a){for(var i=t.getAllDockingPoints(),o=0;o<i.length;o++){var r,l=i[o];if((null===(r=this.plannerPaletteViewInfo)||void 0===r||null===(r=r.plannerConfiguration.hideAVButtons)||void 0===r||!r.includes(l.Type))&&(("AVO"==l.Type||"AVC"==l.Type||"AVU"==l.Type||"AVS"==l.Type||"AVN"==l.Type)&&null==a||a===l.Type))for(var g=0;g<n.length;g++)l.Name==n[g].N&&e.addDP(t.getSetId(),t.getElementId(),l.DpId,"ACC",l.IsDocking?"DOCKING":"NOT_DOCKING",l.OnElementId,t.getRotDeg(),0,new d.FM(n[g].x,n[g].y,"percentage"),"3D")}}},{key:"addOutlinePolygon",value:function addOutlinePolygon(e,t,n,a,i){var o=t.getOutlinePolygonForSVG(n.getSetId(),n.getElementId(),i);o&&e.addOutline3D(n.getSetId(),n.getElementId(),o.points,o.avgCamDist,a,"BOX"==n.getPlannerType())}},{key:"initialize",value:function initialize(e){this.uiHTMLContainer||(this.uiHTMLContainer=document.createElement("div"),this.uiHTMLContainer.classList.add(this.classUI),e.appendChild(this.uiHTMLContainer))}},{key:"updateUI",value:function updateUI(e,t,n,a,i,o,d,r,l){var g=this;e.clear2D3DViewerUI(),t.forEach((function(t,n){for(var r=0;r<t.length;r++){var s=t[r];if(a.hasUIInfosOfElement(s.getSetId(),s.getElementId())){var c=!1,I=d;if(i.has(n))c=i.get(n).map((function(e){return e.getElementId()})).includes(s.getElementId());if(!c&&!d&&o.has(n))for(var u=o.get(n),h=0;h<u.length;h++)if(s.getElementId()==u[h].getElementId()){I=!0;break}switch(g.addOutlinePolygon(e,a,s,c?"selected":I?"selectable":"unselectable",l),s.getPlannerType()){case"STD":var P=["PLANNER","PRODUCTS","PROMOTED","PLANNER_2.0"].includes(g.getConfiguratorState()),D=a.getLeftTopBackUIPos(s.getSetId(),s.getElementId());if(!D||g.settingsState.posNrAreHidden&&!P||g.addPosNrUI(e,s,D.x,D.y,c,I),c&&P){s.getIsDockedAccessoire()?g.addAccDockingPoints(e,s,a.getAllDockingPoints(s.getSetId(),s.getElementId()),"AVO"):g.addAccDockingPoints(e,s,a.getAllDockingPoints(s.getSetId(),s.getElementId()));var f=a.getRightTopBackUIPos(s.getSetId(),s.getElementId());g.addDelIcon(e,s,f.x,f.y),g.addCopyIcon(e,s)}if("ACC_PLANNER"==g.getConfiguratorState()&&s.getIsDockedAccessoire()){var m=a.getRightTopBackUIPos(s.getSetId(),s.getElementId());g.addDelIcon(e,s,m.x,m.y)}break;case"BOX":var v=a.getBoxPlannerCornerUIPos(s.getSetId(),s.getElementId(),"RIGHTTOPFRONT");if(v&&g.addPosNrUI(e,s,v.x,v.y,c,I),c&&(g.addBoxPlannerDockingPoints(e,s,a),!g.checkBoxPlannerSingleElement(t)&&null!=s.getFreeDockingPointByTypeAndNumber("AVO",1))){var y=a.getBoxPlannerCornerUIPos(s.getSetId(),s.getElementId(),"RIGHTTOPFRONT");y&&g.addDelIcon(e,s,y.x,y.y)}}}}})),n.forEach((function(t,n){for(var i=0;i<t.length;i++){var o=t[i];o.isShelfAcc&&g.addDimensionInfo(e,n,o,a)}}))}},{key:"checkBoxPlannerSingleElement",value:function checkBoxPlannerSingleElement(e){if(1==e.length)return!0;if(2==e.length)for(var t=e[0].getAllDockingPoints(),n=e[0].getAllDockingPoints(),a=0;a<t.length;a++)for(var i=t[a],o=0;o<n.length;o++){var d=n[o];if(i.IsDocking&&d.IsDocking&&2==i.Number&&2==d.Number&&("AVO"==i.Type||"AVU"==i.Type))return!0}return!1}},{key:"Class3DUI",get:function get(){return this.classUI}}])}(),l=function(){return(0,i.Z)((function Planner3DImage(e,t,n,i,l){(0,a.Z)(this,Planner3DImage),(0,o.Z)(this,"imageContainer",void 0),(0,o.Z)(this,"UIHandler",void 0),(0,o.Z)(this,"curRendering",void 0),(0,o.Z)(this,"update3DImgSrcInView",void 0),(0,o.Z)(this,"onDoShowNav3DChanged",void 0),this.UIHandler=new r(e,i,l),this.curRendering=new d.Oy("Placeholder","Placeholder","",-1,-1,!1,!1,0,!1,"STREAM"),this.onDoShowNav3DChanged=n,this.update3DImgSrcInView=t}),[{key:"initialize",value:function initialize(e){this.imageContainer=document.getElementById(e),this.imageContainer&&this.UIHandler.initialize(this.imageContainer)}},{key:"clearView",value:function clearView(){this.curRendering=new d.Oy("Placeholder","Placeholder","",-1,-1,!1,!1,0,!1,"STREAM"),this.update3DImgSrcInView("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==")}},{key:"updateUI",value:function updateUI(e,t,n,a,i,o,d,r){this.UIHandler.updateUI(e,t,n,this.curRendering,a,i,o,d,r)}},{key:"updatePlannerView",value:function updatePlannerView(e){var t=this.curRendering.getHasStaticBackground(),n=e.getHasStaticBackground();t!=n&&this.onDoShowNav3DChanged(!n),this.curRendering=e,this.update3DImgSrcInView(e.getImageForSrc())}},{key:"resetSelectedElementsOnEnterPlannerMode",value:function resetSelectedElementsOnEnterPlannerMode(){return!1}}])}()}}]);
|