@crystaldesign/diva-web-planner-react 26.12.0-beta.34 → 26.12.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/{Planner2DGrid-f957a693.js → Planner2DGrid-73d9be59.js} +1 -1
- package/build/esm/{Planner3DImage-16ede3fe.js → Planner3DImage-b3e47ecc.js} +1 -1
- package/build/esm/{UnlockCard-d1293b73.js → UnlockCard-4b96c9fc.js} +1 -1
- package/build/esm/{accessoryPlacementMode-324690be.js → accessoryPlacementMode-bba5d347.js} +1 -1
- package/build/esm/{index-65418866.js → index-01c433b8.js} +1 -1
- package/build/esm/{index-f629a19b.js → index-025c6d65.js} +3 -3
- package/build/esm/{index-a4b64e2d.js → index-026d0414.js} +2 -2
- package/build/esm/{index-228c4fb5.js → index-040d4360.js} +3 -3
- package/build/esm/{index-94fd0ae2.js → index-048f95ce.js} +3 -3
- package/build/esm/{index-6214f7a1.js → index-07c739ff.js} +1 -1
- package/build/esm/{index-efb18a19.js → index-0a240eda.js} +18 -18
- package/build/esm/{index-1eba14e2.js → index-0a7ce1eb.js} +3 -3
- package/build/esm/{index-2c6b914f.js → index-0add5e8b.js} +1 -1
- package/build/esm/{index-829b6e14.js → index-0b0dd0fc.js} +3 -3
- package/build/esm/{index-618531d5.js → index-0bb11c22.js} +100 -100
- package/build/esm/{index-7ca231d8.js → index-0bb3520e.js} +89 -89
- package/build/esm/{index-0a55639e.js → index-0c97a17b.js} +74 -74
- package/build/esm/{index-a07f9c21.js → index-0f1819bc.js} +1 -1
- package/build/esm/{index-d1812fd1.js → index-101cad52.js} +1 -1
- package/build/esm/{index-d40848b7.js → index-1083a9dc.js} +1 -1
- package/build/esm/{index-6d7939ce.js → index-13a08001.js} +1 -1
- package/build/esm/{index-2cd29646.js → index-16a26eb6.js} +2 -2
- package/build/esm/{index-96c8e790.js → index-16ce62b2.js} +1 -1
- package/build/esm/{index-6f288661.js → index-1725c851.js} +1 -1
- package/build/esm/{index-19307cda.js → index-186e4ca5.js} +76 -76
- package/build/esm/{index-5cae59ac.js → index-1a437cae.js} +1 -1
- package/build/esm/{index-f0d46db9.js → index-1a99a224.js} +8 -8
- package/build/esm/{index-c4afc917.js → index-1aa8bd30.js} +1 -1
- package/build/esm/{index-0bd6d38e.js → index-1c544d2d.js} +1 -1
- package/build/esm/{index-13c5440b.js → index-1c87f691.js} +1 -1
- package/build/esm/{index-96eb6033.js → index-1cea06e5.js} +1 -1
- package/build/esm/{index-bad9bc74.js → index-1d14537c.js} +1 -1
- package/build/esm/{index-c3109b7d.js → index-1f4f06c7.js} +1 -1
- package/build/esm/{index-7690bb44.js → index-1f615690.js} +1 -1
- package/build/esm/{index-bc712771.js → index-2080f1fe.js} +2 -2
- package/build/esm/{index-4b1df9d5.js → index-20f9fa23.js} +1 -1
- package/build/esm/{index-24ea39d1.js → index-214c2801.js} +2 -2
- package/build/esm/{index-ef3acafd.js → index-242b4bc8.js} +2 -2
- package/build/esm/{index-e9a430da.js → index-28c6869a.js} +5 -5
- package/build/esm/{index-f9993a8f.js → index-29ce8249.js} +2 -2
- package/build/esm/{index-e95d0d14.js → index-2be17601.js} +68 -68
- package/build/esm/{index-6705bacf.js → index-2d2612fd.js} +2 -2
- package/build/esm/{index-5183ca9f.js → index-2ebc7232.js} +3 -3
- package/build/esm/{index-29c1999a.js → index-2edb6c03.js} +90 -90
- package/build/esm/{index-d92cc306.js → index-3006dec8.js} +2 -2
- package/build/esm/{index-9f4f5bc8.js → index-301da779.js} +1 -1
- package/build/esm/{index-93ab0df8.js → index-3033f00a.js} +5 -5
- package/build/esm/{index-1336df6a.js → index-3047c0bc.js} +5 -5
- package/build/esm/{index-5ec8e1cc.js → index-30887d64.js} +4 -4
- package/build/esm/{index-c596267f.js → index-312ded94.js} +1 -1
- package/build/esm/{index-1772d978.js → index-3185af90.js} +3 -3
- package/build/esm/{index-637b00dd.js → index-349180e2.js} +3 -3
- package/build/esm/{index-ed716e7b.js → index-35f90684.js} +68 -68
- package/build/esm/{index-d14a18fd.js → index-36e03b96.js} +1 -1
- package/build/esm/{index-c0a37b01.js → index-37e85771.js} +1 -1
- package/build/esm/{index-478dbc88.js → index-397c20e9.js} +2 -2
- package/build/esm/{index-ed58c3a1.js → index-39d67511.js} +5 -5
- package/build/esm/{index-bae5a0cf.js → index-3b80df3c.js} +22 -22
- package/build/esm/{index-0c893140.js → index-3d7b26b5.js} +1 -1
- package/build/esm/{index-c448f954.js → index-3de15012.js} +1 -1
- package/build/esm/{index-54003b35.js → index-432f0c64.js} +2 -2
- package/build/esm/{index-9429b74c.js → index-44a64763.js} +90 -90
- package/build/esm/{index-5f1b0a9a.js → index-45f2b220.js} +1 -1
- package/build/esm/{index-9a401e49.js → index-47c19c84.js} +1 -1
- package/build/esm/{index-53d475ea.js → index-498a92a0.js} +1 -1
- package/build/esm/{index-0127a6a0.js → index-49fc5d6f.js} +2 -2
- package/build/esm/{index-9a88d5cd.js → index-4a6badb5.js} +65 -65
- package/build/esm/{index-a7583ff2.js → index-4b6cfd9f.js} +5 -5
- package/build/esm/{index-f49813d1.js → index-4bda7ac7.js} +1 -1
- package/build/esm/{index-4efe4179.js → index-4ed7fd1f.js} +2 -2
- package/build/esm/{index-a8055cf9.js → index-4f1563bf.js} +1 -1
- package/build/esm/{index-d52187fe.js → index-4f40f201.js} +65 -65
- package/build/esm/{index-612e099a.js → index-52262e35.js} +85 -85
- package/build/esm/{index-b7c32862.js → index-52828fee.js} +1 -1
- package/build/esm/{index-c588e3a3.js → index-52a398da.js} +17 -17
- package/build/esm/{index-d1539c7a.js → index-52d40051.js} +1 -1
- package/build/esm/{index-f114b25a.js → index-5387f918.js} +1 -1
- package/build/esm/{index-9593182d.js → index-53cd2a4c.js} +1 -1
- package/build/esm/{index-6386d536.js → index-53fb3825.js} +1 -1
- package/build/esm/{index-10273eae.js → index-54c3ee55.js} +1 -1
- package/build/esm/{index-77433593.js → index-55456999.js} +69 -69
- package/build/esm/{index-34a4f059.js → index-558f150e.js} +8 -8
- package/build/esm/{index-13fb1854.js → index-562d9af5.js} +1 -1
- package/build/esm/{index-97a96c32.js → index-572292a2.js} +1 -1
- package/build/esm/{index-0e96830a.js → index-572ed867.js} +15 -15
- package/build/esm/{index-9d678410.js → index-57c5bdb2.js} +1 -1
- package/build/esm/{index-8923f221.js → index-5859109c.js} +3 -3
- package/build/esm/{index-a6279934.js → index-589031e2.js} +1 -1
- package/build/esm/{index-5906d389.js → index-59406902.js} +2 -2
- package/build/esm/{index-8eec2d71.js → index-5b6c5cd2.js} +70 -70
- package/build/esm/{index-a07d48f4.js → index-5bc930a6.js} +5 -5
- package/build/esm/{index-1913b66e.js → index-5be8257e.js} +1 -1
- package/build/esm/{index-e66e8797.js → index-5c1606fb.js} +66 -66
- package/build/esm/{index-e5293a2b.js → index-613640c6.js} +101 -101
- package/build/esm/{index-49c31e05.js → index-642b80b2.js} +1 -1
- package/build/esm/{index-1066cffb.js → index-64795d77.js} +1 -1
- package/build/esm/{index-b051f6c7.js → index-64ac7227.js} +1 -1
- package/build/esm/{index-e111b51c.js → index-65080535.js} +67 -67
- package/build/esm/{index-c7229698.js → index-65edc450.js} +20 -20
- package/build/esm/{index-fd88c8a3.js → index-6858ac1f.js} +71 -71
- package/build/esm/{index-eccf148d.js → index-69ecf854.js} +2 -2
- package/build/esm/{index-d3e6ee78.js → index-6b510986.js} +5 -5
- package/build/esm/{index-3b0ee690.js → index-6c36b5bf.js} +5 -5
- package/build/esm/{index-aab3578e.js → index-6d296abb.js} +1 -1
- package/build/esm/{index-b711f191.js → index-6de87b48.js} +1 -1
- package/build/esm/{index-439b3d5f.js → index-6dfe1491.js} +1 -1
- package/build/esm/{index-c5dc9aca.js → index-6e59fa90.js} +1 -1
- package/build/esm/{index-99ee9868.js → index-7012af88.js} +1 -1
- package/build/esm/{index-e5867324.js → index-7187030d.js} +228 -227
- package/build/esm/{index-3ae7dafc.js → index-72d13f19.js} +70 -70
- package/build/esm/{index-4f4c997e.js → index-730236b2.js} +66 -66
- package/build/esm/{index-e4e83cd1.js → index-73429a1d.js} +3 -3
- package/build/esm/{index-d5bcd85f.js → index-76d5c8b2.js} +1 -1
- package/build/esm/{index-3244fe92.js → index-77c93899.js} +1 -1
- package/build/esm/{index-ca8296d3.js → index-79d1564d.js} +1 -1
- package/build/esm/{index-833d111b.js → index-7a96b5bb.js} +1 -1
- package/build/esm/{index-043d6722.js → index-7c9ee10c.js} +1 -1
- package/build/esm/{index-78289fc8.js → index-7d596f59.js} +5 -5
- package/build/esm/{index-369257c9.js → index-7e8db81c.js} +2 -2
- package/build/esm/{index-22894dd6.js → index-7f42d38a.js} +1 -1
- package/build/esm/{index-69cff04f.js → index-7feb8c66.js} +3 -3
- package/build/esm/{index-bca9ac19.js → index-80c63bac.js} +5 -5
- package/build/esm/{index-ee56e1e1.js → index-83d1df5d.js} +2 -2
- package/build/esm/{index-f01c6dcc.js → index-84d41df0.js} +4 -4
- package/build/esm/{index-29c62307.js → index-86030ac6.js} +1 -1
- package/build/esm/{index-26650e63.js → index-87ad6b74.js} +6 -6
- package/build/esm/{index-1ae041db.js → index-893427c6.js} +2 -2
- package/build/esm/{index-1ea78ab0.js → index-8af41f89.js} +84 -84
- package/build/esm/{index-d2dc806a.js → index-8b4c547a.js} +1 -1
- package/build/esm/{index-0d37817c.js → index-8c4cf73a.js} +1 -1
- package/build/esm/{index-223c521f.js → index-8ce5460e.js} +18 -18
- package/build/esm/{index-cdbe1465.js → index-8e572985.js} +2 -2
- package/build/esm/{index-fa5aa4a7.js → index-8f521eec.js} +1 -1
- package/build/esm/{index-1269994d.js → index-9737f2b6.js} +1 -1
- package/build/esm/{index-b92e6a3c.js → index-97fbc5f4.js} +5 -5
- package/build/esm/{index-427c3d38.js → index-9a45f467.js} +1 -1
- package/build/esm/{index-8f155f85.js → index-9ada730b.js} +1 -1
- package/build/esm/{index-e0bf3043.js → index-9b345b25.js} +87 -87
- package/build/esm/{index-73cd88be.js → index-9bab67e0.js} +1 -1
- package/build/esm/{index-26a66eae.js → index-9feeebe8.js} +18 -18
- package/build/esm/{index-82070cd1.js → index-a026b82f.js} +1 -1
- package/build/esm/{index-680f3d56.js → index-a03249d1.js} +1 -1
- package/build/esm/{index-82492184.js → index-a5d493be.js} +1 -1
- package/build/esm/{index-9b349f45.js → index-a5d77749.js} +1 -1
- package/build/esm/{index-68605129.js → index-a5f7c6fa.js} +7 -7
- package/build/esm/{index-13531035.js → index-a61a69e6.js} +2 -2
- package/build/esm/{index-71973ef1.js → index-a6f5f745.js} +1 -1
- package/build/esm/{index-92b7cc6c.js → index-a75d6691.js} +3 -3
- package/build/esm/{index-7d9ea017.js → index-a7cbab60.js} +91 -91
- package/build/esm/{index-7eae56ae.js → index-aa33f83c.js} +25 -25
- package/build/esm/{index-f51a0c79.js → index-acf923a9.js} +1 -1
- package/build/esm/{index-287e50e5.js → index-adcafe30.js} +6 -6
- package/build/esm/{index-9094739c.js → index-aecda699.js} +1 -1
- package/build/esm/{index-e0fcd8dd.js → index-af7b4096.js} +2 -2
- package/build/esm/{index-08c6e9ca.js → index-b08722ad.js} +73 -73
- package/build/esm/{index-e6cf4143.js → index-b219981e.js} +21 -21
- package/build/esm/{index-a5319487.js → index-b2aca44e.js} +1 -1
- package/build/esm/{index-73edda38.js → index-b3396787.js} +1 -1
- package/build/esm/{index-6f4abb16.js → index-b3dfe527.js} +2 -2
- package/build/esm/{index-64707441.js → index-b491963b.js} +1 -1
- package/build/esm/{index-651347a4.js → index-b4c14770.js} +1 -1
- package/build/esm/{index-f95d8dab.js → index-b533530b.js} +4 -4
- package/build/esm/{index-c4e34d8e.js → index-b589d3de.js} +13 -13
- package/build/esm/{index-0fa3ad03.js → index-b5ec5ff4.js} +1 -1
- package/build/esm/{index-2863d099.js → index-b5f6b4ba.js} +1 -1
- package/build/esm/{index-4892251c.js → index-b8b4eb9a.js} +1 -1
- package/build/esm/{index-bba5efeb.js → index-bb1beaa5.js} +1 -1
- package/build/esm/{index-d03e7da0.js → index-bd0ddf1b.js} +1 -1
- package/build/esm/{index-cf1b6364.js → index-bea2dfdc.js} +1 -1
- package/build/esm/{index-d2e1abb7.js → index-c110e53d.js} +1 -1
- package/build/esm/{index-06526969.js → index-c200a06f.js} +2 -2
- package/build/esm/{index-2fcd9879.js → index-c269bbf2.js} +1 -1
- package/build/esm/{index-51176243.js → index-c32a29f9.js} +3 -3
- package/build/esm/{index-47d8af32.js → index-c3b43e0c.js} +2 -2
- package/build/esm/{index-8868a929.js → index-c488c895.js} +3 -3
- package/build/esm/{index-c8fe589a.js → index-c7b15544.js} +18 -18
- package/build/esm/{index-7437793e.js → index-c8571acc.js} +2 -2
- package/build/esm/{index-9841d840.js → index-c9ddb9fc.js} +2 -2
- package/build/esm/{index-64be1572.js → index-ca2b0f37.js} +7 -7
- package/build/esm/{index-951c82d8.js → index-cb96179e.js} +1 -1
- package/build/esm/{index-abd69958.js → index-cbe645d6.js} +1 -1
- package/build/esm/{index-474b9a8e.js → index-cce67907.js} +3 -3
- package/build/esm/{index-7e322ecb.js → index-cde68b7c.js} +1 -1
- package/build/esm/{index-e690a838.js → index-ce4d7fad.js} +3 -3
- package/build/esm/{index-4aa86695.js → index-ceb6e478.js} +1 -1
- package/build/esm/{index-0ba1e921.js → index-cef5a3bf.js} +4 -4
- package/build/esm/{index-9c3a03c9.js → index-cf9a348c.js} +2 -2
- package/build/esm/{index-d2972d31.js → index-d28c624b.js} +1 -1
- package/build/esm/{index-79ef88c7.js → index-d364c1db.js} +1 -1
- package/build/esm/{index-31dd8695.js → index-d74779b5.js} +1 -1
- package/build/esm/{index-928866df.js → index-d9129981.js} +1 -1
- package/build/esm/{index-d5ea138b.js → index-d92fc58c.js} +4 -4
- package/build/esm/{index-8042f986.js → index-d9776a79.js} +8 -8
- package/build/esm/{index-7cf8835b.js → index-d9c58a98.js} +3 -3
- package/build/esm/{index-43bf2dd7.js → index-d9e6547f.js} +1 -1
- package/build/esm/{index-cd3336c2.js → index-dbdc4340.js} +1 -1
- package/build/esm/{index-735e4535.js → index-dcd6e05b.js} +1 -1
- package/build/esm/{index-3445fec7.js → index-dcdce8f4.js} +5 -5
- package/build/esm/{index-ab595497.js → index-dcf4003b.js} +1 -1
- package/build/esm/{index-3683382a.js → index-de434a4d.js} +1 -1
- package/build/esm/{index-aefa28fb.js → index-de84674f.js} +1 -1
- package/build/esm/{index-65aea4f6.js → index-dee52133.js} +1 -1
- package/build/esm/{index-497717bb.js → index-df28b72b.js} +1 -1
- package/build/esm/{index-451a28d9.js → index-dfa87e13.js} +3 -3
- package/build/esm/{index-0985d782.js → index-e1113d85.js} +1 -1
- package/build/esm/{index-3a270de5.js → index-e6f748e8.js} +19 -19
- package/build/esm/{index-0bb89b35.js → index-e7d72686.js} +2 -2
- package/build/esm/{index-e15979e3.js → index-e8347e9a.js} +5 -5
- package/build/esm/{index-8d4f0381.js → index-e84eeeba.js} +2 -2
- package/build/esm/{index-4967fdb4.js → index-e9945763.js} +1 -1
- package/build/esm/{index-38962ffe.js → index-eb10e9dd.js} +1 -1
- package/build/esm/{index-c8faaae0.js → index-ebfbc064.js} +1 -1
- package/build/esm/{index-b8d51c56.js → index-ec4d2eb3.js} +2 -2
- package/build/esm/{index-dea5189d.js → index-ee5ed0f4.js} +2 -2
- package/build/esm/{index-9b71c562.js → index-f111c110.js} +1 -1
- package/build/esm/{index-69128748.js → index-f5616974.js} +1 -1
- package/build/esm/{index-d62533d9.js → index-f601f450.js} +1 -1
- package/build/esm/{index-677fb34a.js → index-faacc88f.js} +2 -2
- package/build/esm/{index-f1af31bd.js → index-fb58d56a.js} +2 -2
- package/build/esm/{index-e928d5d7.js → index-fbdd5ef6.js} +1 -1
- package/build/esm/{index-747774e9.js → index-fc625e9c.js} +1 -1
- package/build/esm/{index-33bc16ca.js → index-fd91b7a3.js} +2 -2
- package/build/esm/{index-05c198a9.js → index-fe96e351.js} +3 -3
- package/build/esm/{index-35de0604.js → index-ff86a76c.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.module-50115982.js → index.module-64b5db41.js} +1 -1
- package/build/esm/{index.module-3f8fa07a.js → index.module-88f34fff.js} +1 -1
- package/build/esm/{index.module-f78428e2.js → index.module-aac88eed.js} +1 -1
- package/build/esm/{index.module-3ea14d99.js → index.module-b2b3fb75.js} +1 -1
- package/build/esm/{index.module-36f071f6.js → index.module-b6ef1289.js} +1 -1
- package/build/esm/{index.module-835e5744.js → index.module-c6b27281.js} +1 -1
- package/build/esm/{index.module-ff452c6f.js → index.module-c7f262ff.js} +1 -1
- package/build/esm/{index.module-100f6bf1.js → index.module-cb179673.js} +1 -1
- package/build/esm/{useCustomDimensions-69a46a5e.js → useCustomDimensions-7d974097.js} +1 -1
- package/build/esm/{ussIsSticky-372746a0.js → ussIsSticky-7264d8e3.js} +1 -1
- package/build/types/web-planner-react/src/model/Palette/PaletteViewHandler.d.ts.map +1 -1
- package/build/umd/1868.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/1932.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2478.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2636.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/2994.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3377.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/3596.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4129.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4585.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4876.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4903.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/4967.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/5996.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6253.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6650.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6770.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/6939.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7020.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7442.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7654.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/7909.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8850.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9102.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9997.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
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 7442.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7442,1930,8742,67,7444,1099,6937],{79837:(t,i,r)=>{r.d(i,{d:()=>o});var o="autoPlaceDrag"},21930:(t,i,r)=>{r.r(i),r.d(i,{default:()=>w});r(87363);var o=r(93379),d=r.n(o),l=r(7795),a=r.n(l),c=r(90569),u=r.n(c),x=r(3565),p=r.n(x),m=r(19216),g=r.n(m),h=r(44589),v=r.n(h),b=r(22693),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=u().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=g();d()(b.Z,y);b.Z&&b.Z.locals&&b.Z.locals;var j=r(75327),P=r(47514);const w=function ShelfDeleteButton(t){var i=t.index,r=t.grid,o=(0,j.NP)();return(0,P.jsx)("div",{onClick:function onClick(t){o.paletteViewHandler.clickDeleteAccessorieOnShelfPlanner(r,i),t.stopPropagation()},className:b.U,children:"-"})}},38742:(t,i,r)=>{r.r(i),r.d(i,{default:()=>x});var o=r(80248),d=(r(87363),r(49944)),l=r(75327),a=r(21930),c=r(9420),u=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}const x=(0,c.Pi)((function GridList(t){var i,r=t.item,o=t.height,c=(t.width,t.direction),x=null===(i=r.shelfPlannerGrids)||void 0===i?void 0:i[0],p=(0,l.NP)();if(!x)return(0,u.jsx)(u.Fragment,{});for(var m=o/x.Cells.length,g=[],h=-1,v=!1,b=!1,y=0;y<x.Cells.length;y++){var j=x.Cells[y];if(j.IsDisabled)b?g[0].heightCount++:g.splice(0,0,{heightCount:1,inUse:j.InUse,index:j.Index,type:void 0,isDisabled:!0,isRequired:j.IsRequired,onlyPlaceHolder:j.OnlyPlaceHolder,noMove:j.NoMove,noDelete:j.NoDelete}),b=!0,h=-1;else if(b=!1,-1==j.InUse)g.splice(0,0,{heightCount:1,inUse:j.InUse,index:j.Index,type:void 0,isDisabled:j.IsDisabled,isRequired:j.IsRequired,onlyPlaceHolder:j.OnlyPlaceHolder,noMove:j.NoMove,noDelete:j.NoDelete});else if(h!=j.InUse&&h!=j.OnBoard){var P,w;h=j.InUse,v=!1,g.splice(0,0,{heightCount:1,inUse:j.InUse,index:j.Index,type:j.Type,isDisabled:j.IsDisabled,isRequired:j.IsRequired,articleText:null===(P=j.Article)||void 0===P?void 0:P.name,onlyPlaceHolder:j.OnlyPlaceHolder,noMove:j.NoMove,noDelete:j.NoDelete,basketId:null===(w=j.Article)||void 0===w?void 0:w.basketId})}else{var A=g.find((function(t){return t.inUse==h}));if(A){var S;if(h===j.OnBoard&&!v)v=!0,A.articleText=(null===(S=j.Article)||void 0===S?void 0:S.name)+"<br/>&<br/>"+A.articleText,A.onBoard=!0;A.heightCount++}}}var I=function getItemStyle(t,i,r,o){return"horizontal"==c?k(t,i,r,o):O(t,i,r)},O=function getItemStyleVertical(t,i,r){return _objectSpread({userSelect:"none",width:"calc("+r.heightCount/x.Cells.length*100+"% - 1px)",wordBreak:"break-word",height:"100%",marginRight:"1px",background:r.isRequired?"#FFEBEB":-1==r.inUse?"none":t?"grey":"lightgrey",backgroundImage:r.isDisabled&&"linear-gradient(45deg, #ffffff 25%, #c7c7c7 25%, #c7c7c7 50%, #ffffff 50%, #ffffff 75%, #c7c7c7 75%, #c7c7c7 100%)",backgroundSize:r.isDisabled&&"28.28px 28.28px",float:"left",borderRight:-1==r.inUse?"1px solid lightgrey":"none",boxSizing:"border-box"},i)},k=function getItemStyleHorizontal(t,i,r,o){return _objectSpread({userSelect:"none",height:m*r.heightCount-1,marginBottom:"1px",fontSize:-1===r.inUse?"12px":void 0,lineHeight:-1===r.inUse?"2px":void 0,background:r.isRequired?"#FFEBEB":-1===r.inUse?"none":t?"grey":"lightgrey",backgroundImage:r.isDisabled&&"linear-gradient(45deg, #ffffff 25%, #c7c7c7 25%, #c7c7c7 50%, #ffffff 50%, #ffffff 75%, #c7c7c7 75%, #c7c7c7 100%)",backgroundSize:r.isDisabled&&"28.28px 28.28px",borderBottom:-1==r.inUse?o?"1px solid #B5B5B5":"1px solid lightgrey":"none",boxSizing:"border-box"},i)},N=function getTextStyle(){return"vertikal"==c?{maxHeight:"calc(100% - 22px)",overflow:"auto"}:{}};return(0,u.jsx)(d.Z5,{onDragEnd:function onDragEnd(t){if(t.destination){var i=g[t.source.index].index,r=g[t.destination.index].index;i!=r&&p.paletteViewHandler.shelfItemMoved(x,i,r)}},children:(0,u.jsx)(d.bK,{droppableId:"droppable",direction:"vertikal"==c?"horizontal":"vertical",children:function children(t,i){return(0,u.jsxs)("div",_objectSpread(_objectSpread({},t.droppableProps),{},{ref:t.innerRef,style:{width:"100%",height:"100%"},children:[g.map((function(t,i){return(0,u.jsx)(d._l,{index:i,isDragDisabled:-1==t.inUse||t.isDisabled||t.noMove,draggableId:i.toString(),children:function children(r,o){return(0,u.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({onClick:function onClick(){p.paletteViewHandler.setSelectedShelfAccessoire(t.basketId),p.paletteViewHandler.clickAddAccessorieOnShelfPlanner(x,t.index)},ref:r.innerRef},r.draggableProps),r.dragHandleProps),{},{style:I(o.isDragging,r.draggableProps.style,t,t.index%5==0&&!!i),children:[!!t.articleText&&(0,u.jsx)("div",{style:N(),dangerouslySetInnerHTML:{__html:t.articleText}}),-1==t.inUse&&t.index%5==0&&!!i&&"horizontal"==c&&t.index,(t.inUse>-1&&!t.noDelete&&!t.isDisabled||t.onBoard)&&(0,u.jsx)(a.default,{grid:x,index:t.inUse})]}))}},i)})),t.placeholder]}))}})})}))},67:(t,i,r)=>{r.r(i),r.d(i,{default:()=>c});r(87363);var o=r(88683),d=r(22881),l=r(9420),a=r(47514);const c=(0,l.Pi)((function index(t){var i=t.selAccItem,r=(0,o.useTranslation)().t;return(0,a.jsx)(a.Fragment,{children:i?(0,a.jsxs)("div",{className:d.o5,children:[(0,a.jsx)("img",{src:i.image}),(0,a.jsxs)("div",{className:d.um,children:[r("configurator.REGALPLANER_CHOOSE_SPACE_1")+" ",(0,a.jsx)("b",{dangerouslySetInnerHTML:{__html:i.name}})," "+r("configurator.REGALPLANER_CHOOSE_SPACE_2")+" ",(0,a.jsx)("b",{children:i.cellSize}),r("configurator.REGALPLANER_CHOOSE_SPACE_3")]})]}):(0,a.jsxs)("div",{className:d.o5,children:[(0,a.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),(0,a.jsx)("div",{className:d.um,children:r("configurator.REGALPLANER_CHOOSE_FIRST_ARTICLE")})]})})}))},27020:(t,i,r)=>{r.r(i),r.d(i,{default:()=>z});var o=r(80248),d=r(34988),l=r(65515),a=r.n(l),c=r(75327),u=r(9420),x=r(87363),p=r(61533),m=r(93379),g=r.n(m),h=r(7795),v=r.n(h),b=r(90569),y=r.n(b),j=r(3565),P=r.n(j),w=r(19216),A=r.n(w),S=r(44589),I=r.n(S),O=r(65655),k={};k.styleTagTransform=I(),k.setAttributes=P(),k.insert=y().bind(null,"head"),k.domAPI=v(),k.insertStyleElement=A();g()(O.ZP,k);O.ZP&&O.ZP.locals&&O.ZP.locals;var N=r(88683),C=r(46770),T=r(56474),D=r(71442),Z=r(55461),H=r(91087),E=r(21801),M=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}var _="undefined"!=typeof Image?new Image(1,1):void 0;_&&(_.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");const z=(0,u.Pi)((function ShelfAccessoires(t){var i,r,o=t.item,l=(t.grids,t.sel),u=(0,c.NP)(),m=(0,N.useDivaCore)().state,g=m.hidePrices,h=m.dimensions,v=h.isMobile,b=h.isTablet,y=(0,x.useState)(""),j=(0,d.Z)(y,2),P=j[0],w=j[1],A=u.productState.useRtvNext||D.j4,S=(0,x.useState)(!1),I=(0,d.Z)(S,2),k=I[0],z=I[1],R=(0,x.useRef)(null),L=(0,x.useRef)({x:0,y:0}),B=(0,x.useRef)({grabX:0,grabY:0,width:0}),K=function positionGhost(t){if(t){var i=B.current;t.style.transform="translate(".concat(L.current.x-i.grabX,"px, ").concat(L.current.y-i.grabY,"px)")}};(0,x.useEffect)((function(){if(k){var t=function onDragOver(t){L.current={x:t.clientX,y:t.clientY},K(R.current)};return document.addEventListener("dragover",t),function(){return document.removeEventListener("dragover",t)}}}),[k]);var U={},V={},G=void 0,Y=!1,W={},X=(0,C.XI)({delayEnter:1500,hideOnScroll:!0}),q=X[0]&&!k,J=(0,C.sJ)({isOpen:q,auto:!0,placement:u.getViewConfig().tooltipPosition||"left-center"});v||b||u.getViewConfig().hideTooltip||(Y=q,W=X[1],U=J.triggerProps,V=J.layerProps,G=J.renderLayer);var Q=o.name;return(0,M.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({id:o.articleCodex,className:a()(O.nC,l?O.pA:void 0),onClick:function onClick(){return u.paletteViewHandler.selectShelfAccessorie(o.articleCodex,void 0,!A)},onDoubleClick:A?function(){return u.paletteViewHandler.selectShelfAccessorie(o.articleCodex)}:void 0,draggable:A,onDragStart:function onDragStart(t){if(A){t.dataTransfer.effectAllowed="copy",t.dataTransfer.setData("text/plain",o.articleCodex),_&&t.dataTransfer.setDragImage(_,0,0);var i=t.currentTarget.getBoundingClientRect();B.current={grabX:t.clientX-i.left,grabY:t.clientY-i.top,width:i.width},L.current={x:t.clientX,y:t.clientY},z(!0),u.paletteViewHandler.startShelfAccessorieDrag(o.articleCodex)}},onDragEnd:function onDragEnd(){A&&(z(!1),u.paletteViewHandler.endShelfAccessorieDrag())}},U),W),{},{children:[(0,M.jsx)("img",{style:{maxHeight:u.settingsState.settingsWidth/3},src:o.image,draggable:!1}),(0,M.jsxs)("div",{className:O.jW,children:[(0,M.jsx)("div",{className:a()(O.TN),dangerouslySetInnerHTML:{__html:Q}}),(0,M.jsx)(T.default,{metaData:o.metaData,visible:[P,w]},o.articleCodex),!g&&!!o.price&&(0,M.jsx)(H.default,{price:o.price,style:{paddingTop:6}}),o.contentItemId&&(0,M.jsx)(E.default,{item:o,style:{top:6,right:6}},o.articleCodex)]}),Y&&(null===(i=G)||void 0===i?void 0:i((0,M.jsx)(Z.default,{text:null!==(r=o.longDescription)&&void 0!==r?r:o.name,desciption:P,image:o.image,codex:o.articleCodex,layerProps:V},o.articleCodex))),k&&!u.settingsState.draggedAccessoryHasTarget&&(0,p.createPortal)((0,M.jsxs)("div",{className:a()(O.nC,O.HE),style:{width:B.current.width},ref:function ref(t){R.current=t,K(t)},children:[(0,M.jsx)("img",{style:{maxHeight:u.settingsState.settingsWidth/3},src:o.image}),(0,M.jsx)("div",{className:O.jW,children:(0,M.jsx)("div",{className:O.TN,dangerouslySetInnerHTML:{__html:Q}})})]}),document.body)]}))}))},12478:(t,i,r)=>{r.r(i),r.d(i,{default:()=>E});var o=r(80248),d=r(34988),l=r(88683),a=r(65515),c=r.n(a),u=r(75327),x=r(9420),p=r(87363),m=r(93379),g=r.n(m),h=r(7795),v=r.n(h),b=r(90569),y=r.n(b),j=r(3565),P=r.n(j),w=r(19216),A=r.n(w),S=r(44589),I=r.n(S),O=r(57771),k={};k.styleTagTransform=I(),k.setAttributes=P(),k.insert=y().bind(null,"head"),k.domAPI=v(),k.insertStyleElement=A();g()(O.ZP,k);O.ZP&&O.ZP.locals&&O.ZP.locals;var N=r(46770),C=r(56474),T=r(55461),D=r(91087),Z=r(21801),H=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}const E=(0,x.Pi)((function ShelfAccessoires(t){var i,r,o=t.item,a=t.grids,x=(0,u.NP)(),m=(0,l.useTranslation)(),g=(0,l.useDivaCore)().state,h=g.hidePrices,v=g.dimensions,b=v.isMobile,y=v.isTablet,j=(0,p.useState)(""),P=(0,d.Z)(j,2),w=P[0],A=P[1],S={},I={},k=void 0,E=!1,M={},_=(0,N.XI)({delayEnter:1500,hideOnScroll:!0}),z=(0,N.sJ)({isOpen:_[0],auto:!0,placement:x.getViewConfig().tooltipPosition||"left-center"});return b||y||x.getViewConfig().hideTooltip||(E=_[0],M=_[1],S=z.triggerProps,I=z.layerProps,k=z.renderLayer),(0,H.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({onClick:function onClick(){return x.paletteViewHandler.clickedOnShelfAccessorie(a,o.articleCodex,void 0,!0)},className:O.RV},S),M),{},{children:[(0,H.jsxs)("div",{className:c()(O.iZ,O.vc),children:[(0,H.jsx)("div",{className:c()(O.K5),style:{backgroundImage:"url(".concat(o.image,")")}}),(0,H.jsxs)("div",{className:c()(O.TX),children:[(0,H.jsx)("div",{className:c()(O.db,""!==w?O.Bm:void 0),dangerouslySetInnerHTML:{__html:o.name}}),(0,H.jsx)(C.default,{metaData:o.metaData,visible:[w,A]},o.articleCodex),(0,H.jsx)("div",{className:c()(O.WN),children:l.DivaUtils.sizeFormatter({width:o.width,height:o.height,depth:o.depth},m)})]})]}),!h&&!!o.price&&(0,H.jsx)(D.default,{price:o.price,style:{paddingTop:6}}),o.contentItemId&&(0,H.jsx)(Z.default,{item:o,style:{bottom:8,right:8}},o.articleCodex),E&&(null===(i=k)||void 0===i?void 0:i((0,H.jsx)(T.default,{text:null!==(r=o.longDescription)&&void 0!==r?r:o.name,desciption:w,image:o.image,codex:o.articleCodex,layerProps:I},o.articleCodex)))]}))}))},67442:(t,i,r)=>{r.r(i),r.d(i,{default:()=>S});var o=r(80248),d=r(34988),l=r(79837),a=r(71442),c=(r(87363),r(22881)),u=r(3985),x=r(27020),p=r(12478),m=r(38742),g=r(75327),h=r(65515),v=r.n(h),b=r(9420),y=r(67),j=r(26937),P=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}function _createForOfIteratorHelper(t,i){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function _unsupportedIterableToArray(t,i){if(t){if("string"==typeof t)return _arrayLikeToArray(t,i);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){r&&(t=r);var o=0,d=function F(){};return{s:d,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:d}}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,a=!0,c=!1;return{s:function s(){r=r.call(t)},n:function n(){var t=r.next();return a=t.done,t},e:function e(t){c=!0,l=t},f:function f(){try{a||null==r.return||r.return()}finally{if(c)throw l}}}}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var r=0,o=Array(i);r<i;r++)o[r]=t[r];return o}var w=function accSize(t){var i,r,o;return(null!==(i=t.width)&&void 0!==i?i:0)*(null!==(r=t.height)&&void 0!==r?r:0)*(null!==(o=t.depth)&&void 0!==o?o:0)||t.cellSize||0},A=function isShelfAccessory(t){return"cellSize"in t};const S=(0,b.Pi)((function ShelfPlanner(t){var i,r,o,h,b,S,I,O,k,N,C,T=t.item,D=t.style,Z=t.filteredGroups,H=(0,g.NP)(),E=(null!==(i=null===(r=H.settingsState.settingsScrollerElement)||void 0===r?void 0:r.getBoundingClientRect().height)&&void 0!==i?i:0)-10,M=(null!==(o=null===(h=H.settingsState.settingsScrollerElement)||void 0===h?void 0:h.getBoundingClientRect().width)&&void 0!==o?o:0)-16,_=null!==(b=null==T||null===(S=T.shelfPlannerGrids)||void 0===S?void 0:S.find((function(t){return t.ActAccessoire})))&&void 0!==b?b:null==T||null===(I=T.shelfPlannerGrids)||void 0===I?void 0:I[0];if(!_)return(0,P.jsx)(P.Fragment,{});var z=(null!==(O=null===(k=Z[0])||void 0===k?void 0:k.items)&&void 0!==O?O:[]).filter(A),R=H.productState.useRtvNext||a.j4,L=R&&"autoPlaceDrag"===l.d?function collapseFamilies(t){var i,r,o=[],d=new Map,l=_createForOfIteratorHelper(t);try{for(l.s();!(i=l.n()).done;){var a=i.value,c=(r=void 0,null!==(r=a.accessoireFamily)&&void 0!==r?r:null);if(c){var u=d.get(c);void 0===u?(d.set(c,o.length),o.push(a)):w(a)>w(o[u])&&(o[u]=a)}else o.push(a)}}catch(t){l.e(t)}finally{l.f()}return o}(z):z,B=_.ActAccessoire,K=void 0;B&&(K=z.find((function(t){return t.articleCodex==B})));var U=_.getRequiredWarning(H.configState.lang),V=[];if(null!==(N=K)&&void 0!==N&&null!==(N=N.configStepKeys)&&void 0!==N&&N.length)for(var G=function _loop(){var t=K.configStepKeys[Y],i=H.settingsState.itemPaletteArr.find((function(i){var r=(0,d.Z)(i,2);r[0];return r[1].configStepKey==t.key}));if(!i)return 1;H.settingsState.selectedShelfAccessoire==t.basketId&&V.push(i[1])},Y=0;Y<K.configStepKeys.length;Y++)G();var W=H.getIsInMobileView()&&H.productState.shelfPlannerRTV;return(0,P.jsxs)("div",{ref:function ref(t){return T.htmlRef=t},className:v()(H.productState.shelfPlannerRTV?c.Ev:void 0,"horizontal"==_.Direction?c.dx:c.vU,H.uiState.configSettingsIsExpanded?c.zh:void 0),style:_objectSpread({height:E},D),children:[!H.productState.shelfPlannerRTV&&(0,P.jsx)("div",{className:c.wX,children:(0,P.jsx)("div",{className:c.Zh,children:(0,P.jsx)(m.default,{item:T,direction:_.Direction,width:M,height:E-16-16})})}),U&&(0,P.jsx)("div",{className:c.Kp,dangerouslySetInnerHTML:{__html:U}}),(0,P.jsxs)("div",{className:c.s0,children:[!!V.length&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:c.ne,onClick:function onClick(){return H.paletteViewHandler.setSelectedShelfAccessoire()},children:[(0,P.jsx)("div",{className:c.Ah}),(0,P.jsx)("div",{className:c.u2,children:null===(C=K)||void 0===C?void 0:C.name})]}),(0,P.jsx)(j.default,{itemPalettesArr:V})]}),!V.length&&(0,P.jsxs)(P.Fragment,{children:[!W&&(0,P.jsx)(y.default,{selAccItem:K}),(0,P.jsx)("div",{className:v()(c.QL,u.pw),style:{height:"horizontal"==_.Direction?E-80:"",overflow:W?"visible":void 0},children:L.map((function(t,i){var r;return(0,P.jsxs)(P.Fragment,{children:[H.productState.shelfPlannerRTV&&(0,P.jsx)(x.default,{grids:T.shelfPlannerGrids,item:t,sel:t.articleCodex==B||R&&!(null===(r=K)||void 0===r||!r.accessoireFamily)&&t.accessoireFamily===K.accessoireFamily},i),!H.productState.shelfPlannerRTV&&(0,P.jsx)(p.default,{grids:T.shelfPlannerGrids,item:t},i)]})}))})]})]})]})}))},67444:(t,i,r)=>{r.r(i),r.d(i,{default:()=>A});r(87363);var o=r(9420),d=r(93379),l=r.n(d),a=r(7795),c=r.n(a),u=r(90569),x=r.n(u),p=r(3565),m=r.n(p),g=r(19216),h=r.n(g),v=r(44589),b=r.n(v),y=r(91605),j={};j.styleTagTransform=b(),j.setAttributes=m(),j.insert=x().bind(null,"head"),j.domAPI=c(),j.insertStyleElement=h();l()(y.ZP,j);y.ZP&&y.ZP.locals&&y.ZP.locals;var P=r(75327),w=r(47514);const A=(0,o.Pi)((function ContentItemTeaser(t){var i=t.item,r=(0,P.NP)();return(0,w.jsxs)("div",{className:y.bz,children:[i.emoji&&(0,w.jsx)("div",{className:y.rP,children:i.emoji}),(0,w.jsx)("div",{className:y.TN,children:i.title}),(0,w.jsx)("div",{className:y.WL,children:i.description}),i.id&&(0,w.jsxs)("button",{className:y.LI,onClick:function onClick(){!function isUrl(t){return/^https?:\/\//.test(t)}(i.id)?r.settingsState.onClickContentItemId(i.id):window.open(i.id,"_blank","noopener,noreferrer")},children:[(0,w.jsx)("span",{className:y.q5,children:i.buttonText}),(0,w.jsx)("div",{className:y.x7,children:(0,w.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,w.jsx)("path",{d:"M5 12H19M19 12L13 6M19 12L13 18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}))},81099:(t,i,r)=>{r.r(i),r.d(i,{default:()=>S});r(87363);var o=r(37486),d=r(75327),l=r(93379),a=r.n(l),c=r(7795),u=r.n(c),x=r(90569),p=r.n(x),m=r(3565),g=r.n(m),h=r(19216),v=r.n(h),b=r(44589),y=r.n(b),j=r(9668),P={};P.styleTagTransform=y(),P.setAttributes=g(),P.insert=p().bind(null,"head"),P.domAPI=u(),P.insertStyleElement=v();a()(j.ZP,P);j.ZP&&j.ZP.locals&&j.ZP.locals;var w=r(67444),A=r(47514);const S=function SettingsItemsGroup(t){var i=t.group;(0,d.NP)();return(0,A.jsxs)("div",{className:j.YS,children:[(0,A.jsx)("div",{className:j.t$,children:i.left.map((function(t){var r,d,l,a=i.palettes.find((function(i){return i.id===t}));return(0,A.jsxs)(A.Fragment,{children:["TOP"===(null===(r=a.contentItemTeaser)||void 0===r?void 0:r.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{}),(0,A.jsx)(o.default,{item:a,id:Number(a.id)},null!==(d=a.optionCodex)&&void 0!==d?d:a.configStepKey+a.id),"BOTTOM"===(null===(l=a.contentItemTeaser)||void 0===l?void 0:l.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{})]})}))}),(0,A.jsx)("div",{className:j.eX}),(0,A.jsx)("div",{className:j.F2,children:i.right.map((function(t){var r,d,l,a=i.palettes.find((function(i){return i.id===t}));return(0,A.jsxs)(A.Fragment,{children:["TOP"===(null===(r=a.contentItemTeaser)||void 0===r?void 0:r.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{}),(0,A.jsx)(o.default,{item:a,id:Number(a.id)},null!==(d=a.optionCodex)&&void 0!==d?d:a.configStepKey+a.id),"BOTTOM"===(null===(l=a.contentItemTeaser)||void 0===l?void 0:l.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{})]})}))})]})}},26937:(t,i,r)=>{r.r(i),r.d(i,{default:()=>m});var o=r(34988),d=r(87363),l=r(9420),a=r(37486),c=r(75327),u=r(81099),x=r(67444),p=r(47514);const m=(0,l.Pi)((function SettingsItemsWrapper(t){var i=t.itemPalettesArr,r=t.zIndexBase,l=(0,c.NP)(),m=(0,d.useState)([]),g=(0,o.Z)(m,2),h=g[0],v=g[1];return(0,d.useEffect)((function(){for(var t=[],r=function _loop(){var r=i[o],d=l.configuratorStructureHandler.getOptionStepByCodex(r.optionCodex),a=null==d?void 0:d.partOfGroup,c=t.find((function(t){var i;return(null!==(i=null==a?void 0:a.groupName)&&void 0!==i?i:r.configStepKey+r.id)===t.groupName}));if(c)c.palettes.push(r);else{var u,x={groupName:null!==(u=null==a?void 0:a.groupName)&&void 0!==u?u:r.configStepKey+r.id,palettes:[r],left:[],right:[]};t.push(x),c=x}"l"===(null==a?void 0:a.position)?c.left.push(r.id):"r"===(null==a?void 0:a.position)&&c.right.push(r.id)},o=0;o<i.length;o++)r();v(t)}),[i]),(0,p.jsx)(p.Fragment,{children:h.map((function(t){var i;if(t.palettes.length>1)return(0,p.jsx)(u.default,{group:t});var o=t.palettes[0].contentItemTeaser;return(0,p.jsxs)(p.Fragment,{children:["TOP"==(null==o?void 0:o.position)&&(0,p.jsx)(x.default,{item:o}),(0,p.jsx)(a.default,{item:t.palettes[0],id:Number(t.palettes[0].id),zIndexBase:r},(null!==(i=t.palettes[0].optionCodex)&&void 0!==i?i:t.palettes[0].configStepKey)+t.palettes[0].id),"BOTTOM"==(null==o?void 0:o.position)&&(0,p.jsx)(x.default,{item:o})]})}))})}))},22693:(t,i,r)=>{r.d(i,{U:()=>c,Z:()=>u});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--GuiBy {\n font-weight: 300;\n font-size: 18px;\n height: 22px;\n width: 22px;\n float: left;\n background: #f2f2f2;\n border-radius: 19.008px;\n -webkit-text-stroke: 0px;\n transition: background-color 0.15s ease;\n text-align: center;\n float: right;\n cursor: pointer;\n}\n\n.index-module--GuiBy:hover {\n background: #d9d9d9;\n color: #424242;\n}\n\n.index-module--GuiBy {\n line-height: 21px;\n}\n",""]);var c="index-module--GuiBy";const u=a},65655:(t,i,r)=>{r.d(i,{HE:()=>m,TN:()=>p,ZP:()=>g,jW:()=>x,nC:()=>c,pA:()=>u});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--E9hMP {\n position: relative;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-radius: 6px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n transition:\n box-shadow 0.2s ease-in-out,\n border-color 0.2s ease-in-out;\n background: #f2f2f2;\n cursor: pointer;\n}\n\n.index-module--E9hMP.index-module--zq_sk {\n border-color: var(--primaryColor);\n}\n\n.index-module--E9hMP:hover {\n box-shadow: rgba(0, 0, 0,0.2) 0px 0px 16px 0px;\n}\n\n.index-module--E9hMP img {\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n.index-module--ASP_j {\n color: #4b4b4b;\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n height: 100%;\n}\n.index-module--xrQ6L {\n height: auto;\n margin: 0 3px;\n}\n\n.index-module--xrQ6L {\n font-weight: 600;\n font-size: 13px;\n line-height: 15px;\n}\n\n.index-module--fUvCj {\n position: fixed;\n left: 0;\n top: 0;\n pointer-events: none;\n z-index: 9999;\n opacity: 0.8;\n}\n",""]);var c="index-module--E9hMP",u="index-module--zq_sk",x="index-module--ASP_j",p="index-module--xrQ6L",m="index-module--fUvCj";const g=a},57771:(t,i,r)=>{r.d(i,{Bm:()=>h,K5:()=>p,RV:()=>c,TX:()=>m,WN:()=>v,ZP:()=>b,db:()=>g,iZ:()=>u,vc:()=>x});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,"/* Accessoires*/\n\n.index-module--ckN3g {\n border-radius: var(--globalBorderRadius);\n background: white;\n position: relative;\n display: flex;\n z-index: 100;\n}\n\n.index-module--ckN3g:hover {\n z-index: 200;\n}\n\n.index-module--ckN3g .index-module--9x5co {\n width: 98%;\n background: white;\n position: relative;\n border-radius: var(--globalBorderRadius);\n}\n\n.index-module--ckN3g .index-module--i6vXs {\n height: 80px;\n}\n\n.index-module--ckN3g .index-module--s5TT0 {\n width: 48px;\n float: left;\n height: 48px;\n}\n\n.index-module--ckN3g .index-module--i6vXs .index-module--Ab2VB {\n height: 80px;\n}\n\n.index-module--ckN3g .index-module--Ab2VB {\n width: 80px;\n float: left;\n border-radius: var(--globalBorderRadius) 0px 0px var(--globalBorderRadius);\n background-size: contain;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n}\n\n.index-module--S4zFL {\n float: left;\n width: calc(100% - 80px);\n position: relative;\n height: 100%;\n}\n.index-module--ckN3g .index-module--S4zFL {\n width: calc(100% - 150px);\n display: flex;\n flex-direction: column;\n height: calc(100% - 12px);\n justify-content: space-between;\n}\n\n.index-module--ckN3g .index-module--PoiMR {\n display: -webkit-box;\n float: left;\n max-height: 64px;\n min-height: 16px;\n margin-top: 14px;\n max-width: 100%;\n color: var(--secondaryColor);\n font-size: 16px;\n line-height: 20.8px;\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n position: relative;\n -webkit-hyphens: auto;\n hyphens: auto;\n z-index: 100;\n}\n\n.index-module--ckN3g .index-module--PoiMR.index-module--Khqca {\n -webkit-line-clamp: 1;\n}\n\n.index-module--ckN3g .index-module--gYuZ8 {\n display: -webkit-box;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n font-size: 13px;\n line-height: 16px;\n color: #6f6f6f;\n width: 100%;\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n -webkit-hyphens: auto;\n hyphens: auto;\n z-index: 110;\n}\n@media all and (max-width: 1100px) {\n .index-module--ckN3g .index-module--i6vXs {\n height: 80px;\n }\n\n .index-module--ckN3g .index-module--i6vXs img {\n height: 80px;\n }\n}\n",""]);var c="index-module--ckN3g",u="index-module--9x5co",x="index-module--i6vXs",p="index-module--Ab2VB",m="index-module--S4zFL",g="index-module--PoiMR",h="index-module--Khqca",v="index-module--gYuZ8";const b=a},92800:(t,i,r)=>{r.d(i,{Ah:()=>T,Ev:()=>A,Kp:()=>k,QL:()=>S,ZP:()=>D,Zh:()=>w,dx:()=>v,ne:()=>N,o5:()=>I,s0:()=>y,u2:()=>C,um:()=>O,vU:()=>b,wX:()=>P,zh:()=>j});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l),c=r(61667),u=r.n(c),x=new URL(r(60267),r.b),p=new URL(r(18343),r.b),m=a()(d()),g=u()(x),h=u()(p);m.push([t.id,".index-module--Bn7HL {\n display: flex;\n width: 100%;\n}\n\n.index-module--HEzIS {\n display: flex;\n width: 100%;\n flex-direction: column;\n}\n\n.index-module--Bn7HL .index-module--_WYy_ {\n width: 60%;\n}\n\n.index-module--HEzIS .index-module--_WYy_ {\n width: 100%;\n height: 60%;\n}\n\n.index-module--OxqYJ.index-module--Bn7HL .index-module--rPMZf {\n width: 34%;\n}\n\n.index-module--Bn7HL .index-module--rPMZf {\n width: 40%;\n padding-right: 10px;\n}\n\n.index-module--HEzIS .index-module--rPMZf {\n width: 100%;\n height: 40%;\n padding: 0 0;\n margin: 10px 0;\n}\n\n.index-module--Bn7HL .index-module--TXuNM {\n border-top: solid #c7c7c7 1px;\n /* border-bottom: solid #c7c7c7 1px; */\n border-left: solid #c7c7c7 1px;\n border-right: solid #c7c7c7 1px;\n border-radius: 3px;\n}\n.index-module--HEzIS .index-module--TXuNM {\n border-left: solid #c7c7c7 1px;\n border-right: solid #c7c7c7 1px;\n border-radius: 3px;\n display: contents;\n}\n.index-module--OxqYJ.index-module--Bn7HL .index-module--_WYy_ {\n width: 66%;\n}\n\n.index-module--Da8N6.index-module--HGACp .index-module--_WYy_,\n.index-module--Bn7HL.index-module--HGACp .index-module--_WYy_ {\n width: 100%;\n}\n\n.index-module--GBUr1:first-child {\n padding-right: 10px;\n}\n\n.index-module--Bn7HL .index-module--HDgVo {\n height: 100%;\n overflow: auto;\n}\n\n.index-module--y8DIz {\n width: 100%;\n height: 75px;\n margin-bottom: 5px;\n}\n\n.index-module--Q2pqI {\n height: 75px;\n overflow: auto;\n}\n\n.index-module--y8DIz img {\n width: 100px;\n float: left;\n height: 75px;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n.index-module--sJPn7 {\n color: red;\n padding-bottom: 1rem;\n}\n.index-module--bdb6c {\n display: flex;\n align-items: center;\n gap: 12px;\n cursor: pointer;\n}\n\n.index-module--AJXPG {\n font-size: 18px;\n transition: font-size 0.3s ease;\n}\n\n.index-module--vl80_ {\n width: 50px;\n height: 50px;\n background: center / 35% no-repeat url("+g+");\n transition: background-size 0.3s ease, background-image 0.3s ease;\n}\n\n.index-module--bdb6c:hover .index-module--vl80_ {\n background: center / 40% no-repeat url("+h+");\n}\n\n.index-module--bdb6c:hover .index-module--AJXPG {\n font-size: 20px;\n}\n",""]);var v="index-module--Bn7HL",b="index-module--HEzIS",y="index-module--_WYy_",j="index-module--OxqYJ",P="index-module--rPMZf",w="index-module--TXuNM",A="index-module--HGACp",S="index-module--HDgVo",I="index-module--y8DIz",O="index-module--Q2pqI",k="index-module--sJPn7",N="index-module--bdb6c",C="index-module--AJXPG",T="index-module--vl80_";const D=m},91605:(t,i,r)=>{r.d(i,{LI:()=>m,TN:()=>x,WL:()=>p,ZP:()=>v,bz:()=>c,q5:()=>g,rP:()=>u,x7:()=>h});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--YvhoM {\n background-color: #e6f0fa;\n background-color: var(--diva-theme-palette-primary-light, #e6f0fa);\n padding: 12px 16px;\n border-radius: 8px;\n text-align: center;\n margin: 8px 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n font-family: inherit;\n width: 100%;\n box-sizing: border-box;\n}\n\n.index-module--xRF8A {\n font-size: 28px;\n margin-bottom: 2px;\n}\n\n.index-module--AkzgH {\n font-weight: 700;\n font-size: 16px;\n color: #000;\n margin: 0;\n line-height: 1.2;\n}\n\n.index-module--YcLKe {\n font-size: 15px;\n color: #333;\n margin: 0;\n line-height: 1.4;\n}\n.mobile .index-module--YcLKe {\n font-size: 13px;\n}\n\n.index-module--tZsne {\n margin-top: 10px;\n border: 2px solid #ff6b00;\n border: 2px solid var(--primaryColor, #ff6b00);\n color: #ff6b00;\n color: var(--primaryColor, #ff6b00);\n background: #fff;\n padding: 6px 16px;\n border-radius: 6px;\n font-weight: 700;\n font-size: 15px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n transition: all 0.2s ease;\n width: 100%;\n max-width: 280px;\n box-sizing: border-box;\n min-height: 40px;\n}\n\n.index-module--tZsne:hover {\n background-color: #ff6b00;\n background-color: var(--primaryColor, #ff6b00);\n color: #fff;\n}\n\n.index-module--KlW5i {\n flex: 1;\n text-align: center;\n padding: 0 24px;\n}\n\n.index-module--MViR0 {\n position: absolute;\n right: 12px;\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.index-module--MViR0 svg {\n width: 100%;\n height: 100%;\n}\n",""]);var c="index-module--YvhoM",u="index-module--xRF8A",x="index-module--AkzgH",p="index-module--YcLKe",m="index-module--tZsne",g="index-module--KlW5i",h="index-module--MViR0";const v=a},9668:(t,i,r)=>{r.d(i,{F2:()=>x,YS:()=>c,ZP:()=>m,eX:()=>p,t$:()=>u});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--h2rQ7 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n gap: 24px;\n}\n\n.mobile .index-module--h2rQ7 {\n gap: 8px;\n}\n\n.index-module--vn75Y {\n flex: 1;\n align-self: stretch;\n}\n\n.index-module--gupRY {\n flex: 1;\n align-self: stretch;\n}\n\n.index-module--lvlA1 {\n width: 1px;\n align-self: stretch;\n background-color: #ccc;\n}\n",""]);var c="index-module--h2rQ7",u="index-module--vn75Y",x="index-module--gupRY",p="index-module--lvlA1";const m=a},22881:(t,i,r)=>{r.d(i,{Ah:()=>b.Ah,Ev:()=>b.Ev,Kp:()=>b.Kp,QL:()=>b.QL,Zh:()=>b.Zh,dx:()=>b.dx,ne:()=>b.ne,o5:()=>b.o5,s0:()=>b.s0,u2:()=>b.u2,um:()=>b.um,vU:()=>b.vU,wX:()=>b.wX,zh:()=>b.zh});var o=r(93379),d=r.n(o),l=r(7795),a=r.n(l),c=r(90569),u=r.n(c),x=r(3565),p=r.n(x),m=r(19216),g=r.n(m),h=r(44589),v=r.n(h),b=r(92800),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=u().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=g();d()(b.ZP,y),b.ZP&&b.ZP.locals&&b.ZP.locals},60267:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAxMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDFMMSAxMUwxMSAyMSIgc3Ryb2tlPSIjNEY0RjRGIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"},18343:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAxMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDFMMSAxMUwxMSAyMSIgc3Ryb2tlPSIjM2YzZjNmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7442,1930,8742,67,7444,1099,6937],{79837:(t,i,r)=>{r.d(i,{d:()=>o});var o="autoPlaceDrag"},21930:(t,i,r)=>{r.r(i),r.d(i,{default:()=>w});r(87363);var o=r(93379),d=r.n(o),l=r(7795),a=r.n(l),c=r(90569),u=r.n(c),x=r(3565),p=r.n(x),m=r(19216),g=r.n(m),h=r(44589),v=r.n(h),b=r(22693),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=u().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=g();d()(b.Z,y);b.Z&&b.Z.locals&&b.Z.locals;var j=r(75327),P=r(47514);const w=function ShelfDeleteButton(t){var i=t.index,r=t.grid,o=(0,j.NP)();return(0,P.jsx)("div",{onClick:function onClick(t){o.paletteViewHandler.clickDeleteAccessorieOnShelfPlanner(r,i),t.stopPropagation()},className:b.U,children:"-"})}},38742:(t,i,r)=>{r.r(i),r.d(i,{default:()=>x});var o=r(80248),d=(r(87363),r(49944)),l=r(75327),a=r(21930),c=r(9420),u=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}const x=(0,c.Pi)((function GridList(t){var i,r=t.item,o=t.height,c=(t.width,t.direction),x=null===(i=r.shelfPlannerGrids)||void 0===i?void 0:i[0],p=(0,l.NP)();if(!x)return(0,u.jsx)(u.Fragment,{});for(var m=o/x.Cells.length,g=[],h=-1,v=!1,b=!1,y=0;y<x.Cells.length;y++){var j=x.Cells[y];if(j.IsDisabled)b?g[0].heightCount++:g.splice(0,0,{heightCount:1,inUse:j.InUse,index:j.Index,type:void 0,isDisabled:!0,isRequired:j.IsRequired,onlyPlaceHolder:j.OnlyPlaceHolder,noMove:j.NoMove,noDelete:j.NoDelete}),b=!0,h=-1;else if(b=!1,-1==j.InUse)g.splice(0,0,{heightCount:1,inUse:j.InUse,index:j.Index,type:void 0,isDisabled:j.IsDisabled,isRequired:j.IsRequired,onlyPlaceHolder:j.OnlyPlaceHolder,noMove:j.NoMove,noDelete:j.NoDelete});else if(h!=j.InUse&&h!=j.OnBoard){var P,w;h=j.InUse,v=!1,g.splice(0,0,{heightCount:1,inUse:j.InUse,index:j.Index,type:j.Type,isDisabled:j.IsDisabled,isRequired:j.IsRequired,articleText:null===(P=j.Article)||void 0===P?void 0:P.name,onlyPlaceHolder:j.OnlyPlaceHolder,noMove:j.NoMove,noDelete:j.NoDelete,basketId:null===(w=j.Article)||void 0===w?void 0:w.basketId})}else{var A=g.find((function(t){return t.inUse==h}));if(A){var S;if(h===j.OnBoard&&!v)v=!0,A.articleText=(null===(S=j.Article)||void 0===S?void 0:S.name)+"<br/>&<br/>"+A.articleText,A.onBoard=!0;A.heightCount++}}}var I=function getItemStyle(t,i,r,o){return"horizontal"==c?k(t,i,r,o):O(t,i,r)},O=function getItemStyleVertical(t,i,r){return _objectSpread({userSelect:"none",width:"calc("+r.heightCount/x.Cells.length*100+"% - 1px)",wordBreak:"break-word",height:"100%",marginRight:"1px",background:r.isRequired?"#FFEBEB":-1==r.inUse?"none":t?"grey":"lightgrey",backgroundImage:r.isDisabled&&"linear-gradient(45deg, #ffffff 25%, #c7c7c7 25%, #c7c7c7 50%, #ffffff 50%, #ffffff 75%, #c7c7c7 75%, #c7c7c7 100%)",backgroundSize:r.isDisabled&&"28.28px 28.28px",float:"left",borderRight:-1==r.inUse?"1px solid lightgrey":"none",boxSizing:"border-box"},i)},k=function getItemStyleHorizontal(t,i,r,o){return _objectSpread({userSelect:"none",height:m*r.heightCount-1,marginBottom:"1px",fontSize:-1===r.inUse?"12px":void 0,lineHeight:-1===r.inUse?"2px":void 0,background:r.isRequired?"#FFEBEB":-1===r.inUse?"none":t?"grey":"lightgrey",backgroundImage:r.isDisabled&&"linear-gradient(45deg, #ffffff 25%, #c7c7c7 25%, #c7c7c7 50%, #ffffff 50%, #ffffff 75%, #c7c7c7 75%, #c7c7c7 100%)",backgroundSize:r.isDisabled&&"28.28px 28.28px",borderBottom:-1==r.inUse?o?"1px solid #B5B5B5":"1px solid lightgrey":"none",boxSizing:"border-box"},i)},N=function getTextStyle(){return"vertikal"==c?{maxHeight:"calc(100% - 22px)",overflow:"auto"}:{}};return(0,u.jsx)(d.Z5,{onDragEnd:function onDragEnd(t){if(t.destination){var i=g[t.source.index].index,r=g[t.destination.index].index;i!=r&&p.paletteViewHandler.shelfItemMoved(x,i,r)}},children:(0,u.jsx)(d.bK,{droppableId:"droppable",direction:"vertikal"==c?"horizontal":"vertical",children:function children(t,i){return(0,u.jsxs)("div",_objectSpread(_objectSpread({},t.droppableProps),{},{ref:t.innerRef,style:{width:"100%",height:"100%"},children:[g.map((function(t,i){return(0,u.jsx)(d._l,{index:i,isDragDisabled:-1==t.inUse||t.isDisabled||t.noMove,draggableId:i.toString(),children:function children(r,o){return(0,u.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({onClick:function onClick(){p.paletteViewHandler.setSelectedShelfAccessoire(t.basketId),p.paletteViewHandler.clickAddAccessorieOnShelfPlanner(x,t.index)},ref:r.innerRef},r.draggableProps),r.dragHandleProps),{},{style:I(o.isDragging,r.draggableProps.style,t,t.index%5==0&&!!i),children:[!!t.articleText&&(0,u.jsx)("div",{style:N(),dangerouslySetInnerHTML:{__html:t.articleText}}),-1==t.inUse&&t.index%5==0&&!!i&&"horizontal"==c&&t.index,(t.inUse>-1&&!t.noDelete&&!t.isDisabled||t.onBoard)&&(0,u.jsx)(a.default,{grid:x,index:t.inUse})]}))}},i)})),t.placeholder]}))}})})}))},67:(t,i,r)=>{r.r(i),r.d(i,{default:()=>c});r(87363);var o=r(88683),d=r(22881),l=r(9420),a=r(47514);const c=(0,l.Pi)((function index(t){var i=t.selAccItem,r=(0,o.useTranslation)().t;return(0,a.jsx)(a.Fragment,{children:i?(0,a.jsxs)("div",{className:d.o5,children:[(0,a.jsx)("img",{src:i.image}),(0,a.jsxs)("div",{className:d.um,children:[r("configurator.REGALPLANER_CHOOSE_SPACE_1")+" ",(0,a.jsx)("b",{dangerouslySetInnerHTML:{__html:i.name}})," "+r("configurator.REGALPLANER_CHOOSE_SPACE_2")+" ",(0,a.jsx)("b",{children:i.cellSize}),r("configurator.REGALPLANER_CHOOSE_SPACE_3")]})]}):(0,a.jsxs)("div",{className:d.o5,children:[(0,a.jsx)("img",{src:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),(0,a.jsx)("div",{className:d.um,children:r("configurator.REGALPLANER_CHOOSE_FIRST_ARTICLE")})]})})}))},27020:(t,i,r)=>{r.r(i),r.d(i,{default:()=>z});var o=r(80248),d=r(34988),l=r(65515),a=r.n(l),c=r(75327),u=r(9420),x=r(87363),p=r(61533),m=r(93379),g=r.n(m),h=r(7795),v=r.n(h),b=r(90569),y=r.n(b),j=r(3565),P=r.n(j),w=r(19216),A=r.n(w),S=r(44589),I=r.n(S),O=r(65655),k={};k.styleTagTransform=I(),k.setAttributes=P(),k.insert=y().bind(null,"head"),k.domAPI=v(),k.insertStyleElement=A();g()(O.ZP,k);O.ZP&&O.ZP.locals&&O.ZP.locals;var N=r(88683),C=r(58292),T=r(56474),D=r(71442),Z=r(55461),H=r(91087),E=r(21801),M=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}var _="undefined"!=typeof Image?new Image(1,1):void 0;_&&(_.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");const z=(0,u.Pi)((function ShelfAccessoires(t){var i,r,o=t.item,l=(t.grids,t.sel),u=(0,c.NP)(),m=(0,N.useDivaCore)().state,g=m.hidePrices,h=m.dimensions,v=h.isMobile,b=h.isTablet,y=(0,x.useState)(""),j=(0,d.Z)(y,2),P=j[0],w=j[1],A=u.productState.useRtvNext||D.j4,S=(0,x.useState)(!1),I=(0,d.Z)(S,2),k=I[0],z=I[1],R=(0,x.useRef)(null),L=(0,x.useRef)({x:0,y:0}),B=(0,x.useRef)({grabX:0,grabY:0,width:0}),K=function positionGhost(t){if(t){var i=B.current;t.style.transform="translate(".concat(L.current.x-i.grabX,"px, ").concat(L.current.y-i.grabY,"px)")}};(0,x.useEffect)((function(){if(k){var t=function onDragOver(t){L.current={x:t.clientX,y:t.clientY},K(R.current)};return document.addEventListener("dragover",t),function(){return document.removeEventListener("dragover",t)}}}),[k]);var U={},V={},G=void 0,Y=!1,W={},X=(0,C.XI)({delayEnter:1500,hideOnScroll:!0}),q=X[0]&&!k,J=(0,C.sJ)({isOpen:q,auto:!0,placement:u.getViewConfig().tooltipPosition||"left-center"});v||b||u.getViewConfig().hideTooltip||(Y=q,W=X[1],U=J.triggerProps,V=J.layerProps,G=J.renderLayer);var Q=o.name;return(0,M.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({id:o.articleCodex,className:a()(O.nC,l?O.pA:void 0),onClick:function onClick(){return u.paletteViewHandler.selectShelfAccessorie(o.articleCodex,void 0,!A)},onDoubleClick:A?function(){return u.paletteViewHandler.selectShelfAccessorie(o.articleCodex)}:void 0,draggable:A,onDragStart:function onDragStart(t){if(A){t.dataTransfer.effectAllowed="copy",t.dataTransfer.setData("text/plain",o.articleCodex),_&&t.dataTransfer.setDragImage(_,0,0);var i=t.currentTarget.getBoundingClientRect();B.current={grabX:t.clientX-i.left,grabY:t.clientY-i.top,width:i.width},L.current={x:t.clientX,y:t.clientY},z(!0),u.paletteViewHandler.startShelfAccessorieDrag(o.articleCodex)}},onDragEnd:function onDragEnd(){A&&(z(!1),u.paletteViewHandler.endShelfAccessorieDrag())}},U),W),{},{children:[(0,M.jsx)("img",{style:{maxHeight:u.settingsState.settingsWidth/3},src:o.image,draggable:!1}),(0,M.jsxs)("div",{className:O.jW,children:[(0,M.jsx)("div",{className:a()(O.TN),dangerouslySetInnerHTML:{__html:Q}}),(0,M.jsx)(T.default,{metaData:o.metaData,visible:[P,w]},o.articleCodex),!g&&!!o.price&&(0,M.jsx)(H.default,{price:o.price,style:{paddingTop:6}}),o.contentItemId&&(0,M.jsx)(E.default,{item:o,style:{top:6,right:6}},o.articleCodex)]}),Y&&(null===(i=G)||void 0===i?void 0:i((0,M.jsx)(Z.default,{text:null!==(r=o.longDescription)&&void 0!==r?r:o.name,desciption:P,image:o.image,codex:o.articleCodex,layerProps:V},o.articleCodex))),k&&!u.settingsState.draggedAccessoryHasTarget&&(0,p.createPortal)((0,M.jsxs)("div",{className:a()(O.nC,O.HE),style:{width:B.current.width},ref:function ref(t){R.current=t,K(t)},children:[(0,M.jsx)("img",{style:{maxHeight:u.settingsState.settingsWidth/3},src:o.image}),(0,M.jsx)("div",{className:O.jW,children:(0,M.jsx)("div",{className:O.TN,dangerouslySetInnerHTML:{__html:Q}})})]}),document.body)]}))}))},12478:(t,i,r)=>{r.r(i),r.d(i,{default:()=>E});var o=r(80248),d=r(34988),l=r(88683),a=r(65515),c=r.n(a),u=r(75327),x=r(9420),p=r(87363),m=r(93379),g=r.n(m),h=r(7795),v=r.n(h),b=r(90569),y=r.n(b),j=r(3565),P=r.n(j),w=r(19216),A=r.n(w),S=r(44589),I=r.n(S),O=r(57771),k={};k.styleTagTransform=I(),k.setAttributes=P(),k.insert=y().bind(null,"head"),k.domAPI=v(),k.insertStyleElement=A();g()(O.ZP,k);O.ZP&&O.ZP.locals&&O.ZP.locals;var N=r(58292),C=r(56474),T=r(55461),D=r(91087),Z=r(21801),H=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}const E=(0,x.Pi)((function ShelfAccessoires(t){var i,r,o=t.item,a=t.grids,x=(0,u.NP)(),m=(0,l.useTranslation)(),g=(0,l.useDivaCore)().state,h=g.hidePrices,v=g.dimensions,b=v.isMobile,y=v.isTablet,j=(0,p.useState)(""),P=(0,d.Z)(j,2),w=P[0],A=P[1],S={},I={},k=void 0,E=!1,M={},_=(0,N.XI)({delayEnter:1500,hideOnScroll:!0}),z=(0,N.sJ)({isOpen:_[0],auto:!0,placement:x.getViewConfig().tooltipPosition||"left-center"});return b||y||x.getViewConfig().hideTooltip||(E=_[0],M=_[1],S=z.triggerProps,I=z.layerProps,k=z.renderLayer),(0,H.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({onClick:function onClick(){return x.paletteViewHandler.clickedOnShelfAccessorie(a,o.articleCodex,void 0,!0)},className:O.RV},S),M),{},{children:[(0,H.jsxs)("div",{className:c()(O.iZ,O.vc),children:[(0,H.jsx)("div",{className:c()(O.K5),style:{backgroundImage:"url(".concat(o.image,")")}}),(0,H.jsxs)("div",{className:c()(O.TX),children:[(0,H.jsx)("div",{className:c()(O.db,""!==w?O.Bm:void 0),dangerouslySetInnerHTML:{__html:o.name}}),(0,H.jsx)(C.default,{metaData:o.metaData,visible:[w,A]},o.articleCodex),(0,H.jsx)("div",{className:c()(O.WN),children:l.DivaUtils.sizeFormatter({width:o.width,height:o.height,depth:o.depth},m)})]})]}),!h&&!!o.price&&(0,H.jsx)(D.default,{price:o.price,style:{paddingTop:6}}),o.contentItemId&&(0,H.jsx)(Z.default,{item:o,style:{bottom:8,right:8}},o.articleCodex),E&&(null===(i=k)||void 0===i?void 0:i((0,H.jsx)(T.default,{text:null!==(r=o.longDescription)&&void 0!==r?r:o.name,desciption:w,image:o.image,codex:o.articleCodex,layerProps:I},o.articleCodex)))]}))}))},67442:(t,i,r)=>{r.r(i),r.d(i,{default:()=>S});var o=r(80248),d=r(34988),l=r(79837),a=r(71442),c=(r(87363),r(22881)),u=r(3985),x=r(27020),p=r(12478),m=r(38742),g=r(75327),h=r(65515),v=r.n(h),b=r(9420),y=r(67),j=r(26937),P=r(47514);function ownKeys(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);i&&(o=o.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),r.push.apply(r,o)}return r}function _objectSpread(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(r),!0).forEach((function(i){(0,o.Z)(t,i,r[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}))}return t}function _createForOfIteratorHelper(t,i){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function _unsupportedIterableToArray(t,i){if(t){if("string"==typeof t)return _arrayLikeToArray(t,i);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){r&&(t=r);var o=0,d=function F(){};return{s:d,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:d}}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,a=!0,c=!1;return{s:function s(){r=r.call(t)},n:function n(){var t=r.next();return a=t.done,t},e:function e(t){c=!0,l=t},f:function f(){try{a||null==r.return||r.return()}finally{if(c)throw l}}}}function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var r=0,o=Array(i);r<i;r++)o[r]=t[r];return o}var w=function accSize(t){var i,r,o;return(null!==(i=t.width)&&void 0!==i?i:0)*(null!==(r=t.height)&&void 0!==r?r:0)*(null!==(o=t.depth)&&void 0!==o?o:0)||t.cellSize||0},A=function isShelfAccessory(t){return"cellSize"in t};const S=(0,b.Pi)((function ShelfPlanner(t){var i,r,o,h,b,S,I,O,k,N,C,T=t.item,D=t.style,Z=t.filteredGroups,H=(0,g.NP)(),E=(null!==(i=null===(r=H.settingsState.settingsScrollerElement)||void 0===r?void 0:r.getBoundingClientRect().height)&&void 0!==i?i:0)-10,M=(null!==(o=null===(h=H.settingsState.settingsScrollerElement)||void 0===h?void 0:h.getBoundingClientRect().width)&&void 0!==o?o:0)-16,_=null!==(b=null==T||null===(S=T.shelfPlannerGrids)||void 0===S?void 0:S.find((function(t){return t.ActAccessoire})))&&void 0!==b?b:null==T||null===(I=T.shelfPlannerGrids)||void 0===I?void 0:I[0];if(!_)return(0,P.jsx)(P.Fragment,{});var z=(null!==(O=null===(k=Z[0])||void 0===k?void 0:k.items)&&void 0!==O?O:[]).filter(A),R=H.productState.useRtvNext||a.j4,L=R&&"autoPlaceDrag"===l.d?function collapseFamilies(t){var i,r,o=[],d=new Map,l=_createForOfIteratorHelper(t);try{for(l.s();!(i=l.n()).done;){var a=i.value,c=(r=void 0,null!==(r=a.accessoireFamily)&&void 0!==r?r:null);if(c){var u=d.get(c);void 0===u?(d.set(c,o.length),o.push(a)):w(a)>w(o[u])&&(o[u]=a)}else o.push(a)}}catch(t){l.e(t)}finally{l.f()}return o}(z):z,B=_.ActAccessoire,K=void 0;B&&(K=z.find((function(t){return t.articleCodex==B})));var U=_.getRequiredWarning(H.configState.lang),V=[];if(null!==(N=K)&&void 0!==N&&null!==(N=N.configStepKeys)&&void 0!==N&&N.length)for(var G=function _loop(){var t=K.configStepKeys[Y],i=H.settingsState.itemPaletteArr.find((function(i){var r=(0,d.Z)(i,2);r[0];return r[1].configStepKey==t.key}));if(!i)return 1;H.settingsState.selectedShelfAccessoire==t.basketId&&V.push(i[1])},Y=0;Y<K.configStepKeys.length;Y++)G();var W=H.getIsInMobileView()&&H.productState.shelfPlannerRTV;return(0,P.jsxs)("div",{ref:function ref(t){return T.htmlRef=t},className:v()(H.productState.shelfPlannerRTV?c.Ev:void 0,"horizontal"==_.Direction?c.dx:c.vU,H.uiState.configSettingsIsExpanded?c.zh:void 0),style:_objectSpread({height:E},D),children:[!H.productState.shelfPlannerRTV&&(0,P.jsx)("div",{className:c.wX,children:(0,P.jsx)("div",{className:c.Zh,children:(0,P.jsx)(m.default,{item:T,direction:_.Direction,width:M,height:E-16-16})})}),U&&(0,P.jsx)("div",{className:c.Kp,dangerouslySetInnerHTML:{__html:U}}),(0,P.jsxs)("div",{className:c.s0,children:[!!V.length&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:c.ne,onClick:function onClick(){return H.paletteViewHandler.setSelectedShelfAccessoire()},children:[(0,P.jsx)("div",{className:c.Ah}),(0,P.jsx)("div",{className:c.u2,children:null===(C=K)||void 0===C?void 0:C.name})]}),(0,P.jsx)(j.default,{itemPalettesArr:V})]}),!V.length&&(0,P.jsxs)(P.Fragment,{children:[!W&&(0,P.jsx)(y.default,{selAccItem:K}),(0,P.jsx)("div",{className:v()(c.QL,u.pw),style:{height:"horizontal"==_.Direction?E-80:"",overflow:W?"visible":void 0},children:L.map((function(t,i){var r;return(0,P.jsxs)(P.Fragment,{children:[H.productState.shelfPlannerRTV&&(0,P.jsx)(x.default,{grids:T.shelfPlannerGrids,item:t,sel:t.articleCodex==B||R&&!(null===(r=K)||void 0===r||!r.accessoireFamily)&&t.accessoireFamily===K.accessoireFamily},i),!H.productState.shelfPlannerRTV&&(0,P.jsx)(p.default,{grids:T.shelfPlannerGrids,item:t},i)]})}))})]})]})]})}))},67444:(t,i,r)=>{r.r(i),r.d(i,{default:()=>A});r(87363);var o=r(9420),d=r(93379),l=r.n(d),a=r(7795),c=r.n(a),u=r(90569),x=r.n(u),p=r(3565),m=r.n(p),g=r(19216),h=r.n(g),v=r(44589),b=r.n(v),y=r(91605),j={};j.styleTagTransform=b(),j.setAttributes=m(),j.insert=x().bind(null,"head"),j.domAPI=c(),j.insertStyleElement=h();l()(y.ZP,j);y.ZP&&y.ZP.locals&&y.ZP.locals;var P=r(75327),w=r(47514);const A=(0,o.Pi)((function ContentItemTeaser(t){var i=t.item,r=(0,P.NP)();return(0,w.jsxs)("div",{className:y.bz,children:[i.emoji&&(0,w.jsx)("div",{className:y.rP,children:i.emoji}),(0,w.jsx)("div",{className:y.TN,children:i.title}),(0,w.jsx)("div",{className:y.WL,children:i.description}),i.id&&(0,w.jsxs)("button",{className:y.LI,onClick:function onClick(){!function isUrl(t){return/^https?:\/\//.test(t)}(i.id)?r.settingsState.onClickContentItemId(i.id):window.open(i.id,"_blank","noopener,noreferrer")},children:[(0,w.jsx)("span",{className:y.q5,children:i.buttonText}),(0,w.jsx)("div",{className:y.x7,children:(0,w.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,w.jsx)("path",{d:"M5 12H19M19 12L13 6M19 12L13 18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})}))},81099:(t,i,r)=>{r.r(i),r.d(i,{default:()=>S});r(87363);var o=r(37486),d=r(75327),l=r(93379),a=r.n(l),c=r(7795),u=r.n(c),x=r(90569),p=r.n(x),m=r(3565),g=r.n(m),h=r(19216),v=r.n(h),b=r(44589),y=r.n(b),j=r(9668),P={};P.styleTagTransform=y(),P.setAttributes=g(),P.insert=p().bind(null,"head"),P.domAPI=u(),P.insertStyleElement=v();a()(j.ZP,P);j.ZP&&j.ZP.locals&&j.ZP.locals;var w=r(67444),A=r(47514);const S=function SettingsItemsGroup(t){var i=t.group;(0,d.NP)();return(0,A.jsxs)("div",{className:j.YS,children:[(0,A.jsx)("div",{className:j.t$,children:i.left.map((function(t){var r,d,l,a=i.palettes.find((function(i){return i.id===t}));return(0,A.jsxs)(A.Fragment,{children:["TOP"===(null===(r=a.contentItemTeaser)||void 0===r?void 0:r.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{}),(0,A.jsx)(o.default,{item:a,id:Number(a.id)},null!==(d=a.optionCodex)&&void 0!==d?d:a.configStepKey+a.id),"BOTTOM"===(null===(l=a.contentItemTeaser)||void 0===l?void 0:l.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{})]})}))}),(0,A.jsx)("div",{className:j.eX}),(0,A.jsx)("div",{className:j.F2,children:i.right.map((function(t){var r,d,l,a=i.palettes.find((function(i){return i.id===t}));return(0,A.jsxs)(A.Fragment,{children:["TOP"===(null===(r=a.contentItemTeaser)||void 0===r?void 0:r.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{}),(0,A.jsx)(o.default,{item:a,id:Number(a.id)},null!==(d=a.optionCodex)&&void 0!==d?d:a.configStepKey+a.id),"BOTTOM"===(null===(l=a.contentItemTeaser)||void 0===l?void 0:l.position)?(0,A.jsx)(w.default,{item:a.contentItemTeaser}):(0,A.jsx)(A.Fragment,{})]})}))})]})}},26937:(t,i,r)=>{r.r(i),r.d(i,{default:()=>m});var o=r(34988),d=r(87363),l=r(9420),a=r(37486),c=r(75327),u=r(81099),x=r(67444),p=r(47514);const m=(0,l.Pi)((function SettingsItemsWrapper(t){var i=t.itemPalettesArr,r=t.zIndexBase,l=(0,c.NP)(),m=(0,d.useState)([]),g=(0,o.Z)(m,2),h=g[0],v=g[1];return(0,d.useEffect)((function(){for(var t=[],r=function _loop(){var r=i[o],d=l.configuratorStructureHandler.getOptionStepByCodex(r.optionCodex),a=null==d?void 0:d.partOfGroup,c=t.find((function(t){var i;return(null!==(i=null==a?void 0:a.groupName)&&void 0!==i?i:r.configStepKey+r.id)===t.groupName}));if(c)c.palettes.push(r);else{var u,x={groupName:null!==(u=null==a?void 0:a.groupName)&&void 0!==u?u:r.configStepKey+r.id,palettes:[r],left:[],right:[]};t.push(x),c=x}"l"===(null==a?void 0:a.position)?c.left.push(r.id):"r"===(null==a?void 0:a.position)&&c.right.push(r.id)},o=0;o<i.length;o++)r();v(t)}),[i]),(0,p.jsx)(p.Fragment,{children:h.map((function(t){var i;if(t.palettes.length>1)return(0,p.jsx)(u.default,{group:t});var o=t.palettes[0].contentItemTeaser;return(0,p.jsxs)(p.Fragment,{children:["TOP"==(null==o?void 0:o.position)&&(0,p.jsx)(x.default,{item:o}),(0,p.jsx)(a.default,{item:t.palettes[0],id:Number(t.palettes[0].id),zIndexBase:r},(null!==(i=t.palettes[0].optionCodex)&&void 0!==i?i:t.palettes[0].configStepKey)+t.palettes[0].id),"BOTTOM"==(null==o?void 0:o.position)&&(0,p.jsx)(x.default,{item:o})]})}))})}))},22693:(t,i,r)=>{r.d(i,{U:()=>c,Z:()=>u});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--GuiBy {\n font-weight: 300;\n font-size: 18px;\n height: 22px;\n width: 22px;\n float: left;\n background: #f2f2f2;\n border-radius: 19.008px;\n -webkit-text-stroke: 0px;\n transition: background-color 0.15s ease;\n text-align: center;\n float: right;\n cursor: pointer;\n}\n\n.index-module--GuiBy:hover {\n background: #d9d9d9;\n color: #424242;\n}\n\n.index-module--GuiBy {\n line-height: 21px;\n}\n",""]);var c="index-module--GuiBy";const u=a},65655:(t,i,r)=>{r.d(i,{HE:()=>m,TN:()=>p,ZP:()=>g,jW:()=>x,nC:()=>c,pA:()=>u});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--E9hMP {\n position: relative;\n box-sizing: border-box;\n border: 3px solid transparent;\n border-radius: 6px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n transition:\n box-shadow 0.2s ease-in-out,\n border-color 0.2s ease-in-out;\n background: #f2f2f2;\n cursor: pointer;\n}\n\n.index-module--E9hMP.index-module--zq_sk {\n border-color: var(--primaryColor);\n}\n\n.index-module--E9hMP:hover {\n box-shadow: rgba(0, 0, 0,0.2) 0px 0px 16px 0px;\n}\n\n.index-module--E9hMP img {\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n.index-module--ASP_j {\n color: #4b4b4b;\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n height: 100%;\n}\n.index-module--xrQ6L {\n height: auto;\n margin: 0 3px;\n}\n\n.index-module--xrQ6L {\n font-weight: 600;\n font-size: 13px;\n line-height: 15px;\n}\n\n.index-module--fUvCj {\n position: fixed;\n left: 0;\n top: 0;\n pointer-events: none;\n z-index: 9999;\n opacity: 0.8;\n}\n",""]);var c="index-module--E9hMP",u="index-module--zq_sk",x="index-module--ASP_j",p="index-module--xrQ6L",m="index-module--fUvCj";const g=a},57771:(t,i,r)=>{r.d(i,{Bm:()=>h,K5:()=>p,RV:()=>c,TX:()=>m,WN:()=>v,ZP:()=>b,db:()=>g,iZ:()=>u,vc:()=>x});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,"/* Accessoires*/\n\n.index-module--ckN3g {\n border-radius: var(--globalBorderRadius);\n background: white;\n position: relative;\n display: flex;\n z-index: 100;\n}\n\n.index-module--ckN3g:hover {\n z-index: 200;\n}\n\n.index-module--ckN3g .index-module--9x5co {\n width: 98%;\n background: white;\n position: relative;\n border-radius: var(--globalBorderRadius);\n}\n\n.index-module--ckN3g .index-module--i6vXs {\n height: 80px;\n}\n\n.index-module--ckN3g .index-module--s5TT0 {\n width: 48px;\n float: left;\n height: 48px;\n}\n\n.index-module--ckN3g .index-module--i6vXs .index-module--Ab2VB {\n height: 80px;\n}\n\n.index-module--ckN3g .index-module--Ab2VB {\n width: 80px;\n float: left;\n border-radius: var(--globalBorderRadius) 0px 0px var(--globalBorderRadius);\n background-size: contain;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n}\n\n.index-module--S4zFL {\n float: left;\n width: calc(100% - 80px);\n position: relative;\n height: 100%;\n}\n.index-module--ckN3g .index-module--S4zFL {\n width: calc(100% - 150px);\n display: flex;\n flex-direction: column;\n height: calc(100% - 12px);\n justify-content: space-between;\n}\n\n.index-module--ckN3g .index-module--PoiMR {\n display: -webkit-box;\n float: left;\n max-height: 64px;\n min-height: 16px;\n margin-top: 14px;\n max-width: 100%;\n color: var(--secondaryColor);\n font-size: 16px;\n line-height: 20.8px;\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n position: relative;\n -webkit-hyphens: auto;\n hyphens: auto;\n z-index: 100;\n}\n\n.index-module--ckN3g .index-module--PoiMR.index-module--Khqca {\n -webkit-line-clamp: 1;\n}\n\n.index-module--ckN3g .index-module--gYuZ8 {\n display: -webkit-box;\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n font-size: 13px;\n line-height: 16px;\n color: #6f6f6f;\n width: 100%;\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n -webkit-hyphens: auto;\n hyphens: auto;\n z-index: 110;\n}\n@media all and (max-width: 1100px) {\n .index-module--ckN3g .index-module--i6vXs {\n height: 80px;\n }\n\n .index-module--ckN3g .index-module--i6vXs img {\n height: 80px;\n }\n}\n",""]);var c="index-module--ckN3g",u="index-module--9x5co",x="index-module--i6vXs",p="index-module--Ab2VB",m="index-module--S4zFL",g="index-module--PoiMR",h="index-module--Khqca",v="index-module--gYuZ8";const b=a},92800:(t,i,r)=>{r.d(i,{Ah:()=>T,Ev:()=>A,Kp:()=>k,QL:()=>S,ZP:()=>D,Zh:()=>w,dx:()=>v,ne:()=>N,o5:()=>I,s0:()=>y,u2:()=>C,um:()=>O,vU:()=>b,wX:()=>P,zh:()=>j});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l),c=r(61667),u=r.n(c),x=new URL(r(60267),r.b),p=new URL(r(18343),r.b),m=a()(d()),g=u()(x),h=u()(p);m.push([t.id,".index-module--Bn7HL {\n display: flex;\n width: 100%;\n}\n\n.index-module--HEzIS {\n display: flex;\n width: 100%;\n flex-direction: column;\n}\n\n.index-module--Bn7HL .index-module--_WYy_ {\n width: 60%;\n}\n\n.index-module--HEzIS .index-module--_WYy_ {\n width: 100%;\n height: 60%;\n}\n\n.index-module--OxqYJ.index-module--Bn7HL .index-module--rPMZf {\n width: 34%;\n}\n\n.index-module--Bn7HL .index-module--rPMZf {\n width: 40%;\n padding-right: 10px;\n}\n\n.index-module--HEzIS .index-module--rPMZf {\n width: 100%;\n height: 40%;\n padding: 0 0;\n margin: 10px 0;\n}\n\n.index-module--Bn7HL .index-module--TXuNM {\n border-top: solid #c7c7c7 1px;\n /* border-bottom: solid #c7c7c7 1px; */\n border-left: solid #c7c7c7 1px;\n border-right: solid #c7c7c7 1px;\n border-radius: 3px;\n}\n.index-module--HEzIS .index-module--TXuNM {\n border-left: solid #c7c7c7 1px;\n border-right: solid #c7c7c7 1px;\n border-radius: 3px;\n display: contents;\n}\n.index-module--OxqYJ.index-module--Bn7HL .index-module--_WYy_ {\n width: 66%;\n}\n\n.index-module--Da8N6.index-module--HGACp .index-module--_WYy_,\n.index-module--Bn7HL.index-module--HGACp .index-module--_WYy_ {\n width: 100%;\n}\n\n.index-module--GBUr1:first-child {\n padding-right: 10px;\n}\n\n.index-module--Bn7HL .index-module--HDgVo {\n height: 100%;\n overflow: auto;\n}\n\n.index-module--y8DIz {\n width: 100%;\n height: 75px;\n margin-bottom: 5px;\n}\n\n.index-module--Q2pqI {\n height: 75px;\n overflow: auto;\n}\n\n.index-module--y8DIz img {\n width: 100px;\n float: left;\n height: 75px;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n.index-module--sJPn7 {\n color: red;\n padding-bottom: 1rem;\n}\n.index-module--bdb6c {\n display: flex;\n align-items: center;\n gap: 12px;\n cursor: pointer;\n}\n\n.index-module--AJXPG {\n font-size: 18px;\n transition: font-size 0.3s ease;\n}\n\n.index-module--vl80_ {\n width: 50px;\n height: 50px;\n background: center / 35% no-repeat url("+g+");\n transition: background-size 0.3s ease, background-image 0.3s ease;\n}\n\n.index-module--bdb6c:hover .index-module--vl80_ {\n background: center / 40% no-repeat url("+h+");\n}\n\n.index-module--bdb6c:hover .index-module--AJXPG {\n font-size: 20px;\n}\n",""]);var v="index-module--Bn7HL",b="index-module--HEzIS",y="index-module--_WYy_",j="index-module--OxqYJ",P="index-module--rPMZf",w="index-module--TXuNM",A="index-module--HGACp",S="index-module--HDgVo",I="index-module--y8DIz",O="index-module--Q2pqI",k="index-module--sJPn7",N="index-module--bdb6c",C="index-module--AJXPG",T="index-module--vl80_";const D=m},91605:(t,i,r)=>{r.d(i,{LI:()=>m,TN:()=>x,WL:()=>p,ZP:()=>v,bz:()=>c,q5:()=>g,rP:()=>u,x7:()=>h});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--YvhoM {\n background-color: #e6f0fa;\n background-color: var(--diva-theme-palette-primary-light, #e6f0fa);\n padding: 12px 16px;\n border-radius: 8px;\n text-align: center;\n margin: 8px 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n font-family: inherit;\n width: 100%;\n box-sizing: border-box;\n}\n\n.index-module--xRF8A {\n font-size: 28px;\n margin-bottom: 2px;\n}\n\n.index-module--AkzgH {\n font-weight: 700;\n font-size: 16px;\n color: #000;\n margin: 0;\n line-height: 1.2;\n}\n\n.index-module--YcLKe {\n font-size: 15px;\n color: #333;\n margin: 0;\n line-height: 1.4;\n}\n.mobile .index-module--YcLKe {\n font-size: 13px;\n}\n\n.index-module--tZsne {\n margin-top: 10px;\n border: 2px solid #ff6b00;\n border: 2px solid var(--primaryColor, #ff6b00);\n color: #ff6b00;\n color: var(--primaryColor, #ff6b00);\n background: #fff;\n padding: 6px 16px;\n border-radius: 6px;\n font-weight: 700;\n font-size: 15px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n transition: all 0.2s ease;\n width: 100%;\n max-width: 280px;\n box-sizing: border-box;\n min-height: 40px;\n}\n\n.index-module--tZsne:hover {\n background-color: #ff6b00;\n background-color: var(--primaryColor, #ff6b00);\n color: #fff;\n}\n\n.index-module--KlW5i {\n flex: 1;\n text-align: center;\n padding: 0 24px;\n}\n\n.index-module--MViR0 {\n position: absolute;\n right: 12px;\n width: 20px;\n height: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.index-module--MViR0 svg {\n width: 100%;\n height: 100%;\n}\n",""]);var c="index-module--YvhoM",u="index-module--xRF8A",x="index-module--AkzgH",p="index-module--YcLKe",m="index-module--tZsne",g="index-module--KlW5i",h="index-module--MViR0";const v=a},9668:(t,i,r)=>{r.d(i,{F2:()=>x,YS:()=>c,ZP:()=>m,eX:()=>p,t$:()=>u});var o=r(8081),d=r.n(o),l=r(23645),a=r.n(l)()(d());a.push([t.id,".index-module--h2rQ7 {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n gap: 24px;\n}\n\n.mobile .index-module--h2rQ7 {\n gap: 8px;\n}\n\n.index-module--vn75Y {\n flex: 1;\n align-self: stretch;\n}\n\n.index-module--gupRY {\n flex: 1;\n align-self: stretch;\n}\n\n.index-module--lvlA1 {\n width: 1px;\n align-self: stretch;\n background-color: #ccc;\n}\n",""]);var c="index-module--h2rQ7",u="index-module--vn75Y",x="index-module--gupRY",p="index-module--lvlA1";const m=a},22881:(t,i,r)=>{r.d(i,{Ah:()=>b.Ah,Ev:()=>b.Ev,Kp:()=>b.Kp,QL:()=>b.QL,Zh:()=>b.Zh,dx:()=>b.dx,ne:()=>b.ne,o5:()=>b.o5,s0:()=>b.s0,u2:()=>b.u2,um:()=>b.um,vU:()=>b.vU,wX:()=>b.wX,zh:()=>b.zh});var o=r(93379),d=r.n(o),l=r(7795),a=r.n(l),c=r(90569),u=r.n(c),x=r(3565),p=r.n(x),m=r(19216),g=r.n(m),h=r(44589),v=r.n(h),b=r(92800),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=u().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=g();d()(b.ZP,y),b.ZP&&b.ZP.locals&&b.ZP.locals},60267:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAxMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDFMMSAxMUwxMSAyMSIgc3Ryb2tlPSIjNEY0RjRGIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"},18343:t=>{t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAxMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDFMMSAxMUwxMSAyMSIgc3Ryb2tlPSIjM2YzZjNmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K"}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 7654.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7654,6474,6587],{56474:(e,n,o)=>{o.r(n),o.d(n,{default:()=>I});var i=o(34988),t=o(75327),r=o(87363),d=o(93379),l=o.n(d),a=o(7795),s=o.n(a),c=o(90569),m=o.n(c),u=o(3565),p=o.n(u),x=o(19216),g=o.n(x),h=o(44589),v=o.n(h),b=o(84887),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=m().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=g();l()(b.Z,y);b.Z&&b.Z.locals&&b.Z.locals;var f=o(47514);const I=function MetaData(e){var n=e.style,o=e.metaData,d=e.visible,l=void 0===d?(0,r.useState)(""):d,a=(0,i.Z)(l,2),s=a[0],c=a[1],m=(0,t.NP)(),u=(0,r.useState)(""),p=(0,i.Z)(u,2),x=p[0],g=p[1],h=m.getViewConfig().displayMetaDatas,v=null==o?void 0:o.find((function(e){return null==h?void 0:h.includes(e.codex)}));return(0,r.useEffect)((function(){if(v){for(var e="",n=0;n<v.values.length;n++){""!==e&&(e+=", ");for(var i=function _loop(i){var t=null==o?void 0:o.find((function(e){return e.codex===h[i]}));if(!t)return 1;""!==e&&(e+=" "),e=e+(t.name?t.name+": ":"")+t.values[n]},t=0;t<h.length;t++)i(t)}g(e),c(e)}}),[]),s?(0,f.jsx)("div",{style:n,className:b.B,children:x}):(0,f.jsx)(f.Fragment,{})}},13703:(e,n,o)=>{o.r(n),o.d(n,{default:()=>I});var i=o(80248),t=o(34988),r=o(65515),d=o.n(r),l=o(75327),a=o(9420),s=o(87363),c=o(94873),m=o(13838),u=o(88683),p=o(86587),x=o(46770),g=o(56474),h=o(55461),v=o(21801),b=o(91087),y=o(19456),f=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,i)}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,i.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}const I=(0,a.Pi)((function Option(e){var n,o=e.item,i=e.paletteId,r=e.hidePricePreview,a=e.namePostFix,I=o,j=(0,l.NP)(),M=(0,u.useTranslation)().t,w=(0,u.useDivaCore)().state.dimensions,S=w.isMobile,N=w.isTablet,C=(0,s.useState)(""),z=(0,t.Z)(C,2),A=z[0],P=z[1],k={},Z={},O=void 0,E=!1,T={},L=(0,x.XI)({delayEnter:1500,hideOnScroll:!0}),D=(0,x.sJ)({isOpen:L[0],auto:!0,placement:j.getViewConfig().tooltipPosition||"left-center"});return S||N||j.getViewConfig().hideTooltip||!I.image&&!I.hexColor||I.contentItemId||(E=L[0],T=L[1],k=D.triggerProps,Z=D.layerProps,O=D.renderLayer),(0,f.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({id:I.codex,"data-test-id":"plannerPaletteItem",className:d()(c.CA,I.sel?c.pA:void 0),onClick:function onClick(){I.doShowFav&&j.paletteViewHandler.clickedOnFavIcon(I),j.paletteViewHandler.clickedOnConfigPalette(I,void 0,i)}},k),T),{},{children:[(0,f.jsxs)("div",{className:d()(c.iZ,c.NC),children:[I.sel&&(0,f.jsx)(p.default,{listenToOptionVariables:!0}),I.contentItemId&&(0,f.jsx)(v.default,{item:I,style:{bottom:8}},I.codex),"TEXT"==I.layout&&(0,f.jsx)("div",{className:c.$l}),!("TEXT"==I.layout)&&(0,f.jsx)("div",{className:c.K5,style:{backgroundImage:"url(".concat(I.image,")")}}),(0,f.jsxs)("div",{className:d()(c.AR,"TEXT"==I.layout?c.Eb:void 0),children:[(0,f.jsx)("div",{className:d()(c.db,""!==A?c.Bm:void 0),dangerouslySetInnerHTML:{__html:I.text+(a||"")}}),(0,f.jsx)(g.default,{style:{position:"relative",float:"left"},metaData:I.metaData,visible:[A,P]},I.codex)]}),E&&(null===(n=O)||void 0===n?void 0:n((0,f.jsx)(h.default,{text:I.text+(I.freeText?I.freeText:"")+(a||""),desciption:A,image:I.image,hexColor:I.hexColor,pricePreviewPromise:I.pricePreviewPromise,layerProps:Z},I.codex))),I.doShowFav&&(0,f.jsx)("div",{className:I.isFav?m.Md:m.Hq})]}),!r&&void 0!==I.pricePreviewPromise&&(0,f.jsx)(b.default,{asyncPricePreview:I.pricePreviewPromise,sel:I.sel}),void 0!==I.checkForReversingChanges&&(0,f.jsx)(y.default,{item:I,paletteId:i}),I.disabledByConstructionRule&&(0,f.jsx)("div",{className:d()(c.ox),title:M("configurator."+I.disabledByConstructionRule)})]}))}))},86587:(e,n,o)=>{o.r(n),o.d(n,{default:()=>d});var i=o(80248),t=(o(87363),o(2765)),r=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,i)}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,i.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}const d=function IsActive(e){return(0,r.jsx)(t.ZP,_objectSpread(_objectSpread({},e),{},{componentName:"Settings/SettingsScroller/SettingsItem/ItemPalette/Options/IsActive"}))}},84887:(e,n,o)=>{o.d(n,{B:()=>l,Z:()=>a});var i=o(8081),t=o.n(i),r=o(23645),d=o.n(r)()(t());d.push([e.id,".index-module--hpPAb {\n display: -webkit-box;\n max-height: 64px;\n min-height: 16px;\n color: var(--secondaryColor);\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n position: relative;\n -webkit-hyphens: auto;\n hyphens: auto;\n z-index: 100;\n font-size: 13px;\n line-height: 16px;\n color: var(--secondaryColor);\n width: 100%;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--hpPAb,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--hpPAb {\n color: #fff;\n}\n",""]);var l="index-module--hpPAb";const a=d},6284:(e,n,o)=>{o.d(n,{$l:()=>v,AR:()=>y,Bm:()=>j,CA:()=>u,Eb:()=>f,K5:()=>b,NC:()=>h,ZP:()=>w,db:()=>I,iZ:()=>x,ox:()=>M,pA:()=>p,vc:()=>g});var i=o(8081),t=o.n(i),r=o(23645),d=o.n(r),l=o(61667),a=o.n(l),s=new URL(o(63173),o.b),c=d()(t()),m=a()(s);c.push([e.id,"/*ConfigPalette with Normal & Small */\n\n.index-module--FGg5H {\n border-radius: var(--globalBorderRadius);\n background: white;\n position: relative;\n display: flex;\n flex-wrap: 100%;\n z-index: 100;\n transition: all 0.15s ease;\n cursor: pointer;\n border: var(--optionItemBorder) solid transparent;\n border: var(--optionItemBorder) solid var(--optionItemBorderColor, transparent);\n white-space: pre-line;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--FGg5H,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--FGg5H {\n background-color: #374c86;\n}\n\n.index-module--zZnWk {\n border: var(--optionItemBorder) solid var(--primaryColor);\n border: var(--optionItemBorder) solid var(--optionItemBorderSelColor, var(--primaryColor));\n}\n\n.index-module--FGg5H:hover {\n box-shadow: 0px 1px 4px rgba(68, 49, 49, 0.15);\n z-index: 200;\n transition: 0.15s ease;\n border: var(--optionItemBorder) solid var(--primaryColor);\n border: var(--optionItemBorder) solid var(--optionItemBorderHoverColor, var(--primaryColor));\n}\n.index-module--FGg5H:active {\n box-shadow: 0px 1px 4px rgba(68, 49, 49, 0.6);\n z-index: 200;\n transition: 0.15s ease;\n}\n\n.index-module--FGg5H .index-module--pQje2 {\n width: 98%;\n background: white;\n position: relative;\n /* border-radius: var(--globalBorderRadius);*/\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--FGg5H .index-module--pQje2,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--FGg5H .index-module--pQje2 {\n background-color: #374c86;\n}\n\n.index-module--FGg5H.index-module--OqFNz {\n width: 48%;\n float: left;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.index-module--FGg5H .index-module--pQje2.index-module--CcpMC {\n height: 80px;\n}\n\n.index-module--FGg5H .index-module--pQje2.index-module--II_8j {\n height: 64px;\n}\n\n.index-module--FGg5H .index-module--dUy8g {\n width: 18px;\n float: left;\n height: 48px;\n}\n\n.index-module--FGg5H .index-module--CcpMC .index-module--Z8KXz {\n height: 80px;\n width: 112px;\n}\n\n.index-module--FGg5H .index-module--II_8j .index-module--Z8KXz {\n height: 64px;\n width: 96px;\n}\n.index-module--FGg5H.index-module--OqFNz .index-module--Z8KXz {\n height: 64px;\n width: 64px;\n}\n\n.index-module--FGg5H .index-module--Z8KXz {\n float: left;\n\n user-select: none;\n -moz-user-select: none;\n -webkit-user-drag: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: left center;\n}\n\n.index-module--m9VzR {\n float: left;\n max-height: 64px;\n margin-top: 11.2px;\n margin-left: 11.2px;\n max-width: calc(100% - 128px);\n}\n\n.index-module--Y5eRx {\n max-width: calc(100% - 32px);\n}\n\n.index-module--FGg5H.index-module--OqFNz .index-module--m9VzR {\n max-width: 50%;\n margin-top: 17.6px;\n}\n\n.index-module--FGg5H .index-module--mZh26 {\n display: -webkit-box;\n min-height: 16px;\n border-radius: var(--globalBorderRadius);\n color: var(--secondaryColor);\n font-size: 16px;\n line-height: 20.8px;\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n position: relative;\n -webkit-hyphens: auto;\n hyphens: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--FGg5H .index-module--mZh26,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--FGg5H .index-module--mZh26 {\n color: #fff;\n}\n\n.index-module--FGg5H .index-module--mZh26.index-module--NabGm {\n -webkit-line-clamp: 1;\n}\n\n.index-module--CcpMC .index-module--mZh26 {\n -webkit-line-clamp: 3;\n}\n\n.index-module--II_8j .index-module--mZh26 {\n -webkit-line-clamp: 2;\n}\n\n@media all and (max-width: 1100px) {\n .index-module--FGg5H .index-module--CcpMC {\n height: 80px;\n }\n\n .index-module--FGg5H .index-module--CcpMC img {\n height: 80px;\n }\n\n .index-module--m9VzR {\n -webkit-line-clamp: 2;\n max-width: calc(100% - 128px);\n margin-top: 11.2px;\n /*Hier noch falls 2 spaltig wieder einspaltig machen*/\n }\n}\n\n.index-module--iEJ0N {\n float: right;\n z-index: 900;\n}\n\n.index-module--MhR1_ .index-module--iEJ0N {\n float: right;\n margin-right: 11.2px;\n width: auto;\n}\n\n.index-module--2NJnv {\n display: block;\n height: 30px;\n background-image: url("+m+");\n width: 30px;\n background-repeat: no-repeat;\n background-size: contain;\n padding: 0;\n position: absolute;\n z-index: 888;\n bottom: calc(50% - 15px);\n right: 1rem;\n}\n",""]);var u="index-module--FGg5H",p="index-module--zZnWk",x="index-module--pQje2",g="index-module--CcpMC",h="index-module--II_8j",v="index-module--dUy8g",b="index-module--Z8KXz",y="index-module--m9VzR",f="index-module--Y5eRx",I="index-module--mZh26",j="index-module--NabGm",M="index-module--2NJnv";const w=c},94873:(e,n,o)=>{o.d(n,{$l:()=>g.$l,AR:()=>g.AR,Bm:()=>g.Bm,CA:()=>g.CA,Eb:()=>g.Eb,K5:()=>g.K5,NC:()=>g.NC,db:()=>g.db,iZ:()=>g.iZ,ox:()=>g.ox,pA:()=>g.pA,vc:()=>g.vc});var i=o(93379),t=o.n(i),r=o(7795),d=o.n(r),l=o(90569),a=o.n(l),s=o(3565),c=o.n(s),m=o(19216),u=o.n(m),p=o(44589),x=o.n(p),g=o(6284),h={};h.styleTagTransform=x(),h.setAttributes=c(),h.insert=a().bind(null,"head"),h.domAPI=d(),h.insertStyleElement=u();t()(g.ZP,h),g.ZP&&g.ZP.locals&&g.ZP.locals},63173:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMS4zMTExNyAwIDAgMS4zMDIzOSA3MzcuMzkgMTU5LjkxKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGlkPSIwIiB5Mj0iLS41OTkiIHgyPSIwIiB5MT0iNDUuNDciPjxzdG9wIHN0b3AtY29sb3I9IiNmZmM1MTUiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmQ1NWIiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyB0cmFuc2Zvcm09Im1hdHJpeCguODU3MTQgMCAwIC44NTcxNC02MjcuMDItMTMwLjgpIj48cGF0aCBkPSJtNzk3Ljk0IDIxMi4wMWwtMjUuNjA3LTQ4Yy0uNzM2LTEuMzMzLTIuMDY4LTIuMDc0LTMuNTUxLTIuMDc0LTEuNDgzIDAtMi44MjIuODg5LTMuNTY5IDIuMjIybC0yNS40MTcgNDhjLS41OTggMS4xODUtLjYwNSAyLjgxNS4xMzIgNCAuNzM3IDEuMTg1IDEuOTIxIDEuNzc4IDMuNDA0IDEuNzc4aDUxLjAyYzEuNDgzIDAgMi44MjEtLjc0MSAzLjQyLTEuOTI2Ljc0Ny0xLjE4NS43NTMtMi42NjcuMTY1LTQiIGZpbGw9InVybCgjMCkiLz48cGF0aCBkPSJtLTI2LjMwOSAxOC4wN2MtMS4xOCAwLTIuMTM1Ljk2OC0yLjEzNSAyLjEyOXYxMi44MmMwIDEuMTc2Ljk0OCAyLjEyOSAyLjEzNSAyLjEyOSAxLjE4MyAwIDIuMTM1LS45NjggMi4xMzUtMi4xMjl2LTEyLjgyYzAtMS4xNzYtLjk0Ni0yLjEyOS0yLjEzNS0yLjEyOXptMCAyMS4zNDhjLTEuMTggMC0yLjEzNS45NTQtMi4xMzUgMi4xMzUgMCAxLjE4Ljk1NCAyLjEzNSAyLjEzNSAyLjEzNSAxLjE4MSAwIDIuMTM1LS45NTQgMi4xMzUtMi4xMzUgMC0xLjE4LS45NTItMi4xMzUtMi4xMzUtMi4xMzV6IiB0cmFuc2Zvcm09Im1hdHJpeCgxLjA1MTk2IDAgMCAxLjA1MTk2IDc5Ni41MyAxNjEuODcpIiBmaWxsPSIjMDAwIiBzdHJva2U9IiM0MDMzMGQiIGZpbGwtb3BhY2l0eT0iLjc1Ii8+PC9nPjwvc3ZnPg=="},16008:(e,n,o)=>{o.d(n,{Z:()=>r});var i=o(59654),t=o(47514);const r=(0,i.Z)((0,t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},75275:(e,n,o)=>{o.d(n,{Z:()=>r});var i=o(59654),t=o(47514);const r=(0,i.Z)((0,t.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning")},59654:(e,n,o)=>{o.d(n,{Z:()=>createSvgIcon});var i=o(87363),t=o(87726),r=o(91104),d=o(94299),l=o(5230),a=o(90659),s=o(56047),c=o(18685),m=o(36735);function getSvgIconUtilityClass(e){return(0,m.ZP)("MuiSvgIcon",e)}(0,c.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var u=o(47514);const p=(0,l.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:o}=e;return[n.root,"inherit"!==o.color&&n[`color${(0,d.Z)(o.color)}`],n[`fontSize${(0,d.Z)(o.fontSize)}`]]}})((0,a.Z)((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([n])=>({props:{color:n},style:{color:(e.vars??e).palette?.[n]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),x=i.forwardRef((function SvgIcon(e,n){const o=(0,s.i)({props:e,name:"MuiSvgIcon"}),{children:l,className:a,color:c="inherit",component:m="svg",fontSize:x="medium",htmlColor:g,inheritViewBox:h=!1,titleAccess:v,viewBox:b="0 0 24 24",...y}=o,f=i.isValidElement(l)&&"svg"===l.type,I={...o,color:c,component:m,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:b,hasSvgAsChild:f},j={};h||(j.viewBox=b);const M=(e=>{const{color:n,fontSize:o,classes:i}=e,t={root:["root","inherit"!==n&&`color${(0,d.Z)(n)}`,`fontSize${(0,d.Z)(o)}`]};return(0,r.Z)(t,getSvgIconUtilityClass,i)})(I);return(0,u.jsxs)(p,{as:m,className:(0,t.Z)(M.root,a),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:n,...j,...y,...f&&l.props,ownerState:I,children:[f?l.props.children:l,v?(0,u.jsx)("title",{children:v}):null]})}));x.muiName="SvgIcon";const g=x;function createSvgIcon(e,n){function Component(n,o){return(0,u.jsx)(g,{"data-testid":void 0,ref:o,...n,children:e})}return Component.muiName=g.muiName,i.memo(i.forwardRef(Component))}}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7654,6474,6587],{56474:(e,n,o)=>{o.r(n),o.d(n,{default:()=>I});var i=o(34988),t=o(75327),r=o(87363),d=o(93379),l=o.n(d),a=o(7795),s=o.n(a),c=o(90569),m=o.n(c),u=o(3565),p=o.n(u),x=o(19216),g=o.n(x),h=o(44589),v=o.n(h),b=o(84887),y={};y.styleTagTransform=v(),y.setAttributes=p(),y.insert=m().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=g();l()(b.Z,y);b.Z&&b.Z.locals&&b.Z.locals;var f=o(47514);const I=function MetaData(e){var n=e.style,o=e.metaData,d=e.visible,l=void 0===d?(0,r.useState)(""):d,a=(0,i.Z)(l,2),s=a[0],c=a[1],m=(0,t.NP)(),u=(0,r.useState)(""),p=(0,i.Z)(u,2),x=p[0],g=p[1],h=m.getViewConfig().displayMetaDatas,v=null==o?void 0:o.find((function(e){return null==h?void 0:h.includes(e.codex)}));return(0,r.useEffect)((function(){if(v){for(var e="",n=0;n<v.values.length;n++){""!==e&&(e+=", ");for(var i=function _loop(i){var t=null==o?void 0:o.find((function(e){return e.codex===h[i]}));if(!t)return 1;""!==e&&(e+=" "),e=e+(t.name?t.name+": ":"")+t.values[n]},t=0;t<h.length;t++)i(t)}g(e),c(e)}}),[]),s?(0,f.jsx)("div",{style:n,className:b.B,children:x}):(0,f.jsx)(f.Fragment,{})}},13703:(e,n,o)=>{o.r(n),o.d(n,{default:()=>I});var i=o(80248),t=o(34988),r=o(65515),d=o.n(r),l=o(75327),a=o(9420),s=o(87363),c=o(94873),m=o(13838),u=o(88683),p=o(86587),x=o(58292),g=o(56474),h=o(55461),v=o(21801),b=o(91087),y=o(19456),f=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,i)}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,i.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}const I=(0,a.Pi)((function Option(e){var n,o=e.item,i=e.paletteId,r=e.hidePricePreview,a=e.namePostFix,I=o,j=(0,l.NP)(),M=(0,u.useTranslation)().t,w=(0,u.useDivaCore)().state.dimensions,S=w.isMobile,N=w.isTablet,C=(0,s.useState)(""),z=(0,t.Z)(C,2),A=z[0],P=z[1],k={},Z={},O=void 0,E=!1,T={},L=(0,x.XI)({delayEnter:1500,hideOnScroll:!0}),D=(0,x.sJ)({isOpen:L[0],auto:!0,placement:j.getViewConfig().tooltipPosition||"left-center"});return S||N||j.getViewConfig().hideTooltip||!I.image&&!I.hexColor||I.contentItemId||(E=L[0],T=L[1],k=D.triggerProps,Z=D.layerProps,O=D.renderLayer),(0,f.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({id:I.codex,"data-test-id":"plannerPaletteItem",className:d()(c.CA,I.sel?c.pA:void 0),onClick:function onClick(){I.doShowFav&&j.paletteViewHandler.clickedOnFavIcon(I),j.paletteViewHandler.clickedOnConfigPalette(I,void 0,i)}},k),T),{},{children:[(0,f.jsxs)("div",{className:d()(c.iZ,c.NC),children:[I.sel&&(0,f.jsx)(p.default,{listenToOptionVariables:!0}),I.contentItemId&&(0,f.jsx)(v.default,{item:I,style:{bottom:8}},I.codex),"TEXT"==I.layout&&(0,f.jsx)("div",{className:c.$l}),!("TEXT"==I.layout)&&(0,f.jsx)("div",{className:c.K5,style:{backgroundImage:"url(".concat(I.image,")")}}),(0,f.jsxs)("div",{className:d()(c.AR,"TEXT"==I.layout?c.Eb:void 0),children:[(0,f.jsx)("div",{className:d()(c.db,""!==A?c.Bm:void 0),dangerouslySetInnerHTML:{__html:I.text+(a||"")}}),(0,f.jsx)(g.default,{style:{position:"relative",float:"left"},metaData:I.metaData,visible:[A,P]},I.codex)]}),E&&(null===(n=O)||void 0===n?void 0:n((0,f.jsx)(h.default,{text:I.text+(I.freeText?I.freeText:"")+(a||""),desciption:A,image:I.image,hexColor:I.hexColor,pricePreviewPromise:I.pricePreviewPromise,layerProps:Z},I.codex))),I.doShowFav&&(0,f.jsx)("div",{className:I.isFav?m.Md:m.Hq})]}),!r&&void 0!==I.pricePreviewPromise&&(0,f.jsx)(b.default,{asyncPricePreview:I.pricePreviewPromise,sel:I.sel}),void 0!==I.checkForReversingChanges&&(0,f.jsx)(y.default,{item:I,paletteId:i}),I.disabledByConstructionRule&&(0,f.jsx)("div",{className:d()(c.ox),title:M("configurator."+I.disabledByConstructionRule)})]}))}))},86587:(e,n,o)=>{o.r(n),o.d(n,{default:()=>d});var i=o(80248),t=(o(87363),o(2765)),r=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,i)}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,i.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}const d=function IsActive(e){return(0,r.jsx)(t.ZP,_objectSpread(_objectSpread({},e),{},{componentName:"Settings/SettingsScroller/SettingsItem/ItemPalette/Options/IsActive"}))}},84887:(e,n,o)=>{o.d(n,{B:()=>l,Z:()=>a});var i=o(8081),t=o.n(i),r=o(23645),d=o.n(r)()(t());d.push([e.id,".index-module--hpPAb {\n display: -webkit-box;\n max-height: 64px;\n min-height: 16px;\n color: var(--secondaryColor);\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 1;\n position: relative;\n -webkit-hyphens: auto;\n hyphens: auto;\n z-index: 100;\n font-size: 13px;\n line-height: 16px;\n color: var(--secondaryColor);\n width: 100%;\n -webkit-user-select: text;\n -moz-user-select: text;\n user-select: text;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--hpPAb,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--hpPAb {\n color: #fff;\n}\n",""]);var l="index-module--hpPAb";const a=d},6284:(e,n,o)=>{o.d(n,{$l:()=>v,AR:()=>y,Bm:()=>j,CA:()=>u,Eb:()=>f,K5:()=>b,NC:()=>h,ZP:()=>w,db:()=>I,iZ:()=>x,ox:()=>M,pA:()=>p,vc:()=>g});var i=o(8081),t=o.n(i),r=o(23645),d=o.n(r),l=o(61667),a=o.n(l),s=new URL(o(63173),o.b),c=d()(t()),m=a()(s);c.push([e.id,"/*ConfigPalette with Normal & Small */\n\n.index-module--FGg5H {\n border-radius: var(--globalBorderRadius);\n background: white;\n position: relative;\n display: flex;\n flex-wrap: 100%;\n z-index: 100;\n transition: all 0.15s ease;\n cursor: pointer;\n border: var(--optionItemBorder) solid transparent;\n border: var(--optionItemBorder) solid var(--optionItemBorderColor, transparent);\n white-space: pre-line;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--FGg5H,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--FGg5H {\n background-color: #374c86;\n}\n\n.index-module--zZnWk {\n border: var(--optionItemBorder) solid var(--primaryColor);\n border: var(--optionItemBorder) solid var(--optionItemBorderSelColor, var(--primaryColor));\n}\n\n.index-module--FGg5H:hover {\n box-shadow: 0px 1px 4px rgba(68, 49, 49, 0.15);\n z-index: 200;\n transition: 0.15s ease;\n border: var(--optionItemBorder) solid var(--primaryColor);\n border: var(--optionItemBorder) solid var(--optionItemBorderHoverColor, var(--primaryColor));\n}\n.index-module--FGg5H:active {\n box-shadow: 0px 1px 4px rgba(68, 49, 49, 0.6);\n z-index: 200;\n transition: 0.15s ease;\n}\n\n.index-module--FGg5H .index-module--pQje2 {\n width: 98%;\n background: white;\n position: relative;\n /* border-radius: var(--globalBorderRadius);*/\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--FGg5H .index-module--pQje2,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--FGg5H .index-module--pQje2 {\n background-color: #374c86;\n}\n\n.index-module--FGg5H.index-module--OqFNz {\n width: 48%;\n float: left;\n margin-left: 1%;\n margin-right: 1%;\n}\n\n.index-module--FGg5H .index-module--pQje2.index-module--CcpMC {\n height: 80px;\n}\n\n.index-module--FGg5H .index-module--pQje2.index-module--II_8j {\n height: 64px;\n}\n\n.index-module--FGg5H .index-module--dUy8g {\n width: 18px;\n float: left;\n height: 48px;\n}\n\n.index-module--FGg5H .index-module--CcpMC .index-module--Z8KXz {\n height: 80px;\n width: 112px;\n}\n\n.index-module--FGg5H .index-module--II_8j .index-module--Z8KXz {\n height: 64px;\n width: 96px;\n}\n.index-module--FGg5H.index-module--OqFNz .index-module--Z8KXz {\n height: 64px;\n width: 64px;\n}\n\n.index-module--FGg5H .index-module--Z8KXz {\n float: left;\n\n user-select: none;\n -moz-user-select: none;\n -webkit-user-drag: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: left center;\n}\n\n.index-module--m9VzR {\n float: left;\n max-height: 64px;\n margin-top: 11.2px;\n margin-left: 11.2px;\n max-width: calc(100% - 128px);\n}\n\n.index-module--Y5eRx {\n max-width: calc(100% - 32px);\n}\n\n.index-module--FGg5H.index-module--OqFNz .index-module--m9VzR {\n max-width: 50%;\n margin-top: 17.6px;\n}\n\n.index-module--FGg5H .index-module--mZh26 {\n display: -webkit-box;\n min-height: 16px;\n border-radius: var(--globalBorderRadius);\n color: var(--secondaryColor);\n font-size: 16px;\n line-height: 20.8px;\n overflow: hidden;\n word-wrap: break-word;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n position: relative;\n -webkit-hyphens: auto;\n hyphens: auto;\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--FGg5H .index-module--mZh26,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--FGg5H .index-module--mZh26 {\n color: #fff;\n}\n\n.index-module--FGg5H .index-module--mZh26.index-module--NabGm {\n -webkit-line-clamp: 1;\n}\n\n.index-module--CcpMC .index-module--mZh26 {\n -webkit-line-clamp: 3;\n}\n\n.index-module--II_8j .index-module--mZh26 {\n -webkit-line-clamp: 2;\n}\n\n@media all and (max-width: 1100px) {\n .index-module--FGg5H .index-module--CcpMC {\n height: 80px;\n }\n\n .index-module--FGg5H .index-module--CcpMC img {\n height: 80px;\n }\n\n .index-module--m9VzR {\n -webkit-line-clamp: 2;\n max-width: calc(100% - 128px);\n margin-top: 11.2px;\n /*Hier noch falls 2 spaltig wieder einspaltig machen*/\n }\n}\n\n.index-module--iEJ0N {\n float: right;\n z-index: 900;\n}\n\n.index-module--MhR1_ .index-module--iEJ0N {\n float: right;\n margin-right: 11.2px;\n width: auto;\n}\n\n.index-module--2NJnv {\n display: block;\n height: 30px;\n background-image: url("+m+");\n width: 30px;\n background-repeat: no-repeat;\n background-size: contain;\n padding: 0;\n position: absolute;\n z-index: 888;\n bottom: calc(50% - 15px);\n right: 1rem;\n}\n",""]);var u="index-module--FGg5H",p="index-module--zZnWk",x="index-module--pQje2",g="index-module--CcpMC",h="index-module--II_8j",v="index-module--dUy8g",b="index-module--Z8KXz",y="index-module--m9VzR",f="index-module--Y5eRx",I="index-module--mZh26",j="index-module--NabGm",M="index-module--2NJnv";const w=c},94873:(e,n,o)=>{o.d(n,{$l:()=>g.$l,AR:()=>g.AR,Bm:()=>g.Bm,CA:()=>g.CA,Eb:()=>g.Eb,K5:()=>g.K5,NC:()=>g.NC,db:()=>g.db,iZ:()=>g.iZ,ox:()=>g.ox,pA:()=>g.pA,vc:()=>g.vc});var i=o(93379),t=o.n(i),r=o(7795),d=o.n(r),l=o(90569),a=o.n(l),s=o(3565),c=o.n(s),m=o(19216),u=o.n(m),p=o(44589),x=o.n(p),g=o(6284),h={};h.styleTagTransform=x(),h.setAttributes=c(),h.insert=a().bind(null,"head"),h.domAPI=d(),h.insertStyleElement=u();t()(g.ZP,h),g.ZP&&g.ZP.locals&&g.ZP.locals},63173:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGdyYWRpZW50VHJhbnNmb3JtPSJtYXRyaXgoMS4zMTExNyAwIDAgMS4zMDIzOSA3MzcuMzkgMTU5LjkxKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGlkPSIwIiB5Mj0iLS41OTkiIHgyPSIwIiB5MT0iNDUuNDciPjxzdG9wIHN0b3AtY29sb3I9IiNmZmM1MTUiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmQ1NWIiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48ZyB0cmFuc2Zvcm09Im1hdHJpeCguODU3MTQgMCAwIC44NTcxNC02MjcuMDItMTMwLjgpIj48cGF0aCBkPSJtNzk3Ljk0IDIxMi4wMWwtMjUuNjA3LTQ4Yy0uNzM2LTEuMzMzLTIuMDY4LTIuMDc0LTMuNTUxLTIuMDc0LTEuNDgzIDAtMi44MjIuODg5LTMuNTY5IDIuMjIybC0yNS40MTcgNDhjLS41OTggMS4xODUtLjYwNSAyLjgxNS4xMzIgNCAuNzM3IDEuMTg1IDEuOTIxIDEuNzc4IDMuNDA0IDEuNzc4aDUxLjAyYzEuNDgzIDAgMi44MjEtLjc0MSAzLjQyLTEuOTI2Ljc0Ny0xLjE4NS43NTMtMi42NjcuMTY1LTQiIGZpbGw9InVybCgjMCkiLz48cGF0aCBkPSJtLTI2LjMwOSAxOC4wN2MtMS4xOCAwLTIuMTM1Ljk2OC0yLjEzNSAyLjEyOXYxMi44MmMwIDEuMTc2Ljk0OCAyLjEyOSAyLjEzNSAyLjEyOSAxLjE4MyAwIDIuMTM1LS45NjggMi4xMzUtMi4xMjl2LTEyLjgyYzAtMS4xNzYtLjk0Ni0yLjEyOS0yLjEzNS0yLjEyOXptMCAyMS4zNDhjLTEuMTggMC0yLjEzNS45NTQtMi4xMzUgMi4xMzUgMCAxLjE4Ljk1NCAyLjEzNSAyLjEzNSAyLjEzNSAxLjE4MSAwIDIuMTM1LS45NTQgMi4xMzUtMi4xMzUgMC0xLjE4LS45NTItMi4xMzUtMi4xMzUtMi4xMzV6IiB0cmFuc2Zvcm09Im1hdHJpeCgxLjA1MTk2IDAgMCAxLjA1MTk2IDc5Ni41MyAxNjEuODcpIiBmaWxsPSIjMDAwIiBzdHJva2U9IiM0MDMzMGQiIGZpbGwtb3BhY2l0eT0iLjc1Ii8+PC9nPjwvc3ZnPg=="},16008:(e,n,o)=>{o.d(n,{Z:()=>r});var i=o(59654),t=o(47514);const r=(0,i.Z)((0,t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block")},75275:(e,n,o)=>{o.d(n,{Z:()=>r});var i=o(59654),t=o(47514);const r=(0,i.Z)((0,t.jsx)("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"}),"Warning")},59654:(e,n,o)=>{o.d(n,{Z:()=>createSvgIcon});var i=o(87363),t=o(87726),r=o(91104),d=o(94299),l=o(5230),a=o(90659),s=o(56047),c=o(18685),m=o(36735);function getSvgIconUtilityClass(e){return(0,m.ZP)("MuiSvgIcon",e)}(0,c.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var u=o(47514);const p=(0,l.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:o}=e;return[n.root,"inherit"!==o.color&&n[`color${(0,d.Z)(o.color)}`],n[`fontSize${(0,d.Z)(o.fontSize)}`]]}})((0,a.Z)((({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter((([,e])=>e&&e.main)).map((([n])=>({props:{color:n},style:{color:(e.vars??e).palette?.[n]?.main}}))),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),x=i.forwardRef((function SvgIcon(e,n){const o=(0,s.i)({props:e,name:"MuiSvgIcon"}),{children:l,className:a,color:c="inherit",component:m="svg",fontSize:x="medium",htmlColor:g,inheritViewBox:h=!1,titleAccess:v,viewBox:b="0 0 24 24",...y}=o,f=i.isValidElement(l)&&"svg"===l.type,I={...o,color:c,component:m,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:b,hasSvgAsChild:f},j={};h||(j.viewBox=b);const M=(e=>{const{color:n,fontSize:o,classes:i}=e,t={root:["root","inherit"!==n&&`color${(0,d.Z)(n)}`,`fontSize${(0,d.Z)(o)}`]};return(0,r.Z)(t,getSvgIconUtilityClass,i)})(I);return(0,u.jsxs)(p,{as:m,className:(0,t.Z)(M.root,a),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:n,...j,...y,...f&&l.props,ownerState:I,children:[f?l.props.children:l,v?(0,u.jsx)("title",{children:v}):null]})}));x.muiName="SvgIcon";const g=x;function createSvgIcon(e,n){function Component(n,o){return(0,u.jsx)(g,{"data-testid":void 0,ref:o,...n,children:e})}return Component.muiName=g.muiName,i.memo(i.forwardRef(Component))}}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 7909.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7909],{87909:(t,r,a)=>{a.r(r),a.d(r,{default:()=>y});var o=a(12952),l=a(84658),i=a(13125),c=a(43860),d=a(80248),u=a(50747),g=a.n(u),h=a(57312),P=a(69369),p=a(60415),m=a(95212),D=a(64357),v=a(65411);function parseSetPlanData(t){var r=P.ZP.decodeBase64(t);return JSON.parse(r)}function isSavePlannerV2(t){return 2===t.v}function saveElementArticleCodex(t){return t.articleCodex||t.Codex}var k=a(58178);function _createForOfIteratorHelper(t,r){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var o=0,l=function F(){};return{s:l,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:l}}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 i,c=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return c=t.done,t},e:function e(t){d=!0,i=t},f:function f(){try{c||null==a.return||a.return()}finally{if(d)throw i}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,o=Array(r);a<r;a++)o[a]=t[a];return o}var E=P.ZP.initLog("Planner","WEB-PLANNER-LOGIC"),I=["AVO","AVU","AVC","AVS","AVN"],y=function(){function DivaStandardPlanner(t,r,a,o,l,c){var u=this;(0,i.Z)(this,DivaStandardPlanner),(0,d.Z)(this,"plannerID",void 0),(0,d.Z)(this,"set",void 0),(0,d.Z)(this,"plannerBoundingBox",void 0),(0,d.Z)(this,"plannerElements",void 0),(0,d.Z)(this,"doDisablePlanner2D",!1),(0,d.Z)(this,"plannerHasStaticBackground",void 0),(0,d.Z)(this,"isIDM3DCat",!1),(0,d.Z)(this,"IDM3DCatCodex",""),(0,d.Z)(this,"IDM3DEnvironment","diva.ro"),(0,d.Z)(this,"nextElementId",1),(0,d.Z)(this,"collisionHandler",void 0),(0,d.Z)(this,"dockToAVUorAVOororAVNorAVSorAVC",(function(t,r){var a=function hasFreeDP(r){return t.getFreeDockingPointsByType(r).length>0};if(a("AVU")){var o=v.Z.tryDockElement(t,"AVU",r);if(o)return u.updateWorldPos(t,o),!0;for(var l=0;l<r.length;l++){var i=r[l].getCurrentAccessorires().map((function(t){return u.plannerElements.get(t.getElementId())}));if(u.dockToAVUorAVOororAVNorAVSorAVC(t,i))return!0}}if(a("AVO")){var c=v.Z.tryDockElement(t,"AVO",r);if(c)return u.updateWorldPos(t,c),!0}if(a("AVN")){var d=v.Z.tryDockElement(t,"AVN",r);if(d)return u.updateWorldPos(t,d),!0}if(a("AVS")){var g=v.Z.tryDockElement(t,"AVS",r);if(g)return u.updateWorldPos(t,g),!0}if(a("AVC")){var h=v.Z.tryDockElement(t,"AVC",r);if(h)return u.updateWorldPos(t,h),!0}return!1})),this.set=t,this.plannerID=a,this.plannerElements=new Map,this.plannerBoundingBox=new k.Z,this.plannerBoundingBox.initPlannerBBox(o),this.doDisablePlanner2D=l,this.collisionHandler={updatePlannerMsgContainer:r,collisionDetected:!1,collisionPairs:[]},this.plannerHasStaticBackground=c}return(0,c.Z)(DivaStandardPlanner,[{key:"updatePlannerPosNr",value:function updatePlannerPosNr(){var t,r=this,a=[],o=new Map,l=this;this.plannerElements.forEach((function(t,r){o.set(r,!0),t.IsDockedAccessoire||t.HasAVL&&t.dockingTypeIsDocking("AVL")||a.push(t)})),this.getCatalogData().dontSetPosNrFromPlanner||(a=a.sort((function(t,r){return t.WorldPosCenter.x-r.WorldPosCenter.x})));for(var i=function updateAccessoiresOfElement(a,c){for(var d=[],u=function setPosNrForElementsOnDock(r,i){if(a["Has"+r]){var d=a.getDockingDockingPointsByType(r);d=d.sort((function(t,r){return l.plannerElements.get(t.OnElementId).WorldPosCorner.x-l.plannerElements.get(r.OnElementId).WorldPosCorner.x}));for(var u=0;u<d.length;u++){var g=d[u].OnElementId;if(o.has(g)){var h=l.plannerElements.get(g);h.PosNr=c,h.AccessoirePosNr=t,o.delete(g),t++,i.push(h)}}}},g=0;g<I.length;g++)u(I[g],d);r.plannerElements.forEach((function(r){r.getIsNotDockedAccessoire()&&r.getParentElementId()===a.getElementId()&&(r.PosNr=c,r.AccessoirePosNr=t,o.delete(r.getElementId()),t++,d.push(r))}));for(var h=0;h<d.length;h++)i(d[h],c)},c=function updatePosInChain(r,a){if(null==r)return a;if(r.PosNr=a,t=1,o.delete(r.ElementId),i(r,a),a++,r.HasAVR&&r.dockingTypeIsDocking("AVR")){var d=r.getDockingDockingPointsByType("AVR")[0].OnElementId;return c(l.plannerElements.get(d),a)}return a},d=1,u=0;u<a.length;u++)d=c(a[u],d)}},{key:"updateWorldPos",value:function updateWorldPos(t,r){var a=!1,o=this.plannerElements.get(r.OnElementId),l=o.getDockingPointById(r.OnDP.DpId);if(null==l)return a;this.applyDockTransform(t,o,r,l),a=this.set.onDockingChanged(t.ElementId,o.ElementId,"DOCK",r.Type);var i=this.set.getPlannerData(t.ElementId);t.updatePlannerData(i);var c=this.set.getPlannerData(o.ElementId);return o.updatePlannerData(c),a}},{key:"applyDockTransform",value:function applyDockTransform(t,r,a,o){var l=(0,p.eY)(r,o,t,a);t.RotDeg=l.rotDeg,t.WorldPosCorner=new D.P(l.worldPosCorner.x,l.worldPosCorner.y,l.worldPosCorner.z),t.WorldPosCornerIgnoreOLF=new D.P(l.worldPosCornerIgnoreOLF.x,l.worldPosCornerIgnoreOLF.y,l.worldPosCornerIgnoreOLF.z)}},{key:"getDockSnapPreview",value:function getDockSnapPreview(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=this.plannerElements.get(t);if(!o)return null;var l,i=this.getAllPlannerElements().filter((function(r){return r.getElementId()!==t&&!a.includes(r.getElementId())})),c=v.Z.searchDockableElementsInArea(o,i,r);if(!c||0===c.size)return null;if(c.forEach((function(t){(null==l||t.distance<l.distance)&&(l=t)})),null==l)return null;var d=this.plannerElements.get(l.targetDP.ElementId);if(!d)return null;var u=o.RotDeg,g=o.WorldPosCenter,h=g.x,P=g.y,p=g.z;this.applyDockTransform(o,d,l.sourceDP,l.targetDP);var m=o.WorldPosCenter,k={dx:m.x-h,dz:m.z-p,dRotDeg:o.RotDeg-u};return o.RotDeg=u,o.WorldPosCenter=new D.P(h,P,p),k}},{key:"updateAllElementsWorldPos",value:function updateAllElementsWorldPos(t,r){if(this.doDisablePlanner2D)return!1;var a=function getDockedDPsInPriorityOrder(t){return t.getDockingDockingPointsByType("AVL").concat(t.getDockingDockingPointsByType("AVR")).concat(t.getDockingDockingPointsByType("AVU")).concat(t.getDockingDockingPointsByType("AVO")).concat(t.getDockingDockingPointsByType("AVN")).concat(t.getDockingDockingPointsByType("AVS")).concat(t.getDockingDockingPointsByType("AVC"))},o=!1,l=[],i=[];this.plannerElements.forEach((function(t,r){t.IsDockedAccessoire?i.push(t):l[t.PosNr-1]=t})),l=l.concat(i);for(var c=[],d=0,u=0;u<l.length;u++)if(l[u]){var g=l[u];if(c.push(g.ElementId),u>d)for(var h=a(g),P=0;P<h.length;P++)if(c.indexOf(h[P].OnElementId)>=0){o=this.updateWorldPos(g,h[P]);break}}else d=u;if(r&&r.length>0)for(var p=new Set(r),m=!0;m;){m=!1;var D,v=_createForOfIteratorHelper(l);try{for(v.s();!(D=v.n()).done;){var k=D.value;if(k&&!p.has(k.ElementId)){var E=a(k).find((function(t){return p.has(t.OnElementId)}));E&&(o=this.updateWorldPos(k,E)||o,p.add(k.ElementId),m=!0)}}}catch(t){v.e(t)}finally{v.f()}}return this.checkCollision(!1,t),o}},{key:"addElementToWorld",value:(b=(0,l.Z)(g().mark((function _callee(t,r,a,o){var l,i,c,d,u,h,P,p,m,k,E,I,y=arguments;return g().wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:if(l=y.length>4&&void 0!==y[4]?y[4]:100,!(i=y.length>5?y[5]:void 0)||!i.forceSetToTrans){g.next=8;break}t.WorldPosCenter=i.transform.worldPosCenter,t.RotDeg=i.transform.rotDeg,this.set.onDockingChanged(t.ElementId,-1,"NOT_DOCKED"),g.next=48;break;case 8:if(c=!1,!r){g.next=47;break}d=0;case 11:if(!(d<r.length)){g.next=47;break}if(u=r[d].targetElemIdToDock,h=r[d].targetDockingPointId,!(u&&u>-1&&this.plannerElements.has(u))){g.next=44;break}if(!h||""==h){g.next=32;break}if(!(P=this.plannerElements.get(u))){g.next=30;break}if(!(p=P.getDockingPointById(h))){g.next=30;break}if(!(m=v.Z.tryDockElementToDP(t,P,p))){g.next=26;break}this.updateWorldPos(t,m),c=!0,g.next=30;break;case 26:return g.next=28,this.tryToDockWithDifferentSVGWithFormula(t,u);case 28:if(!g.sent){g.next=30;break}c=!0;case 30:g.next=44;break;case 32:if(k=!1,(t.HasAVL||t.HasAVR)&&(k=this.dockToAVLorAVR(t,[this.plannerElements.get(u)])),k||(k=this.dockToAVUorAVOororAVNorAVSorAVC(t,[this.plannerElements.get(u)])),k){g.next=43;break}return g.next=38,this.tryToDockWithDifferentSVGWithFormula(t,u);case 38:if(k=g.sent){g.next=43;break}return g.next=42,this.addElementToWorld(t,void 0,void 0,void 0,50);case 42:return g.abrupt("return");case 43:k&&(c=!0);case 44:d++,g.next=11;break;case 47:c||(E=this.getAllPlannerElements(),I=this.dockToAVLorAVR(t,E),a&&(I=!1),I||(I=this.dockToAVUorAVOororAVNorAVSorAVC(t,E),a&&(I=!1),I||(null==o&&(t.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+this.plannerBoundingBox.Size.x+(0==this.plannerBoundingBox.Size.x?0:t.Width/2+l),this.plannerBoundingBox.WorldPos.y,this.plannerBoundingBox.WorldPos.z+t.Depth/2)),this.set.onDockingChanged(t.ElementId,-1,"NOT_DOCKED"))));case 48:this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.updatePlannerPosNr(),this.checkCollision(!1,t.getElementId()),this.updatePlannerBoundingBox();case 53:case"end":return g.stop()}}),_callee,this)}))),function addElementToWorld(t,r,a,o){return b.apply(this,arguments)})},{key:"tryToDockWithDifferentSVGWithFormula",value:(C=(0,l.Z)(g().mark((function _callee2(t,r){var a,o,l,i,c,d,u,h,p,m,D,v,k;return g().wrap((function _callee2$(g){for(;;)switch(g.prev=g.next){case 0:if(a=!1,o=this.set.getArticleByElementId(t.ElementId),l=null==o?void 0:o.VariantValues,i=t.getSVGsWithFormula(),!t.FilterAVL.length&&!t.FilterAVR.length){g.next=52;break}if(null==i||!i.length){g.next=18;break}c=0;case 7:if(!(c<i.length)){g.next=18;break}return d=P.ZP.getVariantValuesFromRule(i[c].JsFormula,{}),g.next=11,this.applyVariantValuesAndTryDock(t,r,d);case 11:if(!(a=g.sent)){g.next=15;break}return E.debug("svgWithFormula nr: "+c+" did dock: "+i[c].SVG),g.abrupt("break",18);case 15:c++,g.next=7;break;case 18:if(a||!o){g.next=31;break}u=this.getVariantValuesMatchingTargetFilters(o,this.plannerElements.get(r)),h=0;case 21:if(!(h<u.length&&h<20)){g.next=31;break}return g.next=24,this.applyVariantValuesAndTryDock(t,r,u[h]);case 24:if(!(a=g.sent)){g.next=28;break}return E.debug("following variantValues matching the target avl/avr filter did dock: ",u[h]),g.abrupt("break",31);case 28:h++,g.next=21;break;case 31:if(null==(p=t.getVaraintValuesInfluencingAVLAVRFilter())||!p.length||a){g.next=44;break}m=0;case 34:if(!(m<p.length&&m<20)){g.next=44;break}return g.next=37,this.applyVariantValuesAndTryDock(t,r,p[m]);case 37:if(!(a=g.sent)){g.next=41;break}return E.debug("following variantValues did dock: ",p[m]),g.abrupt("break",44);case 41:m++,g.next=34;break;case 44:if(a){g.next=52;break}for(k in D=new Map,v=new Map,l)v.set(k,l[k]);return D.set(t.ElementId,v),g.next=51,this.set.updateCfgValuesByPlanner(D,!0);case 51:o&&this.commitPendingConnectorFilters(o);case 52:return g.abrupt("return",a);case 53:case"end":return g.stop()}}),_callee2,this)}))),function tryToDockWithDifferentSVGWithFormula(t,r){return C.apply(this,arguments)})},{key:"applyVariantValuesAndTryDock",value:(A=(0,l.Z)(g().mark((function _callee3(t,r,a){var o,l,i,c;return g().wrap((function _callee3$(d){for(;;)switch(d.prev=d.next){case 0:for(i in o=new Map,l=new Map,a)l.set(i,a[i]);return o.set(t.ElementId,l),d.next=6,this.set.updateCfgValuesByPlanner(o,!0);case 6:return(c=this.set.getArticleByElementId(t.ElementId))&&this.commitPendingConnectorFilters(c),d.abrupt("return",this.dockToAVLorAVR(t,[this.plannerElements.get(r)]));case 9:case"end":return d.stop()}}),_callee3,this)}))),function applyVariantValuesAndTryDock(t,r,a){return A.apply(this,arguments)})},{key:"commitPendingConnectorFilters",value:function commitPendingConnectorFilters(t){t.newPossibleAVRFilters&&(t.avr=t.newPossibleAVRFilters,t.newPossibleAVRFilters=void 0),t.newPossibleAVLFilters&&(t.avl=t.newPossibleAVLFilters,t.newPossibleAVLFilters=void 0)}},{key:"getVariantValuesMatchingTargetFilters",value:function getVariantValuesMatchingTargetFilters(t,r){if(!r)return[];var a=t.CatalogData.isIDMFormat?"":"OPT",o=t.CatalogData.isIDMFormat?"":"OPV",l=[],i=new Set,c=function collect(r,c){var d,u=_createForOfIteratorHelper(c);try{for(u.s();!(d=u.n()).done;){var g,h=d.value,P=_createForOfIteratorHelper(t.getVariantValuesInfluencingOptions([a+r],o+h));try{for(P.s();!(g=P.n()).done;){var p=g.value,m=JSON.stringify(p);i.has(m)||(i.add(m),l.push(p))}}catch(t){P.e(t)}finally{P.f()}}}catch(t){u.e(t)}finally{u.f()}};return c("89",r.FilterAVR),c("90",r.FilterAVL),l}},{key:"dockToAVLorAVR",value:function dockToAVLorAVR(t,r){var a=!1,o=!1;if(t.HasAVL){var l=v.Z.tryDockElement(t,"AVL",r);l&&(this.updateWorldPos(t,l),a=!0)}if(!a&&t.HasAVR){var i=v.Z.tryDockElement(t,"AVR",r);i&&(o=!0,this.updateWorldPos(t,i))}return a||o}},{key:"getAllViewPlannerElements",value:function getAllViewPlannerElements(){return this.getAllPlannerElements()}},{key:"getFreeDockingPointsByElementId",value:function getFreeDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return{dockingPoints:[],filter:[]};var a=this.plannerElements.get(t),o=a.getFreeDockingPointsByType(r),l=[];switch(r){case"AVR":l=a.getFilterAVR();break;case"AVL":l=a.getFilterAVL()}return{dockingPoints:o,filter:l}}},{key:"getDockedDockingPointsByElementId",value:function getDockedDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return[];for(var a=this.plannerElements.get(t),o=[],l=0;l<r.length;l++)o=o.concat(a.getDockingDockingPointsByType(r[l]));return o}},{key:"getNeighborElements",value:function getNeighborElements(t,r){if(!this.plannerElements.has(t))return[];var a=this.plannerElements.get(t),o=null==a?void 0:a.getDockingDockingPointsByType(r);if(!o)return[];for(var l=[],i=0;i<(null==o?void 0:o.length);i++)null!=o[i]&&l.push(o[i].OnElementId);return l}},{key:"getDockedGroups",value:function getDockedGroups(){for(var t=[],r=this.getAllPlannerElements(),a=[],o=0;o<this.getAllPlannerElements().length;o++){var l=r[o];if(a.push(l.getElementId()),!l.IsAccessoire){var i=l.getDockingPointsByType("AVL");if(i&&0!=i.length)for(var c=0;c<i.length;c++)i[c].IsDocking||t.push(l);else t.push(l)}}t.sort((function(t,r){return t.WorldPosCorner.x<r.WorldPosCorner.x?1:0}));var d=[],u=function removeFromElementsToAdd(t){var r=a.indexOf(t);r>=0&&a.splice(r,1)};for(o=0;o<t.length;o++){var g=t[o],h=[];u(g.getElementId());for(var P=!1,p=g;!P;){h.push(p.getElementId()),u(p.getElementId());var m=this.getAccessoiresRecursive(p.getElementId());for(c=0;c<m.length;c++)h.push(m[c]),u(m[c]);var D=this.getNeighborElements(p.getElementId(),"AVR");D&&0!=D.length?p=this.plannerElements.get(D[0]):P=!0}d.push(h)}for(o=0;o<a.length;o++)d.push([a[o]]);return d}},{key:"getAccessoiresRecursive",value:function getAccessoiresRecursive(t){var r=this,a=function calcAccs(t,o,l){l.push(t);for(var i=r.getNeighborElements(t,"AVC"),c=r.getNeighborElements(t,"AVO"),d=r.getNeighborElements(t,"AVU"),u=r.getNeighborElements(t,"AVN"),g=r.getNeighborElements(t,"AVS"),h=i.concat(c).concat(d).concat(u).concat(g),P=0;P<h.length;P++)l.indexOf(h[P])>=0||(o.push(h[P]),l.push(h[P]),a(h[P],o,l))},o=[];return a(t,o,[]),o}},{key:"getBoundingBox",value:function getBoundingBox(){return this.plannerBoundingBox}},{key:"initIDM3DMeta",value:function initIDM3DMeta(t,r){this.isIDM3DCat=!0,this.IDM3DCatCodex=t||this.set.getCatalogCodex(),r&&(this.IDM3DEnvironment=r)}},{key:"updatePlanner",value:(x=(0,l.Z)(g().mark((function _callee4(){var t,r,a,o,l,i;return g().wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:t=this.getAllPlannerElements(),r=[],a=0;case 3:if(!(a<t.length)){c.next=13;break}if(!(o=t[a]).updatePlannerData(this.set.getPlannerData(o.getElementId()))){c.next=10;break}return r.push(o.ElementId),c.next=10,m.Z.loadSVG(o,this.set);case 10:a++,c.next=3;break;case 13:if(l=[],r.length){for(E.debug("Configuration changed one plannerElement. UpdateDockingRelations","DivaStandardPlanner - updatePlanner"),i=v.Z.updateDockingRelations(this.plannerElements),a=0;a<i.length;a++)i[a].IsDockedAccessoire&&l.push(i[a].ElementId);this.updateAllElementsWorldPos(void 0,r),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}return c.abrupt("return",{doDeleteBackGrid:!1,elemIdsToDelete:l,elementIdsToUpdateSelection:r,failed:!1});case 16:case"end":return c.stop()}}),_callee4,this)}))),function updatePlanner(){return x.apply(this,arguments)})},{key:"extendPlanner",value:(y=(0,l.Z)(g().mark((function _callee5(t,r){var a,l,i,c,d,u,p,k,I,y,x,A,C,b,V,S,B,w,T,N;return g().wrap((function _callee5$(g){for(;;)switch(g.prev=g.next){case 0:if(!isSavePlannerV2(a=parseSetPlanData(t))){g.next=39;break}l=a.set.elements,i=[],c=[],d=new Map,u=0;case 7:if(!(u<l.length)){g.next=35;break}if(g.prev=8,I=l[u],this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(p=saveElementArticleCodex(I))&&void 0!==p?p:"")||null===(k=I.AccessoireInitParams)||void 0===k||!k.RelatedToBasketID||this.set.getSetState.onlyRunLogic){g.next=14;break}return E.error(new P.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),g.abrupt("continue",32);case 14:if(y=new h.Z(this.set.getSetId(),I.basketID,this.nextElementId,DivaStandardPlanner.plannerType),d.set(I.elementID,y),this.nextElementId=y.getElementId()+1,this.plannerElements.set(y.ElementId,y),this.set.setElementId(I.basketID,y.ElementId),x=this.set.getPlannerData(y.ElementId),y.updatePlannerData(x),this.doDisablePlanner2D){g.next=24;break}return g.next=24,m.Z.loadSVG(y,this.set);case 24:y.WorldPosCenter=new D.P(r.WorldPos.x+r.Size.x+I.x+100,r.WorldPos.y+I.y,r.WorldPos.z+I.z),y.RotDeg=I.rot,y.IsDockedAccessoire?(c.push(I),y.PosNr=I.posNr,null!=I.accNr&&(y.AccessoirePosNr=I.accNr)):(i[I.posNr-1]=I,y.PosNr=I.posNr),g.next=32;break;case 29:g.prev=29,g.t0=g.catch(8),E.error(new P.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{cause:g.t0,code:"WC_0012"}));case 32:u++,g.next=7;break;case 35:for(A=[].concat((0,o.Z)(i.filter((function(t){return null!=t}))),c),u=0;u<A.length;u++)if(C=A[u],b=d.get(C.elementID),A.length>1&&u>0)for(V=C.DP,S=0;S<V.length;S++)B=V[S],w=null==b?void 0:b.getDockingPointById(B.id),T=d.get(B.onID),N=null==T?void 0:T.getDockingPointById(B.onDPID),w&&N&&v.Z.tryDockElementDPToDP(b,T,w,N);g.next=40;break;case 39:E.error(new P.GE("The function extend Planner works only with products that are saved in the configurator 2.0",{code:"WC_0012"}));case 40:case"end":return g.stop()}}),_callee5,this,[[8,29]])}))),function extendPlanner(t,r){return y.apply(this,arguments)})},{key:"initPlanner",value:(u=(0,l.Z)(g().mark((function _callee6(t){var r,a,l,i,c,d,u,p,k,I,y,x,A,C,b,V,S,B,w,T,N,W,O,_,L,Z,R,M,G,H,z,U,X,Y,$,J,j,K,q,Q,ee,ne,te,re,ae,oe,le,ie,se,ce,de,ue;return g().wrap((function _callee6$(g){for(;;)switch(g.prev=g.next){case 0:if(!isSavePlannerV2(r=parseSetPlanData(t))){g.next=63;break}if(E.debug("Initialize set Plan Data - V2\n"+r,"DivaStandardPlanner initPlanner"),null!==(a=r.set)&&void 0!==a&&null!==(a=a.elements)&&void 0!==a&&a.length){g.next=5;break}return g.abrupt("return");case 5:l=r.set.elements,i=[],c=[],d=0;case 9:if(!(d<l.length)){g.next=37;break}if(g.prev=10,k=l[d],this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(u=saveElementArticleCodex(k))&&void 0!==u?u:"")||null===(p=k.AccessoireInitParams)||void 0===p||!p.RelatedToBasketID||this.set.getSetState.onlyRunLogic){g.next=16;break}return E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),g.abrupt("continue",34);case 16:if(I=k.elementID,y=new h.Z(this.set.getSetId(),k.basketID,I,DivaStandardPlanner.plannerType),this.nextElementId=I+1,this.plannerElements.set(y.ElementId,y),this.set.setElementId(k.basketID,y.ElementId),x=this.set.getPlannerData(y.ElementId),y.updatePlannerData(x),this.doDisablePlanner2D){g.next=26;break}return g.next=26,m.Z.loadSVG(y,this.set);case 26:y.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+k.x,this.plannerBoundingBox.WorldPos.y+k.y,this.plannerBoundingBox.WorldPos.z+k.z),y.RotDeg=k.rot,y.IsDockedAccessoire?(c.push(k),y.PosNr=k.posNr,null!=k.accNr&&(y.AccessoirePosNr=k.accNr)):(i[k.posNr-1]=k,y.PosNr=k.posNr),g.next=34;break;case 31:g.prev=31,g.t0=g.catch(10),E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{cause:g.t0,code:"WC_0012"}));case 34:d++,g.next=9;break;case 37:A=1==i.filter(Boolean).length,C=[].concat((0,o.Z)(i.filter((function(t){return null!=t}))),c),d=0;case 40:if(!(d<C.length)){g.next=61;break}if(g.prev=41,b=C[d],0!=d||!A||!this.plannerHasStaticBackground){g.next=48;break}return null!=(null==(V=i[d])?void 0:V.x)||null!=(null==V?void 0:V.y)||null!=(null==V?void 0:V.z)||(S=this.plannerElements.get(b.elementID))&&(S.WorldPosCenter=new D.P(0,S.Height/2,S.Depth/2)),g.abrupt("continue",58);case 48:if(null!=b.DP&&0!=b.DP.length){g.next=50;break}return g.abrupt("continue",58);case 50:for(B=b.DP,w=0;w<B.length;w++)(T=B[w]).id&&null!=T.onID&&T.onDPID&&(N=this.plannerElements.get(b.elementID),W=null==N?void 0:N.getDockingPointById(T.id),O=this.plannerElements.get(T.onID),_=null==O?void 0:O.getDockingPointById(T.onDPID),W&&_?W.IsDocking&&W.OnDP==_||v.Z.tryDockElementDPToDP(N,O,W,_)||this.doDisablePlanner2D||E.error(new P.GE("Saved docking relation rejected on init: "+T.id+" (elem "+(null==N?void 0:N.ElementId)+") -> "+T.onDPID+" (elem "+(null==O?void 0:O.ElementId)+")",{code:"WC_0012"})):this.doDisablePlanner2D||E.error(new P.GE("Error initializing docking point between source element with id: "+(null==N?void 0:N.ElementId)+" and target Element with id: "+(null==O?void 0:O.ElementId)+". SourceDPID: "+T.id+"; targetDPID: "+T.onDPID)));g.next=58;break;case 54:g.prev=54,g.t1=g.catch(41),Z=null===(L=C[d])||void 0===L?void 0:L.elementID,E.error(new P.GE("Error initializing dockingPoints of element with elementID "+Z,{cause:g.t1,code:"WC_0012"}));case 58:d++,g.next=40;break;case 61:g.next=116;break;case 63:if(E.debug("Initialize set Plan Data - old V1\n"+r,"DivaStandardPlanner initPlanner"),null!=(G=null===(R=r.Sets)||void 0===R?void 0:R[0])&&null!==(M=G.Elements)&&void 0!==M&&M.length){g.next=67;break}return g.abrupt("return");case 67:H=G.Elements,z=[],U=[],d=0;case 71:if(!(d<H.length)){g.next=105;break}if(g.prev=72,$=H[d],this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(X=saveElementArticleCodex($))&&void 0!==X?X:"")||null===(Y=$.AccessoireInitParams)||void 0===Y||!Y.RelatedToBasketID||this.set.getSetState.onlyRunLogic){g.next=78;break}return E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V1",{code:"WC_0012"})),g.abrupt("continue",102);case 78:if(J=$.BasketID,-1==this.set.getElementId(J)&&this.set.setElementId(J,Number($.ID)),j=this.set.getElementId(J),$.elementId=j,-1!=j){g.next=85;break}return E.error(new P.GE("Error when initializing planner. The elementID Was not saved in the article. ",{code:"WC_0012"})),g.abrupt("continue",102);case 85:if(K=new h.Z(this.set.getSetId(),J,j,DivaStandardPlanner.plannerType),this.nextElementId=j+1,this.plannerElements.set(K.ElementId,K),q=this.set.getPlannerData(K.ElementId),K.updatePlannerData(q),this.doDisablePlanner2D){g.next=93;break}return g.next=93,m.Z.loadSVG(K,this.set);case 93:Q=new D.P($.PosX,$.PosZ,$.PosY),K.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+Q.x,this.plannerBoundingBox.WorldPos.y+Q.y,this.plannerBoundingBox.WorldPos.z+Q.z),K.RotDeg=$.Rot,K.IsDockedAccessoire?(U.push($),$.PosNum.toString().indexOf(".")>0&&(ee=$.PosNum.toString().split(".")[0],ne=$.PosNum.toString().split(".")[1],K.PosNr=Number(ee),K.AccessoirePosNr=Number(ne))):(z[$.PosNum-1]=$,K.PosNr=$.PosNum),g.next=102;break;case 99:g.prev=99,g.t2=g.catch(72),E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner - Plan Data old Planner",{cause:g.t2,code:"WC_0012"}));case 102:d++,g.next=71;break;case 105:te=[].concat((0,o.Z)(z.filter((function(t){return null!=t}))),U),d=0;case 107:if(!(d<te.length)){g.next=116;break}if(null!=(re=te[d]).DP&&0!=re.DP.length){g.next=111;break}return g.abrupt("continue",113);case 111:for(ae=re.DP,w=0;w<ae.length;w++)(oe=ae[w]).DP&&""!=oe.DP&&oe.onID&&""!=oe.onID&&(ie=parseInt(String(oe.onID)),se=oe.DP,ce=null!=re.elementId?this.plannerElements.get(re.elementId):void 0,de=null!==(le=this.plannerElements.get(ie))&&void 0!==le?le:this.getPlannerElementByIndex(ie-1),ce&&de?v.Z.initDockingPointRelationByArea(ce,de,se):E.error(new P.GE("Error initializing dockingPoints of element with elementID "+re.elementId,{code:"WC_0012"})));case 113:d++,g.next=107;break;case 116:this.plannerElements.forEach((function(t){!t.IsDockedAccessoire&&(null==ue||t.PosNr<ue.PosNr)&&(ue=t)})),this.updateAllElementsWorldPos(void 0,ue?[ue.ElementId]:void 0),this.updatePlannerPosNr();case 119:case"end":return g.stop()}}),_callee6,this,[[10,31],[41,54],[72,99]])}))),function initPlanner(t){return u.apply(this,arguments)})},{key:"getPlannerElementByIndex",value:function getPlannerElementByIndex(t){var r=void 0,a=0;return this.plannerElements.forEach((function(o,l){t==a&&(r=o),a++})),r}},{key:"addPlannerElement",value:(a=(0,l.Z)(g().mark((function _callee7(t,r){var a,o,l,i,c,d,u;return g().wrap((function _callee7$(g){for(;;)switch(g.prev=g.next){case 0:if(c=new h.Z(this.set.getSetId(),t,this.nextElementId,DivaStandardPlanner.plannerType),this.nextElementId++,this.plannerElements.set(c.ElementId,c),this.set.setElementId(t,c.ElementId),d=this.set.getPlannerData(c.ElementId),c.updatePlannerData(d),this.doDisablePlanner2D){g.next=9;break}return g.next=9,m.Z.loadSVG(c,this.set);case 9:if(null==(u=null!==(a=r.dockingPointInfos)&&void 0!==a?a:[{targetDockingPointId:r.targetDockingPointId,targetElemIdToDock:r.targetElemIdToDock}])||null===(o=u[0])||void 0===o||!o.targetElemIdToDock||null==u||null===(l=u[0])||void 0===l||!l.targetDockingPointId){g.next=15;break}return g.next=13,this.addElementToWorld(c,u);case 13:g.next=27;break;case 15:if(null==u||null===(i=u[0])||void 0===i||!i.targetElemIdToDock){g.next=20;break}return g.next=18,this.addElementToWorld(c,u);case 18:g.next=27;break;case 20:if(!r.oldPlannerTransform){g.next=25;break}return g.next=23,this.addElementToWorld(c,void 0,void 0,void 0,void 0,{forceSetToTrans:!0,transform:r.oldPlannerTransform});case 23:g.next=27;break;case 25:return g.next=27,this.addElementToWorld(c);case 27:this.updatePlannerBoundingBox();case 28:case"end":return g.stop()}}),_callee7,this)}))),function addPlannerElement(t,r){return a.apply(this,arguments)})},{key:"movePlannerElement",value:function movePlannerElement(){throw Error("move planner not implemented in standard")}},{key:"copyPlannerElement",value:(r=(0,l.Z)(g().mark((function _callee8(t,r){var a,o,l,i,c,d;return g().wrap((function _callee8$(u){for(;;)switch(u.prev=u.next){case 0:a=0;case 1:if(!(a<t.length)){u.next=24;break}if(l=t[a],null!=r){u.next=7;break}return u.next=6,this.addPlannerElement(l.value,{});case 6:return u.abrupt("continue",21);case 7:if(-1==(i=null===(o=r.copyIndex)||void 0===o?void 0:o.x)||1==i){u.next=12;break}return u.next=11,this.addPlannerElement(l.value,{});case 11:return u.abrupt("continue",21);case 12:if(c=this.plannerElements.get(l.key),d=null==c?void 0:c.getFreeDockingPointsByType(-1==i?"AVL":"AVR").find((function(t){return!t.IsDisabled})),!c||!d){u.next=19;break}return u.next=17,this.addPlannerElement(l.value,{targetElemIdToDock:c.ElementId,targetDockingPointId:d.DpId});case 17:u.next=21;break;case 19:return u.next=21,this.addPlannerElement(l.value,{});case 21:a++,u.next=1;break;case 24:case"end":return u.stop()}}),_callee8,this)}))),function copyPlannerElement(t,a){return r.apply(this,arguments)})},{key:"getPlannerElementsInfluencedByDeletion",value:function getPlannerElementsInfluencedByDeletion(t,r){return[]}},{key:"getPlannerElementsInfluencedByCopy",value:function getPlannerElementsInfluencedByCopy(t,r){if(!r||"BoxPlanner_backside"!=r.copyType&&"STD"!=r.copyType)throw new Error("copyType needs to be BoxPlanner_backside or STD here");return this.plannerElements.has(t)?[t]:[]}},{key:"deletePlannerElement",value:(t=(0,l.Z)(g().mark((function _callee9(t,r){var a,o,l,i,c,d,u,h,p,m,D,k,E,I,y;return g().wrap((function _callee9$(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,P.ZP.Sleep(1);case 2:if(this.plannerElements.has(t)){g.next=4;break}return g.abrupt("return",{});case 4:return a=this.plannerElements.get(t),o=this.getParentElement(a),l=-1,i=999,c=-1,d=-1,u=!1,this.plannerElements.forEach((function(t,r){u||(null!=a&&a.IsAccessoire&&a.PosNr==t.PosNr&&(c=t.getElementId(),u=!0),t.getPosNr()<a.getPosNr()&&t.getPosNr()>l?(l=t.getPosNr(),c=t.getElementId()):t.getPosNr()>a.getPosNr()&&t.getPosNr()<i&&(i=t.getPosNr(),d=t.getElementId()))})),h=!1,r&&(p=a.getDockingDockingPointsByType("AVL"),m=a.getDockingDockingPointsByType("AVR"),p.length>0&&m.length>0&&(D=this.plannerElements.get(p[0].OnElementId),k=this.plannerElements.get(m[0].OnElementId),D&&k&&(E=D.getDockingDockingPointsByType("AVR"),I=k.getDockingDockingPointsByType("AVL"),E.length>0&&I.length>0&&(v.Z.removeDockingPointRelations(a),h=!0,v.Z.tryDockElementDPToDP(D,k,E[0],I[0]))))),y={rotDeg:a.getRotDeg(),worldPosCenter:a.WorldPosCenter},h||v.Z.removeDockingPointRelations(a),this.plannerElements.delete(t),this.tryToDockForNotDockedAccessoire(o),this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.updatePlannerPosNr(),this.checkCollision(!1,a.getElementId()),this.updatePlannerBoundingBox(),g.abrupt("return",{newElementToSelect:c>=0?c:d>=0?d:void 0,transform:y});case 24:case"end":return g.stop()}}),_callee9,this)}))),function deletePlannerElement(r,a){return t.apply(this,arguments)})},{key:"tryToDockForNotDockedAccessoire",value:function tryToDockForNotDockedAccessoire(t){if(t)for(var r=t.getCurrentAccessorires().filter((function(t){return t.getIsNotDockedAccessoire()})),a=0;a<r.length;a++){var o=r[a].getElementId(),l=this.plannerElements.get(o);if(l)if(this.dockToAVUorAVOororAVNorAVSorAVC(l,[t]))break}}},{key:"checkCollision",value:function checkCollision(t,r){if(!this.doDisablePlanner2D){for(var a,o,l=this.getAllPlannerElements(),i=!1,c=[],d=0;d<l.length;d++){var u=l[d];if(!r||u.getElementId()==r)for(var g=r?0:d+1;g<l.length;g++){var h,P,p=l[g];if(u.getElementId()!=p.getElementId()&&!v.Z.checkElementsAreDocking(u,p)){var D=!1;if((this.set.CatalogData.doCheckConstructionWarnings||null!==(h=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==h&&h.includes(u.ArticleCodex)||null!==(P=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==P&&P.includes(p.ArticleCodex))&&(D=m.Z.checkCollision(u,p,this.set.CatalogData.checkCollisionForDifferentLayers)),D&&(i=!0,c.push({elementId1:u.getElementId(),elementId2:p.getElementId()}),E.debug("Collision Found between element1: "+u.ElementId+"; and element2: "+p.ElementId),!t))break}}}if(this.collisionHandler.collisionDetected&&!i)null===(a=(o=this.collisionHandler).updatePlannerMsgContainer)||void 0===a||a.call(o,"COLLISION_MSG",!1,"WARNING","COLLISION_MSG",!1);else if(!this.collisionHandler.collisionDetected&&i){var k,I;null===(k=(I=this.collisionHandler).updatePlannerMsgContainer)||void 0===k||k.call(I,"COLLISION_MSG",!0,"WARNING","COLLISION_MSG",!1)}this.collisionHandler.collisionPairs=c,this.collisionHandler.collisionDetected=i}}},{key:"updateSetPosNr",value:function updateSetPosNr(t){for(var r=this.getAllPlannerElements(),a=0;a<r.length;a++){var o=r[a];o.SetPosNr=t+o.PosNr-1,this.set.setPosNr(o.ElementId,o.getPosNr())}for(var l=0;l<r.length;l++)r[l].IsAccessoire||this.set.giveAccNewPosNrByBasketId(r[l].getBasketId());return r.length}},{key:"updatePlannerTrans",value:function updatePlannerTrans(t,r,a,o,l,i,c){var d=this,u=!1;if(this.plannerElements.has(t)){var g=this.plannerElements.get(t);if(null==g||g.updateDeltaTrans(r,a,o,"END"==l,c),"START"==l){if(g){var h=["AVR","AVL"];g.IsDockedAccessoire&&(h=h.concat(["AVO","AVU","AVN","AVS","AVC"]));for(var P=v.Z.removeDockingPointRelationsByType(g,h),p=0;p<P.length;p++)u=this.set.onDockingChanged(g.ElementId,P[p],"UNDOCK")}}else if("END"==l){var m=v.Z.searchDockableElementsInArea(g,this.getAllPlannerElements(),i);null!=m&&m.size>0&&m.forEach((function(t,r){var a=d.plannerElements.get(t.targetDP.ElementId);a&&v.Z.tryDockElementDPToDP(g,a,t.sourceDP,t.targetDP)})),u=this.updateAllElementsWorldPos(t),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}}return u}},{key:"destroyPlanner",value:function destroyPlanner(){this.plannerElements.forEach((function(t,r){t.destroy()})),this.plannerElements.clear()}},{key:"saveSetPlanner",value:function saveSetPlanner(){var t=this;if(0==this.plannerElements.size)return null;var r=[];return this.plannerElements.forEach((function(a,o){for(var l=a.getDockingDockingPoints(),i=[],c=0;c<l.length;c++){var d,u={id:l[c].DpId,onID:l[c].OnElementId,onDPID:null===(d=l[c].OnDP)||void 0===d?void 0:d.DpId};i.push(u)}var g={elementID:a.getElementId(),basketID:t.set.getBasketId(a.getElementId()),CatalogCodex:t.set.getCatalogCodex(),Codex:t.set.getArticleCodex(a.getElementId()),posNr:a.PosNr,accNr:a.IsDockedAccessoire?a.AccessoirePosNr:void 0,x:a.WorldPosCenter.x,y:a.WorldPosCenter.y,z:a.WorldPosCenter.z,rot:a.RotDeg,width:a.Width?a.Width:-1,height:a.Height?a.Height:-1,depth:a.Depth?a.Depth:-1,DP:i};if(a.IsAccessoire){var h=t.set.getParentBasketIdOfElementId(a.getElementId());null!=h&&(g.AccessoireInitParams={RelatedToBasketID:h})}r.push(g)})),{setId:this.set.getSetId(),x:0,y:0,z:0,width:this.plannerBoundingBox.Size.x,height:this.plannerBoundingBox.Size.y,depth:this.plannerBoundingBox.Size.z,rot:0,elements:r}}},{key:"getPlannerId",value:function getPlannerId(){return this.plannerID}},{key:"getSetData",value:function getSetData(t,r,a,o){var l=this,i={ID:r?this.set.getSetId():"S1",H:"",x:0,y:0,z:0,w:0,ELE:[],Blob:this.set.CatalogData.supplierILN,Cat:this.set.getCatalogCodex()},c=this.set.getAlternateRenderInfo();c&&(i.AlternateImg=c),a&&(i.ShowDim=a),this.isIDM3DCat&&(i.IsIDM3D=!0,i.IDM3DCatCodex=this.IDM3DCatCodex,i.IDM3DEnvironment=this.IDM3DEnvironment),this.plannerElements.forEach((function(r,c){var d=l.set.getPlannerConfigData(c,o),u=d.config,g=[];if(d.accs&&d.accs.length>0)for(var h=0;h<d.accs.length;h++)l.plannerElements.has(d.accs[h])&&g.push("E"+d.accs[h]);if(!t||null!=u.Model){var p,m,D,v,k=l.set.getArticleByElementId(c),E={ID:"E"+c,Model:u.Model,x:-Math.round(100*r.WorldPosCenterIgnoreOLF.x)/100,y:Math.round(100*r.WorldPosCenterIgnoreOLF.y)/100,z:Math.round(100*r.WorldPosCenterIgnoreOLF.z)/100,PosPivot:"Center",w:Math.round(100*r.getRotDeg())/100,RotPivot:"Center",DP:r.getDockingPointJS3D(),MAT:u.MAT,MOVE:null!==(p=u.MOVE)&&void 0!==p?p:void 0,CFG:u.CFG,H:"",ACCs:g.length>0?g:void 0};if(a)E.TechSize={Width:null==r.Width||isNaN(r.Width)?null!==(m=null==k?void 0:k.width)&&void 0!==m?m:0:r.Width,Height:null==r.Height||isNaN(r.Height)?null!==(D=null==k?void 0:k.height)&&void 0!==D?D:0:r.Height,Depth:null==r.Depth||isNaN(r.Depth)?null!==(v=null==k?void 0:k.depth)&&void 0!==v?v:0:r.Depth};var I=(0,P.FB)(JSON.stringify(E));E.H=I,i.ELE.push(E)}var y=l.set.getShelfPlannerData(c);if(y)for(var x=0;x<y.length;x++){var A=y[x],C=l.set.getShelfPlannerConfigData(A.basketId).config,b=[];if(C.accs&&C.accs.length>0)for(var V=0;V<C.accs.length;V++)l.plannerElements.has(C.accs[V])&&b.push("E"+C.accs[V]);var S={ID:"E"+A.parentElementId+"."+A.gridId+"."+A.rh,H:"",Model:A.model,x:0,y:0,z:1,w:0,PosPivot:"Center",RotPivot:"Center",DP:"RH"+A.rh+":E"+A.parentElementId,GN:A.gridName,MAT:C.MAT,CFG:C.CFG,ACCs:b.length>0?b:void 0};I=(0,P.FB)(JSON.stringify(S));S.H=I,i.ELE.push(S)}}));var d=(0,P.FB)(JSON.stringify(i));return i.H=d,{constructionSet:i}}},{key:"getElementPosInfo",value:function getElementPosInfo(){var t={};return this.plannerElements.forEach((function(r,a){r.IsDockedAccessoire?t[a]={pos:r.PosNr,isAcc:!0,accPos:r.AccessoirePosNr}:t[a]={pos:r.PosNr,isAcc:!1}})),t}},{key:"getPlanningIsComplete",value:function getPlanningIsComplete(t){var r=this,a=!t&&(this.set.CatalogData.doHideCompletenessWarning||!this.set.CatalogData.doCheckConstructionWarnings),o=!1;return this.plannerElements.forEach((function(t,l){var i;(!a||null!==(i=r.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==i&&i.includes(t.ArticleCodex))&&!o&&(t.getFreeDockingPointsByType("AVL").length>0||t.getFreeDockingPointsByType("AVR").length>0)&&(o=!0)})),!o}},{key:"getPlannerBoundingBox",value:function getPlannerBoundingBox(){var t=this.set.CatalogData,r=this.plannerBoundingBox.getWidth(t.PlannerMeasureDigits),a=this.plannerBoundingBox.getDepth(t.PlannerMeasureDigits),o=this.plannerBoundingBox.getHeight(t.PlannerMeasureDigits),l=this.plannerBoundingBox.getWidth(t.PlannerMeasureDigits,!0),i=this.plannerBoundingBox.getDepth(t.PlannerMeasureDigits,!0),c=this.plannerBoundingBox.getHeight(t.PlannerMeasureDigits,!0),d=l!==r||i!==a||c!==o;return{width:r,height:o,depth:a,widthIgnoreOLF:d?l:void 0,depthIgnoreOLF:d?i:void 0,heightIgnoreOLF:d?c:void 0}}},{key:"updatePlannerBoundingBox",value:function updatePlannerBoundingBox(){this.plannerBoundingBox.calcPlannerBoundingBox(this.getAllPlannerElements()),this.plannerBoundingBox.calcPlannerBoundingBoxIgnoreOLF(this.getAllPlannerElements())}},{key:"getCatalogData",value:function getCatalogData(){return this.set.CatalogData}},{key:"getAllPlannerElements",value:function getAllPlannerElements(){var t=[];return this.plannerElements.forEach((function(r,a){t.push(r)})),t}},{key:"getParentElement",value:function getParentElement(t){var r=void 0,a=t.getParentElementId();return a&&(r=this.plannerElements.get(a)),r}},{key:"getPositionOfPlannerElements",value:function getPositionOfPlannerElements(){var t=this.set.getSetId();this.plannerElements.forEach((function(r,a){E.log("SetID:",t),E.log("Elementid:",r.ElementId),E.log("X:",r.WorldPosCenter.x),E.log("Y:",r.WorldPosCenter.y),E.log("X:",r.WorldPosCenter.z),E.log("ROT:",r.RotDeg),E.log("___________________________")}))}},{key:"clonePlanner",value:function clonePlanner(t,r){return new DivaStandardPlanner(t,(function(){}),r,new k.Z,!0,!1)}},{key:"getPlannerInteractionInformation",value:function getPlannerInteractionInformation(){return E.error(new P.GE("The function getPlannerInteractionInformation is not implemented yet for standard planner. Dont call it or ask roadmap when its its turn",{code:"WC_0012"})),{boxPlannerInteractionInformationPerElement:new Map}}},{key:"getGeneralPlanningState",value:function getGeneralPlanningState(t){return E.error(new P.GE("The function getGeneralPlanningState is not implemented yet for standard planner. Dont call it or ask roadmap when its its turn",{code:"WC_0012"})),{grids:[]}}}]);var t,r,a,u,y,x,A,C,b}();(0,d.Z)(y,"plannerType","STD")},65411:(t,r,a)=>{a.d(r,{Z:()=>u});var o=a(13125),l=a(43860),i=a(89429),c=a(49736);function _superPropBase(t,r){for(;!{}.hasOwnProperty.call(t,r)&&null!==(t=(0,c.Z)(t)););return t}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,r,a){var o=_superPropBase(t,r);if(o){var l=Object.getOwnPropertyDescriptor(o,r);return l.get?l.get.call(arguments.length<3?t:a):l.value}},_get.apply(null,arguments)}var d=a(91870);function _callSuper(t,r,a){return r=(0,c.Z)(r),(0,i.Z)(t,_isNativeReflectConstruct()?Reflect.construct(r,a||[],(0,c.Z)(t).constructor):r.apply(t,a))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}const u=new(function(t){function DockingPointHandler(){return(0,o.Z)(this,DockingPointHandler),_callSuper(this,DockingPointHandler,arguments)}return(0,d.Z)(DockingPointHandler,t),(0,l.Z)(DockingPointHandler,[{key:"initDockingPointsFromSvg",value:function initDockingPointsFromSvg(t,r,a,o){var l="minX"in a?a:{minX:a.svgMinXVal,minY:a.svgMinYVal};!function _superPropGet(t,r,a,o){var l=_get((0,c.Z)(1&o?t.prototype:t),r,a);return 2&o&&"function"==typeof l?function(t){return l.apply(a,t)}:l}(DockingPointHandler,"initDockingPointsFromSvg",this,3)([t,r,l,o])}}])}(a(60415).pD))},95212:(t,r,a)=>{a.d(r,{Z:()=>v});var o=a(84658),l=a(13125),i=a(43860),c=a(80248),d=a(50747),u=a.n(d),g=a(58129),h=a(65411),P=a(64357),p=a(69369),m=a(60415),D=p.ZP.initLog("Planner","WEB-PLANNER-LOGIC");const v=new(function(){return(0,i.Z)((function PlannerHandler2D(){(0,l.Z)(this,PlannerHandler2D),(0,c.Z)(this,"svgUtils",void 0),this.svgUtils=new g.Z}),[{key:"checkCollision",value:function checkCollision(t,r,a){if(p.ZP.startSpanOfApm("PlannerHandler2D checkCollision"),!(t.Layer==r.Layer||a.includes(Number(t.Layer))&&a.includes(Number(r.Layer))))return p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var o=t.getWorld2DBBoxOutline(),l=r.getWorld2DBBoxOutline();if((0,m.JU)(o,l)){if(!t.HasOLTPolygon&&!t.HasOLFPolygon)return D.error(new p.GE("checkCollision PlannerHandler2D - The element with id: "+t.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;if(!r.HasOLTPolygon&&!r.HasOLFPolygon)return D.error(new p.GE("checkCollision PlannerHandler2D - The element with id: "+r.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var i=t.HasOLFPolygon?t.getOLFPolygonWorldPos():t.getOLTPolygonWorldPos(),c=r.HasOLFPolygon?r.getOLFPolygonWorldPos():r.getOLTPolygonWorldPos();return p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,m.JU)(i,c)}return p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,m.uA)(o,l)}},{key:"parseSvg",value:function parseSvg(t,r,a,o,l){var i,c;r=this.svgUtils.removeMaskFromSvg(r),h.Z.initDockingPointsFromSvg(t,this.svgUtils.getDPsInSVG(r),a,o);var d=this.svgUtils.getPointOfPoligonById(r,"OLT");null!=d&&d.length||D.warn("no olt fount in svg for element"+t.ArticleCodex+" with id "+t.getElementId()),t.OLTPolygon=d;var u=this.svgUtils.getPointOfPoligonById(r,"OLF"),g=(0,m.Qq)(r);if(null!=u&&u.length){var v,k,E=this.svgUtils.getBoundingBoxOfPoints(u),I=null!==(v=null==g?void 0:g.width)&&void 0!==v?v:E.width,y=null!==(k=null==g?void 0:g.height)&&void 0!==k?k:E.height;t.setupOLF(u,I,y)}else if(g){var x=[new P.FM(g.minX,g.minY),new P.FM(g.minX+g.width,g.minY),new P.FM(g.minX+g.width,g.minY+g.height),new P.FM(g.minX,g.minY+g.height)];t.setupOLF(x,g.width,g.height)}else null!=l&&l.heightOLF,null!=l&&l.widthOLF?t.setupOLF(u,null==l?void 0:l.widthOLF,null==l?void 0:l.heightOLF):t.clearOLF();var A=(0,m.hd)(r);if(t.OLTWidth=null!==(i=null==A?void 0:A.width)&&void 0!==i?i:0,t.OLTDepth=null!==(c=null==A?void 0:A.height)&&void 0!==c?c:0,t.OLTLeft=A&&g?A.x-g.minX:0,t.OLTTop=A&&g?A.y-g.minY:0,t.DoSetWidthFromSVG||t.DoSetDepthFromSVG){var C=(0,m.O3)(r);t.DoSetWidthFromSVG&&null!=C&&C.width&&(t.WidthFromSVG=C.width/p.ZP.UnitRecalc),t.DoSetDepthFromSVG&&null!=C&&C.height&&(t.DepthFromSVG=C.height/p.ZP.UnitRecalc)}t.SvgData=r,t.cleanShapeOLF2D(),t.cleanShapeOLT2D()}},{key:"getMinBorderSVG",value:function getMinBorderSVG(t){var r=(0,m.dI)(t);return{svgMinXVal:r.minX,svgMinYVal:r.minY}}},{key:"loadSVG",value:(t=(0,o.Z)(u().mark((function _callee(t,r){var a,o,l,i,c,d,g,h,P,m,v=this;return u().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:if(a=t.SvgFileName){u.next=3;break}return u.abrupt("return",!1);case 3:if(!r.CatalogData.isIDMFormat){u.next=9;break}return u.next=6,r.api.fetchData(a,{method:"GET",config:{},data:{}});case 6:o=u.sent,u.next=16;break;case 9:return u.next=11,r.api.getDataCache(this.getSVGUrl(a,r.CatalogData.mediaUrl),void 0,r.CatalogData.accountSessionGuid);case 11:if(!(i=u.sent).Error){u.next=14;break}throw new Error(i.Error);case 14:"success"==i.Result.toLowerCase()&&(l=i.Content),o=p.ZP.decodeBase64(l);case 16:if(o||D.error(new p.GE("Fehler beim laden des SVGs ",{code:"WC_0009",custom:{svgFile:a}})),t.svgBefore=o,c=t.Width,-1===(d=t.Depth)&&-1!==t.Height&&(d=t.Height),!(null!=c&&c>0&&null!=d&&d>0)){u.next=31;break}return h=this.getMinBorderSVG(o),P=r.CatalogData.isIDMFormat?a:"".concat(r.CatalogData.mediaUrl,"pln_").concat(a),m="",u.next=27,new Promise((function(t,a){g=v.svgUtils.ccCheckStretchAreas(o,c,d,r.CatalogData.useGlobalSVGScale,h.svgMinXVal,h.svgMinYVal,(function(r){m=r,t()}),P)}));case 27:t.svgAfter=m,this.parseSvg(t,m,h,r.CatalogData.getPlannerConfig(),g),u.next=33;break;case 31:t.svgAfter=o,this.parseSvg(t,o,{svgMinXVal:0,svgMinYVal:0},r.CatalogData.getPlannerConfig());case 33:return u.abrupt("return",!0);case 34:case"end":return u.stop()}}),_callee,this)}))),function loadSVG(r,a){return t.apply(this,arguments)})},{key:"getSVGUrl",value:function getSVGUrl(t,r){var a=r+"pln_"+t,o=a.indexOf("/files/");return a=a.substring(o),"function=GetFileAsString&fileUrl="+encodeURIComponent(a)}}]);var t}())}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[7909],{87909:(t,r,a)=>{a.r(r),a.d(r,{default:()=>y});var o=a(12952),l=a(84658),i=a(13125),c=a(43860),d=a(80248),u=a(50747),g=a.n(u),h=a(57312),P=a(69369),p=a(60415),m=a(95212),D=a(64357),v=a(65411);function parseSetPlanData(t){var r=P.ZP.decodeBase64(t);return JSON.parse(r)}function isSavePlannerV2(t){return 2===t.v}function saveElementArticleCodex(t){return t.articleCodex||t.Codex}var k=a(58178);function _createForOfIteratorHelper(t,r){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var o=0,l=function F(){};return{s:l,n:function n(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function e(t){throw t},f:l}}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 i,c=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return c=t.done,t},e:function e(t){d=!0,i=t},f:function f(){try{c||null==a.return||a.return()}finally{if(d)throw i}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,o=Array(r);a<r;a++)o[a]=t[a];return o}var E=P.ZP.initLog("Planner","WEB-PLANNER-LOGIC"),I=["AVO","AVU","AVC","AVS","AVN"],y=function(){function DivaStandardPlanner(t,r,a,o,l,c){var u=this;(0,i.Z)(this,DivaStandardPlanner),(0,d.Z)(this,"plannerID",void 0),(0,d.Z)(this,"set",void 0),(0,d.Z)(this,"plannerBoundingBox",void 0),(0,d.Z)(this,"plannerElements",void 0),(0,d.Z)(this,"doDisablePlanner2D",!1),(0,d.Z)(this,"plannerHasStaticBackground",void 0),(0,d.Z)(this,"isIDM3DCat",!1),(0,d.Z)(this,"IDM3DCatCodex",""),(0,d.Z)(this,"IDM3DEnvironment","diva.ro"),(0,d.Z)(this,"nextElementId",1),(0,d.Z)(this,"collisionHandler",void 0),(0,d.Z)(this,"dockToAVUorAVOororAVNorAVSorAVC",(function(t,r){var a=function hasFreeDP(r){return t.getFreeDockingPointsByType(r).length>0};if(a("AVU")){var o=v.Z.tryDockElement(t,"AVU",r);if(o)return u.updateWorldPos(t,o),!0;for(var l=0;l<r.length;l++){var i=r[l].getCurrentAccessorires().map((function(t){return u.plannerElements.get(t.getElementId())}));if(u.dockToAVUorAVOororAVNorAVSorAVC(t,i))return!0}}if(a("AVO")){var c=v.Z.tryDockElement(t,"AVO",r);if(c)return u.updateWorldPos(t,c),!0}if(a("AVN")){var d=v.Z.tryDockElement(t,"AVN",r);if(d)return u.updateWorldPos(t,d),!0}if(a("AVS")){var g=v.Z.tryDockElement(t,"AVS",r);if(g)return u.updateWorldPos(t,g),!0}if(a("AVC")){var h=v.Z.tryDockElement(t,"AVC",r);if(h)return u.updateWorldPos(t,h),!0}return!1})),this.set=t,this.plannerID=a,this.plannerElements=new Map,this.plannerBoundingBox=new k.Z,this.plannerBoundingBox.initPlannerBBox(o),this.doDisablePlanner2D=l,this.collisionHandler={updatePlannerMsgContainer:r,collisionDetected:!1,collisionPairs:[]},this.plannerHasStaticBackground=c}return(0,c.Z)(DivaStandardPlanner,[{key:"updatePlannerPosNr",value:function updatePlannerPosNr(){var t,r=this,a=[],o=new Map,l=this;this.plannerElements.forEach((function(t,r){o.set(r,!0),t.IsDockedAccessoire||t.HasAVL&&t.dockingTypeIsDocking("AVL")||a.push(t)})),this.getCatalogData().dontSetPosNrFromPlanner||(a=a.sort((function(t,r){return t.WorldPosCenter.x-r.WorldPosCenter.x})));for(var i=function updateAccessoiresOfElement(a,c){for(var d=[],u=function setPosNrForElementsOnDock(r,i){if(a["Has"+r]){var d=a.getDockingDockingPointsByType(r);d=d.sort((function(t,r){return l.plannerElements.get(t.OnElementId).WorldPosCorner.x-l.plannerElements.get(r.OnElementId).WorldPosCorner.x}));for(var u=0;u<d.length;u++){var g=d[u].OnElementId;if(o.has(g)){var h=l.plannerElements.get(g);h.PosNr=c,h.AccessoirePosNr=t,o.delete(g),t++,i.push(h)}}}},g=0;g<I.length;g++)u(I[g],d);r.plannerElements.forEach((function(r){r.getIsNotDockedAccessoire()&&r.getParentElementId()===a.getElementId()&&(r.PosNr=c,r.AccessoirePosNr=t,o.delete(r.getElementId()),t++,d.push(r))}));for(var h=0;h<d.length;h++)i(d[h],c)},c=function updatePosInChain(r,a){if(null==r)return a;if(r.PosNr=a,t=1,o.delete(r.ElementId),i(r,a),a++,r.HasAVR&&r.dockingTypeIsDocking("AVR")){var d=r.getDockingDockingPointsByType("AVR")[0].OnElementId;return c(l.plannerElements.get(d),a)}return a},d=1,u=0;u<a.length;u++)d=c(a[u],d)}},{key:"updateWorldPos",value:function updateWorldPos(t,r){var a=!1,o=this.plannerElements.get(r.OnElementId),l=o.getDockingPointById(r.OnDP.DpId);if(null==l)return a;this.applyDockTransform(t,o,r,l),a=this.set.onDockingChanged(t.ElementId,o.ElementId,"DOCK",r.Type);var i=this.set.getPlannerData(t.ElementId);t.updatePlannerData(i);var c=this.set.getPlannerData(o.ElementId);return o.updatePlannerData(c),a}},{key:"applyDockTransform",value:function applyDockTransform(t,r,a,o){var l=(0,p.eY)(r,o,t,a);t.RotDeg=l.rotDeg,t.WorldPosCorner=new D.P(l.worldPosCorner.x,l.worldPosCorner.y,l.worldPosCorner.z),t.WorldPosCornerIgnoreOLF=new D.P(l.worldPosCornerIgnoreOLF.x,l.worldPosCornerIgnoreOLF.y,l.worldPosCornerIgnoreOLF.z)}},{key:"getDockSnapPreview",value:function getDockSnapPreview(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=this.plannerElements.get(t);if(!o)return null;var l,i=this.getAllPlannerElements().filter((function(r){return r.getElementId()!==t&&!a.includes(r.getElementId())})),c=v.Z.searchDockableElementsInArea(o,i,r);if(!c||0===c.size)return null;if(c.forEach((function(t){(null==l||t.distance<l.distance)&&(l=t)})),null==l)return null;var d=this.plannerElements.get(l.targetDP.ElementId);if(!d)return null;var u=o.RotDeg,g=o.WorldPosCenter,h=g.x,P=g.y,p=g.z;this.applyDockTransform(o,d,l.sourceDP,l.targetDP);var m=o.WorldPosCenter,k={dx:m.x-h,dz:m.z-p,dRotDeg:o.RotDeg-u};return o.RotDeg=u,o.WorldPosCenter=new D.P(h,P,p),k}},{key:"updateAllElementsWorldPos",value:function updateAllElementsWorldPos(t,r){if(this.doDisablePlanner2D)return!1;var a=function getDockedDPsInPriorityOrder(t){return t.getDockingDockingPointsByType("AVL").concat(t.getDockingDockingPointsByType("AVR")).concat(t.getDockingDockingPointsByType("AVU")).concat(t.getDockingDockingPointsByType("AVO")).concat(t.getDockingDockingPointsByType("AVN")).concat(t.getDockingDockingPointsByType("AVS")).concat(t.getDockingDockingPointsByType("AVC"))},o=!1,l=[],i=[];this.plannerElements.forEach((function(t,r){t.IsDockedAccessoire?i.push(t):l[t.PosNr-1]=t})),l=l.concat(i);for(var c=[],d=0,u=0;u<l.length;u++)if(l[u]){var g=l[u];if(c.push(g.ElementId),u>d)for(var h=a(g),P=0;P<h.length;P++)if(c.indexOf(h[P].OnElementId)>=0){o=this.updateWorldPos(g,h[P]);break}}else d=u;if(r&&r.length>0)for(var p=new Set(r),m=!0;m;){m=!1;var D,v=_createForOfIteratorHelper(l);try{for(v.s();!(D=v.n()).done;){var k=D.value;if(k&&!p.has(k.ElementId)){var E=a(k).find((function(t){return p.has(t.OnElementId)}));E&&(o=this.updateWorldPos(k,E)||o,p.add(k.ElementId),m=!0)}}}catch(t){v.e(t)}finally{v.f()}}return this.checkCollision(!1,t),o}},{key:"addElementToWorld",value:(b=(0,l.Z)(g().mark((function _callee(t,r,a,o){var l,i,c,d,u,h,P,p,m,k,E,I,y=arguments;return g().wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:if(l=y.length>4&&void 0!==y[4]?y[4]:100,!(i=y.length>5?y[5]:void 0)||!i.forceSetToTrans){g.next=8;break}t.WorldPosCenter=i.transform.worldPosCenter,t.RotDeg=i.transform.rotDeg,this.set.onDockingChanged(t.ElementId,-1,"NOT_DOCKED"),g.next=48;break;case 8:if(c=!1,!r){g.next=47;break}d=0;case 11:if(!(d<r.length)){g.next=47;break}if(u=r[d].targetElemIdToDock,h=r[d].targetDockingPointId,!(u&&u>-1&&this.plannerElements.has(u))){g.next=44;break}if(!h||""==h){g.next=32;break}if(!(P=this.plannerElements.get(u))){g.next=30;break}if(!(p=P.getDockingPointById(h))){g.next=30;break}if(!(m=v.Z.tryDockElementToDP(t,P,p))){g.next=26;break}this.updateWorldPos(t,m),c=!0,g.next=30;break;case 26:return g.next=28,this.tryToDockWithDifferentSVGWithFormula(t,u);case 28:if(!g.sent){g.next=30;break}c=!0;case 30:g.next=44;break;case 32:if(k=!1,(t.HasAVL||t.HasAVR)&&(k=this.dockToAVLorAVR(t,[this.plannerElements.get(u)])),k||(k=this.dockToAVUorAVOororAVNorAVSorAVC(t,[this.plannerElements.get(u)])),k){g.next=43;break}return g.next=38,this.tryToDockWithDifferentSVGWithFormula(t,u);case 38:if(k=g.sent){g.next=43;break}return g.next=42,this.addElementToWorld(t,void 0,void 0,void 0,50);case 42:return g.abrupt("return");case 43:k&&(c=!0);case 44:d++,g.next=11;break;case 47:c||(E=this.getAllPlannerElements(),I=this.dockToAVLorAVR(t,E),a&&(I=!1),I||(I=this.dockToAVUorAVOororAVNorAVSorAVC(t,E),a&&(I=!1),I||(null==o&&(t.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+this.plannerBoundingBox.Size.x+(0==this.plannerBoundingBox.Size.x?0:t.Width/2+l),this.plannerBoundingBox.WorldPos.y,this.plannerBoundingBox.WorldPos.z+t.Depth/2)),this.set.onDockingChanged(t.ElementId,-1,"NOT_DOCKED"))));case 48:this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.updatePlannerPosNr(),this.checkCollision(!1,t.getElementId()),this.updatePlannerBoundingBox();case 53:case"end":return g.stop()}}),_callee,this)}))),function addElementToWorld(t,r,a,o){return b.apply(this,arguments)})},{key:"tryToDockWithDifferentSVGWithFormula",value:(C=(0,l.Z)(g().mark((function _callee2(t,r){var a,o,l,i,c,d,u,h,p,m,D,v,k;return g().wrap((function _callee2$(g){for(;;)switch(g.prev=g.next){case 0:if(a=!1,o=this.set.getArticleByElementId(t.ElementId),l=null==o?void 0:o.VariantValues,i=t.getSVGsWithFormula(),!t.FilterAVL.length&&!t.FilterAVR.length){g.next=52;break}if(null==i||!i.length){g.next=18;break}c=0;case 7:if(!(c<i.length)){g.next=18;break}return d=P.ZP.getVariantValuesFromRule(i[c].JsFormula,{}),g.next=11,this.applyVariantValuesAndTryDock(t,r,d);case 11:if(!(a=g.sent)){g.next=15;break}return E.debug("svgWithFormula nr: "+c+" did dock: "+i[c].SVG),g.abrupt("break",18);case 15:c++,g.next=7;break;case 18:if(a||!o){g.next=31;break}u=this.getVariantValuesMatchingTargetFilters(o,this.plannerElements.get(r)),h=0;case 21:if(!(h<u.length&&h<20)){g.next=31;break}return g.next=24,this.applyVariantValuesAndTryDock(t,r,u[h]);case 24:if(!(a=g.sent)){g.next=28;break}return E.debug("following variantValues matching the target avl/avr filter did dock: ",u[h]),g.abrupt("break",31);case 28:h++,g.next=21;break;case 31:if(null==(p=t.getVaraintValuesInfluencingAVLAVRFilter())||!p.length||a){g.next=44;break}m=0;case 34:if(!(m<p.length&&m<20)){g.next=44;break}return g.next=37,this.applyVariantValuesAndTryDock(t,r,p[m]);case 37:if(!(a=g.sent)){g.next=41;break}return E.debug("following variantValues did dock: ",p[m]),g.abrupt("break",44);case 41:m++,g.next=34;break;case 44:if(a){g.next=52;break}for(k in D=new Map,v=new Map,l)v.set(k,l[k]);return D.set(t.ElementId,v),g.next=51,this.set.updateCfgValuesByPlanner(D,!0);case 51:o&&this.commitPendingConnectorFilters(o);case 52:return g.abrupt("return",a);case 53:case"end":return g.stop()}}),_callee2,this)}))),function tryToDockWithDifferentSVGWithFormula(t,r){return C.apply(this,arguments)})},{key:"applyVariantValuesAndTryDock",value:(A=(0,l.Z)(g().mark((function _callee3(t,r,a){var o,l,i,c;return g().wrap((function _callee3$(d){for(;;)switch(d.prev=d.next){case 0:for(i in o=new Map,l=new Map,a)l.set(i,a[i]);return o.set(t.ElementId,l),d.next=6,this.set.updateCfgValuesByPlanner(o,!0);case 6:return(c=this.set.getArticleByElementId(t.ElementId))&&this.commitPendingConnectorFilters(c),d.abrupt("return",this.dockToAVLorAVR(t,[this.plannerElements.get(r)]));case 9:case"end":return d.stop()}}),_callee3,this)}))),function applyVariantValuesAndTryDock(t,r,a){return A.apply(this,arguments)})},{key:"commitPendingConnectorFilters",value:function commitPendingConnectorFilters(t){t.newPossibleAVRFilters&&(t.avr=t.newPossibleAVRFilters,t.newPossibleAVRFilters=void 0),t.newPossibleAVLFilters&&(t.avl=t.newPossibleAVLFilters,t.newPossibleAVLFilters=void 0)}},{key:"getVariantValuesMatchingTargetFilters",value:function getVariantValuesMatchingTargetFilters(t,r){if(!r)return[];var a=t.CatalogData.isIDMFormat?"":"OPT",o=t.CatalogData.isIDMFormat?"":"OPV",l=[],i=new Set,c=function collect(r,c){var d,u=_createForOfIteratorHelper(c);try{for(u.s();!(d=u.n()).done;){var g,h=d.value,P=_createForOfIteratorHelper(t.getVariantValuesInfluencingOptions([a+r],o+h));try{for(P.s();!(g=P.n()).done;){var p=g.value,m=JSON.stringify(p);i.has(m)||(i.add(m),l.push(p))}}catch(t){P.e(t)}finally{P.f()}}}catch(t){u.e(t)}finally{u.f()}};return c("89",r.FilterAVR),c("90",r.FilterAVL),l}},{key:"dockToAVLorAVR",value:function dockToAVLorAVR(t,r){var a=!1,o=!1;if(t.HasAVL){var l=v.Z.tryDockElement(t,"AVL",r);l&&(this.updateWorldPos(t,l),a=!0)}if(!a&&t.HasAVR){var i=v.Z.tryDockElement(t,"AVR",r);i&&(o=!0,this.updateWorldPos(t,i))}return a||o}},{key:"getAllViewPlannerElements",value:function getAllViewPlannerElements(){return this.getAllPlannerElements()}},{key:"getFreeDockingPointsByElementId",value:function getFreeDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return{dockingPoints:[],filter:[]};var a=this.plannerElements.get(t),o=a.getFreeDockingPointsByType(r),l=[];switch(r){case"AVR":l=a.getFilterAVR();break;case"AVL":l=a.getFilterAVL()}return{dockingPoints:o,filter:l}}},{key:"getDockedDockingPointsByElementId",value:function getDockedDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return[];for(var a=this.plannerElements.get(t),o=[],l=0;l<r.length;l++)o=o.concat(a.getDockingDockingPointsByType(r[l]));return o}},{key:"getNeighborElements",value:function getNeighborElements(t,r){if(!this.plannerElements.has(t))return[];var a=this.plannerElements.get(t),o=null==a?void 0:a.getDockingDockingPointsByType(r);if(!o)return[];for(var l=[],i=0;i<(null==o?void 0:o.length);i++)null!=o[i]&&l.push(o[i].OnElementId);return l}},{key:"getDockedGroups",value:function getDockedGroups(){for(var t=[],r=this.getAllPlannerElements(),a=[],o=0;o<this.getAllPlannerElements().length;o++){var l=r[o];if(a.push(l.getElementId()),!l.IsAccessoire){var i=l.getDockingPointsByType("AVL");if(i&&0!=i.length)for(var c=0;c<i.length;c++)i[c].IsDocking||t.push(l);else t.push(l)}}t.sort((function(t,r){return t.WorldPosCorner.x<r.WorldPosCorner.x?1:0}));var d=[],u=function removeFromElementsToAdd(t){var r=a.indexOf(t);r>=0&&a.splice(r,1)};for(o=0;o<t.length;o++){var g=t[o],h=[];u(g.getElementId());for(var P=!1,p=g;!P;){h.push(p.getElementId()),u(p.getElementId());var m=this.getAccessoiresRecursive(p.getElementId());for(c=0;c<m.length;c++)h.push(m[c]),u(m[c]);var D=this.getNeighborElements(p.getElementId(),"AVR");D&&0!=D.length?p=this.plannerElements.get(D[0]):P=!0}d.push(h)}for(o=0;o<a.length;o++)d.push([a[o]]);return d}},{key:"getAccessoiresRecursive",value:function getAccessoiresRecursive(t){var r=this,a=function calcAccs(t,o,l){l.push(t);for(var i=r.getNeighborElements(t,"AVC"),c=r.getNeighborElements(t,"AVO"),d=r.getNeighborElements(t,"AVU"),u=r.getNeighborElements(t,"AVN"),g=r.getNeighborElements(t,"AVS"),h=i.concat(c).concat(d).concat(u).concat(g),P=0;P<h.length;P++)l.indexOf(h[P])>=0||(o.push(h[P]),l.push(h[P]),a(h[P],o,l))},o=[];return a(t,o,[]),o}},{key:"getBoundingBox",value:function getBoundingBox(){return this.plannerBoundingBox}},{key:"initIDM3DMeta",value:function initIDM3DMeta(t,r){this.isIDM3DCat=!0,this.IDM3DCatCodex=t||this.set.getCatalogCodex(),r&&(this.IDM3DEnvironment=r)}},{key:"updatePlanner",value:(x=(0,l.Z)(g().mark((function _callee4(){var t,r,a,o,l,i;return g().wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:t=this.getAllPlannerElements(),r=[],a=0;case 3:if(!(a<t.length)){c.next=13;break}if(!(o=t[a]).updatePlannerData(this.set.getPlannerData(o.getElementId()))){c.next=10;break}return r.push(o.ElementId),c.next=10,m.Z.loadSVG(o,this.set);case 10:a++,c.next=3;break;case 13:if(l=[],r.length){for(E.debug("Configuration changed one plannerElement. UpdateDockingRelations","DivaStandardPlanner - updatePlanner"),i=v.Z.updateDockingRelations(this.plannerElements),a=0;a<i.length;a++)i[a].IsDockedAccessoire&&l.push(i[a].ElementId);this.updateAllElementsWorldPos(void 0,r),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}return c.abrupt("return",{doDeleteBackGrid:!1,elemIdsToDelete:l,elementIdsToUpdateSelection:r,failed:!1});case 16:case"end":return c.stop()}}),_callee4,this)}))),function updatePlanner(){return x.apply(this,arguments)})},{key:"extendPlanner",value:(y=(0,l.Z)(g().mark((function _callee5(t,r){var a,l,i,c,d,u,p,k,I,y,x,A,C,b,V,B,S,w,T,N,W,O;return g().wrap((function _callee5$(g){for(;;)switch(g.prev=g.next){case 0:if(!isSavePlannerV2(a=parseSetPlanData(t))){g.next=39;break}l=a.set.elements,i=[],c=[],d=new Map,u=0;case 7:if(!(u<l.length)){g.next=35;break}if(g.prev=8,x=l[u],(null!==(p=null===(k=this.set.getArticleByBasketId(x.basketID))||void 0===k?void 0:k.catalogArticle)&&void 0!==p?p:this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(I=saveElementArticleCodex(x))&&void 0!==I?I:""))||null===(y=x.AccessoireInitParams)||void 0===y||!y.RelatedToBasketID||this.set.getSetState.onlyRunLogic){g.next=14;break}return E.error(new P.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),g.abrupt("continue",32);case 14:if(A=new h.Z(this.set.getSetId(),x.basketID,this.nextElementId,DivaStandardPlanner.plannerType),d.set(x.elementID,A),this.nextElementId=A.getElementId()+1,this.plannerElements.set(A.ElementId,A),this.set.setElementId(x.basketID,A.ElementId),C=this.set.getPlannerData(A.ElementId),A.updatePlannerData(C),this.doDisablePlanner2D){g.next=24;break}return g.next=24,m.Z.loadSVG(A,this.set);case 24:A.WorldPosCenter=new D.P(r.WorldPos.x+r.Size.x+x.x+100,r.WorldPos.y+x.y,r.WorldPos.z+x.z),A.RotDeg=x.rot,A.IsDockedAccessoire?(c.push(x),A.PosNr=x.posNr,null!=x.accNr&&(A.AccessoirePosNr=x.accNr)):(i[x.posNr-1]=x,A.PosNr=x.posNr),g.next=32;break;case 29:g.prev=29,g.t0=g.catch(8),E.error(new P.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{cause:g.t0,code:"WC_0012"}));case 32:u++,g.next=7;break;case 35:for(b=[].concat((0,o.Z)(i.filter((function(t){return null!=t}))),c),u=0;u<b.length;u++)if(V=b[u],B=d.get(V.elementID),b.length>1&&u>0)for(S=V.DP,w=0;w<S.length;w++)T=S[w],N=null==B?void 0:B.getDockingPointById(T.id),W=d.get(T.onID),O=null==W?void 0:W.getDockingPointById(T.onDPID),N&&O&&v.Z.tryDockElementDPToDP(B,W,N,O);g.next=40;break;case 39:E.error(new P.GE("The function extend Planner works only with products that are saved in the configurator 2.0",{code:"WC_0012"}));case 40:case"end":return g.stop()}}),_callee5,this,[[8,29]])}))),function extendPlanner(t,r){return y.apply(this,arguments)})},{key:"initPlanner",value:(u=(0,l.Z)(g().mark((function _callee6(t){var r,a,l,i,c,d,u,p,k,I,y,x,A,C,b,V,B,S,w,T,N,W,O,_,L,Z,R,M,G,H,z,U,X,Y,$,J,j,K,q,Q,ee,ne,te,re,ae,oe,le,ie,se,ce,de,ue,ge,he;return g().wrap((function _callee6$(g){for(;;)switch(g.prev=g.next){case 0:if(!isSavePlannerV2(r=parseSetPlanData(t))){g.next=63;break}if(E.debug("Initialize set Plan Data - V2\n"+r,"DivaStandardPlanner initPlanner"),null!==(a=r.set)&&void 0!==a&&null!==(a=a.elements)&&void 0!==a&&a.length){g.next=5;break}return g.abrupt("return");case 5:l=r.set.elements,i=[],c=[],d=0;case 9:if(!(d<l.length)){g.next=37;break}if(g.prev=10,y=l[d],(null!==(u=null===(p=this.set.getArticleByBasketId(y.basketID))||void 0===p?void 0:p.catalogArticle)&&void 0!==u?u:this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(k=saveElementArticleCodex(y))&&void 0!==k?k:""))||null===(I=y.AccessoireInitParams)||void 0===I||!I.RelatedToBasketID||this.set.getSetState.onlyRunLogic){g.next=16;break}return E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),g.abrupt("continue",34);case 16:if(x=y.elementID,A=new h.Z(this.set.getSetId(),y.basketID,x,DivaStandardPlanner.plannerType),this.nextElementId=x+1,this.plannerElements.set(A.ElementId,A),this.set.setElementId(y.basketID,A.ElementId),C=this.set.getPlannerData(A.ElementId),A.updatePlannerData(C),this.doDisablePlanner2D){g.next=26;break}return g.next=26,m.Z.loadSVG(A,this.set);case 26:A.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+y.x,this.plannerBoundingBox.WorldPos.y+y.y,this.plannerBoundingBox.WorldPos.z+y.z),A.RotDeg=y.rot,A.IsDockedAccessoire?(c.push(y),A.PosNr=y.posNr,null!=y.accNr&&(A.AccessoirePosNr=y.accNr)):(i[y.posNr-1]=y,A.PosNr=y.posNr),g.next=34;break;case 31:g.prev=31,g.t0=g.catch(10),E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{cause:g.t0,code:"WC_0012"}));case 34:d++,g.next=9;break;case 37:b=1==i.filter(Boolean).length,V=[].concat((0,o.Z)(i.filter((function(t){return null!=t}))),c),d=0;case 40:if(!(d<V.length)){g.next=61;break}if(g.prev=41,B=V[d],0!=d||!b||!this.plannerHasStaticBackground){g.next=48;break}return null!=(null==(S=i[d])?void 0:S.x)||null!=(null==S?void 0:S.y)||null!=(null==S?void 0:S.z)||(w=this.plannerElements.get(B.elementID))&&(w.WorldPosCenter=new D.P(0,w.Height/2,w.Depth/2)),g.abrupt("continue",58);case 48:if(null!=B.DP&&0!=B.DP.length){g.next=50;break}return g.abrupt("continue",58);case 50:for(T=B.DP,N=0;N<T.length;N++)(W=T[N]).id&&null!=W.onID&&W.onDPID&&(O=this.plannerElements.get(B.elementID),_=null==O?void 0:O.getDockingPointById(W.id),L=this.plannerElements.get(W.onID),Z=null==L?void 0:L.getDockingPointById(W.onDPID),_&&Z?_.IsDocking&&_.OnDP==Z||v.Z.tryDockElementDPToDP(O,L,_,Z)||this.doDisablePlanner2D||E.error(new P.GE("Saved docking relation rejected on init: "+W.id+" (elem "+(null==O?void 0:O.ElementId)+") -> "+W.onDPID+" (elem "+(null==L?void 0:L.ElementId)+")",{code:"WC_0012"})):this.doDisablePlanner2D||E.error(new P.GE("Error initializing docking point between source element with id: "+(null==O?void 0:O.ElementId)+" and target Element with id: "+(null==L?void 0:L.ElementId)+". SourceDPID: "+W.id+"; targetDPID: "+W.onDPID)));g.next=58;break;case 54:g.prev=54,g.t1=g.catch(41),M=null===(R=V[d])||void 0===R?void 0:R.elementID,E.error(new P.GE("Error initializing dockingPoints of element with elementID "+M,{cause:g.t1,code:"WC_0012"}));case 58:d++,g.next=40;break;case 61:g.next=116;break;case 63:if(E.debug("Initialize set Plan Data - old V1\n"+r,"DivaStandardPlanner initPlanner"),null!=(z=null===(G=r.Sets)||void 0===G?void 0:G[0])&&null!==(H=z.Elements)&&void 0!==H&&H.length){g.next=67;break}return g.abrupt("return");case 67:U=z.Elements,X=[],Y=[],d=0;case 71:if(!(d<U.length)){g.next=105;break}if(g.prev=72,j=U[d],this.set.CatalogData.getCatalogArticleByArticleCodex(null!==($=saveElementArticleCodex(j))&&void 0!==$?$:"")||null===(J=j.AccessoireInitParams)||void 0===J||!J.RelatedToBasketID||this.set.getSetState.onlyRunLogic){g.next=78;break}return E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V1",{code:"WC_0012"})),g.abrupt("continue",102);case 78:if(K=j.BasketID,-1==this.set.getElementId(K)&&this.set.setElementId(K,Number(j.ID)),q=this.set.getElementId(K),j.elementId=q,-1!=q){g.next=85;break}return E.error(new P.GE("Error when initializing planner. The elementID Was not saved in the article. ",{code:"WC_0012"})),g.abrupt("continue",102);case 85:if(Q=new h.Z(this.set.getSetId(),K,q,DivaStandardPlanner.plannerType),this.nextElementId=q+1,this.plannerElements.set(Q.ElementId,Q),ee=this.set.getPlannerData(Q.ElementId),Q.updatePlannerData(ee),this.doDisablePlanner2D){g.next=93;break}return g.next=93,m.Z.loadSVG(Q,this.set);case 93:ne=new D.P(j.PosX,j.PosZ,j.PosY),Q.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+ne.x,this.plannerBoundingBox.WorldPos.y+ne.y,this.plannerBoundingBox.WorldPos.z+ne.z),Q.RotDeg=j.Rot,Q.IsDockedAccessoire?(Y.push(j),j.PosNum.toString().indexOf(".")>0&&(te=j.PosNum.toString().split(".")[0],re=j.PosNum.toString().split(".")[1],Q.PosNr=Number(te),Q.AccessoirePosNr=Number(re))):(X[j.PosNum-1]=j,Q.PosNr=j.PosNum),g.next=102;break;case 99:g.prev=99,g.t2=g.catch(72),E.error(new P.GE("Error initializing element nr "+d+" in the Standard Web Planner - Plan Data old Planner",{cause:g.t2,code:"WC_0012"}));case 102:d++,g.next=71;break;case 105:ae=[].concat((0,o.Z)(X.filter((function(t){return null!=t}))),Y),d=0;case 107:if(!(d<ae.length)){g.next=116;break}if(null!=(oe=ae[d]).DP&&0!=oe.DP.length){g.next=111;break}return g.abrupt("continue",113);case 111:for(le=oe.DP,N=0;N<le.length;N++)(ie=le[N]).DP&&""!=ie.DP&&ie.onID&&""!=ie.onID&&(ce=parseInt(String(ie.onID)),de=ie.DP,ue=null!=oe.elementId?this.plannerElements.get(oe.elementId):void 0,ge=null!==(se=this.plannerElements.get(ce))&&void 0!==se?se:this.getPlannerElementByIndex(ce-1),ue&&ge?v.Z.initDockingPointRelationByArea(ue,ge,de):E.error(new P.GE("Error initializing dockingPoints of element with elementID "+oe.elementId,{code:"WC_0012"})));case 113:d++,g.next=107;break;case 116:this.plannerElements.forEach((function(t){!t.IsDockedAccessoire&&(null==he||t.PosNr<he.PosNr)&&(he=t)})),this.updateAllElementsWorldPos(void 0,he?[he.ElementId]:void 0),this.updatePlannerPosNr();case 119:case"end":return g.stop()}}),_callee6,this,[[10,31],[41,54],[72,99]])}))),function initPlanner(t){return u.apply(this,arguments)})},{key:"getPlannerElementByIndex",value:function getPlannerElementByIndex(t){var r=void 0,a=0;return this.plannerElements.forEach((function(o,l){t==a&&(r=o),a++})),r}},{key:"addPlannerElement",value:(a=(0,l.Z)(g().mark((function _callee7(t,r){var a,o,l,i,c,d,u;return g().wrap((function _callee7$(g){for(;;)switch(g.prev=g.next){case 0:if(c=new h.Z(this.set.getSetId(),t,this.nextElementId,DivaStandardPlanner.plannerType),this.nextElementId++,this.plannerElements.set(c.ElementId,c),this.set.setElementId(t,c.ElementId),d=this.set.getPlannerData(c.ElementId),c.updatePlannerData(d),this.doDisablePlanner2D){g.next=9;break}return g.next=9,m.Z.loadSVG(c,this.set);case 9:if(null==(u=null!==(a=r.dockingPointInfos)&&void 0!==a?a:[{targetDockingPointId:r.targetDockingPointId,targetElemIdToDock:r.targetElemIdToDock}])||null===(o=u[0])||void 0===o||!o.targetElemIdToDock||null==u||null===(l=u[0])||void 0===l||!l.targetDockingPointId){g.next=15;break}return g.next=13,this.addElementToWorld(c,u);case 13:g.next=27;break;case 15:if(null==u||null===(i=u[0])||void 0===i||!i.targetElemIdToDock){g.next=20;break}return g.next=18,this.addElementToWorld(c,u);case 18:g.next=27;break;case 20:if(!r.oldPlannerTransform){g.next=25;break}return g.next=23,this.addElementToWorld(c,void 0,void 0,void 0,void 0,{forceSetToTrans:!0,transform:r.oldPlannerTransform});case 23:g.next=27;break;case 25:return g.next=27,this.addElementToWorld(c);case 27:this.updatePlannerBoundingBox();case 28:case"end":return g.stop()}}),_callee7,this)}))),function addPlannerElement(t,r){return a.apply(this,arguments)})},{key:"movePlannerElement",value:function movePlannerElement(){throw Error("move planner not implemented in standard")}},{key:"copyPlannerElement",value:(r=(0,l.Z)(g().mark((function _callee8(t,r){var a,o,l,i,c,d;return g().wrap((function _callee8$(u){for(;;)switch(u.prev=u.next){case 0:a=0;case 1:if(!(a<t.length)){u.next=24;break}if(l=t[a],null!=r){u.next=7;break}return u.next=6,this.addPlannerElement(l.value,{});case 6:return u.abrupt("continue",21);case 7:if(-1==(i=null===(o=r.copyIndex)||void 0===o?void 0:o.x)||1==i){u.next=12;break}return u.next=11,this.addPlannerElement(l.value,{});case 11:return u.abrupt("continue",21);case 12:if(c=this.plannerElements.get(l.key),d=null==c?void 0:c.getFreeDockingPointsByType(-1==i?"AVL":"AVR").find((function(t){return!t.IsDisabled})),!c||!d){u.next=19;break}return u.next=17,this.addPlannerElement(l.value,{targetElemIdToDock:c.ElementId,targetDockingPointId:d.DpId});case 17:u.next=21;break;case 19:return u.next=21,this.addPlannerElement(l.value,{});case 21:a++,u.next=1;break;case 24:case"end":return u.stop()}}),_callee8,this)}))),function copyPlannerElement(t,a){return r.apply(this,arguments)})},{key:"getPlannerElementsInfluencedByDeletion",value:function getPlannerElementsInfluencedByDeletion(t,r){return[]}},{key:"getPlannerElementsInfluencedByCopy",value:function getPlannerElementsInfluencedByCopy(t,r){if(!r||"BoxPlanner_backside"!=r.copyType&&"STD"!=r.copyType)throw new Error("copyType needs to be BoxPlanner_backside or STD here");return this.plannerElements.has(t)?[t]:[]}},{key:"deletePlannerElement",value:(t=(0,l.Z)(g().mark((function _callee9(t,r){var a,o,l,i,c,d,u,h,p,m,D,k,E,I,y;return g().wrap((function _callee9$(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,P.ZP.Sleep(1);case 2:if(this.plannerElements.has(t)){g.next=4;break}return g.abrupt("return",{});case 4:return a=this.plannerElements.get(t),o=this.getParentElement(a),l=-1,i=999,c=-1,d=-1,u=!1,this.plannerElements.forEach((function(t,r){u||(null!=a&&a.IsAccessoire&&a.PosNr==t.PosNr&&(c=t.getElementId(),u=!0),t.getPosNr()<a.getPosNr()&&t.getPosNr()>l?(l=t.getPosNr(),c=t.getElementId()):t.getPosNr()>a.getPosNr()&&t.getPosNr()<i&&(i=t.getPosNr(),d=t.getElementId()))})),h=!1,r&&(p=a.getDockingDockingPointsByType("AVL"),m=a.getDockingDockingPointsByType("AVR"),p.length>0&&m.length>0&&(D=this.plannerElements.get(p[0].OnElementId),k=this.plannerElements.get(m[0].OnElementId),D&&k&&(E=D.getDockingDockingPointsByType("AVR"),I=k.getDockingDockingPointsByType("AVL"),E.length>0&&I.length>0&&(v.Z.removeDockingPointRelations(a),h=!0,v.Z.tryDockElementDPToDP(D,k,E[0],I[0]))))),y={rotDeg:a.getRotDeg(),worldPosCenter:a.WorldPosCenter},h||v.Z.removeDockingPointRelations(a),this.plannerElements.delete(t),this.tryToDockForNotDockedAccessoire(o),this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.updatePlannerPosNr(),this.checkCollision(!1,a.getElementId()),this.updatePlannerBoundingBox(),g.abrupt("return",{newElementToSelect:c>=0?c:d>=0?d:void 0,transform:y});case 24:case"end":return g.stop()}}),_callee9,this)}))),function deletePlannerElement(r,a){return t.apply(this,arguments)})},{key:"tryToDockForNotDockedAccessoire",value:function tryToDockForNotDockedAccessoire(t){if(t)for(var r=t.getCurrentAccessorires().filter((function(t){return t.getIsNotDockedAccessoire()})),a=0;a<r.length;a++){var o=r[a].getElementId(),l=this.plannerElements.get(o);if(l)if(this.dockToAVUorAVOororAVNorAVSorAVC(l,[t]))break}}},{key:"checkCollision",value:function checkCollision(t,r){if(!this.doDisablePlanner2D){for(var a,o,l=this.getAllPlannerElements(),i=!1,c=[],d=0;d<l.length;d++){var u=l[d];if(!r||u.getElementId()==r)for(var g=r?0:d+1;g<l.length;g++){var h,P,p=l[g];if(u.getElementId()!=p.getElementId()&&!v.Z.checkElementsAreDocking(u,p)){var D=!1;if((this.set.CatalogData.doCheckConstructionWarnings||null!==(h=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==h&&h.includes(u.ArticleCodex)||null!==(P=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==P&&P.includes(p.ArticleCodex))&&(D=m.Z.checkCollision(u,p,this.set.CatalogData.checkCollisionForDifferentLayers)),D&&(i=!0,c.push({elementId1:u.getElementId(),elementId2:p.getElementId()}),E.debug("Collision Found between element1: "+u.ElementId+"; and element2: "+p.ElementId),!t))break}}}if(this.collisionHandler.collisionDetected&&!i)null===(a=(o=this.collisionHandler).updatePlannerMsgContainer)||void 0===a||a.call(o,"COLLISION_MSG",!1,"WARNING","COLLISION_MSG",!1);else if(!this.collisionHandler.collisionDetected&&i){var k,I;null===(k=(I=this.collisionHandler).updatePlannerMsgContainer)||void 0===k||k.call(I,"COLLISION_MSG",!0,"WARNING","COLLISION_MSG",!1)}this.collisionHandler.collisionPairs=c,this.collisionHandler.collisionDetected=i}}},{key:"updateSetPosNr",value:function updateSetPosNr(t){for(var r=this.getAllPlannerElements(),a=0;a<r.length;a++){var o=r[a];o.SetPosNr=t+o.PosNr-1,this.set.setPosNr(o.ElementId,o.getPosNr())}for(var l=0;l<r.length;l++)r[l].IsAccessoire||this.set.giveAccNewPosNrByBasketId(r[l].getBasketId());return r.length}},{key:"updatePlannerTrans",value:function updatePlannerTrans(t,r,a,o,l,i,c){var d=this,u=!1;if(this.plannerElements.has(t)){var g=this.plannerElements.get(t);if(null==g||g.updateDeltaTrans(r,a,o,"END"==l,c),"START"==l){if(g){var h=["AVR","AVL"];g.IsDockedAccessoire&&(h=h.concat(["AVO","AVU","AVN","AVS","AVC"]));for(var P=v.Z.removeDockingPointRelationsByType(g,h),p=0;p<P.length;p++)u=this.set.onDockingChanged(g.ElementId,P[p],"UNDOCK")}}else if("END"==l){var m=v.Z.searchDockableElementsInArea(g,this.getAllPlannerElements(),i);null!=m&&m.size>0&&m.forEach((function(t,r){var a=d.plannerElements.get(t.targetDP.ElementId);a&&v.Z.tryDockElementDPToDP(g,a,t.sourceDP,t.targetDP)})),u=this.updateAllElementsWorldPos(t),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}}return u}},{key:"destroyPlanner",value:function destroyPlanner(){this.plannerElements.forEach((function(t,r){t.destroy()})),this.plannerElements.clear()}},{key:"saveSetPlanner",value:function saveSetPlanner(){var t=this;if(0==this.plannerElements.size)return null;var r=[];return this.plannerElements.forEach((function(a,o){for(var l=a.getDockingDockingPoints(),i=[],c=0;c<l.length;c++){var d,u={id:l[c].DpId,onID:l[c].OnElementId,onDPID:null===(d=l[c].OnDP)||void 0===d?void 0:d.DpId};i.push(u)}var g={elementID:a.getElementId(),basketID:t.set.getBasketId(a.getElementId()),CatalogCodex:t.set.getCatalogCodex(),Codex:t.set.getArticleCodex(a.getElementId()),posNr:a.PosNr,accNr:a.IsDockedAccessoire?a.AccessoirePosNr:void 0,x:a.WorldPosCenter.x,y:a.WorldPosCenter.y,z:a.WorldPosCenter.z,rot:a.RotDeg,width:a.Width?a.Width:-1,height:a.Height?a.Height:-1,depth:a.Depth?a.Depth:-1,DP:i};if(a.IsAccessoire){var h=t.set.getParentBasketIdOfElementId(a.getElementId());null!=h&&(g.AccessoireInitParams={RelatedToBasketID:h})}r.push(g)})),{setId:this.set.getSetId(),x:0,y:0,z:0,width:this.plannerBoundingBox.Size.x,height:this.plannerBoundingBox.Size.y,depth:this.plannerBoundingBox.Size.z,rot:0,elements:r}}},{key:"getPlannerId",value:function getPlannerId(){return this.plannerID}},{key:"getSetData",value:function getSetData(t,r,a,o){var l=this,i={ID:r?this.set.getSetId():"S1",H:"",x:0,y:0,z:0,w:0,ELE:[],Blob:this.set.CatalogData.supplierILN,Cat:this.set.getCatalogCodex()},c=this.set.getAlternateRenderInfo();c&&(i.AlternateImg=c),a&&(i.ShowDim=a),this.isIDM3DCat&&(i.IsIDM3D=!0,i.IDM3DCatCodex=this.IDM3DCatCodex,i.IDM3DEnvironment=this.IDM3DEnvironment),this.plannerElements.forEach((function(r,c){var d=l.set.getPlannerConfigData(c,o),u=d.config,g=[];if(d.accs&&d.accs.length>0)for(var h=0;h<d.accs.length;h++)l.plannerElements.has(d.accs[h])&&g.push("E"+d.accs[h]);if(!t||null!=u.Model){var p,m,D,v,k=l.set.getArticleByElementId(c),E={ID:"E"+c,Model:u.Model,x:-Math.round(100*r.WorldPosCenterIgnoreOLF.x)/100,y:Math.round(100*r.WorldPosCenterIgnoreOLF.y)/100,z:Math.round(100*r.WorldPosCenterIgnoreOLF.z)/100,PosPivot:"Center",w:Math.round(100*r.getRotDeg())/100,RotPivot:"Center",DP:r.getDockingPointJS3D(),MAT:u.MAT,MOVE:null!==(p=u.MOVE)&&void 0!==p?p:void 0,CFG:u.CFG,H:"",ACCs:g.length>0?g:void 0};if(a)E.TechSize={Width:null==r.Width||isNaN(r.Width)?null!==(m=null==k?void 0:k.width)&&void 0!==m?m:0:r.Width,Height:null==r.Height||isNaN(r.Height)?null!==(D=null==k?void 0:k.height)&&void 0!==D?D:0:r.Height,Depth:null==r.Depth||isNaN(r.Depth)?null!==(v=null==k?void 0:k.depth)&&void 0!==v?v:0:r.Depth};var I=(0,P.FB)(JSON.stringify(E));E.H=I,i.ELE.push(E)}var y=l.set.getShelfPlannerData(c);if(y)for(var x=0;x<y.length;x++){var A=y[x],C=l.set.getShelfPlannerConfigData(A.basketId).config,b=[];if(C.accs&&C.accs.length>0)for(var V=0;V<C.accs.length;V++)l.plannerElements.has(C.accs[V])&&b.push("E"+C.accs[V]);var B={ID:"E"+A.parentElementId+"."+A.gridId+"."+A.rh,H:"",Model:A.model,x:0,y:0,z:1,w:0,PosPivot:"Center",RotPivot:"Center",DP:"RH"+A.rh+":E"+A.parentElementId,GN:A.gridName,MAT:C.MAT,CFG:C.CFG,ACCs:b.length>0?b:void 0};I=(0,P.FB)(JSON.stringify(B));B.H=I,i.ELE.push(B)}}));var d=(0,P.FB)(JSON.stringify(i));return i.H=d,{constructionSet:i}}},{key:"getElementPosInfo",value:function getElementPosInfo(){var t={};return this.plannerElements.forEach((function(r,a){r.IsDockedAccessoire?t[a]={pos:r.PosNr,isAcc:!0,accPos:r.AccessoirePosNr}:t[a]={pos:r.PosNr,isAcc:!1}})),t}},{key:"getPlanningIsComplete",value:function getPlanningIsComplete(t){var r=this,a=!t&&(this.set.CatalogData.doHideCompletenessWarning||!this.set.CatalogData.doCheckConstructionWarnings),o=!1;return this.plannerElements.forEach((function(t,l){var i;(!a||null!==(i=r.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==i&&i.includes(t.ArticleCodex))&&!o&&(t.getFreeDockingPointsByType("AVL").length>0||t.getFreeDockingPointsByType("AVR").length>0)&&(o=!0)})),!o}},{key:"getPlannerBoundingBox",value:function getPlannerBoundingBox(){var t=this.set.CatalogData,r=this.plannerBoundingBox.getWidth(t.PlannerMeasureDigits),a=this.plannerBoundingBox.getDepth(t.PlannerMeasureDigits),o=this.plannerBoundingBox.getHeight(t.PlannerMeasureDigits),l=this.plannerBoundingBox.getWidth(t.PlannerMeasureDigits,!0),i=this.plannerBoundingBox.getDepth(t.PlannerMeasureDigits,!0),c=this.plannerBoundingBox.getHeight(t.PlannerMeasureDigits,!0),d=l!==r||i!==a||c!==o;return{width:r,height:o,depth:a,widthIgnoreOLF:d?l:void 0,depthIgnoreOLF:d?i:void 0,heightIgnoreOLF:d?c:void 0}}},{key:"updatePlannerBoundingBox",value:function updatePlannerBoundingBox(){this.plannerBoundingBox.calcPlannerBoundingBox(this.getAllPlannerElements()),this.plannerBoundingBox.calcPlannerBoundingBoxIgnoreOLF(this.getAllPlannerElements())}},{key:"getCatalogData",value:function getCatalogData(){return this.set.CatalogData}},{key:"getAllPlannerElements",value:function getAllPlannerElements(){var t=[];return this.plannerElements.forEach((function(r,a){t.push(r)})),t}},{key:"getParentElement",value:function getParentElement(t){var r=void 0,a=t.getParentElementId();return a&&(r=this.plannerElements.get(a)),r}},{key:"getPositionOfPlannerElements",value:function getPositionOfPlannerElements(){var t=this.set.getSetId();this.plannerElements.forEach((function(r,a){E.log("SetID:",t),E.log("Elementid:",r.ElementId),E.log("X:",r.WorldPosCenter.x),E.log("Y:",r.WorldPosCenter.y),E.log("X:",r.WorldPosCenter.z),E.log("ROT:",r.RotDeg),E.log("___________________________")}))}},{key:"clonePlanner",value:function clonePlanner(t,r){return new DivaStandardPlanner(t,(function(){}),r,new k.Z,!0,!1)}},{key:"getPlannerInteractionInformation",value:function getPlannerInteractionInformation(){return E.error(new P.GE("The function getPlannerInteractionInformation is not implemented yet for standard planner. Dont call it or ask roadmap when its its turn",{code:"WC_0012"})),{boxPlannerInteractionInformationPerElement:new Map}}},{key:"getGeneralPlanningState",value:function getGeneralPlanningState(t){return E.error(new P.GE("The function getGeneralPlanningState is not implemented yet for standard planner. Dont call it or ask roadmap when its its turn",{code:"WC_0012"})),{grids:[]}}}]);var t,r,a,u,y,x,A,C,b}();(0,d.Z)(y,"plannerType","STD")},65411:(t,r,a)=>{a.d(r,{Z:()=>u});var o=a(13125),l=a(43860),i=a(89429),c=a(49736);function _superPropBase(t,r){for(;!{}.hasOwnProperty.call(t,r)&&null!==(t=(0,c.Z)(t)););return t}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,r,a){var o=_superPropBase(t,r);if(o){var l=Object.getOwnPropertyDescriptor(o,r);return l.get?l.get.call(arguments.length<3?t:a):l.value}},_get.apply(null,arguments)}var d=a(91870);function _callSuper(t,r,a){return r=(0,c.Z)(r),(0,i.Z)(t,_isNativeReflectConstruct()?Reflect.construct(r,a||[],(0,c.Z)(t).constructor):r.apply(t,a))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}const u=new(function(t){function DockingPointHandler(){return(0,o.Z)(this,DockingPointHandler),_callSuper(this,DockingPointHandler,arguments)}return(0,d.Z)(DockingPointHandler,t),(0,l.Z)(DockingPointHandler,[{key:"initDockingPointsFromSvg",value:function initDockingPointsFromSvg(t,r,a,o){var l="minX"in a?a:{minX:a.svgMinXVal,minY:a.svgMinYVal};!function _superPropGet(t,r,a,o){var l=_get((0,c.Z)(1&o?t.prototype:t),r,a);return 2&o&&"function"==typeof l?function(t){return l.apply(a,t)}:l}(DockingPointHandler,"initDockingPointsFromSvg",this,3)([t,r,l,o])}}])}(a(60415).pD))},95212:(t,r,a)=>{a.d(r,{Z:()=>v});var o=a(84658),l=a(13125),i=a(43860),c=a(80248),d=a(50747),u=a.n(d),g=a(58129),h=a(65411),P=a(64357),p=a(69369),m=a(60415),D=p.ZP.initLog("Planner","WEB-PLANNER-LOGIC");const v=new(function(){return(0,i.Z)((function PlannerHandler2D(){(0,l.Z)(this,PlannerHandler2D),(0,c.Z)(this,"svgUtils",void 0),this.svgUtils=new g.Z}),[{key:"checkCollision",value:function checkCollision(t,r,a){if(p.ZP.startSpanOfApm("PlannerHandler2D checkCollision"),!(t.Layer==r.Layer||a.includes(Number(t.Layer))&&a.includes(Number(r.Layer))))return p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var o=t.getWorld2DBBoxOutline(),l=r.getWorld2DBBoxOutline();if((0,m.JU)(o,l)){if(!t.HasOLTPolygon&&!t.HasOLFPolygon)return D.error(new p.GE("checkCollision PlannerHandler2D - The element with id: "+t.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;if(!r.HasOLTPolygon&&!r.HasOLFPolygon)return D.error(new p.GE("checkCollision PlannerHandler2D - The element with id: "+r.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var i=t.HasOLFPolygon?t.getOLFPolygonWorldPos():t.getOLTPolygonWorldPos(),c=r.HasOLFPolygon?r.getOLFPolygonWorldPos():r.getOLTPolygonWorldPos();return p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,m.JU)(i,c)}return p.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,m.uA)(o,l)}},{key:"parseSvg",value:function parseSvg(t,r,a,o,l){var i,c;r=this.svgUtils.removeMaskFromSvg(r),h.Z.initDockingPointsFromSvg(t,this.svgUtils.getDPsInSVG(r),a,o);var d=this.svgUtils.getPointOfPoligonById(r,"OLT");null!=d&&d.length||D.warn("no olt fount in svg for element"+t.ArticleCodex+" with id "+t.getElementId()),t.OLTPolygon=d;var u=this.svgUtils.getPointOfPoligonById(r,"OLF"),g=(0,m.Qq)(r);if(null!=u&&u.length){var v,k,E=this.svgUtils.getBoundingBoxOfPoints(u),I=null!==(v=null==g?void 0:g.width)&&void 0!==v?v:E.width,y=null!==(k=null==g?void 0:g.height)&&void 0!==k?k:E.height;t.setupOLF(u,I,y)}else if(g){var x=[new P.FM(g.minX,g.minY),new P.FM(g.minX+g.width,g.minY),new P.FM(g.minX+g.width,g.minY+g.height),new P.FM(g.minX,g.minY+g.height)];t.setupOLF(x,g.width,g.height)}else null!=l&&l.heightOLF,null!=l&&l.widthOLF?t.setupOLF(u,null==l?void 0:l.widthOLF,null==l?void 0:l.heightOLF):t.clearOLF();var A=(0,m.hd)(r);if(t.OLTWidth=null!==(i=null==A?void 0:A.width)&&void 0!==i?i:0,t.OLTDepth=null!==(c=null==A?void 0:A.height)&&void 0!==c?c:0,t.OLTLeft=A&&g?A.x-g.minX:0,t.OLTTop=A&&g?A.y-g.minY:0,t.DoSetWidthFromSVG||t.DoSetDepthFromSVG){var C=(0,m.O3)(r);t.DoSetWidthFromSVG&&null!=C&&C.width&&(t.WidthFromSVG=C.width/p.ZP.UnitRecalc),t.DoSetDepthFromSVG&&null!=C&&C.height&&(t.DepthFromSVG=C.height/p.ZP.UnitRecalc)}t.SvgData=r,t.cleanShapeOLF2D(),t.cleanShapeOLT2D()}},{key:"getMinBorderSVG",value:function getMinBorderSVG(t){var r=(0,m.dI)(t);return{svgMinXVal:r.minX,svgMinYVal:r.minY}}},{key:"loadSVG",value:(t=(0,o.Z)(u().mark((function _callee(t,r){var a,o,l,i,c,d,g,h,P,m,v=this;return u().wrap((function _callee$(u){for(;;)switch(u.prev=u.next){case 0:if(a=t.SvgFileName){u.next=3;break}return u.abrupt("return",!1);case 3:if(!r.CatalogData.isIDMFormat){u.next=9;break}return u.next=6,r.api.fetchData(a,{method:"GET",config:{},data:{}});case 6:o=u.sent,u.next=16;break;case 9:return u.next=11,r.api.getDataCache(this.getSVGUrl(a,r.CatalogData.mediaUrl),void 0,r.CatalogData.accountSessionGuid);case 11:if(!(i=u.sent).Error){u.next=14;break}throw new Error(i.Error);case 14:"success"==i.Result.toLowerCase()&&(l=i.Content),o=p.ZP.decodeBase64(l);case 16:if(o||D.error(new p.GE("Fehler beim laden des SVGs ",{code:"WC_0009",custom:{svgFile:a}})),t.svgBefore=o,c=t.Width,-1===(d=t.Depth)&&-1!==t.Height&&(d=t.Height),!(null!=c&&c>0&&null!=d&&d>0)){u.next=31;break}return h=this.getMinBorderSVG(o),P=r.CatalogData.isIDMFormat?a:"".concat(r.CatalogData.mediaUrl,"pln_").concat(a),m="",u.next=27,new Promise((function(t,a){g=v.svgUtils.ccCheckStretchAreas(o,c,d,r.CatalogData.useGlobalSVGScale,h.svgMinXVal,h.svgMinYVal,(function(r){m=r,t()}),P)}));case 27:t.svgAfter=m,this.parseSvg(t,m,h,r.CatalogData.getPlannerConfig(),g),u.next=33;break;case 31:t.svgAfter=o,this.parseSvg(t,o,{svgMinXVal:0,svgMinYVal:0},r.CatalogData.getPlannerConfig());case 33:return u.abrupt("return",!0);case 34:case"end":return u.stop()}}),_callee,this)}))),function loadSVG(r,a){return t.apply(this,arguments)})},{key:"getSVGUrl",value:function getSVGUrl(t,r){var a=r+"pln_"+t,o=a.indexOf("/files/");return a=a.substring(o),"function=GetFileAsString&fileUrl="+encodeURIComponent(a)}}]);var t}())}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 8850.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[8850],{18850:(e,n,i)=>{i.r(n),i.d(n,{default:()=>u});var d=i(80248),r=i(9420),o=(i(87363),i(75327)),s=i(81479),l=i(46770),t=i(55461),m=i(65515),p=i.n(m),a=i(88683),x=i(47514);function ownKeys(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,d)}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,d.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}const u=(0,r.Pi)((function SettingsPosNr(e){var n,i=e.id,d=(0,o.NP)(),r=d.settingsState.articleInfos[i],m=(0,a.useDivaCore)().state.dimensions,u=m.isMobile,w=m.isTablet,c={},b={},h=void 0,g=!1,f={},S=(0,l.XI)({delayEnter:1500,hideOnScroll:!0}),z=(0,l.sJ)({isOpen:S[0],auto:!0,placement:d.getViewConfig().tooltipPosition||"left-center"});return u||w||d.getViewConfig().hideTooltip||(g=S[0],f=S[1],c=z.triggerProps,b=z.layerProps,h=z.renderLayer),(0,x.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({onClick:function onClick(){return d.paletteViewHandler.articleInfoSelected(Number(i))},id:"ArticleInfo",className:p()(s.sc,d.settingsState.allArticlesAreActive?s._Y:r.isActive?s.zh:s.P$,r.posNr.toString().length>2?s.yG:void 0)},c),f),{},{children:[r.posNr,g&&(null===(n=h)||void 0===n?void 0:n((0,x.jsx)(t.default,{text:r.name,price:r.singlePrice,codex:r.codex,image:r.image,layerProps:b},r.codex)))]}),i)}))},85158:(e,n,i)=>{i.d(n,{AI:()=>m,Iz:()=>t,P$:()=>w,ZP:()=>b,_Y:()=>u,ai:()=>a,qh:()=>l,sc:()=>p,yG:()=>c,zh:()=>x});var d=i(8081),r=i.n(d),o=i(23645),s=i.n(o)()(r());s.push([e.id,'.index-module--bWmQs.index-module--SzxDT {\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n flex-wrap: wrap;\n align-items: center;\n font-size: 16px;\n line-height: 18px;\n color: var(--secondaryColor);\n height: 100%;\n position: relative;\n max-width: 120px;\n}\n\n.index-module--Ys5q8 {\n outline: none;\n}\n\n.index-module--bWmQs.index-module--SzxDT .swiper {\n width: 100%;\n height: 100%;\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5 {\n border-radius: var(--articlePosNrRadius);\n font-size: 16px;\n line-height: var(--articlePosNrSize);\n min-width: var(--articlePosNrSize);\n width: 25px;\n text-align: center;\n display: inline-block;\n margin: 0 1px;\n transition:\n box-shadow 0.2s ease,\n background-color 1s ease,\n color 1s ease;\n}\n.index-module--QJD9B.index-module--bWmQs.index-module--SzxDT .index-module--nloS5,\n.index-module--QJD9B.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--ZxfSk {\n font-size: 14px;\n width: 20px;\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5:hover {\n box-shadow: 0 -5px 16px rgba(0, 0, 0, 0.1);\n\n cursor: pointer;\n}\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--ZxfSk {\n color: white;\n background-color: var(--primaryColor);\n}\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--avoDM {\n color: white;\n background: var(--primaryColor);\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--DqxoX {\n color: var(--secondaryColor);\n background: #eaeaea;\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--_niDT,\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--_niDT.index-module--ZxfSk {\n font-size: 12px;\n}\n\n/**\n * Swiper 11.1.12\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * https://swiperjs.com\n *\n * Copyright 2014-2024 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: September 1, 2024\n */\n\n.index-module--bWmQs.index-module--SzxDT .swiper {\n margin-left: auto;\n margin-right: auto;\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 0;\n /* Fix of Webkit flickering */\n z-index: 1;\n display: block;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-vertical > .swiper-wrapper {\n flex-direction: column;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n transition-property: transform;\n transition-timing-function: initial;\n transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);\n box-sizing: content-box;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-android .swiper-slide,\n.index-module--bWmQs.index-module--SzxDT .swiper-ios .swiper-slide,\n.index-module--bWmQs.index-module--SzxDT .swiper-wrapper {\n transform: translate3d(0px, 0, 0);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-horizontal {\n touch-action: pan-y;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-vertical {\n touch-action: pan-x;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-slide {\n flex-shrink: 0;\n width: -moz-fit-content;\n width: fit-content;\n height: 100%;\n position: relative;\n transition-property: transform;\n display: block;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-slide-invisible-blank {\n visibility: hidden;\n}\n/* Auto Height */\n.index-module--bWmQs.index-module--SzxDT .swiper-autoheight,\n.index-module--bWmQs.index-module--SzxDT .swiper-autoheight .swiper-slide {\n height: auto;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-autoheight .swiper-wrapper {\n align-items: flex-start;\n transition-property: transform, height;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-backface-hidden .swiper-slide {\n transform: translateZ(0);\n backface-visibility: hidden;\n}\n/* 3D Effects */\n.index-module--bWmQs.index-module--SzxDT .swiper-3d.swiper-css-mode .swiper-wrapper {\n perspective: 1200px;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-wrapper {\n transform-style: preserve-3d;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d {\n perspective: 1200px;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-cube-shadow {\n transform-style: preserve-3d;\n}\n/* CSS Mode */\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode > .swiper-wrapper {\n overflow: auto;\n scrollbar-width: none;\n /* For Firefox */\n -ms-overflow-style: none;\n /* For Internet Explorer and Edge */\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {\n display: none;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: start start;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-horizontal > .swiper-wrapper {\n scroll-snap-type: x mandatory;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-vertical > .swiper-wrapper {\n scroll-snap-type: y mandatory;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-free-mode > .swiper-wrapper {\n scroll-snap-type: none;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: none;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered > .swiper-wrapper::before {\n content: \'\';\n flex-shrink: 0;\n order: 9999;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: center center;\n scroll-snap-stop: always;\n}\n[dir="ltr"] .index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-left: var(--swiper-centered-offset-before);\n}\n[dir="rtl"] .index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-right: var(--swiper-centered-offset-before);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {\n height: 100%;\n min-height: 1px;\n width: var(--swiper-centered-offset-after);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {\n margin-top: var(--swiper-centered-offset-before);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {\n width: 100%;\n min-width: 1px;\n height: var(--swiper-centered-offset-after);\n}\n/* Slide styles start */\n/* 3D Shadows */\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-left,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-right,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-top,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-bottom,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-left,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-right,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-top,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-bottom {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 10;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow {\n background: rgba(0, 0, 0, 0.15);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-left {\n background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-right {\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-top {\n background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-bottom {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-lazy-preloader {\n width: 42px;\n height: 42px;\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: -21px;\n margin-top: -21px;\n z-index: 10;\n transform-origin: 50%;\n box-sizing: border-box;\n border: 4px solid var(--swiper-theme-color);\n border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));\n border-radius: 50%;\n border-top-color: transparent;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,\n.index-module--bWmQs.index-module--SzxDT .swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader {\n animation: swiper-preloader-spin 1s infinite linear;\n}\n',""]);var l="index-module--bWmQs",t="index-module--SzxDT",m="index-module--Ys5q8",p="index-module--nloS5",a="index-module--QJD9B",x="index-module--ZxfSk",u="index-module--avoDM",w="index-module--DqxoX",c="index-module--_niDT";const b=s},81479:(e,n,i)=>{i.d(n,{AI:()=>c.AI,Iz:()=>c.Iz,P$:()=>c.P$,_Y:()=>c._Y,ai:()=>c.ai,qh:()=>c.qh,sc:()=>c.sc,yG:()=>c.yG,zh:()=>c.zh});var d=i(93379),r=i.n(d),o=i(7795),s=i.n(o),l=i(90569),t=i.n(l),m=i(3565),p=i.n(m),a=i(19216),x=i.n(a),u=i(44589),w=i.n(u),c=i(85158),b={};b.styleTagTransform=w(),b.setAttributes=p(),b.insert=t().bind(null,"head"),b.domAPI=s(),b.insertStyleElement=x();r()(c.ZP,b),c.ZP&&c.ZP.locals&&c.ZP.locals}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[8850],{18850:(e,n,i)=>{i.r(n),i.d(n,{default:()=>u});var d=i(80248),r=i(9420),o=(i(87363),i(75327)),s=i(81479),l=i(58292),t=i(55461),m=i(65515),p=i.n(m),a=i(88683),x=i(47514);function ownKeys(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,d)}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,d.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}const u=(0,r.Pi)((function SettingsPosNr(e){var n,i=e.id,d=(0,o.NP)(),r=d.settingsState.articleInfos[i],m=(0,a.useDivaCore)().state.dimensions,u=m.isMobile,w=m.isTablet,c={},b={},h=void 0,g=!1,f={},S=(0,l.XI)({delayEnter:1500,hideOnScroll:!0}),z=(0,l.sJ)({isOpen:S[0],auto:!0,placement:d.getViewConfig().tooltipPosition||"left-center"});return u||w||d.getViewConfig().hideTooltip||(g=S[0],f=S[1],c=z.triggerProps,b=z.layerProps,h=z.renderLayer),(0,x.jsxs)("div",_objectSpread(_objectSpread(_objectSpread({onClick:function onClick(){return d.paletteViewHandler.articleInfoSelected(Number(i))},id:"ArticleInfo",className:p()(s.sc,d.settingsState.allArticlesAreActive?s._Y:r.isActive?s.zh:s.P$,r.posNr.toString().length>2?s.yG:void 0)},c),f),{},{children:[r.posNr,g&&(null===(n=h)||void 0===n?void 0:n((0,x.jsx)(t.default,{text:r.name,price:r.singlePrice,codex:r.codex,image:r.image,layerProps:b},r.codex)))]}),i)}))},85158:(e,n,i)=>{i.d(n,{AI:()=>m,Iz:()=>t,P$:()=>w,ZP:()=>b,_Y:()=>u,ai:()=>a,qh:()=>l,sc:()=>p,yG:()=>c,zh:()=>x});var d=i(8081),r=i.n(d),o=i(23645),s=i.n(o)()(r());s.push([e.id,'.index-module--bWmQs.index-module--SzxDT {\n font-family: var(--diva-typography-font-family);\n font-weight: 100;\n flex-wrap: wrap;\n align-items: center;\n font-size: 16px;\n line-height: 18px;\n color: var(--secondaryColor);\n height: 100%;\n position: relative;\n max-width: 120px;\n}\n\n.index-module--Ys5q8 {\n outline: none;\n}\n\n.index-module--bWmQs.index-module--SzxDT .swiper {\n width: 100%;\n height: 100%;\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5 {\n border-radius: var(--articlePosNrRadius);\n font-size: 16px;\n line-height: var(--articlePosNrSize);\n min-width: var(--articlePosNrSize);\n width: 25px;\n text-align: center;\n display: inline-block;\n margin: 0 1px;\n transition:\n box-shadow 0.2s ease,\n background-color 1s ease,\n color 1s ease;\n}\n.index-module--QJD9B.index-module--bWmQs.index-module--SzxDT .index-module--nloS5,\n.index-module--QJD9B.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--ZxfSk {\n font-size: 14px;\n width: 20px;\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5:hover {\n box-shadow: 0 -5px 16px rgba(0, 0, 0, 0.1);\n\n cursor: pointer;\n}\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--ZxfSk {\n color: white;\n background-color: var(--primaryColor);\n}\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--avoDM {\n color: white;\n background: var(--primaryColor);\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--DqxoX {\n color: var(--secondaryColor);\n background: #eaeaea;\n}\n\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--_niDT,\n.index-module--bWmQs.index-module--SzxDT .index-module--nloS5.index-module--_niDT.index-module--ZxfSk {\n font-size: 12px;\n}\n\n/**\n * Swiper 11.1.12\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * https://swiperjs.com\n *\n * Copyright 2014-2024 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: September 1, 2024\n */\n\n.index-module--bWmQs.index-module--SzxDT .swiper {\n margin-left: auto;\n margin-right: auto;\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 0;\n /* Fix of Webkit flickering */\n z-index: 1;\n display: block;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-vertical > .swiper-wrapper {\n flex-direction: column;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n transition-property: transform;\n transition-timing-function: initial;\n transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);\n box-sizing: content-box;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-android .swiper-slide,\n.index-module--bWmQs.index-module--SzxDT .swiper-ios .swiper-slide,\n.index-module--bWmQs.index-module--SzxDT .swiper-wrapper {\n transform: translate3d(0px, 0, 0);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-horizontal {\n touch-action: pan-y;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-vertical {\n touch-action: pan-x;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-slide {\n flex-shrink: 0;\n width: -moz-fit-content;\n width: fit-content;\n height: 100%;\n position: relative;\n transition-property: transform;\n display: block;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-slide-invisible-blank {\n visibility: hidden;\n}\n/* Auto Height */\n.index-module--bWmQs.index-module--SzxDT .swiper-autoheight,\n.index-module--bWmQs.index-module--SzxDT .swiper-autoheight .swiper-slide {\n height: auto;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-autoheight .swiper-wrapper {\n align-items: flex-start;\n transition-property: transform, height;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-backface-hidden .swiper-slide {\n transform: translateZ(0);\n backface-visibility: hidden;\n}\n/* 3D Effects */\n.index-module--bWmQs.index-module--SzxDT .swiper-3d.swiper-css-mode .swiper-wrapper {\n perspective: 1200px;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-wrapper {\n transform-style: preserve-3d;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d {\n perspective: 1200px;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-cube-shadow {\n transform-style: preserve-3d;\n}\n/* CSS Mode */\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode > .swiper-wrapper {\n overflow: auto;\n scrollbar-width: none;\n /* For Firefox */\n -ms-overflow-style: none;\n /* For Internet Explorer and Edge */\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {\n display: none;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: start start;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-horizontal > .swiper-wrapper {\n scroll-snap-type: x mandatory;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-vertical > .swiper-wrapper {\n scroll-snap-type: y mandatory;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-free-mode > .swiper-wrapper {\n scroll-snap-type: none;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: none;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered > .swiper-wrapper::before {\n content: \'\';\n flex-shrink: 0;\n order: 9999;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: center center;\n scroll-snap-stop: always;\n}\n[dir="ltr"] .index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-left: var(--swiper-centered-offset-before);\n}\n[dir="rtl"] .index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-right: var(--swiper-centered-offset-before);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {\n height: 100%;\n min-height: 1px;\n width: var(--swiper-centered-offset-after);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {\n margin-top: var(--swiper-centered-offset-before);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {\n width: 100%;\n min-width: 1px;\n height: var(--swiper-centered-offset-after);\n}\n/* Slide styles start */\n/* 3D Shadows */\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-left,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-right,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-top,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-bottom,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-left,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-right,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-top,\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-bottom {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 10;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow {\n background: rgba(0, 0, 0, 0.15);\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-left {\n background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-right {\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-top {\n background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-3d .swiper-slide-shadow-bottom {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.index-module--bWmQs.index-module--SzxDT .swiper-lazy-preloader {\n width: 42px;\n height: 42px;\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: -21px;\n margin-top: -21px;\n z-index: 10;\n transform-origin: 50%;\n box-sizing: border-box;\n border: 4px solid var(--swiper-theme-color);\n border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));\n border-radius: 50%;\n border-top-color: transparent;\n}\n.index-module--bWmQs.index-module--SzxDT .swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,\n.index-module--bWmQs.index-module--SzxDT .swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader {\n animation: swiper-preloader-spin 1s infinite linear;\n}\n',""]);var l="index-module--bWmQs",t="index-module--SzxDT",m="index-module--Ys5q8",p="index-module--nloS5",a="index-module--QJD9B",x="index-module--ZxfSk",u="index-module--avoDM",w="index-module--DqxoX",c="index-module--_niDT";const b=s},81479:(e,n,i)=>{i.d(n,{AI:()=>c.AI,Iz:()=>c.Iz,P$:()=>c.P$,_Y:()=>c._Y,ai:()=>c.ai,qh:()=>c.qh,sc:()=>c.sc,yG:()=>c.yG,zh:()=>c.zh});var d=i(93379),r=i.n(d),o=i(7795),s=i.n(o),l=i(90569),t=i.n(l),m=i(3565),p=i.n(m),a=i(19216),x=i.n(a),u=i(44589),w=i.n(u),c=i(85158),b={};b.styleTagTransform=w(),b.setAttributes=p(),b.insert=t().bind(null,"head"),b.domAPI=s(),b.insertStyleElement=x();r()(c.ZP,b),c.ZP&&c.ZP.locals&&c.ZP.locals}}]);
|