@clickview/lite 0.14.0 → 0.15.0-rc.0
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/dist/bundles.json +3 -3
- package/dist/css/{1367-lite-8e532e3da7.chunk.css → 1623-lite-c0ca8c68ed.chunk.css} +9 -3
- package/dist/css/{164-lite-1ff593b16d.chunk.css → 1984-lite-b0c03fe370.chunk.css} +10 -2
- package/dist/css/{7021-lite-e11d1ab7dd.chunk.css → 3114-lite-ce5eaf344e.chunk.css} +2 -3
- package/dist/css/{5025-lite-5e9df54450.chunk.css → 4309-lite-698d41f772.chunk.css} +1 -1
- package/dist/css/{5875-lite-e21f44a07b.chunk.css → 5875-lite-8510befbfc.chunk.css} +1 -1
- package/dist/css/{7244-lite-7a6810f0d9.chunk.css → 7244-lite-f127655562.chunk.css} +3 -2
- package/dist/css/{lite-app-fd9815329e.css → lite-app-0b4fe5aa50.css} +3 -3
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{1200-64b57c598e-lite.chunk.js → 1200-9f58b94820-lite.chunk.js} +1 -1
- package/dist/scripts/{1235-7a4635f9ae-lite.chunk.js → 1235-22acf0f76f-lite.chunk.js} +1 -1
- package/dist/scripts/{1503-c132fb55ac-lite.chunk.js → 1503-1946069840-lite.chunk.js} +1 -1
- package/dist/scripts/{1518-5d006e2ae4-lite.chunk.js → 1518-dc01a3303a-lite.chunk.js} +1 -1
- package/dist/scripts/1623-ccbf89f314-lite.chunk.js +1 -0
- package/dist/scripts/1984-dae7d1723b-lite.chunk.js +1 -0
- package/dist/scripts/{2097-1e15cec6b3-lite.chunk.js → 2097-1052381b8e-lite.chunk.js} +1 -1
- package/dist/scripts/2215-877e9530e5-lite.chunk.js +1 -0
- package/dist/scripts/{2281-47c5814799-lite.chunk.js → 2281-6481b3bc94-lite.chunk.js} +2 -2
- package/dist/scripts/2303-5f788b6814-lite.chunk.js +1 -0
- package/dist/scripts/{2574-092f0a9789-lite.chunk.js → 2574-c360334a26-lite.chunk.js} +1 -1
- package/dist/scripts/2791-32684ef142-lite.chunk.js +1 -0
- package/dist/scripts/2812-97f53cd126-lite.chunk.js +1 -0
- package/dist/scripts/2863-7b5631b749-lite.chunk.js +1 -0
- package/dist/scripts/3020-82ad45705d-lite.chunk.js +1 -0
- package/dist/scripts/3114-9930bfdadb-lite.chunk.js +1 -0
- package/dist/scripts/{3168-93294e91e6-lite.chunk.js → 3168-3c8dc6840a-lite.chunk.js} +1 -1
- package/dist/scripts/3231-01460c64a9-lite.chunk.js +1 -0
- package/dist/scripts/324-5a328ffb5a-lite.chunk.js +1 -0
- package/dist/scripts/3269-111f8e61c4-lite.chunk.js +1 -0
- package/dist/scripts/3729-25b51827be-lite.chunk.js +1 -0
- package/dist/scripts/{3854-a60119556e-lite.chunk.js → 3854-64c64c8715-lite.chunk.js} +1 -1
- package/dist/scripts/4066-6e68ed284a-lite.chunk.js +1 -0
- package/dist/scripts/4309-852f2ca32a-lite.chunk.js +1 -0
- package/dist/scripts/5018-dcfdf3e00c-lite.chunk.js +1 -0
- package/dist/scripts/5173-8ef62bc4b8-lite.chunk.js +1 -0
- package/dist/scripts/{5197-6dd3b888ca-lite.chunk.js → 5197-a9ef062705-lite.chunk.js} +1 -1
- package/dist/scripts/5585-cd033e371c-lite.chunk.js +1 -0
- package/dist/scripts/5607-bffdc3a6e9-lite.chunk.js +1 -0
- package/dist/scripts/{5763-f460d07f43-lite.chunk.js → 5763-f48b154f8e-lite.chunk.js} +1 -1
- package/dist/scripts/5875-a3e89eb448-lite.chunk.js +2 -0
- package/dist/scripts/5942-4dbc656b9c-lite.chunk.js +1 -0
- package/dist/scripts/{5956-47072cd35a-lite.chunk.js → 5956-2d1c1649ea-lite.chunk.js} +1 -1
- package/dist/scripts/5986-04e1437aa0-lite.chunk.js +1 -0
- package/dist/scripts/{623-c256cf3fd0-lite.chunk.js → 623-eb4bc51044-lite.chunk.js} +1 -1
- package/dist/scripts/6258-90f32cf331-lite.chunk.js +1 -0
- package/dist/scripts/6263-87f0185f5a-lite.chunk.js +1 -0
- package/dist/scripts/6450-8fb5f68213-lite.chunk.js +1 -0
- package/dist/scripts/{6736-a4c7163c83-lite.chunk.js → 6736-d306eea152-lite.chunk.js} +1 -1
- package/dist/scripts/6776-11317d915b-lite.chunk.js +1 -0
- package/dist/scripts/{6801-dba881d9b0-lite.chunk.js → 6801-27f3fd6902-lite.chunk.js} +1 -1
- package/dist/scripts/{7112-7bb22c1e5d-lite.chunk.js → 7112-656b8ace68-lite.chunk.js} +1 -1
- package/dist/scripts/716-de073f1282-lite.chunk.js +1 -0
- package/dist/scripts/719-72f758778c-lite.chunk.js +1 -0
- package/dist/scripts/7244-7a1ed44abd-lite.chunk.js +1 -0
- package/dist/scripts/{7318-197a251f17-lite.chunk.js → 7318-3e30972aa6-lite.chunk.js} +1 -1
- package/dist/scripts/{7327-178164fd2c-lite.chunk.js → 7327-c54cce22c9-lite.chunk.js} +1 -1
- package/dist/scripts/{7515-b4383c11dd-lite.chunk.js → 7515-e3606867eb-lite.chunk.js} +1 -1
- package/dist/scripts/{754-7c4fd9a4f7-lite.chunk.js → 754-5e7f1621de-lite.chunk.js} +1 -1
- package/dist/scripts/7552-18668f3338-lite.chunk.js +1 -0
- package/dist/scripts/7650-9ffcb7da66-lite.chunk.js +1 -0
- package/dist/scripts/{7919-a8fc991bc0-lite.chunk.js → 7919-dc154129bc-lite.chunk.js} +1 -1
- package/dist/scripts/7947-5f3e810761-lite.chunk.js +1 -0
- package/dist/scripts/{7989-1b3277ef7b-lite.chunk.js → 7989-8074e23413-lite.chunk.js} +1 -1
- package/dist/scripts/{8046-a7cdd66a9c-lite.chunk.js → 8046-7bd62ccc94-lite.chunk.js} +1 -1
- package/dist/scripts/8322-b2ee6acbae-lite.chunk.js +1 -0
- package/dist/scripts/{8323-52c5386b1c-lite.chunk.js → 8323-4758458f70-lite.chunk.js} +1 -1
- package/dist/scripts/8814-187443dbab-lite.chunk.js +1 -0
- package/dist/scripts/9035-b385aeb0a3-lite.chunk.js +1 -0
- package/dist/scripts/929-7bc040ff9c-lite.chunk.js +1 -0
- package/dist/scripts/9312-19d783e4f4-lite.chunk.js +2 -0
- package/dist/scripts/{9478-de13889add-lite.chunk.js → 9478-96eae7ba8d-lite.chunk.js} +1 -1
- package/dist/scripts/{9490-94d7a1527e-lite.chunk.js → 9490-db94570fae-lite.chunk.js} +1 -1
- package/dist/scripts/9568-d7265e12ce-lite.chunk.js +1 -0
- package/dist/scripts/9674-c3c967e84a-lite.chunk.js +1 -0
- package/dist/scripts/{9686-9dcc9eef1a-lite.chunk.js → 9686-8d782806e3-lite.chunk.js} +1 -1
- package/dist/scripts/bundle-5efad6d817.min.js +2 -0
- package/dist/scripts/{pdf.worker.entry-cdaf8e504d.min.worker.js → pdf.worker.entry-ca5de1d631.min.worker.js} +1 -1
- package/dist/scripts/{polyfills-35ba3904b7.min.js → polyfills-fd10739084.min.js} +2 -2
- package/dist/scripts/polyfills-fd10739084.min.js.LICENSE.txt +1 -0
- package/package.json +2 -2
- package/dist/scripts/1367-1c685f262b-lite.chunk.js +0 -1
- package/dist/scripts/1451-6e63172a52-lite.chunk.js +0 -1
- package/dist/scripts/164-b8049dfaa3-lite.chunk.js +0 -1
- package/dist/scripts/2215-3bcea026f8-lite.chunk.js +0 -1
- package/dist/scripts/2303-27f6482a2b-lite.chunk.js +0 -1
- package/dist/scripts/2863-a03b9efe0e-lite.chunk.js +0 -1
- package/dist/scripts/3020-9794c16063-lite.chunk.js +0 -1
- package/dist/scripts/3231-5c592a3055-lite.chunk.js +0 -1
- package/dist/scripts/324-663b789851-lite.chunk.js +0 -1
- package/dist/scripts/3269-9d86fccb14-lite.chunk.js +0 -1
- package/dist/scripts/329-7ec4a4ec48-lite.chunk.js +0 -1
- package/dist/scripts/3656-a76ca9e387-lite.chunk.js +0 -1
- package/dist/scripts/4066-332ab80e7f-lite.chunk.js +0 -1
- package/dist/scripts/4103-68bdcfe8c9-lite.chunk.js +0 -1
- package/dist/scripts/4665-5c7d6c3c84-lite.chunk.js +0 -1
- package/dist/scripts/5025-ce70bc4f68-lite.chunk.js +0 -1
- package/dist/scripts/5173-0bce887ac7-lite.chunk.js +0 -1
- package/dist/scripts/5585-6a0b4f594b-lite.chunk.js +0 -1
- package/dist/scripts/5607-02a34ca5a4-lite.chunk.js +0 -1
- package/dist/scripts/5875-e3a70dd328-lite.chunk.js +0 -2
- package/dist/scripts/5942-9b4f8bb153-lite.chunk.js +0 -1
- package/dist/scripts/5986-f092fb4463-lite.chunk.js +0 -1
- package/dist/scripts/6258-604d8bc6bc-lite.chunk.js +0 -1
- package/dist/scripts/6263-fc7c9c5daf-lite.chunk.js +0 -1
- package/dist/scripts/6450-506ac4a7b8-lite.chunk.js +0 -1
- package/dist/scripts/6776-f3bd36a9c1-lite.chunk.js +0 -1
- package/dist/scripts/7021-ef6a23c1a3-lite.chunk.js +0 -1
- package/dist/scripts/716-20290b2648-lite.chunk.js +0 -1
- package/dist/scripts/7244-2c0246c653-lite.chunk.js +0 -1
- package/dist/scripts/7552-4d63cde258-lite.chunk.js +0 -1
- package/dist/scripts/7650-bda9a4ba34-lite.chunk.js +0 -1
- package/dist/scripts/7947-a3551c2862-lite.chunk.js +0 -1
- package/dist/scripts/8322-1ebbc86a2b-lite.chunk.js +0 -1
- package/dist/scripts/8814-e6bf429399-lite.chunk.js +0 -1
- package/dist/scripts/9035-00c0860c61-lite.chunk.js +0 -1
- package/dist/scripts/9568-bf4e656a54-lite.chunk.js +0 -1
- package/dist/scripts/9674-2406635929-lite.chunk.js +0 -1
- package/dist/scripts/bundle-e9f10cf9fd.min.js +0 -2
- /package/dist/css/{4665-lite-bc0b033c29.chunk.css → 2812-lite-bc0b033c29.chunk.css} +0 -0
- /package/dist/scripts/{1007-c964b537de-lite.chunk.js → 1007-ca8078526e-lite.chunk.js} +0 -0
- /package/dist/scripts/{1106-60a0f57fea-lite.chunk.js → 1106-8fd6ef7bed-lite.chunk.js} +0 -0
- /package/dist/scripts/{1200-64b57c598e-lite.chunk.js.LICENSE.txt → 1200-9f58b94820-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1285-2beaf50452-lite.chunk.js → 1285-6c3f3c32d1-lite.chunk.js} +0 -0
- /package/dist/scripts/{1291-000a87e198-lite.chunk.js → 1291-eb883d1938-lite.chunk.js} +0 -0
- /package/dist/scripts/{1450-bcab66949d-lite.chunk.js → 1450-a1ae40aeaf-lite.chunk.js} +0 -0
- /package/dist/scripts/{1592-5a368810dc-lite.chunk.js → 1592-07b717056d-lite.chunk.js} +0 -0
- /package/dist/scripts/{1613-87b1bb5e4b-lite.chunk.js → 1613-979257c653-lite.chunk.js} +0 -0
- /package/dist/scripts/{1628-0d9efded2e-lite.chunk.js → 1628-c8b474fdd9-lite.chunk.js} +0 -0
- /package/dist/scripts/{1659-d4ea97db3b-lite.chunk.js → 1659-e976f88343-lite.chunk.js} +0 -0
- /package/dist/scripts/{1684-102d107e3a-lite.chunk.js → 1684-5e3c839cdc-lite.chunk.js} +0 -0
- /package/dist/scripts/{1725-7423002d52-lite.chunk.js → 1725-ee95ff772f-lite.chunk.js} +0 -0
- /package/dist/scripts/{1726-ccc0c896c4-lite.chunk.js → 1726-4cf7cfae9b-lite.chunk.js} +0 -0
- /package/dist/scripts/{1792-2321d51dba-lite.chunk.js → 1792-a7adff5b38-lite.chunk.js} +0 -0
- /package/dist/scripts/{1891-ec9910c1cb-lite.chunk.js → 1891-ae40852eb2-lite.chunk.js} +0 -0
- /package/dist/scripts/{1924-0212f40a8a-lite.chunk.js → 1924-642c6177bb-lite.chunk.js} +0 -0
- /package/dist/scripts/{1958-763a8c1254-lite.chunk.js → 1958-7454009320-lite.chunk.js} +0 -0
- /package/dist/scripts/{2012-aa205bc261-lite.chunk.js → 2012-b37cc07889-lite.chunk.js} +0 -0
- /package/dist/scripts/{2044-0837167f1a-lite.chunk.js → 2044-76ca1194cc-lite.chunk.js} +0 -0
- /package/dist/scripts/{209-2a04f0ffd9-lite.chunk.js → 209-ac62320ab9-lite.chunk.js} +0 -0
- /package/dist/scripts/{2097-1e15cec6b3-lite.chunk.js.LICENSE.txt → 2097-1052381b8e-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2175-5ff59ae9f4-lite.chunk.js → 2175-ebea1adbc1-lite.chunk.js} +0 -0
- /package/dist/scripts/{2190-b450aac08d-lite.chunk.js → 2190-2d61d03cb5-lite.chunk.js} +0 -0
- /package/dist/scripts/{2229-8f977f340d-lite.chunk.js → 2229-6e99155abe-lite.chunk.js} +0 -0
- /package/dist/scripts/{227-2eb5790ebb-lite.chunk.js → 227-741b6f2988-lite.chunk.js} +0 -0
- /package/dist/scripts/{2279-33d7e0fe6d-lite.chunk.js → 2279-6e1977e287-lite.chunk.js} +0 -0
- /package/dist/scripts/{2281-47c5814799-lite.chunk.js.LICENSE.txt → 2281-6481b3bc94-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2405-f2a70906c1-lite.chunk.js → 2405-6b6e4b78f5-lite.chunk.js} +0 -0
- /package/dist/scripts/{2541-91feb13a3d-lite.chunk.js → 2541-660fab02c2-lite.chunk.js} +0 -0
- /package/dist/scripts/{2561-5c4cda4bd1-lite.chunk.js → 2561-3df7d0a551-lite.chunk.js} +0 -0
- /package/dist/scripts/{2566-7b1ca32ce9-lite.chunk.js → 2566-4b86994a2a-lite.chunk.js} +0 -0
- /package/dist/scripts/{2665-365c89d54a-lite.chunk.js → 2665-aa726fc29e-lite.chunk.js} +0 -0
- /package/dist/scripts/{27-80804c23ed-lite.chunk.js → 27-53b17dcfaf-lite.chunk.js} +0 -0
- /package/dist/scripts/{276-5cee084435-lite.chunk.js → 276-638594e338-lite.chunk.js} +0 -0
- /package/dist/scripts/{291-ce2b835b15-lite.chunk.js → 291-adf03742f1-lite.chunk.js} +0 -0
- /package/dist/scripts/{2935-42353579fb-lite.chunk.js → 2935-e455e7cc80-lite.chunk.js} +0 -0
- /package/dist/scripts/{2966-a9e1e084bc-lite.chunk.js → 2966-23ba51cdd9-lite.chunk.js} +0 -0
- /package/dist/scripts/{3007-9ee1ebf9f7-lite.chunk.js → 3007-b56c18f3d2-lite.chunk.js} +0 -0
- /package/dist/scripts/{3012-742d7633a4-lite.chunk.js → 3012-04fe1d1b2d-lite.chunk.js} +0 -0
- /package/dist/scripts/{3071-0f0c2e8eb7-lite.chunk.js → 3071-b0dc83aba7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3108-90186be5f6-lite.chunk.js → 3108-b6784bbe1e-lite.chunk.js} +0 -0
- /package/dist/scripts/{3171-0f3cda86d4-lite.chunk.js → 3171-20f1f86dfd-lite.chunk.js} +0 -0
- /package/dist/scripts/{3174-4655a782d5-lite.chunk.js → 3174-66faf142c7-lite.chunk.js} +0 -0
- /package/dist/scripts/{3216-8e1b404ea1-lite.chunk.js → 3216-8277e3e11c-lite.chunk.js} +0 -0
- /package/dist/scripts/{3237-abd4f2320e-lite.chunk.js → 3237-93c462c48b-lite.chunk.js} +0 -0
- /package/dist/scripts/{3285-85bf1eb5f2-lite.chunk.js → 3285-09eb8b30d1-lite.chunk.js} +0 -0
- /package/dist/scripts/{3286-fa29c1aca3-lite.chunk.js → 3286-85b9f669aa-lite.chunk.js} +0 -0
- /package/dist/scripts/{3384-3f653a25c0-lite.chunk.js → 3384-5ab7fb5cdb-lite.chunk.js} +0 -0
- /package/dist/scripts/{3468-f057ccb64f-lite.chunk.js → 3468-a3b7cf9626-lite.chunk.js} +0 -0
- /package/dist/scripts/{3646-3ddac0f945-lite.chunk.js → 3646-22296c8fd2-lite.chunk.js} +0 -0
- /package/dist/scripts/{3666-7dd7d0c845-lite.chunk.js → 3666-00859d5a1f-lite.chunk.js} +0 -0
- /package/dist/scripts/{3732-1d3fa8e51d-lite.chunk.js → 3732-233f80ace2-lite.chunk.js} +0 -0
- /package/dist/scripts/{3754-bf2aa9c459-lite.chunk.js → 3754-4930f05737-lite.chunk.js} +0 -0
- /package/dist/scripts/{3787-6ab844b48e-lite.chunk.js → 3787-2402f438bd-lite.chunk.js} +0 -0
- /package/dist/scripts/{3962-4383596d79-lite.chunk.js → 3962-485a74c873-lite.chunk.js} +0 -0
- /package/dist/scripts/{4067-19dfa93185-lite.chunk.js → 4067-4cbe1073ff-lite.chunk.js} +0 -0
- /package/dist/scripts/{4182-28b1eb1e3a-lite.chunk.js → 4182-301ec3e21e-lite.chunk.js} +0 -0
- /package/dist/scripts/{4262-45eb7313bd-lite.chunk.js → 4262-04bf1b8151-lite.chunk.js} +0 -0
- /package/dist/scripts/{4343-00a17c0adb-lite.chunk.js → 4343-8aba6f4a73-lite.chunk.js} +0 -0
- /package/dist/scripts/{4420-f8a0ef3062-lite.chunk.js → 4420-7cc6c546ba-lite.chunk.js} +0 -0
- /package/dist/scripts/{4423-f8520b7fad-lite.chunk.js → 4423-05b0e95ba5-lite.chunk.js} +0 -0
- /package/dist/scripts/{4512-295184c25e-lite.chunk.js → 4512-f88166ee80-lite.chunk.js} +0 -0
- /package/dist/scripts/{4541-538d1dd03a-lite.chunk.js → 4541-ea000ce7dc-lite.chunk.js} +0 -0
- /package/dist/scripts/{4770-492a1709da-lite.chunk.js → 4770-cd569b4f3c-lite.chunk.js} +0 -0
- /package/dist/scripts/{4777-1b47908d01-lite.chunk.js → 4777-409e4e93c6-lite.chunk.js} +0 -0
- /package/dist/scripts/{482-397917b1c7-lite.chunk.js → 482-3e1ae70ca0-lite.chunk.js} +0 -0
- /package/dist/scripts/{4893-75968854b2-lite.chunk.js → 4893-ab24956ae9-lite.chunk.js} +0 -0
- /package/dist/scripts/{4895-30f7b6aa2f-lite.chunk.js → 4895-3f3bc626c1-lite.chunk.js} +0 -0
- /package/dist/scripts/{510-ffab557189-lite.chunk.js → 510-38bd9463e5-lite.chunk.js} +0 -0
- /package/dist/scripts/{5134-22a153f003-lite.chunk.js → 5134-4ec5f3c4cf-lite.chunk.js} +0 -0
- /package/dist/scripts/{5271-2f8368b0c3-lite.chunk.js → 5271-60578faa70-lite.chunk.js} +0 -0
- /package/dist/scripts/{5291-c166374506-lite.chunk.js → 5291-044844d72f-lite.chunk.js} +0 -0
- /package/dist/scripts/{5509-bb2c1781b9-lite.chunk.js → 5509-0965fcc214-lite.chunk.js} +0 -0
- /package/dist/scripts/{5606-31da2867cb-lite.chunk.js → 5606-3868d5a0c1-lite.chunk.js} +0 -0
- /package/dist/scripts/{5680-bc5e76ed38-lite.chunk.js → 5680-97ddff5ac8-lite.chunk.js} +0 -0
- /package/dist/scripts/{5823-99243f8094-lite.chunk.js → 5823-39a1a1a699-lite.chunk.js} +0 -0
- /package/dist/scripts/{5875-e3a70dd328-lite.chunk.js.LICENSE.txt → 5875-a3e89eb448-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5877-fe7fe23526-lite.chunk.js → 5877-abfc94ea37-lite.chunk.js} +0 -0
- /package/dist/scripts/{5914-2edb428982-lite.chunk.js → 5914-c616e44505-lite.chunk.js} +0 -0
- /package/dist/scripts/{5923-690e9cc63a-lite.chunk.js → 5923-292beb503f-lite.chunk.js} +0 -0
- /package/dist/scripts/{5974-062c117385-lite.chunk.js → 5974-fba338443a-lite.chunk.js} +0 -0
- /package/dist/scripts/{598-51cde666df-lite.chunk.js → 598-847271c1ae-lite.chunk.js} +0 -0
- /package/dist/scripts/{6014-72cc953060-lite.chunk.js → 6014-a8de701e77-lite.chunk.js} +0 -0
- /package/dist/scripts/{6117-912eec03d4-lite.chunk.js → 6117-f6a711cf44-lite.chunk.js} +0 -0
- /package/dist/scripts/{6156-043194f53d-lite.chunk.js → 6156-7362c51ad7-lite.chunk.js} +0 -0
- /package/dist/scripts/{6274-8bd482354f-lite.chunk.js → 6274-f479e983ce-lite.chunk.js} +0 -0
- /package/dist/scripts/{6290-8925d6c8f0-lite.chunk.js → 6290-1df14dc72c-lite.chunk.js} +0 -0
- /package/dist/scripts/{6302-0baaf2dac2-lite.chunk.js → 6302-9124767a3b-lite.chunk.js} +0 -0
- /package/dist/scripts/{6355-209045d6ab-lite.chunk.js → 6355-b094015300-lite.chunk.js} +0 -0
- /package/dist/scripts/{6368-9c72ee9376-lite.chunk.js → 6368-6a9ed420a9-lite.chunk.js} +0 -0
- /package/dist/scripts/{6370-90d3d876ed-lite.chunk.js → 6370-c4f7473e59-lite.chunk.js} +0 -0
- /package/dist/scripts/{6378-e747dc3713-lite.chunk.js → 6378-09c20e328f-lite.chunk.js} +0 -0
- /package/dist/scripts/{6381-fb215148eb-lite.chunk.js → 6381-d76fb02bc3-lite.chunk.js} +0 -0
- /package/dist/scripts/{6465-68afbaa317-lite.chunk.js → 6465-55ba71fe18-lite.chunk.js} +0 -0
- /package/dist/scripts/{6493-2c1d2fad27-lite.chunk.js → 6493-91dfaed89b-lite.chunk.js} +0 -0
- /package/dist/scripts/{6507-c65e08d62d-lite.chunk.js → 6507-77aa24197a-lite.chunk.js} +0 -0
- /package/dist/scripts/{6604-9227ea06cb-lite.chunk.js → 6604-76caa07662-lite.chunk.js} +0 -0
- /package/dist/scripts/{6725-db3ff546ed-lite.chunk.js → 6725-f5cc980ddf-lite.chunk.js} +0 -0
- /package/dist/scripts/{6736-a4c7163c83-lite.chunk.js.LICENSE.txt → 6736-d306eea152-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6799-f9e3e21475-lite.chunk.js → 6799-40beaae2e2-lite.chunk.js} +0 -0
- /package/dist/scripts/{6817-e678750e7b-lite.chunk.js → 6817-d02941f1dc-lite.chunk.js} +0 -0
- /package/dist/scripts/{6821-1a3d9933f4-lite.chunk.js → 6821-6d158ed8be-lite.chunk.js} +0 -0
- /package/dist/scripts/{6864-954d04f742-lite.chunk.js → 6864-990435495f-lite.chunk.js} +0 -0
- /package/dist/scripts/{6866-015c932637-lite.chunk.js → 6866-8c14e71004-lite.chunk.js} +0 -0
- /package/dist/scripts/{6873-a24604f442-lite.chunk.js → 6873-b2b8652859-lite.chunk.js} +0 -0
- /package/dist/scripts/{6896-17de0fc356-lite.chunk.js → 6896-15b490e58a-lite.chunk.js} +0 -0
- /package/dist/scripts/{6913-809ca67308-lite.chunk.js → 6913-feeb4f12ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{6930-ed879dbb84-lite.chunk.js → 6930-930fcfd508-lite.chunk.js} +0 -0
- /package/dist/scripts/{7017-ecb254e80b-lite.chunk.js → 7017-d0c8eb5cab-lite.chunk.js} +0 -0
- /package/dist/scripts/{7045-7966adef00-lite.chunk.js → 7045-0d8595fb99-lite.chunk.js} +0 -0
- /package/dist/scripts/{7056-4e8c643e8a-lite.chunk.js → 7056-d5bad4cca0-lite.chunk.js} +0 -0
- /package/dist/scripts/{7112-7bb22c1e5d-lite.chunk.js.LICENSE.txt → 7112-656b8ace68-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7115-155954b937-lite.chunk.js → 7115-f3fa1e8144-lite.chunk.js} +0 -0
- /package/dist/scripts/{7128-e249c51075-lite.chunk.js → 7128-ae06b32e56-lite.chunk.js} +0 -0
- /package/dist/scripts/{7172-54631a79b6-lite.chunk.js → 7172-aad1530f75-lite.chunk.js} +0 -0
- /package/dist/scripts/{7178-f3315a93ac-lite.chunk.js → 7178-803c900f9d-lite.chunk.js} +0 -0
- /package/dist/scripts/{7210-c90ae3e536-lite.chunk.js → 7210-b8444d8d2b-lite.chunk.js} +0 -0
- /package/dist/scripts/{7224-54ab110fc9-lite.chunk.js → 7224-08ee662f3a-lite.chunk.js} +0 -0
- /package/dist/scripts/{7318-197a251f17-lite.chunk.js.LICENSE.txt → 7318-3e30972aa6-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7327-178164fd2c-lite.chunk.js.LICENSE.txt → 7327-c54cce22c9-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7332-2a37cfd165-lite.chunk.js → 7332-a5a85c450a-lite.chunk.js} +0 -0
- /package/dist/scripts/{7385-88708b7dc7-lite.chunk.js → 7385-eb9bd03d1b-lite.chunk.js} +0 -0
- /package/dist/scripts/{7397-638e09f9f9-lite.chunk.js → 7397-0aecde9bd8-lite.chunk.js} +0 -0
- /package/dist/scripts/{7407-bb4273a378-lite.chunk.js → 7407-067f8424eb-lite.chunk.js} +0 -0
- /package/dist/scripts/{7409-4440fe2429-lite.chunk.js → 7409-a35b5e8821-lite.chunk.js} +0 -0
- /package/dist/scripts/{7515-b4383c11dd-lite.chunk.js.LICENSE.txt → 7515-e3606867eb-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7524-0e655127d9-lite.chunk.js → 7524-da9775225d-lite.chunk.js} +0 -0
- /package/dist/scripts/{7706-ce4597c053-lite.chunk.js → 7706-7a33cc41e5-lite.chunk.js} +0 -0
- /package/dist/scripts/{7760-52be95cf5f-lite.chunk.js → 7760-210e9c0abb-lite.chunk.js} +0 -0
- /package/dist/scripts/{7767-7ee6460e21-lite.chunk.js → 7767-50bf2ba942-lite.chunk.js} +0 -0
- /package/dist/scripts/{7831-132530b6d0-lite.chunk.js → 7831-f8ad61f604-lite.chunk.js} +0 -0
- /package/dist/scripts/{7855-6f103b7e6f-lite.chunk.js → 7855-e06f42cec4-lite.chunk.js} +0 -0
- /package/dist/scripts/{7888-b8da8a0df6-lite.chunk.js → 7888-183fef069a-lite.chunk.js} +0 -0
- /package/dist/scripts/{7901-56c72016dc-lite.chunk.js → 7901-26e0bf2a8f-lite.chunk.js} +0 -0
- /package/dist/scripts/{7919-a8fc991bc0-lite.chunk.js.LICENSE.txt → 7919-dc154129bc-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7925-a0e0e07c8a-lite.chunk.js → 7925-15b2b7a8ea-lite.chunk.js} +0 -0
- /package/dist/scripts/{7946-5338d3f1a6-lite.chunk.js → 7946-5c1b99bfa3-lite.chunk.js} +0 -0
- /package/dist/scripts/{7989-1b3277ef7b-lite.chunk.js.LICENSE.txt → 7989-8074e23413-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8025-ac5b25e325-lite.chunk.js → 8025-4066d1b796-lite.chunk.js} +0 -0
- /package/dist/scripts/{8038-be1f63c0ae-lite.chunk.js → 8038-527fd2d9e9-lite.chunk.js} +0 -0
- /package/dist/scripts/{8056-bd14efdd60-lite.chunk.js → 8056-23bc161028-lite.chunk.js} +0 -0
- /package/dist/scripts/{811-20a788c3d1-lite.chunk.js → 811-2ad5495559-lite.chunk.js} +0 -0
- /package/dist/scripts/{8211-18a0f84b39-lite.chunk.js → 8211-4b4d3f64b1-lite.chunk.js} +0 -0
- /package/dist/scripts/{823-7cf3a5d932-lite.chunk.js → 823-67b22c549e-lite.chunk.js} +0 -0
- /package/dist/scripts/{8252-3c0041f6c7-lite.chunk.js → 8252-fee6b467df-lite.chunk.js} +0 -0
- /package/dist/scripts/{8323-52c5386b1c-lite.chunk.js.LICENSE.txt → 8323-4758458f70-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8339-de192f2de3-lite.chunk.js → 8339-c42a11f456-lite.chunk.js} +0 -0
- /package/dist/scripts/{8383-251337fd22-lite.chunk.js → 8383-2af00acfef-lite.chunk.js} +0 -0
- /package/dist/scripts/{8417-5242352c5f-lite.chunk.js → 8417-74553faa0f-lite.chunk.js} +0 -0
- /package/dist/scripts/{8466-a003c0888c-lite.chunk.js → 8466-02ecb82f72-lite.chunk.js} +0 -0
- /package/dist/scripts/{8618-257f6e3dda-lite.chunk.js → 8618-1a69d2c03f-lite.chunk.js} +0 -0
- /package/dist/scripts/{8621-baf66fcdf3-lite.chunk.js → 8621-5617976017-lite.chunk.js} +0 -0
- /package/dist/scripts/{8627-8be91b5de7-lite.chunk.js → 8627-62854c4b2b-lite.chunk.js} +0 -0
- /package/dist/scripts/{872-8ef611a8fe-lite.chunk.js → 872-35741d1bd2-lite.chunk.js} +0 -0
- /package/dist/scripts/{8729-0bae4e666f-lite.chunk.js → 8729-8cecaab9e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{8745-2ee7b75367-lite.chunk.js → 8745-b8d32e4f7d-lite.chunk.js} +0 -0
- /package/dist/scripts/{8772-7e2d8dcfa6-lite.chunk.js → 8772-b0f9b51a3b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8779-3cfacdec9e-lite.chunk.js → 8779-5de7c42c5b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8801-ef6dd3280c-lite.chunk.js → 8801-87db9de3b1-lite.chunk.js} +0 -0
- /package/dist/scripts/{8820-fdcbf49a5e-lite.chunk.js → 8820-a196be316d-lite.chunk.js} +0 -0
- /package/dist/scripts/{8868-712a4fd410-lite.chunk.js → 8868-cd9c012d8b-lite.chunk.js} +0 -0
- /package/dist/scripts/{8955-708253f7a5-lite.chunk.js → 8955-9cce69dbbf-lite.chunk.js} +0 -0
- /package/dist/scripts/{9001-8ce18e9b0e-lite.chunk.js → 9001-63fc27bf19-lite.chunk.js} +0 -0
- /package/dist/scripts/{9005-e8c644afac-lite.chunk.js → 9005-8923bfc68b-lite.chunk.js} +0 -0
- /package/dist/scripts/{9016-e887483d55-lite.chunk.js → 9016-d6805dab50-lite.chunk.js} +0 -0
- /package/dist/scripts/{9019-d9cf955461-lite.chunk.js → 9019-b94b34bc98-lite.chunk.js} +0 -0
- /package/dist/scripts/{9060-e6d0dd2e0b-lite.chunk.js → 9060-6e70999adf-lite.chunk.js} +0 -0
- /package/dist/scripts/{913-dbead2d4b6-lite.chunk.js → 913-bea49889fa-lite.chunk.js} +0 -0
- /package/dist/scripts/{9133-d4ce080c82-lite.chunk.js → 9133-b9b0a82522-lite.chunk.js} +0 -0
- /package/dist/scripts/{9154-9fffcadcb4-lite.chunk.js → 9154-f8112e2a74-lite.chunk.js} +0 -0
- /package/dist/scripts/{9242-ff456fa084-lite.chunk.js → 9242-e2939fe724-lite.chunk.js} +0 -0
- /package/dist/scripts/{9264-088ecf0d4a-lite.chunk.js → 9264-81b4c39c99-lite.chunk.js} +0 -0
- /package/dist/scripts/{9273-4947c171b5-lite.chunk.js → 9273-cfde55f1dc-lite.chunk.js} +0 -0
- /package/dist/scripts/{9478-de13889add-lite.chunk.js.LICENSE.txt → 9312-19d783e4f4-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9325-fcdbccf47a-lite.chunk.js → 9325-0986db8bf8-lite.chunk.js} +0 -0
- /package/dist/scripts/{polyfills-35ba3904b7.min.js.LICENSE.txt → 9478-96eae7ba8d-lite.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9552-cc19aaf243-lite.chunk.js → 9552-1d42c7034a-lite.chunk.js} +0 -0
- /package/dist/scripts/{9798-9f5c6b14b3-lite.chunk.js → 9798-134db51736-lite.chunk.js} +0 -0
- /package/dist/scripts/{9880-1f790204b0-lite.chunk.js → 9880-cf6dc7eb6e-lite.chunk.js} +0 -0
- /package/dist/scripts/{9979-23d43b34b2-lite.chunk.js → 9979-46d5517772-lite.chunk.js} +0 -0
- /package/dist/scripts/{bundle-e9f10cf9fd.min.js.LICENSE.txt → bundle-5efad6d817.min.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{pdf.worker.entry-cdaf8e504d.min.worker.js.LICENSE.txt → pdf.worker.entry-ca5de1d631.min.worker.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 7327-
|
|
1
|
+
/*! For license information please see 7327-c54cce22c9-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7327],{17327:e=>{var t;window,t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"./src/index.js":function(e,t,n){"use strict";n.r(t),n("./src/sass/index.scss");var r=n("./src/js/init.js").default.init;"undefined"!=typeof window&&(window.printJS=r),t.default=r},"./src/js/browser.js":function(e,t,n){"use strict";n.r(t);var r={isFirefox:function(){return"undefined"!=typeof InstallTrigger},isIE:function(){return-1!==navigator.userAgent.indexOf("MSIE")||!!document.documentMode},isEdge:function(){return!r.isIE()&&!!window.StyleMedia},isChrome:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return!!e.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||-1!==navigator.userAgent.toLowerCase().indexOf("safari")},isIOSChrome:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("crios")}};t.default=r},"./src/js/functions.js":function(e,t,n){"use strict";n.r(t),n.d(t,"addWrapper",(function(){return a})),n.d(t,"capitalizePrint",(function(){return l})),n.d(t,"collectStyles",(function(){return s})),n.d(t,"addHeader",(function(){return c})),n.d(t,"cleanUp",(function(){return u})),n.d(t,"isRawHTML",(function(){return f}));var r=n("./src/js/modal.js"),i=n("./src/js/browser.js");function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){return'<div style="font-family:'+t.font+" !important; font-size: "+t.font_size+' !important; width:100%;">'+e+"</div>"}function l(e){return e.charAt(0).toUpperCase()+e.slice(1)}function s(e,t){for(var n="",r=(document.defaultView||window).getComputedStyle(e,""),i=0;i<r.length;i++)(-1!==t.targetStyles.indexOf("*")||-1!==t.targetStyle.indexOf(r[i])||d(t.targetStyles,r[i]))&&r.getPropertyValue(r[i])&&(n+=r[i]+":"+r.getPropertyValue(r[i])+";");return n+"max-width: "+t.maxWidth+"px !important; font-size: "+t.font_size+" !important;"}function d(e,t){for(var n=0;n<e.length;n++)if("object"===o(t)&&-1!==t.indexOf(e[n]))return!0;return!1}function c(e,t){var n=document.createElement("div");if(f(t.header))n.innerHTML=t.header;else{var r=document.createElement("h1"),i=document.createTextNode(t.header);r.appendChild(i),r.setAttribute("style",t.headerStyle),n.appendChild(r)}e.insertBefore(n,e.childNodes[0])}function u(e){e.showModal&&r.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var t="mouseover";(i.default.isChrome()||i.default.isFirefox())&&(t="focus"),window.addEventListener(t,(function n(){window.removeEventListener(t,n),e.onPrintDialogClose();var r=document.getElementById(e.frameId);r&&r.remove()}))}function f(e){return new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>").test(e)}},"./src/js/html.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/functions.js"),i=n("./src/js/print.js");function o(e,t){for(var n=e.cloneNode(),i=Array.prototype.slice.call(e.childNodes),a=0;a<i.length;a++)if(-1===t.ignoreElements.indexOf(i[a].id)){var l=o(i[a],t);n.appendChild(l)}switch(t.scanStyles&&1===e.nodeType&&n.setAttribute("style",Object(r.collectStyles)(e,t)),e.tagName){case"SELECT":n.value=e.value;break;case"CANVAS":n.getContext("2d").drawImage(e,0,0)}return n}t.default={print:function(e,t){var n=document.getElementById(e.printable);n?(e.printableElement=o(n,e),e.header&&Object(r.addHeader)(e.printableElement,e),i.default.send(e,t)):window.console.error("Invalid HTML element id: "+e.printable)}}},"./src/js/image.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/functions.js"),i=n("./src/js/print.js"),o=n("./src/js/browser.js");t.default={print:function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement("div"),e.printable.forEach((function(t){var n=document.createElement("img");if(n.setAttribute("style",e.imageStyle),n.src=t,o.default.isFirefox()){var r=n.src;n.src=r}var i=document.createElement("div");i.appendChild(n),e.printableElement.appendChild(i)})),e.header&&Object(r.addHeader)(e.printableElement,e),i.default.send(e,t)}}},"./src/js/init.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/browser.js"),i=n("./src/js/modal.js"),o=n("./src/js/pdf.js"),a=n("./src/js/html.js"),l=n("./src/js/raw-html.js"),s=n("./src/js/image.js"),d=n("./src/js/json.js");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=["pdf","html","image","json","raw-html"];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},t=arguments[0];if(void 0===t)throw new Error("printJS expects at least 1 attribute.");switch(c(t)){case"string":e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case"object":for(var n in e.printable=t.printable,e.fallbackPrintable=void 0!==t.fallbackPrintable?t.fallbackPrintable:e.printable,e.fallbackPrintable=e.base64?"data:application/pdf;base64,".concat(e.fallbackPrintable):e.fallbackPrintable,e)"printable"!==n&&"fallbackPrintable"!==n&&(e[n]=void 0!==t[n]?t[n]:e[n]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+c(t))}if(!e.printable)throw new Error("Missing printable information.");if(!e.type||"string"!=typeof e.type||-1===u.indexOf(e.type.toLowerCase()))throw new Error("Invalid print type. Available types are: pdf, html, image and json.");e.showModal&&i.default.show(e),e.onLoadingStart&&e.onLoadingStart();var f=document.getElementById(e.frameId);f&&f.parentNode.removeChild(f);var p=document.createElement("iframe");switch(r.default.isFirefox()?p.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):p.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),p.setAttribute("id",e.frameId),"pdf"!==e.type&&(p.srcdoc="<html><head><title>"+e.documentTitle+"</title>",e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach((function(e){p.srcdoc+='<link rel="stylesheet" href="'+e+'">'}))),p.srcdoc+="</head><body></body></html>"),e.type){case"pdf":if(r.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var b=window.open(e.fallbackPrintable,"_blank");b.focus(),e.onIncompatibleBrowser()}catch(t){e.onError(t)}finally{e.showModal&&i.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else o.default.print(e,p);break;case"image":s.default.print(e,p);break;case"html":a.default.print(e,p);break;case"raw-html":l.default.print(e,p);break;case"json":d.default.print(e,p)}}}},"./src/js/json.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/functions.js"),i=n("./src/js/print.js");function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.default={print:function(e,t){if("object"!==o(e.printable))throw new Error("Invalid javascript data object (JSON).");if("boolean"!=typeof e.repeatTableHeader)throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!e.properties||!Array.isArray(e.properties))throw new Error("Invalid properties array for your JSON data.");e.properties=e.properties.map((function(t){return{field:"object"===o(t)?t.field:t,displayName:"object"===o(t)?t.displayName:t,columnSize:"object"===o(t)&&t.columnSize?t.columnSize+";":100/e.properties.length+"%;"}})),e.printableElement=document.createElement("div"),e.header&&Object(r.addHeader)(e.printableElement,e),e.printableElement.innerHTML+=function(e){var t=e.printable,n=e.properties,i='<table style="border-collapse: collapse; width: 100%;">';e.repeatTableHeader&&(i+="<thead>"),i+="<tr>";for(var o=0;o<n.length;o++)i+='<th style="width:'+n[o].columnSize+";"+e.gridHeaderStyle+'">'+Object(r.capitalizePrint)(n[o].displayName)+"</th>";i+="</tr>",e.repeatTableHeader&&(i+="</thead>"),i+="<tbody>";for(var a=0;a<t.length;a++){i+="<tr>";for(var l=0;l<n.length;l++){var s=t[a],d=n[l].field.split(".");if(d.length>1)for(var c=0;c<d.length;c++)s=s[d[c]];else s=s[n[l].field];i+='<td style="width:'+n[l].columnSize+e.gridStyle+'">'+s+"</td>"}i+="</tr>"}return i+"</tbody></table>"}(e),i.default.send(e,t)}}},"./src/js/modal.js":function(e,t,n){"use strict";n.r(t);var r={show:function(e){var t=document.createElement("div");t.setAttribute("style","font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;"),t.setAttribute("id","printJS-Modal");var n=document.createElement("div");n.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var i=document.createElement("div");i.setAttribute("class","printClose"),i.setAttribute("id","printClose"),n.appendChild(i);var o=document.createElement("span");o.setAttribute("class","printSpinner"),n.appendChild(o);var a=document.createTextNode(e.modalMessage);n.appendChild(a),t.appendChild(n),document.getElementsByTagName("body")[0].appendChild(t),document.getElementById("printClose").addEventListener("click",(function(){r.close()}))},close:function(){var e=document.getElementById("printJS-Modal");e&&e.parentNode.removeChild(e)}};t.default=r},"./src/js/pdf.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/print.js"),i=n("./src/js/functions.js");function o(e,t,n){var i=new window.Blob([n],{type:"application/pdf"});i=window.URL.createObjectURL(i),t.setAttribute("src",i),r.default.send(e,t)}t.default={print:function(e,t){if(e.base64){var n=Uint8Array.from(atob(e.printable),(function(e){return e.charCodeAt(0)}));o(e,t,n)}else{e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+("/"!==e.printable.charAt(0)?"/"+e.printable:e.printable);var r=new window.XMLHttpRequest;r.responseType="arraybuffer",r.addEventListener("error",(function(){Object(i.cleanUp)(e),e.onError(r.statusText)})),r.addEventListener("load",(function(){if(-1===[200,201].indexOf(r.status))return Object(i.cleanUp)(e),void e.onError(r.statusText);o(e,t,r.response)})),r.open("GET",e.printable,!0),r.send()}}}},"./src/js/print.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/browser.js"),i=n("./src/js/functions.js"),o={send:function(e,t){document.getElementsByTagName("body")[0].appendChild(t);var n=document.getElementById(e.frameId);n.onload=function(){if("pdf"!==e.type){var t=n.contentWindow||n.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),"pdf"!==e.type&&e.style){var i=document.createElement("style");i.innerHTML=e.style,t.head.appendChild(i)}var o=t.getElementsByTagName("img");o.length>0?function(e){var t=e.map((function(e){if(e.src&&e.src!==window.location.href)return function(e){return new Promise((function(t){!function n(){e&&void 0!==e.naturalWidth&&0!==e.naturalWidth&&e.complete?t():setTimeout(n,500)}()}))}(e)}));return Promise.all(t)}(Array.from(o)).then((function(){return a(n,e)})):a(n,e)}else r.default.isFirefox()?setTimeout((function(){return a(n,e)}),1e3):a(n,e)}}};function a(e,t){try{if(e.focus(),r.default.isEdge()||r.default.isIE())try{e.contentWindow.document.execCommand("print",!1,null)}catch(t){e.contentWindow.print()}else e.contentWindow.print()}catch(e){t.onError(e)}finally{r.default.isFirefox()&&(e.style.visibility="hidden",e.style.left="-1px"),Object(i.cleanUp)(t)}}t.default=o},"./src/js/raw-html.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/js/print.js");t.default={print:function(e,t){e.printableElement=document.createElement("div"),e.printableElement.setAttribute("style","width:100%"),e.printableElement.innerHTML=e.printable,r.default.send(e,t)}}},"./src/sass/index.scss":function(e,t,n){},0:function(e,t,n){e.exports=n("./src/index.js")}}).default},e.exports=t()}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! For license information please see 7515-
|
|
1
|
+
/*! For license information please see 7515-e3606867eb-lite.chunk.js.LICENSE.txt */
|
|
2
2
|
(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7515],{99882:(e,t,r)=>{"use strict";r.d(t,{U:()=>h});var n,o=r(1024),a=r.n(o),i=r(59087),c=r(23481);!function(e){e.ShowDetails="show-details",e.EmailedUsers="emailed-students",e.EmailedAdmin="emailed-admin"}(n||(n={}));var u=r(83345),s=r(76881),l=r(69883),f="userManager.userCreatedSuccess";function p(e){return a().createElement("div",{className:"d-flex justify-content-center w-50 mx-auto pb-3"},a().createElement("img",{src:e.emailSentImageUrl,alt:"",role:"presentation",className:"w-100"}))}function d(e){return a().createElement(a().Fragment,null,a().createElement("p",null,a().createElement(u.x,{phrase:"userDetailsInfo"})),a().createElement("p",{className:"mb-0 font-weight-500"},a().createElement(u.x,{phrase:"username"})),a().createElement("p",null,e.creationResponse.username),a().createElement("p",{className:"mb-0 font-weight-500"},a().createElement(u.x,{phrase:"password"})),a().createElement("p",null,e.creationResponse.password))}function y(e){return a().createElement(a().Fragment,null,a().createElement(p,Object.assign({},e)),a().createElement("p",null,a().createElement(u.x,{phrase:"emailedAdminInfo"})))}function m(e){return a().createElement(a().Fragment,null,a().createElement(p,Object.assign({},e)),a().createElement("p",null,a().createElement(u.x,{phrase:"emailedUsersInfo",options:{smartCount:e.creationResponse.isBulk?2:1}})))}function h(e){var t=(0,l.Z)(),r=a().useMemo((function(){return e.creationResponse.isBulk||e.userType!==s.Y.Learner?e.userType===s.Y.Staff?n.EmailedUsers:n.EmailedAdmin:n.ShowDetails}),[e.creationResponse]);if(!r)return a().createElement(a().Fragment,null);var o=function(){switch(r){case n.ShowDetails:return a().createElement(d,Object.assign({},e));case n.EmailedAdmin:return a().createElement(y,Object.assign({},e));case n.EmailedUsers:return a().createElement(m,Object.assign({},e))}}();return a().createElement(u.D.Provider,{value:f},o,a().createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3"},r===n.ShowDetails?a().createElement(i,{onCopy:function(){t.success(c.T.getPhrase(f,"copied")),e.onClose()},text:"".concat(e.creationResponse.username," - ").concat(e.creationResponse.password)},a().createElement("button",{className:"btn btn-dark"},a().createElement(u.x,{phrase:"copy"}))):a().createElement("button",{onClick:e.onClose,className:"btn btn-dark"},a().createElement(u.x,{phrase:"okay"}))))}},26656:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CreateUserView:()=>k});var n=r(1024),o=r(58566),a=r(20354),i=r(23481),c=r(57900),u=r(49985),s=r(9111),l=r(69883),f=r(31949),p=r(76881),d=r(86613),y=r(39872),m=r(35045),h=r(99882),v=r(43820),g=r(26055),b=r(39739),w=r(99742),E=r(706);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function O(){O=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),c=new P(o||[]);return n(i,"_invoke",{value:E(e,r,c)}),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f={};function p(){}function d(){}function y(){}var m={};u(m,a,(function(){return this}));var h=Object.getPrototypeOf,v=h&&h(h(k([])));v&&v!==t&&r.call(v,a)&&(m=v);var g=y.prototype=p.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(n,a,i,c){var u=l(e[n],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==x(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(f).then((function(e){s.value=e,i(s)}),(function(e){return o("throw",e,i,c)}))}c(u.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function E(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return{value:void 0,done:!0}}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=C(i,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function C(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=y,n(g,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:d,configurable:!0}),d.displayName=u(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,i,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new w(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(g),u(g,c,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=k,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw o}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var j="_cv:create:next:user";function P(e,t){return{firstName:"",email:"",surname:"",username:"",userType:e,customerId:t.customerId,masterYearGroup:null,masterRole:d.i.User,requirePasswordChange:!1,generatePassword:e===p.Y.Learner,password:"",displayName:null}}function k(e){var t=C(n.useState(!!c.SG.get(j)),2),r=t[0],d=t[1],x=C(n.useState(null),2),S=x[0],k=x[1],T=(0,l.Z)(),L=(0,o.useDispatch)(),_=a.a.useGetFetchAsync(),N=a.a.useBasicFetch(f.N.currentUser()),D=a.a.useBasicFetch(N.data&&y.N.yearGroups(N.data.customerId)),A=a.a.useBasicFetch(N.data&&E.F.getCustomerSecuritySettings(N.data.customerId)),R=e.userType===p.Y.Staff?"userManager.createStaff":"userManager.createStudent",U=i.T.encloseNamespace(R);function I(t){var r=b.P.formatCreateOrValidateUserRequest([t],e.userType,N.data.customerId);return _(y.N.bulkValidate(r))}var F=U(S?"titleSuccess":"titleCreating"),G=!!N.data&&!!A.data&&!!D.data;return n.createElement(g.A.Provider,{value:v.a.Primary},n.createElement(s.G,{closePopup:e.closePopup,title:F,showLoadingSpinner:!G},G?S?n.createElement(h.U,{onClose:function(){k(null),r||e.closePopup()},creationResponse:S,emailSentImageUrl:w.W.EMAIL_SENT,userType:e.userType}):n.createElement(m.H,{onSubmit:function(t,n){return o=this,i=void 0,c=void 0,s=O().mark((function o(){var i,c;return O().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,I(t);case 2:if(i=o.sent,b.P.handleAsyncErrors(i,t,null,n)){o.next=6;break}return o.abrupt("return");case 6:c=b.P.formatCreateOrValidateUserRequest([t],e.userType,N.data.customerId),a.a.fetch(L,y.N.createUsers(c,null,(function(o){u.k.logUserAction(c,e.analyticsOptions),r&&n({reset:!0}),k(Object.assign(Object.assign({},o),{password:t.password||o.password,isBulk:!1}))}),(function(){T.error(U("error")),e.closePopup()})));case 8:case"end":return o.stop()}}),o)})),new(c||(c=Promise))((function(e,t){function r(e){try{a(s.next(e))}catch(e){t(e)}}function n(e){try{a(s.throw(e))}catch(e){t(e)}}function a(t){var o;t.done?e(t.value):(o=t.value,o instanceof c?o:new c((function(e){e(o)}))).then(r,n)}a((s=s.apply(o,i||[])).next())}));var o,i,c,s},userType:e.userType,onClickCancel:e.closePopup,yearGroups:D.data,initialValues:P(e.userType,N.data),currentUser:N.data,onToggleNextCheckbox:function(){return d((function(e){return c.SG.set(j,!e),!e}))},shouldGoToNext:r,goToNextText:U("createNext"),showPasswordField:e.userType===p.Y.Learner,emailRequired:e.userType===p.Y.Staff,submitText:U("submit"),showDisplayNameField:e.userType===p.Y.Staff,passwordPolicy:A.data}):n.createElement(n.Fragment,null)))}},91969:(e,t,r)=>{"use strict";var n=r(47033),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,a,i,c,u,s,l=!1;t||(t={}),r=t.debug||!1;try{if(i=n(),c=document.createRange(),u=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))})),document.body.appendChild(s),c.selectNodeContents(s),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}},44818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var n=a(r(1024)),o=a(r(91969));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?p(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var m=function(e){function t(){var e,r;u(this,t);for(var a=arguments.length,i=new Array(a),c=0;c<a;c++)i[c]=arguments[c];return y(p(r=l(this,(e=f(t)).call.apply(e,[this].concat(i)))),"onClick",(function(e){var t=r.props,a=t.text,i=t.onCopy,c=t.children,u=t.options,s=n.default.Children.only(c),l=(0,o.default)(a,u);i&&i(a,l),s&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(e)})),r}var r,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),r=t,a=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),r=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["text","onCopy","options","children"]),o=n.default.Children.only(t);return n.default.cloneElement(o,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(r,!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{onClick:this.onClick}))}}],a&&s(r.prototype,a),t}(n.default.PureComponent);t.CopyToClipboard=m,y(m,"defaultProps",{onCopy:void 0,options:void 0})},59087:(e,t,r)=>{"use strict";var n=r(44818).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},47033:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach((function(t){e.addRange(t)})),t&&t.focus()}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[754],{20455:(e,t,n)=>{n.d(t,{LB:()=>qe,y9:()=>ct,g4:()=>re,Lg:()=>se,we:()=>ve,pE:()=>I,ey:()=>N,VK:()=>B,_8:()=>E,hI:()=>X,Cj:()=>Ge,O1:()=>_e,Zj:()=>Ze,VT:()=>b,Dy:()=>m});var r=n(1024),o=n.n(r),i=n(30314),a=n(17592);const l={display:"none"};function s(e){let{id:t,value:n}=e;return o().createElement("div",{id:t,style:l},n)}const c={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function u(e){let{id:t,announcement:n}=e;return o().createElement("div",{id:t,style:c,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const d=(0,r.createContext)(null),f={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},v={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function g(e){let{announcements:t=v,container:n,hiddenTextDescribedById:l,screenReaderInstructions:c=f}=e;const{announce:g,announcement:h}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),p=(0,a.Ld)("DndLiveRegion"),[b,m]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{m(!0)}),[]),function(e){const t=(0,r.useContext)(d);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;g(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&g(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;g(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;g(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;g(t.onDragCancel({active:n,over:r}))}})),[g,t])),!b)return null;const y=o().createElement(o().Fragment,null,o().createElement(s,{id:l,value:c.draggable}),o().createElement(u,{id:p,announcement:h}));return n?(0,i.createPortal)(y,n):y}var h;function p(){}function b(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(h||(h={}));const y=Object.freeze({x:0,y:0});function w(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function x(e,t){const n=(0,a.DC)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function C(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function R(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function D(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function E(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function S(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=S(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=w(S(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(C)},N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=D(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=D(r),a=o.reduce(((e,t,r)=>e+w(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(C)};function M(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const k=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=M(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(R)};function O(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:y}function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const T=L(1);function A(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const j={ignoreTransform:!1};function B(e,t){void 0===t&&(t=j);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=(0,a.Jj)(e),{transform:r,transformOrigin:o}=t(e);r&&(n=function(e,t,n){const r=A(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,r,o))}const{top:r,left:o,width:i,height:l,bottom:s,right:c}=n;return{top:r,left:o,width:i,height:l,bottom:s,right:c}}function z(e){return B(e,{ignoreTransform:!0})}function X(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,a.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,a.Re)(o)||(0,a.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:i}=(0,a.Jj)(o),l=i(o);return o!==e&&function(e,t){void 0===t&&(t=(0,a.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,l)&&n.push(o),function(e,t){return void 0===t&&(t=(0,a.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,l)?n:r(o.parentNode)}(e):n}function F(e){const[t]=X(e,1);return null!=t?t:null}function P(e){return a.Nq&&e?(0,a.FJ)(e)?e:(0,a.UG)(e)?(0,a.qk)(e)||e===(0,a.r3)(e).scrollingElement?window:(0,a.Re)(e)?e:null:null:null}function Y(e){return(0,a.FJ)(e)?e.scrollX:e.scrollLeft}function J(e){return(0,a.FJ)(e)?e.scrollY:e.scrollTop}function U(e){return{x:Y(e),y:J(e)}}var H;function K(e){return!(!a.Nq||!e)&&e===document.scrollingElement}function q(e){const t={x:0,y:0},n=K(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(H||(H={}));const $={x:.2,y:.2};function W(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=$);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=q(e),v={x:0,y:0},g={x:0,y:0},h=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+h?(v.y=H.Backward,g.y=r*Math.abs((t.top+h-i)/h)):!u&&s>=t.bottom-h&&(v.y=H.Forward,g.y=r*Math.abs((t.bottom-h-s)/h)),!f&&l>=t.right-p?(v.x=H.Forward,g.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(v.x=H.Backward,g.x=r*Math.abs((t.left+p-a)/p)),{direction:v,speed:g}}function _(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function G(e){return e.reduce(((e,t)=>(0,a.IH)(e,U(t))),y)}function V(e,t){if(void 0===t&&(t=B),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);F(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Z=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Y(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+J(t)),0)}]];class Q{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=X(t),r=G(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Z)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ee{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function te(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ne,re;function oe(e){e.preventDefault()}function ie(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ne||(ne={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(re||(re={}));const ae={start:[re.Space,re.Enter],cancel:[re.Esc],end:[re.Space,re.Enter]},le=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case re.Right:return{...n,x:n.x+25};case re.Left:return{...n,x:n.x-25};case re.Down:return{...n,y:n.y+25};case re.Up:return{...n,y:n.y-25}}};class se{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ee((0,a.r3)(t)),this.windowListeners=new ee((0,a.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ne.Resize,this.handleCancel),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ne.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&V(n),t(y)}handleKeyDown(e){if((0,a.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=ae,coordinateGetter:i=le,scrollBehavior:l="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:y;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,a.$X)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=q(n),v=_(n),g={x:Math.min(o===re.Right?v.right-v.width/2:v.right,Math.max(o===re.Right?v.left:v.left+v.width/2,d.x)),y:Math.min(o===re.Down?v.bottom-v.height/2:v.bottom,Math.max(o===re.Down?v.top:v.top+v.height/2,d.y))},h=o===re.Right&&!a||o===re.Left&&!s,p=o===re.Down&&!c||o===re.Up&&!i;if(h&&g.x!==d.x){const e=n.scrollLeft+t.x,i=o===re.Right&&e<=u.x||o===re.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===re.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&g.y!==d.y){const e=n.scrollTop+t.y,i=o===re.Down&&e<=u.y||o===re.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===re.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,a.IH)((0,a.$X)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ce(e){return Boolean(e&&"distance"in e)}function ue(e){return Boolean(e&&"delay"in e)}se.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ae,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class de{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,a.Jj)(e);return e instanceof t?e:(0,a.r3)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=(0,a.r3)(i),this.documentListeners=new ee(this.document),this.listeners=new ee(n),this.windowListeners=new ee((0,a.Jj)(i)),this.initialCoordinates=null!=(r=(0,a.DC)(o))?r:y,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ne.Resize,this.handleCancel),this.windowListeners.add(ne.DragStart,oe),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),this.windowListeners.add(ne.ContextMenu,oe),this.documentListeners.add(ne.Keydown,this.handleKeydown),t){if(ce(t))return;if(ue(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ne.Click,ie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ne.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,a.DC)(e))?t:y,c=(0,a.$X)(r,s);if(!n&&l){if(ue(l))return te(c,l.tolerance)?this.handleCancel():void 0;if(ce(l))return null!=l.tolerance&&te(c,l.tolerance)?this.handleCancel():te(c,l.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===re.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const fe={move:{name:"pointermove"},end:{name:"pointerup"}};class ve extends de{constructor(e){const{event:t}=e,n=(0,a.r3)(t.target);super(e,fe,n)}}ve.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const ge={move:{name:"mousemove"},end:{name:"mouseup"}};var he;!function(e){e[e.RightClick=2]="RightClick"}(he||(he={})),class extends de{constructor(e){super(e,ge,(0,a.r3)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==he.RightClick&&(null==r||r({event:n}),!0)}}];const pe={move:{name:"touchmove"},end:{name:"touchend"}};var be,me;(class extends de{constructor(e){super(e,pe)}static setup(){return window.addEventListener(pe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(pe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(be||(be={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(me||(me={}));const ye={x:{[H.Backward]:!1,[H.Forward]:!1},y:{[H.Backward]:!1,[H.Forward]:!1}};var we,xe;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(we||(we={})),function(e){e.Optimized="optimized"}(xe||(xe={}));const Ce=new Map;function Re(e,t){return(0,a.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function De(e){let{callback:t,disabled:n}=e;const o=(0,a.zX)(t),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Ee(e){return new Q(B(e),e)}function Se(e,t,n){void 0===t&&(t=Ee);const[o,i]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),l=function(e){let{callback:t,disabled:n}=e;const o=(0,a.zX)(t),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),s=De({callback:i});return(0,a.LI)((()=>{i(),e?(null==s||s.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())}),[e]),o}const Ie=[];function Ne(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==y;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,a.$X)(e,n.current):y}function Me(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const ke=[];function Oe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,a.Re)(t)?t:e}const Le=[{sensor:ve,options:{}},{sensor:se,options:{}}],Te={current:{}},Ae={draggable:{measure:z},droppable:{measure:z,strategy:we.WhileDragging,frequency:xe.Optimized},dragOverlay:{measure:B}};class je extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Be={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new je,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:p},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ae,measureDroppableContainers:p,windowRect:null,measuringScheduled:!1},ze={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:p,draggableNodes:new Map,over:null,measureDroppableContainers:p},Xe=(0,r.createContext)(ze),Fe=(0,r.createContext)(Be);function Pe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new je}}}function Ye(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new je(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case h.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new je(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case h.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new je(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Je(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:i}=(0,r.useContext)(Xe),l=(0,a.D9)(o),s=(0,a.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=s){if(!(0,a.vd)(l))return;if(document.activeElement===l.target)return;const e=i.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,a.so)(e);if(t){t.focus();break}}}))}}),[o,t,i,s,l]),null}function Ue(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const He=(0,r.createContext)({...y,scaleX:1,scaleY:1});var Ke;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ke||(Ke={}));const qe=(0,r.memo)((function(e){var t,n,l,s;let{id:c,accessibility:u,autoScroll:f=!0,children:v,sensors:p=Le,collisionDetection:b=k,measuring:m,modifiers:w,...x}=e;const C=(0,r.useReducer)(Ye,void 0,Pe),[R,D]=C,[S,I]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[N,M]=(0,r.useState)(Ke.Uninitialized),L=N===Ke.Initialized,{draggable:{active:A,nodes:j,translate:z},droppable:{containers:Y}}=R,J=A?j.get(A):null,q=(0,r.useRef)({initial:null,translated:null}),$=(0,r.useMemo)((()=>{var e;return null!=A?{id:A,data:null!=(e=null==J?void 0:J.data)?e:Te,rect:q}:null}),[A,J]),_=(0,r.useRef)(null),[V,Z]=(0,r.useState)(null),[ee,te]=(0,r.useState)(null),ne=(0,a.Ey)(x,Object.values(x)),re=(0,a.Ld)("DndDescribedBy",c),oe=(0,r.useMemo)((()=>Y.getEnabled()),[Y]),ie=(ae=m,(0,r.useMemo)((()=>({draggable:{...Ae.draggable,...null==ae?void 0:ae.draggable},droppable:{...Ae.droppable,...null==ae?void 0:ae.droppable},dragOverlay:{...Ae.dragOverlay,...null==ae?void 0:ae.dragOverlay}})),[null==ae?void 0:ae.draggable,null==ae?void 0:ae.droppable,null==ae?void 0:ae.dragOverlay]));var ae;const{droppableRects:le,measureDroppableContainers:se,measuringScheduled:ce}=function(e,t){let{dragging:n,dependencies:o,config:i}=t;const[l,s]=(0,r.useState)(null),c=null!=l,{frequency:u,measure:d,strategy:f}=i,v=(0,r.useRef)(e),g=function(){switch(f){case we.Always:return!1;case we.BeforeDragging:return n;default:return!n}}(),h=(0,a.Ey)(g),p=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||s((t=>t?t.concat(e):e))}),[h]),b=(0,r.useRef)(null),m=(0,a.Gj)((t=>{if(g&&!n)return Ce;const r=l;if(!t||t===Ce||v.current!==e||null!=r){const t=new Map;for(let n of e){if(!n)continue;if(r&&r.length>0&&!r.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new Q(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,l,n,g,d]);return(0,r.useEffect)((()=>{v.current=e}),[e]),(0,r.useEffect)((()=>{g||requestAnimationFrame((()=>p()))}),[n,g]),(0,r.useEffect)((()=>{c&&s(null)}),[c]),(0,r.useEffect)((()=>{g||"number"!=typeof u||null!==b.current||(b.current=setTimeout((()=>{p(),b.current=null}),u))}),[u,g,p,...o]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:c}}(oe,{dragging:L,dependencies:[z.x,z.y],config:ie.droppable}),ue=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,a.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(j,A),de=(0,r.useMemo)((()=>ee?(0,a.DC)(ee):null),[ee]),fe=function(){const e=!1===(null==V?void 0:V.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,n=L&&!e&&!t;return"object"==typeof f?{...f,enabled:n}:{enabled:n}}(),ve=function(e,t){return Re(e,t)}(ue,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:i=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:c}="boolean"==typeof i?{x:i,y:i}:i;(0,a.LI)((()=>{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=O(n(e),o);if(s||(r.x=0),c||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=F(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,c,o,n])}({activeNode:A?j.get(A):null,config:fe.layoutShiftCompensation,initialRect:ve,measure:ie.draggable.measure});const ge=Se(ue,ie.draggable.measure,ve),he=Se(ue?ue.parentElement:null),pe=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:le,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),xe=Y.getNodeFor(null==(t=pe.current.over)?void 0:t.id),Ee=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),i=(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,a.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t]),l=De({callback:i}),s=(0,r.useCallback)((e=>{const n=Oe(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),o(n?t(n):null)}),[t,l]),[c,u]=(0,a.wm)(s);return(0,r.useMemo)((()=>({nodeRef:c,rect:n,setRef:u})),[n,c,u])}({measure:ie.dragOverlay.measure}),je=null!=(n=Ee.nodeRef.current)?n:ue,Be=L?null!=(l=Ee.rect)?l:ge:null,ze=Boolean(Ee.nodeRef.current&&Ee.rect),qe=O($e=ze?null:ge,Re($e));var $e;const We=Me(je?(0,a.Jj)(je):null),_e=function(e){const t=(0,r.useRef)(e),n=(0,a.Gj)((n=>e?n&&n!==Ie&&e&&t.current&&e.parentNode===t.current.parentNode?n:X(e):Ie),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(L?null!=xe?xe:ue:null),Ge=function(e,t){void 0===t&&(t=B);const[n]=e,o=Me(n?(0,a.Jj)(n):null),[i,l]=(0,r.useReducer)((function(){return e.length?e.map((e=>K(e)?o:new Q(t(e),e))):ke}),ke),s=De({callback:l});return e.length>0&&i===ke&&l(),(0,a.LI)((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),l())}),[e]),i}(_e),Ve=Ue(w,{transform:{x:z.x-qe.x,y:z.y-qe.y,scaleX:1,scaleY:1},activatorEvent:ee,active:$,activeNodeRect:ge,containerNodeRect:he,draggingNodeRect:Be,over:pe.current.over,overlayNodeRect:Ee.rect,scrollableAncestors:_e,scrollableAncestorRects:Ge,windowRect:We}),Ze=de?(0,a.IH)(de,z):null,Qe=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),i=(0,r.useCallback)((e=>{const t=P(e.target);t&&n((e=>e?(e.set(t,U(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const a=e.map((e=>{const t=P(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,U(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=P(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,a.IH)(e,t)),y):G(e):y),[e,t])}(_e),et=Ne(Qe),tt=Ne(Qe,[ge]),nt=(0,a.IH)(Ve,et),rt=Be?T(Be,Ve):null,ot=$&&rt?b({active:$,collisionRect:rt,droppableRects:le,droppableContainers:oe,pointerCoordinates:Ze}):null,it=E(ot,"id"),[at,lt]=(0,r.useState)(null),st=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ze?Ve:(0,a.IH)(Ve,tt),null!=(s=null==at?void 0:at.rect)?s:null,ge),ct=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==_.current)return;const o=j.get(_.current);if(!o)return;const a=e.nativeEvent,l=new n({active:_.current,activeNode:o,event:a,options:r,context:pe,onStart(e){const t=_.current;if(null==t)return;const n=j.get(t);if(!n)return;const{onDragStart:r}=ne.current,o={active:{id:t,data:n.data,rect:q}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),M(Ke.Initializing),D({type:h.DragStart,initialCoordinates:e,active:t}),S({type:"onDragStart",event:o})}))},onMove(e){D({type:h.DragMove,coordinates:e})},onEnd:s(h.DragEnd),onCancel:s(h.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=pe.current;let l=null;if(t&&o){const{cancelDrop:i}=ne.current;l={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===h.DragEnd&&"function"==typeof i&&await Promise.resolve(i(l))&&(e=h.DragCancel)}_.current=null,(0,i.unstable_batchedUpdates)((()=>{D({type:e}),M(Ke.Uninitialized),lt(null),Z(null),te(null);const t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=ne.current[t];null==e||e(l),S({type:t,event:l})}}))}}(0,i.unstable_batchedUpdates)((()=>{Z(l),te(e.nativeEvent)}))}),[j]),ut=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=j.get(r);if(null!==_.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},_.current=r,ct(n,t))}),[j,ct]),dt=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(p,ut);!function(e){(0,r.useEffect)((()=>{if(!a.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(p),(0,a.LI)((()=>{ge&&N===Ke.Initializing&&M(Ke.Initialized)}),[ge,N]),(0,r.useEffect)((()=>{const{onDragMove:e}=ne.current,{active:t,activatorEvent:n,collisions:r,over:o}=pe.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:nt.x,y:nt.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(a),S({type:"onDragMove",event:a})}))}),[nt.x,nt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=pe.current;if(!e||null==_.current||!t||!o)return;const{onDragOver:a}=ne.current,l=r.get(it),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,i.unstable_batchedUpdates)((()=>{lt(s),null==a||a(c),S({type:"onDragOver",event:c})}))}),[it]),(0,a.LI)((()=>{pe.current={activatorEvent:ee,active:$,activeNode:ue,collisionRect:rt,collisions:ot,droppableRects:le,draggableNodes:j,draggingNode:je,draggingNodeRect:Be,droppableContainers:Y,over:at,scrollableAncestors:_e,scrollAdjustedTranslate:nt},q.current={initial:Be,translated:rt}}),[$,ue,ot,rt,j,je,Be,le,Y,at,_e,nt]),function(e){let{acceleration:t,activator:n=be.Pointer,canScroll:o,draggingRect:i,enabled:l,interval:s=5,order:c=me.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:v,threshold:g}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=(0,a.D9)(t);return(0,a.Gj)((e=>{if(n||!r||!e)return ye;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[H.Backward]:e.x[H.Backward]||-1===o,[H.Forward]:e.x[H.Forward]||1===o},y:{[H.Backward]:e.y[H.Backward]||-1===i,[H.Forward]:e.y[H.Forward]||1===i}}}),[n,t,r])}({delta:v,disabled:!l}),[p,b]=(0,a.Yz)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case be.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case be.DraggableRect:return i}}),[n,i,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),R=(0,r.useMemo)((()=>c===me.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of R){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=W(e,r,w,t,g);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,s),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,l,s,JSON.stringify(w),JSON.stringify(h),p,d,R,f,JSON.stringify(g)])}({...fe,delta:z,draggingRect:rt,pointerCoordinates:Ze,scrollableAncestors:_e,scrollableAncestorRects:Ge});const ft=(0,r.useMemo)((()=>({active:$,activeNode:ue,activeNodeRect:ge,activatorEvent:ee,collisions:ot,containerNodeRect:he,dragOverlay:Ee,draggableNodes:j,droppableContainers:Y,droppableRects:le,over:at,measureDroppableContainers:se,scrollableAncestors:_e,scrollableAncestorRects:Ge,measuringConfiguration:ie,measuringScheduled:ce,windowRect:We})),[$,ue,ge,ee,ot,he,Ee,j,Y,le,at,se,_e,Ge,ie,ce,We]),vt=(0,r.useMemo)((()=>({activatorEvent:ee,activators:dt,active:$,activeNodeRect:ge,ariaDescribedById:{draggable:re},dispatch:D,draggableNodes:j,over:at,measureDroppableContainers:se})),[ee,dt,$,ge,D,re,j,at,se]);return o().createElement(d.Provider,{value:I},o().createElement(Xe.Provider,{value:vt},o().createElement(Fe.Provider,{value:ft},o().createElement(He.Provider,{value:st},v)),o().createElement(Je,{disabled:!1===(null==u?void 0:u.restoreFocus)})),o().createElement(g,{...u,hiddenTextDescribedById:re}))})),$e=(0,r.createContext)(null),We="button";function _e(e){let{id:t,data:n,disabled:o=!1,attributes:i}=e;const l=(0,a.Ld)("Droppable"),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:v,over:g}=(0,r.useContext)(Xe),{role:h=We,roleDescription:p="draggable",tabIndex:b=0}=null!=i?i:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?He:$e),[w,x]=(0,a.wm)(),[C,R]=(0,a.wm)(),D=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),E=(0,a.Ey)(n);return(0,a.LI)((()=>(v.set(t,{id:t,key:l,node:w,activatorNode:C,data:E}),()=>{const e=v.get(t);e&&e.key===l&&v.delete(t)})),[v,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:h,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||h!==We)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,h,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:D,node:w,over:g,setNodeRef:x,setActivatorNodeRef:R,transform:y}}function Ge(){return(0,r.useContext)(Fe)}const Ve={timeout:25};function Ze(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:i}=e;const l=(0,a.Ld)("Droppable"),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Xe),f=(0,r.useRef)({disabled:n}),v=(0,r.useRef)(!1),g=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...Ve,...i},w=(0,a.Ey)(null!=m?m:o),x=De({callback:(0,r.useCallback)((()=>{v.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):v.current=!0}),[y]),disabled:b||!s}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),v.current=!1),e&&x.observe(e))}),[x]),[R,D]=(0,a.wm)(C),E=(0,a.Ey)(t);return(0,r.useEffect)((()=>{x&&R.current&&(x.disconnect(),v.current=!1,x.observe(R.current))}),[R,x]),(0,a.LI)((()=>(c({type:h.RegisterDroppable,element:{id:o,key:l,disabled:n,node:R,rect:g,data:E}}),()=>c({type:h.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(c({type:h.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,c]),{active:s,rect:g,isOver:(null==u?void 0:u.id)===o,node:R,over:u,setNodeRef:D}}function Qe(e){let{animation:t,children:n}=e;const[i,l]=(0,r.useState)(null),[s,c]=(0,r.useState)(null),u=(0,a.D9)(n);return n||i||!u||l(u),(0,a.LI)((()=>{if(!s)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{l(null)})):l(null)}),[t,i,s]),o().createElement(o().Fragment,null,n,i?(0,r.cloneElement)(i,{ref:c}):null)}const et={x:0,y:0,scaleX:1,scaleY:1};function tt(e){let{children:t}=e;return o().createElement(Xe.Provider,{value:ze},o().createElement(He.Provider,{value:et},t))}const nt={position:"fixed",touchAction:"none"},rt=e=>(0,a.vd)(e)?"transform 250ms ease":void 0,ot=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:l,className:s,rect:c,style:u,transform:d,transition:f=rt}=e;if(!c)return null;const v=i?d:{...d,scaleX:1,scaleY:1},g={...nt,width:c.width,height:c.height,top:c.top,left:c.left,transform:a.ux.Transform.toString(v),transformOrigin:i&&r?x(r,c):void 0,transition:"function"==typeof f?f(r):f,...u};return o().createElement(n,{className:s,style:g,ref:t},l)})),it=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},at={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:a.ux.Transform.toString(t)},{transform:a.ux.Transform.toString(n)}]},sideEffects:it({styles:{active:{opacity:"0"}}})};let lt=0;function st(e){return(0,r.useMemo)((()=>{if(null!=e)return lt++,lt}),[e])}const ct=o().memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:l,transition:s,modifiers:c,wrapperElement:u="div",className:d,zIndex:f=999}=e;const{activatorEvent:v,active:g,activeNodeRect:h,containerNodeRect:p,draggableNodes:b,droppableContainers:m,dragOverlay:y,over:w,measuringConfiguration:x,scrollableAncestors:C,scrollableAncestorRects:R,windowRect:D}=Ge(),E=(0,r.useContext)(He),S=st(null==g?void 0:g.id),I=Ue(c,{activatorEvent:v,active:g,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:y.rect,over:w,overlayNodeRect:y.rect,scrollableAncestors:C,scrollableAncestorRects:R,transform:E,windowRect:D}),N=Re(h),M=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,a.zX)(((e,i)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const c=Oe(i);if(!c)return;const{transform:u}=(0,a.Jj)(i).getComputedStyle(i),d=A(u);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...at,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c=a.rect.left-i.rect.left,u=a.rect.top-i.rect.top,d={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/a.rect.height:1},f={x:l.x-c,y:l.y-u,...d},v=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:f}}),[g]=v,h=v[v.length-1];if(JSON.stringify(g)===JSON.stringify(h))return;const p=null==r?void 0:r({active:i,dragOverlay:a,...s}),b=a.node.animate(v,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{b.onfinish=()=>{null==p||p(),e()}}))}}(t);return V(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:i,draggableNodes:b,droppableContainers:m,measuringConfiguration:x}),k=N?y.setRef:void 0;return o().createElement(tt,null,o().createElement(Qe,{animation:M},g&&S?o().createElement(ot,{key:S,id:g.id,ref:k,as:u,activatorEvent:v,adjustScale:t,className:d,transition:s,rect:N,style:{zIndex:f,...l},transform:I},n):null))}))},95339:(e,t,n)=>{n.d(t,{DL:()=>r}),n(17592);const r=({transform:e})=>({...e,x:0})},67445:(e,t,n)=>{n.d(t,{Fo:()=>h,is:()=>E,nB:()=>C,qw:()=>f});var r=n(1024),o=n.n(r),i=n(20455),a=n(17592);function l(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=l(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},d={scaleX:1,scaleY:1},f=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...d}:null}const s=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-s,...d}:o<n&&o>=a?{x:0,y:l.height+s,...d}:{x:0,y:0,...d}},v="Sortable",g=o().createContext({activeIndex:-1,containerId:v,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function h(e){let{children:t,id:n,items:l,strategy:c=u,disabled:d=!1}=e;const{active:f,dragOverlay:h,droppableRects:p,over:b,measureDroppableContainers:m,measuringScheduled:y}=(0,i.Cj)(),w=(0,a.Ld)(v,n),x=Boolean(null!==h.rect),C=(0,r.useMemo)((()=>l.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[l]),R=null!=f,D=f?C.indexOf(f.id):-1,E=b?C.indexOf(b.id):-1,S=(0,r.useRef)(C),I=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(C,S.current),N=-1!==E&&-1===D||I,M=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(d);(0,a.LI)((()=>{I&&R&&!y&&m(C)}),[I,C,R,m,y]),(0,r.useEffect)((()=>{S.current=C}),[C]);const k=(0,r.useMemo)((()=>({activeIndex:D,containerId:w,disabled:M,disableTransforms:N,items:C,overIndex:E,useDragOverlay:x,sortedRects:s(C,p),strategy:c})),[D,w,M.draggable,M.droppable,N,C,E,p,x,c]);return o().createElement(g.Provider,{value:k},t)}const p=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return l(n,r,o).indexOf(t)},b=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r||l!==i&&o===a||!n&&(a===o||t!==s))},m={duration:200,easing:"ease"},y="transform",w=a.ux.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function C(e){let{animateLayoutChanges:t=b,attributes:n,disabled:o,data:l,getNewIndex:s=p,id:u,strategy:d,resizeObserverConfig:f,transition:v=m}=e;const{items:h,containerId:C,activeIndex:R,disabled:D,disableTransforms:E,sortedRects:S,overIndex:I,useDragOverlay:N,strategy:M}=(0,r.useContext)(g),k=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,D),O=h.indexOf(u),L=(0,r.useMemo)((()=>({sortable:{containerId:C,index:O,items:h},...l})),[C,l,O,h]),T=(0,r.useMemo)((()=>h.slice(h.indexOf(u))),[h,u]),{rect:A,node:j,isOver:B,setNodeRef:z}=(0,i.Zj)({id:u,data:L,disabled:k.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...f}}),{active:X,activatorEvent:F,activeNodeRect:P,attributes:Y,setNodeRef:J,listeners:U,isDragging:H,over:K,setActivatorNodeRef:q,transform:$}=(0,i.O1)({id:u,data:L,attributes:{...x,...n},disabled:k.draggable}),W=(0,a.HB)(z,J),_=Boolean(X),G=_&&!E&&c(R)&&c(I),V=!N&&H,Z=V&&G?$:null,Q=G?null!=Z?Z:(null!=d?d:M)({rects:S,activeNodeRect:P,activeIndex:R,overIndex:I,index:O}):null,ee=c(R)&&c(I)?s({id:u,items:h,activeIndex:R,overIndex:I}):O,te=null==X?void 0:X.id,ne=(0,r.useRef)({activeId:te,items:h,newIndex:ee,containerId:C}),re=h!==ne.current.items,oe=t({active:X,containerId:C,isDragging:H,isSorting:_,id:u,index:O,items:h,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:v,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:o,rect:l}=e;const[s,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,a.LI)((()=>{if(!t&&n!==u.current&&o.current){const e=l.current;if(e){const t=(0,i.VK)(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,o,l]),(0,r.useEffect)((()=>{s&&requestAnimationFrame((()=>{c(null)}))}),[s]),s}({disabled:!oe,index:O,node:j,rect:A});return(0,r.useEffect)((()=>{_&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),h!==ne.current.items&&(ne.current.items=h)}),[_,ee,C,h]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:X,activeIndex:R,attributes:Y,data:L,rect:A,index:O,newIndex:ee,items:h,isOver:B,isSorting:_,isDragging:H,listeners:U,node:j,overIndex:I,over:K,setNodeRef:W,setActivatorNodeRef:q,setDroppableNodeRef:z,setDraggableNodeRef:J,transform:null!=ie?ie:Q,transition:ie||re&&ne.current.newIndex===O?w:V&&!(0,a.vd)(F)||!v?void 0:_||oe?a.ux.Transition.toString({...v,property:y}):void 0}}function R(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const D=[i.g4.Down,i.g4.Right,i.g4.Up,i.g4.Left],E=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:l,over:s,scrollableAncestors:c}}=t;if(D.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];l.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const a=o.get(n.id);if(a)switch(e.code){case i.g4.Down:r.top<a.top&&t.push(n);break;case i.g4.Up:r.top>a.top&&t.push(n);break;case i.g4.Left:r.left>a.left&&t.push(n);break;case i.g4.Right:r.left<a.left&&t.push(n)}}));const f=(0,i.ey)({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let v=(0,i._8)(f,"id");if(v===(null==s?void 0:s.id)&&f.length>1&&(v=f[1].id),null!=v){const e=l.get(n.id),t=l.get(v),s=t?o.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&s&&e&&t){const n=(0,i.hI)(f).some(((e,t)=>c[t]!==e)),o=S(e,t),l=(d=t,!(!R(u=e)||!R(d))&&!!S(u,d)&&u.data.current.sortable.index<d.data.current.sortable.index),v=n||!o?{x:0,y:0}:{x:l?r.width-s.width:0,y:l?r.height-s.height:0},g={x:s.left,y:s.top};return v.x&&v.y?g:(0,a.$X)(g,v)}}}var u,d};function S(e,t){return!(!R(e)||!R(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},17592:(e,t,n)=>{n.d(t,{$X:()=>D,D9:()=>y,DC:()=>S,Ey:()=>p,FJ:()=>a,Gj:()=>b,HB:()=>o,IH:()=>R,Jj:()=>s,LI:()=>v,Ld:()=>x,Nq:()=>i,Re:()=>u,UG:()=>l,Yz:()=>h,qk:()=>c,r3:()=>f,so:()=>M,ux:()=>I,vZ:()=>d,vd:()=>E,wm:()=>m,zX:()=>g});var r=n(1024);function o(...e){return(0,r.useMemo)((()=>t=>{e.forEach((e=>e(t)))}),e)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function u(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?c(e)?e:u(e)?e.ownerDocument:document:document:document}const v=i?r.useLayoutEffect:r.useEffect;function g(e){const t=(0,r.useRef)(e);return v((()=>{t.current=e})),(0,r.useCallback)((function(...e){return null==t.current?void 0:t.current(...e)}),[])}function h(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function p(e,t=[e]){const n=(0,r.useRef)(e);return v((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=g(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,`${e}-${n}`}),[e,t])}function C(e){return(t,...n)=>n.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}const R=C(1),D=C(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const I=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return`translate3d(${t?Math.round(t):0}px, ${n?Math.round(n):0}px, 0)`}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return`scaleX(${t}) scaleY(${n})`}},Transform:{toString(e){if(e)return[I.Translate.toString(e),I.Scale.toString(e)].join(" ")}},Transition:{toString:({property:e,duration:t,easing:n})=>`${e} ${t}ms ${n}`}}),N="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(N)?e:e.querySelector(N)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[754],{20455:(e,t,n)=>{n.d(t,{LB:()=>qe,y9:()=>ct,g4:()=>re,Lg:()=>se,we:()=>ve,pE:()=>I,ey:()=>N,VK:()=>B,_8:()=>E,hI:()=>X,Cj:()=>Ge,O1:()=>_e,Zj:()=>Ze,VT:()=>b,Dy:()=>m});var r=n(1024),o=n.n(r),i=n(30314),a=n(17592);const l={display:"none"};function s(e){let{id:t,value:n}=e;return o().createElement("div",{id:t,style:l},n)}const c={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function u(e){let{id:t,announcement:n}=e;return o().createElement("div",{id:t,style:c,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const d=(0,r.createContext)(null),f={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},v={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function g(e){let{announcements:t=v,container:n,hiddenTextDescribedById:l,screenReaderInstructions:c=f}=e;const{announce:g,announcement:h}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),p=(0,a.Ld)("DndLiveRegion"),[b,m]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{m(!0)}),[]),function(e){const t=(0,r.useContext)(d);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;g(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&g(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;g(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;g(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;g(t.onDragCancel({active:n,over:r}))}})),[g,t])),!b)return null;const y=o().createElement(o().Fragment,null,o().createElement(s,{id:l,value:c.draggable}),o().createElement(u,{id:p,announcement:h}));return n?(0,i.createPortal)(y,n):y}var h;function p(){}function b(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(h||(h={}));const y=Object.freeze({x:0,y:0});function w(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function x(e,t){const n=(0,a.DC)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function C(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function R(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function D(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function E(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function S(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=S(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=w(S(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(C)},N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=D(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=D(r),a=o.reduce(((e,t,r)=>e+w(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(C)};function M(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const k=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=M(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(R)};function O(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:y}function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const T=L(1);function A(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const j={ignoreTransform:!1};function B(e,t){void 0===t&&(t=j);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=(0,a.Jj)(e),{transform:r,transformOrigin:o}=t(e);r&&(n=function(e,t,n){const r=A(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,r,o))}const{top:r,left:o,width:i,height:l,bottom:s,right:c}=n;return{top:r,left:o,width:i,height:l,bottom:s,right:c}}function z(e){return B(e,{ignoreTransform:!0})}function X(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,a.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,a.Re)(o)||(0,a.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:i}=(0,a.Jj)(o),l=i(o);return o!==e&&function(e,t){void 0===t&&(t=(0,a.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,l)&&n.push(o),function(e,t){return void 0===t&&(t=(0,a.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,l)?n:r(o.parentNode)}(e):n}function F(e){const[t]=X(e,1);return null!=t?t:null}function P(e){return a.Nq&&e?(0,a.FJ)(e)?e:(0,a.UG)(e)?(0,a.qk)(e)||e===(0,a.r3)(e).scrollingElement?window:(0,a.Re)(e)?e:null:null:null}function Y(e){return(0,a.FJ)(e)?e.scrollX:e.scrollLeft}function J(e){return(0,a.FJ)(e)?e.scrollY:e.scrollTop}function U(e){return{x:Y(e),y:J(e)}}var H;function K(e){return!(!a.Nq||!e)&&e===document.scrollingElement}function q(e){const t={x:0,y:0},n=K(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(H||(H={}));const $={x:.2,y:.2};function W(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=$);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=q(e),v={x:0,y:0},g={x:0,y:0},h=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+h?(v.y=H.Backward,g.y=r*Math.abs((t.top+h-i)/h)):!u&&s>=t.bottom-h&&(v.y=H.Forward,g.y=r*Math.abs((t.bottom-h-s)/h)),!f&&l>=t.right-p?(v.x=H.Forward,g.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(v.x=H.Backward,g.x=r*Math.abs((t.left+p-a)/p)),{direction:v,speed:g}}function _(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function G(e){return e.reduce(((e,t)=>(0,a.IH)(e,U(t))),y)}function V(e,t){if(void 0===t&&(t=B),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);F(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Z=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Y(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+J(t)),0)}]];class Q{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=X(t),r=G(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Z)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ee{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function te(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ne,re;function oe(e){e.preventDefault()}function ie(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ne||(ne={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(re||(re={}));const ae={start:[re.Space,re.Enter],cancel:[re.Esc],end:[re.Space,re.Enter]},le=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case re.Right:return{...n,x:n.x+25};case re.Left:return{...n,x:n.x-25};case re.Down:return{...n,y:n.y+25};case re.Up:return{...n,y:n.y-25}}};class se{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new ee((0,a.r3)(t)),this.windowListeners=new ee((0,a.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ne.Resize,this.handleCancel),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ne.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&V(n),t(y)}handleKeyDown(e){if((0,a.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=ae,coordinateGetter:i=le,scrollBehavior:l="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:y;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,a.$X)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=q(n),v=_(n),g={x:Math.min(o===re.Right?v.right-v.width/2:v.right,Math.max(o===re.Right?v.left:v.left+v.width/2,d.x)),y:Math.min(o===re.Down?v.bottom-v.height/2:v.bottom,Math.max(o===re.Down?v.top:v.top+v.height/2,d.y))},h=o===re.Right&&!a||o===re.Left&&!s,p=o===re.Down&&!c||o===re.Up&&!i;if(h&&g.x!==d.x){const e=n.scrollLeft+t.x,i=o===re.Right&&e<=u.x||o===re.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===re.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&g.y!==d.y){const e=n.scrollTop+t.y,i=o===re.Down&&e<=u.y||o===re.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===re.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,a.IH)((0,a.$X)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ce(e){return Boolean(e&&"distance"in e)}function ue(e){return Boolean(e&&"delay"in e)}se.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ae,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class de{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,a.Jj)(e);return e instanceof t?e:(0,a.r3)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=(0,a.r3)(i),this.documentListeners=new ee(this.document),this.listeners=new ee(n),this.windowListeners=new ee((0,a.Jj)(i)),this.initialCoordinates=null!=(r=(0,a.DC)(o))?r:y,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ne.Resize,this.handleCancel),this.windowListeners.add(ne.DragStart,oe),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),this.windowListeners.add(ne.ContextMenu,oe),this.documentListeners.add(ne.Keydown,this.handleKeydown),t){if(ce(t))return;if(ue(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ne.Click,ie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ne.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,a.DC)(e))?t:y,c=(0,a.$X)(r,s);if(!n&&l){if(ue(l))return te(c,l.tolerance)?this.handleCancel():void 0;if(ce(l))return null!=l.tolerance&&te(c,l.tolerance)?this.handleCancel():te(c,l.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===re.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const fe={move:{name:"pointermove"},end:{name:"pointerup"}};class ve extends de{constructor(e){const{event:t}=e,n=(0,a.r3)(t.target);super(e,fe,n)}}ve.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const ge={move:{name:"mousemove"},end:{name:"mouseup"}};var he;!function(e){e[e.RightClick=2]="RightClick"}(he||(he={})),class extends de{constructor(e){super(e,ge,(0,a.r3)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==he.RightClick&&(null==r||r({event:n}),!0)}}];const pe={move:{name:"touchmove"},end:{name:"touchend"}};var be,me;(class extends de{constructor(e){super(e,pe)}static setup(){return window.addEventListener(pe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(pe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(be||(be={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(me||(me={}));const ye={x:{[H.Backward]:!1,[H.Forward]:!1},y:{[H.Backward]:!1,[H.Forward]:!1}};var we,xe;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(we||(we={})),function(e){e.Optimized="optimized"}(xe||(xe={}));const Ce=new Map;function Re(e,t){return(0,a.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function De(e){let{callback:t,disabled:n}=e;const o=(0,a.zX)(t),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Ee(e){return new Q(B(e),e)}function Se(e,t,n){void 0===t&&(t=Ee);const[o,i]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),l=function(e){let{callback:t,disabled:n}=e;const o=(0,a.zX)(t),i=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),s=De({callback:i});return(0,a.LI)((()=>{i(),e?(null==s||s.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())}),[e]),o}const Ie=[];function Ne(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==y;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,a.$X)(e,n.current):y}function Me(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const ke=[];function Oe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,a.Re)(t)?t:e}const Le=[{sensor:ve,options:{}},{sensor:se,options:{}}],Te={current:{}},Ae={draggable:{measure:z},droppable:{measure:z,strategy:we.WhileDragging,frequency:xe.Optimized},dragOverlay:{measure:B}};class je extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Be={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new je,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:p},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ae,measureDroppableContainers:p,windowRect:null,measuringScheduled:!1},ze={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:p,draggableNodes:new Map,over:null,measureDroppableContainers:p},Xe=(0,r.createContext)(ze),Fe=(0,r.createContext)(Be);function Pe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new je}}}function Ye(e,t){switch(t.type){case h.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case h.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case h.DragEnd:case h.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case h.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new je(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case h.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new je(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case h.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new je(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Je(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:i}=(0,r.useContext)(Xe),l=(0,a.D9)(o),s=(0,a.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=s){if(!(0,a.vd)(l))return;if(document.activeElement===l.target)return;const e=i.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,a.so)(e);if(t){t.focus();break}}}))}}),[o,t,i,s,l]),null}function Ue(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const He=(0,r.createContext)({...y,scaleX:1,scaleY:1});var Ke;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ke||(Ke={}));const qe=(0,r.memo)((function(e){var t,n,l,s;let{id:c,accessibility:u,autoScroll:f=!0,children:v,sensors:p=Le,collisionDetection:b=k,measuring:m,modifiers:w,...x}=e;const C=(0,r.useReducer)(Ye,void 0,Pe),[R,D]=C,[S,I]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[N,M]=(0,r.useState)(Ke.Uninitialized),L=N===Ke.Initialized,{draggable:{active:A,nodes:j,translate:z},droppable:{containers:Y}}=R,J=A?j.get(A):null,q=(0,r.useRef)({initial:null,translated:null}),$=(0,r.useMemo)((()=>{var e;return null!=A?{id:A,data:null!=(e=null==J?void 0:J.data)?e:Te,rect:q}:null}),[A,J]),_=(0,r.useRef)(null),[V,Z]=(0,r.useState)(null),[ee,te]=(0,r.useState)(null),ne=(0,a.Ey)(x,Object.values(x)),re=(0,a.Ld)("DndDescribedBy",c),oe=(0,r.useMemo)((()=>Y.getEnabled()),[Y]),ie=(ae=m,(0,r.useMemo)((()=>({draggable:{...Ae.draggable,...null==ae?void 0:ae.draggable},droppable:{...Ae.droppable,...null==ae?void 0:ae.droppable},dragOverlay:{...Ae.dragOverlay,...null==ae?void 0:ae.dragOverlay}})),[null==ae?void 0:ae.draggable,null==ae?void 0:ae.droppable,null==ae?void 0:ae.dragOverlay]));var ae;const{droppableRects:le,measureDroppableContainers:se,measuringScheduled:ce}=function(e,t){let{dragging:n,dependencies:o,config:i}=t;const[l,s]=(0,r.useState)(null),c=null!=l,{frequency:u,measure:d,strategy:f}=i,v=(0,r.useRef)(e),g=function(){switch(f){case we.Always:return!1;case we.BeforeDragging:return n;default:return!n}}(),h=(0,a.Ey)(g),p=(0,r.useCallback)((function(e){void 0===e&&(e=[]),h.current||s((t=>t?t.concat(e):e))}),[h]),b=(0,r.useRef)(null),m=(0,a.Gj)((t=>{if(g&&!n)return Ce;const r=l;if(!t||t===Ce||v.current!==e||null!=r){const t=new Map;for(let n of e){if(!n)continue;if(r&&r.length>0&&!r.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new Q(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,l,n,g,d]);return(0,r.useEffect)((()=>{v.current=e}),[e]),(0,r.useEffect)((()=>{g||requestAnimationFrame((()=>p()))}),[n,g]),(0,r.useEffect)((()=>{c&&s(null)}),[c]),(0,r.useEffect)((()=>{g||"number"!=typeof u||null!==b.current||(b.current=setTimeout((()=>{p(),b.current=null}),u))}),[u,g,p,...o]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:c}}(oe,{dragging:L,dependencies:[z.x,z.y],config:ie.droppable}),ue=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,a.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(j,A),de=(0,r.useMemo)((()=>ee?(0,a.DC)(ee):null),[ee]),fe=function(){const e=!1===(null==V?void 0:V.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,n=L&&!e&&!t;return"object"==typeof f?{...f,enabled:n}:{enabled:n}}(),ve=function(e,t){return Re(e,t)}(ue,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:i=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:c}="boolean"==typeof i?{x:i,y:i}:i;(0,a.LI)((()=>{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=O(n(e),o);if(s||(r.x=0),c||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=F(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,c,o,n])}({activeNode:A?j.get(A):null,config:fe.layoutShiftCompensation,initialRect:ve,measure:ie.draggable.measure});const ge=Se(ue,ie.draggable.measure,ve),he=Se(ue?ue.parentElement:null),pe=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:le,draggableNodes:j,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),xe=Y.getNodeFor(null==(t=pe.current.over)?void 0:t.id),Ee=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),i=(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,a.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t]),l=De({callback:i}),s=(0,r.useCallback)((e=>{const n=Oe(e);null==l||l.disconnect(),n&&(null==l||l.observe(n)),o(n?t(n):null)}),[t,l]),[c,u]=(0,a.wm)(s);return(0,r.useMemo)((()=>({nodeRef:c,rect:n,setRef:u})),[n,c,u])}({measure:ie.dragOverlay.measure}),je=null!=(n=Ee.nodeRef.current)?n:ue,Be=L?null!=(l=Ee.rect)?l:ge:null,ze=Boolean(Ee.nodeRef.current&&Ee.rect),qe=O($e=ze?null:ge,Re($e));var $e;const We=Me(je?(0,a.Jj)(je):null),_e=function(e){const t=(0,r.useRef)(e),n=(0,a.Gj)((n=>e?n&&n!==Ie&&e&&t.current&&e.parentNode===t.current.parentNode?n:X(e):Ie),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(L?null!=xe?xe:ue:null),Ge=function(e,t){void 0===t&&(t=B);const[n]=e,o=Me(n?(0,a.Jj)(n):null),[i,l]=(0,r.useReducer)((function(){return e.length?e.map((e=>K(e)?o:new Q(t(e),e))):ke}),ke),s=De({callback:l});return e.length>0&&i===ke&&l(),(0,a.LI)((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),l())}),[e]),i}(_e),Ve=Ue(w,{transform:{x:z.x-qe.x,y:z.y-qe.y,scaleX:1,scaleY:1},activatorEvent:ee,active:$,activeNodeRect:ge,containerNodeRect:he,draggingNodeRect:Be,over:pe.current.over,overlayNodeRect:Ee.rect,scrollableAncestors:_e,scrollableAncestorRects:Ge,windowRect:We}),Ze=de?(0,a.IH)(de,z):null,Qe=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),i=(0,r.useCallback)((e=>{const t=P(e.target);t&&n((e=>e?(e.set(t,U(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const a=e.map((e=>{const t=P(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,U(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=P(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,a.IH)(e,t)),y):G(e):y),[e,t])}(_e),et=Ne(Qe),tt=Ne(Qe,[ge]),nt=(0,a.IH)(Ve,et),rt=Be?T(Be,Ve):null,ot=$&&rt?b({active:$,collisionRect:rt,droppableRects:le,droppableContainers:oe,pointerCoordinates:Ze}):null,it=E(ot,"id"),[at,lt]=(0,r.useState)(null),st=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(ze?Ve:(0,a.IH)(Ve,tt),null!=(s=null==at?void 0:at.rect)?s:null,ge),ct=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==_.current)return;const o=j.get(_.current);if(!o)return;const a=e.nativeEvent,l=new n({active:_.current,activeNode:o,event:a,options:r,context:pe,onStart(e){const t=_.current;if(null==t)return;const n=j.get(t);if(!n)return;const{onDragStart:r}=ne.current,o={active:{id:t,data:n.data,rect:q}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),M(Ke.Initializing),D({type:h.DragStart,initialCoordinates:e,active:t}),S({type:"onDragStart",event:o})}))},onMove(e){D({type:h.DragMove,coordinates:e})},onEnd:s(h.DragEnd),onCancel:s(h.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=pe.current;let l=null;if(t&&o){const{cancelDrop:i}=ne.current;l={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===h.DragEnd&&"function"==typeof i&&await Promise.resolve(i(l))&&(e=h.DragCancel)}_.current=null,(0,i.unstable_batchedUpdates)((()=>{D({type:e}),M(Ke.Uninitialized),lt(null),Z(null),te(null);const t=e===h.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=ne.current[t];null==e||e(l),S({type:t,event:l})}}))}}(0,i.unstable_batchedUpdates)((()=>{Z(l),te(e.nativeEvent)}))}),[j]),ut=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=j.get(r);if(null!==_.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},_.current=r,ct(n,t))}),[j,ct]),dt=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(p,ut);!function(e){(0,r.useEffect)((()=>{if(!a.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(p),(0,a.LI)((()=>{ge&&N===Ke.Initializing&&M(Ke.Initialized)}),[ge,N]),(0,r.useEffect)((()=>{const{onDragMove:e}=ne.current,{active:t,activatorEvent:n,collisions:r,over:o}=pe.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:nt.x,y:nt.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(a),S({type:"onDragMove",event:a})}))}),[nt.x,nt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=pe.current;if(!e||null==_.current||!t||!o)return;const{onDragOver:a}=ne.current,l=r.get(it),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,i.unstable_batchedUpdates)((()=>{lt(s),null==a||a(c),S({type:"onDragOver",event:c})}))}),[it]),(0,a.LI)((()=>{pe.current={activatorEvent:ee,active:$,activeNode:ue,collisionRect:rt,collisions:ot,droppableRects:le,draggableNodes:j,draggingNode:je,draggingNodeRect:Be,droppableContainers:Y,over:at,scrollableAncestors:_e,scrollAdjustedTranslate:nt},q.current={initial:Be,translated:rt}}),[$,ue,ot,rt,j,je,Be,le,Y,at,_e,nt]),function(e){let{acceleration:t,activator:n=be.Pointer,canScroll:o,draggingRect:i,enabled:l,interval:s=5,order:c=me.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:v,threshold:g}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=(0,a.D9)(t);return(0,a.Gj)((e=>{if(n||!r||!e)return ye;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[H.Backward]:e.x[H.Backward]||-1===o,[H.Forward]:e.x[H.Forward]||1===o},y:{[H.Backward]:e.y[H.Backward]||-1===i,[H.Forward]:e.y[H.Forward]||1===i}}}),[n,t,r])}({delta:v,disabled:!l}),[p,b]=(0,a.Yz)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case be.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case be.DraggableRect:return i}}),[n,i,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),R=(0,r.useMemo)((()=>c===me.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of R){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=W(e,r,w,t,g);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,s),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,l,s,JSON.stringify(w),JSON.stringify(h),p,d,R,f,JSON.stringify(g)])}({...fe,delta:z,draggingRect:rt,pointerCoordinates:Ze,scrollableAncestors:_e,scrollableAncestorRects:Ge});const ft=(0,r.useMemo)((()=>({active:$,activeNode:ue,activeNodeRect:ge,activatorEvent:ee,collisions:ot,containerNodeRect:he,dragOverlay:Ee,draggableNodes:j,droppableContainers:Y,droppableRects:le,over:at,measureDroppableContainers:se,scrollableAncestors:_e,scrollableAncestorRects:Ge,measuringConfiguration:ie,measuringScheduled:ce,windowRect:We})),[$,ue,ge,ee,ot,he,Ee,j,Y,le,at,se,_e,Ge,ie,ce,We]),vt=(0,r.useMemo)((()=>({activatorEvent:ee,activators:dt,active:$,activeNodeRect:ge,ariaDescribedById:{draggable:re},dispatch:D,draggableNodes:j,over:at,measureDroppableContainers:se})),[ee,dt,$,ge,D,re,j,at,se]);return o().createElement(d.Provider,{value:I},o().createElement(Xe.Provider,{value:vt},o().createElement(Fe.Provider,{value:ft},o().createElement(He.Provider,{value:st},v)),o().createElement(Je,{disabled:!1===(null==u?void 0:u.restoreFocus)})),o().createElement(g,{...u,hiddenTextDescribedById:re}))})),$e=(0,r.createContext)(null),We="button";function _e(e){let{id:t,data:n,disabled:o=!1,attributes:i}=e;const l=(0,a.Ld)("Droppable"),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:v,over:g}=(0,r.useContext)(Xe),{role:h=We,roleDescription:p="draggable",tabIndex:b=0}=null!=i?i:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?He:$e),[w,x]=(0,a.wm)(),[C,R]=(0,a.wm)(),D=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),E=(0,a.Ey)(n);return(0,a.LI)((()=>(v.set(t,{id:t,key:l,node:w,activatorNode:C,data:E}),()=>{const e=v.get(t);e&&e.key===l&&v.delete(t)})),[v,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:h,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||h!==We)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,h,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:D,node:w,over:g,setNodeRef:x,setActivatorNodeRef:R,transform:y}}function Ge(){return(0,r.useContext)(Fe)}const Ve={timeout:25};function Ze(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:i}=e;const l=(0,a.Ld)("Droppable"),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Xe),f=(0,r.useRef)({disabled:n}),v=(0,r.useRef)(!1),g=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...Ve,...i},w=(0,a.Ey)(null!=m?m:o),x=De({callback:(0,r.useCallback)((()=>{v.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):v.current=!0}),[y]),disabled:b||!s}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),v.current=!1),e&&x.observe(e))}),[x]),[R,D]=(0,a.wm)(C),E=(0,a.Ey)(t);return(0,r.useEffect)((()=>{x&&R.current&&(x.disconnect(),v.current=!1,x.observe(R.current))}),[R,x]),(0,a.LI)((()=>(c({type:h.RegisterDroppable,element:{id:o,key:l,disabled:n,node:R,rect:g,data:E}}),()=>c({type:h.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(c({type:h.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,c]),{active:s,rect:g,isOver:(null==u?void 0:u.id)===o,node:R,over:u,setNodeRef:D}}function Qe(e){let{animation:t,children:n}=e;const[i,l]=(0,r.useState)(null),[s,c]=(0,r.useState)(null),u=(0,a.D9)(n);return n||i||!u||l(u),(0,a.LI)((()=>{if(!s)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{l(null)})):l(null)}),[t,i,s]),o().createElement(o().Fragment,null,n,i?(0,r.cloneElement)(i,{ref:c}):null)}const et={x:0,y:0,scaleX:1,scaleY:1};function tt(e){let{children:t}=e;return o().createElement(Xe.Provider,{value:ze},o().createElement(He.Provider,{value:et},t))}const nt={position:"fixed",touchAction:"none"},rt=e=>(0,a.vd)(e)?"transform 250ms ease":void 0,ot=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:l,className:s,rect:c,style:u,transform:d,transition:f=rt}=e;if(!c)return null;const v=i?d:{...d,scaleX:1,scaleY:1},g={...nt,width:c.width,height:c.height,top:c.top,left:c.left,transform:a.ux.Transform.toString(v),transformOrigin:i&&r?x(r,c):void 0,transition:"function"==typeof f?f(r):f,...u};return o().createElement(n,{className:s,style:g,ref:t},l)})),it=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},at={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:a.ux.Transform.toString(t)},{transform:a.ux.Transform.toString(n)}]},sideEffects:it({styles:{active:{opacity:"0"}}})};let lt=0;function st(e){return(0,r.useMemo)((()=>{if(null!=e)return lt++,lt}),[e])}const ct=o().memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:l,transition:s,modifiers:c,wrapperElement:u="div",className:d,zIndex:f=999}=e;const{activatorEvent:v,active:g,activeNodeRect:h,containerNodeRect:p,draggableNodes:b,droppableContainers:m,dragOverlay:y,over:w,measuringConfiguration:x,scrollableAncestors:C,scrollableAncestorRects:R,windowRect:D}=Ge(),E=(0,r.useContext)(He),S=st(null==g?void 0:g.id),I=Ue(c,{activatorEvent:v,active:g,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:y.rect,over:w,overlayNodeRect:y.rect,scrollableAncestors:C,scrollableAncestorRects:R,transform:E,windowRect:D}),N=Re(h),M=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,a.zX)(((e,i)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const c=Oe(i);if(!c)return;const{transform:u}=(0,a.Jj)(i).getComputedStyle(i),d=A(u);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...at,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c=a.rect.left-i.rect.left,u=a.rect.top-i.rect.top,d={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/a.rect.height:1},f={x:l.x-c,y:l.y-u,...d},v=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:f}}),[g]=v,h=v[v.length-1];if(JSON.stringify(g)===JSON.stringify(h))return;const p=null==r?void 0:r({active:i,dragOverlay:a,...s}),b=a.node.animate(v,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{b.onfinish=()=>{null==p||p(),e()}}))}}(t);return V(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:i,draggableNodes:b,droppableContainers:m,measuringConfiguration:x}),k=N?y.setRef:void 0;return o().createElement(tt,null,o().createElement(Qe,{animation:M},g&&S?o().createElement(ot,{key:S,id:g.id,ref:k,as:u,activatorEvent:v,adjustScale:t,className:d,transition:s,rect:N,style:{zIndex:f,...l},transform:I},n):null))}))},95339:(e,t,n)=>{n.d(t,{DL:()=>r}),n(17592);const r=({transform:e})=>({...e,x:0})},67445:(e,t,n)=>{n.d(t,{Fo:()=>h,U2:()=>u,is:()=>E,nB:()=>C,qw:()=>f});var r=n(1024),o=n.n(r),i=n(20455),a=n(17592);function l(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=l(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},d={scaleX:1,scaleY:1},f=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...d}:null}const s=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-s,...d}:o<n&&o>=a?{x:0,y:l.height+s,...d}:{x:0,y:0,...d}},v="Sortable",g=o().createContext({activeIndex:-1,containerId:v,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function h(e){let{children:t,id:n,items:l,strategy:c=u,disabled:d=!1}=e;const{active:f,dragOverlay:h,droppableRects:p,over:b,measureDroppableContainers:m,measuringScheduled:y}=(0,i.Cj)(),w=(0,a.Ld)(v,n),x=Boolean(null!==h.rect),C=(0,r.useMemo)((()=>l.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[l]),R=null!=f,D=f?C.indexOf(f.id):-1,E=b?C.indexOf(b.id):-1,S=(0,r.useRef)(C),I=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(C,S.current),N=-1!==E&&-1===D||I,M=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(d);(0,a.LI)((()=>{I&&R&&!y&&m(C)}),[I,C,R,m,y]),(0,r.useEffect)((()=>{S.current=C}),[C]);const k=(0,r.useMemo)((()=>({activeIndex:D,containerId:w,disabled:M,disableTransforms:N,items:C,overIndex:E,useDragOverlay:x,sortedRects:s(C,p),strategy:c})),[D,w,M.draggable,M.droppable,N,C,E,p,x,c]);return o().createElement(g.Provider,{value:k},t)}const p=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return l(n,r,o).indexOf(t)},b=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r||l!==i&&o===a||!n&&(a===o||t!==s))},m={duration:200,easing:"ease"},y="transform",w=a.ux.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function C(e){let{animateLayoutChanges:t=b,attributes:n,disabled:o,data:l,getNewIndex:s=p,id:u,strategy:d,resizeObserverConfig:f,transition:v=m}=e;const{items:h,containerId:C,activeIndex:R,disabled:D,disableTransforms:E,sortedRects:S,overIndex:I,useDragOverlay:N,strategy:M}=(0,r.useContext)(g),k=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(o,D),O=h.indexOf(u),L=(0,r.useMemo)((()=>({sortable:{containerId:C,index:O,items:h},...l})),[C,l,O,h]),T=(0,r.useMemo)((()=>h.slice(h.indexOf(u))),[h,u]),{rect:A,node:j,isOver:B,setNodeRef:z}=(0,i.Zj)({id:u,data:L,disabled:k.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...f}}),{active:X,activatorEvent:F,activeNodeRect:P,attributes:Y,setNodeRef:J,listeners:U,isDragging:H,over:K,setActivatorNodeRef:q,transform:$}=(0,i.O1)({id:u,data:L,attributes:{...x,...n},disabled:k.draggable}),W=(0,a.HB)(z,J),_=Boolean(X),G=_&&!E&&c(R)&&c(I),V=!N&&H,Z=V&&G?$:null,Q=G?null!=Z?Z:(null!=d?d:M)({rects:S,activeNodeRect:P,activeIndex:R,overIndex:I,index:O}):null,ee=c(R)&&c(I)?s({id:u,items:h,activeIndex:R,overIndex:I}):O,te=null==X?void 0:X.id,ne=(0,r.useRef)({activeId:te,items:h,newIndex:ee,containerId:C}),re=h!==ne.current.items,oe=t({active:X,containerId:C,isDragging:H,isSorting:_,id:u,index:O,items:h,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:v,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:o,rect:l}=e;const[s,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,a.LI)((()=>{if(!t&&n!==u.current&&o.current){const e=l.current;if(e){const t=(0,i.VK)(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,o,l]),(0,r.useEffect)((()=>{s&&requestAnimationFrame((()=>{c(null)}))}),[s]),s}({disabled:!oe,index:O,node:j,rect:A});return(0,r.useEffect)((()=>{_&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),h!==ne.current.items&&(ne.current.items=h)}),[_,ee,C,h]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:X,activeIndex:R,attributes:Y,data:L,rect:A,index:O,newIndex:ee,items:h,isOver:B,isSorting:_,isDragging:H,listeners:U,node:j,overIndex:I,over:K,setNodeRef:W,setActivatorNodeRef:q,setDroppableNodeRef:z,setDraggableNodeRef:J,transform:null!=ie?ie:Q,transition:ie||re&&ne.current.newIndex===O?w:V&&!(0,a.vd)(F)||!v?void 0:_||oe?a.ux.Transition.toString({...v,property:y}):void 0}}function R(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const D=[i.g4.Down,i.g4.Right,i.g4.Up,i.g4.Left],E=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:l,over:s,scrollableAncestors:c}}=t;if(D.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];l.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const a=o.get(n.id);if(a)switch(e.code){case i.g4.Down:r.top<a.top&&t.push(n);break;case i.g4.Up:r.top>a.top&&t.push(n);break;case i.g4.Left:r.left>a.left&&t.push(n);break;case i.g4.Right:r.left<a.left&&t.push(n)}}));const f=(0,i.ey)({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let v=(0,i._8)(f,"id");if(v===(null==s?void 0:s.id)&&f.length>1&&(v=f[1].id),null!=v){const e=l.get(n.id),t=l.get(v),s=t?o.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&s&&e&&t){const n=(0,i.hI)(f).some(((e,t)=>c[t]!==e)),o=S(e,t),l=(d=t,!(!R(u=e)||!R(d))&&!!S(u,d)&&u.data.current.sortable.index<d.data.current.sortable.index),v=n||!o?{x:0,y:0}:{x:l?r.width-s.width:0,y:l?r.height-s.height:0},g={x:s.left,y:s.top};return v.x&&v.y?g:(0,a.$X)(g,v)}}}var u,d};function S(e,t){return!(!R(e)||!R(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},17592:(e,t,n)=>{n.d(t,{$X:()=>D,D9:()=>y,DC:()=>S,Ey:()=>p,FJ:()=>a,Gj:()=>b,HB:()=>o,IH:()=>R,Jj:()=>s,LI:()=>v,Ld:()=>x,Nq:()=>i,Re:()=>u,UG:()=>l,Yz:()=>h,qk:()=>c,r3:()=>f,so:()=>M,ux:()=>I,vZ:()=>d,vd:()=>E,wm:()=>m,zX:()=>g});var r=n(1024);function o(...e){return(0,r.useMemo)((()=>t=>{e.forEach((e=>e(t)))}),e)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function u(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?c(e)?e:u(e)?e.ownerDocument:document:document:document}const v=i?r.useLayoutEffect:r.useEffect;function g(e){const t=(0,r.useRef)(e);return v((()=>{t.current=e})),(0,r.useCallback)((function(...e){return null==t.current?void 0:t.current(...e)}),[])}function h(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function p(e,t=[e]){const n=(0,r.useRef)(e);return v((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=g(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,`${e}-${n}`}),[e,t])}function C(e){return(t,...n)=>n.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}const R=C(1),D=C(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const I=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return`translate3d(${t?Math.round(t):0}px, ${n?Math.round(n):0}px, 0)`}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return`scaleX(${t}) scaleY(${n})`}},Transform:{toString(e){if(e)return[I.Translate.toString(e),I.Scale.toString(e)].join(" ")}},Transition:{toString:({property:e,duration:t,easing:n})=>`${e} ${t}ms ${n}`}}),N="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(N)?e:e.querySelector(N)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7552],{82872:(e,t,r)=>{r.d(t,{t:()=>S});var n=r(1024),a=r.n(n),o=r(79014),s=r(58130),c=r(83914),l=r(11607),i=r(55452),u=r(4594),m=r(36511),d=r(76881),p=r(45778),f=r(99910),y=r(23481);function v(e){var t=e.imageUrl,r=e.initials,n={};return t&&(n.backgroundImage="url('".concat(t,"')")),a().createElement("div",{className:"srrS3",style:n},t?a().createElement(a().Fragment,null," "):r)}var g=r(36532);const h="laVU4",b="rFH4W";var E=y.T.encloseNamespace("shared.inputSelection");function C(e){var t,r="".concat(h," ").concat("BarYz");return e.typeId===u.E.Classroom?r+=" text-teal":r+=" text-".concat((0,m.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)),r}function x(e){var t,r=function(e){var t;switch(e.typeId){case u.E.Classroom:return"text-hover-teal";case u.E.ClassroomGroup:return"text-hover-".concat((0,m.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour))}}(e.selection),n=e.selection.typeId===u.E.Classroom;if(!e.canExpand){if(e.selection.typeId===u.E.User){var o=e.selection;return a().createElement("div",{className:h},a().createElement(v,{imageUrl:null===(t=o.avatar)||void 0===t?void 0:t.url,initials:i.l.getInitials(e.selection.name,e.selection.surname)}))}return a().createElement(g.u,{title:E(n?"emptyClassroom":"emptyGroup")},a().createElement("div",{className:"align-items-center border border-white bg-white ".concat(b)},a().createElement(c.x,{className:C(e.selection),svgName:n?s.vn.Classrooms:s.vn.Group})))}return e.hasExpanded?a().createElement("div",{className:"d-flex align-items-center text-white ".concat("iKeXW"," ").concat(h)},a().createElement(f.Spinner,{as:"div",size:"sm",animation:"border",role:"status"})):a().createElement(a().Fragment,null,a().createElement(l.L,{className:"align-items-center cursor-pointer text-white border border-white rounded-circle ".concat("d1NHd"," ").concat(r),onClick:e.onClickExpand},a().createElement(c.x,{svgName:s.vn.Plus,className:"d-flex align-items-center ".concat(h)})),a().createElement("div",{className:"align-items-center border border-white bg-white ".concat(b)},a().createElement(c.x,{className:C(e.selection),svgName:n?s.vn.Classrooms:s.vn.Group})))}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],s=!0,c=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(c)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e){var t;switch(e.typeId){case u.E.User:return"number"==typeof e.userType?2===e.userType?"dark-blue":"indigo":e.userType===d.Y.Learner?"dark-blue":"indigo";case u.E.Classroom:return"teal";case u.E.ClassroomGroup:return(0,m.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)}}function S(e){var t,r,n,o=p.G.isType(e.selection,u.E.Classroom),i=p.G.isType(e.selection,u.E.ClassroomGroup),m=e.onClickExpand&&(o||i),d=!!(null===(t=e.selection.users)||void 0===t?void 0:t.count),f=!!(null===(n=null===(r=e.selection.users)||void 0===r?void 0:r.data)||void 0===n?void 0:n.length),y=k(a().useState(!1),2),v=y[0],g=y[1],b=k(a().useState(m&&d),2),E=b[0],C=b[1];if(a().useEffect((function(){C(m&&d)}),[m,d]),f){var x=e.selection,w=A(e.selection);return a().createElement("div",{className:"d-flex align-items-center flex-wrap mr-1 mt-1 pb-1 pl-1 pr-4 position-relative border-".concat(w," text-").concat(w," ").concat("HF0E8")},x.users.data.map((function(t){return a().createElement(T,{key:"".concat(t.id,":").concat(e.selection.id),selection:t,colourVariant:w})})),a().createElement(l.L,{className:"cursor-pointer position-absolute text-".concat(w," ").concat("mgt6Y"),onClick:function(){return e.onClickRemove(e.selection.id)}},a().createElement(c.x,{svgName:s.vn.Close,className:"d-flex align-items-center ".concat(h)})))}return a().createElement(T,{selection:e.selection,canExpand:E,hasExpanded:v,onClickExpand:function(){g(!0),e.onClickExpand(e.selection.id)},onClickRemove:e.onClickRemove,colourVariant:A(e.selection)})}function T(e){var t=e.colourVariant||A(e.selection),r=e.selection.name;return e.selection.typeId===u.E.User&&(r=i.l.getDisplayName(e.selection)),a().createElement("div",{className:"".concat("vEOCt"," bg-").concat(t," badge-pill text-").concat(t," d-flex align-items-center mr-1 mt-1 overflow-hidden")},a().createElement(x,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),a().createElement("span",{className:"mx-1 text-white"},r),o.q.isFunction(e.onClickRemove)&&a().createElement(l.L,{className:"d-flex align-items-center cursor-pointer align-self-stretch text-white ".concat("pyzCM"),onClick:function(){return e.onClickRemove(e.selection.id)}},a().createElement(c.x,{svgName:s.vn.Close,className:"d-flex align-items-center ".concat(h)})))}},3044:(e,t,r)=>{r.d(t,{Q:()=>p});var n=r(1024),a=r.n(n),o=r(76881),s=r(83345),c=r(61254),l=r(71020),i=r(82780),u=r(2948),m=r(38143);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e){var t,r,n=a().useRef(),p=(t=(0,u.D)(m.g.BULK_USER_ACTIONS),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],s=!0,c=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(c)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];a().useEffect((function(){var e;p("scrollContainer",null===(e=n.current)||void 0===e?void 0:e.view)}),[n.current]);var f=a().useMemo((function(){var t;return(null===(t=e.statuses)||void 0===t?void 0:t.length)?e.users.filter((function(t){return e.statuses.includes(t.status)})):e.users}),[e.users]);return a().createElement(a().Fragment,null,a().createElement("h3",{className:"h6 mt-3"},a().createElement(s.x,{namespace:"userManager.bulkUserActionsConfirmationUserList",phrase:e.userType===o.Y.Staff?"headingStaff":"headingStudents",options:{smartCount:e.userCount}})),a().createElement(c.s,{items:f,rowHeight:55,ref:n,getComponent:function(t){return a().createElement(i.m,{key:t.id,user:t,userType:e.userType,imageCdnUrl:e.imageCdnUrl})},staticComponentBelowRows:a().createElement(a().Fragment,null,(e.hasMore||e.isFetching)&&a().createElement(l._,{isFetching:e.isFetching,fetchNext:e.fetchNext}))}))}},36033:(e,t,r)=>{r.d(t,{s:()=>s});var n=r(1024),a=r.n(n),o=r(83345);function s(e){return a().createElement(o.D.Provider,{value:"userManager.wizardConfirmationHeader"},a().createElement("h2",{className:"h4"},a().createElement(o.x,{phrase:"confirmation"})),a().createElement("h3",{className:"h6"},a().createElement(o.x,{phrase:"changesToBeMade"})),a().createElement("div",{className:"p-2 border rounded mb-2"},e.children))}},36511:(e,t,r)=>{r.d(t,{I:()=>a});var n=r(53957);function a(e){switch(e){case n.ClassroomGroupColour.Pink:return"pink";case n.ClassroomGroupColour.Orange:return"orange";case n.ClassroomGroupColour.Green:return"green";case n.ClassroomGroupColour.Blue:return"blue";case n.ClassroomGroupColour.Purple:return"purple";case n.ClassroomGroupColour.Indigo:return"indigo";default:return"pink"}}},45778:(e,t,r)=>{r.d(t,{G:()=>n});var n={isType:function(e,t){return(null==e?void 0:e.typeId)===t}}},45398:(e,t,r)=>{r.r(t),r.d(t,{BulkUserActionsAddToClassroomConfirmationView:()=>A});var n=r(1024),a=r.n(n),o=r(58566),s=r(81886),c=r(20354),l=r(18087),i=r(88323),u=r(58703),m=r(2948),d=r(82872),p=r(83345),f=r(38143),y=r(36033),v=r(3044),g=r(2550);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b="userManager.bulkUserActionsAddToClassroomConfirmation";function E(e){var t,r,n=(t=(0,m.D)(f.g.BULK_USER_ACTIONS),r=1,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],s=!0,c=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(c)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return g.b.useSetWizardConfirmationCallback(e.onClickConfirm),a().createElement(p.D.Provider,{value:b},a().createElement(y.s,null,a().createElement("p",{className:"font-weight-500"},a().createElement(p.x,{namespace:b,phrase:"heading",options:{smartCount:e.userCount}})),n.classroom&&a().createElement("div",{className:"rounded rounded-lg pb-2"},a().createElement("div",{className:"d-flex"},a().createElement(d.t,{selection:n.classroom})))),a().createElement(v.Q,{users:e.users,imageCdnUrl:e.imageCdnUrl,hasMore:e.hasMoreUsers,isFetching:e.isFetchingUsers,fetchNext:e.fetchNextUserPage,userType:e.userType,userCount:e.userCount}))}var C=r(31949),x=r(39151),k=r(29613);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e){var t,r,n,d=(0,i.h)(e.userType),p=d.users,y=d.count,v=d.isFetching,h=d.hasMore,b=d.fetchNext,A=(r=(0,m.D)(f.g.BULK_USER_ACTIONS),n=1,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],s=!0,c=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{s||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],S=c.a.useBasicFetch(C.N.currentUser()),T=c.a.useBasicFetch(x.L.config()),N=(0,o.useDispatch)(),j=(0,l.Y)(e.userType),U=g.b.useCreateJobErrorAlert();function I(t){s.Q.AppLinkHelper.trigger(Object.assign(Object.assign({},j.bulkActionsStatus.polling),{params:{userType:e.userType,jobId:t.id}}))}return a().createElement(u.d,{appLinks:j,userType:e.userType,users:p,currentStep:"confirmation",userCount:y,loaded:!0},a().createElement(E,{users:p,imageCdnUrl:null===(t=T.data)||void 0===t?void 0:t.imageCdnUrl,hasMoreUsers:h,isFetchingUsers:v,fetchNextUserPage:b,userType:e.userType,onClickConfirm:function(){if(A){var t=g.b.getCreateJobRequestData(A,S.data.customerId,e.userType);c.a.fetch(N,k.q.createJob(t,I,U))}},userCount:y}))}},29613:(e,t,r)=>{r.d(t,{q:()=>o});var n=r(99940),a=r(97395),o={createJob:function(e,t,r){return{url:"{gateway}/v1/batch/jobs",key:"create:job",type:n.k.POST,data:e,success:t,error:r}},getJobs:function(e){var t={},r=[],n=[];return e.cursor&&(t.cursor=e.cursor),e.sort&&("oldest"===e.sort?t.order="ASC":t.order="DESC"),e.bulkActionType&&(r=Array.isArray(e.bulkActionType)?e.bulkActionType:[e.bulkActionType],t.type=r),e.userType&&(n=Array.isArray(e.userType)?e.userType:[e.userType],t.dataType=n),{url:a._.urlBuilder("{gateway}/v1/batch/jobs",t),key:"batch:jobs:".concat(e.cursor,":").concat(e.sort,":").concat(r.sort().join(":"),":").concat(n.sort().join(":"))}},getJob:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e),key:"job:".concat(e)}},getJobProgress:function(e,t,r){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/progress"),key:"job:".concat(e,":progress"),invalidationKeys:"job:".concat(e,":progress"),success:t,error:r}},getJobResults:function(e,t,r,n,o){var s={status:t};return r&&(s.cursor=r),{url:a._.urlBuilder("{gateway}/v1/batch/jobs/".concat(e,"/results"),s),key:"job:".concat(e,":results:").concat(t,":").concat(r),success:n,error:o}},getYearGroupRolloverStatus:function(e){return{url:"{gateway}/v1/batch/validations/customers/".concat(e,"/year-group-roll-over"),key:"year:group:rollover:status"}},sendJobReports:function(e){return{url:"{gateway}/v1/batch/results/export",key:"send:job:reports:".concat(e.sort().join(":")),type:n.k.POST,data:{jobIds:e}}},getJobSummary:function(e){return{url:"{gateway}/v1/batch/jobs/".concat(e,"/summary"),key:"job:summary:".concat(e)}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_lite=self.webpackChunk_clickview_lite||[]).push([[7650],{71020:(e,t,n)=>{n.d(t,{_:()=>u});var r=n(1024),a=n(99910),o=n(64038),i=n(83914),l=n(58130);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){var t,n,u=(t=o.useInView(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],d=u[1];return r.useEffect((function(){var t;e.fetchOnScroll&&d&&!e.isFetching&&(null===(t=e.fetchNext)||void 0===t||t.call(e,e.nextCursor))}),[d,e.isFetching]),r.createElement("div",{className:"p-3 text-center ".concat("VwD1b"),ref:s},e.isFetching?r.createElement(a.Spinner,{as:"span",animation:"border",role:"status",className:"eJ85e"}):r.createElement(i.x,{svgName:l.vn.ChevronDown,className:"svg-container cursor-pointer",size:i.S.Large,onClick:function(){var t;return null===(t=e.fetchNext)||void 0===t?void 0:t.call(e,e.nextCursor)}}))}u.defaultProps={fetchOnScroll:!1}},74696:(e,t,n)=>{n.d(t,{S:()=>u});var r=n(1024),a=n.n(r),o=n(99910),i=n(86764),l=n(81514);const c={partialName:"SicQQ",partialDescription:"dPGMq",partialThumbnail:"vZrnb",partialDragHandle:"iq73R"};function u(e){return a().createElement(a().Fragment,null,Array(e.numVideos).fill(null).map((function(t,n){return a().createElement(s,Object.assign({key:n},e))})))}function s(e){var t=(0,l.V)(),n=t===i.r.XS,r=t===i.r.SM||t===i.r.MD,u=e.withReordering&&!n;return a().createElement(o.Row,{className:"py-2"},a().createElement(o.Col,{xs:n?12:r?4:3,className:"flex-column align-items-flex-start mb-1"},a().createElement(o.Row,null,!!u&&a().createElement("div",{className:"d-flex align-items-center justify-content-center col-2"},a().createElement("div",{className:"partial-loading-background ".concat(c.partialDragHandle)})),a().createElement(o.Col,{xs:u?10:12},a().createElement("div",{className:"partial-loading-background rounded ".concat(c.partialThumbnail)})))),a().createElement(o.Col,{xs:n?12:r?8:9},a().createElement("div",{className:"partial-loading-background ".concat(c.partialSeriesLink)}),a().createElement("div",{className:"partial-loading-background mb-1 ".concat(c.partialName)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialDescription)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialBadges)}),a().createElement("div",{className:"partial-loading-background ".concat(c.partialActions)})))}u.defaultProps={numVideos:15}},94644:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(81886),a=n(50242),o=n(67058),i=n(49075),l=n(14553),c=n(49267),u={notFound:o.d,forbidden:{rating:l.q,yearLevel:l.q,region:c.a,privacy:l.q},badRequest:i._};function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var o;o="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},u),t);o&&r.Q.ErrorHelper.isStatusCodeError(o)&&(o!==a.o.NotFound?o!==a.o.Forbidden?n.badRequest||r.Q.ErrorHelper.throw(new i.badRequest):n.forbidden||r.Q.ErrorHelper.throw(new i.forbidden.privacy):n.notFound||r.Q.ErrorHelper.throw(new i.notFound))}}},39902:(e,t,n)=>{n.d(t,{f:()=>u});var r=n(1024),a=n.n(r),o=n(58566),i=n(20354);function l(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n,r,u=(n=a().useState([]),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(n,r)||l(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=u[0],d=u[1];a().useEffect((function(){if(null==e?void 0:e.length){var t=function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s);t.push([]),e.forEach((function(e){t.find((function(t){return t.find((function(t){return t===e}))}))||t[t.length-1].push(e)})),d(t.filter((function(e){return e.length})))}}),[null==e?void 0:e.length]);var f=(0,o.useDispatch)(),m=(0,o.useSelector)((function(e){return e}));if(a().useEffect((function(){s.forEach((function(e){var n=t(e);i.a.getResponse(m,n.key).shouldFetch&&i.a.fetch(f,n)}))}),[null==s?void 0:s.length]),!(null==s?void 0:s.length))return{items:null,isFetching:!1};var v={},h={};return s.forEach((function(e,n){var r=t(e),a=i.a.getResponse(m,r.key);h[n]=a,a.data&&a.data.forEach((function(e){return v[e.id]=e}))})),{items:Object.keys(h).some((function(e){return!!h[e].data}))?v:null,isFetching:!!Object.keys(h).some((function(e){return h[e].isFetching}))}}},63936:(e,t,n)=>{n.d(t,{K:()=>u});var r=n(1024),a=n(50242),o=n(79014),i=n(45719),l=n(8843);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,u,s,d){var f,m,v=(f=(0,r.useState)(0),m=2,function(e){if(Array.isArray(e))return e}(f)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(f,m)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(f,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=v[0],g=v[1],p=t,y=(0,i.P)((function(t){if(!e)return null;var n=e(t);return n?n.key:null}),u,s);return(0,l.M)({fetchNextPage:function(){if(t&&e&&y)return g((function(e){return e+1})),p(y.nextCursor)},hasMore:!!(null==y?void 0:y.nextCursor),isFetching:null==y?void 0:y.isFetching,scrollContainer:d}),(0,r.useEffect)((function(){y&&y.shouldInitialFetch&&t&&(p(),g((function(e){return e+1})))}),[null==y?void 0:y.shouldInitialFetch,t]),(0,r.useEffect)((function(){var e,t;if((null==y?void 0:y.statusCode)&&o.q.isFunction(n)){var r=+(null===(t=null===(e=y.statusCode)||void 0===e?void 0:e.toString())||void 0===t?void 0:t.substr(0,1));r!==a.k.ClientError&&r!==a.k.ServerError||n(h,y.statusCode)}}),[null==y?void 0:y.statusCode]),{items:null==y?void 0:y.items,hasMore:!!(null==y?void 0:y.nextCursor),nextCursor:null==y?void 0:y.nextCursor,isFetching:null==y?void 0:y.isFetching,totalItems:null==y?void 0:y.totalItems}}},8843:(e,t,n)=>{n.d(t,{M:()=>o});var r=n(1024),a=n(79014);function o(e){var t=function(){if(!e.isFetching){if(e.scrollContainer){var t=e.scrollContainer;if(t.getBoundingClientRect().height+t.scrollTop<t.scrollHeight-400)return}else if(window.innerHeight+document.documentElement.scrollTop<document.documentElement.scrollHeight-400)return;e.fetchNextPage()}};(0,r.useEffect)((function(){var n=a.q.throttle(t,200),r=e.scrollContainer||window;return e.hasMore&&r.addEventListener("scroll",n),function(){return r.removeEventListener("scroll",n)}}),[e.hasMore,e.fetchNextPage,e.scrollContainer])}},45719:(e,t,n)=>{n.d(t,{F:()=>c,P:()=>u});var r=n(1024),a=n(58566),o=n(20354),i=n(79014);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={items:[],shouldInitialFetch:!1,nextCursor:null,isFetching:!1,statusCode:n(50242).o.Ok,hasCompleted:!0,totalItems:0};function u(e,t,n){function c(e){if(e)return i.q.isFunction(t)?t(e):e.data}function u(e){var t,r;if(e)return n?n(e):null===(r=null===(t=e.pagination)||void 0===t?void 0:t.cursors)||void 0===r?void 0:r.next}return(0,a.useSelector)((0,r.useMemo)((function(){return function(t){if(i.q.isFunction(e)){for(var n=e,r=i.q.isFunction(e)&&n(),a=r&&o.a.getResponse(t,r),s=a&&a.isFetching,d=a&&a.statusCode,f=a&&a.hasCompleted,m=a&&a.shouldFetch,v=c(a&&a.data),h=u(a&&a.data),g=function(e){var t;if(e)return null===(t=e)||void 0===t?void 0:t.count}(a&&a.data);h&&(s=(a=o.a.getResponse(t,n(h))).isFetching,d=a.statusCode,f=a.hasCompleted,!a.shouldFetch);){var p=c(a.data);p&&v.push.apply(v,function(e){if(Array.isArray(e))return l(e)}(E=p)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(E)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(E)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var y=u(a.data);h=y===h?null:y}var b={shouldInitialFetch:m,items:v,nextCursor:h,isFetching:s,statusCode:d,hasCompleted:f};return"number"==typeof g&&(b.totalItems=g),b}var E}}),[e]))}},87821:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(33192),a={userVideoHistory:function(e,t,n,a){var o="video:history",i="{gateway}/v1/users/me/watch-history";return e&&(o+=":".concat(e),i+="?cursor=".concat(e)),{key:o,url:i,formatData:function(e){return{data:e.data.map((function(e){var t=r.utc(e.lastTimeWatched).local().format(),n=r(t).format("YYYY-MM-DD");return Object.assign(Object.assign({},e),{lastTimeWatched:t,lastDateWatched:n})})),pagination:e.pagination}},success:t,error:n,always:a}},videoHistory:function(e,t,n,r,a){var o=e.sort().map((function(e){return"videoId=".concat(e)}));return{key:"video:history:videos:".concat(o.join("&")),url:"{gateway}/v1/videos/history?".concat(o.join("&")),normalizeOptions:{namespace:t},formatData:function(e){return(null==e?void 0:e.length)?e.map((function(e){return{id:e.videoId,lastProgressPoint:e.lastProgressPoint}})):e},success:n,error:r,always:a}}}},89885:(e,t,n)=>{n.r(t),n.d(t,{WatchHistoryView:()=>_});var r=n(1024),a=n.n(r),o=n(58566),i=n(20354),l=n(23049),c=n(23481),u=n(94644),s=n(69883),d=n(51365),f=n(31949),m=n(83345),v=n(71020),h=n(63936),g=n(39902),p=n(1575),y=n(11025),b=n(65858),E=n(65986),S=n(97037),w=n(97816),F=n(87821),C=n(33192),A=n(75896),k=n(28400),N=n(13231),I=n(97291),j=n(14070),x=n(22490),O="watchHistory.watchHistoryVideoList",H=function(e){return{application:I.O.DEFAULT,action:j.e.Default.SERIES,args:[e.id,k.m.slugify(e.name)]}};function P(e){var t=A.m.groupBy(e.videoHistory,"lastDateWatched"),n={},a=Object.keys(t).sort().reverse();a.forEach((function(r){n[r]=t[r].map((function(t){var n=e.videos.find((function(e){return e.id.toString()===t.videoId.toString()}));return n?Object.assign(Object.assign({},n),{lastProgressPoint:t.lastProgressPoint}):null})).filter(Boolean)}));var o=a.reduce((function(e,t){var r,a,o,i,l=n[t].length,c=l+(null!==(r=e.runningTotal)&&void 0!==r?r:0);return Object.assign(Object.assign({},e),(i=c-l,(o=t)in(a={runningTotal:c})?Object.defineProperty(a,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[o]=i,a))}),{});return r.createElement(r.Fragment,null,a.map((function(t){return n[t].length?r.createElement("div",{key:t,className:"pb-3"},r.createElement("h2",{className:"h4"},function(e){var t=C().diff(e,"days");return 0===t?c.T.getPhrase(O,"today"):1===t?c.T.getPhrase(O,"yesterday"):C(e).format("Do MMMM")}(t)),r.createElement(N.E4,{videos:n[t],getVideoAppLink:x.W.getAppLink,getSeriesAppLink:H,setFavourite:e.setFavourite,hideFavouriteButton:e.hideFavouriteButton,startingPositionIndex:o[t]})):r.createElement(r.Fragment,{key:t})})))}var M=n(74696);const T="vq4eE";function D(){return a().createElement(a().Fragment,null,a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(T," mb-2 partial-loading-background")}),a().createElement(M.S,{numVideos:2})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(T," mb-2 partial-loading-background")}),a().createElement(M.S,{numVideos:3})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(T," mb-2 partial-loading-background")}),a().createElement(M.S,{numVideos:2})),a().createElement("div",{className:"mb-3"},a().createElement("div",{className:"".concat(T," mb-2 partial-loading-background")}),a().createElement(M.S,{numVideos:5})))}var V=n(23232),R=n(99742),L="watchHistory.watchHistoryEmptyState";function q(){return a().createElement(m.D.Provider,{value:L},a().createElement(V.u,null,a().createElement(V.u.Image,{src:R.W.EmptyStates.WATCH_HISTORY}),a().createElement(V.u.Heading,null,a().createElement(m.x,{phrase:"heading"})),a().createElement(V.u.Info,null,a().createElement(m.x,{phrase:"info"})),a().createElement(V.u.Cta,{text:c.T.getPhrase(L,"cta"),appLink:{application:I.O.DASHBOARD,action:j.e.Dashboard.HOME}})))}var B="watchHistory.watchHistory";function _(){var e,t;(0,l.o)(c.T.getPhrase(B,"pageTitle"));var n=(0,o.useDispatch)(),a=(0,s.Z)(),C=(0,S.c)(b.LocationContext.VideoThumbnail).setFavourite,A=i.a.useBasicFetch(f.N.currentUser()),k=(0,E._)(E.i.VideoItem),N=function(e){return F.p.userVideoHistory(e)},I=function(e){return i.a.getFetch(n)(N(e))},j=(0,h.K)(!!A.data&&N,I,(function(e,t){if(1===e)return(0,u.r)(t);a.error(c.T.getPhrase(B,"error"))})),x=j.items,O=j.hasMore,H=j.isFetching,M=null!==(e=null==x?void 0:x.map((function(e){return e.videoId})))&&void 0!==e?e:[],T=null!==(t=(0,g.f)(M,(function(e){return p.R.watchHistoryVideos(e)})).items)&&void 0!==t?t:{},V=Object.keys(T).map((function(e){return T[e]}));return(0,w.V)(V.filter(y.M.isVideo),{hasCurriculumLinks:!0}),r.createElement(m.D.Provider,{value:B},r.createElement("div",{className:"px-3"},r.createElement("h1",{className:"h2"},r.createElement(m.x,{phrase:"heading"})),x?x.length?V.length?r.createElement(d.M.Provider,{value:k},r.createElement(P,{videoHistory:x,videos:V,setFavourite:C}),(O||H)&&r.createElement(v._,{isFetching:H,fetchNext:I})):r.createElement(D,null):r.createElement(q,null):r.createElement(D,null)))}},97816:(e,t,n)=>{n.d(t,{V:()=>h});var r=n(1024),a=n.n(r),o=n(20354),i=n(31949),l=n(1575),c=n(21750),u=n(87821),s=n(63419);function d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var m={ratings:!1,favourites:!1,watchHistory:!1,hasCurriculumLinks:!1};function v(e,t){var n=o.a.useGetFetch();a().useEffect((function(){t&&e.length&&e.forEach((function(e){n(e)}))}),[e.length])}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},m),t),r=n.ratings,f=n.favourites,h=n.watchHistory,g=n.hasCurriculumLinks,p=o.a.useBasicFetch(i.N.currentUser()),y=e&&(Array.isArray(e)?e.filter(Boolean).map((function(e){return e.id})):e.data.filter(Boolean).map((function(e){return e.id}))),b=p.data;function E(){if(!(null==b?void 0:b.isAuthenticated))return[];var e=[];return r&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&l.R.videoRatings(y,t.flightNamespace)])),f&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&b&&s.P.isFavourited(b.id,y,t.flightNamespace)])),h&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&b&&u.p.videoHistory(y,t.flightNamespace)])),g&&(e=[].concat(d(e),[!!(null==y?void 0:y.length)&&c.x.hasCurriculumLinks(y,t.flightNamespace)])),e.filter(Boolean)}var S=a().useMemo(E,[null==y?void 0:y.length]);v(S,!!e)}}}]);
|