@crystaldesign/diva-web-planner-react 26.14.0-beta.21 → 26.14.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/esm/{ArLaunchButton-086647bd.js → ArLaunchButton-e6c86939.js} +2 -2
- package/build/esm/{DrawerSwipeHint-859b71e0.js → DrawerSwipeHint-ebf08468.js} +2 -2
- package/build/esm/{Planner2DGrid-17678e00.js → Planner2DGrid-b3618560.js} +1 -1
- package/build/esm/{Planner3DImage-a1d964e5.js → Planner3DImage-aaf90a34.js} +1 -1
- package/build/esm/{RoundToggle-d09ad12a.js → RoundToggle-3c2037d1.js} +1 -1
- package/build/esm/{UnlockCard-788ca113.js → UnlockCard-1ee7d136.js} +1 -1
- package/build/esm/{accessoryPlacementMode-436a18ad.js → accessoryPlacementMode-2628dcc3.js} +1 -1
- package/build/esm/{doorSwap-7b3cc118.js → doorSwap-3767c494.js} +1 -1
- package/build/esm/{index-49d563bc.js → index-019cf27b.js} +1 -1
- package/build/esm/{index-367145e0.js → index-023d9f19.js} +1 -1
- package/build/esm/{index-c3c7dd92.js → index-0244ae93.js} +1 -1
- package/build/esm/{index-52f854c0.js → index-02d293df.js} +3 -3
- package/build/esm/{index-452c2194.js → index-0627ce74.js} +2 -2
- package/build/esm/{index-9a2913db.js → index-068099a7.js} +1 -1
- package/build/esm/{index-184bb341.js → index-06a29906.js} +1 -1
- package/build/esm/{index-11d225b9.js → index-07e55c3b.js} +1 -1
- package/build/esm/{index-aca8f587.js → index-0858e733.js} +1 -1
- package/build/esm/{index-66b500e7.js → index-09ec4f24.js} +2 -2
- package/build/esm/{index-012b3d0e.js → index-0a0c7437.js} +1 -1
- package/build/esm/{index-37ec02f7.js → index-0c579f66.js} +1 -1
- package/build/esm/{index-a6b24ad7.js → index-0dfa5c11.js} +1 -1
- package/build/esm/{index-c687ef14.js → index-1038d990.js} +2 -2
- package/build/esm/{index-df3caf18.js → index-111378d8.js} +2 -2
- package/build/esm/{index-cdefe90e.js → index-1177acc7.js} +1 -1
- package/build/esm/{index-b4b2be2c.js → index-11b5c81c.js} +1 -1
- package/build/esm/{index-9101b598.js → index-121ae0e8.js} +3 -3
- package/build/esm/{index-4150da73.js → index-127b8b91.js} +90 -90
- package/build/esm/{index-55b16df4.js → index-141c92d4.js} +1 -1
- package/build/esm/{index-3898f37b.js → index-14bcb45e.js} +1 -1
- package/build/esm/{index-1f883f67.js → index-150c8b06.js} +8 -8
- package/build/esm/{index-bc9ad1e0.js → index-15b13d4e.js} +2 -2
- package/build/esm/{index-6f14eb3f.js → index-177f8ad8.js} +1 -1
- package/build/esm/{index-087781e0.js → index-186a0ec6.js} +2 -2
- package/build/esm/{index-69dbfeec.js → index-1afe9f11.js} +1 -1
- package/build/esm/{index-26cf241a.js → index-1becb05f.js} +5 -5
- package/build/esm/{index-eaf18f43.js → index-1c50f8c8.js} +13 -13
- package/build/esm/{index-8aa4489d.js → index-1c700ca6.js} +1 -1
- package/build/esm/{index-ee11564b.js → index-1ced9678.js} +1 -1
- package/build/esm/{index-179e28f6.js → index-1d7a3b5f.js} +92 -92
- package/build/esm/{index-38d51605.js → index-22111935.js} +3 -3
- package/build/esm/{index-7013ec1e.js → index-225ef3b8.js} +1 -1
- package/build/esm/{index-f9d2721c.js → index-242dac0f.js} +3 -3
- package/build/esm/{index-74f3b391.js → index-24cb5707.js} +3 -3
- package/build/esm/{index-7d493bea.js → index-25800fec.js} +3 -3
- package/build/esm/{index-64c0a47c.js → index-25f41c42.js} +1 -1
- package/build/esm/{index-be64abc7.js → index-26e9b0ca.js} +1 -1
- package/build/esm/{index-c8d83338.js → index-284413f7.js} +5 -5
- package/build/esm/{index-e1c6f1be.js → index-29845b57.js} +1 -1
- package/build/esm/{index-37a25da4.js → index-2ab65e35.js} +2 -2
- package/build/esm/{index-1aca7620.js → index-2ab77156.js} +2 -2
- package/build/esm/{index-872312c7.js → index-2ed7f016.js} +2 -2
- package/build/esm/{index-c91f6bca.js → index-3150c17e.js} +1 -1
- package/build/esm/{index-95711ec7.js → index-31651acc.js} +1 -1
- package/build/esm/{index-2f8d79e7.js → index-32ee6730.js} +2 -2
- package/build/esm/{index-29954907.js → index-3500e146.js} +92 -92
- package/build/esm/{index-7d306d53.js → index-35d8a8f3.js} +1 -1
- package/build/esm/{index-58da4054.js → index-35effe2d.js} +1 -1
- package/build/esm/{index-42e0c35e.js → index-3786987f.js} +1 -1
- package/build/esm/{index-47ad52ef.js → index-3a2978c2.js} +1 -1
- package/build/esm/{index-7973f888.js → index-413555a0.js} +4 -4
- package/build/esm/{index-4b9c5181.js → index-42633f74.js} +2 -2
- package/build/esm/{index-fc95492d.js → index-4312095a.js} +4 -4
- package/build/esm/{index-560c18d6.js → index-4375e1de.js} +1 -1
- package/build/esm/{index-c950b77f.js → index-4382413b.js} +1 -1
- package/build/esm/{index-0369bb0f.js → index-4460d8f2.js} +1 -1
- package/build/esm/{index-85d981c7.js → index-45094675.js} +1 -1
- package/build/esm/{index-fc5bda9f.js → index-46e4d1d5.js} +1 -1
- package/build/esm/{index-252e5b8b.js → index-48b67497.js} +70 -70
- package/build/esm/{index-8c439931.js → index-4aa73d7a.js} +2 -2
- package/build/esm/{index-7cf5bbec.js → index-4beec6b8.js} +234 -234
- package/build/esm/{index-782a6293.js → index-502cc3fa.js} +9 -9
- package/build/esm/{index-e32113f5.js → index-515db739.js} +1 -1
- package/build/esm/{index-f53709d0.js → index-521e9759.js} +1 -1
- package/build/esm/{index-4c3bbe39.js → index-524fbf69.js} +2 -2
- package/build/esm/{index-2c328e65.js → index-52e61d1f.js} +1 -1
- package/build/esm/{index-dbf16d24.js → index-54cd8180.js} +5 -5
- package/build/esm/{index-57bcd901.js → index-55c07293.js} +3 -3
- package/build/esm/{index-f8c43682.js → index-562e938c.js} +2 -2
- package/build/esm/{index-409904d0.js → index-567123ad.js} +1 -1
- package/build/esm/{index-6e769dd2.js → index-58e7960c.js} +1 -1
- package/build/esm/{index-06466dda.js → index-59d2c9d1.js} +7 -7
- package/build/esm/{index-cdf7ff62.js → index-5bb6ba66.js} +77 -77
- package/build/esm/{index-e2a866ee.js → index-5c4a25be.js} +1 -1
- package/build/esm/{index-7de8613a.js → index-5f840cd3.js} +3 -3
- package/build/esm/{index-8000b928.js → index-60852222.js} +2 -2
- package/build/esm/{index-d2daa5e0.js → index-60916c35.js} +1 -1
- package/build/esm/{index-f23e8aef.js → index-63513559.js} +15 -15
- package/build/esm/{index-632be56c.js → index-637ec102.js} +1 -1
- package/build/esm/{index-406b745d.js → index-694901cf.js} +24 -24
- package/build/esm/{index-22542ac9.js → index-697e8f57.js} +91 -91
- package/build/esm/{index-792558f3.js → index-69c6a333.js} +1 -1
- package/build/esm/{index-e58cb41a.js → index-69dadb82.js} +1 -1
- package/build/esm/{index-e38610b7.js → index-6ad5d9f1.js} +1 -1
- package/build/esm/{index-ddf3a865.js → index-6d9e8ddb.js} +1 -1
- package/build/esm/{index-b58ce6bb.js → index-6e0645e1.js} +1 -1
- package/build/esm/{index-ced1e935.js → index-6e2f36bb.js} +65 -65
- package/build/esm/{index-057ca1b5.js → index-7225db35.js} +2 -2
- package/build/esm/{index-344b7ecf.js → index-7284d684.js} +5 -5
- package/build/esm/{index-0b6141e1.js → index-72e7e6bf.js} +1 -1
- package/build/esm/{index-bdb10c4c.js → index-740fc1a2.js} +1 -1
- package/build/esm/{index-38848961.js → index-75f5b855.js} +1 -1
- package/build/esm/{index-3999a2dd.js → index-76429b71.js} +1 -1
- package/build/esm/{index-5e587a7f.js → index-778bf437.js} +1 -1
- package/build/esm/{index-803bc647.js → index-781bfa4d.js} +18 -18
- package/build/esm/{index-171ea294.js → index-7853d248.js} +1 -1
- package/build/esm/{index-fa55d3ea.js → index-7862b3ed.js} +1 -1
- package/build/esm/{index-47383695.js → index-786b8cf1.js} +1 -1
- package/build/esm/{index-82ef390a.js → index-79f4fa5e.js} +2 -2
- package/build/esm/{index-d3432e26.js → index-7ae607f4.js} +1 -1
- package/build/esm/{index-38deea6a.js → index-7bc825e6.js} +90 -90
- package/build/esm/{index-6b1f3ed4.js → index-7c6f42e1.js} +5 -5
- package/build/esm/{index-ea933feb.js → index-7d187e4e.js} +2 -2
- package/build/esm/{index-e041b21a.js → index-7d2a83df.js} +106 -106
- package/build/esm/{index-b54a1657.js → index-7dbab526.js} +1 -1
- package/build/esm/{index-8059a182.js → index-7e766d14.js} +1 -1
- package/build/esm/{index-f54c8be3.js → index-7e86d41c.js} +1 -1
- package/build/esm/{index-870e35ea.js → index-7f10ef57.js} +1 -1
- package/build/esm/{index-c8361912.js → index-7f85aa62.js} +1 -1
- package/build/esm/{index-b34ee291.js → index-80a8ae53.js} +1 -1
- package/build/esm/{index-0e4ccbc8.js → index-8116ba26.js} +5 -5
- package/build/esm/{index-3e2799d8.js → index-81e2ea3e.js} +4 -4
- package/build/esm/{index-f53ff074.js → index-8573c578.js} +2 -2
- package/build/esm/{index-cf66d3e9.js → index-862bd0f4.js} +18 -18
- package/build/esm/{index-64ac387c.js → index-8cca80f1.js} +2 -2
- package/build/esm/{index-b447f4e4.js → index-8cfa97e9.js} +1 -1
- package/build/esm/{index-59df9e75.js → index-8d1e2bdd.js} +67 -67
- package/build/esm/{index-c5f7a86e.js → index-9126b134.js} +1 -1
- package/build/esm/{index-b4199909.js → index-92b136e0.js} +2 -2
- package/build/esm/{index-1975082a.js → index-9323a203.js} +1 -1
- package/build/esm/{index-314861cf.js → index-93b0725d.js} +5 -5
- package/build/esm/{index-4a7050fa.js → index-93e3f8f8.js} +1 -1
- package/build/esm/{index-7d55617d.js → index-94b8940b.js} +1 -1
- package/build/esm/{index-1fda98de.js → index-96020367.js} +1 -1
- package/build/esm/{index-87a8c07b.js → index-9708163f.js} +1 -1
- package/build/esm/{index-e0c650f3.js → index-98baa61f.js} +22 -22
- package/build/esm/{index-8710faf2.js → index-9aa343f5.js} +2 -2
- package/build/esm/{index-668afdd0.js → index-9ad6b7c0.js} +2 -2
- package/build/esm/{index-3269fbb4.js → index-9ae46176.js} +65 -65
- package/build/esm/{index-a03bd802.js → index-9b9901af.js} +1 -1
- package/build/esm/{index-77d1a4a7.js → index-9d0d7401.js} +1 -1
- package/build/esm/{index-aea6b0b7.js → index-9e2e612c.js} +1 -1
- package/build/esm/{index-a0e3184c.js → index-9e7e7516.js} +1 -1
- package/build/esm/{index-fec324f6.js → index-9ffdf426.js} +7 -7
- package/build/esm/{index-14ecee31.js → index-a03ab0c6.js} +1 -1
- package/build/esm/{index-a6707eb7.js → index-a10089c8.js} +1 -1
- package/build/esm/{index-4e5e02e0.js → index-a2e94ed5.js} +2 -2
- package/build/esm/{index-9453c460.js → index-a3e5d57d.js} +1 -1
- package/build/esm/{index-d129ad6e.js → index-a4fb401c.js} +17 -17
- package/build/esm/{index-af3248d3.js → index-a87c5acd.js} +5 -5
- package/build/esm/{index-6d60d04e.js → index-a8eaafb1.js} +3 -3
- package/build/esm/{index-85de59a9.js → index-aa789f81.js} +71 -71
- package/build/esm/{index-608b19b2.js → index-ab206017.js} +75 -75
- package/build/esm/{index-4dd76794.js → index-abf6e6bb.js} +3 -3
- package/build/esm/{index-9e1305e6.js → index-ac94d59c.js} +1 -1
- package/build/esm/{index-fcd3d330.js → index-af48644d.js} +21 -21
- package/build/esm/{index-efc6276a.js → index-b08e22b8.js} +91 -91
- package/build/esm/{index-53f7a08a.js → index-b15f5d9c.js} +1 -1
- package/build/esm/{index-f8f407b7.js → index-b2428b2e.js} +3 -3
- package/build/esm/{index-726306b6.js → index-b3478ab8.js} +1 -1
- package/build/esm/{index-fd56054f.js → index-b4ca1c9e.js} +2 -2
- package/build/esm/{index-75b50211.js → index-b54906ac.js} +66 -66
- package/build/esm/{index-768fbd5f.js → index-b610fac4.js} +1 -1
- package/build/esm/{index-e8ded5ee.js → index-b6bc0aa3.js} +1 -1
- package/build/esm/{index-54003ddd.js → index-b7795fa0.js} +2 -2
- package/build/esm/{index-95ad4f4f.js → index-bb5f7346.js} +1 -1
- package/build/esm/{index-1ebaf8be.js → index-bfd33d19.js} +3 -3
- package/build/esm/{index-5b514117.js → index-bfe76f94.js} +107 -107
- package/build/esm/{index-07261c2e.js → index-c13bb3aa.js} +3 -3
- package/build/esm/{index-5458d9a3.js → index-c17248d0.js} +1 -1
- package/build/esm/{index-53846ad5.js → index-c232cc46.js} +1 -1
- package/build/esm/{index-478457be.js → index-c2ae297a.js} +2 -2
- package/build/esm/{index-fbff2f44.js → index-c30e9127.js} +3 -3
- package/build/esm/{index-0f62f903.js → index-c31d587a.js} +68 -68
- package/build/esm/{index-37e9816c.js → index-c53ce24f.js} +2 -2
- package/build/esm/{index-b7f709b4.js → index-c5712a7a.js} +1 -1
- package/build/esm/{index-5eacf701.js → index-c5a2bd9d.js} +1 -1
- package/build/esm/{index-9df7ffa5.js → index-c6687347.js} +5 -5
- package/build/esm/{index-97730c83.js → index-c6bd60b7.js} +68 -68
- package/build/esm/{index-c525874d.js → index-c92dcace.js} +25 -25
- package/build/esm/{index-eecbacd4.js → index-cbb2e7e9.js} +3 -3
- package/build/esm/{index-b66eb84b.js → index-cd812d0c.js} +2 -2
- package/build/esm/{index-1159f7ac.js → index-cd866d9a.js} +1 -1
- package/build/esm/{index-25d6d087.js → index-ce0d9960.js} +2 -2
- package/build/esm/{index-1a36c019.js → index-ce156c05.js} +1 -1
- package/build/esm/{index-e89ded15.js → index-ce974648.js} +2 -2
- package/build/esm/{index-442b698a.js → index-d095f145.js} +3 -3
- package/build/esm/{index-dfc21cb8.js → index-d13a0858.js} +1 -1
- package/build/esm/{index-304cde4b.js → index-d36166f8.js} +2 -2
- package/build/esm/{index-b58eee1b.js → index-d379cbd7.js} +66 -66
- package/build/esm/{index-46ff74d3.js → index-d67931ca.js} +1 -1
- package/build/esm/{index-b87b695d.js → index-da2b8f60.js} +1 -1
- package/build/esm/{index-9f6bebd9.js → index-dbf5beff.js} +1 -1
- package/build/esm/{index-3aa7ada9.js → index-dc5d9039.js} +1 -1
- package/build/esm/{index-e3343ec8.js → index-dc9bd23f.js} +20 -20
- package/build/esm/{index-c519580e.js → index-dd630cf5.js} +2 -2
- package/build/esm/{index-3bad75f5.js → index-ddfc0d54.js} +1 -1
- package/build/esm/{index-91cc3e64.js → index-de3e7927.js} +1 -1
- package/build/esm/{index-ba5e874a.js → index-df5f74ea.js} +18 -18
- package/build/esm/{index-726d83e1.js → index-dfaf19fa.js} +1 -1
- package/build/esm/{index-f459e35f.js → index-e05a9d88.js} +1 -1
- package/build/esm/index-e07b3853.js +148 -0
- package/build/esm/{index-0bdf1175.js → index-e281fbdc.js} +69 -69
- package/build/esm/{index-b437968e.js → index-e4e01509.js} +8 -8
- package/build/esm/{index-e8f4c341.js → index-e5eeace1.js} +6 -6
- package/build/esm/{index-df733d5c.js → index-e6155b92.js} +5 -5
- package/build/esm/{index-1c91bc55.js → index-e7a07a43.js} +1 -1
- package/build/esm/{index-5aa3cca3.js → index-e80af467.js} +23 -23
- package/build/esm/{index-7eed3904.js → index-e878c618.js} +5 -5
- package/build/esm/{index-d9a230a7.js → index-e88510f0.js} +2 -2
- package/build/esm/{index-bce27cf0.js → index-e90fefd6.js} +2 -2
- package/build/esm/{index-dddfd348.js → index-e9a863a0.js} +74 -74
- package/build/esm/{index-7af7762d.js → index-eaaf76ea.js} +5 -5
- package/build/esm/{index-2104f13b.js → index-eb5681bc.js} +4 -4
- package/build/esm/{index-5cba8c0d.js → index-ec68c334.js} +1 -1
- package/build/esm/{index-f0cf1135.js → index-ed400ad1.js} +5 -5
- package/build/esm/{index-5ec9234e.js → index-ed853947.js} +1 -1
- package/build/esm/{index-1ff3384a.js → index-edce7ac9.js} +1 -1
- package/build/esm/{index-86e20069.js → index-eecb71ea.js} +3 -3
- package/build/esm/{index-2ffe582d.js → index-effc7854.js} +8 -8
- package/build/esm/{index-986e0163.js → index-f3eb65df.js} +3 -3
- package/build/esm/{index-2075aa2d.js → index-f6c2513f.js} +1 -1
- package/build/esm/{index-ba3e2750.js → index-f6cd67cc.js} +85 -85
- package/build/esm/{index-9d2c583d.js → index-f7693389.js} +3 -3
- package/build/esm/{index-016a3364.js → index-f7d81d96.js} +2 -2
- package/build/esm/{index-cec13968.js → index-f9a82eaf.js} +4 -4
- package/build/esm/{index-1e47dbb5.js → index-fa699cb4.js} +3 -3
- package/build/esm/{index-d27e77d1.js → index-fb16abef.js} +1 -1
- package/build/esm/{index-61b65f55.js → index-fc38e3b3.js} +70 -70
- package/build/esm/{index-1d97df10.js → index-fc936795.js} +1 -1
- package/build/esm/{index-a2e2a162.js → index-fe3a1990.js} +1 -1
- package/build/esm/{index-48351ed3.js → index-ff3bb485.js} +1 -1
- package/build/esm/{index-3bd3b3e3.js → index-ffd4f4e4.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/{index.module-4883445b.js → index.module-2e22d323.js} +1 -1
- package/build/esm/{index.module-a431091f.js → index.module-4311c7e5.js} +1 -1
- package/build/esm/{index.module-95f520ba.js → index.module-59dd6981.js} +1 -1
- package/build/esm/{index.module-23a59d3e.js → index.module-59fc7adf.js} +1 -1
- package/build/esm/{index.module-97a8cec2.js → index.module-bb17f51b.js} +1 -1
- package/build/esm/{index.module-0473878b.js → index.module-cd4bc6b6.js} +1 -1
- package/build/esm/{index.module-16680a3f.js → index.module-dabfb490.js} +1 -1
- package/build/esm/{index.module-a6a038b8.js → index.module-f8d9d07a.js} +1 -1
- package/build/esm/{useCustomDimensions-296463d7.js → useCustomDimensions-d9015165.js} +1 -1
- package/build/esm/{useSteppedWithoutSwipe-85800b3d.js → useSteppedWithoutSwipe-950b657a.js} +1 -1
- package/build/esm/{ussIsSticky-39fc8b31.js → ussIsSticky-03f58d40.js} +1 -1
- package/build/types/web-planner-react/src/components/TabGroup/index.d.ts.map +1 -1
- package/build/umd/5075.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/8757.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/9874.diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/diva-web-planner-react.umd.min.js +1 -1
- package/build/umd/report.html +1 -1
- package/package.json +10 -10
- package/build/esm/index-e6b437a4.js +0 -127
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 8757.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[8757],{98757:(t,r,o)=>{o.r(r),o.d(r,{default:()=>W});var a=o(84658),l=o(61965),i=o(13125),c=o(43860),u=o(80248),d=o(38946),g=o(50747),h=o.n(g),p=o(57312),m=o(2221),v=o(23452),P=o(95212),D=o(64357),k=o(65225),y=o(9770),I=o(58178),E=o(10743),b=o(16905),A=o(43048),x=o(60809),C=o(49795),S=o(62775);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,l=function F(){};return{s:l,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},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,u=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){u=!0,i=t},f:function f(){try{c||null==o.return||o.return()}finally{if(u)throw i}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}function ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,a)}return o}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){(0,u.Z)(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var B=m.ZP.initLog("Planner","WEB-PLANNER-LOGIC"),w=["AVO","AVU","AVC","AVS","AVN"];function movePose(t,r,o){var a=(0,A.Be)([new D.FM(t.center.x,t.center.z)],r,o),l=(0,d.Z)(a,1)[0];return{center:{x:l.x,z:l.y},rotDeg:t.rotDeg+o.rotDeg-r.rotDeg}}var O=1e-6,V=function toFloorRect(t,r){return{center:r.center,halfWidth:t.halfWidth,halfDepth:t.halfDepth,rotDeg:r.rotDeg}},T=function mainCodex(t){return t.IsAccessoire?"":t.ArticleCodex},N=function insidePose(t,r,o){return{center:(0,E.uU)(V(t,r),o),rotDeg:r.rotDeg}},W=function(){function DivaStandardPlanner(t,r,o,a,l,c){var d=this,g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){return[]},h=arguments.length>7?arguments[7]:void 0;(0,i.Z)(this,DivaStandardPlanner),this.getOtherCollisionSets=g,this.findCarrier=h,(0,u.Z)(this,"plannerID",void 0),(0,u.Z)(this,"set",void 0),(0,u.Z)(this,"plannerBoundingBox",void 0),(0,u.Z)(this,"plannerElements",void 0),(0,u.Z)(this,"doDisablePlanner2D",!1),(0,u.Z)(this,"plannerHasStaticBackground",void 0),(0,u.Z)(this,"isIDM3DCat",!1),(0,u.Z)(this,"IDM3DCatCodex",""),(0,u.Z)(this,"IDM3DEnvironment","diva.ro"),(0,u.Z)(this,"nextElementId",1),(0,u.Z)(this,"room",void 0),(0,u.Z)(this,"roomDrag",void 0),(0,u.Z)(this,"roomPlaced",new WeakSet),(0,u.Z)(this,"dragUnit",void 0),(0,u.Z)(this,"dragFollowers",new Set),(0,u.Z)(this,"dragSlots",void 0),(0,u.Z)(this,"collisionHandler",void 0),(0,u.Z)(this,"dockToAVUorAVOororAVNorAVSorAVC",(function(t,r){var o=function hasFreeDP(r){return t.getFreeDockingPointsByType(r).length>0};if(o("AVU")){var a=k.Z.tryDockElement(t,"AVU",r);if(a)return d.updateWorldPos(t,a),!0;for(var l=0;l<r.length;l++){var i=r[l].getCurrentAccessorires().map((function(t){return d.plannerElements.get(t.getElementId())}));if(d.dockToAVUorAVOororAVNorAVSorAVC(t,i))return!0}}if(o("AVO")){var c=k.Z.tryDockElement(t,"AVO",r);if(c)return d.updateWorldPos(t,c),!0}if(o("AVN")){var u=k.Z.tryDockElement(t,"AVN",r);if(u)return d.updateWorldPos(t,u),!0}if(o("AVS")){var g=k.Z.tryDockElement(t,"AVS",r);if(g)return d.updateWorldPos(t,g),!0}if(o("AVC")){var h=k.Z.tryDockElement(t,"AVC",r);if(h)return d.updateWorldPos(t,h),!0}return!1})),this.set=t,this.plannerID=o,this.plannerElements=new Map,this.plannerBoundingBox=new I.Z,this.plannerBoundingBox.initPlannerBBox(a),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=this,r=[],o=new Map,a=this;this.plannerElements.forEach((function(t,a){o.set(a,!0),t.IsDockedAccessoire||t.HasAVL&&t.dockingTypeIsDocking("AVL")||r.push(t)})),this.getCatalogData().dontSetPosNrFromPlanner||(r=r.sort((function(t,r){return t.WorldPosCenter.x-r.WorldPosCenter.x})));var i,c=function keptPosNr(t){return t.PosNr>0?t.PosNr:1/0},u=r.filter((function(t){return t.PosNrAtEnd})).sort((function(t,r){return c(t)-c(r)}));r=[].concat((0,l.Z)(r.filter((function(t){return!t.PosNrAtEnd}))),(0,l.Z)(u));for(var d=function updateAccessoiresOfElement(r,l){for(var c=[],u=function setPosNrForElementsOnDock(t,c){if(r["Has"+t]){var u=r.getDockingDockingPointsByType(t);u=u.sort((function(t,r){return a.plannerElements.get(t.OnElementId).WorldPosCorner.x-a.plannerElements.get(r.OnElementId).WorldPosCorner.x}));for(var d=0;d<u.length;d++){var g=u[d].OnElementId;if(o.has(g)){var h=a.plannerElements.get(g);h.PosNr=l,h.AccessoirePosNr=i,o.delete(g),i++,c.push(h)}}}},g=0;g<w.length;g++)u(w[g],c);t.plannerElements.forEach((function(t){t.getIsNotDockedAccessoire()&&t.getParentElementId()===r.getElementId()&&(t.PosNr=l,t.AccessoirePosNr=i,o.delete(t.getElementId()),i++,c.push(t))}));for(var h=0;h<c.length;h++)d(c[h],l)},g=function updatePosInChain(t,r){if(null==t)return r;if(t.PosNr=r,i=1,o.delete(t.ElementId),d(t,r),r++,t.HasAVR&&t.dockingTypeIsDocking("AVR")){var l=t.getDockingDockingPointsByType("AVR")[0].OnElementId;return g(a.plannerElements.get(l),r)}return r},h=1,p=0;p<r.length;p++)h=g(r[p],h)}},{key:"updateWorldPos",value:function updateWorldPos(t,r){var o=!1,a=this.plannerElements.get(r.OnElementId),l=a.getDockingPointById(r.OnDP.DpId);if(null==l)return o;this.applyDockTransform(t,a,r,l),o=this.set.onDockingChanged(t.ElementId,a.ElementId,"DOCK",r.Type);var i=this.set.getPlannerData(t.ElementId);t.updatePlannerData(i);var c=this.set.getPlannerData(a.ElementId);return a.updatePlannerData(c),o}},{key:"applyDockTransform",value:function applyDockTransform(t,r,o,a){var l=(0,v.eY)(r,a,t,o);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 o,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=this.plannerElements.get(t);return c?this.room&&(null===(o=this.roomDrag)||void 0===o?void 0:o.elementId)===t?this.roomDrag.rotating?this.getRoomTurnPreview(c,this.roomDrag):this.getRoomDragPreview(c,this.roomDrag):null!==(a=this.findDockSnap(c,r,[].concat((0,l.Z)(i),(0,l.Z)(this.dragFollowers))))&&void 0!==a?a:this.findSlotSnap(c):null}},{key:"findSlotSnap",value:function findSlotSnap(t){var r,o=(null===(r=this.dragSlots)||void 0===r?void 0:r.elementId)===t.ElementId?this.dragSlots:void 0,a=(0,C.Hv)(t).center,l=o&&Math.hypot(a.x-o.start.x,a.z-o.start.z)>O?o.places:[],i=(0,x.pb)(l,a,20);return i?{dx:i.center.x-a.x,dz:i.center.z-a.z,dRotDeg:(0,b.kh)(t.RotDeg,l[i.index].rotDeg)}:null}},{key:"getSlotSnapPose",value:function getSlotSnapPose(t){var r,o=(null===(r=this.dragSlots)||void 0===r?void 0:r.elementId)===t.elementId?this.dragSlots.places:[];if(0!==o.length){var a={center:{x:t.grabbedStart.x+t.dx,z:t.grabbedStart.z+t.dz},rotDeg:t.grabbedStartRotDeg},l=(0,x.pb)(o,a.center,20);if(l)return movePose({center:{x:t.start.center.x+t.dx,z:t.start.center.z+t.dz},rotDeg:t.start.rotDeg},a,{center:l.center,rotDeg:o[l.index].rotDeg})}}},{key:"findDragSlotPlaces",value:function findDragSlotPlaces(t,r){var o=this,a=t.IsAccessoire?[]:this.getPlacementTypes(t),i=(0,d.Z)(a,1)[0],c=this.getDockingGroupOf(t);if(!i||1!==c.filter((function(t){return!t.IsAccessoire})).length)return[];var u=this.getOtherCollisionSets(c.map((function(t){return t.ElementId}))),g=(0,b.rX)(this.getAllPlannerElements().filter((function(t){return!r.includes(t)}))).filter((function(t){return t.some((function(t){return!t.IsAccessoire}))})).map((function(t){return{rules:o.getCatalogData().placementOptions.rules,members:o.getSlotMembers(t)}})),h=u.flatMap((function(t){return(0,l.Z)(new Set(t.parts.map((function(t){return t.group})))).map((function(r){return{rules:t.rules,members:r}}))})),p=(0,b.Uq)(t,!1).body[0],m=(0,C.Hv)(t),v=function outline(t){return(0,A.Be)(p,m,{center:{x:0,z:0},rotDeg:t})},P=this.room?this.createRoomDrag(t.ElementId,!1,u):void 0;return[].concat((0,l.Z)(g),(0,l.Z)(h)).flatMap((function(t){var r=t.rules,o=t.members;return(0,x.cN)(r,o,i)})).flatMap((function(t){return(0,x.L$)(t,v)})).filter((function(r){return o.placeIsFree(t,c,r,u)})).map((function(t){return P?o.cutBandToRoom(P,t):t}))}},{key:"cutBandToRoom",value:function cutBandToRoom(t,r){var o=this,a={center:t.grabbedStart,rotDeg:t.grabbedStartRotDeg},l=function kept(l){var i={x:r.center.x+r.normal.x*l,z:r.center.z+r.normal.z*l};return!!o.getKeptPose(t,movePose(t.start,a,{center:i,rotDeg:r.rotDeg}),.01)},i=function cut(t){if(l(t))return t;for(var r=0,o=t,a=0;a<12;a++){var i=(r+o)/2;l(i)?r=i:o=i}return r};return _objectSpread(_objectSpread({},r),{},{band:[i(r.band[0]),i(r.band[1])]})}},{key:"placeIsFree",value:function placeIsFree(t,r,o,a){var l=r.map((function(t){return{member:t,center:t.WorldPosCenter,rotDeg:t.RotDeg}}));(0,b.Vj)(r,(0,C.Hv)(t),o);var i,c=this.createRoomDrag(t.ElementId,!1,a),u=!!c&&!!this.getKeptPose(c)&&!this.isBlocked(c,c.start),d=_createForOfIteratorHelper(l);try{for(d.s();!(i=d.n()).done;){var g=i.value,h=g.member,p=g.center,m=g.rotDeg;h.WorldPosCenter=p,h.RotDeg=m}}catch(t){d.e(t)}finally{d.f()}return u}},{key:"findDockSnap",value:function findDockSnap(t,r,o){var a,l=this.getAllPlannerElements().filter((function(r){return r!==t&&!o.includes(r.getElementId())})),i=k.Z.searchDockableElementsInArea(t,l,r);if(!i||0===i.size)return null;if(i.forEach((function(t){(null==a||t.distance<a.distance)&&(a=t)})),null==a)return null;var c=this.plannerElements.get(a.targetDP.ElementId);if(!c)return null;var u=t.RotDeg,d=t.WorldPosCenter,g=d.x,h=d.y,p=d.z;this.applyDockTransform(t,c,a.sourceDP,a.targetDP);var m=t.WorldPosCenter,v={dx:m.x-g,dz:m.z-p,dRotDeg:t.RotDeg-u};return t.RotDeg=u,t.WorldPosCenter=new D.P(g,h,p),v}},{key:"getPreviewMove",value:function getPreviewMove(t,r){var o,a=this.plannerElements.get(t);if(a&&r&&(!this.room||(null===(o=this.roomDrag)||void 0===o?void 0:o.elementId)!==t))return this.snapMove(a,r)}},{key:"snapMove",value:function snapMove(t,r){var o={x:t.WorldPosCenter.x,z:t.WorldPosCenter.z};return{from:{center:o,rotDeg:0},to:{center:{x:o.x+r.dx,z:o.z+r.dz},rotDeg:r.dRotDeg}}}},{key:"setRoom",value:function setRoom(t,r){var o=t&&r?this.getBlockedGroupKeys():new Set;if(this.room=t,this.roomDrag=void 0,!t||!r)return!0;var a=this.placeGroupsInRoom();return this.clearNewlyBlockedGroups(t,o),this.updatePlannerPosNr(),this.checkCollision(!1),this.updatePlannerBoundingBox(),a}},{key:"placeGroupsInRoom",value:function placeGroupsInRoom(t){var r,o=!0,a=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(a.s();!(r=a.n()).done;){var l=r.value;t&&!l.some((function(r){return t.includes(r)}))||(this.followsCarrier(l)||this.placeGroupInRoom(l)||(o=!1))}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"getBlockedGroupKeys",value:function getBlockedGroupKeys(){var t,r=new Set,o=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(o.s();!(t=o.n()).done;){var a=t.value,l=a.find((function(t){return!t.IsAccessoire}));if(l&&!this.followsCarrier(a)){var i=this.createRoomDrag(l.ElementId);i&&this.isBlocked(i,i.start)&&r.add(l.ElementId)}}}catch(t){o.e(t)}finally{o.f()}return r}},{key:"clearNewlyBlockedGroups",value:function clearNewlyBlockedGroups(t,r){var o,a=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(a.s();!(o=a.n()).done;){var l=o.value,i=l.find((function(t){return!t.IsAccessoire}));!i||r.has(i.ElementId)||this.followsCarrier(l)||this.moveClearOfObstacles(i.ElementId,t)}}catch(t){a.e(t)}finally{a.f()}}},{key:"placeAddedInRoom",value:function placeAddedInRoom(t,r){var o=this.room;if(o)if(this.placeGroupsInRoom(t)){if(r){var a,l=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(l.s();!(a=l.n()).done;){var i=a.value,c=i.find((function(r){return!r.IsAccessoire&&t.includes(r)}));c&&!this.followsCarrier(i)&&this.moveClearOfObstacles(c.ElementId,o)}}catch(t){l.e(t)}finally{l.f()}}}else this.updateRoomNoFitMsg(!0)}},{key:"updateRoomNoFitMsg",value:function updateRoomNoFitMsg(t){var r,o;null===(r=(o=this.collisionHandler).updatePlannerMsgContainer)||void 0===r||r.call(o,"ROOM_NO_FIT_MSG",t,"WARNING","ROOM_NO_FIT_MSG",!1)}},{key:"groupsFitInRoom",value:function groupsFitInRoom(){var t=this,r=this.room;return!r||(0,b.rX)(this.getAllPlannerElements()).every((function(o){if(o.every((function(t){return t.IsAccessoire})))return!0;if(!t.isWallBound(o))return t.followsCarrier(o)||t.fitsInside(o,r);var a=t.getWallBinding(o,r),l=a.groupBlock,i=a.pose;return!!i&&((0,b.OB)(i,l)||o.some((function(t){return!t.IsAccessoire&&!t.GeoExtent})))}))}},{key:"fitsInside",value:function fitsInside(t,r){var o=(0,b.VT)([].concat((0,l.Z)(t),(0,l.Z)(this.getFollowers(t))),this.getRoomFrame(t).RotDeg);return(0,E.eZ)(V(o.block,N(o.block,o,r)),r)}},{key:"placeGroupInRoom",value:function placeGroupInRoom(t,r){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getFollowers(t);if(!this.room||t.every((function(t){return t.IsAccessoire})))return!0;if(t.forEach((function(t){return o.roomPlaced.add(t)})),this.isWallBound(t))return this.bindGroupToWalls(t,r,a);var i=this.getRoomFrame(t,r),c=[].concat((0,l.Z)(t),(0,l.Z)(a)),u=(0,b.VT)(c,i.RotDeg),d=N(u.block,u,this.room);return(0,b.Vj)(c,u,d),(0,E.eZ)(V(u.block,d),this.room)}},{key:"getRoomFrame",value:function getRoomFrame(t,r){var o;return r&&!r.IsAccessoire?r:null!==(o=t.find((function(t){return!t.IsAccessoire})))&&void 0!==o?o:t[0]}},{key:"bindGroupToWalls",value:function bindGroupToWalls(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!this.room||!t.length)return!1;var a=this.getWallBinding(t,this.room,r),i=a.groupBlock,c=a.pose;return!!c&&((0,b.Vj)([].concat((0,l.Z)(t),(0,l.Z)(o)),i,c),!0)}},{key:"getWallBinding",value:function getWallBinding(t,r,o){var a=this,l=function bindingIn(o){var l=a.getRoomBlock(t,o);return{groupBlock:l,pose:(0,E.PJ)(l.center,l.block,r)}},i=l(this.getRoomFrame(t,o));if(o&&!o.IsAccessoire)return i;var c=function standsOn(t){var r=t.groupBlock,o=t.pose;return!!o&&(0,b.OB)(o,r)};if(c(i))return i;var u,d=_createForOfIteratorHelper(t);try{for(d.s();!(u=d.n()).done;){var g=u.value;if(!g.IsAccessoire&&g.RotDeg!==i.groupBlock.rotDeg){var h=l(g);if(c(h))return h}}}catch(t){d.e(t)}finally{d.f()}return i}},{key:"setElementFootprints",value:function setElementFootprints(t){var r,o=this,a=[],l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var i=r.value,c=i.elementId,u=i.minX,g=i.maxX,h=i.minZ,p=i.maxZ,m=i.top,v=this.plannerElements.get(c),P={minX:u,maxX:g,minZ:h,maxZ:p,top:m};!v||v.IsAccessoire||(0,b.wY)(v.GeoExtent,P)||(v.GeoExtent=P,this.roomPlaced.has(v)&&a.push(v))}}catch(t){l.e(t)}finally{l.f()}if(!this.room||0===a.length)return!1;var D=(0,b.rX)(this.getAllPlannerElements()).filter((function(t){return t.some((function(t){return a.includes(t)}))&&o.isWallBound(t)&&!o.followsCarrier(t)})),k=D.flat(),y=k.map((function(t){return[t.WorldPosCenter.x,t.WorldPosCenter.z,t.RotDeg]}));return D.forEach((function(t){return o.placeGroupInRoom(t)})),!!k.some((function(t,r){var o=(0,d.Z)(y[r],3),a=o[0],l=o[1],i=o[2];return t.WorldPosCenter.x!==a||t.WorldPosCenter.z!==l||t.RotDeg!==i}))&&(this.updatePlannerPosNr(),this.checkCollision(!1),this.updatePlannerBoundingBox(),!0)}},{key:"isElementWallBound",value:function isElementWallBound(t){var r=this.plannerElements.get(t);return!!this.room&&!!r&&this.isWallBound(this.getDockingGroupOf(r))}},{key:"getGroupWallMode",value:function getGroupWallMode(t){var r=this,o=this.getCatalogData(),a=t.flatMap((function(t){var a=r.getCarrierOf(t)?"":T(t);return a?[o.getCornerSide(a)?"forced":o.getWallMode(a)]:[]}));return a.includes("forced")?"forced":a.includes("snap")?"snap":"free"}},{key:"isWallBound",value:function isWallBound(t){return"forced"===this.getGroupWallMode(t)}},{key:"getRoomBlock",value:function getRoomBlock(t,r){var o,a=(0,b.VT)(t,r.RotDeg),l=this.getCatalogData(),i=_createForOfIteratorHelper(t);try{for(i.s();!(o=i.n()).done;){var c=o.value,u=T(c),d=u?l.getCornerSide(u):void 0;if(d){var g=(0,b.cu)(t,r.RotDeg,c,d);if(g)return _objectSpread(_objectSpread({},a),{},{block:_objectSpread(_objectSpread({},a.block),{},{cornerEnd:g})})}}}catch(t){i.e(t)}finally{i.f()}return a}},{key:"collides",value:function collides(t){var r=this;return t.some((function(t){var o=T(t);return!!o&&!r.hasNoCollision(o)}))}},{key:"hasNoCollision",value:function hasNoCollision(t){return!!t&&this.getCatalogData().hasNoCollision(t)}},{key:"getPlacementTypes",value:function getPlacementTypes(t){var r=t.ArticleCodex;return r&&this.getCatalogData().getPlacementType(r)||[]}},{key:"getSlotMembers",value:function getSlotMembers(t){var r=this;return t.filter((function(t){return!t.IsAccessoire})).map((function(t){return{types:r.getPlacementTypes(t),rotDeg:t.RotDeg,body:(0,b.Uq)(t,!1).body[0],basketId:t.getBasketId()}}))}},{key:"toCollisionShape",value:function toCollisionShape(t,r,o){return{elementId:t.ElementId,shape:(0,b.Uq)(t,o),types:this.getPlacementTypes(t),group:r,layer:Number(t.Layer)}}},{key:"getCollidingShapes",value:function getCollidingShapes(t,r){var o=this,a=this.getSlotMembers(t);return t.filter((function(t){return!o.hasNoCollision(t.ArticleCodex)})).map((function(t){return o.toCollisionShape(t,a,r)}))}},{key:"getObstacles",value:function getObstacles(t,r){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0;if(!this.collides(t))return[];var c=(0,b.rX)(this.getAllPlannerElements()).filter((function(t){return!t.some((function(t){return a.includes(t)}))&&o.collides(t)})),u=this.getCatalogData(),d=u.catalogCodex,g=(null!=i?i:this.getOtherCollisionSets(t.map((function(t){return t.ElementId})))).flatMap((function(t){return t.parts.map((function(r){var o=r.shape,a=r.types,l=r.group,i=r.elementId,c=r.layer;return{shape:o,types:a,group:l,elementId:i,layer:t.catalogCodex===d?c:void 0,setId:t.setId,rules:t.rules}}))})),h=(this.room?(0,E.Bv)(this.room):[]).map((function(t){var r=(0,E.q4)(t).map((function(t){return new D.FM(t.x,t.z)}));return{shape:{body:[r],free:[r]},types:[],group:[]}}));return[].concat((0,l.Z)(c.flatMap((function(t){return o.getCollidingShapes(t,r)}))),(0,l.Z)(g),(0,l.Z)(h))}},{key:"getDockingGroupOf",value:function getDockingGroupOf(t){var r;return null!==(r=(0,b.rX)(this.getAllPlannerElements()).find((function(r){return r.includes(t)})))&&void 0!==r?r:[t]}},{key:"getElementByBasketId",value:function getElementByBasketId(t){return this.getAllPlannerElements().find((function(r){return r.getBasketId()===t}))}},{key:"getCarrierOf",value:function getCarrierOf(t){var r=t.Placement;if(r)return this.findCarrier?this.findCarrier(r):this.getElementByBasketId(r.carrierBasketId)}},{key:"followsCarrier",value:function followsCarrier(t){var r=this,o=t.filter((function(t){return!t.IsAccessoire}));return o.length>0&&o.every((function(o){var a=r.getCarrierOf(o);return!!a&&!t.includes(a)}))}},{key:"getFollowers",value:function getFollowers(t){for(var r=this,o=new Set(t),a=[],i=t,c=0;c<C.rC&&i.length>0;c++){var u=this.getAllPlannerElements().filter((function(t){var a=!o.has(t)&&r.getCarrierOf(t);return!!a&&i.includes(a)})),d=(0,l.Z)(new Set(u.flatMap((function(t){return r.getDockingGroupOf(t)})))).filter((function(t){return!o.has(t)}));d.forEach((function(t){return o.add(t)})),a.push.apply(a,(0,l.Z)(d)),i=d}return a}},{key:"getDockingGroupIds",value:function getDockingGroupIds(t){var r=this.plannerElements.get(t);return r?this.getDockingGroupOf(r).map((function(t){return t.ElementId})):[]}},{key:"getGuestType",value:function getGuestType(t){var r=this.plannerElements.get(t);return r&&!r.IsAccessoire?this.getPlacementTypes(r)[0]:void 0}},{key:"getSlotCarriers",value:function getSlotCarriers(t){var r=this;return(0,b.rX)(this.getAllPlannerElements()).filter((function(r){return!r.some((function(r){return t.includes(r.ElementId)}))})).map((function(t){return r.getSlotMembers(t)})).filter((function(t){return t.length>0}))}},{key:"moveGuest",value:function moveGuest(t,r){var o=this.plannerElements.get(t);o&&(0,b.Vj)(this.getDockingGroupOf(o),(0,C.Hv)(o),r)}},{key:"refreshAfterGuestMoves",value:function refreshAfterGuestMoves(){this.updatePlannerPosNr(),this.checkCollision(!1),this.updatePlannerBoundingBox()}},{key:"isBodyBlockedAt",value:function isBodyBlockedAt(t,r,o){var a=this.plannerElements.get(t);if(!a)return!0;var l=this.getDockingGroupOf(a),i=l.map((function(t){return{member:t,center:t.WorldPosCenter,rotDeg:t.RotDeg}}));(0,b.Vj)(l,(0,C.Hv)(a),r);var c=this.createRoomDrag(t,!1,o);c&&(c.zonesBlock=!1);var u,d=!!c&&this.isBlocked(c,c.start),g=_createForOfIteratorHelper(i);try{for(g.s();!(u=g.n()).done;){var h=u.value,p=h.member,m=h.center,v=h.rotDeg;p.WorldPosCenter=m,p.RotDeg=v}}catch(t){g.e(t)}finally{g.f()}return d}},{key:"startRoomDrag",value:function startRoomDrag(t){this.roomDrag=void 0;var r=this.createRoomDrag(t);if(r){r.zonesBlock=!1;var o,a=this.movedShapes(r,r.start),l=_createForOfIteratorHelper(r.obstacles);try{var i=function _loop(){var t=o.value,l=a.map((function(o){var a;return(0,S.n5)(r.rules,o,null!==(a=t.rules)&&void 0!==a?a:r.rules,t)?0:(0,A.dX)(o.shape,t.shape)}));l.some((function(t){return t>0}))&&r.startOverlaps.set(t,l)};for(l.s();!(o=l.n()).done;)i()}catch(t){l.e(t)}finally{l.f()}this.roomDrag=r}}},{key:"createRoomDrag",value:function createRoomDrag(t){var r=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this.plannerElements.get(t);if(i){var c=this.getDockingGroupOf(i);if(!c.every((function(t){return t.IsAccessoire}))){var u=this.getFollowers(c),d=this.getGroupWallMode(c),g=this.getRoomFrame(c,i),h="forced"===d?this.getRoomBlock(c,g):(0,b.VT)([].concat((0,l.Z)(c),(0,l.Z)(u)),g.RotDeg),p=i.WorldPosCenter,m=(0,b.rX)(u).filter((function(t){return r.collides(t)})).flatMap((function(t){return r.getCollidingShapes(t,o)})),v=this.collides(c)?this.getCollidingShapes(c,o):[],P={elementId:t,members:c,followers:u,start:h,current:h,grabbedStart:{x:p.x,z:p.z},grabbedStartRotDeg:i.RotDeg,dx:0,dz:0,wallMode:d,shapes:this.collides(c)?[].concat((0,l.Z)(v),(0,l.Z)(m)):[],memberShapes:v.length,obstacles:this.getObstacles(c,o,[].concat((0,l.Z)(c),(0,l.Z)(u)),a),blockedBy:[],startOverlaps:new Map,rules:this.getCatalogData().placementOptions.rules,zonesBlock:!0,rotating:!1,slotSnapped:!1};return P}}}},{key:"moveClearOfObstacles",value:function moveClearOfObstacles(t,r){var o=this.createRoomDrag(t);if(o&&this.isBlocked(o,o.start)){var a=o.start,i=a.block,c=a.rotDeg,u=(a.center,r.footprint.map((function(t){return(0,d.Z)(t,1)[0]}))),g=r.footprint.map((function(t){return(0,d.Z)(t,2)[1]})),h=Math.hypot(Math.max.apply(Math,(0,l.Z)(u))-Math.min.apply(Math,(0,l.Z)(u)),Math.max.apply(Math,(0,l.Z)(g))-Math.min.apply(Math,(0,l.Z)(g))),p=this.nearestFreePose(o,o.start,(function poseAt(t){return"forced"===o.wallMode?(0,E.PJ)(t,i,r):N(i,{center:t,rotDeg:c},r)}),h);p&&(0,b.Vj)([].concat((0,l.Z)(o.members),(0,l.Z)(o.followers)),o.start,p)}}},{key:"nearestFreePose",value:function nearestFreePose(t,r,o,a){for(var l=r.center,i=10;i<=a;i+=10){for(var c=void 0,u=0;u<16;u++){var d,g=u/16*2*Math.PI,h=o({x:l.x+i*Math.cos(g),z:l.z+i*Math.sin(g)});if(h&&!this.isBlocked(t,h)){t.current=h;var p=null===(d=this.slideToContact(t,r))||void 0===d?void 0:d.pose,m=p&&o(p.center),v=p&&m&&Math.hypot(m.center.x-p.center.x,m.center.z-p.center.z)<.5?p:h,P=Math.hypot(v.center.x-l.x,v.center.z-l.z);(!c||P<c.distance-O)&&(c={pose:v,distance:P})}}if(c)return c.pose}}},{key:"placeAtSuggestedPlace",value:function placeAtSuggestedPlace(t,r){var o=this,a=t.IsAccessoire?[]:this.getPlacementTypes(t),i=(0,d.Z)(a,1)[0];if(!i)return!1;var c,u=this.getCatalogData().placementOptions.rules,g={center:{x:t.WorldPosCenter.x,z:t.WorldPosCenter.z},rotDeg:t.RotDeg},h=(0,b.Uq)(t,!1).body[0],p=function outline(t){return(0,A.Be)(h,g,{center:{x:0,z:0},rotDeg:t})},m=function lowestPosNr(t){return Math.min.apply(Math,(0,l.Z)(t.map((function(t){return t.PosNr}))))},v=(0,b.rX)(this.getAllPlannerElements().filter((function(r){return r!==t}))).filter((function(t){return r(t)&&t.some((function(t){return!t.IsAccessoire}))})).sort((function(t,r){return m(t)-m(r)})),P=v.length>0?this.getOtherCollisionSets():[],k=_createForOfIteratorHelper(v);try{for(k.s();!(c=k.n()).done;){var y,I=c.value,E=_createForOfIteratorHelper((0,x.cN)(u,this.getSlotMembers(I),i));try{for(E.s();!(y=E.n()).done;){var C=y.value;if((0,x.L$)(C,p).some((function(r){return o.fitsAt(t,r,P)})))return t.PosNrAtEnd=!0,this.attachToSlot(t,C),!0}}catch(t){E.e(t)}finally{E.f()}}}catch(t){k.e(t)}finally{k.f()}return t.WorldPosCenter=new D.P(g.center.x,t.WorldPosCenter.y,g.center.z),t.RotDeg=g.rotDeg,!1}},{key:"attachToSlot",value:function attachToSlot(t,r){var o,a=null===(o=(0,x.bt)(r,(0,C.Hv)(t).center))||void 0===o?void 0:o.basketId,l=a?this.getElementByBasketId(a):void 0;if(a&&l&&!(this.getGuestDepth(l)>=C.rC)){var i=(0,C.fT)((0,C.Hv)(l),(0,C.Hv)(t));t.Placement={carrierBasketId:a,slotId:r.id,offset:i}}}},{key:"getGuestDepth",value:function getGuestDepth(t){for(var r=0,o=this.getCarrierOf(t);o&&r<=C.rC;o=this.getCarrierOf(o))r++;return r}},{key:"fitsAt",value:function fitsAt(t,r,o){t.WorldPosCenter=new D.P(r.center.x,this.plannerBoundingBox.WorldPos.y,r.center.z),t.RotDeg=r.rotDeg;var a=this.createRoomDrag(t.ElementId,!1,o),l=a&&this.getKeptPose(a);return!(!a||!l)&&((0,b.Vj)(a.members,a.start,l),!this.isBlocked(a,l))}},{key:"getKeptPose",value:function getKeptPose(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.start,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=this.room;if(!a)return r;var l=t.start.block,i=r.center,c=r.rotDeg,u="forced"===t.wallMode?(0,E.PJ)(i,l,a):N(l,r,a);return!u||Math.hypot(u.center.x-i.x,u.center.z-i.z)>o||Math.abs((0,b.kh)(c,u.rotDeg))>.01?void 0:u}},{key:"movedShapes",value:function movedShapes(t,r){var o=new Map;return t.shapes.map((function(a){var l,i=null!==(l=o.get(a.group))&&void 0!==l?l:a.group.map((function(o){return(0,x.Az)(o,t.start,r)}));return o.set(a.group,i),_objectSpread(_objectSpread({},a),{},{shape:(0,A.my)(a.shape,t.start,r),group:i})}))}},{key:"overlapsAny",value:function overlapsAny(t,r,o){var a=o.startOverlaps.get(r),l=this.getCatalogData().checkCollisionForDifferentLayers;return t.some((function(t,i){var c;return!(void 0!==r.layer&&!(0,S.i6)(l,t.layer,r.layer))&&(a?(0,A.dX)(t.shape,r.shape)>a[i]+1e-6:(0,A.sS)(t.shape,r.shape,!o.zonesBlock)&&!(0,S.n5)(o.rules,t,null!==(c=r.rules)&&void 0!==c?c:o.rules,r))}))}},{key:"isBlocked",value:function isBlocked(t,r){var o=this,a=this.movedShapes(t,r);return t.obstacles.some((function(r){return o.overlapsAny(a,r,t)}))}},{key:"blockersAt",value:function blockersAt(t,r){var o=this,a=this.movedShapes(t,r);return t.obstacles.filter((function(r){return o.overlapsAny(a,r,t)}))}},{key:"slideToContact",value:function slideToContact(t,r){if(!(Math.abs((0,b.kh)(t.current.rotDeg,r.rotDeg))>.01)){for(var o=t.current.center,a=function at(t){return{center:{x:o.x+(r.center.x-o.x)*t,z:o.z+(r.center.z-o.z)*t},rotDeg:r.rotDeg}},l=Math.max(1,Math.ceil(Math.hypot(r.center.x-o.x,r.center.z-o.z)/2)),i=0,c=1;c<=l;c++){var u=c/l;if(this.isBlocked(t,a(u))){for(var d=0;d<12;d++){var g=(i+u)/2;this.isBlocked(t,a(g))?u=g:i=g}return{pose:i>0?a(i):void 0,blockers:this.blockersAt(t,a(u))}}i=u}return{pose:r,blockers:[]}}}},{key:"updateRoomDrag",value:function updateRoomDrag(t,r,o,a){r.dx+=o.x,r.dz+=o.z;var i=r.start,c=i.block,u=i.rotDeg,d={x:r.start.center.x+r.dx,z:r.start.center.z+r.dz},g=Math.hypot(r.dx,r.dz)<=O,h=g?void 0:this.getSlotSnapPose(r),p=g||h||"free"===r.wallMode?null:(0,E.PJ)(d,c,t),m=!!p&&Math.hypot(p.center.x-d.x,p.center.z-d.z)<=30,v={center:r.start.center,rotDeg:u},P=g?v:null!=h?h:p&&("forced"===r.wallMode||m)?p:N(c,{center:d,rotDeg:u},t),D=[].concat((0,l.Z)(r.members),(0,l.Z)(r.followers));(0,b.Vj)(D,r.current,P);var k=0===a?0:Math.max(a,20),y=g||h?void 0:this.getDockSnapPose(r,P,k),I=null!=y?y:P;if((0,b.Vj)(D,P,I),r.blockedBy=y?[]:this.blockersAt(r,I),r.current=I,r.slotSnapped=!!h,0!==r.startOverlaps.size){var x=this.movedShapes(r,I);r.startOverlaps.forEach((function(t,o){return r.startOverlaps.set(o,t.map((function(t,r){return Math.min(t,(0,A.dX)(x[r].shape,o.shape))})))}))}}},{key:"getDockSnapPose",value:function getDockSnapPose(t,r,o){var a=this.plannerElements.get(t.elementId),i=[].concat((0,l.Z)(t.members),(0,l.Z)(t.followers)),c=i.map((function(t){return t.ElementId})),u=a&&this.findDockSnap(a,o,c);if(a&&u){var d=this.snapMove(a,u),g=movePose(r,d.from,d.to);if(this.getKeptPose(t,g)){(0,b.Vj)(i,r,g);var h=this.getAllPlannerElements().filter((function(t){return!c.includes(t.ElementId)})),p=new Set(i.flatMap((function(t){return(0,l.Z)(k.Z.searchDockableElementsInArea(t,h,.1).values()).map((function(t){return t.targetDP.ElementId}))})));(0,b.Vj)(i,g,r);return this.blockersAt(t,g).every((function docksTo(t){return void 0===t.setId&&void 0!==t.elementId&&p.has(t.elementId)}))?g:void 0}}}},{key:"snapToDock",value:function snapToDock(t,r,o,a){var l,i=r.map((function(t){return t.ElementId})),c=null!==(l=this.findDockSnap(t,o,i))&&void 0!==l?l:a?this.findSlotSnap(t):null;if(c){var u=this.snapMove(t,c);(0,b.Vj)(r,u.from,u.to)}}},{key:"startDragUnit",value:function startDragUnit(t,r){var o,a,i=this.plannerElements.get(t),c=null!==(o=null==r?void 0:r.followers)&&void 0!==o?o:i?this.getFollowers(this.getDockingGroupOf(i)):[];this.dragFollowers=new Set(c.map((function(t){return t.ElementId}))),this.dragUnit=new Set([t].concat((0,l.Z)(null!==(a=null==r?void 0:r.members.map((function(t){return t.ElementId})))&&void 0!==a?a:[]),(0,l.Z)(this.dragFollowers)));var u=i?[].concat((0,l.Z)(this.getDockingGroupOf(i)),(0,l.Z)(c)):[];this.dragSlots=i?{elementId:t,start:(0,C.Hv)(i).center,places:this.findDragSlotPlaces(i,u)}:void 0}},{key:"getRoomDragPreview",value:function getRoomDragPreview(t,r){var o=t.WorldPosCenter,a={dx:o.x-(r.grabbedStart.x+r.dx),dz:o.z-(r.grabbedStart.z+r.dz),dRotDeg:(0,b.kh)(r.start.rotDeg,t.RotDeg)};return this.withDragBlock(a,r)}},{key:"getRoomTurnPreview",value:function getRoomTurnPreview(t,r){var o=_objectSpread(_objectSpread({},r),{},{shapes:r.shapes.slice(0,r.memberShapes)});return r.blockedBy=this.blockersAt(o,this.getTurnedPose(t,r)),this.withDragBlock({dx:0,dz:0,dRotDeg:0},r)}},{key:"findTurnPlace",value:function findTurnPlace(t,r,o){var a=this.getTurnedPose(t,r),l=r.start.block,i=_objectSpread(_objectSpread({},r),{},{shapes:r.shapes.slice(0,r.memberShapes),current:a});if(!this.isBlocked(i,a))return a;return this.nearestFreePose(i,a,(function poseAt(t){return N(l,{center:t,rotDeg:a.rotDeg},o)}),Math.max(100,2*Math.max(l.halfWidth,l.halfDepth)))}},{key:"getTurnedPose",value:function getTurnedPose(t,r){return movePose(r.start,{center:r.grabbedStart,rotDeg:r.grabbedStartRotDeg},(0,C.Hv)(t))}},{key:"withDragBlock",value:function withDragBlock(t,r){if(0===r.blockedBy.length)return t;var o,a=this.set.getSetId(),l=[],i=_createForOfIteratorHelper(r.blockedBy);try{var c=function _loop2(){var t=o.value,r=t.setId,i=void 0===r?a:r,c=t.elementId;void 0===c||l.some((function(t){return t.setId===i&&t.elementId===c}))||l.push({setId:i,elementId:c})};for(i.s();!(o=i.n()).done;)c()}catch(t){i.e(t)}finally{i.f()}return _objectSpread(_objectSpread({},t),{},{blockedBy:{elements:l,door:r.blockedBy.some((function(t){return void 0===t.elementId}))}})}},{key:"updateAllElementsWorldPos",value:function updateAllElementsWorldPos(t,r){if(this.doDisablePlanner2D)return!1;var o=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"))},a=!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=[],u=0,d=0;d<l.length;d++)if(l[d]){var g=l[d];if(c.push(g.ElementId),d>u)for(var h=o(g),p=0;p<h.length;p++)if(c.indexOf(h[p].OnElementId)>=0){a=this.updateWorldPos(g,h[p]);break}}else u=d;if(r&&r.length>0)for(var m=new Set(r),v=!0;v;){v=!1;var P,D=_createForOfIteratorHelper(l);try{for(D.s();!(P=D.n()).done;){var k=P.value;if(k&&!m.has(k.ElementId)){var y=o(k).find((function(t){return m.has(t.OnElementId)}));y&&(a=this.updateWorldPos(k,y)||a,m.add(k.ElementId),v=!0)}}}catch(t){D.e(t)}finally{D.f()}}return this.checkCollision(!1,t),a}},{key:"addElementToWorld",value:(_=(0,a.Z)(h().mark((function _callee(t,r,o,a){var l,i,c,u,d,g,m,v,P,y,I,E,b,A,x,C,S,B,w,O,V,T=this,N=arguments;return h().wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:if(l=N.length>4&&void 0!==N[4]?N[4]:100,i=N.length>5?N[5]:void 0,c=!1,!i||!i.forceSetToTrans){h.next=13;break}u=i.transform,d=u.worldPosCenter,g=u.height,m=p.Z.standsOnFloor(d.y,g),t.WorldPosCenter=m&&Number.isFinite(t.Height)?new D.P(d.x,t.Height/2,d.z):d,t.RotDeg=i.transform.rotDeg,t.PosNrAtEnd=!!i.transform.posNrAtEnd,t.Placement=i.transform.placement,this.set.onDockingChanged(t.ElementId,-1,"NOT_DOCKED"),h.next=52;break;case 13:if(v=!1,!r){h.next=51;break}P=0;case 16:if(!(P<r.length)){h.next=51;break}if(y=r[P].targetElemIdToDock,I=r[P].targetDockingPointId,!(y&&y>-1&&this.plannerElements.has(y))){h.next=48;break}if(!I||""==I){h.next=37;break}if(!(E=this.plannerElements.get(y))){h.next=35;break}if(!(b=E.getDockingPointById(I))){h.next=35;break}if(!(A=k.Z.tryDockElementToDP(t,E,b))){h.next=31;break}this.updateWorldPos(t,A),v=!0,h.next=35;break;case 31:return h.next=33,this.tryToDockWithDifferentSVGWithFormula(t,y);case 33:if(!h.sent){h.next=35;break}v=!0;case 35:h.next=48;break;case 37:if(x=!1,(t.HasAVL||t.HasAVR)&&(x=this.dockToAVLorAVR(t,[this.plannerElements.get(y)])),x||(x=this.dockToAVUorAVOororAVNorAVSorAVC(t,[this.plannerElements.get(y)])),x){h.next=47;break}return h.next=43,this.tryToDockWithDifferentSVGWithFormula(t,y);case 43:if(x=h.sent){h.next=47;break}return l=50,h.abrupt("break",51);case 47:x&&(v=!0);case 48:P++,h.next=16;break;case 51:v||(C=null==r?void 0:r.map((function(t){return t.targetElemIdToDock})).find((function(t){return null!=t&&T.plannerElements.has(t)})),S=function atSelected(t){return void 0===C||t.some((function(t){return t.ElementId===C}))},w=(B=null==a)&&this.placeAtSuggestedPlace(t,S),O=!1,w||(V=this.getAllPlannerElements(),O=this.dockToAVLorAVR(t,V),o&&(O=!1),O||(O=this.dockToAVUorAVOororAVNorAVSorAVC(t,V),o&&(O=!1)),!O&&B&&void 0!==C&&(w=this.placeAtSuggestedPlace(t,(function(t){return!S(t)})))),O||(B&&!w&&(c=!0,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 52:this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.updatePlannerPosNr(),t.IsAccessoire||this.placeAddedInRoom([t],c),this.checkCollision(!1,t.getElementId()),this.updatePlannerBoundingBox();case 58:case"end":return h.stop()}}),_callee,this)}))),function addElementToWorld(t,r,o,a){return _.apply(this,arguments)})},{key:"tryToDockWithDifferentSVGWithFormula",value:(Z=(0,a.Z)(h().mark((function _callee2(t,r){var o,a,l,i,c,u,d,g,p,v,P,D,k;return h().wrap((function _callee2$(h){for(;;)switch(h.prev=h.next){case 0:if(o=!1,a=this.set.getArticleByElementId(t.ElementId),l=null==a?void 0:a.VariantValues,i=t.getSVGsWithFormula(),!t.FilterAVL.length&&!t.FilterAVR.length){h.next=52;break}if(null==i||!i.length){h.next=18;break}c=0;case 7:if(!(c<i.length)){h.next=18;break}return u=m.ZP.getVariantValuesFromRule(i[c].JsFormula,{}),h.next=11,this.applyVariantValuesAndTryDock(t,r,u);case 11:if(!(o=h.sent)){h.next=15;break}return B.debug("svgWithFormula nr: "+c+" did dock: "+i[c].SVG),h.abrupt("break",18);case 15:c++,h.next=7;break;case 18:if(o||!a){h.next=31;break}d=this.getVariantValuesMatchingTargetFilters(a,this.plannerElements.get(r)),g=0;case 21:if(!(g<d.length&&g<20)){h.next=31;break}return h.next=24,this.applyVariantValuesAndTryDock(t,r,d[g]);case 24:if(!(o=h.sent)){h.next=28;break}return B.debug("following variantValues matching the target avl/avr filter did dock: ",d[g]),h.abrupt("break",31);case 28:g++,h.next=21;break;case 31:if(null==(p=t.getVaraintValuesInfluencingAVLAVRFilter())||!p.length||o){h.next=44;break}v=0;case 34:if(!(v<p.length&&v<20)){h.next=44;break}return h.next=37,this.applyVariantValuesAndTryDock(t,r,p[v]);case 37:if(!(o=h.sent)){h.next=41;break}return B.debug("following variantValues did dock: ",p[v]),h.abrupt("break",44);case 41:v++,h.next=34;break;case 44:if(o){h.next=52;break}for(k in P=new Map,D=new Map,l)D.set(k,l[k]);return P.set(t.ElementId,D),h.next=51,this.set.updateCfgValuesByPlanner(P,!0);case 51:a&&this.commitPendingConnectorFilters(a);case 52:return h.abrupt("return",o);case 53:case"end":return h.stop()}}),_callee2,this)}))),function tryToDockWithDifferentSVGWithFormula(t,r){return Z.apply(this,arguments)})},{key:"applyVariantValuesAndTryDock",value:(M=(0,a.Z)(h().mark((function _callee3(t,r,o){var a,l,i,c;return h().wrap((function _callee3$(u){for(;;)switch(u.prev=u.next){case 0:for(i in a=new Map,l=new Map,o)l.set(i,o[i]);return a.set(t.ElementId,l),u.next=6,this.set.updateCfgValuesByPlanner(a,!0);case 6:return(c=this.set.getArticleByElementId(t.ElementId))&&this.commitPendingConnectorFilters(c),u.abrupt("return",this.dockToAVLorAVR(t,[this.plannerElements.get(r)]));case 9:case"end":return u.stop()}}),_callee3,this)}))),function applyVariantValuesAndTryDock(t,r,o){return M.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 o=t.CatalogData.isIDMFormat?"":"OPT",a=t.CatalogData.isIDMFormat?"":"OPV",l=[],i=new Set,c=function collect(r,c){var u,d=_createForOfIteratorHelper(c);try{for(d.s();!(u=d.n()).done;){var g,h=u.value,p=_createForOfIteratorHelper(t.getVariantValuesInfluencingOptions([o+r],a+h));try{for(p.s();!(g=p.n()).done;){var m=g.value,v=JSON.stringify(m);i.has(v)||(i.add(v),l.push(m))}}catch(t){p.e(t)}finally{p.f()}}}catch(t){d.e(t)}finally{d.f()}};return c("89",r.FilterAVR),c("90",r.FilterAVL),l}},{key:"dockToAVLorAVR",value:function dockToAVLorAVR(t,r){var o=!1,a=!1;if(t.HasAVL){var l=k.Z.tryDockElement(t,"AVL",r);l&&(this.updateWorldPos(t,l),o=!0)}if(!o&&t.HasAVR){var i=k.Z.tryDockElement(t,"AVR",r);i&&(a=!0,this.updateWorldPos(t,i))}return o||a}},{key:"getAllViewPlannerElements",value:function getAllViewPlannerElements(){return this.getAllPlannerElements()}},{key:"getFreeDockingPointsByElementId",value:function getFreeDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return{dockingPoints:[],filter:[]};var o=this.plannerElements.get(t),a=o.getFreeDockingPointsByType(r),l=[];switch(r){case"AVR":l=o.getFilterAVR();break;case"AVL":l=o.getFilterAVL()}return{dockingPoints:a,filter:l}}},{key:"getDockedDockingPointsByElementId",value:function getDockedDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return[];for(var o=this.plannerElements.get(t),a=[],l=0;l<r.length;l++)a=a.concat(o.getDockingDockingPointsByType(r[l]));return a}},{key:"getNeighborElements",value:function getNeighborElements(t,r){if(!this.plannerElements.has(t))return[];var o=this.plannerElements.get(t),a=null==o?void 0:o.getDockingDockingPointsByType(r);if(!a)return[];for(var l=[],i=0;i<(null==a?void 0:a.length);i++)null!=a[i]&&l.push(a[i].OnElementId);return l}},{key:"getDockedGroups",value:function getDockedGroups(){for(var t=[],r=this.getAllPlannerElements(),o=[],a=0;a<this.getAllPlannerElements().length;a++){var l=r[a];if(o.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 u=[],d=function removeFromElementsToAdd(t){var r=o.indexOf(t);r>=0&&o.splice(r,1)};for(a=0;a<t.length;a++){var g=t[a],h=[];d(g.getElementId());for(var p=!1,m=g;!p;){h.push(m.getElementId()),d(m.getElementId());var v=this.getAccessoiresRecursive(m.getElementId());for(c=0;c<v.length;c++)h.push(v[c]),d(v[c]);var P=this.getNeighborElements(m.getElementId(),"AVR");P&&0!=P.length?m=this.plannerElements.get(P[0]):p=!0}u.push(h)}for(a=0;a<o.length;a++)u.push([o[a]]);return u}},{key:"getAccessoiresRecursive",value:function getAccessoiresRecursive(t){var r=this,o=function calcAccs(t,a,l){l.push(t);for(var i=r.getNeighborElements(t,"AVC"),c=r.getNeighborElements(t,"AVO"),u=r.getNeighborElements(t,"AVU"),d=r.getNeighborElements(t,"AVN"),g=r.getNeighborElements(t,"AVS"),h=i.concat(c).concat(u).concat(d).concat(g),p=0;p<h.length;p++)l.indexOf(h[p])>=0||(a.push(h[p]),l.push(h[p]),o(h[p],a,l))},a=[];return o(t,a,[]),a}},{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:(R=(0,a.Z)(h().mark((function _callee4(){var t,r,o,a,l,i;return h().wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:t=this.getAllPlannerElements(),r=[],o=0;case 3:if(!(o<t.length)){c.next=14;break}if(!(a=t[o]).updatePlannerData(this.set.getPlannerData(a.getElementId()))){c.next=11;break}return r.push(a.ElementId),a.keepOnFloorOnHeightChange(),c.next=11,P.Z.loadSVG(a,this.set);case 11:o++,c.next=3;break;case 14:if(l=[],r.length){for(B.debug("Configuration changed one plannerElement. UpdateDockingRelations","DivaStandardPlanner - updatePlanner"),i=k.Z.updateDockingRelations(this.plannerElements),o=0;o<i.length;o++)i[o].IsDockedAccessoire&&l.push(i[o].ElementId);this.updateAllElementsWorldPos(void 0,r),this.room&&(this.placeGroupsInRoom(),this.checkCollision(!1)),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}return c.abrupt("return",{doDeleteBackGrid:!1,elemIdsToDelete:l,elementIdsToUpdateSelection:r,failed:!1});case 17:case"end":return c.stop()}}),_callee4,this)}))),function updatePlanner(){return R.apply(this,arguments)})},{key:"extendPlanner",value:(W=(0,a.Z)(h().mark((function _callee5(t,r){var o,a,i,c,u,d,g,v,I,E,b,A,x,S,w,O,V,T,N,W,R,M;return h().wrap((function _callee5$(h){for(;;)switch(h.prev=h.next){case 0:if(o=(0,y.QV)(t),!(0,y.Nf)(o)){h.next=42;break}a=o.set.elements,i=[],c=[],u=new Map,d=0;case 7:if(!(d<a.length)){h.next=37;break}if(h.prev=8,b=a[d],(null!==(g=null===(v=this.set.getArticleByBasketId(b.basketID))||void 0===v?void 0:v.catalogArticle)&&void 0!==g?g:this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(I=(0,y.oK)(b))&&void 0!==I?I:""))||null===(E=b.AccessoireInitParams)||void 0===E||!E.RelatedToBasketID||this.set.getSetState.onlyRunLogic){h.next=14;break}return B.error(new m.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),h.abrupt("continue",34);case 14:if(A=new p.Z(this.set.getSetId(),b.basketID,this.nextElementId,DivaStandardPlanner.plannerType),u.set(b.elementID,A),this.nextElementId=A.getElementId()+1,this.plannerElements.set(A.ElementId,A),this.set.setElementId(b.basketID,A.ElementId),x=this.set.getPlannerData(A.ElementId),A.updatePlannerData(x),this.doDisablePlanner2D){h.next=24;break}return h.next=24,P.Z.loadSVG(A,this.set);case 24:A.WorldPosCenter=new D.P(r.WorldPos.x+r.Size.x+b.x+100,r.WorldPos.y+b.y,r.WorldPos.z+b.z),A.RotDeg=b.rot,A.PosNrAtEnd=!!b.posNrAtEnd,A.Placement=(0,C.Fs)(b.placement),A.IsDockedAccessoire?(c.push(b),A.PosNr=b.posNr,null!=b.accNr&&(A.AccessoirePosNr=b.accNr)):(i[b.posNr-1]=b,A.PosNr=b.posNr),h.next=34;break;case 31:h.prev=31,h.t0=h.catch(8),B.error(new m.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{cause:h.t0,code:"WC_0012"}));case 34:d++,h.next=7;break;case 37:for(S=[].concat((0,l.Z)(i.filter((function(t){return null!=t}))),c),d=0;d<S.length;d++)if(w=S[d],O=u.get(w.elementID),S.length>1&&d>0)for(V=w.DP,T=0;T<V.length;T++)N=V[T],W=null==O?void 0:O.getDockingPointById(N.id),R=u.get(N.onID),M=null==R?void 0:R.getDockingPointById(N.onDPID),W&&M&&k.Z.tryDockElementDPToDP(O,R,W,M);this.placeAddedInRoom((0,l.Z)(u.values()),!0),h.next=43;break;case 42:B.error(new m.GE("The function extend Planner works only with products that are saved in the configurator 2.0",{code:"WC_0012"}));case 43:case"end":return h.stop()}}),_callee5,this,[[8,31]])}))),function extendPlanner(t,r){return W.apply(this,arguments)})},{key:"initPlanner",value:(g=(0,a.Z)(h().mark((function _callee6(t){var r,o,a,i,c,u,d,g,v,I,E,b,A,x,S,w,O,V,T,N,W,R,M,Z,_,G,z,L,H,U,j,X,K,Y,$,J,q,Q,ee,te,ne,re,oe,ae,le,ie,se,ce,ue,de,ge,he,fe,pe;return h().wrap((function _callee6$(h){for(;;)switch(h.prev=h.next){case 0:if(r=(0,y.QV)(t),!(0,y.Nf)(r)){h.next=65;break}if(B.debug("Initialize set Plan Data - V2\n"+r,"DivaStandardPlanner initPlanner"),null!==(o=r.set)&&void 0!==o&&null!==(o=o.elements)&&void 0!==o&&o.length){h.next=5;break}return h.abrupt("return");case 5:a=r.set.elements,i=[],c=[],u=0;case 9:if(!(u<a.length)){h.next=39;break}if(h.prev=10,E=a[u],(null!==(d=null===(g=this.set.getArticleByBasketId(E.basketID))||void 0===g?void 0:g.catalogArticle)&&void 0!==d?d:this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(v=(0,y.oK)(E))&&void 0!==v?v:""))||null===(I=E.AccessoireInitParams)||void 0===I||!I.RelatedToBasketID||this.set.getSetState.onlyRunLogic){h.next=16;break}return B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),h.abrupt("continue",36);case 16:if(b=E.elementID,A=new p.Z(this.set.getSetId(),E.basketID,b,DivaStandardPlanner.plannerType),this.nextElementId=b+1,this.plannerElements.set(A.ElementId,A),this.set.setElementId(E.basketID,A.ElementId),x=this.set.getPlannerData(A.ElementId),A.updatePlannerData(x),this.doDisablePlanner2D){h.next=26;break}return h.next=26,P.Z.loadSVG(A,this.set);case 26:A.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+E.x,this.plannerBoundingBox.WorldPos.y+E.y,this.plannerBoundingBox.WorldPos.z+E.z),A.RotDeg=E.rot,A.PosNrAtEnd=!!E.posNrAtEnd,A.Placement=(0,C.Fs)(E.placement),A.IsDockedAccessoire?(c.push(E),A.PosNr=E.posNr,null!=E.accNr&&(A.AccessoirePosNr=E.accNr)):(i[E.posNr-1]=E,A.PosNr=E.posNr),h.next=36;break;case 33:h.prev=33,h.t0=h.catch(10),B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{cause:h.t0,code:"WC_0012"}));case 36:u++,h.next=9;break;case 39:S=1==i.filter(Boolean).length,w=[].concat((0,l.Z)(i.filter((function(t){return null!=t}))),c),u=0;case 42:if(!(u<w.length)){h.next=63;break}if(h.prev=43,O=w[u],0!=u||!S||!this.plannerHasStaticBackground){h.next=50;break}return null!=(null==(V=i[u])?void 0:V.x)||null!=(null==V?void 0:V.y)||null!=(null==V?void 0:V.z)||(T=this.plannerElements.get(O.elementID))&&(T.WorldPosCenter=new D.P(0,T.Height/2,T.Depth/2)),h.abrupt("continue",60);case 50:if(null!=O.DP&&0!=O.DP.length){h.next=52;break}return h.abrupt("continue",60);case 52:for(N=O.DP,W=0;W<N.length;W++)(R=N[W]).id&&null!=R.onID&&R.onDPID&&(M=this.plannerElements.get(O.elementID),Z=null==M?void 0:M.getDockingPointById(R.id),_=this.plannerElements.get(R.onID),G=null==_?void 0:_.getDockingPointById(R.onDPID),Z&&G?Z.IsDocking&&Z.OnDP==G||k.Z.tryDockElementDPToDP(M,_,Z,G)||this.doDisablePlanner2D||B.error(new m.GE("Saved docking relation rejected on init: "+R.id+" (elem "+(null==M?void 0:M.ElementId)+") -> "+R.onDPID+" (elem "+(null==_?void 0:_.ElementId)+")",{code:"WC_0012"})):this.doDisablePlanner2D||B.error(new m.GE("Error initializing docking point between source element with id: "+(null==M?void 0:M.ElementId)+" and target Element with id: "+(null==_?void 0:_.ElementId)+". SourceDPID: "+R.id+"; targetDPID: "+R.onDPID)));h.next=60;break;case 56:h.prev=56,h.t1=h.catch(43),L=null===(z=w[u])||void 0===z?void 0:z.elementID,B.error(new m.GE("Error initializing dockingPoints of element with elementID "+L,{cause:h.t1,code:"WC_0012"}));case 60:u++,h.next=42;break;case 63:h.next=118;break;case 65:if(B.debug("Initialize set Plan Data - old V1\n"+r,"DivaStandardPlanner initPlanner"),null!=(j=null===(H=r.Sets)||void 0===H?void 0:H[0])&&null!==(U=j.Elements)&&void 0!==U&&U.length){h.next=69;break}return h.abrupt("return");case 69:X=j.Elements,K=[],Y=[],u=0;case 73:if(!(u<X.length)){h.next=107;break}if(h.prev=74,q=X[u],this.set.CatalogData.getCatalogArticleByArticleCodex(null!==($=(0,y.oK)(q))&&void 0!==$?$:"")||null===(J=q.AccessoireInitParams)||void 0===J||!J.RelatedToBasketID||this.set.getSetState.onlyRunLogic){h.next=80;break}return B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V1",{code:"WC_0012"})),h.abrupt("continue",104);case 80:if(Q=q.BasketID,-1==this.set.getElementId(Q)&&this.set.setElementId(Q,Number(q.ID)),ee=this.set.getElementId(Q),q.elementId=ee,-1!=ee){h.next=87;break}return B.error(new m.GE("Error when initializing planner. The elementID Was not saved in the article. ",{code:"WC_0012"})),h.abrupt("continue",104);case 87:if(te=new p.Z(this.set.getSetId(),Q,ee,DivaStandardPlanner.plannerType),this.nextElementId=ee+1,this.plannerElements.set(te.ElementId,te),ne=this.set.getPlannerData(te.ElementId),te.updatePlannerData(ne),this.doDisablePlanner2D){h.next=95;break}return h.next=95,P.Z.loadSVG(te,this.set);case 95:re=new D.P(q.PosX,q.PosZ,q.PosY),te.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+re.x,this.plannerBoundingBox.WorldPos.y+re.y,this.plannerBoundingBox.WorldPos.z+re.z),te.RotDeg=q.Rot,te.IsDockedAccessoire?(Y.push(q),q.PosNum.toString().indexOf(".")>0&&(oe=q.PosNum.toString().split(".")[0],ae=q.PosNum.toString().split(".")[1],te.PosNr=Number(oe),te.AccessoirePosNr=Number(ae))):(K[q.PosNum-1]=q,te.PosNr=q.PosNum),h.next=104;break;case 101:h.prev=101,h.t2=h.catch(74),B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner - Plan Data old Planner",{cause:h.t2,code:"WC_0012"}));case 104:u++,h.next=73;break;case 107:le=[].concat((0,l.Z)(K.filter((function(t){return null!=t}))),Y),u=0;case 109:if(!(u<le.length)){h.next=118;break}if(null!=(ie=le[u]).DP&&0!=ie.DP.length){h.next=113;break}return h.abrupt("continue",115);case 113:for(se=ie.DP,W=0;W<se.length;W++)(ce=se[W]).DP&&""!=ce.DP&&ce.onID&&""!=ce.onID&&(de=parseInt(String(ce.onID)),ge=ce.DP,he=null!=ie.elementId?this.plannerElements.get(ie.elementId):void 0,fe=null!==(ue=this.plannerElements.get(de))&&void 0!==ue?ue:this.getPlannerElementByIndex(de-1),he&&fe?k.Z.initDockingPointRelationByArea(he,fe,ge):B.error(new m.GE("Error initializing dockingPoints of element with elementID "+ie.elementId,{code:"WC_0012"})));case 115:u++,h.next=109;break;case 118:this.plannerElements.forEach((function(t){!t.IsDockedAccessoire&&(null==pe||t.PosNr<pe.PosNr)&&(pe=t)})),this.updateAllElementsWorldPos(void 0,pe?[pe.ElementId]:void 0),this.updatePlannerPosNr();case 121:case"end":return h.stop()}}),_callee6,this,[[10,33],[43,56],[74,101]])}))),function initPlanner(t){return g.apply(this,arguments)})},{key:"getPlannerElementByIndex",value:function getPlannerElementByIndex(t){var r=void 0,o=0;return this.plannerElements.forEach((function(a,l){t==o&&(r=a),o++})),r}},{key:"addPlannerElement",value:(o=(0,a.Z)(h().mark((function _callee7(t,r){var o,a,l,i,c,u,d;return h().wrap((function _callee7$(g){for(;;)switch(g.prev=g.next){case 0:if(c=new p.Z(this.set.getSetId(),t,this.nextElementId,DivaStandardPlanner.plannerType),this.nextElementId++,this.plannerElements.set(c.ElementId,c),this.set.setElementId(t,c.ElementId),u=this.set.getPlannerData(c.ElementId),c.updatePlannerData(u),this.doDisablePlanner2D){g.next=9;break}return g.next=9,P.Z.loadSVG(c,this.set);case 9:if(null==(d=null!==(o=r.dockingPointInfos)&&void 0!==o?o:[{targetDockingPointId:r.targetDockingPointId,targetElemIdToDock:r.targetElemIdToDock}])||null===(a=d[0])||void 0===a||!a.targetElemIdToDock||null==d||null===(l=d[0])||void 0===l||!l.targetDockingPointId){g.next=15;break}return g.next=13,this.addElementToWorld(c,d);case 13:g.next=27;break;case 15:if(null==d||null===(i=d[0])||void 0===i||!i.targetElemIdToDock){g.next=20;break}return g.next=18,this.addElementToWorld(c,d);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 o.apply(this,arguments)})},{key:"movePlannerElement",value:function movePlannerElement(){throw Error("move planner not implemented in standard")}},{key:"copyPlannerElement",value:(r=(0,a.Z)(h().mark((function _callee8(t,r){var o,a,l,i,c,u;return h().wrap((function _callee8$(d){for(;;)switch(d.prev=d.next){case 0:o=0;case 1:if(!(o<t.length)){d.next=24;break}if(l=t[o],null!=r){d.next=7;break}return d.next=6,this.addPlannerElement(l.value,{});case 6:return d.abrupt("continue",21);case 7:if(-1==(i=null===(a=r.copyIndex)||void 0===a?void 0:a.x)||1==i){d.next=12;break}return d.next=11,this.addPlannerElement(l.value,{});case 11:return d.abrupt("continue",21);case 12:if(c=this.plannerElements.get(l.key),u=null==c?void 0:c.getFreeDockingPointsByType(-1==i?"AVL":"AVR").find((function(t){return!t.IsDisabled})),!c||!u){d.next=19;break}return d.next=17,this.addPlannerElement(l.value,{targetElemIdToDock:c.ElementId,targetDockingPointId:u.DpId});case 17:d.next=21;break;case 19:return d.next=21,this.addPlannerElement(l.value,{});case 21:o++,d.next=1;break;case 24:case"end":return d.stop()}}),_callee8,this)}))),function copyPlannerElement(t,o){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,a.Z)(h().mark((function _callee9(t,r){var o,a,l,i,c,u,d,g,p,v,P,D,y,I,E;return h().wrap((function _callee9$(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,m.ZP.Sleep(1);case 2:if(this.plannerElements.has(t)){h.next=4;break}return h.abrupt("return",{});case 4:return o=this.plannerElements.get(t),a=this.getParentElement(o),l=-1,i=999,c=-1,u=-1,d=!1,this.plannerElements.forEach((function(t,r){d||(null!=o&&o.IsAccessoire&&o.PosNr==t.PosNr&&(c=t.getElementId(),d=!0),t.getPosNr()<o.getPosNr()&&t.getPosNr()>l?(l=t.getPosNr(),c=t.getElementId()):t.getPosNr()>o.getPosNr()&&t.getPosNr()<i&&(i=t.getPosNr(),u=t.getElementId()))})),g=!1,r&&(p=o.getDockingDockingPointsByType("AVL"),v=o.getDockingDockingPointsByType("AVR"),p.length>0&&v.length>0&&(P=this.plannerElements.get(p[0].OnElementId),D=this.plannerElements.get(v[0].OnElementId),P&&D&&(y=P.getDockingDockingPointsByType("AVR"),I=D.getDockingDockingPointsByType("AVL"),y.length>0&&I.length>0&&(k.Z.removeDockingPointRelations(o),g=!0,k.Z.tryDockElementDPToDP(P,D,y[0],I[0]))))),E={rotDeg:o.getRotDeg(),worldPosCenter:o.WorldPosCenter,height:o.Height,posNrAtEnd:o.PosNrAtEnd,placement:o.Placement},g||k.Z.removeDockingPointRelations(o),this.plannerElements.delete(t),this.tryToDockForNotDockedAccessoire(a),this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.room&&this.placeGroupsInRoom(),this.updatePlannerPosNr(),this.checkCollision(!1,o.getElementId()),this.updatePlannerBoundingBox(),h.abrupt("return",{newElementToSelect:c>=0?c:u>=0?u:void 0,transform:E});case 25:case"end":return h.stop()}}),_callee9,this)}))),function deletePlannerElement(r,o){return t.apply(this,arguments)})},{key:"tryToDockForNotDockedAccessoire",value:function tryToDockForNotDockedAccessoire(t){if(t)for(var r=t.getCurrentAccessorires().filter((function(t){return t.getIsNotDockedAccessoire()})),o=0;o<r.length;o++){var a=r[o].getElementId(),l=this.plannerElements.get(a);if(l)if(this.dockToAVUorAVOororAVNorAVSorAVC(l,[t]))break}}},{key:"checkCollision",value:function checkCollision(t,r){var o=this;if(!this.doDisablePlanner2D){for(var a,l,i,c=this.getAllPlannerElements(),u=new Set(c.filter((function(t){return o.hasNoCollision(t.ArticleCodex)})).map((function(t){return t.ElementId}))),d=function slottedOf(t){var r;return null!==(r=a)&&void 0!==r||(a=new Map((0,b.rX)(c).flatMap((function(t){return o.getCollidingShapes(t,!1)})).map((function(t){return[t.elementId,t]})))),a.get(t.ElementId)},g=function inSlotClear(t,r){var a=d(t),l=d(r),i=o.getCatalogData().placementOptions.rules;return!!a&&!!l&&(0,S.n5)(i,a,i,l)},h=!1,p=[],m=0;m<c.length;m++){var v=c[m];if(!r||v.getElementId()==r)for(var D=r?0:m+1;D<c.length;D++){var y,I,E=c[D];if(v.getElementId()!=E.getElementId()&&(!u.has(v.ElementId)&&!u.has(E.ElementId)&&!k.Z.checkElementsAreDocking(v,E))){var A=!1;if((this.set.CatalogData.doCheckConstructionWarnings||null!==(y=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==y&&y.includes(v.ArticleCodex)||null!==(I=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==I&&I.includes(E.ArticleCodex))&&(A=P.Z.checkCollision(v,E,this.set.CatalogData.checkCollisionForDifferentLayers))&&g(v,E)&&(A=!1),A&&(h=!0,p.push({elementId1:v.getElementId(),elementId2:E.getElementId()}),B.debug("Collision Found between element1: "+v.ElementId+"; and element2: "+E.ElementId),!t))break}}}if(this.collisionHandler.collisionDetected&&!h)null===(l=(i=this.collisionHandler).updatePlannerMsgContainer)||void 0===l||l.call(i,"COLLISION_MSG",!1,"WARNING","COLLISION_MSG",!1);else if(!this.collisionHandler.collisionDetected&&h){var x,C;null===(x=(C=this.collisionHandler).updatePlannerMsgContainer)||void 0===x||x.call(C,"COLLISION_MSG",!0,"WARNING","COLLISION_MSG",!1)}this.collisionHandler.collisionPairs=p,this.collisionHandler.collisionDetected=h}}},{key:"getCollisionSet",value:function getCollisionSet(){return this.toCollisionSet(this.doDisablePlanner2D?[]:(0,b.rX)(this.getAllPlannerElements()))}},{key:"toCollisionSet",value:function toCollisionSet(t){var r=this,o=this.getCatalogData(),a=t.filter((function(t){return r.collides(t)})).flatMap((function(t,a){var l=r.getSlotMembers(t);return t.filter((function(t){return!r.hasNoCollision(t.ArticleCodex)})).map((function(t){var i;return _objectSpread(_objectSpread({},r.toCollisionShape(t,l,!1)),{},{groupIndex:a,constructionChecked:o.doCheckConstructionWarnings||!(null===(i=o.forceConstructionWarningForArticles)||void 0===i||!i.includes(t.ArticleCodex))})}))}));return{setId:this.set.getSetId(),catalogCodex:o.catalogCodex,rules:o.placementOptions.rules,collidingLayers:o.checkCollisionForDifferentLayers,parts:a}}},{key:"updateSetPosNr",value:function updateSetPosNr(t){for(var r=this.getAllPlannerElements(),o=0;o<r.length;o++){var a=r[o];a.SetPosNr=t+a.PosNr-1,this.set.setPosNr(a.ElementId,a.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,o,a,i,c,u){var d,g=this,h=!1,p=this.room;p&&"START"==i&&this.startRoomDrag(t);var m=p?this.roomDrag:void 0;if("START"==i?this.startDragUnit(t,m):"UPDATE"==i&&(null===(d=this.dragUnit)||void 0===d||d.add(t)),"UPDATE"==i&&0!==o&&(this.dragSlots=void 0),m&&"forced"!==m.wallMode&&"UPDATE"==i&&0!==o&&(m.rotating=!0),p&&m&&!m.rotating&&"UPDATE"==i&&m.members.some((function(r){return r.ElementId==t})))return t==m.elementId&&this.updateRoomDrag(p,m,r,c),!1;if(this.plannerElements.has(t)){var v=this.plannerElements.get(t);if(null==v||v.updateDeltaTrans(r,o,a,"END"==i,u),"START"==i){if(v){var P=["AVR","AVL"];v.IsDockedAccessoire&&(P=P.concat(["AVO","AVU","AVN","AVS","AVC"]));for(var D=k.Z.removeDockingPointRelationsByType(v,P),y=0;y<D.length;y++)h=this.set.onDockingChanged(v.ElementId,D[y],"UNDOCK")}}else if("END"==i&&v){if((null==m?void 0:m.elementId)==t&&m.blockedBy.length>0){var I=m.rotating?this.getTurnedPose(v,m):m.current,E=m.rotating&&p&&this.findTurnPlace(v,m,p)||m.start;(0,b.Vj)([].concat((0,l.Z)(m.members),(0,l.Z)(m.followers)),I,E),m.current=E,m.blockedBy=[],m.slotSnapped=!1}var A=this.getAllPlannerElements().filter((function(t){var r;return t===v||(null===(r=g.dragUnit)||void 0===r?void 0:r.has(t.ElementId))})),x=A.filter((function(t){return g.dragFollowers.has(t.ElementId)})),C=A.filter((function(t){return!g.dragFollowers.has(t.ElementId)}));this.dragUnit=void 0,this.dragFollowers=new Set,(null==m?void 0:m.elementId)==t&&!m.slotSnapped&&("forced"===m.wallMode||m.rotating)&&this.placeGroupInRoom(C,v,x),this.snapToDock(v,A,c,!m),this.dragSlots=void 0;var S=k.Z.searchDockableElementsInArea(v,this.getAllPlannerElements(),c);null!=S&&S.size>0&&S.forEach((function(t,r){var o=g.plannerElements.get(t.targetDP.ElementId);o&&k.Z.tryDockElementDPToDP(v,o,t.sourceDP,t.targetDP)})),h=this.updateAllElementsWorldPos(t),(null==m?void 0:m.elementId)==t&&(m.slotSnapped||this.placeGroupInRoom(this.getDockingGroupOf(v),v),this.checkCollision(!1,t),this.roomDrag=void 0),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}}return h}},{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(o,a){for(var l=o.getDockingDockingPoints(),i=[],c=0;c<l.length;c++){var u,d={id:l[c].DpId,onID:l[c].OnElementId,onDPID:null===(u=l[c].OnDP)||void 0===u?void 0:u.DpId};i.push(d)}var g=_objectSpread(_objectSpread(_objectSpread({elementID:o.getElementId(),basketID:t.set.getBasketId(o.getElementId()),CatalogCodex:t.set.getCatalogCodex(),Codex:t.set.getArticleCodex(o.getElementId()),posNr:o.PosNr,accNr:o.IsDockedAccessoire?o.AccessoirePosNr:void 0},o.PosNrAtEnd?{posNrAtEnd:!0}:{}),o.Placement?{placement:o.Placement}:{}),{},{x:o.WorldPosCenter.x,y:o.WorldPosCenter.y,z:o.WorldPosCenter.z,rot:o.RotDeg,width:o.Width?o.Width:-1,height:o.Height?o.Height:-1,depth:o.Depth?o.Depth:-1,DP:i});if(o.IsAccessoire){var h=t.set.getParentBasketIdOfElementId(o.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,o,a){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),o&&(i.ShowDim=o),this.isIDM3DCat&&(i.IsIDM3D=!0,i.IDM3DCatCodex=this.IDM3DCatCodex,i.IDM3DEnvironment=this.IDM3DEnvironment),this.plannerElements.forEach((function(r,c){var u=l.set.getPlannerConfigData(c,a),d=u.config,g=[];if(u.accs&&u.accs.length>0)for(var h=0;h<u.accs.length;h++)l.plannerElements.has(u.accs[h])&&g.push("E"+u.accs[h]);if(!t||null!=d.Model){var p,v,P,D,k=l.set.getArticleByElementId(c),y={ID:"E"+c,Model:d.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:d.MAT,MOVE:null!==(p=d.MOVE)&&void 0!==p?p:void 0,CFG:d.CFG,H:"",ACCs:g.length>0?g:void 0};if(o)y.TechSize={Width:null==r.Width||isNaN(r.Width)?null!==(v=null==k?void 0:k.width)&&void 0!==v?v:0:r.Width,Height:null==r.Height||isNaN(r.Height)?null!==(P=null==k?void 0:k.height)&&void 0!==P?P:0:r.Height,Depth:null==r.Depth||isNaN(r.Depth)?null!==(D=null==k?void 0:k.depth)&&void 0!==D?D:0:r.Depth};var I=(0,m.FB)(JSON.stringify(y));y.H=I,i.ELE.push(y)}var E=l.set.getShelfPlannerData(c);if(E)for(var b=0;b<E.length;b++){var A=E[b],x=l.set.getShelfPlannerConfigData(A.basketId).config,C=[];if(x.accs&&x.accs.length>0)for(var S=0;S<x.accs.length;S++)l.plannerElements.has(x.accs[S])&&C.push("E"+x.accs[S]);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:x.MAT,CFG:x.CFG,ACCs:C.length>0?C:void 0};I=(0,m.FB)(JSON.stringify(B));B.H=I,i.ELE.push(B)}}));var u=(0,m.FB)(JSON.stringify(i));return i.H=u,{constructionSet:i}}},{key:"getElementPosInfo",value:function getElementPosInfo(){var t={};return this.plannerElements.forEach((function(r,o){r.IsDockedAccessoire?t[o]={pos:r.PosNr,isAcc:!0,accPos:r.AccessoirePosNr}:t[o]={pos:r.PosNr,isAcc:!1}})),t}},{key:"getPlanningIsComplete",value:function getPlanningIsComplete(t){var r=this,o=!t&&(this.set.CatalogData.doHideCompletenessWarning||!this.set.CatalogData.doCheckConstructionWarnings),a=!1;return this.plannerElements.forEach((function(t,l){var i;(!o||null!==(i=r.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==i&&i.includes(t.ArticleCodex))&&!a&&(t.getFreeDockingPointsByType("AVL").length>0||t.getFreeDockingPointsByType("AVR").length>0)&&(a=!0)})),!a}},{key:"getPlannerBoundingBox",value:function getPlannerBoundingBox(){var t=this.set.CatalogData,r=this.plannerBoundingBox.getWidth(t.PlannerMeasureDigits),o=this.plannerBoundingBox.getDepth(t.PlannerMeasureDigits),a=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),u=l!==r||i!==o||c!==a;return{width:r,height:a,depth:o,widthIgnoreOLF:u?l:void 0,depthIgnoreOLF:u?i:void 0,heightIgnoreOLF:u?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,o){t.push(r)})),t}},{key:"getParentElement",value:function getParentElement(t){var r=void 0,o=t.getParentElementId();return o&&(r=this.plannerElements.get(o)),r}},{key:"getPositionOfPlannerElements",value:function getPositionOfPlannerElements(){var t=this.set.getSetId();this.plannerElements.forEach((function(r,o){B.log("SetID:",t),B.log("Elementid:",r.ElementId),B.log("X:",r.WorldPosCenter.x),B.log("Y:",r.WorldPosCenter.y),B.log("X:",r.WorldPosCenter.z),B.log("ROT:",r.RotDeg),B.log("___________________________")}))}},{key:"clonePlanner",value:function clonePlanner(t,r){return new DivaStandardPlanner(t,(function(){}),r,new I.Z,!0,!1)}},{key:"getPlannerInteractionInformation",value:function getPlannerInteractionInformation(){return B.error(new m.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 B.error(new m.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,o,g,W,R,M,Z,_}();(0,u.Z)(W,"plannerType","STD")},65225:(t,r,o)=>{o.d(r,{Z:()=>d});var a=o(13125),l=o(43860),i=o(89429),c=o(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,o){var a=_superPropBase(t,r);if(a){var l=Object.getOwnPropertyDescriptor(a,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}},_get.apply(null,arguments)}var u=o(91870);function _callSuper(t,r,o){return r=(0,c.Z)(r),(0,i.Z)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,c.Z)(t).constructor):r.apply(t,o))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}const d=new(function(t){function DockingPointHandler(){return(0,a.Z)(this,DockingPointHandler),_callSuper(this,DockingPointHandler,arguments)}return(0,u.Z)(DockingPointHandler,t),(0,l.Z)(DockingPointHandler,[{key:"initDockingPointsFromSvg",value:function initDockingPointsFromSvg(t,r,o,a){var l="minX"in o?o:{minX:o.svgMinXVal,minY:o.svgMinYVal};!function _superPropGet(t,r,o,a){var l=_get((0,c.Z)(1&a?t.prototype:t),r,o);return 2&a&&"function"==typeof l?function(t){return l.apply(o,t)}:l}(DockingPointHandler,"initDockingPointsFromSvg",this,3)([t,r,l,a])}}])}(o(23452).pD))},95212:(t,r,o)=>{o.d(r,{Z:()=>D});var a=o(84658),l=o(13125),i=o(43860),c=o(80248),u=o(50747),d=o.n(u),g=o(58129),h=o(65225),p=o(64357),m=o(2221),v=o(23452),P=m.ZP.initLog("Planner","WEB-PLANNER-LOGIC");const D=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,o){if(m.ZP.startSpanOfApm("PlannerHandler2D checkCollision"),!(t.Layer==r.Layer||o.includes(Number(t.Layer))&&o.includes(Number(r.Layer))))return m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var a=t.getWorld2DBBoxOutline(),l=r.getWorld2DBBoxOutline();if((0,v.JU)(a,l)){if(!t.HasOLTPolygon&&!t.HasOLFPolygon)return P.error(new m.GE("checkCollision PlannerHandler2D - The element with id: "+t.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;if(!r.HasOLTPolygon&&!r.HasOLFPolygon)return P.error(new m.GE("checkCollision PlannerHandler2D - The element with id: "+r.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var i=t.HasOLFPolygon?t.getOLFPolygonWorldPos():t.getOLTPolygonWorldPos(),c=r.HasOLFPolygon?r.getOLFPolygonWorldPos():r.getOLTPolygonWorldPos();return m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,v.JU)(i,c)}return m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,v.uA)(a,l)}},{key:"parseSvg",value:function parseSvg(t,r,o,a,l){var i,c;r=this.svgUtils.removeMaskFromSvg(r),h.Z.initDockingPointsFromSvg(t,this.svgUtils.getDPsInSVG(r),o,a);var u=this.svgUtils.getPointOfPoligonById(r,"OLT");null!=u&&u.length||P.warn("no olt fount in svg for element"+t.ArticleCodex+" with id "+t.getElementId()),t.OLTPolygon=u;var d=this.svgUtils.getPointOfPoligonById(r,"OLF"),g=(0,v.Qq)(r);if(null!=d&&d.length){var D,k,y=this.svgUtils.getBoundingBoxOfPoints(d),I=null!==(D=null==g?void 0:g.width)&&void 0!==D?D:y.width,E=null!==(k=null==g?void 0:g.height)&&void 0!==k?k:y.height;t.setupOLF(d,I,E)}else if(g){var b=[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(b,g.width,g.height)}else null!=l&&l.heightOLF,null!=l&&l.widthOLF?t.setupOLF(d,null==l?void 0:l.widthOLF,null==l?void 0:l.heightOLF):t.clearOLF();var A=(0,v.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 x=(0,v.O3)(r);t.DoSetWidthFromSVG&&null!=x&&x.width&&(t.WidthFromSVG=x.width/m.ZP.UnitRecalc),t.DoSetDepthFromSVG&&null!=x&&x.height&&(t.DepthFromSVG=x.height/m.ZP.UnitRecalc)}t.SvgData=r,t.cleanShapeOLF2D(),t.cleanShapeOLT2D()}},{key:"getMinBorderSVG",value:function getMinBorderSVG(t){var r=(0,v.dI)(t);return{svgMinXVal:r.minX,svgMinYVal:r.minY}}},{key:"loadSVG",value:(t=(0,a.Z)(d().mark((function _callee(t,r){var o,a,l,i,c,u,g,h,p,v,D,k=this;return d().wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(a=t.SvgFileName){d.next=3;break}return d.abrupt("return",!1);case 3:if(!r.CatalogData.isIDMFormat){d.next=9;break}return d.next=6,r.api.fetchData(a,{method:"GET",config:{},data:{}});case 6:l=d.sent,d.next=16;break;case 9:return d.next=11,r.api.getDataCache(this.getSVGUrl(a,r.CatalogData.mediaUrl),void 0,r.CatalogData.accountSessionGuid);case 11:if(!(c=d.sent).Error){d.next=14;break}throw new Error(c.Error);case 14:"success"==c.Result.toLowerCase()&&(i=c.Content),l=m.ZP.decodeBase64(i);case 16:if(l||P.error(new m.GE("Fehler beim laden des SVGs ",{code:"WC_0009",custom:{svgFile:a}})),t.svgBefore=l,u=t.DoSetWidthFromSVG?void 0:t.Width,null==(g=t.DoSetDepthFromSVG?void 0:t.Depth)&&null!=u&&(null!==(o=t.Height)&&void 0!==o?o:-1)>0&&(g=t.Height),!(r.CatalogData.isIDMFormat?null!=u||null!=g:null!=u&&null!=g)){d.next=32;break}return p=this.getMinBorderSVG(l),v=r.CatalogData.isIDMFormat?a:"".concat(r.CatalogData.mediaUrl,"pln_").concat(a),D="",d.next=28,new Promise((function(t,o){var a;h=k.svgUtils.ccCheckStretchAreas(l,null!=u?u:0,null!==(a=g)&&void 0!==a?a:0,r.CatalogData.useGlobalSVGScale,p.svgMinXVal,p.svgMinYVal,(function(r){D=r,t()}),v,{width:null==u,depth:null==g})}));case 28:t.svgAfter=D,this.parseSvg(t,D,p,r.CatalogData.getPlannerConfig(),h),d.next=34;break;case 32:t.svgAfter=l,this.parseSvg(t,l,{svgMinXVal:0,svgMinYVal:0},r.CatalogData.getPlannerConfig());case 34:return d.abrupt("return",!0);case 35:case"end":return d.stop()}}),_callee,this)}))),function loadSVG(r,o){return t.apply(this,arguments)})},{key:"getSVGUrl",value:function getSVGUrl(t,r){var o=r+"pln_"+t,a=o.indexOf("/files/");return o=o.substring(a),"function=GetFileAsString&fileUrl="+encodeURIComponent(o)}}]);var t}())}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[8757],{98757:(t,r,o)=>{o.r(r),o.d(r,{default:()=>W});var a=o(84658),l=o(61965),i=o(13125),c=o(43860),u=o(80248),d=o(38946),g=o(50747),h=o.n(g),p=o(57312),m=o(2221),v=o(36428),P=o(95212),D=o(64357),k=o(65225),y=o(9770),I=o(58178),E=o(10743),b=o(16905),A=o(43048),x=o(60809),C=o(49795),S=o(62775);function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o);var a=0,l=function F(){};return{s:l,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},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,u=!1;return{s:function s(){o=o.call(t)},n:function n(){var t=o.next();return c=t.done,t},e:function e(t){u=!0,i=t},f:function f(){try{c||null==o.return||o.return()}finally{if(u)throw i}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var o=0,a=Array(r);o<r;o++)a[o]=t[o];return a}function ownKeys(t,r){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,a)}return o}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(o),!0).forEach((function(r){(0,u.Z)(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var B=m.ZP.initLog("Planner","WEB-PLANNER-LOGIC"),w=["AVO","AVU","AVC","AVS","AVN"];function movePose(t,r,o){var a=(0,A.Be)([new D.FM(t.center.x,t.center.z)],r,o),l=(0,d.Z)(a,1)[0];return{center:{x:l.x,z:l.y},rotDeg:t.rotDeg+o.rotDeg-r.rotDeg}}var O=1e-6,V=function toFloorRect(t,r){return{center:r.center,halfWidth:t.halfWidth,halfDepth:t.halfDepth,rotDeg:r.rotDeg}},T=function mainCodex(t){return t.IsAccessoire?"":t.ArticleCodex},N=function insidePose(t,r,o){return{center:(0,E.uU)(V(t,r),o),rotDeg:r.rotDeg}},W=function(){function DivaStandardPlanner(t,r,o,a,l,c){var d=this,g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){return[]},h=arguments.length>7?arguments[7]:void 0;(0,i.Z)(this,DivaStandardPlanner),this.getOtherCollisionSets=g,this.findCarrier=h,(0,u.Z)(this,"plannerID",void 0),(0,u.Z)(this,"set",void 0),(0,u.Z)(this,"plannerBoundingBox",void 0),(0,u.Z)(this,"plannerElements",void 0),(0,u.Z)(this,"doDisablePlanner2D",!1),(0,u.Z)(this,"plannerHasStaticBackground",void 0),(0,u.Z)(this,"isIDM3DCat",!1),(0,u.Z)(this,"IDM3DCatCodex",""),(0,u.Z)(this,"IDM3DEnvironment","diva.ro"),(0,u.Z)(this,"nextElementId",1),(0,u.Z)(this,"room",void 0),(0,u.Z)(this,"roomDrag",void 0),(0,u.Z)(this,"roomPlaced",new WeakSet),(0,u.Z)(this,"dragUnit",void 0),(0,u.Z)(this,"dragFollowers",new Set),(0,u.Z)(this,"dragSlots",void 0),(0,u.Z)(this,"collisionHandler",void 0),(0,u.Z)(this,"dockToAVUorAVOororAVNorAVSorAVC",(function(t,r){var o=function hasFreeDP(r){return t.getFreeDockingPointsByType(r).length>0};if(o("AVU")){var a=k.Z.tryDockElement(t,"AVU",r);if(a)return d.updateWorldPos(t,a),!0;for(var l=0;l<r.length;l++){var i=r[l].getCurrentAccessorires().map((function(t){return d.plannerElements.get(t.getElementId())}));if(d.dockToAVUorAVOororAVNorAVSorAVC(t,i))return!0}}if(o("AVO")){var c=k.Z.tryDockElement(t,"AVO",r);if(c)return d.updateWorldPos(t,c),!0}if(o("AVN")){var u=k.Z.tryDockElement(t,"AVN",r);if(u)return d.updateWorldPos(t,u),!0}if(o("AVS")){var g=k.Z.tryDockElement(t,"AVS",r);if(g)return d.updateWorldPos(t,g),!0}if(o("AVC")){var h=k.Z.tryDockElement(t,"AVC",r);if(h)return d.updateWorldPos(t,h),!0}return!1})),this.set=t,this.plannerID=o,this.plannerElements=new Map,this.plannerBoundingBox=new I.Z,this.plannerBoundingBox.initPlannerBBox(a),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=this,r=[],o=new Map,a=this;this.plannerElements.forEach((function(t,a){o.set(a,!0),t.IsDockedAccessoire||t.HasAVL&&t.dockingTypeIsDocking("AVL")||r.push(t)})),this.getCatalogData().dontSetPosNrFromPlanner||(r=r.sort((function(t,r){return t.WorldPosCenter.x-r.WorldPosCenter.x})));var i,c=function keptPosNr(t){return t.PosNr>0?t.PosNr:1/0},u=r.filter((function(t){return t.PosNrAtEnd})).sort((function(t,r){return c(t)-c(r)}));r=[].concat((0,l.Z)(r.filter((function(t){return!t.PosNrAtEnd}))),(0,l.Z)(u));for(var d=function updateAccessoiresOfElement(r,l){for(var c=[],u=function setPosNrForElementsOnDock(t,c){if(r["Has"+t]){var u=r.getDockingDockingPointsByType(t);u=u.sort((function(t,r){return a.plannerElements.get(t.OnElementId).WorldPosCorner.x-a.plannerElements.get(r.OnElementId).WorldPosCorner.x}));for(var d=0;d<u.length;d++){var g=u[d].OnElementId;if(o.has(g)){var h=a.plannerElements.get(g);h.PosNr=l,h.AccessoirePosNr=i,o.delete(g),i++,c.push(h)}}}},g=0;g<w.length;g++)u(w[g],c);t.plannerElements.forEach((function(t){t.getIsNotDockedAccessoire()&&t.getParentElementId()===r.getElementId()&&(t.PosNr=l,t.AccessoirePosNr=i,o.delete(t.getElementId()),i++,c.push(t))}));for(var h=0;h<c.length;h++)d(c[h],l)},g=function updatePosInChain(t,r){if(null==t)return r;if(t.PosNr=r,i=1,o.delete(t.ElementId),d(t,r),r++,t.HasAVR&&t.dockingTypeIsDocking("AVR")){var l=t.getDockingDockingPointsByType("AVR")[0].OnElementId;return g(a.plannerElements.get(l),r)}return r},h=1,p=0;p<r.length;p++)h=g(r[p],h)}},{key:"updateWorldPos",value:function updateWorldPos(t,r){var o=!1,a=this.plannerElements.get(r.OnElementId),l=a.getDockingPointById(r.OnDP.DpId);if(null==l)return o;this.applyDockTransform(t,a,r,l),o=this.set.onDockingChanged(t.ElementId,a.ElementId,"DOCK",r.Type);var i=this.set.getPlannerData(t.ElementId);t.updatePlannerData(i);var c=this.set.getPlannerData(a.ElementId);return a.updatePlannerData(c),o}},{key:"applyDockTransform",value:function applyDockTransform(t,r,o,a){var l=(0,v.eY)(r,a,t,o);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 o,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=this.plannerElements.get(t);return c?this.room&&(null===(o=this.roomDrag)||void 0===o?void 0:o.elementId)===t?this.roomDrag.rotating?this.getRoomTurnPreview(c,this.roomDrag):this.getRoomDragPreview(c,this.roomDrag):null!==(a=this.findDockSnap(c,r,[].concat((0,l.Z)(i),(0,l.Z)(this.dragFollowers))))&&void 0!==a?a:this.findSlotSnap(c):null}},{key:"findSlotSnap",value:function findSlotSnap(t){var r,o=(null===(r=this.dragSlots)||void 0===r?void 0:r.elementId)===t.ElementId?this.dragSlots:void 0,a=(0,C.Hv)(t).center,l=o&&Math.hypot(a.x-o.start.x,a.z-o.start.z)>O?o.places:[],i=(0,x.pb)(l,a,20);return i?{dx:i.center.x-a.x,dz:i.center.z-a.z,dRotDeg:(0,b.kh)(t.RotDeg,l[i.index].rotDeg)}:null}},{key:"getSlotSnapPose",value:function getSlotSnapPose(t){var r,o=(null===(r=this.dragSlots)||void 0===r?void 0:r.elementId)===t.elementId?this.dragSlots.places:[];if(0!==o.length){var a={center:{x:t.grabbedStart.x+t.dx,z:t.grabbedStart.z+t.dz},rotDeg:t.grabbedStartRotDeg},l=(0,x.pb)(o,a.center,20);if(l)return movePose({center:{x:t.start.center.x+t.dx,z:t.start.center.z+t.dz},rotDeg:t.start.rotDeg},a,{center:l.center,rotDeg:o[l.index].rotDeg})}}},{key:"findDragSlotPlaces",value:function findDragSlotPlaces(t,r){var o=this,a=t.IsAccessoire?[]:this.getPlacementTypes(t),i=(0,d.Z)(a,1)[0],c=this.getDockingGroupOf(t);if(!i||1!==c.filter((function(t){return!t.IsAccessoire})).length)return[];var u=this.getOtherCollisionSets(c.map((function(t){return t.ElementId}))),g=(0,b.rX)(this.getAllPlannerElements().filter((function(t){return!r.includes(t)}))).filter((function(t){return t.some((function(t){return!t.IsAccessoire}))})).map((function(t){return{rules:o.getCatalogData().placementOptions.rules,members:o.getSlotMembers(t)}})),h=u.flatMap((function(t){return(0,l.Z)(new Set(t.parts.map((function(t){return t.group})))).map((function(r){return{rules:t.rules,members:r}}))})),p=(0,b.Uq)(t,!1).body[0],m=(0,C.Hv)(t),v=function outline(t){return(0,A.Be)(p,m,{center:{x:0,z:0},rotDeg:t})},P=this.room?this.createRoomDrag(t.ElementId,!1,u):void 0;return[].concat((0,l.Z)(g),(0,l.Z)(h)).flatMap((function(t){var r=t.rules,o=t.members;return(0,x.cN)(r,o,i)})).flatMap((function(t){return(0,x.L$)(t,v)})).filter((function(r){return o.placeIsFree(t,c,r,u)})).map((function(t){return P?o.cutBandToRoom(P,t):t}))}},{key:"cutBandToRoom",value:function cutBandToRoom(t,r){var o=this,a={center:t.grabbedStart,rotDeg:t.grabbedStartRotDeg},l=function kept(l){var i={x:r.center.x+r.normal.x*l,z:r.center.z+r.normal.z*l};return!!o.getKeptPose(t,movePose(t.start,a,{center:i,rotDeg:r.rotDeg}),.01)},i=function cut(t){if(l(t))return t;for(var r=0,o=t,a=0;a<12;a++){var i=(r+o)/2;l(i)?r=i:o=i}return r};return _objectSpread(_objectSpread({},r),{},{band:[i(r.band[0]),i(r.band[1])]})}},{key:"placeIsFree",value:function placeIsFree(t,r,o,a){var l=r.map((function(t){return{member:t,center:t.WorldPosCenter,rotDeg:t.RotDeg}}));(0,b.Vj)(r,(0,C.Hv)(t),o);var i,c=this.createRoomDrag(t.ElementId,!1,a),u=!!c&&!!this.getKeptPose(c)&&!this.isBlocked(c,c.start),d=_createForOfIteratorHelper(l);try{for(d.s();!(i=d.n()).done;){var g=i.value,h=g.member,p=g.center,m=g.rotDeg;h.WorldPosCenter=p,h.RotDeg=m}}catch(t){d.e(t)}finally{d.f()}return u}},{key:"findDockSnap",value:function findDockSnap(t,r,o){var a,l=this.getAllPlannerElements().filter((function(r){return r!==t&&!o.includes(r.getElementId())})),i=k.Z.searchDockableElementsInArea(t,l,r);if(!i||0===i.size)return null;if(i.forEach((function(t){(null==a||t.distance<a.distance)&&(a=t)})),null==a)return null;var c=this.plannerElements.get(a.targetDP.ElementId);if(!c)return null;var u=t.RotDeg,d=t.WorldPosCenter,g=d.x,h=d.y,p=d.z;this.applyDockTransform(t,c,a.sourceDP,a.targetDP);var m=t.WorldPosCenter,v={dx:m.x-g,dz:m.z-p,dRotDeg:t.RotDeg-u};return t.RotDeg=u,t.WorldPosCenter=new D.P(g,h,p),v}},{key:"getPreviewMove",value:function getPreviewMove(t,r){var o,a=this.plannerElements.get(t);if(a&&r&&(!this.room||(null===(o=this.roomDrag)||void 0===o?void 0:o.elementId)!==t))return this.snapMove(a,r)}},{key:"snapMove",value:function snapMove(t,r){var o={x:t.WorldPosCenter.x,z:t.WorldPosCenter.z};return{from:{center:o,rotDeg:0},to:{center:{x:o.x+r.dx,z:o.z+r.dz},rotDeg:r.dRotDeg}}}},{key:"setRoom",value:function setRoom(t,r){var o=t&&r?this.getBlockedGroupKeys():new Set;if(this.room=t,this.roomDrag=void 0,!t||!r)return!0;var a=this.placeGroupsInRoom();return this.clearNewlyBlockedGroups(t,o),this.updatePlannerPosNr(),this.checkCollision(!1),this.updatePlannerBoundingBox(),a}},{key:"placeGroupsInRoom",value:function placeGroupsInRoom(t){var r,o=!0,a=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(a.s();!(r=a.n()).done;){var l=r.value;t&&!l.some((function(r){return t.includes(r)}))||(this.followsCarrier(l)||this.placeGroupInRoom(l)||(o=!1))}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"getBlockedGroupKeys",value:function getBlockedGroupKeys(){var t,r=new Set,o=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(o.s();!(t=o.n()).done;){var a=t.value,l=a.find((function(t){return!t.IsAccessoire}));if(l&&!this.followsCarrier(a)){var i=this.createRoomDrag(l.ElementId);i&&this.isBlocked(i,i.start)&&r.add(l.ElementId)}}}catch(t){o.e(t)}finally{o.f()}return r}},{key:"clearNewlyBlockedGroups",value:function clearNewlyBlockedGroups(t,r){var o,a=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(a.s();!(o=a.n()).done;){var l=o.value,i=l.find((function(t){return!t.IsAccessoire}));!i||r.has(i.ElementId)||this.followsCarrier(l)||this.moveClearOfObstacles(i.ElementId,t)}}catch(t){a.e(t)}finally{a.f()}}},{key:"placeAddedInRoom",value:function placeAddedInRoom(t,r){var o=this.room;if(o)if(this.placeGroupsInRoom(t)){if(r){var a,l=_createForOfIteratorHelper((0,b.rX)(this.getAllPlannerElements()));try{for(l.s();!(a=l.n()).done;){var i=a.value,c=i.find((function(r){return!r.IsAccessoire&&t.includes(r)}));c&&!this.followsCarrier(i)&&this.moveClearOfObstacles(c.ElementId,o)}}catch(t){l.e(t)}finally{l.f()}}}else this.updateRoomNoFitMsg(!0)}},{key:"updateRoomNoFitMsg",value:function updateRoomNoFitMsg(t){var r,o;null===(r=(o=this.collisionHandler).updatePlannerMsgContainer)||void 0===r||r.call(o,"ROOM_NO_FIT_MSG",t,"WARNING","ROOM_NO_FIT_MSG",!1)}},{key:"groupsFitInRoom",value:function groupsFitInRoom(){var t=this,r=this.room;return!r||(0,b.rX)(this.getAllPlannerElements()).every((function(o){if(o.every((function(t){return t.IsAccessoire})))return!0;if(!t.isWallBound(o))return t.followsCarrier(o)||t.fitsInside(o,r);var a=t.getWallBinding(o,r),l=a.groupBlock,i=a.pose;return!!i&&((0,b.OB)(i,l)||o.some((function(t){return!t.IsAccessoire&&!t.GeoExtent})))}))}},{key:"fitsInside",value:function fitsInside(t,r){var o=(0,b.VT)([].concat((0,l.Z)(t),(0,l.Z)(this.getFollowers(t))),this.getRoomFrame(t).RotDeg);return(0,E.eZ)(V(o.block,N(o.block,o,r)),r)}},{key:"placeGroupInRoom",value:function placeGroupInRoom(t,r){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.getFollowers(t);if(!this.room||t.every((function(t){return t.IsAccessoire})))return!0;if(t.forEach((function(t){return o.roomPlaced.add(t)})),this.isWallBound(t))return this.bindGroupToWalls(t,r,a);var i=this.getRoomFrame(t,r),c=[].concat((0,l.Z)(t),(0,l.Z)(a)),u=(0,b.VT)(c,i.RotDeg),d=N(u.block,u,this.room);return(0,b.Vj)(c,u,d),(0,E.eZ)(V(u.block,d),this.room)}},{key:"getRoomFrame",value:function getRoomFrame(t,r){var o;return r&&!r.IsAccessoire?r:null!==(o=t.find((function(t){return!t.IsAccessoire})))&&void 0!==o?o:t[0]}},{key:"bindGroupToWalls",value:function bindGroupToWalls(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!this.room||!t.length)return!1;var a=this.getWallBinding(t,this.room,r),i=a.groupBlock,c=a.pose;return!!c&&((0,b.Vj)([].concat((0,l.Z)(t),(0,l.Z)(o)),i,c),!0)}},{key:"getWallBinding",value:function getWallBinding(t,r,o){var a=this,l=function bindingIn(o){var l=a.getRoomBlock(t,o);return{groupBlock:l,pose:(0,E.PJ)(l.center,l.block,r)}},i=l(this.getRoomFrame(t,o));if(o&&!o.IsAccessoire)return i;var c=function standsOn(t){var r=t.groupBlock,o=t.pose;return!!o&&(0,b.OB)(o,r)};if(c(i))return i;var u,d=_createForOfIteratorHelper(t);try{for(d.s();!(u=d.n()).done;){var g=u.value;if(!g.IsAccessoire&&g.RotDeg!==i.groupBlock.rotDeg){var h=l(g);if(c(h))return h}}}catch(t){d.e(t)}finally{d.f()}return i}},{key:"setElementFootprints",value:function setElementFootprints(t){var r,o=this,a=[],l=_createForOfIteratorHelper(t);try{for(l.s();!(r=l.n()).done;){var i=r.value,c=i.elementId,u=i.minX,g=i.maxX,h=i.minZ,p=i.maxZ,m=i.top,v=this.plannerElements.get(c),P={minX:u,maxX:g,minZ:h,maxZ:p,top:m};!v||v.IsAccessoire||(0,b.wY)(v.GeoExtent,P)||(v.GeoExtent=P,this.roomPlaced.has(v)&&a.push(v))}}catch(t){l.e(t)}finally{l.f()}if(!this.room||0===a.length)return!1;var D=(0,b.rX)(this.getAllPlannerElements()).filter((function(t){return t.some((function(t){return a.includes(t)}))&&o.isWallBound(t)&&!o.followsCarrier(t)})),k=D.flat(),y=k.map((function(t){return[t.WorldPosCenter.x,t.WorldPosCenter.z,t.RotDeg]}));return D.forEach((function(t){return o.placeGroupInRoom(t)})),!!k.some((function(t,r){var o=(0,d.Z)(y[r],3),a=o[0],l=o[1],i=o[2];return t.WorldPosCenter.x!==a||t.WorldPosCenter.z!==l||t.RotDeg!==i}))&&(this.updatePlannerPosNr(),this.checkCollision(!1),this.updatePlannerBoundingBox(),!0)}},{key:"isElementWallBound",value:function isElementWallBound(t){var r=this.plannerElements.get(t);return!!this.room&&!!r&&this.isWallBound(this.getDockingGroupOf(r))}},{key:"getGroupWallMode",value:function getGroupWallMode(t){var r=this,o=this.getCatalogData(),a=t.flatMap((function(t){var a=r.getCarrierOf(t)?"":T(t);return a?[o.getCornerSide(a)?"forced":o.getWallMode(a)]:[]}));return a.includes("forced")?"forced":a.includes("snap")?"snap":"free"}},{key:"isWallBound",value:function isWallBound(t){return"forced"===this.getGroupWallMode(t)}},{key:"getRoomBlock",value:function getRoomBlock(t,r){var o,a=(0,b.VT)(t,r.RotDeg),l=this.getCatalogData(),i=_createForOfIteratorHelper(t);try{for(i.s();!(o=i.n()).done;){var c=o.value,u=T(c),d=u?l.getCornerSide(u):void 0;if(d){var g=(0,b.cu)(t,r.RotDeg,c,d);if(g)return _objectSpread(_objectSpread({},a),{},{block:_objectSpread(_objectSpread({},a.block),{},{cornerEnd:g})})}}}catch(t){i.e(t)}finally{i.f()}return a}},{key:"collides",value:function collides(t){var r=this;return t.some((function(t){var o=T(t);return!!o&&!r.hasNoCollision(o)}))}},{key:"hasNoCollision",value:function hasNoCollision(t){return!!t&&this.getCatalogData().hasNoCollision(t)}},{key:"getPlacementTypes",value:function getPlacementTypes(t){var r=t.ArticleCodex;return r&&this.getCatalogData().getPlacementType(r)||[]}},{key:"getSlotMembers",value:function getSlotMembers(t){var r=this;return t.filter((function(t){return!t.IsAccessoire})).map((function(t){return{types:r.getPlacementTypes(t),rotDeg:t.RotDeg,body:(0,b.Uq)(t,!1).body[0],basketId:t.getBasketId()}}))}},{key:"toCollisionShape",value:function toCollisionShape(t,r,o){return{elementId:t.ElementId,shape:(0,b.Uq)(t,o),types:this.getPlacementTypes(t),group:r,layer:Number(t.Layer)}}},{key:"getCollidingShapes",value:function getCollidingShapes(t,r){var o=this,a=this.getSlotMembers(t);return t.filter((function(t){return!o.hasNoCollision(t.ArticleCodex)})).map((function(t){return o.toCollisionShape(t,a,r)}))}},{key:"getObstacles",value:function getObstacles(t,r){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0;if(!this.collides(t))return[];var c=(0,b.rX)(this.getAllPlannerElements()).filter((function(t){return!t.some((function(t){return a.includes(t)}))&&o.collides(t)})),u=this.getCatalogData(),d=u.catalogCodex,g=(null!=i?i:this.getOtherCollisionSets(t.map((function(t){return t.ElementId})))).flatMap((function(t){return t.parts.map((function(r){var o=r.shape,a=r.types,l=r.group,i=r.elementId,c=r.layer;return{shape:o,types:a,group:l,elementId:i,layer:t.catalogCodex===d?c:void 0,setId:t.setId,rules:t.rules}}))})),h=(this.room?(0,E.Bv)(this.room):[]).map((function(t){var r=(0,E.q4)(t).map((function(t){return new D.FM(t.x,t.z)}));return{shape:{body:[r],free:[r]},types:[],group:[]}}));return[].concat((0,l.Z)(c.flatMap((function(t){return o.getCollidingShapes(t,r)}))),(0,l.Z)(g),(0,l.Z)(h))}},{key:"getDockingGroupOf",value:function getDockingGroupOf(t){var r;return null!==(r=(0,b.rX)(this.getAllPlannerElements()).find((function(r){return r.includes(t)})))&&void 0!==r?r:[t]}},{key:"getElementByBasketId",value:function getElementByBasketId(t){return this.getAllPlannerElements().find((function(r){return r.getBasketId()===t}))}},{key:"getCarrierOf",value:function getCarrierOf(t){var r=t.Placement;if(r)return this.findCarrier?this.findCarrier(r):this.getElementByBasketId(r.carrierBasketId)}},{key:"followsCarrier",value:function followsCarrier(t){var r=this,o=t.filter((function(t){return!t.IsAccessoire}));return o.length>0&&o.every((function(o){var a=r.getCarrierOf(o);return!!a&&!t.includes(a)}))}},{key:"getFollowers",value:function getFollowers(t){for(var r=this,o=new Set(t),a=[],i=t,c=0;c<C.rC&&i.length>0;c++){var u=this.getAllPlannerElements().filter((function(t){var a=!o.has(t)&&r.getCarrierOf(t);return!!a&&i.includes(a)})),d=(0,l.Z)(new Set(u.flatMap((function(t){return r.getDockingGroupOf(t)})))).filter((function(t){return!o.has(t)}));d.forEach((function(t){return o.add(t)})),a.push.apply(a,(0,l.Z)(d)),i=d}return a}},{key:"getDockingGroupIds",value:function getDockingGroupIds(t){var r=this.plannerElements.get(t);return r?this.getDockingGroupOf(r).map((function(t){return t.ElementId})):[]}},{key:"getGuestType",value:function getGuestType(t){var r=this.plannerElements.get(t);return r&&!r.IsAccessoire?this.getPlacementTypes(r)[0]:void 0}},{key:"getSlotCarriers",value:function getSlotCarriers(t){var r=this;return(0,b.rX)(this.getAllPlannerElements()).filter((function(r){return!r.some((function(r){return t.includes(r.ElementId)}))})).map((function(t){return r.getSlotMembers(t)})).filter((function(t){return t.length>0}))}},{key:"moveGuest",value:function moveGuest(t,r){var o=this.plannerElements.get(t);o&&(0,b.Vj)(this.getDockingGroupOf(o),(0,C.Hv)(o),r)}},{key:"refreshAfterGuestMoves",value:function refreshAfterGuestMoves(){this.updatePlannerPosNr(),this.checkCollision(!1),this.updatePlannerBoundingBox()}},{key:"isBodyBlockedAt",value:function isBodyBlockedAt(t,r,o){var a=this.plannerElements.get(t);if(!a)return!0;var l=this.getDockingGroupOf(a),i=l.map((function(t){return{member:t,center:t.WorldPosCenter,rotDeg:t.RotDeg}}));(0,b.Vj)(l,(0,C.Hv)(a),r);var c=this.createRoomDrag(t,!1,o);c&&(c.zonesBlock=!1);var u,d=!!c&&this.isBlocked(c,c.start),g=_createForOfIteratorHelper(i);try{for(g.s();!(u=g.n()).done;){var h=u.value,p=h.member,m=h.center,v=h.rotDeg;p.WorldPosCenter=m,p.RotDeg=v}}catch(t){g.e(t)}finally{g.f()}return d}},{key:"startRoomDrag",value:function startRoomDrag(t){this.roomDrag=void 0;var r=this.createRoomDrag(t);if(r){r.zonesBlock=!1;var o,a=this.movedShapes(r,r.start),l=_createForOfIteratorHelper(r.obstacles);try{var i=function _loop(){var t=o.value,l=a.map((function(o){var a;return(0,S.n5)(r.rules,o,null!==(a=t.rules)&&void 0!==a?a:r.rules,t)?0:(0,A.dX)(o.shape,t.shape)}));l.some((function(t){return t>0}))&&r.startOverlaps.set(t,l)};for(l.s();!(o=l.n()).done;)i()}catch(t){l.e(t)}finally{l.f()}this.roomDrag=r}}},{key:"createRoomDrag",value:function createRoomDrag(t){var r=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0,i=this.plannerElements.get(t);if(i){var c=this.getDockingGroupOf(i);if(!c.every((function(t){return t.IsAccessoire}))){var u=this.getFollowers(c),d=this.getGroupWallMode(c),g=this.getRoomFrame(c,i),h="forced"===d?this.getRoomBlock(c,g):(0,b.VT)([].concat((0,l.Z)(c),(0,l.Z)(u)),g.RotDeg),p=i.WorldPosCenter,m=(0,b.rX)(u).filter((function(t){return r.collides(t)})).flatMap((function(t){return r.getCollidingShapes(t,o)})),v=this.collides(c)?this.getCollidingShapes(c,o):[],P={elementId:t,members:c,followers:u,start:h,current:h,grabbedStart:{x:p.x,z:p.z},grabbedStartRotDeg:i.RotDeg,dx:0,dz:0,wallMode:d,shapes:this.collides(c)?[].concat((0,l.Z)(v),(0,l.Z)(m)):[],memberShapes:v.length,obstacles:this.getObstacles(c,o,[].concat((0,l.Z)(c),(0,l.Z)(u)),a),blockedBy:[],startOverlaps:new Map,rules:this.getCatalogData().placementOptions.rules,zonesBlock:!0,rotating:!1,slotSnapped:!1};return P}}}},{key:"moveClearOfObstacles",value:function moveClearOfObstacles(t,r){var o=this.createRoomDrag(t);if(o&&this.isBlocked(o,o.start)){var a=o.start,i=a.block,c=a.rotDeg,u=(a.center,r.footprint.map((function(t){return(0,d.Z)(t,1)[0]}))),g=r.footprint.map((function(t){return(0,d.Z)(t,2)[1]})),h=Math.hypot(Math.max.apply(Math,(0,l.Z)(u))-Math.min.apply(Math,(0,l.Z)(u)),Math.max.apply(Math,(0,l.Z)(g))-Math.min.apply(Math,(0,l.Z)(g))),p=this.nearestFreePose(o,o.start,(function poseAt(t){return"forced"===o.wallMode?(0,E.PJ)(t,i,r):N(i,{center:t,rotDeg:c},r)}),h);p&&(0,b.Vj)([].concat((0,l.Z)(o.members),(0,l.Z)(o.followers)),o.start,p)}}},{key:"nearestFreePose",value:function nearestFreePose(t,r,o,a){for(var l=r.center,i=10;i<=a;i+=10){for(var c=void 0,u=0;u<16;u++){var d,g=u/16*2*Math.PI,h=o({x:l.x+i*Math.cos(g),z:l.z+i*Math.sin(g)});if(h&&!this.isBlocked(t,h)){t.current=h;var p=null===(d=this.slideToContact(t,r))||void 0===d?void 0:d.pose,m=p&&o(p.center),v=p&&m&&Math.hypot(m.center.x-p.center.x,m.center.z-p.center.z)<.5?p:h,P=Math.hypot(v.center.x-l.x,v.center.z-l.z);(!c||P<c.distance-O)&&(c={pose:v,distance:P})}}if(c)return c.pose}}},{key:"placeAtSuggestedPlace",value:function placeAtSuggestedPlace(t,r){var o=this,a=t.IsAccessoire?[]:this.getPlacementTypes(t),i=(0,d.Z)(a,1)[0];if(!i)return!1;var c,u=this.getCatalogData().placementOptions.rules,g={center:{x:t.WorldPosCenter.x,z:t.WorldPosCenter.z},rotDeg:t.RotDeg},h=(0,b.Uq)(t,!1).body[0],p=function outline(t){return(0,A.Be)(h,g,{center:{x:0,z:0},rotDeg:t})},m=function lowestPosNr(t){return Math.min.apply(Math,(0,l.Z)(t.map((function(t){return t.PosNr}))))},v=(0,b.rX)(this.getAllPlannerElements().filter((function(r){return r!==t}))).filter((function(t){return r(t)&&t.some((function(t){return!t.IsAccessoire}))})).sort((function(t,r){return m(t)-m(r)})),P=v.length>0?this.getOtherCollisionSets():[],k=_createForOfIteratorHelper(v);try{for(k.s();!(c=k.n()).done;){var y,I=c.value,E=_createForOfIteratorHelper((0,x.cN)(u,this.getSlotMembers(I),i));try{for(E.s();!(y=E.n()).done;){var C=y.value;if((0,x.L$)(C,p).some((function(r){return o.fitsAt(t,r,P)})))return t.PosNrAtEnd=!0,this.attachToSlot(t,C),!0}}catch(t){E.e(t)}finally{E.f()}}}catch(t){k.e(t)}finally{k.f()}return t.WorldPosCenter=new D.P(g.center.x,t.WorldPosCenter.y,g.center.z),t.RotDeg=g.rotDeg,!1}},{key:"attachToSlot",value:function attachToSlot(t,r){var o,a=null===(o=(0,x.bt)(r,(0,C.Hv)(t).center))||void 0===o?void 0:o.basketId,l=a?this.getElementByBasketId(a):void 0;if(a&&l&&!(this.getGuestDepth(l)>=C.rC)){var i=(0,C.fT)((0,C.Hv)(l),(0,C.Hv)(t));t.Placement={carrierBasketId:a,slotId:r.id,offset:i}}}},{key:"getGuestDepth",value:function getGuestDepth(t){for(var r=0,o=this.getCarrierOf(t);o&&r<=C.rC;o=this.getCarrierOf(o))r++;return r}},{key:"fitsAt",value:function fitsAt(t,r,o){t.WorldPosCenter=new D.P(r.center.x,this.plannerBoundingBox.WorldPos.y,r.center.z),t.RotDeg=r.rotDeg;var a=this.createRoomDrag(t.ElementId,!1,o),l=a&&this.getKeptPose(a);return!(!a||!l)&&((0,b.Vj)(a.members,a.start,l),!this.isBlocked(a,l))}},{key:"getKeptPose",value:function getKeptPose(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.start,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=this.room;if(!a)return r;var l=t.start.block,i=r.center,c=r.rotDeg,u="forced"===t.wallMode?(0,E.PJ)(i,l,a):N(l,r,a);return!u||Math.hypot(u.center.x-i.x,u.center.z-i.z)>o||Math.abs((0,b.kh)(c,u.rotDeg))>.01?void 0:u}},{key:"movedShapes",value:function movedShapes(t,r){var o=new Map;return t.shapes.map((function(a){var l,i=null!==(l=o.get(a.group))&&void 0!==l?l:a.group.map((function(o){return(0,x.Az)(o,t.start,r)}));return o.set(a.group,i),_objectSpread(_objectSpread({},a),{},{shape:(0,A.my)(a.shape,t.start,r),group:i})}))}},{key:"overlapsAny",value:function overlapsAny(t,r,o){var a=o.startOverlaps.get(r),l=this.getCatalogData().checkCollisionForDifferentLayers;return t.some((function(t,i){var c;return!(void 0!==r.layer&&!(0,S.i6)(l,t.layer,r.layer))&&(a?(0,A.dX)(t.shape,r.shape)>a[i]+1e-6:(0,A.sS)(t.shape,r.shape,!o.zonesBlock)&&!(0,S.n5)(o.rules,t,null!==(c=r.rules)&&void 0!==c?c:o.rules,r))}))}},{key:"isBlocked",value:function isBlocked(t,r){var o=this,a=this.movedShapes(t,r);return t.obstacles.some((function(r){return o.overlapsAny(a,r,t)}))}},{key:"blockersAt",value:function blockersAt(t,r){var o=this,a=this.movedShapes(t,r);return t.obstacles.filter((function(r){return o.overlapsAny(a,r,t)}))}},{key:"slideToContact",value:function slideToContact(t,r){if(!(Math.abs((0,b.kh)(t.current.rotDeg,r.rotDeg))>.01)){for(var o=t.current.center,a=function at(t){return{center:{x:o.x+(r.center.x-o.x)*t,z:o.z+(r.center.z-o.z)*t},rotDeg:r.rotDeg}},l=Math.max(1,Math.ceil(Math.hypot(r.center.x-o.x,r.center.z-o.z)/2)),i=0,c=1;c<=l;c++){var u=c/l;if(this.isBlocked(t,a(u))){for(var d=0;d<12;d++){var g=(i+u)/2;this.isBlocked(t,a(g))?u=g:i=g}return{pose:i>0?a(i):void 0,blockers:this.blockersAt(t,a(u))}}i=u}return{pose:r,blockers:[]}}}},{key:"updateRoomDrag",value:function updateRoomDrag(t,r,o,a){r.dx+=o.x,r.dz+=o.z;var i=r.start,c=i.block,u=i.rotDeg,d={x:r.start.center.x+r.dx,z:r.start.center.z+r.dz},g=Math.hypot(r.dx,r.dz)<=O,h=g?void 0:this.getSlotSnapPose(r),p=g||h||"free"===r.wallMode?null:(0,E.PJ)(d,c,t),m=!!p&&Math.hypot(p.center.x-d.x,p.center.z-d.z)<=30,v={center:r.start.center,rotDeg:u},P=g?v:null!=h?h:p&&("forced"===r.wallMode||m)?p:N(c,{center:d,rotDeg:u},t),D=[].concat((0,l.Z)(r.members),(0,l.Z)(r.followers));(0,b.Vj)(D,r.current,P);var k=0===a?0:Math.max(a,20),y=g||h?void 0:this.getDockSnapPose(r,P,k),I=null!=y?y:P;if((0,b.Vj)(D,P,I),r.blockedBy=y?[]:this.blockersAt(r,I),r.current=I,r.slotSnapped=!!h,0!==r.startOverlaps.size){var x=this.movedShapes(r,I);r.startOverlaps.forEach((function(t,o){return r.startOverlaps.set(o,t.map((function(t,r){return Math.min(t,(0,A.dX)(x[r].shape,o.shape))})))}))}}},{key:"getDockSnapPose",value:function getDockSnapPose(t,r,o){var a=this.plannerElements.get(t.elementId),i=[].concat((0,l.Z)(t.members),(0,l.Z)(t.followers)),c=i.map((function(t){return t.ElementId})),u=a&&this.findDockSnap(a,o,c);if(a&&u){var d=this.snapMove(a,u),g=movePose(r,d.from,d.to);if(this.getKeptPose(t,g)){(0,b.Vj)(i,r,g);var h=this.getAllPlannerElements().filter((function(t){return!c.includes(t.ElementId)})),p=new Set(i.flatMap((function(t){return(0,l.Z)(k.Z.searchDockableElementsInArea(t,h,.1).values()).map((function(t){return t.targetDP.ElementId}))})));(0,b.Vj)(i,g,r);return this.blockersAt(t,g).every((function docksTo(t){return void 0===t.setId&&void 0!==t.elementId&&p.has(t.elementId)}))?g:void 0}}}},{key:"snapToDock",value:function snapToDock(t,r,o,a){var l,i=r.map((function(t){return t.ElementId})),c=null!==(l=this.findDockSnap(t,o,i))&&void 0!==l?l:a?this.findSlotSnap(t):null;if(c){var u=this.snapMove(t,c);(0,b.Vj)(r,u.from,u.to)}}},{key:"startDragUnit",value:function startDragUnit(t,r){var o,a,i=this.plannerElements.get(t),c=null!==(o=null==r?void 0:r.followers)&&void 0!==o?o:i?this.getFollowers(this.getDockingGroupOf(i)):[];this.dragFollowers=new Set(c.map((function(t){return t.ElementId}))),this.dragUnit=new Set([t].concat((0,l.Z)(null!==(a=null==r?void 0:r.members.map((function(t){return t.ElementId})))&&void 0!==a?a:[]),(0,l.Z)(this.dragFollowers)));var u=i?[].concat((0,l.Z)(this.getDockingGroupOf(i)),(0,l.Z)(c)):[];this.dragSlots=i?{elementId:t,start:(0,C.Hv)(i).center,places:this.findDragSlotPlaces(i,u)}:void 0}},{key:"getRoomDragPreview",value:function getRoomDragPreview(t,r){var o=t.WorldPosCenter,a={dx:o.x-(r.grabbedStart.x+r.dx),dz:o.z-(r.grabbedStart.z+r.dz),dRotDeg:(0,b.kh)(r.start.rotDeg,t.RotDeg)};return this.withDragBlock(a,r)}},{key:"getRoomTurnPreview",value:function getRoomTurnPreview(t,r){var o=_objectSpread(_objectSpread({},r),{},{shapes:r.shapes.slice(0,r.memberShapes)});return r.blockedBy=this.blockersAt(o,this.getTurnedPose(t,r)),this.withDragBlock({dx:0,dz:0,dRotDeg:0},r)}},{key:"findTurnPlace",value:function findTurnPlace(t,r,o){var a=this.getTurnedPose(t,r),l=r.start.block,i=_objectSpread(_objectSpread({},r),{},{shapes:r.shapes.slice(0,r.memberShapes),current:a});if(!this.isBlocked(i,a))return a;return this.nearestFreePose(i,a,(function poseAt(t){return N(l,{center:t,rotDeg:a.rotDeg},o)}),Math.max(100,2*Math.max(l.halfWidth,l.halfDepth)))}},{key:"getTurnedPose",value:function getTurnedPose(t,r){return movePose(r.start,{center:r.grabbedStart,rotDeg:r.grabbedStartRotDeg},(0,C.Hv)(t))}},{key:"withDragBlock",value:function withDragBlock(t,r){if(0===r.blockedBy.length)return t;var o,a=this.set.getSetId(),l=[],i=_createForOfIteratorHelper(r.blockedBy);try{var c=function _loop2(){var t=o.value,r=t.setId,i=void 0===r?a:r,c=t.elementId;void 0===c||l.some((function(t){return t.setId===i&&t.elementId===c}))||l.push({setId:i,elementId:c})};for(i.s();!(o=i.n()).done;)c()}catch(t){i.e(t)}finally{i.f()}return _objectSpread(_objectSpread({},t),{},{blockedBy:{elements:l,door:r.blockedBy.some((function(t){return void 0===t.elementId}))}})}},{key:"updateAllElementsWorldPos",value:function updateAllElementsWorldPos(t,r){if(this.doDisablePlanner2D)return!1;var o=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"))},a=!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=[],u=0,d=0;d<l.length;d++)if(l[d]){var g=l[d];if(c.push(g.ElementId),d>u)for(var h=o(g),p=0;p<h.length;p++)if(c.indexOf(h[p].OnElementId)>=0){a=this.updateWorldPos(g,h[p]);break}}else u=d;if(r&&r.length>0)for(var m=new Set(r),v=!0;v;){v=!1;var P,D=_createForOfIteratorHelper(l);try{for(D.s();!(P=D.n()).done;){var k=P.value;if(k&&!m.has(k.ElementId)){var y=o(k).find((function(t){return m.has(t.OnElementId)}));y&&(a=this.updateWorldPos(k,y)||a,m.add(k.ElementId),v=!0)}}}catch(t){D.e(t)}finally{D.f()}}return this.checkCollision(!1,t),a}},{key:"addElementToWorld",value:(_=(0,a.Z)(h().mark((function _callee(t,r,o,a){var l,i,c,u,d,g,m,v,P,y,I,E,b,A,x,C,S,B,w,O,V,T=this,N=arguments;return h().wrap((function _callee$(h){for(;;)switch(h.prev=h.next){case 0:if(l=N.length>4&&void 0!==N[4]?N[4]:100,i=N.length>5?N[5]:void 0,c=!1,!i||!i.forceSetToTrans){h.next=13;break}u=i.transform,d=u.worldPosCenter,g=u.height,m=p.Z.standsOnFloor(d.y,g),t.WorldPosCenter=m&&Number.isFinite(t.Height)?new D.P(d.x,t.Height/2,d.z):d,t.RotDeg=i.transform.rotDeg,t.PosNrAtEnd=!!i.transform.posNrAtEnd,t.Placement=i.transform.placement,this.set.onDockingChanged(t.ElementId,-1,"NOT_DOCKED"),h.next=52;break;case 13:if(v=!1,!r){h.next=51;break}P=0;case 16:if(!(P<r.length)){h.next=51;break}if(y=r[P].targetElemIdToDock,I=r[P].targetDockingPointId,!(y&&y>-1&&this.plannerElements.has(y))){h.next=48;break}if(!I||""==I){h.next=37;break}if(!(E=this.plannerElements.get(y))){h.next=35;break}if(!(b=E.getDockingPointById(I))){h.next=35;break}if(!(A=k.Z.tryDockElementToDP(t,E,b))){h.next=31;break}this.updateWorldPos(t,A),v=!0,h.next=35;break;case 31:return h.next=33,this.tryToDockWithDifferentSVGWithFormula(t,y);case 33:if(!h.sent){h.next=35;break}v=!0;case 35:h.next=48;break;case 37:if(x=!1,(t.HasAVL||t.HasAVR)&&(x=this.dockToAVLorAVR(t,[this.plannerElements.get(y)])),x||(x=this.dockToAVUorAVOororAVNorAVSorAVC(t,[this.plannerElements.get(y)])),x){h.next=47;break}return h.next=43,this.tryToDockWithDifferentSVGWithFormula(t,y);case 43:if(x=h.sent){h.next=47;break}return l=50,h.abrupt("break",51);case 47:x&&(v=!0);case 48:P++,h.next=16;break;case 51:v||(C=null==r?void 0:r.map((function(t){return t.targetElemIdToDock})).find((function(t){return null!=t&&T.plannerElements.has(t)})),S=function atSelected(t){return void 0===C||t.some((function(t){return t.ElementId===C}))},w=(B=null==a)&&this.placeAtSuggestedPlace(t,S),O=!1,w||(V=this.getAllPlannerElements(),O=this.dockToAVLorAVR(t,V),o&&(O=!1),O||(O=this.dockToAVUorAVOororAVNorAVSorAVC(t,V),o&&(O=!1)),!O&&B&&void 0!==C&&(w=this.placeAtSuggestedPlace(t,(function(t){return!S(t)})))),O||(B&&!w&&(c=!0,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 52:this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.updatePlannerPosNr(),t.IsAccessoire||this.placeAddedInRoom([t],c),this.checkCollision(!1,t.getElementId()),this.updatePlannerBoundingBox();case 58:case"end":return h.stop()}}),_callee,this)}))),function addElementToWorld(t,r,o,a){return _.apply(this,arguments)})},{key:"tryToDockWithDifferentSVGWithFormula",value:(Z=(0,a.Z)(h().mark((function _callee2(t,r){var o,a,l,i,c,u,d,g,p,v,P,D,k;return h().wrap((function _callee2$(h){for(;;)switch(h.prev=h.next){case 0:if(o=!1,a=this.set.getArticleByElementId(t.ElementId),l=null==a?void 0:a.VariantValues,i=t.getSVGsWithFormula(),!t.FilterAVL.length&&!t.FilterAVR.length){h.next=52;break}if(null==i||!i.length){h.next=18;break}c=0;case 7:if(!(c<i.length)){h.next=18;break}return u=m.ZP.getVariantValuesFromRule(i[c].JsFormula,{}),h.next=11,this.applyVariantValuesAndTryDock(t,r,u);case 11:if(!(o=h.sent)){h.next=15;break}return B.debug("svgWithFormula nr: "+c+" did dock: "+i[c].SVG),h.abrupt("break",18);case 15:c++,h.next=7;break;case 18:if(o||!a){h.next=31;break}d=this.getVariantValuesMatchingTargetFilters(a,this.plannerElements.get(r)),g=0;case 21:if(!(g<d.length&&g<20)){h.next=31;break}return h.next=24,this.applyVariantValuesAndTryDock(t,r,d[g]);case 24:if(!(o=h.sent)){h.next=28;break}return B.debug("following variantValues matching the target avl/avr filter did dock: ",d[g]),h.abrupt("break",31);case 28:g++,h.next=21;break;case 31:if(null==(p=t.getVaraintValuesInfluencingAVLAVRFilter())||!p.length||o){h.next=44;break}v=0;case 34:if(!(v<p.length&&v<20)){h.next=44;break}return h.next=37,this.applyVariantValuesAndTryDock(t,r,p[v]);case 37:if(!(o=h.sent)){h.next=41;break}return B.debug("following variantValues did dock: ",p[v]),h.abrupt("break",44);case 41:v++,h.next=34;break;case 44:if(o){h.next=52;break}for(k in P=new Map,D=new Map,l)D.set(k,l[k]);return P.set(t.ElementId,D),h.next=51,this.set.updateCfgValuesByPlanner(P,!0);case 51:a&&this.commitPendingConnectorFilters(a);case 52:return h.abrupt("return",o);case 53:case"end":return h.stop()}}),_callee2,this)}))),function tryToDockWithDifferentSVGWithFormula(t,r){return Z.apply(this,arguments)})},{key:"applyVariantValuesAndTryDock",value:(M=(0,a.Z)(h().mark((function _callee3(t,r,o){var a,l,i,c;return h().wrap((function _callee3$(u){for(;;)switch(u.prev=u.next){case 0:for(i in a=new Map,l=new Map,o)l.set(i,o[i]);return a.set(t.ElementId,l),u.next=6,this.set.updateCfgValuesByPlanner(a,!0);case 6:return(c=this.set.getArticleByElementId(t.ElementId))&&this.commitPendingConnectorFilters(c),u.abrupt("return",this.dockToAVLorAVR(t,[this.plannerElements.get(r)]));case 9:case"end":return u.stop()}}),_callee3,this)}))),function applyVariantValuesAndTryDock(t,r,o){return M.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 o=t.CatalogData.isIDMFormat?"":"OPT",a=t.CatalogData.isIDMFormat?"":"OPV",l=[],i=new Set,c=function collect(r,c){var u,d=_createForOfIteratorHelper(c);try{for(d.s();!(u=d.n()).done;){var g,h=u.value,p=_createForOfIteratorHelper(t.getVariantValuesInfluencingOptions([o+r],a+h));try{for(p.s();!(g=p.n()).done;){var m=g.value,v=JSON.stringify(m);i.has(v)||(i.add(v),l.push(m))}}catch(t){p.e(t)}finally{p.f()}}}catch(t){d.e(t)}finally{d.f()}};return c("89",r.FilterAVR),c("90",r.FilterAVL),l}},{key:"dockToAVLorAVR",value:function dockToAVLorAVR(t,r){var o=!1,a=!1;if(t.HasAVL){var l=k.Z.tryDockElement(t,"AVL",r);l&&(this.updateWorldPos(t,l),o=!0)}if(!o&&t.HasAVR){var i=k.Z.tryDockElement(t,"AVR",r);i&&(a=!0,this.updateWorldPos(t,i))}return o||a}},{key:"getAllViewPlannerElements",value:function getAllViewPlannerElements(){return this.getAllPlannerElements()}},{key:"getFreeDockingPointsByElementId",value:function getFreeDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return{dockingPoints:[],filter:[]};var o=this.plannerElements.get(t),a=o.getFreeDockingPointsByType(r),l=[];switch(r){case"AVR":l=o.getFilterAVR();break;case"AVL":l=o.getFilterAVL()}return{dockingPoints:a,filter:l}}},{key:"getDockedDockingPointsByElementId",value:function getDockedDockingPointsByElementId(t,r){if(!this.plannerElements.has(t))return[];for(var o=this.plannerElements.get(t),a=[],l=0;l<r.length;l++)a=a.concat(o.getDockingDockingPointsByType(r[l]));return a}},{key:"getNeighborElements",value:function getNeighborElements(t,r){if(!this.plannerElements.has(t))return[];var o=this.plannerElements.get(t),a=null==o?void 0:o.getDockingDockingPointsByType(r);if(!a)return[];for(var l=[],i=0;i<(null==a?void 0:a.length);i++)null!=a[i]&&l.push(a[i].OnElementId);return l}},{key:"getDockedGroups",value:function getDockedGroups(){for(var t=[],r=this.getAllPlannerElements(),o=[],a=0;a<this.getAllPlannerElements().length;a++){var l=r[a];if(o.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 u=[],d=function removeFromElementsToAdd(t){var r=o.indexOf(t);r>=0&&o.splice(r,1)};for(a=0;a<t.length;a++){var g=t[a],h=[];d(g.getElementId());for(var p=!1,m=g;!p;){h.push(m.getElementId()),d(m.getElementId());var v=this.getAccessoiresRecursive(m.getElementId());for(c=0;c<v.length;c++)h.push(v[c]),d(v[c]);var P=this.getNeighborElements(m.getElementId(),"AVR");P&&0!=P.length?m=this.plannerElements.get(P[0]):p=!0}u.push(h)}for(a=0;a<o.length;a++)u.push([o[a]]);return u}},{key:"getAccessoiresRecursive",value:function getAccessoiresRecursive(t){var r=this,o=function calcAccs(t,a,l){l.push(t);for(var i=r.getNeighborElements(t,"AVC"),c=r.getNeighborElements(t,"AVO"),u=r.getNeighborElements(t,"AVU"),d=r.getNeighborElements(t,"AVN"),g=r.getNeighborElements(t,"AVS"),h=i.concat(c).concat(u).concat(d).concat(g),p=0;p<h.length;p++)l.indexOf(h[p])>=0||(a.push(h[p]),l.push(h[p]),o(h[p],a,l))},a=[];return o(t,a,[]),a}},{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:(R=(0,a.Z)(h().mark((function _callee4(){var t,r,o,a,l,i;return h().wrap((function _callee4$(c){for(;;)switch(c.prev=c.next){case 0:t=this.getAllPlannerElements(),r=[],o=0;case 3:if(!(o<t.length)){c.next=14;break}if(!(a=t[o]).updatePlannerData(this.set.getPlannerData(a.getElementId()))){c.next=11;break}return r.push(a.ElementId),a.keepOnFloorOnHeightChange(),c.next=11,P.Z.loadSVG(a,this.set);case 11:o++,c.next=3;break;case 14:if(l=[],r.length){for(B.debug("Configuration changed one plannerElement. UpdateDockingRelations","DivaStandardPlanner - updatePlanner"),i=k.Z.updateDockingRelations(this.plannerElements),o=0;o<i.length;o++)i[o].IsDockedAccessoire&&l.push(i[o].ElementId);this.updateAllElementsWorldPos(void 0,r),this.room&&(this.placeGroupsInRoom(),this.checkCollision(!1)),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}return c.abrupt("return",{doDeleteBackGrid:!1,elemIdsToDelete:l,elementIdsToUpdateSelection:r,failed:!1});case 17:case"end":return c.stop()}}),_callee4,this)}))),function updatePlanner(){return R.apply(this,arguments)})},{key:"extendPlanner",value:(W=(0,a.Z)(h().mark((function _callee5(t,r){var o,a,i,c,u,d,g,v,I,E,b,A,x,S,w,O,V,T,N,W,R,M;return h().wrap((function _callee5$(h){for(;;)switch(h.prev=h.next){case 0:if(o=(0,y.QV)(t),!(0,y.Nf)(o)){h.next=42;break}a=o.set.elements,i=[],c=[],u=new Map,d=0;case 7:if(!(d<a.length)){h.next=37;break}if(h.prev=8,b=a[d],(null!==(g=null===(v=this.set.getArticleByBasketId(b.basketID))||void 0===v?void 0:v.catalogArticle)&&void 0!==g?g:this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(I=(0,y.oK)(b))&&void 0!==I?I:""))||null===(E=b.AccessoireInitParams)||void 0===E||!E.RelatedToBasketID||this.set.getSetState.onlyRunLogic){h.next=14;break}return B.error(new m.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),h.abrupt("continue",34);case 14:if(A=new p.Z(this.set.getSetId(),b.basketID,this.nextElementId,DivaStandardPlanner.plannerType),u.set(b.elementID,A),this.nextElementId=A.getElementId()+1,this.plannerElements.set(A.ElementId,A),this.set.setElementId(b.basketID,A.ElementId),x=this.set.getPlannerData(A.ElementId),A.updatePlannerData(x),this.doDisablePlanner2D){h.next=24;break}return h.next=24,P.Z.loadSVG(A,this.set);case 24:A.WorldPosCenter=new D.P(r.WorldPos.x+r.Size.x+b.x+100,r.WorldPos.y+b.y,r.WorldPos.z+b.z),A.RotDeg=b.rot,A.PosNrAtEnd=!!b.posNrAtEnd,A.Placement=(0,C.Fs)(b.placement),A.IsDockedAccessoire?(c.push(b),A.PosNr=b.posNr,null!=b.accNr&&(A.AccessoirePosNr=b.accNr)):(i[b.posNr-1]=b,A.PosNr=b.posNr),h.next=34;break;case 31:h.prev=31,h.t0=h.catch(8),B.error(new m.GE("Error initializing element nr "+d+" in the Standard Web Planner. PlanData V2",{cause:h.t0,code:"WC_0012"}));case 34:d++,h.next=7;break;case 37:for(S=[].concat((0,l.Z)(i.filter((function(t){return null!=t}))),c),d=0;d<S.length;d++)if(w=S[d],O=u.get(w.elementID),S.length>1&&d>0)for(V=w.DP,T=0;T<V.length;T++)N=V[T],W=null==O?void 0:O.getDockingPointById(N.id),R=u.get(N.onID),M=null==R?void 0:R.getDockingPointById(N.onDPID),W&&M&&k.Z.tryDockElementDPToDP(O,R,W,M);this.placeAddedInRoom((0,l.Z)(u.values()),!0),h.next=43;break;case 42:B.error(new m.GE("The function extend Planner works only with products that are saved in the configurator 2.0",{code:"WC_0012"}));case 43:case"end":return h.stop()}}),_callee5,this,[[8,31]])}))),function extendPlanner(t,r){return W.apply(this,arguments)})},{key:"initPlanner",value:(g=(0,a.Z)(h().mark((function _callee6(t){var r,o,a,i,c,u,d,g,v,I,E,b,A,x,S,w,O,V,T,N,W,R,M,Z,_,G,z,L,H,U,j,X,K,Y,$,J,q,Q,ee,te,ne,re,oe,ae,le,ie,se,ce,ue,de,ge,he,fe,pe;return h().wrap((function _callee6$(h){for(;;)switch(h.prev=h.next){case 0:if(r=(0,y.QV)(t),!(0,y.Nf)(r)){h.next=65;break}if(B.debug("Initialize set Plan Data - V2\n"+r,"DivaStandardPlanner initPlanner"),null!==(o=r.set)&&void 0!==o&&null!==(o=o.elements)&&void 0!==o&&o.length){h.next=5;break}return h.abrupt("return");case 5:a=r.set.elements,i=[],c=[],u=0;case 9:if(!(u<a.length)){h.next=39;break}if(h.prev=10,E=a[u],(null!==(d=null===(g=this.set.getArticleByBasketId(E.basketID))||void 0===g?void 0:g.catalogArticle)&&void 0!==d?d:this.set.CatalogData.getCatalogArticleByArticleCodex(null!==(v=(0,y.oK)(E))&&void 0!==v?v:""))||null===(I=E.AccessoireInitParams)||void 0===I||!I.RelatedToBasketID||this.set.getSetState.onlyRunLogic){h.next=16;break}return B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{code:"WC_0012"})),h.abrupt("continue",36);case 16:if(b=E.elementID,A=new p.Z(this.set.getSetId(),E.basketID,b,DivaStandardPlanner.plannerType),this.nextElementId=b+1,this.plannerElements.set(A.ElementId,A),this.set.setElementId(E.basketID,A.ElementId),x=this.set.getPlannerData(A.ElementId),A.updatePlannerData(x),this.doDisablePlanner2D){h.next=26;break}return h.next=26,P.Z.loadSVG(A,this.set);case 26:A.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+E.x,this.plannerBoundingBox.WorldPos.y+E.y,this.plannerBoundingBox.WorldPos.z+E.z),A.RotDeg=E.rot,A.PosNrAtEnd=!!E.posNrAtEnd,A.Placement=(0,C.Fs)(E.placement),A.IsDockedAccessoire?(c.push(E),A.PosNr=E.posNr,null!=E.accNr&&(A.AccessoirePosNr=E.accNr)):(i[E.posNr-1]=E,A.PosNr=E.posNr),h.next=36;break;case 33:h.prev=33,h.t0=h.catch(10),B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V2",{cause:h.t0,code:"WC_0012"}));case 36:u++,h.next=9;break;case 39:S=1==i.filter(Boolean).length,w=[].concat((0,l.Z)(i.filter((function(t){return null!=t}))),c),u=0;case 42:if(!(u<w.length)){h.next=63;break}if(h.prev=43,O=w[u],0!=u||!S||!this.plannerHasStaticBackground){h.next=50;break}return null!=(null==(V=i[u])?void 0:V.x)||null!=(null==V?void 0:V.y)||null!=(null==V?void 0:V.z)||(T=this.plannerElements.get(O.elementID))&&(T.WorldPosCenter=new D.P(0,T.Height/2,T.Depth/2)),h.abrupt("continue",60);case 50:if(null!=O.DP&&0!=O.DP.length){h.next=52;break}return h.abrupt("continue",60);case 52:for(N=O.DP,W=0;W<N.length;W++)(R=N[W]).id&&null!=R.onID&&R.onDPID&&(M=this.plannerElements.get(O.elementID),Z=null==M?void 0:M.getDockingPointById(R.id),_=this.plannerElements.get(R.onID),G=null==_?void 0:_.getDockingPointById(R.onDPID),Z&&G?Z.IsDocking&&Z.OnDP==G||k.Z.tryDockElementDPToDP(M,_,Z,G)||this.doDisablePlanner2D||B.error(new m.GE("Saved docking relation rejected on init: "+R.id+" (elem "+(null==M?void 0:M.ElementId)+") -> "+R.onDPID+" (elem "+(null==_?void 0:_.ElementId)+")",{code:"WC_0012"})):this.doDisablePlanner2D||B.error(new m.GE("Error initializing docking point between source element with id: "+(null==M?void 0:M.ElementId)+" and target Element with id: "+(null==_?void 0:_.ElementId)+". SourceDPID: "+R.id+"; targetDPID: "+R.onDPID)));h.next=60;break;case 56:h.prev=56,h.t1=h.catch(43),L=null===(z=w[u])||void 0===z?void 0:z.elementID,B.error(new m.GE("Error initializing dockingPoints of element with elementID "+L,{cause:h.t1,code:"WC_0012"}));case 60:u++,h.next=42;break;case 63:h.next=118;break;case 65:if(B.debug("Initialize set Plan Data - old V1\n"+r,"DivaStandardPlanner initPlanner"),null!=(j=null===(H=r.Sets)||void 0===H?void 0:H[0])&&null!==(U=j.Elements)&&void 0!==U&&U.length){h.next=69;break}return h.abrupt("return");case 69:X=j.Elements,K=[],Y=[],u=0;case 73:if(!(u<X.length)){h.next=107;break}if(h.prev=74,q=X[u],this.set.CatalogData.getCatalogArticleByArticleCodex(null!==($=(0,y.oK)(q))&&void 0!==$?$:"")||null===(J=q.AccessoireInitParams)||void 0===J||!J.RelatedToBasketID||this.set.getSetState.onlyRunLogic){h.next=80;break}return B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner. PlanData V1",{code:"WC_0012"})),h.abrupt("continue",104);case 80:if(Q=q.BasketID,-1==this.set.getElementId(Q)&&this.set.setElementId(Q,Number(q.ID)),ee=this.set.getElementId(Q),q.elementId=ee,-1!=ee){h.next=87;break}return B.error(new m.GE("Error when initializing planner. The elementID Was not saved in the article. ",{code:"WC_0012"})),h.abrupt("continue",104);case 87:if(te=new p.Z(this.set.getSetId(),Q,ee,DivaStandardPlanner.plannerType),this.nextElementId=ee+1,this.plannerElements.set(te.ElementId,te),ne=this.set.getPlannerData(te.ElementId),te.updatePlannerData(ne),this.doDisablePlanner2D){h.next=95;break}return h.next=95,P.Z.loadSVG(te,this.set);case 95:re=new D.P(q.PosX,q.PosZ,q.PosY),te.WorldPosCenter=new D.P(this.plannerBoundingBox.WorldPos.x+re.x,this.plannerBoundingBox.WorldPos.y+re.y,this.plannerBoundingBox.WorldPos.z+re.z),te.RotDeg=q.Rot,te.IsDockedAccessoire?(Y.push(q),q.PosNum.toString().indexOf(".")>0&&(oe=q.PosNum.toString().split(".")[0],ae=q.PosNum.toString().split(".")[1],te.PosNr=Number(oe),te.AccessoirePosNr=Number(ae))):(K[q.PosNum-1]=q,te.PosNr=q.PosNum),h.next=104;break;case 101:h.prev=101,h.t2=h.catch(74),B.error(new m.GE("Error initializing element nr "+u+" in the Standard Web Planner - Plan Data old Planner",{cause:h.t2,code:"WC_0012"}));case 104:u++,h.next=73;break;case 107:le=[].concat((0,l.Z)(K.filter((function(t){return null!=t}))),Y),u=0;case 109:if(!(u<le.length)){h.next=118;break}if(null!=(ie=le[u]).DP&&0!=ie.DP.length){h.next=113;break}return h.abrupt("continue",115);case 113:for(se=ie.DP,W=0;W<se.length;W++)(ce=se[W]).DP&&""!=ce.DP&&ce.onID&&""!=ce.onID&&(de=parseInt(String(ce.onID)),ge=ce.DP,he=null!=ie.elementId?this.plannerElements.get(ie.elementId):void 0,fe=null!==(ue=this.plannerElements.get(de))&&void 0!==ue?ue:this.getPlannerElementByIndex(de-1),he&&fe?k.Z.initDockingPointRelationByArea(he,fe,ge):B.error(new m.GE("Error initializing dockingPoints of element with elementID "+ie.elementId,{code:"WC_0012"})));case 115:u++,h.next=109;break;case 118:this.plannerElements.forEach((function(t){!t.IsDockedAccessoire&&(null==pe||t.PosNr<pe.PosNr)&&(pe=t)})),this.updateAllElementsWorldPos(void 0,pe?[pe.ElementId]:void 0),this.updatePlannerPosNr();case 121:case"end":return h.stop()}}),_callee6,this,[[10,33],[43,56],[74,101]])}))),function initPlanner(t){return g.apply(this,arguments)})},{key:"getPlannerElementByIndex",value:function getPlannerElementByIndex(t){var r=void 0,o=0;return this.plannerElements.forEach((function(a,l){t==o&&(r=a),o++})),r}},{key:"addPlannerElement",value:(o=(0,a.Z)(h().mark((function _callee7(t,r){var o,a,l,i,c,u,d;return h().wrap((function _callee7$(g){for(;;)switch(g.prev=g.next){case 0:if(c=new p.Z(this.set.getSetId(),t,this.nextElementId,DivaStandardPlanner.plannerType),this.nextElementId++,this.plannerElements.set(c.ElementId,c),this.set.setElementId(t,c.ElementId),u=this.set.getPlannerData(c.ElementId),c.updatePlannerData(u),this.doDisablePlanner2D){g.next=9;break}return g.next=9,P.Z.loadSVG(c,this.set);case 9:if(null==(d=null!==(o=r.dockingPointInfos)&&void 0!==o?o:[{targetDockingPointId:r.targetDockingPointId,targetElemIdToDock:r.targetElemIdToDock}])||null===(a=d[0])||void 0===a||!a.targetElemIdToDock||null==d||null===(l=d[0])||void 0===l||!l.targetDockingPointId){g.next=15;break}return g.next=13,this.addElementToWorld(c,d);case 13:g.next=27;break;case 15:if(null==d||null===(i=d[0])||void 0===i||!i.targetElemIdToDock){g.next=20;break}return g.next=18,this.addElementToWorld(c,d);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 o.apply(this,arguments)})},{key:"movePlannerElement",value:function movePlannerElement(){throw Error("move planner not implemented in standard")}},{key:"copyPlannerElement",value:(r=(0,a.Z)(h().mark((function _callee8(t,r){var o,a,l,i,c,u;return h().wrap((function _callee8$(d){for(;;)switch(d.prev=d.next){case 0:o=0;case 1:if(!(o<t.length)){d.next=24;break}if(l=t[o],null!=r){d.next=7;break}return d.next=6,this.addPlannerElement(l.value,{});case 6:return d.abrupt("continue",21);case 7:if(-1==(i=null===(a=r.copyIndex)||void 0===a?void 0:a.x)||1==i){d.next=12;break}return d.next=11,this.addPlannerElement(l.value,{});case 11:return d.abrupt("continue",21);case 12:if(c=this.plannerElements.get(l.key),u=null==c?void 0:c.getFreeDockingPointsByType(-1==i?"AVL":"AVR").find((function(t){return!t.IsDisabled})),!c||!u){d.next=19;break}return d.next=17,this.addPlannerElement(l.value,{targetElemIdToDock:c.ElementId,targetDockingPointId:u.DpId});case 17:d.next=21;break;case 19:return d.next=21,this.addPlannerElement(l.value,{});case 21:o++,d.next=1;break;case 24:case"end":return d.stop()}}),_callee8,this)}))),function copyPlannerElement(t,o){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,a.Z)(h().mark((function _callee9(t,r){var o,a,l,i,c,u,d,g,p,v,P,D,y,I,E;return h().wrap((function _callee9$(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,m.ZP.Sleep(1);case 2:if(this.plannerElements.has(t)){h.next=4;break}return h.abrupt("return",{});case 4:return o=this.plannerElements.get(t),a=this.getParentElement(o),l=-1,i=999,c=-1,u=-1,d=!1,this.plannerElements.forEach((function(t,r){d||(null!=o&&o.IsAccessoire&&o.PosNr==t.PosNr&&(c=t.getElementId(),d=!0),t.getPosNr()<o.getPosNr()&&t.getPosNr()>l?(l=t.getPosNr(),c=t.getElementId()):t.getPosNr()>o.getPosNr()&&t.getPosNr()<i&&(i=t.getPosNr(),u=t.getElementId()))})),g=!1,r&&(p=o.getDockingDockingPointsByType("AVL"),v=o.getDockingDockingPointsByType("AVR"),p.length>0&&v.length>0&&(P=this.plannerElements.get(p[0].OnElementId),D=this.plannerElements.get(v[0].OnElementId),P&&D&&(y=P.getDockingDockingPointsByType("AVR"),I=D.getDockingDockingPointsByType("AVL"),y.length>0&&I.length>0&&(k.Z.removeDockingPointRelations(o),g=!0,k.Z.tryDockElementDPToDP(P,D,y[0],I[0]))))),E={rotDeg:o.getRotDeg(),worldPosCenter:o.WorldPosCenter,height:o.Height,posNrAtEnd:o.PosNrAtEnd,placement:o.Placement},g||k.Z.removeDockingPointRelations(o),this.plannerElements.delete(t),this.tryToDockForNotDockedAccessoire(a),this.updatePlannerPosNr(),this.updateAllElementsWorldPos(),this.room&&this.placeGroupsInRoom(),this.updatePlannerPosNr(),this.checkCollision(!1,o.getElementId()),this.updatePlannerBoundingBox(),h.abrupt("return",{newElementToSelect:c>=0?c:u>=0?u:void 0,transform:E});case 25:case"end":return h.stop()}}),_callee9,this)}))),function deletePlannerElement(r,o){return t.apply(this,arguments)})},{key:"tryToDockForNotDockedAccessoire",value:function tryToDockForNotDockedAccessoire(t){if(t)for(var r=t.getCurrentAccessorires().filter((function(t){return t.getIsNotDockedAccessoire()})),o=0;o<r.length;o++){var a=r[o].getElementId(),l=this.plannerElements.get(a);if(l)if(this.dockToAVUorAVOororAVNorAVSorAVC(l,[t]))break}}},{key:"checkCollision",value:function checkCollision(t,r){var o=this;if(!this.doDisablePlanner2D){for(var a,l,i,c=this.getAllPlannerElements(),u=new Set(c.filter((function(t){return o.hasNoCollision(t.ArticleCodex)})).map((function(t){return t.ElementId}))),d=function slottedOf(t){var r;return null!==(r=a)&&void 0!==r||(a=new Map((0,b.rX)(c).flatMap((function(t){return o.getCollidingShapes(t,!1)})).map((function(t){return[t.elementId,t]})))),a.get(t.ElementId)},g=function inSlotClear(t,r){var a=d(t),l=d(r),i=o.getCatalogData().placementOptions.rules;return!!a&&!!l&&(0,S.n5)(i,a,i,l)},h=!1,p=[],m=0;m<c.length;m++){var v=c[m];if(!r||v.getElementId()==r)for(var D=r?0:m+1;D<c.length;D++){var y,I,E=c[D];if(v.getElementId()!=E.getElementId()&&(!u.has(v.ElementId)&&!u.has(E.ElementId)&&!k.Z.checkElementsAreDocking(v,E))){var A=!1;if((this.set.CatalogData.doCheckConstructionWarnings||null!==(y=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==y&&y.includes(v.ArticleCodex)||null!==(I=this.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==I&&I.includes(E.ArticleCodex))&&(A=P.Z.checkCollision(v,E,this.set.CatalogData.checkCollisionForDifferentLayers))&&g(v,E)&&(A=!1),A&&(h=!0,p.push({elementId1:v.getElementId(),elementId2:E.getElementId()}),B.debug("Collision Found between element1: "+v.ElementId+"; and element2: "+E.ElementId),!t))break}}}if(this.collisionHandler.collisionDetected&&!h)null===(l=(i=this.collisionHandler).updatePlannerMsgContainer)||void 0===l||l.call(i,"COLLISION_MSG",!1,"WARNING","COLLISION_MSG",!1);else if(!this.collisionHandler.collisionDetected&&h){var x,C;null===(x=(C=this.collisionHandler).updatePlannerMsgContainer)||void 0===x||x.call(C,"COLLISION_MSG",!0,"WARNING","COLLISION_MSG",!1)}this.collisionHandler.collisionPairs=p,this.collisionHandler.collisionDetected=h}}},{key:"getCollisionSet",value:function getCollisionSet(){return this.toCollisionSet(this.doDisablePlanner2D?[]:(0,b.rX)(this.getAllPlannerElements()))}},{key:"toCollisionSet",value:function toCollisionSet(t){var r=this,o=this.getCatalogData(),a=t.filter((function(t){return r.collides(t)})).flatMap((function(t,a){var l=r.getSlotMembers(t);return t.filter((function(t){return!r.hasNoCollision(t.ArticleCodex)})).map((function(t){var i;return _objectSpread(_objectSpread({},r.toCollisionShape(t,l,!1)),{},{groupIndex:a,constructionChecked:o.doCheckConstructionWarnings||!(null===(i=o.forceConstructionWarningForArticles)||void 0===i||!i.includes(t.ArticleCodex))})}))}));return{setId:this.set.getSetId(),catalogCodex:o.catalogCodex,rules:o.placementOptions.rules,collidingLayers:o.checkCollisionForDifferentLayers,parts:a}}},{key:"updateSetPosNr",value:function updateSetPosNr(t){for(var r=this.getAllPlannerElements(),o=0;o<r.length;o++){var a=r[o];a.SetPosNr=t+a.PosNr-1,this.set.setPosNr(a.ElementId,a.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,o,a,i,c,u){var d,g=this,h=!1,p=this.room;p&&"START"==i&&this.startRoomDrag(t);var m=p?this.roomDrag:void 0;if("START"==i?this.startDragUnit(t,m):"UPDATE"==i&&(null===(d=this.dragUnit)||void 0===d||d.add(t)),"UPDATE"==i&&0!==o&&(this.dragSlots=void 0),m&&"forced"!==m.wallMode&&"UPDATE"==i&&0!==o&&(m.rotating=!0),p&&m&&!m.rotating&&"UPDATE"==i&&m.members.some((function(r){return r.ElementId==t})))return t==m.elementId&&this.updateRoomDrag(p,m,r,c),!1;if(this.plannerElements.has(t)){var v=this.plannerElements.get(t);if(null==v||v.updateDeltaTrans(r,o,a,"END"==i,u),"START"==i){if(v){var P=["AVR","AVL"];v.IsDockedAccessoire&&(P=P.concat(["AVO","AVU","AVN","AVS","AVC"]));for(var D=k.Z.removeDockingPointRelationsByType(v,P),y=0;y<D.length;y++)h=this.set.onDockingChanged(v.ElementId,D[y],"UNDOCK")}}else if("END"==i&&v){if((null==m?void 0:m.elementId)==t&&m.blockedBy.length>0){var I=m.rotating?this.getTurnedPose(v,m):m.current,E=m.rotating&&p&&this.findTurnPlace(v,m,p)||m.start;(0,b.Vj)([].concat((0,l.Z)(m.members),(0,l.Z)(m.followers)),I,E),m.current=E,m.blockedBy=[],m.slotSnapped=!1}var A=this.getAllPlannerElements().filter((function(t){var r;return t===v||(null===(r=g.dragUnit)||void 0===r?void 0:r.has(t.ElementId))})),x=A.filter((function(t){return g.dragFollowers.has(t.ElementId)})),C=A.filter((function(t){return!g.dragFollowers.has(t.ElementId)}));this.dragUnit=void 0,this.dragFollowers=new Set,(null==m?void 0:m.elementId)==t&&!m.slotSnapped&&("forced"===m.wallMode||m.rotating)&&this.placeGroupInRoom(C,v,x),this.snapToDock(v,A,c,!m),this.dragSlots=void 0;var S=k.Z.searchDockableElementsInArea(v,this.getAllPlannerElements(),c);null!=S&&S.size>0&&S.forEach((function(t,r){var o=g.plannerElements.get(t.targetDP.ElementId);o&&k.Z.tryDockElementDPToDP(v,o,t.sourceDP,t.targetDP)})),h=this.updateAllElementsWorldPos(t),(null==m?void 0:m.elementId)==t&&(m.slotSnapped||this.placeGroupInRoom(this.getDockingGroupOf(v),v),this.checkCollision(!1,t),this.roomDrag=void 0),this.updatePlannerPosNr(),this.updatePlannerBoundingBox()}}return h}},{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(o,a){for(var l=o.getDockingDockingPoints(),i=[],c=0;c<l.length;c++){var u,d={id:l[c].DpId,onID:l[c].OnElementId,onDPID:null===(u=l[c].OnDP)||void 0===u?void 0:u.DpId};i.push(d)}var g=_objectSpread(_objectSpread(_objectSpread({elementID:o.getElementId(),basketID:t.set.getBasketId(o.getElementId()),CatalogCodex:t.set.getCatalogCodex(),Codex:t.set.getArticleCodex(o.getElementId()),posNr:o.PosNr,accNr:o.IsDockedAccessoire?o.AccessoirePosNr:void 0},o.PosNrAtEnd?{posNrAtEnd:!0}:{}),o.Placement?{placement:o.Placement}:{}),{},{x:o.WorldPosCenter.x,y:o.WorldPosCenter.y,z:o.WorldPosCenter.z,rot:o.RotDeg,width:o.Width?o.Width:-1,height:o.Height?o.Height:-1,depth:o.Depth?o.Depth:-1,DP:i});if(o.IsAccessoire){var h=t.set.getParentBasketIdOfElementId(o.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,o,a){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),o&&(i.ShowDim=o),this.isIDM3DCat&&(i.IsIDM3D=!0,i.IDM3DCatCodex=this.IDM3DCatCodex,i.IDM3DEnvironment=this.IDM3DEnvironment),this.plannerElements.forEach((function(r,c){var u=l.set.getPlannerConfigData(c,a),d=u.config,g=[];if(u.accs&&u.accs.length>0)for(var h=0;h<u.accs.length;h++)l.plannerElements.has(u.accs[h])&&g.push("E"+u.accs[h]);if(!t||null!=d.Model){var p,v,P,D,k=l.set.getArticleByElementId(c),y={ID:"E"+c,Model:d.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:d.MAT,MOVE:null!==(p=d.MOVE)&&void 0!==p?p:void 0,CFG:d.CFG,H:"",ACCs:g.length>0?g:void 0};if(o)y.TechSize={Width:null==r.Width||isNaN(r.Width)?null!==(v=null==k?void 0:k.width)&&void 0!==v?v:0:r.Width,Height:null==r.Height||isNaN(r.Height)?null!==(P=null==k?void 0:k.height)&&void 0!==P?P:0:r.Height,Depth:null==r.Depth||isNaN(r.Depth)?null!==(D=null==k?void 0:k.depth)&&void 0!==D?D:0:r.Depth};var I=(0,m.FB)(JSON.stringify(y));y.H=I,i.ELE.push(y)}var E=l.set.getShelfPlannerData(c);if(E)for(var b=0;b<E.length;b++){var A=E[b],x=l.set.getShelfPlannerConfigData(A.basketId).config,C=[];if(x.accs&&x.accs.length>0)for(var S=0;S<x.accs.length;S++)l.plannerElements.has(x.accs[S])&&C.push("E"+x.accs[S]);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:x.MAT,CFG:x.CFG,ACCs:C.length>0?C:void 0};I=(0,m.FB)(JSON.stringify(B));B.H=I,i.ELE.push(B)}}));var u=(0,m.FB)(JSON.stringify(i));return i.H=u,{constructionSet:i}}},{key:"getElementPosInfo",value:function getElementPosInfo(){var t={};return this.plannerElements.forEach((function(r,o){r.IsDockedAccessoire?t[o]={pos:r.PosNr,isAcc:!0,accPos:r.AccessoirePosNr}:t[o]={pos:r.PosNr,isAcc:!1}})),t}},{key:"getPlanningIsComplete",value:function getPlanningIsComplete(t){var r=this,o=!t&&(this.set.CatalogData.doHideCompletenessWarning||!this.set.CatalogData.doCheckConstructionWarnings),a=!1;return this.plannerElements.forEach((function(t,l){var i;(!o||null!==(i=r.set.CatalogData.forceConstructionWarningForArticles)&&void 0!==i&&i.includes(t.ArticleCodex))&&!a&&(t.getFreeDockingPointsByType("AVL").length>0||t.getFreeDockingPointsByType("AVR").length>0)&&(a=!0)})),!a}},{key:"getPlannerBoundingBox",value:function getPlannerBoundingBox(){var t=this.set.CatalogData,r=this.plannerBoundingBox.getWidth(t.PlannerMeasureDigits),o=this.plannerBoundingBox.getDepth(t.PlannerMeasureDigits),a=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),u=l!==r||i!==o||c!==a;return{width:r,height:a,depth:o,widthIgnoreOLF:u?l:void 0,depthIgnoreOLF:u?i:void 0,heightIgnoreOLF:u?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,o){t.push(r)})),t}},{key:"getParentElement",value:function getParentElement(t){var r=void 0,o=t.getParentElementId();return o&&(r=this.plannerElements.get(o)),r}},{key:"getPositionOfPlannerElements",value:function getPositionOfPlannerElements(){var t=this.set.getSetId();this.plannerElements.forEach((function(r,o){B.log("SetID:",t),B.log("Elementid:",r.ElementId),B.log("X:",r.WorldPosCenter.x),B.log("Y:",r.WorldPosCenter.y),B.log("X:",r.WorldPosCenter.z),B.log("ROT:",r.RotDeg),B.log("___________________________")}))}},{key:"clonePlanner",value:function clonePlanner(t,r){return new DivaStandardPlanner(t,(function(){}),r,new I.Z,!0,!1)}},{key:"getPlannerInteractionInformation",value:function getPlannerInteractionInformation(){return B.error(new m.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 B.error(new m.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,o,g,W,R,M,Z,_}();(0,u.Z)(W,"plannerType","STD")},65225:(t,r,o)=>{o.d(r,{Z:()=>d});var a=o(13125),l=o(43860),i=o(89429),c=o(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,o){var a=_superPropBase(t,r);if(a){var l=Object.getOwnPropertyDescriptor(a,r);return l.get?l.get.call(arguments.length<3?t:o):l.value}},_get.apply(null,arguments)}var u=o(91870);function _callSuper(t,r,o){return r=(0,c.Z)(r),(0,i.Z)(t,_isNativeReflectConstruct()?Reflect.construct(r,o||[],(0,c.Z)(t).constructor):r.apply(t,o))}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t})()}const d=new(function(t){function DockingPointHandler(){return(0,a.Z)(this,DockingPointHandler),_callSuper(this,DockingPointHandler,arguments)}return(0,u.Z)(DockingPointHandler,t),(0,l.Z)(DockingPointHandler,[{key:"initDockingPointsFromSvg",value:function initDockingPointsFromSvg(t,r,o,a){var l="minX"in o?o:{minX:o.svgMinXVal,minY:o.svgMinYVal};!function _superPropGet(t,r,o,a){var l=_get((0,c.Z)(1&a?t.prototype:t),r,o);return 2&a&&"function"==typeof l?function(t){return l.apply(o,t)}:l}(DockingPointHandler,"initDockingPointsFromSvg",this,3)([t,r,l,a])}}])}(o(36428).pD))},95212:(t,r,o)=>{o.d(r,{Z:()=>D});var a=o(84658),l=o(13125),i=o(43860),c=o(80248),u=o(50747),d=o.n(u),g=o(58129),h=o(65225),p=o(64357),m=o(2221),v=o(36428),P=m.ZP.initLog("Planner","WEB-PLANNER-LOGIC");const D=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,o){if(m.ZP.startSpanOfApm("PlannerHandler2D checkCollision"),!(t.Layer==r.Layer||o.includes(Number(t.Layer))&&o.includes(Number(r.Layer))))return m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var a=t.getWorld2DBBoxOutline(),l=r.getWorld2DBBoxOutline();if((0,v.JU)(a,l)){if(!t.HasOLTPolygon&&!t.HasOLFPolygon)return P.error(new m.GE("checkCollision PlannerHandler2D - The element with id: "+t.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;if(!r.HasOLTPolygon&&!r.HasOLFPolygon)return P.error(new m.GE("checkCollision PlannerHandler2D - The element with id: "+r.getElementId()+" has no OLT AND no OLF",{code:"WC_0012"})),m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),!1;var i=t.HasOLFPolygon?t.getOLFPolygonWorldPos():t.getOLTPolygonWorldPos(),c=r.HasOLFPolygon?r.getOLFPolygonWorldPos():r.getOLTPolygonWorldPos();return m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,v.JU)(i,c)}return m.ZP.endSpanOfApm("PlannerHandler2D checkCollision"),(0,v.uA)(a,l)}},{key:"parseSvg",value:function parseSvg(t,r,o,a,l){var i,c;r=this.svgUtils.removeMaskFromSvg(r),h.Z.initDockingPointsFromSvg(t,this.svgUtils.getDPsInSVG(r),o,a);var u=this.svgUtils.getPointOfPoligonById(r,"OLT");null!=u&&u.length||P.warn("no olt fount in svg for element"+t.ArticleCodex+" with id "+t.getElementId()),t.OLTPolygon=u;var d=this.svgUtils.getPointOfPoligonById(r,"OLF"),g=(0,v.Qq)(r);if(null!=d&&d.length){var D,k,y=this.svgUtils.getBoundingBoxOfPoints(d),I=null!==(D=null==g?void 0:g.width)&&void 0!==D?D:y.width,E=null!==(k=null==g?void 0:g.height)&&void 0!==k?k:y.height;t.setupOLF(d,I,E)}else if(g){var b=[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(b,g.width,g.height)}else null!=l&&l.heightOLF,null!=l&&l.widthOLF?t.setupOLF(d,null==l?void 0:l.widthOLF,null==l?void 0:l.heightOLF):t.clearOLF();var A=(0,v.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 x=(0,v.O3)(r);t.DoSetWidthFromSVG&&null!=x&&x.width&&(t.WidthFromSVG=x.width/m.ZP.UnitRecalc),t.DoSetDepthFromSVG&&null!=x&&x.height&&(t.DepthFromSVG=x.height/m.ZP.UnitRecalc)}t.SvgData=r,t.cleanShapeOLF2D(),t.cleanShapeOLT2D()}},{key:"getMinBorderSVG",value:function getMinBorderSVG(t){var r=(0,v.dI)(t);return{svgMinXVal:r.minX,svgMinYVal:r.minY}}},{key:"loadSVG",value:(t=(0,a.Z)(d().mark((function _callee(t,r){var o,a,l,i,c,u,g,h,p,v,D,k=this;return d().wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(a=t.SvgFileName){d.next=3;break}return d.abrupt("return",!1);case 3:if(!r.CatalogData.isIDMFormat){d.next=9;break}return d.next=6,r.api.fetchData(a,{method:"GET",config:{},data:{}});case 6:l=d.sent,d.next=16;break;case 9:return d.next=11,r.api.getDataCache(this.getSVGUrl(a,r.CatalogData.mediaUrl),void 0,r.CatalogData.accountSessionGuid);case 11:if(!(c=d.sent).Error){d.next=14;break}throw new Error(c.Error);case 14:"success"==c.Result.toLowerCase()&&(i=c.Content),l=m.ZP.decodeBase64(i);case 16:if(l||P.error(new m.GE("Fehler beim laden des SVGs ",{code:"WC_0009",custom:{svgFile:a}})),t.svgBefore=l,u=t.DoSetWidthFromSVG?void 0:t.Width,null==(g=t.DoSetDepthFromSVG?void 0:t.Depth)&&null!=u&&(null!==(o=t.Height)&&void 0!==o?o:-1)>0&&(g=t.Height),!(r.CatalogData.isIDMFormat?null!=u||null!=g:null!=u&&null!=g)){d.next=32;break}return p=this.getMinBorderSVG(l),v=r.CatalogData.isIDMFormat?a:"".concat(r.CatalogData.mediaUrl,"pln_").concat(a),D="",d.next=28,new Promise((function(t,o){var a;h=k.svgUtils.ccCheckStretchAreas(l,null!=u?u:0,null!==(a=g)&&void 0!==a?a:0,r.CatalogData.useGlobalSVGScale,p.svgMinXVal,p.svgMinYVal,(function(r){D=r,t()}),v,{width:null==u,depth:null==g})}));case 28:t.svgAfter=D,this.parseSvg(t,D,p,r.CatalogData.getPlannerConfig(),h),d.next=34;break;case 32:t.svgAfter=l,this.parseSvg(t,l,{svgMinXVal:0,svgMinYVal:0},r.CatalogData.getPlannerConfig());case 34:return d.abrupt("return",!0);case 35:case"end":return d.stop()}}),_callee,this)}))),function loadSVG(r,o){return t.apply(this,arguments)})},{key:"getSVGUrl",value:function getSVGUrl(t,r){var o=r+"pln_"+t,a=o.indexOf("/files/");return o=o.substring(a),"function=GetFileAsString&fileUrl="+encodeURIComponent(o)}}]);var t}())}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 9874.diva-web-planner-react.umd.min.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[9874,2147,2400,4725,2018],{95414:(e,n,o)=>{o.r(n),o.d(n,{default:()=>m});var d=o(80248),t=o(38946),r=o(88291),i=o(9420),a=o(25327),l=o(87363),u=o(88683),c=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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 m=(0,i.Pi)((function TabSearch(e){var n=Object.assign({},((0,r.Z)(e),e)),o=(0,l.useState)(""),d=(0,t.Z)(o,2),i=d[0],m=d[1],s=(0,u.useTranslation)().t,x=(0,a.NP)();return(0,l.useEffect)((function(){var e=!!x.tabGroupState.filterTabgroup&&!i;x.tabGroupState.setFilterTabgroup(i&&""!==i?i:void 0),e&&setTimeout((function(){return x.tabGroupState.scrollToCurTabgroup()}),200)}),[i]),(0,l.useEffect)((function(){void 0===x.tabGroupState.filterTabgroup&&i&&m("")}),[x.tabGroupState.filterTabgroup]),(0,c.jsxs)("div",_objectSpread(_objectSpread({},n),{},{children:[(0,c.jsx)("input",{value:i,type:"text",onChange:function onChange(e){return m(e.target.value)},placeholder:s("filter.global")}),!!i&&(0,c.jsx)("div",{onClick:function onClick(){return m("")}})]}))}))},82147:(e,n,o)=>{o.r(n),o.d(n,{default:()=>c});var d=o(38946),t=o(61965),r=o(25327),i=o(87363),a=o(9420),l=o(2400),u=o(47514);const c=(0,a.Pi)((function TabGroupHorizontal(e){var n=(0,r.NP)();if((0,i.useEffect)((function(){n.tabGroupState.scrollToCurTabgroupHorizontal()}),[n.tabGroupState.curTabGroup]),!n.tabGroupState.allTabGroups)return(0,u.jsx)(u.Fragment,{});var o=(0,t.Z)(n.tabGroupState.allTabGroups);return(0,u.jsx)(u.Fragment,{children:o.map((function(e){var t,r,i=(0,d.Z)(e,2),a=i[0],c=i[1];return(0,u.jsx)(l.default,{tabGroup:c,width:"calc("+(null!==(t=null===(r=n.tabGroupState)||void 0===r||null===(r=r.tabGroupScroller)||void 0===r?void 0:r.getBoundingClientRect().width)&&void 0!==t?t:0)+"px / "+o.length+")"},a)}))})}))},2400:(e,n,o)=>{o.r(n),o.d(n,{default:()=>i});var d=o(80248),t=(o(87363),o(2765)),r=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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=function ItemVariant(e){return(0,r.jsx)(t.ZP,_objectSpread(_objectSpread({},e),{},{componentName:"TabGroup/TabGroupHorizontal/item"}))}},34725:(e,n,o)=>{o.r(n),o.d(n,{default:()=>i});var d=o(80248),t=(o(87363),o(2765)),r=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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=function ItemVariant(e){return(0,r.jsx)(t.ZP,_objectSpread(_objectSpread({},e),{},{componentName:"TabGroup/TabGroupVertical/ItemVariants"}))}},62018:(e,n,o)=>{o.r(n),o.d(n,{default:()=>c});var d=o(61965),t=o(38946),r=o(25327),i=o(87363),a=o(34725),l=o(9420),u=o(47514);const c=(0,l.Pi)((function TabGroupVertical(e){var n,o=(0,r.NP)(),l=(0,i.useState)(!1),c=(0,t.Z)(l,2),m=c[0],s=c[1],x=o.tabGroupState.allTabGroups;if((0,i.useEffect)((function(){o.tabGroupState.scrollToCurTabgroup()}),[o.tabGroupState.curTabGroup]),(0,i.useEffect)((function(){var e=!1,n=window.setInterval((function(){var d,t=null===(d=o.tabGroupState.tabGroupScroller)||void 0===d?void 0:d.getBoundingClientRect().height;t&&t>0&&(e||s(!m),window.clearInterval(n))}),100);return function(){e=!0,window.clearInterval(n)}}),[o.tabGroupState.tabGroupScroller]),!x)return(0,u.jsx)(u.Fragment,{});var p=null===(n=o.tabGroupState.tabGroupScroller)||void 0===n?void 0:n.getBoundingClientRect().height,b=void 0,g=x.size,v=0;p?(v=p/g,80*g>p&&(b=80)):setTimeout((function(){return s(!m)}),100);var f=(0,d.Z)(x.values()),O=f[0],j=f[f.length-1];return(0,u.jsx)(u.Fragment,{children:f.map((function(e){return(0,u.jsx)(a.default,{tabGroup:e,height:v,isFirstItem:(null==O?void 0:O.key)==e.key,isLastItem:(null==j?void 0:j.key)==e.key,minHeight:b},e.key)}))})}))},39874:(e,n,o)=>{o.r(n),o.d(n,{default:()=>z});var d=o(80248),t=o(38946),r=o(72874),i=o(25327),a=o(9420),l=o(87363),u=o(65515),c=o.n(u),m=o(88683),s=o(82147),x=o(93379),p=o.n(x),b=o(7795),g=o.n(b),v=o(90569),f=o.n(v),O=o(3565),j=o.n(O),h=o(19216),G=o.n(h),N=o(44589),y=o.n(N),I=o(31638),D={};D.styleTagTransform=y(),D.setAttributes=j(),D.insert=f().bind(null,"head"),D.domAPI=g(),D.insertStyleElement=G();p()(I.ZP,D);I.ZP&&I.ZP.locals&&I.ZP.locals;var A=o(62018),w=o(95414),k=o(47514),_=["className","showCloseButtonInMobile","tabSearchClass"];function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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 z=(0,a.Pi)((function TabGroupContainer(e){var n=e.className,o=e.showCloseButtonInMobile,d=e.tabSearchClass,a=(0,r.Z)(e,_),u=(0,i.NP)(),x=(0,m.useTranslation)().t,p=(0,m.useDivaCore)().state,b=p.isFullscreenComponent,g=p.dimensions.isMobile,v=b&&"none"!==o&&!u.uiState.isMobilePortrait||"vertical"!=u.tabGroupState.curTabGroupType&&!u.uiState.ViewConfig.hideCloseButton&&u.eventIsManagedByClient("onWebPlanerClose")&&!((!o||"none"==o)&&u.getIsInMobileView()),f=u.uiState.ViewConfig.tabGroupSearchVisible,O=(0,l.useRef)(null);(0,l.useEffect)((function(){return O.current&&u.tabGroupState.setTabGroupScroller(O.current),function(){}}),[O]);var j=(0,l.useState)({start:!1,end:!1}),h=(0,t.Z)(j,2),G=h[0],N=h[1],y=function updateFade(){var e=O.current;if(e){var n=e.scrollLeft>1,o=e.scrollLeft+e.clientWidth<e.scrollWidth-1;N((function(e){return e.start===n&&e.end===o?e:{start:n,end:o}}))}},D=u.productState.rtvNext&&"horizontal"==u.tabGroupState.curTabGroupType;return(0,l.useEffect)((function(){var e=O.current;if(e&&D){y();var n=new ResizeObserver(y);return n.observe(e),e.firstElementChild&&n.observe(e.firstElementChild),function(){return n.disconnect()}}}),[D]),(0,k.jsxs)("div",_objectSpread(_objectSpread({},a),{},{className:c()(n,I.x6,u.uiState.isMobilePortrait?I.tW:void 0,u.uiState.isMobileLandscape?I.rK:void 0,"horizontal"==u.tabGroupState.curTabGroupType?I.Sl:void 0,"vertical"==u.tabGroupState.curTabGroupType?I.KR:void 0,v?void 0:I.oY,f?I._z:void 0,g?"left"==o?I.kn:I.e3:void 0),children:[f&&(0,k.jsx)(w.default,{className:d}),(0,k.jsx)("div",{className:c()(I.Ci,D&&G.start?I.vi:void 0,D&&G.end?I.wy:void 0),ref:O,onScroll:D?y:void 0,children:(0,k.jsxs)("div",{className:I.ml,children:["horizontal"==u.tabGroupState.curTabGroupType&&(0,k.jsx)(s.default,{}),"vertical"==u.tabGroupState.curTabGroupType&&(0,k.jsx)(A.default,{})]})}),v&&(0,k.jsx)("div",{className:I.b6,title:x("configurator.ConfigClose"),onClick:u.onCloseConfigurator})]}))}))},31638:(e,n,o)=>{o.d(n,{Ci:()=>b,KR:()=>f,Sl:()=>p,ZP:()=>D,_z:()=>O,b6:()=>h,e3:()=>g,kn:()=>v,ml:()=>N,oY:()=>G,rK:()=>j,tW:()=>x,vi:()=>I,wy:()=>y,x6:()=>s});var d=o(8081),t=o.n(d),r=o(23645),i=o.n(r),a=o(61667),l=o.n(a),u=new URL(o(51232),o.b),c=i()(t()),m=l()(u);c.push([e.id,".index-module--UQONc {\n z-index: 1100;\n}\n\n.index-module--Lpp4z.index-module--UQONc {\n overflow: hidden;\n}\n\n.index-module--xae91.index-module--UQONc {\n background-color: var(--thirdColor);\n}\n.index-module--Lpp4z.index-module--xae91.index-module--UQONc {\n background-color: rgba(238, 238, 238, 0.95);\n}\n.index-module--xae91 .index-module--zG0j8 {\n height: 100%;\n width: calc(100% - 4.3rem);\n float: left;\n background: var(--tabGroupBackground);\n}\n\n.index-module--xae91.index-module--Lpp4z.index-module--TiYdi .index-module--zG0j8 {\n width: calc(100% - 3.6rem);\n}\n.index-module--xae91.index-module--Lpp4z.index-module--DDlII .index-module--zG0j8 {\n width: 100%;\n}\n\n.index-module--BXnzB .index-module--zG0j8 {\n height: 100%;\n width: 100%;\n background: var(--tabGroupBackground);\n}\n\n.index-module--GvXsI.index-module--BXnzB .index-module--zG0j8 {\n height: calc(100% - 46px);\n}\n.index-module--xae91.index-module--RZGEF .index-module--zG0j8 {\n width: 100%;\n}\n\n.index-module--mXgZs {\n background-image: url("+m+");\n background-repeat: no-repeat;\n background-position: center center;\n float: left;\n width: 32px;\n height: 32px;\n margin: 12.8px;\n margin-left: 17.6px;\n transition: background-color 0.15s ease;\n border-radius: var(--globalBorderRadius);\n}\n.index-module--BXnzB .index-module--mXgZs {\n position: absolute;\n top: -56px;\n left: 30px;\n}\n\n.index-module--Lpp4z .index-module--mXgZs {\n position: absolute;\n top: 0;\n margin: 10px;\n}\n\n.index-module--Lpp4z.index-module--TiYdi .index-module--mXgZs {\n right: 0;\n}\n\n.index-module--Lpp4z.index-module--DDlII .index-module--mXgZs {\n left: -50px;\n}\n\n.index-module--mXgZs:hover {\n box-shadow: 0px 1px 4px rgba(68, 49, 49, 0.15);\n}\n\n.index-module--mXgZs:active {\n background-color: rgba(197, 197, 197, 0.1);\n}\n\n.index-module--xhdl9:first-child {\n border-radius: var(--globalBorderRadius) 0 0 var(--globalBorderRadius);\n}\n\n.index-module--Lpp4z .index-module--xhdl9:first-child {\n border-radius: 0px;\n}\n\n.index-module--xae91.index-module--UQONc .index-module--zG0j8 {\n border-radius: var(--globalBorderRadius);\n border-width: 0px;\n overflow-x: auto;\n}\n\n.index-module--Lpp4z.index-module--xae91.index-module--UQONc .index-module--zG0j8 {\n border-radius: 0px;\n height: calc(100% - 3px);\n}\n\n.index-module--Wgbb5 .index-module--Pq4k7 {\n width: -moz-max-content;\n width: max-content;\n height: 100%;\n}\n\n.index-module--xae91 .index-module--zG0j8 {\n height: 100%;\n width: calc(100% - 4.3rem);\n float: left;\n}\n\n.index-module--xae91.index-module--PvgaR .index-module--zG0j8,\n.index-module--xae91.index-module--PvgaR.index-module--Lpp4z .index-module--zG0j8,\n.index-module--xae91.index-module--PvgaR.index-module--RZGEF .index-module--zG0j8 {\n width: 100%;\n overscroll-behavior: contain;\n}\n\n.index-module--xae91.index-module--UQONc .index-module--zG0j8::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE and Edge */\n.index-module--xae91.index-module--UQONc .index-module--zG0j8,\n.index-module--UQONc .index-module--zG0j8 {\n -ms-overflow-style: none;\n scrollbar-width: none; /* Firefox */\n}\n\n.index-module--BXnzB.index-module--UQONc .index-module--zG0j8 {\n overflow: auto;\n\n /* Hide scrollbar for IE, Edge add Firefox */\n\n -ms-overflow-style: none;\n scrollbar-width: none; /* Firefox */\n}\n\n.index-module--BXnzB.index-module--UQONc .index-module--zG0j8::-webkit-scrollbar {\n display: none;\n}\n\n.index-module--xae91 .index-module--VAKfj {\n width: -moz-max-content;\n width: max-content;\n height: 100%;\n overscroll-behavior: contain;\n}\n\n.index-module--BXnzB .index-module--VAKfj {\n width: 100%;\n height: 100%;\n}\n\n/* Dark mode – matches backoffice */\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--xae91.index-module--UQONc {\n background-color: rgb(30, 30, 30);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc {\n background-color: rgb(30, 30, 30);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--BXnzB .index-module--pznRr -steps-split,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--BXnzB .index-module--zG0j8,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--BXnzB .index-module--zG0j8,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--BXnzB .index-module--zG0j8 {\n background: rgb(20, 20, 20);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--mXgZs:hover {\n box-shadow: 0px 1px 4px rgba(255, 255, 255, 0.1);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--mXgZs:active {\n background-color: rgba(255, 255, 255, 0.08);\n}\n\n/* More tabs beyond an edge: fade that edge out so the bar reads as scrollable. */\n.index-module--xae91 .index-module--zG0j8.index-module--JV31x {\n -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);\n}\n.index-module--xae91 .index-module--zG0j8.index-module--fWFSS {\n -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);\n}\n.index-module--xae91 .index-module--zG0j8.index-module--fWFSS.index-module--JV31x {\n -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);\n}\n",""]);var s="index-module--UQONc",x="index-module--Lpp4z",p="index-module--xae91",b="index-module--zG0j8",g="index-module--TiYdi",v="index-module--DDlII",f="index-module--BXnzB",O="index-module--GvXsI",j="index-module--RZGEF",h="index-module--mXgZs",G="index-module--PvgaR",N="index-module--VAKfj",y="index-module--JV31x",I="index-module--fWFSS";const D=c},51232:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNTYyNSAwLjgzNjE4MkwxOC41NjI1IDE4LjgzNjJNMTguNTYyNSAwLjgzNjE4MkwwLjU2MjUgMTguODM2MiIgc3Ryb2tlPSIjNEE0QTRBIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignDivaWebPlannerReact=self.webpackChunkCrystaldesignDivaWebPlannerReact||[]).push([[9874,2147,2400,4725,2018],{95414:(e,n,o)=>{o.r(n),o.d(n,{default:()=>m});var d=o(80248),t=o(38946),r=o(88291),i=o(9420),a=o(25327),l=o(87363),u=o(88683),c=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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 m=(0,i.Pi)((function TabSearch(e){var n=Object.assign({},((0,r.Z)(e),e)),o=(0,l.useState)(""),d=(0,t.Z)(o,2),i=d[0],m=d[1],x=(0,u.useTranslation)().t,s=(0,a.NP)();return(0,l.useEffect)((function(){var e=!!s.tabGroupState.filterTabgroup&&!i;s.tabGroupState.setFilterTabgroup(i&&""!==i?i:void 0),e&&setTimeout((function(){return s.tabGroupState.scrollToCurTabgroup()}),200)}),[i]),(0,l.useEffect)((function(){void 0===s.tabGroupState.filterTabgroup&&i&&m("")}),[s.tabGroupState.filterTabgroup]),(0,c.jsxs)("div",_objectSpread(_objectSpread({},n),{},{children:[(0,c.jsx)("input",{value:i,type:"text",onChange:function onChange(e){return m(e.target.value)},placeholder:x("filter.global")}),!!i&&(0,c.jsx)("div",{onClick:function onClick(){return m("")}})]}))}))},82147:(e,n,o)=>{o.r(n),o.d(n,{default:()=>c});var d=o(38946),t=o(61965),r=o(25327),i=o(87363),a=o(9420),l=o(2400),u=o(47514);const c=(0,a.Pi)((function TabGroupHorizontal(e){var n=(0,r.NP)();if((0,i.useEffect)((function(){n.tabGroupState.scrollToCurTabgroupHorizontal()}),[n.tabGroupState.curTabGroup]),!n.tabGroupState.allTabGroups)return(0,u.jsx)(u.Fragment,{});var o=(0,t.Z)(n.tabGroupState.allTabGroups);return(0,u.jsx)(u.Fragment,{children:o.map((function(e){var t,r,i=(0,d.Z)(e,2),a=i[0],c=i[1];return(0,u.jsx)(l.default,{tabGroup:c,width:"calc("+(null!==(t=null===(r=n.tabGroupState)||void 0===r||null===(r=r.tabGroupScroller)||void 0===r?void 0:r.getBoundingClientRect().width)&&void 0!==t?t:0)+"px / "+o.length+")"},a)}))})}))},2400:(e,n,o)=>{o.r(n),o.d(n,{default:()=>i});var d=o(80248),t=(o(87363),o(2765)),r=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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=function ItemVariant(e){return(0,r.jsx)(t.ZP,_objectSpread(_objectSpread({},e),{},{componentName:"TabGroup/TabGroupHorizontal/item"}))}},34725:(e,n,o)=>{o.r(n),o.d(n,{default:()=>i});var d=o(80248),t=(o(87363),o(2765)),r=o(47514);function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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=function ItemVariant(e){return(0,r.jsx)(t.ZP,_objectSpread(_objectSpread({},e),{},{componentName:"TabGroup/TabGroupVertical/ItemVariants"}))}},62018:(e,n,o)=>{o.r(n),o.d(n,{default:()=>c});var d=o(61965),t=o(38946),r=o(25327),i=o(87363),a=o(34725),l=o(9420),u=o(47514);const c=(0,l.Pi)((function TabGroupVertical(e){var n,o=(0,r.NP)(),l=(0,i.useState)(!1),c=(0,t.Z)(l,2),m=c[0],x=c[1],s=o.tabGroupState.allTabGroups;if((0,i.useEffect)((function(){o.tabGroupState.scrollToCurTabgroup()}),[o.tabGroupState.curTabGroup]),(0,i.useEffect)((function(){var e=!1,n=window.setInterval((function(){var d,t=null===(d=o.tabGroupState.tabGroupScroller)||void 0===d?void 0:d.getBoundingClientRect().height;t&&t>0&&(e||x(!m),window.clearInterval(n))}),100);return function(){e=!0,window.clearInterval(n)}}),[o.tabGroupState.tabGroupScroller]),!s)return(0,u.jsx)(u.Fragment,{});var p=null===(n=o.tabGroupState.tabGroupScroller)||void 0===n?void 0:n.getBoundingClientRect().height,b=void 0,g=s.size,v=0;p?(v=p/g,80*g>p&&(b=80)):setTimeout((function(){return x(!m)}),100);var f=(0,d.Z)(s.values()),O=f[0],h=f[f.length-1];return(0,u.jsx)(u.Fragment,{children:f.map((function(e){return(0,u.jsx)(a.default,{tabGroup:e,height:v,isFirstItem:(null==O?void 0:O.key)==e.key,isLastItem:(null==h?void 0:h.key)==e.key,minHeight:b},e.key)}))})}))},39874:(e,n,o)=>{o.r(n),o.d(n,{default:()=>_});var d=o(80248),t=o(38946),r=o(72874),i=o(25327),a=o(9420),l=o(87363),u=o(65515),c=o.n(u),m=o(88683),x=o(82147),s=o(93379),p=o.n(s),b=o(7795),g=o.n(b),v=o(90569),f=o.n(v),O=o(3565),h=o.n(O),j=o(19216),G=o.n(j),y=o(44589),N=o.n(y),I=o(31638),D={};D.styleTagTransform=N(),D.setAttributes=h(),D.insert=f().bind(null,"head"),D.domAPI=g(),D.insertStyleElement=G();p()(I.ZP,D);I.ZP&&I.ZP.locals&&I.ZP.locals;var A=o(62018),w=o(95414),k=o(39667),C=o(47514),z=["className","showCloseButtonInMobile","tabSearchClass"];function ownKeys(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);n&&(d=d.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,d)}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,d.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 _=(0,a.Pi)((function TabGroupContainer(e){var n=e.className,o=e.showCloseButtonInMobile,d=e.tabSearchClass,a=(0,r.Z)(e,z),u=(0,i.NP)(),s=(0,m.useTranslation)().t,p=(0,m.useDivaCore)().state,b=p.isFullscreenComponent,g=p.dimensions.isMobile,v=b&&"none"!==o&&!u.uiState.isMobilePortrait||"vertical"!=u.tabGroupState.curTabGroupType&&!u.uiState.ViewConfig.hideCloseButton&&u.eventIsManagedByClient("onWebPlanerClose")&&!((!o||"none"==o)&&u.getIsInMobileView()),f=u.uiState.ViewConfig.closeButton,O=!!(null!=f&&f.icon||null!=f&&f.iconUrl),h=u.uiState.ViewConfig.tabGroupSearchVisible,j=(0,l.useRef)(null);(0,l.useEffect)((function(){return j.current&&u.tabGroupState.setTabGroupScroller(j.current),function(){}}),[j]);var G=(0,l.useState)({start:!1,end:!1}),y=(0,t.Z)(G,2),N=y[0],D=y[1],_=function updateFade(){var e=j.current;if(e){var n=e.scrollLeft>1,o=e.scrollLeft+e.clientWidth<e.scrollWidth-1;D((function(e){return e.start===n&&e.end===o?e:{start:n,end:o}}))}},S=u.productState.rtvNext&&"horizontal"==u.tabGroupState.curTabGroupType;return(0,l.useEffect)((function(){var e=j.current;if(e&&S){_();var n=new ResizeObserver(_);return n.observe(e),e.firstElementChild&&n.observe(e.firstElementChild),function(){return n.disconnect()}}}),[S]),(0,C.jsxs)("div",_objectSpread(_objectSpread({},a),{},{className:c()(n,I.x6,u.uiState.isMobilePortrait?I.tW:void 0,u.uiState.isMobileLandscape?I.rK:void 0,"horizontal"==u.tabGroupState.curTabGroupType?I.Sl:void 0,"vertical"==u.tabGroupState.curTabGroupType?I.KR:void 0,v?void 0:I.oY,h?I._z:void 0,g?"left"==o?I.kn:I.e3:void 0),children:[h&&(0,C.jsx)(w.default,{className:d}),(0,C.jsx)("div",{className:c()(I.Ci,S&&N.start?I.vi:void 0,S&&N.end?I.wy:void 0),ref:j,onScroll:S?_:void 0,children:(0,C.jsxs)("div",{className:I.ml,children:["horizontal"==u.tabGroupState.curTabGroupType&&(0,C.jsx)(x.default,{}),"vertical"==u.tabGroupState.curTabGroupType&&(0,C.jsx)(A.default,{})]})}),v&&!f&&(0,C.jsx)("div",{className:I.b6,title:s("configurator.ConfigClose"),onClick:u.onCloseConfigurator}),v&&f&&(0,C.jsxs)("div",{className:c()(I.b6,I.$L,f.label?I.e2:void 0),title:s("configurator.ConfigClose"),onClick:u.onCloseConfigurator,children:[O?(0,C.jsx)(k.default,{checkoutButton:_objectSpread({type:"CLOSE"},f),size:32}):(0,C.jsx)("div",{className:I.ym}),f.label&&(0,C.jsx)("div",{className:I.on,children:s(f.label)})]})]}))}))},31638:(e,n,o)=>{o.d(n,{$L:()=>G,Ci:()=>b,KR:()=>f,Sl:()=>p,ZP:()=>C,_z:()=>O,b6:()=>j,e2:()=>I,e3:()=>g,kn:()=>v,ml:()=>A,oY:()=>D,on:()=>N,rK:()=>h,tW:()=>s,vi:()=>k,wy:()=>w,x6:()=>x,ym:()=>y});var d=o(8081),t=o.n(d),r=o(23645),i=o.n(r),a=o(61667),l=o.n(a),u=new URL(o(51232),o.b),c=i()(t()),m=l()(u);c.push([e.id,".index-module--UQONc {\n z-index: 1100;\n}\n\n.index-module--Lpp4z.index-module--UQONc {\n overflow: hidden;\n}\n\n.index-module--xae91.index-module--UQONc {\n background-color: var(--thirdColor);\n}\n.index-module--Lpp4z.index-module--xae91.index-module--UQONc {\n background-color: rgba(238, 238, 238, 0.95);\n}\n.index-module--xae91 .index-module--zG0j8 {\n height: 100%;\n width: calc(100% - 4.3rem);\n float: left;\n background: var(--tabGroupBackground);\n}\n\n.index-module--xae91.index-module--Lpp4z.index-module--TiYdi .index-module--zG0j8 {\n width: calc(100% - 3.6rem);\n}\n.index-module--xae91.index-module--Lpp4z.index-module--DDlII .index-module--zG0j8 {\n width: 100%;\n}\n\n.index-module--BXnzB .index-module--zG0j8 {\n height: 100%;\n width: 100%;\n background: var(--tabGroupBackground);\n}\n\n.index-module--GvXsI.index-module--BXnzB .index-module--zG0j8 {\n height: calc(100% - 46px);\n}\n.index-module--xae91.index-module--RZGEF .index-module--zG0j8 {\n width: 100%;\n}\n\n.index-module--mXgZs {\n background-image: url("+m+");\n background-repeat: no-repeat;\n background-position: center center;\n float: left;\n width: 32px;\n height: 32px;\n margin: 12.8px;\n margin-left: 17.6px;\n transition: background-color 0.15s ease;\n border-radius: var(--globalBorderRadius);\n}\n.index-module--BXnzB .index-module--mXgZs {\n position: absolute;\n top: -56px;\n left: 30px;\n}\n\n.index-module--Lpp4z .index-module--mXgZs {\n position: absolute;\n top: 0;\n margin: 10px;\n}\n\n.index-module--Lpp4z.index-module--TiYdi .index-module--mXgZs {\n right: 0;\n}\n\n.index-module--Lpp4z.index-module--DDlII .index-module--mXgZs {\n left: -50px;\n}\n\n.index-module--mXgZs:hover {\n box-shadow: 0px 1px 4px rgba(68, 49, 49, 0.15);\n}\n\n.index-module--mXgZs:active {\n background-color: rgba(197, 197, 197, 0.1);\n}\n\n/* viewConfig.closeButton: icon and label are rendered as children */\n.index-module--mXgZs.index-module--WLcxO {\n background-image: none;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n\n.index-module--c4G1N {\n flex-shrink: 0;\n width: 32px;\n height: 32px;\n background: url("+m+") no-repeat center;\n}\n\n/* the label only fits into the vertical tab bar */\n.index-module--D6arV {\n display: none;\n}\n\n.index-module--BXnzB .index-module--mXgZs.index-module--c2Gol {\n top: -62px;\n left: 0;\n right: 0;\n width: auto;\n height: 58px;\n margin: 0 4px;\n gap: 2px;\n}\n\n.index-module--BXnzB .index-module--D6arV {\n display: block;\n font-size: 11px;\n line-height: 12px;\n text-align: center;\n}\n\n.index-module--xhdl9:first-child {\n border-radius: var(--globalBorderRadius) 0 0 var(--globalBorderRadius);\n}\n\n.index-module--Lpp4z .index-module--xhdl9:first-child {\n border-radius: 0px;\n}\n\n.index-module--xae91.index-module--UQONc .index-module--zG0j8 {\n border-radius: var(--globalBorderRadius);\n border-width: 0px;\n overflow-x: auto;\n}\n\n.index-module--Lpp4z.index-module--xae91.index-module--UQONc .index-module--zG0j8 {\n border-radius: 0px;\n height: calc(100% - 3px);\n}\n\n.index-module--Wgbb5 .index-module--Pq4k7 {\n width: -moz-max-content;\n width: max-content;\n height: 100%;\n}\n\n.index-module--xae91 .index-module--zG0j8 {\n height: 100%;\n width: calc(100% - 4.3rem);\n float: left;\n}\n\n.index-module--xae91.index-module--PvgaR .index-module--zG0j8,\n.index-module--xae91.index-module--PvgaR.index-module--Lpp4z .index-module--zG0j8,\n.index-module--xae91.index-module--PvgaR.index-module--RZGEF .index-module--zG0j8 {\n width: 100%;\n overscroll-behavior: contain;\n}\n\n.index-module--xae91.index-module--UQONc .index-module--zG0j8::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE and Edge */\n.index-module--xae91.index-module--UQONc .index-module--zG0j8,\n.index-module--UQONc .index-module--zG0j8 {\n -ms-overflow-style: none;\n scrollbar-width: none; /* Firefox */\n}\n\n.index-module--BXnzB.index-module--UQONc .index-module--zG0j8 {\n overflow: auto;\n\n /* Hide scrollbar for IE, Edge add Firefox */\n\n -ms-overflow-style: none;\n scrollbar-width: none; /* Firefox */\n}\n\n.index-module--BXnzB.index-module--UQONc .index-module--zG0j8::-webkit-scrollbar {\n display: none;\n}\n\n.index-module--xae91 .index-module--VAKfj {\n width: -moz-max-content;\n width: max-content;\n height: 100%;\n overscroll-behavior: contain;\n}\n\n.index-module--BXnzB .index-module--VAKfj {\n width: 100%;\n height: 100%;\n}\n\n/* Dark mode – matches backoffice */\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--xae91.index-module--UQONc {\n background-color: rgb(30, 30, 30);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--Lpp4z.index-module--xae91.index-module--UQONc {\n background-color: rgb(30, 30, 30);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--BXnzB .index-module--pznRr -steps-split,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--xae91 .index-module--zG0j8,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--BXnzB .index-module--zG0j8,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--BXnzB .index-module--zG0j8,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--BXnzB .index-module--zG0j8 {\n background: rgb(20, 20, 20);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--mXgZs:hover,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--mXgZs:hover {\n box-shadow: 0px 1px 4px rgba(255, 255, 255, 0.1);\n}\n\n.diva-component-DIVA_BACKOFFICE_NEW .darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_PRODUCT_ONBOARDING .darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_DATA_ENGINE .darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_BACKOFFICE_NEW body.darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_PRODUCT_ONBOARDING body.darkmode .index-module--mXgZs:active,\n.diva-component-DIVA_DATA_ENGINE body.darkmode .index-module--mXgZs:active {\n background-color: rgba(255, 255, 255, 0.08);\n}\n\n/* More tabs beyond an edge: fade that edge out so the bar reads as scrollable. */\n.index-module--xae91 .index-module--zG0j8.index-module--JV31x {\n -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);\n}\n.index-module--xae91 .index-module--zG0j8.index-module--fWFSS {\n -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);\n}\n.index-module--xae91 .index-module--zG0j8.index-module--fWFSS.index-module--JV31x {\n -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);\n mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);\n}\n",""]);var x="index-module--UQONc",s="index-module--Lpp4z",p="index-module--xae91",b="index-module--zG0j8",g="index-module--TiYdi",v="index-module--DDlII",f="index-module--BXnzB",O="index-module--GvXsI",h="index-module--RZGEF",j="index-module--mXgZs",G="index-module--WLcxO",y="index-module--c4G1N",N="index-module--D6arV",I="index-module--c2Gol",D="index-module--PvgaR",A="index-module--VAKfj",w="index-module--JV31x",k="index-module--fWFSS";const C=c},51232:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNTYyNSAwLjgzNjE4MkwxOC41NjI1IDE4LjgzNjJNMTguNTYyNSAwLjgzNjE4MkwwLjU2MjUgMTguODM2MiIgc3Ryb2tlPSIjNEE0QTRBIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg=="}}]);
|